I: pbuilder: network access will be disabled during build I: Current time: Fri Apr 19 03:10:33 +14 2024 I: pbuilder-time-stamp: 1713445833 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration W: --override-config is not set; not updating apt.conf Read the manpage for details. I: mounting /proc filesystem I: mounting /sys filesystem I: creating /{dev,run}/shm I: mounting /dev/pts filesystem I: redirecting /dev/ptmx to /dev/pts/ptmx I: policy-rc.d already exists I: Copying source file I: copying [rocksdb_8.9.1-2.dsc] I: copying [./rocksdb_8.9.1.orig.tar.gz] I: copying [./rocksdb_8.9.1-2.debian.tar.xz] I: Extracting source gpgv: Signature made Thu Dec 21 12:56:37 2023 gpgv: using RSA key 7D887DC8BA7BBBA7B835E3BADCE310E7864CC8BF gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./rocksdb_8.9.1-2.dsc: no acceptable signature found dpkg-source: info: extracting rocksdb in rocksdb-8.9.1 dpkg-source: info: unpacking rocksdb_8.9.1.orig.tar.gz dpkg-source: info: unpacking rocksdb_8.9.1-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: Not using root during the build. I: Installing the build-deps I: user script /srv/workspace/pbuilder/13100/tmp/hooks/D01_modify_environment starting debug: Running on virt64z. I: Changing host+domainname to test build reproducibility I: Adding a custom variable just for the fun of it... I: Changing /bin/sh to bash '/bin/sh' -> '/bin/bash' lrwxrwxrwx 1 root root 9 Apr 18 13:10 /bin/sh -> /bin/bash I: Setting pbuilder2's login shell to /bin/bash I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other I: user script /srv/workspace/pbuilder/13100/tmp/hooks/D01_modify_environment finished I: user script /srv/workspace/pbuilder/13100/tmp/hooks/D02_print_environment starting I: set BASH=/bin/sh BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_LINENO=([0]="12" [1]="0") BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") BASH_VERSION='5.2.21(1)-release' BUILDDIR=/build/reproducible-path BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' BUILDUSERNAME=pbuilder2 BUILD_ARCH=armhf DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 ' DIRSTACK=() DISTRIBUTION=trixie EUID=0 FUNCNAME=([0]="Echo" [1]="main") GROUPS=() HOME=/root HOSTNAME=i-capture-the-hostname HOSTTYPE=arm HOST_ARCH=armhf IFS=' ' INVOCATION_ID=c86d129cf30a4b93b33fc1875602e862 LANG=C LANGUAGE=it_CH:it LC_ALL=C MACHTYPE=arm-unknown-linux-gnueabihf MAIL=/var/mail/root OPTERR=1 OPTIND=1 OSTYPE=linux-gnueabihf PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path PBCURRENTCOMMANDLINEOPERATION=build PBUILDER_OPERATION=build PBUILDER_PKGDATADIR=/usr/share/pbuilder PBUILDER_PKGLIBDIR=/usr/lib/pbuilder PBUILDER_SYSCONFDIR=/etc PIPESTATUS=([0]="0") POSIXLY_CORRECT=y PPID=13100 PS4='+ ' PWD=/ SHELL=/bin/bash SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix SHLVL=3 SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.2Qv5SOig/pbuilderrc_bfRl --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.2Qv5SOig/b2 --logfile b2/build.log rocksdb_8.9.1-2.dsc' SUDO_GID=110 SUDO_UID=103 SUDO_USER=jenkins TERM=unknown TZ=/usr/share/zoneinfo/Etc/GMT-14 UID=0 USER=root _='I: set' http_proxy=http://10.0.0.15:3142/ I: uname -a Linux i-capture-the-hostname 6.1.0-20-arm64 #1 SMP Debian 6.1.85-1 (2024-04-11) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Apr 17 11:24 /bin -> usr/bin I: user script /srv/workspace/pbuilder/13100/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 ... 19635 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 30.0 MB of archives. After unpacking 111 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian trixie/main armhf libproc2-0 armhf 2:4.0.4-4 [55.7 kB] Get: 2 http://deb.debian.org/debian trixie/main armhf procps armhf 2:4.0.4-4 [864 kB] Get: 3 http://deb.debian.org/debian trixie/main armhf sensible-utils all 0.0.22 [22.4 kB] Get: 4 http://deb.debian.org/debian trixie/main armhf libmagic-mgc armhf 1:5.45-2+b1 [314 kB] Get: 5 http://deb.debian.org/debian trixie/main armhf libmagic1 armhf 1:5.45-2+b1 [97.9 kB] Get: 6 http://deb.debian.org/debian trixie/main armhf file armhf 1:5.45-2+b1 [42.2 kB] Get: 7 http://deb.debian.org/debian trixie/main armhf gettext-base armhf 0.21-14+b1 [157 kB] Get: 8 http://deb.debian.org/debian trixie/main armhf libuchardet0 armhf 0.0.8-1+b1 [65.7 kB] Get: 9 http://deb.debian.org/debian trixie/main armhf groff-base armhf 1.23.0-3 [1088 kB] Get: 10 http://deb.debian.org/debian trixie/main armhf bsdextrautils armhf 2.39.3-6 [81.2 kB] Get: 11 http://deb.debian.org/debian trixie/main armhf libpipeline1 armhf 1.5.7-2 [33.3 kB] Get: 12 http://deb.debian.org/debian trixie/main armhf man-db armhf 2.12.0-3 [1367 kB] Get: 13 http://deb.debian.org/debian trixie/main armhf m4 armhf 1.4.19-4 [264 kB] Get: 14 http://deb.debian.org/debian trixie/main armhf autoconf all 2.71-3 [332 kB] Get: 15 http://deb.debian.org/debian trixie/main armhf autotools-dev all 20220109.1 [51.6 kB] Get: 16 http://deb.debian.org/debian trixie/main armhf automake all 1:1.16.5-1.3 [823 kB] Get: 17 http://deb.debian.org/debian trixie/main armhf autopoint all 0.21-14 [496 kB] Get: 18 http://deb.debian.org/debian trixie/main armhf libicu72 armhf 72.1-4+b1 [9070 kB] Get: 19 http://deb.debian.org/debian trixie/main armhf libxml2 armhf 2.9.14+dfsg-1.3+b2 [599 kB] Get: 20 http://deb.debian.org/debian trixie/main armhf libarchive13 armhf 3.7.2-1 [301 kB] Get: 21 http://deb.debian.org/debian trixie/main armhf libbrotli1 armhf 1.1.0-2+b3 [284 kB] Get: 22 http://deb.debian.org/debian trixie/main armhf libsasl2-modules-db armhf 2.1.28+dfsg1-4+b1 [18.2 kB] Get: 23 http://deb.debian.org/debian trixie/main armhf libsasl2-2 armhf 2.1.28+dfsg1-4+b1 [50.1 kB] Get: 24 http://deb.debian.org/debian trixie/main armhf libldap-2.5-0 armhf 2.5.13+dfsg-5+b3 [158 kB] Get: 25 http://deb.debian.org/debian trixie/main armhf libnghttp2-14 armhf 1.59.0-1 [62.0 kB] Get: 26 http://deb.debian.org/debian trixie/main armhf libpsl5 armhf 0.21.2-1+b1 [57.8 kB] Get: 27 http://deb.debian.org/debian trixie/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2+b2 [55.2 kB] Get: 28 http://deb.debian.org/debian trixie/main armhf libssh2-1 armhf 1.11.0-4 [197 kB] Get: 29 http://deb.debian.org/debian trixie/main armhf libcurl4 armhf 8.5.0-2 [383 kB] Get: 30 http://deb.debian.org/debian trixie/main armhf libexpat1 armhf 2.5.0-2+b2 [80.2 kB] Get: 31 http://deb.debian.org/debian trixie/main armhf libjsoncpp25 armhf 1.9.5-6+b2 [69.9 kB] Get: 32 http://deb.debian.org/debian trixie/main armhf librhash0 armhf 1.4.3-3+b1 [143 kB] Get: 33 http://deb.debian.org/debian trixie/main armhf libuv1 armhf 1.48.0-1 [133 kB] Get: 34 http://deb.debian.org/debian trixie/main armhf cmake-data all 3.28.3-1 [2128 kB] Get: 35 http://deb.debian.org/debian trixie/main armhf cmake armhf 3.28.3-1 [5109 kB] Get: 36 http://deb.debian.org/debian trixie/main armhf libdebhelper-perl all 13.15.3 [88.0 kB] Get: 37 http://deb.debian.org/debian trixie/main armhf libtool all 2.4.7-7 [517 kB] Get: 38 http://deb.debian.org/debian trixie/main armhf dh-autoreconf all 20 [17.1 kB] Get: 39 http://deb.debian.org/debian trixie/main armhf libarchive-zip-perl all 1.68-1 [104 kB] Get: 40 http://deb.debian.org/debian trixie/main armhf libsub-override-perl all 0.10-1 [10.6 kB] Get: 41 http://deb.debian.org/debian trixie/main armhf libfile-stripnondeterminism-perl all 1.13.1-1 [19.4 kB] Get: 42 http://deb.debian.org/debian trixie/main armhf dh-strip-nondeterminism all 1.13.1-1 [8620 B] Get: 43 http://deb.debian.org/debian trixie/main armhf libelf1 armhf 0.190-1+b1 [171 kB] Get: 44 http://deb.debian.org/debian trixie/main armhf dwz armhf 0.15-1 [101 kB] Get: 45 http://deb.debian.org/debian trixie/main armhf gettext armhf 0.21-14+b1 [1230 kB] Get: 46 http://deb.debian.org/debian trixie/main armhf intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 47 http://deb.debian.org/debian trixie/main armhf po-debconf all 1.0.21+nmu1 [248 kB] Get: 48 http://deb.debian.org/debian trixie/main armhf debhelper all 13.15.3 [901 kB] Get: 49 http://deb.debian.org/debian trixie/main armhf libbz2-dev armhf 1.0.8-5.1 [28.3 kB] Get: 50 http://deb.debian.org/debian trixie/main armhf libgflags2.2 armhf 2.2.2-2 [66.4 kB] Get: 51 http://deb.debian.org/debian trixie/main armhf libgflags-dev armhf 2.2.2-2 [88.6 kB] Get: 52 http://deb.debian.org/debian trixie/main armhf liblz4-dev armhf 1.9.4-2 [75.0 kB] Get: 53 http://deb.debian.org/debian trixie/main armhf libsnappy1v5 armhf 1.1.10-1+b1 [25.2 kB] Get: 54 http://deb.debian.org/debian trixie/main armhf libsnappy-dev armhf 1.1.10-1+b1 [39.7 kB] Get: 55 http://deb.debian.org/debian trixie/main armhf libzstd-dev armhf 1.5.5+dfsg2-2 [322 kB] Get: 56 http://deb.debian.org/debian trixie/main armhf zlib1g-dev armhf 1:1.3.dfsg-3+b1 [904 kB] Fetched 30.0 MB in 0s (67.2 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libproc2-0:armhf. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19635 files and directories currently installed.) Preparing to unpack .../00-libproc2-0_2%3a4.0.4-4_armhf.deb ... Unpacking libproc2-0:armhf (2:4.0.4-4) ... Selecting previously unselected package procps. Preparing to unpack .../01-procps_2%3a4.0.4-4_armhf.deb ... Unpacking procps (2:4.0.4-4) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../02-sensible-utils_0.0.22_all.deb ... Unpacking sensible-utils (0.0.22) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../03-libmagic-mgc_1%3a5.45-2+b1_armhf.deb ... Unpacking libmagic-mgc (1:5.45-2+b1) ... Selecting previously unselected package libmagic1:armhf. Preparing to unpack .../04-libmagic1_1%3a5.45-2+b1_armhf.deb ... Unpacking libmagic1:armhf (1:5.45-2+b1) ... Selecting previously unselected package file. Preparing to unpack .../05-file_1%3a5.45-2+b1_armhf.deb ... Unpacking file (1:5.45-2+b1) ... Selecting previously unselected package gettext-base. Preparing to unpack .../06-gettext-base_0.21-14+b1_armhf.deb ... Unpacking gettext-base (0.21-14+b1) ... Selecting previously unselected package libuchardet0:armhf. Preparing to unpack .../07-libuchardet0_0.0.8-1+b1_armhf.deb ... Unpacking libuchardet0:armhf (0.0.8-1+b1) ... Selecting previously unselected package groff-base. Preparing to unpack .../08-groff-base_1.23.0-3_armhf.deb ... Unpacking groff-base (1.23.0-3) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../09-bsdextrautils_2.39.3-6_armhf.deb ... Unpacking bsdextrautils (2.39.3-6) ... Selecting previously unselected package libpipeline1:armhf. Preparing to unpack .../10-libpipeline1_1.5.7-2_armhf.deb ... Unpacking libpipeline1:armhf (1.5.7-2) ... Selecting previously unselected package man-db. Preparing to unpack .../11-man-db_2.12.0-3_armhf.deb ... Unpacking man-db (2.12.0-3) ... Selecting previously unselected package m4. Preparing to unpack .../12-m4_1.4.19-4_armhf.deb ... Unpacking m4 (1.4.19-4) ... Selecting previously unselected package autoconf. Preparing to unpack .../13-autoconf_2.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-14_all.deb ... Unpacking autopoint (0.21-14) ... Selecting previously unselected package libicu72:armhf. Preparing to unpack .../17-libicu72_72.1-4+b1_armhf.deb ... Unpacking libicu72:armhf (72.1-4+b1) ... Selecting previously unselected package libxml2:armhf. Preparing to unpack .../18-libxml2_2.9.14+dfsg-1.3+b2_armhf.deb ... Unpacking libxml2:armhf (2.9.14+dfsg-1.3+b2) ... Selecting previously unselected package libarchive13:armhf. Preparing to unpack .../19-libarchive13_3.7.2-1_armhf.deb ... Unpacking libarchive13:armhf (3.7.2-1) ... Selecting previously unselected package libbrotli1:armhf. Preparing to unpack .../20-libbrotli1_1.1.0-2+b3_armhf.deb ... Unpacking libbrotli1:armhf (1.1.0-2+b3) ... Selecting previously unselected package libsasl2-modules-db:armhf. Preparing to unpack .../21-libsasl2-modules-db_2.1.28+dfsg1-4+b1_armhf.deb ... Unpacking libsasl2-modules-db:armhf (2.1.28+dfsg1-4+b1) ... Selecting previously unselected package libsasl2-2:armhf. Preparing to unpack .../22-libsasl2-2_2.1.28+dfsg1-4+b1_armhf.deb ... Unpacking libsasl2-2:armhf (2.1.28+dfsg1-4+b1) ... Selecting previously unselected package libldap-2.5-0:armhf. Preparing to unpack .../23-libldap-2.5-0_2.5.13+dfsg-5+b3_armhf.deb ... Unpacking libldap-2.5-0:armhf (2.5.13+dfsg-5+b3) ... Selecting previously unselected package libnghttp2-14:armhf. Preparing to unpack .../24-libnghttp2-14_1.59.0-1_armhf.deb ... Unpacking libnghttp2-14:armhf (1.59.0-1) ... Selecting previously unselected package libpsl5:armhf. Preparing to unpack .../25-libpsl5_0.21.2-1+b1_armhf.deb ... Unpacking libpsl5:armhf (0.21.2-1+b1) ... 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.11.0-4_armhf.deb ... Unpacking libssh2-1:armhf (1.11.0-4) ... Selecting previously unselected package libcurl4:armhf. Preparing to unpack .../28-libcurl4_8.5.0-2_armhf.deb ... Unpacking libcurl4:armhf (8.5.0-2) ... Selecting previously unselected package libexpat1:armhf. Preparing to unpack .../29-libexpat1_2.5.0-2+b2_armhf.deb ... Unpacking libexpat1:armhf (2.5.0-2+b2) ... Selecting previously unselected package libjsoncpp25:armhf. Preparing to unpack .../30-libjsoncpp25_1.9.5-6+b2_armhf.deb ... Unpacking libjsoncpp25:armhf (1.9.5-6+b2) ... Selecting previously unselected package librhash0:armhf. Preparing to unpack .../31-librhash0_1.4.3-3+b1_armhf.deb ... Unpacking librhash0:armhf (1.4.3-3+b1) ... Selecting previously unselected package libuv1:armhf. Preparing to unpack .../32-libuv1_1.48.0-1_armhf.deb ... Unpacking libuv1:armhf (1.48.0-1) ... Selecting previously unselected package cmake-data. Preparing to unpack .../33-cmake-data_3.28.3-1_all.deb ... Unpacking cmake-data (3.28.3-1) ... Selecting previously unselected package cmake. Preparing to unpack .../34-cmake_3.28.3-1_armhf.deb ... Unpacking cmake (3.28.3-1) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../35-libdebhelper-perl_13.15.3_all.deb ... Unpacking libdebhelper-perl (13.15.3) ... Selecting previously unselected package libtool. Preparing to unpack .../36-libtool_2.4.7-7_all.deb ... Unpacking libtool (2.4.7-7) ... 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.10-1_all.deb ... Unpacking libsub-override-perl (0.10-1) ... 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.190-1+b1_armhf.deb ... Unpacking libelf1:armhf (0.190-1+b1) ... 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-14+b1_armhf.deb ... Unpacking gettext (0.21-14+b1) ... 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.15.3_all.deb ... Unpacking debhelper (13.15.3) ... Selecting previously unselected package libbz2-dev:armhf. Preparing to unpack .../48-libbz2-dev_1.0.8-5.1_armhf.deb ... Unpacking libbz2-dev:armhf (1.0.8-5.1) ... 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-2_armhf.deb ... Unpacking liblz4-dev:armhf (1.9.4-2) ... Selecting previously unselected package libsnappy1v5:armhf. Preparing to unpack .../52-libsnappy1v5_1.1.10-1+b1_armhf.deb ... Unpacking libsnappy1v5:armhf (1.1.10-1+b1) ... Selecting previously unselected package libsnappy-dev:armhf. Preparing to unpack .../53-libsnappy-dev_1.1.10-1+b1_armhf.deb ... Unpacking libsnappy-dev:armhf (1.1.10-1+b1) ... Selecting previously unselected package libzstd-dev:armhf. Preparing to unpack .../54-libzstd-dev_1.5.5+dfsg2-2_armhf.deb ... Unpacking libzstd-dev:armhf (1.5.5+dfsg2-2) ... Selecting previously unselected package zlib1g-dev:armhf. Preparing to unpack .../55-zlib1g-dev_1%3a1.3.dfsg-3+b1_armhf.deb ... Unpacking zlib1g-dev:armhf (1:1.3.dfsg-3+b1) ... Setting up libexpat1:armhf (2.5.0-2+b2) ... Setting up libpipeline1:armhf (1.5.7-2) ... Setting up libpsl5:armhf (0.21.2-1+b1) ... Setting up libicu72:armhf (72.1-4+b1) ... Setting up libzstd-dev:armhf (1.5.5+dfsg2-2) ... Setting up bsdextrautils (2.39.3-6) ... Setting up libmagic-mgc (1:5.45-2+b1) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libdebhelper-perl (13.15.3) ... Setting up libbrotli1:armhf (1.1.0-2+b3) ... Setting up libnghttp2-14:armhf (1.59.0-1) ... Setting up libmagic1:armhf (1:5.45-2+b1) ... Setting up gettext-base (0.21-14+b1) ... Setting up m4 (1.4.19-4) ... Setting up file (1:5.45-2+b1) ... Setting up libsnappy1v5:armhf (1.1.10-1+b1) ... Setting up libsasl2-modules-db:armhf (2.1.28+dfsg1-4+b1) ... Setting up autotools-dev (20220109.1) ... Setting up libuv1:armhf (1.48.0-1) ... Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-2+b2) ... Setting up libproc2-0:armhf (2:4.0.4-4) ... Setting up autopoint (0.21-14) ... Setting up libjsoncpp25:armhf (1.9.5-6+b2) ... Setting up liblz4-dev:armhf (1.9.4-2) ... Setting up libsasl2-2:armhf (2.1.28+dfsg1-4+b1) ... Setting up autoconf (2.71-3) ... Setting up zlib1g-dev:armhf (1:1.3.dfsg-3+b1) ... Setting up sensible-utils (0.0.22) ... Setting up librhash0:armhf (1.4.3-3+b1) ... Setting up libuchardet0:armhf (0.0.8-1+b1) ... Setting up procps (2:4.0.4-4) ... Setting up libsub-override-perl (0.10-1) ... Setting up libssh2-1:armhf (1.11.0-4) ... Setting up cmake-data (3.28.3-1) ... Setting up libelf1:armhf (0.190-1+b1) ... Setting up libxml2:armhf (2.9.14+dfsg-1.3+b2) ... Setting up libgflags2.2 (2.2.2-2) ... Setting up libbz2-dev:armhf (1.0.8-5.1) ... 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-14+b1) ... Setting up libtool (2.4.7-7) ... Setting up libarchive13:armhf (3.7.2-1) ... Setting up libsnappy-dev:armhf (1.1.10-1+b1) ... Setting up libldap-2.5-0:armhf (2.5.13+dfsg-5+b3) ... 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.23.0-3) ... Setting up libcurl4:armhf (8.5.0-2) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up man-db (2.12.0-3) ... Not building database; man-db/auto-update is not 'true'. Setting up cmake (3.28.3-1) ... Setting up debhelper (13.15.3) ... Processing triggers for libc-bin (2.37-15) ... Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... -> Finished parsing the build-deps I: Building the package I: user script /srv/workspace/pbuilder/13100/tmp/hooks/A99_set_merged_usr starting Not re-configuring usrmerge for trixie I: user script /srv/workspace/pbuilder/13100/tmp/hooks/A99_set_merged_usr finished hostname: Name or service not known I: Running cd /build/reproducible-path/rocksdb-8.9.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../rocksdb_8.9.1-2_source.changes dpkg-buildpackage: info: source package rocksdb dpkg-buildpackage: info: source version 8.9.1-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 debian/rules clean dh clean --buildsystem=cmake dh_auto_clean -O--buildsystem=cmake dh_autoreconf_clean -O--buildsystem=cmake dh_clean -O--buildsystem=cmake debian/rules binary dh binary --buildsystem=cmake dh_update_autotools_config -O--buildsystem=cmake dh_autoreconf -O--buildsystem=cmake debian/rules override_dh_auto_configure make[1]: Entering directory '/build/reproducible-path/rocksdb-8.9.1' dh_auto_configure -O--buildsystem=cmake \ -- \ -DWITH_BZ2=ON \ -DWITH_LZ4=ON \ -DWITH_ZLIB=ON \ -DWITH_ZSTD=ON \ -DWITH_SNAPPY=ON \ -DROCKSDB_BUILD_SHARED=ON \ -DWITH_BENCHMARK_TOOLS=ON \ -DWITH_CORE_TOOLS=ON \ -DWITH_TOOLS=ON \ -DWITH_TESTS=ON \ -DPORTABLE=1 \ -DFAIL_ON_WARNINGS=OFF cd obj-arm-linux-gnueabihf && DEB_PYTHON_INSTALL_LAYOUT=deb cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/arm-linux-gnueabihf -DWITH_BZ2=ON -DWITH_LZ4=ON -DWITH_ZLIB=ON -DWITH_ZSTD=ON -DWITH_SNAPPY=ON -DROCKSDB_BUILD_SHARED=ON -DWITH_BENCHMARK_TOOLS=ON -DWITH_CORE_TOOLS=ON -DWITH_TOOLS=ON -DWITH_TESTS=ON -DPORTABLE=1 -DFAIL_ON_WARNINGS=OFF .. -- The CXX compiler identification is GNU 13.2.0 -- The C compiler identification is GNU 13.2.0 -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.3") -- Found BZip2: /usr/lib/arm-linux-gnueabihf/libbz2.so (found version "1.0.8") -- Looking for BZ2_bzCompressInit -- Looking for BZ2_bzCompressInit - found -- Found lz4: /usr/lib/arm-linux-gnueabihf/liblz4.so -- Found zstd: /usr/lib/arm-linux-gnueabihf/libzstd.so -- Performing Test HAVE_OMIT_LEAF_FRAME_POINTER -- Performing Test HAVE_OMIT_LEAF_FRAME_POINTER - Failed -- Performing Test HAS_ARMV8_CRC -- Performing Test HAS_ARMV8_CRC - Success -- HAS_ARMV8_CRC yes -- Performing Test BUILTIN_ATOMIC -- Performing Test BUILTIN_ATOMIC - Success -- Could NOT find uring (missing: uring_LIBRARIES uring_INCLUDE_DIR) -- Enabling RTTI in Debug builds only (default) -- Performing Test HAVE_FALLOCATE -- Performing Test HAVE_FALLOCATE - Success -- Performing Test HAVE_SYNC_FILE_RANGE_WRITE -- Performing Test HAVE_SYNC_FILE_RANGE_WRITE - Success -- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP -- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP - Success -- Looking for malloc_usable_size -- Looking for malloc_usable_size - found -- Looking for sched_getcpu -- Looking for sched_getcpu - found -- Looking for getauxval -- Looking for getauxval - found -- Looking for F_FULLFSYNC -- Looking for F_FULLFSYNC - not found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- ROCKSDB_PLUGINS: -- ROCKSDB PLUGINS TO BUILD -- Could NOT find Git (missing: GIT_EXECUTABLE) -- JNI library is disabled -- Configuring done (4.9s) -- Generating done (0.4s) 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-8.9.1/obj-arm-linux-gnueabihf make[1]: Leaving directory '/build/reproducible-path/rocksdb-8.9.1' dh_auto_build -O--buildsystem=cmake cd obj-arm-linux-gnueabihf && make -j4 "INSTALL=install --strip-program=true" VERBOSE=1 make[1]: Entering directory '/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf' /usr/bin/cmake -S/build/reproducible-path/rocksdb-8.9.1 -B/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf/CMakeFiles /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf//CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[2]: Entering directory '/build/reproducible-path/rocksdb-8.9.1/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-8.9.1/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-8.9.1 /build/reproducible-path/rocksdb-8.9.1 /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf/CMakeFiles/rocksdb.dir/DependInfo.cmake "--color=" make[3]: Entering directory '/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-8.9.1 /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src/gtest /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest /build/reproducible-path/rocksdb-8.9.1/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-8.9.1/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-8.9.1 /build/reproducible-path/rocksdb-8.9.1 /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf/CMakeFiles/rocksdb-shared.dir/DependInfo.cmake "--color=" make[3]: Leaving directory '/build/reproducible-path/rocksdb-8.9.1/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-8.9.1/obj-arm-linux-gnueabihf' make[3]: Leaving directory '/build/reproducible-path/rocksdb-8.9.1/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]: Leaving directory '/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf' make[3]: Entering directory '/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf' make -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/build [ 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_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/cache.cc make[3]: Entering directory '/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf' [ 1%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_entry_roles.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache_entry_roles.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache_entry_roles.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache_entry_roles.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/cache_entry_roles.cc [ 1%] Building CXX object third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/gtest-all.cc.o cd /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest && /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc [ 1%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/cache/cache.cc [ 1%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_key.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache_key.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache_key.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache_key.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/cache_key.cc [ 1%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_helpers.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache_helpers.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache_helpers.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache_helpers.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/cache_helpers.cc [ 1%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_reservation_manager.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache_reservation_manager.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache_reservation_manager.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache_reservation_manager.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/cache_reservation_manager.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_entry_roles.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/cache/cache_entry_roles.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/charged_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/charged_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/charged_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/charged_cache.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/charged_cache.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_key.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/cache/cache_key.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_helpers.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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_helpers.cc.o -MF CMakeFiles/rocksdb.dir/cache/cache_helpers.cc.o.d -o CMakeFiles/rocksdb.dir/cache/cache_helpers.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/cache_helpers.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/clock_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/clock_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/clock_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/clock_cache.cc.o -c /build/reproducible-path/rocksdb-8.9.1/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_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/compressed_secondary_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/compressed_secondary_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/compressed_secondary_cache.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/compressed_secondary_cache.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_reservation_manager.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/cache/cache_reservation_manager.cc In file included from /usr/include/c++/13/bits/stl_algo.h:61, from /usr/include/c++/13/functional:67, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h:11, from /build/reproducible-path/rocksdb-8.9.1/cache/sharded_cache.h:18, from /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.h:20, from /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.cc:10: /usr/include/c++/13/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = double; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/13/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++/13/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++/13/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1812 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1918 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/13/bits/stl_algo.h:1932:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1932 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/charged_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/cache/charged_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_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/lru_cache.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h:15, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h:11, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h:13, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/unique_id.h:8, from /build/reproducible-path/rocksdb-8.9.1/table/unique_id_impl.h:10, from /build/reproducible-path/rocksdb-8.9.1/cache/cache_key.h:12, from /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.h:19: /usr/include/c++/13/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const double&}; _Tp = double; _Alloc = std::allocator]': /usr/include/c++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = double; _Alloc = std::allocator]', inlined from 'void rocksdb::clock_cache::{anonymous}::AddShardEvaluation(const rocksdb::clock_cache::BaseHyperClockCache::Shard&, std::vector&, size_t&)' at /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.cc:1435:35, inlined from 'rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const::::Shard*)>' at /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.cc:1524:23, inlined from 'constexpr _Res std::__invoke_impl(__invoke_other, _Fn&&, _Args&& ...) [with _Res = void; _Fn = rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const::::Shard*)>&; _Args = {const rocksdb::clock_cache::ClockCacheShard*}]' at /usr/include/c++/13/bits/invoke.h:61:36, inlined from 'constexpr std::enable_if_t, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const::::Shard*)>&; _Args = {const rocksdb::clock_cache::ClockCacheShard*}]' at /usr/include/c++/13/bits/invoke.h:111:28, inlined from 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const::::Shard*)>; _ArgTypes = {const rocksdb::clock_cache::ClockCacheShard*}]' at /usr/include/c++/13/bits/std_function.h:290:30: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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++/13/bits/stl_algo.h:4861:18, inlined from 'virtual void rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const' at /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.cc:1531:12: /usr/include/c++/13/bits/stl_algo.h:1947:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1947 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1948 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1949 | __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++/13/bits/stl_algo.h:1950:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/13/bits/stl_algo.h:4861:18, inlined from 'virtual void rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const' at /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.cc:1531:12: /usr/include/c++/13/bits/stl_algo.h:1859:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1859 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1864:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1864 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 3%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/secondary_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/secondary_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/secondary_cache.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/secondary_cache.cc [ 3%] Building CXX object CMakeFiles/rocksdb.dir/cache/clock_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/cache/clock_cache.cc [ 3%] Linking CXX static library libgtest.a cd /build/reproducible-path/rocksdb-8.9.1/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-8.9.1/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-8.9.1/obj-arm-linux-gnueabihf' [ 3%] Built target gtest make -f CMakeFiles/testharness.dir/build.make CMakeFiles/testharness.dir/depend make[3]: Entering directory '/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-8.9.1 /build/reproducible-path/rocksdb-8.9.1 /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf/CMakeFiles/testharness.dir/DependInfo.cmake "--color=" [ 3%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/secondary_cache_adapter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/secondary_cache_adapter.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/secondary_cache_adapter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/secondary_cache_adapter.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/secondary_cache_adapter.cc make[3]: Leaving directory '/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf' make -f CMakeFiles/testharness.dir/build.make CMakeFiles/testharness.dir/build make[3]: Entering directory '/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf' [ 4%] Building CXX object CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/test_util/mock_time_env.cc [ 4%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/sharded_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/sharded_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/sharded_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/sharded_cache.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/sharded_cache.cc [ 4%] Building CXX object CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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/secondary_cache_test_util.cc.o -MF CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o.d -o CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o -c /build/reproducible-path/rocksdb-8.9.1/test_util/secondary_cache_test_util.cc [ 4%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/tiered_secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/tiered_secondary_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/tiered_secondary_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/tiered_secondary_cache.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/tiered_secondary_cache.cc In file included from /usr/include/c++/13/bits/stl_algo.h:61, from /usr/include/c++/13/functional:67, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h:11, from /build/reproducible-path/rocksdb-8.9.1/cache/sharded_cache.h:18, from /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.h:20, from /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.cc:10: /usr/include/c++/13/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = double; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/13/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++/13/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++/13/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1812 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1918 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/13/bits/stl_algo.h:1932:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1932 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 4%] Building CXX object CMakeFiles/testharness.dir/test_util/testharness.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/test_util/testharness.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h:15, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h:11, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h:13, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/unique_id.h:8, from /build/reproducible-path/rocksdb-8.9.1/table/unique_id_impl.h:10, from /build/reproducible-path/rocksdb-8.9.1/cache/cache_key.h:12, from /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.h:19: /usr/include/c++/13/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const double&}; _Tp = double; _Alloc = std::allocator]': /usr/include/c++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = double; _Alloc = std::allocator]', inlined from 'void rocksdb::clock_cache::{anonymous}::AddShardEvaluation(const rocksdb::clock_cache::BaseHyperClockCache::Shard&, std::vector&, size_t&)' at /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.cc:1435:35, inlined from 'rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const::::Shard*)>' at /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.cc:1524:23, inlined from 'constexpr _Res std::__invoke_impl(__invoke_other, _Fn&&, _Args&& ...) [with _Res = void; _Fn = rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const::::Shard*)>&; _Args = {const rocksdb::clock_cache::ClockCacheShard*}]' at /usr/include/c++/13/bits/invoke.h:61:36, inlined from 'constexpr std::enable_if_t, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const::::Shard*)>&; _Args = {const rocksdb::clock_cache::ClockCacheShard*}]' at /usr/include/c++/13/bits/invoke.h:111:28, inlined from 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const::::Shard*)>; _ArgTypes = {const rocksdb::clock_cache::ClockCacheShard*}]' at /usr/include/c++/13/bits/std_function.h:290:30: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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++/13/bits/stl_algo.h:4861:18, inlined from 'virtual void rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const' at /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.cc:1531:12: /usr/include/c++/13/bits/stl_algo.h:1947:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1947 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1948 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1949 | __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++/13/bits/stl_algo.h:1950:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/13/bits/stl_algo.h:4861:18, inlined from 'virtual void rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const' at /build/reproducible-path/rocksdb-8.9.1/cache/clock_cache.cc:1531:12: /usr/include/c++/13/bits/stl_algo.h:1859:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1859 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1864:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1864 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 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_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/arena_wrapped_db_iter.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/arena_wrapped_db_iter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/arena_wrapped_db_iter.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/arena_wrapped_db_iter.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_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_contents.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_contents.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_contents.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_contents.cc [ 4%] Building CXX object CMakeFiles/rocksdb.dir/cache/compressed_secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/cache/compressed_secondary_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_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_fetcher.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_fetcher.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_fetcher.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_fetcher.cc [ 4%] Building CXX object CMakeFiles/rocksdb.dir/cache/lru_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/cache/lru_cache.cc [ 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_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_addition.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_addition.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_addition.cc.o -c /build/reproducible-path/rocksdb-8.9.1/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_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_builder.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_builder.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_builder.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_builder.cc [ 5%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_cache.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_cache.cc [ 5%] Linking CXX static library libtestharness.a /usr/bin/cmake -P CMakeFiles/testharness.dir/cmake_clean_target.cmake /usr/bin/cmake -E cmake_link_script CMakeFiles/testharness.dir/link.txt --verbose=1 /usr/bin/ar qc libtestharness.a CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o CMakeFiles/testharness.dir/test_util/testharness.cc.o /usr/bin/ranlib libtestharness.a make[3]: Leaving directory '/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf' [ 5%] Built target testharness [ 5%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_garbage.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_garbage.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_garbage.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_garbage.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_garbage.cc [ 6%] Building CXX object CMakeFiles/rocksdb.dir/cache/secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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/secondary_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/secondary_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/secondary_cache.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/secondary_cache.cc [ 6%] Building CXX object CMakeFiles/rocksdb.dir/cache/secondary_cache_adapter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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/secondary_cache_adapter.cc.o -MF CMakeFiles/rocksdb.dir/cache/secondary_cache_adapter.cc.o.d -o CMakeFiles/rocksdb.dir/cache/secondary_cache_adapter.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/secondary_cache_adapter.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_meta.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_meta.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_meta.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_meta.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_meta.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_reader.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_reader.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_reader.cc.o -c /build/reproducible-path/rocksdb-8.9.1/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_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_garbage_meter.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_garbage_meter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_garbage_meter.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_garbage_meter.cc In file included from /usr/include/c++/13/vector:72, from /usr/include/c++/13/functional:64, from /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_builder.h:8, from /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_builder.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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-8.9.1/db/blob/blob_file_builder.cc:342:37: /usr/include/c++/13/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.dir/cache/sharded_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/cache/sharded_cache.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_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_format.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_format.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_format.cc.o -c /build/reproducible-path/rocksdb-8.9.1/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_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_sequential_reader.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_sequential_reader.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_sequential_reader.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_log_sequential_reader.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:12, from /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_read_request.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_reader.h:11, from /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_reader.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from /usr/include/c++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, inlined from 'void rocksdb::BlobFileReader::MultiGetBlob(const rocksdb::ReadOptions&, rocksdb::MemoryAllocator*, rocksdb::autovector > >&, uint64_t*) const' at /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_reader.cc:434:26: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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-8.9.1/db/blob/blob_file_reader.cc:440:27: /usr/include/c++/13/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/cache/tiered_secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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/tiered_secondary_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/tiered_secondary_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/tiered_secondary_cache.cc.o -c /build/reproducible-path/rocksdb-8.9.1/cache/tiered_secondary_cache.cc [ 7%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_writer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_writer.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_writer.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_writer.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_log_writer.cc [ 7%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_source.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_source.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_source.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_source.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_source.cc [ 7%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/prefetch_buffer_collection.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/prefetch_buffer_collection.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/prefetch_buffer_collection.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/prefetch_buffer_collection.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/blob/prefetch_buffer_collection.cc [ 7%] Building CXX object CMakeFiles/rocksdb.dir/db/arena_wrapped_db_iter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/arena_wrapped_db_iter.cc [ 7%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/builder.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/builder.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/builder.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/builder.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/builder.cc [ 7%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/c.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/c.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/c.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/c.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/c.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/column_family.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/column_family.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/column_family.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/column_family.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/column_family.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_contents.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/blob_contents.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_fetcher.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/blob_fetcher.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction.cc [ 9%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_addition.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/blob_file_addition.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/c.cc:15: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:65, from /build/reproducible-path/rocksdb-8.9.1/db/column_family.h:15, from /build/reproducible-path/rocksdb-8.9.1/db/column_family.cc:10: /usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:66:8: /usr/include/c++/13/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++/13/vector:65: /usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:1619: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++/13/bits/vector.tcc:238:44: /usr/include/c++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::DBOptions::DBOptions(const rocksdb::DBOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:460:8: /usr/include/c++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:66:8: /usr/include/c++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:1619: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++/13/bits/vector.tcc:238:44, inlined from 'rocksdb::ColumnFamilyOptions rocksdb::SanitizeOptions(const ImmutableDBOptions&, const ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-8.9.1/db/column_family.cc:356:34: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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++/13/bits/stl_vector.h:1296: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-8.9.1/db/c.cc:5726:30: /usr/include/c++/13/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++/13/bits/stl_vector.h:1296: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-8.9.1/db/c.cc:920:30: /usr/include/c++/13/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++/13/bits/stl_vector.h:1296: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-8.9.1/db/c.cc:6520:30: /usr/include/c++/13/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++/13/bits/stl_vector.h:1296: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-8.9.1/db/c.cc:986:30: /usr/include/c++/13/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++/13/bits/stl_vector.h:1296: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-8.9.1/db/c.cc:887:30: /usr/include/c++/13/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++/13/bits/stl_vector.h:1296: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-8.9.1/db/c.cc:954:30: /usr/include/c++/13/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-8.9.1/db/c.cc:1019:33: /usr/include/c++/13/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.dir/db/blob/blob_file_builder.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/blob_file_builder.cc [ 9%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_iterator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_iterator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_iterator.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_iterator.cc [ 9%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_picker.cc [ 9%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_job.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc In file included from /usr/include/c++/13/vector:72, from /usr/include/c++/13/functional:64, from /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_builder.h:8, from /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_builder.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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-8.9.1/db/blob/blob_file_builder.cc:342:37: /usr/include/c++/13/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.dir/db/blob/blob_file_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/blob_file_cache.cc [ 9%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_garbage.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/blob_file_garbage.cc [ 9%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_fifo.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_fifo.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_fifo.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_fifo.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_picker_fifo.cc [ 9%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_meta.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/blob_file_meta.cc [ 9%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_level.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_level.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_level.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_level.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_picker_level.cc [ 9%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/blob_file_reader.cc [ 9%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_universal.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_universal.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_universal.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_universal.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_picker_universal.cc In file included from /usr/include/c++/13/vector:72, from /usr/include/c++/13/functional:64, from /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:10: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445: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-8.9.1/db/version_edit.h:503:28, inlined from 'void rocksdb::SubcompactionState::AddOutputsEdit(rocksdb::VersionEdit*) const' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/subcompaction_state.h:173:24, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1746:31: /usr/include/c++/13/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++/13/vector:66: 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(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:504:35, inlined from 'void rocksdb::SubcompactionState::AddOutputsEdit(rocksdb::VersionEdit*) const' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/subcompaction_state.h:173:24, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1746:31: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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-8.9.1/db/version_edit.h:503:28, inlined from 'void rocksdb::SubcompactionState::AddOutputsEdit(rocksdb::VersionEdit*) const' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/subcompaction_state.h:176:24, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1746:31: /usr/include/c++/13/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 '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(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:504:35, inlined from 'void rocksdb::SubcompactionState::AddOutputsEdit(rocksdb::VersionEdit*) const' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/subcompaction_state.h:176:24, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1746:31: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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-8.9.1/db/version_edit.h:545:38, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1749:24: /usr/include/c++/13/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 'void rocksdb::autovector::push_back(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddBlobFile(rocksdb::BlobFileAddition)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:546:35, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1749:24: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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&, 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-8.9.1/db/version_edit.h:571:37, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1772:29: /usr/include/c++/13/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++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:12, from /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_read_request.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_reader.h:11, from /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_reader.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from /usr/include/c++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, inlined from 'void rocksdb::BlobFileReader::MultiGetBlob(const rocksdb::ReadOptions&, rocksdb::MemoryAllocator*, rocksdb::autovector > >&, uint64_t*) const' at /build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_reader.cc:434:26: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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-8.9.1/db/blob/blob_file_reader.cc:440:27: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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-8.9.1/db/compaction/compaction_outputs.h:54:26, inlined from 'rocksdb::Status rocksdb::CompactionJob::OpenCompactionOutputFile(rocksdb::SubcompactionState*, rocksdb::CompactionOutputs&)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1931:22: /usr/include/c++/13/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.dir/db/blob/blob_garbage_meter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/blob_garbage_meter.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_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_service_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_service_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_service_job.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_service_job.cc 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-8.9.1/db/compaction/compaction_job.cc:265:48: /usr/include/c++/13/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/blob/blob_log_format.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/blob_log_format.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_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_state.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_state.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_state.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_state.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_log_sequential_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/blob_log_sequential_reader.cc [ 11%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_outputs.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_outputs.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_outputs.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_outputs.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_outputs.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_log_writer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/blob_log_writer.cc [ 11%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/sst_partitioner.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/sst_partitioner.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/sst_partitioner.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/sst_partitioner.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/compaction/sst_partitioner.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_source.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/blob_source.cc In file included from /usr/include/c++/13/vector:72, from /usr/include/c++/13/functional:64, from /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_service_job.cc:11: /usr/include/c++/13/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&, const long long unsigned int&, long long unsigned int, const bool&, const std::array&}; _Tp = rocksdb::CompactionServiceOutputFile; _Alloc = std::allocator]': /usr/include/c++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445: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-8.9.1/db/compaction/compaction_service_job.cc:266:44: /usr/include/c++/13/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&, 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-8.9.1/db/compaction/compaction_service_job.cc:332:50: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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-8.9.1/include/rocksdb/utilities/options_type.h:1125:29: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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-8.9.1/include/rocksdb/utilities/options_type.h:1125:29: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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-8.9.1/db/compaction/compaction_outputs.h:54:26, inlined from 'rocksdb::CompactionServiceJobStatus rocksdb::CompactionJob::ProcessKeyValueCompactionWithCompactionService(rocksdb::SubcompactionState*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_service_job.cc:197:37: /usr/include/c++/13/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-shared.dir/db/compaction/subcompaction_state.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/subcompaction_state.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/subcompaction_state.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/subcompaction_state.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/compaction/subcompaction_state.cc [ 11%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/convenience.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/convenience.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/convenience.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/convenience.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/convenience.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/prefetch_buffer_collection.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/blob/prefetch_buffer_collection.cc [ 11%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_filesnapshot.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_filesnapshot.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_filesnapshot.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_filesnapshot.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/db_filesnapshot.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/builder.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/builder.cc [ 12%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/compacted_db_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/compacted_db_impl.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/compacted_db_impl.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/compacted_db_impl.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/db_impl/compacted_db_impl.cc [ 12%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/db_filesnapshot.cc:12: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: 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-8.9.1/db/db_filesnapshot.cc:116:37: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/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-shared.dir/db/db_impl/db_impl_write.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_write.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_write.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_write.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_write.cc [ 12%] Building CXX object CMakeFiles/rocksdb.dir/db/c.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/c.cc In file included from /usr/include/c++/13/vector:65, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/compacted_db_impl.h:8, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/compacted_db_impl.cc:6: /usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:66:8: /usr/include/c++/13/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 12%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_compaction_flush.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_compaction_flush.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_compaction_flush.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_compaction_flush.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc [ 12%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_files.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_files.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_files.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_files.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_files.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/c.cc:15: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:65: /usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:1619: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++/13/bits/vector.tcc:238:44: /usr/include/c++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::DBOptions::DBOptions(const rocksdb::DBOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:460:8: /usr/include/c++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:66:8: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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++/13/bits/stl_vector.h:1296: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-8.9.1/db/c.cc:5726:30: /usr/include/c++/13/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++/13/bits/stl_vector.h:1296: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-8.9.1/db/c.cc:6520:30: /usr/include/c++/13/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++/13/bits/stl_vector.h:1296: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-8.9.1/db/c.cc:920:30: /usr/include/c++/13/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++/13/bits/stl_vector.h:1296: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-8.9.1/db/c.cc:986:30: /usr/include/c++/13/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++/13/bits/stl_vector.h:1296: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-8.9.1/db/c.cc:887:30: /usr/include/c++/13/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++/13/bits/stl_vector.h:1296: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-8.9.1/db/c.cc:954:30: /usr/include/c++/13/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-8.9.1/db/c.cc:1019:33: /usr/include/c++/13/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++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/builder.h:11, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:12: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: 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-8.9.1/db/snapshot_impl.h:139:22, inlined from 'std::vector rocksdb::SnapshotList::GetAll(rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-8.9.1/db/snapshot_impl.h:114:11, inlined from 'void rocksdb::DBImpl::GetSnapshotContext(rocksdb::JobContext*, std::vector*, rocksdb::SequenceNumber*, rocksdb::SnapshotChecker**)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:4285:37: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 [ 12%] Building CXX object CMakeFiles/rocksdb.dir/db/column_family.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/column_family.cc In file included from /usr/include/c++/13/vector:72, from /usr/include/c++/13/functional:64, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.cc:9: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyData* const&, const long long unsigned int&, rocksdb::SuperVersionContext*, rocksdb::FlushReason&}; _Tp = rocksdb::DBImpl::BGFlushArg; _Alloc = std::allocator]': /usr/include/c++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/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, rocksdb::CompactionJobInfo*) const' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:4164:63: /usr/include/c++/13/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, rocksdb::CompactionJobInfo*) const' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:4175:62: /usr/include/c++/13/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-8.9.1/util/autovector.h:303:25, inlined from 'rocksdb::Status rocksdb::DBImpl::FlushMemTable(rocksdb::ColumnFamilyData*, const rocksdb::FlushOptions&, rocksdb::FlushReason, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:2293:42: /usr/include/c++/13/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-8.9.1/util/autovector.h:303:25, inlined from 'rocksdb::Status rocksdb::DBImpl::FlushMemTable(rocksdb::ColumnFamilyData*, const rocksdb::FlushOptions&, rocksdb::FlushReason, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:2321:46: /usr/include/c++/13/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++/13/map:62, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:16: /usr/include/c++/13/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++/13/bits/stl_tree.h:2458: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 2458 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/map:63: /usr/include/c++/13/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++/13/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ /usr/include/c++/13/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*&, rocksdb::PinnableWideColumns*&, std::__cxx11::basic_string, std::allocator >*, rocksdb::Status*}; _Tp = rocksdb::KeyContext; _Alloc = std::allocator]': /usr/include/c++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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*&, rocksdb::PinnableWideColumns*&, std::__cxx11::basic_string, std::allocator >*, rocksdb::Status*}; _Tp = rocksdb::KeyContext; _Alloc = std::allocator]': /usr/include/c++/13/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 'void rocksdb::autovector::push_back(const T&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:283:22, inlined from 'rocksdb::Status rocksdb::DBImpl::RetryFlushesForErrorRecovery(rocksdb::FlushReason, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:2550:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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 'void rocksdb::autovector::push_back(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'rocksdb::Status rocksdb::DBImpl::RetryFlushesForErrorRecovery(rocksdb::FlushReason, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:2554:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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-8.9.1/db/db_impl/db_impl_compaction_flush.cc:516:40: /usr/include/c++/13/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++/13/vector:72, from /usr/include/c++/13/functional:64, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_files.cc:13: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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-8.9.1/db/db_impl/db_impl.cc:4953:29: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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++/13/bits/stl_vector.h:1296:21, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteOptionsFile(bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.cc:5324:22: /usr/include/c++/13/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::ColumnFamilyData* const&, const long long unsigned int&, rocksdb::SuperVersionContext*, rocksdb::FlushReason&}; _Tp = rocksdb::DBImpl::BGFlushArg; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {rocksdb::ColumnFamilyData* const&, const long long unsigned int&, rocksdb::SuperVersionContext*, rocksdb::FlushReason&}; T = rocksdb::DBImpl::BGFlushArg; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:303:25, inlined from 'rocksdb::Status rocksdb::DBImpl::BackgroundFlush(bool*, rocksdb::JobContext*, rocksdb::LogBuffer*, rocksdb::FlushReason*, bool*, rocksdb::Env::Priority)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:3199:33: /usr/include/c++/13/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++/13/vector:66: 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-8.9.1/db/db_impl/db_impl_files.cc:309:48: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/13/deque:65, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:12: /usr/include/c++/13/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++/13/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++/13/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:390:7: /usr/include/c++/13/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&, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28: /usr/include/c++/13/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 '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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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&}; _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-8.9.1/util/autovector.h:303:25, inlined from 'void rocksdb::DBImpl::PurgeObsoleteFiles(rocksdb::JobContext&, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_files.cc:642:35: /usr/include/c++/13/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++/13/deque:65, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:12: /usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:390:7: /usr/include/c++/13/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 12%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_open.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_open.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_open.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_open.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc 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-8.9.1/db/version_edit.h:594:32, inlined from 'void rocksdb::DBImpl::MarkLogsSynced(uint64_t, bool, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.cc:1701:28: /usr/include/c++/13/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++/13/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*]': /usr/include/c++/13/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++/13/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*]' at /usr/include/c++/13/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*; _Tp = rocksdb::IngestedFileInfo]' at /usr/include/c++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator > >; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:1619:35, inlined from 'void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator > >; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/13/bits/vector.tcc:324:40, inlined from 'void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; = void; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:826:17, inlined from 'rocksdb::autovector& rocksdb::autovector::assign(const rocksdb::autovector&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:370:15, inlined from 'rocksdb::autovector::autovector(const rocksdb::autovector&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:327:47, inlined from 'rocksdb::ExternalSstFileIngestionJob::ExternalSstFileIngestionJob(const rocksdb::ExternalSstFileIngestionJob&)' at /build/reproducible-path/rocksdb-8.9.1/db/external_sst_file_ingestion_job.h:78:7, inlined from 'void std::_Construct(_Tp*, _Args&& ...) [with _Tp = rocksdb::ExternalSstFileIngestionJob; _Args = {const rocksdb::ExternalSstFileIngestionJob&}]' at /usr/include/c++/13/bits/stl_construct.h:119:7, inlined from '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const rocksdb::ExternalSstFileIngestionJob*; _ForwardIterator = rocksdb::ExternalSstFileIngestionJob*]' at /usr/include/c++/13/bits/stl_uninitialized.h:120:21: /usr/include/c++/13/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++/13/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::VersionSet*, rocksdb::ColumnFamilyData*&, const rocksdb::ImmutableDBOptions&, rocksdb::MutableDBOptions&, const rocksdb::FileOptions&, rocksdb::SnapshotList*, const rocksdb::IngestExternalFileOptions&, rocksdb::Directories*, rocksdb::EventLogger*, std::shared_ptr&}; _Tp = rocksdb::ExternalSstFileIngestionJob; _Alloc = std::allocator]': /usr/include/c++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::VersionSet*, rocksdb::ColumnFamilyData*&, const rocksdb::ImmutableDBOptions&, rocksdb::MutableDBOptions&, const rocksdb::FileOptions&, rocksdb::SnapshotList*, const rocksdb::IngestExternalFileOptions&, rocksdb::Directories*, rocksdb::EventLogger*, std::shared_ptr&}; _Tp = rocksdb::ExternalSstFileIngestionJob; _Alloc = std::allocator]', inlined from 'virtual rocksdb::Status rocksdb::DBImpl::IngestExternalFiles(const std::vector&)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.cc:5745:32: /usr/include/c++/13/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-shared.dir/db/db_impl/db_impl_debug.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_debug.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_debug.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_debug.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_debug.cc In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]', inlined from 'void rocksdb::DBImpl::PersistStats()' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.cc:1015:74: /usr/include/c++/13/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]', inlined from 'void rocksdb::DBImpl::PersistStats()' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.cc:1015:33: /usr/include/c++/13/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:65, from /build/reproducible-path/rocksdb-8.9.1/db/column_family.h:15, from /build/reproducible-path/rocksdb-8.9.1/db/column_family.cc:10: /usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:66:8: /usr/include/c++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:1619: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++/13/bits/vector.tcc:238:44, inlined from 'rocksdb::ColumnFamilyOptions rocksdb::SanitizeOptions(const ImmutableDBOptions&, const ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-8.9.1/db/column_family.cc:356:34: /usr/include/c++/13/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/compaction/compaction.cc [ 14%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_experimental.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_experimental.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_experimental.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_experimental.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_experimental.cc In file included from /usr/include/c++/13/bits/stl_algo.h:61, from /usr/include/c++/13/algorithm:61, from /build/reproducible-path/rocksdb-8.9.1/util/coding.h:19, from /build/reproducible-path/rocksdb-8.9.1/db/dbformat.h:21, from /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h:14, from /build/reproducible-path/rocksdb-8.9.1/db/builder.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:11: /usr/include/c++/13/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++/13/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++/13/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++/13/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1918 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/13/bits/stl_algo.h:1932:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1932 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1812 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/column_family.h:15, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_debug.cc:12: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: 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-8.9.1/db/db_impl/db_impl_debug.cc:76:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 14%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_readonly.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_readonly.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_readonly.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_readonly.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_readonly.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/builder.h:11: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445: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-8.9.1/db/db_impl/db_impl_open.cc:124:33: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445: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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28: /usr/include/c++/13/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++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 14%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/compaction/compaction_iterator.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_experimental.cc:11: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445: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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28: /usr/include/c++/13/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++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 14%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_secondary.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_secondary.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_secondary.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_secondary.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.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++/13/bits/stl_vector.h:1296:21, inlined from 'static rocksdb::Status rocksdb::DB::Open(const rocksdb::Options&, const std::string&, rocksdb::DB**)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:1788:28: /usr/include/c++/13/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++/13/bits/stl_vector.h:1296:21, inlined from 'static rocksdb::Status rocksdb::DB::Open(const rocksdb::Options&, const std::string&, rocksdb::DB**)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:1791:30: /usr/include/c++/13/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 'void rocksdb::SnapshotList::GetAll(std::vector*, rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-8.9.1/db/snapshot_impl.h:139:22, inlined from 'std::vector rocksdb::SnapshotList::GetAll(rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-8.9.1/db/snapshot_impl.h:114:11, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteLevel0TableForRecovery(int, rocksdb::ColumnFamilyData*, rocksdb::MemTable*, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:1650:62: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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-8.9.1/db/version_edit.h:545:38, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteLevel0TableForRecovery(int, rocksdb::ColumnFamilyData*, rocksdb::MemTable*, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:1741:24: /usr/include/c++/13/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 'void rocksdb::autovector::push_back(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddBlobFile(rocksdb::BlobFileAddition)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:546:35, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteLevel0TableForRecovery(int, rocksdb::ColumnFamilyData*, rocksdb::MemTable*, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:1741:24: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, uint64_t*, RecoveryContext*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:766:23: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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++/13/bits/stl_algo.h:4861:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, uint64_t*, RecoveryContext*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:768:16: /usr/include/c++/13/bits/stl_algo.h:1947:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1947 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1948 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1949 | __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++/13/bits/stl_algo.h:1950:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/13/bits/stl_algo.h:4861:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, uint64_t*, RecoveryContext*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:768:16: /usr/include/c++/13/bits/stl_algo.h:1859:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1859 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1864:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1864 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 14%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_info_dumper.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_info_dumper.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_info_dumper.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_info_dumper.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/db_info_dumper.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_readonly.h:10, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_readonly.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:65: /usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:66:8: /usr/include/c++/13/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 = {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++/13/bits/stl_vector.h:1296:21, inlined from 'static rocksdb::Status rocksdb::DB::OpenForReadOnly(const rocksdb::Options&, const std::string&, rocksdb::DB**, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_readonly.cc:298:28: /usr/include/c++/13/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-shared.dir/db/db_iter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_iter.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_iter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_iter.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/db_iter.cc [ 14%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_picker.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/compaction/compaction_picker.cc [ 14%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/dbformat.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/dbformat.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/dbformat.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/dbformat.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/dbformat.cc In file included from /usr/include/c++/13/bits/stl_algo.h:61, from /usr/include/c++/13/functional:67, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.h:12, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.cc:6: /usr/include/c++/13/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++/13/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++/13/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++/13/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1918 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/13/bits/stl_algo.h:1932:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1932 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1812 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 [ 14%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/error_handler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/error_handler.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/error_handler.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/error_handler.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/error_handler.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.h:10: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: 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-8.9.1/db/db_impl/db_impl_secondary.cc:127:22: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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++/13/bits/stl_algo.h:4861:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.cc:132:14: /usr/include/c++/13/bits/stl_algo.h:1947:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1947 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1948 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1949 | __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++/13/bits/stl_algo.h:1950:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/13/bits/stl_algo.h:4861:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.cc:132:14: /usr/include/c++/13/bits/stl_algo.h:1859:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1859 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1864:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1864 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/map:62, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:16: /usr/include/c++/13/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++/13/bits/stl_tree.h:2489:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2489 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/stl_tree.h:2458:7: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2458 | _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++/13/bits/stl_map.h:1088:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.cc:145:25: /usr/include/c++/13/bits/stl_tree.h:1210:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1210 | _M_erase_aux(__position); | ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/13/map:63: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {std::pair > >}; _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::__enable_if_t, _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++/13/bits/stl_map.h:860:27, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.cc:174:24: /usr/include/c++/13/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map >::const_iterator' {aka 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/stl_tree.h:2503:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2503 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_tree.h:2503: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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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-8.9.1/db/db_impl/db_impl_secondary.cc:742:31: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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++/13/bits/stl_map.h:1139:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::RecoverLogFiles(const std::vector&, rocksdb::SequenceNumber*, std::unordered_set*, rocksdb::JobContext*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.cc:337:23: /usr/include/c++/13/bits/stl_tree.h:1239:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1239 | _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-8.9.1/db/db_impl/db_impl_secondary.cc:974:28: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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-8.9.1/db/db_impl/db_impl_secondary.cc:979:33: /usr/include/c++/13/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-shared.dir/db/event_helpers.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/event_helpers.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/event_helpers.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/event_helpers.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/event_helpers.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h:10, from /build/reproducible-path/rocksdb-8.9.1/monitoring/instrumented_mutex.h:8, from /build/reproducible-path/rocksdb-8.9.1/db/error_handler.h:9, from /build/reproducible-path/rocksdb-8.9.1/db/error_handler.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, inlined from 'void rocksdb::ErrorHandler::AddFilesToQuarantine(rocksdb::autovector*>)' at /build/reproducible-path/rocksdb-8.9.1/db/error_handler.cc:507:37: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/experimental.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/experimental.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/experimental.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/experimental.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/experimental.cc [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/external_sst_file_ingestion_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/external_sst_file_ingestion_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/external_sst_file_ingestion_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/external_sst_file_ingestion_job.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/external_sst_file_ingestion_job.cc [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/compaction/compaction_job.cc [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/file_indexer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/file_indexer.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/file_indexer.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/file_indexer.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/file_indexer.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h:18, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/experimental.h:8, from /build/reproducible-path/rocksdb-8.9.1/db/experimental.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445: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 >&, 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-8.9.1/db/version_util.h:68:31, inlined from 'rocksdb::OfflineManifestWriter::OfflineManifestWriter(const rocksdb::DBOptions&, const std::string&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_util.h:23:9: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/flush_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/flush_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/flush_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/flush_job.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/flush_job.cc 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28, inlined from 'rocksdb::Status rocksdb::experimental::UpdateManifestForFilesState(const rocksdb::DBOptions&, const std::string&, const std::vector&, const UpdateManifestForFilesStateOptions&)' at /build/reproducible-path/rocksdb-8.9.1/db/experimental.cc:98:27: /usr/include/c++/13/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++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35, inlined from 'rocksdb::Status rocksdb::experimental::UpdateManifestForFilesState(const rocksdb::DBOptions&, const std::string&, const std::vector&, const UpdateManifestForFilesStateOptions&)' at /build/reproducible-path/rocksdb-8.9.1/db/experimental.cc:98:27: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/flush_scheduler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/flush_scheduler.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/flush_scheduler.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/flush_scheduler.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/flush_scheduler.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/external_sst_file_ingestion_job.h:9, from /build/reproducible-path/rocksdb-8.9.1/db/external_sst_file_ingestion_job.cc:7: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445: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-8.9.1/util/autovector.h:303: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-8.9.1/db/external_sst_file_ingestion_job.cc:64:34: /usr/include/c++/13/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-8.9.1/db/version_edit.h:503:28, inlined from 'rocksdb::Status rocksdb::ExternalSstFileIngestionJob::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/external_sst_file_ingestion_job.cc:491:18: /usr/include/c++/13/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++/13/vector:66: 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(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:504:35, inlined from 'rocksdb::Status rocksdb::ExternalSstFileIngestionJob::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/external_sst_file_ingestion_job.cc:491:18: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/forward_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/forward_iterator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/forward_iterator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/forward_iterator.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/forward_iterator.cc [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/import_column_family_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/import_column_family_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/import_column_family_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/import_column_family_job.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/import_column_family_job.cc In file included from /usr/include/c++/13/vector:72, from /usr/include/c++/13/functional:64, from /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:10: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445: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-8.9.1/db/version_edit.h:503:28, inlined from 'void rocksdb::SubcompactionState::AddOutputsEdit(rocksdb::VersionEdit*) const' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/subcompaction_state.h:173:24, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1746:31: /usr/include/c++/13/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++/13/vector:66: 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(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:504:35, inlined from 'void rocksdb::SubcompactionState::AddOutputsEdit(rocksdb::VersionEdit*) const' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/subcompaction_state.h:173:24, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1746:31: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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-8.9.1/db/version_edit.h:503:28, inlined from 'void rocksdb::SubcompactionState::AddOutputsEdit(rocksdb::VersionEdit*) const' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/subcompaction_state.h:176:24, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1746:31: /usr/include/c++/13/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 '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(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:504:35, inlined from 'void rocksdb::SubcompactionState::AddOutputsEdit(rocksdb::VersionEdit*) const' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/subcompaction_state.h:176:24, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1746:31: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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-8.9.1/db/version_edit.h:545:38, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1749:24: /usr/include/c++/13/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 'void rocksdb::autovector::push_back(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddBlobFile(rocksdb::BlobFileAddition)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:546:35, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1749:24: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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&, 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-8.9.1/db/version_edit.h:571:37, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&, bool*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1772:29: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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-8.9.1/db/compaction/compaction_outputs.h:54:26, inlined from 'rocksdb::Status rocksdb::CompactionJob::OpenCompactionOutputFile(rocksdb::SubcompactionState*, rocksdb::CompactionOutputs&)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.cc:1931:22: /usr/include/c++/13/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++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/flush_job.h:18, from /build/reproducible-path/rocksdb-8.9.1/db/flush_job.cc:10: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445: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::BlobFileAdditionInfo}; _Tp = rocksdb::BlobFileAdditionInfo; _Alloc = std::allocator]', inlined from 'std::unique_ptr rocksdb::FlushJob::GetFlushJobInfo() const' at /build/reproducible-path/rocksdb-8.9.1/db/flush_job.cc:1129:48: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28: /usr/include/c++/13/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++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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-8.9.1/db/compaction/compaction_job.cc:265:48: /usr/include/c++/13/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 'void rocksdb::autovector::push_back(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'rocksdb::VersionEdit::SetBlobFileAdditions(BlobFileAdditions)::' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:562:41, inlined from '_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = __gnu_cxx::__normal_iterator >; _Funct = rocksdb::VersionEdit::SetBlobFileAdditions(BlobFileAdditions)::]' at /usr/include/c++/13/bits/stl_algo.h:3833:5, inlined from 'void rocksdb::VersionEdit::SetBlobFileAdditions(BlobFileAdditions)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:559:18, inlined from 'rocksdb::Status rocksdb::FlushJob::WriteLevel0Table()' at /build/reproducible-path/rocksdb-8.9.1/db/flush_job.cc:1050:32: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_fifo.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/compaction/compaction_picker_fifo.cc [ 16%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/internal_stats.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/internal_stats.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/internal_stats.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/internal_stats.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/internal_stats.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:16, from /build/reproducible-path/rocksdb-8.9.1/db/version_builder.h:14, from /build/reproducible-path/rocksdb-8.9.1/db/import_column_family_job.cc:7: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445: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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28, inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/import_column_family_job.cc:209:33: /usr/include/c++/13/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++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35, inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/import_column_family_job.cc:209:33: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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-8.9.1/db/version_edit.h:503:28, inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/import_column_family_job.cc:237:22: /usr/include/c++/13/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 '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(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:504:35, inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/import_column_family_job.cc:237:22: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Prepare(uint64_t, rocksdb::SuperVersion*)' at /build/reproducible-path/rocksdb-8.9.1/db/import_column_family_job.cc:60:39: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 16%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/logs_with_prep_tracker.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/logs_with_prep_tracker.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/logs_with_prep_tracker.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/logs_with_prep_tracker.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/logs_with_prep_tracker.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/logs_with_prep_tracker.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/logs_with_prep_tracker.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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++/13/bits/stl_vector.h:1391:30, inlined from 'void rocksdb::LogsWithPrepTracker::MarkLogAsContainingPrepSection(uint64_t)' at /build/reproducible-path/rocksdb-8.9.1/db/logs_with_prep_tracker.cc:39:27: /usr/include/c++/13/bits/vector.tcc:372:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 372 | _M_realloc_insert(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 16%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/log_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/log_reader.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/log_reader.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/log_reader.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/log_reader.cc [ 16%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/log_writer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/log_writer.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/log_writer.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/log_writer.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/log_writer.cc [ 16%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_level.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/compaction/compaction_picker_level.cc [ 16%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/malloc_stats.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/malloc_stats.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/malloc_stats.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/malloc_stats.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/malloc_stats.cc [ 16%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc [ 16%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/memtable_list.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/memtable_list.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/memtable_list.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/memtable_list.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/memtable_list.cc [ 16%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_universal.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/compaction/compaction_picker_universal.cc [ 17%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/merge_helper.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/merge_helper.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/merge_helper.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/merge_helper.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/merge_helper.cc /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc:271:1: error: insn does not satisfy its constraints: 271 | } | ^ (insn 275 274 276 13 (set (reg:CC_DNE 100 cc) (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [164]) (const_int -1 [0xffffffffffffffff])) (ne:SI (reg:SI 1 r1 [+4 ]) (const_int -1 [0xffffffffffffffff]))) (const_int 0 [0]))) "/usr/include/c++/13/bits/atomic_base.h":577:36 343 {*cmp_ior} (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) (expr_list:REG_DEAD (reg:SI 0 r0 [164]) (nil)))) during RTL pass: cprop_hardreg /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc:271:1: internal compiler error: in extract_constrain_insn, at recog.cc:2692 0xea4edf internal_error(char const*, ...) ???:0 0x1fb1bd fancy_abort(char const*, int, char const*) ???:0 0x1f9e7b _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ???:0 0x1f9ead _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ???:0 0x6928e7 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-shared.dir/db/merge_operator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/merge_operator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/merge_operator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/merge_operator.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/merge_operator.cc [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_service_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/compaction/compaction_service_job.cc [ 18%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/output_validator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/output_validator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/output_validator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/output_validator.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/output_validator.cc [ 18%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/periodic_task_scheduler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/periodic_task_scheduler.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/periodic_task_scheduler.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/periodic_task_scheduler.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/periodic_task_scheduler.cc [ 18%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/range_del_aggregator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/range_del_aggregator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/range_del_aggregator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/range_del_aggregator.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.cc [ 18%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/range_tombstone_fragmenter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/range_tombstone_fragmenter.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/range_tombstone_fragmenter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/range_tombstone_fragmenter.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.cc In file included from /usr/include/c++/13/map:62, from /build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h:11, from /build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.cc:6: /usr/include/c++/13/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++/13/bits/stl_tree.h:2458:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 2458 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/map:63: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {const long long unsigned int&, rocksdb::RangeDelAggregator::StripeRep}; _Key = long long unsigned int; _Tp = rocksdb::RangeDelAggregator::StripeRep; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind >::other>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::emplace(_Args&& ...) [with _Args = {const long long unsigned int&, rocksdb::RangeDelAggregator::StripeRep}; _Key = long long unsigned int; _Tp = rocksdb::RangeDelAggregator::StripeRep; _Compare = std::less; _Alloc = std::allocator >]' at /usr/include/c++/13/bits/stl_map.h:601:22, inlined from 'virtual void rocksdb::CompactionRangeDelAggregator::AddTombstones(std::unique_ptr, const rocksdb::InternalKey*, const rocksdb::InternalKey*)' at /build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.cc:388:45: /usr/include/c++/13/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map::const_iterator' {aka 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 18%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/repair.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/repair.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/repair.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/repair.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/repair.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h:12, from /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/set:62, from /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h:10: /usr/include/c++/13/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++/13/bits/stl_tree.h:2458:7: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2458 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/map:63, from /build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h:8, from /build/reproducible-path/rocksdb-8.9.1/monitoring/perf_step_timer.h:8, from /build/reproducible-path/rocksdb-8.9.1/monitoring/perf_context_imp.h:7, from /build/reproducible-path/rocksdb-8.9.1/util/user_comparator_wrapper.h:11, from /build/reproducible-path/rocksdb-8.9.1/db/dbformat.h:22, from /build/reproducible-path/rocksdb-8.9.1/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++/13/bits/stl_map.h:601:22, inlined from 'std::map > rocksdb::FragmentedRangeTombstoneIterator::SplitBySnapshot(const std::vector&)' at /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.cc:493:21: /usr/include/c++/13/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map >::const_iterator' {aka 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, inlined from 'rocksdb::FragmentedRangeTombstoneList::FragmentTombstones(std::unique_ptr >, const rocksdb::InternalKeyComparator&, bool, const std::vector&)::' at /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.cc:129:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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::FragmentedRangeTombstoneList::FragmentTombstones(std::unique_ptr >, const rocksdb::InternalKeyComparator&, bool, const std::vector&)::' at /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.cc:158:38: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:72, from /usr/include/c++/13/functional:64, from /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_job.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_service_job.cc:11: /usr/include/c++/13/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&, const long long unsigned int&, long long unsigned int, const bool&, const std::array&}; _Tp = rocksdb::CompactionServiceOutputFile; _Alloc = std::allocator]': /usr/include/c++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ [ 18%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/seqno_to_time_mapping.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/seqno_to_time_mapping.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/seqno_to_time_mapping.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/seqno_to_time_mapping.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.cc /usr/include/c++/13/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++/13/bits/vector.tcc:445: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-8.9.1/db/compaction/compaction_service_job.cc:266:44: /usr/include/c++/13/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&, 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-8.9.1/db/compaction/compaction_service_job.cc:332:50: /usr/include/c++/13/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)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Preprocessed source stored into /tmp/ccLF2ji2.out file, please attach this to your bugreport. === BEGIN GCC DUMP === 19959: // Target: arm-linux-gnueabihf 19959: // Configured with: ../src/configure -v --with-pkgversion='Debian 13.2.0-13' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a+fp --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf 19959: // Thread model: posix 19959: // Supported LTO compression algorithms: zlib zstd 19959: // gcc version 13.2.0 (Debian 13.2.0-13) 19959: // 19959: // /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': 19959: // /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc:271:1: error: insn does not satisfy its constraints: 19959: // 271 | } 19959: // | ^ 19959: // (insn 275 274 276 13 (set (reg:CC_DNE 100 cc) 19959: // (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [164]) 19959: // (const_int -1 [0xffffffffffffffff])) 19959: // (ne:SI (reg:SI 1 r1 [+4 ]) 19959: // (const_int -1 [0xffffffffffffffff]))) 19959: // (const_int 0 [0]))) "/usr/include/c++/13/bits/atomic_base.h":577:36 343 {*cmp_ior} 19959: // (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) 19959: // (expr_list:REG_DEAD (reg:SI 0 r0 [164]) 19959: // (nil)))) 19959: // during RTL pass: cprop_hardreg 19959: // /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc:271:1: internal compiler error: in extract_constrain_insn, at recog.cc:2692 19959: // 0xea4edf internal_error(char const*, ...) 19959: // ???:0 19959: // 0x1fb1bd fancy_abort(char const*, int, char const*) 19959: // ???:0 19959: // 0x1f9e7b _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) 19959: // ???:0 19959: // 0x1f9ead _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) 19959: // ???:0 19959: // 0x6928e7 extract_constrain_insn(rtx_insn*) 19959: // ???:0 19959: // Please submit a full bug report, with preprocessed source (by using -freport-bug). 19959: // Please include the complete backtrace with any bug report. 19959: // See for instructions. 19959: 19959: // /usr/libexec/gcc/arm-linux-gnueabihf/13/cc1plus -quiet -I /build/reproducible-path/rocksdb-8.9.1 -I /build/reproducible-path/rocksdb-8.9.1/include -imultilib . -imultiarch arm-linux-gnueabihf -MD CMakeFiles/rocksdb-shared.dir/db/memtable.cc.d -MF CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o.d -MT CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o -D_GNU_SOURCE -D_REENTRANT -D BZIP2 -D GFLAGS=1 -D GFLAGS_IS_A_DLL=0 -D LZ4 -D OS_LINUX -D ROCKSDB_AUXV_GETAUXVAL_PRESENT -D ROCKSDB_FALLOCATE_PRESENT -D ROCKSDB_LIB_IO_POSIX -D ROCKSDB_MALLOC_USABLE_SIZE -D ROCKSDB_NO_DYNAMIC_EXTENSION -D ROCKSDB_PLATFORM_POSIX -D ROCKSDB_PTHREAD_ADAPTIVE_MUTEX -D ROCKSDB_RANGESYNC_PRESENT -D ROCKSDB_SCHED_GETCPU_PRESENT -D SNAPPY -D ZLIB -D ZSTD -D rocksdb_shared_EXPORTS -D _FORTIFY_SOURCE=2 -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc -quiet -dumpdir CMakeFiles/rocksdb-shared.dir/db/ -dumpbase memtable.cc.cc -dumpbase-ext .cc -mfloat-abi=hard -mtls-dialect=gnu -mthumb -mlibarch=armv8-a+crc+crypto -march=armv8-a+crc+crypto -g -O2 -Wformat=1 -Werror=format-security -Wdate-time -Wextra -Wall -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual=2 -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -Wno-unused-function -std=gnu++17 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -fno-omit-frame-pointer -fno-builtin-memcmp -fPIC -o - -frandom-seed=0 -fdump-noaddr 19959: 19959: # 0 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf//" 19959: # 0 "" 19959: # 0 "" 19959: # 1 "/usr/include/stdc-predef.h" 1 3 4 19959: # 0 "" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: 19959: # 1 "/usr/include/c++/13/atomic" 1 3 19959: # 35 "/usr/include/c++/13/atomic" 3 19959: 19959: # 36 "/usr/include/c++/13/atomic" 3 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/atomic_base.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/atomic_base.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/atomic_base.h" 3 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 1 3 19959: # 306 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 3 19959: 19959: # 306 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 3 19959: namespace std 19959: { 19959: typedef unsigned int size_t; 19959: typedef int ptrdiff_t; 19959: 19959: 19959: typedef decltype(nullptr) nullptr_t; 19959: 19959: 19959: #pragma GCC visibility push(default) 19959: 19959: 19959: extern "C++" __attribute__ ((__noreturn__, __always_inline__)) 19959: inline void __terminate() noexcept 19959: { 19959: void terminate() noexcept __attribute__ ((__noreturn__)); 19959: terminate(); 19959: } 19959: #pragma GCC visibility pop 19959: } 19959: # 339 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 3 19959: namespace std 19959: { 19959: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 19959: } 19959: namespace __gnu_cxx 19959: { 19959: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 19959: } 19959: # 532 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 3 19959: namespace std 19959: { 19959: #pragma GCC visibility push(default) 19959: 19959: 19959: 19959: 19959: constexpr inline bool 19959: __is_constant_evaluated() noexcept 19959: { 19959: 19959: 19959: 19959: 19959: 19959: return __builtin_is_constant_evaluated(); 19959: 19959: 19959: 19959: } 19959: #pragma GCC visibility pop 19959: } 19959: # 679 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 3 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/os_defines.h" 1 3 19959: # 39 "/usr/include/arm-linux-gnueabihf/c++/13/bits/os_defines.h" 3 19959: # 1 "/usr/include/features.h" 1 3 4 19959: # 393 "/usr/include/features.h" 3 4 19959: # 1 "/usr/include/features-time64.h" 1 3 4 19959: # 20 "/usr/include/features-time64.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 19959: # 21 "/usr/include/features-time64.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 19959: # 22 "/usr/include/features-time64.h" 2 3 4 19959: # 394 "/usr/include/features.h" 2 3 4 19959: # 490 "/usr/include/features.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 1 3 4 19959: # 561 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 19959: # 562 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 19959: # 563 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 19959: # 491 "/usr/include/features.h" 2 3 4 19959: # 514 "/usr/include/features.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 1 3 4 19959: # 10 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs-hard.h" 1 3 4 19959: # 11 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 2 3 4 19959: # 515 "/usr/include/features.h" 2 3 4 19959: # 40 "/usr/include/arm-linux-gnueabihf/c++/13/bits/os_defines.h" 2 3 19959: # 680 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 2 3 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/cpu_defines.h" 1 3 19959: # 683 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 2 3 19959: # 882 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 3 19959: # 1 "/usr/include/c++/13/pstl/pstl_config.h" 1 3 19959: # 883 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 2 3 19959: # 36 "/usr/include/c++/13/bits/atomic_base.h" 2 3 19959: # 1 "/usr/include/c++/13/new" 1 3 19959: # 38 "/usr/include/c++/13/new" 3 19959: 19959: # 39 "/usr/include/c++/13/new" 3 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/exception.h" 1 3 19959: # 34 "/usr/include/c++/13/bits/exception.h" 3 19959: 19959: # 35 "/usr/include/c++/13/bits/exception.h" 3 19959: 19959: 19959: 19959: extern "C++" { 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: # 59 "/usr/include/c++/13/bits/exception.h" 3 19959: class exception 19959: { 19959: public: 19959: exception() noexcept { } 19959: virtual ~exception() noexcept; 19959: 19959: exception(const exception&) = default; 19959: exception& operator=(const exception&) = default; 19959: exception(exception&&) = default; 19959: exception& operator=(exception&&) = default; 19959: 19959: 19959: 19959: 19959: virtual const char* 19959: what() const noexcept; 19959: }; 19959: 19959: 19959: 19959: } 19959: 19959: } 19959: # 42 "/usr/include/c++/13/new" 2 3 19959: 19959: #pragma GCC visibility push(default) 19959: 19959: extern "C++" { 19959: 19959: namespace std 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: class bad_alloc : public exception 19959: { 19959: public: 19959: bad_alloc() throw() { } 19959: 19959: 19959: bad_alloc(const bad_alloc&) = default; 19959: bad_alloc& operator=(const bad_alloc&) = default; 19959: 19959: 19959: 19959: 19959: virtual ~bad_alloc() throw(); 19959: 19959: 19959: virtual const char* what() const throw(); 19959: }; 19959: 19959: 19959: class bad_array_new_length : public bad_alloc 19959: { 19959: public: 19959: bad_array_new_length() throw() { } 19959: 19959: 19959: 19959: virtual ~bad_array_new_length() throw(); 19959: 19959: 19959: virtual const char* what() const throw(); 19959: }; 19959: 19959: 19959: 19959: enum class align_val_t: size_t {}; 19959: 19959: 19959: struct nothrow_t 19959: { 19959: 19959: explicit nothrow_t() = default; 19959: 19959: }; 19959: 19959: extern const nothrow_t nothrow; 19959: 19959: 19959: 19959: typedef void (*new_handler)(); 19959: 19959: 19959: 19959: new_handler set_new_handler(new_handler) throw(); 19959: 19959: 19959: 19959: new_handler get_new_handler() noexcept; 19959: 19959: } 19959: # 126 "/usr/include/c++/13/new" 3 19959: [[__nodiscard__]] void* operator new(std::size_t) 19959: __attribute__((__externally_visible__)); 19959: [[__nodiscard__]] void* operator new[](std::size_t) 19959: __attribute__((__externally_visible__)); 19959: void operator delete(void*) noexcept 19959: __attribute__((__externally_visible__)); 19959: void operator delete[](void*) noexcept 19959: __attribute__((__externally_visible__)); 19959: 19959: void operator delete(void*, std::size_t) noexcept 19959: __attribute__((__externally_visible__)); 19959: void operator delete[](void*, std::size_t) noexcept 19959: __attribute__((__externally_visible__)); 19959: 19959: [[__nodiscard__]] void* operator new(std::size_t, const std::nothrow_t&) noexcept 19959: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 19959: [[__nodiscard__]] void* operator new[](std::size_t, const std::nothrow_t&) noexcept 19959: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 19959: void operator delete(void*, const std::nothrow_t&) noexcept 19959: __attribute__((__externally_visible__)); 19959: void operator delete[](void*, const std::nothrow_t&) noexcept 19959: __attribute__((__externally_visible__)); 19959: 19959: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t) 19959: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 19959: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) 19959: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 19959: void operator delete(void*, std::align_val_t) 19959: noexcept __attribute__((__externally_visible__)); 19959: void operator delete(void*, std::align_val_t, const std::nothrow_t&) 19959: noexcept __attribute__((__externally_visible__)); 19959: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t) 19959: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 19959: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) 19959: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 19959: void operator delete[](void*, std::align_val_t) 19959: noexcept __attribute__((__externally_visible__)); 19959: void operator delete[](void*, std::align_val_t, const std::nothrow_t&) 19959: noexcept __attribute__((__externally_visible__)); 19959: 19959: void operator delete(void*, std::size_t, std::align_val_t) 19959: noexcept __attribute__((__externally_visible__)); 19959: void operator delete[](void*, std::size_t, std::align_val_t) 19959: noexcept __attribute__((__externally_visible__)); 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] inline void* operator new(std::size_t, void* __p) noexcept 19959: { return __p; } 19959: [[__nodiscard__]] inline void* operator new[](std::size_t, void* __p) noexcept 19959: { return __p; } 19959: 19959: 19959: inline void operator delete (void*, void*) noexcept { } 19959: inline void operator delete[](void*, void*) noexcept { } 19959: 19959: } 19959: 19959: 19959: namespace std 19959: { 19959: 19959: 19959: 19959: template 19959: [[nodiscard]] constexpr _Tp* 19959: launder(_Tp* __p) noexcept 19959: { return __builtin_launder(__p); } 19959: 19959: 19959: 19959: 19959: template 19959: void launder(_Ret (*)(_Args...) noexcept (_NE)) = delete; 19959: template 19959: void launder(_Ret (*)(_Args......) noexcept (_NE)) = delete; 19959: 19959: void launder(void*) = delete; 19959: void launder(const void*) = delete; 19959: void launder(volatile void*) = delete; 19959: void launder(const volatile void*) = delete; 19959: 19959: 19959: 19959: 19959: inline constexpr size_t hardware_destructive_interference_size = 64; 19959: inline constexpr size_t hardware_constructive_interference_size = 64; 19959: 19959: } 19959: # 236 "/usr/include/c++/13/new" 3 19959: #pragma GCC visibility pop 19959: # 37 "/usr/include/c++/13/bits/atomic_base.h" 2 3 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h" 1 3 4 19959: # 9 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h" 3 4 19959: # 1 "/usr/include/stdint.h" 1 3 4 19959: # 26 "/usr/include/stdint.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 19959: # 27 "/usr/include/stdint.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types.h" 1 3 4 19959: # 27 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 19959: # 28 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 19959: # 29 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 19959: 19959: 19959: typedef unsigned char __u_char; 19959: typedef unsigned short int __u_short; 19959: typedef unsigned int __u_int; 19959: typedef unsigned long int __u_long; 19959: 19959: 19959: typedef signed char __int8_t; 19959: typedef unsigned char __uint8_t; 19959: typedef signed short int __int16_t; 19959: typedef unsigned short int __uint16_t; 19959: typedef signed int __int32_t; 19959: typedef unsigned int __uint32_t; 19959: 19959: 19959: 19959: 19959: __extension__ typedef signed long long int __int64_t; 19959: __extension__ typedef unsigned long long int __uint64_t; 19959: 19959: 19959: 19959: typedef __int8_t __int_least8_t; 19959: typedef __uint8_t __uint_least8_t; 19959: typedef __int16_t __int_least16_t; 19959: typedef __uint16_t __uint_least16_t; 19959: typedef __int32_t __int_least32_t; 19959: typedef __uint32_t __uint_least32_t; 19959: typedef __int64_t __int_least64_t; 19959: typedef __uint64_t __uint_least64_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: __extension__ typedef long long int __quad_t; 19959: __extension__ typedef unsigned long long int __u_quad_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __extension__ typedef long long int __intmax_t; 19959: __extension__ typedef unsigned long long int __uintmax_t; 19959: # 141 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/typesizes.h" 1 3 4 19959: # 142 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/time64.h" 1 3 4 19959: # 143 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 19959: 19959: 19959: __extension__ typedef __uint64_t __dev_t; 19959: __extension__ typedef unsigned int __uid_t; 19959: __extension__ typedef unsigned int __gid_t; 19959: __extension__ typedef unsigned long int __ino_t; 19959: __extension__ typedef __uint64_t __ino64_t; 19959: __extension__ typedef unsigned int __mode_t; 19959: __extension__ typedef unsigned int __nlink_t; 19959: __extension__ typedef long int __off_t; 19959: __extension__ typedef __int64_t __off64_t; 19959: __extension__ typedef int __pid_t; 19959: __extension__ typedef struct { int __val[2]; } __fsid_t; 19959: __extension__ typedef long int __clock_t; 19959: __extension__ typedef unsigned long int __rlim_t; 19959: __extension__ typedef __uint64_t __rlim64_t; 19959: __extension__ typedef unsigned int __id_t; 19959: __extension__ typedef long int __time_t; 19959: __extension__ typedef unsigned int __useconds_t; 19959: __extension__ typedef long int __suseconds_t; 19959: __extension__ typedef __int64_t __suseconds64_t; 19959: 19959: __extension__ typedef int __daddr_t; 19959: __extension__ typedef int __key_t; 19959: 19959: 19959: __extension__ typedef int __clockid_t; 19959: 19959: 19959: __extension__ typedef void * __timer_t; 19959: 19959: 19959: __extension__ typedef long int __blksize_t; 19959: 19959: 19959: 19959: 19959: __extension__ typedef long int __blkcnt_t; 19959: __extension__ typedef __int64_t __blkcnt64_t; 19959: 19959: 19959: __extension__ typedef unsigned long int __fsblkcnt_t; 19959: __extension__ typedef __uint64_t __fsblkcnt64_t; 19959: 19959: 19959: __extension__ typedef unsigned long int __fsfilcnt_t; 19959: __extension__ typedef __uint64_t __fsfilcnt64_t; 19959: 19959: 19959: __extension__ typedef int __fsword_t; 19959: 19959: __extension__ typedef int __ssize_t; 19959: 19959: 19959: __extension__ typedef long int __syscall_slong_t; 19959: 19959: __extension__ typedef unsigned long int __syscall_ulong_t; 19959: 19959: 19959: 19959: typedef __off64_t __loff_t; 19959: typedef char *__caddr_t; 19959: 19959: 19959: __extension__ typedef int __intptr_t; 19959: 19959: 19959: __extension__ typedef unsigned int __socklen_t; 19959: 19959: 19959: 19959: 19959: typedef int __sig_atomic_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __extension__ typedef __int64_t __time64_t; 19959: # 28 "/usr/include/stdint.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar.h" 1 3 4 19959: # 29 "/usr/include/stdint.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 19959: # 30 "/usr/include/stdint.h" 2 3 4 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 3 4 19959: typedef __int8_t int8_t; 19959: typedef __int16_t int16_t; 19959: typedef __int32_t int32_t; 19959: typedef __int64_t int64_t; 19959: # 35 "/usr/include/stdint.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 3 4 19959: typedef __uint8_t uint8_t; 19959: typedef __uint16_t uint16_t; 19959: typedef __uint32_t uint32_t; 19959: typedef __uint64_t uint64_t; 19959: # 38 "/usr/include/stdint.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: typedef __int_least8_t int_least8_t; 19959: typedef __int_least16_t int_least16_t; 19959: typedef __int_least32_t int_least32_t; 19959: typedef __int_least64_t int_least64_t; 19959: 19959: 19959: typedef __uint_least8_t uint_least8_t; 19959: typedef __uint_least16_t uint_least16_t; 19959: typedef __uint_least32_t uint_least32_t; 19959: typedef __uint_least64_t uint_least64_t; 19959: 19959: 19959: 19959: 19959: 19959: typedef signed char int_fast8_t; 19959: 19959: 19959: 19959: 19959: 19959: typedef int int_fast16_t; 19959: typedef int int_fast32_t; 19959: __extension__ 19959: typedef long long int int_fast64_t; 19959: 19959: 19959: 19959: typedef unsigned char uint_fast8_t; 19959: 19959: 19959: 19959: 19959: 19959: typedef unsigned int uint_fast16_t; 19959: typedef unsigned int uint_fast32_t; 19959: __extension__ 19959: typedef unsigned long long int uint_fast64_t; 19959: # 93 "/usr/include/stdint.h" 3 4 19959: typedef int intptr_t; 19959: 19959: 19959: typedef unsigned int uintptr_t; 19959: 19959: 19959: 19959: 19959: typedef __intmax_t intmax_t; 19959: typedef __uintmax_t uintmax_t; 19959: # 10 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h" 2 3 4 19959: # 38 "/usr/include/c++/13/bits/atomic_base.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/atomic_lockfree_defines.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/atomic_lockfree_defines.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/atomic_lockfree_defines.h" 3 19959: # 39 "/usr/include/c++/13/bits/atomic_base.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/move.h" 1 3 19959: # 37 "/usr/include/c++/13/bits/move.h" 3 19959: # 1 "/usr/include/c++/13/type_traits" 1 3 19959: # 32 "/usr/include/c++/13/type_traits" 3 19959: 19959: # 33 "/usr/include/c++/13/type_traits" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template 19959: class reference_wrapper; 19959: # 61 "/usr/include/c++/13/type_traits" 3 19959: template 19959: struct integral_constant 19959: { 19959: static constexpr _Tp value = __v; 19959: typedef _Tp value_type; 19959: typedef integral_constant<_Tp, __v> type; 19959: constexpr operator value_type() const noexcept { return value; } 19959: 19959: 19959: 19959: 19959: constexpr value_type operator()() const noexcept { return value; } 19959: 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: using true_type = integral_constant; 19959: 19959: 19959: using false_type = integral_constant; 19959: 19959: 19959: 19959: template 19959: using __bool_constant = integral_constant; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: using bool_constant = integral_constant; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct enable_if 19959: { }; 19959: 19959: 19959: template 19959: struct enable_if 19959: { typedef _Tp type; }; 19959: 19959: 19959: template 19959: using __enable_if_t = typename enable_if<_Cond, _Tp>::type; 19959: 19959: template 19959: struct __conditional 19959: { 19959: template 19959: using type = _Tp; 19959: }; 19959: 19959: template<> 19959: struct __conditional 19959: { 19959: template 19959: using type = _Up; 19959: }; 19959: 19959: 19959: template 19959: using __conditional_t 19959: = typename __conditional<_Cond>::template type<_If, _Else>; 19959: 19959: 19959: template 19959: struct __type_identity 19959: { using type = _Type; }; 19959: 19959: template 19959: using __type_identity_t = typename __type_identity<_Tp>::type; 19959: 19959: namespace __detail 19959: { 19959: 19959: template 19959: using __first_t = _Tp; 19959: 19959: 19959: template 19959: auto __or_fn(int) -> __first_t...>; 19959: 19959: template 19959: auto __or_fn(...) -> true_type; 19959: 19959: template 19959: auto __and_fn(int) -> __first_t...>; 19959: 19959: template 19959: auto __and_fn(...) -> false_type; 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: struct __or_ 19959: : decltype(__detail::__or_fn<_Bn...>(0)) 19959: { }; 19959: 19959: template 19959: struct __and_ 19959: : decltype(__detail::__and_fn<_Bn...>(0)) 19959: { }; 19959: 19959: template 19959: struct __not_ 19959: : __bool_constant 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline constexpr bool __or_v = __or_<_Bn...>::value; 19959: template 19959: inline constexpr bool __and_v = __and_<_Bn...>::value; 19959: 19959: namespace __detail 19959: { 19959: template 19959: struct __disjunction_impl 19959: { using type = _B1; }; 19959: 19959: template 19959: struct __disjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 19959: { using type = typename __disjunction_impl::type; }; 19959: 19959: template 19959: struct __conjunction_impl 19959: { using type = _B1; }; 19959: 19959: template 19959: struct __conjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 19959: { using type = typename __conjunction_impl::type; }; 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: struct conjunction 19959: : __detail::__conjunction_impl::type 19959: { }; 19959: 19959: template<> 19959: struct conjunction<> 19959: : true_type 19959: { }; 19959: 19959: template 19959: struct disjunction 19959: : __detail::__disjunction_impl::type 19959: { }; 19959: 19959: template<> 19959: struct disjunction<> 19959: : false_type 19959: { }; 19959: 19959: template 19959: struct negation 19959: : __not_<_Pp>::type 19959: { }; 19959: 19959: 19959: 19959: 19959: template 19959: inline constexpr bool conjunction_v = conjunction<_Bn...>::value; 19959: 19959: template 19959: inline constexpr bool disjunction_v = disjunction<_Bn...>::value; 19959: 19959: template 19959: inline constexpr bool negation_v = negation<_Pp>::value; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_reference; 19959: template 19959: struct is_function; 19959: template 19959: struct is_void; 19959: template 19959: struct remove_cv; 19959: template 19959: struct is_const; 19959: 19959: 19959: template 19959: struct __is_array_unknown_bounds; 19959: 19959: 19959: 19959: 19959: template 19959: constexpr true_type __is_complete_or_unbounded(__type_identity<_Tp>) 19959: { return {}; } 19959: 19959: template 19959: constexpr typename __or_< 19959: is_reference<_NestedType>, 19959: is_function<_NestedType>, 19959: is_void<_NestedType>, 19959: __is_array_unknown_bounds<_NestedType> 19959: >::type __is_complete_or_unbounded(_TypeIdentity) 19959: { return {}; } 19959: 19959: 19959: template 19959: using __remove_cv_t = typename remove_cv<_Tp>::type; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_void 19959: : public false_type { }; 19959: 19959: template<> 19959: struct is_void 19959: : public true_type { }; 19959: 19959: template<> 19959: struct is_void 19959: : public true_type { }; 19959: 19959: template<> 19959: struct is_void 19959: : public true_type { }; 19959: 19959: template<> 19959: struct is_void 19959: : public true_type { }; 19959: 19959: 19959: template 19959: struct __is_integral_helper 19959: : public false_type { }; 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: 19959: 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_integral_helper 19959: : public true_type { }; 19959: # 440 "/usr/include/c++/13/type_traits" 3 19959: template 19959: struct is_integral 19959: : public __is_integral_helper<__remove_cv_t<_Tp>>::type 19959: { }; 19959: 19959: 19959: template 19959: struct __is_floating_point_helper 19959: : public false_type { }; 19959: 19959: template<> 19959: struct __is_floating_point_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_floating_point_helper 19959: : public true_type { }; 19959: 19959: template<> 19959: struct __is_floating_point_helper 19959: : public true_type { }; 19959: # 500 "/usr/include/c++/13/type_traits" 3 19959: template 19959: struct is_floating_point 19959: : public __is_floating_point_helper<__remove_cv_t<_Tp>>::type 19959: { }; 19959: 19959: 19959: template 19959: struct is_array 19959: : public false_type { }; 19959: 19959: template 19959: struct is_array<_Tp[_Size]> 19959: : public true_type { }; 19959: 19959: template 19959: struct is_array<_Tp[]> 19959: : public true_type { }; 19959: 19959: template 19959: struct __is_pointer_helper 19959: : public false_type { }; 19959: 19959: template 19959: struct __is_pointer_helper<_Tp*> 19959: : public true_type { }; 19959: 19959: 19959: template 19959: struct is_pointer 19959: : public __is_pointer_helper<__remove_cv_t<_Tp>>::type 19959: { }; 19959: 19959: 19959: template 19959: struct is_lvalue_reference 19959: : public false_type { }; 19959: 19959: template 19959: struct is_lvalue_reference<_Tp&> 19959: : public true_type { }; 19959: 19959: 19959: template 19959: struct is_rvalue_reference 19959: : public false_type { }; 19959: 19959: template 19959: struct is_rvalue_reference<_Tp&&> 19959: : public true_type { }; 19959: 19959: template 19959: struct __is_member_object_pointer_helper 19959: : public false_type { }; 19959: 19959: template 19959: struct __is_member_object_pointer_helper<_Tp _Cp::*> 19959: : public __not_>::type { }; 19959: 19959: 19959: template 19959: struct is_member_object_pointer 19959: : public __is_member_object_pointer_helper<__remove_cv_t<_Tp>>::type 19959: { }; 19959: 19959: template 19959: struct __is_member_function_pointer_helper 19959: : public false_type { }; 19959: 19959: template 19959: struct __is_member_function_pointer_helper<_Tp _Cp::*> 19959: : public is_function<_Tp>::type { }; 19959: 19959: 19959: template 19959: struct is_member_function_pointer 19959: : public __is_member_function_pointer_helper<__remove_cv_t<_Tp>>::type 19959: { }; 19959: 19959: 19959: template 19959: struct is_enum 19959: : public integral_constant 19959: { }; 19959: 19959: 19959: template 19959: struct is_union 19959: : public integral_constant 19959: { }; 19959: 19959: 19959: template 19959: struct is_class 19959: : public integral_constant 19959: { }; 19959: 19959: 19959: template 19959: struct is_function 19959: : public __bool_constant::value> { }; 19959: 19959: template 19959: struct is_function<_Tp&> 19959: : public false_type { }; 19959: 19959: template 19959: struct is_function<_Tp&&> 19959: : public false_type { }; 19959: 19959: 19959: 19959: 19959: template 19959: struct is_null_pointer 19959: : public false_type { }; 19959: 19959: template<> 19959: struct is_null_pointer 19959: : public true_type { }; 19959: 19959: template<> 19959: struct is_null_pointer 19959: : public true_type { }; 19959: 19959: template<> 19959: struct is_null_pointer 19959: : public true_type { }; 19959: 19959: template<> 19959: struct is_null_pointer 19959: : public true_type { }; 19959: 19959: 19959: 19959: template 19959: struct __is_nullptr_t 19959: : public is_null_pointer<_Tp> 19959: { } __attribute__ ((__deprecated__ ("use '" "std::is_null_pointer" "' instead"))); 19959: 19959: 19959: 19959: 19959: template 19959: struct is_reference 19959: : public false_type 19959: { }; 19959: 19959: template 19959: struct is_reference<_Tp&> 19959: : public true_type 19959: { }; 19959: 19959: template 19959: struct is_reference<_Tp&&> 19959: : public true_type 19959: { }; 19959: 19959: 19959: template 19959: struct is_arithmetic 19959: : public __or_, is_floating_point<_Tp>>::type 19959: { }; 19959: 19959: 19959: template 19959: struct is_fundamental 19959: : public __or_, is_void<_Tp>, 19959: is_null_pointer<_Tp>>::type 19959: { }; 19959: 19959: 19959: template 19959: struct is_object 19959: : public __not_<__or_, is_reference<_Tp>, 19959: is_void<_Tp>>>::type 19959: { }; 19959: 19959: template 19959: struct is_member_pointer; 19959: 19959: 19959: template 19959: struct is_scalar 19959: : public __or_, is_enum<_Tp>, is_pointer<_Tp>, 19959: is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 19959: { }; 19959: 19959: 19959: template 19959: struct is_compound 19959: : public __not_>::type { }; 19959: 19959: 19959: template 19959: struct __is_member_pointer_helper 19959: : public false_type { }; 19959: 19959: template 19959: struct __is_member_pointer_helper<_Tp _Cp::*> 19959: : public true_type { }; 19959: 19959: 19959: 19959: template 19959: struct is_member_pointer 19959: : public __is_member_pointer_helper<__remove_cv_t<_Tp>>::type 19959: { }; 19959: 19959: template 19959: struct is_same; 19959: 19959: 19959: template 19959: using __is_one_of = __or_...>; 19959: 19959: 19959: __extension__ 19959: template 19959: using __is_signed_integer = __is_one_of<__remove_cv_t<_Tp>, 19959: signed char, signed short, signed int, signed long, 19959: signed long long 19959: # 733 "/usr/include/c++/13/type_traits" 3 19959: >; 19959: 19959: 19959: __extension__ 19959: template 19959: using __is_unsigned_integer = __is_one_of<__remove_cv_t<_Tp>, 19959: unsigned char, unsigned short, unsigned int, unsigned long, 19959: unsigned long long 19959: # 753 "/usr/include/c++/13/type_traits" 3 19959: >; 19959: 19959: 19959: template 19959: using __is_standard_integer 19959: = __or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>>; 19959: 19959: 19959: template using __void_t = void; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_const 19959: : public false_type { }; 19959: 19959: template 19959: struct is_const<_Tp const> 19959: : public true_type { }; 19959: 19959: 19959: template 19959: struct is_volatile 19959: : public false_type { }; 19959: 19959: template 19959: struct is_volatile<_Tp volatile> 19959: : public true_type { }; 19959: 19959: 19959: template 19959: struct is_trivial 19959: : public integral_constant 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_trivially_copyable 19959: : public integral_constant 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_standard_layout 19959: : public integral_constant 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct 19959: 19959: is_pod 19959: : public integral_constant 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct 19959: [[__deprecated__]] 19959: is_literal_type 19959: : public integral_constant 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_empty 19959: : public integral_constant 19959: { }; 19959: 19959: 19959: template 19959: struct is_polymorphic 19959: : public integral_constant 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_final 19959: : public integral_constant 19959: { }; 19959: 19959: 19959: 19959: template 19959: struct is_abstract 19959: : public integral_constant 19959: { }; 19959: 19959: 19959: template::value> 19959: struct __is_signed_helper 19959: : public false_type { }; 19959: 19959: template 19959: struct __is_signed_helper<_Tp, true> 19959: : public integral_constant 19959: { }; 19959: 19959: 19959: 19959: template 19959: struct is_signed 19959: : public __is_signed_helper<_Tp>::type 19959: { }; 19959: 19959: 19959: template 19959: struct is_unsigned 19959: : public __and_, __not_>>::type 19959: { }; 19959: 19959: 19959: template 19959: _Up 19959: __declval(int); 19959: 19959: template 19959: _Tp 19959: __declval(long); 19959: 19959: 19959: template 19959: auto declval() noexcept -> decltype(__declval<_Tp>(0)); 19959: 19959: template 19959: struct remove_all_extents; 19959: 19959: 19959: template 19959: struct __is_array_known_bounds 19959: : public false_type 19959: { }; 19959: 19959: template 19959: struct __is_array_known_bounds<_Tp[_Size]> 19959: : public true_type 19959: { }; 19959: 19959: template 19959: struct __is_array_unknown_bounds 19959: : public false_type 19959: { }; 19959: 19959: template 19959: struct __is_array_unknown_bounds<_Tp[]> 19959: : public true_type 19959: { }; 19959: # 936 "/usr/include/c++/13/type_traits" 3 19959: struct __do_is_destructible_impl 19959: { 19959: template().~_Tp())> 19959: static true_type __test(int); 19959: 19959: template 19959: static false_type __test(...); 19959: }; 19959: 19959: template 19959: struct __is_destructible_impl 19959: : public __do_is_destructible_impl 19959: { 19959: typedef decltype(__test<_Tp>(0)) type; 19959: }; 19959: 19959: template, 19959: __is_array_unknown_bounds<_Tp>, 19959: is_function<_Tp>>::value, 19959: bool = __or_, is_scalar<_Tp>>::value> 19959: struct __is_destructible_safe; 19959: 19959: template 19959: struct __is_destructible_safe<_Tp, false, false> 19959: : public __is_destructible_impl::type>::type 19959: { }; 19959: 19959: template 19959: struct __is_destructible_safe<_Tp, true, false> 19959: : public false_type { }; 19959: 19959: template 19959: struct __is_destructible_safe<_Tp, false, true> 19959: : public true_type { }; 19959: 19959: 19959: 19959: template 19959: struct is_destructible 19959: : public __is_destructible_safe<_Tp>::type 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct __do_is_nt_destructible_impl 19959: { 19959: template 19959: static __bool_constant().~_Tp())> 19959: __test(int); 19959: 19959: template 19959: static false_type __test(...); 19959: }; 19959: 19959: template 19959: struct __is_nt_destructible_impl 19959: : public __do_is_nt_destructible_impl 19959: { 19959: typedef decltype(__test<_Tp>(0)) type; 19959: }; 19959: 19959: template, 19959: __is_array_unknown_bounds<_Tp>, 19959: is_function<_Tp>>::value, 19959: bool = __or_, is_scalar<_Tp>>::value> 19959: struct __is_nt_destructible_safe; 19959: 19959: template 19959: struct __is_nt_destructible_safe<_Tp, false, false> 19959: : public __is_nt_destructible_impl::type>::type 19959: { }; 19959: 19959: template 19959: struct __is_nt_destructible_safe<_Tp, true, false> 19959: : public false_type { }; 19959: 19959: template 19959: struct __is_nt_destructible_safe<_Tp, false, true> 19959: : public true_type { }; 19959: 19959: 19959: 19959: template 19959: struct is_nothrow_destructible 19959: : public __is_nt_destructible_safe<_Tp>::type 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: using __is_constructible_impl 19959: = __bool_constant<__is_constructible(_Tp, _Args...)>; 19959: 19959: 19959: 19959: template 19959: struct is_constructible 19959: : public __is_constructible_impl<_Tp, _Args...> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_default_constructible 19959: : public __is_constructible_impl<_Tp> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct __add_lvalue_reference_helper 19959: { using type = _Tp; }; 19959: 19959: template 19959: struct __add_lvalue_reference_helper<_Tp, __void_t<_Tp&>> 19959: { using type = _Tp&; }; 19959: 19959: template 19959: using __add_lval_ref_t = typename __add_lvalue_reference_helper<_Tp>::type; 19959: 19959: 19959: 19959: template 19959: struct is_copy_constructible 19959: : public __is_constructible_impl<_Tp, __add_lval_ref_t> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct __add_rvalue_reference_helper 19959: { using type = _Tp; }; 19959: 19959: template 19959: struct __add_rvalue_reference_helper<_Tp, __void_t<_Tp&&>> 19959: { using type = _Tp&&; }; 19959: 19959: template 19959: using __add_rval_ref_t = typename __add_rvalue_reference_helper<_Tp>::type; 19959: 19959: 19959: 19959: template 19959: struct is_move_constructible 19959: : public __is_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: using __is_nothrow_constructible_impl 19959: = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; 19959: 19959: 19959: 19959: template 19959: struct is_nothrow_constructible 19959: : public __is_nothrow_constructible_impl<_Tp, _Args...> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_nothrow_default_constructible 19959: : public __is_nothrow_constructible_impl<_Tp> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_nothrow_copy_constructible 19959: : public __is_nothrow_constructible_impl<_Tp, __add_lval_ref_t> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_nothrow_move_constructible 19959: : public __is_nothrow_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: using __is_assignable_impl = __bool_constant<__is_assignable(_Tp, _Up)>; 19959: 19959: 19959: 19959: template 19959: struct is_assignable 19959: : public __is_assignable_impl<_Tp, _Up> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_copy_assignable 19959: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, 19959: __add_lval_ref_t> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_move_assignable 19959: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: using __is_nothrow_assignable_impl 19959: = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>; 19959: 19959: 19959: 19959: template 19959: struct is_nothrow_assignable 19959: : public __is_nothrow_assignable_impl<_Tp, _Up> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_nothrow_copy_assignable 19959: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 19959: __add_lval_ref_t> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_nothrow_move_assignable 19959: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 19959: __add_rval_ref_t<_Tp>> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: using __is_trivially_constructible_impl 19959: = __bool_constant<__is_trivially_constructible(_Tp, _Args...)>; 19959: 19959: 19959: 19959: template 19959: struct is_trivially_constructible 19959: : public __is_trivially_constructible_impl<_Tp, _Args...> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_trivially_default_constructible 19959: : public __is_trivially_constructible_impl<_Tp> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: struct __do_is_implicitly_default_constructible_impl 19959: { 19959: template 19959: static void __helper(const _Tp&); 19959: 19959: template 19959: static true_type __test(const _Tp&, 19959: decltype(__helper({}))* = 0); 19959: 19959: static false_type __test(...); 19959: }; 19959: 19959: template 19959: struct __is_implicitly_default_constructible_impl 19959: : public __do_is_implicitly_default_constructible_impl 19959: { 19959: typedef decltype(__test(declval<_Tp>())) type; 19959: }; 19959: 19959: template 19959: struct __is_implicitly_default_constructible_safe 19959: : public __is_implicitly_default_constructible_impl<_Tp>::type 19959: { }; 19959: 19959: template 19959: struct __is_implicitly_default_constructible 19959: : public __and_<__is_constructible_impl<_Tp>, 19959: __is_implicitly_default_constructible_safe<_Tp>>::type 19959: { }; 19959: 19959: 19959: template 19959: struct is_trivially_copy_constructible 19959: : public __is_trivially_constructible_impl<_Tp, __add_lval_ref_t> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_trivially_move_constructible 19959: : public __is_trivially_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: using __is_trivially_assignable_impl 19959: = __bool_constant<__is_trivially_assignable(_Tp, _Up)>; 19959: 19959: 19959: 19959: template 19959: struct is_trivially_assignable 19959: : public __is_trivially_assignable_impl<_Tp, _Up> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_trivially_copy_assignable 19959: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 19959: __add_lval_ref_t> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_trivially_move_assignable 19959: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 19959: __add_rval_ref_t<_Tp>> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_trivially_destructible 19959: : public __and_<__is_destructible_safe<_Tp>, 19959: __bool_constant<__has_trivial_destructor(_Tp)>>::type 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: 19959: template 19959: struct has_virtual_destructor 19959: : public integral_constant 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct alignment_of 19959: : public integral_constant 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct rank 19959: : public integral_constant { }; 19959: 19959: template 19959: struct rank<_Tp[_Size]> 19959: : public integral_constant::value> { }; 19959: 19959: template 19959: struct rank<_Tp[]> 19959: : public integral_constant::value> { }; 19959: 19959: 19959: template 19959: struct extent 19959: : public integral_constant { }; 19959: 19959: template 19959: struct extent<_Tp[_Size], 0> 19959: : public integral_constant { }; 19959: 19959: template 19959: struct extent<_Tp[_Size], _Uint> 19959: : public extent<_Tp, _Uint - 1>::type { }; 19959: 19959: template 19959: struct extent<_Tp[], 0> 19959: : public integral_constant { }; 19959: 19959: template 19959: struct extent<_Tp[], _Uint> 19959: : public extent<_Tp, _Uint - 1>::type { }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_same 19959: 19959: : public integral_constant 19959: 19959: 19959: 19959: { }; 19959: # 1409 "/usr/include/c++/13/type_traits" 3 19959: template 19959: struct is_base_of 19959: : public integral_constant 19959: { }; 19959: 19959: 19959: template 19959: struct is_convertible 19959: : public __bool_constant<__is_convertible(_From, _To)> 19959: { }; 19959: # 1458 "/usr/include/c++/13/type_traits" 3 19959: template 19959: using __is_array_convertible 19959: = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>; 19959: # 1522 "/usr/include/c++/13/type_traits" 3 19959: template 19959: struct remove_const 19959: { typedef _Tp type; }; 19959: 19959: template 19959: struct remove_const<_Tp const> 19959: { typedef _Tp type; }; 19959: 19959: 19959: template 19959: struct remove_volatile 19959: { typedef _Tp type; }; 19959: 19959: template 19959: struct remove_volatile<_Tp volatile> 19959: { typedef _Tp type; }; 19959: 19959: 19959: 19959: template 19959: struct remove_cv 19959: { using type = __remove_cv(_Tp); }; 19959: # 1563 "/usr/include/c++/13/type_traits" 3 19959: template 19959: struct add_const 19959: { using type = _Tp const; }; 19959: 19959: 19959: template 19959: struct add_volatile 19959: { using type = _Tp volatile; }; 19959: 19959: 19959: template 19959: struct add_cv 19959: { using type = _Tp const volatile; }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: using remove_const_t = typename remove_const<_Tp>::type; 19959: 19959: 19959: template 19959: using remove_volatile_t = typename remove_volatile<_Tp>::type; 19959: 19959: 19959: template 19959: using remove_cv_t = typename remove_cv<_Tp>::type; 19959: 19959: 19959: template 19959: using add_const_t = typename add_const<_Tp>::type; 19959: 19959: 19959: template 19959: using add_volatile_t = typename add_volatile<_Tp>::type; 19959: 19959: 19959: template 19959: using add_cv_t = typename add_cv<_Tp>::type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct remove_reference 19959: { using type = __remove_reference(_Tp); }; 19959: # 1628 "/usr/include/c++/13/type_traits" 3 19959: template 19959: struct add_lvalue_reference 19959: { using type = __add_lval_ref_t<_Tp>; }; 19959: 19959: 19959: template 19959: struct add_rvalue_reference 19959: { using type = __add_rval_ref_t<_Tp>; }; 19959: 19959: 19959: 19959: template 19959: using remove_reference_t = typename remove_reference<_Tp>::type; 19959: 19959: 19959: template 19959: using add_lvalue_reference_t = typename add_lvalue_reference<_Tp>::type; 19959: 19959: 19959: template 19959: using add_rvalue_reference_t = typename add_rvalue_reference<_Tp>::type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __cv_selector; 19959: 19959: template 19959: struct __cv_selector<_Unqualified, false, false> 19959: { typedef _Unqualified __type; }; 19959: 19959: template 19959: struct __cv_selector<_Unqualified, false, true> 19959: { typedef volatile _Unqualified __type; }; 19959: 19959: template 19959: struct __cv_selector<_Unqualified, true, false> 19959: { typedef const _Unqualified __type; }; 19959: 19959: template 19959: struct __cv_selector<_Unqualified, true, true> 19959: { typedef const volatile _Unqualified __type; }; 19959: 19959: template::value, 19959: bool _IsVol = is_volatile<_Qualified>::value> 19959: class __match_cv_qualifiers 19959: { 19959: typedef __cv_selector<_Unqualified, _IsConst, _IsVol> __match; 19959: 19959: public: 19959: typedef typename __match::__type __type; 19959: }; 19959: 19959: 19959: template 19959: struct __make_unsigned 19959: { typedef _Tp __type; }; 19959: 19959: template<> 19959: struct __make_unsigned 19959: { typedef unsigned char __type; }; 19959: 19959: template<> 19959: struct __make_unsigned 19959: { typedef unsigned char __type; }; 19959: 19959: template<> 19959: struct __make_unsigned 19959: { typedef unsigned short __type; }; 19959: 19959: template<> 19959: struct __make_unsigned 19959: { typedef unsigned int __type; }; 19959: 19959: template<> 19959: struct __make_unsigned 19959: { typedef unsigned long __type; }; 19959: 19959: template<> 19959: struct __make_unsigned 19959: { typedef unsigned long long __type; }; 19959: # 1741 "/usr/include/c++/13/type_traits" 3 19959: template::value, 19959: bool _IsEnum = is_enum<_Tp>::value> 19959: class __make_unsigned_selector; 19959: 19959: template 19959: class __make_unsigned_selector<_Tp, true, false> 19959: { 19959: using __unsigned_type 19959: = typename __make_unsigned<__remove_cv_t<_Tp>>::__type; 19959: 19959: public: 19959: using __type 19959: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 19959: }; 19959: 19959: class __make_unsigned_selector_base 19959: { 19959: protected: 19959: template struct _List { }; 19959: 19959: template 19959: struct _List<_Tp, _Up...> : _List<_Up...> 19959: { static constexpr size_t __size = sizeof(_Tp); }; 19959: 19959: template 19959: struct __select; 19959: 19959: template 19959: struct __select<_Sz, _List<_Uint, _UInts...>, true> 19959: { using __type = _Uint; }; 19959: 19959: template 19959: struct __select<_Sz, _List<_Uint, _UInts...>, false> 19959: : __select<_Sz, _List<_UInts...>> 19959: { }; 19959: }; 19959: 19959: 19959: template 19959: class __make_unsigned_selector<_Tp, false, true> 19959: : __make_unsigned_selector_base 19959: { 19959: 19959: using _UInts = _List; 19959: 19959: using __unsigned_type = typename __select::__type; 19959: 19959: public: 19959: using __type 19959: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template<> 19959: struct __make_unsigned 19959: { 19959: using __type 19959: = typename __make_unsigned_selector::__type; 19959: }; 19959: # 1815 "/usr/include/c++/13/type_traits" 3 19959: template<> 19959: struct __make_unsigned 19959: { 19959: using __type 19959: = typename __make_unsigned_selector::__type; 19959: }; 19959: 19959: template<> 19959: struct __make_unsigned 19959: { 19959: using __type 19959: = typename __make_unsigned_selector::__type; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct make_unsigned 19959: { typedef typename __make_unsigned_selector<_Tp>::__type type; }; 19959: 19959: 19959: template<> struct make_unsigned; 19959: template<> struct make_unsigned; 19959: template<> struct make_unsigned; 19959: template<> struct make_unsigned; 19959: 19959: 19959: 19959: 19959: template 19959: struct __make_signed 19959: { typedef _Tp __type; }; 19959: 19959: template<> 19959: struct __make_signed 19959: { typedef signed char __type; }; 19959: 19959: template<> 19959: struct __make_signed 19959: { typedef signed char __type; }; 19959: 19959: template<> 19959: struct __make_signed 19959: { typedef signed short __type; }; 19959: 19959: template<> 19959: struct __make_signed 19959: { typedef signed int __type; }; 19959: 19959: template<> 19959: struct __make_signed 19959: { typedef signed long __type; }; 19959: 19959: template<> 19959: struct __make_signed 19959: { typedef signed long long __type; }; 19959: # 1901 "/usr/include/c++/13/type_traits" 3 19959: template::value, 19959: bool _IsEnum = is_enum<_Tp>::value> 19959: class __make_signed_selector; 19959: 19959: template 19959: class __make_signed_selector<_Tp, true, false> 19959: { 19959: using __signed_type 19959: = typename __make_signed<__remove_cv_t<_Tp>>::__type; 19959: 19959: public: 19959: using __type 19959: = typename __match_cv_qualifiers<_Tp, __signed_type>::__type; 19959: }; 19959: 19959: 19959: template 19959: class __make_signed_selector<_Tp, false, true> 19959: { 19959: typedef typename __make_unsigned_selector<_Tp>::__type __unsigned_type; 19959: 19959: public: 19959: typedef typename __make_signed_selector<__unsigned_type>::__type __type; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template<> 19959: struct __make_signed 19959: { 19959: using __type 19959: = typename __make_signed_selector::__type; 19959: }; 19959: # 1947 "/usr/include/c++/13/type_traits" 3 19959: template<> 19959: struct __make_signed 19959: { 19959: using __type 19959: = typename __make_signed_selector::__type; 19959: }; 19959: 19959: template<> 19959: struct __make_signed 19959: { 19959: using __type 19959: = typename __make_signed_selector::__type; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct make_signed 19959: { typedef typename __make_signed_selector<_Tp>::__type type; }; 19959: 19959: 19959: template<> struct make_signed; 19959: template<> struct make_signed; 19959: template<> struct make_signed; 19959: template<> struct make_signed; 19959: 19959: 19959: 19959: template 19959: using make_signed_t = typename make_signed<_Tp>::type; 19959: 19959: 19959: template 19959: using make_unsigned_t = typename make_unsigned<_Tp>::type; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct remove_extent 19959: { typedef _Tp type; }; 19959: 19959: template 19959: struct remove_extent<_Tp[_Size]> 19959: { typedef _Tp type; }; 19959: 19959: template 19959: struct remove_extent<_Tp[]> 19959: { typedef _Tp type; }; 19959: 19959: 19959: template 19959: struct remove_all_extents 19959: { typedef _Tp type; }; 19959: 19959: template 19959: struct remove_all_extents<_Tp[_Size]> 19959: { typedef typename remove_all_extents<_Tp>::type type; }; 19959: 19959: template 19959: struct remove_all_extents<_Tp[]> 19959: { typedef typename remove_all_extents<_Tp>::type type; }; 19959: 19959: 19959: 19959: template 19959: using remove_extent_t = typename remove_extent<_Tp>::type; 19959: 19959: 19959: template 19959: using remove_all_extents_t = typename remove_all_extents<_Tp>::type; 19959: 19959: 19959: 19959: 19959: template 19959: struct __remove_pointer_helper 19959: { typedef _Tp type; }; 19959: 19959: template 19959: struct __remove_pointer_helper<_Tp, _Up*> 19959: { typedef _Up type; }; 19959: 19959: 19959: template 19959: struct remove_pointer 19959: : public __remove_pointer_helper<_Tp, __remove_cv_t<_Tp>> 19959: { }; 19959: 19959: template 19959: struct __add_pointer_helper 19959: { using type = _Tp; }; 19959: 19959: template 19959: struct __add_pointer_helper<_Tp, __void_t<_Tp*>> 19959: { using type = _Tp*; }; 19959: 19959: 19959: template 19959: struct add_pointer 19959: : public __add_pointer_helper<_Tp> 19959: { }; 19959: 19959: template 19959: struct add_pointer<_Tp&> 19959: { using type = _Tp*; }; 19959: 19959: template 19959: struct add_pointer<_Tp&&> 19959: { using type = _Tp*; }; 19959: 19959: 19959: 19959: template 19959: using remove_pointer_t = typename remove_pointer<_Tp>::type; 19959: 19959: 19959: template 19959: using add_pointer_t = typename add_pointer<_Tp>::type; 19959: 19959: 19959: template 19959: struct __aligned_storage_msa 19959: { 19959: union __type 19959: { 19959: unsigned char __data[_Len]; 19959: struct __attribute__((__aligned__)) { } __align; 19959: }; 19959: }; 19959: # 2095 "/usr/include/c++/13/type_traits" 3 19959: template::__type)> 19959: struct 19959: 19959: aligned_storage 19959: { 19959: union type 19959: { 19959: unsigned char __data[_Len]; 19959: struct __attribute__((__aligned__((_Align)))) { } __align; 19959: }; 19959: }; 19959: 19959: template 19959: struct __strictest_alignment 19959: { 19959: static const size_t _S_alignment = 0; 19959: static const size_t _S_size = 0; 19959: }; 19959: 19959: template 19959: struct __strictest_alignment<_Tp, _Types...> 19959: { 19959: static const size_t _S_alignment = 19959: alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment 19959: ? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; 19959: static const size_t _S_size = 19959: sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size 19959: ? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; 19959: }; 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: # 2141 "/usr/include/c++/13/type_traits" 3 19959: template 19959: struct 19959: 19959: aligned_union 19959: { 19959: private: 19959: static_assert(sizeof...(_Types) != 0, "At least one type is required"); 19959: 19959: using __strictest = __strictest_alignment<_Types...>; 19959: static const size_t _S_len = _Len > __strictest::_S_size 19959: ? _Len : __strictest::_S_size; 19959: public: 19959: 19959: static const size_t alignment_value = __strictest::_S_alignment; 19959: 19959: typedef typename aligned_storage<_S_len, alignment_value>::type type; 19959: }; 19959: 19959: template 19959: const size_t aligned_union<_Len, _Types...>::alignment_value; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __decay_selector 19959: : __conditional_t::value, 19959: remove_cv<_Up>, 19959: add_pointer<_Up>> 19959: { }; 19959: 19959: template 19959: struct __decay_selector<_Up[_Nm]> 19959: { using type = _Up*; }; 19959: 19959: template 19959: struct __decay_selector<_Up[]> 19959: { using type = _Up*; }; 19959: 19959: 19959: 19959: 19959: template 19959: struct decay 19959: { using type = typename __decay_selector<_Tp>::type; }; 19959: 19959: template 19959: struct decay<_Tp&> 19959: { using type = typename __decay_selector<_Tp>::type; }; 19959: 19959: template 19959: struct decay<_Tp&&> 19959: { using type = typename __decay_selector<_Tp>::type; }; 19959: 19959: 19959: 19959: 19959: template 19959: struct __strip_reference_wrapper 19959: { 19959: typedef _Tp __type; 19959: }; 19959: 19959: template 19959: struct __strip_reference_wrapper > 19959: { 19959: typedef _Tp& __type; 19959: }; 19959: 19959: 19959: template 19959: using __decay_t = typename decay<_Tp>::type; 19959: 19959: template 19959: using __decay_and_strip = __strip_reference_wrapper<__decay_t<_Tp>>; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: using _Require = __enable_if_t<__and_<_Cond...>::value>; 19959: 19959: 19959: template 19959: using __remove_cvref_t 19959: = typename remove_cv::type>::type; 19959: 19959: 19959: 19959: 19959: template 19959: struct conditional 19959: { typedef _Iftrue type; }; 19959: 19959: 19959: template 19959: struct conditional 19959: { typedef _Iffalse type; }; 19959: 19959: 19959: template 19959: struct common_type; 19959: # 2256 "/usr/include/c++/13/type_traits" 3 19959: template 19959: struct __success_type 19959: { typedef _Tp type; }; 19959: 19959: struct __failure_type 19959: { }; 19959: 19959: struct __do_common_type_impl 19959: { 19959: template 19959: using __cond_t 19959: = decltype(true ? std::declval<_Tp>() : std::declval<_Up>()); 19959: 19959: 19959: 19959: template 19959: static __success_type<__decay_t<__cond_t<_Tp, _Up>>> 19959: _S_test(int); 19959: # 2283 "/usr/include/c++/13/type_traits" 3 19959: template 19959: static __failure_type 19959: _S_test_2(...); 19959: 19959: template 19959: static decltype(_S_test_2<_Tp, _Up>(0)) 19959: _S_test(...); 19959: }; 19959: 19959: 19959: template<> 19959: struct common_type<> 19959: { }; 19959: 19959: 19959: template 19959: struct common_type<_Tp0> 19959: : public common_type<_Tp0, _Tp0> 19959: { }; 19959: 19959: 19959: template, typename _Dp2 = __decay_t<_Tp2>> 19959: struct __common_type_impl 19959: { 19959: 19959: 19959: using type = common_type<_Dp1, _Dp2>; 19959: }; 19959: 19959: template 19959: struct __common_type_impl<_Tp1, _Tp2, _Tp1, _Tp2> 19959: : private __do_common_type_impl 19959: { 19959: 19959: 19959: using type = decltype(_S_test<_Tp1, _Tp2>(0)); 19959: }; 19959: 19959: 19959: template 19959: struct common_type<_Tp1, _Tp2> 19959: : public __common_type_impl<_Tp1, _Tp2>::type 19959: { }; 19959: 19959: template 19959: struct __common_type_pack 19959: { }; 19959: 19959: template 19959: struct __common_type_fold; 19959: 19959: 19959: template 19959: struct common_type<_Tp1, _Tp2, _Rp...> 19959: : public __common_type_fold, 19959: __common_type_pack<_Rp...>> 19959: { }; 19959: 19959: 19959: 19959: 19959: template 19959: struct __common_type_fold<_CTp, __common_type_pack<_Rp...>, 19959: __void_t> 19959: : public common_type 19959: { }; 19959: 19959: 19959: template 19959: struct __common_type_fold<_CTp, _Rp, void> 19959: { }; 19959: 19959: template::value> 19959: struct __underlying_type_impl 19959: { 19959: using type = __underlying_type(_Tp); 19959: }; 19959: 19959: template 19959: struct __underlying_type_impl<_Tp, false> 19959: { }; 19959: 19959: 19959: 19959: template 19959: struct underlying_type 19959: : public __underlying_type_impl<_Tp> 19959: { }; 19959: 19959: 19959: template 19959: struct __declval_protector 19959: { 19959: static const bool __stop = false; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: auto declval() noexcept -> decltype(__declval<_Tp>(0)) 19959: { 19959: static_assert(__declval_protector<_Tp>::__stop, 19959: "declval() must not be used!"); 19959: return __declval<_Tp>(0); 19959: } 19959: 19959: 19959: template 19959: struct result_of; 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct __invoke_memfun_ref { }; 19959: struct __invoke_memfun_deref { }; 19959: struct __invoke_memobj_ref { }; 19959: struct __invoke_memobj_deref { }; 19959: struct __invoke_other { }; 19959: 19959: 19959: template 19959: struct __result_of_success : __success_type<_Tp> 19959: { using __invoke_type = _Tag; }; 19959: 19959: 19959: struct __result_of_memfun_ref_impl 19959: { 19959: template 19959: static __result_of_success().*std::declval<_Fp>())(std::declval<_Args>()...) 19959: ), __invoke_memfun_ref> _S_test(int); 19959: 19959: template 19959: static __failure_type _S_test(...); 19959: }; 19959: 19959: template 19959: struct __result_of_memfun_ref 19959: : private __result_of_memfun_ref_impl 19959: { 19959: typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type; 19959: }; 19959: 19959: 19959: struct __result_of_memfun_deref_impl 19959: { 19959: template 19959: static __result_of_success()).*std::declval<_Fp>())(std::declval<_Args>()...) 19959: ), __invoke_memfun_deref> _S_test(int); 19959: 19959: template 19959: static __failure_type _S_test(...); 19959: }; 19959: 19959: template 19959: struct __result_of_memfun_deref 19959: : private __result_of_memfun_deref_impl 19959: { 19959: typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type; 19959: }; 19959: 19959: 19959: struct __result_of_memobj_ref_impl 19959: { 19959: template 19959: static __result_of_success().*std::declval<_Fp>() 19959: ), __invoke_memobj_ref> _S_test(int); 19959: 19959: template 19959: static __failure_type _S_test(...); 19959: }; 19959: 19959: template 19959: struct __result_of_memobj_ref 19959: : private __result_of_memobj_ref_impl 19959: { 19959: typedef decltype(_S_test<_MemPtr, _Arg>(0)) type; 19959: }; 19959: 19959: 19959: struct __result_of_memobj_deref_impl 19959: { 19959: template 19959: static __result_of_success()).*std::declval<_Fp>() 19959: ), __invoke_memobj_deref> _S_test(int); 19959: 19959: template 19959: static __failure_type _S_test(...); 19959: }; 19959: 19959: template 19959: struct __result_of_memobj_deref 19959: : private __result_of_memobj_deref_impl 19959: { 19959: typedef decltype(_S_test<_MemPtr, _Arg>(0)) type; 19959: }; 19959: 19959: template 19959: struct __result_of_memobj; 19959: 19959: template 19959: struct __result_of_memobj<_Res _Class::*, _Arg> 19959: { 19959: typedef __remove_cvref_t<_Arg> _Argval; 19959: typedef _Res _Class::* _MemPtr; 19959: typedef typename __conditional_t<__or_, 19959: is_base_of<_Class, _Argval>>::value, 19959: __result_of_memobj_ref<_MemPtr, _Arg>, 19959: __result_of_memobj_deref<_MemPtr, _Arg> 19959: >::type type; 19959: }; 19959: 19959: template 19959: struct __result_of_memfun; 19959: 19959: template 19959: struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> 19959: { 19959: typedef typename remove_reference<_Arg>::type _Argval; 19959: typedef _Res _Class::* _MemPtr; 19959: typedef typename __conditional_t::value, 19959: __result_of_memfun_ref<_MemPtr, _Arg, _Args...>, 19959: __result_of_memfun_deref<_MemPtr, _Arg, _Args...> 19959: >::type type; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: struct __inv_unwrap 19959: { 19959: using type = _Tp; 19959: }; 19959: 19959: template 19959: struct __inv_unwrap<_Tp, reference_wrapper<_Up>> 19959: { 19959: using type = _Up&; 19959: }; 19959: 19959: template 19959: struct __result_of_impl 19959: { 19959: typedef __failure_type type; 19959: }; 19959: 19959: template 19959: struct __result_of_impl 19959: : public __result_of_memobj<__decay_t<_MemPtr>, 19959: typename __inv_unwrap<_Arg>::type> 19959: { }; 19959: 19959: template 19959: struct __result_of_impl 19959: : public __result_of_memfun<__decay_t<_MemPtr>, 19959: typename __inv_unwrap<_Arg>::type, _Args...> 19959: { }; 19959: 19959: 19959: struct __result_of_other_impl 19959: { 19959: template 19959: static __result_of_success()(std::declval<_Args>()...) 19959: ), __invoke_other> _S_test(int); 19959: 19959: template 19959: static __failure_type _S_test(...); 19959: }; 19959: 19959: template 19959: struct __result_of_impl 19959: : private __result_of_other_impl 19959: { 19959: typedef decltype(_S_test<_Functor, _ArgTypes...>(0)) type; 19959: }; 19959: 19959: 19959: template 19959: struct __invoke_result 19959: : public __result_of_impl< 19959: is_member_object_pointer< 19959: typename remove_reference<_Functor>::type 19959: >::value, 19959: is_member_function_pointer< 19959: typename remove_reference<_Functor>::type 19959: >::value, 19959: _Functor, _ArgTypes... 19959: >::type 19959: { }; 19959: 19959: 19959: template 19959: struct result_of<_Functor(_ArgTypes...)> 19959: : public __invoke_result<_Functor, _ArgTypes...> 19959: { } __attribute__ ((__deprecated__ ("use '" "std::invoke_result" "' instead"))); 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: template::__type)> 19959: using aligned_storage_t = typename aligned_storage<_Len, _Align>::type; 19959: 19959: template 19959: using aligned_union_t = typename aligned_union<_Len, _Types...>::type; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: template 19959: using decay_t = typename decay<_Tp>::type; 19959: 19959: 19959: template 19959: using enable_if_t = typename enable_if<_Cond, _Tp>::type; 19959: 19959: 19959: template 19959: using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; 19959: 19959: 19959: template 19959: using common_type_t = typename common_type<_Tp...>::type; 19959: 19959: 19959: template 19959: using underlying_type_t = typename underlying_type<_Tp>::type; 19959: 19959: 19959: template 19959: using result_of_t = typename result_of<_Tp>::type; 19959: 19959: 19959: 19959: 19959: 19959: template using void_t = void; 19959: # 2659 "/usr/include/c++/13/type_traits" 3 19959: template class _Op, typename... _Args> 19959: struct __detector 19959: { 19959: using type = _Default; 19959: using __is_detected = false_type; 19959: }; 19959: 19959: 19959: template class _Op, 19959: typename... _Args> 19959: struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...> 19959: { 19959: using type = _Op<_Args...>; 19959: using __is_detected = true_type; 19959: }; 19959: 19959: template class _Op, 19959: typename... _Args> 19959: using __detected_or = __detector<_Default, void, _Op, _Args...>; 19959: 19959: 19959: 19959: template class _Op, 19959: typename... _Args> 19959: using __detected_or_t 19959: = typename __detected_or<_Default, _Op, _Args...>::type; 19959: # 2701 "/usr/include/c++/13/type_traits" 3 19959: template 19959: struct __is_swappable; 19959: 19959: template 19959: struct __is_nothrow_swappable; 19959: 19959: template 19959: struct __is_tuple_like_impl : false_type 19959: { }; 19959: 19959: 19959: template 19959: struct __is_tuple_like 19959: : public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type 19959: { }; 19959: 19959: 19959: template 19959: 19959: inline 19959: _Require<__not_<__is_tuple_like<_Tp>>, 19959: is_move_constructible<_Tp>, 19959: is_move_assignable<_Tp>> 19959: swap(_Tp&, _Tp&) 19959: noexcept(__and_, 19959: is_nothrow_move_assignable<_Tp>>::value); 19959: 19959: template 19959: 19959: inline 19959: __enable_if_t<__is_swappable<_Tp>::value> 19959: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 19959: noexcept(__is_nothrow_swappable<_Tp>::value); 19959: 19959: 19959: namespace __swappable_details { 19959: using std::swap; 19959: 19959: struct __do_is_swappable_impl 19959: { 19959: template(), std::declval<_Tp&>()))> 19959: static true_type __test(int); 19959: 19959: template 19959: static false_type __test(...); 19959: }; 19959: 19959: struct __do_is_nothrow_swappable_impl 19959: { 19959: template 19959: static __bool_constant< 19959: noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) 19959: > __test(int); 19959: 19959: template 19959: static false_type __test(...); 19959: }; 19959: 19959: } 19959: 19959: template 19959: struct __is_swappable_impl 19959: : public __swappable_details::__do_is_swappable_impl 19959: { 19959: typedef decltype(__test<_Tp>(0)) type; 19959: }; 19959: 19959: template 19959: struct __is_nothrow_swappable_impl 19959: : public __swappable_details::__do_is_nothrow_swappable_impl 19959: { 19959: typedef decltype(__test<_Tp>(0)) type; 19959: }; 19959: 19959: template 19959: struct __is_swappable 19959: : public __is_swappable_impl<_Tp>::type 19959: { }; 19959: 19959: template 19959: struct __is_nothrow_swappable 19959: : public __is_nothrow_swappable_impl<_Tp>::type 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_swappable 19959: : public __is_swappable_impl<_Tp>::type 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_nothrow_swappable 19959: : public __is_nothrow_swappable_impl<_Tp>::type 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: 19959: template 19959: inline constexpr bool is_swappable_v = 19959: is_swappable<_Tp>::value; 19959: 19959: 19959: template 19959: inline constexpr bool is_nothrow_swappable_v = 19959: is_nothrow_swappable<_Tp>::value; 19959: 19959: 19959: 19959: namespace __swappable_with_details { 19959: using std::swap; 19959: 19959: struct __do_is_swappable_with_impl 19959: { 19959: template(), std::declval<_Up>())), 19959: typename 19959: = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))> 19959: static true_type __test(int); 19959: 19959: template 19959: static false_type __test(...); 19959: }; 19959: 19959: struct __do_is_nothrow_swappable_with_impl 19959: { 19959: template 19959: static __bool_constant< 19959: noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())) 19959: && 19959: noexcept(swap(std::declval<_Up>(), std::declval<_Tp>())) 19959: > __test(int); 19959: 19959: template 19959: static false_type __test(...); 19959: }; 19959: 19959: } 19959: 19959: template 19959: struct __is_swappable_with_impl 19959: : public __swappable_with_details::__do_is_swappable_with_impl 19959: { 19959: typedef decltype(__test<_Tp, _Up>(0)) type; 19959: }; 19959: 19959: 19959: template 19959: struct __is_swappable_with_impl<_Tp&, _Tp&> 19959: : public __swappable_details::__do_is_swappable_impl 19959: { 19959: typedef decltype(__test<_Tp&>(0)) type; 19959: }; 19959: 19959: template 19959: struct __is_nothrow_swappable_with_impl 19959: : public __swappable_with_details::__do_is_nothrow_swappable_with_impl 19959: { 19959: typedef decltype(__test<_Tp, _Up>(0)) type; 19959: }; 19959: 19959: 19959: template 19959: struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&> 19959: : public __swappable_details::__do_is_nothrow_swappable_impl 19959: { 19959: typedef decltype(__test<_Tp&>(0)) type; 19959: }; 19959: 19959: 19959: 19959: template 19959: struct is_swappable_with 19959: : public __is_swappable_with_impl<_Tp, _Up>::type 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "first template argument must be a complete class or an unbounded array"); 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 19959: "second template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_nothrow_swappable_with 19959: : public __is_nothrow_swappable_with_impl<_Tp, _Up>::type 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "first template argument must be a complete class or an unbounded array"); 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 19959: "second template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: 19959: template 19959: inline constexpr bool is_swappable_with_v = 19959: is_swappable_with<_Tp, _Up>::value; 19959: 19959: 19959: template 19959: inline constexpr bool is_nothrow_swappable_with_v = 19959: is_nothrow_swappable_with<_Tp, _Up>::value; 19959: # 2924 "/usr/include/c++/13/type_traits" 3 19959: template::value, typename = void> 19959: struct __is_invocable_impl 19959: : false_type 19959: { 19959: using __nothrow_conv = false_type; 19959: }; 19959: 19959: 19959: template 19959: struct __is_invocable_impl<_Result, _Ret, 19959: true, 19959: __void_t> 19959: : true_type 19959: { 19959: using __nothrow_conv = true_type; 19959: }; 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 19959: 19959: template 19959: struct __is_invocable_impl<_Result, _Ret, 19959: false, 19959: __void_t> 19959: { 19959: private: 19959: 19959: using _Res_t = typename _Result::type; 19959: 19959: 19959: 19959: static _Res_t _S_get() noexcept; 19959: 19959: 19959: template 19959: static void _S_conv(__type_identity_t<_Tp>) noexcept; 19959: 19959: 19959: template(_S_get())), 19959: typename = decltype(_S_conv<_Tp>(_S_get())), 19959: 19959: bool _Dangle = __reference_converts_from_temporary(_Tp, _Res_t) 19959: 19959: 19959: 19959: > 19959: static __bool_constant<_Nothrow && !_Dangle> 19959: _S_test(int); 19959: 19959: template 19959: static false_type 19959: _S_test(...); 19959: 19959: public: 19959: 19959: using type = decltype(_S_test<_Ret, true>(1)); 19959: 19959: 19959: using __nothrow_conv = decltype(_S_test<_Ret>(1)); 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: template 19959: struct __is_invocable 19959: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 19959: { }; 19959: 19959: template 19959: constexpr bool __call_is_nt(__invoke_memfun_ref) 19959: { 19959: using _Up = typename __inv_unwrap<_Tp>::type; 19959: return noexcept((std::declval<_Up>().*std::declval<_Fn>())( 19959: std::declval<_Args>()...)); 19959: } 19959: 19959: template 19959: constexpr bool __call_is_nt(__invoke_memfun_deref) 19959: { 19959: return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( 19959: std::declval<_Args>()...)); 19959: } 19959: 19959: template 19959: constexpr bool __call_is_nt(__invoke_memobj_ref) 19959: { 19959: using _Up = typename __inv_unwrap<_Tp>::type; 19959: return noexcept(std::declval<_Up>().*std::declval<_Fn>()); 19959: } 19959: 19959: template 19959: constexpr bool __call_is_nt(__invoke_memobj_deref) 19959: { 19959: return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); 19959: } 19959: 19959: template 19959: constexpr bool __call_is_nt(__invoke_other) 19959: { 19959: return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); 19959: } 19959: 19959: template 19959: struct __call_is_nothrow 19959: : __bool_constant< 19959: std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) 19959: > 19959: { }; 19959: 19959: template 19959: using __call_is_nothrow_ 19959: = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; 19959: 19959: 19959: template 19959: struct __is_nothrow_invocable 19959: : __and_<__is_invocable<_Fn, _Args...>, 19959: __call_is_nothrow_<_Fn, _Args...>>::type 19959: { }; 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 19959: struct __nonesuchbase {}; 19959: struct __nonesuch : private __nonesuchbase { 19959: ~__nonesuch() = delete; 19959: __nonesuch(__nonesuch const&) = delete; 19959: void operator=(__nonesuch const&) = delete; 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct invoke_result 19959: : public __invoke_result<_Functor, _ArgTypes...> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Functor>{}), 19959: "_Functor must be a complete class or an unbounded array"); 19959: static_assert((std::__is_complete_or_unbounded( 19959: __type_identity<_ArgTypes>{}) && ...), 19959: "each argument type must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: using invoke_result_t = typename invoke_result<_Fn, _Args...>::type; 19959: 19959: 19959: template 19959: struct is_invocable 19959: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 19959: "_Fn must be a complete class or an unbounded array"); 19959: static_assert((std::__is_complete_or_unbounded( 19959: __type_identity<_ArgTypes>{}) && ...), 19959: "each argument type must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_invocable_r 19959: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 19959: "_Fn must be a complete class or an unbounded array"); 19959: static_assert((std::__is_complete_or_unbounded( 19959: __type_identity<_ArgTypes>{}) && ...), 19959: "each argument type must be a complete class or an unbounded array"); 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 19959: "_Ret must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: struct is_nothrow_invocable 19959: : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>, 19959: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 19959: "_Fn must be a complete class or an unbounded array"); 19959: static_assert((std::__is_complete_or_unbounded( 19959: __type_identity<_ArgTypes>{}) && ...), 19959: "each argument type must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: using __is_nt_invocable_impl 19959: = typename __is_invocable_impl<_Result, _Ret>::__nothrow_conv; 19959: 19959: 19959: 19959: template 19959: struct is_nothrow_invocable_r 19959: : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>, 19959: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 19959: "_Fn must be a complete class or an unbounded array"); 19959: static_assert((std::__is_complete_or_unbounded( 19959: __type_identity<_ArgTypes>{}) && ...), 19959: "each argument type must be a complete class or an unbounded array"); 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 19959: "_Ret must be a complete class or an unbounded array"); 19959: }; 19959: # 3155 "/usr/include/c++/13/type_traits" 3 19959: template 19959: inline constexpr bool is_void_v = is_void<_Tp>::value; 19959: template 19959: inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value; 19959: template 19959: inline constexpr bool is_integral_v = is_integral<_Tp>::value; 19959: template 19959: inline constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; 19959: 19959: template 19959: inline constexpr bool is_array_v = false; 19959: template 19959: inline constexpr bool is_array_v<_Tp[]> = true; 19959: template 19959: inline constexpr bool is_array_v<_Tp[_Num]> = true; 19959: 19959: template 19959: inline constexpr bool is_pointer_v = is_pointer<_Tp>::value; 19959: template 19959: inline constexpr bool is_lvalue_reference_v = false; 19959: template 19959: inline constexpr bool is_lvalue_reference_v<_Tp&> = true; 19959: template 19959: inline constexpr bool is_rvalue_reference_v = false; 19959: template 19959: inline constexpr bool is_rvalue_reference_v<_Tp&&> = true; 19959: template 19959: inline constexpr bool is_member_object_pointer_v = 19959: is_member_object_pointer<_Tp>::value; 19959: template 19959: inline constexpr bool is_member_function_pointer_v = 19959: is_member_function_pointer<_Tp>::value; 19959: template 19959: inline constexpr bool is_enum_v = __is_enum(_Tp); 19959: template 19959: inline constexpr bool is_union_v = __is_union(_Tp); 19959: template 19959: inline constexpr bool is_class_v = __is_class(_Tp); 19959: template 19959: inline constexpr bool is_function_v = is_function<_Tp>::value; 19959: template 19959: inline constexpr bool is_reference_v = false; 19959: template 19959: inline constexpr bool is_reference_v<_Tp&> = true; 19959: template 19959: inline constexpr bool is_reference_v<_Tp&&> = true; 19959: template 19959: inline constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value; 19959: template 19959: inline constexpr bool is_fundamental_v = is_fundamental<_Tp>::value; 19959: template 19959: inline constexpr bool is_object_v = is_object<_Tp>::value; 19959: template 19959: inline constexpr bool is_scalar_v = is_scalar<_Tp>::value; 19959: template 19959: inline constexpr bool is_compound_v = is_compound<_Tp>::value; 19959: template 19959: inline constexpr bool is_member_pointer_v = is_member_pointer<_Tp>::value; 19959: template 19959: inline constexpr bool is_const_v = false; 19959: template 19959: inline constexpr bool is_const_v = true; 19959: template 19959: inline constexpr bool is_volatile_v = false; 19959: template 19959: inline constexpr bool is_volatile_v = true; 19959: 19959: template 19959: inline constexpr bool is_trivial_v = __is_trivial(_Tp); 19959: template 19959: inline constexpr bool is_trivially_copyable_v = __is_trivially_copyable(_Tp); 19959: template 19959: inline constexpr bool is_standard_layout_v = __is_standard_layout(_Tp); 19959: template 19959: 19959: inline constexpr bool is_pod_v = __is_pod(_Tp); 19959: template 19959: [[__deprecated__]] 19959: inline constexpr bool is_literal_type_v = __is_literal_type(_Tp); 19959: template 19959: inline constexpr bool is_empty_v = __is_empty(_Tp); 19959: template 19959: inline constexpr bool is_polymorphic_v = __is_polymorphic(_Tp); 19959: template 19959: inline constexpr bool is_abstract_v = __is_abstract(_Tp); 19959: template 19959: inline constexpr bool is_final_v = __is_final(_Tp); 19959: 19959: template 19959: inline constexpr bool is_signed_v = is_signed<_Tp>::value; 19959: template 19959: inline constexpr bool is_unsigned_v = is_unsigned<_Tp>::value; 19959: 19959: template 19959: inline constexpr bool is_constructible_v = __is_constructible(_Tp, _Args...); 19959: template 19959: inline constexpr bool is_default_constructible_v = __is_constructible(_Tp); 19959: template 19959: inline constexpr bool is_copy_constructible_v 19959: = __is_constructible(_Tp, __add_lval_ref_t); 19959: template 19959: inline constexpr bool is_move_constructible_v 19959: = __is_constructible(_Tp, __add_rval_ref_t<_Tp>); 19959: 19959: template 19959: inline constexpr bool is_assignable_v = __is_assignable(_Tp, _Up); 19959: template 19959: inline constexpr bool is_copy_assignable_v 19959: = __is_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t); 19959: template 19959: inline constexpr bool is_move_assignable_v 19959: = __is_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 19959: 19959: template 19959: inline constexpr bool is_destructible_v = is_destructible<_Tp>::value; 19959: 19959: template 19959: inline constexpr bool is_trivially_constructible_v 19959: = __is_trivially_constructible(_Tp, _Args...); 19959: template 19959: inline constexpr bool is_trivially_default_constructible_v 19959: = __is_trivially_constructible(_Tp); 19959: template 19959: inline constexpr bool is_trivially_copy_constructible_v 19959: = __is_trivially_constructible(_Tp, __add_lval_ref_t); 19959: template 19959: inline constexpr bool is_trivially_move_constructible_v 19959: = __is_trivially_constructible(_Tp, __add_rval_ref_t<_Tp>); 19959: 19959: template 19959: inline constexpr bool is_trivially_assignable_v 19959: = __is_trivially_assignable(_Tp, _Up); 19959: template 19959: inline constexpr bool is_trivially_copy_assignable_v 19959: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 19959: __add_lval_ref_t); 19959: template 19959: inline constexpr bool is_trivially_move_assignable_v 19959: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 19959: __add_rval_ref_t<_Tp>); 19959: template 19959: inline constexpr bool is_trivially_destructible_v = 19959: is_trivially_destructible<_Tp>::value; 19959: template 19959: inline constexpr bool is_nothrow_constructible_v 19959: = __is_nothrow_constructible(_Tp, _Args...); 19959: template 19959: inline constexpr bool is_nothrow_default_constructible_v 19959: = __is_nothrow_constructible(_Tp); 19959: template 19959: inline constexpr bool is_nothrow_copy_constructible_v 19959: = __is_nothrow_constructible(_Tp, __add_lval_ref_t); 19959: template 19959: inline constexpr bool is_nothrow_move_constructible_v 19959: = __is_nothrow_constructible(_Tp, __add_rval_ref_t<_Tp>); 19959: 19959: template 19959: inline constexpr bool is_nothrow_assignable_v 19959: = __is_nothrow_assignable(_Tp, _Up); 19959: template 19959: inline constexpr bool is_nothrow_copy_assignable_v 19959: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, 19959: __add_lval_ref_t); 19959: template 19959: inline constexpr bool is_nothrow_move_assignable_v 19959: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 19959: 19959: template 19959: inline constexpr bool is_nothrow_destructible_v = 19959: is_nothrow_destructible<_Tp>::value; 19959: 19959: template 19959: inline constexpr bool has_virtual_destructor_v 19959: = __has_virtual_destructor(_Tp); 19959: 19959: template 19959: inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value; 19959: 19959: template 19959: inline constexpr size_t rank_v = 0; 19959: template 19959: inline constexpr size_t rank_v<_Tp[_Size]> = 1 + rank_v<_Tp>; 19959: template 19959: inline constexpr size_t rank_v<_Tp[]> = 1 + rank_v<_Tp>; 19959: 19959: template 19959: inline constexpr size_t extent_v = 0; 19959: template 19959: inline constexpr size_t extent_v<_Tp[_Size], 0> = _Size; 19959: template 19959: inline constexpr size_t extent_v<_Tp[_Size], _Idx> = extent_v<_Tp, _Idx - 1>; 19959: template 19959: inline constexpr size_t extent_v<_Tp[], 0> = 0; 19959: template 19959: inline constexpr size_t extent_v<_Tp[], _Idx> = extent_v<_Tp, _Idx - 1>; 19959: 19959: 19959: template 19959: inline constexpr bool is_same_v = __is_same(_Tp, _Up); 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline constexpr bool is_base_of_v = __is_base_of(_Base, _Derived); 19959: 19959: template 19959: inline constexpr bool is_convertible_v = __is_convertible(_From, _To); 19959: 19959: 19959: 19959: 19959: template 19959: inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; 19959: template 19959: inline constexpr bool is_nothrow_invocable_v 19959: = is_nothrow_invocable<_Fn, _Args...>::value; 19959: template 19959: inline constexpr bool is_invocable_r_v 19959: = is_invocable_r<_Ret, _Fn, _Args...>::value; 19959: template 19959: inline constexpr bool is_nothrow_invocable_r_v 19959: = is_nothrow_invocable_r<_Ret, _Fn, _Args...>::value; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct has_unique_object_representations 19959: : bool_constant<__has_unique_object_representations( 19959: remove_cv_t> 19959: )> 19959: { 19959: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 19959: "template argument must be a complete class or an unbounded array"); 19959: }; 19959: 19959: 19959: template 19959: inline constexpr bool has_unique_object_representations_v 19959: = has_unique_object_representations<_Tp>::value; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_aggregate 19959: : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline constexpr bool is_aggregate_v = __is_aggregate(remove_cv_t<_Tp>); 19959: # 3833 "/usr/include/c++/13/type_traits" 3 19959: 19959: } 19959: # 38 "/usr/include/c++/13/bits/move.h" 2 3 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline constexpr _Tp* 19959: __addressof(_Tp& __r) noexcept 19959: { return __builtin_addressof(__r); } 19959: # 67 "/usr/include/c++/13/bits/move.h" 3 19959: template 19959: [[__nodiscard__]] 19959: constexpr _Tp&& 19959: forward(typename std::remove_reference<_Tp>::type& __t) noexcept 19959: { return static_cast<_Tp&&>(__t); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: constexpr _Tp&& 19959: forward(typename std::remove_reference<_Tp>::type&& __t) noexcept 19959: { 19959: static_assert(!std::is_lvalue_reference<_Tp>::value, 19959: "std::forward must not be used to convert an rvalue to an lvalue"); 19959: return static_cast<_Tp&&>(__t); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: constexpr typename std::remove_reference<_Tp>::type&& 19959: move(_Tp&& __t) noexcept 19959: { return static_cast::type&&>(__t); } 19959: 19959: 19959: template 19959: struct __move_if_noexcept_cond 19959: : public __and_<__not_>, 19959: is_copy_constructible<_Tp>>::type { }; 19959: # 114 "/usr/include/c++/13/bits/move.h" 3 19959: template 19959: [[__nodiscard__]] 19959: constexpr 19959: __conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&> 19959: move_if_noexcept(_Tp& __x) noexcept 19959: { return std::move(__x); } 19959: # 135 "/usr/include/c++/13/bits/move.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr _Tp* 19959: addressof(_Tp& __r) noexcept 19959: { return std::__addressof(__r); } 19959: 19959: 19959: 19959: template 19959: const _Tp* addressof(const _Tp&&) = delete; 19959: 19959: 19959: template 19959: 19959: inline _Tp 19959: __exchange(_Tp& __obj, _Up&& __new_val) 19959: { 19959: _Tp __old_val = std::move(__obj); 19959: __obj = std::forward<_Up>(__new_val); 19959: return __old_val; 19959: } 19959: # 179 "/usr/include/c++/13/bits/move.h" 3 19959: template 19959: 19959: inline 19959: 19959: typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, 19959: is_move_constructible<_Tp>, 19959: is_move_assignable<_Tp>>::value>::type 19959: 19959: 19959: 19959: swap(_Tp& __a, _Tp& __b) 19959: noexcept(__and_, is_nothrow_move_assignable<_Tp>>::value) 19959: 19959: { 19959: 19959: 19959: 19959: 19959: _Tp __tmp = std::move(__a); 19959: __a = std::move(__b); 19959: __b = std::move(__tmp); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: 19959: inline 19959: 19959: typename enable_if<__is_swappable<_Tp>::value>::type 19959: 19959: 19959: 19959: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 19959: noexcept(__is_nothrow_swappable<_Tp>::value) 19959: { 19959: for (size_t __n = 0; __n < _Nm; ++__n) 19959: swap(__a[__n], __b[__n]); 19959: } 19959: 19959: 19959: 19959: } 19959: # 40 "/usr/include/c++/13/bits/atomic_base.h" 2 3 19959: # 49 "/usr/include/c++/13/bits/atomic_base.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 79 "/usr/include/c++/13/bits/atomic_base.h" 3 19959: typedef enum memory_order 19959: { 19959: memory_order_relaxed, 19959: memory_order_consume, 19959: memory_order_acquire, 19959: memory_order_release, 19959: memory_order_acq_rel, 19959: memory_order_seq_cst 19959: } memory_order; 19959: 19959: 19959: 19959: enum __memory_order_modifier 19959: { 19959: __memory_order_mask = 0x0ffff, 19959: __memory_order_modifier_mask = 0xffff0000, 19959: __memory_order_hle_acquire = 0x10000, 19959: __memory_order_hle_release = 0x20000 19959: }; 19959: 19959: 19959: constexpr memory_order 19959: operator|(memory_order __m, __memory_order_modifier __mod) 19959: { 19959: return memory_order(int(__m) | int(__mod)); 19959: } 19959: 19959: constexpr memory_order 19959: operator&(memory_order __m, __memory_order_modifier __mod) 19959: { 19959: return memory_order(int(__m) & int(__mod)); 19959: } 19959: 19959: 19959: 19959: 19959: constexpr memory_order 19959: __cmpexch_failure_order2(memory_order __m) noexcept 19959: { 19959: return __m == memory_order_acq_rel ? memory_order_acquire 19959: : __m == memory_order_release ? memory_order_relaxed : __m; 19959: } 19959: 19959: constexpr memory_order 19959: __cmpexch_failure_order(memory_order __m) noexcept 19959: { 19959: return memory_order(__cmpexch_failure_order2(__m & __memory_order_mask) 19959: | __memory_order_modifier(__m & __memory_order_modifier_mask)); 19959: } 19959: 19959: constexpr bool 19959: __is_valid_cmpexch_failure_order(memory_order __m) noexcept 19959: { 19959: return (__m & __memory_order_mask) != memory_order_release 19959: && (__m & __memory_order_mask) != memory_order_acq_rel; 19959: } 19959: 19959: 19959: template 19959: struct __atomic_base; 19959: 19959: 19959: 19959: inline __attribute__((__always_inline__)) void 19959: atomic_thread_fence(memory_order __m) noexcept 19959: { __atomic_thread_fence(int(__m)); } 19959: 19959: inline __attribute__((__always_inline__)) void 19959: atomic_signal_fence(memory_order __m) noexcept 19959: { __atomic_signal_fence(int(__m)); } 19959: 19959: 19959: template 19959: inline _Tp 19959: kill_dependency(_Tp __y) noexcept 19959: { 19959: _Tp __ret(__y); 19959: return __ret; 19959: } 19959: # 173 "/usr/include/c++/13/bits/atomic_base.h" 3 19959: template 19959: struct atomic; 19959: 19959: template 19959: struct atomic<_Tp*>; 19959: 19959: 19959: 19959: typedef bool __atomic_flag_data_type; 19959: # 198 "/usr/include/c++/13/bits/atomic_base.h" 3 19959: extern "C" { 19959: 19959: struct __atomic_flag_base 19959: { 19959: __atomic_flag_data_type _M_i ; 19959: }; 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct atomic_flag : public __atomic_flag_base 19959: { 19959: atomic_flag() noexcept = default; 19959: ~atomic_flag() noexcept = default; 19959: atomic_flag(const atomic_flag&) = delete; 19959: atomic_flag& operator=(const atomic_flag&) = delete; 19959: atomic_flag& operator=(const atomic_flag&) volatile = delete; 19959: 19959: 19959: constexpr atomic_flag(bool __i) noexcept 19959: : __atomic_flag_base{ _S_init(__i) } 19959: { } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: test_and_set(memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: return __atomic_test_and_set (&_M_i, int(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: return __atomic_test_and_set (&_M_i, int(__m)); 19959: } 19959: # 284 "/usr/include/c++/13/bits/atomic_base.h" 3 19959: inline __attribute__((__always_inline__)) void 19959: clear(memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: memory_order __b __attribute__ ((__unused__)) 19959: = __m & __memory_order_mask; 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 19959: 19959: __atomic_clear (&_M_i, int(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) void 19959: clear(memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: memory_order __b __attribute__ ((__unused__)) 19959: = __m & __memory_order_mask; 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 19959: 19959: __atomic_clear (&_M_i, int(__m)); 19959: } 19959: 19959: private: 19959: static constexpr __atomic_flag_data_type 19959: _S_init(bool __i) 19959: { return __i ? 1 : 0; } 19959: }; 19959: # 340 "/usr/include/c++/13/bits/atomic_base.h" 3 19959: template 19959: struct __atomic_base 19959: { 19959: using value_type = _ITp; 19959: using difference_type = value_type; 19959: 19959: private: 19959: typedef _ITp __int_type; 19959: 19959: static constexpr int _S_alignment = 19959: sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp); 19959: 19959: alignas(_S_alignment) __int_type _M_i ; 19959: 19959: public: 19959: __atomic_base() noexcept = default; 19959: ~__atomic_base() noexcept = default; 19959: __atomic_base(const __atomic_base&) = delete; 19959: __atomic_base& operator=(const __atomic_base&) = delete; 19959: __atomic_base& operator=(const __atomic_base&) volatile = delete; 19959: 19959: 19959: constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } 19959: 19959: operator __int_type() const noexcept 19959: { return load(); } 19959: 19959: operator __int_type() const volatile noexcept 19959: { return load(); } 19959: 19959: __int_type 19959: operator=(__int_type __i) noexcept 19959: { 19959: store(__i); 19959: return __i; 19959: } 19959: 19959: __int_type 19959: operator=(__int_type __i) volatile noexcept 19959: { 19959: store(__i); 19959: return __i; 19959: } 19959: 19959: __int_type 19959: operator++(int) noexcept 19959: { return fetch_add(1); } 19959: 19959: __int_type 19959: operator++(int) volatile noexcept 19959: { return fetch_add(1); } 19959: 19959: __int_type 19959: operator--(int) noexcept 19959: { return fetch_sub(1); } 19959: 19959: __int_type 19959: operator--(int) volatile noexcept 19959: { return fetch_sub(1); } 19959: 19959: __int_type 19959: operator++() noexcept 19959: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 19959: 19959: __int_type 19959: operator++() volatile noexcept 19959: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 19959: 19959: __int_type 19959: operator--() noexcept 19959: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 19959: 19959: __int_type 19959: operator--() volatile noexcept 19959: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 19959: 19959: __int_type 19959: operator+=(__int_type __i) noexcept 19959: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 19959: 19959: __int_type 19959: operator+=(__int_type __i) volatile noexcept 19959: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 19959: 19959: __int_type 19959: operator-=(__int_type __i) noexcept 19959: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 19959: 19959: __int_type 19959: operator-=(__int_type __i) volatile noexcept 19959: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 19959: 19959: __int_type 19959: operator&=(__int_type __i) noexcept 19959: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 19959: 19959: __int_type 19959: operator&=(__int_type __i) volatile noexcept 19959: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 19959: 19959: __int_type 19959: operator|=(__int_type __i) noexcept 19959: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 19959: 19959: __int_type 19959: operator|=(__int_type __i) volatile noexcept 19959: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 19959: 19959: __int_type 19959: operator^=(__int_type __i) noexcept 19959: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 19959: 19959: __int_type 19959: operator^=(__int_type __i) volatile noexcept 19959: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 19959: 19959: bool 19959: is_lock_free() const noexcept 19959: { 19959: 19959: return __atomic_is_lock_free(sizeof(_M_i), 19959: reinterpret_cast(-_S_alignment)); 19959: } 19959: 19959: bool 19959: is_lock_free() const volatile noexcept 19959: { 19959: 19959: return __atomic_is_lock_free(sizeof(_M_i), 19959: reinterpret_cast(-_S_alignment)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) void 19959: store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: memory_order __b __attribute__ ((__unused__)) 19959: = __m & __memory_order_mask; 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 19959: 19959: __atomic_store_n(&_M_i, __i, int(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) void 19959: store(__int_type __i, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: memory_order __b __attribute__ ((__unused__)) 19959: = __m & __memory_order_mask; 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 19959: 19959: __atomic_store_n(&_M_i, __i, int(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) __int_type 19959: load(memory_order __m = memory_order_seq_cst) const noexcept 19959: { 19959: memory_order __b __attribute__ ((__unused__)) 19959: = __m & __memory_order_mask; 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 19959: 19959: return __atomic_load_n(&_M_i, int(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) __int_type 19959: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 19959: { 19959: memory_order __b __attribute__ ((__unused__)) 19959: = __m & __memory_order_mask; 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 19959: 19959: return __atomic_load_n(&_M_i, int(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) __int_type 19959: exchange(__int_type __i, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: return __atomic_exchange_n(&_M_i, __i, int(__m)); 19959: } 19959: 19959: 19959: inline __attribute__((__always_inline__)) __int_type 19959: exchange(__int_type __i, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: return __atomic_exchange_n(&_M_i, __i, int(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: compare_exchange_weak(__int_type& __i1, __int_type __i2, 19959: memory_order __m1, memory_order __m2) noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 19959: 19959: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 19959: int(__m1), int(__m2)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: compare_exchange_weak(__int_type& __i1, __int_type __i2, 19959: memory_order __m1, 19959: memory_order __m2) volatile noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 19959: 19959: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 19959: int(__m1), int(__m2)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: compare_exchange_weak(__int_type& __i1, __int_type __i2, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: return compare_exchange_weak(__i1, __i2, __m, 19959: __cmpexch_failure_order(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: compare_exchange_weak(__int_type& __i1, __int_type __i2, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: return compare_exchange_weak(__i1, __i2, __m, 19959: __cmpexch_failure_order(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: compare_exchange_strong(__int_type& __i1, __int_type __i2, 19959: memory_order __m1, memory_order __m2) noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 19959: 19959: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 19959: int(__m1), int(__m2)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: compare_exchange_strong(__int_type& __i1, __int_type __i2, 19959: memory_order __m1, 19959: memory_order __m2) volatile noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 19959: 19959: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 19959: int(__m1), int(__m2)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: compare_exchange_strong(__int_type& __i1, __int_type __i2, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: return compare_exchange_strong(__i1, __i2, __m, 19959: __cmpexch_failure_order(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: compare_exchange_strong(__int_type& __i1, __int_type __i2, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: return compare_exchange_strong(__i1, __i2, __m, 19959: __cmpexch_failure_order(__m)); 19959: } 19959: # 632 "/usr/include/c++/13/bits/atomic_base.h" 3 19959: inline __attribute__((__always_inline__)) __int_type 19959: fetch_add(__int_type __i, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 19959: 19959: inline __attribute__((__always_inline__)) __int_type 19959: fetch_add(__int_type __i, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 19959: 19959: inline __attribute__((__always_inline__)) __int_type 19959: fetch_sub(__int_type __i, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 19959: 19959: inline __attribute__((__always_inline__)) __int_type 19959: fetch_sub(__int_type __i, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 19959: 19959: inline __attribute__((__always_inline__)) __int_type 19959: fetch_and(__int_type __i, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 19959: 19959: inline __attribute__((__always_inline__)) __int_type 19959: fetch_and(__int_type __i, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 19959: 19959: inline __attribute__((__always_inline__)) __int_type 19959: fetch_or(__int_type __i, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 19959: 19959: inline __attribute__((__always_inline__)) __int_type 19959: fetch_or(__int_type __i, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 19959: 19959: inline __attribute__((__always_inline__)) __int_type 19959: fetch_xor(__int_type __i, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 19959: 19959: inline __attribute__((__always_inline__)) __int_type 19959: fetch_xor(__int_type __i, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 19959: }; 19959: 19959: 19959: 19959: template 19959: struct __atomic_base<_PTp*> 19959: { 19959: private: 19959: typedef _PTp* __pointer_type; 19959: 19959: __pointer_type _M_p ; 19959: 19959: 19959: constexpr ptrdiff_t 19959: _M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); } 19959: 19959: constexpr ptrdiff_t 19959: _M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); } 19959: 19959: public: 19959: __atomic_base() noexcept = default; 19959: ~__atomic_base() noexcept = default; 19959: __atomic_base(const __atomic_base&) = delete; 19959: __atomic_base& operator=(const __atomic_base&) = delete; 19959: __atomic_base& operator=(const __atomic_base&) volatile = delete; 19959: 19959: 19959: constexpr __atomic_base(__pointer_type __p) noexcept : _M_p (__p) { } 19959: 19959: operator __pointer_type() const noexcept 19959: { return load(); } 19959: 19959: operator __pointer_type() const volatile noexcept 19959: { return load(); } 19959: 19959: __pointer_type 19959: operator=(__pointer_type __p) noexcept 19959: { 19959: store(__p); 19959: return __p; 19959: } 19959: 19959: __pointer_type 19959: operator=(__pointer_type __p) volatile noexcept 19959: { 19959: store(__p); 19959: return __p; 19959: } 19959: 19959: __pointer_type 19959: operator++(int) noexcept 19959: { return fetch_add(1); } 19959: 19959: __pointer_type 19959: operator++(int) volatile noexcept 19959: { return fetch_add(1); } 19959: 19959: __pointer_type 19959: operator--(int) noexcept 19959: { return fetch_sub(1); } 19959: 19959: __pointer_type 19959: operator--(int) volatile noexcept 19959: { return fetch_sub(1); } 19959: 19959: __pointer_type 19959: operator++() noexcept 19959: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 19959: int(memory_order_seq_cst)); } 19959: 19959: __pointer_type 19959: operator++() volatile noexcept 19959: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 19959: int(memory_order_seq_cst)); } 19959: 19959: __pointer_type 19959: operator--() noexcept 19959: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 19959: int(memory_order_seq_cst)); } 19959: 19959: __pointer_type 19959: operator--() volatile noexcept 19959: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 19959: int(memory_order_seq_cst)); } 19959: 19959: __pointer_type 19959: operator+=(ptrdiff_t __d) noexcept 19959: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 19959: int(memory_order_seq_cst)); } 19959: 19959: __pointer_type 19959: operator+=(ptrdiff_t __d) volatile noexcept 19959: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 19959: int(memory_order_seq_cst)); } 19959: 19959: __pointer_type 19959: operator-=(ptrdiff_t __d) noexcept 19959: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 19959: int(memory_order_seq_cst)); } 19959: 19959: __pointer_type 19959: operator-=(ptrdiff_t __d) volatile noexcept 19959: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 19959: int(memory_order_seq_cst)); } 19959: 19959: bool 19959: is_lock_free() const noexcept 19959: { 19959: 19959: return __atomic_is_lock_free(sizeof(_M_p), 19959: reinterpret_cast(-__alignof(_M_p))); 19959: } 19959: 19959: bool 19959: is_lock_free() const volatile noexcept 19959: { 19959: 19959: return __atomic_is_lock_free(sizeof(_M_p), 19959: reinterpret_cast(-__alignof(_M_p))); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) void 19959: store(__pointer_type __p, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: memory_order __b __attribute__ ((__unused__)) 19959: = __m & __memory_order_mask; 19959: 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 19959: 19959: __atomic_store_n(&_M_p, __p, int(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) void 19959: store(__pointer_type __p, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: memory_order __b __attribute__ ((__unused__)) 19959: = __m & __memory_order_mask; 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 19959: 19959: __atomic_store_n(&_M_p, __p, int(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) __pointer_type 19959: load(memory_order __m = memory_order_seq_cst) const noexcept 19959: { 19959: memory_order __b __attribute__ ((__unused__)) 19959: = __m & __memory_order_mask; 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 19959: 19959: return __atomic_load_n(&_M_p, int(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) __pointer_type 19959: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 19959: { 19959: memory_order __b __attribute__ ((__unused__)) 19959: = __m & __memory_order_mask; 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 19959: 19959: return __atomic_load_n(&_M_p, int(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) __pointer_type 19959: exchange(__pointer_type __p, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: return __atomic_exchange_n(&_M_p, __p, int(__m)); 19959: } 19959: 19959: 19959: inline __attribute__((__always_inline__)) __pointer_type 19959: exchange(__pointer_type __p, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: return __atomic_exchange_n(&_M_p, __p, int(__m)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 19959: memory_order __m1, 19959: memory_order __m2) noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 19959: 19959: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 19959: int(__m1), int(__m2)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 19959: memory_order __m1, 19959: memory_order __m2) volatile noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 19959: 19959: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 19959: int(__m1), int(__m2)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 19959: memory_order __m1, 19959: memory_order __m2) noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 19959: 19959: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 19959: int(__m1), int(__m2)); 19959: } 19959: 19959: inline __attribute__((__always_inline__)) bool 19959: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 19959: memory_order __m1, 19959: memory_order __m2) volatile noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 19959: 19959: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 19959: int(__m1), int(__m2)); 19959: } 19959: # 935 "/usr/include/c++/13/bits/atomic_base.h" 3 19959: inline __attribute__((__always_inline__)) __pointer_type 19959: fetch_add(ptrdiff_t __d, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 19959: 19959: inline __attribute__((__always_inline__)) __pointer_type 19959: fetch_add(ptrdiff_t __d, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 19959: 19959: inline __attribute__((__always_inline__)) __pointer_type 19959: fetch_sub(ptrdiff_t __d, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 19959: 19959: inline __attribute__((__always_inline__)) __pointer_type 19959: fetch_sub(ptrdiff_t __d, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 19959: }; 19959: 19959: namespace __atomic_impl 19959: { 19959: 19959: 19959: template 19959: constexpr bool 19959: __maybe_has_padding() 19959: { 19959: 19959: 19959: 19959: return !__has_unique_object_representations(_Tp) 19959: && !is_same<_Tp, float>::value && !is_same<_Tp, double>::value; 19959: 19959: 19959: 19959: } 19959: 19959: template 19959: inline __attribute__((__always_inline__)) _Tp* 19959: __clear_padding(_Tp& __val) noexcept 19959: { 19959: auto* __ptr = std::__addressof(__val); 19959: 19959: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 19959: __builtin_clear_padding(__ptr); 19959: 19959: return __ptr; 19959: } 19959: 19959: 19959: template 19959: using _Val = typename remove_volatile<_Tp>::type; 19959: 19959: template 19959: inline __attribute__((__always_inline__)) bool 19959: __compare_exchange(_Tp& __val, _Val<_Tp>& __e, _Val<_Tp>& __i, 19959: bool __is_weak, 19959: memory_order __s, memory_order __f) noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) __builtin_unreachable(); } while (false); 19959: 19959: using _Vp = _Val<_Tp>; 19959: 19959: if constexpr (__atomic_impl::__maybe_has_padding<_Vp>()) 19959: { 19959: 19959: 19959: alignas(_Vp) unsigned char __buf[sizeof(_Vp)]; 19959: _Vp* __exp = ::new((void*)__buf) _Vp(__e); 19959: __atomic_impl::__clear_padding(*__exp); 19959: if (__atomic_compare_exchange(std::__addressof(__val), __exp, 19959: __atomic_impl::__clear_padding(__i), 19959: __is_weak, int(__s), int(__f))) 19959: return true; 19959: __builtin_memcpy(std::__addressof(__e), __exp, sizeof(_Vp)); 19959: return false; 19959: } 19959: else 19959: return __atomic_compare_exchange(std::__addressof(__val), 19959: std::__addressof(__e), 19959: std::__addressof(__i), 19959: __is_weak, int(__s), int(__f)); 19959: } 19959: } 19959: # 2020 "/usr/include/c++/13/bits/atomic_base.h" 3 19959: 19959: } 19959: # 42 "/usr/include/c++/13/atomic" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 56 "/usr/include/c++/13/atomic" 3 19959: template 19959: struct atomic; 19959: 19959: 19959: 19959: template<> 19959: struct atomic 19959: { 19959: using value_type = bool; 19959: 19959: private: 19959: __atomic_base _M_base; 19959: 19959: public: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(bool __i) noexcept : _M_base(__i) { } 19959: 19959: bool 19959: operator=(bool __i) noexcept 19959: { return _M_base.operator=(__i); } 19959: 19959: bool 19959: operator=(bool __i) volatile noexcept 19959: { return _M_base.operator=(__i); } 19959: 19959: operator bool() const noexcept 19959: { return _M_base.load(); } 19959: 19959: operator bool() const volatile noexcept 19959: { return _M_base.load(); } 19959: 19959: bool 19959: is_lock_free() const noexcept { return _M_base.is_lock_free(); } 19959: 19959: bool 19959: is_lock_free() const volatile noexcept { return _M_base.is_lock_free(); } 19959: 19959: 19959: static constexpr bool is_always_lock_free = 2 == 2; 19959: 19959: 19959: void 19959: store(bool __i, memory_order __m = memory_order_seq_cst) noexcept 19959: { _M_base.store(__i, __m); } 19959: 19959: void 19959: store(bool __i, memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { _M_base.store(__i, __m); } 19959: 19959: bool 19959: load(memory_order __m = memory_order_seq_cst) const noexcept 19959: { return _M_base.load(__m); } 19959: 19959: bool 19959: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 19959: { return _M_base.load(__m); } 19959: 19959: bool 19959: exchange(bool __i, memory_order __m = memory_order_seq_cst) noexcept 19959: { return _M_base.exchange(__i, __m); } 19959: 19959: bool 19959: exchange(bool __i, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return _M_base.exchange(__i, __m); } 19959: 19959: bool 19959: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 19959: memory_order __m2) noexcept 19959: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 19959: 19959: bool 19959: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 19959: memory_order __m2) volatile noexcept 19959: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 19959: 19959: bool 19959: compare_exchange_weak(bool& __i1, bool __i2, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 19959: 19959: bool 19959: compare_exchange_weak(bool& __i1, bool __i2, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 19959: 19959: bool 19959: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 19959: memory_order __m2) noexcept 19959: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 19959: 19959: bool 19959: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 19959: memory_order __m2) volatile noexcept 19959: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 19959: 19959: bool 19959: compare_exchange_strong(bool& __i1, bool __i2, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 19959: 19959: bool 19959: compare_exchange_strong(bool& __i1, bool __i2, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 19959: # 182 "/usr/include/c++/13/atomic" 3 19959: }; 19959: # 197 "/usr/include/c++/13/atomic" 3 19959: template 19959: struct atomic 19959: { 19959: using value_type = _Tp; 19959: 19959: private: 19959: 19959: static constexpr int _S_min_alignment 19959: = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 19959: ? 0 : sizeof(_Tp); 19959: 19959: static constexpr int _S_alignment 19959: = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); 19959: 19959: alignas(_S_alignment) _Tp _M_i ; 19959: 19959: static_assert(__is_trivially_copyable(_Tp), 19959: "std::atomic requires a trivially copyable type"); 19959: 19959: static_assert(sizeof(_Tp) > 0, 19959: "Incomplete or zero-sized types are not supported"); 19959: # 226 "/usr/include/c++/13/atomic" 3 19959: public: 19959: atomic() = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(_Tp __i) noexcept : _M_i(__i) 19959: { 19959: 19959: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 19959: __builtin_clear_padding(std::__addressof(_M_i)); 19959: 19959: } 19959: 19959: operator _Tp() const noexcept 19959: { return load(); } 19959: 19959: operator _Tp() const volatile noexcept 19959: { return load(); } 19959: 19959: _Tp 19959: operator=(_Tp __i) noexcept 19959: { store(__i); return __i; } 19959: 19959: _Tp 19959: operator=(_Tp __i) volatile noexcept 19959: { store(__i); return __i; } 19959: 19959: bool 19959: is_lock_free() const noexcept 19959: { 19959: 19959: return __atomic_is_lock_free(sizeof(_M_i), 19959: reinterpret_cast(-_S_alignment)); 19959: } 19959: 19959: bool 19959: is_lock_free() const volatile noexcept 19959: { 19959: 19959: return __atomic_is_lock_free(sizeof(_M_i), 19959: reinterpret_cast(-_S_alignment)); 19959: } 19959: 19959: 19959: static constexpr bool is_always_lock_free 19959: = __atomic_always_lock_free(sizeof(_M_i), 0); 19959: 19959: 19959: void 19959: store(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: __atomic_store(std::__addressof(_M_i), 19959: __atomic_impl::__clear_padding(__i), 19959: int(__m)); 19959: } 19959: 19959: void 19959: store(_Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: __atomic_store(std::__addressof(_M_i), 19959: __atomic_impl::__clear_padding(__i), 19959: int(__m)); 19959: } 19959: 19959: _Tp 19959: load(memory_order __m = memory_order_seq_cst) const noexcept 19959: { 19959: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 19959: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 19959: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 19959: return *__ptr; 19959: } 19959: 19959: _Tp 19959: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 19959: { 19959: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 19959: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 19959: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 19959: return *__ptr; 19959: } 19959: 19959: _Tp 19959: exchange(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 19959: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 19959: __atomic_exchange(std::__addressof(_M_i), 19959: __atomic_impl::__clear_padding(__i), 19959: __ptr, int(__m)); 19959: return *__ptr; 19959: } 19959: 19959: _Tp 19959: exchange(_Tp __i, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 19959: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 19959: __atomic_exchange(std::__addressof(_M_i), 19959: __atomic_impl::__clear_padding(__i), 19959: __ptr, int(__m)); 19959: return *__ptr; 19959: } 19959: 19959: bool 19959: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 19959: memory_order __f) noexcept 19959: { 19959: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 19959: __s, __f); 19959: } 19959: 19959: bool 19959: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 19959: memory_order __f) volatile noexcept 19959: { 19959: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 19959: __s, __f); 19959: } 19959: 19959: bool 19959: compare_exchange_weak(_Tp& __e, _Tp __i, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { return compare_exchange_weak(__e, __i, __m, 19959: __cmpexch_failure_order(__m)); } 19959: 19959: bool 19959: compare_exchange_weak(_Tp& __e, _Tp __i, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return compare_exchange_weak(__e, __i, __m, 19959: __cmpexch_failure_order(__m)); } 19959: 19959: bool 19959: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 19959: memory_order __f) noexcept 19959: { 19959: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 19959: __s, __f); 19959: } 19959: 19959: bool 19959: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 19959: memory_order __f) volatile noexcept 19959: { 19959: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 19959: __s, __f); 19959: } 19959: 19959: bool 19959: compare_exchange_strong(_Tp& __e, _Tp __i, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { return compare_exchange_strong(__e, __i, __m, 19959: __cmpexch_failure_order(__m)); } 19959: 19959: bool 19959: compare_exchange_strong(_Tp& __e, _Tp __i, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return compare_exchange_strong(__e, __i, __m, 19959: __cmpexch_failure_order(__m)); } 19959: # 408 "/usr/include/c++/13/atomic" 3 19959: }; 19959: 19959: 19959: 19959: template 19959: struct atomic<_Tp*> 19959: { 19959: using value_type = _Tp*; 19959: using difference_type = ptrdiff_t; 19959: 19959: typedef _Tp* __pointer_type; 19959: typedef __atomic_base<_Tp*> __base_type; 19959: __base_type _M_b; 19959: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__pointer_type __p) noexcept : _M_b(__p) { } 19959: 19959: operator __pointer_type() const noexcept 19959: { return __pointer_type(_M_b); } 19959: 19959: operator __pointer_type() const volatile noexcept 19959: { return __pointer_type(_M_b); } 19959: 19959: __pointer_type 19959: operator=(__pointer_type __p) noexcept 19959: { return _M_b.operator=(__p); } 19959: 19959: __pointer_type 19959: operator=(__pointer_type __p) volatile noexcept 19959: { return _M_b.operator=(__p); } 19959: 19959: __pointer_type 19959: operator++(int) noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return _M_b++; 19959: } 19959: 19959: __pointer_type 19959: operator++(int) volatile noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return _M_b++; 19959: } 19959: 19959: __pointer_type 19959: operator--(int) noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return _M_b--; 19959: } 19959: 19959: __pointer_type 19959: operator--(int) volatile noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return _M_b--; 19959: } 19959: 19959: __pointer_type 19959: operator++() noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return ++_M_b; 19959: } 19959: 19959: __pointer_type 19959: operator++() volatile noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return ++_M_b; 19959: } 19959: 19959: __pointer_type 19959: operator--() noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return --_M_b; 19959: } 19959: 19959: __pointer_type 19959: operator--() volatile noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return --_M_b; 19959: } 19959: 19959: __pointer_type 19959: operator+=(ptrdiff_t __d) noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return _M_b.operator+=(__d); 19959: } 19959: 19959: __pointer_type 19959: operator+=(ptrdiff_t __d) volatile noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return _M_b.operator+=(__d); 19959: } 19959: 19959: __pointer_type 19959: operator-=(ptrdiff_t __d) noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return _M_b.operator-=(__d); 19959: } 19959: 19959: __pointer_type 19959: operator-=(ptrdiff_t __d) volatile noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return _M_b.operator-=(__d); 19959: } 19959: 19959: bool 19959: is_lock_free() const noexcept 19959: { return _M_b.is_lock_free(); } 19959: 19959: bool 19959: is_lock_free() const volatile noexcept 19959: { return _M_b.is_lock_free(); } 19959: 19959: 19959: static constexpr bool is_always_lock_free 19959: = 2 == 2; 19959: 19959: 19959: void 19959: store(__pointer_type __p, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { return _M_b.store(__p, __m); } 19959: 19959: void 19959: store(__pointer_type __p, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return _M_b.store(__p, __m); } 19959: 19959: __pointer_type 19959: load(memory_order __m = memory_order_seq_cst) const noexcept 19959: { return _M_b.load(__m); } 19959: 19959: __pointer_type 19959: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 19959: { return _M_b.load(__m); } 19959: 19959: __pointer_type 19959: exchange(__pointer_type __p, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { return _M_b.exchange(__p, __m); } 19959: 19959: __pointer_type 19959: exchange(__pointer_type __p, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { return _M_b.exchange(__p, __m); } 19959: 19959: bool 19959: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 19959: memory_order __m1, memory_order __m2) noexcept 19959: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 19959: 19959: bool 19959: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 19959: memory_order __m1, 19959: memory_order __m2) volatile noexcept 19959: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 19959: 19959: bool 19959: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: return compare_exchange_weak(__p1, __p2, __m, 19959: __cmpexch_failure_order(__m)); 19959: } 19959: 19959: bool 19959: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: return compare_exchange_weak(__p1, __p2, __m, 19959: __cmpexch_failure_order(__m)); 19959: } 19959: 19959: bool 19959: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 19959: memory_order __m1, memory_order __m2) noexcept 19959: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 19959: 19959: bool 19959: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 19959: memory_order __m1, 19959: memory_order __m2) volatile noexcept 19959: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 19959: 19959: bool 19959: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: return _M_b.compare_exchange_strong(__p1, __p2, __m, 19959: __cmpexch_failure_order(__m)); 19959: } 19959: 19959: bool 19959: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: return _M_b.compare_exchange_strong(__p1, __p2, __m, 19959: __cmpexch_failure_order(__m)); 19959: } 19959: # 663 "/usr/include/c++/13/atomic" 3 19959: __pointer_type 19959: fetch_add(ptrdiff_t __d, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return _M_b.fetch_add(__d, __m); 19959: } 19959: 19959: __pointer_type 19959: fetch_add(ptrdiff_t __d, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return _M_b.fetch_add(__d, __m); 19959: } 19959: 19959: __pointer_type 19959: fetch_sub(ptrdiff_t __d, 19959: memory_order __m = memory_order_seq_cst) noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return _M_b.fetch_sub(__d, __m); 19959: } 19959: 19959: __pointer_type 19959: fetch_sub(ptrdiff_t __d, 19959: memory_order __m = memory_order_seq_cst) volatile noexcept 19959: { 19959: 19959: static_assert( is_object<_Tp>::value, "pointer to object type" ); 19959: 19959: return _M_b.fetch_sub(__d, __m); 19959: } 19959: }; 19959: 19959: 19959: 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef char __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free = 2 == 2; 19959: 19959: }; 19959: 19959: 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef signed char __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept= default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free = 2 == 2; 19959: 19959: }; 19959: 19959: 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef unsigned char __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept= default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free = 2 == 2; 19959: 19959: }; 19959: 19959: 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef short __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free = 2 == 2; 19959: 19959: }; 19959: 19959: 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef unsigned short __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free = 2 == 2; 19959: 19959: }; 19959: 19959: 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef int __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free = 2 == 2; 19959: 19959: }; 19959: 19959: 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef unsigned int __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free = 2 == 2; 19959: 19959: }; 19959: 19959: 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef long __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free = 2 == 2; 19959: 19959: }; 19959: 19959: 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef unsigned long __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free = 2 == 2; 19959: 19959: }; 19959: 19959: 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef long long __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free = 2 == 2; 19959: 19959: }; 19959: 19959: 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef unsigned long long __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free = 2 == 2; 19959: 19959: }; 19959: 19959: 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef wchar_t __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free = 2 == 2; 19959: 19959: }; 19959: # 1008 "/usr/include/c++/13/atomic" 3 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef char16_t __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free 19959: = 2 == 2; 19959: 19959: }; 19959: 19959: 19959: template<> 19959: struct atomic : __atomic_base 19959: { 19959: typedef char32_t __integral_type; 19959: typedef __atomic_base __base_type; 19959: 19959: atomic() noexcept = default; 19959: ~atomic() noexcept = default; 19959: atomic(const atomic&) = delete; 19959: atomic& operator=(const atomic&) = delete; 19959: atomic& operator=(const atomic&) volatile = delete; 19959: 19959: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 19959: 19959: using __base_type::operator __integral_type; 19959: using __base_type::operator=; 19959: 19959: 19959: static constexpr bool is_always_lock_free 19959: = 2 == 2; 19959: 19959: }; 19959: 19959: 19959: 19959: typedef atomic atomic_bool; 19959: 19959: 19959: typedef atomic atomic_char; 19959: 19959: 19959: typedef atomic atomic_schar; 19959: 19959: 19959: typedef atomic atomic_uchar; 19959: 19959: 19959: typedef atomic atomic_short; 19959: 19959: 19959: typedef atomic atomic_ushort; 19959: 19959: 19959: typedef atomic atomic_int; 19959: 19959: 19959: typedef atomic atomic_uint; 19959: 19959: 19959: typedef atomic atomic_long; 19959: 19959: 19959: typedef atomic atomic_ulong; 19959: 19959: 19959: typedef atomic atomic_llong; 19959: 19959: 19959: typedef atomic atomic_ullong; 19959: 19959: 19959: typedef atomic atomic_wchar_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef atomic atomic_char16_t; 19959: 19959: 19959: typedef atomic atomic_char32_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef atomic atomic_int8_t; 19959: 19959: 19959: typedef atomic atomic_uint8_t; 19959: 19959: 19959: typedef atomic atomic_int16_t; 19959: 19959: 19959: typedef atomic atomic_uint16_t; 19959: 19959: 19959: typedef atomic atomic_int32_t; 19959: 19959: 19959: typedef atomic atomic_uint32_t; 19959: 19959: 19959: typedef atomic atomic_int64_t; 19959: 19959: 19959: typedef atomic atomic_uint64_t; 19959: 19959: 19959: 19959: typedef atomic atomic_int_least8_t; 19959: 19959: 19959: typedef atomic atomic_uint_least8_t; 19959: 19959: 19959: typedef atomic atomic_int_least16_t; 19959: 19959: 19959: typedef atomic atomic_uint_least16_t; 19959: 19959: 19959: typedef atomic atomic_int_least32_t; 19959: 19959: 19959: typedef atomic atomic_uint_least32_t; 19959: 19959: 19959: typedef atomic atomic_int_least64_t; 19959: 19959: 19959: typedef atomic atomic_uint_least64_t; 19959: 19959: 19959: 19959: typedef atomic atomic_int_fast8_t; 19959: 19959: 19959: typedef atomic atomic_uint_fast8_t; 19959: 19959: 19959: typedef atomic atomic_int_fast16_t; 19959: 19959: 19959: typedef atomic atomic_uint_fast16_t; 19959: 19959: 19959: typedef atomic atomic_int_fast32_t; 19959: 19959: 19959: typedef atomic atomic_uint_fast32_t; 19959: 19959: 19959: typedef atomic atomic_int_fast64_t; 19959: 19959: 19959: typedef atomic atomic_uint_fast64_t; 19959: 19959: 19959: 19959: 19959: typedef atomic atomic_intptr_t; 19959: 19959: 19959: typedef atomic atomic_uintptr_t; 19959: 19959: 19959: typedef atomic atomic_size_t; 19959: 19959: 19959: typedef atomic atomic_ptrdiff_t; 19959: 19959: 19959: 19959: typedef atomic atomic_intmax_t; 19959: 19959: 19959: typedef atomic atomic_uintmax_t; 19959: 19959: 19959: 19959: inline bool 19959: atomic_flag_test_and_set_explicit(atomic_flag* __a, 19959: memory_order __m) noexcept 19959: { return __a->test_and_set(__m); } 19959: 19959: inline bool 19959: atomic_flag_test_and_set_explicit(volatile atomic_flag* __a, 19959: memory_order __m) noexcept 19959: { return __a->test_and_set(__m); } 19959: # 1237 "/usr/include/c++/13/atomic" 3 19959: inline void 19959: atomic_flag_clear_explicit(atomic_flag* __a, memory_order __m) noexcept 19959: { __a->clear(__m); } 19959: 19959: inline void 19959: atomic_flag_clear_explicit(volatile atomic_flag* __a, 19959: memory_order __m) noexcept 19959: { __a->clear(__m); } 19959: 19959: inline bool 19959: atomic_flag_test_and_set(atomic_flag* __a) noexcept 19959: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 19959: 19959: inline bool 19959: atomic_flag_test_and_set(volatile atomic_flag* __a) noexcept 19959: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 19959: 19959: inline void 19959: atomic_flag_clear(atomic_flag* __a) noexcept 19959: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 19959: 19959: inline void 19959: atomic_flag_clear(volatile atomic_flag* __a) noexcept 19959: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 19959: # 1284 "/usr/include/c++/13/atomic" 3 19959: template 19959: using __atomic_val_t = __type_identity_t<_Tp>; 19959: template 19959: using __atomic_diff_t = typename atomic<_Tp>::difference_type; 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: atomic_is_lock_free(const atomic<_ITp>* __a) noexcept 19959: { return __a->is_lock_free(); } 19959: 19959: template 19959: inline bool 19959: atomic_is_lock_free(const volatile atomic<_ITp>* __a) noexcept 19959: { return __a->is_lock_free(); } 19959: 19959: template 19959: inline void 19959: atomic_init(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 19959: { __a->store(__i, memory_order_relaxed); } 19959: 19959: template 19959: inline void 19959: atomic_init(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 19959: { __a->store(__i, memory_order_relaxed); } 19959: 19959: template 19959: inline void 19959: atomic_store_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { __a->store(__i, __m); } 19959: 19959: template 19959: inline void 19959: atomic_store_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { __a->store(__i, __m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_load_explicit(const atomic<_ITp>* __a, memory_order __m) noexcept 19959: { return __a->load(__m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_load_explicit(const volatile atomic<_ITp>* __a, 19959: memory_order __m) noexcept 19959: { return __a->load(__m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_exchange_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { return __a->exchange(__i, __m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_exchange_explicit(volatile atomic<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { return __a->exchange(__i, __m); } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_weak_explicit(atomic<_ITp>* __a, 19959: __atomic_val_t<_ITp>* __i1, 19959: __atomic_val_t<_ITp> __i2, 19959: memory_order __m1, 19959: memory_order __m2) noexcept 19959: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_weak_explicit(volatile atomic<_ITp>* __a, 19959: __atomic_val_t<_ITp>* __i1, 19959: __atomic_val_t<_ITp> __i2, 19959: memory_order __m1, 19959: memory_order __m2) noexcept 19959: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_strong_explicit(atomic<_ITp>* __a, 19959: __atomic_val_t<_ITp>* __i1, 19959: __atomic_val_t<_ITp> __i2, 19959: memory_order __m1, 19959: memory_order __m2) noexcept 19959: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_strong_explicit(volatile atomic<_ITp>* __a, 19959: __atomic_val_t<_ITp>* __i1, 19959: __atomic_val_t<_ITp> __i2, 19959: memory_order __m1, 19959: memory_order __m2) noexcept 19959: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 19959: 19959: 19959: template 19959: inline void 19959: atomic_store(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 19959: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 19959: 19959: template 19959: inline void 19959: atomic_store(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 19959: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 19959: 19959: template 19959: inline _ITp 19959: atomic_load(const atomic<_ITp>* __a) noexcept 19959: { return atomic_load_explicit(__a, memory_order_seq_cst); } 19959: 19959: template 19959: inline _ITp 19959: atomic_load(const volatile atomic<_ITp>* __a) noexcept 19959: { return atomic_load_explicit(__a, memory_order_seq_cst); } 19959: 19959: template 19959: inline _ITp 19959: atomic_exchange(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 19959: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 19959: 19959: template 19959: inline _ITp 19959: atomic_exchange(volatile atomic<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i) noexcept 19959: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_weak(atomic<_ITp>* __a, 19959: __atomic_val_t<_ITp>* __i1, 19959: __atomic_val_t<_ITp> __i2) noexcept 19959: { 19959: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 19959: memory_order_seq_cst, 19959: memory_order_seq_cst); 19959: } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_weak(volatile atomic<_ITp>* __a, 19959: __atomic_val_t<_ITp>* __i1, 19959: __atomic_val_t<_ITp> __i2) noexcept 19959: { 19959: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 19959: memory_order_seq_cst, 19959: memory_order_seq_cst); 19959: } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_strong(atomic<_ITp>* __a, 19959: __atomic_val_t<_ITp>* __i1, 19959: __atomic_val_t<_ITp> __i2) noexcept 19959: { 19959: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 19959: memory_order_seq_cst, 19959: memory_order_seq_cst); 19959: } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_strong(volatile atomic<_ITp>* __a, 19959: __atomic_val_t<_ITp>* __i1, 19959: __atomic_val_t<_ITp> __i2) noexcept 19959: { 19959: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 19959: memory_order_seq_cst, 19959: memory_order_seq_cst); 19959: } 19959: # 1490 "/usr/include/c++/13/atomic" 3 19959: template 19959: inline _ITp 19959: atomic_fetch_add_explicit(atomic<_ITp>* __a, 19959: __atomic_diff_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { return __a->fetch_add(__i, __m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_add_explicit(volatile atomic<_ITp>* __a, 19959: __atomic_diff_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { return __a->fetch_add(__i, __m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_sub_explicit(atomic<_ITp>* __a, 19959: __atomic_diff_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { return __a->fetch_sub(__i, __m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_sub_explicit(volatile atomic<_ITp>* __a, 19959: __atomic_diff_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { return __a->fetch_sub(__i, __m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_and_explicit(__atomic_base<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { return __a->fetch_and(__i, __m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_and_explicit(volatile __atomic_base<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { return __a->fetch_and(__i, __m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_or_explicit(__atomic_base<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { return __a->fetch_or(__i, __m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_or_explicit(volatile __atomic_base<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { return __a->fetch_or(__i, __m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_xor_explicit(__atomic_base<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { return __a->fetch_xor(__i, __m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_xor_explicit(volatile __atomic_base<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i, 19959: memory_order __m) noexcept 19959: { return __a->fetch_xor(__i, __m); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_add(atomic<_ITp>* __a, 19959: __atomic_diff_t<_ITp> __i) noexcept 19959: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_add(volatile atomic<_ITp>* __a, 19959: __atomic_diff_t<_ITp> __i) noexcept 19959: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_sub(atomic<_ITp>* __a, 19959: __atomic_diff_t<_ITp> __i) noexcept 19959: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_sub(volatile atomic<_ITp>* __a, 19959: __atomic_diff_t<_ITp> __i) noexcept 19959: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_and(__atomic_base<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i) noexcept 19959: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_and(volatile __atomic_base<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i) noexcept 19959: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_or(__atomic_base<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i) noexcept 19959: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_or(volatile __atomic_base<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i) noexcept 19959: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_xor(__atomic_base<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i) noexcept 19959: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 19959: 19959: template 19959: inline _ITp 19959: atomic_fetch_xor(volatile __atomic_base<_ITp>* __a, 19959: __atomic_val_t<_ITp> __i) noexcept 19959: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 19959: # 1790 "/usr/include/c++/13/atomic" 3 19959: 19959: } 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: # 1 "/usr/include/c++/13/deque" 1 3 19959: # 58 "/usr/include/c++/13/deque" 3 19959: 19959: # 59 "/usr/include/c++/13/deque" 3 19959: 19959: # 1 "/usr/include/c++/13/bits/requires_hosted.h" 1 3 19959: # 61 "/usr/include/c++/13/deque" 2 3 19959: 19959: # 1 "/usr/include/c++/13/bits/stl_algobase.h" 1 3 19959: # 60 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: # 1 "/usr/include/c++/13/bits/functexcept.h" 1 3 19959: # 40 "/usr/include/c++/13/bits/functexcept.h" 3 19959: # 1 "/usr/include/c++/13/bits/exception_defines.h" 1 3 19959: # 41 "/usr/include/c++/13/bits/functexcept.h" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: void 19959: __throw_bad_exception(void) __attribute__((__noreturn__)); 19959: 19959: 19959: void 19959: __throw_bad_alloc(void) __attribute__((__noreturn__)); 19959: 19959: void 19959: __throw_bad_array_new_length(void) __attribute__((__noreturn__)); 19959: 19959: 19959: void 19959: __throw_bad_cast(void) __attribute__((__noreturn__)); 19959: 19959: void 19959: __throw_bad_typeid(void) __attribute__((__noreturn__)); 19959: 19959: 19959: void 19959: __throw_logic_error(const char*) __attribute__((__noreturn__)); 19959: 19959: void 19959: __throw_domain_error(const char*) __attribute__((__noreturn__)); 19959: 19959: void 19959: __throw_invalid_argument(const char*) __attribute__((__noreturn__)); 19959: 19959: void 19959: __throw_length_error(const char*) __attribute__((__noreturn__)); 19959: 19959: void 19959: __throw_out_of_range(const char*) __attribute__((__noreturn__)); 19959: 19959: void 19959: __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__)) 19959: __attribute__((__format__(__gnu_printf__, 1, 2))); 19959: 19959: void 19959: __throw_runtime_error(const char*) __attribute__((__noreturn__)); 19959: 19959: void 19959: __throw_range_error(const char*) __attribute__((__noreturn__)); 19959: 19959: void 19959: __throw_overflow_error(const char*) __attribute__((__noreturn__)); 19959: 19959: void 19959: __throw_underflow_error(const char*) __attribute__((__noreturn__)); 19959: 19959: 19959: void 19959: __throw_ios_failure(const char*) __attribute__((__noreturn__)); 19959: 19959: void 19959: __throw_ios_failure(const char*, int) __attribute__((__noreturn__)); 19959: 19959: 19959: void 19959: __throw_system_error(int) __attribute__((__noreturn__)); 19959: 19959: 19959: void 19959: __throw_future_error(int) __attribute__((__noreturn__)); 19959: 19959: 19959: void 19959: __throw_bad_function_call() __attribute__((__noreturn__)); 19959: # 140 "/usr/include/c++/13/bits/functexcept.h" 3 19959: 19959: } 19959: # 61 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/cpp_type_traits.h" 1 3 19959: # 35 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 19959: 19959: # 36 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 19959: # 67 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 19959: extern "C++" { 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: struct __true_type { }; 19959: struct __false_type { }; 19959: 19959: template 19959: struct __truth_type 19959: { typedef __false_type __type; }; 19959: 19959: template<> 19959: struct __truth_type 19959: { typedef __true_type __type; }; 19959: 19959: 19959: 19959: template 19959: struct __traitor 19959: { 19959: enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; 19959: typedef typename __truth_type<__value>::__type __type; 19959: }; 19959: 19959: 19959: template 19959: struct __are_same 19959: { 19959: enum { __value = 0 }; 19959: typedef __false_type __type; 19959: }; 19959: 19959: template 19959: struct __are_same<_Tp, _Tp> 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: 19959: template 19959: struct __is_void 19959: { 19959: enum { __value = 0 }; 19959: typedef __false_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_void 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: struct __is_integer 19959: { 19959: enum { __value = 0 }; 19959: typedef __false_type __type; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: # 184 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_integer 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: # 289 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 19959: template 19959: struct __is_floating 19959: { 19959: enum { __value = 0 }; 19959: typedef __false_type __type; 19959: }; 19959: 19959: 19959: template<> 19959: struct __is_floating 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_floating 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_floating 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: # 366 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 19959: template 19959: struct __is_pointer 19959: { 19959: enum { __value = 0 }; 19959: typedef __false_type __type; 19959: }; 19959: 19959: template 19959: struct __is_pointer<_Tp*> 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: struct __is_arithmetic 19959: : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > 19959: { }; 19959: 19959: 19959: 19959: 19959: template 19959: struct __is_scalar 19959: : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > 19959: { }; 19959: 19959: 19959: 19959: 19959: template 19959: struct __is_char 19959: { 19959: enum { __value = 0 }; 19959: typedef __false_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_char 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: 19959: template<> 19959: struct __is_char 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: 19959: template 19959: struct __is_byte 19959: { 19959: enum { __value = 0 }; 19959: typedef __false_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_byte 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_byte 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template<> 19959: struct __is_byte 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: 19959: enum class byte : unsigned char; 19959: 19959: template<> 19959: struct __is_byte 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: # 470 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 19959: template struct iterator_traits; 19959: 19959: 19959: template 19959: struct __is_nonvolatile_trivially_copyable 19959: { 19959: enum { __value = __is_trivially_copyable(_Tp) }; 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: struct __is_nonvolatile_trivially_copyable 19959: { 19959: enum { __value = 0 }; 19959: }; 19959: 19959: 19959: template 19959: struct __memcpyable 19959: { 19959: enum { __value = 0 }; 19959: }; 19959: 19959: template 19959: struct __memcpyable<_Tp*, _Tp*> 19959: : __is_nonvolatile_trivially_copyable<_Tp> 19959: { }; 19959: 19959: template 19959: struct __memcpyable<_Tp*, const _Tp*> 19959: : __is_nonvolatile_trivially_copyable<_Tp> 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __memcmpable 19959: { 19959: enum { __value = 0 }; 19959: }; 19959: 19959: 19959: template 19959: struct __memcmpable<_Tp*, _Tp*> 19959: : __is_nonvolatile_trivially_copyable<_Tp> 19959: { }; 19959: 19959: template 19959: struct __memcmpable 19959: : __is_nonvolatile_trivially_copyable<_Tp> 19959: { }; 19959: 19959: template 19959: struct __memcmpable<_Tp*, const _Tp*> 19959: : __is_nonvolatile_trivially_copyable<_Tp> 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template::__value 19959: 19959: > 19959: struct __is_memcmp_ordered 19959: { 19959: static const bool __value = _Tp(-1) > _Tp(1); 19959: }; 19959: 19959: template 19959: struct __is_memcmp_ordered<_Tp, false> 19959: { 19959: static const bool __value = false; 19959: }; 19959: 19959: 19959: template 19959: struct __is_memcmp_ordered_with 19959: { 19959: static const bool __value = __is_memcmp_ordered<_Tp>::__value 19959: && __is_memcmp_ordered<_Up>::__value; 19959: }; 19959: 19959: template 19959: struct __is_memcmp_ordered_with<_Tp, _Up, false> 19959: { 19959: static const bool __value = false; 19959: }; 19959: # 579 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 19959: template<> 19959: struct __is_memcmp_ordered_with 19959: { static constexpr bool __value = true; }; 19959: 19959: template 19959: struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize> 19959: { static constexpr bool __value = false; }; 19959: 19959: template 19959: struct __is_memcmp_ordered_with 19959: { static constexpr bool __value = false; }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __is_move_iterator 19959: { 19959: enum { __value = 0 }; 19959: typedef __false_type __type; 19959: }; 19959: 19959: 19959: 19959: template 19959: 19959: inline _Iterator 19959: __miter_base(_Iterator __it) 19959: { return __it; } 19959: 19959: 19959: } 19959: } 19959: # 62 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 19959: # 1 "/usr/include/c++/13/ext/type_traits.h" 1 3 19959: # 32 "/usr/include/c++/13/ext/type_traits.h" 3 19959: 19959: # 33 "/usr/include/c++/13/ext/type_traits.h" 3 19959: 19959: 19959: 19959: 19959: extern "C++" { 19959: 19959: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: struct __enable_if 19959: { }; 19959: 19959: template 19959: struct __enable_if 19959: { typedef _Tp __type; }; 19959: 19959: 19959: 19959: template 19959: struct __conditional_type 19959: { typedef _Iftrue __type; }; 19959: 19959: template 19959: struct __conditional_type 19959: { typedef _Iffalse __type; }; 19959: 19959: 19959: 19959: template 19959: struct __add_unsigned 19959: { 19959: private: 19959: typedef __enable_if::__value, _Tp> __if_type; 19959: 19959: public: 19959: typedef typename __if_type::__type __type; 19959: }; 19959: 19959: template<> 19959: struct __add_unsigned 19959: { typedef unsigned char __type; }; 19959: 19959: template<> 19959: struct __add_unsigned 19959: { typedef unsigned char __type; }; 19959: 19959: template<> 19959: struct __add_unsigned 19959: { typedef unsigned short __type; }; 19959: 19959: template<> 19959: struct __add_unsigned 19959: { typedef unsigned int __type; }; 19959: 19959: template<> 19959: struct __add_unsigned 19959: { typedef unsigned long __type; }; 19959: 19959: template<> 19959: struct __add_unsigned 19959: { typedef unsigned long long __type; }; 19959: 19959: 19959: template<> 19959: struct __add_unsigned; 19959: 19959: template<> 19959: struct __add_unsigned; 19959: 19959: 19959: 19959: template 19959: struct __remove_unsigned 19959: { 19959: private: 19959: typedef __enable_if::__value, _Tp> __if_type; 19959: 19959: public: 19959: typedef typename __if_type::__type __type; 19959: }; 19959: 19959: template<> 19959: struct __remove_unsigned 19959: { typedef signed char __type; }; 19959: 19959: template<> 19959: struct __remove_unsigned 19959: { typedef signed char __type; }; 19959: 19959: template<> 19959: struct __remove_unsigned 19959: { typedef short __type; }; 19959: 19959: template<> 19959: struct __remove_unsigned 19959: { typedef int __type; }; 19959: 19959: template<> 19959: struct __remove_unsigned 19959: { typedef long __type; }; 19959: 19959: template<> 19959: struct __remove_unsigned 19959: { typedef long long __type; }; 19959: 19959: 19959: template<> 19959: struct __remove_unsigned; 19959: 19959: template<> 19959: struct __remove_unsigned; 19959: 19959: 19959: 19959: template 19959: constexpr 19959: inline bool 19959: __is_null_pointer(_Type* __ptr) 19959: { return __ptr == 0; } 19959: 19959: template 19959: constexpr 19959: inline bool 19959: __is_null_pointer(_Type) 19959: { return false; } 19959: 19959: 19959: constexpr bool 19959: __is_null_pointer(std::nullptr_t) 19959: { return true; } 19959: 19959: 19959: 19959: 19959: template::__value> 19959: struct __promote 19959: { typedef double __type; }; 19959: 19959: 19959: 19959: 19959: template 19959: struct __promote<_Tp, false> 19959: { }; 19959: 19959: template<> 19959: struct __promote 19959: { typedef long double __type; }; 19959: 19959: template<> 19959: struct __promote 19959: { typedef double __type; }; 19959: 19959: template<> 19959: struct __promote 19959: { typedef float __type; }; 19959: # 225 "/usr/include/c++/13/ext/type_traits.h" 3 19959: template 19959: using __promoted_t = decltype((typename __promote<_Tp>::__type(0) + ...)); 19959: 19959: 19959: 19959: template 19959: using __promote_2 = __promote<__promoted_t<_Tp, _Up>>; 19959: 19959: template 19959: using __promote_3 = __promote<__promoted_t<_Tp, _Up, _Vp>>; 19959: 19959: template 19959: using __promote_4 = __promote<__promoted_t<_Tp, _Up, _Vp, _Wp>>; 19959: # 269 "/usr/include/c++/13/ext/type_traits.h" 3 19959: 19959: } 19959: } 19959: # 63 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 19959: # 1 "/usr/include/c++/13/ext/numeric_traits.h" 1 3 19959: # 32 "/usr/include/c++/13/ext/numeric_traits.h" 3 19959: 19959: # 33 "/usr/include/c++/13/ext/numeric_traits.h" 3 19959: 19959: 19959: 19959: 19959: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 50 "/usr/include/c++/13/ext/numeric_traits.h" 3 19959: template 19959: struct __is_integer_nonstrict 19959: : public std::__is_integer<_Tp> 19959: { 19959: using std::__is_integer<_Tp>::__value; 19959: 19959: 19959: enum { __width = __value ? sizeof(_Tp) * 8 : 0 }; 19959: }; 19959: 19959: template 19959: struct __numeric_traits_integer 19959: { 19959: 19959: static_assert(__is_integer_nonstrict<_Value>::__value, 19959: "invalid specialization"); 19959: 19959: 19959: 19959: 19959: static const bool __is_signed = (_Value)(-1) < 0; 19959: static const int __digits 19959: = __is_integer_nonstrict<_Value>::__width - __is_signed; 19959: 19959: 19959: static const _Value __max = __is_signed 19959: ? (((((_Value)1 << (__digits - 1)) - 1) << 1) + 1) 19959: : ~(_Value)0; 19959: static const _Value __min = __is_signed ? -__max - 1 : (_Value)0; 19959: }; 19959: 19959: template 19959: const _Value __numeric_traits_integer<_Value>::__min; 19959: 19959: template 19959: const _Value __numeric_traits_integer<_Value>::__max; 19959: 19959: template 19959: const bool __numeric_traits_integer<_Value>::__is_signed; 19959: 19959: template 19959: const int __numeric_traits_integer<_Value>::__digits; 19959: # 137 "/usr/include/c++/13/ext/numeric_traits.h" 3 19959: template 19959: using __int_traits = __numeric_traits_integer<_Tp>; 19959: # 157 "/usr/include/c++/13/ext/numeric_traits.h" 3 19959: template 19959: struct __numeric_traits_floating 19959: { 19959: 19959: static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 53) * 643L / 2136); 19959: 19959: 19959: static const bool __is_signed = true; 19959: static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 15); 19959: static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 308); 19959: }; 19959: 19959: template 19959: const int __numeric_traits_floating<_Value>::__max_digits10; 19959: 19959: template 19959: const bool __numeric_traits_floating<_Value>::__is_signed; 19959: 19959: template 19959: const int __numeric_traits_floating<_Value>::__digits10; 19959: 19959: template 19959: const int __numeric_traits_floating<_Value>::__max_exponent10; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __numeric_traits 19959: : public __numeric_traits_integer<_Value> 19959: { }; 19959: 19959: template<> 19959: struct __numeric_traits 19959: : public __numeric_traits_floating 19959: { }; 19959: 19959: template<> 19959: struct __numeric_traits 19959: : public __numeric_traits_floating 19959: { }; 19959: 19959: template<> 19959: struct __numeric_traits 19959: : public __numeric_traits_floating 19959: { }; 19959: # 238 "/usr/include/c++/13/ext/numeric_traits.h" 3 19959: 19959: } 19959: # 64 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/stl_pair.h" 1 3 19959: # 62 "/usr/include/c++/13/bits/stl_pair.h" 3 19959: # 1 "/usr/include/c++/13/bits/utility.h" 1 3 19959: # 36 "/usr/include/c++/13/bits/utility.h" 3 19959: 19959: # 37 "/usr/include/c++/13/bits/utility.h" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: struct tuple_size; 19959: 19959: 19959: 19959: 19959: 19959: template::type, 19959: typename = typename enable_if::value>::type, 19959: size_t = tuple_size<_Tp>::value> 19959: using __enable_if_has_tuple_size = _Tp; 19959: 19959: template 19959: struct tuple_size> 19959: : public tuple_size<_Tp> { }; 19959: 19959: template 19959: struct tuple_size> 19959: : public tuple_size<_Tp> { }; 19959: 19959: template 19959: struct tuple_size> 19959: : public tuple_size<_Tp> { }; 19959: 19959: 19959: template 19959: inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value; 19959: 19959: 19959: 19959: template 19959: struct tuple_element; 19959: 19959: 19959: template 19959: using __tuple_element_t = typename tuple_element<__i, _Tp>::type; 19959: 19959: template 19959: struct tuple_element<__i, const _Tp> 19959: { 19959: using type = const __tuple_element_t<__i, _Tp>; 19959: }; 19959: 19959: template 19959: struct tuple_element<__i, volatile _Tp> 19959: { 19959: using type = volatile __tuple_element_t<__i, _Tp>; 19959: }; 19959: 19959: template 19959: struct tuple_element<__i, const volatile _Tp> 19959: { 19959: using type = const volatile __tuple_element_t<__i, _Tp>; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: constexpr size_t 19959: __find_uniq_type_in_pack() 19959: { 19959: constexpr size_t __sz = sizeof...(_Types); 19959: constexpr bool __found[__sz] = { __is_same(_Tp, _Types) ... }; 19959: size_t __n = __sz; 19959: for (size_t __i = 0; __i < __sz; ++__i) 19959: { 19959: if (__found[__i]) 19959: { 19959: if (__n < __sz) 19959: return __sz; 19959: __n = __i; 19959: } 19959: } 19959: return __n; 19959: } 19959: # 134 "/usr/include/c++/13/bits/utility.h" 3 19959: template 19959: using tuple_element_t = typename tuple_element<__i, _Tp>::type; 19959: 19959: 19959: 19959: 19959: template struct _Index_tuple { }; 19959: 19959: 19959: template 19959: struct _Build_index_tuple 19959: { 19959: # 154 "/usr/include/c++/13/bits/utility.h" 3 19959: using __type = _Index_tuple<__integer_pack(_Num)...>; 19959: 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct integer_sequence 19959: { 19959: 19959: 19959: 19959: typedef _Tp value_type; 19959: static constexpr size_t size() noexcept { return sizeof...(_Idx); } 19959: }; 19959: 19959: 19959: template 19959: using make_integer_sequence 19959: 19959: 19959: 19959: = integer_sequence<_Tp, __integer_pack(_Tp(_Num))...>; 19959: 19959: 19959: 19959: template 19959: using index_sequence = integer_sequence; 19959: 19959: 19959: template 19959: using make_index_sequence = make_integer_sequence; 19959: 19959: 19959: template 19959: using index_sequence_for = make_index_sequence; 19959: 19959: 19959: 19959: struct in_place_t { 19959: explicit in_place_t() = default; 19959: }; 19959: 19959: inline constexpr in_place_t in_place{}; 19959: 19959: template struct in_place_type_t 19959: { 19959: explicit in_place_type_t() = default; 19959: }; 19959: 19959: template 19959: inline constexpr in_place_type_t<_Tp> in_place_type{}; 19959: 19959: template struct in_place_index_t 19959: { 19959: explicit in_place_index_t() = default; 19959: }; 19959: 19959: template 19959: inline constexpr in_place_index_t<_Idx> in_place_index{}; 19959: 19959: template 19959: inline constexpr bool __is_in_place_type_v = false; 19959: 19959: template 19959: inline constexpr bool __is_in_place_type_v> = true; 19959: 19959: template 19959: using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; 19959: 19959: 19959: 19959: 19959: template 19959: struct _Nth_type 19959: { }; 19959: 19959: template 19959: struct _Nth_type<0, _Tp0, _Rest...> 19959: { using type = _Tp0; }; 19959: 19959: template 19959: struct _Nth_type<1, _Tp0, _Tp1, _Rest...> 19959: { using type = _Tp1; }; 19959: 19959: template 19959: struct _Nth_type<2, _Tp0, _Tp1, _Tp2, _Rest...> 19959: { using type = _Tp2; }; 19959: 19959: template 19959: 19959: 19959: 19959: struct _Nth_type<_Np, _Tp0, _Tp1, _Tp2, _Rest...> 19959: : _Nth_type<_Np - 3, _Rest...> 19959: { }; 19959: 19959: 19959: template 19959: struct _Nth_type<0, _Tp0, _Tp1, _Tp2, _Rest...> 19959: { using type = _Tp0; }; 19959: 19959: template 19959: struct _Nth_type<1, _Tp0, _Tp1, _Tp2, _Rest...> 19959: { using type = _Tp1; }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 63 "/usr/include/c++/13/bits/stl_pair.h" 2 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 80 "/usr/include/c++/13/bits/stl_pair.h" 3 19959: struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; 19959: 19959: 19959: inline constexpr piecewise_construct_t piecewise_construct = 19959: piecewise_construct_t(); 19959: 19959: 19959: 19959: 19959: template 19959: class tuple; 19959: 19959: template 19959: struct _Index_tuple; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _PCC 19959: { 19959: template 19959: static constexpr bool _ConstructiblePair() 19959: { 19959: return __and_, 19959: is_constructible<_T2, const _U2&>>::value; 19959: } 19959: 19959: template 19959: static constexpr bool _ImplicitlyConvertiblePair() 19959: { 19959: return __and_, 19959: is_convertible>::value; 19959: } 19959: 19959: template 19959: static constexpr bool _MoveConstructiblePair() 19959: { 19959: return __and_, 19959: is_constructible<_T2, _U2&&>>::value; 19959: } 19959: 19959: template 19959: static constexpr bool _ImplicitlyMoveConvertiblePair() 19959: { 19959: return __and_, 19959: is_convertible<_U2&&, _T2>>::value; 19959: } 19959: }; 19959: 19959: template 19959: struct _PCC 19959: { 19959: template 19959: static constexpr bool _ConstructiblePair() 19959: { 19959: return false; 19959: } 19959: 19959: template 19959: static constexpr bool _ImplicitlyConvertiblePair() 19959: { 19959: return false; 19959: } 19959: 19959: template 19959: static constexpr bool _MoveConstructiblePair() 19959: { 19959: return false; 19959: } 19959: 19959: template 19959: static constexpr bool _ImplicitlyMoveConvertiblePair() 19959: { 19959: return false; 19959: } 19959: }; 19959: 19959: 19959: 19959: template class __pair_base 19959: { 19959: 19959: template friend struct pair; 19959: __pair_base() = default; 19959: ~__pair_base() = default; 19959: __pair_base(const __pair_base&) = default; 19959: __pair_base& operator=(const __pair_base&) = delete; 19959: 19959: }; 19959: # 186 "/usr/include/c++/13/bits/stl_pair.h" 3 19959: template 19959: struct pair 19959: : public __pair_base<_T1, _T2> 19959: { 19959: typedef _T1 first_type; 19959: typedef _T2 second_type; 19959: 19959: _T1 first; 19959: _T2 second; 19959: 19959: 19959: constexpr pair(const pair&) = default; 19959: constexpr pair(pair&&) = default; 19959: 19959: template 19959: 19959: pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); 19959: 19959: 19959: void 19959: swap(pair& __p) 19959: noexcept(__and_<__is_nothrow_swappable<_T1>, 19959: __is_nothrow_swappable<_T2>>::value) 19959: { 19959: using std::swap; 19959: swap(first, __p.first); 19959: swap(second, __p.second); 19959: } 19959: # 234 "/usr/include/c++/13/bits/stl_pair.h" 3 19959: private: 19959: template 19959: 19959: pair(tuple<_Args1...>&, tuple<_Args2...>&, 19959: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); 19959: public: 19959: # 525 "/usr/include/c++/13/bits/stl_pair.h" 3 19959: template , 19959: __is_implicitly_default_constructible<_U2>> 19959: ::value, bool>::type = true> 19959: constexpr pair() 19959: : first(), second() { } 19959: 19959: template , 19959: is_default_constructible<_U2>, 19959: __not_< 19959: __and_<__is_implicitly_default_constructible<_U1>, 19959: __is_implicitly_default_constructible<_U2>>>> 19959: ::value, bool>::type = false> 19959: explicit constexpr pair() 19959: : first(), second() { } 19959: 19959: 19959: 19959: using _PCCP = _PCC; 19959: 19959: 19959: 19959: template() 19959: && _PCCP::template 19959: _ImplicitlyConvertiblePair<_U1, _U2>(), 19959: bool>::type=true> 19959: constexpr pair(const _T1& __a, const _T2& __b) 19959: : first(__a), second(__b) { } 19959: 19959: 19959: template() 19959: && !_PCCP::template 19959: _ImplicitlyConvertiblePair<_U1, _U2>(), 19959: bool>::type=false> 19959: explicit constexpr pair(const _T1& __a, const _T2& __b) 19959: : first(__a), second(__b) { } 19959: 19959: 19959: 19959: template 19959: using _PCCFP = _PCC::value 19959: || !is_same<_T2, _U2>::value, 19959: _T1, _T2>; 19959: 19959: 19959: template::template 19959: _ConstructiblePair<_U1, _U2>() 19959: && _PCCFP<_U1, _U2>::template 19959: _ImplicitlyConvertiblePair<_U1, _U2>(), 19959: bool>::type=true> 19959: constexpr pair(const pair<_U1, _U2>& __p) 19959: : first(__p.first), second(__p.second) 19959: { ; } 19959: 19959: template::template 19959: _ConstructiblePair<_U1, _U2>() 19959: && !_PCCFP<_U1, _U2>::template 19959: _ImplicitlyConvertiblePair<_U1, _U2>(), 19959: bool>::type=false> 19959: explicit constexpr pair(const pair<_U1, _U2>& __p) 19959: : first(__p.first), second(__p.second) 19959: { ; } 19959: # 609 "/usr/include/c++/13/bits/stl_pair.h" 3 19959: private: 19959: 19959: 19959: 19959: struct __zero_as_null_pointer_constant 19959: { 19959: __zero_as_null_pointer_constant(int __zero_as_null_pointer_constant::*) 19959: { } 19959: template::value>> 19959: __zero_as_null_pointer_constant(_Tp) = delete; 19959: }; 19959: 19959: public: 19959: 19959: 19959: 19959: 19959: template>, 19959: is_pointer<_T2>, 19959: is_constructible<_T1, _U1>, 19959: __not_>, 19959: is_convertible<_U1, _T1>>::value, 19959: bool> = true> 19959: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 19959: constexpr 19959: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 19959: : first(std::forward<_U1>(__x)), second(nullptr) 19959: { ; } 19959: 19959: template>, 19959: is_pointer<_T2>, 19959: is_constructible<_T1, _U1>, 19959: __not_>, 19959: __not_>>::value, 19959: bool> = false> 19959: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 19959: explicit constexpr 19959: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 19959: : first(std::forward<_U1>(__x)), second(nullptr) 19959: { ; } 19959: 19959: template, 19959: __not_>, 19959: is_constructible<_T2, _U2>, 19959: __not_>, 19959: is_convertible<_U2, _T2>>::value, 19959: bool> = true> 19959: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 19959: constexpr 19959: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 19959: : first(nullptr), second(std::forward<_U2>(__y)) 19959: { ; } 19959: 19959: template, 19959: __not_>, 19959: is_constructible<_T2, _U2>, 19959: __not_>, 19959: __not_>>::value, 19959: bool> = false> 19959: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 19959: explicit constexpr 19959: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 19959: : first(nullptr), second(std::forward<_U2>(__y)) 19959: { ; } 19959: 19959: 19959: 19959: template() 19959: && _PCCP::template 19959: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 19959: bool>::type=true> 19959: constexpr pair(_U1&& __x, _U2&& __y) 19959: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 19959: { ; } 19959: 19959: template() 19959: && !_PCCP::template 19959: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 19959: bool>::type=false> 19959: explicit constexpr pair(_U1&& __x, _U2&& __y) 19959: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 19959: { ; } 19959: 19959: 19959: template::template 19959: _MoveConstructiblePair<_U1, _U2>() 19959: && _PCCFP<_U1, _U2>::template 19959: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 19959: bool>::type=true> 19959: constexpr pair(pair<_U1, _U2>&& __p) 19959: : first(std::forward<_U1>(__p.first)), 19959: second(std::forward<_U2>(__p.second)) 19959: { ; } 19959: 19959: template::template 19959: _MoveConstructiblePair<_U1, _U2>() 19959: && !_PCCFP<_U1, _U2>::template 19959: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 19959: bool>::type=false> 19959: explicit constexpr pair(pair<_U1, _U2>&& __p) 19959: : first(std::forward<_U1>(__p.first)), 19959: second(std::forward<_U2>(__p.second)) 19959: { ; } 19959: 19959: 19959: 19959: pair& 19959: operator=(__conditional_t<__and_, 19959: is_copy_assignable<_T2>>::value, 19959: const pair&, const __nonesuch&> __p) 19959: { 19959: first = __p.first; 19959: second = __p.second; 19959: return *this; 19959: } 19959: 19959: pair& 19959: operator=(__conditional_t<__and_, 19959: is_move_assignable<_T2>>::value, 19959: pair&&, __nonesuch&&> __p) 19959: noexcept(__and_, 19959: is_nothrow_move_assignable<_T2>>::value) 19959: { 19959: first = std::forward(__p.first); 19959: second = std::forward(__p.second); 19959: return *this; 19959: } 19959: 19959: template 19959: typename enable_if<__and_, 19959: is_assignable<_T2&, const _U2&>>::value, 19959: pair&>::type 19959: operator=(const pair<_U1, _U2>& __p) 19959: { 19959: first = __p.first; 19959: second = __p.second; 19959: return *this; 19959: } 19959: 19959: template 19959: typename enable_if<__and_, 19959: is_assignable<_T2&, _U2&&>>::value, 19959: pair&>::type 19959: operator=(pair<_U1, _U2>&& __p) 19959: { 19959: first = std::forward<_U1>(__p.first); 19959: second = std::forward<_U2>(__p.second); 19959: return *this; 19959: } 19959: # 801 "/usr/include/c++/13/bits/stl_pair.h" 3 19959: }; 19959: 19959: 19959: 19959: 19959: template pair(_T1, _T2) -> pair<_T1, _T2>; 19959: 19959: 19959: 19959: template 19959: inline constexpr bool 19959: operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 19959: { return __x.first == __y.first && __x.second == __y.second; } 19959: # 833 "/usr/include/c++/13/bits/stl_pair.h" 3 19959: template 19959: inline constexpr bool 19959: operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 19959: { return __x.first < __y.first 19959: || (!(__y.first < __x.first) && __x.second < __y.second); } 19959: 19959: 19959: template 19959: inline constexpr bool 19959: operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 19959: { return !(__x == __y); } 19959: 19959: 19959: template 19959: inline constexpr bool 19959: operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 19959: { return __y < __x; } 19959: 19959: 19959: template 19959: inline constexpr bool 19959: operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 19959: { return !(__y < __x); } 19959: 19959: 19959: template 19959: inline constexpr bool 19959: operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 19959: { return !(__x < __y); } 19959: # 870 "/usr/include/c++/13/bits/stl_pair.h" 3 19959: template 19959: inline 19959: 19959: 19959: typename enable_if<__and_<__is_swappable<_T1>, 19959: __is_swappable<_T2>>::value>::type 19959: 19959: 19959: 19959: swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: # 893 "/usr/include/c++/13/bits/stl_pair.h" 3 19959: template 19959: typename enable_if, 19959: __is_swappable<_T2>>::value>::type 19959: swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; 19959: # 919 "/usr/include/c++/13/bits/stl_pair.h" 3 19959: template 19959: constexpr pair::__type, 19959: typename __decay_and_strip<_T2>::__type> 19959: make_pair(_T1&& __x, _T2&& __y) 19959: { 19959: typedef typename __decay_and_strip<_T1>::__type __ds_type1; 19959: typedef typename __decay_and_strip<_T2>::__type __ds_type2; 19959: typedef pair<__ds_type1, __ds_type2> __pair_type; 19959: return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); 19959: } 19959: # 942 "/usr/include/c++/13/bits/stl_pair.h" 3 19959: template 19959: struct __is_tuple_like_impl> : true_type 19959: { }; 19959: 19959: 19959: 19959: template 19959: struct tuple_size> 19959: : public integral_constant { }; 19959: 19959: 19959: template 19959: struct tuple_element<0, pair<_Tp1, _Tp2>> 19959: { typedef _Tp1 type; }; 19959: 19959: 19959: template 19959: struct tuple_element<1, pair<_Tp1, _Tp2>> 19959: { typedef _Tp2 type; }; 19959: 19959: 19959: template 19959: inline constexpr size_t tuple_size_v> = 2; 19959: 19959: template 19959: inline constexpr size_t tuple_size_v> = 2; 19959: 19959: template 19959: inline constexpr bool __is_pair = false; 19959: 19959: template 19959: inline constexpr bool __is_pair> = true; 19959: 19959: 19959: 19959: template 19959: struct __pair_get; 19959: 19959: template<> 19959: struct __pair_get<0> 19959: { 19959: template 19959: static constexpr _Tp1& 19959: __get(pair<_Tp1, _Tp2>& __pair) noexcept 19959: { return __pair.first; } 19959: 19959: template 19959: static constexpr _Tp1&& 19959: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 19959: { return std::forward<_Tp1>(__pair.first); } 19959: 19959: template 19959: static constexpr const _Tp1& 19959: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 19959: { return __pair.first; } 19959: 19959: template 19959: static constexpr const _Tp1&& 19959: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 19959: { return std::forward(__pair.first); } 19959: }; 19959: 19959: template<> 19959: struct __pair_get<1> 19959: { 19959: template 19959: static constexpr _Tp2& 19959: __get(pair<_Tp1, _Tp2>& __pair) noexcept 19959: { return __pair.second; } 19959: 19959: template 19959: static constexpr _Tp2&& 19959: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 19959: { return std::forward<_Tp2>(__pair.second); } 19959: 19959: template 19959: static constexpr const _Tp2& 19959: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 19959: { return __pair.second; } 19959: 19959: template 19959: static constexpr const _Tp2&& 19959: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 19959: { return std::forward(__pair.second); } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 19959: get(pair<_Tp1, _Tp2>& __in) noexcept 19959: { return __pair_get<_Int>::__get(__in); } 19959: 19959: template 19959: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 19959: get(pair<_Tp1, _Tp2>&& __in) noexcept 19959: { return __pair_get<_Int>::__move_get(std::move(__in)); } 19959: 19959: template 19959: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 19959: get(const pair<_Tp1, _Tp2>& __in) noexcept 19959: { return __pair_get<_Int>::__const_get(__in); } 19959: 19959: template 19959: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 19959: get(const pair<_Tp1, _Tp2>&& __in) noexcept 19959: { return __pair_get<_Int>::__const_move_get(std::move(__in)); } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: constexpr _Tp& 19959: get(pair<_Tp, _Up>& __p) noexcept 19959: { return __p.first; } 19959: 19959: template 19959: constexpr const _Tp& 19959: get(const pair<_Tp, _Up>& __p) noexcept 19959: { return __p.first; } 19959: 19959: template 19959: constexpr _Tp&& 19959: get(pair<_Tp, _Up>&& __p) noexcept 19959: { return std::move(__p.first); } 19959: 19959: template 19959: constexpr const _Tp&& 19959: get(const pair<_Tp, _Up>&& __p) noexcept 19959: { return std::move(__p.first); } 19959: 19959: template 19959: constexpr _Tp& 19959: get(pair<_Up, _Tp>& __p) noexcept 19959: { return __p.second; } 19959: 19959: template 19959: constexpr const _Tp& 19959: get(const pair<_Up, _Tp>& __p) noexcept 19959: { return __p.second; } 19959: 19959: template 19959: constexpr _Tp&& 19959: get(pair<_Up, _Tp>&& __p) noexcept 19959: { return std::move(__p.second); } 19959: 19959: template 19959: constexpr const _Tp&& 19959: get(const pair<_Up, _Tp>&& __p) noexcept 19959: { return std::move(__p.second); } 19959: # 1118 "/usr/include/c++/13/bits/stl_pair.h" 3 19959: 19959: } 19959: # 65 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 1 3 19959: # 62 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 19959: 19959: # 63 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 19959: # 74 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 93 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 19959: struct input_iterator_tag { }; 19959: 19959: 19959: struct output_iterator_tag { }; 19959: 19959: 19959: struct forward_iterator_tag : public input_iterator_tag { }; 19959: 19959: 19959: 19959: struct bidirectional_iterator_tag : public forward_iterator_tag { }; 19959: 19959: 19959: 19959: struct random_access_iterator_tag : public bidirectional_iterator_tag { }; 19959: # 125 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 19959: template 19959: struct [[__deprecated__]] iterator 19959: { 19959: 19959: typedef _Category iterator_category; 19959: 19959: typedef _Tp value_type; 19959: 19959: typedef _Distance difference_type; 19959: 19959: typedef _Pointer pointer; 19959: 19959: typedef _Reference reference; 19959: }; 19959: # 149 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 19959: template 19959: struct iterator_traits; 19959: 19959: 19959: 19959: 19959: template> 19959: struct __iterator_traits { }; 19959: 19959: 19959: 19959: template 19959: struct __iterator_traits<_Iterator, 19959: __void_t> 19959: { 19959: typedef typename _Iterator::iterator_category iterator_category; 19959: typedef typename _Iterator::value_type value_type; 19959: typedef typename _Iterator::difference_type difference_type; 19959: typedef typename _Iterator::pointer pointer; 19959: typedef typename _Iterator::reference reference; 19959: }; 19959: 19959: 19959: template 19959: struct iterator_traits 19959: : public __iterator_traits<_Iterator> { }; 19959: # 209 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 19959: template 19959: struct iterator_traits<_Tp*> 19959: { 19959: typedef random_access_iterator_tag iterator_category; 19959: typedef _Tp value_type; 19959: typedef ptrdiff_t difference_type; 19959: typedef _Tp* pointer; 19959: typedef _Tp& reference; 19959: }; 19959: 19959: 19959: template 19959: struct iterator_traits 19959: { 19959: typedef random_access_iterator_tag iterator_category; 19959: typedef _Tp value_type; 19959: typedef ptrdiff_t difference_type; 19959: typedef const _Tp* pointer; 19959: typedef const _Tp& reference; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: __attribute__((__always_inline__)) 19959: inline constexpr 19959: typename iterator_traits<_Iter>::iterator_category 19959: __iterator_category(const _Iter&) 19959: { return typename iterator_traits<_Iter>::iterator_category(); } 19959: 19959: 19959: 19959: 19959: template 19959: using __iter_category_t 19959: = typename iterator_traits<_Iter>::iterator_category; 19959: 19959: template 19959: using _RequireInputIter = 19959: __enable_if_t, 19959: input_iterator_tag>::value>; 19959: 19959: template> 19959: struct __is_random_access_iter 19959: : is_base_of 19959: { 19959: typedef is_base_of _Base; 19959: enum { __value = _Base::value }; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 66 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 1 3 19959: # 62 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 3 19959: 19959: # 63 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 3 19959: 19959: # 1 "/usr/include/c++/13/bits/concept_check.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/concept_check.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/concept_check.h" 3 19959: # 65 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 2 3 19959: # 1 "/usr/include/c++/13/debug/assertions.h" 1 3 19959: # 66 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 2 3 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: template struct _List_iterator; 19959: template struct _List_const_iterator; 19959: 19959: 19959: template 19959: inline constexpr 19959: typename iterator_traits<_InputIterator>::difference_type 19959: __distance(_InputIterator __first, _InputIterator __last, 19959: input_iterator_tag) 19959: { 19959: 19959: 19959: 19959: typename iterator_traits<_InputIterator>::difference_type __n = 0; 19959: while (__first != __last) 19959: { 19959: ++__first; 19959: ++__n; 19959: } 19959: return __n; 19959: } 19959: 19959: template 19959: __attribute__((__always_inline__)) 19959: inline constexpr 19959: typename iterator_traits<_RandomAccessIterator>::difference_type 19959: __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: random_access_iterator_tag) 19959: { 19959: 19959: 19959: 19959: return __last - __first; 19959: } 19959: 19959: 19959: 19959: template 19959: ptrdiff_t 19959: __distance(std::_List_iterator<_Tp>, 19959: std::_List_iterator<_Tp>, 19959: input_iterator_tag); 19959: 19959: template 19959: ptrdiff_t 19959: __distance(std::_List_const_iterator<_Tp>, 19959: std::_List_const_iterator<_Tp>, 19959: input_iterator_tag); 19959: 19959: 19959: 19959: 19959: template 19959: void 19959: __distance(_OutputIterator, _OutputIterator, output_iterator_tag) = delete; 19959: # 144 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 3 19959: template 19959: [[__nodiscard__]] __attribute__((__always_inline__)) 19959: inline constexpr 19959: typename iterator_traits<_InputIterator>::difference_type 19959: distance(_InputIterator __first, _InputIterator __last) 19959: { 19959: 19959: return std::__distance(__first, __last, 19959: std::__iterator_category(__first)); 19959: } 19959: 19959: template 19959: inline constexpr void 19959: __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) 19959: { 19959: 19959: 19959: do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) __builtin_unreachable(); } while (false); 19959: while (__n--) 19959: ++__i; 19959: } 19959: 19959: template 19959: inline constexpr void 19959: __advance(_BidirectionalIterator& __i, _Distance __n, 19959: bidirectional_iterator_tag) 19959: { 19959: 19959: 19959: 19959: if (__n > 0) 19959: while (__n--) 19959: ++__i; 19959: else 19959: while (__n++) 19959: --__i; 19959: } 19959: 19959: template 19959: inline constexpr void 19959: __advance(_RandomAccessIterator& __i, _Distance __n, 19959: random_access_iterator_tag) 19959: { 19959: 19959: 19959: 19959: if (__builtin_constant_p(__n) && __n == 1) 19959: ++__i; 19959: else if (__builtin_constant_p(__n) && __n == -1) 19959: --__i; 19959: else 19959: __i += __n; 19959: } 19959: 19959: 19959: 19959: template 19959: void 19959: __advance(_OutputIterator&, _Distance, output_iterator_tag) = delete; 19959: # 217 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 3 19959: template 19959: __attribute__((__always_inline__)) 19959: inline constexpr void 19959: advance(_InputIterator& __i, _Distance __n) 19959: { 19959: 19959: typename iterator_traits<_InputIterator>::difference_type __d = __n; 19959: std::__advance(__i, __d, std::__iterator_category(__i)); 19959: } 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] [[__gnu__::__always_inline__]] 19959: inline constexpr _InputIterator 19959: next(_InputIterator __x, typename 19959: iterator_traits<_InputIterator>::difference_type __n = 1) 19959: { 19959: 19959: 19959: std::advance(__x, __n); 19959: return __x; 19959: } 19959: 19959: template 19959: [[__nodiscard__]] [[__gnu__::__always_inline__]] 19959: inline constexpr _BidirectionalIterator 19959: prev(_BidirectionalIterator __x, typename 19959: iterator_traits<_BidirectionalIterator>::difference_type __n = 1) 19959: { 19959: 19959: 19959: 19959: std::advance(__x, -__n); 19959: return __x; 19959: } 19959: 19959: 19959: 19959: 19959: } 19959: # 67 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/stl_iterator.h" 1 3 19959: # 67 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: # 1 "/usr/include/c++/13/bits/ptr_traits.h" 1 3 19959: # 49 "/usr/include/c++/13/bits/ptr_traits.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: class __undefined; 19959: 19959: 19959: 19959: template 19959: struct __get_first_arg 19959: { using type = __undefined; }; 19959: 19959: template class _SomeTemplate, typename _Tp, 19959: typename... _Types> 19959: struct __get_first_arg<_SomeTemplate<_Tp, _Types...>> 19959: { using type = _Tp; }; 19959: 19959: 19959: 19959: template 19959: struct __replace_first_arg 19959: { }; 19959: 19959: template class _SomeTemplate, typename _Up, 19959: typename _Tp, typename... _Types> 19959: struct __replace_first_arg<_SomeTemplate<_Tp, _Types...>, _Up> 19959: { using type = _SomeTemplate<_Up, _Types...>; }; 19959: 19959: 19959: template 19959: struct __ptr_traits_elem : __get_first_arg<_Ptr> 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __ptr_traits_elem<_Ptr, __void_t> 19959: { using type = typename _Ptr::element_type; }; 19959: 19959: 19959: template 19959: using __ptr_traits_elem_t = typename __ptr_traits_elem<_Ptr>::type; 19959: 19959: 19959: 19959: 19959: template::value> 19959: struct __ptr_traits_ptr_to 19959: { 19959: using pointer = _Ptr; 19959: using element_type = _Elt; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: static pointer 19959: pointer_to(element_type& __r) 19959: 19959: 19959: 19959: 19959: 19959: { return pointer::pointer_to(__r); } 19959: }; 19959: 19959: 19959: template 19959: struct __ptr_traits_ptr_to<_Ptr, _Elt, true> 19959: { }; 19959: 19959: 19959: template 19959: struct __ptr_traits_ptr_to<_Tp*, _Tp, false> 19959: { 19959: using pointer = _Tp*; 19959: using element_type = _Tp; 19959: 19959: 19959: 19959: 19959: 19959: 19959: static pointer 19959: pointer_to(element_type& __r) noexcept 19959: { return std::addressof(__r); } 19959: }; 19959: 19959: template 19959: struct __ptr_traits_impl : __ptr_traits_ptr_to<_Ptr, _Elt> 19959: { 19959: private: 19959: template 19959: using __diff_t = typename _Tp::difference_type; 19959: 19959: template 19959: using __rebind = __type_identity>; 19959: 19959: public: 19959: 19959: using pointer = _Ptr; 19959: 19959: 19959: using element_type = _Elt; 19959: 19959: 19959: using difference_type = __detected_or_t; 19959: 19959: 19959: template 19959: using rebind = typename __detected_or_t<__replace_first_arg<_Ptr, _Up>, 19959: __rebind, _Ptr, _Up>::type; 19959: }; 19959: 19959: 19959: 19959: template 19959: struct __ptr_traits_impl<_Ptr, __undefined> 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct pointer_traits : __ptr_traits_impl<_Ptr, __ptr_traits_elem_t<_Ptr>> 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct pointer_traits<_Tp*> : __ptr_traits_ptr_to<_Tp*, _Tp> 19959: { 19959: 19959: typedef _Tp* pointer; 19959: 19959: typedef _Tp element_type; 19959: 19959: typedef ptrdiff_t difference_type; 19959: 19959: template using rebind = _Up*; 19959: }; 19959: 19959: 19959: template 19959: using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; 19959: 19959: template 19959: constexpr _Tp* 19959: __to_address(_Tp* __ptr) noexcept 19959: { 19959: static_assert(!std::is_function<_Tp>::value, "not a function pointer"); 19959: return __ptr; 19959: } 19959: 19959: 19959: template 19959: constexpr typename std::pointer_traits<_Ptr>::element_type* 19959: __to_address(const _Ptr& __ptr) 19959: { return std::__to_address(__ptr.operator->()); } 19959: # 266 "/usr/include/c++/13/bits/ptr_traits.h" 3 19959: 19959: } 19959: # 68 "/usr/include/c++/13/bits/stl_iterator.h" 2 3 19959: # 88 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 113 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: 19959: # 113 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: # 135 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: class reverse_iterator 19959: : public iterator::iterator_category, 19959: typename iterator_traits<_Iterator>::value_type, 19959: typename iterator_traits<_Iterator>::difference_type, 19959: typename iterator_traits<_Iterator>::pointer, 19959: typename iterator_traits<_Iterator>::reference> 19959: { 19959: template 19959: friend class reverse_iterator; 19959: # 154 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: protected: 19959: _Iterator current; 19959: 19959: typedef iterator_traits<_Iterator> __traits_type; 19959: 19959: public: 19959: typedef _Iterator iterator_type; 19959: typedef typename __traits_type::pointer pointer; 19959: 19959: typedef typename __traits_type::difference_type difference_type; 19959: typedef typename __traits_type::reference reference; 19959: # 185 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: constexpr 19959: reverse_iterator() 19959: noexcept(noexcept(_Iterator())) 19959: : current() 19959: { } 19959: 19959: 19959: 19959: 19959: explicit constexpr 19959: reverse_iterator(iterator_type __x) 19959: noexcept(noexcept(_Iterator(__x))) 19959: : current(__x) 19959: { } 19959: 19959: 19959: 19959: 19959: constexpr 19959: reverse_iterator(const reverse_iterator& __x) 19959: noexcept(noexcept(_Iterator(__x.current))) 19959: : current(__x.current) 19959: { } 19959: 19959: 19959: reverse_iterator& operator=(const reverse_iterator&) = default; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: 19959: 19959: constexpr 19959: reverse_iterator(const reverse_iterator<_Iter>& __x) 19959: noexcept(noexcept(_Iterator(__x.current))) 19959: : current(__x.current) 19959: { } 19959: 19959: 19959: template 19959: 19959: 19959: 19959: 19959: constexpr 19959: reverse_iterator& 19959: operator=(const reverse_iterator<_Iter>& __x) 19959: noexcept(noexcept(current = __x.current)) 19959: { 19959: current = __x.current; 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: constexpr iterator_type 19959: base() const 19959: noexcept(noexcept(_Iterator(current))) 19959: { return current; } 19959: # 262 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: [[__nodiscard__]] 19959: constexpr reference 19959: operator*() const 19959: { 19959: _Iterator __tmp = current; 19959: return *--__tmp; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: constexpr pointer 19959: operator->() const 19959: 19959: 19959: 19959: 19959: { 19959: 19959: 19959: _Iterator __tmp = current; 19959: --__tmp; 19959: return _S_to_pointer(__tmp); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: constexpr reverse_iterator& 19959: operator++() 19959: { 19959: --current; 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: constexpr reverse_iterator 19959: operator++(int) 19959: { 19959: reverse_iterator __tmp = *this; 19959: --current; 19959: return __tmp; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: constexpr reverse_iterator& 19959: operator--() 19959: { 19959: ++current; 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: constexpr reverse_iterator 19959: operator--(int) 19959: { 19959: reverse_iterator __tmp = *this; 19959: ++current; 19959: return __tmp; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: constexpr reverse_iterator 19959: operator+(difference_type __n) const 19959: { return reverse_iterator(current - __n); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: constexpr reverse_iterator& 19959: operator+=(difference_type __n) 19959: { 19959: current -= __n; 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: constexpr reverse_iterator 19959: operator-(difference_type __n) const 19959: { return reverse_iterator(current + __n); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: constexpr reverse_iterator& 19959: operator-=(difference_type __n) 19959: { 19959: current += __n; 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: constexpr reference 19959: operator[](difference_type __n) const 19959: { return *(*this + __n); } 19959: # 422 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: private: 19959: template 19959: static constexpr _Tp* 19959: _S_to_pointer(_Tp* __p) 19959: { return __p; } 19959: 19959: template 19959: static constexpr pointer 19959: _S_to_pointer(_Tp __t) 19959: { return __t.operator->(); } 19959: }; 19959: # 445 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator==(const reverse_iterator<_Iterator>& __x, 19959: const reverse_iterator<_Iterator>& __y) 19959: { return __x.base() == __y.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator<(const reverse_iterator<_Iterator>& __x, 19959: const reverse_iterator<_Iterator>& __y) 19959: { return __y.base() < __x.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator!=(const reverse_iterator<_Iterator>& __x, 19959: const reverse_iterator<_Iterator>& __y) 19959: { return !(__x == __y); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator>(const reverse_iterator<_Iterator>& __x, 19959: const reverse_iterator<_Iterator>& __y) 19959: { return __y < __x; } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator<=(const reverse_iterator<_Iterator>& __x, 19959: const reverse_iterator<_Iterator>& __y) 19959: { return !(__y < __x); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator>=(const reverse_iterator<_Iterator>& __x, 19959: const reverse_iterator<_Iterator>& __y) 19959: { return !(__x < __y); } 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator==(const reverse_iterator<_IteratorL>& __x, 19959: const reverse_iterator<_IteratorR>& __y) 19959: { return __x.base() == __y.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator<(const reverse_iterator<_IteratorL>& __x, 19959: const reverse_iterator<_IteratorR>& __y) 19959: { return __x.base() > __y.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator!=(const reverse_iterator<_IteratorL>& __x, 19959: const reverse_iterator<_IteratorR>& __y) 19959: { return __x.base() != __y.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator>(const reverse_iterator<_IteratorL>& __x, 19959: const reverse_iterator<_IteratorR>& __y) 19959: { return __x.base() < __y.base(); } 19959: 19959: template 19959: inline constexpr bool 19959: operator<=(const reverse_iterator<_IteratorL>& __x, 19959: const reverse_iterator<_IteratorR>& __y) 19959: { return __x.base() >= __y.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator>=(const reverse_iterator<_IteratorL>& __x, 19959: const reverse_iterator<_IteratorR>& __y) 19959: { return __x.base() <= __y.base(); } 19959: # 622 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr auto 19959: operator-(const reverse_iterator<_IteratorL>& __x, 19959: const reverse_iterator<_IteratorR>& __y) 19959: -> decltype(__y.base() - __x.base()) 19959: { return __y.base() - __x.base(); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr reverse_iterator<_Iterator> 19959: operator+(typename reverse_iterator<_Iterator>::difference_type __n, 19959: const reverse_iterator<_Iterator>& __x) 19959: { return reverse_iterator<_Iterator>(__x.base() - __n); } 19959: 19959: 19959: 19959: template 19959: inline constexpr reverse_iterator<_Iterator> 19959: __make_reverse_iterator(_Iterator __i) 19959: { return reverse_iterator<_Iterator>(__i); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr reverse_iterator<_Iterator> 19959: make_reverse_iterator(_Iterator __i) 19959: { return reverse_iterator<_Iterator>(__i); } 19959: # 666 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: 19959: auto 19959: __niter_base(reverse_iterator<_Iterator> __it) 19959: -> decltype(__make_reverse_iterator(__niter_base(__it.base()))) 19959: { return __make_reverse_iterator(__niter_base(__it.base())); } 19959: 19959: template 19959: struct __is_move_iterator > 19959: : __is_move_iterator<_Iterator> 19959: { }; 19959: 19959: template 19959: 19959: auto 19959: __miter_base(reverse_iterator<_Iterator> __it) 19959: -> decltype(__make_reverse_iterator(__miter_base(__it.base()))) 19959: { return __make_reverse_iterator(__miter_base(__it.base())); } 19959: # 697 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: class back_insert_iterator 19959: : public iterator 19959: { 19959: protected: 19959: _Container* container; 19959: 19959: public: 19959: 19959: typedef _Container container_type; 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: back_insert_iterator(_Container& __x) 19959: : container(std::__addressof(__x)) { } 19959: # 735 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: 19959: back_insert_iterator& 19959: operator=(const typename _Container::value_type& __value) 19959: { 19959: container->push_back(__value); 19959: return *this; 19959: } 19959: 19959: 19959: back_insert_iterator& 19959: operator=(typename _Container::value_type&& __value) 19959: { 19959: container->push_back(std::move(__value)); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: back_insert_iterator& 19959: operator*() 19959: { return *this; } 19959: 19959: 19959: 19959: back_insert_iterator& 19959: operator++() 19959: { return *this; } 19959: 19959: 19959: 19959: back_insert_iterator 19959: operator++(int) 19959: { return *this; } 19959: }; 19959: # 782 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline back_insert_iterator<_Container> 19959: back_inserter(_Container& __x) 19959: { return back_insert_iterator<_Container>(__x); } 19959: # 798 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: class front_insert_iterator 19959: : public iterator 19959: { 19959: protected: 19959: _Container* container; 19959: 19959: public: 19959: 19959: typedef _Container container_type; 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: front_insert_iterator(_Container& __x) 19959: : container(std::__addressof(__x)) { } 19959: # 836 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: 19959: front_insert_iterator& 19959: operator=(const typename _Container::value_type& __value) 19959: { 19959: container->push_front(__value); 19959: return *this; 19959: } 19959: 19959: 19959: front_insert_iterator& 19959: operator=(typename _Container::value_type&& __value) 19959: { 19959: container->push_front(std::move(__value)); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: front_insert_iterator& 19959: operator*() 19959: { return *this; } 19959: 19959: 19959: 19959: front_insert_iterator& 19959: operator++() 19959: { return *this; } 19959: 19959: 19959: 19959: front_insert_iterator 19959: operator++(int) 19959: { return *this; } 19959: }; 19959: # 883 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline front_insert_iterator<_Container> 19959: front_inserter(_Container& __x) 19959: { return front_insert_iterator<_Container>(__x); } 19959: # 903 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: class insert_iterator 19959: : public iterator 19959: { 19959: 19959: 19959: 19959: typedef typename _Container::iterator _Iter; 19959: 19959: protected: 19959: _Container* container; 19959: _Iter iter; 19959: 19959: public: 19959: 19959: typedef _Container container_type; 19959: # 928 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: 19959: insert_iterator(_Container& __x, _Iter __i) 19959: : container(std::__addressof(__x)), iter(__i) {} 19959: # 964 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: 19959: insert_iterator& 19959: operator=(const typename _Container::value_type& __value) 19959: { 19959: iter = container->insert(iter, __value); 19959: ++iter; 19959: return *this; 19959: } 19959: 19959: 19959: insert_iterator& 19959: operator=(typename _Container::value_type&& __value) 19959: { 19959: iter = container->insert(iter, std::move(__value)); 19959: ++iter; 19959: return *this; 19959: } 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: insert_iterator& 19959: operator*() 19959: { return *this; } 19959: 19959: 19959: 19959: insert_iterator& 19959: operator++() 19959: { return *this; } 19959: 19959: 19959: 19959: insert_iterator& 19959: operator++(int) 19959: { return *this; } 19959: }; 19959: 19959: #pragma GCC diagnostic pop 19959: # 1023 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline insert_iterator<_Container> 19959: inserter(_Container& __x, typename _Container::iterator __i) 19959: { return insert_iterator<_Container>(__x, __i); } 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 1046 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: class __normal_iterator 19959: { 19959: protected: 19959: _Iterator _M_current; 19959: 19959: typedef std::iterator_traits<_Iterator> __traits_type; 19959: 19959: 19959: template 19959: using __convertible_from 19959: = std::__enable_if_t::value>; 19959: 19959: 19959: public: 19959: typedef _Iterator iterator_type; 19959: typedef typename __traits_type::iterator_category iterator_category; 19959: typedef typename __traits_type::value_type value_type; 19959: typedef typename __traits_type::difference_type difference_type; 19959: typedef typename __traits_type::reference reference; 19959: typedef typename __traits_type::pointer pointer; 19959: 19959: 19959: 19959: 19959: 19959: constexpr __normal_iterator() noexcept 19959: : _M_current(_Iterator()) { } 19959: 19959: explicit 19959: __normal_iterator(const _Iterator& __i) noexcept 19959: : _M_current(__i) { } 19959: 19959: 19959: 19959: template> 19959: 19959: __normal_iterator(const __normal_iterator<_Iter, _Container>& __i) 19959: noexcept 19959: # 1094 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: : _M_current(__i.base()) { } 19959: 19959: 19959: 19959: reference 19959: operator*() const noexcept 19959: { return *_M_current; } 19959: 19959: 19959: pointer 19959: operator->() const noexcept 19959: { return _M_current; } 19959: 19959: 19959: __normal_iterator& 19959: operator++() noexcept 19959: { 19959: ++_M_current; 19959: return *this; 19959: } 19959: 19959: 19959: __normal_iterator 19959: operator++(int) noexcept 19959: { return __normal_iterator(_M_current++); } 19959: 19959: 19959: 19959: __normal_iterator& 19959: operator--() noexcept 19959: { 19959: --_M_current; 19959: return *this; 19959: } 19959: 19959: 19959: __normal_iterator 19959: operator--(int) noexcept 19959: { return __normal_iterator(_M_current--); } 19959: 19959: 19959: 19959: reference 19959: operator[](difference_type __n) const noexcept 19959: { return _M_current[__n]; } 19959: 19959: 19959: __normal_iterator& 19959: operator+=(difference_type __n) noexcept 19959: { _M_current += __n; return *this; } 19959: 19959: 19959: __normal_iterator 19959: operator+(difference_type __n) const noexcept 19959: { return __normal_iterator(_M_current + __n); } 19959: 19959: 19959: __normal_iterator& 19959: operator-=(difference_type __n) noexcept 19959: { _M_current -= __n; return *this; } 19959: 19959: 19959: __normal_iterator 19959: operator-(difference_type __n) const noexcept 19959: { return __normal_iterator(_M_current - __n); } 19959: 19959: 19959: const _Iterator& 19959: base() const noexcept 19959: { return _M_current; } 19959: }; 19959: # 1214 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, 19959: const __normal_iterator<_IteratorR, _Container>& __rhs) 19959: noexcept 19959: { return __lhs.base() == __rhs.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(const __normal_iterator<_Iterator, _Container>& __lhs, 19959: const __normal_iterator<_Iterator, _Container>& __rhs) 19959: noexcept 19959: { return __lhs.base() == __rhs.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, 19959: const __normal_iterator<_IteratorR, _Container>& __rhs) 19959: noexcept 19959: { return __lhs.base() != __rhs.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, 19959: const __normal_iterator<_Iterator, _Container>& __rhs) 19959: noexcept 19959: { return __lhs.base() != __rhs.base(); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, 19959: const __normal_iterator<_IteratorR, _Container>& __rhs) 19959: noexcept 19959: { return __lhs.base() < __rhs.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<(const __normal_iterator<_Iterator, _Container>& __lhs, 19959: const __normal_iterator<_Iterator, _Container>& __rhs) 19959: noexcept 19959: { return __lhs.base() < __rhs.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, 19959: const __normal_iterator<_IteratorR, _Container>& __rhs) 19959: noexcept 19959: { return __lhs.base() > __rhs.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>(const __normal_iterator<_Iterator, _Container>& __lhs, 19959: const __normal_iterator<_Iterator, _Container>& __rhs) 19959: noexcept 19959: { return __lhs.base() > __rhs.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, 19959: const __normal_iterator<_IteratorR, _Container>& __rhs) 19959: noexcept 19959: { return __lhs.base() <= __rhs.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, 19959: const __normal_iterator<_Iterator, _Container>& __rhs) 19959: noexcept 19959: { return __lhs.base() <= __rhs.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, 19959: const __normal_iterator<_IteratorR, _Container>& __rhs) 19959: noexcept 19959: { return __lhs.base() >= __rhs.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, 19959: const __normal_iterator<_Iterator, _Container>& __rhs) 19959: noexcept 19959: { return __lhs.base() >= __rhs.base(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: 19959: [[__nodiscard__]] 19959: inline auto 19959: operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, 19959: const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept 19959: -> decltype(__lhs.base() - __rhs.base()) 19959: 19959: 19959: 19959: 19959: 19959: { return __lhs.base() - __rhs.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline typename __normal_iterator<_Iterator, _Container>::difference_type 19959: operator-(const __normal_iterator<_Iterator, _Container>& __lhs, 19959: const __normal_iterator<_Iterator, _Container>& __rhs) 19959: noexcept 19959: { return __lhs.base() - __rhs.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline __normal_iterator<_Iterator, _Container> 19959: operator+(typename __normal_iterator<_Iterator, _Container>::difference_type 19959: __n, const __normal_iterator<_Iterator, _Container>& __i) 19959: noexcept 19959: { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } 19959: 19959: 19959: } 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template 19959: 19959: _Iterator 19959: __niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) 19959: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 19959: { return __it.base(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: constexpr auto 19959: __to_address(const __gnu_cxx::__normal_iterator<_Iterator, 19959: _Container>& __it) noexcept 19959: -> decltype(std::__to_address(__it.base())) 19959: { return std::__to_address(__it.base()); } 19959: # 1421 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: namespace __detail 19959: { 19959: # 1437 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: } 19959: # 1448 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: class move_iterator 19959: 19959: 19959: 19959: { 19959: _Iterator _M_current; 19959: 19959: using __traits_type = iterator_traits<_Iterator>; 19959: 19959: using __base_ref = typename __traits_type::reference; 19959: 19959: 19959: template 19959: friend class move_iterator; 19959: # 1487 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: public: 19959: using iterator_type = _Iterator; 19959: # 1501 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: typedef typename __traits_type::iterator_category iterator_category; 19959: typedef typename __traits_type::value_type value_type; 19959: typedef typename __traits_type::difference_type difference_type; 19959: 19959: typedef _Iterator pointer; 19959: 19959: 19959: using reference 19959: = __conditional_t::value, 19959: typename remove_reference<__base_ref>::type&&, 19959: __base_ref>; 19959: 19959: 19959: constexpr 19959: move_iterator() 19959: : _M_current() { } 19959: 19959: explicit constexpr 19959: move_iterator(iterator_type __i) 19959: : _M_current(std::move(__i)) { } 19959: 19959: template 19959: 19959: 19959: 19959: constexpr 19959: move_iterator(const move_iterator<_Iter>& __i) 19959: : _M_current(__i._M_current) { } 19959: 19959: template 19959: 19959: 19959: 19959: 19959: constexpr 19959: move_iterator& operator=(const move_iterator<_Iter>& __i) 19959: { 19959: _M_current = __i._M_current; 19959: return *this; 19959: } 19959: 19959: 19959: [[__nodiscard__]] 19959: constexpr iterator_type 19959: base() const 19959: { return _M_current; } 19959: # 1559 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: [[__nodiscard__]] 19959: constexpr reference 19959: operator*() const 19959: 19959: 19959: 19959: { return static_cast(*_M_current); } 19959: 19959: 19959: [[__nodiscard__]] 19959: constexpr pointer 19959: operator->() const 19959: { return _M_current; } 19959: 19959: constexpr move_iterator& 19959: operator++() 19959: { 19959: ++_M_current; 19959: return *this; 19959: } 19959: 19959: constexpr move_iterator 19959: operator++(int) 19959: { 19959: move_iterator __tmp = *this; 19959: ++_M_current; 19959: return __tmp; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: constexpr move_iterator& 19959: operator--() 19959: { 19959: --_M_current; 19959: return *this; 19959: } 19959: 19959: constexpr move_iterator 19959: operator--(int) 19959: { 19959: move_iterator __tmp = *this; 19959: --_M_current; 19959: return __tmp; 19959: } 19959: 19959: [[__nodiscard__]] 19959: constexpr move_iterator 19959: operator+(difference_type __n) const 19959: { return move_iterator(_M_current + __n); } 19959: 19959: constexpr move_iterator& 19959: operator+=(difference_type __n) 19959: { 19959: _M_current += __n; 19959: return *this; 19959: } 19959: 19959: [[__nodiscard__]] 19959: constexpr move_iterator 19959: operator-(difference_type __n) const 19959: { return move_iterator(_M_current - __n); } 19959: 19959: constexpr move_iterator& 19959: operator-=(difference_type __n) 19959: { 19959: _M_current -= __n; 19959: return *this; 19959: } 19959: 19959: [[__nodiscard__]] 19959: constexpr reference 19959: operator[](difference_type __n) const 19959: 19959: 19959: 19959: { return std::move(_M_current[__n]); } 19959: # 1673 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: }; 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator==(const move_iterator<_IteratorL>& __x, 19959: const move_iterator<_IteratorR>& __y) 19959: 19959: 19959: 19959: { return __x.base() == __y.base(); } 19959: # 1694 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator!=(const move_iterator<_IteratorL>& __x, 19959: const move_iterator<_IteratorR>& __y) 19959: { return !(__x == __y); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator<(const move_iterator<_IteratorL>& __x, 19959: const move_iterator<_IteratorR>& __y) 19959: 19959: 19959: 19959: { return __x.base() < __y.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator<=(const move_iterator<_IteratorL>& __x, 19959: const move_iterator<_IteratorR>& __y) 19959: 19959: 19959: 19959: { return !(__y < __x); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator>(const move_iterator<_IteratorL>& __x, 19959: const move_iterator<_IteratorR>& __y) 19959: 19959: 19959: 19959: { return __y < __x; } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator>=(const move_iterator<_IteratorL>& __x, 19959: const move_iterator<_IteratorR>& __y) 19959: 19959: 19959: 19959: { return !(__x < __y); } 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator==(const move_iterator<_Iterator>& __x, 19959: const move_iterator<_Iterator>& __y) 19959: { return __x.base() == __y.base(); } 19959: # 1760 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator!=(const move_iterator<_Iterator>& __x, 19959: const move_iterator<_Iterator>& __y) 19959: { return !(__x == __y); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator<(const move_iterator<_Iterator>& __x, 19959: const move_iterator<_Iterator>& __y) 19959: { return __x.base() < __y.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator<=(const move_iterator<_Iterator>& __x, 19959: const move_iterator<_Iterator>& __y) 19959: { return !(__y < __x); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator>(const move_iterator<_Iterator>& __x, 19959: const move_iterator<_Iterator>& __y) 19959: { return __y < __x; } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr bool 19959: operator>=(const move_iterator<_Iterator>& __x, 19959: const move_iterator<_Iterator>& __y) 19959: { return !(__x < __y); } 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr auto 19959: operator-(const move_iterator<_IteratorL>& __x, 19959: const move_iterator<_IteratorR>& __y) 19959: -> decltype(__x.base() - __y.base()) 19959: { return __x.base() - __y.base(); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr move_iterator<_Iterator> 19959: operator+(typename move_iterator<_Iterator>::difference_type __n, 19959: const move_iterator<_Iterator>& __x) 19959: { return __x + __n; } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr move_iterator<_Iterator> 19959: make_move_iterator(_Iterator __i) 19959: { return move_iterator<_Iterator>(std::move(__i)); } 19959: 19959: template::value_type>::value, 19959: _Iterator, move_iterator<_Iterator>>> 19959: inline constexpr _ReturnType 19959: __make_move_if_noexcept_iterator(_Iterator __i) 19959: { return _ReturnType(__i); } 19959: 19959: 19959: 19959: template::value, 19959: const _Tp*, move_iterator<_Tp*>>> 19959: inline constexpr _ReturnType 19959: __make_move_if_noexcept_iterator(_Tp* __i) 19959: { return _ReturnType(__i); } 19959: # 2951 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: 19959: auto 19959: __niter_base(move_iterator<_Iterator> __it) 19959: -> decltype(make_move_iterator(__niter_base(__it.base()))) 19959: { return make_move_iterator(__niter_base(__it.base())); } 19959: 19959: template 19959: struct __is_move_iterator > 19959: { 19959: enum { __value = 1 }; 19959: typedef __true_type __type; 19959: }; 19959: 19959: template 19959: 19959: auto 19959: __miter_base(move_iterator<_Iterator> __it) 19959: -> decltype(__miter_base(__it.base())) 19959: { return __miter_base(__it.base()); } 19959: # 2983 "/usr/include/c++/13/bits/stl_iterator.h" 3 19959: template 19959: using __iter_key_t = remove_const_t< 19959: typename iterator_traits<_InputIterator>::value_type::first_type>; 19959: 19959: template 19959: using __iter_val_t 19959: = typename iterator_traits<_InputIterator>::value_type::second_type; 19959: 19959: template 19959: struct pair; 19959: 19959: template 19959: using __iter_to_alloc_t 19959: = pair, __iter_val_t<_InputIterator>>; 19959: 19959: 19959: 19959: } 19959: # 68 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 19959: 19959: # 1 "/usr/include/c++/13/debug/debug.h" 1 3 19959: # 48 "/usr/include/c++/13/debug/debug.h" 3 19959: namespace std 19959: { 19959: namespace __debug { } 19959: } 19959: 19959: 19959: 19959: 19959: namespace __gnu_debug 19959: { 19959: using namespace std::__debug; 19959: 19959: template 19959: struct _Safe_iterator; 19959: } 19959: # 70 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 19959: 19959: # 1 "/usr/include/c++/13/bits/predefined_ops.h" 1 3 19959: # 35 "/usr/include/c++/13/bits/predefined_ops.h" 3 19959: namespace __gnu_cxx 19959: { 19959: namespace __ops 19959: { 19959: struct _Iter_less_iter 19959: { 19959: template 19959: constexpr 19959: bool 19959: operator()(_Iterator1 __it1, _Iterator2 __it2) const 19959: { return *__it1 < *__it2; } 19959: }; 19959: 19959: constexpr 19959: inline _Iter_less_iter 19959: __iter_less_iter() 19959: { return _Iter_less_iter(); } 19959: 19959: struct _Iter_less_val 19959: { 19959: 19959: constexpr _Iter_less_val() = default; 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: _Iter_less_val(_Iter_less_iter) { } 19959: 19959: template 19959: 19959: bool 19959: operator()(_Iterator __it, _Value& __val) const 19959: { return *__it < __val; } 19959: }; 19959: 19959: 19959: inline _Iter_less_val 19959: __iter_less_val() 19959: { return _Iter_less_val(); } 19959: 19959: 19959: inline _Iter_less_val 19959: __iter_comp_val(_Iter_less_iter) 19959: { return _Iter_less_val(); } 19959: 19959: struct _Val_less_iter 19959: { 19959: 19959: constexpr _Val_less_iter() = default; 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: _Val_less_iter(_Iter_less_iter) { } 19959: 19959: template 19959: 19959: bool 19959: operator()(_Value& __val, _Iterator __it) const 19959: { return __val < *__it; } 19959: }; 19959: 19959: 19959: inline _Val_less_iter 19959: __val_less_iter() 19959: { return _Val_less_iter(); } 19959: 19959: 19959: inline _Val_less_iter 19959: __val_comp_iter(_Iter_less_iter) 19959: { return _Val_less_iter(); } 19959: 19959: struct _Iter_equal_to_iter 19959: { 19959: template 19959: 19959: bool 19959: operator()(_Iterator1 __it1, _Iterator2 __it2) const 19959: { return *__it1 == *__it2; } 19959: }; 19959: 19959: 19959: inline _Iter_equal_to_iter 19959: __iter_equal_to_iter() 19959: { return _Iter_equal_to_iter(); } 19959: 19959: struct _Iter_equal_to_val 19959: { 19959: template 19959: 19959: bool 19959: operator()(_Iterator __it, _Value& __val) const 19959: { return *__it == __val; } 19959: }; 19959: 19959: 19959: inline _Iter_equal_to_val 19959: __iter_equal_to_val() 19959: { return _Iter_equal_to_val(); } 19959: 19959: 19959: inline _Iter_equal_to_val 19959: __iter_comp_val(_Iter_equal_to_iter) 19959: { return _Iter_equal_to_val(); } 19959: 19959: template 19959: struct _Iter_comp_iter 19959: { 19959: _Compare _M_comp; 19959: 19959: explicit constexpr 19959: _Iter_comp_iter(_Compare __comp) 19959: : _M_comp(std::move(__comp)) 19959: { } 19959: 19959: template 19959: constexpr 19959: bool 19959: operator()(_Iterator1 __it1, _Iterator2 __it2) 19959: { return bool(_M_comp(*__it1, *__it2)); } 19959: }; 19959: 19959: template 19959: constexpr 19959: inline _Iter_comp_iter<_Compare> 19959: __iter_comp_iter(_Compare __comp) 19959: { return _Iter_comp_iter<_Compare>(std::move(__comp)); } 19959: 19959: template 19959: struct _Iter_comp_val 19959: { 19959: _Compare _M_comp; 19959: 19959: 19959: explicit 19959: _Iter_comp_val(_Compare __comp) 19959: : _M_comp(std::move(__comp)) 19959: { } 19959: 19959: 19959: explicit 19959: _Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) 19959: : _M_comp(__comp._M_comp) 19959: { } 19959: 19959: 19959: 19959: explicit 19959: _Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) 19959: : _M_comp(std::move(__comp._M_comp)) 19959: { } 19959: 19959: 19959: template 19959: 19959: bool 19959: operator()(_Iterator __it, _Value& __val) 19959: { return bool(_M_comp(*__it, __val)); } 19959: }; 19959: 19959: template 19959: 19959: inline _Iter_comp_val<_Compare> 19959: __iter_comp_val(_Compare __comp) 19959: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 19959: 19959: template 19959: 19959: inline _Iter_comp_val<_Compare> 19959: __iter_comp_val(_Iter_comp_iter<_Compare> __comp) 19959: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 19959: 19959: template 19959: struct _Val_comp_iter 19959: { 19959: _Compare _M_comp; 19959: 19959: 19959: explicit 19959: _Val_comp_iter(_Compare __comp) 19959: : _M_comp(std::move(__comp)) 19959: { } 19959: 19959: 19959: explicit 19959: _Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) 19959: : _M_comp(__comp._M_comp) 19959: { } 19959: 19959: 19959: 19959: explicit 19959: _Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) 19959: : _M_comp(std::move(__comp._M_comp)) 19959: { } 19959: 19959: 19959: template 19959: 19959: bool 19959: operator()(_Value& __val, _Iterator __it) 19959: { return bool(_M_comp(__val, *__it)); } 19959: }; 19959: 19959: template 19959: 19959: inline _Val_comp_iter<_Compare> 19959: __val_comp_iter(_Compare __comp) 19959: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 19959: 19959: template 19959: 19959: inline _Val_comp_iter<_Compare> 19959: __val_comp_iter(_Iter_comp_iter<_Compare> __comp) 19959: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 19959: 19959: template 19959: struct _Iter_equals_val 19959: { 19959: _Value& _M_value; 19959: 19959: 19959: explicit 19959: _Iter_equals_val(_Value& __value) 19959: : _M_value(__value) 19959: { } 19959: 19959: template 19959: 19959: bool 19959: operator()(_Iterator __it) 19959: { return *__it == _M_value; } 19959: }; 19959: 19959: template 19959: 19959: inline _Iter_equals_val<_Value> 19959: __iter_equals_val(_Value& __val) 19959: { return _Iter_equals_val<_Value>(__val); } 19959: 19959: template 19959: struct _Iter_equals_iter 19959: { 19959: _Iterator1 _M_it1; 19959: 19959: 19959: explicit 19959: _Iter_equals_iter(_Iterator1 __it1) 19959: : _M_it1(__it1) 19959: { } 19959: 19959: template 19959: 19959: bool 19959: operator()(_Iterator2 __it2) 19959: { return *__it2 == *_M_it1; } 19959: }; 19959: 19959: template 19959: 19959: inline _Iter_equals_iter<_Iterator> 19959: __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) 19959: { return _Iter_equals_iter<_Iterator>(__it); } 19959: 19959: template 19959: struct _Iter_pred 19959: { 19959: _Predicate _M_pred; 19959: 19959: 19959: explicit 19959: _Iter_pred(_Predicate __pred) 19959: : _M_pred(std::move(__pred)) 19959: { } 19959: 19959: template 19959: 19959: bool 19959: operator()(_Iterator __it) 19959: { return bool(_M_pred(*__it)); } 19959: }; 19959: 19959: template 19959: 19959: inline _Iter_pred<_Predicate> 19959: __pred_iter(_Predicate __pred) 19959: { return _Iter_pred<_Predicate>(std::move(__pred)); } 19959: 19959: template 19959: struct _Iter_comp_to_val 19959: { 19959: _Compare _M_comp; 19959: _Value& _M_value; 19959: 19959: 19959: _Iter_comp_to_val(_Compare __comp, _Value& __value) 19959: : _M_comp(std::move(__comp)), _M_value(__value) 19959: { } 19959: 19959: template 19959: 19959: bool 19959: operator()(_Iterator __it) 19959: { return bool(_M_comp(*__it, _M_value)); } 19959: }; 19959: 19959: template 19959: _Iter_comp_to_val<_Compare, _Value> 19959: 19959: __iter_comp_val(_Compare __comp, _Value &__val) 19959: { 19959: return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); 19959: } 19959: 19959: template 19959: struct _Iter_comp_to_iter 19959: { 19959: _Compare _M_comp; 19959: _Iterator1 _M_it1; 19959: 19959: 19959: _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) 19959: : _M_comp(std::move(__comp)), _M_it1(__it1) 19959: { } 19959: 19959: template 19959: 19959: bool 19959: operator()(_Iterator2 __it2) 19959: { return bool(_M_comp(*__it2, *_M_it1)); } 19959: }; 19959: 19959: template 19959: 19959: inline _Iter_comp_to_iter<_Compare, _Iterator> 19959: __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) 19959: { 19959: return _Iter_comp_to_iter<_Compare, _Iterator>( 19959: std::move(__comp._M_comp), __it); 19959: } 19959: 19959: template 19959: struct _Iter_negate 19959: { 19959: _Predicate _M_pred; 19959: 19959: 19959: explicit 19959: _Iter_negate(_Predicate __pred) 19959: : _M_pred(std::move(__pred)) 19959: { } 19959: 19959: template 19959: 19959: bool 19959: operator()(_Iterator __it) 19959: { return !bool(_M_pred(*__it)); } 19959: }; 19959: 19959: template 19959: 19959: inline _Iter_negate<_Predicate> 19959: __negate(_Iter_pred<_Predicate> __pred) 19959: { return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } 19959: 19959: } 19959: } 19959: # 72 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bit" 1 3 19959: # 32 "/usr/include/c++/13/bit" 3 19959: 19959: # 33 "/usr/include/c++/13/bit" 3 19959: # 55 "/usr/include/c++/13/bit" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 149 "/usr/include/c++/13/bit" 3 19959: template 19959: constexpr _Tp 19959: __rotl(_Tp __x, int __s) noexcept 19959: { 19959: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 19959: if constexpr ((_Nd & (_Nd - 1)) == 0) 19959: { 19959: 19959: 19959: constexpr unsigned __uNd = _Nd; 19959: const unsigned __r = __s; 19959: return (__x << (__r % __uNd)) | (__x >> ((-__r) % __uNd)); 19959: } 19959: const int __r = __s % _Nd; 19959: if (__r == 0) 19959: return __x; 19959: else if (__r > 0) 19959: return (__x << __r) | (__x >> ((_Nd - __r) % _Nd)); 19959: else 19959: return (__x >> -__r) | (__x << ((_Nd + __r) % _Nd)); 19959: } 19959: 19959: template 19959: constexpr _Tp 19959: __rotr(_Tp __x, int __s) noexcept 19959: { 19959: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 19959: if constexpr ((_Nd & (_Nd - 1)) == 0) 19959: { 19959: 19959: 19959: constexpr unsigned __uNd = _Nd; 19959: const unsigned __r = __s; 19959: return (__x >> (__r % __uNd)) | (__x << ((-__r) % __uNd)); 19959: } 19959: const int __r = __s % _Nd; 19959: if (__r == 0) 19959: return __x; 19959: else if (__r > 0) 19959: return (__x >> __r) | (__x << ((_Nd - __r) % _Nd)); 19959: else 19959: return (__x << -__r) | (__x >> ((_Nd + __r) % _Nd)); 19959: } 19959: 19959: template 19959: constexpr int 19959: __countl_zero(_Tp __x) noexcept 19959: { 19959: using __gnu_cxx::__int_traits; 19959: constexpr auto _Nd = __int_traits<_Tp>::__digits; 19959: 19959: if (__x == 0) 19959: return _Nd; 19959: 19959: constexpr auto _Nd_ull = __int_traits::__digits; 19959: constexpr auto _Nd_ul = __int_traits::__digits; 19959: constexpr auto _Nd_u = __int_traits::__digits; 19959: 19959: if constexpr (_Nd <= _Nd_u) 19959: { 19959: constexpr int __diff = _Nd_u - _Nd; 19959: return __builtin_clz(__x) - __diff; 19959: } 19959: else if constexpr (_Nd <= _Nd_ul) 19959: { 19959: constexpr int __diff = _Nd_ul - _Nd; 19959: return __builtin_clzl(__x) - __diff; 19959: } 19959: else if constexpr (_Nd <= _Nd_ull) 19959: { 19959: constexpr int __diff = _Nd_ull - _Nd; 19959: return __builtin_clzll(__x) - __diff; 19959: } 19959: else 19959: { 19959: static_assert(_Nd <= (2 * _Nd_ull), 19959: "Maximum supported integer size is 128-bit"); 19959: 19959: unsigned long long __high = __x >> _Nd_ull; 19959: if (__high != 0) 19959: { 19959: constexpr int __diff = (2 * _Nd_ull) - _Nd; 19959: return __builtin_clzll(__high) - __diff; 19959: } 19959: constexpr auto __max_ull = __int_traits::__max; 19959: unsigned long long __low = __x & __max_ull; 19959: return (_Nd - _Nd_ull) + __builtin_clzll(__low); 19959: } 19959: } 19959: 19959: template 19959: constexpr int 19959: __countl_one(_Tp __x) noexcept 19959: { 19959: return std::__countl_zero<_Tp>((_Tp)~__x); 19959: } 19959: 19959: template 19959: constexpr int 19959: __countr_zero(_Tp __x) noexcept 19959: { 19959: using __gnu_cxx::__int_traits; 19959: constexpr auto _Nd = __int_traits<_Tp>::__digits; 19959: 19959: if (__x == 0) 19959: return _Nd; 19959: 19959: constexpr auto _Nd_ull = __int_traits::__digits; 19959: constexpr auto _Nd_ul = __int_traits::__digits; 19959: constexpr auto _Nd_u = __int_traits::__digits; 19959: 19959: if constexpr (_Nd <= _Nd_u) 19959: return __builtin_ctz(__x); 19959: else if constexpr (_Nd <= _Nd_ul) 19959: return __builtin_ctzl(__x); 19959: else if constexpr (_Nd <= _Nd_ull) 19959: return __builtin_ctzll(__x); 19959: else 19959: { 19959: static_assert(_Nd <= (2 * _Nd_ull), 19959: "Maximum supported integer size is 128-bit"); 19959: 19959: constexpr auto __max_ull = __int_traits::__max; 19959: unsigned long long __low = __x & __max_ull; 19959: if (__low != 0) 19959: return __builtin_ctzll(__low); 19959: unsigned long long __high = __x >> _Nd_ull; 19959: return __builtin_ctzll(__high) + _Nd_ull; 19959: } 19959: } 19959: 19959: template 19959: constexpr int 19959: __countr_one(_Tp __x) noexcept 19959: { 19959: return std::__countr_zero((_Tp)~__x); 19959: } 19959: 19959: template 19959: constexpr int 19959: __popcount(_Tp __x) noexcept 19959: { 19959: using __gnu_cxx::__int_traits; 19959: constexpr auto _Nd = __int_traits<_Tp>::__digits; 19959: 19959: constexpr auto _Nd_ull = __int_traits::__digits; 19959: constexpr auto _Nd_ul = __int_traits::__digits; 19959: constexpr auto _Nd_u = __int_traits::__digits; 19959: 19959: if constexpr (_Nd <= _Nd_u) 19959: return __builtin_popcount(__x); 19959: else if constexpr (_Nd <= _Nd_ul) 19959: return __builtin_popcountl(__x); 19959: else if constexpr (_Nd <= _Nd_ull) 19959: return __builtin_popcountll(__x); 19959: else 19959: { 19959: static_assert(_Nd <= (2 * _Nd_ull), 19959: "Maximum supported integer size is 128-bit"); 19959: 19959: constexpr auto __max_ull = __int_traits::__max; 19959: unsigned long long __low = __x & __max_ull; 19959: unsigned long long __high = __x >> _Nd_ull; 19959: return __builtin_popcountll(__low) + __builtin_popcountll(__high); 19959: } 19959: } 19959: 19959: template 19959: constexpr bool 19959: __has_single_bit(_Tp __x) noexcept 19959: { return std::__popcount(__x) == 1; } 19959: 19959: template 19959: constexpr _Tp 19959: __bit_ceil(_Tp __x) noexcept 19959: { 19959: using __gnu_cxx::__int_traits; 19959: constexpr auto _Nd = __int_traits<_Tp>::__digits; 19959: if (__x == 0 || __x == 1) 19959: return 1; 19959: auto __shift_exponent = _Nd - std::__countl_zero((_Tp)(__x - 1u)); 19959: 19959: 19959: 19959: 19959: if (!std::__is_constant_evaluated()) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__shift_exponent != __int_traits<_Tp>::__digits)) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: using __promoted_type = decltype(__x << 1); 19959: if constexpr (!is_same<__promoted_type, _Tp>::value) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: const int __extra_exp = sizeof(__promoted_type) / sizeof(_Tp) / 2; 19959: __shift_exponent |= (__shift_exponent & _Nd) << __extra_exp; 19959: } 19959: return (_Tp)1u << __shift_exponent; 19959: } 19959: 19959: template 19959: constexpr _Tp 19959: __bit_floor(_Tp __x) noexcept 19959: { 19959: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 19959: if (__x == 0) 19959: return 0; 19959: return (_Tp)1u << (_Nd - std::__countl_zero((_Tp)(__x >> 1))); 19959: } 19959: 19959: template 19959: constexpr int 19959: __bit_width(_Tp __x) noexcept 19959: { 19959: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 19959: return _Nd - std::__countl_zero(__x); 19959: } 19959: # 478 "/usr/include/c++/13/bit" 3 19959: 19959: } 19959: # 77 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: constexpr 19959: inline int 19959: __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num) 19959: { 19959: 19959: static_assert(sizeof(_Tp) == sizeof(_Up), "can be compared with memcmp"); 19959: # 108 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num); 19959: } 19959: # 152 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline void 19959: iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) 19959: { 19959: 19959: 19959: 19959: 19959: # 185 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: swap(*__a, *__b); 19959: 19959: } 19959: # 201 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: _ForwardIterator2 19959: swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: for (; __first1 != __last1; ++__first1, (void)++__first2) 19959: std::iter_swap(__first1, __first2); 19959: return __first2; 19959: } 19959: # 230 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: constexpr 19959: inline const _Tp& 19959: min(const _Tp& __a, const _Tp& __b) 19959: { 19959: 19959: 19959: 19959: if (__b < __a) 19959: return __b; 19959: return __a; 19959: } 19959: # 254 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: constexpr 19959: inline const _Tp& 19959: max(const _Tp& __a, const _Tp& __b) 19959: { 19959: 19959: 19959: 19959: if (__a < __b) 19959: return __b; 19959: return __a; 19959: } 19959: # 278 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: constexpr 19959: inline const _Tp& 19959: min(const _Tp& __a, const _Tp& __b, _Compare __comp) 19959: { 19959: 19959: if (__comp(__b, __a)) 19959: return __b; 19959: return __a; 19959: } 19959: # 300 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: constexpr 19959: inline const _Tp& 19959: max(const _Tp& __a, const _Tp& __b, _Compare __comp) 19959: { 19959: 19959: if (__comp(__a, __b)) 19959: return __b; 19959: return __a; 19959: } 19959: 19959: 19959: 19959: template 19959: 19959: inline _Iterator 19959: __niter_base(_Iterator __it) 19959: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 19959: { return __it; } 19959: 19959: template 19959: _Ite 19959: __niter_base(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, 19959: std::random_access_iterator_tag>&); 19959: 19959: 19959: 19959: 19959: template 19959: 19959: inline _From 19959: __niter_wrap(_From __from, _To __res) 19959: { return __from + (__res - std::__niter_base(__from)); } 19959: 19959: 19959: template 19959: 19959: inline _Iterator 19959: __niter_wrap(const _Iterator&, _Iterator __res) 19959: { return __res; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __copy_move 19959: { 19959: template 19959: 19959: static _OI 19959: __copy_m(_II __first, _II __last, _OI __result) 19959: { 19959: for (; __first != __last; ++__result, (void)++__first) 19959: *__result = *__first; 19959: return __result; 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct __copy_move 19959: { 19959: template 19959: 19959: static _OI 19959: __copy_m(_II __first, _II __last, _OI __result) 19959: { 19959: for (; __first != __last; ++__result, (void)++__first) 19959: *__result = std::move(*__first); 19959: return __result; 19959: } 19959: }; 19959: 19959: 19959: template<> 19959: struct __copy_move 19959: { 19959: template 19959: 19959: static _OI 19959: __copy_m(_II __first, _II __last, _OI __result) 19959: { 19959: typedef typename iterator_traits<_II>::difference_type _Distance; 19959: for(_Distance __n = __last - __first; __n > 0; --__n) 19959: { 19959: *__result = *__first; 19959: ++__first; 19959: ++__result; 19959: } 19959: return __result; 19959: } 19959: 19959: template 19959: static void 19959: __assign_one(_Tp* __to, _Up* __from) 19959: { *__to = *__from; } 19959: }; 19959: 19959: 19959: template<> 19959: struct __copy_move 19959: { 19959: template 19959: 19959: static _OI 19959: __copy_m(_II __first, _II __last, _OI __result) 19959: { 19959: typedef typename iterator_traits<_II>::difference_type _Distance; 19959: for(_Distance __n = __last - __first; __n > 0; --__n) 19959: { 19959: *__result = std::move(*__first); 19959: ++__first; 19959: ++__result; 19959: } 19959: return __result; 19959: } 19959: 19959: template 19959: static void 19959: __assign_one(_Tp* __to, _Up* __from) 19959: { *__to = std::move(*__from); } 19959: }; 19959: 19959: 19959: template 19959: struct __copy_move<_IsMove, true, random_access_iterator_tag> 19959: { 19959: template 19959: 19959: static _Up* 19959: __copy_m(_Tp* __first, _Tp* __last, _Up* __result) 19959: { 19959: const ptrdiff_t _Num = __last - __first; 19959: if (__builtin_expect(_Num > 1, true)) 19959: __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); 19959: else if (_Num == 1) 19959: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 19959: __assign_one(__result, __first); 19959: return __result + _Num; 19959: } 19959: }; 19959: 19959: 19959: 19959: template 19959: struct _Deque_iterator; 19959: 19959: struct _Bit_iterator; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct char_traits; 19959: 19959: template 19959: class istreambuf_iterator; 19959: 19959: template 19959: class ostreambuf_iterator; 19959: 19959: template 19959: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 19959: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 19959: __copy_move_a2(_CharT*, _CharT*, 19959: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 19959: 19959: template 19959: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 19959: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 19959: __copy_move_a2(const _CharT*, const _CharT*, 19959: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 19959: 19959: template 19959: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 19959: _CharT*>::__type 19959: __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, 19959: istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); 19959: 19959: template 19959: typename __gnu_cxx::__enable_if< 19959: __is_char<_CharT>::__value, 19959: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 19959: __copy_move_a2( 19959: istreambuf_iterator<_CharT, char_traits<_CharT> >, 19959: istreambuf_iterator<_CharT, char_traits<_CharT> >, 19959: std::_Deque_iterator<_CharT, _CharT&, _CharT*>); 19959: 19959: 19959: template 19959: 19959: inline _OI 19959: __copy_move_a2(_II __first, _II __last, _OI __result) 19959: { 19959: typedef typename iterator_traits<_II>::iterator_category _Category; 19959: 19959: 19959: 19959: 19959: 19959: return std::__copy_move<_IsMove, __memcpyable<_OI, _II>::__value, 19959: _Category>::__copy_m(__first, __last, __result); 19959: } 19959: 19959: template 19959: _OI 19959: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 19959: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 19959: _OI); 19959: 19959: template 19959: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 19959: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr>, 19959: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 19959: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 19959: 19959: template 19959: typename __gnu_cxx::__enable_if< 19959: __is_random_access_iter<_II>::__value, 19959: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 19959: __copy_move_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 19959: 19959: template 19959: 19959: inline _OI 19959: __copy_move_a1(_II __first, _II __last, _OI __result) 19959: { return std::__copy_move_a2<_IsMove>(__first, __last, __result); } 19959: 19959: template 19959: 19959: inline _OI 19959: __copy_move_a(_II __first, _II __last, _OI __result) 19959: { 19959: return std::__niter_wrap(__result, 19959: std::__copy_move_a1<_IsMove>(std::__niter_base(__first), 19959: std::__niter_base(__last), 19959: std::__niter_base(__result))); 19959: } 19959: 19959: template 19959: _OI 19959: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 19959: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 19959: _OI); 19959: 19959: template 19959: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 19959: __copy_move_a(_II, _II, 19959: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 19959: 19959: template 19959: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 19959: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 19959: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 19959: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 19959: 19959: template 19959: 19959: _OutputIterator 19959: __copy_n_a(_InputIterator __first, _Size __n, _OutputIterator __result, 19959: bool) 19959: { 19959: if (__n > 0) 19959: { 19959: while (true) 19959: { 19959: *__result = *__first; 19959: ++__result; 19959: if (--__n > 0) 19959: ++__first; 19959: else 19959: break; 19959: } 19959: } 19959: return __result; 19959: } 19959: 19959: 19959: template 19959: typename __gnu_cxx::__enable_if< 19959: __is_char<_CharT>::__value, _CharT*>::__type 19959: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, 19959: _Size, _CharT*, bool); 19959: 19959: template 19959: typename __gnu_cxx::__enable_if< 19959: __is_char<_CharT>::__value, 19959: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 19959: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, 19959: std::_Deque_iterator<_CharT, _CharT&, _CharT*>, 19959: bool); 19959: # 621 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline _OI 19959: copy(_II __first, _II __last, _OI __result) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__copy_move_a<__is_move_iterator<_II>::__value> 19959: (std::__miter_base(__first), std::__miter_base(__last), __result); 19959: } 19959: # 654 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline _OI 19959: move(_II __first, _II __last, _OI __result) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__copy_move_a(std::__miter_base(__first), 19959: std::__miter_base(__last), __result); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __copy_move_backward 19959: { 19959: template 19959: 19959: static _BI2 19959: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 19959: { 19959: while (__first != __last) 19959: *--__result = *--__last; 19959: return __result; 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct __copy_move_backward 19959: { 19959: template 19959: 19959: static _BI2 19959: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 19959: { 19959: while (__first != __last) 19959: *--__result = std::move(*--__last); 19959: return __result; 19959: } 19959: }; 19959: 19959: 19959: template<> 19959: struct __copy_move_backward 19959: { 19959: template 19959: 19959: static _BI2 19959: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 19959: { 19959: typename iterator_traits<_BI1>::difference_type 19959: __n = __last - __first; 19959: for (; __n > 0; --__n) 19959: *--__result = *--__last; 19959: return __result; 19959: } 19959: }; 19959: 19959: 19959: template<> 19959: struct __copy_move_backward 19959: { 19959: template 19959: 19959: static _BI2 19959: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 19959: { 19959: typename iterator_traits<_BI1>::difference_type 19959: __n = __last - __first; 19959: for (; __n > 0; --__n) 19959: *--__result = std::move(*--__last); 19959: return __result; 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> 19959: { 19959: template 19959: 19959: static _Up* 19959: __copy_move_b(_Tp* __first, _Tp* __last, _Up* __result) 19959: { 19959: const ptrdiff_t _Num = __last - __first; 19959: if (__builtin_expect(_Num > 1, true)) 19959: __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); 19959: else if (_Num == 1) 19959: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 19959: __assign_one(__result - 1, __first); 19959: return __result - _Num; 19959: } 19959: }; 19959: 19959: template 19959: 19959: inline _BI2 19959: __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) 19959: { 19959: typedef typename iterator_traits<_BI1>::iterator_category _Category; 19959: 19959: 19959: 19959: 19959: 19959: return std::__copy_move_backward<_IsMove, 19959: __memcpyable<_BI2, _BI1>::__value, 19959: _Category>::__copy_move_b(__first, 19959: __last, 19959: __result); 19959: } 19959: 19959: template 19959: 19959: inline _BI2 19959: __copy_move_backward_a1(_BI1 __first, _BI1 __last, _BI2 __result) 19959: { return std::__copy_move_backward_a2<_IsMove>(__first, __last, __result); } 19959: 19959: template 19959: _OI 19959: __copy_move_backward_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 19959: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 19959: _OI); 19959: 19959: template 19959: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 19959: __copy_move_backward_a1( 19959: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 19959: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 19959: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 19959: 19959: template 19959: typename __gnu_cxx::__enable_if< 19959: __is_random_access_iter<_II>::__value, 19959: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 19959: __copy_move_backward_a1(_II, _II, 19959: std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 19959: 19959: template 19959: 19959: inline _OI 19959: __copy_move_backward_a(_II __first, _II __last, _OI __result) 19959: { 19959: return std::__niter_wrap(__result, 19959: std::__copy_move_backward_a1<_IsMove> 19959: (std::__niter_base(__first), std::__niter_base(__last), 19959: std::__niter_base(__result))); 19959: } 19959: 19959: template 19959: _OI 19959: __copy_move_backward_a( 19959: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 19959: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 19959: _OI); 19959: 19959: template 19959: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 19959: __copy_move_backward_a(_II, _II, 19959: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 19959: 19959: template 19959: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 19959: __copy_move_backward_a( 19959: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 19959: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 19959: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 19959: # 854 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline _BI2 19959: copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__copy_move_backward_a<__is_move_iterator<_BI1>::__value> 19959: (std::__miter_base(__first), std::__miter_base(__last), __result); 19959: } 19959: # 889 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline _BI2 19959: move_backward(_BI1 __first, _BI1 __last, _BI2 __result) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__copy_move_backward_a(std::__miter_base(__first), 19959: std::__miter_base(__last), 19959: __result); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: inline typename 19959: __gnu_cxx::__enable_if::__value, void>::__type 19959: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __value) 19959: { 19959: for (; __first != __last; ++__first) 19959: *__first = __value; 19959: } 19959: 19959: template 19959: 19959: inline typename 19959: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type 19959: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __value) 19959: { 19959: const _Tp __tmp = __value; 19959: for (; __first != __last; ++__first) 19959: *__first = __tmp; 19959: } 19959: 19959: 19959: template 19959: 19959: inline typename 19959: __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type 19959: __fill_a1(_Tp* __first, _Tp* __last, const _Tp& __c) 19959: { 19959: const _Tp __tmp = __c; 19959: # 950 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: if (const size_t __len = __last - __first) 19959: __builtin_memset(__first, static_cast(__tmp), __len); 19959: } 19959: 19959: template 19959: 19959: inline void 19959: __fill_a1(::__gnu_cxx::__normal_iterator<_Ite, _Cont> __first, 19959: ::__gnu_cxx::__normal_iterator<_Ite, _Cont> __last, 19959: const _Tp& __value) 19959: { std::__fill_a1(__first.base(), __last.base(), __value); } 19959: 19959: template 19959: void 19959: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 19959: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 19959: const _VTp&); 19959: 19959: 19959: void 19959: __fill_a1(std::_Bit_iterator, std::_Bit_iterator, 19959: const bool&); 19959: 19959: template 19959: 19959: inline void 19959: __fill_a(_FIte __first, _FIte __last, const _Tp& __value) 19959: { std::__fill_a1(__first, __last, __value); } 19959: 19959: template 19959: void 19959: __fill_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 19959: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 19959: const _Tp&); 19959: # 997 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline void 19959: fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) 19959: { 19959: 19959: 19959: 19959: ; 19959: 19959: std::__fill_a(__first, __last, __value); 19959: } 19959: 19959: 19959: inline constexpr int 19959: __size_to_integer(int __n) { return __n; } 19959: inline constexpr unsigned 19959: __size_to_integer(unsigned __n) { return __n; } 19959: inline constexpr long 19959: __size_to_integer(long __n) { return __n; } 19959: inline constexpr unsigned long 19959: __size_to_integer(unsigned long __n) { return __n; } 19959: inline constexpr long long 19959: __size_to_integer(long long __n) { return __n; } 19959: inline constexpr unsigned long long 19959: __size_to_integer(unsigned long long __n) { return __n; } 19959: # 1049 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: inline constexpr long long 19959: __size_to_integer(float __n) { return (long long)__n; } 19959: inline constexpr long long 19959: __size_to_integer(double __n) { return (long long)__n; } 19959: inline constexpr long long 19959: __size_to_integer(long double __n) { return (long long)__n; } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: inline typename 19959: __gnu_cxx::__enable_if::__value, _OutputIterator>::__type 19959: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 19959: { 19959: for (; __n > 0; --__n, (void) ++__first) 19959: *__first = __value; 19959: return __first; 19959: } 19959: 19959: template 19959: 19959: inline typename 19959: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type 19959: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 19959: { 19959: const _Tp __tmp = __value; 19959: for (; __n > 0; --__n, (void) ++__first) 19959: *__first = __tmp; 19959: return __first; 19959: } 19959: 19959: template 19959: ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 19959: __fill_n_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>& __first, 19959: _Size __n, const _Tp& __value, 19959: std::input_iterator_tag); 19959: 19959: template 19959: 19959: inline _OutputIterator 19959: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 19959: std::output_iterator_tag) 19959: { 19959: 19959: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 19959: 19959: return __fill_n_a1(__first, __n, __value); 19959: } 19959: 19959: template 19959: 19959: inline _OutputIterator 19959: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 19959: std::input_iterator_tag) 19959: { 19959: 19959: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 19959: 19959: return __fill_n_a1(__first, __n, __value); 19959: } 19959: 19959: template 19959: 19959: inline _OutputIterator 19959: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 19959: std::random_access_iterator_tag) 19959: { 19959: 19959: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 19959: 19959: if (__n <= 0) 19959: return __first; 19959: 19959: ; 19959: 19959: std::__fill_a(__first, __first + __n, __value); 19959: return __first + __n; 19959: } 19959: # 1149 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline _OI 19959: fill_n(_OI __first, _Size __n, const _Tp& __value) 19959: { 19959: 19959: 19959: 19959: return std::__fill_n_a(__first, std::__size_to_integer(__n), __value, 19959: std::__iterator_category(__first)); 19959: } 19959: 19959: template 19959: struct __equal 19959: { 19959: template 19959: 19959: static bool 19959: equal(_II1 __first1, _II1 __last1, _II2 __first2) 19959: { 19959: for (; __first1 != __last1; ++__first1, (void) ++__first2) 19959: if (!(*__first1 == *__first2)) 19959: return false; 19959: return true; 19959: } 19959: }; 19959: 19959: template<> 19959: struct __equal 19959: { 19959: template 19959: 19959: static bool 19959: equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) 19959: { 19959: if (const size_t __len = (__last1 - __first1)) 19959: return !std::__memcmp(__first1, __first2, __len); 19959: return true; 19959: } 19959: }; 19959: 19959: template 19959: typename __gnu_cxx::__enable_if< 19959: __is_random_access_iter<_II>::__value, bool>::__type 19959: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 19959: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 19959: _II); 19959: 19959: template 19959: bool 19959: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 19959: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 19959: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 19959: 19959: template 19959: typename __gnu_cxx::__enable_if< 19959: __is_random_access_iter<_II>::__value, bool>::__type 19959: __equal_aux1(_II, _II, 19959: std::_Deque_iterator<_Tp, _Ref, _Ptr>); 19959: 19959: template 19959: 19959: inline bool 19959: __equal_aux1(_II1 __first1, _II1 __last1, _II2 __first2) 19959: { 19959: typedef typename iterator_traits<_II1>::value_type _ValueType1; 19959: const bool __simple = ((__is_integer<_ValueType1>::__value 19959: || __is_pointer<_ValueType1>::__value) 19959: && __memcmpable<_II1, _II2>::__value); 19959: return std::__equal<__simple>::equal(__first1, __last1, __first2); 19959: } 19959: 19959: template 19959: 19959: inline bool 19959: __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) 19959: { 19959: return std::__equal_aux1(std::__niter_base(__first1), 19959: std::__niter_base(__last1), 19959: std::__niter_base(__first2)); 19959: } 19959: 19959: template 19959: bool 19959: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 19959: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 19959: _II2); 19959: 19959: template 19959: bool 19959: __equal_aux(_II1, _II1, 19959: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 19959: 19959: template 19959: bool 19959: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 19959: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 19959: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 19959: 19959: template 19959: struct __lc_rai 19959: { 19959: template 19959: 19959: static _II1 19959: __newlast1(_II1, _II1 __last1, _II2, _II2) 19959: { return __last1; } 19959: 19959: template 19959: 19959: static bool 19959: __cnd2(_II __first, _II __last) 19959: { return __first != __last; } 19959: }; 19959: 19959: template<> 19959: struct __lc_rai 19959: { 19959: template 19959: 19959: static _RAI1 19959: __newlast1(_RAI1 __first1, _RAI1 __last1, 19959: _RAI2 __first2, _RAI2 __last2) 19959: { 19959: const typename iterator_traits<_RAI1>::difference_type 19959: __diff1 = __last1 - __first1; 19959: const typename iterator_traits<_RAI2>::difference_type 19959: __diff2 = __last2 - __first2; 19959: return __diff2 < __diff1 ? __first1 + __diff2 : __last1; 19959: } 19959: 19959: template 19959: static bool 19959: __cnd2(_RAI, _RAI) 19959: { return true; } 19959: }; 19959: 19959: template 19959: 19959: bool 19959: __lexicographical_compare_impl(_II1 __first1, _II1 __last1, 19959: _II2 __first2, _II2 __last2, 19959: _Compare __comp) 19959: { 19959: typedef typename iterator_traits<_II1>::iterator_category _Category1; 19959: typedef typename iterator_traits<_II2>::iterator_category _Category2; 19959: typedef std::__lc_rai<_Category1, _Category2> __rai_type; 19959: 19959: __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); 19959: for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); 19959: ++__first1, (void)++__first2) 19959: { 19959: if (__comp(__first1, __first2)) 19959: return true; 19959: if (__comp(__first2, __first1)) 19959: return false; 19959: } 19959: return __first1 == __last1 && __first2 != __last2; 19959: } 19959: 19959: template 19959: struct __lexicographical_compare 19959: { 19959: template 19959: 19959: static bool 19959: __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 19959: { 19959: using __gnu_cxx::__ops::__iter_less_iter; 19959: return std::__lexicographical_compare_impl(__first1, __last1, 19959: __first2, __last2, 19959: __iter_less_iter()); 19959: } 19959: 19959: template 19959: 19959: static int 19959: __3way(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 19959: { 19959: while (__first1 != __last1) 19959: { 19959: if (__first2 == __last2) 19959: return +1; 19959: if (*__first1 < *__first2) 19959: return -1; 19959: if (*__first2 < *__first1) 19959: return +1; 19959: ++__first1; 19959: ++__first2; 19959: } 19959: return int(__first2 == __last2) - 1; 19959: } 19959: }; 19959: 19959: template<> 19959: struct __lexicographical_compare 19959: { 19959: template 19959: 19959: static bool 19959: __lc(const _Tp* __first1, const _Tp* __last1, 19959: const _Up* __first2, const _Up* __last2) 19959: { return __3way(__first1, __last1, __first2, __last2) < 0; } 19959: 19959: template 19959: 19959: static ptrdiff_t 19959: __3way(const _Tp* __first1, const _Tp* __last1, 19959: const _Up* __first2, const _Up* __last2) 19959: { 19959: const size_t __len1 = __last1 - __first1; 19959: const size_t __len2 = __last2 - __first2; 19959: if (const size_t __len = std::min(__len1, __len2)) 19959: if (int __result = std::__memcmp(__first1, __first2, __len)) 19959: return __result; 19959: return ptrdiff_t(__len1 - __len2); 19959: } 19959: }; 19959: 19959: template 19959: 19959: inline bool 19959: __lexicographical_compare_aux1(_II1 __first1, _II1 __last1, 19959: _II2 __first2, _II2 __last2) 19959: { 19959: typedef typename iterator_traits<_II1>::value_type _ValueType1; 19959: typedef typename iterator_traits<_II2>::value_type _ValueType2; 19959: const bool __simple = 19959: (__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value 19959: && __is_pointer<_II1>::__value 19959: && __is_pointer<_II2>::__value 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ); 19959: 19959: return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, 19959: __first2, __last2); 19959: } 19959: 19959: template 19959: bool 19959: __lexicographical_compare_aux1( 19959: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 19959: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 19959: _Tp2*, _Tp2*); 19959: 19959: template 19959: bool 19959: __lexicographical_compare_aux1(_Tp1*, _Tp1*, 19959: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 19959: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 19959: 19959: template 19959: bool 19959: __lexicographical_compare_aux1( 19959: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 19959: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 19959: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 19959: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 19959: 19959: template 19959: 19959: inline bool 19959: __lexicographical_compare_aux(_II1 __first1, _II1 __last1, 19959: _II2 __first2, _II2 __last2) 19959: { 19959: return std::__lexicographical_compare_aux1(std::__niter_base(__first1), 19959: std::__niter_base(__last1), 19959: std::__niter_base(__first2), 19959: std::__niter_base(__last2)); 19959: } 19959: 19959: template 19959: bool 19959: __lexicographical_compare_aux( 19959: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 19959: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 19959: _II2, _II2); 19959: 19959: template 19959: bool 19959: __lexicographical_compare_aux( 19959: _II1, _II1, 19959: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 19959: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 19959: 19959: template 19959: bool 19959: __lexicographical_compare_aux( 19959: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 19959: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 19959: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 19959: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 19959: 19959: template 19959: 19959: _ForwardIterator 19959: __lower_bound(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __val, _Compare __comp) 19959: { 19959: typedef typename iterator_traits<_ForwardIterator>::difference_type 19959: _DistanceType; 19959: 19959: _DistanceType __len = std::distance(__first, __last); 19959: 19959: while (__len > 0) 19959: { 19959: _DistanceType __half = __len >> 1; 19959: _ForwardIterator __middle = __first; 19959: std::advance(__middle, __half); 19959: if (__comp(__middle, __val)) 19959: { 19959: __first = __middle; 19959: ++__first; 19959: __len = __len - __half - 1; 19959: } 19959: else 19959: __len = __half; 19959: } 19959: return __first; 19959: } 19959: # 1495 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __val) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__lower_bound(__first, __last, __val, 19959: __gnu_cxx::__ops::__iter_less_val()); 19959: } 19959: 19959: 19959: 19959: template 19959: inline constexpr _Tp 19959: __lg(_Tp __n) 19959: { 19959: 19959: return std::__bit_width(make_unsigned_t<_Tp>(__n)) - 1; 19959: # 1528 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: } 19959: 19959: 19959: # 1544 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline bool 19959: equal(_II1 __first1, _II1 __last1, _II2 __first2) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__equal_aux(__first1, __last1, __first2); 19959: } 19959: # 1575 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline bool 19959: equal(_IIter1 __first1, _IIter1 __last1, 19959: _IIter2 __first2, _BinaryPredicate __binary_pred) 19959: { 19959: 19959: 19959: 19959: ; 19959: 19959: for (; __first1 != __last1; ++__first1, (void)++__first2) 19959: if (!bool(__binary_pred(*__first1, *__first2))) 19959: return false; 19959: return true; 19959: } 19959: 19959: 19959: 19959: template 19959: 19959: inline bool 19959: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 19959: { 19959: using _RATag = random_access_iterator_tag; 19959: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 19959: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 19959: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 19959: if (_RAIters()) 19959: { 19959: auto __d1 = std::distance(__first1, __last1); 19959: auto __d2 = std::distance(__first2, __last2); 19959: if (__d1 != __d2) 19959: return false; 19959: return std::equal(__first1, __last1, __first2); 19959: } 19959: 19959: for (; __first1 != __last1 && __first2 != __last2; 19959: ++__first1, (void)++__first2) 19959: if (!(*__first1 == *__first2)) 19959: return false; 19959: return __first1 == __last1 && __first2 == __last2; 19959: } 19959: 19959: 19959: template 19959: 19959: inline bool 19959: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, 19959: _BinaryPredicate __binary_pred) 19959: { 19959: using _RATag = random_access_iterator_tag; 19959: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 19959: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 19959: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 19959: if (_RAIters()) 19959: { 19959: auto __d1 = std::distance(__first1, __last1); 19959: auto __d2 = std::distance(__first2, __last2); 19959: if (__d1 != __d2) 19959: return false; 19959: return std::equal(__first1, __last1, __first2, 19959: __binary_pred); 19959: } 19959: 19959: for (; __first1 != __last1 && __first2 != __last2; 19959: ++__first1, (void)++__first2) 19959: if (!bool(__binary_pred(*__first1, *__first2))) 19959: return false; 19959: return __first1 == __last1 && __first2 == __last2; 19959: } 19959: # 1665 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline bool 19959: equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__equal4(__first1, __last1, __first2, __last2); 19959: } 19959: # 1698 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline bool 19959: equal(_IIter1 __first1, _IIter1 __last1, 19959: _IIter2 __first2, _IIter2 __last2, _BinaryPredicate __binary_pred) 19959: { 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__equal4(__first1, __last1, __first2, __last2, 19959: __binary_pred); 19959: } 19959: # 1730 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline bool 19959: lexicographical_compare(_II1 __first1, _II1 __last1, 19959: _II2 __first2, _II2 __last2) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__lexicographical_compare_aux(__first1, __last1, 19959: __first2, __last2); 19959: } 19959: # 1765 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline bool 19959: lexicographical_compare(_II1 __first1, _II1 __last1, 19959: _II2 __first2, _II2 __last2, _Compare __comp) 19959: { 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__lexicographical_compare_impl 19959: (__first1, __last1, __first2, __last2, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: # 1877 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: pair<_InputIterator1, _InputIterator2> 19959: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 19959: { 19959: while (__first1 != __last1 && __binary_pred(__first1, __first2)) 19959: { 19959: ++__first1; 19959: ++__first2; 19959: } 19959: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 19959: } 19959: # 1905 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline pair<_InputIterator1, _InputIterator2> 19959: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__mismatch(__first1, __last1, __first2, 19959: __gnu_cxx::__ops::__iter_equal_to_iter()); 19959: } 19959: # 1939 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline pair<_InputIterator1, _InputIterator2> 19959: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 19959: { 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__mismatch(__first1, __last1, __first2, 19959: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 19959: } 19959: 19959: 19959: 19959: template 19959: 19959: pair<_InputIterator1, _InputIterator2> 19959: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _BinaryPredicate __binary_pred) 19959: { 19959: while (__first1 != __last1 && __first2 != __last2 19959: && __binary_pred(__first1, __first2)) 19959: { 19959: ++__first1; 19959: ++__first2; 19959: } 19959: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 19959: } 19959: # 1988 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline pair<_InputIterator1, _InputIterator2> 19959: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__mismatch(__first1, __last1, __first2, __last2, 19959: __gnu_cxx::__ops::__iter_equal_to_iter()); 19959: } 19959: # 2024 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline pair<_InputIterator1, _InputIterator2> 19959: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _BinaryPredicate __binary_pred) 19959: { 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__mismatch(__first1, __last1, __first2, __last2, 19959: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: inline _InputIterator 19959: __find_if(_InputIterator __first, _InputIterator __last, 19959: _Predicate __pred, input_iterator_tag) 19959: { 19959: while (__first != __last && !__pred(__first)) 19959: ++__first; 19959: return __first; 19959: } 19959: 19959: 19959: template 19959: 19959: _RandomAccessIterator 19959: __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _Predicate __pred, random_access_iterator_tag) 19959: { 19959: typename iterator_traits<_RandomAccessIterator>::difference_type 19959: __trip_count = (__last - __first) >> 2; 19959: 19959: for (; __trip_count > 0; --__trip_count) 19959: { 19959: if (__pred(__first)) 19959: return __first; 19959: ++__first; 19959: 19959: if (__pred(__first)) 19959: return __first; 19959: ++__first; 19959: 19959: if (__pred(__first)) 19959: return __first; 19959: ++__first; 19959: 19959: if (__pred(__first)) 19959: return __first; 19959: ++__first; 19959: } 19959: 19959: switch (__last - __first) 19959: { 19959: case 3: 19959: if (__pred(__first)) 19959: return __first; 19959: ++__first; 19959: 19959: case 2: 19959: if (__pred(__first)) 19959: return __first; 19959: ++__first; 19959: 19959: case 1: 19959: if (__pred(__first)) 19959: return __first; 19959: ++__first; 19959: 19959: case 0: 19959: default: 19959: return __last; 19959: } 19959: } 19959: 19959: template 19959: 19959: inline _Iterator 19959: __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) 19959: { 19959: return __find_if(__first, __last, __pred, 19959: std::__iterator_category(__first)); 19959: } 19959: 19959: template 19959: 19959: typename iterator_traits<_InputIterator>::difference_type 19959: __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 19959: { 19959: typename iterator_traits<_InputIterator>::difference_type __n = 0; 19959: for (; __first != __last; ++__first) 19959: if (__pred(__first)) 19959: ++__n; 19959: return __n; 19959: } 19959: 19959: template 19959: 19959: _ForwardIterator 19959: __remove_if(_ForwardIterator __first, _ForwardIterator __last, 19959: _Predicate __pred) 19959: { 19959: __first = std::__find_if(__first, __last, __pred); 19959: if (__first == __last) 19959: return __first; 19959: _ForwardIterator __result = __first; 19959: ++__first; 19959: for (; __first != __last; ++__first) 19959: if (!__pred(__first)) 19959: { 19959: *__result = std::move(*__first); 19959: ++__result; 19959: } 19959: return __result; 19959: } 19959: 19959: 19959: template 19959: 19959: bool 19959: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _BinaryPredicate __pred) 19959: { 19959: 19959: 19959: for (; __first1 != __last1; ++__first1, (void)++__first2) 19959: if (!__pred(__first1, __first2)) 19959: break; 19959: 19959: if (__first1 == __last1) 19959: return true; 19959: 19959: 19959: 19959: _ForwardIterator2 __last2 = __first2; 19959: std::advance(__last2, std::distance(__first1, __last1)); 19959: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 19959: { 19959: if (__scan != std::__find_if(__first1, __scan, 19959: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 19959: continue; 19959: 19959: auto __matches 19959: = std::__count_if(__first2, __last2, 19959: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 19959: if (0 == __matches || 19959: std::__count_if(__scan, __last1, 19959: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 19959: != __matches) 19959: return false; 19959: } 19959: return true; 19959: } 19959: # 2201 "/usr/include/c++/13/bits/stl_algobase.h" 3 19959: template 19959: 19959: inline bool 19959: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__is_permutation(__first1, __last1, __first2, 19959: __gnu_cxx::__ops::__iter_equal_to_iter()); 19959: } 19959: 19959: 19959: 19959: } 19959: # 63 "/usr/include/c++/13/deque" 2 3 19959: # 1 "/usr/include/c++/13/bits/allocator.h" 1 3 19959: # 46 "/usr/include/c++/13/bits/allocator.h" 3 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++allocator.h" 1 3 19959: # 33 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++allocator.h" 3 19959: # 1 "/usr/include/c++/13/bits/new_allocator.h" 1 3 19959: # 41 "/usr/include/c++/13/bits/new_allocator.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 62 "/usr/include/c++/13/bits/new_allocator.h" 3 19959: template 19959: class __new_allocator 19959: { 19959: public: 19959: typedef _Tp value_type; 19959: typedef std::size_t size_type; 19959: typedef std::ptrdiff_t difference_type; 19959: 19959: typedef _Tp* pointer; 19959: typedef const _Tp* const_pointer; 19959: typedef _Tp& reference; 19959: typedef const _Tp& const_reference; 19959: 19959: template 19959: struct rebind 19959: { typedef __new_allocator<_Tp1> other; }; 19959: 19959: 19959: 19959: 19959: 19959: typedef std::true_type propagate_on_container_move_assignment; 19959: 19959: 19959: __attribute__((__always_inline__)) 19959: 19959: __new_allocator() noexcept { } 19959: 19959: __attribute__((__always_inline__)) 19959: 19959: __new_allocator(const __new_allocator&) noexcept { } 19959: 19959: template 19959: __attribute__((__always_inline__)) 19959: 19959: __new_allocator(const __new_allocator<_Tp1>&) noexcept { } 19959: 19959: 19959: __new_allocator& operator=(const __new_allocator&) = default; 19959: 19959: 19959: 19959: ~__new_allocator() noexcept { } 19959: 19959: pointer 19959: address(reference __x) const noexcept 19959: { return std::__addressof(__x); } 19959: 19959: const_pointer 19959: address(const_reference __x) const noexcept 19959: { return std::__addressof(__x); } 19959: # 125 "/usr/include/c++/13/bits/new_allocator.h" 3 19959: [[__nodiscard__]] _Tp* 19959: allocate(size_type __n, const void* = static_cast(0)) 19959: { 19959: 19959: 19959: 19959: static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types"); 19959: 19959: 19959: if (__builtin_expect(__n > this->_M_max_size(), false)) 19959: { 19959: 19959: 19959: if (__n > (std::size_t(-1) / sizeof(_Tp))) 19959: std::__throw_bad_array_new_length(); 19959: std::__throw_bad_alloc(); 19959: } 19959: 19959: 19959: if (alignof(_Tp) > 8) 19959: { 19959: std::align_val_t __al = std::align_val_t(alignof(_Tp)); 19959: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), 19959: __al)); 19959: } 19959: 19959: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); 19959: } 19959: 19959: 19959: void 19959: deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: if (alignof(_Tp) > 8) 19959: { 19959: ::operator delete((__p), (__n) * sizeof(_Tp), 19959: std::align_val_t(alignof(_Tp))); 19959: return; 19959: } 19959: 19959: ::operator delete((__p), (__n) * sizeof(_Tp)); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__((__always_inline__)) 19959: size_type 19959: max_size() const noexcept 19959: { return _M_max_size(); } 19959: 19959: 19959: template 19959: __attribute__((__always_inline__)) 19959: void 19959: construct(_Up* __p, _Args&&... __args) 19959: noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) 19959: { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } 19959: 19959: template 19959: __attribute__((__always_inline__)) 19959: void 19959: destroy(_Up* __p) 19959: noexcept(std::is_nothrow_destructible<_Up>::value) 19959: { __p->~_Up(); } 19959: # 213 "/usr/include/c++/13/bits/new_allocator.h" 3 19959: template 19959: friend __attribute__((__always_inline__)) bool 19959: operator==(const __new_allocator&, const __new_allocator<_Up>&) 19959: noexcept 19959: { return true; } 19959: 19959: 19959: template 19959: friend __attribute__((__always_inline__)) bool 19959: operator!=(const __new_allocator&, const __new_allocator<_Up>&) 19959: noexcept 19959: { return false; } 19959: 19959: 19959: private: 19959: __attribute__((__always_inline__)) 19959: constexpr size_type 19959: _M_max_size() const noexcept 19959: { 19959: 19959: return std::size_t(0x7fffffff) / sizeof(_Tp); 19959: 19959: 19959: 19959: } 19959: }; 19959: 19959: 19959: } 19959: # 34 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++allocator.h" 2 3 19959: 19959: 19959: namespace std 19959: { 19959: # 46 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++allocator.h" 3 19959: template 19959: using __allocator_base = __new_allocator<_Tp>; 19959: } 19959: # 47 "/usr/include/c++/13/bits/allocator.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/memoryfwd.h" 1 3 19959: # 46 "/usr/include/c++/13/bits/memoryfwd.h" 3 19959: 19959: # 47 "/usr/include/c++/13/bits/memoryfwd.h" 3 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 64 "/usr/include/c++/13/bits/memoryfwd.h" 3 19959: template 19959: class allocator; 19959: 19959: template<> 19959: class allocator; 19959: 19959: 19959: 19959: 19959: template 19959: struct uses_allocator; 19959: 19959: template 19959: struct allocator_traits; 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 48 "/usr/include/c++/13/bits/allocator.h" 2 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 74 "/usr/include/c++/13/bits/allocator.h" 3 19959: template<> 19959: class allocator 19959: { 19959: public: 19959: typedef void value_type; 19959: typedef size_t size_type; 19959: typedef ptrdiff_t difference_type; 19959: 19959: 19959: 19959: typedef void* pointer; 19959: typedef const void* const_pointer; 19959: 19959: template 19959: struct rebind 19959: { typedef allocator<_Tp1> other; }; 19959: 19959: 19959: 19959: 19959: 19959: using propagate_on_container_move_assignment = true_type; 19959: 19959: using is_always_equal 19959: 19959: = true_type; 19959: # 117 "/usr/include/c++/13/bits/allocator.h" 3 19959: }; 19959: # 129 "/usr/include/c++/13/bits/allocator.h" 3 19959: template 19959: class allocator : public __allocator_base<_Tp> 19959: { 19959: public: 19959: typedef _Tp value_type; 19959: typedef size_t size_type; 19959: typedef ptrdiff_t difference_type; 19959: 19959: 19959: 19959: typedef _Tp* pointer; 19959: typedef const _Tp* const_pointer; 19959: typedef _Tp& reference; 19959: typedef const _Tp& const_reference; 19959: 19959: template 19959: struct rebind 19959: { typedef allocator<_Tp1> other; }; 19959: 19959: 19959: 19959: 19959: 19959: using propagate_on_container_move_assignment = true_type; 19959: 19959: using is_always_equal 19959: 19959: = true_type; 19959: 19959: 19959: 19959: 19959: __attribute__((__always_inline__)) 19959: 19959: allocator() noexcept { } 19959: 19959: __attribute__((__always_inline__)) 19959: 19959: allocator(const allocator& __a) noexcept 19959: : __allocator_base<_Tp>(__a) { } 19959: 19959: 19959: 19959: allocator& operator=(const allocator&) = default; 19959: 19959: 19959: template 19959: __attribute__((__always_inline__)) 19959: 19959: allocator(const allocator<_Tp1>&) noexcept { } 19959: 19959: __attribute__((__always_inline__)) 19959: 19959: 19959: 19959: ~allocator() noexcept { } 19959: # 214 "/usr/include/c++/13/bits/allocator.h" 3 19959: friend __attribute__((__always_inline__)) 19959: bool 19959: operator==(const allocator&, const allocator&) noexcept 19959: { return true; } 19959: 19959: 19959: friend __attribute__((__always_inline__)) 19959: bool 19959: operator!=(const allocator&, const allocator&) noexcept 19959: { return false; } 19959: 19959: 19959: 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: __attribute__((__always_inline__)) 19959: inline bool 19959: operator==(const allocator<_T1>&, const allocator<_T2>&) 19959: noexcept 19959: { return true; } 19959: 19959: 19959: template 19959: __attribute__((__always_inline__)) 19959: inline bool 19959: operator!=(const allocator<_T1>&, const allocator<_T2>&) 19959: noexcept 19959: { return false; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: class allocator 19959: { 19959: public: 19959: typedef _Tp value_type; 19959: template allocator(const allocator<_Up>&) { } 19959: }; 19959: 19959: template 19959: class allocator 19959: { 19959: public: 19959: typedef _Tp value_type; 19959: template allocator(const allocator<_Up>&) { } 19959: }; 19959: 19959: template 19959: class allocator 19959: { 19959: public: 19959: typedef _Tp value_type; 19959: template allocator(const allocator<_Up>&) { } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern template class allocator; 19959: extern template class allocator; 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 64 "/usr/include/c++/13/deque" 2 3 19959: # 1 "/usr/include/c++/13/bits/stl_construct.h" 1 3 19959: # 73 "/usr/include/c++/13/bits/stl_construct.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: inline void 19959: destroy_at(_Tp* __location) 19959: { 19959: if constexpr (201703L > 201703L && is_array_v<_Tp>) 19959: { 19959: for (auto& __x : *__location) 19959: std::destroy_at(std::__addressof(__x)); 19959: } 19959: else 19959: __location->~_Tp(); 19959: } 19959: # 106 "/usr/include/c++/13/bits/stl_construct.h" 3 19959: template 19959: 19959: inline void 19959: _Construct(_Tp* __p, _Args&&... __args) 19959: { 19959: # 119 "/usr/include/c++/13/bits/stl_construct.h" 3 19959: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 19959: } 19959: # 132 "/usr/include/c++/13/bits/stl_construct.h" 3 19959: template 19959: inline void 19959: _Construct_novalue(_T1* __p) 19959: { ::new((void*)__p) _T1; } 19959: 19959: template 19959: void 19959: _Destroy(_ForwardIterator __first, _ForwardIterator __last); 19959: 19959: 19959: 19959: 19959: template 19959: constexpr inline void 19959: _Destroy(_Tp* __pointer) 19959: { 19959: 19959: 19959: 19959: __pointer->~_Tp(); 19959: 19959: } 19959: 19959: template 19959: struct _Destroy_aux 19959: { 19959: template 19959: static void 19959: __destroy(_ForwardIterator __first, _ForwardIterator __last) 19959: { 19959: for (; __first != __last; ++__first) 19959: std::_Destroy(std::__addressof(*__first)); 19959: } 19959: }; 19959: 19959: template<> 19959: struct _Destroy_aux 19959: { 19959: template 19959: static void 19959: __destroy(_ForwardIterator, _ForwardIterator) { } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline void 19959: _Destroy(_ForwardIterator __first, _ForwardIterator __last) 19959: { 19959: typedef typename iterator_traits<_ForwardIterator>::value_type 19959: _Value_type; 19959: 19959: 19959: static_assert(is_destructible<_Value_type>::value, 19959: "value type is destructible"); 19959: 19959: 19959: 19959: 19959: 19959: std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: 19959: __destroy(__first, __last); 19959: } 19959: 19959: template 19959: struct _Destroy_n_aux 19959: { 19959: template 19959: static _ForwardIterator 19959: __destroy_n(_ForwardIterator __first, _Size __count) 19959: { 19959: for (; __count > 0; (void)++__first, --__count) 19959: std::_Destroy(std::__addressof(*__first)); 19959: return __first; 19959: } 19959: }; 19959: 19959: template<> 19959: struct _Destroy_n_aux 19959: { 19959: template 19959: static _ForwardIterator 19959: __destroy_n(_ForwardIterator __first, _Size __count) 19959: { 19959: std::advance(__first, __count); 19959: return __first; 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline _ForwardIterator 19959: _Destroy_n(_ForwardIterator __first, _Size __count) 19959: { 19959: typedef typename iterator_traits<_ForwardIterator>::value_type 19959: _Value_type; 19959: 19959: 19959: static_assert(is_destructible<_Value_type>::value, 19959: "value type is destructible"); 19959: 19959: 19959: 19959: 19959: 19959: return std::_Destroy_n_aux<__has_trivial_destructor(_Value_type)>:: 19959: __destroy_n(__first, __count); 19959: } 19959: 19959: 19959: template 19959: inline void 19959: destroy(_ForwardIterator __first, _ForwardIterator __last) 19959: { 19959: std::_Destroy(__first, __last); 19959: } 19959: 19959: template 19959: inline _ForwardIterator 19959: destroy_n(_ForwardIterator __first, _Size __count) 19959: { 19959: return std::_Destroy_n(__first, __count); 19959: } 19959: 19959: 19959: 19959: } 19959: # 65 "/usr/include/c++/13/deque" 2 3 19959: # 1 "/usr/include/c++/13/bits/stl_uninitialized.h" 1 3 19959: # 64 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: # 1 "/usr/include/c++/13/ext/alloc_traits.h" 1 3 19959: # 32 "/usr/include/c++/13/ext/alloc_traits.h" 3 19959: 19959: # 33 "/usr/include/c++/13/ext/alloc_traits.h" 3 19959: 19959: # 1 "/usr/include/c++/13/bits/alloc_traits.h" 1 3 19959: # 43 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct __allocator_traits_base 19959: { 19959: template 19959: struct __rebind : __replace_first_arg<_Tp, _Up> 19959: { 19959: static_assert(is_same< 19959: typename __replace_first_arg<_Tp, typename _Tp::value_type>::type, 19959: _Tp>::value, 19959: "allocator_traits::rebind_alloc must be A"); 19959: }; 19959: 19959: template 19959: struct __rebind<_Tp, _Up, 19959: __void_t::other>> 19959: { 19959: using type = typename _Tp::template rebind<_Up>::other; 19959: 19959: static_assert(is_same< 19959: typename _Tp::template rebind::other, 19959: _Tp>::value, 19959: "allocator_traits::rebind_alloc must be A"); 19959: }; 19959: 19959: protected: 19959: template 19959: using __pointer = typename _Tp::pointer; 19959: template 19959: using __c_pointer = typename _Tp::const_pointer; 19959: template 19959: using __v_pointer = typename _Tp::void_pointer; 19959: template 19959: using __cv_pointer = typename _Tp::const_void_pointer; 19959: template 19959: using __pocca = typename _Tp::propagate_on_container_copy_assignment; 19959: template 19959: using __pocma = typename _Tp::propagate_on_container_move_assignment; 19959: template 19959: using __pocs = typename _Tp::propagate_on_container_swap; 19959: template 19959: using __equal = __type_identity; 19959: }; 19959: 19959: template 19959: using __alloc_rebind 19959: = typename __allocator_traits_base::template __rebind<_Alloc, _Up>::type; 19959: # 104 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: template 19959: struct allocator_traits : __allocator_traits_base 19959: { 19959: 19959: typedef _Alloc allocator_type; 19959: 19959: typedef typename _Alloc::value_type value_type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: using pointer = __detected_or_t; 19959: 19959: private: 19959: 19959: template class _Func, typename _Tp, typename = void> 19959: struct _Ptr 19959: { 19959: using type = typename pointer_traits::template rebind<_Tp>; 19959: }; 19959: 19959: template class _Func, typename _Tp> 19959: struct _Ptr<_Func, _Tp, __void_t<_Func<_Alloc>>> 19959: { 19959: using type = _Func<_Alloc>; 19959: }; 19959: 19959: 19959: template 19959: struct _Diff 19959: { using type = typename pointer_traits<_PtrT>::difference_type; }; 19959: 19959: template 19959: struct _Diff<_A2, _PtrT, __void_t> 19959: { using type = typename _A2::difference_type; }; 19959: 19959: 19959: template 19959: struct _Size : make_unsigned<_DiffT> { }; 19959: 19959: template 19959: struct _Size<_A2, _DiffT, __void_t> 19959: { using type = typename _A2::size_type; }; 19959: 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: 19959: using const_pointer = typename _Ptr<__c_pointer, const value_type>::type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: using void_pointer = typename _Ptr<__v_pointer, void>::type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: using const_void_pointer = typename _Ptr<__cv_pointer, const void>::type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: using difference_type = typename _Diff<_Alloc, pointer>::type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: using size_type = typename _Size<_Alloc, difference_type>::type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: using propagate_on_container_copy_assignment 19959: = __detected_or_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: using propagate_on_container_move_assignment 19959: = __detected_or_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: using propagate_on_container_swap 19959: = __detected_or_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: using is_always_equal 19959: = typename __detected_or_t, __equal, _Alloc>::type; 19959: 19959: template 19959: using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; 19959: template 19959: using rebind_traits = allocator_traits>; 19959: 19959: private: 19959: template 19959: static constexpr auto 19959: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer __hint, int) 19959: -> decltype(__a.allocate(__n, __hint)) 19959: { return __a.allocate(__n, __hint); } 19959: 19959: template 19959: static constexpr pointer 19959: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer, ...) 19959: { return __a.allocate(__n); } 19959: 19959: template 19959: struct __construct_helper 19959: { 19959: template()->construct( 19959: std::declval<_Tp*>(), std::declval<_Args>()...))> 19959: static true_type __test(int); 19959: 19959: template 19959: static false_type __test(...); 19959: 19959: using type = decltype(__test<_Alloc>(0)); 19959: }; 19959: 19959: template 19959: using __has_construct 19959: = typename __construct_helper<_Tp, _Args...>::type; 19959: 19959: template 19959: static constexpr _Require<__has_construct<_Tp, _Args...>> 19959: _S_construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 19959: noexcept(noexcept(__a.construct(__p, std::forward<_Args>(__args)...))) 19959: { __a.construct(__p, std::forward<_Args>(__args)...); } 19959: 19959: template 19959: static constexpr 19959: _Require<__and_<__not_<__has_construct<_Tp, _Args...>>, 19959: is_constructible<_Tp, _Args...>>> 19959: _S_construct(_Alloc&, _Tp* __p, _Args&&... __args) 19959: noexcept(std::is_nothrow_constructible<_Tp, _Args...>::value) 19959: { 19959: 19959: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 19959: 19959: 19959: 19959: } 19959: 19959: template 19959: static constexpr auto 19959: _S_destroy(_Alloc2& __a, _Tp* __p, int) 19959: noexcept(noexcept(__a.destroy(__p))) 19959: -> decltype(__a.destroy(__p)) 19959: { __a.destroy(__p); } 19959: 19959: template 19959: static constexpr void 19959: _S_destroy(_Alloc2&, _Tp* __p, ...) 19959: noexcept(std::is_nothrow_destructible<_Tp>::value) 19959: { std::_Destroy(__p); } 19959: 19959: template 19959: static constexpr auto 19959: _S_max_size(_Alloc2& __a, int) 19959: -> decltype(__a.max_size()) 19959: { return __a.max_size(); } 19959: 19959: template 19959: static constexpr size_type 19959: _S_max_size(_Alloc2&, ...) 19959: { 19959: 19959: 19959: return __gnu_cxx::__numeric_traits::__max 19959: / sizeof(value_type); 19959: } 19959: 19959: template 19959: static constexpr auto 19959: _S_select(_Alloc2& __a, int) 19959: -> decltype(__a.select_on_container_copy_construction()) 19959: { return __a.select_on_container_copy_construction(); } 19959: 19959: template 19959: static constexpr _Alloc2 19959: _S_select(_Alloc2& __a, ...) 19959: { return __a; } 19959: 19959: public: 19959: # 331 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: [[__nodiscard__]] static pointer 19959: allocate(_Alloc& __a, size_type __n) 19959: { return __a.allocate(__n); } 19959: # 346 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: [[__nodiscard__]] static pointer 19959: allocate(_Alloc& __a, size_type __n, const_void_pointer __hint) 19959: { return _S_allocate(__a, __n, __hint, 0); } 19959: # 358 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: static void 19959: deallocate(_Alloc& __a, pointer __p, size_type __n) 19959: { __a.deallocate(__p, __n); } 19959: # 373 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: template 19959: static auto 19959: construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 19959: noexcept(noexcept(_S_construct(__a, __p, 19959: std::forward<_Args>(__args)...))) 19959: -> decltype(_S_construct(__a, __p, std::forward<_Args>(__args)...)) 19959: { _S_construct(__a, __p, std::forward<_Args>(__args)...); } 19959: # 389 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: template 19959: static void 19959: destroy(_Alloc& __a, _Tp* __p) 19959: noexcept(noexcept(_S_destroy(__a, __p, 0))) 19959: { _S_destroy(__a, __p, 0); } 19959: # 403 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: static size_type 19959: max_size(const _Alloc& __a) noexcept 19959: { return _S_max_size(__a, 0); } 19959: # 415 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: static _Alloc 19959: select_on_container_copy_construction(const _Alloc& __rhs) 19959: { return _S_select(__rhs, 0); } 19959: }; 19959: # 427 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: template 19959: struct allocator_traits> 19959: { 19959: 19959: using allocator_type = allocator<_Tp>; 19959: 19959: 19959: using value_type = _Tp; 19959: 19959: 19959: using pointer = _Tp*; 19959: 19959: 19959: using const_pointer = const _Tp*; 19959: 19959: 19959: using void_pointer = void*; 19959: 19959: 19959: using const_void_pointer = const void*; 19959: 19959: 19959: using difference_type = std::ptrdiff_t; 19959: 19959: 19959: using size_type = std::size_t; 19959: 19959: 19959: using propagate_on_container_copy_assignment = false_type; 19959: 19959: 19959: using propagate_on_container_move_assignment = true_type; 19959: 19959: 19959: using propagate_on_container_swap = false_type; 19959: 19959: 19959: using is_always_equal = true_type; 19959: 19959: template 19959: using rebind_alloc = allocator<_Up>; 19959: 19959: template 19959: using rebind_traits = allocator_traits>; 19959: # 479 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: [[__nodiscard__,__gnu__::__always_inline__]] 19959: static pointer 19959: allocate(allocator_type& __a, size_type __n) 19959: { return __a.allocate(__n); } 19959: # 494 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: [[__nodiscard__,__gnu__::__always_inline__]] 19959: static pointer 19959: allocate(allocator_type& __a, size_type __n, 19959: [[maybe_unused]] const_void_pointer __hint) 19959: { 19959: 19959: return __a.allocate(__n, __hint); 19959: 19959: 19959: 19959: } 19959: # 514 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: [[__gnu__::__always_inline__]] 19959: static void 19959: deallocate(allocator_type& __a, pointer __p, size_type __n) 19959: { __a.deallocate(__p, __n); } 19959: # 530 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: template 19959: [[__gnu__::__always_inline__]] 19959: static void 19959: construct(allocator_type& __a __attribute__((__unused__)), _Up* __p, 19959: _Args&&... __args) 19959: noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) 19959: { 19959: 19959: __a.construct(__p, std::forward<_Args>(__args)...); 19959: 19959: 19959: 19959: } 19959: # 551 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: template 19959: [[__gnu__::__always_inline__]] 19959: static void 19959: destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p) 19959: noexcept(is_nothrow_destructible<_Up>::value) 19959: { 19959: 19959: __a.destroy(__p); 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__gnu__::__always_inline__]] 19959: static size_type 19959: max_size(const allocator_type& __a __attribute__((__unused__))) noexcept 19959: { 19959: 19959: return __a.max_size(); 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__gnu__::__always_inline__]] 19959: static allocator_type 19959: select_on_container_copy_construction(const allocator_type& __rhs) 19959: { return __rhs; } 19959: }; 19959: 19959: 19959: template<> 19959: struct allocator_traits> 19959: { 19959: 19959: using allocator_type = allocator; 19959: 19959: 19959: using value_type = void; 19959: 19959: 19959: using pointer = void*; 19959: 19959: 19959: using const_pointer = const void*; 19959: 19959: 19959: using void_pointer = void*; 19959: 19959: 19959: using const_void_pointer = const void*; 19959: 19959: 19959: using difference_type = std::ptrdiff_t; 19959: 19959: 19959: using size_type = std::size_t; 19959: 19959: 19959: using propagate_on_container_copy_assignment = false_type; 19959: 19959: 19959: using propagate_on_container_move_assignment = true_type; 19959: 19959: 19959: using propagate_on_container_swap = false_type; 19959: 19959: 19959: using is_always_equal = true_type; 19959: 19959: template 19959: using rebind_alloc = allocator<_Up>; 19959: 19959: template 19959: using rebind_traits = allocator_traits>; 19959: 19959: 19959: static void* 19959: allocate(allocator_type&, size_type, const void* = nullptr) = delete; 19959: 19959: 19959: static void 19959: deallocate(allocator_type&, void*, size_type) = delete; 19959: # 656 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: template 19959: [[__gnu__::__always_inline__]] 19959: static void 19959: construct(allocator_type&, _Up* __p, _Args&&... __args) 19959: noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) 19959: { std::_Construct(__p, std::forward<_Args>(__args)...); } 19959: # 670 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: template 19959: [[__gnu__::__always_inline__]] 19959: static void 19959: destroy(allocator_type&, _Up* __p) 19959: noexcept(is_nothrow_destructible<_Up>::value) 19959: { std::_Destroy(__p); } 19959: 19959: 19959: static size_type 19959: max_size(const allocator_type&) = delete; 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__gnu__::__always_inline__]] 19959: static allocator_type 19959: select_on_container_copy_construction(const allocator_type& __rhs) 19959: { return __rhs; } 19959: }; 19959: # 708 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: template 19959: [[__gnu__::__always_inline__]] 19959: constexpr inline void 19959: __alloc_on_copy(_Alloc& __one, const _Alloc& __two) 19959: { 19959: using __traits = allocator_traits<_Alloc>; 19959: using __pocca = 19959: typename __traits::propagate_on_container_copy_assignment::type; 19959: 19959: if constexpr (__pocca::value) 19959: __one = __two; 19959: 19959: 19959: 19959: } 19959: 19959: template 19959: [[__gnu__::__always_inline__]] 19959: constexpr _Alloc 19959: __alloc_on_copy(const _Alloc& __a) 19959: { 19959: typedef allocator_traits<_Alloc> __traits; 19959: return __traits::select_on_container_copy_construction(__a); 19959: } 19959: # 745 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: template 19959: [[__gnu__::__always_inline__]] 19959: constexpr inline void 19959: __alloc_on_move(_Alloc& __one, _Alloc& __two) 19959: { 19959: using __traits = allocator_traits<_Alloc>; 19959: using __pocma 19959: = typename __traits::propagate_on_container_move_assignment::type; 19959: 19959: if constexpr (__pocma::value) 19959: __one = std::move(__two); 19959: 19959: 19959: 19959: } 19959: # 776 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: template 19959: [[__gnu__::__always_inline__]] 19959: constexpr inline void 19959: __alloc_on_swap(_Alloc& __one, _Alloc& __two) 19959: { 19959: using __traits = allocator_traits<_Alloc>; 19959: using __pocs = typename __traits::propagate_on_container_swap::type; 19959: 19959: if constexpr (__pocs::value) 19959: { 19959: using std::swap; 19959: swap(__one, __two); 19959: } 19959: 19959: 19959: 19959: } 19959: 19959: template, 19959: typename = void> 19959: struct __is_alloc_insertable_impl 19959: : false_type 19959: { }; 19959: 19959: template 19959: struct __is_alloc_insertable_impl<_Alloc, _Tp, _ValueT, 19959: __void_t::construct( 19959: std::declval<_Alloc&>(), std::declval<_ValueT*>(), 19959: std::declval<_Tp>()))>> 19959: : true_type 19959: { }; 19959: 19959: 19959: 19959: 19959: template 19959: struct __is_copy_insertable 19959: : __is_alloc_insertable_impl<_Alloc, 19959: typename _Alloc::value_type const&>::type 19959: { }; 19959: 19959: 19959: 19959: template 19959: struct __is_copy_insertable> 19959: : is_copy_constructible<_Tp> 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __is_move_insertable 19959: : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type>::type 19959: { }; 19959: 19959: 19959: 19959: template 19959: struct __is_move_insertable> 19959: : is_move_constructible<_Tp> 19959: { }; 19959: 19959: 19959: 19959: template 19959: struct __is_allocator : false_type { }; 19959: 19959: template 19959: struct __is_allocator<_Alloc, 19959: __void_t().allocate(size_t{}))>> 19959: : true_type { }; 19959: 19959: template 19959: using _RequireAllocator 19959: = typename enable_if<__is_allocator<_Alloc>::value, _Alloc>::type; 19959: 19959: template 19959: using _RequireNotAllocator 19959: = typename enable_if::value, _Alloc>::type; 19959: # 873 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: template 19959: struct __alloc_swap 19959: { static void _S_do_it(_Alloc&, _Alloc&) noexcept { } }; 19959: 19959: template 19959: struct __alloc_swap<_Alloc, false> 19959: { 19959: static void 19959: _S_do_it(_Alloc& __one, _Alloc& __two) noexcept 19959: { 19959: 19959: if (__one != __two) 19959: swap(__one, __two); 19959: } 19959: }; 19959: 19959: 19959: template, 19959: is_nothrow_move_constructible>::value> 19959: struct __shrink_to_fit_aux 19959: { static bool _S_do_it(_Tp&) noexcept { return false; } }; 19959: 19959: template 19959: struct __shrink_to_fit_aux<_Tp, true> 19959: { 19959: 19959: static bool 19959: _S_do_it(_Tp& __c) noexcept 19959: { 19959: 19959: try 19959: { 19959: _Tp(__make_move_if_noexcept_iterator(__c.begin()), 19959: __make_move_if_noexcept_iterator(__c.end()), 19959: __c.get_allocator()).swap(__c); 19959: return true; 19959: } 19959: catch(...) 19959: { return false; } 19959: 19959: 19959: 19959: } 19959: }; 19959: # 926 "/usr/include/c++/13/bits/alloc_traits.h" 3 19959: template 19959: 19959: void 19959: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 19959: _Allocator& __alloc) 19959: { 19959: for (; __first != __last; ++__first) 19959: 19959: 19959: 19959: allocator_traits<_Allocator>::destroy(__alloc, 19959: std::__addressof(*__first)); 19959: 19959: } 19959: 19959: 19959: template 19959: __attribute__((__always_inline__)) 19959: inline void 19959: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 19959: allocator<_Tp>&) 19959: { 19959: std::_Destroy(__first, __last); 19959: } 19959: 19959: 19959: 19959: 19959: } 19959: # 35 "/usr/include/c++/13/ext/alloc_traits.h" 2 3 19959: 19959: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __alloc_traits 19959: 19959: : std::allocator_traits<_Alloc> 19959: 19959: { 19959: typedef _Alloc allocator_type; 19959: 19959: typedef std::allocator_traits<_Alloc> _Base_type; 19959: typedef typename _Base_type::value_type value_type; 19959: typedef typename _Base_type::pointer pointer; 19959: typedef typename _Base_type::const_pointer const_pointer; 19959: typedef typename _Base_type::size_type size_type; 19959: typedef typename _Base_type::difference_type difference_type; 19959: 19959: typedef value_type& reference; 19959: typedef const value_type& const_reference; 19959: using _Base_type::allocate; 19959: using _Base_type::deallocate; 19959: using _Base_type::construct; 19959: using _Base_type::destroy; 19959: using _Base_type::max_size; 19959: 19959: private: 19959: template 19959: using __is_custom_pointer 19959: = std::__and_, 19959: std::__not_>>; 19959: 19959: public: 19959: 19959: template 19959: [[__gnu__::__always_inline__]] 19959: static constexpr 19959: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 19959: construct(_Alloc& __a, _Ptr __p, _Args&&... __args) 19959: noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), 19959: std::forward<_Args>(__args)...))) 19959: { 19959: _Base_type::construct(__a, std::__to_address(__p), 19959: std::forward<_Args>(__args)...); 19959: } 19959: 19959: 19959: template 19959: [[__gnu__::__always_inline__]] 19959: static constexpr 19959: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 19959: destroy(_Alloc& __a, _Ptr __p) 19959: noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p)))) 19959: { _Base_type::destroy(__a, std::__to_address(__p)); } 19959: 19959: [[__gnu__::__always_inline__]] 19959: static constexpr _Alloc _S_select_on_copy(const _Alloc& __a) 19959: { return _Base_type::select_on_container_copy_construction(__a); } 19959: 19959: [[__gnu__::__always_inline__]] 19959: static constexpr void _S_on_swap(_Alloc& __a, _Alloc& __b) 19959: { std::__alloc_on_swap(__a, __b); } 19959: 19959: [[__gnu__::__always_inline__]] 19959: static constexpr bool _S_propagate_on_copy_assign() 19959: { return _Base_type::propagate_on_container_copy_assignment::value; } 19959: 19959: [[__gnu__::__always_inline__]] 19959: static constexpr bool _S_propagate_on_move_assign() 19959: { return _Base_type::propagate_on_container_move_assignment::value; } 19959: 19959: [[__gnu__::__always_inline__]] 19959: static constexpr bool _S_propagate_on_swap() 19959: { return _Base_type::propagate_on_container_swap::value; } 19959: 19959: [[__gnu__::__always_inline__]] 19959: static constexpr bool _S_always_equal() 19959: { return _Base_type::is_always_equal::value; } 19959: 19959: __attribute__((__always_inline__)) 19959: static constexpr bool _S_nothrow_move() 19959: { return _S_propagate_on_move_assign() || _S_always_equal(); } 19959: 19959: template 19959: struct rebind 19959: { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; 19959: # 180 "/usr/include/c++/13/ext/alloc_traits.h" 3 19959: }; 19959: 19959: 19959: } 19959: # 65 "/usr/include/c++/13/bits/stl_uninitialized.h" 2 3 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 81 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: constexpr bool 19959: __check_constructible() 19959: { 19959: 19959: 19959: 19959: 19959: 19959: static_assert(is_constructible<_ValueType, _Tp>::value, 19959: "result type must be constructible from input type"); 19959: 19959: return true; 19959: } 19959: # 110 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: 19959: _ForwardIterator 19959: __do_uninit_copy(_InputIterator __first, _InputIterator __last, 19959: _ForwardIterator __result) 19959: { 19959: _ForwardIterator __cur = __result; 19959: try 19959: { 19959: for (; __first != __last; ++__first, (void)++__cur) 19959: std::_Construct(std::__addressof(*__cur), *__first); 19959: return __cur; 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__result, __cur); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: struct __uninitialized_copy 19959: { 19959: template 19959: static _ForwardIterator 19959: __uninit_copy(_InputIterator __first, _InputIterator __last, 19959: _ForwardIterator __result) 19959: { return std::__do_uninit_copy(__first, __last, __result); } 19959: }; 19959: 19959: template<> 19959: struct __uninitialized_copy 19959: { 19959: template 19959: static _ForwardIterator 19959: __uninit_copy(_InputIterator __first, _InputIterator __last, 19959: _ForwardIterator __result) 19959: { return std::copy(__first, __last, __result); } 19959: }; 19959: # 161 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: inline _ForwardIterator 19959: uninitialized_copy(_InputIterator __first, _InputIterator __last, 19959: _ForwardIterator __result) 19959: { 19959: typedef typename iterator_traits<_InputIterator>::value_type 19959: _ValueType1; 19959: typedef typename iterator_traits<_ForwardIterator>::value_type 19959: _ValueType2; 19959: 19959: 19959: 19959: 19959: const bool __can_memmove = __is_trivial(_ValueType1); 19959: 19959: 19959: 19959: 19959: using _From = decltype(*__first); 19959: 19959: const bool __assignable 19959: = __is_trivial(_ValueType2) && __is_assignable(_ValueType2&, _From) && std::__check_constructible<_ValueType2, _From>(); 19959: 19959: return std::__uninitialized_copy<__can_memmove && __assignable>:: 19959: __uninit_copy(__first, __last, __result); 19959: } 19959: 19959: 19959: 19959: template 19959: void 19959: __do_uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __x) 19959: { 19959: _ForwardIterator __cur = __first; 19959: try 19959: { 19959: for (; __cur != __last; ++__cur) 19959: std::_Construct(std::__addressof(*__cur), __x); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__first, __cur); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: struct __uninitialized_fill 19959: { 19959: template 19959: static void 19959: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __x) 19959: { std::__do_uninit_fill(__first, __last, __x); } 19959: }; 19959: 19959: template<> 19959: struct __uninitialized_fill 19959: { 19959: template 19959: static void 19959: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __x) 19959: { std::fill(__first, __last, __x); } 19959: }; 19959: # 239 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: inline void 19959: uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __x) 19959: { 19959: typedef typename iterator_traits<_ForwardIterator>::value_type 19959: _ValueType; 19959: 19959: 19959: 19959: const bool __can_fill 19959: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>(); 19959: 19959: std::__uninitialized_fill<__can_fill>:: 19959: __uninit_fill(__first, __last, __x); 19959: } 19959: 19959: 19959: 19959: template 19959: 19959: _ForwardIterator 19959: __do_uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 19959: { 19959: _ForwardIterator __cur = __first; 19959: try 19959: { 19959: for (; __n > 0; --__n, (void) ++__cur) 19959: std::_Construct(std::__addressof(*__cur), __x); 19959: return __cur; 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__first, __cur); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: struct __uninitialized_fill_n 19959: { 19959: template 19959: static _ForwardIterator 19959: __uninit_fill_n(_ForwardIterator __first, _Size __n, 19959: const _Tp& __x) 19959: { return std::__do_uninit_fill_n(__first, __n, __x); } 19959: }; 19959: 19959: template<> 19959: struct __uninitialized_fill_n 19959: { 19959: template 19959: static _ForwardIterator 19959: __uninit_fill_n(_ForwardIterator __first, _Size __n, 19959: const _Tp& __x) 19959: { return std::fill_n(__first, __n, __x); } 19959: }; 19959: # 310 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: inline _ForwardIterator 19959: uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 19959: { 19959: typedef typename iterator_traits<_ForwardIterator>::value_type 19959: _ValueType; 19959: 19959: 19959: 19959: const bool __can_fill 19959: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>() 19959: 19959: 19959: 19959: && __is_integer<_Size>::__value; 19959: 19959: return __uninitialized_fill_n<__can_fill>:: 19959: __uninit_fill_n(__first, __n, __x); 19959: } 19959: # 340 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: 19959: _ForwardIterator 19959: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 19959: _ForwardIterator __result, _Allocator& __alloc) 19959: { 19959: _ForwardIterator __cur = __result; 19959: try 19959: { 19959: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 19959: for (; __first != __last; ++__first, (void)++__cur) 19959: __traits::construct(__alloc, std::__addressof(*__cur), *__first); 19959: return __cur; 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__result, __cur, __alloc); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: template 19959: 19959: inline _ForwardIterator 19959: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 19959: _ForwardIterator __result, allocator<_Tp>&) 19959: { 19959: 19959: 19959: 19959: 19959: return std::uninitialized_copy(__first, __last, __result); 19959: } 19959: 19959: 19959: template 19959: 19959: inline _ForwardIterator 19959: __uninitialized_move_a(_InputIterator __first, _InputIterator __last, 19959: _ForwardIterator __result, _Allocator& __alloc) 19959: { 19959: return std::__uninitialized_copy_a(std::make_move_iterator(__first), 19959: std::make_move_iterator(__last), 19959: __result, __alloc); 19959: } 19959: 19959: template 19959: 19959: inline _ForwardIterator 19959: __uninitialized_move_if_noexcept_a(_InputIterator __first, 19959: _InputIterator __last, 19959: _ForwardIterator __result, 19959: _Allocator& __alloc) 19959: { 19959: return std::__uninitialized_copy_a 19959: (std::__make_move_if_noexcept_iterator(__first), 19959: std::__make_move_if_noexcept_iterator(__last), __result, __alloc); 19959: } 19959: 19959: template 19959: 19959: void 19959: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __x, _Allocator& __alloc) 19959: { 19959: _ForwardIterator __cur = __first; 19959: try 19959: { 19959: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 19959: for (; __cur != __last; ++__cur) 19959: __traits::construct(__alloc, std::__addressof(*__cur), __x); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__first, __cur, __alloc); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: template 19959: 19959: inline void 19959: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __x, allocator<_Tp2>&) 19959: { 19959: 19959: 19959: 19959: 19959: std::uninitialized_fill(__first, __last, __x); 19959: } 19959: 19959: 19959: template 19959: 19959: _ForwardIterator 19959: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 19959: const _Tp& __x, _Allocator& __alloc) 19959: { 19959: _ForwardIterator __cur = __first; 19959: try 19959: { 19959: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 19959: for (; __n > 0; --__n, (void) ++__cur) 19959: __traits::construct(__alloc, std::__addressof(*__cur), __x); 19959: return __cur; 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__first, __cur, __alloc); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: template 19959: 19959: inline _ForwardIterator 19959: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 19959: const _Tp& __x, allocator<_Tp2>&) 19959: { 19959: 19959: 19959: 19959: 19959: return std::uninitialized_fill_n(__first, __n, __x); 19959: } 19959: # 485 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: inline _ForwardIterator 19959: __uninitialized_copy_move(_InputIterator1 __first1, 19959: _InputIterator1 __last1, 19959: _InputIterator2 __first2, 19959: _InputIterator2 __last2, 19959: _ForwardIterator __result, 19959: _Allocator& __alloc) 19959: { 19959: _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, 19959: __result, 19959: __alloc); 19959: try 19959: { 19959: return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__result, __mid, __alloc); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline _ForwardIterator 19959: __uninitialized_move_copy(_InputIterator1 __first1, 19959: _InputIterator1 __last1, 19959: _InputIterator2 __first2, 19959: _InputIterator2 __last2, 19959: _ForwardIterator __result, 19959: _Allocator& __alloc) 19959: { 19959: _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, 19959: __result, 19959: __alloc); 19959: try 19959: { 19959: return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__result, __mid, __alloc); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: inline _ForwardIterator 19959: __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, 19959: const _Tp& __x, _InputIterator __first, 19959: _InputIterator __last, _Allocator& __alloc) 19959: { 19959: std::__uninitialized_fill_a(__result, __mid, __x, __alloc); 19959: try 19959: { 19959: return std::__uninitialized_move_a(__first, __last, __mid, __alloc); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__result, __mid, __alloc); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: inline void 19959: __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, 19959: _ForwardIterator __first2, 19959: _ForwardIterator __last2, const _Tp& __x, 19959: _Allocator& __alloc) 19959: { 19959: _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, 19959: __first2, 19959: __alloc); 19959: try 19959: { 19959: std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__first2, __mid2, __alloc); 19959: throw; 19959: } 19959: } 19959: # 592 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: struct __uninitialized_default_1 19959: { 19959: template 19959: static void 19959: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 19959: { 19959: _ForwardIterator __cur = __first; 19959: try 19959: { 19959: for (; __cur != __last; ++__cur) 19959: std::_Construct(std::__addressof(*__cur)); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__first, __cur); 19959: throw; 19959: } 19959: } 19959: }; 19959: 19959: template<> 19959: struct __uninitialized_default_1 19959: { 19959: template 19959: static void 19959: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 19959: { 19959: if (__first == __last) 19959: return; 19959: 19959: typename iterator_traits<_ForwardIterator>::value_type* __val 19959: = std::__addressof(*__first); 19959: std::_Construct(__val); 19959: if (++__first != __last) 19959: std::fill(__first, __last, *__val); 19959: } 19959: }; 19959: 19959: template 19959: struct __uninitialized_default_n_1 19959: { 19959: template 19959: 19959: static _ForwardIterator 19959: __uninit_default_n(_ForwardIterator __first, _Size __n) 19959: { 19959: _ForwardIterator __cur = __first; 19959: try 19959: { 19959: for (; __n > 0; --__n, (void) ++__cur) 19959: std::_Construct(std::__addressof(*__cur)); 19959: return __cur; 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__first, __cur); 19959: throw; 19959: } 19959: } 19959: }; 19959: 19959: template<> 19959: struct __uninitialized_default_n_1 19959: { 19959: template 19959: 19959: static _ForwardIterator 19959: __uninit_default_n(_ForwardIterator __first, _Size __n) 19959: { 19959: if (__n > 0) 19959: { 19959: typename iterator_traits<_ForwardIterator>::value_type* __val 19959: = std::__addressof(*__first); 19959: std::_Construct(__val); 19959: ++__first; 19959: __first = std::fill_n(__first, __n - 1, *__val); 19959: } 19959: return __first; 19959: } 19959: }; 19959: 19959: 19959: 19959: template 19959: inline void 19959: __uninitialized_default(_ForwardIterator __first, 19959: _ForwardIterator __last) 19959: { 19959: typedef typename iterator_traits<_ForwardIterator>::value_type 19959: _ValueType; 19959: 19959: const bool __assignable = is_copy_assignable<_ValueType>::value; 19959: 19959: std::__uninitialized_default_1<__is_trivial(_ValueType) 19959: && __assignable>:: 19959: __uninit_default(__first, __last); 19959: } 19959: 19959: 19959: 19959: template 19959: 19959: inline _ForwardIterator 19959: __uninitialized_default_n(_ForwardIterator __first, _Size __n) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef typename iterator_traits<_ForwardIterator>::value_type 19959: _ValueType; 19959: 19959: constexpr bool __can_fill 19959: = __and_, is_copy_assignable<_ValueType>>::value; 19959: 19959: return __uninitialized_default_n_1<__is_trivial(_ValueType) 19959: && __can_fill>:: 19959: __uninit_default_n(__first, __n); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: void 19959: __uninitialized_default_a(_ForwardIterator __first, 19959: _ForwardIterator __last, 19959: _Allocator& __alloc) 19959: { 19959: _ForwardIterator __cur = __first; 19959: try 19959: { 19959: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 19959: for (; __cur != __last; ++__cur) 19959: __traits::construct(__alloc, std::__addressof(*__cur)); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__first, __cur, __alloc); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: template 19959: inline void 19959: __uninitialized_default_a(_ForwardIterator __first, 19959: _ForwardIterator __last, 19959: allocator<_Tp>&) 19959: { std::__uninitialized_default(__first, __last); } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: _ForwardIterator 19959: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 19959: _Allocator& __alloc) 19959: { 19959: _ForwardIterator __cur = __first; 19959: try 19959: { 19959: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 19959: for (; __n > 0; --__n, (void) ++__cur) 19959: __traits::construct(__alloc, std::__addressof(*__cur)); 19959: return __cur; 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__first, __cur, __alloc); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: 19959: inline _ForwardIterator 19959: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 19959: allocator<_Tp>&) 19959: { return std::__uninitialized_default_n(__first, __n); } 19959: 19959: 19959: template 19959: struct __uninitialized_default_novalue_1 19959: { 19959: template 19959: static void 19959: __uninit_default_novalue(_ForwardIterator __first, 19959: _ForwardIterator __last) 19959: { 19959: _ForwardIterator __cur = __first; 19959: try 19959: { 19959: for (; __cur != __last; ++__cur) 19959: std::_Construct_novalue(std::__addressof(*__cur)); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__first, __cur); 19959: throw; 19959: } 19959: } 19959: }; 19959: 19959: template<> 19959: struct __uninitialized_default_novalue_1 19959: { 19959: template 19959: static void 19959: __uninit_default_novalue(_ForwardIterator, _ForwardIterator) 19959: { 19959: } 19959: }; 19959: 19959: template 19959: struct __uninitialized_default_novalue_n_1 19959: { 19959: template 19959: static _ForwardIterator 19959: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 19959: { 19959: _ForwardIterator __cur = __first; 19959: try 19959: { 19959: for (; __n > 0; --__n, (void) ++__cur) 19959: std::_Construct_novalue(std::__addressof(*__cur)); 19959: return __cur; 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__first, __cur); 19959: throw; 19959: } 19959: } 19959: }; 19959: 19959: template<> 19959: struct __uninitialized_default_novalue_n_1 19959: { 19959: template 19959: static _ForwardIterator 19959: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 19959: { return std::next(__first, __n); } 19959: }; 19959: 19959: 19959: 19959: template 19959: inline void 19959: __uninitialized_default_novalue(_ForwardIterator __first, 19959: _ForwardIterator __last) 19959: { 19959: typedef typename iterator_traits<_ForwardIterator>::value_type 19959: _ValueType; 19959: 19959: std::__uninitialized_default_novalue_1< 19959: is_trivially_default_constructible<_ValueType>::value>:: 19959: __uninit_default_novalue(__first, __last); 19959: } 19959: 19959: 19959: 19959: template 19959: inline _ForwardIterator 19959: __uninitialized_default_novalue_n(_ForwardIterator __first, _Size __n) 19959: { 19959: typedef typename iterator_traits<_ForwardIterator>::value_type 19959: _ValueType; 19959: 19959: return __uninitialized_default_novalue_n_1< 19959: is_trivially_default_constructible<_ValueType>::value>:: 19959: __uninit_default_novalue_n(__first, __n); 19959: } 19959: 19959: template 19959: _ForwardIterator 19959: __uninitialized_copy_n(_InputIterator __first, _Size __n, 19959: _ForwardIterator __result, input_iterator_tag) 19959: { 19959: _ForwardIterator __cur = __result; 19959: try 19959: { 19959: for (; __n > 0; --__n, (void) ++__first, ++__cur) 19959: std::_Construct(std::__addressof(*__cur), *__first); 19959: return __cur; 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__result, __cur); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: inline _ForwardIterator 19959: __uninitialized_copy_n(_RandomAccessIterator __first, _Size __n, 19959: _ForwardIterator __result, 19959: random_access_iterator_tag) 19959: { return std::uninitialized_copy(__first, __first + __n, __result); } 19959: 19959: template 19959: pair<_InputIterator, _ForwardIterator> 19959: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 19959: _ForwardIterator __result, input_iterator_tag) 19959: { 19959: _ForwardIterator __cur = __result; 19959: try 19959: { 19959: for (; __n > 0; --__n, (void) ++__first, ++__cur) 19959: std::_Construct(std::__addressof(*__cur), *__first); 19959: return {__first, __cur}; 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__result, __cur); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: inline pair<_RandomAccessIterator, _ForwardIterator> 19959: __uninitialized_copy_n_pair(_RandomAccessIterator __first, _Size __n, 19959: _ForwardIterator __result, 19959: random_access_iterator_tag) 19959: { 19959: auto __second_res = uninitialized_copy(__first, __first + __n, __result); 19959: auto __first_res = std::next(__first, __n); 19959: return {__first_res, __second_res}; 19959: } 19959: # 946 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: inline _ForwardIterator 19959: uninitialized_copy_n(_InputIterator __first, _Size __n, 19959: _ForwardIterator __result) 19959: { return std::__uninitialized_copy_n(__first, __n, __result, 19959: std::__iterator_category(__first)); } 19959: 19959: 19959: template 19959: inline pair<_InputIterator, _ForwardIterator> 19959: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 19959: _ForwardIterator __result) 19959: { 19959: return 19959: std::__uninitialized_copy_n_pair(__first, __n, __result, 19959: std::__iterator_category(__first)); 19959: } 19959: # 975 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: inline void 19959: uninitialized_default_construct(_ForwardIterator __first, 19959: _ForwardIterator __last) 19959: { 19959: __uninitialized_default_novalue(__first, __last); 19959: } 19959: # 990 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: inline _ForwardIterator 19959: uninitialized_default_construct_n(_ForwardIterator __first, _Size __count) 19959: { 19959: return __uninitialized_default_novalue_n(__first, __count); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline void 19959: uninitialized_value_construct(_ForwardIterator __first, 19959: _ForwardIterator __last) 19959: { 19959: return __uninitialized_default(__first, __last); 19959: } 19959: # 1018 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: inline _ForwardIterator 19959: uninitialized_value_construct_n(_ForwardIterator __first, _Size __count) 19959: { 19959: return __uninitialized_default_n(__first, __count); 19959: } 19959: # 1033 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: inline _ForwardIterator 19959: uninitialized_move(_InputIterator __first, _InputIterator __last, 19959: _ForwardIterator __result) 19959: { 19959: return std::uninitialized_copy 19959: (std::make_move_iterator(__first), 19959: std::make_move_iterator(__last), __result); 19959: } 19959: # 1051 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: template 19959: inline pair<_InputIterator, _ForwardIterator> 19959: uninitialized_move_n(_InputIterator __first, _Size __count, 19959: _ForwardIterator __result) 19959: { 19959: auto __res = std::__uninitialized_copy_n_pair 19959: (std::make_move_iterator(__first), 19959: __count, __result); 19959: return {__res.first.base(), __res.second}; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: inline void 19959: __relocate_object_a(_Tp* __restrict __dest, _Up* __restrict __orig, 19959: _Allocator& __alloc) 19959: noexcept(noexcept(std::allocator_traits<_Allocator>::construct(__alloc, 19959: __dest, std::move(*__orig))) 19959: && noexcept(std::allocator_traits<_Allocator>::destroy( 19959: __alloc, std::__addressof(*__orig)))) 19959: { 19959: typedef std::allocator_traits<_Allocator> __traits; 19959: __traits::construct(__alloc, __dest, std::move(*__orig)); 19959: __traits::destroy(__alloc, std::__addressof(*__orig)); 19959: } 19959: 19959: 19959: 19959: template 19959: struct __is_bitwise_relocatable 19959: : is_trivial<_Tp> { }; 19959: 19959: template 19959: 19959: inline _ForwardIterator 19959: __relocate_a_1(_InputIterator __first, _InputIterator __last, 19959: _ForwardIterator __result, _Allocator& __alloc) 19959: noexcept(noexcept(std::__relocate_object_a(std::addressof(*__result), 19959: std::addressof(*__first), 19959: __alloc))) 19959: { 19959: typedef typename iterator_traits<_InputIterator>::value_type 19959: _ValueType; 19959: typedef typename iterator_traits<_ForwardIterator>::value_type 19959: _ValueType2; 19959: static_assert(std::is_same<_ValueType, _ValueType2>::value, 19959: "relocation is only possible for values of the same type"); 19959: _ForwardIterator __cur = __result; 19959: for (; __first != __last; ++__first, (void)++__cur) 19959: std::__relocate_object_a(std::__addressof(*__cur), 19959: std::__addressof(*__first), __alloc); 19959: return __cur; 19959: } 19959: 19959: 19959: template 19959: 19959: inline __enable_if_t::value, _Tp*> 19959: __relocate_a_1(_Tp* __first, _Tp* __last, 19959: _Tp* __result, 19959: [[__maybe_unused__]] allocator<_Up>& __alloc) noexcept 19959: { 19959: ptrdiff_t __count = __last - __first; 19959: if (__count > 0) 19959: { 19959: # 1131 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 19959: __builtin_memmove(__result, __first, __count * sizeof(_Tp)); 19959: } 19959: return __result + __count; 19959: } 19959: 19959: 19959: template 19959: 19959: inline _ForwardIterator 19959: __relocate_a(_InputIterator __first, _InputIterator __last, 19959: _ForwardIterator __result, _Allocator& __alloc) 19959: noexcept(noexcept(__relocate_a_1(std::__niter_base(__first), 19959: std::__niter_base(__last), 19959: std::__niter_base(__result), __alloc))) 19959: { 19959: return std::__relocate_a_1(std::__niter_base(__first), 19959: std::__niter_base(__last), 19959: std::__niter_base(__result), __alloc); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 66 "/usr/include/c++/13/deque" 2 3 19959: # 1 "/usr/include/c++/13/bits/stl_deque.h" 1 3 19959: # 63 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: # 1 "/usr/include/c++/13/initializer_list" 1 3 19959: # 33 "/usr/include/c++/13/initializer_list" 3 19959: 19959: # 34 "/usr/include/c++/13/initializer_list" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: template 19959: class initializer_list 19959: { 19959: public: 19959: typedef _E value_type; 19959: typedef const _E& reference; 19959: typedef const _E& const_reference; 19959: typedef size_t size_type; 19959: typedef const _E* iterator; 19959: typedef const _E* const_iterator; 19959: 19959: private: 19959: iterator _M_array; 19959: size_type _M_len; 19959: 19959: 19959: constexpr initializer_list(const_iterator __a, size_type __l) 19959: : _M_array(__a), _M_len(__l) { } 19959: 19959: public: 19959: constexpr initializer_list() noexcept 19959: : _M_array(0), _M_len(0) { } 19959: 19959: 19959: constexpr size_type 19959: size() const noexcept { return _M_len; } 19959: 19959: 19959: constexpr const_iterator 19959: begin() const noexcept { return _M_array; } 19959: 19959: 19959: constexpr const_iterator 19959: end() const noexcept { return begin() + size(); } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: constexpr const _Tp* 19959: begin(initializer_list<_Tp> __ils) noexcept 19959: { return __ils.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: constexpr const _Tp* 19959: end(initializer_list<_Tp> __ils) noexcept 19959: { return __ils.end(); } 19959: } 19959: # 64 "/usr/include/c++/13/bits/stl_deque.h" 2 3 19959: # 72 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: # 95 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: constexpr inline size_t 19959: __deque_buf_size(size_t __size) 19959: { return (__size < 512 19959: ? size_t(512 / __size) : size_t(1)); } 19959: # 112 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template 19959: struct _Deque_iterator 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: private: 19959: template 19959: using __iter = _Deque_iterator<_Tp, _CvTp&, __ptr_rebind<_Ptr, _CvTp>>; 19959: public: 19959: typedef __iter<_Tp> iterator; 19959: typedef __iter const_iterator; 19959: typedef __ptr_rebind<_Ptr, _Tp> _Elt_pointer; 19959: typedef __ptr_rebind<_Ptr, _Elt_pointer> _Map_pointer; 19959: 19959: 19959: static size_t _S_buffer_size() noexcept 19959: { return __deque_buf_size(sizeof(_Tp)); } 19959: 19959: typedef std::random_access_iterator_tag iterator_category; 19959: typedef _Tp value_type; 19959: typedef _Ptr pointer; 19959: typedef _Ref reference; 19959: typedef size_t size_type; 19959: typedef ptrdiff_t difference_type; 19959: typedef _Deque_iterator _Self; 19959: 19959: _Elt_pointer _M_cur; 19959: _Elt_pointer _M_first; 19959: _Elt_pointer _M_last; 19959: _Map_pointer _M_node; 19959: 19959: _Deque_iterator(_Elt_pointer __x, _Map_pointer __y) noexcept 19959: : _M_cur(__x), _M_first(*__y), 19959: _M_last(*__y + _S_buffer_size()), _M_node(__y) { } 19959: 19959: _Deque_iterator() noexcept 19959: : _M_cur(), _M_first(), _M_last(), _M_node() { } 19959: # 161 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template, 19959: is_same<_Iter, iterator>>> 19959: _Deque_iterator(const _Iter& __x) noexcept 19959: : _M_cur(__x._M_cur), _M_first(__x._M_first), 19959: _M_last(__x._M_last), _M_node(__x._M_node) { } 19959: 19959: _Deque_iterator(const _Deque_iterator& __x) noexcept 19959: : _M_cur(__x._M_cur), _M_first(__x._M_first), 19959: _M_last(__x._M_last), _M_node(__x._M_node) { } 19959: 19959: _Deque_iterator& operator=(const _Deque_iterator&) = default; 19959: 19959: 19959: iterator 19959: _M_const_cast() const noexcept 19959: { return iterator(_M_cur, _M_node); } 19959: 19959: [[__nodiscard__]] 19959: reference 19959: operator*() const noexcept 19959: { return *_M_cur; } 19959: 19959: [[__nodiscard__]] 19959: pointer 19959: operator->() const noexcept 19959: { return _M_cur; } 19959: 19959: _Self& 19959: operator++() noexcept 19959: { 19959: ++_M_cur; 19959: if (_M_cur == _M_last) 19959: { 19959: _M_set_node(_M_node + 1); 19959: _M_cur = _M_first; 19959: } 19959: return *this; 19959: } 19959: 19959: _Self 19959: operator++(int) noexcept 19959: { 19959: _Self __tmp = *this; 19959: ++*this; 19959: return __tmp; 19959: } 19959: 19959: _Self& 19959: operator--() noexcept 19959: { 19959: if (_M_cur == _M_first) 19959: { 19959: _M_set_node(_M_node - 1); 19959: _M_cur = _M_last; 19959: } 19959: --_M_cur; 19959: return *this; 19959: } 19959: 19959: _Self 19959: operator--(int) noexcept 19959: { 19959: _Self __tmp = *this; 19959: --*this; 19959: return __tmp; 19959: } 19959: 19959: _Self& 19959: operator+=(difference_type __n) noexcept 19959: { 19959: const difference_type __offset = __n + (_M_cur - _M_first); 19959: if (__offset >= 0 && __offset < difference_type(_S_buffer_size())) 19959: _M_cur += __n; 19959: else 19959: { 19959: const difference_type __node_offset = 19959: __offset > 0 ? __offset / difference_type(_S_buffer_size()) 19959: : -difference_type((-__offset - 1) 19959: / _S_buffer_size()) - 1; 19959: _M_set_node(_M_node + __node_offset); 19959: _M_cur = _M_first + (__offset - __node_offset 19959: * difference_type(_S_buffer_size())); 19959: } 19959: return *this; 19959: } 19959: 19959: _Self& 19959: operator-=(difference_type __n) noexcept 19959: { return *this += -__n; } 19959: 19959: [[__nodiscard__]] 19959: reference 19959: operator[](difference_type __n) const noexcept 19959: { return *(*this + __n); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: _M_set_node(_Map_pointer __new_node) noexcept 19959: { 19959: _M_node = __new_node; 19959: _M_first = *__new_node; 19959: _M_last = _M_first + difference_type(_S_buffer_size()); 19959: } 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator==(const _Self& __x, const _Self& __y) noexcept 19959: { return __x._M_cur == __y._M_cur; } 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: friend bool 19959: operator==(const _Self& __x, 19959: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 19959: noexcept 19959: { return __x._M_cur == __y._M_cur; } 19959: # 296 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: [[__nodiscard__]] 19959: friend bool 19959: operator!=(const _Self& __x, const _Self& __y) noexcept 19959: { return !(__x == __y); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: friend bool 19959: operator!=(const _Self& __x, 19959: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 19959: noexcept 19959: { return !(__x == __y); } 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator<(const _Self& __x, const _Self& __y) noexcept 19959: { 19959: return (__x._M_node == __y._M_node) 19959: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 19959: } 19959: 19959: template 19959: [[__nodiscard__]] 19959: friend bool 19959: operator<(const _Self& __x, 19959: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 19959: noexcept 19959: { 19959: return (__x._M_node == __y._M_node) 19959: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 19959: } 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator>(const _Self& __x, const _Self& __y) noexcept 19959: { return __y < __x; } 19959: 19959: template 19959: [[__nodiscard__]] 19959: friend bool 19959: operator>(const _Self& __x, 19959: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 19959: noexcept 19959: { return __y < __x; } 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator<=(const _Self& __x, const _Self& __y) noexcept 19959: { return !(__y < __x); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: friend bool 19959: operator<=(const _Self& __x, 19959: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 19959: noexcept 19959: { return !(__y < __x); } 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator>=(const _Self& __x, const _Self& __y) noexcept 19959: { return !(__x < __y); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: friend bool 19959: operator>=(const _Self& __x, 19959: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 19959: noexcept 19959: { return !(__x < __y); } 19959: 19959: 19959: [[__nodiscard__]] 19959: friend difference_type 19959: operator-(const _Self& __x, const _Self& __y) noexcept 19959: { 19959: return difference_type(_S_buffer_size()) 19959: * (__x._M_node - __y._M_node - bool(__x._M_node)) 19959: + (__x._M_cur - __x._M_first) 19959: + (__y._M_last - __y._M_cur); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: friend difference_type 19959: operator-(const _Self& __x, 19959: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 19959: noexcept 19959: { 19959: return difference_type(_S_buffer_size()) 19959: * (__x._M_node - __y._M_node - bool(__x._M_node)) 19959: + (__x._M_cur - __x._M_first) 19959: + (__y._M_last - __y._M_cur); 19959: } 19959: 19959: [[__nodiscard__]] 19959: friend _Self 19959: operator+(const _Self& __x, difference_type __n) noexcept 19959: { 19959: _Self __tmp = __x; 19959: __tmp += __n; 19959: return __tmp; 19959: } 19959: 19959: [[__nodiscard__]] 19959: friend _Self 19959: operator-(const _Self& __x, difference_type __n) noexcept 19959: { 19959: _Self __tmp = __x; 19959: __tmp -= __n; 19959: return __tmp; 19959: } 19959: 19959: [[__nodiscard__]] 19959: friend _Self 19959: operator+(difference_type __n, const _Self& __x) noexcept 19959: { return __x + __n; } 19959: }; 19959: # 429 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template 19959: class _Deque_base 19959: { 19959: protected: 19959: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 19959: rebind<_Tp>::other _Tp_alloc_type; 19959: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 19959: 19959: 19959: 19959: 19959: 19959: typedef typename _Alloc_traits::pointer _Ptr; 19959: typedef typename _Alloc_traits::const_pointer _Ptr_const; 19959: 19959: 19959: typedef typename _Alloc_traits::template rebind<_Ptr>::other 19959: _Map_alloc_type; 19959: typedef __gnu_cxx::__alloc_traits<_Map_alloc_type> _Map_alloc_traits; 19959: 19959: typedef _Alloc allocator_type; 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return allocator_type(_M_get_Tp_allocator()); } 19959: 19959: typedef _Deque_iterator<_Tp, _Tp&, _Ptr> iterator; 19959: typedef _Deque_iterator<_Tp, const _Tp&, _Ptr_const> const_iterator; 19959: 19959: _Deque_base() 19959: : _M_impl() 19959: { _M_initialize_map(0); } 19959: 19959: _Deque_base(size_t __num_elements) 19959: : _M_impl() 19959: { _M_initialize_map(__num_elements); } 19959: 19959: _Deque_base(const allocator_type& __a, size_t __num_elements) 19959: : _M_impl(__a) 19959: { _M_initialize_map(__num_elements); } 19959: 19959: _Deque_base(const allocator_type& __a) 19959: : _M_impl(__a) 19959: { } 19959: 19959: 19959: _Deque_base(_Deque_base&& __x) 19959: : _M_impl(std::move(__x._M_get_Tp_allocator())) 19959: { 19959: _M_initialize_map(0); 19959: if (__x._M_impl._M_map) 19959: this->_M_impl._M_swap_data(__x._M_impl); 19959: } 19959: 19959: _Deque_base(_Deque_base&& __x, const allocator_type& __a) 19959: : _M_impl(std::move(__x._M_impl), _Tp_alloc_type(__a)) 19959: { __x._M_initialize_map(0); } 19959: 19959: _Deque_base(_Deque_base&& __x, const allocator_type& __a, size_t __n) 19959: : _M_impl(__a) 19959: { 19959: if (__x.get_allocator() == __a) 19959: { 19959: if (__x._M_impl._M_map) 19959: { 19959: _M_initialize_map(0); 19959: this->_M_impl._M_swap_data(__x._M_impl); 19959: } 19959: } 19959: else 19959: { 19959: _M_initialize_map(__n); 19959: } 19959: } 19959: 19959: 19959: ~_Deque_base() noexcept; 19959: 19959: typedef typename iterator::_Map_pointer _Map_pointer; 19959: 19959: struct _Deque_impl_data 19959: { 19959: _Map_pointer _M_map; 19959: size_t _M_map_size; 19959: iterator _M_start; 19959: iterator _M_finish; 19959: 19959: _Deque_impl_data() noexcept 19959: : _M_map(), _M_map_size(), _M_start(), _M_finish() 19959: { } 19959: 19959: 19959: _Deque_impl_data(const _Deque_impl_data&) = default; 19959: _Deque_impl_data& 19959: operator=(const _Deque_impl_data&) = default; 19959: 19959: _Deque_impl_data(_Deque_impl_data&& __x) noexcept 19959: : _Deque_impl_data(__x) 19959: { __x = _Deque_impl_data(); } 19959: 19959: 19959: void 19959: _M_swap_data(_Deque_impl_data& __x) noexcept 19959: { 19959: 19959: 19959: std::swap(*this, __x); 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: struct _Deque_impl 19959: : public _Tp_alloc_type, public _Deque_impl_data 19959: { 19959: _Deque_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 19959: 19959: : _Tp_alloc_type() 19959: { } 19959: 19959: _Deque_impl(const _Tp_alloc_type& __a) noexcept 19959: : _Tp_alloc_type(__a) 19959: { } 19959: 19959: 19959: _Deque_impl(_Deque_impl&&) = default; 19959: 19959: _Deque_impl(_Tp_alloc_type&& __a) noexcept 19959: : _Tp_alloc_type(std::move(__a)) 19959: { } 19959: 19959: _Deque_impl(_Deque_impl&& __d, _Tp_alloc_type&& __a) 19959: : _Tp_alloc_type(std::move(__a)), _Deque_impl_data(std::move(__d)) 19959: { } 19959: 19959: }; 19959: 19959: _Tp_alloc_type& 19959: _M_get_Tp_allocator() noexcept 19959: { return this->_M_impl; } 19959: 19959: const _Tp_alloc_type& 19959: _M_get_Tp_allocator() const noexcept 19959: { return this->_M_impl; } 19959: 19959: _Map_alloc_type 19959: _M_get_map_allocator() const noexcept 19959: { return _Map_alloc_type(_M_get_Tp_allocator()); } 19959: 19959: _Ptr 19959: _M_allocate_node() 19959: { 19959: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 19959: return _Traits::allocate(_M_impl, __deque_buf_size(sizeof(_Tp))); 19959: } 19959: 19959: void 19959: _M_deallocate_node(_Ptr __p) noexcept 19959: { 19959: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 19959: _Traits::deallocate(_M_impl, __p, __deque_buf_size(sizeof(_Tp))); 19959: } 19959: 19959: _Map_pointer 19959: _M_allocate_map(size_t __n) 19959: { 19959: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 19959: return _Map_alloc_traits::allocate(__map_alloc, __n); 19959: } 19959: 19959: void 19959: _M_deallocate_map(_Map_pointer __p, size_t __n) noexcept 19959: { 19959: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 19959: _Map_alloc_traits::deallocate(__map_alloc, __p, __n); 19959: } 19959: 19959: void _M_initialize_map(size_t); 19959: void _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish); 19959: void _M_destroy_nodes(_Map_pointer __nstart, 19959: _Map_pointer __nfinish) noexcept; 19959: enum { _S_initial_map_size = 8 }; 19959: 19959: _Deque_impl _M_impl; 19959: }; 19959: 19959: template 19959: _Deque_base<_Tp, _Alloc>:: 19959: ~_Deque_base() noexcept 19959: { 19959: if (this->_M_impl._M_map) 19959: { 19959: _M_destroy_nodes(this->_M_impl._M_start._M_node, 19959: this->_M_impl._M_finish._M_node + 1); 19959: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 19959: } 19959: } 19959: # 636 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template 19959: void 19959: _Deque_base<_Tp, _Alloc>:: 19959: _M_initialize_map(size_t __num_elements) 19959: { 19959: const size_t __num_nodes = (__num_elements / __deque_buf_size(sizeof(_Tp)) 19959: + 1); 19959: 19959: this->_M_impl._M_map_size = std::max((size_t) _S_initial_map_size, 19959: size_t(__num_nodes + 2)); 19959: this->_M_impl._M_map = _M_allocate_map(this->_M_impl._M_map_size); 19959: 19959: 19959: 19959: 19959: 19959: 19959: _Map_pointer __nstart = (this->_M_impl._M_map 19959: + (this->_M_impl._M_map_size - __num_nodes) / 2); 19959: _Map_pointer __nfinish = __nstart + __num_nodes; 19959: 19959: try 19959: { _M_create_nodes(__nstart, __nfinish); } 19959: catch(...) 19959: { 19959: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 19959: this->_M_impl._M_map = _Map_pointer(); 19959: this->_M_impl._M_map_size = 0; 19959: throw; 19959: } 19959: 19959: this->_M_impl._M_start._M_set_node(__nstart); 19959: this->_M_impl._M_finish._M_set_node(__nfinish - 1); 19959: this->_M_impl._M_start._M_cur = _M_impl._M_start._M_first; 19959: this->_M_impl._M_finish._M_cur = (this->_M_impl._M_finish._M_first 19959: + __num_elements 19959: % __deque_buf_size(sizeof(_Tp))); 19959: } 19959: 19959: template 19959: void 19959: _Deque_base<_Tp, _Alloc>:: 19959: _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish) 19959: { 19959: _Map_pointer __cur; 19959: try 19959: { 19959: for (__cur = __nstart; __cur < __nfinish; ++__cur) 19959: *__cur = this->_M_allocate_node(); 19959: } 19959: catch(...) 19959: { 19959: _M_destroy_nodes(__nstart, __cur); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: void 19959: _Deque_base<_Tp, _Alloc>:: 19959: _M_destroy_nodes(_Map_pointer __nstart, 19959: _Map_pointer __nfinish) noexcept 19959: { 19959: for (_Map_pointer __n = __nstart; __n < __nfinish; ++__n) 19959: _M_deallocate_node(*__n); 19959: } 19959: # 787 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template > 19959: class deque : protected _Deque_base<_Tp, _Alloc> 19959: { 19959: # 800 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: static_assert(is_same::type, _Tp>::value, 19959: "std::deque must have a non-const, non-volatile value_type"); 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef _Deque_base<_Tp, _Alloc> _Base; 19959: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 19959: typedef typename _Base::_Alloc_traits _Alloc_traits; 19959: typedef typename _Base::_Map_pointer _Map_pointer; 19959: 19959: public: 19959: typedef _Tp value_type; 19959: typedef typename _Alloc_traits::pointer pointer; 19959: typedef typename _Alloc_traits::const_pointer const_pointer; 19959: typedef typename _Alloc_traits::reference reference; 19959: typedef typename _Alloc_traits::const_reference const_reference; 19959: typedef typename _Base::iterator iterator; 19959: typedef typename _Base::const_iterator const_iterator; 19959: typedef std::reverse_iterator const_reverse_iterator; 19959: typedef std::reverse_iterator reverse_iterator; 19959: typedef size_t size_type; 19959: typedef ptrdiff_t difference_type; 19959: typedef _Alloc allocator_type; 19959: 19959: private: 19959: static size_t _S_buffer_size() noexcept 19959: { return __deque_buf_size(sizeof(_Tp)); } 19959: 19959: 19959: using _Base::_M_initialize_map; 19959: using _Base::_M_create_nodes; 19959: using _Base::_M_destroy_nodes; 19959: using _Base::_M_allocate_node; 19959: using _Base::_M_deallocate_node; 19959: using _Base::_M_allocate_map; 19959: using _Base::_M_deallocate_map; 19959: using _Base::_M_get_Tp_allocator; 19959: 19959: 19959: 19959: 19959: 19959: using _Base::_M_impl; 19959: 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: deque() = default; 19959: # 864 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: explicit 19959: deque(const allocator_type& __a) 19959: : _Base(__a, 0) { } 19959: # 877 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: explicit 19959: deque(size_type __n, const allocator_type& __a = allocator_type()) 19959: : _Base(__a, _S_check_init_len(__n, __a)) 19959: { _M_default_initialize(); } 19959: # 890 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: deque(size_type __n, const value_type& __value, 19959: const allocator_type& __a = allocator_type()) 19959: : _Base(__a, _S_check_init_len(__n, __a)) 19959: { _M_fill_initialize(__value); } 19959: # 917 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: deque(const deque& __x) 19959: : _Base(_Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator()), 19959: __x.size()) 19959: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 19959: this->_M_impl._M_start, 19959: _M_get_Tp_allocator()); } 19959: # 933 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: deque(deque&&) = default; 19959: 19959: 19959: deque(const deque& __x, const __type_identity_t& __a) 19959: : _Base(__a, __x.size()) 19959: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 19959: this->_M_impl._M_start, 19959: _M_get_Tp_allocator()); } 19959: 19959: 19959: deque(deque&& __x, const __type_identity_t& __a) 19959: : deque(std::move(__x), __a, typename _Alloc_traits::is_always_equal{}) 19959: { } 19959: 19959: private: 19959: deque(deque&& __x, const allocator_type& __a, true_type) 19959: : _Base(std::move(__x), __a) 19959: { } 19959: 19959: deque(deque&& __x, const allocator_type& __a, false_type) 19959: : _Base(std::move(__x), __a, __x.size()) 19959: { 19959: if (__x.get_allocator() != __a && !__x.empty()) 19959: { 19959: std::__uninitialized_move_a(__x.begin(), __x.end(), 19959: this->_M_impl._M_start, 19959: _M_get_Tp_allocator()); 19959: __x.clear(); 19959: } 19959: } 19959: 19959: public: 19959: # 976 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: deque(initializer_list __l, 19959: const allocator_type& __a = allocator_type()) 19959: : _Base(__a) 19959: { 19959: _M_range_initialize(__l.begin(), __l.end(), 19959: random_access_iterator_tag()); 19959: } 19959: # 1001 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template> 19959: deque(_InputIterator __first, _InputIterator __last, 19959: const allocator_type& __a = allocator_type()) 19959: : _Base(__a) 19959: { 19959: _M_range_initialize(__first, __last, 19959: std::__iterator_category(__first)); 19959: } 19959: # 1027 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: ~deque() 19959: { _M_destroy_data(begin(), end(), _M_get_Tp_allocator()); } 19959: # 1039 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: deque& 19959: operator=(const deque& __x); 19959: # 1051 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: deque& 19959: operator=(deque&& __x) noexcept(_Alloc_traits::_S_always_equal()) 19959: { 19959: using __always_equal = typename _Alloc_traits::is_always_equal; 19959: _M_move_assign1(std::move(__x), __always_equal{}); 19959: return *this; 19959: } 19959: # 1070 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: deque& 19959: operator=(initializer_list __l) 19959: { 19959: _M_assign_aux(__l.begin(), __l.end(), 19959: random_access_iterator_tag()); 19959: return *this; 19959: } 19959: # 1089 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: void 19959: assign(size_type __n, const value_type& __val) 19959: { _M_fill_assign(__n, __val); } 19959: # 1106 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template> 19959: void 19959: assign(_InputIterator __first, _InputIterator __last) 19959: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 19959: # 1133 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: void 19959: assign(initializer_list __l) 19959: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return _Base::get_allocator(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: iterator 19959: begin() noexcept 19959: { return this->_M_impl._M_start; } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: begin() const noexcept 19959: { return this->_M_impl._M_start; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: iterator 19959: end() noexcept 19959: { return this->_M_impl._M_finish; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: end() const noexcept 19959: { return this->_M_impl._M_finish; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reverse_iterator 19959: rbegin() noexcept 19959: { return reverse_iterator(this->_M_impl._M_finish); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: rbegin() const noexcept 19959: { return const_reverse_iterator(this->_M_impl._M_finish); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reverse_iterator 19959: rend() noexcept 19959: { return reverse_iterator(this->_M_impl._M_start); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: rend() const noexcept 19959: { return const_reverse_iterator(this->_M_impl._M_start); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: cbegin() const noexcept 19959: { return this->_M_impl._M_start; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: cend() const noexcept 19959: { return this->_M_impl._M_finish; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: crbegin() const noexcept 19959: { return const_reverse_iterator(this->_M_impl._M_finish); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: crend() const noexcept 19959: { return const_reverse_iterator(this->_M_impl._M_start); } 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: size_type 19959: size() const noexcept 19959: { return this->_M_impl._M_finish - this->_M_impl._M_start; } 19959: 19959: 19959: [[__nodiscard__]] 19959: size_type 19959: max_size() const noexcept 19959: { return _S_max_size(_M_get_Tp_allocator()); } 19959: # 1287 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: void 19959: resize(size_type __new_size) 19959: { 19959: const size_type __len = size(); 19959: if (__new_size > __len) 19959: _M_default_append(__new_size - __len); 19959: else if (__new_size < __len) 19959: _M_erase_at_end(this->_M_impl._M_start 19959: + difference_type(__new_size)); 19959: } 19959: # 1309 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: void 19959: resize(size_type __new_size, const value_type& __x) 19959: # 1326 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: { 19959: const size_type __len = size(); 19959: if (__new_size > __len) 19959: _M_fill_insert(this->_M_impl._M_finish, __new_size - __len, __x); 19959: else if (__new_size < __len) 19959: _M_erase_at_end(this->_M_impl._M_start 19959: + difference_type(__new_size)); 19959: } 19959: 19959: 19959: 19959: void 19959: shrink_to_fit() noexcept 19959: { _M_shrink_to_fit(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] bool 19959: empty() const noexcept 19959: { return this->_M_impl._M_finish == this->_M_impl._M_start; } 19959: # 1362 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: [[__nodiscard__]] 19959: reference 19959: operator[](size_type __n) noexcept 19959: { 19959: ; 19959: return this->_M_impl._M_start[difference_type(__n)]; 19959: } 19959: # 1381 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: [[__nodiscard__]] 19959: const_reference 19959: operator[](size_type __n) const noexcept 19959: { 19959: ; 19959: return this->_M_impl._M_start[difference_type(__n)]; 19959: } 19959: 19959: protected: 19959: 19959: void 19959: _M_range_check(size_type __n) const 19959: { 19959: if (__n >= this->size()) 19959: __throw_out_of_range_fmt(("deque::_M_range_check: __n " "(which is %zu)>= this->size() " "(which is %zu)") 19959: 19959: , 19959: __n, this->size()); 19959: } 19959: 19959: public: 19959: # 1413 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: reference 19959: at(size_type __n) 19959: { 19959: _M_range_check(__n); 19959: return (*this)[__n]; 19959: } 19959: # 1431 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: const_reference 19959: at(size_type __n) const 19959: { 19959: _M_range_check(__n); 19959: return (*this)[__n]; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reference 19959: front() noexcept 19959: { 19959: ; 19959: return *begin(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reference 19959: front() const noexcept 19959: { 19959: ; 19959: return *begin(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reference 19959: back() noexcept 19959: { 19959: ; 19959: iterator __tmp = end(); 19959: --__tmp; 19959: return *__tmp; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reference 19959: back() const noexcept 19959: { 19959: ; 19959: const_iterator __tmp = end(); 19959: --__tmp; 19959: return *__tmp; 19959: } 19959: # 1500 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: void 19959: push_front(const value_type& __x) 19959: { 19959: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 19959: { 19959: _Alloc_traits::construct(this->_M_impl, 19959: this->_M_impl._M_start._M_cur - 1, 19959: __x); 19959: --this->_M_impl._M_start._M_cur; 19959: } 19959: else 19959: _M_push_front_aux(__x); 19959: } 19959: 19959: 19959: void 19959: push_front(value_type&& __x) 19959: { emplace_front(std::move(__x)); } 19959: 19959: template 19959: 19959: reference 19959: 19959: 19959: 19959: emplace_front(_Args&&... __args); 19959: # 1537 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: void 19959: push_back(const value_type& __x) 19959: { 19959: if (this->_M_impl._M_finish._M_cur 19959: != this->_M_impl._M_finish._M_last - 1) 19959: { 19959: _Alloc_traits::construct(this->_M_impl, 19959: this->_M_impl._M_finish._M_cur, __x); 19959: ++this->_M_impl._M_finish._M_cur; 19959: } 19959: else 19959: _M_push_back_aux(__x); 19959: } 19959: 19959: 19959: void 19959: push_back(value_type&& __x) 19959: { emplace_back(std::move(__x)); } 19959: 19959: template 19959: 19959: reference 19959: 19959: 19959: 19959: emplace_back(_Args&&... __args); 19959: # 1573 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: void 19959: pop_front() noexcept 19959: { 19959: ; 19959: if (this->_M_impl._M_start._M_cur 19959: != this->_M_impl._M_start._M_last - 1) 19959: { 19959: _Alloc_traits::destroy(_M_get_Tp_allocator(), 19959: this->_M_impl._M_start._M_cur); 19959: ++this->_M_impl._M_start._M_cur; 19959: } 19959: else 19959: _M_pop_front_aux(); 19959: } 19959: # 1596 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: void 19959: pop_back() noexcept 19959: { 19959: ; 19959: if (this->_M_impl._M_finish._M_cur 19959: != this->_M_impl._M_finish._M_first) 19959: { 19959: --this->_M_impl._M_finish._M_cur; 19959: _Alloc_traits::destroy(_M_get_Tp_allocator(), 19959: this->_M_impl._M_finish._M_cur); 19959: } 19959: else 19959: _M_pop_back_aux(); 19959: } 19959: # 1621 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template 19959: iterator 19959: emplace(const_iterator __position, _Args&&... __args); 19959: # 1634 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: iterator 19959: insert(const_iterator __position, const value_type& __x); 19959: # 1660 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: iterator 19959: insert(const_iterator __position, value_type&& __x) 19959: { return emplace(__position, std::move(__x)); } 19959: # 1674 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: iterator 19959: insert(const_iterator __p, initializer_list __l) 19959: { 19959: auto __offset = __p - cbegin(); 19959: _M_range_insert_aux(__p._M_const_cast(), __l.begin(), __l.end(), 19959: std::random_access_iterator_tag()); 19959: return begin() + __offset; 19959: } 19959: # 1693 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: iterator 19959: insert(const_iterator __position, size_type __n, const value_type& __x) 19959: { 19959: difference_type __offset = __position - cbegin(); 19959: _M_fill_insert(__position._M_const_cast(), __n, __x); 19959: return begin() + __offset; 19959: } 19959: # 1727 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template> 19959: iterator 19959: insert(const_iterator __position, _InputIterator __first, 19959: _InputIterator __last) 19959: { 19959: difference_type __offset = __position - cbegin(); 19959: _M_range_insert_aux(__position._M_const_cast(), __first, __last, 19959: std::__iterator_category(__first)); 19959: return begin() + __offset; 19959: } 19959: # 1773 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: iterator 19959: 19959: erase(const_iterator __position) 19959: 19959: 19959: 19959: { return _M_erase(__position._M_const_cast()); } 19959: # 1797 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: iterator 19959: 19959: erase(const_iterator __first, const_iterator __last) 19959: 19959: 19959: 19959: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 19959: # 1816 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: void 19959: swap(deque& __x) noexcept 19959: { 19959: 19959: 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) 19959: ; 19959: 19959: _M_impl._M_swap_data(__x._M_impl); 19959: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 19959: __x._M_get_Tp_allocator()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: clear() noexcept 19959: { _M_erase_at_end(begin()); } 19959: 19959: protected: 19959: # 1866 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: static size_t 19959: _S_check_init_len(size_t __n, const allocator_type& __a) 19959: { 19959: if (__n > _S_max_size(__a)) 19959: __throw_length_error( 19959: ("cannot create std::deque larger than max_size()")); 19959: return __n; 19959: } 19959: 19959: static size_type 19959: _S_max_size(const _Tp_alloc_type& __a) noexcept 19959: { 19959: const size_t __diffmax = __gnu_cxx::__numeric_traits::__max; 19959: const size_t __allocmax = _Alloc_traits::max_size(__a); 19959: return (std::min)(__diffmax, __allocmax); 19959: } 19959: # 1895 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template 19959: void 19959: _M_range_initialize(_InputIterator __first, _InputIterator __last, 19959: std::input_iterator_tag); 19959: 19959: 19959: template 19959: void 19959: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 19959: std::forward_iterator_tag); 19959: # 1917 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: void 19959: _M_fill_initialize(const value_type& __value); 19959: 19959: 19959: 19959: void 19959: _M_default_initialize(); 19959: # 1948 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template 19959: void 19959: _M_assign_aux(_InputIterator __first, _InputIterator __last, 19959: std::input_iterator_tag); 19959: 19959: 19959: template 19959: void 19959: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 19959: std::forward_iterator_tag) 19959: { 19959: const size_type __len = std::distance(__first, __last); 19959: if (__len > size()) 19959: { 19959: _ForwardIterator __mid = __first; 19959: std::advance(__mid, size()); 19959: std::copy(__first, __mid, begin()); 19959: _M_range_insert_aux(end(), __mid, __last, 19959: std::__iterator_category(__first)); 19959: } 19959: else 19959: _M_erase_at_end(std::copy(__first, __last, begin())); 19959: } 19959: 19959: 19959: 19959: void 19959: _M_fill_assign(size_type __n, const value_type& __val) 19959: { 19959: if (__n > size()) 19959: { 19959: std::fill(begin(), end(), __val); 19959: _M_fill_insert(end(), __n - size(), __val); 19959: } 19959: else 19959: { 19959: _M_erase_at_end(begin() + difference_type(__n)); 19959: std::fill(begin(), end(), __val); 19959: } 19959: } 19959: # 1996 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template 19959: void _M_push_back_aux(_Args&&... __args); 19959: 19959: template 19959: void _M_push_front_aux(_Args&&... __args); 19959: 19959: 19959: void _M_pop_back_aux(); 19959: 19959: void _M_pop_front_aux(); 19959: # 2035 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template 19959: void 19959: _M_range_insert_aux(iterator __pos, _InputIterator __first, 19959: _InputIterator __last, std::input_iterator_tag); 19959: 19959: 19959: template 19959: void 19959: _M_range_insert_aux(iterator __pos, _ForwardIterator __first, 19959: _ForwardIterator __last, std::forward_iterator_tag); 19959: 19959: 19959: 19959: 19959: void 19959: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: iterator 19959: _M_insert_aux(iterator __pos, _Args&&... __args); 19959: 19959: 19959: 19959: void 19959: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x); 19959: 19959: 19959: template 19959: void 19959: _M_insert_aux(iterator __pos, 19959: _ForwardIterator __first, _ForwardIterator __last, 19959: size_type __n); 19959: 19959: 19959: 19959: 19959: void 19959: _M_destroy_data_aux(iterator __first, iterator __last); 19959: 19959: 19959: 19959: template 19959: void 19959: _M_destroy_data(iterator __first, iterator __last, const _Alloc1&) 19959: { _M_destroy_data_aux(__first, __last); } 19959: 19959: void 19959: _M_destroy_data(iterator __first, iterator __last, 19959: const std::allocator<_Tp>&) 19959: { 19959: if (!__has_trivial_destructor(value_type)) 19959: _M_destroy_data_aux(__first, __last); 19959: } 19959: 19959: 19959: void 19959: _M_erase_at_begin(iterator __pos) 19959: { 19959: _M_destroy_data(begin(), __pos, _M_get_Tp_allocator()); 19959: _M_destroy_nodes(this->_M_impl._M_start._M_node, __pos._M_node); 19959: this->_M_impl._M_start = __pos; 19959: } 19959: 19959: 19959: 19959: void 19959: _M_erase_at_end(iterator __pos) 19959: { 19959: _M_destroy_data(__pos, end(), _M_get_Tp_allocator()); 19959: _M_destroy_nodes(__pos._M_node + 1, 19959: this->_M_impl._M_finish._M_node + 1); 19959: this->_M_impl._M_finish = __pos; 19959: } 19959: 19959: iterator 19959: _M_erase(iterator __pos); 19959: 19959: iterator 19959: _M_erase(iterator __first, iterator __last); 19959: 19959: 19959: 19959: void 19959: _M_default_append(size_type __n); 19959: 19959: bool 19959: _M_shrink_to_fit(); 19959: 19959: 19959: 19959: 19959: iterator 19959: _M_reserve_elements_at_front(size_type __n) 19959: { 19959: const size_type __vacancies = this->_M_impl._M_start._M_cur 19959: - this->_M_impl._M_start._M_first; 19959: if (__n > __vacancies) 19959: _M_new_elements_at_front(__n - __vacancies); 19959: return this->_M_impl._M_start - difference_type(__n); 19959: } 19959: 19959: iterator 19959: _M_reserve_elements_at_back(size_type __n) 19959: { 19959: const size_type __vacancies = (this->_M_impl._M_finish._M_last 19959: - this->_M_impl._M_finish._M_cur) - 1; 19959: if (__n > __vacancies) 19959: _M_new_elements_at_back(__n - __vacancies); 19959: return this->_M_impl._M_finish + difference_type(__n); 19959: } 19959: 19959: void 19959: _M_new_elements_at_front(size_type __new_elements); 19959: 19959: void 19959: _M_new_elements_at_back(size_type __new_elements); 19959: # 2167 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: void 19959: _M_reserve_map_at_back(size_type __nodes_to_add = 1) 19959: { 19959: if (__nodes_to_add + 1 > this->_M_impl._M_map_size 19959: - (this->_M_impl._M_finish._M_node - this->_M_impl._M_map)) 19959: _M_reallocate_map(__nodes_to_add, false); 19959: } 19959: 19959: void 19959: _M_reserve_map_at_front(size_type __nodes_to_add = 1) 19959: { 19959: if (__nodes_to_add > size_type(this->_M_impl._M_start._M_node 19959: - this->_M_impl._M_map)) 19959: _M_reallocate_map(__nodes_to_add, true); 19959: } 19959: 19959: void 19959: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front); 19959: 19959: 19959: 19959: 19959: 19959: void 19959: _M_move_assign1(deque&& __x, true_type) noexcept 19959: { 19959: this->_M_impl._M_swap_data(__x._M_impl); 19959: __x.clear(); 19959: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 19959: } 19959: 19959: 19959: 19959: 19959: void 19959: _M_move_assign1(deque&& __x, false_type) 19959: { 19959: if (_M_get_Tp_allocator() == __x._M_get_Tp_allocator()) 19959: return _M_move_assign1(std::move(__x), true_type()); 19959: 19959: constexpr bool __move_storage = 19959: _Alloc_traits::_S_propagate_on_move_assign(); 19959: _M_move_assign2(std::move(__x), __bool_constant<__move_storage>()); 19959: } 19959: 19959: 19959: 19959: template 19959: void 19959: _M_replace_map(_Args&&... __args) 19959: { 19959: 19959: deque __newobj(std::forward<_Args>(__args)...); 19959: 19959: clear(); 19959: _M_deallocate_node(*begin()._M_node); 19959: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 19959: this->_M_impl._M_map = nullptr; 19959: this->_M_impl._M_map_size = 0; 19959: 19959: this->_M_impl._M_swap_data(__newobj._M_impl); 19959: } 19959: 19959: 19959: void 19959: _M_move_assign2(deque&& __x, true_type) 19959: { 19959: 19959: auto __alloc = __x._M_get_Tp_allocator(); 19959: 19959: 19959: _M_replace_map(std::move(__x)); 19959: 19959: _M_get_Tp_allocator() = std::move(__alloc); 19959: } 19959: 19959: 19959: 19959: void 19959: _M_move_assign2(deque&& __x, false_type) 19959: { 19959: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 19959: { 19959: 19959: 19959: _M_replace_map(std::move(__x), __x.get_allocator()); 19959: } 19959: else 19959: { 19959: 19959: 19959: _M_assign_aux(std::make_move_iterator(__x.begin()), 19959: std::make_move_iterator(__x.end()), 19959: std::random_access_iterator_tag()); 19959: __x.clear(); 19959: } 19959: } 19959: 19959: }; 19959: 19959: 19959: template::value_type, 19959: typename _Allocator = allocator<_ValT>, 19959: typename = _RequireInputIter<_InputIterator>, 19959: typename = _RequireAllocator<_Allocator>> 19959: deque(_InputIterator, _InputIterator, _Allocator = _Allocator()) 19959: -> deque<_ValT, _Allocator>; 19959: # 2287 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 19959: { return __x.size() == __y.size() 19959: && std::equal(__x.begin(), __x.end(), __y.begin()); } 19959: # 2327 "/usr/include/c++/13/bits/stl_deque.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 19959: { return std::lexicographical_compare(__x.begin(), __x.end(), 19959: __y.begin(), __y.end()); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator!=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 19959: { return !(__x == __y); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 19959: { return __y < __x; } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 19959: { return !(__y < __x); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 19959: { return !(__x < __y); } 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(deque<_Tp,_Alloc>& __x, deque<_Tp,_Alloc>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __is_bitwise_relocatable> 19959: : true_type { }; 19959: 19959: 19959: 19959: } 19959: # 67 "/usr/include/c++/13/deque" 2 3 19959: # 1 "/usr/include/c++/13/bits/refwrap.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/refwrap.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/refwrap.h" 3 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/invoke.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/invoke.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/invoke.h" 3 19959: # 42 "/usr/include/c++/13/bits/invoke.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 53 "/usr/include/c++/13/bits/invoke.h" 3 19959: template::type> 19959: constexpr _Up&& 19959: __invfwd(typename remove_reference<_Tp>::type& __t) noexcept 19959: { return static_cast<_Up&&>(__t); } 19959: 19959: template 19959: constexpr _Res 19959: __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) 19959: { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } 19959: 19959: template 19959: constexpr _Res 19959: __invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, 19959: _Args&&... __args) 19959: { return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } 19959: 19959: template 19959: constexpr _Res 19959: __invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, 19959: _Args&&... __args) 19959: { 19959: return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); 19959: } 19959: 19959: template 19959: constexpr _Res 19959: __invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) 19959: { return __invfwd<_Tp>(__t).*__f; } 19959: 19959: template 19959: constexpr _Res 19959: __invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) 19959: { return (*std::forward<_Tp>(__t)).*__f; } 19959: 19959: 19959: template 19959: constexpr typename __invoke_result<_Callable, _Args...>::type 19959: __invoke(_Callable&& __fn, _Args&&... __args) 19959: noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) 19959: { 19959: using __result = __invoke_result<_Callable, _Args...>; 19959: using __type = typename __result::type; 19959: using __tag = typename __result::__invoke_type; 19959: return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 19959: std::forward<_Args>(__args)...); 19959: } 19959: 19959: 19959: 19959: template 19959: constexpr enable_if_t, _Res> 19959: __invoke_r(_Callable&& __fn, _Args&&... __args) 19959: noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) 19959: { 19959: using __result = __invoke_result<_Callable, _Args...>; 19959: using __type = typename __result::type; 19959: using __tag = typename __result::__invoke_type; 19959: if constexpr (is_void_v<_Res>) 19959: std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 19959: std::forward<_Args>(__args)...); 19959: else 19959: return std::__invoke_impl<__type>(__tag{}, 19959: std::forward<_Callable>(__fn), 19959: std::forward<_Args>(__args)...); 19959: } 19959: # 155 "/usr/include/c++/13/bits/invoke.h" 3 19959: 19959: } 19959: # 39 "/usr/include/c++/13/bits/refwrap.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/stl_function.h" 1 3 19959: # 63 "/usr/include/c++/13/bits/stl_function.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 116 "/usr/include/c++/13/bits/stl_function.h" 3 19959: template 19959: struct unary_function 19959: { 19959: 19959: typedef _Arg argument_type; 19959: 19959: 19959: typedef _Result result_type; 19959: } __attribute__ ((__deprecated__)); 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct binary_function 19959: { 19959: 19959: typedef _Arg1 first_argument_type; 19959: 19959: 19959: typedef _Arg2 second_argument_type; 19959: 19959: 19959: typedef _Result result_type; 19959: } __attribute__ ((__deprecated__)); 19959: # 157 "/usr/include/c++/13/bits/stl_function.h" 3 19959: struct __is_transparent; 19959: 19959: template 19959: struct plus; 19959: 19959: template 19959: struct minus; 19959: 19959: template 19959: struct multiplies; 19959: 19959: template 19959: struct divides; 19959: 19959: template 19959: struct modulus; 19959: 19959: template 19959: struct negate; 19959: 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: 19959: template 19959: struct plus : public binary_function<_Tp, _Tp, _Tp> 19959: { 19959: 19959: constexpr 19959: _Tp 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x + __y; } 19959: }; 19959: 19959: 19959: template 19959: struct minus : public binary_function<_Tp, _Tp, _Tp> 19959: { 19959: constexpr 19959: _Tp 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x - __y; } 19959: }; 19959: 19959: 19959: template 19959: struct multiplies : public binary_function<_Tp, _Tp, _Tp> 19959: { 19959: constexpr 19959: _Tp 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x * __y; } 19959: }; 19959: 19959: 19959: template 19959: struct divides : public binary_function<_Tp, _Tp, _Tp> 19959: { 19959: constexpr 19959: _Tp 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x / __y; } 19959: }; 19959: 19959: 19959: template 19959: struct modulus : public binary_function<_Tp, _Tp, _Tp> 19959: { 19959: constexpr 19959: _Tp 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x % __y; } 19959: }; 19959: 19959: 19959: template 19959: struct negate : public unary_function<_Tp, _Tp> 19959: { 19959: constexpr 19959: _Tp 19959: operator()(const _Tp& __x) const 19959: { return -__x; } 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: 19959: 19959: 19959: template<> 19959: struct plus 19959: { 19959: template 19959: constexpr 19959: auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) + std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) + std::forward<_Up>(__u)) 19959: { return std::forward<_Tp>(__t) + std::forward<_Up>(__u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: 19959: template<> 19959: struct minus 19959: { 19959: template 19959: constexpr 19959: auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) - std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) - std::forward<_Up>(__u)) 19959: { return std::forward<_Tp>(__t) - std::forward<_Up>(__u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: 19959: template<> 19959: struct multiplies 19959: { 19959: template 19959: constexpr 19959: auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) * std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) * std::forward<_Up>(__u)) 19959: { return std::forward<_Tp>(__t) * std::forward<_Up>(__u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: 19959: template<> 19959: struct divides 19959: { 19959: template 19959: constexpr 19959: auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) / std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) / std::forward<_Up>(__u)) 19959: { return std::forward<_Tp>(__t) / std::forward<_Up>(__u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: 19959: template<> 19959: struct modulus 19959: { 19959: template 19959: constexpr 19959: auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) % std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) % std::forward<_Up>(__u)) 19959: { return std::forward<_Tp>(__t) % std::forward<_Up>(__u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: 19959: template<> 19959: struct negate 19959: { 19959: template 19959: constexpr 19959: auto 19959: operator()(_Tp&& __t) const 19959: noexcept(noexcept(-std::forward<_Tp>(__t))) 19959: -> decltype(-std::forward<_Tp>(__t)) 19959: { return -std::forward<_Tp>(__t); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: # 349 "/usr/include/c++/13/bits/stl_function.h" 3 19959: template 19959: struct equal_to; 19959: 19959: template 19959: struct not_equal_to; 19959: 19959: template 19959: struct greater; 19959: 19959: template 19959: struct less; 19959: 19959: template 19959: struct greater_equal; 19959: 19959: template 19959: struct less_equal; 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: 19959: template 19959: struct equal_to : public binary_function<_Tp, _Tp, bool> 19959: { 19959: constexpr 19959: bool 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x == __y; } 19959: }; 19959: 19959: 19959: template 19959: struct not_equal_to : public binary_function<_Tp, _Tp, bool> 19959: { 19959: constexpr 19959: bool 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x != __y; } 19959: }; 19959: 19959: 19959: template 19959: struct greater : public binary_function<_Tp, _Tp, bool> 19959: { 19959: constexpr 19959: bool 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x > __y; } 19959: }; 19959: 19959: 19959: template 19959: struct less : public binary_function<_Tp, _Tp, bool> 19959: { 19959: constexpr 19959: bool 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x < __y; } 19959: }; 19959: 19959: 19959: template 19959: struct greater_equal : public binary_function<_Tp, _Tp, bool> 19959: { 19959: constexpr 19959: bool 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x >= __y; } 19959: }; 19959: 19959: 19959: template 19959: struct less_equal : public binary_function<_Tp, _Tp, bool> 19959: { 19959: constexpr 19959: bool 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x <= __y; } 19959: }; 19959: 19959: 19959: template 19959: struct greater<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 19959: { 19959: constexpr bool 19959: operator()(_Tp* __x, _Tp* __y) const noexcept 19959: { 19959: 19959: if (std::__is_constant_evaluated()) 19959: return __x > __y; 19959: 19959: return (unsigned int)__x > (unsigned int)__y; 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 19959: { 19959: constexpr bool 19959: operator()(_Tp* __x, _Tp* __y) const noexcept 19959: { 19959: 19959: if (std::__is_constant_evaluated()) 19959: return __x < __y; 19959: 19959: return (unsigned int)__x < (unsigned int)__y; 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct greater_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 19959: { 19959: constexpr bool 19959: operator()(_Tp* __x, _Tp* __y) const noexcept 19959: { 19959: 19959: if (std::__is_constant_evaluated()) 19959: return __x >= __y; 19959: 19959: return (unsigned int)__x >= (unsigned int)__y; 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct less_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 19959: { 19959: constexpr bool 19959: operator()(_Tp* __x, _Tp* __y) const noexcept 19959: { 19959: 19959: if (std::__is_constant_evaluated()) 19959: return __x <= __y; 19959: 19959: return (unsigned int)__x <= (unsigned int)__y; 19959: } 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: 19959: template<> 19959: struct equal_to 19959: { 19959: template 19959: constexpr auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) == std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) == std::forward<_Up>(__u)) 19959: { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: 19959: template<> 19959: struct not_equal_to 19959: { 19959: template 19959: constexpr auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) != std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) != std::forward<_Up>(__u)) 19959: { return std::forward<_Tp>(__t) != std::forward<_Up>(__u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: 19959: template<> 19959: struct greater 19959: { 19959: template 19959: constexpr auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) > std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) > std::forward<_Up>(__u)) 19959: { 19959: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 19959: __ptr_cmp<_Tp, _Up>{}); 19959: } 19959: 19959: template 19959: constexpr bool 19959: operator()(_Tp* __t, _Up* __u) const noexcept 19959: { return greater>{}(__t, __u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: 19959: private: 19959: template 19959: static constexpr decltype(auto) 19959: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 19959: { return std::forward<_Tp>(__t) > std::forward<_Up>(__u); } 19959: 19959: template 19959: static constexpr bool 19959: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 19959: { 19959: return greater{}( 19959: static_cast(std::forward<_Tp>(__t)), 19959: static_cast(std::forward<_Up>(__u))); 19959: } 19959: 19959: 19959: template 19959: struct __not_overloaded2 : true_type { }; 19959: 19959: 19959: template 19959: struct __not_overloaded2<_Tp, _Up, __void_t< 19959: decltype(std::declval<_Tp>().operator>(std::declval<_Up>()))>> 19959: : false_type { }; 19959: 19959: 19959: template 19959: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 19959: 19959: 19959: template 19959: struct __not_overloaded<_Tp, _Up, __void_t< 19959: decltype(operator>(std::declval<_Tp>(), std::declval<_Up>()))>> 19959: : false_type { }; 19959: 19959: template 19959: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 19959: is_convertible<_Tp, const volatile void*>, 19959: is_convertible<_Up, const volatile void*>>; 19959: }; 19959: 19959: 19959: template<> 19959: struct less 19959: { 19959: template 19959: constexpr auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) < std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) < std::forward<_Up>(__u)) 19959: { 19959: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 19959: __ptr_cmp<_Tp, _Up>{}); 19959: } 19959: 19959: template 19959: constexpr bool 19959: operator()(_Tp* __t, _Up* __u) const noexcept 19959: { return less>{}(__t, __u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: 19959: private: 19959: template 19959: static constexpr decltype(auto) 19959: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 19959: { return std::forward<_Tp>(__t) < std::forward<_Up>(__u); } 19959: 19959: template 19959: static constexpr bool 19959: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 19959: { 19959: return less{}( 19959: static_cast(std::forward<_Tp>(__t)), 19959: static_cast(std::forward<_Up>(__u))); 19959: } 19959: 19959: 19959: template 19959: struct __not_overloaded2 : true_type { }; 19959: 19959: 19959: template 19959: struct __not_overloaded2<_Tp, _Up, __void_t< 19959: decltype(std::declval<_Tp>().operator<(std::declval<_Up>()))>> 19959: : false_type { }; 19959: 19959: 19959: template 19959: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 19959: 19959: 19959: template 19959: struct __not_overloaded<_Tp, _Up, __void_t< 19959: decltype(operator<(std::declval<_Tp>(), std::declval<_Up>()))>> 19959: : false_type { }; 19959: 19959: template 19959: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 19959: is_convertible<_Tp, const volatile void*>, 19959: is_convertible<_Up, const volatile void*>>; 19959: }; 19959: 19959: 19959: template<> 19959: struct greater_equal 19959: { 19959: template 19959: constexpr auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) >= std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) >= std::forward<_Up>(__u)) 19959: { 19959: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 19959: __ptr_cmp<_Tp, _Up>{}); 19959: } 19959: 19959: template 19959: constexpr bool 19959: operator()(_Tp* __t, _Up* __u) const noexcept 19959: { return greater_equal>{}(__t, __u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: 19959: private: 19959: template 19959: static constexpr decltype(auto) 19959: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 19959: { return std::forward<_Tp>(__t) >= std::forward<_Up>(__u); } 19959: 19959: template 19959: static constexpr bool 19959: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 19959: { 19959: return greater_equal{}( 19959: static_cast(std::forward<_Tp>(__t)), 19959: static_cast(std::forward<_Up>(__u))); 19959: } 19959: 19959: 19959: template 19959: struct __not_overloaded2 : true_type { }; 19959: 19959: 19959: template 19959: struct __not_overloaded2<_Tp, _Up, __void_t< 19959: decltype(std::declval<_Tp>().operator>=(std::declval<_Up>()))>> 19959: : false_type { }; 19959: 19959: 19959: template 19959: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 19959: 19959: 19959: template 19959: struct __not_overloaded<_Tp, _Up, __void_t< 19959: decltype(operator>=(std::declval<_Tp>(), std::declval<_Up>()))>> 19959: : false_type { }; 19959: 19959: template 19959: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 19959: is_convertible<_Tp, const volatile void*>, 19959: is_convertible<_Up, const volatile void*>>; 19959: }; 19959: 19959: 19959: template<> 19959: struct less_equal 19959: { 19959: template 19959: constexpr auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) <= std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) <= std::forward<_Up>(__u)) 19959: { 19959: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 19959: __ptr_cmp<_Tp, _Up>{}); 19959: } 19959: 19959: template 19959: constexpr bool 19959: operator()(_Tp* __t, _Up* __u) const noexcept 19959: { return less_equal>{}(__t, __u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: 19959: private: 19959: template 19959: static constexpr decltype(auto) 19959: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 19959: { return std::forward<_Tp>(__t) <= std::forward<_Up>(__u); } 19959: 19959: template 19959: static constexpr bool 19959: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 19959: { 19959: return less_equal{}( 19959: static_cast(std::forward<_Tp>(__t)), 19959: static_cast(std::forward<_Up>(__u))); 19959: } 19959: 19959: 19959: template 19959: struct __not_overloaded2 : true_type { }; 19959: 19959: 19959: template 19959: struct __not_overloaded2<_Tp, _Up, __void_t< 19959: decltype(std::declval<_Tp>().operator<=(std::declval<_Up>()))>> 19959: : false_type { }; 19959: 19959: 19959: template 19959: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 19959: 19959: 19959: template 19959: struct __not_overloaded<_Tp, _Up, __void_t< 19959: decltype(operator<=(std::declval<_Tp>(), std::declval<_Up>()))>> 19959: : false_type { }; 19959: 19959: template 19959: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 19959: is_convertible<_Tp, const volatile void*>, 19959: is_convertible<_Up, const volatile void*>>; 19959: }; 19959: # 781 "/usr/include/c++/13/bits/stl_function.h" 3 19959: template 19959: struct logical_and; 19959: 19959: template 19959: struct logical_or; 19959: 19959: template 19959: struct logical_not; 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: 19959: template 19959: struct logical_and : public binary_function<_Tp, _Tp, bool> 19959: { 19959: constexpr 19959: bool 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x && __y; } 19959: }; 19959: 19959: 19959: template 19959: struct logical_or : public binary_function<_Tp, _Tp, bool> 19959: { 19959: constexpr 19959: bool 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x || __y; } 19959: }; 19959: 19959: 19959: template 19959: struct logical_not : public unary_function<_Tp, bool> 19959: { 19959: constexpr 19959: bool 19959: operator()(const _Tp& __x) const 19959: { return !__x; } 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: 19959: template<> 19959: struct logical_and 19959: { 19959: template 19959: constexpr 19959: auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) && std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) && std::forward<_Up>(__u)) 19959: { return std::forward<_Tp>(__t) && std::forward<_Up>(__u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: 19959: template<> 19959: struct logical_or 19959: { 19959: template 19959: constexpr 19959: auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) || std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) || std::forward<_Up>(__u)) 19959: { return std::forward<_Tp>(__t) || std::forward<_Up>(__u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: 19959: template<> 19959: struct logical_not 19959: { 19959: template 19959: constexpr 19959: auto 19959: operator()(_Tp&& __t) const 19959: noexcept(noexcept(!std::forward<_Tp>(__t))) 19959: -> decltype(!std::forward<_Tp>(__t)) 19959: { return !std::forward<_Tp>(__t); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: struct bit_and; 19959: 19959: template 19959: struct bit_or; 19959: 19959: template 19959: struct bit_xor; 19959: 19959: template 19959: struct bit_not; 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: 19959: 19959: template 19959: struct bit_and : public binary_function<_Tp, _Tp, _Tp> 19959: { 19959: constexpr 19959: _Tp 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x & __y; } 19959: }; 19959: 19959: template 19959: struct bit_or : public binary_function<_Tp, _Tp, _Tp> 19959: { 19959: constexpr 19959: _Tp 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x | __y; } 19959: }; 19959: 19959: template 19959: struct bit_xor : public binary_function<_Tp, _Tp, _Tp> 19959: { 19959: constexpr 19959: _Tp 19959: operator()(const _Tp& __x, const _Tp& __y) const 19959: { return __x ^ __y; } 19959: }; 19959: 19959: template 19959: struct bit_not : public unary_function<_Tp, _Tp> 19959: { 19959: constexpr 19959: _Tp 19959: operator()(const _Tp& __x) const 19959: { return ~__x; } 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: template <> 19959: struct bit_and 19959: { 19959: template 19959: constexpr 19959: auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) & std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) & std::forward<_Up>(__u)) 19959: { return std::forward<_Tp>(__t) & std::forward<_Up>(__u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: template <> 19959: struct bit_or 19959: { 19959: template 19959: constexpr 19959: auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) | std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) | std::forward<_Up>(__u)) 19959: { return std::forward<_Tp>(__t) | std::forward<_Up>(__u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: template <> 19959: struct bit_xor 19959: { 19959: template 19959: constexpr 19959: auto 19959: operator()(_Tp&& __t, _Up&& __u) const 19959: noexcept(noexcept(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u))) 19959: -> decltype(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u)) 19959: { return std::forward<_Tp>(__t) ^ std::forward<_Up>(__u); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: template <> 19959: struct bit_not 19959: { 19959: template 19959: constexpr 19959: auto 19959: operator()(_Tp&& __t) const 19959: noexcept(noexcept(~std::forward<_Tp>(__t))) 19959: -> decltype(~std::forward<_Tp>(__t)) 19959: { return ~std::forward<_Tp>(__t); } 19959: 19959: typedef __is_transparent is_transparent; 19959: }; 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: # 1023 "/usr/include/c++/13/bits/stl_function.h" 3 19959: template 19959: class [[__deprecated__]] unary_negate 19959: : public unary_function 19959: { 19959: protected: 19959: _Predicate _M_pred; 19959: 19959: public: 19959: constexpr 19959: explicit 19959: unary_negate(const _Predicate& __x) : _M_pred(__x) { } 19959: 19959: constexpr 19959: bool 19959: operator()(const typename _Predicate::argument_type& __x) const 19959: { return !_M_pred(__x); } 19959: }; 19959: 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 19959: constexpr 19959: inline unary_negate<_Predicate> 19959: not1(const _Predicate& __pred) 19959: { return unary_negate<_Predicate>(__pred); } 19959: 19959: 19959: template 19959: class [[__deprecated__]] binary_negate 19959: : public binary_function 19959: { 19959: protected: 19959: _Predicate _M_pred; 19959: 19959: public: 19959: constexpr 19959: explicit 19959: binary_negate(const _Predicate& __x) : _M_pred(__x) { } 19959: 19959: constexpr 19959: bool 19959: operator()(const typename _Predicate::first_argument_type& __x, 19959: const typename _Predicate::second_argument_type& __y) const 19959: { return !_M_pred(__x, __y); } 19959: }; 19959: 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 19959: constexpr 19959: inline binary_negate<_Predicate> 19959: not2(const _Predicate& __pred) 19959: { return binary_negate<_Predicate>(__pred); } 19959: # 1104 "/usr/include/c++/13/bits/stl_function.h" 3 19959: template 19959: class pointer_to_unary_function : public unary_function<_Arg, _Result> 19959: { 19959: protected: 19959: _Result (*_M_ptr)(_Arg); 19959: 19959: public: 19959: pointer_to_unary_function() { } 19959: 19959: explicit 19959: pointer_to_unary_function(_Result (*__x)(_Arg)) 19959: : _M_ptr(__x) { } 19959: 19959: _Result 19959: operator()(_Arg __x) const 19959: { return _M_ptr(__x); } 19959: } __attribute__ ((__deprecated__)); 19959: 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 19959: inline pointer_to_unary_function<_Arg, _Result> 19959: ptr_fun(_Result (*__x)(_Arg)) 19959: { return pointer_to_unary_function<_Arg, _Result>(__x); } 19959: 19959: 19959: template 19959: class pointer_to_binary_function 19959: : public binary_function<_Arg1, _Arg2, _Result> 19959: { 19959: protected: 19959: _Result (*_M_ptr)(_Arg1, _Arg2); 19959: 19959: public: 19959: pointer_to_binary_function() { } 19959: 19959: explicit 19959: pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) 19959: : _M_ptr(__x) { } 19959: 19959: _Result 19959: operator()(_Arg1 __x, _Arg2 __y) const 19959: { return _M_ptr(__x, __y); } 19959: } __attribute__ ((__deprecated__)); 19959: 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 19959: inline pointer_to_binary_function<_Arg1, _Arg2, _Result> 19959: ptr_fun(_Result (*__x)(_Arg1, _Arg2)) 19959: { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } 19959: 19959: 19959: template 19959: struct _Identity 19959: : public unary_function<_Tp, _Tp> 19959: { 19959: _Tp& 19959: operator()(_Tp& __x) const 19959: { return __x; } 19959: 19959: const _Tp& 19959: operator()(const _Tp& __x) const 19959: { return __x; } 19959: }; 19959: 19959: 19959: template struct _Identity : _Identity<_Tp> { }; 19959: 19959: template 19959: struct _Select1st 19959: : public unary_function<_Pair, typename _Pair::first_type> 19959: { 19959: typename _Pair::first_type& 19959: operator()(_Pair& __x) const 19959: { return __x.first; } 19959: 19959: const typename _Pair::first_type& 19959: operator()(const _Pair& __x) const 19959: { return __x.first; } 19959: 19959: 19959: template 19959: typename _Pair2::first_type& 19959: operator()(_Pair2& __x) const 19959: { return __x.first; } 19959: 19959: template 19959: const typename _Pair2::first_type& 19959: operator()(const _Pair2& __x) const 19959: { return __x.first; } 19959: 19959: }; 19959: 19959: template 19959: struct _Select2nd 19959: : public unary_function<_Pair, typename _Pair::second_type> 19959: { 19959: typename _Pair::second_type& 19959: operator()(_Pair& __x) const 19959: { return __x.second; } 19959: 19959: const typename _Pair::second_type& 19959: operator()(const _Pair& __x) const 19959: { return __x.second; } 19959: }; 19959: # 1231 "/usr/include/c++/13/bits/stl_function.h" 3 19959: template 19959: class mem_fun_t : public unary_function<_Tp*, _Ret> 19959: { 19959: public: 19959: explicit 19959: mem_fun_t(_Ret (_Tp::*__pf)()) 19959: : _M_f(__pf) { } 19959: 19959: _Ret 19959: operator()(_Tp* __p) const 19959: { return (__p->*_M_f)(); } 19959: 19959: private: 19959: _Ret (_Tp::*_M_f)(); 19959: } __attribute__ ((__deprecated__)); 19959: 19959: 19959: template 19959: class const_mem_fun_t : public unary_function 19959: { 19959: public: 19959: explicit 19959: const_mem_fun_t(_Ret (_Tp::*__pf)() const) 19959: : _M_f(__pf) { } 19959: 19959: _Ret 19959: operator()(const _Tp* __p) const 19959: { return (__p->*_M_f)(); } 19959: 19959: private: 19959: _Ret (_Tp::*_M_f)() const; 19959: } __attribute__ ((__deprecated__)); 19959: 19959: 19959: template 19959: class mem_fun_ref_t : public unary_function<_Tp, _Ret> 19959: { 19959: public: 19959: explicit 19959: mem_fun_ref_t(_Ret (_Tp::*__pf)()) 19959: : _M_f(__pf) { } 19959: 19959: _Ret 19959: operator()(_Tp& __r) const 19959: { return (__r.*_M_f)(); } 19959: 19959: private: 19959: _Ret (_Tp::*_M_f)(); 19959: } __attribute__ ((__deprecated__)); 19959: 19959: 19959: template 19959: class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> 19959: { 19959: public: 19959: explicit 19959: const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) 19959: : _M_f(__pf) { } 19959: 19959: _Ret 19959: operator()(const _Tp& __r) const 19959: { return (__r.*_M_f)(); } 19959: 19959: private: 19959: _Ret (_Tp::*_M_f)() const; 19959: } __attribute__ ((__deprecated__)); 19959: 19959: 19959: template 19959: class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> 19959: { 19959: public: 19959: explicit 19959: mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) 19959: : _M_f(__pf) { } 19959: 19959: _Ret 19959: operator()(_Tp* __p, _Arg __x) const 19959: { return (__p->*_M_f)(__x); } 19959: 19959: private: 19959: _Ret (_Tp::*_M_f)(_Arg); 19959: } __attribute__ ((__deprecated__)); 19959: 19959: 19959: template 19959: class const_mem_fun1_t : public binary_function 19959: { 19959: public: 19959: explicit 19959: const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) 19959: : _M_f(__pf) { } 19959: 19959: _Ret 19959: operator()(const _Tp* __p, _Arg __x) const 19959: { return (__p->*_M_f)(__x); } 19959: 19959: private: 19959: _Ret (_Tp::*_M_f)(_Arg) const; 19959: } __attribute__ ((__deprecated__)); 19959: 19959: 19959: template 19959: class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 19959: { 19959: public: 19959: explicit 19959: mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) 19959: : _M_f(__pf) { } 19959: 19959: _Ret 19959: operator()(_Tp& __r, _Arg __x) const 19959: { return (__r.*_M_f)(__x); } 19959: 19959: private: 19959: _Ret (_Tp::*_M_f)(_Arg); 19959: } __attribute__ ((__deprecated__)); 19959: 19959: 19959: template 19959: class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 19959: { 19959: public: 19959: explicit 19959: const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) 19959: : _M_f(__pf) { } 19959: 19959: _Ret 19959: operator()(const _Tp& __r, _Arg __x) const 19959: { return (__r.*_M_f)(__x); } 19959: 19959: private: 19959: _Ret (_Tp::*_M_f)(_Arg) const; 19959: } __attribute__ ((__deprecated__)); 19959: 19959: 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 19959: inline mem_fun_t<_Ret, _Tp> 19959: mem_fun(_Ret (_Tp::*__f)()) 19959: { return mem_fun_t<_Ret, _Tp>(__f); } 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 19959: inline const_mem_fun_t<_Ret, _Tp> 19959: mem_fun(_Ret (_Tp::*__f)() const) 19959: { return const_mem_fun_t<_Ret, _Tp>(__f); } 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 19959: inline mem_fun_ref_t<_Ret, _Tp> 19959: mem_fun_ref(_Ret (_Tp::*__f)()) 19959: { return mem_fun_ref_t<_Ret, _Tp>(__f); } 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 19959: inline const_mem_fun_ref_t<_Ret, _Tp> 19959: mem_fun_ref(_Ret (_Tp::*__f)() const) 19959: { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 19959: inline mem_fun1_t<_Ret, _Tp, _Arg> 19959: mem_fun(_Ret (_Tp::*__f)(_Arg)) 19959: { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 19959: inline const_mem_fun1_t<_Ret, _Tp, _Arg> 19959: mem_fun(_Ret (_Tp::*__f)(_Arg) const) 19959: { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 19959: inline mem_fun1_ref_t<_Ret, _Tp, _Arg> 19959: mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) 19959: { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 19959: inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> 19959: mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) 19959: { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: 19959: 19959: template> 19959: struct __has_is_transparent 19959: { }; 19959: 19959: template 19959: struct __has_is_transparent<_Func, _SfinaeType, 19959: __void_t> 19959: { typedef void type; }; 19959: 19959: template 19959: using __has_is_transparent_t 19959: = typename __has_is_transparent<_Func, _SfinaeType>::type; 19959: 19959: 19959: 19959: } 19959: 19959: 19959: # 1 "/usr/include/c++/13/backward/binders.h" 1 3 19959: # 60 "/usr/include/c++/13/backward/binders.h" 3 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 107 "/usr/include/c++/13/backward/binders.h" 3 19959: template 19959: class binder1st 19959: : public unary_function 19959: { 19959: protected: 19959: _Operation op; 19959: typename _Operation::first_argument_type value; 19959: 19959: public: 19959: binder1st(const _Operation& __x, 19959: const typename _Operation::first_argument_type& __y) 19959: : op(__x), value(__y) { } 19959: 19959: typename _Operation::result_type 19959: operator()(const typename _Operation::second_argument_type& __x) const 19959: { return op(value, __x); } 19959: 19959: 19959: 19959: typename _Operation::result_type 19959: operator()(typename _Operation::second_argument_type& __x) const 19959: { return op(value, __x); } 19959: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 19959: 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 19959: inline binder1st<_Operation> 19959: bind1st(const _Operation& __fn, const _Tp& __x) 19959: { 19959: typedef typename _Operation::first_argument_type _Arg1_type; 19959: return binder1st<_Operation>(__fn, _Arg1_type(__x)); 19959: } 19959: 19959: 19959: template 19959: class binder2nd 19959: : public unary_function 19959: { 19959: protected: 19959: _Operation op; 19959: typename _Operation::second_argument_type value; 19959: 19959: public: 19959: binder2nd(const _Operation& __x, 19959: const typename _Operation::second_argument_type& __y) 19959: : op(__x), value(__y) { } 19959: 19959: typename _Operation::result_type 19959: operator()(const typename _Operation::first_argument_type& __x) const 19959: { return op(__x, value); } 19959: 19959: 19959: 19959: typename _Operation::result_type 19959: operator()(typename _Operation::first_argument_type& __x) const 19959: { return op(__x, value); } 19959: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 19959: 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 19959: inline binder2nd<_Operation> 19959: bind2nd(const _Operation& __fn, const _Tp& __x) 19959: { 19959: typedef typename _Operation::second_argument_type _Arg2_type; 19959: return binder2nd<_Operation>(__fn, _Arg2_type(__x)); 19959: } 19959: 19959: 19959: 19959: } 19959: 19959: #pragma GCC diagnostic pop 19959: # 1439 "/usr/include/c++/13/bits/stl_function.h" 2 3 19959: # 40 "/usr/include/c++/13/bits/refwrap.h" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 52 "/usr/include/c++/13/bits/refwrap.h" 3 19959: template 19959: struct _Maybe_unary_or_binary_function { }; 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: 19959: template 19959: struct _Maybe_unary_or_binary_function<_Res, _T1> 19959: : std::unary_function<_T1, _Res> { }; 19959: 19959: 19959: template 19959: struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> 19959: : std::binary_function<_T1, _T2, _Res> { }; 19959: 19959: #pragma GCC diagnostic pop 19959: 19959: template 19959: struct _Mem_fn_traits; 19959: 19959: template 19959: struct _Mem_fn_traits_base 19959: { 19959: using __result_type = _Res; 19959: using __maybe_type 19959: = _Maybe_unary_or_binary_function<_Res, _Class*, _ArgTypes...>; 19959: using __arity = integral_constant; 19959: }; 19959: # 103 "/usr/include/c++/13/bits/refwrap.h" 3 19959: 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; }; 19959: 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; }; 19959: 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; }; 19959: 19959: 19959: 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; }; 19959: 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; }; 19959: 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; }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: struct _Maybe_get_result_type 19959: { }; 19959: 19959: template 19959: struct _Maybe_get_result_type<_Functor, 19959: __void_t> 19959: { typedef typename _Functor::result_type result_type; }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Weak_result_type_impl 19959: : _Maybe_get_result_type<_Functor> 19959: { }; 19959: 19959: 19959: template 19959: struct _Weak_result_type_impl<_Res(_ArgTypes...) noexcept (_NE)> 19959: { typedef _Res result_type; }; 19959: 19959: 19959: template 19959: struct _Weak_result_type_impl<_Res(_ArgTypes......) noexcept (_NE)> 19959: { typedef _Res result_type; }; 19959: 19959: 19959: template 19959: struct _Weak_result_type_impl<_Res(*)(_ArgTypes...) noexcept (_NE)> 19959: { typedef _Res result_type; }; 19959: 19959: 19959: template 19959: struct 19959: _Weak_result_type_impl<_Res(*)(_ArgTypes......) noexcept (_NE)> 19959: { typedef _Res result_type; }; 19959: 19959: 19959: template::value> 19959: struct _Weak_result_type_memfun 19959: : _Weak_result_type_impl<_Functor> 19959: { }; 19959: 19959: 19959: template 19959: struct _Weak_result_type_memfun<_MemFunPtr, true> 19959: { 19959: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 19959: }; 19959: 19959: 19959: template 19959: struct _Weak_result_type_memfun<_Func _Class::*, false> 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Weak_result_type 19959: : _Weak_result_type_memfun::type> 19959: { }; 19959: 19959: 19959: 19959: template> 19959: struct _Refwrap_base_arg1 19959: { }; 19959: 19959: 19959: template 19959: struct _Refwrap_base_arg1<_Tp, 19959: __void_t> 19959: { 19959: typedef typename _Tp::argument_type argument_type; 19959: }; 19959: 19959: 19959: template> 19959: struct _Refwrap_base_arg2 19959: { }; 19959: 19959: 19959: template 19959: struct _Refwrap_base_arg2<_Tp, 19959: __void_t> 19959: { 19959: typedef typename _Tp::first_argument_type first_argument_type; 19959: typedef typename _Tp::second_argument_type second_argument_type; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Reference_wrapper_base 19959: : _Weak_result_type<_Tp>, _Refwrap_base_arg1<_Tp>, _Refwrap_base_arg2<_Tp> 19959: { }; 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: 19959: template 19959: struct _Reference_wrapper_base<_Res(_T1) noexcept (_NE)> 19959: : unary_function<_T1, _Res> 19959: { }; 19959: 19959: template 19959: struct _Reference_wrapper_base<_Res(_T1) const> 19959: : unary_function<_T1, _Res> 19959: { }; 19959: 19959: template 19959: struct _Reference_wrapper_base<_Res(_T1) volatile> 19959: : unary_function<_T1, _Res> 19959: { }; 19959: 19959: template 19959: struct _Reference_wrapper_base<_Res(_T1) const volatile> 19959: : unary_function<_T1, _Res> 19959: { }; 19959: 19959: 19959: template 19959: struct _Reference_wrapper_base<_Res(_T1, _T2) noexcept (_NE)> 19959: : binary_function<_T1, _T2, _Res> 19959: { }; 19959: 19959: template 19959: struct _Reference_wrapper_base<_Res(_T1, _T2) const> 19959: : binary_function<_T1, _T2, _Res> 19959: { }; 19959: 19959: template 19959: struct _Reference_wrapper_base<_Res(_T1, _T2) volatile> 19959: : binary_function<_T1, _T2, _Res> 19959: { }; 19959: 19959: template 19959: struct _Reference_wrapper_base<_Res(_T1, _T2) const volatile> 19959: : binary_function<_T1, _T2, _Res> 19959: { }; 19959: 19959: 19959: template 19959: struct _Reference_wrapper_base<_Res(*)(_T1) noexcept (_NE)> 19959: : unary_function<_T1, _Res> 19959: { }; 19959: 19959: 19959: template 19959: struct _Reference_wrapper_base<_Res(*)(_T1, _T2) noexcept (_NE)> 19959: : binary_function<_T1, _T2, _Res> 19959: { }; 19959: 19959: template::value> 19959: struct _Reference_wrapper_base_memfun 19959: : _Reference_wrapper_base<_Tp> 19959: { }; 19959: 19959: template 19959: struct _Reference_wrapper_base_memfun<_MemFunPtr, true> 19959: : _Mem_fn_traits<_MemFunPtr>::__maybe_type 19959: { 19959: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 19959: }; 19959: #pragma GCC diagnostic pop 19959: # 302 "/usr/include/c++/13/bits/refwrap.h" 3 19959: template 19959: class reference_wrapper 19959: 19959: 19959: 19959: : public _Reference_wrapper_base_memfun::type> 19959: 19959: { 19959: _Tp* _M_data; 19959: 19959: 19959: static _Tp* _S_fun(_Tp& __r) noexcept { return std::__addressof(__r); } 19959: 19959: static void _S_fun(_Tp&&) = delete; 19959: 19959: template> 19959: using __not_same 19959: = typename enable_if::value>::type; 19959: 19959: public: 19959: typedef _Tp type; 19959: 19959: 19959: 19959: 19959: template, typename 19959: = decltype(reference_wrapper::_S_fun(std::declval<_Up>()))> 19959: 19959: reference_wrapper(_Up&& __uref) 19959: noexcept(noexcept(reference_wrapper::_S_fun(std::declval<_Up>()))) 19959: : _M_data(reference_wrapper::_S_fun(std::forward<_Up>(__uref))) 19959: { } 19959: 19959: reference_wrapper(const reference_wrapper&) = default; 19959: 19959: reference_wrapper& 19959: operator=(const reference_wrapper&) = default; 19959: 19959: 19959: operator _Tp&() const noexcept 19959: { return this->get(); } 19959: 19959: 19959: _Tp& 19959: get() const noexcept 19959: { return *_M_data; } 19959: 19959: template 19959: 19959: typename __invoke_result<_Tp&, _Args...>::type 19959: operator()(_Args&&... __args) const 19959: noexcept(__is_nothrow_invocable<_Tp&, _Args...>::value) 19959: { 19959: 19959: 19959: 19959: 19959: return std::__invoke(get(), std::forward<_Args>(__args)...); 19959: } 19959: }; 19959: 19959: 19959: template 19959: reference_wrapper(_Tp&) -> reference_wrapper<_Tp>; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: inline reference_wrapper<_Tp> 19959: ref(_Tp& __t) noexcept 19959: { return reference_wrapper<_Tp>(__t); } 19959: 19959: 19959: template 19959: 19959: inline reference_wrapper 19959: cref(const _Tp& __t) noexcept 19959: { return reference_wrapper(__t); } 19959: 19959: template 19959: void ref(const _Tp&&) = delete; 19959: 19959: template 19959: void cref(const _Tp&&) = delete; 19959: 19959: 19959: template 19959: 19959: inline reference_wrapper<_Tp> 19959: ref(reference_wrapper<_Tp> __t) noexcept 19959: { return __t; } 19959: 19959: 19959: template 19959: 19959: inline reference_wrapper 19959: cref(reference_wrapper<_Tp> __t) noexcept 19959: { return { __t.get() }; } 19959: 19959: 19959: 19959: 19959: } 19959: # 68 "/usr/include/c++/13/deque" 2 3 19959: # 1 "/usr/include/c++/13/bits/range_access.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/range_access.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/range_access.h" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: inline constexpr auto 19959: begin(_Container& __cont) -> decltype(__cont.begin()) 19959: { return __cont.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: inline constexpr auto 19959: begin(const _Container& __cont) -> decltype(__cont.begin()) 19959: { return __cont.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: inline constexpr auto 19959: end(_Container& __cont) -> decltype(__cont.end()) 19959: { return __cont.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: inline constexpr auto 19959: end(const _Container& __cont) -> decltype(__cont.end()) 19959: { return __cont.end(); } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: inline constexpr _Tp* 19959: begin(_Tp (&__arr)[_Nm]) noexcept 19959: { return __arr; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: inline constexpr _Tp* 19959: end(_Tp (&__arr)[_Nm]) noexcept 19959: { return __arr + _Nm; } 19959: 19959: 19959: 19959: template class valarray; 19959: 19959: template _Tp* begin(valarray<_Tp>&) noexcept; 19959: template const _Tp* begin(const valarray<_Tp>&) noexcept; 19959: template _Tp* end(valarray<_Tp>&) noexcept; 19959: template const _Tp* end(const valarray<_Tp>&) noexcept; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: constexpr auto 19959: cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont))) 19959: -> decltype(std::begin(__cont)) 19959: { return std::begin(__cont); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: constexpr auto 19959: cend(const _Container& __cont) noexcept(noexcept(std::end(__cont))) 19959: -> decltype(std::end(__cont)) 19959: { return std::end(__cont); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: inline constexpr auto 19959: rbegin(_Container& __cont) -> decltype(__cont.rbegin()) 19959: { return __cont.rbegin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: inline constexpr auto 19959: rbegin(const _Container& __cont) -> decltype(__cont.rbegin()) 19959: { return __cont.rbegin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: inline constexpr auto 19959: rend(_Container& __cont) -> decltype(__cont.rend()) 19959: { return __cont.rend(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: inline constexpr auto 19959: rend(const _Container& __cont) -> decltype(__cont.rend()) 19959: { return __cont.rend(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr reverse_iterator<_Tp*> 19959: rbegin(_Tp (&__arr)[_Nm]) noexcept 19959: { return reverse_iterator<_Tp*>(__arr + _Nm); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr reverse_iterator<_Tp*> 19959: rend(_Tp (&__arr)[_Nm]) noexcept 19959: { return reverse_iterator<_Tp*>(__arr); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr reverse_iterator 19959: rbegin(initializer_list<_Tp> __il) noexcept 19959: { return reverse_iterator(__il.end()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline constexpr reverse_iterator 19959: rend(initializer_list<_Tp> __il) noexcept 19959: { return reverse_iterator(__il.begin()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: inline constexpr auto 19959: crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont)) 19959: { return std::rbegin(__cont); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__, __gnu__::__always_inline__]] 19959: inline constexpr auto 19959: crend(const _Container& __cont) -> decltype(std::rend(__cont)) 19959: { return std::rend(__cont); } 19959: # 261 "/usr/include/c++/13/bits/range_access.h" 3 19959: template 19959: [[nodiscard, __gnu__::__always_inline__]] 19959: constexpr auto 19959: size(const _Container& __cont) noexcept(noexcept(__cont.size())) 19959: -> decltype(__cont.size()) 19959: { return __cont.size(); } 19959: 19959: 19959: 19959: 19959: template 19959: [[nodiscard, __gnu__::__always_inline__]] 19959: constexpr size_t 19959: size(const _Tp (&)[_Nm]) noexcept 19959: { return _Nm; } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[nodiscard, __gnu__::__always_inline__]] 19959: constexpr auto 19959: empty(const _Container& __cont) noexcept(noexcept(__cont.empty())) 19959: -> decltype(__cont.empty()) 19959: { return __cont.empty(); } 19959: 19959: 19959: 19959: 19959: template 19959: [[nodiscard, __gnu__::__always_inline__]] 19959: constexpr bool 19959: empty(const _Tp (&)[_Nm]) noexcept 19959: { return false; } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[nodiscard, __gnu__::__always_inline__]] 19959: constexpr bool 19959: empty(initializer_list<_Tp> __il) noexcept 19959: { return __il.size() == 0;} 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[nodiscard, __gnu__::__always_inline__]] 19959: constexpr auto 19959: data(_Container& __cont) noexcept(noexcept(__cont.data())) 19959: -> decltype(__cont.data()) 19959: { return __cont.data(); } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[nodiscard, __gnu__::__always_inline__]] 19959: constexpr auto 19959: data(const _Container& __cont) noexcept(noexcept(__cont.data())) 19959: -> decltype(__cont.data()) 19959: { return __cont.data(); } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[nodiscard, __gnu__::__always_inline__]] 19959: constexpr _Tp* 19959: data(_Tp (&__array)[_Nm]) noexcept 19959: { return __array; } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[nodiscard, __gnu__::__always_inline__]] 19959: constexpr const _Tp* 19959: data(initializer_list<_Tp> __il) noexcept 19959: { return __il.begin(); } 19959: # 370 "/usr/include/c++/13/bits/range_access.h" 3 19959: 19959: } 19959: # 69 "/usr/include/c++/13/deque" 2 3 19959: # 1 "/usr/include/c++/13/bits/deque.tcc" 1 3 19959: # 61 "/usr/include/c++/13/bits/deque.tcc" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_default_initialize() 19959: { 19959: _Map_pointer __cur; 19959: try 19959: { 19959: for (__cur = this->_M_impl._M_start._M_node; 19959: __cur < this->_M_impl._M_finish._M_node; 19959: ++__cur) 19959: std::__uninitialized_default_a(*__cur, *__cur + _S_buffer_size(), 19959: _M_get_Tp_allocator()); 19959: std::__uninitialized_default_a(this->_M_impl._M_finish._M_first, 19959: this->_M_impl._M_finish._M_cur, 19959: _M_get_Tp_allocator()); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 19959: _M_get_Tp_allocator()); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: template 19959: deque<_Tp, _Alloc>& 19959: deque<_Tp, _Alloc>:: 19959: operator=(const deque& __x) 19959: { 19959: if (std::__addressof(__x) != this) 19959: { 19959: 19959: if (_Alloc_traits::_S_propagate_on_copy_assign()) 19959: { 19959: if (!_Alloc_traits::_S_always_equal() 19959: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 19959: { 19959: 19959: 19959: _M_replace_map(__x, __x.get_allocator()); 19959: std::__alloc_on_copy(_M_get_Tp_allocator(), 19959: __x._M_get_Tp_allocator()); 19959: return *this; 19959: } 19959: std::__alloc_on_copy(_M_get_Tp_allocator(), 19959: __x._M_get_Tp_allocator()); 19959: } 19959: 19959: const size_type __len = size(); 19959: if (__len >= __x.size()) 19959: _M_erase_at_end(std::copy(__x.begin(), __x.end(), 19959: this->_M_impl._M_start)); 19959: else 19959: { 19959: const_iterator __mid = __x.begin() + difference_type(__len); 19959: std::copy(__x.begin(), __mid, this->_M_impl._M_start); 19959: _M_range_insert_aux(this->_M_impl._M_finish, __mid, __x.end(), 19959: std::random_access_iterator_tag()); 19959: } 19959: } 19959: return *this; 19959: } 19959: 19959: 19959: template 19959: template 19959: 19959: typename deque<_Tp, _Alloc>::reference 19959: 19959: 19959: 19959: deque<_Tp, _Alloc>:: 19959: emplace_front(_Args&&... __args) 19959: { 19959: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 19959: { 19959: _Alloc_traits::construct(this->_M_impl, 19959: this->_M_impl._M_start._M_cur - 1, 19959: std::forward<_Args>(__args)...); 19959: --this->_M_impl._M_start._M_cur; 19959: } 19959: else 19959: _M_push_front_aux(std::forward<_Args>(__args)...); 19959: 19959: return front(); 19959: 19959: } 19959: 19959: template 19959: template 19959: 19959: typename deque<_Tp, _Alloc>::reference 19959: 19959: 19959: 19959: deque<_Tp, _Alloc>:: 19959: emplace_back(_Args&&... __args) 19959: { 19959: if (this->_M_impl._M_finish._M_cur 19959: != this->_M_impl._M_finish._M_last - 1) 19959: { 19959: _Alloc_traits::construct(this->_M_impl, 19959: this->_M_impl._M_finish._M_cur, 19959: std::forward<_Args>(__args)...); 19959: ++this->_M_impl._M_finish._M_cur; 19959: } 19959: else 19959: _M_push_back_aux(std::forward<_Args>(__args)...); 19959: 19959: return back(); 19959: 19959: } 19959: 19959: 19959: 19959: template 19959: template 19959: typename deque<_Tp, _Alloc>::iterator 19959: deque<_Tp, _Alloc>:: 19959: emplace(const_iterator __position, _Args&&... __args) 19959: { 19959: if (__position._M_cur == this->_M_impl._M_start._M_cur) 19959: { 19959: emplace_front(std::forward<_Args>(__args)...); 19959: return this->_M_impl._M_start; 19959: } 19959: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 19959: { 19959: emplace_back(std::forward<_Args>(__args)...); 19959: iterator __tmp = this->_M_impl._M_finish; 19959: --__tmp; 19959: return __tmp; 19959: } 19959: else 19959: return _M_insert_aux(__position._M_const_cast(), 19959: std::forward<_Args>(__args)...); 19959: } 19959: 19959: 19959: template 19959: typename deque<_Tp, _Alloc>::iterator 19959: deque<_Tp, _Alloc>:: 19959: 19959: insert(const_iterator __position, const value_type& __x) 19959: 19959: 19959: 19959: { 19959: if (__position._M_cur == this->_M_impl._M_start._M_cur) 19959: { 19959: push_front(__x); 19959: return this->_M_impl._M_start; 19959: } 19959: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 19959: { 19959: push_back(__x); 19959: iterator __tmp = this->_M_impl._M_finish; 19959: --__tmp; 19959: return __tmp; 19959: } 19959: else 19959: return _M_insert_aux(__position._M_const_cast(), __x); 19959: } 19959: 19959: template 19959: typename deque<_Tp, _Alloc>::iterator 19959: deque<_Tp, _Alloc>:: 19959: _M_erase(iterator __position) 19959: { 19959: iterator __next = __position; 19959: ++__next; 19959: const difference_type __index = __position - begin(); 19959: if (static_cast(__index) < (size() >> 1)) 19959: { 19959: if (__position != begin()) 19959: std::move_backward(begin(), __position, __next); 19959: pop_front(); 19959: } 19959: else 19959: { 19959: if (__next != end()) 19959: std::move(__next, end(), __position); 19959: pop_back(); 19959: } 19959: return begin() + __index; 19959: } 19959: 19959: template 19959: typename deque<_Tp, _Alloc>::iterator 19959: deque<_Tp, _Alloc>:: 19959: _M_erase(iterator __first, iterator __last) 19959: { 19959: if (__first == __last) 19959: return __first; 19959: else if (__first == begin() && __last == end()) 19959: { 19959: clear(); 19959: return end(); 19959: } 19959: else 19959: { 19959: const difference_type __n = __last - __first; 19959: const difference_type __elems_before = __first - begin(); 19959: if (static_cast(__elems_before) <= (size() - __n) / 2) 19959: { 19959: if (__first != begin()) 19959: std::move_backward(begin(), __first, __last); 19959: _M_erase_at_begin(begin() + __n); 19959: } 19959: else 19959: { 19959: if (__last != end()) 19959: std::move(__last, end(), __first); 19959: _M_erase_at_end(end() - __n); 19959: } 19959: return begin() + __elems_before; 19959: } 19959: } 19959: 19959: template 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_assign_aux(_InputIterator __first, _InputIterator __last, 19959: std::input_iterator_tag) 19959: { 19959: iterator __cur = begin(); 19959: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 19959: *__cur = *__first; 19959: if (__first == __last) 19959: _M_erase_at_end(__cur); 19959: else 19959: _M_range_insert_aux(end(), __first, __last, 19959: std::__iterator_category(__first)); 19959: } 19959: 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x) 19959: { 19959: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 19959: { 19959: iterator __new_start = _M_reserve_elements_at_front(__n); 19959: try 19959: { 19959: std::__uninitialized_fill_a(__new_start, this->_M_impl._M_start, 19959: __x, _M_get_Tp_allocator()); 19959: this->_M_impl._M_start = __new_start; 19959: } 19959: catch(...) 19959: { 19959: _M_destroy_nodes(__new_start._M_node, 19959: this->_M_impl._M_start._M_node); 19959: throw; 19959: } 19959: } 19959: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 19959: { 19959: iterator __new_finish = _M_reserve_elements_at_back(__n); 19959: try 19959: { 19959: std::__uninitialized_fill_a(this->_M_impl._M_finish, 19959: __new_finish, __x, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_finish = __new_finish; 19959: } 19959: catch(...) 19959: { 19959: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 19959: __new_finish._M_node + 1); 19959: throw; 19959: } 19959: } 19959: else 19959: _M_insert_aux(__pos, __n, __x); 19959: } 19959: 19959: 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_default_append(size_type __n) 19959: { 19959: if (__n) 19959: { 19959: iterator __new_finish = _M_reserve_elements_at_back(__n); 19959: try 19959: { 19959: std::__uninitialized_default_a(this->_M_impl._M_finish, 19959: __new_finish, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_finish = __new_finish; 19959: } 19959: catch(...) 19959: { 19959: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 19959: __new_finish._M_node + 1); 19959: throw; 19959: } 19959: } 19959: } 19959: 19959: template 19959: bool 19959: deque<_Tp, _Alloc>:: 19959: _M_shrink_to_fit() 19959: { 19959: const difference_type __front_capacity 19959: = (this->_M_impl._M_start._M_cur - this->_M_impl._M_start._M_first); 19959: if (__front_capacity == 0) 19959: return false; 19959: 19959: const difference_type __back_capacity 19959: = (this->_M_impl._M_finish._M_last - this->_M_impl._M_finish._M_cur); 19959: if (__front_capacity + __back_capacity < _S_buffer_size()) 19959: return false; 19959: 19959: return std::__shrink_to_fit_aux::_S_do_it(*this); 19959: } 19959: 19959: 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_fill_initialize(const value_type& __value) 19959: { 19959: _Map_pointer __cur; 19959: try 19959: { 19959: for (__cur = this->_M_impl._M_start._M_node; 19959: __cur < this->_M_impl._M_finish._M_node; 19959: ++__cur) 19959: std::__uninitialized_fill_a(*__cur, *__cur + _S_buffer_size(), 19959: __value, _M_get_Tp_allocator()); 19959: std::__uninitialized_fill_a(this->_M_impl._M_finish._M_first, 19959: this->_M_impl._M_finish._M_cur, 19959: __value, _M_get_Tp_allocator()); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 19959: _M_get_Tp_allocator()); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_range_initialize(_InputIterator __first, _InputIterator __last, 19959: std::input_iterator_tag) 19959: { 19959: this->_M_initialize_map(0); 19959: try 19959: { 19959: for (; __first != __last; ++__first) 19959: 19959: emplace_back(*__first); 19959: 19959: 19959: 19959: } 19959: catch(...) 19959: { 19959: clear(); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 19959: std::forward_iterator_tag) 19959: { 19959: const size_type __n = std::distance(__first, __last); 19959: this->_M_initialize_map(_S_check_init_len(__n, _M_get_Tp_allocator())); 19959: 19959: _Map_pointer __cur_node; 19959: try 19959: { 19959: for (__cur_node = this->_M_impl._M_start._M_node; 19959: __cur_node < this->_M_impl._M_finish._M_node; 19959: ++__cur_node) 19959: { 19959: if (__n < _S_buffer_size()) 19959: __builtin_unreachable(); 19959: 19959: _ForwardIterator __mid = __first; 19959: std::advance(__mid, _S_buffer_size()); 19959: std::__uninitialized_copy_a(__first, __mid, *__cur_node, 19959: _M_get_Tp_allocator()); 19959: __first = __mid; 19959: } 19959: std::__uninitialized_copy_a(__first, __last, 19959: this->_M_impl._M_finish._M_first, 19959: _M_get_Tp_allocator()); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(this->_M_impl._M_start, 19959: iterator(*__cur_node, __cur_node), 19959: _M_get_Tp_allocator()); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: template 19959: 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_push_back_aux(_Args&&... __args) 19959: 19959: 19959: 19959: 19959: 19959: { 19959: if (size() == max_size()) 19959: __throw_length_error( 19959: ("cannot create std::deque larger than max_size()")); 19959: 19959: _M_reserve_map_at_back(); 19959: *(this->_M_impl._M_finish._M_node + 1) = this->_M_allocate_node(); 19959: try 19959: { 19959: 19959: _Alloc_traits::construct(this->_M_impl, 19959: this->_M_impl._M_finish._M_cur, 19959: std::forward<_Args>(__args)...); 19959: 19959: 19959: 19959: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node 19959: + 1); 19959: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_first; 19959: } 19959: catch(...) 19959: { 19959: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + 1)); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: template 19959: 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_push_front_aux(_Args&&... __args) 19959: 19959: 19959: 19959: 19959: 19959: { 19959: if (size() == max_size()) 19959: __throw_length_error( 19959: ("cannot create std::deque larger than max_size()")); 19959: 19959: _M_reserve_map_at_front(); 19959: *(this->_M_impl._M_start._M_node - 1) = this->_M_allocate_node(); 19959: try 19959: { 19959: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node 19959: - 1); 19959: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_last - 1; 19959: 19959: _Alloc_traits::construct(this->_M_impl, 19959: this->_M_impl._M_start._M_cur, 19959: std::forward<_Args>(__args)...); 19959: 19959: 19959: 19959: } 19959: catch(...) 19959: { 19959: ++this->_M_impl._M_start; 19959: _M_deallocate_node(*(this->_M_impl._M_start._M_node - 1)); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: template 19959: void deque<_Tp, _Alloc>:: 19959: _M_pop_back_aux() 19959: { 19959: _M_deallocate_node(this->_M_impl._M_finish._M_first); 19959: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node - 1); 19959: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_last - 1; 19959: _Alloc_traits::destroy(_M_get_Tp_allocator(), 19959: this->_M_impl._M_finish._M_cur); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: void deque<_Tp, _Alloc>:: 19959: _M_pop_front_aux() 19959: { 19959: _Alloc_traits::destroy(_M_get_Tp_allocator(), 19959: this->_M_impl._M_start._M_cur); 19959: _M_deallocate_node(this->_M_impl._M_start._M_first); 19959: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node + 1); 19959: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_first; 19959: } 19959: 19959: template 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_range_insert_aux(iterator __pos, 19959: _InputIterator __first, _InputIterator __last, 19959: std::input_iterator_tag) 19959: { std::copy(__first, __last, std::inserter(*this, __pos)); } 19959: 19959: template 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_range_insert_aux(iterator __pos, 19959: _ForwardIterator __first, _ForwardIterator __last, 19959: std::forward_iterator_tag) 19959: { 19959: const size_type __n = std::distance(__first, __last); 19959: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 19959: { 19959: iterator __new_start = _M_reserve_elements_at_front(__n); 19959: try 19959: { 19959: std::__uninitialized_copy_a(__first, __last, __new_start, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_start = __new_start; 19959: } 19959: catch(...) 19959: { 19959: _M_destroy_nodes(__new_start._M_node, 19959: this->_M_impl._M_start._M_node); 19959: throw; 19959: } 19959: } 19959: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 19959: { 19959: iterator __new_finish = _M_reserve_elements_at_back(__n); 19959: try 19959: { 19959: std::__uninitialized_copy_a(__first, __last, 19959: this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_finish = __new_finish; 19959: } 19959: catch(...) 19959: { 19959: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 19959: __new_finish._M_node + 1); 19959: throw; 19959: } 19959: } 19959: else 19959: _M_insert_aux(__pos, __first, __last, __n); 19959: } 19959: 19959: template 19959: 19959: template 19959: typename deque<_Tp, _Alloc>::iterator 19959: deque<_Tp, _Alloc>:: 19959: _M_insert_aux(iterator __pos, _Args&&... __args) 19959: { 19959: value_type __x_copy(std::forward<_Args>(__args)...); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: difference_type __index = __pos - this->_M_impl._M_start; 19959: if (static_cast(__index) < size() / 2) 19959: { 19959: push_front(std::move(front())); 19959: iterator __front1 = this->_M_impl._M_start; 19959: ++__front1; 19959: iterator __front2 = __front1; 19959: ++__front2; 19959: __pos = this->_M_impl._M_start + __index; 19959: iterator __pos1 = __pos; 19959: ++__pos1; 19959: std::move(__front2, __pos1, __front1); 19959: } 19959: else 19959: { 19959: push_back(std::move(back())); 19959: iterator __back1 = this->_M_impl._M_finish; 19959: --__back1; 19959: iterator __back2 = __back1; 19959: --__back2; 19959: __pos = this->_M_impl._M_start + __index; 19959: std::move_backward(__pos, __back2, __back1); 19959: } 19959: *__pos = std::move(__x_copy); 19959: return __pos; 19959: } 19959: 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x) 19959: { 19959: const difference_type __elems_before = __pos - this->_M_impl._M_start; 19959: const size_type __length = this->size(); 19959: value_type __x_copy = __x; 19959: if (__elems_before < difference_type(__length / 2)) 19959: { 19959: iterator __new_start = _M_reserve_elements_at_front(__n); 19959: iterator __old_start = this->_M_impl._M_start; 19959: __pos = this->_M_impl._M_start + __elems_before; 19959: try 19959: { 19959: if (__elems_before >= difference_type(__n)) 19959: { 19959: iterator __start_n = (this->_M_impl._M_start 19959: + difference_type(__n)); 19959: std::__uninitialized_move_a(this->_M_impl._M_start, 19959: __start_n, __new_start, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_start = __new_start; 19959: std::move(__start_n, __pos, __old_start); 19959: std::fill(__pos - difference_type(__n), __pos, __x_copy); 19959: } 19959: else 19959: { 19959: std::__uninitialized_move_fill(this->_M_impl._M_start, 19959: __pos, __new_start, 19959: this->_M_impl._M_start, 19959: __x_copy, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_start = __new_start; 19959: std::fill(__old_start, __pos, __x_copy); 19959: } 19959: } 19959: catch(...) 19959: { 19959: _M_destroy_nodes(__new_start._M_node, 19959: this->_M_impl._M_start._M_node); 19959: throw; 19959: } 19959: } 19959: else 19959: { 19959: iterator __new_finish = _M_reserve_elements_at_back(__n); 19959: iterator __old_finish = this->_M_impl._M_finish; 19959: const difference_type __elems_after = 19959: difference_type(__length) - __elems_before; 19959: __pos = this->_M_impl._M_finish - __elems_after; 19959: try 19959: { 19959: if (__elems_after > difference_type(__n)) 19959: { 19959: iterator __finish_n = (this->_M_impl._M_finish 19959: - difference_type(__n)); 19959: std::__uninitialized_move_a(__finish_n, 19959: this->_M_impl._M_finish, 19959: this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_finish = __new_finish; 19959: std::move_backward(__pos, __finish_n, __old_finish); 19959: std::fill(__pos, __pos + difference_type(__n), __x_copy); 19959: } 19959: else 19959: { 19959: std::__uninitialized_fill_move(this->_M_impl._M_finish, 19959: __pos + difference_type(__n), 19959: __x_copy, __pos, 19959: this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_finish = __new_finish; 19959: std::fill(__pos, __old_finish, __x_copy); 19959: } 19959: } 19959: catch(...) 19959: { 19959: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 19959: __new_finish._M_node + 1); 19959: throw; 19959: } 19959: } 19959: } 19959: 19959: template 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_insert_aux(iterator __pos, 19959: _ForwardIterator __first, _ForwardIterator __last, 19959: size_type __n) 19959: { 19959: const difference_type __elemsbefore = __pos - this->_M_impl._M_start; 19959: const size_type __length = size(); 19959: if (static_cast(__elemsbefore) < __length / 2) 19959: { 19959: iterator __new_start = _M_reserve_elements_at_front(__n); 19959: iterator __old_start = this->_M_impl._M_start; 19959: __pos = this->_M_impl._M_start + __elemsbefore; 19959: try 19959: { 19959: if (__elemsbefore >= difference_type(__n)) 19959: { 19959: iterator __start_n = (this->_M_impl._M_start 19959: + difference_type(__n)); 19959: std::__uninitialized_move_a(this->_M_impl._M_start, 19959: __start_n, __new_start, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_start = __new_start; 19959: std::move(__start_n, __pos, __old_start); 19959: std::copy(__first, __last, __pos - difference_type(__n)); 19959: } 19959: else 19959: { 19959: _ForwardIterator __mid = __first; 19959: std::advance(__mid, difference_type(__n) - __elemsbefore); 19959: std::__uninitialized_move_copy(this->_M_impl._M_start, 19959: __pos, __first, __mid, 19959: __new_start, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_start = __new_start; 19959: std::copy(__mid, __last, __old_start); 19959: } 19959: } 19959: catch(...) 19959: { 19959: _M_destroy_nodes(__new_start._M_node, 19959: this->_M_impl._M_start._M_node); 19959: throw; 19959: } 19959: } 19959: else 19959: { 19959: iterator __new_finish = _M_reserve_elements_at_back(__n); 19959: iterator __old_finish = this->_M_impl._M_finish; 19959: const difference_type __elemsafter = 19959: difference_type(__length) - __elemsbefore; 19959: __pos = this->_M_impl._M_finish - __elemsafter; 19959: try 19959: { 19959: if (__elemsafter > difference_type(__n)) 19959: { 19959: iterator __finish_n = (this->_M_impl._M_finish 19959: - difference_type(__n)); 19959: std::__uninitialized_move_a(__finish_n, 19959: this->_M_impl._M_finish, 19959: this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_finish = __new_finish; 19959: std::move_backward(__pos, __finish_n, __old_finish); 19959: std::copy(__first, __last, __pos); 19959: } 19959: else 19959: { 19959: _ForwardIterator __mid = __first; 19959: std::advance(__mid, __elemsafter); 19959: std::__uninitialized_copy_move(__mid, __last, __pos, 19959: this->_M_impl._M_finish, 19959: this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_finish = __new_finish; 19959: std::copy(__first, __mid, __pos); 19959: } 19959: } 19959: catch(...) 19959: { 19959: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 19959: __new_finish._M_node + 1); 19959: throw; 19959: } 19959: } 19959: } 19959: 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_destroy_data_aux(iterator __first, iterator __last) 19959: { 19959: for (_Map_pointer __node = __first._M_node + 1; 19959: __node < __last._M_node; ++__node) 19959: std::_Destroy(*__node, *__node + _S_buffer_size(), 19959: _M_get_Tp_allocator()); 19959: 19959: if (__first._M_node != __last._M_node) 19959: { 19959: std::_Destroy(__first._M_cur, __first._M_last, 19959: _M_get_Tp_allocator()); 19959: std::_Destroy(__last._M_first, __last._M_cur, 19959: _M_get_Tp_allocator()); 19959: } 19959: else 19959: std::_Destroy(__first._M_cur, __last._M_cur, 19959: _M_get_Tp_allocator()); 19959: } 19959: 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_new_elements_at_front(size_type __new_elems) 19959: { 19959: if (this->max_size() - this->size() < __new_elems) 19959: __throw_length_error(("deque::_M_new_elements_at_front")); 19959: 19959: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 19959: / _S_buffer_size()); 19959: _M_reserve_map_at_front(__new_nodes); 19959: size_type __i; 19959: try 19959: { 19959: for (__i = 1; __i <= __new_nodes; ++__i) 19959: *(this->_M_impl._M_start._M_node - __i) = this->_M_allocate_node(); 19959: } 19959: catch(...) 19959: { 19959: for (size_type __j = 1; __j < __i; ++__j) 19959: _M_deallocate_node(*(this->_M_impl._M_start._M_node - __j)); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_new_elements_at_back(size_type __new_elems) 19959: { 19959: if (this->max_size() - this->size() < __new_elems) 19959: __throw_length_error(("deque::_M_new_elements_at_back")); 19959: 19959: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 19959: / _S_buffer_size()); 19959: _M_reserve_map_at_back(__new_nodes); 19959: size_type __i; 19959: try 19959: { 19959: for (__i = 1; __i <= __new_nodes; ++__i) 19959: *(this->_M_impl._M_finish._M_node + __i) = this->_M_allocate_node(); 19959: } 19959: catch(...) 19959: { 19959: for (size_type __j = 1; __j < __i; ++__j) 19959: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + __j)); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: void 19959: deque<_Tp, _Alloc>:: 19959: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front) 19959: { 19959: const size_type __old_num_nodes 19959: = this->_M_impl._M_finish._M_node - this->_M_impl._M_start._M_node + 1; 19959: const size_type __new_num_nodes = __old_num_nodes + __nodes_to_add; 19959: 19959: _Map_pointer __new_nstart; 19959: if (this->_M_impl._M_map_size > 2 * __new_num_nodes) 19959: { 19959: __new_nstart = this->_M_impl._M_map + (this->_M_impl._M_map_size 19959: - __new_num_nodes) / 2 19959: + (__add_at_front ? __nodes_to_add : 0); 19959: if (__new_nstart < this->_M_impl._M_start._M_node) 19959: std::copy(this->_M_impl._M_start._M_node, 19959: this->_M_impl._M_finish._M_node + 1, 19959: __new_nstart); 19959: else 19959: std::copy_backward(this->_M_impl._M_start._M_node, 19959: this->_M_impl._M_finish._M_node + 1, 19959: __new_nstart + __old_num_nodes); 19959: } 19959: else 19959: { 19959: size_type __new_map_size = this->_M_impl._M_map_size 19959: + std::max(this->_M_impl._M_map_size, 19959: __nodes_to_add) + 2; 19959: 19959: _Map_pointer __new_map = this->_M_allocate_map(__new_map_size); 19959: __new_nstart = __new_map + (__new_map_size - __new_num_nodes) / 2 19959: + (__add_at_front ? __nodes_to_add : 0); 19959: std::copy(this->_M_impl._M_start._M_node, 19959: this->_M_impl._M_finish._M_node + 1, 19959: __new_nstart); 19959: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 19959: 19959: this->_M_impl._M_map = __new_map; 19959: this->_M_impl._M_map_size = __new_map_size; 19959: } 19959: 19959: this->_M_impl._M_start._M_set_node(__new_nstart); 19959: this->_M_impl._M_finish._M_set_node(__new_nstart + __old_num_nodes - 1); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: void 19959: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __first, 19959: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __last, 19959: const _VTp& __value) 19959: { 19959: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 19959: if (__first._M_node != __last._M_node) 19959: { 19959: std::__fill_a1(__first._M_cur, __first._M_last, __value); 19959: 19959: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 19959: __node < __last._M_node; ++__node) 19959: std::__fill_a1(*__node, *__node + _Iter::_S_buffer_size(), __value); 19959: 19959: std::__fill_a1(__last._M_first, __last._M_cur, __value); 19959: } 19959: else 19959: std::__fill_a1(__first._M_cur, __last._M_cur, __value); 19959: } 19959: 19959: template 19959: _OI 19959: __copy_move_dit(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 19959: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 19959: _OI __result) 19959: { 19959: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 19959: if (__first._M_node != __last._M_node) 19959: { 19959: __result 19959: = std::__copy_move_a1<_IsMove>(__first._M_cur, __first._M_last, 19959: __result); 19959: 19959: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 19959: __node != __last._M_node; ++__node) 19959: __result 19959: = std::__copy_move_a1<_IsMove>(*__node, 19959: *__node + _Iter::_S_buffer_size(), 19959: __result); 19959: 19959: return std::__copy_move_a1<_IsMove>(__last._M_first, __last._M_cur, 19959: __result); 19959: } 19959: 19959: return std::__copy_move_a1<_IsMove>(__first._M_cur, __last._M_cur, 19959: __result); 19959: } 19959: 19959: template 19959: _OI 19959: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 19959: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 19959: _OI __result) 19959: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 19959: 19959: template 19959: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 19959: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 19959: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 19959: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 19959: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 19959: 19959: template 19959: typename __gnu_cxx::__enable_if< 19959: __is_random_access_iter<_II>::__value, 19959: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 19959: __copy_move_a1(_II __first, _II __last, 19959: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 19959: { 19959: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 19959: typedef typename _Iter::difference_type difference_type; 19959: 19959: difference_type __len = __last - __first; 19959: while (__len > 0) 19959: { 19959: const difference_type __clen 19959: = std::min(__len, __result._M_last - __result._M_cur); 19959: std::__copy_move_a1<_IsMove>(__first, __first + __clen, 19959: __result._M_cur); 19959: 19959: __first += __clen; 19959: __result += __clen; 19959: __len -= __clen; 19959: } 19959: 19959: return __result; 19959: } 19959: 19959: template 19959: typename __gnu_cxx::__enable_if< 19959: __is_char<_CharT>::__value, 19959: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 19959: __copy_move_a2( 19959: istreambuf_iterator<_CharT, char_traits<_CharT> > __first, 19959: istreambuf_iterator<_CharT, char_traits<_CharT> > __last, 19959: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result) 19959: { 19959: if (__first == __last) 19959: return __result; 19959: 19959: for (;;) 19959: { 19959: const std::ptrdiff_t __len = __result._M_last - __result._M_cur; 19959: const std::ptrdiff_t __nb 19959: = std::__copy_n_a(__first, __len, __result._M_cur, false) 19959: - __result._M_cur; 19959: __result += __nb; 19959: 19959: if (__nb != __len) 19959: break; 19959: } 19959: 19959: return __result; 19959: } 19959: 19959: template 19959: typename __gnu_cxx::__enable_if< 19959: __is_char<_CharT>::__value, 19959: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 19959: __copy_n_a( 19959: istreambuf_iterator<_CharT, char_traits<_CharT> > __it, _Size __size, 19959: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result, 19959: bool __strict) 19959: { 19959: if (__size == 0) 19959: return __result; 19959: 19959: do 19959: { 19959: const _Size __len 19959: = std::min<_Size>(__result._M_last - __result._M_cur, __size); 19959: std::__copy_n_a(__it, __len, __result._M_cur, __strict); 19959: __result += __len; 19959: __size -= __len; 19959: } 19959: while (__size != 0); 19959: return __result; 19959: } 19959: 19959: template 19959: _OI 19959: __copy_move_backward_dit( 19959: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 19959: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 19959: _OI __result) 19959: { 19959: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 19959: if (__first._M_node != __last._M_node) 19959: { 19959: __result = std::__copy_move_backward_a1<_IsMove>( 19959: __last._M_first, __last._M_cur, __result); 19959: 19959: for (typename _Iter::_Map_pointer __node = __last._M_node - 1; 19959: __node != __first._M_node; --__node) 19959: __result = std::__copy_move_backward_a1<_IsMove>( 19959: *__node, *__node + _Iter::_S_buffer_size(), __result); 19959: 19959: return std::__copy_move_backward_a1<_IsMove>( 19959: __first._M_cur, __first._M_last, __result); 19959: } 19959: 19959: return std::__copy_move_backward_a1<_IsMove>( 19959: __first._M_cur, __last._M_cur, __result); 19959: } 19959: 19959: template 19959: _OI 19959: __copy_move_backward_a1( 19959: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 19959: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 19959: _OI __result) 19959: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 19959: 19959: template 19959: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 19959: __copy_move_backward_a1( 19959: std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 19959: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 19959: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 19959: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 19959: 19959: template 19959: typename __gnu_cxx::__enable_if< 19959: __is_random_access_iter<_II>::__value, 19959: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 19959: __copy_move_backward_a1(_II __first, _II __last, 19959: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 19959: { 19959: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 19959: typedef typename _Iter::difference_type difference_type; 19959: 19959: difference_type __len = __last - __first; 19959: while (__len > 0) 19959: { 19959: difference_type __rlen = __result._M_cur - __result._M_first; 19959: _Tp* __rend = __result._M_cur; 19959: if (!__rlen) 19959: { 19959: __rlen = _Iter::_S_buffer_size(); 19959: __rend = *(__result._M_node - 1) + __rlen; 19959: } 19959: 19959: const difference_type __clen = std::min(__len, __rlen); 19959: std::__copy_move_backward_a1<_IsMove>(__last - __clen, __last, __rend); 19959: 19959: __last -= __clen; 19959: __result -= __clen; 19959: __len -= __clen; 19959: } 19959: 19959: return __result; 19959: } 19959: 19959: template 19959: bool 19959: __equal_dit( 19959: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __first1, 19959: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __last1, 19959: _II __first2) 19959: { 19959: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 19959: if (__first1._M_node != __last1._M_node) 19959: { 19959: if (!std::__equal_aux1(__first1._M_cur, __first1._M_last, __first2)) 19959: return false; 19959: 19959: __first2 += __first1._M_last - __first1._M_cur; 19959: for (typename _Iter::_Map_pointer __node = __first1._M_node + 1; 19959: __node != __last1._M_node; 19959: __first2 += _Iter::_S_buffer_size(), ++__node) 19959: if (!std::__equal_aux1(*__node, *__node + _Iter::_S_buffer_size(), 19959: __first2)) 19959: return false; 19959: 19959: return std::__equal_aux1(__last1._M_first, __last1._M_cur, __first2); 19959: } 19959: 19959: return std::__equal_aux1(__first1._M_cur, __last1._M_cur, __first2); 19959: } 19959: 19959: template 19959: typename __gnu_cxx::__enable_if< 19959: __is_random_access_iter<_II>::__value, bool>::__type 19959: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first1, 19959: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last1, 19959: _II __first2) 19959: { return std::__equal_dit(__first1, __last1, __first2); } 19959: 19959: template 19959: bool 19959: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 19959: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 19959: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2) 19959: { return std::__equal_dit(__first1, __last1, __first2); } 19959: 19959: template 19959: typename __gnu_cxx::__enable_if< 19959: __is_random_access_iter<_II>::__value, bool>::__type 19959: __equal_aux1(_II __first1, _II __last1, 19959: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first2) 19959: { 19959: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 19959: typedef typename _Iter::difference_type difference_type; 19959: 19959: difference_type __len = __last1 - __first1; 19959: while (__len > 0) 19959: { 19959: const difference_type __clen 19959: = std::min(__len, __first2._M_last - __first2._M_cur); 19959: if (!std::__equal_aux1(__first1, __first1 + __clen, __first2._M_cur)) 19959: return false; 19959: 19959: __first1 += __clen; 19959: __len -= __clen; 19959: __first2 += __clen; 19959: } 19959: 19959: return true; 19959: } 19959: 19959: template 19959: int 19959: __lex_cmp_dit( 19959: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __first1, 19959: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __last1, 19959: const _Tp2* __first2, const _Tp2* __last2) 19959: { 19959: const bool __simple = 19959: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 19959: && __is_pointer<_Ptr>::__value 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ); 19959: typedef std::__lexicographical_compare<__simple> _Lc; 19959: 19959: while (__first1._M_node != __last1._M_node) 19959: { 19959: const ptrdiff_t __len1 = __first1._M_last - __first1._M_cur; 19959: const ptrdiff_t __len2 = __last2 - __first2; 19959: const ptrdiff_t __len = std::min(__len1, __len2); 19959: 19959: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_last, 19959: __first2, __first2 + __len)) 19959: return __ret; 19959: 19959: __first1 += __len; 19959: __first2 += __len; 19959: } 19959: return _Lc::__3way(__first1._M_cur, __last1._M_cur, 19959: __first2, __last2); 19959: } 19959: 19959: template 19959: inline bool 19959: __lexicographical_compare_aux1( 19959: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 19959: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 19959: _Tp2* __first2, _Tp2* __last2) 19959: { return std::__lex_cmp_dit(__first1, __last1, __first2, __last2) < 0; } 19959: 19959: template 19959: inline bool 19959: __lexicographical_compare_aux1(_Tp1* __first1, _Tp1* __last1, 19959: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 19959: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 19959: { return std::__lex_cmp_dit(__first2, __last2, __first1, __last1) > 0; } 19959: 19959: template 19959: inline bool 19959: __lexicographical_compare_aux1( 19959: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 19959: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 19959: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 19959: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 19959: { 19959: const bool __simple = 19959: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 19959: && __is_pointer<_Ptr1>::__value 19959: && __is_pointer<_Ptr2>::__value 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ); 19959: typedef std::__lexicographical_compare<__simple> _Lc; 19959: 19959: while (__first1 != __last1) 19959: { 19959: const ptrdiff_t __len2 = __first2._M_node == __last2._M_node 19959: ? __last2._M_cur - __first2._M_cur 19959: : __first2._M_last - __first2._M_cur; 19959: if (__len2 == 0) 19959: return false; 19959: const ptrdiff_t __len1 = __first1._M_node == __last1._M_node 19959: ? __last1._M_cur - __first1._M_cur 19959: : __first1._M_last - __first1._M_cur; 19959: const ptrdiff_t __len = std::min(__len1, __len2); 19959: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_cur + __len, 19959: __first2._M_cur, __first2._M_cur + __len)) 19959: return __ret < 0; 19959: 19959: __first1 += __len; 19959: __first2 += __len; 19959: } 19959: 19959: return __last2 != __first2; 19959: } 19959: 19959: 19959: } 19959: # 70 "/usr/include/c++/13/deque" 2 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/memory_resource.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/memory_resource.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/memory_resource.h" 3 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/cstddef" 1 3 19959: # 42 "/usr/include/c++/13/cstddef" 3 19959: 19959: # 43 "/usr/include/c++/13/cstddef" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 145 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 3 4 19959: typedef int ptrdiff_t; 19959: # 214 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 3 4 19959: typedef unsigned int size_t; 19959: # 425 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 3 4 19959: typedef struct { 19959: long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); 19959: long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); 19959: # 436 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 3 4 19959: } max_align_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef decltype(nullptr) nullptr_t; 19959: # 51 "/usr/include/c++/13/cstddef" 2 3 19959: 19959: extern "C++" 19959: { 19959: 19959: namespace std 19959: { 19959: 19959: using ::max_align_t; 19959: } 19959: 19959: 19959: 19959: namespace std 19959: { 19959: 19959: 19959: 19959: 19959: enum class byte : unsigned char {}; 19959: 19959: template struct __byte_operand { }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: 19959: 19959: 19959: template<> struct __byte_operand { using __type = byte; }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: template<> struct __byte_operand { using __type = byte; }; 19959: # 108 "/usr/include/c++/13/cstddef" 3 19959: template 19959: struct __byte_operand 19959: : __byte_operand<_IntegerType> { }; 19959: template 19959: struct __byte_operand 19959: : __byte_operand<_IntegerType> { }; 19959: template 19959: struct __byte_operand 19959: : __byte_operand<_IntegerType> { }; 19959: 19959: template 19959: using __byte_op_t = typename __byte_operand<_IntegerType>::__type; 19959: 19959: template 19959: [[__gnu__::__always_inline__]] 19959: constexpr __byte_op_t<_IntegerType> 19959: operator<<(byte __b, _IntegerType __shift) noexcept 19959: { return (byte)(unsigned char)((unsigned)__b << __shift); } 19959: 19959: template 19959: [[__gnu__::__always_inline__]] 19959: constexpr __byte_op_t<_IntegerType> 19959: operator>>(byte __b, _IntegerType __shift) noexcept 19959: { return (byte)(unsigned char)((unsigned)__b >> __shift); } 19959: 19959: [[__gnu__::__always_inline__]] 19959: constexpr byte 19959: operator|(byte __l, byte __r) noexcept 19959: { return (byte)(unsigned char)((unsigned)__l | (unsigned)__r); } 19959: 19959: [[__gnu__::__always_inline__]] 19959: constexpr byte 19959: operator&(byte __l, byte __r) noexcept 19959: { return (byte)(unsigned char)((unsigned)__l & (unsigned)__r); } 19959: 19959: [[__gnu__::__always_inline__]] 19959: constexpr byte 19959: operator^(byte __l, byte __r) noexcept 19959: { return (byte)(unsigned char)((unsigned)__l ^ (unsigned)__r); } 19959: 19959: [[__gnu__::__always_inline__]] 19959: constexpr byte 19959: operator~(byte __b) noexcept 19959: { return (byte)(unsigned char)~(unsigned)__b; } 19959: 19959: template 19959: [[__gnu__::__always_inline__]] 19959: constexpr __byte_op_t<_IntegerType>& 19959: operator<<=(byte& __b, _IntegerType __shift) noexcept 19959: { return __b = __b << __shift; } 19959: 19959: template 19959: [[__gnu__::__always_inline__]] 19959: constexpr __byte_op_t<_IntegerType>& 19959: operator>>=(byte& __b, _IntegerType __shift) noexcept 19959: { return __b = __b >> __shift; } 19959: 19959: [[__gnu__::__always_inline__]] 19959: constexpr byte& 19959: operator|=(byte& __l, byte __r) noexcept 19959: { return __l = __l | __r; } 19959: 19959: [[__gnu__::__always_inline__]] 19959: constexpr byte& 19959: operator&=(byte& __l, byte __r) noexcept 19959: { return __l = __l & __r; } 19959: 19959: [[__gnu__::__always_inline__]] 19959: constexpr byte& 19959: operator^=(byte& __l, byte __r) noexcept 19959: { return __l = __l ^ __r; } 19959: 19959: template 19959: [[nodiscard,__gnu__::__always_inline__]] 19959: constexpr _IntegerType 19959: to_integer(__byte_op_t<_IntegerType> __b) noexcept 19959: { return _IntegerType(__b); } 19959: 19959: 19959: } 19959: 19959: } 19959: # 39 "/usr/include/c++/13/bits/memory_resource.h" 2 3 19959: 19959: # 1 "/usr/include/c++/13/bits/uses_allocator.h" 1 3 19959: # 40 "/usr/include/c++/13/bits/uses_allocator.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: struct __erased_type { }; 19959: 19959: 19959: 19959: 19959: template 19959: using __is_erased_or_convertible 19959: = __or_, is_same<_Tp, __erased_type>>; 19959: 19959: 19959: struct allocator_arg_t { explicit allocator_arg_t() = default; }; 19959: 19959: inline constexpr allocator_arg_t allocator_arg = 19959: allocator_arg_t(); 19959: 19959: template> 19959: struct __uses_allocator_helper 19959: : false_type { }; 19959: 19959: template 19959: struct __uses_allocator_helper<_Tp, _Alloc, 19959: __void_t> 19959: : __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type 19959: { }; 19959: 19959: 19959: template 19959: struct uses_allocator 19959: : __uses_allocator_helper<_Tp, _Alloc>::type 19959: { }; 19959: 19959: struct __uses_alloc_base { }; 19959: 19959: struct __uses_alloc0 : __uses_alloc_base 19959: { 19959: struct _Sink { void operator=(const void*) { } } _M_a; 19959: }; 19959: 19959: template 19959: struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; 19959: 19959: template 19959: struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; 19959: 19959: template 19959: struct __uses_alloc; 19959: 19959: template 19959: struct __uses_alloc 19959: : __conditional_t< 19959: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, 19959: __uses_alloc1<_Alloc>, 19959: __uses_alloc2<_Alloc>> 19959: { 19959: 19959: 19959: static_assert(__or_< 19959: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, 19959: is_constructible<_Tp, _Args..., const _Alloc&>>::value, 19959: "construction with an allocator must be possible" 19959: " if uses_allocator is true"); 19959: }; 19959: 19959: template 19959: struct __uses_alloc 19959: : __uses_alloc0 { }; 19959: 19959: template 19959: using __uses_alloc_t = 19959: __uses_alloc::value, _Tp, _Alloc, _Args...>; 19959: 19959: template 19959: 19959: inline __uses_alloc_t<_Tp, _Alloc, _Args...> 19959: __use_alloc(const _Alloc& __a) 19959: { 19959: __uses_alloc_t<_Tp, _Alloc, _Args...> __ret; 19959: __ret._M_a = std::__addressof(__a); 19959: return __ret; 19959: } 19959: 19959: template 19959: void 19959: __use_alloc(const _Alloc&&) = delete; 19959: 19959: 19959: template 19959: inline constexpr bool uses_allocator_v = 19959: uses_allocator<_Tp, _Alloc>::value; 19959: 19959: 19959: template class _Predicate, 19959: typename _Tp, typename _Alloc, typename... _Args> 19959: struct __is_uses_allocator_predicate 19959: : __conditional_t::value, 19959: __or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, 19959: _Predicate<_Tp, _Args..., _Alloc>>, 19959: _Predicate<_Tp, _Args...>> { }; 19959: 19959: template 19959: struct __is_uses_allocator_constructible 19959: : __is_uses_allocator_predicate 19959: { }; 19959: 19959: 19959: template 19959: inline constexpr bool __is_uses_allocator_constructible_v = 19959: __is_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 19959: 19959: 19959: template 19959: struct __is_nothrow_uses_allocator_constructible 19959: : __is_uses_allocator_predicate 19959: { }; 19959: 19959: 19959: 19959: template 19959: inline constexpr bool 19959: __is_nothrow_uses_allocator_constructible_v = 19959: __is_nothrow_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 19959: 19959: 19959: template 19959: void __uses_allocator_construct_impl(__uses_alloc0, _Tp* __ptr, 19959: _Args&&... __args) 19959: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } 19959: 19959: template 19959: void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, 19959: _Args&&... __args) 19959: { 19959: ::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, 19959: std::forward<_Args>(__args)...); 19959: } 19959: 19959: template 19959: void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, 19959: _Args&&... __args) 19959: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } 19959: 19959: template 19959: void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, 19959: _Args&&... __args) 19959: { 19959: std::__uses_allocator_construct_impl( 19959: std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, 19959: std::forward<_Args>(__args)...); 19959: } 19959: 19959: 19959: 19959: } 19959: # 41 "/usr/include/c++/13/bits/memory_resource.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/uses_allocator_args.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/uses_allocator_args.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/uses_allocator_args.h" 3 19959: # 42 "/usr/include/c++/13/bits/memory_resource.h" 2 3 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/tuple" 1 3 19959: # 32 "/usr/include/c++/13/tuple" 3 19959: 19959: # 33 "/usr/include/c++/13/tuple" 3 19959: # 48 "/usr/include/c++/13/tuple" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: class tuple; 19959: 19959: template 19959: struct __is_empty_non_tuple : is_empty<_Tp> { }; 19959: 19959: 19959: template 19959: struct __is_empty_non_tuple> : false_type { }; 19959: 19959: 19959: template 19959: using __empty_not_final 19959: = __conditional_t<__is_final(_Tp), false_type, 19959: __is_empty_non_tuple<_Tp>>; 19959: 19959: template::value> 19959: struct _Head_base; 19959: 19959: 19959: template 19959: struct _Head_base<_Idx, _Head, true> 19959: { 19959: constexpr _Head_base() 19959: : _M_head_impl() { } 19959: 19959: constexpr _Head_base(const _Head& __h) 19959: : _M_head_impl(__h) { } 19959: 19959: constexpr _Head_base(const _Head_base&) = default; 19959: constexpr _Head_base(_Head_base&&) = default; 19959: 19959: template 19959: constexpr _Head_base(_UHead&& __h) 19959: : _M_head_impl(std::forward<_UHead>(__h)) { } 19959: 19959: 19959: _Head_base(allocator_arg_t, __uses_alloc0) 19959: : _M_head_impl() { } 19959: 19959: template 19959: 19959: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 19959: : _M_head_impl(allocator_arg, *__a._M_a) { } 19959: 19959: template 19959: 19959: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 19959: : _M_head_impl(*__a._M_a) { } 19959: 19959: template 19959: 19959: _Head_base(__uses_alloc0, _UHead&& __uhead) 19959: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 19959: 19959: template 19959: 19959: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 19959: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 19959: { } 19959: 19959: template 19959: 19959: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 19959: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 19959: 19959: static constexpr _Head& 19959: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 19959: 19959: static constexpr const _Head& 19959: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 19959: 19959: [[__no_unique_address__]] _Head _M_head_impl; 19959: }; 19959: # 187 "/usr/include/c++/13/tuple" 3 19959: template 19959: struct _Head_base<_Idx, _Head, false> 19959: { 19959: constexpr _Head_base() 19959: : _M_head_impl() { } 19959: 19959: constexpr _Head_base(const _Head& __h) 19959: : _M_head_impl(__h) { } 19959: 19959: constexpr _Head_base(const _Head_base&) = default; 19959: constexpr _Head_base(_Head_base&&) = default; 19959: 19959: template 19959: constexpr _Head_base(_UHead&& __h) 19959: : _M_head_impl(std::forward<_UHead>(__h)) { } 19959: 19959: 19959: _Head_base(allocator_arg_t, __uses_alloc0) 19959: : _M_head_impl() { } 19959: 19959: template 19959: 19959: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 19959: : _M_head_impl(allocator_arg, *__a._M_a) { } 19959: 19959: template 19959: 19959: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 19959: : _M_head_impl(*__a._M_a) { } 19959: 19959: template 19959: 19959: _Head_base(__uses_alloc0, _UHead&& __uhead) 19959: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 19959: 19959: template 19959: 19959: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 19959: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 19959: { } 19959: 19959: template 19959: 19959: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 19959: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 19959: 19959: static constexpr _Head& 19959: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 19959: 19959: static constexpr const _Head& 19959: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 19959: 19959: _Head _M_head_impl; 19959: }; 19959: # 250 "/usr/include/c++/13/tuple" 3 19959: template 19959: struct _Tuple_impl; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Tuple_impl<_Idx, _Head, _Tail...> 19959: : public _Tuple_impl<_Idx + 1, _Tail...>, 19959: private _Head_base<_Idx, _Head> 19959: { 19959: template friend struct _Tuple_impl; 19959: 19959: typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; 19959: typedef _Head_base<_Idx, _Head> _Base; 19959: 19959: static constexpr _Head& 19959: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 19959: 19959: static constexpr const _Head& 19959: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 19959: 19959: static constexpr _Inherited& 19959: _M_tail(_Tuple_impl& __t) noexcept { return __t; } 19959: 19959: static constexpr const _Inherited& 19959: _M_tail(const _Tuple_impl& __t) noexcept { return __t; } 19959: 19959: constexpr _Tuple_impl() 19959: : _Inherited(), _Base() { } 19959: 19959: explicit constexpr 19959: _Tuple_impl(const _Head& __head, const _Tail&... __tail) 19959: : _Inherited(__tail...), _Base(__head) 19959: { } 19959: 19959: template> 19959: explicit constexpr 19959: _Tuple_impl(_UHead&& __head, _UTail&&... __tail) 19959: : _Inherited(std::forward<_UTail>(__tail)...), 19959: _Base(std::forward<_UHead>(__head)) 19959: { } 19959: 19959: constexpr _Tuple_impl(const _Tuple_impl&) = default; 19959: 19959: 19959: 19959: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 19959: 19959: _Tuple_impl(_Tuple_impl&&) = default; 19959: 19959: template 19959: constexpr 19959: _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) 19959: : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), 19959: _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) 19959: { } 19959: 19959: template 19959: constexpr 19959: _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 19959: : _Inherited(std::move 19959: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 19959: _Base(std::forward<_UHead> 19959: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 19959: { } 19959: # 338 "/usr/include/c++/13/tuple" 3 19959: template 19959: 19959: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 19959: : _Inherited(__tag, __a), 19959: _Base(__tag, __use_alloc<_Head>(__a)) 19959: { } 19959: 19959: template 19959: 19959: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 19959: const _Head& __head, const _Tail&... __tail) 19959: : _Inherited(__tag, __a, __tail...), 19959: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) 19959: { } 19959: 19959: template> 19959: 19959: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 19959: _UHead&& __head, _UTail&&... __tail) 19959: : _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), 19959: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 19959: std::forward<_UHead>(__head)) 19959: { } 19959: 19959: template 19959: 19959: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 19959: const _Tuple_impl& __in) 19959: : _Inherited(__tag, __a, _M_tail(__in)), 19959: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) 19959: { } 19959: 19959: template 19959: 19959: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 19959: _Tuple_impl&& __in) 19959: : _Inherited(__tag, __a, std::move(_M_tail(__in))), 19959: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 19959: std::forward<_Head>(_M_head(__in))) 19959: { } 19959: 19959: template 19959: 19959: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 19959: const _Tuple_impl<_Idx, _UHead, _UTails...>& __in) 19959: : _Inherited(__tag, __a, 19959: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), 19959: _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 19959: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) 19959: { } 19959: 19959: template 19959: 19959: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 19959: _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 19959: : _Inherited(__tag, __a, std::move 19959: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 19959: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 19959: std::forward<_UHead> 19959: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 19959: { } 19959: # 424 "/usr/include/c++/13/tuple" 3 19959: template 19959: 19959: void 19959: _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) 19959: { 19959: _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); 19959: _M_tail(*this)._M_assign( 19959: _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); 19959: } 19959: 19959: template 19959: 19959: void 19959: _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 19959: { 19959: _M_head(*this) = std::forward<_UHead> 19959: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); 19959: _M_tail(*this)._M_assign( 19959: std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); 19959: } 19959: # 466 "/usr/include/c++/13/tuple" 3 19959: protected: 19959: 19959: void 19959: _M_swap(_Tuple_impl& __in) 19959: { 19959: using std::swap; 19959: swap(_M_head(*this), _M_head(__in)); 19959: _Inherited::_M_swap(_M_tail(__in)); 19959: } 19959: # 485 "/usr/include/c++/13/tuple" 3 19959: }; 19959: 19959: 19959: template 19959: struct _Tuple_impl<_Idx, _Head> 19959: : private _Head_base<_Idx, _Head> 19959: { 19959: template friend struct _Tuple_impl; 19959: 19959: typedef _Head_base<_Idx, _Head> _Base; 19959: 19959: static constexpr _Head& 19959: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 19959: 19959: static constexpr const _Head& 19959: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 19959: 19959: constexpr 19959: _Tuple_impl() 19959: : _Base() { } 19959: 19959: explicit constexpr 19959: _Tuple_impl(const _Head& __head) 19959: : _Base(__head) 19959: { } 19959: 19959: template 19959: explicit constexpr 19959: _Tuple_impl(_UHead&& __head) 19959: : _Base(std::forward<_UHead>(__head)) 19959: { } 19959: 19959: constexpr _Tuple_impl(const _Tuple_impl&) = default; 19959: 19959: 19959: 19959: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 19959: 19959: 19959: 19959: 19959: constexpr 19959: _Tuple_impl(_Tuple_impl&& __in) 19959: noexcept(is_nothrow_move_constructible<_Head>::value) 19959: : _Base(static_cast<_Base&&>(__in)) 19959: { } 19959: 19959: 19959: template 19959: constexpr 19959: _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) 19959: : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) 19959: { } 19959: 19959: template 19959: constexpr 19959: _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) 19959: : _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 19959: { } 19959: # 559 "/usr/include/c++/13/tuple" 3 19959: template 19959: 19959: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 19959: : _Base(__tag, __use_alloc<_Head>(__a)) 19959: { } 19959: 19959: template 19959: 19959: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 19959: const _Head& __head) 19959: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), __head) 19959: { } 19959: 19959: template 19959: 19959: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 19959: _UHead&& __head) 19959: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 19959: std::forward<_UHead>(__head)) 19959: { } 19959: 19959: template 19959: 19959: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 19959: const _Tuple_impl& __in) 19959: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), _M_head(__in)) 19959: { } 19959: 19959: template 19959: 19959: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 19959: _Tuple_impl&& __in) 19959: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 19959: std::forward<_Head>(_M_head(__in))) 19959: { } 19959: 19959: template 19959: 19959: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 19959: const _Tuple_impl<_Idx, _UHead>& __in) 19959: : _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 19959: _Tuple_impl<_Idx, _UHead>::_M_head(__in)) 19959: { } 19959: 19959: template 19959: 19959: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 19959: _Tuple_impl<_Idx, _UHead>&& __in) 19959: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 19959: std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 19959: { } 19959: # 629 "/usr/include/c++/13/tuple" 3 19959: template 19959: 19959: void 19959: _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) 19959: { 19959: _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); 19959: } 19959: 19959: template 19959: 19959: void 19959: _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) 19959: { 19959: _M_head(*this) 19959: = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); 19959: } 19959: # 663 "/usr/include/c++/13/tuple" 3 19959: protected: 19959: 19959: void 19959: _M_swap(_Tuple_impl& __in) 19959: { 19959: using std::swap; 19959: swap(_M_head(*this), _M_head(__in)); 19959: } 19959: # 680 "/usr/include/c++/13/tuple" 3 19959: }; 19959: 19959: 19959: 19959: template 19959: struct _TupleConstraints 19959: { 19959: template 19959: using __constructible = __and_...>; 19959: 19959: template 19959: using __convertible = __and_...>; 19959: 19959: 19959: 19959: 19959: template 19959: static constexpr bool __is_implicitly_constructible() 19959: { 19959: return __and_<__constructible<_UTypes...>, 19959: __convertible<_UTypes...> 19959: >::value; 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: static constexpr bool __is_explicitly_constructible() 19959: { 19959: return __and_<__constructible<_UTypes...>, 19959: __not_<__convertible<_UTypes...>> 19959: >::value; 19959: } 19959: 19959: static constexpr bool __is_implicitly_default_constructible() 19959: { 19959: return __and_... 19959: >::value; 19959: } 19959: 19959: static constexpr bool __is_explicitly_default_constructible() 19959: { 19959: return __and_..., 19959: __not_<__and_< 19959: std::__is_implicitly_default_constructible<_Types>...> 19959: >>::value; 19959: } 19959: }; 19959: 19959: 19959: 19959: template 19959: struct _TupleConstraints 19959: { 19959: template 19959: static constexpr bool __is_implicitly_constructible() 19959: { return false; } 19959: 19959: template 19959: static constexpr bool __is_explicitly_constructible() 19959: { return false; } 19959: }; 19959: 19959: 19959: template 19959: class tuple : public _Tuple_impl<0, _Elements...> 19959: { 19959: typedef _Tuple_impl<0, _Elements...> _Inherited; 19959: 19959: template 19959: using _TCC = _TupleConstraints<_Cond, _Elements...>; 19959: 19959: 19959: template 19959: using _ImplicitDefaultCtor = __enable_if_t< 19959: _TCC<_Dummy>::__is_implicitly_default_constructible(), 19959: bool>; 19959: 19959: 19959: template 19959: using _ExplicitDefaultCtor = __enable_if_t< 19959: _TCC<_Dummy>::__is_explicitly_default_constructible(), 19959: bool>; 19959: 19959: 19959: template 19959: using _ImplicitCtor = __enable_if_t< 19959: _TCC<_Cond>::template __is_implicitly_constructible<_Args...>(), 19959: bool>; 19959: 19959: 19959: template 19959: using _ExplicitCtor = __enable_if_t< 19959: _TCC<_Cond>::template __is_explicitly_constructible<_Args...>(), 19959: bool>; 19959: 19959: template 19959: static constexpr 19959: __enable_if_t 19959: __assignable() 19959: { return __and_...>::value; } 19959: 19959: 19959: template 19959: static constexpr bool __nothrow_assignable() 19959: { 19959: return 19959: __and_...>::value; 19959: } 19959: 19959: 19959: template 19959: static constexpr bool __nothrow_constructible() 19959: { 19959: return 19959: __and_...>::value; 19959: } 19959: 19959: 19959: template 19959: static constexpr bool __valid_args() 19959: { 19959: return sizeof...(_Elements) == 1 19959: && !is_same>::value; 19959: } 19959: 19959: 19959: template 19959: static constexpr bool __valid_args() 19959: { return (sizeof...(_Tail) + 2) == sizeof...(_Elements); } 19959: # 821 "/usr/include/c++/13/tuple" 3 19959: template> 19959: struct _UseOtherCtor 19959: : false_type 19959: { }; 19959: 19959: 19959: template 19959: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Up>> 19959: : __or_, is_constructible<_Tp, _Tuple>>::type 19959: { }; 19959: 19959: 19959: template 19959: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Tp>> 19959: : true_type 19959: { }; 19959: 19959: 19959: 19959: 19959: template 19959: static constexpr bool __use_other_ctor() 19959: { return _UseOtherCtor<_Tuple>::value; } 19959: # 856 "/usr/include/c++/13/tuple" 3 19959: public: 19959: template::value> = true> 19959: constexpr 19959: tuple() 19959: noexcept(__and_...>::value) 19959: : _Inherited() { } 19959: 19959: template::value> = false> 19959: explicit constexpr 19959: tuple() 19959: noexcept(__and_...>::value) 19959: : _Inherited() { } 19959: 19959: template= 1), 19959: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 19959: constexpr 19959: tuple(const _Elements&... __elements) 19959: noexcept(__nothrow_constructible()) 19959: : _Inherited(__elements...) { } 19959: 19959: template= 1), 19959: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 19959: explicit constexpr 19959: tuple(const _Elements&... __elements) 19959: noexcept(__nothrow_constructible()) 19959: : _Inherited(__elements...) { } 19959: 19959: template(), 19959: _ImplicitCtor<_Valid, _UElements...> = true> 19959: constexpr 19959: tuple(_UElements&&... __elements) 19959: noexcept(__nothrow_constructible<_UElements...>()) 19959: : _Inherited(std::forward<_UElements>(__elements)...) { } 19959: 19959: template(), 19959: _ExplicitCtor<_Valid, _UElements...> = false> 19959: explicit constexpr 19959: tuple(_UElements&&... __elements) 19959: noexcept(__nothrow_constructible<_UElements...>()) 19959: : _Inherited(std::forward<_UElements>(__elements)...) { } 19959: 19959: constexpr tuple(const tuple&) = default; 19959: 19959: constexpr tuple(tuple&&) = default; 19959: 19959: template&>(), 19959: _ImplicitCtor<_Valid, const _UElements&...> = true> 19959: constexpr 19959: tuple(const tuple<_UElements...>& __in) 19959: noexcept(__nothrow_constructible()) 19959: : _Inherited(static_cast&>(__in)) 19959: { } 19959: 19959: template&>(), 19959: _ExplicitCtor<_Valid, const _UElements&...> = false> 19959: explicit constexpr 19959: tuple(const tuple<_UElements...>& __in) 19959: noexcept(__nothrow_constructible()) 19959: : _Inherited(static_cast&>(__in)) 19959: { } 19959: 19959: template&&>(), 19959: _ImplicitCtor<_Valid, _UElements...> = true> 19959: constexpr 19959: tuple(tuple<_UElements...>&& __in) 19959: noexcept(__nothrow_constructible<_UElements...>()) 19959: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } 19959: 19959: template&&>(), 19959: _ExplicitCtor<_Valid, _UElements...> = false> 19959: explicit constexpr 19959: tuple(tuple<_UElements...>&& __in) 19959: noexcept(__nothrow_constructible<_UElements...>()) 19959: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } 19959: # 968 "/usr/include/c++/13/tuple" 3 19959: template::value> = true> 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a) 19959: : _Inherited(__tag, __a) { } 19959: 19959: template= 1), 19959: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: const _Elements&... __elements) 19959: : _Inherited(__tag, __a, __elements...) { } 19959: 19959: template= 1), 19959: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 19959: 19959: explicit 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: const _Elements&... __elements) 19959: : _Inherited(__tag, __a, __elements...) { } 19959: 19959: template(), 19959: _ImplicitCtor<_Valid, _UElements...> = true> 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: _UElements&&... __elements) 19959: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 19959: { } 19959: 19959: template(), 19959: _ExplicitCtor<_Valid, _UElements...> = false> 19959: 19959: explicit 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: _UElements&&... __elements) 19959: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 19959: { } 19959: 19959: template 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 19959: : _Inherited(__tag, __a, static_cast(__in)) { } 19959: 19959: template 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 19959: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 19959: 19959: template&>(), 19959: _ImplicitCtor<_Valid, const _UElements&...> = true> 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: const tuple<_UElements...>& __in) 19959: : _Inherited(__tag, __a, 19959: static_cast&>(__in)) 19959: { } 19959: 19959: template&>(), 19959: _ExplicitCtor<_Valid, const _UElements&...> = false> 19959: 19959: explicit 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: const tuple<_UElements...>& __in) 19959: : _Inherited(__tag, __a, 19959: static_cast&>(__in)) 19959: { } 19959: 19959: template&&>(), 19959: _ImplicitCtor<_Valid, _UElements...> = true> 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: tuple<_UElements...>&& __in) 19959: : _Inherited(__tag, __a, 19959: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 19959: { } 19959: 19959: template&&>(), 19959: _ExplicitCtor<_Valid, _UElements...> = false> 19959: 19959: explicit 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: tuple<_UElements...>&& __in) 19959: : _Inherited(__tag, __a, 19959: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 19959: { } 19959: # 1092 "/usr/include/c++/13/tuple" 3 19959: 19959: tuple& 19959: operator=(__conditional_t<__assignable(), 19959: const tuple&, 19959: const __nonesuch&> __in) 19959: noexcept(__nothrow_assignable()) 19959: { 19959: this->_M_assign(__in); 19959: return *this; 19959: } 19959: 19959: 19959: tuple& 19959: operator=(__conditional_t<__assignable<_Elements...>(), 19959: tuple&&, 19959: __nonesuch&&> __in) 19959: noexcept(__nothrow_assignable<_Elements...>()) 19959: { 19959: this->_M_assign(std::move(__in)); 19959: return *this; 19959: } 19959: 19959: template 19959: 19959: __enable_if_t<__assignable(), tuple&> 19959: operator=(const tuple<_UElements...>& __in) 19959: noexcept(__nothrow_assignable()) 19959: { 19959: this->_M_assign(__in); 19959: return *this; 19959: } 19959: 19959: template 19959: 19959: __enable_if_t<__assignable<_UElements...>(), tuple&> 19959: operator=(tuple<_UElements...>&& __in) 19959: noexcept(__nothrow_assignable<_UElements...>()) 19959: { 19959: this->_M_assign(std::move(__in)); 19959: return *this; 19959: } 19959: # 1173 "/usr/include/c++/13/tuple" 3 19959: 19959: void 19959: swap(tuple& __in) 19959: noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) 19959: { _Inherited::_M_swap(__in); } 19959: # 1192 "/usr/include/c++/13/tuple" 3 19959: }; 19959: 19959: 19959: template 19959: tuple(_UTypes...) -> tuple<_UTypes...>; 19959: template 19959: tuple(pair<_T1, _T2>) -> tuple<_T1, _T2>; 19959: template 19959: tuple(allocator_arg_t, _Alloc, _UTypes...) -> tuple<_UTypes...>; 19959: template 19959: tuple(allocator_arg_t, _Alloc, pair<_T1, _T2>) -> tuple<_T1, _T2>; 19959: template 19959: tuple(allocator_arg_t, _Alloc, tuple<_UTypes...>) -> tuple<_UTypes...>; 19959: 19959: 19959: 19959: template<> 19959: class tuple<> 19959: { 19959: public: 19959: 19959: void swap(tuple&) noexcept { } 19959: 19959: 19959: 19959: 19959: 19959: tuple() = default; 19959: 19959: template 19959: 19959: tuple(allocator_arg_t, const _Alloc&) noexcept { } 19959: template 19959: 19959: tuple(allocator_arg_t, const _Alloc&, const tuple&) noexcept { } 19959: }; 19959: 19959: 19959: 19959: template 19959: class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> 19959: { 19959: typedef _Tuple_impl<0, _T1, _T2> _Inherited; 19959: 19959: 19959: template 19959: using _ImplicitDefaultCtor = __enable_if_t< 19959: _TupleConstraints<_Dummy, _U1, _U2>:: 19959: __is_implicitly_default_constructible(), 19959: bool>; 19959: 19959: 19959: template 19959: using _ExplicitDefaultCtor = __enable_if_t< 19959: _TupleConstraints<_Dummy, _U1, _U2>:: 19959: __is_explicitly_default_constructible(), 19959: bool>; 19959: 19959: template 19959: using _TCC = _TupleConstraints<_Dummy, _T1, _T2>; 19959: 19959: 19959: template 19959: using _ImplicitCtor = __enable_if_t< 19959: _TCC<_Cond>::template __is_implicitly_constructible<_U1, _U2>(), 19959: bool>; 19959: 19959: 19959: template 19959: using _ExplicitCtor = __enable_if_t< 19959: _TCC<_Cond>::template __is_explicitly_constructible<_U1, _U2>(), 19959: bool>; 19959: 19959: template 19959: static constexpr bool __assignable() 19959: { 19959: return __and_, 19959: is_assignable<_T2&, _U2>>::value; 19959: } 19959: 19959: template 19959: static constexpr bool __nothrow_assignable() 19959: { 19959: return __and_, 19959: is_nothrow_assignable<_T2&, _U2>>::value; 19959: } 19959: 19959: template 19959: static constexpr bool __nothrow_constructible() 19959: { 19959: return __and_, 19959: is_nothrow_constructible<_T2, _U2>>::value; 19959: } 19959: 19959: static constexpr bool __nothrow_default_constructible() 19959: { 19959: return __and_, 19959: is_nothrow_default_constructible<_T2>>::value; 19959: } 19959: 19959: template 19959: static constexpr bool __is_alloc_arg() 19959: { return is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value; } 19959: # 1306 "/usr/include/c++/13/tuple" 3 19959: public: 19959: template = true> 19959: constexpr 19959: tuple() 19959: noexcept(__nothrow_default_constructible()) 19959: : _Inherited() { } 19959: 19959: template = false> 19959: explicit constexpr 19959: tuple() 19959: noexcept(__nothrow_default_constructible()) 19959: : _Inherited() { } 19959: 19959: template = true> 19959: constexpr 19959: tuple(const _T1& __a1, const _T2& __a2) 19959: noexcept(__nothrow_constructible()) 19959: : _Inherited(__a1, __a2) { } 19959: 19959: template = false> 19959: explicit constexpr 19959: tuple(const _T1& __a1, const _T2& __a2) 19959: noexcept(__nothrow_constructible()) 19959: : _Inherited(__a1, __a2) { } 19959: 19959: template(), _U1, _U2> = true> 19959: constexpr 19959: tuple(_U1&& __a1, _U2&& __a2) 19959: noexcept(__nothrow_constructible<_U1, _U2>()) 19959: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } 19959: 19959: template(), _U1, _U2> = false> 19959: explicit constexpr 19959: tuple(_U1&& __a1, _U2&& __a2) 19959: noexcept(__nothrow_constructible<_U1, _U2>()) 19959: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } 19959: 19959: constexpr tuple(const tuple&) = default; 19959: 19959: constexpr tuple(tuple&&) = default; 19959: 19959: template = true> 19959: constexpr 19959: tuple(const tuple<_U1, _U2>& __in) 19959: noexcept(__nothrow_constructible()) 19959: : _Inherited(static_cast&>(__in)) { } 19959: 19959: template = false> 19959: explicit constexpr 19959: tuple(const tuple<_U1, _U2>& __in) 19959: noexcept(__nothrow_constructible()) 19959: : _Inherited(static_cast&>(__in)) { } 19959: 19959: template = true> 19959: constexpr 19959: tuple(tuple<_U1, _U2>&& __in) 19959: noexcept(__nothrow_constructible<_U1, _U2>()) 19959: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } 19959: 19959: template = false> 19959: explicit constexpr 19959: tuple(tuple<_U1, _U2>&& __in) 19959: noexcept(__nothrow_constructible<_U1, _U2>()) 19959: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } 19959: # 1399 "/usr/include/c++/13/tuple" 3 19959: template = true> 19959: constexpr 19959: tuple(const pair<_U1, _U2>& __in) 19959: noexcept(__nothrow_constructible()) 19959: : _Inherited(__in.first, __in.second) { } 19959: 19959: template = false> 19959: explicit constexpr 19959: tuple(const pair<_U1, _U2>& __in) 19959: noexcept(__nothrow_constructible()) 19959: : _Inherited(__in.first, __in.second) { } 19959: 19959: template = true> 19959: constexpr 19959: tuple(pair<_U1, _U2>&& __in) 19959: noexcept(__nothrow_constructible<_U1, _U2>()) 19959: : _Inherited(std::forward<_U1>(__in.first), 19959: std::forward<_U2>(__in.second)) { } 19959: 19959: template = false> 19959: explicit constexpr 19959: tuple(pair<_U1, _U2>&& __in) 19959: noexcept(__nothrow_constructible<_U1, _U2>()) 19959: : _Inherited(std::forward<_U1>(__in.first), 19959: std::forward<_U2>(__in.second)) { } 19959: # 1450 "/usr/include/c++/13/tuple" 3 19959: template::value, _T1, _T2> = true> 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a) 19959: : _Inherited(__tag, __a) { } 19959: 19959: template = true> 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: const _T1& __a1, const _T2& __a2) 19959: : _Inherited(__tag, __a, __a1, __a2) { } 19959: 19959: template = false> 19959: explicit 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: const _T1& __a1, const _T2& __a2) 19959: : _Inherited(__tag, __a, __a1, __a2) { } 19959: 19959: template = true> 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) 19959: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 19959: std::forward<_U2>(__a2)) { } 19959: 19959: template = false> 19959: explicit 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: _U1&& __a1, _U2&& __a2) 19959: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 19959: std::forward<_U2>(__a2)) { } 19959: 19959: template 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 19959: : _Inherited(__tag, __a, static_cast(__in)) { } 19959: 19959: template 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 19959: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 19959: 19959: template = true> 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: const tuple<_U1, _U2>& __in) 19959: : _Inherited(__tag, __a, 19959: static_cast&>(__in)) 19959: { } 19959: 19959: template = false> 19959: explicit 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: const tuple<_U1, _U2>& __in) 19959: : _Inherited(__tag, __a, 19959: static_cast&>(__in)) 19959: { } 19959: 19959: template = true> 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 19959: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 19959: { } 19959: 19959: template = false> 19959: explicit 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 19959: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 19959: { } 19959: # 1553 "/usr/include/c++/13/tuple" 3 19959: template = true> 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: const pair<_U1, _U2>& __in) 19959: : _Inherited(__tag, __a, __in.first, __in.second) { } 19959: 19959: template = false> 19959: explicit 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, 19959: const pair<_U1, _U2>& __in) 19959: : _Inherited(__tag, __a, __in.first, __in.second) { } 19959: 19959: template = true> 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 19959: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 19959: std::forward<_U2>(__in.second)) { } 19959: 19959: template = false> 19959: explicit 19959: 19959: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 19959: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 19959: std::forward<_U2>(__in.second)) { } 19959: # 1603 "/usr/include/c++/13/tuple" 3 19959: 19959: tuple& 19959: operator=(__conditional_t<__assignable(), 19959: const tuple&, 19959: const __nonesuch&> __in) 19959: noexcept(__nothrow_assignable()) 19959: { 19959: this->_M_assign(__in); 19959: return *this; 19959: } 19959: 19959: 19959: tuple& 19959: operator=(__conditional_t<__assignable<_T1, _T2>(), 19959: tuple&&, 19959: __nonesuch&&> __in) 19959: noexcept(__nothrow_assignable<_T1, _T2>()) 19959: { 19959: this->_M_assign(std::move(__in)); 19959: return *this; 19959: } 19959: 19959: template 19959: 19959: __enable_if_t<__assignable(), tuple&> 19959: operator=(const tuple<_U1, _U2>& __in) 19959: noexcept(__nothrow_assignable()) 19959: { 19959: this->_M_assign(__in); 19959: return *this; 19959: } 19959: 19959: template 19959: 19959: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 19959: operator=(tuple<_U1, _U2>&& __in) 19959: noexcept(__nothrow_assignable<_U1, _U2>()) 19959: { 19959: this->_M_assign(std::move(__in)); 19959: return *this; 19959: } 19959: # 1683 "/usr/include/c++/13/tuple" 3 19959: template 19959: 19959: __enable_if_t<__assignable(), tuple&> 19959: operator=(const pair<_U1, _U2>& __in) 19959: noexcept(__nothrow_assignable()) 19959: { 19959: this->_M_head(*this) = __in.first; 19959: this->_M_tail(*this)._M_head(*this) = __in.second; 19959: return *this; 19959: } 19959: 19959: template 19959: 19959: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 19959: operator=(pair<_U1, _U2>&& __in) 19959: noexcept(__nothrow_assignable<_U1, _U2>()) 19959: { 19959: this->_M_head(*this) = std::forward<_U1>(__in.first); 19959: this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); 19959: return *this; 19959: } 19959: # 1729 "/usr/include/c++/13/tuple" 3 19959: 19959: void 19959: swap(tuple& __in) 19959: noexcept(__and_<__is_nothrow_swappable<_T1>, 19959: __is_nothrow_swappable<_T2>>::value) 19959: { _Inherited::_M_swap(__in); } 19959: # 1744 "/usr/include/c++/13/tuple" 3 19959: }; 19959: 19959: 19959: 19959: template 19959: struct tuple_size> 19959: : public integral_constant { }; 19959: 19959: 19959: template 19959: inline constexpr size_t tuple_size_v> 19959: = sizeof...(_Types); 19959: 19959: template 19959: inline constexpr size_t tuple_size_v> 19959: = sizeof...(_Types); 19959: 19959: 19959: 19959: template 19959: struct tuple_element<__i, tuple<_Types...>> 19959: { 19959: static_assert(__i < sizeof...(_Types), "tuple index must be in range"); 19959: 19959: using type = typename _Nth_type<__i, _Types...>::type; 19959: }; 19959: 19959: template 19959: constexpr _Head& 19959: __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 19959: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 19959: 19959: template 19959: constexpr const _Head& 19959: __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 19959: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 19959: 19959: 19959: template 19959: __enable_if_t<(__i >= sizeof...(_Types))> 19959: __get_helper(const tuple<_Types...>&) = delete; 19959: 19959: 19959: template 19959: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 19959: get(tuple<_Elements...>& __t) noexcept 19959: { return std::__get_helper<__i>(__t); } 19959: 19959: 19959: template 19959: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 19959: get(const tuple<_Elements...>& __t) noexcept 19959: { return std::__get_helper<__i>(__t); } 19959: 19959: 19959: template 19959: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 19959: get(tuple<_Elements...>&& __t) noexcept 19959: { 19959: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 19959: return std::forward<__element_type>(std::__get_helper<__i>(__t)); 19959: } 19959: 19959: 19959: template 19959: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 19959: get(const tuple<_Elements...>&& __t) noexcept 19959: { 19959: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 19959: return std::forward(std::__get_helper<__i>(__t)); 19959: } 19959: 19959: 19959: 19959: template 19959: constexpr __enable_if_t<(__i >= sizeof...(_Elements))> 19959: get(const tuple<_Elements...>&) = delete; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: constexpr _Tp& 19959: get(tuple<_Types...>& __t) noexcept 19959: { 19959: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 19959: static_assert(__idx < sizeof...(_Types), 19959: "the type T in std::get must occur exactly once in the tuple"); 19959: return std::__get_helper<__idx>(__t); 19959: } 19959: 19959: 19959: template 19959: constexpr _Tp&& 19959: get(tuple<_Types...>&& __t) noexcept 19959: { 19959: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 19959: static_assert(__idx < sizeof...(_Types), 19959: "the type T in std::get must occur exactly once in the tuple"); 19959: return std::forward<_Tp>(std::__get_helper<__idx>(__t)); 19959: } 19959: 19959: 19959: template 19959: constexpr const _Tp& 19959: get(const tuple<_Types...>& __t) noexcept 19959: { 19959: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 19959: static_assert(__idx < sizeof...(_Types), 19959: "the type T in std::get must occur exactly once in the tuple"); 19959: return std::__get_helper<__idx>(__t); 19959: } 19959: 19959: 19959: 19959: template 19959: constexpr const _Tp&& 19959: get(const tuple<_Types...>&& __t) noexcept 19959: { 19959: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 19959: static_assert(__idx < sizeof...(_Types), 19959: "the type T in std::get must occur exactly once in the tuple"); 19959: return std::forward(std::__get_helper<__idx>(__t)); 19959: } 19959: 19959: 19959: 19959: template 19959: struct __tuple_compare 19959: { 19959: static constexpr bool 19959: __eq(const _Tp& __t, const _Up& __u) 19959: { 19959: return bool(std::get<__i>(__t) == std::get<__i>(__u)) 19959: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__eq(__t, __u); 19959: } 19959: 19959: static constexpr bool 19959: __less(const _Tp& __t, const _Up& __u) 19959: { 19959: return bool(std::get<__i>(__t) < std::get<__i>(__u)) 19959: || (!bool(std::get<__i>(__u) < std::get<__i>(__t)) 19959: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__less(__t, __u)); 19959: } 19959: }; 19959: 19959: template 19959: struct __tuple_compare<_Tp, _Up, __size, __size> 19959: { 19959: static constexpr bool 19959: __eq(const _Tp&, const _Up&) { return true; } 19959: 19959: static constexpr bool 19959: __less(const _Tp&, const _Up&) { return false; } 19959: }; 19959: 19959: template 19959: constexpr bool 19959: operator==(const tuple<_TElements...>& __t, 19959: const tuple<_UElements...>& __u) 19959: { 19959: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 19959: "tuple objects can only be compared if they have equal sizes."); 19959: using __compare = __tuple_compare, 19959: tuple<_UElements...>, 19959: 0, sizeof...(_TElements)>; 19959: return __compare::__eq(__t, __u); 19959: } 19959: # 1945 "/usr/include/c++/13/tuple" 3 19959: template 19959: constexpr bool 19959: operator<(const tuple<_TElements...>& __t, 19959: const tuple<_UElements...>& __u) 19959: { 19959: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 19959: "tuple objects can only be compared if they have equal sizes."); 19959: using __compare = __tuple_compare, 19959: tuple<_UElements...>, 19959: 0, sizeof...(_TElements)>; 19959: return __compare::__less(__t, __u); 19959: } 19959: 19959: template 19959: constexpr bool 19959: operator!=(const tuple<_TElements...>& __t, 19959: const tuple<_UElements...>& __u) 19959: { return !(__t == __u); } 19959: 19959: template 19959: constexpr bool 19959: operator>(const tuple<_TElements...>& __t, 19959: const tuple<_UElements...>& __u) 19959: { return __u < __t; } 19959: 19959: template 19959: constexpr bool 19959: operator<=(const tuple<_TElements...>& __t, 19959: const tuple<_UElements...>& __u) 19959: { return !(__u < __t); } 19959: 19959: template 19959: constexpr bool 19959: operator>=(const tuple<_TElements...>& __t, 19959: const tuple<_UElements...>& __u) 19959: { return !(__t < __u); } 19959: 19959: 19959: 19959: 19959: template 19959: constexpr tuple::__type...> 19959: make_tuple(_Elements&&... __args) 19959: { 19959: typedef tuple::__type...> 19959: __result_type; 19959: return __result_type(std::forward<_Elements>(__args)...); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: constexpr tuple<_Elements&&...> 19959: forward_as_tuple(_Elements&&... __args) noexcept 19959: { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } 19959: 19959: 19959: 19959: 19959: template struct array; 19959: 19959: template 19959: constexpr _Tp& 19959: get(array<_Tp, _Nm>&) noexcept; 19959: 19959: template 19959: constexpr _Tp&& 19959: get(array<_Tp, _Nm>&&) noexcept; 19959: 19959: template 19959: constexpr const _Tp& 19959: get(const array<_Tp, _Nm>&) noexcept; 19959: 19959: template 19959: constexpr const _Tp&& 19959: get(const array<_Tp, _Nm>&&) noexcept; 19959: 19959: 19959: template 19959: struct __make_tuple_impl; 19959: 19959: template 19959: struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> 19959: : __make_tuple_impl<_Idx + 1, 19959: tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, 19959: _Tuple, _Nm> 19959: { }; 19959: 19959: template 19959: struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> 19959: { 19959: typedef tuple<_Tp...> __type; 19959: }; 19959: 19959: template 19959: struct __do_make_tuple 19959: : __make_tuple_impl<0, tuple<>, _Tuple, tuple_size<_Tuple>::value> 19959: { }; 19959: 19959: 19959: template 19959: struct __make_tuple 19959: : public __do_make_tuple<__remove_cvref_t<_Tuple>> 19959: { }; 19959: 19959: 19959: template 19959: struct __combine_tuples; 19959: 19959: template<> 19959: struct __combine_tuples<> 19959: { 19959: typedef tuple<> __type; 19959: }; 19959: 19959: template 19959: struct __combine_tuples> 19959: { 19959: typedef tuple<_Ts...> __type; 19959: }; 19959: 19959: template 19959: struct __combine_tuples, tuple<_T2s...>, _Rem...> 19959: { 19959: typedef typename __combine_tuples, 19959: _Rem...>::__type __type; 19959: }; 19959: 19959: 19959: template 19959: struct __tuple_cat_result 19959: { 19959: typedef typename __combine_tuples 19959: ::__type...>::__type __type; 19959: }; 19959: 19959: 19959: 19959: template 19959: struct __make_1st_indices; 19959: 19959: template<> 19959: struct __make_1st_indices<> 19959: { 19959: typedef _Index_tuple<> __type; 19959: }; 19959: 19959: template 19959: struct __make_1st_indices<_Tp, _Tpls...> 19959: { 19959: typedef typename _Build_index_tuple::type>::value>::__type __type; 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: struct __tuple_concater; 19959: 19959: template 19959: struct __tuple_concater<_Ret, _Index_tuple<_Is...>, _Tp, _Tpls...> 19959: { 19959: template 19959: static constexpr _Ret 19959: _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) 19959: { 19959: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 19959: typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; 19959: return __next::_S_do(std::forward<_Tpls>(__tps)..., 19959: std::forward<_Us>(__us)..., 19959: std::get<_Is>(std::forward<_Tp>(__tp))...); 19959: } 19959: }; 19959: 19959: template 19959: struct __tuple_concater<_Ret, _Index_tuple<>> 19959: { 19959: template 19959: static constexpr _Ret 19959: _S_do(_Us&&... __us) 19959: { 19959: return _Ret(std::forward<_Us>(__us)...); 19959: } 19959: }; 19959: 19959: template 19959: struct __is_tuple_like_impl> : true_type 19959: { }; 19959: 19959: 19959: 19959: template...>::value>::type> 19959: constexpr auto 19959: tuple_cat(_Tpls&&... __tpls) 19959: -> typename __tuple_cat_result<_Tpls...>::__type 19959: { 19959: typedef typename __tuple_cat_result<_Tpls...>::__type __ret; 19959: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 19959: typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; 19959: return __concater::_S_do(std::forward<_Tpls>(__tpls)...); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: constexpr tuple<_Elements&...> 19959: tie(_Elements&... __args) noexcept 19959: { return tuple<_Elements&...>(__args...); } 19959: 19959: 19959: template 19959: 19959: inline 19959: 19959: 19959: typename enable_if<__and_<__is_swappable<_Elements>...>::value 19959: >::type 19959: 19959: 19959: 19959: swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: # 2184 "/usr/include/c++/13/tuple" 3 19959: template 19959: 19959: typename enable_if...>::value>::type 19959: swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct _Swallow_assign 19959: { 19959: template 19959: constexpr const _Swallow_assign& 19959: operator=(const _Tp&) const 19959: { return *this; } 19959: }; 19959: # 2219 "/usr/include/c++/13/tuple" 3 19959: inline constexpr _Swallow_assign ignore{}; 19959: 19959: 19959: template 19959: struct uses_allocator, _Alloc> : true_type { }; 19959: # 2234 "/usr/include/c++/13/tuple" 3 19959: template 19959: template 19959: 19959: inline 19959: pair<_T1, _T2>:: 19959: pair(piecewise_construct_t, 19959: tuple<_Args1...> __first, tuple<_Args2...> __second) 19959: : pair(__first, __second, 19959: typename _Build_index_tuple::__type(), 19959: typename _Build_index_tuple::__type()) 19959: { } 19959: 19959: template 19959: template 19959: inline 19959: pair<_T1, _T2>:: 19959: pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, 19959: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) 19959: : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), 19959: second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template class _Trait, typename _Tp, typename _Tuple> 19959: inline constexpr bool __unpack_std_tuple = false; 19959: 19959: template class _Trait, typename _Tp, typename... _Up> 19959: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>> 19959: = _Trait<_Tp, _Up...>::value; 19959: 19959: template class _Trait, typename _Tp, typename... _Up> 19959: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>&> 19959: = _Trait<_Tp, _Up&...>::value; 19959: 19959: template class _Trait, typename _Tp, typename... _Up> 19959: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>> 19959: = _Trait<_Tp, const _Up...>::value; 19959: 19959: template class _Trait, typename _Tp, typename... _Up> 19959: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>&> 19959: = _Trait<_Tp, const _Up&...>::value; 19959: 19959: 19959: 19959: template 19959: constexpr decltype(auto) 19959: __apply_impl(_Fn&& __f, _Tuple&& __t, index_sequence<_Idx...>) 19959: { 19959: return std::__invoke(std::forward<_Fn>(__f), 19959: std::get<_Idx>(std::forward<_Tuple>(__t))...); 19959: } 19959: 19959: template 19959: constexpr decltype(auto) 19959: apply(_Fn&& __f, _Tuple&& __t) 19959: noexcept(__unpack_std_tuple) 19959: { 19959: using _Indices 19959: = make_index_sequence>>; 19959: return std::__apply_impl(std::forward<_Fn>(__f), 19959: std::forward<_Tuple>(__t), 19959: _Indices{}); 19959: } 19959: 19959: 19959: 19959: template 19959: constexpr _Tp 19959: __make_from_tuple_impl(_Tuple&& __t, index_sequence<_Idx...>) 19959: { return _Tp(std::get<_Idx>(std::forward<_Tuple>(__t))...); } 19959: 19959: template 19959: constexpr _Tp 19959: make_from_tuple(_Tuple&& __t) 19959: noexcept(__unpack_std_tuple) 19959: { 19959: constexpr size_t __n = tuple_size_v>; 19959: 19959: if constexpr (__n == 1) 19959: { 19959: using _Elt = decltype(std::get<0>(std::declval<_Tuple>())); 19959: static_assert(!__reference_constructs_from_temporary(_Tp, _Elt)); 19959: } 19959: 19959: return __make_from_tuple_impl<_Tp>(std::forward<_Tuple>(__t), 19959: make_index_sequence<__n>{}); 19959: } 19959: # 2344 "/usr/include/c++/13/tuple" 3 19959: 19959: } 19959: # 48 "/usr/include/c++/13/bits/memory_resource.h" 2 3 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: namespace pmr 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: class memory_resource 19959: { 19959: static constexpr size_t _S_max_align = alignof(max_align_t); 19959: 19959: public: 19959: memory_resource() = default; 19959: memory_resource(const memory_resource&) = default; 19959: virtual ~memory_resource(); 19959: 19959: memory_resource& operator=(const memory_resource&) = default; 19959: 19959: [[nodiscard]] 19959: void* 19959: allocate(size_t __bytes, size_t __alignment = _S_max_align) 19959: __attribute__((__returns_nonnull__,__alloc_size__(2),__alloc_align__(3))) 19959: { return ::operator new(__bytes, do_allocate(__bytes, __alignment)); } 19959: 19959: void 19959: deallocate(void* __p, size_t __bytes, size_t __alignment = _S_max_align) 19959: __attribute__((__nonnull__)) 19959: { return do_deallocate(__p, __bytes, __alignment); } 19959: 19959: [[nodiscard]] 19959: bool 19959: is_equal(const memory_resource& __other) const noexcept 19959: { return do_is_equal(__other); } 19959: 19959: private: 19959: virtual void* 19959: do_allocate(size_t __bytes, size_t __alignment) = 0; 19959: 19959: virtual void 19959: do_deallocate(void* __p, size_t __bytes, size_t __alignment) = 0; 19959: 19959: virtual bool 19959: do_is_equal(const memory_resource& __other) const noexcept = 0; 19959: }; 19959: 19959: [[nodiscard]] 19959: inline bool 19959: operator==(const memory_resource& __a, const memory_resource& __b) noexcept 19959: { return &__a == &__b || __a.is_equal(__b); } 19959: 19959: 19959: [[nodiscard]] 19959: inline bool 19959: operator!=(const memory_resource& __a, const memory_resource& __b) noexcept 19959: { return !(__a == __b); } 19959: # 119 "/usr/include/c++/13/bits/memory_resource.h" 3 19959: template 19959: class polymorphic_allocator 19959: { 19959: 19959: 19959: template 19959: struct __not_pair { using type = void; }; 19959: 19959: template 19959: struct __not_pair> { }; 19959: 19959: public: 19959: using value_type = _Tp; 19959: 19959: polymorphic_allocator() noexcept 19959: { 19959: extern memory_resource* get_default_resource() noexcept 19959: __attribute__((__returns_nonnull__)); 19959: _M_resource = get_default_resource(); 19959: } 19959: 19959: polymorphic_allocator(memory_resource* __r) noexcept 19959: __attribute__((__nonnull__)) 19959: : _M_resource(__r) 19959: { ; } 19959: 19959: polymorphic_allocator(const polymorphic_allocator& __other) = default; 19959: 19959: template 19959: polymorphic_allocator(const polymorphic_allocator<_Up>& __x) noexcept 19959: : _M_resource(__x.resource()) 19959: { } 19959: 19959: polymorphic_allocator& 19959: operator=(const polymorphic_allocator&) = delete; 19959: 19959: [[nodiscard]] 19959: _Tp* 19959: allocate(size_t __n) 19959: __attribute__((__returns_nonnull__)) 19959: { 19959: if ((__gnu_cxx::__int_traits::__max / sizeof(_Tp)) < __n) 19959: std::__throw_bad_array_new_length(); 19959: return static_cast<_Tp*>(_M_resource->allocate(__n * sizeof(_Tp), 19959: alignof(_Tp))); 19959: } 19959: 19959: void 19959: deallocate(_Tp* __p, size_t __n) noexcept 19959: __attribute__((__nonnull__)) 19959: { _M_resource->deallocate(__p, __n * sizeof(_Tp), alignof(_Tp)); } 19959: # 224 "/usr/include/c++/13/bits/memory_resource.h" 3 19959: template 19959: __attribute__((__nonnull__)) 19959: typename __not_pair<_Tp1>::type 19959: construct(_Tp1* __p, _Args&&... __args) 19959: { 19959: 19959: 19959: using __use_tag 19959: = std::__uses_alloc_t<_Tp1, polymorphic_allocator, _Args...>; 19959: if constexpr (is_base_of_v<__uses_alloc0, __use_tag>) 19959: ::new(__p) _Tp1(std::forward<_Args>(__args)...); 19959: else if constexpr (is_base_of_v<__uses_alloc1_, __use_tag>) 19959: ::new(__p) _Tp1(allocator_arg, *this, 19959: std::forward<_Args>(__args)...); 19959: else 19959: ::new(__p) _Tp1(std::forward<_Args>(__args)..., *this); 19959: } 19959: 19959: template 19959: __attribute__((__nonnull__)) 19959: void 19959: construct(pair<_Tp1, _Tp2>* __p, piecewise_construct_t, 19959: tuple<_Args1...> __x, tuple<_Args2...> __y) 19959: { 19959: auto __x_tag = 19959: __use_alloc<_Tp1, polymorphic_allocator, _Args1...>(*this); 19959: auto __y_tag = 19959: __use_alloc<_Tp2, polymorphic_allocator, _Args2...>(*this); 19959: index_sequence_for<_Args1...> __x_i; 19959: index_sequence_for<_Args2...> __y_i; 19959: 19959: ::new(__p) pair<_Tp1, _Tp2>(piecewise_construct, 19959: _S_construct_p(__x_tag, __x_i, __x), 19959: _S_construct_p(__y_tag, __y_i, __y)); 19959: } 19959: 19959: template 19959: __attribute__((__nonnull__)) 19959: void 19959: construct(pair<_Tp1, _Tp2>* __p) 19959: { this->construct(__p, piecewise_construct, tuple<>(), tuple<>()); } 19959: 19959: template 19959: __attribute__((__nonnull__)) 19959: void 19959: construct(pair<_Tp1, _Tp2>* __p, _Up&& __x, _Vp&& __y) 19959: { 19959: this->construct(__p, piecewise_construct, 19959: std::forward_as_tuple(std::forward<_Up>(__x)), 19959: std::forward_as_tuple(std::forward<_Vp>(__y))); 19959: } 19959: 19959: template 19959: __attribute__((__nonnull__)) 19959: void 19959: construct(pair<_Tp1, _Tp2>* __p, const std::pair<_Up, _Vp>& __pr) 19959: { 19959: this->construct(__p, piecewise_construct, 19959: std::forward_as_tuple(__pr.first), 19959: std::forward_as_tuple(__pr.second)); 19959: } 19959: 19959: template 19959: __attribute__((__nonnull__)) 19959: void 19959: construct(pair<_Tp1, _Tp2>* __p, pair<_Up, _Vp>&& __pr) 19959: { 19959: this->construct(__p, piecewise_construct, 19959: std::forward_as_tuple(std::forward<_Up>(__pr.first)), 19959: std::forward_as_tuple(std::forward<_Vp>(__pr.second))); 19959: } 19959: # 307 "/usr/include/c++/13/bits/memory_resource.h" 3 19959: template 19959: 19959: __attribute__((__nonnull__)) 19959: void 19959: destroy(_Up* __p) 19959: { __p->~_Up(); } 19959: 19959: polymorphic_allocator 19959: select_on_container_copy_construction() const noexcept 19959: { return polymorphic_allocator(); } 19959: 19959: memory_resource* 19959: resource() const noexcept 19959: __attribute__((__returns_nonnull__)) 19959: { return _M_resource; } 19959: 19959: 19959: 19959: [[nodiscard]] 19959: friend bool 19959: operator==(const polymorphic_allocator& __a, 19959: const polymorphic_allocator& __b) noexcept 19959: { return *__a.resource() == *__b.resource(); } 19959: 19959: 19959: [[nodiscard]] 19959: friend bool 19959: operator!=(const polymorphic_allocator& __a, 19959: const polymorphic_allocator& __b) noexcept 19959: { return !(__a == __b); } 19959: 19959: 19959: private: 19959: 19959: using __uses_alloc1_ = __uses_alloc1; 19959: using __uses_alloc2_ = __uses_alloc2; 19959: 19959: template 19959: static tuple<_Args&&...> 19959: _S_construct_p(__uses_alloc0, _Ind, tuple<_Args...>& __t) 19959: { return std::move(__t); } 19959: 19959: template 19959: static tuple 19959: _S_construct_p(__uses_alloc1_ __ua, index_sequence<_Ind...>, 19959: tuple<_Args...>& __t) 19959: { 19959: return { 19959: allocator_arg, *__ua._M_a, std::get<_Ind>(std::move(__t))... 19959: }; 19959: } 19959: 19959: template 19959: static tuple<_Args&&..., polymorphic_allocator> 19959: _S_construct_p(__uses_alloc2_ __ua, index_sequence<_Ind...>, 19959: tuple<_Args...>& __t) 19959: { return { std::get<_Ind>(std::move(__t))..., *__ua._M_a }; } 19959: 19959: 19959: memory_resource* _M_resource; 19959: }; 19959: 19959: template 19959: [[nodiscard]] 19959: inline bool 19959: operator==(const polymorphic_allocator<_Tp1>& __a, 19959: const polymorphic_allocator<_Tp2>& __b) noexcept 19959: { return *__a.resource() == *__b.resource(); } 19959: 19959: 19959: template 19959: [[nodiscard]] 19959: inline bool 19959: operator!=(const polymorphic_allocator<_Tp1>& __a, 19959: const polymorphic_allocator<_Tp2>& __b) noexcept 19959: { return !(__a == __b); } 19959: 19959: 19959: } 19959: 19959: template struct allocator_traits; 19959: 19959: 19959: template 19959: struct allocator_traits> 19959: { 19959: 19959: using allocator_type = pmr::polymorphic_allocator<_Tp>; 19959: 19959: 19959: using value_type = _Tp; 19959: 19959: 19959: using pointer = _Tp*; 19959: 19959: 19959: using const_pointer = const _Tp*; 19959: 19959: 19959: using void_pointer = void*; 19959: 19959: 19959: using const_void_pointer = const void*; 19959: 19959: 19959: using difference_type = std::ptrdiff_t; 19959: 19959: 19959: using size_type = std::size_t; 19959: 19959: 19959: 19959: 19959: 19959: using propagate_on_container_copy_assignment = false_type; 19959: using propagate_on_container_move_assignment = false_type; 19959: using propagate_on_container_swap = false_type; 19959: 19959: static allocator_type 19959: select_on_container_copy_construction(const allocator_type&) noexcept 19959: { return allocator_type(); } 19959: 19959: 19959: 19959: using is_always_equal = false_type; 19959: 19959: template 19959: using rebind_alloc = pmr::polymorphic_allocator<_Up>; 19959: 19959: template 19959: using rebind_traits = allocator_traits>; 19959: # 446 "/usr/include/c++/13/bits/memory_resource.h" 3 19959: [[nodiscard]] static pointer 19959: allocate(allocator_type& __a, size_type __n) 19959: { return __a.allocate(__n); } 19959: # 461 "/usr/include/c++/13/bits/memory_resource.h" 3 19959: [[nodiscard]] static pointer 19959: allocate(allocator_type& __a, size_type __n, const_void_pointer) 19959: { return __a.allocate(__n); } 19959: # 473 "/usr/include/c++/13/bits/memory_resource.h" 3 19959: static void 19959: deallocate(allocator_type& __a, pointer __p, size_type __n) 19959: { __a.deallocate(__p, __n); } 19959: # 488 "/usr/include/c++/13/bits/memory_resource.h" 3 19959: template 19959: static void 19959: construct(allocator_type& __a, _Up* __p, _Args&&... __args) 19959: { __a.construct(__p, std::forward<_Args>(__args)...); } 19959: # 500 "/usr/include/c++/13/bits/memory_resource.h" 3 19959: template 19959: static void 19959: destroy(allocator_type&, _Up* __p) 19959: noexcept(is_nothrow_destructible<_Up>::value) 19959: { __p->~_Up(); } 19959: 19959: 19959: 19959: 19959: 19959: static size_type 19959: max_size(const allocator_type&) noexcept 19959: { return size_t(-1) / sizeof(value_type); } 19959: }; 19959: 19959: 19959: } 19959: # 77 "/usr/include/c++/13/deque" 2 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: namespace pmr 19959: { 19959: template 19959: using deque = std::deque<_Tp, polymorphic_allocator<_Tp>>; 19959: } 19959: 19959: } 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: # 1 "/usr/include/c++/13/functional" 1 3 19959: # 46 "/usr/include/c++/13/functional" 3 19959: 19959: # 47 "/usr/include/c++/13/functional" 3 19959: # 55 "/usr/include/c++/13/functional" 3 19959: # 1 "/usr/include/c++/13/bits/functional_hash.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/functional_hash.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/functional_hash.h" 3 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/hash_bytes.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/hash_bytes.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/hash_bytes.h" 3 19959: 19959: 19959: 19959: namespace std 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t 19959: _Hash_bytes(const void* __ptr, size_t __len, size_t __seed); 19959: 19959: 19959: 19959: 19959: 19959: size_t 19959: _Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); 19959: 19959: 19959: } 19959: # 37 "/usr/include/c++/13/bits/functional_hash.h" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 50 "/usr/include/c++/13/bits/functional_hash.h" 3 19959: template 19959: struct __hash_base 19959: { 19959: typedef _Result result_type [[__deprecated__]]; 19959: typedef _Arg argument_type [[__deprecated__]]; 19959: }; 19959: 19959: 19959: template 19959: struct hash; 19959: 19959: template 19959: struct __poison_hash 19959: { 19959: static constexpr bool __enable_hash_call = false; 19959: private: 19959: 19959: __poison_hash(__poison_hash&&); 19959: ~__poison_hash(); 19959: }; 19959: 19959: template 19959: struct __poison_hash<_Tp, __void_t()(declval<_Tp>()))>> 19959: { 19959: static constexpr bool __enable_hash_call = true; 19959: }; 19959: 19959: 19959: template::value> 19959: struct __hash_enum 19959: { 19959: private: 19959: 19959: __hash_enum(__hash_enum&&); 19959: ~__hash_enum(); 19959: }; 19959: 19959: 19959: template 19959: struct __hash_enum<_Tp, true> : public __hash_base 19959: { 19959: size_t 19959: operator()(_Tp __val) const noexcept 19959: { 19959: using __type = typename underlying_type<_Tp>::type; 19959: return hash<__type>{}(static_cast<__type>(__val)); 19959: } 19959: }; 19959: 19959: 19959: 19959: template 19959: struct hash : __hash_enum<_Tp> 19959: { }; 19959: 19959: 19959: template 19959: struct hash<_Tp*> : public __hash_base 19959: { 19959: size_t 19959: operator()(_Tp* __p) const noexcept 19959: { return reinterpret_cast(__p); } 19959: }; 19959: # 125 "/usr/include/c++/13/bits/functional_hash.h" 3 19959: template<> struct hash : public __hash_base { size_t operator()(bool __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(char __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(signed char __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(unsigned char __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(wchar_t __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(char16_t __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(char32_t __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(short __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(int __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(long __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(long long __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(unsigned short __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(unsigned int __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(unsigned long __val) const noexcept { return static_cast(__val); } }; 19959: 19959: 19959: template<> struct hash : public __hash_base { size_t operator()(unsigned long long __val) const noexcept { return static_cast(__val); } }; 19959: # 201 "/usr/include/c++/13/bits/functional_hash.h" 3 19959: struct _Hash_impl 19959: { 19959: static size_t 19959: hash(const void* __ptr, size_t __clength, 19959: size_t __seed = static_cast(0xc70f6907UL)) 19959: { return _Hash_bytes(__ptr, __clength, __seed); } 19959: 19959: template 19959: static size_t 19959: hash(const _Tp& __val) 19959: { return hash(&__val, sizeof(__val)); } 19959: 19959: template 19959: static size_t 19959: __hash_combine(const _Tp& __val, size_t __hash) 19959: { return hash(&__val, sizeof(__val), __hash); } 19959: }; 19959: 19959: 19959: struct _Fnv_hash_impl 19959: { 19959: static size_t 19959: hash(const void* __ptr, size_t __clength, 19959: size_t __seed = static_cast(2166136261UL)) 19959: { return _Fnv_hash_bytes(__ptr, __clength, __seed); } 19959: 19959: template 19959: static size_t 19959: hash(const _Tp& __val) 19959: { return hash(&__val, sizeof(__val)); } 19959: 19959: template 19959: static size_t 19959: __hash_combine(const _Tp& __val, size_t __hash) 19959: { return hash(&__val, sizeof(__val), __hash); } 19959: }; 19959: 19959: 19959: template<> 19959: struct hash : public __hash_base 19959: { 19959: size_t 19959: operator()(float __val) const noexcept 19959: { 19959: 19959: return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; 19959: } 19959: }; 19959: 19959: 19959: template<> 19959: struct hash : public __hash_base 19959: { 19959: size_t 19959: operator()(double __val) const noexcept 19959: { 19959: 19959: return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; 19959: } 19959: }; 19959: 19959: 19959: template<> 19959: struct hash 19959: : public __hash_base 19959: { 19959: __attribute__ ((__pure__)) size_t 19959: operator()(long double __val) const noexcept; 19959: }; 19959: 19959: 19959: template<> 19959: struct hash : public __hash_base 19959: { 19959: size_t 19959: operator()(nullptr_t) const noexcept 19959: { return 0; } 19959: }; 19959: # 294 "/usr/include/c++/13/bits/functional_hash.h" 3 19959: template 19959: struct __is_fast_hash : public std::true_type 19959: { }; 19959: 19959: template<> 19959: struct __is_fast_hash> : public std::false_type 19959: { }; 19959: 19959: 19959: } 19959: # 56 "/usr/include/c++/13/functional" 2 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/std_function.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/std_function.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/std_function.h" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/typeinfo" 1 3 19959: # 32 "/usr/include/c++/13/typeinfo" 3 19959: 19959: # 33 "/usr/include/c++/13/typeinfo" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: #pragma GCC visibility push(default) 19959: 19959: 19959: 19959: 19959: 19959: extern "C++" { 19959: 19959: namespace __cxxabiv1 19959: { 19959: class __class_type_info; 19959: } 19959: # 84 "/usr/include/c++/13/typeinfo" 3 19959: namespace std 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: class type_info 19959: { 19959: public: 19959: 19959: 19959: 19959: 19959: virtual ~type_info(); 19959: 19959: 19959: 19959: const char* name() const noexcept 19959: { return __name[0] == '*' ? __name + 1 : __name; } 19959: 19959: 19959: 19959: bool before(const type_info& __arg) const noexcept; 19959: 19959: 19959: bool operator==(const type_info& __arg) const noexcept; 19959: 19959: 19959: bool operator!=(const type_info& __arg) const noexcept 19959: { return !operator==(__arg); } 19959: 19959: 19959: 19959: size_t hash_code() const noexcept 19959: { 19959: 19959: return _Hash_bytes(name(), __builtin_strlen(name()), 19959: static_cast(0xc70f6907UL)); 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: virtual bool __is_pointer_p() const; 19959: 19959: 19959: virtual bool __is_function_p() const; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, 19959: unsigned __outer) const; 19959: 19959: 19959: virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, 19959: void **__obj_ptr) const; 19959: 19959: protected: 19959: const char *__name; 19959: 19959: explicit type_info(const char *__n): __name(__n) { } 19959: 19959: private: 19959: 19959: 19959: type_info& operator=(const type_info&) = delete; 19959: type_info(const type_info&) = delete; 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool __equal(const type_info&) const noexcept; 19959: 19959: }; 19959: # 220 "/usr/include/c++/13/typeinfo" 3 19959: class bad_cast : public exception 19959: { 19959: public: 19959: bad_cast() noexcept { } 19959: 19959: 19959: 19959: virtual ~bad_cast() noexcept; 19959: 19959: 19959: virtual const char* what() const noexcept; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: class bad_typeid : public exception 19959: { 19959: public: 19959: bad_typeid () noexcept { } 19959: 19959: 19959: 19959: virtual ~bad_typeid() noexcept; 19959: 19959: 19959: virtual const char* what() const noexcept; 19959: }; 19959: } 19959: 19959: } 19959: 19959: #pragma GCC visibility pop 19959: # 41 "/usr/include/c++/13/bits/std_function.h" 2 3 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class bad_function_call : public std::exception 19959: { 19959: public: 19959: virtual ~bad_function_call() noexcept; 19959: 19959: const char* what() const noexcept; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __is_location_invariant 19959: : is_trivially_copyable<_Tp>::type 19959: { }; 19959: 19959: class _Undefined_class; 19959: 19959: union _Nocopy_types 19959: { 19959: void* _M_object; 19959: const void* _M_const_object; 19959: void (*_M_function_pointer)(); 19959: void (_Undefined_class::*_M_member_pointer)(); 19959: }; 19959: 19959: union [[gnu::may_alias]] _Any_data 19959: { 19959: void* _M_access() noexcept { return &_M_pod_data[0]; } 19959: const void* _M_access() const noexcept { return &_M_pod_data[0]; } 19959: 19959: template 19959: _Tp& 19959: _M_access() noexcept 19959: { return *static_cast<_Tp*>(_M_access()); } 19959: 19959: template 19959: const _Tp& 19959: _M_access() const noexcept 19959: { return *static_cast(_M_access()); } 19959: 19959: _Nocopy_types _M_unused; 19959: char _M_pod_data[sizeof(_Nocopy_types)]; 19959: }; 19959: 19959: enum _Manager_operation 19959: { 19959: __get_type_info, 19959: __get_functor_ptr, 19959: __clone_functor, 19959: __destroy_functor 19959: }; 19959: 19959: template 19959: class function; 19959: 19959: 19959: class _Function_base 19959: { 19959: public: 19959: static const size_t _M_max_size = sizeof(_Nocopy_types); 19959: static const size_t _M_max_align = __alignof__(_Nocopy_types); 19959: 19959: template 19959: class _Base_manager 19959: { 19959: protected: 19959: static const bool __stored_locally = 19959: (__is_location_invariant<_Functor>::value 19959: && sizeof(_Functor) <= _M_max_size 19959: && __alignof__(_Functor) <= _M_max_align 19959: && (_M_max_align % __alignof__(_Functor) == 0)); 19959: 19959: using _Local_storage = integral_constant; 19959: 19959: 19959: static _Functor* 19959: _M_get_pointer(const _Any_data& __source) noexcept 19959: { 19959: if constexpr (__stored_locally) 19959: { 19959: const _Functor& __f = __source._M_access<_Functor>(); 19959: return const_cast<_Functor*>(std::__addressof(__f)); 19959: } 19959: else 19959: return __source._M_access<_Functor*>(); 19959: } 19959: 19959: private: 19959: 19959: 19959: template 19959: static void 19959: _M_create(_Any_data& __dest, _Fn&& __f, true_type) 19959: { 19959: ::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f)); 19959: } 19959: 19959: 19959: template 19959: static void 19959: _M_create(_Any_data& __dest, _Fn&& __f, false_type) 19959: { 19959: __dest._M_access<_Functor*>() 19959: = new _Functor(std::forward<_Fn>(__f)); 19959: } 19959: 19959: 19959: static void 19959: _M_destroy(_Any_data& __victim, true_type) 19959: { 19959: __victim._M_access<_Functor>().~_Functor(); 19959: } 19959: 19959: 19959: static void 19959: _M_destroy(_Any_data& __victim, false_type) 19959: { 19959: delete __victim._M_access<_Functor*>(); 19959: } 19959: 19959: public: 19959: static bool 19959: _M_manager(_Any_data& __dest, const _Any_data& __source, 19959: _Manager_operation __op) 19959: { 19959: switch (__op) 19959: { 19959: case __get_type_info: 19959: 19959: __dest._M_access() = &typeid(_Functor); 19959: 19959: 19959: 19959: break; 19959: 19959: case __get_functor_ptr: 19959: __dest._M_access<_Functor*>() = _M_get_pointer(__source); 19959: break; 19959: 19959: case __clone_functor: 19959: _M_init_functor(__dest, 19959: *const_cast(_M_get_pointer(__source))); 19959: break; 19959: 19959: case __destroy_functor: 19959: _M_destroy(__dest, _Local_storage()); 19959: break; 19959: } 19959: return false; 19959: } 19959: 19959: template 19959: static void 19959: _M_init_functor(_Any_data& __functor, _Fn&& __f) 19959: noexcept(__and_<_Local_storage, 19959: is_nothrow_constructible<_Functor, _Fn>>::value) 19959: { 19959: _M_create(__functor, std::forward<_Fn>(__f), _Local_storage()); 19959: } 19959: 19959: template 19959: static bool 19959: _M_not_empty_function(const function<_Signature>& __f) noexcept 19959: { return static_cast(__f); } 19959: 19959: template 19959: static bool 19959: _M_not_empty_function(_Tp* __fp) noexcept 19959: { return __fp != nullptr; } 19959: 19959: template 19959: static bool 19959: _M_not_empty_function(_Tp _Class::* __mp) noexcept 19959: { return __mp != nullptr; } 19959: 19959: template 19959: static bool 19959: _M_not_empty_function(const _Tp&) noexcept 19959: { return true; } 19959: }; 19959: 19959: _Function_base() = default; 19959: 19959: ~_Function_base() 19959: { 19959: if (_M_manager) 19959: _M_manager(_M_functor, _M_functor, __destroy_functor); 19959: } 19959: 19959: bool _M_empty() const { return !_M_manager; } 19959: 19959: using _Manager_type 19959: = bool (*)(_Any_data&, const _Any_data&, _Manager_operation); 19959: 19959: _Any_data _M_functor{}; 19959: _Manager_type _M_manager{}; 19959: }; 19959: 19959: template 19959: class _Function_handler; 19959: 19959: template 19959: class _Function_handler<_Res(_ArgTypes...), _Functor> 19959: : public _Function_base::_Base_manager<_Functor> 19959: { 19959: using _Base = _Function_base::_Base_manager<_Functor>; 19959: 19959: public: 19959: static bool 19959: _M_manager(_Any_data& __dest, const _Any_data& __source, 19959: _Manager_operation __op) 19959: { 19959: switch (__op) 19959: { 19959: 19959: case __get_type_info: 19959: __dest._M_access() = &typeid(_Functor); 19959: break; 19959: 19959: case __get_functor_ptr: 19959: __dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source); 19959: break; 19959: 19959: default: 19959: _Base::_M_manager(__dest, __source, __op); 19959: } 19959: return false; 19959: } 19959: 19959: static _Res 19959: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 19959: { 19959: return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor), 19959: std::forward<_ArgTypes>(__args)...); 19959: } 19959: 19959: template 19959: static constexpr bool 19959: _S_nothrow_init() noexcept 19959: { 19959: return __and_>::value; 19959: } 19959: }; 19959: 19959: 19959: template<> 19959: class _Function_handler 19959: { 19959: public: 19959: static bool 19959: _M_manager(_Any_data&, const _Any_data&, _Manager_operation) 19959: { return false; } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template::value> 19959: struct _Target_handler 19959: : _Function_handler<_Signature, typename remove_cv<_Functor>::type> 19959: { }; 19959: 19959: template 19959: struct _Target_handler<_Signature, _Functor, false> 19959: : _Function_handler 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: class function<_Res(_ArgTypes...)> 19959: : public _Maybe_unary_or_binary_function<_Res, _ArgTypes...>, 19959: private _Function_base 19959: { 19959: 19959: 19959: template, function>::value> 19959: using _Decay_t 19959: = typename __enable_if_t>::type; 19959: 19959: template, 19959: typename _Res2 = __invoke_result<_DFunc&, _ArgTypes...>> 19959: struct _Callable 19959: : __is_invocable_impl<_Res2, _Res>::type 19959: { }; 19959: 19959: template 19959: using _Requires = __enable_if_t<_Cond::value, _Tp>; 19959: 19959: template 19959: using _Handler 19959: = _Function_handler<_Res(_ArgTypes...), __decay_t<_Functor>>; 19959: 19959: public: 19959: typedef _Res result_type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: function() noexcept 19959: : _Function_base() { } 19959: 19959: 19959: 19959: 19959: 19959: function(nullptr_t) noexcept 19959: : _Function_base() { } 19959: # 386 "/usr/include/c++/13/bits/std_function.h" 3 19959: function(const function& __x) 19959: : _Function_base() 19959: { 19959: if (static_cast(__x)) 19959: { 19959: __x._M_manager(_M_functor, __x._M_functor, __clone_functor); 19959: _M_invoker = __x._M_invoker; 19959: _M_manager = __x._M_manager; 19959: } 19959: } 19959: # 404 "/usr/include/c++/13/bits/std_function.h" 3 19959: function(function&& __x) noexcept 19959: : _Function_base(), _M_invoker(__x._M_invoker) 19959: { 19959: if (static_cast(__x)) 19959: { 19959: _M_functor = __x._M_functor; 19959: _M_manager = __x._M_manager; 19959: __x._M_manager = nullptr; 19959: __x._M_invoker = nullptr; 19959: } 19959: } 19959: # 433 "/usr/include/c++/13/bits/std_function.h" 3 19959: template>> 19959: function(_Functor&& __f) 19959: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 19959: : _Function_base() 19959: { 19959: static_assert(is_copy_constructible<__decay_t<_Functor>>::value, 19959: "std::function target must be copy-constructible"); 19959: static_assert(is_constructible<__decay_t<_Functor>, _Functor>::value, 19959: "std::function target must be constructible from the " 19959: "constructor argument"); 19959: 19959: using _My_handler = _Handler<_Functor>; 19959: 19959: if (_My_handler::_M_not_empty_function(__f)) 19959: { 19959: _My_handler::_M_init_functor(_M_functor, 19959: std::forward<_Functor>(__f)); 19959: _M_invoker = &_My_handler::_M_invoke; 19959: _M_manager = &_My_handler::_M_manager; 19959: } 19959: } 19959: # 468 "/usr/include/c++/13/bits/std_function.h" 3 19959: function& 19959: operator=(const function& __x) 19959: { 19959: function(__x).swap(*this); 19959: return *this; 19959: } 19959: # 486 "/usr/include/c++/13/bits/std_function.h" 3 19959: function& 19959: operator=(function&& __x) noexcept 19959: { 19959: function(std::move(__x)).swap(*this); 19959: return *this; 19959: } 19959: # 500 "/usr/include/c++/13/bits/std_function.h" 3 19959: function& 19959: operator=(nullptr_t) noexcept 19959: { 19959: if (_M_manager) 19959: { 19959: _M_manager(_M_functor, _M_functor, __destroy_functor); 19959: _M_manager = nullptr; 19959: _M_invoker = nullptr; 19959: } 19959: return *this; 19959: } 19959: # 529 "/usr/include/c++/13/bits/std_function.h" 3 19959: template 19959: _Requires<_Callable<_Functor>, function&> 19959: operator=(_Functor&& __f) 19959: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 19959: { 19959: function(std::forward<_Functor>(__f)).swap(*this); 19959: return *this; 19959: } 19959: 19959: 19959: template 19959: function& 19959: operator=(reference_wrapper<_Functor> __f) noexcept 19959: { 19959: function(__f).swap(*this); 19959: return *this; 19959: } 19959: # 556 "/usr/include/c++/13/bits/std_function.h" 3 19959: void swap(function& __x) noexcept 19959: { 19959: std::swap(_M_functor, __x._M_functor); 19959: std::swap(_M_manager, __x._M_manager); 19959: std::swap(_M_invoker, __x._M_invoker); 19959: } 19959: # 573 "/usr/include/c++/13/bits/std_function.h" 3 19959: explicit operator bool() const noexcept 19959: { return !_M_empty(); } 19959: # 586 "/usr/include/c++/13/bits/std_function.h" 3 19959: _Res 19959: operator()(_ArgTypes... __args) const 19959: { 19959: if (_M_empty()) 19959: __throw_bad_function_call(); 19959: return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...); 19959: } 19959: # 605 "/usr/include/c++/13/bits/std_function.h" 3 19959: const type_info& 19959: target_type() const noexcept 19959: { 19959: if (_M_manager) 19959: { 19959: _Any_data __typeinfo_result; 19959: _M_manager(__typeinfo_result, _M_functor, __get_type_info); 19959: if (auto __ti = __typeinfo_result._M_access()) 19959: return *__ti; 19959: } 19959: return typeid(void); 19959: } 19959: # 630 "/usr/include/c++/13/bits/std_function.h" 3 19959: template 19959: _Functor* 19959: target() noexcept 19959: { 19959: const function* __const_this = this; 19959: const _Functor* __func = __const_this->template target<_Functor>(); 19959: 19959: 19959: return *const_cast<_Functor**>(&__func); 19959: } 19959: 19959: template 19959: const _Functor* 19959: target() const noexcept 19959: { 19959: if constexpr (is_object<_Functor>::value) 19959: { 19959: 19959: 19959: using _Handler = _Target_handler<_Res(_ArgTypes...), _Functor>; 19959: 19959: if (_M_manager == &_Handler::_M_manager 19959: 19959: || (_M_manager && typeid(_Functor) == target_type()) 19959: 19959: ) 19959: { 19959: _Any_data __ptr; 19959: _M_manager(__ptr, _M_functor, __get_functor_ptr); 19959: return __ptr._M_access(); 19959: } 19959: } 19959: return nullptr; 19959: } 19959: 19959: 19959: private: 19959: using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...); 19959: _Invoker_type _M_invoker = nullptr; 19959: }; 19959: 19959: 19959: template 19959: struct __function_guide_helper 19959: { }; 19959: 19959: template 19959: struct __function_guide_helper< 19959: _Res (_Tp::*) (_Args...) noexcept(_Nx) 19959: > 19959: { using type = _Res(_Args...); }; 19959: 19959: template 19959: struct __function_guide_helper< 19959: _Res (_Tp::*) (_Args...) & noexcept(_Nx) 19959: > 19959: { using type = _Res(_Args...); }; 19959: 19959: template 19959: struct __function_guide_helper< 19959: _Res (_Tp::*) (_Args...) const noexcept(_Nx) 19959: > 19959: { using type = _Res(_Args...); }; 19959: 19959: template 19959: struct __function_guide_helper< 19959: _Res (_Tp::*) (_Args...) const & noexcept(_Nx) 19959: > 19959: { using type = _Res(_Args...); }; 19959: # 715 "/usr/include/c++/13/bits/std_function.h" 3 19959: template 19959: using __function_guide_t = typename __function_guide_helper<_Op>::type; 19959: 19959: 19959: template 19959: function(_Res(*)(_ArgTypes...)) -> function<_Res(_ArgTypes...)>; 19959: 19959: template> 19959: function(_Fn) -> function<_Signature>; 19959: # 735 "/usr/include/c++/13/bits/std_function.h" 3 19959: template 19959: inline bool 19959: operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 19959: { return !static_cast(__f); } 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 19959: { return !static_cast(__f); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 19959: { return static_cast(__f); } 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 19959: { return static_cast(__f); } 19959: # 774 "/usr/include/c++/13/bits/std_function.h" 3 19959: template 19959: inline void 19959: swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y) noexcept 19959: { __x.swap(__y); } 19959: 19959: 19959: namespace __detail::__variant 19959: { 19959: template struct _Never_valueless_alt; 19959: 19959: 19959: 19959: template 19959: struct _Never_valueless_alt> 19959: : std::true_type 19959: { }; 19959: } 19959: 19959: 19959: 19959: } 19959: # 60 "/usr/include/c++/13/functional" 2 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/unordered_map" 1 3 19959: # 32 "/usr/include/c++/13/unordered_map" 3 19959: 19959: # 33 "/usr/include/c++/13/unordered_map" 3 19959: # 41 "/usr/include/c++/13/unordered_map" 3 19959: # 1 "/usr/include/c++/13/bits/unordered_map.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: # 1 "/usr/include/c++/13/bits/hashtable.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/hashtable.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/hashtable.h" 3 19959: 19959: # 1 "/usr/include/c++/13/bits/hashtable_policy.h" 1 3 19959: # 38 "/usr/include/c++/13/bits/hashtable_policy.h" 3 19959: # 1 "/usr/include/c++/13/ext/aligned_buffer.h" 1 3 19959: # 32 "/usr/include/c++/13/ext/aligned_buffer.h" 3 19959: 19959: # 33 "/usr/include/c++/13/ext/aligned_buffer.h" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace __gnu_cxx 19959: { 19959: 19959: 19959: 19959: 19959: template 19959: struct __aligned_membuf 19959: { 19959: 19959: 19959: 19959: 19959: 19959: struct _Tp2 { _Tp _M_t; }; 19959: 19959: alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)]; 19959: 19959: __aligned_membuf() = default; 19959: 19959: 19959: __aligned_membuf(std::nullptr_t) { } 19959: 19959: void* 19959: _M_addr() noexcept 19959: { return static_cast(&_M_storage); } 19959: 19959: const void* 19959: _M_addr() const noexcept 19959: { return static_cast(&_M_storage); } 19959: 19959: _Tp* 19959: _M_ptr() noexcept 19959: { return static_cast<_Tp*>(_M_addr()); } 19959: 19959: const _Tp* 19959: _M_ptr() const noexcept 19959: { return static_cast(_M_addr()); } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __aligned_buffer 19959: : std::aligned_storage 19959: { 19959: typename 19959: std::aligned_storage::type _M_storage; 19959: 19959: __aligned_buffer() = default; 19959: 19959: 19959: __aligned_buffer(std::nullptr_t) { } 19959: 19959: void* 19959: _M_addr() noexcept 19959: { 19959: return static_cast(&_M_storage); 19959: } 19959: 19959: const void* 19959: _M_addr() const noexcept 19959: { 19959: return static_cast(&_M_storage); 19959: } 19959: 19959: _Tp* 19959: _M_ptr() noexcept 19959: { return static_cast<_Tp*>(_M_addr()); } 19959: 19959: const _Tp* 19959: _M_ptr() const noexcept 19959: { return static_cast(_M_addr()); } 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: } 19959: # 39 "/usr/include/c++/13/bits/hashtable_policy.h" 2 3 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: class _Hashtable; 19959: 19959: namespace __detail 19959: { 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Hashtable_base; 19959: 19959: 19959: 19959: template 19959: inline typename std::iterator_traits<_Iterator>::difference_type 19959: __distance_fw(_Iterator __first, _Iterator __last, 19959: std::input_iterator_tag) 19959: { return __first != __last ? 1 : 0; } 19959: 19959: template 19959: inline typename std::iterator_traits<_Iterator>::difference_type 19959: __distance_fw(_Iterator __first, _Iterator __last, 19959: std::forward_iterator_tag) 19959: { return std::distance(__first, __last); } 19959: 19959: template 19959: inline typename std::iterator_traits<_Iterator>::difference_type 19959: __distance_fw(_Iterator __first, _Iterator __last) 19959: { return __distance_fw(__first, __last, 19959: std::__iterator_category(__first)); } 19959: 19959: struct _Identity 19959: { 19959: template 19959: _Tp&& 19959: operator()(_Tp&& __x) const noexcept 19959: { return std::forward<_Tp>(__x); } 19959: }; 19959: 19959: struct _Select1st 19959: { 19959: template 19959: struct __1st_type; 19959: 19959: template 19959: struct __1st_type> 19959: { using type = _Tp; }; 19959: 19959: template 19959: struct __1st_type> 19959: { using type = const _Tp; }; 19959: 19959: template 19959: struct __1st_type<_Pair&> 19959: { using type = typename __1st_type<_Pair>::type&; }; 19959: 19959: template 19959: typename __1st_type<_Tp>::type&& 19959: operator()(_Tp&& __x) const noexcept 19959: { return std::forward<_Tp>(__x).first; } 19959: }; 19959: 19959: template 19959: struct _ConvertToValueType; 19959: 19959: template 19959: struct _ConvertToValueType<_Identity, _Value> 19959: { 19959: template 19959: constexpr _Kt&& 19959: operator()(_Kt&& __k) const noexcept 19959: { return std::forward<_Kt>(__k); } 19959: }; 19959: 19959: template 19959: struct _ConvertToValueType<_Select1st, _Value> 19959: { 19959: constexpr _Value&& 19959: operator()(_Value&& __x) const noexcept 19959: { return std::move(__x); } 19959: 19959: constexpr const _Value& 19959: operator()(const _Value& __x) const noexcept 19959: { return __x; } 19959: 19959: template 19959: constexpr std::pair<_Kt, _Val>&& 19959: operator()(std::pair<_Kt, _Val>&& __x) const noexcept 19959: { return std::move(__x); } 19959: 19959: template 19959: constexpr const std::pair<_Kt, _Val>& 19959: operator()(const std::pair<_Kt, _Val>& __x) const noexcept 19959: { return __x; } 19959: }; 19959: 19959: template 19959: struct _NodeBuilder; 19959: 19959: template<> 19959: struct _NodeBuilder<_Select1st> 19959: { 19959: template 19959: static auto 19959: _S_build(_Kt&& __k, _Arg&& __arg, const _NodeGenerator& __node_gen) 19959: -> typename _NodeGenerator::__node_type* 19959: { 19959: return __node_gen(std::forward<_Kt>(__k), 19959: std::forward<_Arg>(__arg).second); 19959: } 19959: }; 19959: 19959: template<> 19959: struct _NodeBuilder<_Identity> 19959: { 19959: template 19959: static auto 19959: _S_build(_Kt&& __k, _Arg&&, const _NodeGenerator& __node_gen) 19959: -> typename _NodeGenerator::__node_type* 19959: { return __node_gen(std::forward<_Kt>(__k)); } 19959: }; 19959: 19959: template 19959: struct _Hashtable_alloc; 19959: 19959: 19959: 19959: template 19959: struct _ReuseOrAllocNode 19959: { 19959: private: 19959: using __node_alloc_type = _NodeAlloc; 19959: using __hashtable_alloc = _Hashtable_alloc<__node_alloc_type>; 19959: using __node_alloc_traits = 19959: typename __hashtable_alloc::__node_alloc_traits; 19959: 19959: public: 19959: using __node_type = typename __hashtable_alloc::__node_type; 19959: 19959: _ReuseOrAllocNode(__node_type* __nodes, __hashtable_alloc& __h) 19959: : _M_nodes(__nodes), _M_h(__h) { } 19959: _ReuseOrAllocNode(const _ReuseOrAllocNode&) = delete; 19959: 19959: ~_ReuseOrAllocNode() 19959: { _M_h._M_deallocate_nodes(_M_nodes); } 19959: 19959: template 19959: __node_type* 19959: operator()(_Args&&... __args) const 19959: { 19959: if (_M_nodes) 19959: { 19959: __node_type* __node = _M_nodes; 19959: _M_nodes = _M_nodes->_M_next(); 19959: __node->_M_nxt = nullptr; 19959: auto& __a = _M_h._M_node_allocator(); 19959: __node_alloc_traits::destroy(__a, __node->_M_valptr()); 19959: try 19959: { 19959: __node_alloc_traits::construct(__a, __node->_M_valptr(), 19959: std::forward<_Args>(__args)...); 19959: } 19959: catch(...) 19959: { 19959: _M_h._M_deallocate_node_ptr(__node); 19959: throw; 19959: } 19959: return __node; 19959: } 19959: return _M_h._M_allocate_node(std::forward<_Args>(__args)...); 19959: } 19959: 19959: private: 19959: mutable __node_type* _M_nodes; 19959: __hashtable_alloc& _M_h; 19959: }; 19959: 19959: 19959: 19959: template 19959: struct _AllocNode 19959: { 19959: private: 19959: using __hashtable_alloc = _Hashtable_alloc<_NodeAlloc>; 19959: 19959: public: 19959: using __node_type = typename __hashtable_alloc::__node_type; 19959: 19959: _AllocNode(__hashtable_alloc& __h) 19959: : _M_h(__h) { } 19959: 19959: template 19959: __node_type* 19959: operator()(_Args&&... __args) const 19959: { return _M_h._M_allocate_node(std::forward<_Args>(__args)...); } 19959: 19959: private: 19959: __hashtable_alloc& _M_h; 19959: }; 19959: # 279 "/usr/include/c++/13/bits/hashtable_policy.h" 3 19959: template 19959: struct _Hashtable_traits 19959: { 19959: using __hash_cached = __bool_constant<_Cache_hash_code>; 19959: using __constant_iterators = __bool_constant<_Constant_iterators>; 19959: using __unique_keys = __bool_constant<_Unique_keys>; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Hashtable_hash_traits 19959: { 19959: static constexpr std::size_t 19959: __small_size_threshold() noexcept 19959: { return std::__is_fast_hash<_Hash>::value ? 0 : 20; } 19959: }; 19959: # 309 "/usr/include/c++/13/bits/hashtable_policy.h" 3 19959: struct _Hash_node_base 19959: { 19959: _Hash_node_base* _M_nxt; 19959: 19959: _Hash_node_base() noexcept : _M_nxt() { } 19959: 19959: _Hash_node_base(_Hash_node_base* __next) noexcept : _M_nxt(__next) { } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Hash_node_value_base 19959: { 19959: typedef _Value value_type; 19959: 19959: __gnu_cxx::__aligned_buffer<_Value> _M_storage; 19959: 19959: [[__gnu__::__always_inline__]] 19959: _Value* 19959: _M_valptr() noexcept 19959: { return _M_storage._M_ptr(); } 19959: 19959: [[__gnu__::__always_inline__]] 19959: const _Value* 19959: _M_valptr() const noexcept 19959: { return _M_storage._M_ptr(); } 19959: 19959: [[__gnu__::__always_inline__]] 19959: _Value& 19959: _M_v() noexcept 19959: { return *_M_valptr(); } 19959: 19959: [[__gnu__::__always_inline__]] 19959: const _Value& 19959: _M_v() const noexcept 19959: { return *_M_valptr(); } 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: struct _Hash_node_code_cache 19959: { }; 19959: 19959: 19959: 19959: 19959: template<> 19959: struct _Hash_node_code_cache 19959: { std::size_t _M_hash_code; }; 19959: 19959: template 19959: struct _Hash_node_value 19959: : _Hash_node_value_base<_Value> 19959: , _Hash_node_code_cache<_Cache_hash_code> 19959: { }; 19959: 19959: 19959: 19959: 19959: template 19959: struct _Hash_node 19959: : _Hash_node_base 19959: , _Hash_node_value<_Value, _Cache_hash_code> 19959: { 19959: _Hash_node* 19959: _M_next() const noexcept 19959: { return static_cast<_Hash_node*>(this->_M_nxt); } 19959: }; 19959: 19959: 19959: template 19959: struct _Node_iterator_base 19959: { 19959: using __node_type = _Hash_node<_Value, _Cache_hash_code>; 19959: 19959: __node_type* _M_cur; 19959: 19959: _Node_iterator_base() : _M_cur(nullptr) { } 19959: _Node_iterator_base(__node_type* __p) noexcept 19959: : _M_cur(__p) { } 19959: 19959: void 19959: _M_incr() noexcept 19959: { _M_cur = _M_cur->_M_next(); } 19959: 19959: friend bool 19959: operator==(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 19959: noexcept 19959: { return __x._M_cur == __y._M_cur; } 19959: 19959: 19959: friend bool 19959: operator!=(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 19959: noexcept 19959: { return __x._M_cur != __y._M_cur; } 19959: 19959: }; 19959: 19959: 19959: template 19959: struct _Node_iterator 19959: : public _Node_iterator_base<_Value, __cache> 19959: { 19959: private: 19959: using __base_type = _Node_iterator_base<_Value, __cache>; 19959: using __node_type = typename __base_type::__node_type; 19959: 19959: public: 19959: using value_type = _Value; 19959: using difference_type = std::ptrdiff_t; 19959: using iterator_category = std::forward_iterator_tag; 19959: 19959: using pointer = __conditional_t<__constant_iterators, 19959: const value_type*, value_type*>; 19959: 19959: using reference = __conditional_t<__constant_iterators, 19959: const value_type&, value_type&>; 19959: 19959: _Node_iterator() = default; 19959: 19959: explicit 19959: _Node_iterator(__node_type* __p) noexcept 19959: : __base_type(__p) { } 19959: 19959: reference 19959: operator*() const noexcept 19959: { return this->_M_cur->_M_v(); } 19959: 19959: pointer 19959: operator->() const noexcept 19959: { return this->_M_cur->_M_valptr(); } 19959: 19959: _Node_iterator& 19959: operator++() noexcept 19959: { 19959: this->_M_incr(); 19959: return *this; 19959: } 19959: 19959: _Node_iterator 19959: operator++(int) noexcept 19959: { 19959: _Node_iterator __tmp(*this); 19959: this->_M_incr(); 19959: return __tmp; 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct _Node_const_iterator 19959: : public _Node_iterator_base<_Value, __cache> 19959: { 19959: private: 19959: using __base_type = _Node_iterator_base<_Value, __cache>; 19959: using __node_type = typename __base_type::__node_type; 19959: 19959: public: 19959: typedef _Value value_type; 19959: typedef std::ptrdiff_t difference_type; 19959: typedef std::forward_iterator_tag iterator_category; 19959: 19959: typedef const value_type* pointer; 19959: typedef const value_type& reference; 19959: 19959: _Node_const_iterator() = default; 19959: 19959: explicit 19959: _Node_const_iterator(__node_type* __p) noexcept 19959: : __base_type(__p) { } 19959: 19959: _Node_const_iterator(const _Node_iterator<_Value, __constant_iterators, 19959: __cache>& __x) noexcept 19959: : __base_type(__x._M_cur) { } 19959: 19959: reference 19959: operator*() const noexcept 19959: { return this->_M_cur->_M_v(); } 19959: 19959: pointer 19959: operator->() const noexcept 19959: { return this->_M_cur->_M_valptr(); } 19959: 19959: _Node_const_iterator& 19959: operator++() noexcept 19959: { 19959: this->_M_incr(); 19959: return *this; 19959: } 19959: 19959: _Node_const_iterator 19959: operator++(int) noexcept 19959: { 19959: _Node_const_iterator __tmp(*this); 19959: this->_M_incr(); 19959: return __tmp; 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct _Mod_range_hashing 19959: { 19959: typedef std::size_t first_argument_type; 19959: typedef std::size_t second_argument_type; 19959: typedef std::size_t result_type; 19959: 19959: result_type 19959: operator()(first_argument_type __num, 19959: second_argument_type __den) const noexcept 19959: { return __num % __den; } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct _Default_ranged_hash { }; 19959: 19959: 19959: 19959: struct _Prime_rehash_policy 19959: { 19959: using __has_load_factor = true_type; 19959: 19959: _Prime_rehash_policy(float __z = 1.0) noexcept 19959: : _M_max_load_factor(__z), _M_next_resize(0) { } 19959: 19959: float 19959: max_load_factor() const noexcept 19959: { return _M_max_load_factor; } 19959: 19959: 19959: std::size_t 19959: _M_next_bkt(std::size_t __n) const; 19959: 19959: 19959: std::size_t 19959: _M_bkt_for_elements(std::size_t __n) const 19959: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 19959: 19959: 19959: 19959: 19959: 19959: std::pair 19959: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 19959: std::size_t __n_ins) const; 19959: 19959: typedef std::size_t _State; 19959: 19959: _State 19959: _M_state() const 19959: { return _M_next_resize; } 19959: 19959: void 19959: _M_reset() noexcept 19959: { _M_next_resize = 0; } 19959: 19959: void 19959: _M_reset(_State __state) 19959: { _M_next_resize = __state; } 19959: 19959: static const std::size_t _S_growth_factor = 2; 19959: 19959: float _M_max_load_factor; 19959: mutable std::size_t _M_next_resize; 19959: }; 19959: 19959: 19959: struct _Mask_range_hashing 19959: { 19959: typedef std::size_t first_argument_type; 19959: typedef std::size_t second_argument_type; 19959: typedef std::size_t result_type; 19959: 19959: result_type 19959: operator()(first_argument_type __num, 19959: second_argument_type __den) const noexcept 19959: { return __num & (__den - 1); } 19959: }; 19959: 19959: 19959: inline std::size_t 19959: __clp2(std::size_t __n) noexcept 19959: { 19959: using __gnu_cxx::__int_traits; 19959: 19959: if (__n < 2) 19959: return __n; 19959: const unsigned __lz = sizeof(size_t) > sizeof(long) 19959: ? __builtin_clzll(__n - 1ull) 19959: : __builtin_clzl(__n - 1ul); 19959: 19959: return (size_t(1) << (__int_traits::__digits - __lz - 1)) << 1; 19959: } 19959: 19959: 19959: 19959: struct _Power2_rehash_policy 19959: { 19959: using __has_load_factor = true_type; 19959: 19959: _Power2_rehash_policy(float __z = 1.0) noexcept 19959: : _M_max_load_factor(__z), _M_next_resize(0) { } 19959: 19959: float 19959: max_load_factor() const noexcept 19959: { return _M_max_load_factor; } 19959: 19959: 19959: 19959: std::size_t 19959: _M_next_bkt(std::size_t __n) noexcept 19959: { 19959: if (__n == 0) 19959: 19959: 19959: 19959: return 1; 19959: 19959: const auto __max_width = std::min(sizeof(size_t), 8); 19959: const auto __max_bkt = size_t(1) << (__max_width * 8 - 1); 19959: std::size_t __res = __clp2(__n); 19959: 19959: if (__res == 0) 19959: __res = __max_bkt; 19959: else if (__res == 1) 19959: 19959: 19959: 19959: __res = 2; 19959: 19959: if (__res == __max_bkt) 19959: 19959: 19959: 19959: _M_next_resize = size_t(-1); 19959: else 19959: _M_next_resize 19959: = __builtin_floor(__res * (double)_M_max_load_factor); 19959: 19959: return __res; 19959: } 19959: 19959: 19959: std::size_t 19959: _M_bkt_for_elements(std::size_t __n) const noexcept 19959: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 19959: 19959: 19959: 19959: 19959: 19959: std::pair 19959: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 19959: std::size_t __n_ins) noexcept 19959: { 19959: if (__n_elt + __n_ins > _M_next_resize) 19959: { 19959: 19959: 19959: 19959: double __min_bkts 19959: = std::max(__n_elt + __n_ins, _M_next_resize ? 0 : 11) 19959: / (double)_M_max_load_factor; 19959: if (__min_bkts >= __n_bkt) 19959: return { true, 19959: _M_next_bkt(std::max(__builtin_floor(__min_bkts) + 1, 19959: __n_bkt * _S_growth_factor)) }; 19959: 19959: _M_next_resize 19959: = __builtin_floor(__n_bkt * (double)_M_max_load_factor); 19959: return { false, 0 }; 19959: } 19959: else 19959: return { false, 0 }; 19959: } 19959: 19959: typedef std::size_t _State; 19959: 19959: _State 19959: _M_state() const noexcept 19959: { return _M_next_resize; } 19959: 19959: void 19959: _M_reset() noexcept 19959: { _M_next_resize = 0; } 19959: 19959: void 19959: _M_reset(_State __state) noexcept 19959: { _M_next_resize = __state; } 19959: 19959: static const std::size_t _S_growth_factor = 2; 19959: 19959: float _M_max_load_factor; 19959: std::size_t _M_next_resize; 19959: }; 19959: # 736 "/usr/include/c++/13/bits/hashtable_policy.h" 3 19959: template 19959: struct _Map_base { }; 19959: 19959: 19959: template 19959: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 19959: { 19959: using mapped_type = _Val; 19959: }; 19959: 19959: 19959: template 19959: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 19959: { 19959: private: 19959: using __hashtable_base = _Hashtable_base<_Key, pair, 19959: _Select1st, _Equal, _Hash, 19959: _RangeHash, _Unused, 19959: _Traits>; 19959: 19959: using __hashtable = _Hashtable<_Key, pair, _Alloc, 19959: _Select1st, _Equal, _Hash, _RangeHash, 19959: _Unused, _RehashPolicy, _Traits>; 19959: 19959: using __hash_code = typename __hashtable_base::__hash_code; 19959: 19959: public: 19959: using key_type = typename __hashtable_base::key_type; 19959: using mapped_type = _Val; 19959: 19959: mapped_type& 19959: operator[](const key_type& __k); 19959: 19959: mapped_type& 19959: operator[](key_type&& __k); 19959: 19959: 19959: 19959: mapped_type& 19959: at(const key_type& __k) 19959: { 19959: auto __ite = static_cast<__hashtable*>(this)->find(__k); 19959: if (!__ite._M_cur) 19959: __throw_out_of_range(("unordered_map::at")); 19959: return __ite->second; 19959: } 19959: 19959: const mapped_type& 19959: at(const key_type& __k) const 19959: { 19959: auto __ite = static_cast(this)->find(__k); 19959: if (!__ite._M_cur) 19959: __throw_out_of_range(("unordered_map::at")); 19959: return __ite->second; 19959: } 19959: }; 19959: 19959: template 19959: auto 19959: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 19959: operator[](const key_type& __k) 19959: -> mapped_type& 19959: { 19959: __hashtable* __h = static_cast<__hashtable*>(this); 19959: __hash_code __code = __h->_M_hash_code(__k); 19959: std::size_t __bkt = __h->_M_bucket_index(__code); 19959: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 19959: return __node->_M_v().second; 19959: 19959: typename __hashtable::_Scoped_node __node { 19959: __h, 19959: std::piecewise_construct, 19959: std::tuple(__k), 19959: std::tuple<>() 19959: }; 19959: auto __pos 19959: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 19959: __node._M_node = nullptr; 19959: return __pos->second; 19959: } 19959: 19959: template 19959: auto 19959: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 19959: operator[](key_type&& __k) 19959: -> mapped_type& 19959: { 19959: __hashtable* __h = static_cast<__hashtable*>(this); 19959: __hash_code __code = __h->_M_hash_code(__k); 19959: std::size_t __bkt = __h->_M_bucket_index(__code); 19959: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 19959: return __node->_M_v().second; 19959: 19959: typename __hashtable::_Scoped_node __node { 19959: __h, 19959: std::piecewise_construct, 19959: std::forward_as_tuple(std::move(__k)), 19959: std::tuple<>() 19959: }; 19959: auto __pos 19959: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 19959: __node._M_node = nullptr; 19959: return __pos->second; 19959: } 19959: 19959: 19959: template 19959: struct _Map_base, 19959: _Alloc, _Select1st, _Equal, _Hash, 19959: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 19959: : _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, _Hash, 19959: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Insert_base 19959: { 19959: protected: 19959: using __hashtable_base = _Hashtable_base<_Key, _Value, _ExtractKey, 19959: _Equal, _Hash, _RangeHash, 19959: _Unused, _Traits>; 19959: 19959: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, 19959: _Unused, _RehashPolicy, _Traits>; 19959: 19959: using __hash_cached = typename _Traits::__hash_cached; 19959: using __constant_iterators = typename _Traits::__constant_iterators; 19959: 19959: using __hashtable_alloc = _Hashtable_alloc< 19959: __alloc_rebind<_Alloc, _Hash_node<_Value, 19959: __hash_cached::value>>>; 19959: 19959: using value_type = typename __hashtable_base::value_type; 19959: using size_type = typename __hashtable_base::size_type; 19959: 19959: using __unique_keys = typename _Traits::__unique_keys; 19959: using __node_alloc_type = typename __hashtable_alloc::__node_alloc_type; 19959: using __node_gen_type = _AllocNode<__node_alloc_type>; 19959: 19959: __hashtable& 19959: _M_conjure_hashtable() 19959: { return *(static_cast<__hashtable*>(this)); } 19959: 19959: template 19959: void 19959: _M_insert_range(_InputIterator __first, _InputIterator __last, 19959: const _NodeGetter&, true_type __uks); 19959: 19959: template 19959: void 19959: _M_insert_range(_InputIterator __first, _InputIterator __last, 19959: const _NodeGetter&, false_type __uks); 19959: 19959: public: 19959: using iterator = _Node_iterator<_Value, __constant_iterators::value, 19959: __hash_cached::value>; 19959: 19959: using const_iterator = _Node_const_iterator<_Value, 19959: __constant_iterators::value, 19959: __hash_cached::value>; 19959: 19959: using __ireturn_type = __conditional_t<__unique_keys::value, 19959: std::pair, 19959: iterator>; 19959: 19959: __ireturn_type 19959: insert(const value_type& __v) 19959: { 19959: __hashtable& __h = _M_conjure_hashtable(); 19959: __node_gen_type __node_gen(__h); 19959: return __h._M_insert(__v, __node_gen, __unique_keys{}); 19959: } 19959: 19959: iterator 19959: insert(const_iterator __hint, const value_type& __v) 19959: { 19959: __hashtable& __h = _M_conjure_hashtable(); 19959: __node_gen_type __node_gen(__h); 19959: return __h._M_insert(__hint, __v, __node_gen, __unique_keys{}); 19959: } 19959: 19959: template 19959: std::pair 19959: try_emplace(const_iterator, _KType&& __k, _Args&&... __args) 19959: { 19959: __hashtable& __h = _M_conjure_hashtable(); 19959: auto __code = __h._M_hash_code(__k); 19959: std::size_t __bkt = __h._M_bucket_index(__code); 19959: if (auto __node = __h._M_find_node(__bkt, __k, __code)) 19959: return { iterator(__node), false }; 19959: 19959: typename __hashtable::_Scoped_node __node { 19959: &__h, 19959: std::piecewise_construct, 19959: std::forward_as_tuple(std::forward<_KType>(__k)), 19959: std::forward_as_tuple(std::forward<_Args>(__args)...) 19959: }; 19959: auto __it 19959: = __h._M_insert_unique_node(__bkt, __code, __node._M_node); 19959: __node._M_node = nullptr; 19959: return { __it, true }; 19959: } 19959: 19959: void 19959: insert(initializer_list __l) 19959: { this->insert(__l.begin(), __l.end()); } 19959: 19959: template 19959: void 19959: insert(_InputIterator __first, _InputIterator __last) 19959: { 19959: __hashtable& __h = _M_conjure_hashtable(); 19959: __node_gen_type __node_gen(__h); 19959: return _M_insert_range(__first, __last, __node_gen, __unique_keys{}); 19959: } 19959: }; 19959: 19959: template 19959: template 19959: void 19959: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>:: 19959: _M_insert_range(_InputIterator __first, _InputIterator __last, 19959: const _NodeGetter& __node_gen, true_type __uks) 19959: { 19959: __hashtable& __h = _M_conjure_hashtable(); 19959: for (; __first != __last; ++__first) 19959: __h._M_insert(*__first, __node_gen, __uks); 19959: } 19959: 19959: template 19959: template 19959: void 19959: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>:: 19959: _M_insert_range(_InputIterator __first, _InputIterator __last, 19959: const _NodeGetter& __node_gen, false_type __uks) 19959: { 19959: using __rehash_type = typename __hashtable::__rehash_type; 19959: using __rehash_state = typename __hashtable::__rehash_state; 19959: using pair_type = std::pair; 19959: 19959: size_type __n_elt = __detail::__distance_fw(__first, __last); 19959: if (__n_elt == 0) 19959: return; 19959: 19959: __hashtable& __h = _M_conjure_hashtable(); 19959: __rehash_type& __rehash = __h._M_rehash_policy; 19959: const __rehash_state& __saved_state = __rehash._M_state(); 19959: pair_type __do_rehash = __rehash._M_need_rehash(__h._M_bucket_count, 19959: __h._M_element_count, 19959: __n_elt); 19959: 19959: if (__do_rehash.first) 19959: __h._M_rehash(__do_rehash.second, __saved_state); 19959: 19959: for (; __first != __last; ++__first) 19959: __h._M_insert(*__first, __node_gen, __uks); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Insert; 19959: 19959: 19959: template 19959: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits, true> 19959: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 19959: { 19959: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 19959: _Equal, _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>; 19959: 19959: using value_type = typename __base_type::value_type; 19959: using iterator = typename __base_type::iterator; 19959: using const_iterator = typename __base_type::const_iterator; 19959: using __ireturn_type = typename __base_type::__ireturn_type; 19959: 19959: using __unique_keys = typename __base_type::__unique_keys; 19959: using __hashtable = typename __base_type::__hashtable; 19959: using __node_gen_type = typename __base_type::__node_gen_type; 19959: 19959: using __base_type::insert; 19959: 19959: __ireturn_type 19959: insert(value_type&& __v) 19959: { 19959: __hashtable& __h = this->_M_conjure_hashtable(); 19959: __node_gen_type __node_gen(__h); 19959: return __h._M_insert(std::move(__v), __node_gen, __unique_keys{}); 19959: } 19959: 19959: iterator 19959: insert(const_iterator __hint, value_type&& __v) 19959: { 19959: __hashtable& __h = this->_M_conjure_hashtable(); 19959: __node_gen_type __node_gen(__h); 19959: return __h._M_insert(__hint, std::move(__v), __node_gen, 19959: __unique_keys{}); 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 19959: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 19959: { 19959: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 19959: _Equal, _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>; 19959: using value_type = typename __base_type::value_type; 19959: using iterator = typename __base_type::iterator; 19959: using const_iterator = typename __base_type::const_iterator; 19959: 19959: using __unique_keys = typename __base_type::__unique_keys; 19959: using __hashtable = typename __base_type::__hashtable; 19959: using __ireturn_type = typename __base_type::__ireturn_type; 19959: 19959: using __base_type::insert; 19959: 19959: template 19959: using __is_cons = std::is_constructible; 19959: 19959: template 19959: using _IFcons = std::enable_if<__is_cons<_Pair>::value>; 19959: 19959: template 19959: using _IFconsp = typename _IFcons<_Pair>::type; 19959: 19959: template> 19959: __ireturn_type 19959: insert(_Pair&& __v) 19959: { 19959: __hashtable& __h = this->_M_conjure_hashtable(); 19959: return __h._M_emplace(__unique_keys{}, std::forward<_Pair>(__v)); 19959: } 19959: 19959: template> 19959: iterator 19959: insert(const_iterator __hint, _Pair&& __v) 19959: { 19959: __hashtable& __h = this->_M_conjure_hashtable(); 19959: return __h._M_emplace(__hint, __unique_keys{}, 19959: std::forward<_Pair>(__v)); 19959: } 19959: }; 19959: 19959: template 19959: using __has_load_factor = typename _Policy::__has_load_factor; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: struct _Rehash_base; 19959: 19959: 19959: template 19959: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 19959: false_type > 19959: { 19959: }; 19959: 19959: 19959: template 19959: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 19959: true_type > 19959: { 19959: private: 19959: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, 19959: _Equal, _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>; 19959: 19959: public: 19959: float 19959: max_load_factor() const noexcept 19959: { 19959: const __hashtable* __this = static_cast(this); 19959: return __this->__rehash_policy().max_load_factor(); 19959: } 19959: 19959: void 19959: max_load_factor(float __z) 19959: { 19959: __hashtable* __this = static_cast<__hashtable*>(this); 19959: __this->__rehash_policy(_RehashPolicy(__z)); 19959: } 19959: 19959: void 19959: reserve(std::size_t __n) 19959: { 19959: __hashtable* __this = static_cast<__hashtable*>(this); 19959: __this->rehash(__this->__rehash_policy()._M_bkt_for_elements(__n)); 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Hashtable_ebo_helper; 19959: 19959: 19959: template 19959: struct _Hashtable_ebo_helper<_Nm, _Tp, true> 19959: : private _Tp 19959: { 19959: _Hashtable_ebo_helper() noexcept(noexcept(_Tp())) : _Tp() { } 19959: 19959: template 19959: _Hashtable_ebo_helper(_OtherTp&& __tp) 19959: : _Tp(std::forward<_OtherTp>(__tp)) 19959: { } 19959: 19959: const _Tp& _M_cget() const { return static_cast(*this); } 19959: _Tp& _M_get() { return static_cast<_Tp&>(*this); } 19959: }; 19959: 19959: 19959: template 19959: struct _Hashtable_ebo_helper<_Nm, _Tp, false> 19959: { 19959: _Hashtable_ebo_helper() = default; 19959: 19959: template 19959: _Hashtable_ebo_helper(_OtherTp&& __tp) 19959: : _M_tp(std::forward<_OtherTp>(__tp)) 19959: { } 19959: 19959: const _Tp& _M_cget() const { return _M_tp; } 19959: _Tp& _M_get() { return _M_tp; } 19959: 19959: private: 19959: _Tp _M_tp{}; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Local_iterator_base; 19959: # 1276 "/usr/include/c++/13/bits/hashtable_policy.h" 3 19959: template 19959: struct _Hash_code_base 19959: : private _Hashtable_ebo_helper<1, _Hash> 19959: { 19959: private: 19959: using __ebo_hash = _Hashtable_ebo_helper<1, _Hash>; 19959: 19959: 19959: friend struct _Local_iterator_base<_Key, _Value, _ExtractKey, 19959: _Hash, _RangeHash, _Unused, false>; 19959: 19959: public: 19959: typedef _Hash hasher; 19959: 19959: hasher 19959: hash_function() const 19959: { return _M_hash(); } 19959: 19959: protected: 19959: typedef std::size_t __hash_code; 19959: 19959: 19959: 19959: _Hash_code_base() = default; 19959: 19959: _Hash_code_base(const _Hash& __hash) : __ebo_hash(__hash) { } 19959: 19959: __hash_code 19959: _M_hash_code(const _Key& __k) const 19959: { 19959: static_assert(__is_invocable{}, 19959: "hash function must be invocable with an argument of key type"); 19959: return _M_hash()(__k); 19959: } 19959: 19959: template 19959: __hash_code 19959: _M_hash_code_tr(const _Kt& __k) const 19959: { 19959: static_assert(__is_invocable{}, 19959: "hash function must be invocable with an argument of key type"); 19959: return _M_hash()(__k); 19959: } 19959: 19959: __hash_code 19959: _M_hash_code(const _Hash_node_value<_Value, false>& __n) const 19959: { return _M_hash_code(_ExtractKey{}(__n._M_v())); } 19959: 19959: __hash_code 19959: _M_hash_code(const _Hash_node_value<_Value, true>& __n) const 19959: { return __n._M_hash_code; } 19959: 19959: std::size_t 19959: _M_bucket_index(__hash_code __c, std::size_t __bkt_count) const 19959: { return _RangeHash{}(__c, __bkt_count); } 19959: 19959: std::size_t 19959: _M_bucket_index(const _Hash_node_value<_Value, false>& __n, 19959: std::size_t __bkt_count) const 19959: noexcept( noexcept(declval()(declval())) 19959: && noexcept(declval()((__hash_code)0, 19959: (std::size_t)0)) ) 19959: { 19959: return _RangeHash{}(_M_hash_code(_ExtractKey{}(__n._M_v())), 19959: __bkt_count); 19959: } 19959: 19959: std::size_t 19959: _M_bucket_index(const _Hash_node_value<_Value, true>& __n, 19959: std::size_t __bkt_count) const 19959: noexcept( noexcept(declval()((__hash_code)0, 19959: (std::size_t)0)) ) 19959: { return _RangeHash{}(__n._M_hash_code, __bkt_count); } 19959: 19959: void 19959: _M_store_code(_Hash_node_code_cache&, __hash_code) const 19959: { } 19959: 19959: void 19959: _M_copy_code(_Hash_node_code_cache&, 19959: const _Hash_node_code_cache&) const 19959: { } 19959: 19959: void 19959: _M_store_code(_Hash_node_code_cache& __n, __hash_code __c) const 19959: { __n._M_hash_code = __c; } 19959: 19959: void 19959: _M_copy_code(_Hash_node_code_cache& __to, 19959: const _Hash_node_code_cache& __from) const 19959: { __to._M_hash_code = __from._M_hash_code; } 19959: 19959: void 19959: _M_swap(_Hash_code_base& __x) 19959: { std::swap(__ebo_hash::_M_get(), __x.__ebo_hash::_M_get()); } 19959: 19959: const _Hash& 19959: _M_hash() const { return __ebo_hash::_M_cget(); } 19959: }; 19959: 19959: 19959: template 19959: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 19959: _Hash, _RangeHash, _Unused, true> 19959: : public _Node_iterator_base<_Value, true> 19959: { 19959: protected: 19959: using __base_node_iter = _Node_iterator_base<_Value, true>; 19959: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 19959: _Hash, _RangeHash, _Unused, true>; 19959: 19959: _Local_iterator_base() = default; 19959: _Local_iterator_base(const __hash_code_base&, 19959: _Hash_node<_Value, true>* __p, 19959: std::size_t __bkt, std::size_t __bkt_count) 19959: : __base_node_iter(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 19959: { } 19959: 19959: void 19959: _M_incr() 19959: { 19959: __base_node_iter::_M_incr(); 19959: if (this->_M_cur) 19959: { 19959: std::size_t __bkt 19959: = _RangeHash{}(this->_M_cur->_M_hash_code, _M_bucket_count); 19959: if (__bkt != _M_bucket) 19959: this->_M_cur = nullptr; 19959: } 19959: } 19959: 19959: std::size_t _M_bucket; 19959: std::size_t _M_bucket_count; 19959: 19959: public: 19959: std::size_t 19959: _M_get_bucket() const { return _M_bucket; } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template::value> 19959: struct _Hash_code_storage 19959: { 19959: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 19959: 19959: _Tp* 19959: _M_h() { return _M_storage._M_ptr(); } 19959: 19959: const _Tp* 19959: _M_h() const { return _M_storage._M_ptr(); } 19959: }; 19959: 19959: 19959: template 19959: struct _Hash_code_storage<_Tp, true> 19959: { 19959: static_assert( std::is_empty<_Tp>::value, "Type must be empty" ); 19959: 19959: 19959: 19959: _Tp* 19959: _M_h() { return reinterpret_cast<_Tp*>(this); } 19959: 19959: const _Tp* 19959: _M_h() const { return reinterpret_cast(this); } 19959: }; 19959: 19959: template 19959: using __hash_code_for_local_iter 19959: = _Hash_code_storage<_Hash_code_base<_Key, _Value, _ExtractKey, 19959: _Hash, _RangeHash, _Unused, false>>; 19959: 19959: 19959: template 19959: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 19959: _Hash, _RangeHash, _Unused, false> 19959: : __hash_code_for_local_iter<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 19959: _Unused> 19959: , _Node_iterator_base<_Value, false> 19959: { 19959: protected: 19959: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 19959: _Hash, _RangeHash, _Unused, false>; 19959: using __node_iter_base = _Node_iterator_base<_Value, false>; 19959: 19959: _Local_iterator_base() : _M_bucket_count(-1) { } 19959: 19959: _Local_iterator_base(const __hash_code_base& __base, 19959: _Hash_node<_Value, false>* __p, 19959: std::size_t __bkt, std::size_t __bkt_count) 19959: : __node_iter_base(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 19959: { _M_init(__base); } 19959: 19959: ~_Local_iterator_base() 19959: { 19959: if (_M_bucket_count != size_t(-1)) 19959: _M_destroy(); 19959: } 19959: 19959: _Local_iterator_base(const _Local_iterator_base& __iter) 19959: : __node_iter_base(__iter._M_cur), _M_bucket(__iter._M_bucket) 19959: , _M_bucket_count(__iter._M_bucket_count) 19959: { 19959: if (_M_bucket_count != size_t(-1)) 19959: _M_init(*__iter._M_h()); 19959: } 19959: 19959: _Local_iterator_base& 19959: operator=(const _Local_iterator_base& __iter) 19959: { 19959: if (_M_bucket_count != -1) 19959: _M_destroy(); 19959: this->_M_cur = __iter._M_cur; 19959: _M_bucket = __iter._M_bucket; 19959: _M_bucket_count = __iter._M_bucket_count; 19959: if (_M_bucket_count != -1) 19959: _M_init(*__iter._M_h()); 19959: return *this; 19959: } 19959: 19959: void 19959: _M_incr() 19959: { 19959: __node_iter_base::_M_incr(); 19959: if (this->_M_cur) 19959: { 19959: std::size_t __bkt = this->_M_h()->_M_bucket_index(*this->_M_cur, 19959: _M_bucket_count); 19959: if (__bkt != _M_bucket) 19959: this->_M_cur = nullptr; 19959: } 19959: } 19959: 19959: std::size_t _M_bucket; 19959: std::size_t _M_bucket_count; 19959: 19959: void 19959: _M_init(const __hash_code_base& __base) 19959: { ::new(this->_M_h()) __hash_code_base(__base); } 19959: 19959: void 19959: _M_destroy() { this->_M_h()->~__hash_code_base(); } 19959: 19959: public: 19959: std::size_t 19959: _M_get_bucket() const { return _M_bucket; } 19959: }; 19959: 19959: 19959: template 19959: struct _Local_iterator 19959: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 19959: _Hash, _RangeHash, _Unused, __cache> 19959: { 19959: private: 19959: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 19959: _Hash, _RangeHash, _Unused, __cache>; 19959: using __hash_code_base = typename __base_type::__hash_code_base; 19959: 19959: public: 19959: using value_type = _Value; 19959: using pointer = __conditional_t<__constant_iterators, 19959: const value_type*, value_type*>; 19959: using reference = __conditional_t<__constant_iterators, 19959: const value_type&, value_type&>; 19959: using difference_type = ptrdiff_t; 19959: using iterator_category = forward_iterator_tag; 19959: 19959: _Local_iterator() = default; 19959: 19959: _Local_iterator(const __hash_code_base& __base, 19959: _Hash_node<_Value, __cache>* __n, 19959: std::size_t __bkt, std::size_t __bkt_count) 19959: : __base_type(__base, __n, __bkt, __bkt_count) 19959: { } 19959: 19959: reference 19959: operator*() const 19959: { return this->_M_cur->_M_v(); } 19959: 19959: pointer 19959: operator->() const 19959: { return this->_M_cur->_M_valptr(); } 19959: 19959: _Local_iterator& 19959: operator++() 19959: { 19959: this->_M_incr(); 19959: return *this; 19959: } 19959: 19959: _Local_iterator 19959: operator++(int) 19959: { 19959: _Local_iterator __tmp(*this); 19959: this->_M_incr(); 19959: return __tmp; 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct _Local_const_iterator 19959: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 19959: _Hash, _RangeHash, _Unused, __cache> 19959: { 19959: private: 19959: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 19959: _Hash, _RangeHash, _Unused, __cache>; 19959: using __hash_code_base = typename __base_type::__hash_code_base; 19959: 19959: public: 19959: typedef _Value value_type; 19959: typedef const value_type* pointer; 19959: typedef const value_type& reference; 19959: typedef std::ptrdiff_t difference_type; 19959: typedef std::forward_iterator_tag iterator_category; 19959: 19959: _Local_const_iterator() = default; 19959: 19959: _Local_const_iterator(const __hash_code_base& __base, 19959: _Hash_node<_Value, __cache>* __n, 19959: std::size_t __bkt, std::size_t __bkt_count) 19959: : __base_type(__base, __n, __bkt, __bkt_count) 19959: { } 19959: 19959: _Local_const_iterator(const _Local_iterator<_Key, _Value, _ExtractKey, 19959: _Hash, _RangeHash, _Unused, 19959: __constant_iterators, 19959: __cache>& __x) 19959: : __base_type(__x) 19959: { } 19959: 19959: reference 19959: operator*() const 19959: { return this->_M_cur->_M_v(); } 19959: 19959: pointer 19959: operator->() const 19959: { return this->_M_cur->_M_valptr(); } 19959: 19959: _Local_const_iterator& 19959: operator++() 19959: { 19959: this->_M_incr(); 19959: return *this; 19959: } 19959: 19959: _Local_const_iterator 19959: operator++(int) 19959: { 19959: _Local_const_iterator __tmp(*this); 19959: this->_M_incr(); 19959: return __tmp; 19959: } 19959: }; 19959: # 1655 "/usr/include/c++/13/bits/hashtable_policy.h" 3 19959: template 19959: struct _Hashtable_base 19959: : public _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 19959: _Unused, _Traits::__hash_cached::value>, 19959: private _Hashtable_ebo_helper<0, _Equal> 19959: { 19959: public: 19959: typedef _Key key_type; 19959: typedef _Value value_type; 19959: typedef _Equal key_equal; 19959: typedef std::size_t size_type; 19959: typedef std::ptrdiff_t difference_type; 19959: 19959: using __traits_type = _Traits; 19959: using __hash_cached = typename __traits_type::__hash_cached; 19959: 19959: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 19959: _Hash, _RangeHash, _Unused, 19959: __hash_cached::value>; 19959: 19959: using __hash_code = typename __hash_code_base::__hash_code; 19959: 19959: private: 19959: using _EqualEBO = _Hashtable_ebo_helper<0, _Equal>; 19959: 19959: static bool 19959: _S_equals(__hash_code, const _Hash_node_code_cache&) 19959: { return true; } 19959: 19959: static bool 19959: _S_node_equals(const _Hash_node_code_cache&, 19959: const _Hash_node_code_cache&) 19959: { return true; } 19959: 19959: static bool 19959: _S_equals(__hash_code __c, const _Hash_node_code_cache& __n) 19959: { return __c == __n._M_hash_code; } 19959: 19959: static bool 19959: _S_node_equals(const _Hash_node_code_cache& __lhn, 19959: const _Hash_node_code_cache& __rhn) 19959: { return __lhn._M_hash_code == __rhn._M_hash_code; } 19959: 19959: protected: 19959: _Hashtable_base() = default; 19959: 19959: _Hashtable_base(const _Hash& __hash, const _Equal& __eq) 19959: : __hash_code_base(__hash), _EqualEBO(__eq) 19959: { } 19959: 19959: bool 19959: _M_key_equals(const _Key& __k, 19959: const _Hash_node_value<_Value, 19959: __hash_cached::value>& __n) const 19959: { 19959: static_assert(__is_invocable{}, 19959: "key equality predicate must be invocable with two arguments of " 19959: "key type"); 19959: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 19959: } 19959: 19959: template 19959: bool 19959: _M_key_equals_tr(const _Kt& __k, 19959: const _Hash_node_value<_Value, 19959: __hash_cached::value>& __n) const 19959: { 19959: static_assert( 19959: __is_invocable{}, 19959: "key equality predicate must be invocable with two arguments of " 19959: "key type"); 19959: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 19959: } 19959: 19959: bool 19959: _M_equals(const _Key& __k, __hash_code __c, 19959: const _Hash_node_value<_Value, __hash_cached::value>& __n) const 19959: { return _S_equals(__c, __n) && _M_key_equals(__k, __n); } 19959: 19959: template 19959: bool 19959: _M_equals_tr(const _Kt& __k, __hash_code __c, 19959: const _Hash_node_value<_Value, 19959: __hash_cached::value>& __n) const 19959: { return _S_equals(__c, __n) && _M_key_equals_tr(__k, __n); } 19959: 19959: bool 19959: _M_node_equals( 19959: const _Hash_node_value<_Value, __hash_cached::value>& __lhn, 19959: const _Hash_node_value<_Value, __hash_cached::value>& __rhn) const 19959: { 19959: return _S_node_equals(__lhn, __rhn) 19959: && _M_key_equals(_ExtractKey{}(__lhn._M_v()), __rhn); 19959: } 19959: 19959: void 19959: _M_swap(_Hashtable_base& __x) 19959: { 19959: __hash_code_base::_M_swap(__x); 19959: std::swap(_EqualEBO::_M_get(), __x._EqualEBO::_M_get()); 19959: } 19959: 19959: const _Equal& 19959: _M_eq() const { return _EqualEBO::_M_cget(); } 19959: }; 19959: # 1771 "/usr/include/c++/13/bits/hashtable_policy.h" 3 19959: template 19959: struct _Equality; 19959: 19959: 19959: template 19959: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 19959: { 19959: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>; 19959: 19959: bool 19959: _M_equal(const __hashtable&) const; 19959: }; 19959: 19959: template 19959: bool 19959: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 19959: _M_equal(const __hashtable& __other) const 19959: { 19959: using __node_type = typename __hashtable::__node_type; 19959: const __hashtable* __this = static_cast(this); 19959: if (__this->size() != __other.size()) 19959: return false; 19959: 19959: for (auto __itx = __this->begin(); __itx != __this->end(); ++__itx) 19959: { 19959: std::size_t __ybkt = __other._M_bucket_index(*__itx._M_cur); 19959: auto __prev_n = __other._M_buckets[__ybkt]; 19959: if (!__prev_n) 19959: return false; 19959: 19959: for (__node_type* __n = static_cast<__node_type*>(__prev_n->_M_nxt);; 19959: __n = __n->_M_next()) 19959: { 19959: if (__n->_M_v() == *__itx) 19959: break; 19959: 19959: if (!__n->_M_nxt 19959: || __other._M_bucket_index(*__n->_M_next()) != __ybkt) 19959: return false; 19959: } 19959: } 19959: 19959: return true; 19959: } 19959: 19959: 19959: template 19959: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 19959: { 19959: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>; 19959: 19959: bool 19959: _M_equal(const __hashtable&) const; 19959: }; 19959: 19959: template 19959: bool 19959: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false>:: 19959: _M_equal(const __hashtable& __other) const 19959: { 19959: using __node_type = typename __hashtable::__node_type; 19959: const __hashtable* __this = static_cast(this); 19959: if (__this->size() != __other.size()) 19959: return false; 19959: 19959: for (auto __itx = __this->begin(); __itx != __this->end();) 19959: { 19959: std::size_t __x_count = 1; 19959: auto __itx_end = __itx; 19959: for (++__itx_end; __itx_end != __this->end() 19959: && __this->key_eq()(_ExtractKey{}(*__itx), 19959: _ExtractKey{}(*__itx_end)); 19959: ++__itx_end) 19959: ++__x_count; 19959: 19959: std::size_t __ybkt = __other._M_bucket_index(*__itx._M_cur); 19959: auto __y_prev_n = __other._M_buckets[__ybkt]; 19959: if (!__y_prev_n) 19959: return false; 19959: 19959: __node_type* __y_n = static_cast<__node_type*>(__y_prev_n->_M_nxt); 19959: for (;;) 19959: { 19959: if (__this->key_eq()(_ExtractKey{}(__y_n->_M_v()), 19959: _ExtractKey{}(*__itx))) 19959: break; 19959: 19959: auto __y_ref_n = __y_n; 19959: for (__y_n = __y_n->_M_next(); __y_n; __y_n = __y_n->_M_next()) 19959: if (!__other._M_node_equals(*__y_ref_n, *__y_n)) 19959: break; 19959: 19959: if (!__y_n || __other._M_bucket_index(*__y_n) != __ybkt) 19959: return false; 19959: } 19959: 19959: typename __hashtable::const_iterator __ity(__y_n); 19959: for (auto __ity_end = __ity; __ity_end != __other.end(); ++__ity_end) 19959: if (--__x_count == 0) 19959: break; 19959: 19959: if (__x_count != 0) 19959: return false; 19959: 19959: if (!std::is_permutation(__itx, __itx_end, __ity)) 19959: return false; 19959: 19959: __itx = __itx_end; 19959: } 19959: return true; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Hashtable_alloc : private _Hashtable_ebo_helper<0, _NodeAlloc> 19959: { 19959: private: 19959: using __ebo_node_alloc = _Hashtable_ebo_helper<0, _NodeAlloc>; 19959: 19959: template 19959: struct __get_value_type; 19959: template 19959: struct __get_value_type<_Hash_node<_Val, _Cache_hash_code>> 19959: { using type = _Val; }; 19959: 19959: public: 19959: using __node_type = typename _NodeAlloc::value_type; 19959: using __node_alloc_type = _NodeAlloc; 19959: 19959: using __node_alloc_traits = __gnu_cxx::__alloc_traits<__node_alloc_type>; 19959: 19959: using __value_alloc_traits = typename __node_alloc_traits::template 19959: rebind_traits::type>; 19959: 19959: using __node_ptr = __node_type*; 19959: using __node_base = _Hash_node_base; 19959: using __node_base_ptr = __node_base*; 19959: using __buckets_alloc_type = 19959: __alloc_rebind<__node_alloc_type, __node_base_ptr>; 19959: using __buckets_alloc_traits = std::allocator_traits<__buckets_alloc_type>; 19959: using __buckets_ptr = __node_base_ptr*; 19959: 19959: _Hashtable_alloc() = default; 19959: _Hashtable_alloc(const _Hashtable_alloc&) = default; 19959: _Hashtable_alloc(_Hashtable_alloc&&) = default; 19959: 19959: template 19959: _Hashtable_alloc(_Alloc&& __a) 19959: : __ebo_node_alloc(std::forward<_Alloc>(__a)) 19959: { } 19959: 19959: __node_alloc_type& 19959: _M_node_allocator() 19959: { return __ebo_node_alloc::_M_get(); } 19959: 19959: const __node_alloc_type& 19959: _M_node_allocator() const 19959: { return __ebo_node_alloc::_M_cget(); } 19959: 19959: 19959: template 19959: __node_ptr 19959: _M_allocate_node(_Args&&... __args); 19959: 19959: 19959: void 19959: _M_deallocate_node(__node_ptr __n); 19959: 19959: 19959: void 19959: _M_deallocate_node_ptr(__node_ptr __n); 19959: 19959: 19959: 19959: void 19959: _M_deallocate_nodes(__node_ptr __n); 19959: 19959: __buckets_ptr 19959: _M_allocate_buckets(std::size_t __bkt_count); 19959: 19959: void 19959: _M_deallocate_buckets(__buckets_ptr, std::size_t __bkt_count); 19959: }; 19959: 19959: 19959: 19959: template 19959: template 19959: auto 19959: _Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&... __args) 19959: -> __node_ptr 19959: { 19959: auto __nptr = __node_alloc_traits::allocate(_M_node_allocator(), 1); 19959: __node_ptr __n = std::__to_address(__nptr); 19959: try 19959: { 19959: ::new ((void*)__n) __node_type; 19959: __node_alloc_traits::construct(_M_node_allocator(), 19959: __n->_M_valptr(), 19959: std::forward<_Args>(__args)...); 19959: return __n; 19959: } 19959: catch(...) 19959: { 19959: __node_alloc_traits::deallocate(_M_node_allocator(), __nptr, 1); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: void 19959: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_ptr __n) 19959: { 19959: __node_alloc_traits::destroy(_M_node_allocator(), __n->_M_valptr()); 19959: _M_deallocate_node_ptr(__n); 19959: } 19959: 19959: template 19959: void 19959: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node_ptr(__node_ptr __n) 19959: { 19959: typedef typename __node_alloc_traits::pointer _Ptr; 19959: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__n); 19959: __n->~__node_type(); 19959: __node_alloc_traits::deallocate(_M_node_allocator(), __ptr, 1); 19959: } 19959: 19959: template 19959: void 19959: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_nodes(__node_ptr __n) 19959: { 19959: while (__n) 19959: { 19959: __node_ptr __tmp = __n; 19959: __n = __n->_M_next(); 19959: _M_deallocate_node(__tmp); 19959: } 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count) 19959: -> __buckets_ptr 19959: { 19959: __buckets_alloc_type __alloc(_M_node_allocator()); 19959: 19959: auto __ptr = __buckets_alloc_traits::allocate(__alloc, __bkt_count); 19959: __buckets_ptr __p = std::__to_address(__ptr); 19959: __builtin_memset(__p, 0, __bkt_count * sizeof(__node_base_ptr)); 19959: return __p; 19959: } 19959: 19959: template 19959: void 19959: _Hashtable_alloc<_NodeAlloc>:: 19959: _M_deallocate_buckets(__buckets_ptr __bkts, 19959: std::size_t __bkt_count) 19959: { 19959: typedef typename __buckets_alloc_traits::pointer _Ptr; 19959: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__bkts); 19959: __buckets_alloc_type __alloc(_M_node_allocator()); 19959: __buckets_alloc_traits::deallocate(__alloc, __ptr, __bkt_count); 19959: } 19959: 19959: 19959: } 19959: 19959: 19959: } 19959: # 36 "/usr/include/c++/13/bits/hashtable.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/enable_special_members.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/enable_special_members.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/enable_special_members.h" 3 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: struct _Enable_default_constructor_tag 19959: { 19959: explicit constexpr _Enable_default_constructor_tag() = default; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Enable_default_constructor 19959: { 19959: constexpr _Enable_default_constructor() noexcept = default; 19959: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 19959: noexcept = default; 19959: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 19959: noexcept = default; 19959: _Enable_default_constructor& 19959: operator=(_Enable_default_constructor const&) noexcept = default; 19959: _Enable_default_constructor& 19959: operator=(_Enable_default_constructor&&) noexcept = default; 19959: 19959: 19959: constexpr explicit 19959: _Enable_default_constructor(_Enable_default_constructor_tag) { } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Enable_destructor { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Enable_copy_move { }; 19959: # 96 "/usr/include/c++/13/bits/enable_special_members.h" 3 19959: template 19959: struct _Enable_special_members 19959: : private _Enable_default_constructor<_Default, _Tag>, 19959: private _Enable_destructor<_Destructor, _Tag>, 19959: private _Enable_copy_move<_Copy, _CopyAssignment, 19959: _Move, _MoveAssignment, 19959: _Tag> 19959: { }; 19959: 19959: 19959: 19959: template 19959: struct _Enable_default_constructor 19959: { 19959: constexpr _Enable_default_constructor() noexcept = delete; 19959: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 19959: noexcept = default; 19959: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 19959: noexcept = default; 19959: _Enable_default_constructor& 19959: operator=(_Enable_default_constructor const&) noexcept = default; 19959: _Enable_default_constructor& 19959: operator=(_Enable_default_constructor&&) noexcept = default; 19959: 19959: 19959: constexpr explicit 19959: _Enable_default_constructor(_Enable_default_constructor_tag) { } 19959: }; 19959: 19959: template 19959: struct _Enable_destructor 19959: { ~_Enable_destructor() noexcept = delete; }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = default; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = default; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = default; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = default; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = default; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = default; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = default; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = delete; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = delete; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = delete; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = delete; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = delete; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = default; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = delete; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = delete; 19959: }; 19959: 19959: template 19959: struct _Enable_copy_move 19959: { 19959: constexpr _Enable_copy_move() noexcept = default; 19959: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 19959: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move const&) noexcept = delete; 19959: _Enable_copy_move& 19959: operator=(_Enable_copy_move&&) noexcept = delete; 19959: }; 19959: 19959: 19959: 19959: } 19959: # 37 "/usr/include/c++/13/bits/hashtable.h" 2 3 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/node_handle.h" 1 3 19959: # 34 "/usr/include/c++/13/bits/node_handle.h" 3 19959: 19959: # 35 "/usr/include/c++/13/bits/node_handle.h" 3 19959: # 43 "/usr/include/c++/13/bits/node_handle.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 63 "/usr/include/c++/13/bits/node_handle.h" 3 19959: template 19959: class _Node_handle_common 19959: { 19959: using _AllocTraits = allocator_traits<_NodeAlloc>; 19959: 19959: public: 19959: using allocator_type = __alloc_rebind<_NodeAlloc, _Val>; 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 19959: return allocator_type(_M_alloc._M_alloc); 19959: } 19959: 19959: explicit operator bool() const noexcept { return _M_ptr != nullptr; } 19959: 19959: [[nodiscard]] bool empty() const noexcept { return _M_ptr == nullptr; } 19959: 19959: 19959: protected: 19959: constexpr _Node_handle_common() noexcept : _M_ptr() { } 19959: 19959: ~_Node_handle_common() 19959: { 19959: if (!empty()) 19959: _M_reset(); 19959: } 19959: 19959: _Node_handle_common(_Node_handle_common&& __nh) noexcept 19959: : _M_ptr(__nh._M_ptr) 19959: { 19959: if (_M_ptr) 19959: _M_move(std::move(__nh)); 19959: } 19959: 19959: _Node_handle_common& 19959: operator=(_Node_handle_common&& __nh) noexcept 19959: { 19959: if (empty()) 19959: { 19959: if (!__nh.empty()) 19959: _M_move(std::move(__nh)); 19959: } 19959: else if (__nh.empty()) 19959: _M_reset(); 19959: else 19959: { 19959: 19959: _AllocTraits::destroy(*_M_alloc, _M_ptr->_M_valptr()); 19959: _AllocTraits::deallocate(*_M_alloc, _M_ptr, 1); 19959: 19959: _M_alloc = __nh._M_alloc.release(); 19959: _M_ptr = __nh._M_ptr; 19959: __nh._M_ptr = nullptr; 19959: } 19959: return *this; 19959: } 19959: 19959: _Node_handle_common(typename _AllocTraits::pointer __ptr, 19959: const _NodeAlloc& __alloc) 19959: : _M_ptr(__ptr), _M_alloc(__alloc) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__ptr != nullptr)) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: void 19959: _M_swap(_Node_handle_common& __nh) noexcept 19959: { 19959: if (empty()) 19959: { 19959: if (!__nh.empty()) 19959: _M_move(std::move(__nh)); 19959: } 19959: else if (__nh.empty()) 19959: __nh._M_move(std::move(*this)); 19959: else 19959: { 19959: using std::swap; 19959: swap(_M_ptr, __nh._M_ptr); 19959: _M_alloc.swap(__nh._M_alloc); 19959: } 19959: } 19959: 19959: private: 19959: 19959: 19959: 19959: void 19959: _M_move(_Node_handle_common&& __nh) noexcept 19959: { 19959: ::new (std::__addressof(_M_alloc)) _NodeAlloc(__nh._M_alloc.release()); 19959: _M_ptr = __nh._M_ptr; 19959: __nh._M_ptr = nullptr; 19959: } 19959: 19959: 19959: 19959: 19959: void 19959: _M_reset() noexcept 19959: { 19959: _NodeAlloc __alloc = _M_alloc.release(); 19959: _AllocTraits::destroy(__alloc, _M_ptr->_M_valptr()); 19959: _AllocTraits::deallocate(__alloc, _M_ptr, 1); 19959: _M_ptr = nullptr; 19959: } 19959: 19959: protected: 19959: typename _AllocTraits::pointer _M_ptr; 19959: 19959: private: 19959: 19959: 19959: union _Optional_alloc 19959: { 19959: _Optional_alloc() { } 19959: ~_Optional_alloc() { } 19959: 19959: _Optional_alloc(_Optional_alloc&&) = delete; 19959: _Optional_alloc& operator=(_Optional_alloc&&) = delete; 19959: 19959: _Optional_alloc(const _NodeAlloc& __alloc) noexcept 19959: : _M_alloc(__alloc) 19959: { } 19959: 19959: 19959: void 19959: operator=(_NodeAlloc&& __alloc) noexcept 19959: { 19959: using _ATr = _AllocTraits; 19959: if constexpr (_ATr::propagate_on_container_move_assignment::value) 19959: _M_alloc = std::move(__alloc); 19959: else if constexpr (!_AllocTraits::is_always_equal::value) 19959: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __alloc)) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: 19959: void 19959: swap(_Optional_alloc& __other) noexcept 19959: { 19959: using std::swap; 19959: if constexpr (_AllocTraits::propagate_on_container_swap::value) 19959: swap(_M_alloc, __other._M_alloc); 19959: else if constexpr (!_AllocTraits::is_always_equal::value) 19959: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __other._M_alloc)) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: 19959: _NodeAlloc& operator*() noexcept { return _M_alloc; } 19959: 19959: 19959: _NodeAlloc release() noexcept 19959: { 19959: _NodeAlloc __tmp = std::move(_M_alloc); 19959: _M_alloc.~_NodeAlloc(); 19959: return __tmp; 19959: } 19959: 19959: struct _Empty { }; 19959: 19959: [[__no_unique_address__]] _Empty _M_empty; 19959: [[__no_unique_address__]] _NodeAlloc _M_alloc; 19959: }; 19959: 19959: [[__no_unique_address__]] _Optional_alloc _M_alloc; 19959: 19959: template 19959: friend class _Rb_tree; 19959: 19959: 19959: }; 19959: 19959: 19959: template 19959: class _Node_handle : public _Node_handle_common<_Value, _NodeAlloc> 19959: { 19959: public: 19959: constexpr _Node_handle() noexcept = default; 19959: ~_Node_handle() = default; 19959: _Node_handle(_Node_handle&&) noexcept = default; 19959: 19959: _Node_handle& 19959: operator=(_Node_handle&&) noexcept = default; 19959: 19959: using key_type = _Key; 19959: using mapped_type = typename _Value::second_type; 19959: 19959: key_type& 19959: key() const noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 19959: return *_M_pkey; 19959: } 19959: 19959: mapped_type& 19959: mapped() const noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 19959: return *_M_pmapped; 19959: } 19959: 19959: void 19959: swap(_Node_handle& __nh) noexcept 19959: { 19959: this->_M_swap(__nh); 19959: using std::swap; 19959: swap(_M_pkey, __nh._M_pkey); 19959: swap(_M_pmapped, __nh._M_pmapped); 19959: } 19959: 19959: friend void 19959: swap(_Node_handle& __x, _Node_handle& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: private: 19959: using _AllocTraits = allocator_traits<_NodeAlloc>; 19959: 19959: _Node_handle(typename _AllocTraits::pointer __ptr, 19959: const _NodeAlloc& __alloc) 19959: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) 19959: { 19959: if (__ptr) 19959: { 19959: auto& __key = const_cast<_Key&>(__ptr->_M_valptr()->first); 19959: _M_pkey = _S_pointer_to(__key); 19959: _M_pmapped = _S_pointer_to(__ptr->_M_valptr()->second); 19959: } 19959: else 19959: { 19959: _M_pkey = nullptr; 19959: _M_pmapped = nullptr; 19959: } 19959: } 19959: 19959: template 19959: using __pointer 19959: = __ptr_rebind>; 19959: 19959: __pointer<_Key> _M_pkey = nullptr; 19959: __pointer _M_pmapped = nullptr; 19959: 19959: template 19959: __pointer<_Tp> 19959: _S_pointer_to(_Tp& __obj) 19959: { return pointer_traits<__pointer<_Tp>>::pointer_to(__obj); } 19959: 19959: const key_type& 19959: _M_key() const noexcept { return key(); } 19959: 19959: template 19959: friend class _Rb_tree; 19959: 19959: template 19959: friend class _Hashtable; 19959: }; 19959: 19959: 19959: template 19959: class _Node_handle<_Value, _Value, _NodeAlloc> 19959: : public _Node_handle_common<_Value, _NodeAlloc> 19959: { 19959: public: 19959: constexpr _Node_handle() noexcept = default; 19959: ~_Node_handle() = default; 19959: _Node_handle(_Node_handle&&) noexcept = default; 19959: 19959: _Node_handle& 19959: operator=(_Node_handle&&) noexcept = default; 19959: 19959: using value_type = _Value; 19959: 19959: value_type& 19959: value() const noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 19959: return *this->_M_ptr->_M_valptr(); 19959: } 19959: 19959: void 19959: swap(_Node_handle& __nh) noexcept 19959: { this->_M_swap(__nh); } 19959: 19959: friend void 19959: swap(_Node_handle& __x, _Node_handle& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: private: 19959: using _AllocTraits = allocator_traits<_NodeAlloc>; 19959: 19959: _Node_handle(typename _AllocTraits::pointer __ptr, 19959: const _NodeAlloc& __alloc) 19959: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) { } 19959: 19959: const value_type& 19959: _M_key() const noexcept { return value(); } 19959: 19959: template 19959: friend class _Rb_tree; 19959: 19959: template 19959: friend class _Hashtable; 19959: }; 19959: 19959: 19959: template 19959: struct _Node_insert_return 19959: { 19959: _Iterator position = _Iterator(); 19959: bool inserted = false; 19959: _NodeHandle node; 19959: }; 19959: 19959: 19959: 19959: 19959: } 19959: # 40 "/usr/include/c++/13/bits/hashtable.h" 2 3 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: using __cache_default 19959: = __not_<__and_< 19959: __is_fast_hash<_Hash>, 19959: 19959: __is_nothrow_invocable>>; 19959: 19959: 19959: 19959: 19959: template 19959: using _Hashtable_enable_default_ctor 19959: = _Enable_default_constructor<__and_, 19959: is_default_constructible<_Hash>, 19959: is_default_constructible<_Allocator>>{}, 19959: __detail::_Hash_node_base>; 19959: # 177 "/usr/include/c++/13/bits/hashtable.h" 3 19959: template 19959: class _Hashtable 19959: : public __detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _Traits>, 19959: public __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>, 19959: public __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>, 19959: public __detail::_Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>, 19959: public __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>, 19959: private __detail::_Hashtable_alloc< 19959: __alloc_rebind<_Alloc, 19959: __detail::_Hash_node<_Value, 19959: _Traits::__hash_cached::value>>>, 19959: private _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc> 19959: { 19959: static_assert(is_same::type, _Value>::value, 19959: "unordered container must have a non-const, non-volatile value_type"); 19959: 19959: 19959: 19959: 19959: 19959: using __traits_type = _Traits; 19959: using __hash_cached = typename __traits_type::__hash_cached; 19959: using __constant_iterators = typename __traits_type::__constant_iterators; 19959: using __node_type = __detail::_Hash_node<_Value, __hash_cached::value>; 19959: using __node_alloc_type = __alloc_rebind<_Alloc, __node_type>; 19959: 19959: using __hashtable_alloc = __detail::_Hashtable_alloc<__node_alloc_type>; 19959: 19959: using __node_value_type = 19959: __detail::_Hash_node_value<_Value, __hash_cached::value>; 19959: using __node_ptr = typename __hashtable_alloc::__node_ptr; 19959: using __value_alloc_traits = 19959: typename __hashtable_alloc::__value_alloc_traits; 19959: using __node_alloc_traits = 19959: typename __hashtable_alloc::__node_alloc_traits; 19959: using __node_base = typename __hashtable_alloc::__node_base; 19959: using __node_base_ptr = typename __hashtable_alloc::__node_base_ptr; 19959: using __buckets_ptr = typename __hashtable_alloc::__buckets_ptr; 19959: 19959: using __insert_base = __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, 19959: _Equal, _Hash, 19959: _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>; 19959: using __enable_default_ctor 19959: = _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc>; 19959: 19959: public: 19959: typedef _Key key_type; 19959: typedef _Value value_type; 19959: typedef _Alloc allocator_type; 19959: typedef _Equal key_equal; 19959: 19959: 19959: 19959: typedef typename __value_alloc_traits::pointer pointer; 19959: typedef typename __value_alloc_traits::const_pointer const_pointer; 19959: typedef value_type& reference; 19959: typedef const value_type& const_reference; 19959: 19959: using iterator = typename __insert_base::iterator; 19959: 19959: using const_iterator = typename __insert_base::const_iterator; 19959: 19959: using local_iterator = __detail::_Local_iterator; 19959: 19959: using const_local_iterator = __detail::_Local_const_iterator< 19959: key_type, _Value, 19959: _ExtractKey, _Hash, _RangeHash, _Unused, 19959: __constant_iterators::value, __hash_cached::value>; 19959: 19959: private: 19959: using __rehash_type = _RehashPolicy; 19959: using __rehash_state = typename __rehash_type::_State; 19959: 19959: using __unique_keys = typename __traits_type::__unique_keys; 19959: 19959: using __hashtable_base = __detail:: 19959: _Hashtable_base<_Key, _Value, _ExtractKey, 19959: _Equal, _Hash, _RangeHash, _Unused, _Traits>; 19959: 19959: using __hash_code_base = typename __hashtable_base::__hash_code_base; 19959: using __hash_code = typename __hashtable_base::__hash_code; 19959: using __ireturn_type = typename __insert_base::__ireturn_type; 19959: 19959: using __map_base = __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, 19959: _Equal, _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>; 19959: 19959: using __rehash_base = __detail::_Rehash_base<_Key, _Value, _Alloc, 19959: _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>; 19959: 19959: using __eq_base = __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, 19959: _Equal, _Hash, _RangeHash, _Unused, 19959: _RehashPolicy, _Traits>; 19959: 19959: using __reuse_or_alloc_node_gen_t = 19959: __detail::_ReuseOrAllocNode<__node_alloc_type>; 19959: using __alloc_node_gen_t = 19959: __detail::_AllocNode<__node_alloc_type>; 19959: using __node_builder_t = 19959: __detail::_NodeBuilder<_ExtractKey>; 19959: 19959: 19959: struct _Scoped_node 19959: { 19959: 19959: _Scoped_node(__node_ptr __n, __hashtable_alloc* __h) 19959: : _M_h(__h), _M_node(__n) { } 19959: 19959: 19959: template 19959: _Scoped_node(__hashtable_alloc* __h, _Args&&... __args) 19959: : _M_h(__h), 19959: _M_node(__h->_M_allocate_node(std::forward<_Args>(__args)...)) 19959: { } 19959: 19959: 19959: ~_Scoped_node() { if (_M_node) _M_h->_M_deallocate_node(_M_node); }; 19959: 19959: _Scoped_node(const _Scoped_node&) = delete; 19959: _Scoped_node& operator=(const _Scoped_node&) = delete; 19959: 19959: __hashtable_alloc* _M_h; 19959: __node_ptr _M_node; 19959: }; 19959: 19959: template 19959: static constexpr 19959: __conditional_t::value, 19959: const value_type&, value_type&&> 19959: __fwd_value_for(value_type& __val) noexcept 19959: { return std::move(__val); } 19959: 19959: 19959: 19959: 19959: 19959: struct __hash_code_base_access : __hash_code_base 19959: { using __hash_code_base::_M_bucket_index; }; 19959: 19959: 19959: static_assert(is_nothrow_default_constructible<_RangeHash>::value, 19959: "Functor used to map hash code to bucket index" 19959: " must be nothrow default constructible"); 19959: static_assert(noexcept( 19959: std::declval()((std::size_t)0, (std::size_t)0)), 19959: "Functor used to map hash code to bucket index must be" 19959: " noexcept"); 19959: 19959: 19959: static_assert(is_nothrow_default_constructible<_ExtractKey>::value, 19959: "_ExtractKey must be nothrow default constructible"); 19959: static_assert(noexcept( 19959: std::declval()(std::declval<_Value>())), 19959: "_ExtractKey functor must be noexcept invocable"); 19959: 19959: template 19959: friend struct __detail::_Map_base; 19959: 19959: template 19959: friend struct __detail::_Insert_base; 19959: 19959: template 19959: friend struct __detail::_Insert; 19959: 19959: template 19959: friend struct __detail::_Equality; 19959: 19959: public: 19959: using size_type = typename __hashtable_base::size_type; 19959: using difference_type = typename __hashtable_base::difference_type; 19959: 19959: 19959: using node_type = _Node_handle<_Key, _Value, __node_alloc_type>; 19959: using insert_return_type = _Node_insert_return; 19959: 19959: 19959: private: 19959: __buckets_ptr _M_buckets = &_M_single_bucket; 19959: size_type _M_bucket_count = 1; 19959: __node_base _M_before_begin; 19959: size_type _M_element_count = 0; 19959: _RehashPolicy _M_rehash_policy; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __node_base_ptr _M_single_bucket = nullptr; 19959: 19959: void 19959: _M_update_bbegin() 19959: { 19959: if (_M_begin()) 19959: _M_buckets[_M_bucket_index(*_M_begin())] = &_M_before_begin; 19959: } 19959: 19959: void 19959: _M_update_bbegin(__node_ptr __n) 19959: { 19959: _M_before_begin._M_nxt = __n; 19959: _M_update_bbegin(); 19959: } 19959: 19959: bool 19959: _M_uses_single_bucket(__buckets_ptr __bkts) const 19959: { return __builtin_expect(__bkts == &_M_single_bucket, false); } 19959: 19959: bool 19959: _M_uses_single_bucket() const 19959: { return _M_uses_single_bucket(_M_buckets); } 19959: 19959: static constexpr size_t 19959: __small_size_threshold() noexcept 19959: { 19959: return 19959: __detail::_Hashtable_hash_traits<_Hash>::__small_size_threshold(); 19959: } 19959: 19959: __hashtable_alloc& 19959: _M_base_alloc() { return *this; } 19959: 19959: __buckets_ptr 19959: _M_allocate_buckets(size_type __bkt_count) 19959: { 19959: if (__builtin_expect(__bkt_count == 1, false)) 19959: { 19959: _M_single_bucket = nullptr; 19959: return &_M_single_bucket; 19959: } 19959: 19959: return __hashtable_alloc::_M_allocate_buckets(__bkt_count); 19959: } 19959: 19959: void 19959: _M_deallocate_buckets(__buckets_ptr __bkts, size_type __bkt_count) 19959: { 19959: if (_M_uses_single_bucket(__bkts)) 19959: return; 19959: 19959: __hashtable_alloc::_M_deallocate_buckets(__bkts, __bkt_count); 19959: } 19959: 19959: void 19959: _M_deallocate_buckets() 19959: { _M_deallocate_buckets(_M_buckets, _M_bucket_count); } 19959: 19959: 19959: 19959: __node_ptr 19959: _M_bucket_begin(size_type __bkt) const; 19959: 19959: __node_ptr 19959: _M_begin() const 19959: { return static_cast<__node_ptr>(_M_before_begin._M_nxt); } 19959: 19959: 19959: 19959: template 19959: void 19959: _M_assign_elements(_Ht&&); 19959: 19959: template 19959: void 19959: _M_assign(_Ht&&, const _NodeGenerator&); 19959: 19959: void 19959: _M_move_assign(_Hashtable&&, true_type); 19959: 19959: void 19959: _M_move_assign(_Hashtable&&, false_type); 19959: 19959: void 19959: _M_reset() noexcept; 19959: 19959: _Hashtable(const _Hash& __h, const _Equal& __eq, 19959: const allocator_type& __a) 19959: : __hashtable_base(__h, __eq), 19959: __hashtable_alloc(__node_alloc_type(__a)), 19959: __enable_default_ctor(_Enable_default_constructor_tag{}) 19959: { } 19959: 19959: template 19959: static constexpr bool 19959: _S_nothrow_move() 19959: { 19959: 19959: 19959: 19959: 19959: 19959: if constexpr (_No_realloc) 19959: if constexpr (is_nothrow_copy_constructible<_Hash>()) 19959: return is_nothrow_copy_constructible<_Equal>(); 19959: return false; 19959: 19959: } 19959: 19959: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 19959: true_type ) 19959: noexcept(_S_nothrow_move()); 19959: 19959: _Hashtable(_Hashtable&&, __node_alloc_type&&, 19959: false_type ); 19959: 19959: template 19959: _Hashtable(_InputIterator __first, _InputIterator __last, 19959: size_type __bkt_count_hint, 19959: const _Hash&, const _Equal&, const allocator_type&, 19959: true_type __uks); 19959: 19959: template 19959: _Hashtable(_InputIterator __first, _InputIterator __last, 19959: size_type __bkt_count_hint, 19959: const _Hash&, const _Equal&, const allocator_type&, 19959: false_type __uks); 19959: 19959: public: 19959: 19959: _Hashtable() = default; 19959: 19959: _Hashtable(const _Hashtable&); 19959: 19959: _Hashtable(const _Hashtable&, const allocator_type&); 19959: 19959: explicit 19959: _Hashtable(size_type __bkt_count_hint, 19959: const _Hash& __hf = _Hash(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()); 19959: 19959: 19959: _Hashtable(_Hashtable&& __ht) 19959: noexcept(_S_nothrow_move()) 19959: : _Hashtable(std::move(__ht), std::move(__ht._M_node_allocator()), 19959: true_type{}) 19959: { } 19959: 19959: _Hashtable(_Hashtable&& __ht, const allocator_type& __a) 19959: noexcept(_S_nothrow_move<__node_alloc_traits::_S_always_equal()>()) 19959: : _Hashtable(std::move(__ht), __node_alloc_type(__a), 19959: typename __node_alloc_traits::is_always_equal{}) 19959: { } 19959: 19959: explicit 19959: _Hashtable(const allocator_type& __a) 19959: : __hashtable_alloc(__node_alloc_type(__a)), 19959: __enable_default_ctor(_Enable_default_constructor_tag{}) 19959: { } 19959: 19959: template 19959: _Hashtable(_InputIterator __f, _InputIterator __l, 19959: size_type __bkt_count_hint = 0, 19959: const _Hash& __hf = _Hash(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _Hashtable(__f, __l, __bkt_count_hint, __hf, __eql, __a, 19959: __unique_keys{}) 19959: { } 19959: 19959: _Hashtable(initializer_list __l, 19959: size_type __bkt_count_hint = 0, 19959: const _Hash& __hf = _Hash(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _Hashtable(__l.begin(), __l.end(), __bkt_count_hint, 19959: __hf, __eql, __a, __unique_keys{}) 19959: { } 19959: 19959: _Hashtable& 19959: operator=(const _Hashtable& __ht); 19959: 19959: _Hashtable& 19959: operator=(_Hashtable&& __ht) 19959: noexcept(__node_alloc_traits::_S_nothrow_move() 19959: && is_nothrow_move_assignable<_Hash>::value 19959: && is_nothrow_move_assignable<_Equal>::value) 19959: { 19959: constexpr bool __move_storage = 19959: __node_alloc_traits::_S_propagate_on_move_assign() 19959: || __node_alloc_traits::_S_always_equal(); 19959: _M_move_assign(std::move(__ht), __bool_constant<__move_storage>()); 19959: return *this; 19959: } 19959: 19959: _Hashtable& 19959: operator=(initializer_list __l) 19959: { 19959: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 19959: _M_before_begin._M_nxt = nullptr; 19959: clear(); 19959: 19959: 19959: auto __l_bkt_count = _M_rehash_policy._M_bkt_for_elements(__l.size()); 19959: 19959: 19959: if (_M_bucket_count < __l_bkt_count) 19959: rehash(__l_bkt_count); 19959: 19959: this->_M_insert_range(__l.begin(), __l.end(), __roan, __unique_keys{}); 19959: return *this; 19959: } 19959: 19959: ~_Hashtable() noexcept; 19959: 19959: void 19959: swap(_Hashtable&) 19959: noexcept(__and_<__is_nothrow_swappable<_Hash>, 19959: __is_nothrow_swappable<_Equal>>::value); 19959: 19959: 19959: iterator 19959: begin() noexcept 19959: { return iterator(_M_begin()); } 19959: 19959: const_iterator 19959: begin() const noexcept 19959: { return const_iterator(_M_begin()); } 19959: 19959: iterator 19959: end() noexcept 19959: { return iterator(nullptr); } 19959: 19959: const_iterator 19959: end() const noexcept 19959: { return const_iterator(nullptr); } 19959: 19959: const_iterator 19959: cbegin() const noexcept 19959: { return const_iterator(_M_begin()); } 19959: 19959: const_iterator 19959: cend() const noexcept 19959: { return const_iterator(nullptr); } 19959: 19959: size_type 19959: size() const noexcept 19959: { return _M_element_count; } 19959: 19959: [[__nodiscard__]] bool 19959: empty() const noexcept 19959: { return size() == 0; } 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return allocator_type(this->_M_node_allocator()); } 19959: 19959: size_type 19959: max_size() const noexcept 19959: { return __node_alloc_traits::max_size(this->_M_node_allocator()); } 19959: 19959: 19959: key_equal 19959: key_eq() const 19959: { return this->_M_eq(); } 19959: 19959: 19959: 19959: 19959: size_type 19959: bucket_count() const noexcept 19959: { return _M_bucket_count; } 19959: 19959: size_type 19959: max_bucket_count() const noexcept 19959: { return max_size(); } 19959: 19959: size_type 19959: bucket_size(size_type __bkt) const 19959: { return std::distance(begin(__bkt), end(__bkt)); } 19959: 19959: size_type 19959: bucket(const key_type& __k) const 19959: { return _M_bucket_index(this->_M_hash_code(__k)); } 19959: 19959: local_iterator 19959: begin(size_type __bkt) 19959: { 19959: return local_iterator(*this, _M_bucket_begin(__bkt), 19959: __bkt, _M_bucket_count); 19959: } 19959: 19959: local_iterator 19959: end(size_type __bkt) 19959: { return local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 19959: 19959: const_local_iterator 19959: begin(size_type __bkt) const 19959: { 19959: return const_local_iterator(*this, _M_bucket_begin(__bkt), 19959: __bkt, _M_bucket_count); 19959: } 19959: 19959: const_local_iterator 19959: end(size_type __bkt) const 19959: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 19959: 19959: 19959: const_local_iterator 19959: cbegin(size_type __bkt) const 19959: { 19959: return const_local_iterator(*this, _M_bucket_begin(__bkt), 19959: __bkt, _M_bucket_count); 19959: } 19959: 19959: const_local_iterator 19959: cend(size_type __bkt) const 19959: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 19959: 19959: float 19959: load_factor() const noexcept 19959: { 19959: return static_cast(size()) / static_cast(bucket_count()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const _RehashPolicy& 19959: __rehash_policy() const 19959: { return _M_rehash_policy; } 19959: 19959: void 19959: __rehash_policy(const _RehashPolicy& __pol) 19959: { _M_rehash_policy = __pol; } 19959: 19959: 19959: iterator 19959: find(const key_type& __k); 19959: 19959: const_iterator 19959: find(const key_type& __k) const; 19959: 19959: size_type 19959: count(const key_type& __k) const; 19959: 19959: std::pair 19959: equal_range(const key_type& __k); 19959: 19959: std::pair 19959: equal_range(const key_type& __k) const; 19959: # 789 "/usr/include/c++/13/bits/hashtable.h" 3 19959: private: 19959: 19959: size_type 19959: _M_bucket_index(const __node_value_type& __n) const noexcept 19959: { return __hash_code_base::_M_bucket_index(__n, _M_bucket_count); } 19959: 19959: size_type 19959: _M_bucket_index(__hash_code __c) const 19959: { return __hash_code_base::_M_bucket_index(__c, _M_bucket_count); } 19959: 19959: __node_base_ptr 19959: _M_find_before_node(const key_type&); 19959: 19959: 19959: 19959: __node_base_ptr 19959: _M_find_before_node(size_type, const key_type&, __hash_code) const; 19959: 19959: template 19959: __node_base_ptr 19959: _M_find_before_node_tr(size_type, const _Kt&, __hash_code) const; 19959: 19959: __node_ptr 19959: _M_find_node(size_type __bkt, const key_type& __key, 19959: __hash_code __c) const 19959: { 19959: __node_base_ptr __before_n = _M_find_before_node(__bkt, __key, __c); 19959: if (__before_n) 19959: return static_cast<__node_ptr>(__before_n->_M_nxt); 19959: return nullptr; 19959: } 19959: 19959: template 19959: __node_ptr 19959: _M_find_node_tr(size_type __bkt, const _Kt& __key, 19959: __hash_code __c) const 19959: { 19959: auto __before_n = _M_find_before_node_tr(__bkt, __key, __c); 19959: if (__before_n) 19959: return static_cast<__node_ptr>(__before_n->_M_nxt); 19959: return nullptr; 19959: } 19959: 19959: 19959: void 19959: _M_insert_bucket_begin(size_type, __node_ptr); 19959: 19959: 19959: void 19959: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next_n, 19959: size_type __next_bkt); 19959: 19959: 19959: __node_base_ptr 19959: _M_get_previous_node(size_type __bkt, __node_ptr __n); 19959: 19959: pair 19959: _M_compute_hash_code(const_iterator __hint, const key_type& __k) const; 19959: 19959: 19959: 19959: 19959: iterator 19959: _M_insert_unique_node(size_type __bkt, __hash_code, 19959: __node_ptr __n, size_type __n_elt = 1); 19959: 19959: 19959: 19959: iterator 19959: _M_insert_multi_node(__node_ptr __hint, 19959: __hash_code __code, __node_ptr __n); 19959: 19959: template 19959: std::pair 19959: _M_emplace(true_type __uks, _Args&&... __args); 19959: 19959: template 19959: iterator 19959: _M_emplace(false_type __uks, _Args&&... __args) 19959: { return _M_emplace(cend(), __uks, std::forward<_Args>(__args)...); } 19959: 19959: 19959: template 19959: iterator 19959: _M_emplace(const_iterator, true_type __uks, _Args&&... __args) 19959: { return _M_emplace(__uks, std::forward<_Args>(__args)...).first; } 19959: 19959: template 19959: iterator 19959: _M_emplace(const_iterator, false_type __uks, _Args&&... __args); 19959: 19959: template 19959: std::pair 19959: _M_insert_unique(_Kt&&, _Arg&&, const _NodeGenerator&); 19959: 19959: template 19959: static __conditional_t< 19959: __and_<__is_nothrow_invocable<_Hash&, const key_type&>, 19959: __not_<__is_nothrow_invocable<_Hash&, _Kt>>>::value, 19959: key_type, _Kt&&> 19959: _S_forward_key(_Kt&& __k) 19959: { return std::forward<_Kt>(__k); } 19959: 19959: static const key_type& 19959: _S_forward_key(const key_type& __k) 19959: { return __k; } 19959: 19959: static key_type&& 19959: _S_forward_key(key_type&& __k) 19959: { return std::move(__k); } 19959: 19959: template 19959: std::pair 19959: _M_insert_unique_aux(_Arg&& __arg, const _NodeGenerator& __node_gen) 19959: { 19959: return _M_insert_unique( 19959: _S_forward_key(_ExtractKey{}(std::forward<_Arg>(__arg))), 19959: std::forward<_Arg>(__arg), __node_gen); 19959: } 19959: 19959: template 19959: std::pair 19959: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 19959: true_type ) 19959: { 19959: using __to_value 19959: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 19959: return _M_insert_unique_aux( 19959: __to_value{}(std::forward<_Arg>(__arg)), __node_gen); 19959: } 19959: 19959: template 19959: iterator 19959: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 19959: false_type __uks) 19959: { 19959: using __to_value 19959: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 19959: return _M_insert(cend(), 19959: __to_value{}(std::forward<_Arg>(__arg)), __node_gen, __uks); 19959: } 19959: 19959: 19959: template 19959: iterator 19959: _M_insert(const_iterator, _Arg&& __arg, 19959: const _NodeGenerator& __node_gen, true_type __uks) 19959: { 19959: return 19959: _M_insert(std::forward<_Arg>(__arg), __node_gen, __uks).first; 19959: } 19959: 19959: 19959: template 19959: iterator 19959: _M_insert(const_iterator, _Arg&&, 19959: const _NodeGenerator&, false_type __uks); 19959: 19959: size_type 19959: _M_erase(true_type __uks, const key_type&); 19959: 19959: size_type 19959: _M_erase(false_type __uks, const key_type&); 19959: 19959: iterator 19959: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n); 19959: 19959: public: 19959: 19959: template 19959: __ireturn_type 19959: emplace(_Args&&... __args) 19959: { return _M_emplace(__unique_keys{}, std::forward<_Args>(__args)...); } 19959: 19959: template 19959: iterator 19959: emplace_hint(const_iterator __hint, _Args&&... __args) 19959: { 19959: return _M_emplace(__hint, __unique_keys{}, 19959: std::forward<_Args>(__args)...); 19959: } 19959: 19959: 19959: 19959: 19959: iterator 19959: erase(const_iterator); 19959: 19959: 19959: iterator 19959: erase(iterator __it) 19959: { return erase(const_iterator(__it)); } 19959: 19959: size_type 19959: erase(const key_type& __k) 19959: { return _M_erase(__unique_keys{}, __k); } 19959: 19959: iterator 19959: erase(const_iterator, const_iterator); 19959: 19959: void 19959: clear() noexcept; 19959: 19959: 19959: 19959: void rehash(size_type __bkt_count); 19959: 19959: 19959: 19959: 19959: 19959: 19959: insert_return_type 19959: _M_reinsert_node(node_type&& __nh) 19959: { 19959: insert_return_type __ret; 19959: if (__nh.empty()) 19959: __ret.position = end(); 19959: else 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) __builtin_unreachable(); } while (false); 19959: 19959: const key_type& __k = __nh._M_key(); 19959: __hash_code __code = this->_M_hash_code(__k); 19959: size_type __bkt = _M_bucket_index(__code); 19959: if (__node_ptr __n = _M_find_node(__bkt, __k, __code)) 19959: { 19959: __ret.node = std::move(__nh); 19959: __ret.position = iterator(__n); 19959: __ret.inserted = false; 19959: } 19959: else 19959: { 19959: __ret.position 19959: = _M_insert_unique_node(__bkt, __code, __nh._M_ptr); 19959: __nh._M_ptr = nullptr; 19959: __ret.inserted = true; 19959: } 19959: } 19959: return __ret; 19959: } 19959: 19959: 19959: iterator 19959: _M_reinsert_node_multi(const_iterator __hint, node_type&& __nh) 19959: { 19959: if (__nh.empty()) 19959: return end(); 19959: 19959: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) __builtin_unreachable(); } while (false); 19959: 19959: const key_type& __k = __nh._M_key(); 19959: auto __code = this->_M_hash_code(__k); 19959: auto __ret 19959: = _M_insert_multi_node(__hint._M_cur, __code, __nh._M_ptr); 19959: __nh._M_ptr = nullptr; 19959: return __ret; 19959: } 19959: 19959: private: 19959: node_type 19959: _M_extract_node(size_t __bkt, __node_base_ptr __prev_n) 19959: { 19959: __node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 19959: if (__prev_n == _M_buckets[__bkt]) 19959: _M_remove_bucket_begin(__bkt, __n->_M_next(), 19959: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 19959: else if (__n->_M_nxt) 19959: { 19959: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 19959: if (__next_bkt != __bkt) 19959: _M_buckets[__next_bkt] = __prev_n; 19959: } 19959: 19959: __prev_n->_M_nxt = __n->_M_nxt; 19959: __n->_M_nxt = nullptr; 19959: --_M_element_count; 19959: return { __n, this->_M_node_allocator() }; 19959: } 19959: 19959: 19959: 19959: template 19959: __hash_code 19959: _M_src_hash_code(const _H2&, const key_type& __k, 19959: const __node_value_type& __src_n) const 19959: { 19959: if constexpr (std::is_same_v<_H2, _Hash>) 19959: if constexpr (std::is_empty_v<_Hash>) 19959: return this->_M_hash_code(__src_n); 19959: 19959: return this->_M_hash_code(__k); 19959: } 19959: 19959: public: 19959: 19959: node_type 19959: extract(const_iterator __pos) 19959: { 19959: size_t __bkt = _M_bucket_index(*__pos._M_cur); 19959: return _M_extract_node(__bkt, 19959: _M_get_previous_node(__bkt, __pos._M_cur)); 19959: } 19959: 19959: 19959: node_type 19959: extract(const _Key& __k) 19959: { 19959: node_type __nh; 19959: __hash_code __code = this->_M_hash_code(__k); 19959: std::size_t __bkt = _M_bucket_index(__code); 19959: if (__node_base_ptr __prev_node = _M_find_before_node(__bkt, __k, __code)) 19959: __nh = _M_extract_node(__bkt, __prev_node); 19959: return __nh; 19959: } 19959: 19959: 19959: template 19959: void 19959: _M_merge_unique(_Compatible_Hashtable& __src) 19959: { 19959: static_assert(is_same_v, "Node types are compatible"); 19959: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) __builtin_unreachable(); } while (false); 19959: 19959: auto __n_elt = __src.size(); 19959: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 19959: { 19959: auto __pos = __i++; 19959: const key_type& __k = _ExtractKey{}(*__pos); 19959: __hash_code __code 19959: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 19959: size_type __bkt = _M_bucket_index(__code); 19959: if (_M_find_node(__bkt, __k, __code) == nullptr) 19959: { 19959: auto __nh = __src.extract(__pos); 19959: _M_insert_unique_node(__bkt, __code, __nh._M_ptr, __n_elt); 19959: __nh._M_ptr = nullptr; 19959: __n_elt = 1; 19959: } 19959: else if (__n_elt != 1) 19959: --__n_elt; 19959: } 19959: } 19959: 19959: 19959: template 19959: void 19959: _M_merge_multi(_Compatible_Hashtable& __src) 19959: { 19959: static_assert(is_same_v, "Node types are compatible"); 19959: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) __builtin_unreachable(); } while (false); 19959: 19959: __node_ptr __hint = nullptr; 19959: this->reserve(size() + __src.size()); 19959: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 19959: { 19959: auto __pos = __i++; 19959: const key_type& __k = _ExtractKey{}(*__pos); 19959: __hash_code __code 19959: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 19959: auto __nh = __src.extract(__pos); 19959: __hint = _M_insert_multi_node(__hint, __code, __nh._M_ptr)._M_cur; 19959: __nh._M_ptr = nullptr; 19959: } 19959: } 19959: 19959: 19959: private: 19959: 19959: void _M_rehash_aux(size_type __bkt_count, true_type __uks); 19959: 19959: 19959: void _M_rehash_aux(size_type __bkt_count, false_type __uks); 19959: 19959: 19959: 19959: void _M_rehash(size_type __bkt_count, const __rehash_state& __state); 19959: }; 19959: 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_bucket_begin(size_type __bkt) const 19959: -> __node_ptr 19959: { 19959: __node_base_ptr __n = _M_buckets[__bkt]; 19959: return __n ? static_cast<__node_ptr>(__n->_M_nxt) : nullptr; 19959: } 19959: 19959: template 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _Hashtable(size_type __bkt_count_hint, 19959: const _Hash& __h, const _Equal& __eq, const allocator_type& __a) 19959: : _Hashtable(__h, __eq, __a) 19959: { 19959: auto __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count_hint); 19959: if (__bkt_count > _M_bucket_count) 19959: { 19959: _M_buckets = _M_allocate_buckets(__bkt_count); 19959: _M_bucket_count = __bkt_count; 19959: } 19959: } 19959: 19959: template 19959: template 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _Hashtable(_InputIterator __f, _InputIterator __l, 19959: size_type __bkt_count_hint, 19959: const _Hash& __h, const _Equal& __eq, 19959: const allocator_type& __a, true_type ) 19959: : _Hashtable(__bkt_count_hint, __h, __eq, __a) 19959: { this->insert(__f, __l); } 19959: 19959: template 19959: template 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _Hashtable(_InputIterator __f, _InputIterator __l, 19959: size_type __bkt_count_hint, 19959: const _Hash& __h, const _Equal& __eq, 19959: const allocator_type& __a, false_type __uks) 19959: : _Hashtable(__h, __eq, __a) 19959: { 19959: auto __nb_elems = __detail::__distance_fw(__f, __l); 19959: auto __bkt_count = 19959: _M_rehash_policy._M_next_bkt( 19959: std::max(_M_rehash_policy._M_bkt_for_elements(__nb_elems), 19959: __bkt_count_hint)); 19959: 19959: if (__bkt_count > _M_bucket_count) 19959: { 19959: _M_buckets = _M_allocate_buckets(__bkt_count); 19959: _M_bucket_count = __bkt_count; 19959: } 19959: 19959: __alloc_node_gen_t __node_gen(*this); 19959: for (; __f != __l; ++__f) 19959: _M_insert(*__f, __node_gen, __uks); 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: operator=(const _Hashtable& __ht) 19959: -> _Hashtable& 19959: { 19959: if (&__ht == this) 19959: return *this; 19959: 19959: if (__node_alloc_traits::_S_propagate_on_copy_assign()) 19959: { 19959: auto& __this_alloc = this->_M_node_allocator(); 19959: auto& __that_alloc = __ht._M_node_allocator(); 19959: if (!__node_alloc_traits::_S_always_equal() 19959: && __this_alloc != __that_alloc) 19959: { 19959: 19959: this->_M_deallocate_nodes(_M_begin()); 19959: _M_before_begin._M_nxt = nullptr; 19959: _M_deallocate_buckets(); 19959: _M_buckets = nullptr; 19959: std::__alloc_on_copy(__this_alloc, __that_alloc); 19959: __hashtable_base::operator=(__ht); 19959: _M_bucket_count = __ht._M_bucket_count; 19959: _M_element_count = __ht._M_element_count; 19959: _M_rehash_policy = __ht._M_rehash_policy; 19959: __alloc_node_gen_t __alloc_node_gen(*this); 19959: try 19959: { 19959: _M_assign(__ht, __alloc_node_gen); 19959: } 19959: catch(...) 19959: { 19959: 19959: 19959: _M_reset(); 19959: throw; 19959: } 19959: return *this; 19959: } 19959: std::__alloc_on_copy(__this_alloc, __that_alloc); 19959: } 19959: 19959: 19959: _M_assign_elements(__ht); 19959: return *this; 19959: } 19959: 19959: template 19959: template 19959: void 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_assign_elements(_Ht&& __ht) 19959: { 19959: __buckets_ptr __former_buckets = nullptr; 19959: std::size_t __former_bucket_count = _M_bucket_count; 19959: const __rehash_state& __former_state = _M_rehash_policy._M_state(); 19959: 19959: if (_M_bucket_count != __ht._M_bucket_count) 19959: { 19959: __former_buckets = _M_buckets; 19959: _M_buckets = _M_allocate_buckets(__ht._M_bucket_count); 19959: _M_bucket_count = __ht._M_bucket_count; 19959: } 19959: else 19959: __builtin_memset(_M_buckets, 0, 19959: _M_bucket_count * sizeof(__node_base_ptr)); 19959: 19959: try 19959: { 19959: __hashtable_base::operator=(std::forward<_Ht>(__ht)); 19959: _M_element_count = __ht._M_element_count; 19959: _M_rehash_policy = __ht._M_rehash_policy; 19959: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 19959: _M_before_begin._M_nxt = nullptr; 19959: _M_assign(std::forward<_Ht>(__ht), __roan); 19959: if (__former_buckets) 19959: _M_deallocate_buckets(__former_buckets, __former_bucket_count); 19959: } 19959: catch(...) 19959: { 19959: if (__former_buckets) 19959: { 19959: 19959: _M_deallocate_buckets(); 19959: _M_rehash_policy._M_reset(__former_state); 19959: _M_buckets = __former_buckets; 19959: _M_bucket_count = __former_bucket_count; 19959: } 19959: __builtin_memset(_M_buckets, 0, 19959: _M_bucket_count * sizeof(__node_base_ptr)); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: template 19959: void 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_assign(_Ht&& __ht, const _NodeGenerator& __node_gen) 19959: { 19959: __buckets_ptr __buckets = nullptr; 19959: if (!_M_buckets) 19959: _M_buckets = __buckets = _M_allocate_buckets(_M_bucket_count); 19959: 19959: try 19959: { 19959: if (!__ht._M_before_begin._M_nxt) 19959: return; 19959: 19959: 19959: 19959: __node_ptr __ht_n = __ht._M_begin(); 19959: __node_ptr __this_n 19959: = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 19959: this->_M_copy_code(*__this_n, *__ht_n); 19959: _M_update_bbegin(__this_n); 19959: 19959: 19959: __node_ptr __prev_n = __this_n; 19959: for (__ht_n = __ht_n->_M_next(); __ht_n; __ht_n = __ht_n->_M_next()) 19959: { 19959: __this_n = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 19959: __prev_n->_M_nxt = __this_n; 19959: this->_M_copy_code(*__this_n, *__ht_n); 19959: size_type __bkt = _M_bucket_index(*__this_n); 19959: if (!_M_buckets[__bkt]) 19959: _M_buckets[__bkt] = __prev_n; 19959: __prev_n = __this_n; 19959: } 19959: } 19959: catch(...) 19959: { 19959: clear(); 19959: if (__buckets) 19959: _M_deallocate_buckets(); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: void 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_reset() noexcept 19959: { 19959: _M_rehash_policy._M_reset(); 19959: _M_bucket_count = 1; 19959: _M_single_bucket = nullptr; 19959: _M_buckets = &_M_single_bucket; 19959: _M_before_begin._M_nxt = nullptr; 19959: _M_element_count = 0; 19959: } 19959: 19959: template 19959: void 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_move_assign(_Hashtable&& __ht, true_type) 19959: { 19959: if (__builtin_expect(std::__addressof(__ht) == this, false)) 19959: return; 19959: 19959: this->_M_deallocate_nodes(_M_begin()); 19959: _M_deallocate_buckets(); 19959: __hashtable_base::operator=(std::move(__ht)); 19959: _M_rehash_policy = __ht._M_rehash_policy; 19959: if (!__ht._M_uses_single_bucket()) 19959: _M_buckets = __ht._M_buckets; 19959: else 19959: { 19959: _M_buckets = &_M_single_bucket; 19959: _M_single_bucket = __ht._M_single_bucket; 19959: } 19959: 19959: _M_bucket_count = __ht._M_bucket_count; 19959: _M_before_begin._M_nxt = __ht._M_before_begin._M_nxt; 19959: _M_element_count = __ht._M_element_count; 19959: std::__alloc_on_move(this->_M_node_allocator(), __ht._M_node_allocator()); 19959: 19959: 19959: _M_update_bbegin(); 19959: __ht._M_reset(); 19959: } 19959: 19959: template 19959: void 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_move_assign(_Hashtable&& __ht, false_type) 19959: { 19959: if (__ht._M_node_allocator() == this->_M_node_allocator()) 19959: _M_move_assign(std::move(__ht), true_type{}); 19959: else 19959: { 19959: 19959: _M_assign_elements(std::move(__ht)); 19959: __ht.clear(); 19959: } 19959: } 19959: 19959: template 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _Hashtable(const _Hashtable& __ht) 19959: : __hashtable_base(__ht), 19959: __map_base(__ht), 19959: __rehash_base(__ht), 19959: __hashtable_alloc( 19959: __node_alloc_traits::_S_select_on_copy(__ht._M_node_allocator())), 19959: __enable_default_ctor(__ht), 19959: _M_buckets(nullptr), 19959: _M_bucket_count(__ht._M_bucket_count), 19959: _M_element_count(__ht._M_element_count), 19959: _M_rehash_policy(__ht._M_rehash_policy) 19959: { 19959: __alloc_node_gen_t __alloc_node_gen(*this); 19959: _M_assign(__ht, __alloc_node_gen); 19959: } 19959: 19959: template 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 19959: true_type ) 19959: noexcept(_S_nothrow_move()) 19959: : __hashtable_base(__ht), 19959: __map_base(__ht), 19959: __rehash_base(__ht), 19959: __hashtable_alloc(std::move(__a)), 19959: __enable_default_ctor(__ht), 19959: _M_buckets(__ht._M_buckets), 19959: _M_bucket_count(__ht._M_bucket_count), 19959: _M_before_begin(__ht._M_before_begin._M_nxt), 19959: _M_element_count(__ht._M_element_count), 19959: _M_rehash_policy(__ht._M_rehash_policy) 19959: { 19959: 19959: if (__ht._M_uses_single_bucket()) 19959: { 19959: _M_buckets = &_M_single_bucket; 19959: _M_single_bucket = __ht._M_single_bucket; 19959: } 19959: 19959: 19959: _M_update_bbegin(); 19959: 19959: __ht._M_reset(); 19959: } 19959: 19959: template 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _Hashtable(const _Hashtable& __ht, const allocator_type& __a) 19959: : __hashtable_base(__ht), 19959: __map_base(__ht), 19959: __rehash_base(__ht), 19959: __hashtable_alloc(__node_alloc_type(__a)), 19959: __enable_default_ctor(__ht), 19959: _M_buckets(), 19959: _M_bucket_count(__ht._M_bucket_count), 19959: _M_element_count(__ht._M_element_count), 19959: _M_rehash_policy(__ht._M_rehash_policy) 19959: { 19959: __alloc_node_gen_t __alloc_node_gen(*this); 19959: _M_assign(__ht, __alloc_node_gen); 19959: } 19959: 19959: template 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 19959: false_type ) 19959: : __hashtable_base(__ht), 19959: __map_base(__ht), 19959: __rehash_base(__ht), 19959: __hashtable_alloc(std::move(__a)), 19959: __enable_default_ctor(__ht), 19959: _M_buckets(nullptr), 19959: _M_bucket_count(__ht._M_bucket_count), 19959: _M_element_count(__ht._M_element_count), 19959: _M_rehash_policy(__ht._M_rehash_policy) 19959: { 19959: if (__ht._M_node_allocator() == this->_M_node_allocator()) 19959: { 19959: if (__ht._M_uses_single_bucket()) 19959: { 19959: _M_buckets = &_M_single_bucket; 19959: _M_single_bucket = __ht._M_single_bucket; 19959: } 19959: else 19959: _M_buckets = __ht._M_buckets; 19959: 19959: 19959: 19959: _M_update_bbegin(__ht._M_begin()); 19959: 19959: __ht._M_reset(); 19959: } 19959: else 19959: { 19959: __alloc_node_gen_t __alloc_gen(*this); 19959: 19959: using _Fwd_Ht = __conditional_t< 19959: __move_if_noexcept_cond::value, 19959: const _Hashtable&, _Hashtable&&>; 19959: _M_assign(std::forward<_Fwd_Ht>(__ht), __alloc_gen); 19959: __ht.clear(); 19959: } 19959: } 19959: 19959: template 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: ~_Hashtable() noexcept 19959: { 19959: 19959: 19959: 19959: static_assert(noexcept(declval() 19959: ._M_bucket_index(declval(), 19959: (std::size_t)0)), 19959: "Cache the hash code or qualify your functors involved" 19959: " in hash code and bucket index computation with noexcept"); 19959: 19959: clear(); 19959: _M_deallocate_buckets(); 19959: } 19959: 19959: template 19959: void 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: swap(_Hashtable& __x) 19959: noexcept(__and_<__is_nothrow_swappable<_Hash>, 19959: __is_nothrow_swappable<_Equal>>::value) 19959: { 19959: 19959: 19959: 19959: this->_M_swap(__x); 19959: 19959: std::__alloc_on_swap(this->_M_node_allocator(), __x._M_node_allocator()); 19959: std::swap(_M_rehash_policy, __x._M_rehash_policy); 19959: 19959: 19959: if (this->_M_uses_single_bucket()) 19959: { 19959: if (!__x._M_uses_single_bucket()) 19959: { 19959: _M_buckets = __x._M_buckets; 19959: __x._M_buckets = &__x._M_single_bucket; 19959: } 19959: } 19959: else if (__x._M_uses_single_bucket()) 19959: { 19959: __x._M_buckets = _M_buckets; 19959: _M_buckets = &_M_single_bucket; 19959: } 19959: else 19959: std::swap(_M_buckets, __x._M_buckets); 19959: 19959: std::swap(_M_bucket_count, __x._M_bucket_count); 19959: std::swap(_M_before_begin._M_nxt, __x._M_before_begin._M_nxt); 19959: std::swap(_M_element_count, __x._M_element_count); 19959: std::swap(_M_single_bucket, __x._M_single_bucket); 19959: 19959: 19959: 19959: _M_update_bbegin(); 19959: __x._M_update_bbegin(); 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: find(const key_type& __k) 19959: -> iterator 19959: { 19959: if (size() <= __small_size_threshold()) 19959: { 19959: for (auto __it = begin(); __it != end(); ++__it) 19959: if (this->_M_key_equals(__k, *__it._M_cur)) 19959: return __it; 19959: return end(); 19959: } 19959: 19959: __hash_code __code = this->_M_hash_code(__k); 19959: std::size_t __bkt = _M_bucket_index(__code); 19959: return iterator(_M_find_node(__bkt, __k, __code)); 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: find(const key_type& __k) const 19959: -> const_iterator 19959: { 19959: if (size() <= __small_size_threshold()) 19959: { 19959: for (auto __it = begin(); __it != end(); ++__it) 19959: if (this->_M_key_equals(__k, *__it._M_cur)) 19959: return __it; 19959: return end(); 19959: } 19959: 19959: __hash_code __code = this->_M_hash_code(__k); 19959: std::size_t __bkt = _M_bucket_index(__code); 19959: return const_iterator(_M_find_node(__bkt, __k, __code)); 19959: } 19959: # 1739 "/usr/include/c++/13/bits/hashtable.h" 3 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: count(const key_type& __k) const 19959: -> size_type 19959: { 19959: auto __it = find(__k); 19959: if (!__it._M_cur) 19959: return 0; 19959: 19959: if (__unique_keys::value) 19959: return 1; 19959: 19959: 19959: 19959: 19959: size_type __result = 1; 19959: for (auto __ref = __it++; 19959: __it._M_cur && this->_M_node_equals(*__ref._M_cur, *__it._M_cur); 19959: ++__it) 19959: ++__result; 19959: 19959: return __result; 19959: } 19959: # 1800 "/usr/include/c++/13/bits/hashtable.h" 3 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: equal_range(const key_type& __k) 19959: -> pair 19959: { 19959: auto __ite = find(__k); 19959: if (!__ite._M_cur) 19959: return { __ite, __ite }; 19959: 19959: auto __beg = __ite++; 19959: if (__unique_keys::value) 19959: return { __beg, __ite }; 19959: 19959: 19959: 19959: 19959: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 19959: ++__ite; 19959: 19959: return { __beg, __ite }; 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: equal_range(const key_type& __k) const 19959: -> pair 19959: { 19959: auto __ite = find(__k); 19959: if (!__ite._M_cur) 19959: return { __ite, __ite }; 19959: 19959: auto __beg = __ite++; 19959: if (__unique_keys::value) 19959: return { __beg, __ite }; 19959: 19959: 19959: 19959: 19959: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 19959: ++__ite; 19959: 19959: return { __beg, __ite }; 19959: } 19959: # 1914 "/usr/include/c++/13/bits/hashtable.h" 3 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_find_before_node(const key_type& __k) 19959: -> __node_base_ptr 19959: { 19959: __node_base_ptr __prev_p = &_M_before_begin; 19959: if (!__prev_p->_M_nxt) 19959: return nullptr; 19959: 19959: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt); 19959: __p != nullptr; 19959: __p = __p->_M_next()) 19959: { 19959: if (this->_M_key_equals(__k, *__p)) 19959: return __prev_p; 19959: 19959: __prev_p = __p; 19959: } 19959: 19959: return nullptr; 19959: } 19959: 19959: 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_find_before_node(size_type __bkt, const key_type& __k, 19959: __hash_code __code) const 19959: -> __node_base_ptr 19959: { 19959: __node_base_ptr __prev_p = _M_buckets[__bkt]; 19959: if (!__prev_p) 19959: return nullptr; 19959: 19959: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 19959: __p = __p->_M_next()) 19959: { 19959: if (this->_M_equals(__k, __code, *__p)) 19959: return __prev_p; 19959: 19959: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 19959: break; 19959: __prev_p = __p; 19959: } 19959: 19959: return nullptr; 19959: } 19959: 19959: template 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_find_before_node_tr(size_type __bkt, const _Kt& __k, 19959: __hash_code __code) const 19959: -> __node_base_ptr 19959: { 19959: __node_base_ptr __prev_p = _M_buckets[__bkt]; 19959: if (!__prev_p) 19959: return nullptr; 19959: 19959: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 19959: __p = __p->_M_next()) 19959: { 19959: if (this->_M_equals_tr(__k, __code, *__p)) 19959: return __prev_p; 19959: 19959: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 19959: break; 19959: __prev_p = __p; 19959: } 19959: 19959: return nullptr; 19959: } 19959: 19959: template 19959: void 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_insert_bucket_begin(size_type __bkt, __node_ptr __node) 19959: { 19959: if (_M_buckets[__bkt]) 19959: { 19959: 19959: 19959: __node->_M_nxt = _M_buckets[__bkt]->_M_nxt; 19959: _M_buckets[__bkt]->_M_nxt = __node; 19959: } 19959: else 19959: { 19959: 19959: 19959: 19959: __node->_M_nxt = _M_before_begin._M_nxt; 19959: _M_before_begin._M_nxt = __node; 19959: 19959: if (__node->_M_nxt) 19959: 19959: 19959: _M_buckets[_M_bucket_index(*__node->_M_next())] = __node; 19959: 19959: _M_buckets[__bkt] = &_M_before_begin; 19959: } 19959: } 19959: 19959: template 19959: void 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next, 19959: size_type __next_bkt) 19959: { 19959: if (!__next || __next_bkt != __bkt) 19959: { 19959: 19959: 19959: if (__next) 19959: _M_buckets[__next_bkt] = _M_buckets[__bkt]; 19959: 19959: 19959: if (&_M_before_begin == _M_buckets[__bkt]) 19959: _M_before_begin._M_nxt = __next; 19959: _M_buckets[__bkt] = nullptr; 19959: } 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_get_previous_node(size_type __bkt, __node_ptr __n) 19959: -> __node_base_ptr 19959: { 19959: __node_base_ptr __prev_n = _M_buckets[__bkt]; 19959: while (__prev_n->_M_nxt != __n) 19959: __prev_n = __prev_n->_M_nxt; 19959: return __prev_n; 19959: } 19959: 19959: template 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_emplace(true_type , _Args&&... __args) 19959: -> pair 19959: { 19959: 19959: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 19959: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 19959: if (size() <= __small_size_threshold()) 19959: { 19959: for (auto __it = begin(); __it != end(); ++__it) 19959: if (this->_M_key_equals(__k, *__it._M_cur)) 19959: 19959: return { __it, false }; 19959: } 19959: 19959: __hash_code __code = this->_M_hash_code(__k); 19959: size_type __bkt = _M_bucket_index(__code); 19959: if (size() > __small_size_threshold()) 19959: if (__node_ptr __p = _M_find_node(__bkt, __k, __code)) 19959: 19959: return { iterator(__p), false }; 19959: 19959: 19959: auto __pos = _M_insert_unique_node(__bkt, __code, __node._M_node); 19959: __node._M_node = nullptr; 19959: return { __pos, true }; 19959: } 19959: 19959: template 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_emplace(const_iterator __hint, false_type , 19959: _Args&&... __args) 19959: -> iterator 19959: { 19959: 19959: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 19959: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 19959: 19959: auto __res = this->_M_compute_hash_code(__hint, __k); 19959: auto __pos 19959: = _M_insert_multi_node(__res.first._M_cur, __res.second, 19959: __node._M_node); 19959: __node._M_node = nullptr; 19959: return __pos; 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_compute_hash_code(const_iterator __hint, const key_type& __k) const 19959: -> pair 19959: { 19959: if (size() <= __small_size_threshold()) 19959: { 19959: if (__hint != cend()) 19959: { 19959: for (auto __it = __hint; __it != cend(); ++__it) 19959: if (this->_M_key_equals(__k, *__it._M_cur)) 19959: return { __it, this->_M_hash_code(*__it._M_cur) }; 19959: } 19959: 19959: for (auto __it = cbegin(); __it != __hint; ++__it) 19959: if (this->_M_key_equals(__k, *__it._M_cur)) 19959: return { __it, this->_M_hash_code(*__it._M_cur) }; 19959: } 19959: 19959: return { __hint, this->_M_hash_code(__k) }; 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_insert_unique_node(size_type __bkt, __hash_code __code, 19959: __node_ptr __node, size_type __n_elt) 19959: -> iterator 19959: { 19959: const __rehash_state& __saved_state = _M_rehash_policy._M_state(); 19959: std::pair __do_rehash 19959: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 19959: __n_elt); 19959: 19959: if (__do_rehash.first) 19959: { 19959: _M_rehash(__do_rehash.second, __saved_state); 19959: __bkt = _M_bucket_index(__code); 19959: } 19959: 19959: this->_M_store_code(*__node, __code); 19959: 19959: 19959: _M_insert_bucket_begin(__bkt, __node); 19959: ++_M_element_count; 19959: return iterator(__node); 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_insert_multi_node(__node_ptr __hint, 19959: __hash_code __code, __node_ptr __node) 19959: -> iterator 19959: { 19959: const __rehash_state& __saved_state = _M_rehash_policy._M_state(); 19959: std::pair __do_rehash 19959: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 1); 19959: 19959: if (__do_rehash.first) 19959: _M_rehash(__do_rehash.second, __saved_state); 19959: 19959: this->_M_store_code(*__node, __code); 19959: const key_type& __k = _ExtractKey{}(__node->_M_v()); 19959: size_type __bkt = _M_bucket_index(__code); 19959: 19959: 19959: 19959: __node_base_ptr __prev 19959: = __builtin_expect(__hint != nullptr, false) 19959: && this->_M_equals(__k, __code, *__hint) 19959: ? __hint 19959: : _M_find_before_node(__bkt, __k, __code); 19959: 19959: if (__prev) 19959: { 19959: 19959: __node->_M_nxt = __prev->_M_nxt; 19959: __prev->_M_nxt = __node; 19959: if (__builtin_expect(__prev == __hint, false)) 19959: 19959: 19959: if (__node->_M_nxt 19959: && !this->_M_equals(__k, __code, *__node->_M_next())) 19959: { 19959: size_type __next_bkt = _M_bucket_index(*__node->_M_next()); 19959: if (__next_bkt != __bkt) 19959: _M_buckets[__next_bkt] = __node; 19959: } 19959: } 19959: else 19959: 19959: 19959: 19959: _M_insert_bucket_begin(__bkt, __node); 19959: ++_M_element_count; 19959: return iterator(__node); 19959: } 19959: 19959: 19959: template 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_insert_unique(_Kt&& __k, _Arg&& __v, 19959: const _NodeGenerator& __node_gen) 19959: -> pair 19959: { 19959: if (size() <= __small_size_threshold()) 19959: for (auto __it = begin(); __it != end(); ++__it) 19959: if (this->_M_key_equals_tr(__k, *__it._M_cur)) 19959: return { __it, false }; 19959: 19959: __hash_code __code = this->_M_hash_code_tr(__k); 19959: size_type __bkt = _M_bucket_index(__code); 19959: 19959: if (size() > __small_size_threshold()) 19959: if (__node_ptr __node = _M_find_node_tr(__bkt, __k, __code)) 19959: return { iterator(__node), false }; 19959: 19959: _Scoped_node __node { 19959: __node_builder_t::_S_build(std::forward<_Kt>(__k), 19959: std::forward<_Arg>(__v), 19959: __node_gen), 19959: this 19959: }; 19959: auto __pos 19959: = _M_insert_unique_node(__bkt, __code, __node._M_node); 19959: __node._M_node = nullptr; 19959: return { __pos, true }; 19959: } 19959: 19959: 19959: template 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_insert(const_iterator __hint, _Arg&& __v, 19959: const _NodeGenerator& __node_gen, 19959: false_type ) 19959: -> iterator 19959: { 19959: 19959: _Scoped_node __node{ __node_gen(std::forward<_Arg>(__v)), this }; 19959: 19959: 19959: auto __res = this->_M_compute_hash_code( 19959: __hint, _ExtractKey{}(__node._M_node->_M_v())); 19959: 19959: auto __pos 19959: = _M_insert_multi_node(__res.first._M_cur, __res.second, 19959: __node._M_node); 19959: __node._M_node = nullptr; 19959: return __pos; 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: erase(const_iterator __it) 19959: -> iterator 19959: { 19959: __node_ptr __n = __it._M_cur; 19959: std::size_t __bkt = _M_bucket_index(*__n); 19959: 19959: 19959: 19959: 19959: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 19959: return _M_erase(__bkt, __prev_n, __n); 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n) 19959: -> iterator 19959: { 19959: if (__prev_n == _M_buckets[__bkt]) 19959: _M_remove_bucket_begin(__bkt, __n->_M_next(), 19959: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 19959: else if (__n->_M_nxt) 19959: { 19959: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 19959: if (__next_bkt != __bkt) 19959: _M_buckets[__next_bkt] = __prev_n; 19959: } 19959: 19959: __prev_n->_M_nxt = __n->_M_nxt; 19959: iterator __result(__n->_M_next()); 19959: this->_M_deallocate_node(__n); 19959: --_M_element_count; 19959: 19959: return __result; 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_erase(true_type , const key_type& __k) 19959: -> size_type 19959: { 19959: __node_base_ptr __prev_n; 19959: __node_ptr __n; 19959: std::size_t __bkt; 19959: if (size() <= __small_size_threshold()) 19959: { 19959: __prev_n = _M_find_before_node(__k); 19959: if (!__prev_n) 19959: return 0; 19959: 19959: 19959: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 19959: __bkt = _M_bucket_index(*__n); 19959: } 19959: else 19959: { 19959: __hash_code __code = this->_M_hash_code(__k); 19959: __bkt = _M_bucket_index(__code); 19959: 19959: 19959: __prev_n = _M_find_before_node(__bkt, __k, __code); 19959: if (!__prev_n) 19959: return 0; 19959: 19959: 19959: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 19959: } 19959: 19959: _M_erase(__bkt, __prev_n, __n); 19959: return 1; 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_erase(false_type , const key_type& __k) 19959: -> size_type 19959: { 19959: std::size_t __bkt; 19959: __node_base_ptr __prev_n; 19959: __node_ptr __n; 19959: if (size() <= __small_size_threshold()) 19959: { 19959: __prev_n = _M_find_before_node(__k); 19959: if (!__prev_n) 19959: return 0; 19959: 19959: 19959: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 19959: __bkt = _M_bucket_index(*__n); 19959: } 19959: else 19959: { 19959: __hash_code __code = this->_M_hash_code(__k); 19959: __bkt = _M_bucket_index(__code); 19959: 19959: 19959: __prev_n = _M_find_before_node(__bkt, __k, __code); 19959: if (!__prev_n) 19959: return 0; 19959: 19959: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __node_ptr __n_last = __n->_M_next(); 19959: while (__n_last && this->_M_node_equals(*__n, *__n_last)) 19959: __n_last = __n_last->_M_next(); 19959: 19959: std::size_t __n_last_bkt = __n_last ? _M_bucket_index(*__n_last) : __bkt; 19959: 19959: 19959: size_type __result = 0; 19959: do 19959: { 19959: __node_ptr __p = __n->_M_next(); 19959: this->_M_deallocate_node(__n); 19959: __n = __p; 19959: ++__result; 19959: } 19959: while (__n != __n_last); 19959: 19959: _M_element_count -= __result; 19959: if (__prev_n == _M_buckets[__bkt]) 19959: _M_remove_bucket_begin(__bkt, __n_last, __n_last_bkt); 19959: else if (__n_last_bkt != __bkt) 19959: _M_buckets[__n_last_bkt] = __prev_n; 19959: __prev_n->_M_nxt = __n_last; 19959: return __result; 19959: } 19959: 19959: template 19959: auto 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: erase(const_iterator __first, const_iterator __last) 19959: -> iterator 19959: { 19959: __node_ptr __n = __first._M_cur; 19959: __node_ptr __last_n = __last._M_cur; 19959: if (__n == __last_n) 19959: return iterator(__n); 19959: 19959: std::size_t __bkt = _M_bucket_index(*__n); 19959: 19959: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 19959: bool __is_bucket_begin = __n == _M_bucket_begin(__bkt); 19959: std::size_t __n_bkt = __bkt; 19959: for (;;) 19959: { 19959: do 19959: { 19959: __node_ptr __tmp = __n; 19959: __n = __n->_M_next(); 19959: this->_M_deallocate_node(__tmp); 19959: --_M_element_count; 19959: if (!__n) 19959: break; 19959: __n_bkt = _M_bucket_index(*__n); 19959: } 19959: while (__n != __last_n && __n_bkt == __bkt); 19959: if (__is_bucket_begin) 19959: _M_remove_bucket_begin(__bkt, __n, __n_bkt); 19959: if (__n == __last_n) 19959: break; 19959: __is_bucket_begin = true; 19959: __bkt = __n_bkt; 19959: } 19959: 19959: if (__n && (__n_bkt != __bkt || __is_bucket_begin)) 19959: _M_buckets[__n_bkt] = __prev_n; 19959: __prev_n->_M_nxt = __n; 19959: return iterator(__n); 19959: } 19959: 19959: template 19959: void 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: clear() noexcept 19959: { 19959: this->_M_deallocate_nodes(_M_begin()); 19959: __builtin_memset(_M_buckets, 0, 19959: _M_bucket_count * sizeof(__node_base_ptr)); 19959: _M_element_count = 0; 19959: _M_before_begin._M_nxt = nullptr; 19959: } 19959: 19959: template 19959: void 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: rehash(size_type __bkt_count) 19959: { 19959: const __rehash_state& __saved_state = _M_rehash_policy._M_state(); 19959: __bkt_count 19959: = std::max(_M_rehash_policy._M_bkt_for_elements(_M_element_count + 1), 19959: __bkt_count); 19959: __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count); 19959: 19959: if (__bkt_count != _M_bucket_count) 19959: _M_rehash(__bkt_count, __saved_state); 19959: else 19959: 19959: 19959: _M_rehash_policy._M_reset(__saved_state); 19959: } 19959: 19959: template 19959: void 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_rehash(size_type __bkt_count, const __rehash_state& __state) 19959: { 19959: try 19959: { 19959: _M_rehash_aux(__bkt_count, __unique_keys{}); 19959: } 19959: catch(...) 19959: { 19959: 19959: 19959: _M_rehash_policy._M_reset(__state); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: template 19959: void 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_rehash_aux(size_type __bkt_count, true_type ) 19959: { 19959: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 19959: __node_ptr __p = _M_begin(); 19959: _M_before_begin._M_nxt = nullptr; 19959: std::size_t __bbegin_bkt = 0; 19959: while (__p) 19959: { 19959: __node_ptr __next = __p->_M_next(); 19959: std::size_t __bkt 19959: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 19959: if (!__new_buckets[__bkt]) 19959: { 19959: __p->_M_nxt = _M_before_begin._M_nxt; 19959: _M_before_begin._M_nxt = __p; 19959: __new_buckets[__bkt] = &_M_before_begin; 19959: if (__p->_M_nxt) 19959: __new_buckets[__bbegin_bkt] = __p; 19959: __bbegin_bkt = __bkt; 19959: } 19959: else 19959: { 19959: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 19959: __new_buckets[__bkt]->_M_nxt = __p; 19959: } 19959: 19959: __p = __next; 19959: } 19959: 19959: _M_deallocate_buckets(); 19959: _M_bucket_count = __bkt_count; 19959: _M_buckets = __new_buckets; 19959: } 19959: 19959: 19959: 19959: template 19959: void 19959: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 19959: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 19959: _M_rehash_aux(size_type __bkt_count, false_type ) 19959: { 19959: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 19959: __node_ptr __p = _M_begin(); 19959: _M_before_begin._M_nxt = nullptr; 19959: std::size_t __bbegin_bkt = 0; 19959: std::size_t __prev_bkt = 0; 19959: __node_ptr __prev_p = nullptr; 19959: bool __check_bucket = false; 19959: 19959: while (__p) 19959: { 19959: __node_ptr __next = __p->_M_next(); 19959: std::size_t __bkt 19959: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 19959: 19959: if (__prev_p && __prev_bkt == __bkt) 19959: { 19959: 19959: 19959: 19959: __p->_M_nxt = __prev_p->_M_nxt; 19959: __prev_p->_M_nxt = __p; 19959: 19959: 19959: 19959: 19959: 19959: 19959: __check_bucket = true; 19959: } 19959: else 19959: { 19959: if (__check_bucket) 19959: { 19959: 19959: 19959: if (__prev_p->_M_nxt) 19959: { 19959: std::size_t __next_bkt 19959: = __hash_code_base::_M_bucket_index( 19959: *__prev_p->_M_next(), __bkt_count); 19959: if (__next_bkt != __prev_bkt) 19959: __new_buckets[__next_bkt] = __prev_p; 19959: } 19959: __check_bucket = false; 19959: } 19959: 19959: if (!__new_buckets[__bkt]) 19959: { 19959: __p->_M_nxt = _M_before_begin._M_nxt; 19959: _M_before_begin._M_nxt = __p; 19959: __new_buckets[__bkt] = &_M_before_begin; 19959: if (__p->_M_nxt) 19959: __new_buckets[__bbegin_bkt] = __p; 19959: __bbegin_bkt = __bkt; 19959: } 19959: else 19959: { 19959: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 19959: __new_buckets[__bkt]->_M_nxt = __p; 19959: } 19959: } 19959: __prev_p = __p; 19959: __prev_bkt = __bkt; 19959: __p = __next; 19959: } 19959: 19959: if (__check_bucket && __prev_p->_M_nxt) 19959: { 19959: std::size_t __next_bkt 19959: = __hash_code_base::_M_bucket_index(*__prev_p->_M_next(), 19959: __bkt_count); 19959: if (__next_bkt != __prev_bkt) 19959: __new_buckets[__next_bkt] = __prev_p; 19959: } 19959: 19959: _M_deallocate_buckets(); 19959: _M_bucket_count = __bkt_count; 19959: _M_buckets = __new_buckets; 19959: } 19959: 19959: 19959: template class _Hash_merge_helper { }; 19959: 19959: 19959: 19959: 19959: template 19959: using _RequireNotAllocatorOrIntegral 19959: = __enable_if_t, __is_allocator<_Hash>>::value>; 19959: 19959: 19959: 19959: 19959: } 19959: # 34 "/usr/include/c++/13/bits/unordered_map.h" 2 3 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: template 19959: using __umap_traits = __detail::_Hashtable_traits<_Cache, false, true>; 19959: 19959: template, 19959: typename _Pred = std::equal_to<_Key>, 19959: typename _Alloc = std::allocator >, 19959: typename _Tr = __umap_traits<__cache_default<_Key, _Hash>::value>> 19959: using __umap_hashtable = _Hashtable<_Key, std::pair, 19959: _Alloc, __detail::_Select1st, 19959: _Pred, _Hash, 19959: __detail::_Mod_range_hashing, 19959: __detail::_Default_ranged_hash, 19959: __detail::_Prime_rehash_policy, _Tr>; 19959: 19959: 19959: template 19959: using __ummap_traits = __detail::_Hashtable_traits<_Cache, false, false>; 19959: 19959: template, 19959: typename _Pred = std::equal_to<_Key>, 19959: typename _Alloc = std::allocator >, 19959: typename _Tr = __ummap_traits<__cache_default<_Key, _Hash>::value>> 19959: using __ummap_hashtable = _Hashtable<_Key, std::pair, 19959: _Alloc, __detail::_Select1st, 19959: _Pred, _Hash, 19959: __detail::_Mod_range_hashing, 19959: __detail::_Default_ranged_hash, 19959: __detail::_Prime_rehash_policy, _Tr>; 19959: 19959: template 19959: class unordered_multimap; 19959: # 105 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template, 19959: typename _Pred = equal_to<_Key>, 19959: typename _Alloc = allocator>> 19959: class unordered_map 19959: { 19959: typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 19959: _Hashtable _M_h; 19959: 19959: public: 19959: 19959: 19959: 19959: typedef typename _Hashtable::key_type key_type; 19959: typedef typename _Hashtable::value_type value_type; 19959: typedef typename _Hashtable::mapped_type mapped_type; 19959: typedef typename _Hashtable::hasher hasher; 19959: typedef typename _Hashtable::key_equal key_equal; 19959: typedef typename _Hashtable::allocator_type allocator_type; 19959: 19959: 19959: 19959: 19959: typedef typename _Hashtable::pointer pointer; 19959: typedef typename _Hashtable::const_pointer const_pointer; 19959: typedef typename _Hashtable::reference reference; 19959: typedef typename _Hashtable::const_reference const_reference; 19959: typedef typename _Hashtable::iterator iterator; 19959: typedef typename _Hashtable::const_iterator const_iterator; 19959: typedef typename _Hashtable::local_iterator local_iterator; 19959: typedef typename _Hashtable::const_local_iterator const_local_iterator; 19959: typedef typename _Hashtable::size_type size_type; 19959: typedef typename _Hashtable::difference_type difference_type; 19959: 19959: 19959: 19959: using node_type = typename _Hashtable::node_type; 19959: using insert_return_type = typename _Hashtable::insert_return_type; 19959: 19959: 19959: 19959: 19959: 19959: unordered_map() = default; 19959: # 157 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: explicit 19959: unordered_map(size_type __n, 19959: const hasher& __hf = hasher(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_h(__n, __hf, __eql, __a) 19959: { } 19959: # 178 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template 19959: unordered_map(_InputIterator __first, _InputIterator __last, 19959: size_type __n = 0, 19959: const hasher& __hf = hasher(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_h(__first, __last, __n, __hf, __eql, __a) 19959: { } 19959: 19959: 19959: unordered_map(const unordered_map&) = default; 19959: 19959: 19959: unordered_map(unordered_map&&) = default; 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: unordered_map(const allocator_type& __a) 19959: : _M_h(__a) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: unordered_map(const unordered_map& __umap, 19959: const allocator_type& __a) 19959: : _M_h(__umap._M_h, __a) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: unordered_map(unordered_map&& __umap, 19959: const allocator_type& __a) 19959: noexcept( noexcept(_Hashtable(std::move(__umap._M_h), __a)) ) 19959: : _M_h(std::move(__umap._M_h), __a) 19959: { } 19959: # 234 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: unordered_map(initializer_list __l, 19959: size_type __n = 0, 19959: const hasher& __hf = hasher(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_h(__l, __n, __hf, __eql, __a) 19959: { } 19959: 19959: unordered_map(size_type __n, const allocator_type& __a) 19959: : unordered_map(__n, hasher(), key_equal(), __a) 19959: { } 19959: 19959: unordered_map(size_type __n, const hasher& __hf, 19959: const allocator_type& __a) 19959: : unordered_map(__n, __hf, key_equal(), __a) 19959: { } 19959: 19959: template 19959: unordered_map(_InputIterator __first, _InputIterator __last, 19959: size_type __n, 19959: const allocator_type& __a) 19959: : unordered_map(__first, __last, __n, hasher(), key_equal(), __a) 19959: { } 19959: 19959: template 19959: unordered_map(_InputIterator __first, _InputIterator __last, 19959: size_type __n, const hasher& __hf, 19959: const allocator_type& __a) 19959: : unordered_map(__first, __last, __n, __hf, key_equal(), __a) 19959: { } 19959: 19959: unordered_map(initializer_list __l, 19959: size_type __n, 19959: const allocator_type& __a) 19959: : unordered_map(__l, __n, hasher(), key_equal(), __a) 19959: { } 19959: 19959: unordered_map(initializer_list __l, 19959: size_type __n, const hasher& __hf, 19959: const allocator_type& __a) 19959: : unordered_map(__l, __n, __hf, key_equal(), __a) 19959: { } 19959: 19959: 19959: unordered_map& 19959: operator=(const unordered_map&) = default; 19959: 19959: 19959: unordered_map& 19959: operator=(unordered_map&&) = default; 19959: # 296 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: unordered_map& 19959: operator=(initializer_list __l) 19959: { 19959: _M_h = __l; 19959: return *this; 19959: } 19959: 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return _M_h.get_allocator(); } 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] bool 19959: empty() const noexcept 19959: { return _M_h.empty(); } 19959: 19959: 19959: size_type 19959: size() const noexcept 19959: { return _M_h.size(); } 19959: 19959: 19959: size_type 19959: max_size() const noexcept 19959: { return _M_h.max_size(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: begin() noexcept 19959: { return _M_h.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: begin() const noexcept 19959: { return _M_h.begin(); } 19959: 19959: const_iterator 19959: cbegin() const noexcept 19959: { return _M_h.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: end() noexcept 19959: { return _M_h.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: end() const noexcept 19959: { return _M_h.end(); } 19959: 19959: const_iterator 19959: cend() const noexcept 19959: { return _M_h.end(); } 19959: # 393 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template 19959: std::pair 19959: emplace(_Args&&... __args) 19959: { return _M_h.emplace(std::forward<_Args>(__args)...); } 19959: # 424 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template 19959: iterator 19959: emplace_hint(const_iterator __pos, _Args&&... __args) 19959: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 19959: 19959: 19959: 19959: node_type 19959: extract(const_iterator __pos) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 19959: return _M_h.extract(__pos); 19959: } 19959: 19959: 19959: node_type 19959: extract(const key_type& __key) 19959: { return _M_h.extract(__key); } 19959: 19959: 19959: insert_return_type 19959: insert(node_type&& __nh) 19959: { return _M_h._M_reinsert_node(std::move(__nh)); } 19959: 19959: 19959: iterator 19959: insert(const_iterator, node_type&& __nh) 19959: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 19959: # 476 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template 19959: pair 19959: try_emplace(const key_type& __k, _Args&&... __args) 19959: { 19959: return _M_h.try_emplace(cend(), __k, std::forward<_Args>(__args)...); 19959: } 19959: 19959: 19959: template 19959: pair 19959: try_emplace(key_type&& __k, _Args&&... __args) 19959: { 19959: return _M_h.try_emplace(cend(), std::move(__k), 19959: std::forward<_Args>(__args)...); 19959: } 19959: # 520 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template 19959: iterator 19959: try_emplace(const_iterator __hint, const key_type& __k, 19959: _Args&&... __args) 19959: { 19959: return _M_h.try_emplace(__hint, __k, 19959: std::forward<_Args>(__args)...).first; 19959: } 19959: 19959: 19959: template 19959: iterator 19959: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 19959: { 19959: return _M_h.try_emplace(__hint, std::move(__k), 19959: std::forward<_Args>(__args)...).first; 19959: } 19959: # 557 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: std::pair 19959: insert(const value_type& __x) 19959: { return _M_h.insert(__x); } 19959: 19959: 19959: 19959: std::pair 19959: insert(value_type&& __x) 19959: { return _M_h.insert(std::move(__x)); } 19959: 19959: template 19959: __enable_if_t::value, 19959: pair> 19959: insert(_Pair&& __x) 19959: { return _M_h.emplace(std::forward<_Pair>(__x)); } 19959: # 596 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: iterator 19959: insert(const_iterator __hint, const value_type& __x) 19959: { return _M_h.insert(__hint, __x); } 19959: 19959: 19959: 19959: iterator 19959: insert(const_iterator __hint, value_type&& __x) 19959: { return _M_h.insert(__hint, std::move(__x)); } 19959: 19959: template 19959: __enable_if_t::value, iterator> 19959: insert(const_iterator __hint, _Pair&& __x) 19959: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 19959: # 621 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template 19959: void 19959: insert(_InputIterator __first, _InputIterator __last) 19959: { _M_h.insert(__first, __last); } 19959: # 633 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: void 19959: insert(initializer_list __l) 19959: { _M_h.insert(__l); } 19959: # 659 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template 19959: pair 19959: insert_or_assign(const key_type& __k, _Obj&& __obj) 19959: { 19959: auto __ret = _M_h.try_emplace(cend(), __k, 19959: std::forward<_Obj>(__obj)); 19959: if (!__ret.second) 19959: __ret.first->second = std::forward<_Obj>(__obj); 19959: return __ret; 19959: } 19959: 19959: 19959: template 19959: pair 19959: insert_or_assign(key_type&& __k, _Obj&& __obj) 19959: { 19959: auto __ret = _M_h.try_emplace(cend(), std::move(__k), 19959: std::forward<_Obj>(__obj)); 19959: if (!__ret.second) 19959: __ret.first->second = std::forward<_Obj>(__obj); 19959: return __ret; 19959: } 19959: # 708 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template 19959: iterator 19959: insert_or_assign(const_iterator __hint, const key_type& __k, 19959: _Obj&& __obj) 19959: { 19959: auto __ret = _M_h.try_emplace(__hint, __k, std::forward<_Obj>(__obj)); 19959: if (!__ret.second) 19959: __ret.first->second = std::forward<_Obj>(__obj); 19959: return __ret.first; 19959: } 19959: 19959: 19959: template 19959: iterator 19959: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 19959: { 19959: auto __ret = _M_h.try_emplace(__hint, std::move(__k), 19959: std::forward<_Obj>(__obj)); 19959: if (!__ret.second) 19959: __ret.first->second = std::forward<_Obj>(__obj); 19959: return __ret.first; 19959: } 19959: # 746 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: iterator 19959: erase(const_iterator __position) 19959: { return _M_h.erase(__position); } 19959: 19959: 19959: iterator 19959: erase(iterator __position) 19959: { return _M_h.erase(__position); } 19959: # 768 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: size_type 19959: erase(const key_type& __x) 19959: { return _M_h.erase(__x); } 19959: # 786 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: iterator 19959: erase(const_iterator __first, const_iterator __last) 19959: { return _M_h.erase(__first, __last); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: clear() noexcept 19959: { _M_h.clear(); } 19959: # 810 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: void 19959: swap(unordered_map& __x) 19959: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 19959: { _M_h.swap(__x._M_h); } 19959: 19959: 19959: template 19959: friend class std::_Hash_merge_helper; 19959: 19959: template 19959: void 19959: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 19959: { 19959: using _Merge_helper = _Hash_merge_helper; 19959: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 19959: { merge(__source); } 19959: 19959: template 19959: void 19959: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 19959: { 19959: using _Merge_helper = _Hash_merge_helper; 19959: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 19959: { merge(__source); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: hasher 19959: hash_function() const 19959: { return _M_h.hash_function(); } 19959: 19959: 19959: 19959: key_equal 19959: key_eq() const 19959: { return _M_h.key_eq(); } 19959: # 874 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: iterator 19959: find(const key_type& __x) 19959: { return _M_h.find(__x); } 19959: # 885 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: const_iterator 19959: find(const key_type& __x) const 19959: { return _M_h.find(__x); } 19959: # 907 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: size_type 19959: count(const key_type& __x) const 19959: { return _M_h.count(__x); } 19959: # 947 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) 19959: { return _M_h.equal_range(__x); } 19959: # 959 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) const 19959: { return _M_h.equal_range(__x); } 19959: # 985 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: mapped_type& 19959: operator[](const key_type& __k) 19959: { return _M_h[__k]; } 19959: 19959: mapped_type& 19959: operator[](key_type&& __k) 19959: { return _M_h[std::move(__k)]; } 19959: # 1002 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: mapped_type& 19959: at(const key_type& __k) 19959: { return _M_h.at(__k); } 19959: 19959: const mapped_type& 19959: at(const key_type& __k) const 19959: { return _M_h.at(__k); } 19959: 19959: 19959: 19959: 19959: 19959: size_type 19959: bucket_count() const noexcept 19959: { return _M_h.bucket_count(); } 19959: 19959: 19959: size_type 19959: max_bucket_count() const noexcept 19959: { return _M_h.max_bucket_count(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_type 19959: bucket_size(size_type __n) const 19959: { return _M_h.bucket_size(__n); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_type 19959: bucket(const key_type& __key) const 19959: { return _M_h.bucket(__key); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: local_iterator 19959: begin(size_type __n) 19959: { return _M_h.begin(__n); } 19959: # 1058 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: const_local_iterator 19959: begin(size_type __n) const 19959: { return _M_h.begin(__n); } 19959: 19959: const_local_iterator 19959: cbegin(size_type __n) const 19959: { return _M_h.cbegin(__n); } 19959: # 1073 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: local_iterator 19959: end(size_type __n) 19959: { return _M_h.end(__n); } 19959: # 1084 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: const_local_iterator 19959: end(size_type __n) const 19959: { return _M_h.end(__n); } 19959: 19959: const_local_iterator 19959: cend(size_type __n) const 19959: { return _M_h.cend(__n); } 19959: 19959: 19959: 19959: 19959: 19959: float 19959: load_factor() const noexcept 19959: { return _M_h.load_factor(); } 19959: 19959: 19959: 19959: float 19959: max_load_factor() const noexcept 19959: { return _M_h.max_load_factor(); } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: max_load_factor(float __z) 19959: { _M_h.max_load_factor(__z); } 19959: # 1121 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: void 19959: rehash(size_type __n) 19959: { _M_h.rehash(__n); } 19959: # 1132 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: void 19959: reserve(size_type __n) 19959: { _M_h.reserve(__n); } 19959: 19959: template 19959: friend bool 19959: operator==(const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, 19959: const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&); 19959: }; 19959: 19959: 19959: 19959: template>, 19959: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 19959: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 19959: typename = _RequireInputIter<_InputIterator>, 19959: typename = _RequireNotAllocatorOrIntegral<_Hash>, 19959: typename = _RequireNotAllocator<_Pred>, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_map(_InputIterator, _InputIterator, 19959: typename unordered_map::size_type = {}, 19959: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 19959: -> unordered_map<__iter_key_t<_InputIterator>, 19959: __iter_val_t<_InputIterator>, 19959: _Hash, _Pred, _Allocator>; 19959: 19959: template, 19959: typename _Pred = equal_to<_Key>, 19959: typename _Allocator = allocator>, 19959: typename = _RequireNotAllocatorOrIntegral<_Hash>, 19959: typename = _RequireNotAllocator<_Pred>, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_map(initializer_list>, 19959: typename unordered_map::size_type = {}, 19959: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 19959: -> unordered_map<_Key, _Tp, _Hash, _Pred, _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_map(_InputIterator, _InputIterator, 19959: typename unordered_map::size_type, _Allocator) 19959: -> unordered_map<__iter_key_t<_InputIterator>, 19959: __iter_val_t<_InputIterator>, 19959: hash<__iter_key_t<_InputIterator>>, 19959: equal_to<__iter_key_t<_InputIterator>>, 19959: _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_map(_InputIterator, _InputIterator, _Allocator) 19959: -> unordered_map<__iter_key_t<_InputIterator>, 19959: __iter_val_t<_InputIterator>, 19959: hash<__iter_key_t<_InputIterator>>, 19959: equal_to<__iter_key_t<_InputIterator>>, 19959: _Allocator>; 19959: 19959: template, 19959: typename = _RequireNotAllocatorOrIntegral<_Hash>, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_map(_InputIterator, _InputIterator, 19959: typename unordered_map::size_type, 19959: _Hash, _Allocator) 19959: -> unordered_map<__iter_key_t<_InputIterator>, 19959: __iter_val_t<_InputIterator>, _Hash, 19959: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 19959: 19959: template> 19959: unordered_map(initializer_list>, 19959: typename unordered_map::size_type, 19959: _Allocator) 19959: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 19959: 19959: template> 19959: unordered_map(initializer_list>, _Allocator) 19959: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_map(initializer_list>, 19959: typename unordered_map::size_type, 19959: _Hash, _Allocator) 19959: -> unordered_map<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 19959: # 1250 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template, 19959: typename _Pred = equal_to<_Key>, 19959: typename _Alloc = allocator>> 19959: class unordered_multimap 19959: { 19959: typedef __ummap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 19959: _Hashtable _M_h; 19959: 19959: public: 19959: 19959: 19959: 19959: typedef typename _Hashtable::key_type key_type; 19959: typedef typename _Hashtable::value_type value_type; 19959: typedef typename _Hashtable::mapped_type mapped_type; 19959: typedef typename _Hashtable::hasher hasher; 19959: typedef typename _Hashtable::key_equal key_equal; 19959: typedef typename _Hashtable::allocator_type allocator_type; 19959: 19959: 19959: 19959: 19959: typedef typename _Hashtable::pointer pointer; 19959: typedef typename _Hashtable::const_pointer const_pointer; 19959: typedef typename _Hashtable::reference reference; 19959: typedef typename _Hashtable::const_reference const_reference; 19959: typedef typename _Hashtable::iterator iterator; 19959: typedef typename _Hashtable::const_iterator const_iterator; 19959: typedef typename _Hashtable::local_iterator local_iterator; 19959: typedef typename _Hashtable::const_local_iterator const_local_iterator; 19959: typedef typename _Hashtable::size_type size_type; 19959: typedef typename _Hashtable::difference_type difference_type; 19959: 19959: 19959: 19959: using node_type = typename _Hashtable::node_type; 19959: 19959: 19959: 19959: 19959: 19959: unordered_multimap() = default; 19959: # 1301 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: explicit 19959: unordered_multimap(size_type __n, 19959: const hasher& __hf = hasher(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_h(__n, __hf, __eql, __a) 19959: { } 19959: # 1322 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template 19959: unordered_multimap(_InputIterator __first, _InputIterator __last, 19959: size_type __n = 0, 19959: const hasher& __hf = hasher(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_h(__first, __last, __n, __hf, __eql, __a) 19959: { } 19959: 19959: 19959: unordered_multimap(const unordered_multimap&) = default; 19959: 19959: 19959: unordered_multimap(unordered_multimap&&) = default; 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: unordered_multimap(const allocator_type& __a) 19959: : _M_h(__a) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: unordered_multimap(const unordered_multimap& __ummap, 19959: const allocator_type& __a) 19959: : _M_h(__ummap._M_h, __a) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: unordered_multimap(unordered_multimap&& __ummap, 19959: const allocator_type& __a) 19959: noexcept( noexcept(_Hashtable(std::move(__ummap._M_h), __a)) ) 19959: : _M_h(std::move(__ummap._M_h), __a) 19959: { } 19959: # 1378 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: unordered_multimap(initializer_list __l, 19959: size_type __n = 0, 19959: const hasher& __hf = hasher(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_h(__l, __n, __hf, __eql, __a) 19959: { } 19959: 19959: unordered_multimap(size_type __n, const allocator_type& __a) 19959: : unordered_multimap(__n, hasher(), key_equal(), __a) 19959: { } 19959: 19959: unordered_multimap(size_type __n, const hasher& __hf, 19959: const allocator_type& __a) 19959: : unordered_multimap(__n, __hf, key_equal(), __a) 19959: { } 19959: 19959: template 19959: unordered_multimap(_InputIterator __first, _InputIterator __last, 19959: size_type __n, 19959: const allocator_type& __a) 19959: : unordered_multimap(__first, __last, __n, hasher(), key_equal(), __a) 19959: { } 19959: 19959: template 19959: unordered_multimap(_InputIterator __first, _InputIterator __last, 19959: size_type __n, const hasher& __hf, 19959: const allocator_type& __a) 19959: : unordered_multimap(__first, __last, __n, __hf, key_equal(), __a) 19959: { } 19959: 19959: unordered_multimap(initializer_list __l, 19959: size_type __n, 19959: const allocator_type& __a) 19959: : unordered_multimap(__l, __n, hasher(), key_equal(), __a) 19959: { } 19959: 19959: unordered_multimap(initializer_list __l, 19959: size_type __n, const hasher& __hf, 19959: const allocator_type& __a) 19959: : unordered_multimap(__l, __n, __hf, key_equal(), __a) 19959: { } 19959: 19959: 19959: unordered_multimap& 19959: operator=(const unordered_multimap&) = default; 19959: 19959: 19959: unordered_multimap& 19959: operator=(unordered_multimap&&) = default; 19959: # 1440 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: unordered_multimap& 19959: operator=(initializer_list __l) 19959: { 19959: _M_h = __l; 19959: return *this; 19959: } 19959: 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return _M_h.get_allocator(); } 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] bool 19959: empty() const noexcept 19959: { return _M_h.empty(); } 19959: 19959: 19959: size_type 19959: size() const noexcept 19959: { return _M_h.size(); } 19959: 19959: 19959: size_type 19959: max_size() const noexcept 19959: { return _M_h.max_size(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: begin() noexcept 19959: { return _M_h.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: begin() const noexcept 19959: { return _M_h.begin(); } 19959: 19959: const_iterator 19959: cbegin() const noexcept 19959: { return _M_h.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: end() noexcept 19959: { return _M_h.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: end() const noexcept 19959: { return _M_h.end(); } 19959: 19959: const_iterator 19959: cend() const noexcept 19959: { return _M_h.end(); } 19959: # 1532 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template 19959: iterator 19959: emplace(_Args&&... __args) 19959: { return _M_h.emplace(std::forward<_Args>(__args)...); } 19959: # 1559 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template 19959: iterator 19959: emplace_hint(const_iterator __pos, _Args&&... __args) 19959: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 19959: # 1574 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: iterator 19959: insert(const value_type& __x) 19959: { return _M_h.insert(__x); } 19959: 19959: iterator 19959: insert(value_type&& __x) 19959: { return _M_h.insert(std::move(__x)); } 19959: 19959: template 19959: __enable_if_t::value, iterator> 19959: insert(_Pair&& __x) 19959: { return _M_h.emplace(std::forward<_Pair>(__x)); } 19959: # 1608 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: iterator 19959: insert(const_iterator __hint, const value_type& __x) 19959: { return _M_h.insert(__hint, __x); } 19959: 19959: 19959: 19959: iterator 19959: insert(const_iterator __hint, value_type&& __x) 19959: { return _M_h.insert(__hint, std::move(__x)); } 19959: 19959: template 19959: __enable_if_t::value, iterator> 19959: insert(const_iterator __hint, _Pair&& __x) 19959: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 19959: # 1633 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: template 19959: void 19959: insert(_InputIterator __first, _InputIterator __last) 19959: { _M_h.insert(__first, __last); } 19959: # 1646 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: void 19959: insert(initializer_list __l) 19959: { _M_h.insert(__l); } 19959: 19959: 19959: 19959: node_type 19959: extract(const_iterator __pos) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 19959: return _M_h.extract(__pos); 19959: } 19959: 19959: 19959: node_type 19959: extract(const key_type& __key) 19959: { return _M_h.extract(__key); } 19959: 19959: 19959: iterator 19959: insert(node_type&& __nh) 19959: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 19959: 19959: 19959: iterator 19959: insert(const_iterator __hint, node_type&& __nh) 19959: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 19959: # 1689 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: iterator 19959: erase(const_iterator __position) 19959: { return _M_h.erase(__position); } 19959: 19959: 19959: iterator 19959: erase(iterator __position) 19959: { return _M_h.erase(__position); } 19959: # 1710 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: size_type 19959: erase(const key_type& __x) 19959: { return _M_h.erase(__x); } 19959: # 1729 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: iterator 19959: erase(const_iterator __first, const_iterator __last) 19959: { return _M_h.erase(__first, __last); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: clear() noexcept 19959: { _M_h.clear(); } 19959: # 1753 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: void 19959: swap(unordered_multimap& __x) 19959: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 19959: { _M_h.swap(__x._M_h); } 19959: 19959: 19959: template 19959: friend class std::_Hash_merge_helper; 19959: 19959: template 19959: void 19959: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 19959: { 19959: using _Merge_helper 19959: = _Hash_merge_helper; 19959: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 19959: { merge(__source); } 19959: 19959: template 19959: void 19959: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 19959: { 19959: using _Merge_helper 19959: = _Hash_merge_helper; 19959: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 19959: { merge(__source); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: hasher 19959: hash_function() const 19959: { return _M_h.hash_function(); } 19959: 19959: 19959: 19959: key_equal 19959: key_eq() const 19959: { return _M_h.key_eq(); } 19959: # 1819 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: iterator 19959: find(const key_type& __x) 19959: { return _M_h.find(__x); } 19959: # 1830 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: const_iterator 19959: find(const key_type& __x) const 19959: { return _M_h.find(__x); } 19959: # 1848 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: size_type 19959: count(const key_type& __x) const 19959: { return _M_h.count(__x); } 19959: # 1886 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) 19959: { return _M_h.equal_range(__x); } 19959: # 1898 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) const 19959: { return _M_h.equal_range(__x); } 19959: # 1914 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: size_type 19959: bucket_count() const noexcept 19959: { return _M_h.bucket_count(); } 19959: 19959: 19959: size_type 19959: max_bucket_count() const noexcept 19959: { return _M_h.max_bucket_count(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_type 19959: bucket_size(size_type __n) const 19959: { return _M_h.bucket_size(__n); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_type 19959: bucket(const key_type& __key) const 19959: { return _M_h.bucket(__key); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: local_iterator 19959: begin(size_type __n) 19959: { return _M_h.begin(__n); } 19959: # 1958 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: const_local_iterator 19959: begin(size_type __n) const 19959: { return _M_h.begin(__n); } 19959: 19959: const_local_iterator 19959: cbegin(size_type __n) const 19959: { return _M_h.cbegin(__n); } 19959: # 1973 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: local_iterator 19959: end(size_type __n) 19959: { return _M_h.end(__n); } 19959: # 1984 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: const_local_iterator 19959: end(size_type __n) const 19959: { return _M_h.end(__n); } 19959: 19959: const_local_iterator 19959: cend(size_type __n) const 19959: { return _M_h.cend(__n); } 19959: 19959: 19959: 19959: 19959: 19959: float 19959: load_factor() const noexcept 19959: { return _M_h.load_factor(); } 19959: 19959: 19959: 19959: float 19959: max_load_factor() const noexcept 19959: { return _M_h.max_load_factor(); } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: max_load_factor(float __z) 19959: { _M_h.max_load_factor(__z); } 19959: # 2021 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: void 19959: rehash(size_type __n) 19959: { _M_h.rehash(__n); } 19959: # 2032 "/usr/include/c++/13/bits/unordered_map.h" 3 19959: void 19959: reserve(size_type __n) 19959: { _M_h.reserve(__n); } 19959: 19959: template 19959: friend bool 19959: operator==(const unordered_multimap<_Key1, _Tp1, 19959: _Hash1, _Pred1, _Alloc1>&, 19959: const unordered_multimap<_Key1, _Tp1, 19959: _Hash1, _Pred1, _Alloc1>&); 19959: }; 19959: 19959: 19959: 19959: template>, 19959: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 19959: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 19959: typename = _RequireInputIter<_InputIterator>, 19959: typename = _RequireNotAllocatorOrIntegral<_Hash>, 19959: typename = _RequireNotAllocator<_Pred>, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_multimap(_InputIterator, _InputIterator, 19959: unordered_multimap::size_type = {}, 19959: _Hash = _Hash(), _Pred = _Pred(), 19959: _Allocator = _Allocator()) 19959: -> unordered_multimap<__iter_key_t<_InputIterator>, 19959: __iter_val_t<_InputIterator>, _Hash, _Pred, 19959: _Allocator>; 19959: 19959: template, 19959: typename _Pred = equal_to<_Key>, 19959: typename _Allocator = allocator>, 19959: typename = _RequireNotAllocatorOrIntegral<_Hash>, 19959: typename = _RequireNotAllocator<_Pred>, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_multimap(initializer_list>, 19959: unordered_multimap::size_type = {}, 19959: _Hash = _Hash(), _Pred = _Pred(), 19959: _Allocator = _Allocator()) 19959: -> unordered_multimap<_Key, _Tp, _Hash, _Pred, _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_multimap(_InputIterator, _InputIterator, 19959: unordered_multimap::size_type, _Allocator) 19959: -> unordered_multimap<__iter_key_t<_InputIterator>, 19959: __iter_val_t<_InputIterator>, 19959: hash<__iter_key_t<_InputIterator>>, 19959: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_multimap(_InputIterator, _InputIterator, _Allocator) 19959: -> unordered_multimap<__iter_key_t<_InputIterator>, 19959: __iter_val_t<_InputIterator>, 19959: hash<__iter_key_t<_InputIterator>>, 19959: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 19959: 19959: template, 19959: typename = _RequireNotAllocatorOrIntegral<_Hash>, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_multimap(_InputIterator, _InputIterator, 19959: unordered_multimap::size_type, _Hash, 19959: _Allocator) 19959: -> unordered_multimap<__iter_key_t<_InputIterator>, 19959: __iter_val_t<_InputIterator>, _Hash, 19959: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 19959: 19959: template> 19959: unordered_multimap(initializer_list>, 19959: unordered_multimap::size_type, 19959: _Allocator) 19959: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 19959: 19959: template> 19959: unordered_multimap(initializer_list>, _Allocator) 19959: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_multimap(initializer_list>, 19959: unordered_multimap::size_type, 19959: _Hash, _Allocator) 19959: -> unordered_multimap<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 19959: unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: template 19959: inline void 19959: swap(unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 19959: unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: template 19959: inline bool 19959: operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 19959: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 19959: { return __x._M_h._M_equal(__y._M_h); } 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 19959: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 19959: { return !(__x == __y); } 19959: 19959: 19959: template 19959: inline bool 19959: operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 19959: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 19959: { return __x._M_h._M_equal(__y._M_h); } 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 19959: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 19959: { return !(__x == __y); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Hash_merge_helper< 19959: std::unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>, 19959: _Hash2, _Eq2> 19959: { 19959: private: 19959: template 19959: using unordered_map = std::unordered_map<_Tp...>; 19959: template 19959: using unordered_multimap = std::unordered_multimap<_Tp...>; 19959: 19959: friend unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>; 19959: 19959: static auto& 19959: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 19959: { return __map._M_h; } 19959: 19959: static auto& 19959: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 19959: { return __map._M_h; } 19959: }; 19959: 19959: 19959: template 19959: struct _Hash_merge_helper< 19959: std::unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>, 19959: _Hash2, _Eq2> 19959: { 19959: private: 19959: template 19959: using unordered_map = std::unordered_map<_Tp...>; 19959: template 19959: using unordered_multimap = std::unordered_multimap<_Tp...>; 19959: 19959: friend unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>; 19959: 19959: static auto& 19959: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 19959: { return __map._M_h; } 19959: 19959: static auto& 19959: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 19959: { return __map._M_h; } 19959: }; 19959: 19959: 19959: 19959: } 19959: # 42 "/usr/include/c++/13/unordered_map" 2 3 19959: 19959: # 1 "/usr/include/c++/13/bits/erase_if.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/erase_if.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/erase_if.h" 3 19959: 19959: 19959: 19959: 19959: 19959: namespace std 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace __detail 19959: { 19959: template 19959: typename _Container::size_type 19959: __erase_nodes_if(_Container& __cont, _UnsafeContainer& __ucont, 19959: _Predicate __pred) 19959: { 19959: typename _Container::size_type __num = 0; 19959: for (auto __iter = __ucont.begin(), __last = __ucont.end(); 19959: __iter != __last;) 19959: { 19959: if (__pred(*__iter)) 19959: { 19959: __iter = __cont.erase(__iter); 19959: ++__num; 19959: } 19959: else 19959: ++__iter; 19959: } 19959: return __num; 19959: } 19959: } 19959: 19959: 19959: } 19959: # 44 "/usr/include/c++/13/unordered_map" 2 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: namespace pmr 19959: { 19959: template, 19959: typename _Pred = std::equal_to<_Key>> 19959: using unordered_map 19959: = std::unordered_map<_Key, _Tp, _Hash, _Pred, 19959: polymorphic_allocator>>; 19959: template, 19959: typename _Pred = std::equal_to<_Key>> 19959: using unordered_multimap 19959: = std::unordered_multimap<_Key, _Tp, _Hash, _Pred, 19959: polymorphic_allocator>>; 19959: } 19959: 19959: } 19959: # 64 "/usr/include/c++/13/functional" 2 3 19959: # 1 "/usr/include/c++/13/vector" 1 3 19959: # 58 "/usr/include/c++/13/vector" 3 19959: 19959: # 59 "/usr/include/c++/13/vector" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/stl_vector.h" 1 3 19959: # 78 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: template 19959: struct _Vector_base 19959: { 19959: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 19959: rebind<_Tp>::other _Tp_alloc_type; 19959: typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer 19959: pointer; 19959: 19959: struct _Vector_impl_data 19959: { 19959: pointer _M_start; 19959: pointer _M_finish; 19959: pointer _M_end_of_storage; 19959: 19959: 19959: _Vector_impl_data() noexcept 19959: : _M_start(), _M_finish(), _M_end_of_storage() 19959: { } 19959: 19959: 19959: 19959: _Vector_impl_data(_Vector_impl_data&& __x) noexcept 19959: : _M_start(__x._M_start), _M_finish(__x._M_finish), 19959: _M_end_of_storage(__x._M_end_of_storage) 19959: { __x._M_start = __x._M_finish = __x._M_end_of_storage = pointer(); } 19959: 19959: 19959: 19959: void 19959: _M_copy_data(_Vector_impl_data const& __x) noexcept 19959: { 19959: _M_start = __x._M_start; 19959: _M_finish = __x._M_finish; 19959: _M_end_of_storage = __x._M_end_of_storage; 19959: } 19959: 19959: 19959: void 19959: _M_swap_data(_Vector_impl_data& __x) noexcept 19959: { 19959: 19959: 19959: _Vector_impl_data __tmp; 19959: __tmp._M_copy_data(*this); 19959: _M_copy_data(__x); 19959: __x._M_copy_data(__tmp); 19959: } 19959: }; 19959: 19959: struct _Vector_impl 19959: : public _Tp_alloc_type, public _Vector_impl_data 19959: { 19959: 19959: _Vector_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 19959: 19959: : _Tp_alloc_type() 19959: { } 19959: 19959: 19959: _Vector_impl(_Tp_alloc_type const& __a) noexcept 19959: : _Tp_alloc_type(__a) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: _Vector_impl(_Vector_impl&& __x) noexcept 19959: : _Tp_alloc_type(std::move(__x)), _Vector_impl_data(std::move(__x)) 19959: { } 19959: 19959: 19959: _Vector_impl(_Tp_alloc_type&& __a) noexcept 19959: : _Tp_alloc_type(std::move(__a)) 19959: { } 19959: 19959: 19959: _Vector_impl(_Tp_alloc_type&& __a, _Vector_impl&& __rv) noexcept 19959: : _Tp_alloc_type(std::move(__a)), _Vector_impl_data(std::move(__rv)) 19959: { } 19959: # 291 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: }; 19959: 19959: public: 19959: typedef _Alloc allocator_type; 19959: 19959: 19959: _Tp_alloc_type& 19959: _M_get_Tp_allocator() noexcept 19959: { return this->_M_impl; } 19959: 19959: 19959: const _Tp_alloc_type& 19959: _M_get_Tp_allocator() const noexcept 19959: { return this->_M_impl; } 19959: 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return allocator_type(_M_get_Tp_allocator()); } 19959: 19959: 19959: _Vector_base() = default; 19959: 19959: 19959: 19959: 19959: 19959: _Vector_base(const allocator_type& __a) noexcept 19959: : _M_impl(__a) { } 19959: 19959: 19959: 19959: 19959: _Vector_base(size_t __n) 19959: : _M_impl() 19959: { _M_create_storage(__n); } 19959: 19959: 19959: 19959: _Vector_base(size_t __n, const allocator_type& __a) 19959: : _M_impl(__a) 19959: { _M_create_storage(__n); } 19959: 19959: 19959: _Vector_base(_Vector_base&&) = default; 19959: 19959: 19959: 19959: 19959: _Vector_base(_Tp_alloc_type&& __a) noexcept 19959: : _M_impl(std::move(__a)) { } 19959: 19959: 19959: _Vector_base(_Vector_base&& __x, const allocator_type& __a) 19959: : _M_impl(__a) 19959: { 19959: if (__x.get_allocator() == __a) 19959: this->_M_impl._M_swap_data(__x._M_impl); 19959: else 19959: { 19959: size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; 19959: _M_create_storage(__n); 19959: } 19959: } 19959: 19959: 19959: 19959: _Vector_base(const allocator_type& __a, _Vector_base&& __x) 19959: : _M_impl(_Tp_alloc_type(__a), std::move(__x._M_impl)) 19959: { } 19959: 19959: 19959: 19959: ~_Vector_base() noexcept 19959: { 19959: _M_deallocate(_M_impl._M_start, 19959: _M_impl._M_end_of_storage - _M_impl._M_start); 19959: } 19959: 19959: public: 19959: _Vector_impl _M_impl; 19959: 19959: 19959: pointer 19959: _M_allocate(size_t __n) 19959: { 19959: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 19959: return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer(); 19959: } 19959: 19959: 19959: void 19959: _M_deallocate(pointer __p, size_t __n) 19959: { 19959: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 19959: if (__p) 19959: _Tr::deallocate(_M_impl, __p, __n); 19959: } 19959: 19959: protected: 19959: 19959: void 19959: _M_create_storage(size_t __n) 19959: { 19959: this->_M_impl._M_start = this->_M_allocate(__n); 19959: this->_M_impl._M_finish = this->_M_impl._M_start; 19959: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 19959: } 19959: }; 19959: # 424 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: template > 19959: class vector : protected _Vector_base<_Tp, _Alloc> 19959: { 19959: # 437 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: static_assert(is_same::type, _Tp>::value, 19959: "std::vector must have a non-const, non-volatile value_type"); 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef _Vector_base<_Tp, _Alloc> _Base; 19959: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 19959: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 19959: 19959: public: 19959: typedef _Tp value_type; 19959: typedef typename _Base::pointer pointer; 19959: typedef typename _Alloc_traits::const_pointer const_pointer; 19959: typedef typename _Alloc_traits::reference reference; 19959: typedef typename _Alloc_traits::const_reference const_reference; 19959: typedef __gnu_cxx::__normal_iterator iterator; 19959: typedef __gnu_cxx::__normal_iterator 19959: const_iterator; 19959: typedef std::reverse_iterator const_reverse_iterator; 19959: typedef std::reverse_iterator reverse_iterator; 19959: typedef size_t size_type; 19959: typedef ptrdiff_t difference_type; 19959: typedef _Alloc allocator_type; 19959: 19959: private: 19959: 19959: static constexpr bool 19959: _S_nothrow_relocate(true_type) 19959: { 19959: return noexcept(std::__relocate_a(std::declval(), 19959: std::declval(), 19959: std::declval(), 19959: std::declval<_Tp_alloc_type&>())); 19959: } 19959: 19959: static constexpr bool 19959: _S_nothrow_relocate(false_type) 19959: { return false; } 19959: 19959: static constexpr bool 19959: _S_use_relocate() 19959: { 19959: 19959: 19959: 19959: return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{}); 19959: } 19959: 19959: static pointer 19959: _S_do_relocate(pointer __first, pointer __last, pointer __result, 19959: _Tp_alloc_type& __alloc, true_type) noexcept 19959: { 19959: return std::__relocate_a(__first, __last, __result, __alloc); 19959: } 19959: 19959: static pointer 19959: _S_do_relocate(pointer, pointer, pointer __result, 19959: _Tp_alloc_type&, false_type) noexcept 19959: { return __result; } 19959: 19959: static pointer 19959: _S_relocate(pointer __first, pointer __last, pointer __result, 19959: _Tp_alloc_type& __alloc) noexcept 19959: { 19959: 19959: 19959: return std::__relocate_a(__first, __last, __result, __alloc); 19959: 19959: 19959: 19959: 19959: } 19959: 19959: 19959: protected: 19959: using _Base::_M_allocate; 19959: using _Base::_M_deallocate; 19959: using _Base::_M_impl; 19959: using _Base::_M_get_Tp_allocator; 19959: 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: vector() = default; 19959: # 537 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: explicit 19959: 19959: vector(const allocator_type& __a) noexcept 19959: : _Base(__a) { } 19959: # 551 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: explicit 19959: 19959: vector(size_type __n, const allocator_type& __a = allocator_type()) 19959: : _Base(_S_check_init_len(__n, __a), __a) 19959: { _M_default_initialize(__n); } 19959: # 565 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: vector(size_type __n, const value_type& __value, 19959: const allocator_type& __a = allocator_type()) 19959: : _Base(_S_check_init_len(__n, __a), __a) 19959: { _M_fill_initialize(__n, __value); } 19959: # 597 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: vector(const vector& __x) 19959: : _Base(__x.size(), 19959: _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) 19959: { 19959: this->_M_impl._M_finish = 19959: std::__uninitialized_copy_a(__x.begin(), __x.end(), 19959: this->_M_impl._M_start, 19959: _M_get_Tp_allocator()); 19959: } 19959: # 617 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: vector(vector&&) noexcept = default; 19959: 19959: 19959: 19959: vector(const vector& __x, const __type_identity_t& __a) 19959: : _Base(__x.size(), __a) 19959: { 19959: this->_M_impl._M_finish = 19959: std::__uninitialized_copy_a(__x.begin(), __x.end(), 19959: this->_M_impl._M_start, 19959: _M_get_Tp_allocator()); 19959: } 19959: 19959: private: 19959: 19959: vector(vector&& __rv, const allocator_type& __m, true_type) noexcept 19959: : _Base(__m, std::move(__rv)) 19959: { } 19959: 19959: 19959: vector(vector&& __rv, const allocator_type& __m, false_type) 19959: : _Base(__m) 19959: { 19959: if (__rv.get_allocator() == __m) 19959: this->_M_impl._M_swap_data(__rv._M_impl); 19959: else if (!__rv.empty()) 19959: { 19959: this->_M_create_storage(__rv.size()); 19959: this->_M_impl._M_finish = 19959: std::__uninitialized_move_a(__rv.begin(), __rv.end(), 19959: this->_M_impl._M_start, 19959: _M_get_Tp_allocator()); 19959: __rv.clear(); 19959: } 19959: } 19959: 19959: public: 19959: 19959: 19959: vector(vector&& __rv, const __type_identity_t& __m) 19959: noexcept( noexcept( 19959: vector(std::declval(), std::declval(), 19959: std::declval())) ) 19959: : vector(std::move(__rv), __m, typename _Alloc_traits::is_always_equal{}) 19959: { } 19959: # 674 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: vector(initializer_list __l, 19959: const allocator_type& __a = allocator_type()) 19959: : _Base(__a) 19959: { 19959: _M_range_initialize(__l.begin(), __l.end(), 19959: random_access_iterator_tag()); 19959: } 19959: # 701 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: template> 19959: 19959: vector(_InputIterator __first, _InputIterator __last, 19959: const allocator_type& __a = allocator_type()) 19959: : _Base(__a) 19959: { 19959: _M_range_initialize(__first, __last, 19959: std::__iterator_category(__first)); 19959: } 19959: # 729 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: ~vector() noexcept 19959: { 19959: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: ; 19959: } 19959: # 746 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: vector& 19959: operator=(const vector& __x); 19959: # 761 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: vector& 19959: operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) 19959: { 19959: constexpr bool __move_storage = 19959: _Alloc_traits::_S_propagate_on_move_assign() 19959: || _Alloc_traits::_S_always_equal(); 19959: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 19959: return *this; 19959: } 19959: # 783 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: vector& 19959: operator=(initializer_list __l) 19959: { 19959: this->_M_assign_aux(__l.begin(), __l.end(), 19959: random_access_iterator_tag()); 19959: return *this; 19959: } 19959: # 803 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: void 19959: assign(size_type __n, const value_type& __val) 19959: { _M_fill_assign(__n, __val); } 19959: # 821 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: template> 19959: 19959: void 19959: assign(_InputIterator __first, _InputIterator __last) 19959: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 19959: # 850 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: void 19959: assign(initializer_list __l) 19959: { 19959: this->_M_assign_aux(__l.begin(), __l.end(), 19959: random_access_iterator_tag()); 19959: } 19959: 19959: 19959: 19959: using _Base::get_allocator; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: iterator 19959: begin() noexcept 19959: { return iterator(this->_M_impl._M_start); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: begin() const noexcept 19959: { return const_iterator(this->_M_impl._M_start); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: iterator 19959: end() noexcept 19959: { return iterator(this->_M_impl._M_finish); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: end() const noexcept 19959: { return const_iterator(this->_M_impl._M_finish); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reverse_iterator 19959: rbegin() noexcept 19959: { return reverse_iterator(end()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: rbegin() const noexcept 19959: { return const_reverse_iterator(end()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reverse_iterator 19959: rend() noexcept 19959: { return reverse_iterator(begin()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: rend() const noexcept 19959: { return const_reverse_iterator(begin()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: cbegin() const noexcept 19959: { return const_iterator(this->_M_impl._M_start); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: cend() const noexcept 19959: { return const_iterator(this->_M_impl._M_finish); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: crbegin() const noexcept 19959: { return const_reverse_iterator(end()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: crend() const noexcept 19959: { return const_reverse_iterator(begin()); } 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: size_type 19959: size() const noexcept 19959: { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } 19959: 19959: 19959: [[__nodiscard__]] 19959: size_type 19959: max_size() const noexcept 19959: { return _S_max_size(_M_get_Tp_allocator()); } 19959: # 1008 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: void 19959: resize(size_type __new_size) 19959: { 19959: if (__new_size > size()) 19959: _M_default_append(__new_size - size()); 19959: else if (__new_size < size()) 19959: _M_erase_at_end(this->_M_impl._M_start + __new_size); 19959: } 19959: # 1029 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: void 19959: resize(size_type __new_size, const value_type& __x) 19959: { 19959: if (__new_size > size()) 19959: _M_fill_insert(end(), __new_size - size(), __x); 19959: else if (__new_size < size()) 19959: _M_erase_at_end(this->_M_impl._M_start + __new_size); 19959: } 19959: # 1063 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: void 19959: shrink_to_fit() 19959: { _M_shrink_to_fit(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: size_type 19959: capacity() const noexcept 19959: { return size_type(this->_M_impl._M_end_of_storage 19959: - this->_M_impl._M_start); } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: bool 19959: empty() const noexcept 19959: { return begin() == end(); } 19959: # 1105 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: void 19959: reserve(size_type __n); 19959: # 1121 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: [[__nodiscard__]] 19959: reference 19959: operator[](size_type __n) noexcept 19959: { 19959: ; 19959: return *(this->_M_impl._M_start + __n); 19959: } 19959: # 1140 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: [[__nodiscard__]] 19959: const_reference 19959: operator[](size_type __n) const noexcept 19959: { 19959: ; 19959: return *(this->_M_impl._M_start + __n); 19959: } 19959: 19959: protected: 19959: 19959: 19959: void 19959: _M_range_check(size_type __n) const 19959: { 19959: if (__n >= this->size()) 19959: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 19959: 19959: , 19959: __n, this->size()); 19959: } 19959: 19959: public: 19959: # 1173 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: reference 19959: at(size_type __n) 19959: { 19959: _M_range_check(__n); 19959: return (*this)[__n]; 19959: } 19959: # 1192 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: const_reference 19959: at(size_type __n) const 19959: { 19959: _M_range_check(__n); 19959: return (*this)[__n]; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reference 19959: front() noexcept 19959: { 19959: ; 19959: return *begin(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reference 19959: front() const noexcept 19959: { 19959: ; 19959: return *begin(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reference 19959: back() noexcept 19959: { 19959: ; 19959: return *(end() - 1); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reference 19959: back() const noexcept 19959: { 19959: ; 19959: return *(end() - 1); 19959: } 19959: # 1255 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: [[__nodiscard__]] 19959: _Tp* 19959: data() noexcept 19959: { return _M_data_ptr(this->_M_impl._M_start); } 19959: 19959: [[__nodiscard__]] 19959: const _Tp* 19959: data() const noexcept 19959: { return _M_data_ptr(this->_M_impl._M_start); } 19959: # 1276 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: void 19959: push_back(const value_type& __x) 19959: { 19959: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 19959: { 19959: ; 19959: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 19959: __x); 19959: ++this->_M_impl._M_finish; 19959: ; 19959: } 19959: else 19959: _M_realloc_insert(end(), __x); 19959: } 19959: 19959: 19959: 19959: void 19959: push_back(value_type&& __x) 19959: { emplace_back(std::move(__x)); } 19959: 19959: template 19959: 19959: 19959: reference 19959: 19959: 19959: 19959: emplace_back(_Args&&... __args); 19959: # 1317 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: void 19959: pop_back() noexcept 19959: { 19959: ; 19959: --this->_M_impl._M_finish; 19959: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 19959: ; 19959: } 19959: # 1340 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: template 19959: 19959: iterator 19959: emplace(const_iterator __position, _Args&&... __args) 19959: { return _M_emplace_aux(__position, std::forward<_Args>(__args)...); } 19959: # 1357 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: iterator 19959: insert(const_iterator __position, const value_type& __x); 19959: # 1388 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: iterator 19959: insert(const_iterator __position, value_type&& __x) 19959: { return _M_insert_rval(__position, std::move(__x)); } 19959: # 1406 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: iterator 19959: insert(const_iterator __position, initializer_list __l) 19959: { 19959: auto __offset = __position - cbegin(); 19959: _M_range_insert(begin() + __offset, __l.begin(), __l.end(), 19959: std::random_access_iterator_tag()); 19959: return begin() + __offset; 19959: } 19959: # 1432 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: iterator 19959: insert(const_iterator __position, size_type __n, const value_type& __x) 19959: { 19959: difference_type __offset = __position - cbegin(); 19959: _M_fill_insert(begin() + __offset, __n, __x); 19959: return begin() + __offset; 19959: } 19959: # 1475 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: template> 19959: 19959: iterator 19959: insert(const_iterator __position, _InputIterator __first, 19959: _InputIterator __last) 19959: { 19959: difference_type __offset = __position - cbegin(); 19959: _M_range_insert(begin() + __offset, __first, __last, 19959: std::__iterator_category(__first)); 19959: return begin() + __offset; 19959: } 19959: # 1528 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: iterator 19959: 19959: erase(const_iterator __position) 19959: { return _M_erase(begin() + (__position - cbegin())); } 19959: # 1556 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: iterator 19959: 19959: erase(const_iterator __first, const_iterator __last) 19959: { 19959: const auto __beg = begin(); 19959: const auto __cbeg = cbegin(); 19959: return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); 19959: } 19959: # 1581 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: 19959: void 19959: swap(vector& __x) noexcept 19959: { 19959: 19959: 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) 19959: ; 19959: 19959: this->_M_impl._M_swap_data(__x._M_impl); 19959: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 19959: __x._M_get_Tp_allocator()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: clear() noexcept 19959: { _M_erase_at_end(this->_M_impl._M_start); } 19959: 19959: protected: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: pointer 19959: _M_allocate_and_copy(size_type __n, 19959: _ForwardIterator __first, _ForwardIterator __last) 19959: { 19959: pointer __result = this->_M_allocate(__n); 19959: try 19959: { 19959: std::__uninitialized_copy_a(__first, __last, __result, 19959: _M_get_Tp_allocator()); 19959: return __result; 19959: } 19959: catch(...) 19959: { 19959: _M_deallocate(__result, __n); 19959: throw; 19959: } 19959: } 19959: # 1661 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: template 19959: 19959: void 19959: _M_range_initialize(_InputIterator __first, _InputIterator __last, 19959: std::input_iterator_tag) 19959: { 19959: try { 19959: for (; __first != __last; ++__first) 19959: 19959: emplace_back(*__first); 19959: 19959: 19959: 19959: } catch(...) { 19959: clear(); 19959: throw; 19959: } 19959: } 19959: 19959: 19959: template 19959: 19959: void 19959: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 19959: std::forward_iterator_tag) 19959: { 19959: const size_type __n = std::distance(__first, __last); 19959: this->_M_impl._M_start 19959: = this->_M_allocate(_S_check_init_len(__n, _M_get_Tp_allocator())); 19959: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 19959: this->_M_impl._M_finish = 19959: std::__uninitialized_copy_a(__first, __last, 19959: this->_M_impl._M_start, 19959: _M_get_Tp_allocator()); 19959: } 19959: 19959: 19959: 19959: 19959: void 19959: _M_fill_initialize(size_type __n, const value_type& __value) 19959: { 19959: this->_M_impl._M_finish = 19959: std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, 19959: _M_get_Tp_allocator()); 19959: } 19959: 19959: 19959: 19959: 19959: void 19959: _M_default_initialize(size_type __n) 19959: { 19959: this->_M_impl._M_finish = 19959: std::__uninitialized_default_n_a(this->_M_impl._M_start, __n, 19959: _M_get_Tp_allocator()); 19959: } 19959: # 1727 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: template 19959: 19959: void 19959: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 19959: { _M_fill_assign(__n, __val); } 19959: 19959: 19959: template 19959: 19959: void 19959: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 19959: __false_type) 19959: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 19959: 19959: 19959: template 19959: 19959: void 19959: _M_assign_aux(_InputIterator __first, _InputIterator __last, 19959: std::input_iterator_tag); 19959: 19959: 19959: template 19959: 19959: void 19959: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 19959: std::forward_iterator_tag); 19959: 19959: 19959: 19959: 19959: void 19959: _M_fill_assign(size_type __n, const value_type& __val); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: void 19959: _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, 19959: __true_type) 19959: { _M_fill_insert(__pos, __n, __val); } 19959: 19959: 19959: template 19959: 19959: void 19959: _M_insert_dispatch(iterator __pos, _InputIterator __first, 19959: _InputIterator __last, __false_type) 19959: { 19959: _M_range_insert(__pos, __first, __last, 19959: std::__iterator_category(__first)); 19959: } 19959: 19959: 19959: template 19959: 19959: void 19959: _M_range_insert(iterator __pos, _InputIterator __first, 19959: _InputIterator __last, std::input_iterator_tag); 19959: 19959: 19959: template 19959: 19959: void 19959: _M_range_insert(iterator __pos, _ForwardIterator __first, 19959: _ForwardIterator __last, std::forward_iterator_tag); 19959: 19959: 19959: 19959: 19959: void 19959: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 19959: 19959: 19959: 19959: 19959: void 19959: _M_default_append(size_type __n); 19959: 19959: 19959: bool 19959: _M_shrink_to_fit(); 19959: # 1826 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: struct _Temporary_value 19959: { 19959: template 19959: explicit 19959: _Temporary_value(vector* __vec, _Args&&... __args) : _M_this(__vec) 19959: { 19959: _Alloc_traits::construct(_M_this->_M_impl, _M_ptr(), 19959: std::forward<_Args>(__args)...); 19959: } 19959: 19959: 19959: ~_Temporary_value() 19959: { _Alloc_traits::destroy(_M_this->_M_impl, _M_ptr()); } 19959: 19959: value_type& 19959: _M_val() noexcept { return _M_storage._M_val; } 19959: 19959: private: 19959: _Tp* 19959: _M_ptr() noexcept { return std::__addressof(_M_storage._M_val); } 19959: 19959: union _Storage 19959: { 19959: constexpr _Storage() : _M_byte() { } 19959: ~_Storage() { } 19959: _Storage& operator=(const _Storage&) = delete; 19959: unsigned char _M_byte; 19959: _Tp _M_val; 19959: }; 19959: 19959: vector* _M_this; 19959: _Storage _M_storage; 19959: }; 19959: 19959: 19959: 19959: template 19959: 19959: void 19959: _M_insert_aux(iterator __position, _Arg&& __arg); 19959: 19959: template 19959: 19959: void 19959: _M_realloc_insert(iterator __position, _Args&&... __args); 19959: 19959: 19959: 19959: iterator 19959: _M_insert_rval(const_iterator __position, value_type&& __v); 19959: 19959: 19959: template 19959: 19959: iterator 19959: _M_emplace_aux(const_iterator __position, _Args&&... __args); 19959: 19959: 19959: 19959: iterator 19959: _M_emplace_aux(const_iterator __position, value_type&& __v) 19959: { return _M_insert_rval(__position, std::move(__v)); } 19959: 19959: 19959: 19959: 19959: size_type 19959: _M_check_len(size_type __n, const char* __s) const 19959: { 19959: if (max_size() - size() < __n) 19959: __throw_length_error((__s)); 19959: 19959: const size_type __len = size() + (std::max)(size(), __n); 19959: return (__len < size() || __len > max_size()) ? max_size() : __len; 19959: } 19959: 19959: 19959: static size_type 19959: _S_check_init_len(size_type __n, const allocator_type& __a) 19959: { 19959: if (__n > _S_max_size(_Tp_alloc_type(__a))) 19959: __throw_length_error( 19959: ("cannot create std::vector larger than max_size()")); 19959: return __n; 19959: } 19959: 19959: static size_type 19959: _S_max_size(const _Tp_alloc_type& __a) noexcept 19959: { 19959: 19959: 19959: 19959: const size_t __diffmax 19959: = __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 19959: const size_t __allocmax = _Alloc_traits::max_size(__a); 19959: return (std::min)(__diffmax, __allocmax); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: _M_erase_at_end(pointer __pos) noexcept 19959: { 19959: if (size_type __n = this->_M_impl._M_finish - __pos) 19959: { 19959: std::_Destroy(__pos, this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_finish = __pos; 19959: ; 19959: } 19959: } 19959: 19959: 19959: iterator 19959: _M_erase(iterator __position); 19959: 19959: 19959: iterator 19959: _M_erase(iterator __first, iterator __last); 19959: 19959: 19959: private: 19959: 19959: 19959: 19959: 19959: void 19959: _M_move_assign(vector&& __x, true_type) noexcept 19959: { 19959: vector __tmp(get_allocator()); 19959: this->_M_impl._M_swap_data(__x._M_impl); 19959: __tmp._M_impl._M_swap_data(__x._M_impl); 19959: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 19959: } 19959: 19959: 19959: 19959: 19959: void 19959: _M_move_assign(vector&& __x, false_type) 19959: { 19959: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 19959: _M_move_assign(std::move(__x), true_type()); 19959: else 19959: { 19959: 19959: 19959: this->_M_assign_aux(std::make_move_iterator(__x.begin()), 19959: std::make_move_iterator(__x.end()), 19959: std::random_access_iterator_tag()); 19959: __x.clear(); 19959: } 19959: } 19959: 19959: 19959: template 19959: 19959: _Up* 19959: _M_data_ptr(_Up* __ptr) const noexcept 19959: { return __ptr; } 19959: 19959: 19959: template 19959: 19959: typename std::pointer_traits<_Ptr>::element_type* 19959: _M_data_ptr(_Ptr __ptr) const 19959: { return empty() ? nullptr : std::__to_address(__ptr); } 19959: # 2012 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: }; 19959: 19959: 19959: template::value_type, 19959: typename _Allocator = allocator<_ValT>, 19959: typename = _RequireInputIter<_InputIterator>, 19959: typename = _RequireAllocator<_Allocator>> 19959: vector(_InputIterator, _InputIterator, _Allocator = _Allocator()) 19959: -> vector<_ValT, _Allocator>; 19959: # 2034 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: template 19959: 19959: inline bool 19959: operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 19959: { return (__x.size() == __y.size() 19959: && std::equal(__x.begin(), __x.end(), __y.begin())); } 19959: # 2074 "/usr/include/c++/13/bits/stl_vector.h" 3 19959: template 19959: inline bool 19959: operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 19959: { return std::lexicographical_compare(__x.begin(), __x.end(), 19959: __y.begin(), __y.end()); } 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 19959: { return !(__x == __y); } 19959: 19959: 19959: template 19959: inline bool 19959: operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 19959: { return __y < __x; } 19959: 19959: 19959: template 19959: inline bool 19959: operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 19959: { return !(__y < __x); } 19959: 19959: 19959: template 19959: inline bool 19959: operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 19959: { return !(__x < __y); } 19959: 19959: 19959: 19959: template 19959: 19959: inline void 19959: swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: 19959: 19959: 19959: namespace __detail::__variant 19959: { 19959: template struct _Never_valueless_alt; 19959: 19959: 19959: 19959: template 19959: struct _Never_valueless_alt> 19959: : std::is_nothrow_move_assignable> 19959: { }; 19959: } 19959: 19959: 19959: 19959: } 19959: # 67 "/usr/include/c++/13/vector" 2 3 19959: # 1 "/usr/include/c++/13/bits/stl_bvector.h" 1 3 19959: # 64 "/usr/include/c++/13/bits/stl_bvector.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: typedef unsigned long _Bit_type; 19959: enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; 19959: 19959: __attribute__((__nonnull__)) 19959: 19959: void 19959: __fill_bvector_n(_Bit_type*, size_t, bool) noexcept; 19959: 19959: 19959: 19959: struct _Bit_reference 19959: { 19959: _Bit_type * _M_p; 19959: _Bit_type _M_mask; 19959: 19959: 19959: _Bit_reference(_Bit_type * __x, _Bit_type __y) 19959: : _M_p(__x), _M_mask(__y) { } 19959: 19959: 19959: _Bit_reference() noexcept : _M_p(0), _M_mask(0) { } 19959: 19959: 19959: _Bit_reference(const _Bit_reference&) = default; 19959: 19959: 19959: [[__nodiscard__]] 19959: operator bool() const noexcept 19959: { return !!(*_M_p & _M_mask); } 19959: 19959: 19959: _Bit_reference& 19959: operator=(bool __x) noexcept 19959: { 19959: if (__x) 19959: *_M_p |= _M_mask; 19959: else 19959: *_M_p &= ~_M_mask; 19959: return *this; 19959: } 19959: # 121 "/usr/include/c++/13/bits/stl_bvector.h" 3 19959: 19959: _Bit_reference& 19959: operator=(const _Bit_reference& __x) noexcept 19959: { return *this = bool(__x); } 19959: 19959: [[__nodiscard__]] 19959: bool 19959: operator==(const _Bit_reference& __x) const 19959: { return bool(*this) == bool(__x); } 19959: 19959: [[__nodiscard__]] 19959: bool 19959: operator<(const _Bit_reference& __x) const 19959: { return !bool(*this) && bool(__x); } 19959: 19959: 19959: void 19959: flip() noexcept 19959: { *_M_p ^= _M_mask; } 19959: 19959: 19959: 19959: friend void 19959: swap(_Bit_reference __x, _Bit_reference __y) noexcept 19959: { 19959: bool __tmp = __x; 19959: __x = __y; 19959: __y = __tmp; 19959: } 19959: 19959: 19959: friend void 19959: swap(_Bit_reference __x, bool& __y) noexcept 19959: { 19959: bool __tmp = __x; 19959: __x = __y; 19959: __y = __tmp; 19959: } 19959: 19959: 19959: friend void 19959: swap(bool& __x, _Bit_reference __y) noexcept 19959: { 19959: bool __tmp = __x; 19959: __x = __y; 19959: __y = __tmp; 19959: } 19959: 19959: }; 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: struct _Bit_iterator_base 19959: : public std::iterator 19959: { 19959: _Bit_type * _M_p; 19959: unsigned int _M_offset; 19959: 19959: 19959: _Bit_iterator_base(_Bit_type * __x, unsigned int __y) 19959: : _M_p(__x), _M_offset(__y) { } 19959: 19959: 19959: void 19959: _M_bump_up() 19959: { 19959: if (_M_offset++ == int(_S_word_bit) - 1) 19959: { 19959: _M_offset = 0; 19959: ++_M_p; 19959: } 19959: } 19959: 19959: 19959: void 19959: _M_bump_down() 19959: { 19959: if (_M_offset-- == 0) 19959: { 19959: _M_offset = int(_S_word_bit) - 1; 19959: --_M_p; 19959: } 19959: } 19959: 19959: 19959: void 19959: _M_incr(ptrdiff_t __i) 19959: { 19959: difference_type __n = __i + _M_offset; 19959: _M_p += __n / int(_S_word_bit); 19959: __n = __n % int(_S_word_bit); 19959: if (__n < 0) 19959: { 19959: __n += int(_S_word_bit); 19959: --_M_p; 19959: } 19959: _M_offset = static_cast(__n); 19959: } 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator==(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 19959: { return __x._M_p == __y._M_p && __x._M_offset == __y._M_offset; } 19959: # 237 "/usr/include/c++/13/bits/stl_bvector.h" 3 19959: [[__nodiscard__]] 19959: friend bool 19959: operator<(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 19959: { 19959: return __x._M_p < __y._M_p 19959: || (__x._M_p == __y._M_p && __x._M_offset < __y._M_offset); 19959: } 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator!=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 19959: { return !(__x == __y); } 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator>(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 19959: { return __y < __x; } 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator<=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 19959: { return !(__y < __x); } 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator>=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 19959: { return !(__x < __y); } 19959: 19959: 19959: friend ptrdiff_t 19959: operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 19959: { 19959: return (int(_S_word_bit) * (__x._M_p - __y._M_p) 19959: + __x._M_offset - __y._M_offset); 19959: } 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: struct _Bit_iterator : public _Bit_iterator_base 19959: { 19959: typedef _Bit_reference reference; 19959: 19959: 19959: 19959: typedef _Bit_reference* pointer; 19959: 19959: typedef _Bit_iterator iterator; 19959: 19959: 19959: _Bit_iterator() : _Bit_iterator_base(0, 0) { } 19959: 19959: 19959: _Bit_iterator(_Bit_type * __x, unsigned int __y) 19959: : _Bit_iterator_base(__x, __y) { } 19959: 19959: 19959: iterator 19959: _M_const_cast() const 19959: { return *this; } 19959: 19959: [[__nodiscard__]] 19959: reference 19959: operator*() const 19959: { return reference(_M_p, 1UL << _M_offset); } 19959: 19959: 19959: iterator& 19959: operator++() 19959: { 19959: _M_bump_up(); 19959: return *this; 19959: } 19959: 19959: 19959: iterator 19959: operator++(int) 19959: { 19959: iterator __tmp = *this; 19959: _M_bump_up(); 19959: return __tmp; 19959: } 19959: 19959: 19959: iterator& 19959: operator--() 19959: { 19959: _M_bump_down(); 19959: return *this; 19959: } 19959: 19959: 19959: iterator 19959: operator--(int) 19959: { 19959: iterator __tmp = *this; 19959: _M_bump_down(); 19959: return __tmp; 19959: } 19959: 19959: 19959: iterator& 19959: operator+=(difference_type __i) 19959: { 19959: _M_incr(__i); 19959: return *this; 19959: } 19959: 19959: 19959: iterator& 19959: operator-=(difference_type __i) 19959: { 19959: *this += -__i; 19959: return *this; 19959: } 19959: 19959: [[__nodiscard__]] 19959: reference 19959: operator[](difference_type __i) const 19959: { return *(*this + __i); } 19959: 19959: [[__nodiscard__]] 19959: friend iterator 19959: operator+(const iterator& __x, difference_type __n) 19959: { 19959: iterator __tmp = __x; 19959: __tmp += __n; 19959: return __tmp; 19959: } 19959: 19959: [[__nodiscard__]] 19959: friend iterator 19959: operator+(difference_type __n, const iterator& __x) 19959: { return __x + __n; } 19959: 19959: [[__nodiscard__]] 19959: friend iterator 19959: operator-(const iterator& __x, difference_type __n) 19959: { 19959: iterator __tmp = __x; 19959: __tmp -= __n; 19959: return __tmp; 19959: } 19959: }; 19959: 19959: struct _Bit_const_iterator : public _Bit_iterator_base 19959: { 19959: typedef bool reference; 19959: typedef bool const_reference; 19959: 19959: 19959: 19959: typedef const bool* pointer; 19959: 19959: typedef _Bit_const_iterator const_iterator; 19959: 19959: 19959: _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } 19959: 19959: 19959: _Bit_const_iterator(_Bit_type * __x, unsigned int __y) 19959: : _Bit_iterator_base(__x, __y) { } 19959: 19959: 19959: _Bit_const_iterator(const _Bit_iterator& __x) 19959: : _Bit_iterator_base(__x._M_p, __x._M_offset) { } 19959: 19959: 19959: _Bit_iterator 19959: _M_const_cast() const 19959: { return _Bit_iterator(_M_p, _M_offset); } 19959: 19959: [[__nodiscard__]] 19959: const_reference 19959: operator*() const 19959: { return _Bit_reference(_M_p, 1UL << _M_offset); } 19959: 19959: 19959: const_iterator& 19959: operator++() 19959: { 19959: _M_bump_up(); 19959: return *this; 19959: } 19959: 19959: 19959: const_iterator 19959: operator++(int) 19959: { 19959: const_iterator __tmp = *this; 19959: _M_bump_up(); 19959: return __tmp; 19959: } 19959: 19959: 19959: const_iterator& 19959: operator--() 19959: { 19959: _M_bump_down(); 19959: return *this; 19959: } 19959: 19959: 19959: const_iterator 19959: operator--(int) 19959: { 19959: const_iterator __tmp = *this; 19959: _M_bump_down(); 19959: return __tmp; 19959: } 19959: 19959: 19959: const_iterator& 19959: operator+=(difference_type __i) 19959: { 19959: _M_incr(__i); 19959: return *this; 19959: } 19959: 19959: 19959: const_iterator& 19959: operator-=(difference_type __i) 19959: { 19959: *this += -__i; 19959: return *this; 19959: } 19959: 19959: [[__nodiscard__]] 19959: const_reference 19959: operator[](difference_type __i) const 19959: { return *(*this + __i); } 19959: 19959: [[__nodiscard__]] 19959: friend const_iterator 19959: operator+(const const_iterator& __x, difference_type __n) 19959: { 19959: const_iterator __tmp = __x; 19959: __tmp += __n; 19959: return __tmp; 19959: } 19959: 19959: [[__nodiscard__]] 19959: friend const_iterator 19959: operator-(const const_iterator& __x, difference_type __n) 19959: { 19959: const_iterator __tmp = __x; 19959: __tmp -= __n; 19959: return __tmp; 19959: } 19959: 19959: [[__nodiscard__]] 19959: friend const_iterator 19959: operator+(difference_type __n, const const_iterator& __x) 19959: { return __x + __n; } 19959: }; 19959: 19959: template 19959: struct _Bvector_base 19959: { 19959: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 19959: rebind<_Bit_type>::other _Bit_alloc_type; 19959: typedef typename __gnu_cxx::__alloc_traits<_Bit_alloc_type> 19959: _Bit_alloc_traits; 19959: typedef typename _Bit_alloc_traits::pointer _Bit_pointer; 19959: 19959: struct _Bvector_impl_data 19959: { 19959: 19959: _Bit_iterator _M_start; 19959: # 514 "/usr/include/c++/13/bits/stl_bvector.h" 3 19959: _Bit_iterator _M_finish; 19959: _Bit_pointer _M_end_of_storage; 19959: 19959: 19959: _Bvector_impl_data() noexcept 19959: : _M_start(), _M_finish(), _M_end_of_storage() 19959: { } 19959: 19959: 19959: _Bvector_impl_data(const _Bvector_impl_data&) = default; 19959: 19959: _Bvector_impl_data& 19959: operator=(const _Bvector_impl_data&) = default; 19959: 19959: 19959: _Bvector_impl_data(_Bvector_impl_data&& __x) noexcept 19959: : _Bvector_impl_data(__x) 19959: { __x._M_reset(); } 19959: 19959: 19959: void 19959: _M_move_data(_Bvector_impl_data&& __x) noexcept 19959: { 19959: *this = __x; 19959: __x._M_reset(); 19959: } 19959: 19959: 19959: 19959: void 19959: _M_reset() noexcept 19959: { *this = _Bvector_impl_data(); } 19959: 19959: 19959: void 19959: _M_swap_data(_Bvector_impl_data& __x) noexcept 19959: { 19959: 19959: 19959: std::swap(*this, __x); 19959: } 19959: }; 19959: 19959: struct _Bvector_impl 19959: : public _Bit_alloc_type, public _Bvector_impl_data 19959: { 19959: 19959: _Bvector_impl() noexcept(is_nothrow_default_constructible<_Bit_alloc_type>::value) 19959: 19959: : _Bit_alloc_type() 19959: { } 19959: 19959: 19959: _Bvector_impl(const _Bit_alloc_type& __a) noexcept 19959: : _Bit_alloc_type(__a) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: _Bvector_impl(_Bvector_impl&& __x) noexcept 19959: : _Bit_alloc_type(std::move(__x)), _Bvector_impl_data(std::move(__x)) 19959: { } 19959: 19959: 19959: _Bvector_impl(_Bit_alloc_type&& __a, _Bvector_impl&& __x) noexcept 19959: : _Bit_alloc_type(std::move(__a)), _Bvector_impl_data(std::move(__x)) 19959: { } 19959: 19959: 19959: 19959: _Bit_type* 19959: _M_end_addr() const noexcept 19959: { 19959: if (this->_M_end_of_storage) 19959: return std::__addressof(this->_M_end_of_storage[-1]) + 1; 19959: return 0; 19959: } 19959: }; 19959: 19959: public: 19959: typedef _Alloc allocator_type; 19959: 19959: 19959: _Bit_alloc_type& 19959: _M_get_Bit_allocator() noexcept 19959: { return this->_M_impl; } 19959: 19959: 19959: const _Bit_alloc_type& 19959: _M_get_Bit_allocator() const noexcept 19959: { return this->_M_impl; } 19959: 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return allocator_type(_M_get_Bit_allocator()); } 19959: 19959: 19959: _Bvector_base() = default; 19959: 19959: 19959: 19959: 19959: 19959: _Bvector_base(const allocator_type& __a) 19959: : _M_impl(__a) { } 19959: 19959: 19959: _Bvector_base(_Bvector_base&&) = default; 19959: 19959: 19959: _Bvector_base(_Bvector_base&& __x, const allocator_type& __a) noexcept 19959: : _M_impl(_Bit_alloc_type(__a), std::move(__x._M_impl)) 19959: { } 19959: 19959: 19959: 19959: ~_Bvector_base() 19959: { this->_M_deallocate(); } 19959: 19959: protected: 19959: _Bvector_impl _M_impl; 19959: 19959: 19959: _Bit_pointer 19959: _M_allocate(size_t __n) 19959: { 19959: _Bit_pointer __p = _Bit_alloc_traits::allocate(_M_impl, _S_nword(__n)); 19959: # 652 "/usr/include/c++/13/bits/stl_bvector.h" 3 19959: return __p; 19959: } 19959: 19959: 19959: void 19959: _M_deallocate() 19959: { 19959: if (_M_impl._M_start._M_p) 19959: { 19959: const size_t __n = _M_impl._M_end_addr() - _M_impl._M_start._M_p; 19959: _Bit_alloc_traits::deallocate(_M_impl, 19959: _M_impl._M_end_of_storage - __n, 19959: __n); 19959: _M_impl._M_reset(); 19959: } 19959: } 19959: 19959: 19959: 19959: void 19959: _M_move_data(_Bvector_base&& __x) noexcept 19959: { _M_impl._M_move_data(std::move(__x._M_impl)); } 19959: 19959: 19959: constexpr 19959: static size_t 19959: _S_nword(size_t __n) 19959: { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } 19959: }; 19959: # 703 "/usr/include/c++/13/bits/stl_bvector.h" 3 19959: template 19959: class vector : protected _Bvector_base<_Alloc> 19959: { 19959: typedef _Bvector_base<_Alloc> _Base; 19959: typedef typename _Base::_Bit_pointer _Bit_pointer; 19959: typedef typename _Base::_Bit_alloc_traits _Bit_alloc_traits; 19959: 19959: 19959: friend struct std::hash; 19959: 19959: 19959: public: 19959: typedef bool value_type; 19959: typedef size_t size_type; 19959: typedef ptrdiff_t difference_type; 19959: typedef _Bit_reference reference; 19959: typedef bool const_reference; 19959: typedef _Bit_reference* pointer; 19959: typedef const bool* const_pointer; 19959: typedef _Bit_iterator iterator; 19959: typedef _Bit_const_iterator const_iterator; 19959: typedef std::reverse_iterator const_reverse_iterator; 19959: typedef std::reverse_iterator reverse_iterator; 19959: typedef _Alloc allocator_type; 19959: 19959: 19959: allocator_type 19959: get_allocator() const 19959: { return _Base::get_allocator(); } 19959: 19959: protected: 19959: using _Base::_M_allocate; 19959: using _Base::_M_deallocate; 19959: using _Base::_S_nword; 19959: using _Base::_M_get_Bit_allocator; 19959: 19959: public: 19959: 19959: vector() = default; 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: vector(const allocator_type& __a) 19959: : _Base(__a) { } 19959: 19959: 19959: 19959: explicit 19959: vector(size_type __n, const allocator_type& __a = allocator_type()) 19959: : vector(__n, false, __a) 19959: { } 19959: 19959: 19959: vector(size_type __n, const bool& __value, 19959: const allocator_type& __a = allocator_type()) 19959: 19959: 19959: 19959: 19959: 19959: : _Base(__a) 19959: { 19959: _M_initialize(__n); 19959: _M_initialize_value(__value); 19959: } 19959: 19959: 19959: vector(const vector& __x) 19959: : _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator())) 19959: { 19959: const_iterator __xbegin = __x.begin(), __xend = __x.end(); 19959: _M_initialize(__x.size()); 19959: _M_copy_aligned(__xbegin, __xend, begin()); 19959: } 19959: 19959: 19959: vector(vector&&) = default; 19959: 19959: private: 19959: 19959: vector(vector&& __x, const allocator_type& __a, true_type) noexcept 19959: : _Base(std::move(__x), __a) 19959: { } 19959: 19959: 19959: vector(vector&& __x, const allocator_type& __a, false_type) 19959: : _Base(__a) 19959: { 19959: if (__x.get_allocator() == __a) 19959: this->_M_move_data(std::move(__x)); 19959: else 19959: { 19959: _M_initialize(__x.size()); 19959: _M_copy_aligned(__x.begin(), __x.end(), begin()); 19959: __x.clear(); 19959: } 19959: } 19959: 19959: public: 19959: 19959: vector(vector&& __x, const __type_identity_t& __a) 19959: noexcept(_Bit_alloc_traits::_S_always_equal()) 19959: : vector(std::move(__x), __a, 19959: typename _Bit_alloc_traits::is_always_equal{}) 19959: { } 19959: 19959: 19959: vector(const vector& __x, const __type_identity_t& __a) 19959: : _Base(__a) 19959: { 19959: _M_initialize(__x.size()); 19959: _M_copy_aligned(__x.begin(), __x.end(), begin()); 19959: } 19959: 19959: 19959: vector(initializer_list __l, 19959: const allocator_type& __a = allocator_type()) 19959: : _Base(__a) 19959: { 19959: _M_initialize_range(__l.begin(), __l.end(), 19959: random_access_iterator_tag()); 19959: } 19959: 19959: 19959: 19959: template> 19959: 19959: vector(_InputIterator __first, _InputIterator __last, 19959: const allocator_type& __a = allocator_type()) 19959: : _Base(__a) 19959: { 19959: _M_initialize_range(__first, __last, 19959: std::__iterator_category(__first)); 19959: } 19959: # 853 "/usr/include/c++/13/bits/stl_bvector.h" 3 19959: 19959: ~vector() noexcept { } 19959: 19959: 19959: vector& 19959: operator=(const vector& __x) 19959: { 19959: if (&__x == this) 19959: return *this; 19959: 19959: if (_Bit_alloc_traits::_S_propagate_on_copy_assign()) 19959: { 19959: if (this->_M_get_Bit_allocator() != __x._M_get_Bit_allocator()) 19959: { 19959: this->_M_deallocate(); 19959: std::__alloc_on_copy(_M_get_Bit_allocator(), 19959: __x._M_get_Bit_allocator()); 19959: _M_initialize(__x.size()); 19959: } 19959: else 19959: std::__alloc_on_copy(_M_get_Bit_allocator(), 19959: __x._M_get_Bit_allocator()); 19959: } 19959: 19959: if (__x.size() > capacity()) 19959: { 19959: this->_M_deallocate(); 19959: _M_initialize(__x.size()); 19959: } 19959: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 19959: begin()); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: vector& 19959: operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move()) 19959: { 19959: if (_Bit_alloc_traits::_S_propagate_on_move_assign() 19959: || this->_M_get_Bit_allocator() == __x._M_get_Bit_allocator()) 19959: { 19959: this->_M_deallocate(); 19959: this->_M_move_data(std::move(__x)); 19959: std::__alloc_on_move(_M_get_Bit_allocator(), 19959: __x._M_get_Bit_allocator()); 19959: } 19959: else 19959: { 19959: if (__x.size() > capacity()) 19959: { 19959: this->_M_deallocate(); 19959: _M_initialize(__x.size()); 19959: } 19959: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 19959: begin()); 19959: __x.clear(); 19959: } 19959: return *this; 19959: } 19959: 19959: 19959: vector& 19959: operator=(initializer_list __l) 19959: { 19959: this->assign(__l.begin(), __l.end()); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: assign(size_type __n, const bool& __x) 19959: { _M_fill_assign(__n, __x); } 19959: 19959: 19959: template> 19959: 19959: void 19959: assign(_InputIterator __first, _InputIterator __last) 19959: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 19959: # 951 "/usr/include/c++/13/bits/stl_bvector.h" 3 19959: 19959: void 19959: assign(initializer_list __l) 19959: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 19959: 19959: 19959: [[__nodiscard__]] 19959: iterator 19959: begin() noexcept 19959: { return iterator(this->_M_impl._M_start._M_p, 0); } 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: begin() const noexcept 19959: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 19959: 19959: [[__nodiscard__]] 19959: iterator 19959: end() noexcept 19959: { return this->_M_impl._M_finish; } 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: end() const noexcept 19959: { return this->_M_impl._M_finish; } 19959: 19959: [[__nodiscard__]] 19959: reverse_iterator 19959: rbegin() noexcept 19959: { return reverse_iterator(end()); } 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: rbegin() const noexcept 19959: { return const_reverse_iterator(end()); } 19959: 19959: [[__nodiscard__]] 19959: reverse_iterator 19959: rend() noexcept 19959: { return reverse_iterator(begin()); } 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: rend() const noexcept 19959: { return const_reverse_iterator(begin()); } 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: cbegin() const noexcept 19959: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: cend() const noexcept 19959: { return this->_M_impl._M_finish; } 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: crbegin() const noexcept 19959: { return const_reverse_iterator(end()); } 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: crend() const noexcept 19959: { return const_reverse_iterator(begin()); } 19959: 19959: 19959: [[__nodiscard__]] 19959: size_type 19959: size() const noexcept 19959: { return size_type(end() - begin()); } 19959: 19959: [[__nodiscard__]] 19959: size_type 19959: max_size() const noexcept 19959: { 19959: const size_type __isize = 19959: __gnu_cxx::__numeric_traits::__max 19959: - int(_S_word_bit) + 1; 19959: const size_type __asize 19959: = _Bit_alloc_traits::max_size(_M_get_Bit_allocator()); 19959: return (__asize <= __isize / int(_S_word_bit) 19959: ? __asize * int(_S_word_bit) : __isize); 19959: } 19959: 19959: [[__nodiscard__]] 19959: size_type 19959: capacity() const noexcept 19959: { return size_type(const_iterator(this->_M_impl._M_end_addr(), 0) 19959: - begin()); } 19959: 19959: [[__nodiscard__]] 19959: bool 19959: empty() const noexcept 19959: { return begin() == end(); } 19959: 19959: [[__nodiscard__]] 19959: reference 19959: operator[](size_type __n) 19959: { return begin()[__n]; } 19959: 19959: [[__nodiscard__]] 19959: const_reference 19959: operator[](size_type __n) const 19959: { return begin()[__n]; } 19959: 19959: protected: 19959: 19959: void 19959: _M_range_check(size_type __n) const 19959: { 19959: if (__n >= this->size()) 19959: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 19959: 19959: , 19959: __n, this->size()); 19959: } 19959: 19959: public: 19959: 19959: reference 19959: at(size_type __n) 19959: { 19959: _M_range_check(__n); 19959: return (*this)[__n]; 19959: } 19959: 19959: 19959: const_reference 19959: at(size_type __n) const 19959: { 19959: _M_range_check(__n); 19959: return (*this)[__n]; 19959: } 19959: 19959: 19959: void 19959: reserve(size_type __n) 19959: { 19959: if (__n > max_size()) 19959: __throw_length_error(("vector::reserve")); 19959: if (capacity() < __n) 19959: _M_reallocate(__n); 19959: } 19959: 19959: [[__nodiscard__]] 19959: reference 19959: front() 19959: { return *begin(); } 19959: 19959: [[__nodiscard__]] 19959: const_reference 19959: front() const 19959: { return *begin(); } 19959: 19959: [[__nodiscard__]] 19959: reference 19959: back() 19959: { return *(end() - 1); } 19959: 19959: [[__nodiscard__]] 19959: const_reference 19959: back() const 19959: { return *(end() - 1); } 19959: 19959: 19959: void 19959: push_back(bool __x) 19959: { 19959: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 19959: *this->_M_impl._M_finish++ = __x; 19959: else 19959: _M_insert_aux(end(), __x); 19959: } 19959: 19959: 19959: void 19959: swap(vector& __x) noexcept 19959: { 19959: 19959: 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) 19959: ; 19959: 19959: this->_M_impl._M_swap_data(__x._M_impl); 19959: _Bit_alloc_traits::_S_on_swap(_M_get_Bit_allocator(), 19959: __x._M_get_Bit_allocator()); 19959: } 19959: 19959: 19959: 19959: static void 19959: swap(reference __x, reference __y) noexcept 19959: { 19959: bool __tmp = __x; 19959: __x = __y; 19959: __y = __tmp; 19959: } 19959: 19959: 19959: iterator 19959: 19959: insert(const_iterator __position, const bool& __x) 19959: 19959: 19959: 19959: { 19959: const difference_type __n = __position - begin(); 19959: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr() 19959: && __position == end()) 19959: *this->_M_impl._M_finish++ = __x; 19959: else 19959: _M_insert_aux(__position._M_const_cast(), __x); 19959: return begin() + __n; 19959: } 19959: 19959: 19959: __attribute__ ((__deprecated__ ("use '" "insert(position, false)" "' instead"))) 19959: iterator 19959: insert(const_iterator __position) 19959: { return this->insert(__position._M_const_cast(), false); } 19959: 19959: 19959: 19959: template> 19959: 19959: iterator 19959: insert(const_iterator __position, 19959: _InputIterator __first, _InputIterator __last) 19959: { 19959: difference_type __offset = __position - cbegin(); 19959: _M_insert_range(__position._M_const_cast(), 19959: __first, __last, 19959: std::__iterator_category(__first)); 19959: return begin() + __offset; 19959: } 19959: # 1201 "/usr/include/c++/13/bits/stl_bvector.h" 3 19959: 19959: iterator 19959: insert(const_iterator __position, size_type __n, const bool& __x) 19959: { 19959: difference_type __offset = __position - cbegin(); 19959: _M_fill_insert(__position._M_const_cast(), __n, __x); 19959: return begin() + __offset; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: insert(const_iterator __p, initializer_list __l) 19959: { return this->insert(__p, __l.begin(), __l.end()); } 19959: 19959: 19959: 19959: void 19959: pop_back() 19959: { --this->_M_impl._M_finish; } 19959: 19959: 19959: iterator 19959: 19959: erase(const_iterator __position) 19959: 19959: 19959: 19959: { return _M_erase(__position._M_const_cast()); } 19959: 19959: 19959: iterator 19959: 19959: erase(const_iterator __first, const_iterator __last) 19959: 19959: 19959: 19959: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 19959: 19959: 19959: void 19959: resize(size_type __new_size, bool __x = bool()) 19959: { 19959: if (__new_size < size()) 19959: _M_erase_at_end(begin() + difference_type(__new_size)); 19959: else 19959: insert(end(), __new_size - size(), __x); 19959: } 19959: 19959: 19959: 19959: void 19959: shrink_to_fit() 19959: { _M_shrink_to_fit(); } 19959: 19959: 19959: 19959: void 19959: flip() noexcept 19959: { 19959: _Bit_type * const __end = this->_M_impl._M_end_addr(); 19959: for (_Bit_type * __p = this->_M_impl._M_start._M_p; __p != __end; ++__p) 19959: *__p = ~*__p; 19959: } 19959: 19959: 19959: void 19959: clear() noexcept 19959: { _M_erase_at_end(begin()); } 19959: 19959: 19959: template 19959: 19959: 19959: reference 19959: 19959: 19959: 19959: emplace_back(_Args&&... __args) 19959: { 19959: push_back(bool(__args...)); 19959: 19959: return back(); 19959: 19959: } 19959: 19959: template 19959: 19959: iterator 19959: emplace(const_iterator __pos, _Args&&... __args) 19959: { return insert(__pos, bool(__args...)); } 19959: 19959: 19959: protected: 19959: 19959: 19959: iterator 19959: _M_copy_aligned(const_iterator __first, const_iterator __last, 19959: iterator __result) 19959: { 19959: _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); 19959: return std::copy(const_iterator(__last._M_p, 0), __last, 19959: iterator(__q, 0)); 19959: } 19959: 19959: 19959: void 19959: _M_initialize(size_type __n) 19959: { 19959: if (__n) 19959: { 19959: _Bit_pointer __q = this->_M_allocate(__n); 19959: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 19959: iterator __start = iterator(std::__addressof(*__q), 0); 19959: this->_M_impl._M_start = __start; 19959: this->_M_impl._M_finish = __start + difference_type(__n); 19959: } 19959: } 19959: 19959: 19959: void 19959: _M_initialize_value(bool __x) noexcept 19959: { 19959: if (_Bit_type* __p = this->_M_impl._M_start._M_p) 19959: __fill_bvector_n(__p, this->_M_impl._M_end_addr() - __p, __x); 19959: } 19959: 19959: 19959: void 19959: _M_reallocate(size_type __n); 19959: 19959: 19959: 19959: bool 19959: _M_shrink_to_fit(); 19959: # 1362 "/usr/include/c++/13/bits/stl_bvector.h" 3 19959: template 19959: 19959: void 19959: _M_initialize_range(_InputIterator __first, _InputIterator __last, 19959: std::input_iterator_tag) 19959: { 19959: for (; __first != __last; ++__first) 19959: push_back(*__first); 19959: } 19959: 19959: template 19959: 19959: void 19959: _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, 19959: std::forward_iterator_tag) 19959: { 19959: const size_type __n = std::distance(__first, __last); 19959: _M_initialize(__n); 19959: std::copy(__first, __last, begin()); 19959: } 19959: # 1398 "/usr/include/c++/13/bits/stl_bvector.h" 3 19959: 19959: void 19959: _M_fill_assign(size_t __n, bool __x) 19959: { 19959: if (__n > size()) 19959: { 19959: _M_initialize_value(__x); 19959: insert(end(), __n - size(), __x); 19959: } 19959: else 19959: { 19959: _M_erase_at_end(begin() + __n); 19959: _M_initialize_value(__x); 19959: } 19959: } 19959: 19959: template 19959: 19959: void 19959: _M_assign_aux(_InputIterator __first, _InputIterator __last, 19959: std::input_iterator_tag) 19959: { 19959: iterator __cur = begin(); 19959: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 19959: *__cur = *__first; 19959: if (__first == __last) 19959: _M_erase_at_end(__cur); 19959: else 19959: insert(end(), __first, __last); 19959: } 19959: 19959: template 19959: 19959: void 19959: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 19959: std::forward_iterator_tag) 19959: { 19959: const size_type __len = std::distance(__first, __last); 19959: if (__len < size()) 19959: _M_erase_at_end(std::copy(__first, __last, begin())); 19959: else 19959: { 19959: _ForwardIterator __mid = __first; 19959: std::advance(__mid, size()); 19959: std::copy(__first, __mid, begin()); 19959: insert(end(), __mid, __last); 19959: } 19959: } 19959: # 1465 "/usr/include/c++/13/bits/stl_bvector.h" 3 19959: 19959: void 19959: _M_fill_insert(iterator __position, size_type __n, bool __x); 19959: 19959: template 19959: 19959: void 19959: _M_insert_range(iterator __pos, _InputIterator __first, 19959: _InputIterator __last, std::input_iterator_tag) 19959: { 19959: for (; __first != __last; ++__first) 19959: { 19959: __pos = insert(__pos, *__first); 19959: ++__pos; 19959: } 19959: } 19959: 19959: template 19959: 19959: void 19959: _M_insert_range(iterator __position, _ForwardIterator __first, 19959: _ForwardIterator __last, std::forward_iterator_tag); 19959: 19959: 19959: void 19959: _M_insert_aux(iterator __position, bool __x); 19959: 19959: 19959: size_type 19959: _M_check_len(size_type __n, const char* __s) const 19959: { 19959: if (max_size() - size() < __n) 19959: __throw_length_error((__s)); 19959: 19959: const size_type __len = size() + std::max(size(), __n); 19959: return (__len < size() || __len > max_size()) ? max_size() : __len; 19959: } 19959: 19959: 19959: void 19959: _M_erase_at_end(iterator __pos) 19959: { this->_M_impl._M_finish = __pos; } 19959: 19959: 19959: iterator 19959: _M_erase(iterator __pos); 19959: 19959: 19959: iterator 19959: _M_erase(iterator __first, iterator __last); 19959: 19959: protected: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void data() = delete; 19959: 19959: 19959: 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: inline void 19959: __fill_bvector(_Bit_type* __v, unsigned int __first, unsigned int __last, 19959: bool __x) noexcept 19959: { 19959: const _Bit_type __fmask = ~0ul << __first; 19959: const _Bit_type __lmask = ~0ul >> (_S_word_bit - __last); 19959: const _Bit_type __mask = __fmask & __lmask; 19959: 19959: if (__x) 19959: *__v |= __mask; 19959: else 19959: *__v &= ~__mask; 19959: } 19959: 19959: 19959: __attribute__((__nonnull__)) 19959: 19959: inline void 19959: __fill_bvector_n(_Bit_type* __p, size_t __n, bool __x) noexcept 19959: { 19959: # 1561 "/usr/include/c++/13/bits/stl_bvector.h" 3 19959: __builtin_memset(__p, __x ? ~0 : 0, __n * sizeof(_Bit_type)); 19959: } 19959: 19959: 19959: 19959: inline void 19959: __fill_a1(std::_Bit_iterator __first, 19959: std::_Bit_iterator __last, const bool& __x) 19959: { 19959: if (__first._M_p != __last._M_p) 19959: { 19959: _Bit_type* __first_p = __first._M_p; 19959: if (__first._M_offset != 0) 19959: __fill_bvector(__first_p++, __first._M_offset, _S_word_bit, __x); 19959: 19959: __fill_bvector_n(__first_p, __last._M_p - __first_p, __x); 19959: 19959: if (__last._M_offset != 0) 19959: __fill_bvector(__last._M_p, 0, __last._M_offset, __x); 19959: } 19959: else if (__first._M_offset != __last._M_offset) 19959: __fill_bvector(__first._M_p, __first._M_offset, __last._M_offset, __x); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: struct hash> 19959: : public __hash_base> 19959: { 19959: size_t 19959: operator()(const std::vector&) const noexcept; 19959: }; 19959: 19959: 19959: 19959: } 19959: # 68 "/usr/include/c++/13/vector" 2 3 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/vector.tcc" 1 3 19959: # 59 "/usr/include/c++/13/bits/vector.tcc" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: 19959: void 19959: vector<_Tp, _Alloc>:: 19959: reserve(size_type __n) 19959: { 19959: if (__n > this->max_size()) 19959: __throw_length_error(("vector::reserve")); 19959: if (this->capacity() < __n) 19959: { 19959: const size_type __old_size = size(); 19959: pointer __tmp; 19959: 19959: if constexpr (_S_use_relocate()) 19959: { 19959: __tmp = this->_M_allocate(__n); 19959: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 19959: __tmp, _M_get_Tp_allocator()); 19959: } 19959: else 19959: 19959: { 19959: __tmp = _M_allocate_and_copy(__n, 19959: std::__make_move_if_noexcept_iterator(this->_M_impl._M_start), 19959: std::__make_move_if_noexcept_iterator(this->_M_impl._M_finish)); 19959: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: } 19959: ; 19959: _M_deallocate(this->_M_impl._M_start, 19959: this->_M_impl._M_end_of_storage 19959: - this->_M_impl._M_start); 19959: this->_M_impl._M_start = __tmp; 19959: this->_M_impl._M_finish = __tmp + __old_size; 19959: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 19959: } 19959: } 19959: 19959: 19959: template 19959: template 19959: 19959: 19959: typename vector<_Tp, _Alloc>::reference 19959: 19959: 19959: 19959: vector<_Tp, _Alloc>:: 19959: emplace_back(_Args&&... __args) 19959: { 19959: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 19959: { 19959: ; 19959: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 19959: std::forward<_Args>(__args)...); 19959: ++this->_M_impl._M_finish; 19959: ; 19959: } 19959: else 19959: _M_realloc_insert(end(), std::forward<_Args>(__args)...); 19959: 19959: return back(); 19959: 19959: } 19959: 19959: 19959: template 19959: 19959: typename vector<_Tp, _Alloc>::iterator 19959: vector<_Tp, _Alloc>:: 19959: 19959: insert(const_iterator __position, const value_type& __x) 19959: 19959: 19959: 19959: { 19959: const size_type __n = __position - begin(); 19959: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__position != const_iterator())) __builtin_unreachable(); } while (false); 19959: if (!(__position != const_iterator())) 19959: __builtin_unreachable(); 19959: 19959: if (__position == end()) 19959: { 19959: ; 19959: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 19959: __x); 19959: ++this->_M_impl._M_finish; 19959: ; 19959: } 19959: else 19959: { 19959: 19959: const auto __pos = begin() + (__position - cbegin()); 19959: 19959: 19959: _Temporary_value __x_copy(this, __x); 19959: _M_insert_aux(__pos, std::move(__x_copy._M_val())); 19959: 19959: 19959: 19959: } 19959: } 19959: else 19959: 19959: _M_realloc_insert(begin() + (__position - cbegin()), __x); 19959: 19959: 19959: 19959: 19959: return iterator(this->_M_impl._M_start + __n); 19959: } 19959: 19959: template 19959: 19959: typename vector<_Tp, _Alloc>::iterator 19959: vector<_Tp, _Alloc>:: 19959: _M_erase(iterator __position) 19959: { 19959: if (__position + 1 != end()) 19959: std::move(__position + 1, end(), __position); 19959: --this->_M_impl._M_finish; 19959: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 19959: ; 19959: return __position; 19959: } 19959: 19959: template 19959: 19959: typename vector<_Tp, _Alloc>::iterator 19959: vector<_Tp, _Alloc>:: 19959: _M_erase(iterator __first, iterator __last) 19959: { 19959: if (__first != __last) 19959: { 19959: if (__last != end()) 19959: std::move(__last, end(), __first); 19959: _M_erase_at_end(__first.base() + (end() - __last)); 19959: } 19959: return __first; 19959: } 19959: 19959: template 19959: 19959: vector<_Tp, _Alloc>& 19959: vector<_Tp, _Alloc>:: 19959: operator=(const vector<_Tp, _Alloc>& __x) 19959: { 19959: if (std::__addressof(__x) != this) 19959: { 19959: ; 19959: 19959: if (_Alloc_traits::_S_propagate_on_copy_assign()) 19959: { 19959: if (!_Alloc_traits::_S_always_equal() 19959: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 19959: { 19959: 19959: this->clear(); 19959: _M_deallocate(this->_M_impl._M_start, 19959: this->_M_impl._M_end_of_storage 19959: - this->_M_impl._M_start); 19959: this->_M_impl._M_start = nullptr; 19959: this->_M_impl._M_finish = nullptr; 19959: this->_M_impl._M_end_of_storage = nullptr; 19959: } 19959: std::__alloc_on_copy(_M_get_Tp_allocator(), 19959: __x._M_get_Tp_allocator()); 19959: } 19959: 19959: const size_type __xlen = __x.size(); 19959: if (__xlen > capacity()) 19959: { 19959: pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), 19959: __x.end()); 19959: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: _M_deallocate(this->_M_impl._M_start, 19959: this->_M_impl._M_end_of_storage 19959: - this->_M_impl._M_start); 19959: this->_M_impl._M_start = __tmp; 19959: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; 19959: } 19959: else if (size() >= __xlen) 19959: { 19959: std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), 19959: end(), _M_get_Tp_allocator()); 19959: } 19959: else 19959: { 19959: std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), 19959: this->_M_impl._M_start); 19959: std::__uninitialized_copy_a(__x._M_impl._M_start + size(), 19959: __x._M_impl._M_finish, 19959: this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: } 19959: this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: 19959: void 19959: vector<_Tp, _Alloc>:: 19959: _M_fill_assign(size_t __n, const value_type& __val) 19959: { 19959: if (__n > capacity()) 19959: { 19959: vector __tmp(__n, __val, _M_get_Tp_allocator()); 19959: __tmp._M_impl._M_swap_data(this->_M_impl); 19959: } 19959: else if (__n > size()) 19959: { 19959: std::fill(begin(), end(), __val); 19959: const size_type __add = __n - size(); 19959: ; 19959: this->_M_impl._M_finish = 19959: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 19959: __add, __val, _M_get_Tp_allocator()); 19959: ; 19959: } 19959: else 19959: _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); 19959: } 19959: 19959: template 19959: template 19959: 19959: void 19959: vector<_Tp, _Alloc>:: 19959: _M_assign_aux(_InputIterator __first, _InputIterator __last, 19959: std::input_iterator_tag) 19959: { 19959: pointer __cur(this->_M_impl._M_start); 19959: for (; __first != __last && __cur != this->_M_impl._M_finish; 19959: ++__cur, (void)++__first) 19959: *__cur = *__first; 19959: if (__first == __last) 19959: _M_erase_at_end(__cur); 19959: else 19959: _M_range_insert(end(), __first, __last, 19959: std::__iterator_category(__first)); 19959: } 19959: 19959: template 19959: template 19959: 19959: void 19959: vector<_Tp, _Alloc>:: 19959: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 19959: std::forward_iterator_tag) 19959: { 19959: const size_type __len = std::distance(__first, __last); 19959: 19959: if (__len > capacity()) 19959: { 19959: _S_check_init_len(__len, _M_get_Tp_allocator()); 19959: pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); 19959: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: ; 19959: _M_deallocate(this->_M_impl._M_start, 19959: this->_M_impl._M_end_of_storage 19959: - this->_M_impl._M_start); 19959: this->_M_impl._M_start = __tmp; 19959: this->_M_impl._M_finish = this->_M_impl._M_start + __len; 19959: this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; 19959: } 19959: else if (size() >= __len) 19959: _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); 19959: else 19959: { 19959: _ForwardIterator __mid = __first; 19959: std::advance(__mid, size()); 19959: std::copy(__first, __mid, this->_M_impl._M_start); 19959: const size_type __attribute__((__unused__)) __n = __len - size(); 19959: ; 19959: this->_M_impl._M_finish = 19959: std::__uninitialized_copy_a(__mid, __last, 19959: this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: ; 19959: } 19959: } 19959: 19959: 19959: template 19959: 19959: auto 19959: vector<_Tp, _Alloc>:: 19959: _M_insert_rval(const_iterator __position, value_type&& __v) -> iterator 19959: { 19959: const auto __n = __position - cbegin(); 19959: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 19959: if (__position == cend()) 19959: { 19959: ; 19959: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 19959: std::move(__v)); 19959: ++this->_M_impl._M_finish; 19959: ; 19959: } 19959: else 19959: _M_insert_aux(begin() + __n, std::move(__v)); 19959: else 19959: _M_realloc_insert(begin() + __n, std::move(__v)); 19959: 19959: return iterator(this->_M_impl._M_start + __n); 19959: } 19959: 19959: template 19959: template 19959: 19959: auto 19959: vector<_Tp, _Alloc>:: 19959: _M_emplace_aux(const_iterator __position, _Args&&... __args) 19959: -> iterator 19959: { 19959: const auto __n = __position - cbegin(); 19959: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 19959: if (__position == cend()) 19959: { 19959: ; 19959: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 19959: std::forward<_Args>(__args)...); 19959: ++this->_M_impl._M_finish; 19959: ; 19959: } 19959: else 19959: { 19959: 19959: 19959: 19959: _Temporary_value __tmp(this, std::forward<_Args>(__args)...); 19959: _M_insert_aux(begin() + __n, std::move(__tmp._M_val())); 19959: } 19959: else 19959: _M_realloc_insert(begin() + __n, std::forward<_Args>(__args)...); 19959: 19959: return iterator(this->_M_impl._M_start + __n); 19959: } 19959: 19959: template 19959: template 19959: 19959: void 19959: vector<_Tp, _Alloc>:: 19959: _M_insert_aux(iterator __position, _Arg&& __arg) 19959: 19959: 19959: 19959: 19959: 19959: 19959: { 19959: ; 19959: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 19959: std::move(*(this->_M_impl._M_finish - 1))); 19959: ++this->_M_impl._M_finish; 19959: ; 19959: 19959: 19959: 19959: std::move_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) 19959: 19959: ; 19959: 19959: 19959: 19959: *__position = std::forward<_Arg>(__arg); 19959: 19959: } 19959: 19959: 19959: template 19959: template 19959: 19959: void 19959: vector<_Tp, _Alloc>:: 19959: _M_realloc_insert(iterator __position, _Args&&... __args) 19959: 19959: 19959: 19959: 19959: 19959: 19959: { 19959: const size_type __len = 19959: _M_check_len(size_type(1), "vector::_M_realloc_insert"); 19959: pointer __old_start = this->_M_impl._M_start; 19959: pointer __old_finish = this->_M_impl._M_finish; 19959: const size_type __elems_before = __position - begin(); 19959: pointer __new_start(this->_M_allocate(__len)); 19959: pointer __new_finish(__new_start); 19959: try 19959: { 19959: 19959: 19959: 19959: 19959: 19959: _Alloc_traits::construct(this->_M_impl, 19959: __new_start + __elems_before, 19959: 19959: std::forward<_Args>(__args)...); 19959: 19959: 19959: 19959: __new_finish = pointer(); 19959: 19959: 19959: if constexpr (_S_use_relocate()) 19959: { 19959: __new_finish = _S_relocate(__old_start, __position.base(), 19959: __new_start, _M_get_Tp_allocator()); 19959: 19959: ++__new_finish; 19959: 19959: __new_finish = _S_relocate(__position.base(), __old_finish, 19959: __new_finish, _M_get_Tp_allocator()); 19959: } 19959: else 19959: 19959: { 19959: __new_finish 19959: = std::__uninitialized_move_if_noexcept_a 19959: (__old_start, __position.base(), 19959: __new_start, _M_get_Tp_allocator()); 19959: 19959: ++__new_finish; 19959: 19959: __new_finish 19959: = std::__uninitialized_move_if_noexcept_a 19959: (__position.base(), __old_finish, 19959: __new_finish, _M_get_Tp_allocator()); 19959: } 19959: } 19959: catch(...) 19959: { 19959: if (!__new_finish) 19959: _Alloc_traits::destroy(this->_M_impl, 19959: __new_start + __elems_before); 19959: else 19959: std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator()); 19959: _M_deallocate(__new_start, __len); 19959: throw; 19959: } 19959: 19959: if constexpr (!_S_use_relocate()) 19959: 19959: std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); 19959: ; 19959: _M_deallocate(__old_start, 19959: this->_M_impl._M_end_of_storage - __old_start); 19959: this->_M_impl._M_start = __new_start; 19959: this->_M_impl._M_finish = __new_finish; 19959: this->_M_impl._M_end_of_storage = __new_start + __len; 19959: } 19959: 19959: template 19959: 19959: void 19959: vector<_Tp, _Alloc>:: 19959: _M_fill_insert(iterator __position, size_type __n, const value_type& __x) 19959: { 19959: if (__n != 0) 19959: { 19959: if (size_type(this->_M_impl._M_end_of_storage 19959: - this->_M_impl._M_finish) >= __n) 19959: { 19959: 19959: 19959: 19959: _Temporary_value __tmp(this, __x); 19959: value_type& __x_copy = __tmp._M_val(); 19959: 19959: const size_type __elems_after = end() - __position; 19959: pointer __old_finish(this->_M_impl._M_finish); 19959: if (__elems_after > __n) 19959: { 19959: ; 19959: std::__uninitialized_move_a(__old_finish - __n, 19959: __old_finish, 19959: __old_finish, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_finish += __n; 19959: ; 19959: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 19959: ; 19959: std::fill(__position.base(), __position.base() + __n, 19959: __x_copy); 19959: } 19959: else 19959: { 19959: ; 19959: this->_M_impl._M_finish = 19959: std::__uninitialized_fill_n_a(__old_finish, 19959: __n - __elems_after, 19959: __x_copy, 19959: _M_get_Tp_allocator()); 19959: ; 19959: std::__uninitialized_move_a(__position.base(), __old_finish, 19959: this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_finish += __elems_after; 19959: ; 19959: std::fill(__position.base(), __old_finish, __x_copy); 19959: } 19959: } 19959: else 19959: { 19959: 19959: 19959: pointer __old_start = this->_M_impl._M_start; 19959: pointer __old_finish = this->_M_impl._M_finish; 19959: const pointer __pos = __position.base(); 19959: 19959: const size_type __len = 19959: _M_check_len(__n, "vector::_M_fill_insert"); 19959: const size_type __elems_before = __pos - __old_start; 19959: pointer __new_start(this->_M_allocate(__len)); 19959: pointer __new_finish(__new_start); 19959: try 19959: { 19959: 19959: std::__uninitialized_fill_n_a(__new_start + __elems_before, 19959: __n, __x, 19959: _M_get_Tp_allocator()); 19959: __new_finish = pointer(); 19959: 19959: __new_finish 19959: = std::__uninitialized_move_if_noexcept_a 19959: (__old_start, __pos, __new_start, _M_get_Tp_allocator()); 19959: 19959: __new_finish += __n; 19959: 19959: __new_finish 19959: = std::__uninitialized_move_if_noexcept_a 19959: (__pos, __old_finish, __new_finish, _M_get_Tp_allocator()); 19959: } 19959: catch(...) 19959: { 19959: if (!__new_finish) 19959: std::_Destroy(__new_start + __elems_before, 19959: __new_start + __elems_before + __n, 19959: _M_get_Tp_allocator()); 19959: else 19959: std::_Destroy(__new_start, __new_finish, 19959: _M_get_Tp_allocator()); 19959: _M_deallocate(__new_start, __len); 19959: throw; 19959: } 19959: std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); 19959: ; 19959: _M_deallocate(__old_start, 19959: this->_M_impl._M_end_of_storage - __old_start); 19959: this->_M_impl._M_start = __new_start; 19959: this->_M_impl._M_finish = __new_finish; 19959: this->_M_impl._M_end_of_storage = __new_start + __len; 19959: } 19959: } 19959: } 19959: 19959: 19959: template 19959: 19959: void 19959: vector<_Tp, _Alloc>:: 19959: _M_default_append(size_type __n) 19959: { 19959: if (__n != 0) 19959: { 19959: const size_type __size = size(); 19959: size_type __navail = size_type(this->_M_impl._M_end_of_storage 19959: - this->_M_impl._M_finish); 19959: 19959: if (__size > max_size() || __navail > max_size() - __size) 19959: __builtin_unreachable(); 19959: 19959: if (__navail >= __n) 19959: { 19959: ; 19959: this->_M_impl._M_finish = 19959: std::__uninitialized_default_n_a(this->_M_impl._M_finish, 19959: __n, _M_get_Tp_allocator()); 19959: ; 19959: } 19959: else 19959: { 19959: 19959: 19959: pointer __old_start = this->_M_impl._M_start; 19959: pointer __old_finish = this->_M_impl._M_finish; 19959: 19959: const size_type __len = 19959: _M_check_len(__n, "vector::_M_default_append"); 19959: pointer __new_start(this->_M_allocate(__len)); 19959: if constexpr (_S_use_relocate()) 19959: { 19959: try 19959: { 19959: std::__uninitialized_default_n_a(__new_start + __size, 19959: __n, _M_get_Tp_allocator()); 19959: } 19959: catch(...) 19959: { 19959: _M_deallocate(__new_start, __len); 19959: throw; 19959: } 19959: _S_relocate(__old_start, __old_finish, 19959: __new_start, _M_get_Tp_allocator()); 19959: } 19959: else 19959: { 19959: pointer __destroy_from = pointer(); 19959: try 19959: { 19959: std::__uninitialized_default_n_a(__new_start + __size, 19959: __n, _M_get_Tp_allocator()); 19959: __destroy_from = __new_start + __size; 19959: std::__uninitialized_move_if_noexcept_a( 19959: __old_start, __old_finish, 19959: __new_start, _M_get_Tp_allocator()); 19959: } 19959: catch(...) 19959: { 19959: if (__destroy_from) 19959: std::_Destroy(__destroy_from, __destroy_from + __n, 19959: _M_get_Tp_allocator()); 19959: _M_deallocate(__new_start, __len); 19959: throw; 19959: } 19959: std::_Destroy(__old_start, __old_finish, 19959: _M_get_Tp_allocator()); 19959: } 19959: ; 19959: _M_deallocate(__old_start, 19959: this->_M_impl._M_end_of_storage - __old_start); 19959: this->_M_impl._M_start = __new_start; 19959: this->_M_impl._M_finish = __new_start + __size + __n; 19959: this->_M_impl._M_end_of_storage = __new_start + __len; 19959: } 19959: } 19959: } 19959: 19959: template 19959: 19959: bool 19959: vector<_Tp, _Alloc>:: 19959: _M_shrink_to_fit() 19959: { 19959: if (capacity() == size()) 19959: return false; 19959: ; 19959: return std::__shrink_to_fit_aux::_S_do_it(*this); 19959: } 19959: 19959: 19959: template 19959: template 19959: 19959: void 19959: vector<_Tp, _Alloc>:: 19959: _M_range_insert(iterator __pos, _InputIterator __first, 19959: _InputIterator __last, std::input_iterator_tag) 19959: { 19959: if (__pos == end()) 19959: { 19959: for (; __first != __last; ++__first) 19959: insert(end(), *__first); 19959: } 19959: else if (__first != __last) 19959: { 19959: vector __tmp(__first, __last, _M_get_Tp_allocator()); 19959: insert(__pos, 19959: std::make_move_iterator(__tmp.begin()), 19959: std::make_move_iterator(__tmp.end())); 19959: } 19959: } 19959: 19959: template 19959: template 19959: 19959: void 19959: vector<_Tp, _Alloc>:: 19959: _M_range_insert(iterator __position, _ForwardIterator __first, 19959: _ForwardIterator __last, std::forward_iterator_tag) 19959: { 19959: if (__first != __last) 19959: { 19959: const size_type __n = std::distance(__first, __last); 19959: if (size_type(this->_M_impl._M_end_of_storage 19959: - this->_M_impl._M_finish) >= __n) 19959: { 19959: const size_type __elems_after = end() - __position; 19959: pointer __old_finish(this->_M_impl._M_finish); 19959: if (__elems_after > __n) 19959: { 19959: ; 19959: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 19959: this->_M_impl._M_finish, 19959: this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_finish += __n; 19959: ; 19959: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 19959: ; 19959: std::copy(__first, __last, __position); 19959: } 19959: else 19959: { 19959: _ForwardIterator __mid = __first; 19959: std::advance(__mid, __elems_after); 19959: ; 19959: std::__uninitialized_copy_a(__mid, __last, 19959: this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_finish += __n - __elems_after; 19959: ; 19959: std::__uninitialized_move_a(__position.base(), 19959: __old_finish, 19959: this->_M_impl._M_finish, 19959: _M_get_Tp_allocator()); 19959: this->_M_impl._M_finish += __elems_after; 19959: ; 19959: std::copy(__first, __mid, __position); 19959: } 19959: } 19959: else 19959: { 19959: 19959: 19959: 19959: pointer __old_start = this->_M_impl._M_start; 19959: pointer __old_finish = this->_M_impl._M_finish; 19959: 19959: const size_type __len = 19959: _M_check_len(__n, "vector::_M_range_insert"); 19959: pointer __new_start(this->_M_allocate(__len)); 19959: pointer __new_finish(__new_start); 19959: try 19959: { 19959: __new_finish 19959: = std::__uninitialized_move_if_noexcept_a 19959: (__old_start, __position.base(), 19959: __new_start, _M_get_Tp_allocator()); 19959: __new_finish 19959: = std::__uninitialized_copy_a(__first, __last, 19959: __new_finish, 19959: _M_get_Tp_allocator()); 19959: __new_finish 19959: = std::__uninitialized_move_if_noexcept_a 19959: (__position.base(), __old_finish, 19959: __new_finish, _M_get_Tp_allocator()); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__new_start, __new_finish, 19959: _M_get_Tp_allocator()); 19959: _M_deallocate(__new_start, __len); 19959: throw; 19959: } 19959: std::_Destroy(__old_start, __old_finish, 19959: _M_get_Tp_allocator()); 19959: ; 19959: _M_deallocate(__old_start, 19959: this->_M_impl._M_end_of_storage - __old_start); 19959: this->_M_impl._M_start = __new_start; 19959: this->_M_impl._M_finish = __new_finish; 19959: this->_M_impl._M_end_of_storage = __new_start + __len; 19959: } 19959: } 19959: } 19959: 19959: 19959: 19959: template 19959: 19959: void 19959: vector:: 19959: _M_reallocate(size_type __n) 19959: { 19959: _Bit_pointer __q = this->_M_allocate(__n); 19959: iterator __start(std::__addressof(*__q), 0); 19959: iterator __finish(_M_copy_aligned(begin(), end(), __start)); 19959: this->_M_deallocate(); 19959: this->_M_impl._M_start = __start; 19959: this->_M_impl._M_finish = __finish; 19959: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 19959: } 19959: 19959: template 19959: 19959: void 19959: vector:: 19959: _M_fill_insert(iterator __position, size_type __n, bool __x) 19959: { 19959: if (__n == 0) 19959: return; 19959: if (capacity() - size() >= __n) 19959: { 19959: std::copy_backward(__position, end(), 19959: this->_M_impl._M_finish + difference_type(__n)); 19959: std::fill(__position, __position + difference_type(__n), __x); 19959: this->_M_impl._M_finish += difference_type(__n); 19959: } 19959: else 19959: { 19959: const size_type __len = 19959: _M_check_len(__n, "vector::_M_fill_insert"); 19959: _Bit_pointer __q = this->_M_allocate(__len); 19959: iterator __start(std::__addressof(*__q), 0); 19959: iterator __i = _M_copy_aligned(begin(), __position, __start); 19959: std::fill(__i, __i + difference_type(__n), __x); 19959: iterator __finish = std::copy(__position, end(), 19959: __i + difference_type(__n)); 19959: this->_M_deallocate(); 19959: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 19959: this->_M_impl._M_start = __start; 19959: this->_M_impl._M_finish = __finish; 19959: } 19959: } 19959: 19959: template 19959: template 19959: 19959: void 19959: vector:: 19959: _M_insert_range(iterator __position, _ForwardIterator __first, 19959: _ForwardIterator __last, std::forward_iterator_tag) 19959: { 19959: if (__first != __last) 19959: { 19959: size_type __n = std::distance(__first, __last); 19959: if (capacity() - size() >= __n) 19959: { 19959: std::copy_backward(__position, end(), 19959: this->_M_impl._M_finish 19959: + difference_type(__n)); 19959: std::copy(__first, __last, __position); 19959: this->_M_impl._M_finish += difference_type(__n); 19959: } 19959: else 19959: { 19959: const size_type __len = 19959: _M_check_len(__n, "vector::_M_insert_range"); 19959: const iterator __begin = begin(), __end = end(); 19959: _Bit_pointer __q = this->_M_allocate(__len); 19959: iterator __start(std::__addressof(*__q), 0); 19959: iterator __i = _M_copy_aligned(__begin, __position, __start); 19959: __i = std::copy(__first, __last, __i); 19959: iterator __finish = std::copy(__position, __end, __i); 19959: this->_M_deallocate(); 19959: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 19959: this->_M_impl._M_start = __start; 19959: this->_M_impl._M_finish = __finish; 19959: } 19959: } 19959: } 19959: 19959: template 19959: 19959: void 19959: vector:: 19959: _M_insert_aux(iterator __position, bool __x) 19959: { 19959: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 19959: { 19959: std::copy_backward(__position, this->_M_impl._M_finish, 19959: this->_M_impl._M_finish + 1); 19959: *__position = __x; 19959: ++this->_M_impl._M_finish; 19959: } 19959: else 19959: { 19959: const size_type __len = 19959: _M_check_len(size_type(1), "vector::_M_insert_aux"); 19959: _Bit_pointer __q = this->_M_allocate(__len); 19959: iterator __start(std::__addressof(*__q), 0); 19959: iterator __i = _M_copy_aligned(begin(), __position, __start); 19959: *__i++ = __x; 19959: iterator __finish = std::copy(__position, end(), __i); 19959: this->_M_deallocate(); 19959: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 19959: this->_M_impl._M_start = __start; 19959: this->_M_impl._M_finish = __finish; 19959: } 19959: } 19959: 19959: template 19959: 19959: typename vector::iterator 19959: vector:: 19959: _M_erase(iterator __position) 19959: { 19959: if (__position + 1 != end()) 19959: std::copy(__position + 1, end(), __position); 19959: --this->_M_impl._M_finish; 19959: return __position; 19959: } 19959: 19959: template 19959: 19959: typename vector::iterator 19959: vector:: 19959: _M_erase(iterator __first, iterator __last) 19959: { 19959: if (__first != __last) 19959: _M_erase_at_end(std::copy(__last, end(), __first)); 19959: return __first; 19959: } 19959: 19959: 19959: template 19959: 19959: bool 19959: vector:: 19959: _M_shrink_to_fit() 19959: { 19959: if (capacity() - size() < int(_S_word_bit)) 19959: return false; 19959: try 19959: { 19959: if (size_type __n = size()) 19959: _M_reallocate(__n); 19959: else 19959: { 19959: this->_M_deallocate(); 19959: this->_M_impl._M_reset(); 19959: } 19959: return true; 19959: } 19959: catch(...) 19959: { return false; } 19959: } 19959: 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template 19959: size_t 19959: hash>:: 19959: operator()(const std::vector& __b) const noexcept 19959: { 19959: size_t __hash = 0; 19959: const size_t __words = __b.size() / _S_word_bit; 19959: if (__words) 19959: { 19959: const size_t __clength = __words * sizeof(_Bit_type); 19959: __hash = std::_Hash_impl::hash(__b._M_impl._M_start._M_p, __clength); 19959: } 19959: 19959: const size_t __extrabits = __b.size() % _S_word_bit; 19959: if (__extrabits) 19959: { 19959: _Bit_type __hiword = *__b._M_impl._M_finish._M_p; 19959: __hiword &= ~((~static_cast<_Bit_type>(0)) << __extrabits); 19959: 19959: const size_t __clength 19959: = (__extrabits + 8 - 1) / 8; 19959: if (__words) 19959: __hash = std::_Hash_impl::hash(&__hiword, __clength, __hash); 19959: else 19959: __hash = std::_Hash_impl::hash(&__hiword, __clength); 19959: } 19959: 19959: return __hash; 19959: } 19959: 19959: 19959: } 19959: # 73 "/usr/include/c++/13/vector" 2 3 19959: # 81 "/usr/include/c++/13/vector" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: namespace pmr { 19959: template 19959: using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 65 "/usr/include/c++/13/functional" 2 3 19959: # 1 "/usr/include/c++/13/array" 1 3 19959: # 32 "/usr/include/c++/13/array" 3 19959: 19959: # 33 "/usr/include/c++/13/array" 3 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/compare" 1 3 19959: # 33 "/usr/include/c++/13/compare" 3 19959: 19959: # 34 "/usr/include/c++/13/compare" 3 19959: # 39 "/usr/include/c++/13/array" 2 3 19959: # 48 "/usr/include/c++/13/array" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template 19959: struct __array_traits 19959: { 19959: using _Type = _Tp[_Nm]; 19959: using _Is_swappable = __is_swappable<_Tp>; 19959: using _Is_nothrow_swappable = __is_nothrow_swappable<_Tp>; 19959: }; 19959: 19959: template 19959: struct __array_traits<_Tp, 0> 19959: { 19959: 19959: struct _Type 19959: { 19959: 19959: __attribute__((__always_inline__,__noreturn__)) 19959: _Tp& operator[](size_t) const noexcept { __builtin_trap(); } 19959: 19959: 19959: __attribute__((__always_inline__)) 19959: constexpr explicit operator _Tp*() const noexcept { return nullptr; } 19959: }; 19959: 19959: using _Is_swappable = true_type; 19959: using _Is_nothrow_swappable = true_type; 19959: }; 19959: # 93 "/usr/include/c++/13/array" 3 19959: template 19959: struct array 19959: { 19959: typedef _Tp value_type; 19959: typedef value_type* pointer; 19959: typedef const value_type* const_pointer; 19959: typedef value_type& reference; 19959: typedef const value_type& const_reference; 19959: typedef value_type* iterator; 19959: typedef const value_type* const_iterator; 19959: typedef std::size_t size_type; 19959: typedef std::ptrdiff_t difference_type; 19959: typedef std::reverse_iterator reverse_iterator; 19959: typedef std::reverse_iterator const_reverse_iterator; 19959: 19959: 19959: typename __array_traits<_Tp, _Nm>::_Type _M_elems; 19959: 19959: 19959: 19959: 19959: void 19959: fill(const value_type& __u) 19959: { std::fill_n(begin(), size(), __u); } 19959: 19959: void 19959: swap(array& __other) 19959: noexcept(__array_traits<_Tp, _Nm>::_Is_nothrow_swappable::value) 19959: { std::swap_ranges(begin(), end(), __other.begin()); } 19959: 19959: 19959: [[__gnu__::__const__, __nodiscard__]] 19959: constexpr iterator 19959: begin() noexcept 19959: { return iterator(data()); } 19959: 19959: [[__nodiscard__]] 19959: constexpr const_iterator 19959: begin() const noexcept 19959: { return const_iterator(data()); } 19959: 19959: [[__gnu__::__const__, __nodiscard__]] 19959: constexpr iterator 19959: end() noexcept 19959: { return iterator(data() + _Nm); } 19959: 19959: [[__nodiscard__]] 19959: constexpr const_iterator 19959: end() const noexcept 19959: { return const_iterator(data() + _Nm); } 19959: 19959: [[__gnu__::__const__, __nodiscard__]] 19959: constexpr reverse_iterator 19959: rbegin() noexcept 19959: { return reverse_iterator(end()); } 19959: 19959: [[__nodiscard__]] 19959: constexpr const_reverse_iterator 19959: rbegin() const noexcept 19959: { return const_reverse_iterator(end()); } 19959: 19959: [[__gnu__::__const__, __nodiscard__]] 19959: constexpr reverse_iterator 19959: rend() noexcept 19959: { return reverse_iterator(begin()); } 19959: 19959: [[__nodiscard__]] 19959: constexpr const_reverse_iterator 19959: rend() const noexcept 19959: { return const_reverse_iterator(begin()); } 19959: 19959: [[__nodiscard__]] 19959: constexpr const_iterator 19959: cbegin() const noexcept 19959: { return const_iterator(data()); } 19959: 19959: [[__nodiscard__]] 19959: constexpr const_iterator 19959: cend() const noexcept 19959: { return const_iterator(data() + _Nm); } 19959: 19959: [[__nodiscard__]] 19959: constexpr const_reverse_iterator 19959: crbegin() const noexcept 19959: { return const_reverse_iterator(end()); } 19959: 19959: [[__nodiscard__]] 19959: constexpr const_reverse_iterator 19959: crend() const noexcept 19959: { return const_reverse_iterator(begin()); } 19959: 19959: 19959: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 19959: constexpr size_type 19959: size() const noexcept { return _Nm; } 19959: 19959: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 19959: constexpr size_type 19959: max_size() const noexcept { return _Nm; } 19959: 19959: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 19959: constexpr bool 19959: empty() const noexcept { return size() == 0; } 19959: 19959: 19959: [[__nodiscard__]] 19959: constexpr reference 19959: operator[](size_type __n) noexcept 19959: { 19959: ; 19959: return _M_elems[__n]; 19959: } 19959: 19959: [[__nodiscard__]] 19959: constexpr const_reference 19959: operator[](size_type __n) const noexcept 19959: { 19959: 19959: ; 19959: 19959: return _M_elems[__n]; 19959: } 19959: 19959: constexpr reference 19959: at(size_type __n) 19959: { 19959: if (__n >= _Nm) 19959: std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 19959: , 19959: __n, _Nm); 19959: return _M_elems[__n]; 19959: } 19959: 19959: constexpr const_reference 19959: at(size_type __n) const 19959: { 19959: 19959: 19959: return __n < _Nm ? _M_elems[__n] 19959: : (std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 19959: , 19959: __n, _Nm), 19959: _M_elems[__n]); 19959: } 19959: 19959: [[__nodiscard__]] 19959: constexpr reference 19959: front() noexcept 19959: { 19959: ; 19959: return _M_elems[(size_type)0]; 19959: } 19959: 19959: [[__nodiscard__]] 19959: constexpr const_reference 19959: front() const noexcept 19959: { 19959: 19959: ; 19959: 19959: return _M_elems[(size_type)0]; 19959: } 19959: 19959: [[__nodiscard__]] 19959: constexpr reference 19959: back() noexcept 19959: { 19959: ; 19959: return _M_elems[_Nm - 1]; 19959: } 19959: 19959: [[__nodiscard__]] 19959: constexpr const_reference 19959: back() const noexcept 19959: { 19959: 19959: ; 19959: 19959: return _M_elems[_Nm - 1]; 19959: } 19959: 19959: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 19959: constexpr pointer 19959: data() noexcept 19959: { return static_cast(_M_elems); } 19959: 19959: [[__nodiscard__]] 19959: constexpr const_pointer 19959: data() const noexcept 19959: { return static_cast(_M_elems); } 19959: }; 19959: 19959: 19959: template 19959: array(_Tp, _Up...) 19959: -> array && ...), _Tp>, 19959: 1 + sizeof...(_Up)>; 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: 19959: inline bool 19959: operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 19959: { return std::equal(__one.begin(), __one.end(), __two.begin()); } 19959: # 322 "/usr/include/c++/13/array" 3 19959: template 19959: [[__nodiscard__]] 19959: 19959: inline bool 19959: operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 19959: { return !(__one == __two); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: 19959: inline bool 19959: operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 19959: { 19959: return std::lexicographical_compare(__a.begin(), __a.end(), 19959: __b.begin(), __b.end()); 19959: } 19959: 19959: template 19959: [[__nodiscard__]] 19959: 19959: inline bool 19959: operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 19959: { return __two < __one; } 19959: 19959: template 19959: [[__nodiscard__]] 19959: 19959: inline bool 19959: operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 19959: { return !(__one > __two); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: 19959: inline bool 19959: operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 19959: { return !(__one < __two); } 19959: 19959: 19959: 19959: template 19959: 19959: inline 19959: 19959: 19959: __enable_if_t<__array_traits<_Tp, _Nm>::_Is_swappable::value> 19959: 19959: 19959: 19959: swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two) 19959: noexcept(noexcept(__one.swap(__two))) 19959: { __one.swap(__two); } 19959: 19959: 19959: template 19959: __enable_if_t::_Is_swappable::value> 19959: swap(array<_Tp, _Nm>&, array<_Tp, _Nm>&) = delete; 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: constexpr _Tp& 19959: get(array<_Tp, _Nm>& __arr) noexcept 19959: { 19959: static_assert(_Int < _Nm, "array index is within bounds"); 19959: return __arr._M_elems[_Int]; 19959: } 19959: 19959: template 19959: [[__nodiscard__]] 19959: constexpr _Tp&& 19959: get(array<_Tp, _Nm>&& __arr) noexcept 19959: { 19959: static_assert(_Int < _Nm, "array index is within bounds"); 19959: return std::move(std::get<_Int>(__arr)); 19959: } 19959: 19959: template 19959: [[__nodiscard__]] 19959: constexpr const _Tp& 19959: get(const array<_Tp, _Nm>& __arr) noexcept 19959: { 19959: static_assert(_Int < _Nm, "array index is within bounds"); 19959: return __arr._M_elems[_Int]; 19959: } 19959: 19959: template 19959: [[__nodiscard__]] 19959: constexpr const _Tp&& 19959: get(const array<_Tp, _Nm>&& __arr) noexcept 19959: { 19959: static_assert(_Int < _Nm, "array index is within bounds"); 19959: return std::move(std::get<_Int>(__arr)); 19959: } 19959: # 460 "/usr/include/c++/13/array" 3 19959: template 19959: struct tuple_size> 19959: : public integral_constant { }; 19959: 19959: 19959: template 19959: struct tuple_element<_Ind, array<_Tp, _Nm>> 19959: { 19959: static_assert(_Ind < _Nm, "array index is in range"); 19959: using type = _Tp; 19959: }; 19959: 19959: 19959: template 19959: inline constexpr size_t tuple_size_v> = _Nm; 19959: 19959: template 19959: inline constexpr size_t tuple_size_v> = _Nm; 19959: 19959: 19959: template 19959: struct __is_tuple_like_impl> : true_type 19959: { }; 19959: 19959: 19959: } 19959: # 66 "/usr/include/c++/13/functional" 2 3 19959: 19959: # 1 "/usr/include/c++/13/bits/stl_algo.h" 1 3 19959: # 59 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: # 1 "/usr/include/c++/13/bits/algorithmfwd.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/algorithmfwd.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/algorithmfwd.h" 3 19959: # 42 "/usr/include/c++/13/bits/algorithmfwd.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 199 "/usr/include/c++/13/bits/algorithmfwd.h" 3 19959: template 19959: 19959: bool 19959: all_of(_IIter, _IIter, _Predicate); 19959: 19959: template 19959: 19959: bool 19959: any_of(_IIter, _IIter, _Predicate); 19959: 19959: 19959: template 19959: 19959: bool 19959: binary_search(_FIter, _FIter, const _Tp&); 19959: 19959: template 19959: 19959: bool 19959: binary_search(_FIter, _FIter, const _Tp&, _Compare); 19959: 19959: 19959: template 19959: constexpr 19959: const _Tp& 19959: clamp(const _Tp&, const _Tp&, const _Tp&); 19959: 19959: template 19959: constexpr 19959: const _Tp& 19959: clamp(const _Tp&, const _Tp&, const _Tp&, _Compare); 19959: 19959: 19959: template 19959: 19959: _OIter 19959: copy(_IIter, _IIter, _OIter); 19959: 19959: template 19959: 19959: _BIter2 19959: copy_backward(_BIter1, _BIter1, _BIter2); 19959: 19959: 19959: template 19959: 19959: _OIter 19959: copy_if(_IIter, _IIter, _OIter, _Predicate); 19959: 19959: template 19959: 19959: _OIter 19959: copy_n(_IIter, _Size, _OIter); 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: pair<_FIter, _FIter> 19959: equal_range(_FIter, _FIter, const _Tp&); 19959: 19959: template 19959: 19959: pair<_FIter, _FIter> 19959: equal_range(_FIter, _FIter, const _Tp&, _Compare); 19959: 19959: template 19959: 19959: void 19959: fill(_FIter, _FIter, const _Tp&); 19959: 19959: template 19959: 19959: _OIter 19959: fill_n(_OIter, _Size, const _Tp&); 19959: 19959: 19959: 19959: template 19959: 19959: _FIter1 19959: find_end(_FIter1, _FIter1, _FIter2, _FIter2); 19959: 19959: template 19959: 19959: _FIter1 19959: find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _IIter 19959: find_if_not(_IIter, _IIter, _Predicate); 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: bool 19959: includes(_IIter1, _IIter1, _IIter2, _IIter2); 19959: 19959: template 19959: 19959: bool 19959: includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 19959: 19959: template 19959: void 19959: inplace_merge(_BIter, _BIter, _BIter); 19959: 19959: template 19959: void 19959: inplace_merge(_BIter, _BIter, _BIter, _Compare); 19959: 19959: 19959: template 19959: 19959: bool 19959: is_heap(_RAIter, _RAIter); 19959: 19959: template 19959: 19959: bool 19959: is_heap(_RAIter, _RAIter, _Compare); 19959: 19959: template 19959: 19959: _RAIter 19959: is_heap_until(_RAIter, _RAIter); 19959: 19959: template 19959: 19959: _RAIter 19959: is_heap_until(_RAIter, _RAIter, _Compare); 19959: 19959: template 19959: 19959: bool 19959: is_partitioned(_IIter, _IIter, _Predicate); 19959: 19959: template 19959: 19959: bool 19959: is_permutation(_FIter1, _FIter1, _FIter2); 19959: 19959: template 19959: 19959: bool 19959: is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate); 19959: 19959: template 19959: 19959: bool 19959: is_sorted(_FIter, _FIter); 19959: 19959: template 19959: 19959: bool 19959: is_sorted(_FIter, _FIter, _Compare); 19959: 19959: template 19959: 19959: _FIter 19959: is_sorted_until(_FIter, _FIter); 19959: 19959: template 19959: 19959: _FIter 19959: is_sorted_until(_FIter, _FIter, _Compare); 19959: 19959: 19959: template 19959: 19959: void 19959: iter_swap(_FIter1, _FIter2); 19959: 19959: template 19959: 19959: _FIter 19959: lower_bound(_FIter, _FIter, const _Tp&); 19959: 19959: template 19959: 19959: _FIter 19959: lower_bound(_FIter, _FIter, const _Tp&, _Compare); 19959: 19959: template 19959: 19959: void 19959: make_heap(_RAIter, _RAIter); 19959: 19959: template 19959: 19959: void 19959: make_heap(_RAIter, _RAIter, _Compare); 19959: 19959: template 19959: constexpr 19959: const _Tp& 19959: max(const _Tp&, const _Tp&); 19959: 19959: template 19959: constexpr 19959: const _Tp& 19959: max(const _Tp&, const _Tp&, _Compare); 19959: 19959: 19959: 19959: 19959: template 19959: constexpr 19959: const _Tp& 19959: min(const _Tp&, const _Tp&); 19959: 19959: template 19959: constexpr 19959: const _Tp& 19959: min(const _Tp&, const _Tp&, _Compare); 19959: 19959: 19959: 19959: 19959: template 19959: constexpr 19959: pair 19959: minmax(const _Tp&, const _Tp&); 19959: 19959: template 19959: constexpr 19959: pair 19959: minmax(const _Tp&, const _Tp&, _Compare); 19959: 19959: template 19959: constexpr 19959: pair<_FIter, _FIter> 19959: minmax_element(_FIter, _FIter); 19959: 19959: template 19959: constexpr 19959: pair<_FIter, _FIter> 19959: minmax_element(_FIter, _FIter, _Compare); 19959: 19959: template 19959: constexpr 19959: _Tp 19959: min(initializer_list<_Tp>); 19959: 19959: template 19959: constexpr 19959: _Tp 19959: min(initializer_list<_Tp>, _Compare); 19959: 19959: template 19959: constexpr 19959: _Tp 19959: max(initializer_list<_Tp>); 19959: 19959: template 19959: constexpr 19959: _Tp 19959: max(initializer_list<_Tp>, _Compare); 19959: 19959: template 19959: constexpr 19959: pair<_Tp, _Tp> 19959: minmax(initializer_list<_Tp>); 19959: 19959: template 19959: constexpr 19959: pair<_Tp, _Tp> 19959: minmax(initializer_list<_Tp>, _Compare); 19959: 19959: 19959: 19959: 19959: template 19959: 19959: bool 19959: next_permutation(_BIter, _BIter); 19959: 19959: template 19959: 19959: bool 19959: next_permutation(_BIter, _BIter, _Compare); 19959: 19959: 19959: template 19959: 19959: bool 19959: none_of(_IIter, _IIter, _Predicate); 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _RAIter 19959: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); 19959: 19959: template 19959: 19959: _RAIter 19959: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); 19959: 19959: 19959: 19959: 19959: template 19959: 19959: pair<_OIter1, _OIter2> 19959: partition_copy(_IIter, _IIter, _OIter1, _OIter2, _Predicate); 19959: 19959: template 19959: 19959: _FIter 19959: partition_point(_FIter, _FIter, _Predicate); 19959: 19959: 19959: template 19959: 19959: void 19959: pop_heap(_RAIter, _RAIter); 19959: 19959: template 19959: 19959: void 19959: pop_heap(_RAIter, _RAIter, _Compare); 19959: 19959: template 19959: 19959: bool 19959: prev_permutation(_BIter, _BIter); 19959: 19959: template 19959: 19959: bool 19959: prev_permutation(_BIter, _BIter, _Compare); 19959: 19959: template 19959: 19959: void 19959: push_heap(_RAIter, _RAIter); 19959: 19959: template 19959: 19959: void 19959: push_heap(_RAIter, _RAIter, _Compare); 19959: 19959: 19959: 19959: template 19959: 19959: _FIter 19959: remove(_FIter, _FIter, const _Tp&); 19959: 19959: template 19959: 19959: _FIter 19959: remove_if(_FIter, _FIter, _Predicate); 19959: 19959: template 19959: 19959: _OIter 19959: remove_copy(_IIter, _IIter, _OIter, const _Tp&); 19959: 19959: template 19959: 19959: _OIter 19959: remove_copy_if(_IIter, _IIter, _OIter, _Predicate); 19959: 19959: 19959: 19959: template 19959: 19959: _OIter 19959: replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); 19959: 19959: template 19959: 19959: _OIter 19959: replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); 19959: 19959: 19959: 19959: template 19959: 19959: void 19959: reverse(_BIter, _BIter); 19959: 19959: template 19959: 19959: _OIter 19959: reverse_copy(_BIter, _BIter, _OIter); 19959: 19959: inline namespace _V2 { 19959: 19959: template 19959: 19959: _FIter 19959: rotate(_FIter, _FIter, _FIter); 19959: 19959: } 19959: 19959: template 19959: 19959: _OIter 19959: rotate_copy(_FIter, _FIter, _FIter, _OIter); 19959: # 626 "/usr/include/c++/13/bits/algorithmfwd.h" 3 19959: template 19959: void 19959: shuffle(_RAIter, _RAIter, _UGenerator&&); 19959: 19959: 19959: template 19959: 19959: void 19959: sort_heap(_RAIter, _RAIter); 19959: 19959: template 19959: 19959: void 19959: sort_heap(_RAIter, _RAIter, _Compare); 19959: 19959: 19959: template 19959: _BIter 19959: stable_partition(_BIter, _BIter, _Predicate); 19959: # 661 "/usr/include/c++/13/bits/algorithmfwd.h" 3 19959: template 19959: 19959: _FIter2 19959: swap_ranges(_FIter1, _FIter1, _FIter2); 19959: 19959: 19959: 19959: template 19959: 19959: _FIter 19959: unique(_FIter, _FIter); 19959: 19959: template 19959: 19959: _FIter 19959: unique(_FIter, _FIter, _BinaryPredicate); 19959: 19959: 19959: 19959: template 19959: 19959: _FIter 19959: upper_bound(_FIter, _FIter, const _Tp&); 19959: 19959: template 19959: 19959: _FIter 19959: upper_bound(_FIter, _FIter, const _Tp&, _Compare); 19959: 19959: 19959: 19959: template 19959: 19959: _FIter 19959: adjacent_find(_FIter, _FIter); 19959: 19959: template 19959: 19959: _FIter 19959: adjacent_find(_FIter, _FIter, _BinaryPredicate); 19959: 19959: template 19959: 19959: typename iterator_traits<_IIter>::difference_type 19959: count(_IIter, _IIter, const _Tp&); 19959: 19959: template 19959: 19959: typename iterator_traits<_IIter>::difference_type 19959: count_if(_IIter, _IIter, _Predicate); 19959: 19959: template 19959: 19959: bool 19959: equal(_IIter1, _IIter1, _IIter2); 19959: 19959: template 19959: 19959: bool 19959: equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 19959: 19959: template 19959: 19959: _IIter 19959: find(_IIter, _IIter, const _Tp&); 19959: 19959: template 19959: 19959: _FIter1 19959: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); 19959: 19959: template 19959: 19959: _FIter1 19959: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 19959: 19959: template 19959: 19959: _IIter 19959: find_if(_IIter, _IIter, _Predicate); 19959: 19959: template 19959: 19959: _Funct 19959: for_each(_IIter, _IIter, _Funct); 19959: 19959: template 19959: 19959: void 19959: generate(_FIter, _FIter, _Generator); 19959: 19959: template 19959: 19959: _OIter 19959: generate_n(_OIter, _Size, _Generator); 19959: 19959: template 19959: 19959: bool 19959: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); 19959: 19959: template 19959: 19959: bool 19959: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 19959: 19959: template 19959: constexpr 19959: _FIter 19959: max_element(_FIter, _FIter); 19959: 19959: template 19959: constexpr 19959: _FIter 19959: max_element(_FIter, _FIter, _Compare); 19959: 19959: template 19959: 19959: _OIter 19959: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 19959: 19959: template 19959: 19959: _OIter 19959: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 19959: 19959: template 19959: constexpr 19959: _FIter 19959: min_element(_FIter, _FIter); 19959: 19959: template 19959: constexpr 19959: _FIter 19959: min_element(_FIter, _FIter, _Compare); 19959: 19959: template 19959: 19959: pair<_IIter1, _IIter2> 19959: mismatch(_IIter1, _IIter1, _IIter2); 19959: 19959: template 19959: 19959: pair<_IIter1, _IIter2> 19959: mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 19959: 19959: template 19959: 19959: void 19959: nth_element(_RAIter, _RAIter, _RAIter); 19959: 19959: template 19959: 19959: void 19959: nth_element(_RAIter, _RAIter, _RAIter, _Compare); 19959: 19959: template 19959: 19959: void 19959: partial_sort(_RAIter, _RAIter, _RAIter); 19959: 19959: template 19959: 19959: void 19959: partial_sort(_RAIter, _RAIter, _RAIter, _Compare); 19959: 19959: template 19959: 19959: _BIter 19959: partition(_BIter, _BIter, _Predicate); 19959: 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 19959: void 19959: random_shuffle(_RAIter, _RAIter); 19959: 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 19959: void 19959: random_shuffle(_RAIter, _RAIter, 19959: 19959: _Generator&&); 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: void 19959: replace(_FIter, _FIter, const _Tp&, const _Tp&); 19959: 19959: template 19959: 19959: void 19959: replace_if(_FIter, _FIter, _Predicate, const _Tp&); 19959: 19959: template 19959: 19959: _FIter1 19959: search(_FIter1, _FIter1, _FIter2, _FIter2); 19959: 19959: template 19959: 19959: _FIter1 19959: search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 19959: 19959: template 19959: 19959: _FIter 19959: search_n(_FIter, _FIter, _Size, const _Tp&); 19959: 19959: template 19959: 19959: _FIter 19959: search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); 19959: 19959: template 19959: 19959: _OIter 19959: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 19959: 19959: template 19959: 19959: _OIter 19959: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 19959: 19959: template 19959: 19959: _OIter 19959: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 19959: 19959: template 19959: 19959: _OIter 19959: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 19959: 19959: template 19959: 19959: _OIter 19959: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 19959: 19959: template 19959: 19959: _OIter 19959: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, 19959: _OIter, _Compare); 19959: 19959: template 19959: 19959: _OIter 19959: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 19959: 19959: template 19959: 19959: _OIter 19959: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 19959: 19959: template 19959: 19959: void 19959: sort(_RAIter, _RAIter); 19959: 19959: template 19959: 19959: void 19959: sort(_RAIter, _RAIter, _Compare); 19959: 19959: template 19959: void 19959: stable_sort(_RAIter, _RAIter); 19959: 19959: template 19959: void 19959: stable_sort(_RAIter, _RAIter, _Compare); 19959: 19959: template 19959: 19959: _OIter 19959: transform(_IIter, _IIter, _OIter, _UnaryOperation); 19959: 19959: template 19959: 19959: _OIter 19959: transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); 19959: 19959: template 19959: 19959: _OIter 19959: unique_copy(_IIter, _IIter, _OIter); 19959: 19959: template 19959: 19959: _OIter 19959: unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); 19959: 19959: 19959: 19959: } 19959: # 60 "/usr/include/c++/13/bits/stl_algo.h" 2 3 19959: 19959: # 1 "/usr/include/c++/13/bits/stl_heap.h" 1 3 19959: # 63 "/usr/include/c++/13/bits/stl_heap.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _Distance 19959: __is_heap_until(_RandomAccessIterator __first, _Distance __n, 19959: _Compare& __comp) 19959: { 19959: _Distance __parent = 0; 19959: for (_Distance __child = 1; __child < __n; ++__child) 19959: { 19959: if (__comp(__first + __parent, __first + __child)) 19959: return __child; 19959: if ((__child & 1) == 0) 19959: ++__parent; 19959: } 19959: return __n; 19959: } 19959: 19959: 19959: 19959: template 19959: 19959: inline bool 19959: __is_heap(_RandomAccessIterator __first, _Distance __n) 19959: { 19959: __gnu_cxx::__ops::_Iter_less_iter __comp; 19959: return std::__is_heap_until(__first, __n, __comp) == __n; 19959: } 19959: 19959: template 19959: 19959: inline bool 19959: __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) 19959: { 19959: typedef __decltype(__comp) _Cmp; 19959: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 19959: return std::__is_heap_until(__first, __n, __cmp) == __n; 19959: } 19959: 19959: template 19959: 19959: inline bool 19959: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 19959: { return std::__is_heap(__first, std::distance(__first, __last)); } 19959: 19959: template 19959: 19959: inline bool 19959: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _Compare __comp) 19959: { 19959: return std::__is_heap(__first, std::move(__comp), 19959: std::distance(__first, __last)); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: 19959: void 19959: __push_heap(_RandomAccessIterator __first, 19959: _Distance __holeIndex, _Distance __topIndex, _Tp __value, 19959: _Compare& __comp) 19959: { 19959: _Distance __parent = (__holeIndex - 1) / 2; 19959: while (__holeIndex > __topIndex && __comp(__first + __parent, __value)) 19959: { 19959: *(__first + __holeIndex) = std::move(*(__first + __parent)); 19959: __holeIndex = __parent; 19959: __parent = (__holeIndex - 1) / 2; 19959: } 19959: *(__first + __holeIndex) = std::move(__value); 19959: } 19959: # 159 "/usr/include/c++/13/bits/stl_heap.h" 3 19959: template 19959: 19959: inline void 19959: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 19959: { 19959: typedef typename iterator_traits<_RandomAccessIterator>::value_type 19959: _ValueType; 19959: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 19959: _DistanceType; 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: 19959: __gnu_cxx::__ops::_Iter_less_val __comp; 19959: _ValueType __value = std::move(*(__last - 1)); 19959: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 19959: _DistanceType(0), std::move(__value), __comp); 19959: } 19959: # 195 "/usr/include/c++/13/bits/stl_heap.h" 3 19959: template 19959: 19959: inline void 19959: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _Compare __comp) 19959: { 19959: typedef typename iterator_traits<_RandomAccessIterator>::value_type 19959: _ValueType; 19959: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 19959: _DistanceType; 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: 19959: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 19959: __cmp(std::move(__comp)); 19959: _ValueType __value = std::move(*(__last - 1)); 19959: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 19959: _DistanceType(0), std::move(__value), __cmp); 19959: } 19959: 19959: template 19959: 19959: void 19959: __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, 19959: _Distance __len, _Tp __value, _Compare __comp) 19959: { 19959: const _Distance __topIndex = __holeIndex; 19959: _Distance __secondChild = __holeIndex; 19959: while (__secondChild < (__len - 1) / 2) 19959: { 19959: __secondChild = 2 * (__secondChild + 1); 19959: if (__comp(__first + __secondChild, 19959: __first + (__secondChild - 1))) 19959: __secondChild--; 19959: *(__first + __holeIndex) = std::move(*(__first + __secondChild)); 19959: __holeIndex = __secondChild; 19959: } 19959: if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) 19959: { 19959: __secondChild = 2 * (__secondChild + 1); 19959: *(__first + __holeIndex) = std::move(*(__first + (__secondChild - 1))) 19959: ; 19959: __holeIndex = __secondChild - 1; 19959: } 19959: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 19959: __cmp(std::move(__comp)); 19959: std::__push_heap(__first, __holeIndex, __topIndex, 19959: std::move(__value), __cmp); 19959: } 19959: 19959: template 19959: 19959: inline void 19959: __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _RandomAccessIterator __result, _Compare& __comp) 19959: { 19959: typedef typename iterator_traits<_RandomAccessIterator>::value_type 19959: _ValueType; 19959: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 19959: _DistanceType; 19959: 19959: _ValueType __value = std::move(*__result); 19959: *__result = std::move(*__first); 19959: std::__adjust_heap(__first, _DistanceType(0), 19959: _DistanceType(__last - __first), 19959: std::move(__value), __comp); 19959: } 19959: # 280 "/usr/include/c++/13/bits/stl_heap.h" 3 19959: template 19959: 19959: inline void 19959: pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: if (__last - __first > 1) 19959: { 19959: --__last; 19959: __gnu_cxx::__ops::_Iter_less_iter __comp; 19959: std::__pop_heap(__first, __last, __last, __comp); 19959: } 19959: } 19959: # 314 "/usr/include/c++/13/bits/stl_heap.h" 3 19959: template 19959: 19959: inline void 19959: pop_heap(_RandomAccessIterator __first, 19959: _RandomAccessIterator __last, _Compare __comp) 19959: { 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: if (__last - __first > 1) 19959: { 19959: typedef __decltype(__comp) _Cmp; 19959: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 19959: --__last; 19959: std::__pop_heap(__first, __last, __last, __cmp); 19959: } 19959: } 19959: 19959: template 19959: 19959: void 19959: __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _Compare& __comp) 19959: { 19959: typedef typename iterator_traits<_RandomAccessIterator>::value_type 19959: _ValueType; 19959: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 19959: _DistanceType; 19959: 19959: if (__last - __first < 2) 19959: return; 19959: 19959: const _DistanceType __len = __last - __first; 19959: _DistanceType __parent = (__len - 2) / 2; 19959: while (true) 19959: { 19959: _ValueType __value = std::move(*(__first + __parent)); 19959: std::__adjust_heap(__first, __parent, __len, std::move(__value), 19959: __comp); 19959: if (__parent == 0) 19959: return; 19959: __parent--; 19959: } 19959: } 19959: # 372 "/usr/include/c++/13/bits/stl_heap.h" 3 19959: template 19959: 19959: inline void 19959: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: __gnu_cxx::__ops::_Iter_less_iter __comp; 19959: std::__make_heap(__first, __last, __comp); 19959: } 19959: # 399 "/usr/include/c++/13/bits/stl_heap.h" 3 19959: template 19959: 19959: inline void 19959: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: typedef __decltype(__comp) _Cmp; 19959: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 19959: std::__make_heap(__first, __last, __cmp); 19959: } 19959: 19959: template 19959: 19959: void 19959: __sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _Compare& __comp) 19959: { 19959: while (__last - __first > 1) 19959: { 19959: --__last; 19959: std::__pop_heap(__first, __last, __last, __comp); 19959: } 19959: } 19959: # 437 "/usr/include/c++/13/bits/stl_heap.h" 3 19959: template 19959: 19959: inline void 19959: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: 19959: __gnu_cxx::__ops::_Iter_less_iter __comp; 19959: std::__sort_heap(__first, __last, __comp); 19959: } 19959: # 465 "/usr/include/c++/13/bits/stl_heap.h" 3 19959: template 19959: 19959: inline void 19959: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: 19959: typedef __decltype(__comp) _Cmp; 19959: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 19959: std::__sort_heap(__first, __last, __cmp); 19959: } 19959: # 494 "/usr/include/c++/13/bits/stl_heap.h" 3 19959: template 19959: 19959: inline _RandomAccessIterator 19959: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: __gnu_cxx::__ops::_Iter_less_iter __comp; 19959: return __first + 19959: std::__is_heap_until(__first, std::distance(__first, __last), __comp); 19959: } 19959: # 523 "/usr/include/c++/13/bits/stl_heap.h" 3 19959: template 19959: 19959: inline _RandomAccessIterator 19959: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: typedef __decltype(__comp) _Cmp; 19959: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 19959: return __first 19959: + std::__is_heap_until(__first, std::distance(__first, __last), __cmp); 19959: } 19959: # 548 "/usr/include/c++/13/bits/stl_heap.h" 3 19959: template 19959: 19959: inline bool 19959: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 19959: { return std::is_heap_until(__first, __last) == __last; } 19959: # 562 "/usr/include/c++/13/bits/stl_heap.h" 3 19959: template 19959: 19959: inline bool 19959: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: const auto __dist = std::distance(__first, __last); 19959: typedef __decltype(__comp) _Cmp; 19959: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 19959: return std::__is_heap_until(__first, __dist, __cmp) == __dist; 19959: } 19959: 19959: 19959: 19959: } 19959: # 62 "/usr/include/c++/13/bits/stl_algo.h" 2 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/uniform_int_dist.h" 1 3 19959: # 41 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 64 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 19959: namespace __detail 19959: { 19959: 19959: 19959: 19959: template 19959: constexpr bool 19959: _Power_of_2(_Tp __x) 19959: { 19959: return ((__x - 1) & __x) == 0; 19959: } 19959: } 19959: # 87 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 19959: template 19959: class uniform_int_distribution 19959: { 19959: static_assert(std::is_integral<_IntType>::value, 19959: "template argument must be an integral type"); 19959: 19959: public: 19959: 19959: typedef _IntType result_type; 19959: 19959: struct param_type 19959: { 19959: typedef uniform_int_distribution<_IntType> distribution_type; 19959: 19959: param_type() : param_type(0) { } 19959: 19959: explicit 19959: param_type(_IntType __a, 19959: _IntType __b = __gnu_cxx::__int_traits<_IntType>::__max) 19959: : _M_a(__a), _M_b(__b) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: result_type 19959: a() const 19959: { return _M_a; } 19959: 19959: result_type 19959: b() const 19959: { return _M_b; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: private: 19959: _IntType _M_a; 19959: _IntType _M_b; 19959: }; 19959: 19959: public: 19959: 19959: 19959: 19959: uniform_int_distribution() : uniform_int_distribution(0) { } 19959: 19959: 19959: 19959: 19959: explicit 19959: uniform_int_distribution(_IntType __a, 19959: _IntType __b 19959: = __gnu_cxx::__int_traits<_IntType>::__max) 19959: : _M_param(__a, __b) 19959: { } 19959: 19959: explicit 19959: uniform_int_distribution(const param_type& __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: reset() { } 19959: 19959: result_type 19959: a() const 19959: { return _M_param.a(); } 19959: 19959: result_type 19959: b() const 19959: { return _M_param.b(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return this->a(); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return this->b(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomBitGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomBitGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomBitGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomBitGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomBitGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const uniform_int_distribution& __d1, 19959: const uniform_int_distribution& __d2) 19959: { return __d1._M_param == __d2._M_param; } 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomBitGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: 19959: 19959: 19959: 19959: template 19959: static _Up 19959: _S_nd(_Urbg& __g, _Up __range) 19959: { 19959: using _Up_traits = __gnu_cxx::__int_traits<_Up>; 19959: using _Wp_traits = __gnu_cxx::__int_traits<_Wp>; 19959: static_assert(!_Up_traits::__is_signed, "U must be unsigned"); 19959: static_assert(!_Wp_traits::__is_signed, "W must be unsigned"); 19959: static_assert(_Wp_traits::__digits == (2 * _Up_traits::__digits), 19959: "W must be twice as wide as U"); 19959: 19959: 19959: 19959: 19959: _Wp __product = _Wp(__g()) * _Wp(__range); 19959: _Up __low = _Up(__product); 19959: if (__low < __range) 19959: { 19959: _Up __threshold = -__range % __range; 19959: while (__low < __threshold) 19959: { 19959: __product = _Wp(__g()) * _Wp(__range); 19959: __low = _Up(__product); 19959: } 19959: } 19959: return __product >> _Up_traits::__digits; 19959: } 19959: }; 19959: 19959: template 19959: template 19959: typename uniform_int_distribution<_IntType>::result_type 19959: uniform_int_distribution<_IntType>:: 19959: operator()(_UniformRandomBitGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 19959: typedef typename make_unsigned::type __utype; 19959: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 19959: 19959: constexpr __uctype __urngmin = _UniformRandomBitGenerator::min(); 19959: constexpr __uctype __urngmax = _UniformRandomBitGenerator::max(); 19959: static_assert( __urngmin < __urngmax, 19959: "Uniform random bit generator must define min() < max()"); 19959: constexpr __uctype __urngrange = __urngmax - __urngmin; 19959: 19959: const __uctype __urange 19959: = __uctype(__param.b()) - __uctype(__param.a()); 19959: 19959: __uctype __ret; 19959: if (__urngrange > __urange) 19959: { 19959: 19959: 19959: const __uctype __uerange = __urange + 1; 19959: # 323 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 19959: if constexpr (__urngrange == 0xffffffffU) 19959: { 19959: 19959: 19959: unsigned int __u32erange = __uerange; 19959: __ret = _S_nd(__urng, __u32erange); 19959: } 19959: else 19959: 19959: { 19959: 19959: const __uctype __scaling = __urngrange / __uerange; 19959: const __uctype __past = __uerange * __scaling; 19959: do 19959: __ret = __uctype(__urng()) - __urngmin; 19959: while (__ret >= __past); 19959: __ret /= __scaling; 19959: } 19959: } 19959: else if (__urngrange < __urange) 19959: { 19959: # 359 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 19959: __uctype __tmp; 19959: do 19959: { 19959: const __uctype __uerngrange = __urngrange + 1; 19959: __tmp = (__uerngrange * operator() 19959: (__urng, param_type(0, __urange / __uerngrange))); 19959: __ret = __tmp + (__uctype(__urng()) - __urngmin); 19959: } 19959: while (__ret > __urange || __ret < __tmp); 19959: } 19959: else 19959: __ret = __uctype(__urng()) - __urngmin; 19959: 19959: return __ret + __param.a(); 19959: } 19959: 19959: 19959: template 19959: template 19959: void 19959: uniform_int_distribution<_IntType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomBitGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: 19959: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 19959: typedef typename make_unsigned::type __utype; 19959: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 19959: 19959: static_assert( __urng.min() < __urng.max(), 19959: "Uniform random bit generator must define min() < max()"); 19959: 19959: constexpr __uctype __urngmin = __urng.min(); 19959: constexpr __uctype __urngmax = __urng.max(); 19959: constexpr __uctype __urngrange = __urngmax - __urngmin; 19959: const __uctype __urange 19959: = __uctype(__param.b()) - __uctype(__param.a()); 19959: 19959: __uctype __ret; 19959: 19959: if (__urngrange > __urange) 19959: { 19959: if (__detail::_Power_of_2(__urngrange + 1) 19959: && __detail::_Power_of_2(__urange + 1)) 19959: { 19959: while (__f != __t) 19959: { 19959: __ret = __uctype(__urng()) - __urngmin; 19959: *__f++ = (__ret & __urange) + __param.a(); 19959: } 19959: } 19959: else 19959: { 19959: 19959: const __uctype __uerange = __urange + 1; 19959: const __uctype __scaling = __urngrange / __uerange; 19959: const __uctype __past = __uerange * __scaling; 19959: while (__f != __t) 19959: { 19959: do 19959: __ret = __uctype(__urng()) - __urngmin; 19959: while (__ret >= __past); 19959: *__f++ = __ret / __scaling + __param.a(); 19959: } 19959: } 19959: } 19959: else if (__urngrange < __urange) 19959: { 19959: # 444 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 19959: __uctype __tmp; 19959: while (__f != __t) 19959: { 19959: do 19959: { 19959: constexpr __uctype __uerngrange = __urngrange + 1; 19959: __tmp = (__uerngrange * operator() 19959: (__urng, param_type(0, __urange / __uerngrange))); 19959: __ret = __tmp + (__uctype(__urng()) - __urngmin); 19959: } 19959: while (__ret > __urange || __ret < __tmp); 19959: *__f++ = __ret; 19959: } 19959: } 19959: else 19959: while (__f != __t) 19959: *__f++ = __uctype(__urng()) - __urngmin + __param.a(); 19959: } 19959: 19959: 19959: 19959: 19959: } 19959: # 66 "/usr/include/c++/13/bits/stl_algo.h" 2 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/stl_tempbuf.h" 1 3 19959: # 65 "/usr/include/c++/13/bits/stl_tempbuf.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: namespace __detail 19959: { 19959: template 19959: inline void 19959: __return_temporary_buffer(_Tp* __p, 19959: size_t __len __attribute__((__unused__))) 19959: { 19959: 19959: ::operator delete(__p, __len * sizeof(_Tp)); 19959: 19959: 19959: 19959: } 19959: } 19959: # 101 "/usr/include/c++/13/bits/stl_tempbuf.h" 3 19959: template 19959: [[__deprecated__]] 19959: pair<_Tp*, ptrdiff_t> 19959: get_temporary_buffer(ptrdiff_t __len) noexcept 19959: { 19959: const ptrdiff_t __max = 19959: __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 19959: if (__len > __max) 19959: __len = __max; 19959: 19959: while (__len > 0) 19959: { 19959: _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), 19959: std::nothrow)); 19959: if (__tmp != 0) 19959: return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); 19959: __len = __len == 1 ? 0 : ((__len + 1) / 2); 19959: } 19959: return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); 19959: } 19959: # 129 "/usr/include/c++/13/bits/stl_tempbuf.h" 3 19959: template 19959: inline void 19959: return_temporary_buffer(_Tp* __p) 19959: { ::operator delete(__p); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: class _Temporary_buffer 19959: { 19959: 19959: 19959: 19959: public: 19959: typedef _Tp value_type; 19959: typedef value_type* pointer; 19959: typedef pointer iterator; 19959: typedef ptrdiff_t size_type; 19959: 19959: protected: 19959: size_type _M_original_len; 19959: size_type _M_len; 19959: pointer _M_buffer; 19959: 19959: public: 19959: 19959: size_type 19959: size() const 19959: { return _M_len; } 19959: 19959: 19959: size_type 19959: requested_size() const 19959: { return _M_original_len; } 19959: 19959: 19959: iterator 19959: begin() 19959: { return _M_buffer; } 19959: 19959: 19959: iterator 19959: end() 19959: { return _M_buffer + _M_len; } 19959: 19959: 19959: 19959: 19959: 19959: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len); 19959: 19959: ~_Temporary_buffer() 19959: { 19959: std::_Destroy(_M_buffer, _M_buffer + _M_len); 19959: std::__detail::__return_temporary_buffer(_M_buffer, _M_len); 19959: } 19959: 19959: private: 19959: 19959: _Temporary_buffer(const _Temporary_buffer&); 19959: 19959: void 19959: operator=(const _Temporary_buffer&); 19959: }; 19959: 19959: 19959: template 19959: struct __uninitialized_construct_buf_dispatch 19959: { 19959: template 19959: static void 19959: __ucr(_Pointer __first, _Pointer __last, 19959: _ForwardIterator __seed) 19959: { 19959: if (__first == __last) 19959: return; 19959: 19959: _Pointer __cur = __first; 19959: try 19959: { 19959: std::_Construct(std::__addressof(*__first), 19959: std::move(*__seed)); 19959: _Pointer __prev = __cur; 19959: ++__cur; 19959: for(; __cur != __last; ++__cur, ++__prev) 19959: std::_Construct(std::__addressof(*__cur), 19959: std::move(*__prev)); 19959: *__seed = std::move(*__prev); 19959: } 19959: catch(...) 19959: { 19959: std::_Destroy(__first, __cur); 19959: throw; 19959: } 19959: } 19959: }; 19959: 19959: template<> 19959: struct __uninitialized_construct_buf_dispatch 19959: { 19959: template 19959: static void 19959: __ucr(_Pointer, _Pointer, _ForwardIterator) { } 19959: }; 19959: # 247 "/usr/include/c++/13/bits/stl_tempbuf.h" 3 19959: template 19959: inline void 19959: __uninitialized_construct_buf(_Pointer __first, _Pointer __last, 19959: _ForwardIterator __seed) 19959: { 19959: typedef typename std::iterator_traits<_Pointer>::value_type 19959: _ValueType; 19959: 19959: std::__uninitialized_construct_buf_dispatch< 19959: __has_trivial_constructor(_ValueType)>:: 19959: __ucr(__first, __last, __seed); 19959: } 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: template 19959: _Temporary_buffer<_ForwardIterator, _Tp>:: 19959: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len) 19959: : _M_original_len(__original_len), _M_len(0), _M_buffer(0) 19959: { 19959: std::pair __p( 19959: std::get_temporary_buffer(_M_original_len)); 19959: 19959: if (__p.first) 19959: { 19959: try 19959: { 19959: std::__uninitialized_construct_buf(__p.first, __p.first + __p.second, 19959: __seed); 19959: _M_buffer = __p.first; 19959: _M_len = __p.second; 19959: } 19959: catch(...) 19959: { 19959: std::__detail::__return_temporary_buffer(__p.first, __p.second); 19959: throw; 19959: } 19959: } 19959: } 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: } 19959: # 70 "/usr/include/c++/13/bits/stl_algo.h" 2 3 19959: 19959: # 1 "/usr/include/c++/13/cstdlib" 1 3 19959: # 39 "/usr/include/c++/13/cstdlib" 3 19959: 19959: # 40 "/usr/include/c++/13/cstdlib" 3 19959: # 79 "/usr/include/c++/13/cstdlib" 3 19959: # 1 "/usr/include/stdlib.h" 1 3 4 19959: # 26 "/usr/include/stdlib.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 19959: # 27 "/usr/include/stdlib.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 33 "/usr/include/stdlib.h" 2 3 4 19959: 19959: extern "C" { 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitflags.h" 1 3 4 19959: # 41 "/usr/include/stdlib.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitstatus.h" 1 3 4 19959: # 42 "/usr/include/stdlib.h" 2 3 4 19959: # 56 "/usr/include/stdlib.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 19959: # 52 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 19959: # 25 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 2 3 4 19959: # 53 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 2 3 4 19959: # 57 "/usr/include/stdlib.h" 2 3 4 19959: 19959: 19959: typedef struct 19959: { 19959: int quot; 19959: int rem; 19959: } div_t; 19959: 19959: 19959: 19959: typedef struct 19959: { 19959: long int quot; 19959: long int rem; 19959: } ldiv_t; 19959: 19959: 19959: 19959: 19959: 19959: __extension__ typedef struct 19959: { 19959: long long int quot; 19959: long long int rem; 19959: } lldiv_t; 19959: # 98 "/usr/include/stdlib.h" 3 4 19959: extern size_t __ctype_get_mb_cur_max (void) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: extern double atof (const char *__nptr) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: extern int atoi (const char *__nptr) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: extern long int atol (const char *__nptr) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: __extension__ extern long long int atoll (const char *__nptr) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: extern double strtod (const char *__restrict __nptr, 19959: char **__restrict __endptr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern float strtof (const char *__restrict __nptr, 19959: char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: extern long double strtold (const char *__restrict __nptr, 19959: char **__restrict __endptr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: # 141 "/usr/include/stdlib.h" 3 4 19959: extern _Float32 strtof32 (const char *__restrict __nptr, 19959: char **__restrict __endptr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern _Float64 strtof64 (const char *__restrict __nptr, 19959: char **__restrict __endptr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: # 159 "/usr/include/stdlib.h" 3 4 19959: extern _Float32x strtof32x (const char *__restrict __nptr, 19959: char **__restrict __endptr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: # 177 "/usr/include/stdlib.h" 3 4 19959: extern long int strtol (const char *__restrict __nptr, 19959: char **__restrict __endptr, int __base) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: extern unsigned long int strtoul (const char *__restrict __nptr, 19959: char **__restrict __endptr, int __base) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: __extension__ 19959: extern long long int strtoq (const char *__restrict __nptr, 19959: char **__restrict __endptr, int __base) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: __extension__ 19959: extern unsigned long long int strtouq (const char *__restrict __nptr, 19959: char **__restrict __endptr, int __base) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: __extension__ 19959: extern long long int strtoll (const char *__restrict __nptr, 19959: char **__restrict __endptr, int __base) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: __extension__ 19959: extern unsigned long long int strtoull (const char *__restrict __nptr, 19959: char **__restrict __endptr, int __base) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: extern int strfromd (char *__dest, size_t __size, const char *__format, 19959: double __f) 19959: noexcept (true) __attribute__ ((__nonnull__ (3))); 19959: 19959: extern int strfromf (char *__dest, size_t __size, const char *__format, 19959: float __f) 19959: noexcept (true) __attribute__ ((__nonnull__ (3))); 19959: 19959: extern int strfroml (char *__dest, size_t __size, const char *__format, 19959: long double __f) 19959: noexcept (true) __attribute__ ((__nonnull__ (3))); 19959: # 233 "/usr/include/stdlib.h" 3 4 19959: extern int strfromf32 (char *__dest, size_t __size, const char * __format, 19959: _Float32 __f) 19959: noexcept (true) __attribute__ ((__nonnull__ (3))); 19959: 19959: 19959: 19959: extern int strfromf64 (char *__dest, size_t __size, const char * __format, 19959: _Float64 __f) 19959: noexcept (true) __attribute__ ((__nonnull__ (3))); 19959: # 251 "/usr/include/stdlib.h" 3 4 19959: extern int strfromf32x (char *__dest, size_t __size, const char * __format, 19959: _Float32x __f) 19959: noexcept (true) __attribute__ ((__nonnull__ (3))); 19959: # 273 "/usr/include/stdlib.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 1 3 4 19959: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 1 3 4 19959: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 3 4 19959: struct __locale_struct 19959: { 19959: 19959: struct __locale_data *__locales[13]; 19959: 19959: 19959: const unsigned short int *__ctype_b; 19959: const int *__ctype_tolower; 19959: const int *__ctype_toupper; 19959: 19959: 19959: const char *__names[13]; 19959: }; 19959: 19959: typedef struct __locale_struct *__locale_t; 19959: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 2 3 4 19959: 19959: typedef __locale_t locale_t; 19959: # 274 "/usr/include/stdlib.h" 2 3 4 19959: 19959: extern long int strtol_l (const char *__restrict __nptr, 19959: char **__restrict __endptr, int __base, 19959: locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 19959: 19959: extern unsigned long int strtoul_l (const char *__restrict __nptr, 19959: char **__restrict __endptr, 19959: int __base, locale_t __loc) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 19959: 19959: __extension__ 19959: extern long long int strtoll_l (const char *__restrict __nptr, 19959: char **__restrict __endptr, int __base, 19959: locale_t __loc) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 19959: 19959: __extension__ 19959: extern unsigned long long int strtoull_l (const char *__restrict __nptr, 19959: char **__restrict __endptr, 19959: int __base, locale_t __loc) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 19959: 19959: extern double strtod_l (const char *__restrict __nptr, 19959: char **__restrict __endptr, locale_t __loc) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 19959: 19959: extern float strtof_l (const char *__restrict __nptr, 19959: char **__restrict __endptr, locale_t __loc) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 19959: 19959: extern long double strtold_l (const char *__restrict __nptr, 19959: char **__restrict __endptr, 19959: locale_t __loc) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 19959: # 317 "/usr/include/stdlib.h" 3 4 19959: extern _Float32 strtof32_l (const char *__restrict __nptr, 19959: char **__restrict __endptr, 19959: locale_t __loc) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 19959: 19959: 19959: 19959: extern _Float64 strtof64_l (const char *__restrict __nptr, 19959: char **__restrict __endptr, 19959: locale_t __loc) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 19959: # 338 "/usr/include/stdlib.h" 3 4 19959: extern _Float32x strtof32x_l (const char *__restrict __nptr, 19959: char **__restrict __endptr, 19959: locale_t __loc) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 19959: # 361 "/usr/include/stdlib.h" 3 4 19959: extern __inline __attribute__ ((__gnu_inline__)) int 19959: __attribute__ ((__leaf__)) atoi (const char *__nptr) noexcept (true) 19959: { 19959: return (int) strtol (__nptr, (char **) __null, 10); 19959: } 19959: extern __inline __attribute__ ((__gnu_inline__)) long int 19959: __attribute__ ((__leaf__)) atol (const char *__nptr) noexcept (true) 19959: { 19959: return strtol (__nptr, (char **) __null, 10); 19959: } 19959: 19959: 19959: __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int 19959: __attribute__ ((__leaf__)) atoll (const char *__nptr) noexcept (true) 19959: { 19959: return strtoll (__nptr, (char **) __null, 10); 19959: } 19959: # 386 "/usr/include/stdlib.h" 3 4 19959: extern char *l64a (long int __n) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: extern long int a64l (const char *__s) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/sys/types.h" 1 3 4 19959: # 27 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 19959: extern "C" { 19959: 19959: 19959: 19959: 19959: 19959: typedef __u_char u_char; 19959: typedef __u_short u_short; 19959: typedef __u_int u_int; 19959: typedef __u_long u_long; 19959: typedef __quad_t quad_t; 19959: typedef __u_quad_t u_quad_t; 19959: typedef __fsid_t fsid_t; 19959: 19959: 19959: typedef __loff_t loff_t; 19959: 19959: 19959: 19959: 19959: typedef __ino_t ino_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef __ino64_t ino64_t; 19959: 19959: 19959: 19959: 19959: typedef __dev_t dev_t; 19959: 19959: 19959: 19959: 19959: typedef __gid_t gid_t; 19959: 19959: 19959: 19959: 19959: typedef __mode_t mode_t; 19959: 19959: 19959: 19959: 19959: typedef __nlink_t nlink_t; 19959: 19959: 19959: 19959: 19959: typedef __uid_t uid_t; 19959: 19959: 19959: 19959: 19959: 19959: typedef __off_t off_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef __off64_t off64_t; 19959: 19959: 19959: 19959: 19959: typedef __pid_t pid_t; 19959: 19959: 19959: 19959: 19959: 19959: typedef __id_t id_t; 19959: 19959: 19959: 19959: 19959: typedef __ssize_t ssize_t; 19959: 19959: 19959: 19959: 19959: 19959: typedef __daddr_t daddr_t; 19959: typedef __caddr_t caddr_t; 19959: 19959: 19959: 19959: 19959: 19959: typedef __key_t key_t; 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clock_t.h" 1 3 4 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef __clock_t clock_t; 19959: # 127 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clockid_t.h" 1 3 4 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef __clockid_t clockid_t; 19959: # 129 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 1 3 4 19959: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 3 4 19959: typedef __time_t time_t; 19959: # 130 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/timer_t.h" 1 3 4 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef __timer_t timer_t; 19959: # 131 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 19959: 19959: 19959: 19959: typedef __useconds_t useconds_t; 19959: 19959: 19959: 19959: typedef __suseconds_t suseconds_t; 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 145 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 19959: 19959: 19959: 19959: typedef unsigned long int ulong; 19959: typedef unsigned short int ushort; 19959: typedef unsigned int uint; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef __uint8_t u_int8_t; 19959: typedef __uint16_t u_int16_t; 19959: typedef __uint32_t u_int32_t; 19959: typedef __uint64_t u_int64_t; 19959: 19959: 19959: typedef int register_t __attribute__ ((__mode__ (__word__))); 19959: # 176 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 19959: # 1 "/usr/include/endian.h" 1 3 4 19959: # 24 "/usr/include/endian.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 1 3 4 19959: # 35 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/endianness.h" 1 3 4 19959: # 36 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 2 3 4 19959: # 25 "/usr/include/endian.h" 2 3 4 19959: # 35 "/usr/include/endian.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 1 3 4 19959: # 33 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 19959: static __inline __uint16_t 19959: __bswap_16 (__uint16_t __bsx) 19959: { 19959: 19959: return __builtin_bswap16 (__bsx); 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: static __inline __uint32_t 19959: __bswap_32 (__uint32_t __bsx) 19959: { 19959: 19959: return __builtin_bswap32 (__bsx); 19959: 19959: 19959: 19959: } 19959: # 69 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 19959: __extension__ static __inline __uint64_t 19959: __bswap_64 (__uint64_t __bsx) 19959: { 19959: 19959: return __builtin_bswap64 (__bsx); 19959: 19959: 19959: 19959: } 19959: # 36 "/usr/include/endian.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 1 3 4 19959: # 32 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 3 4 19959: static __inline __uint16_t 19959: __uint16_identity (__uint16_t __x) 19959: { 19959: return __x; 19959: } 19959: 19959: static __inline __uint32_t 19959: __uint32_identity (__uint32_t __x) 19959: { 19959: return __x; 19959: } 19959: 19959: static __inline __uint64_t 19959: __uint64_identity (__uint64_t __x) 19959: { 19959: return __x; 19959: } 19959: # 37 "/usr/include/endian.h" 2 3 4 19959: # 177 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/sys/select.h" 1 3 4 19959: # 30 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/select.h" 1 3 4 19959: # 31 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 1 3 4 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__sigset_t.h" 1 3 4 19959: 19959: 19959: 19959: 19959: typedef struct 19959: { 19959: unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; 19959: } __sigset_t; 19959: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 2 3 4 19959: 19959: 19959: typedef __sigset_t sigset_t; 19959: # 34 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timeval.h" 1 3 4 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct timeval 19959: { 19959: 19959: 19959: 19959: 19959: __time_t tv_sec; 19959: __suseconds_t tv_usec; 19959: 19959: }; 19959: # 38 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 1 3 4 19959: # 11 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 19959: struct timespec 19959: { 19959: 19959: 19959: 19959: __time_t tv_sec; 19959: 19959: 19959: 19959: 19959: __syscall_slong_t tv_nsec; 19959: # 31 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 19959: }; 19959: # 40 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 19959: # 49 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 19959: typedef long int __fd_mask; 19959: # 59 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 19959: typedef struct 19959: { 19959: 19959: 19959: 19959: __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; 19959: 19959: 19959: 19959: 19959: 19959: } fd_set; 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef __fd_mask fd_mask; 19959: # 91 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 19959: extern "C" { 19959: # 102 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 19959: extern int select (int __nfds, fd_set *__restrict __readfds, 19959: fd_set *__restrict __writefds, 19959: fd_set *__restrict __exceptfds, 19959: struct timeval *__restrict __timeout); 19959: # 127 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 19959: extern int pselect (int __nfds, fd_set *__restrict __readfds, 19959: fd_set *__restrict __writefds, 19959: fd_set *__restrict __exceptfds, 19959: const struct timespec *__restrict __timeout, 19959: const __sigset_t *__restrict __sigmask); 19959: # 150 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 3 4 19959: extern long int __fdelt_chk (long int __d); 19959: extern long int __fdelt_warn (long int __d) 19959: __attribute__((__warning__ ("bit outside of fd_set selected"))); 19959: # 151 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 19959: 19959: 19959: } 19959: # 180 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: typedef __blksize_t blksize_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef __blkcnt_t blkcnt_t; 19959: 19959: 19959: 19959: typedef __fsblkcnt_t fsblkcnt_t; 19959: 19959: 19959: 19959: typedef __fsfilcnt_t fsfilcnt_t; 19959: # 219 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 19959: typedef __blkcnt64_t blkcnt64_t; 19959: typedef __fsblkcnt64_t fsblkcnt64_t; 19959: typedef __fsfilcnt64_t fsfilcnt64_t; 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 1 3 4 19959: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 1 3 4 19959: # 44 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 1 3 4 19959: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 2 3 4 19959: # 45 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 1 3 4 19959: # 25 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 3 4 19959: typedef union 19959: { 19959: __extension__ unsigned long long int __value64; 19959: struct 19959: { 19959: unsigned int __low; 19959: unsigned int __high; 19959: } __value32; 19959: } __atomic_wide_counter; 19959: # 47 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 19959: 19959: 19959: 19959: 19959: typedef struct __pthread_internal_list 19959: { 19959: struct __pthread_internal_list *__prev; 19959: struct __pthread_internal_list *__next; 19959: } __pthread_list_t; 19959: 19959: typedef struct __pthread_internal_slist 19959: { 19959: struct __pthread_internal_slist *__next; 19959: } __pthread_slist_t; 19959: # 76 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 1 3 4 19959: # 27 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 19959: struct __pthread_mutex_s 19959: { 19959: int __lock ; 19959: unsigned int __count; 19959: int __owner; 19959: # 58 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 19959: int __kind; 19959: 19959: unsigned int __nusers; 19959: 19959: 19959: 19959: 19959: 19959: 19959: __extension__ union 19959: { 19959: int __spins; 19959: __pthread_slist_t __list; 19959: }; 19959: 19959: 19959: }; 19959: # 77 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 19959: # 89 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 1 3 4 19959: # 29 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 19959: struct __pthread_rwlock_arch_t 19959: { 19959: unsigned int __readers; 19959: unsigned int __writers; 19959: unsigned int __wrphase_futex; 19959: unsigned int __writers_futex; 19959: unsigned int __pad3; 19959: unsigned int __pad4; 19959: # 45 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 19959: unsigned char __flags; 19959: unsigned char __shared; 19959: unsigned char __pad1; 19959: unsigned char __pad2; 19959: 19959: int __cur_writer; 19959: }; 19959: # 90 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 19959: 19959: 19959: 19959: 19959: struct __pthread_cond_s 19959: { 19959: __atomic_wide_counter __wseq; 19959: __atomic_wide_counter __g1_start; 19959: unsigned int __g_refs[2] ; 19959: unsigned int __g_size[2]; 19959: unsigned int __g1_orig_size; 19959: unsigned int __wrefs; 19959: unsigned int __g_signals[2]; 19959: }; 19959: 19959: typedef unsigned int __tss_t; 19959: typedef unsigned long int __thrd_t; 19959: 19959: typedef struct 19959: { 19959: int __data ; 19959: } __once_flag; 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 2 3 4 19959: 19959: 19959: 19959: typedef unsigned long int pthread_t; 19959: 19959: 19959: 19959: 19959: typedef union 19959: { 19959: char __size[4]; 19959: int __align; 19959: } pthread_mutexattr_t; 19959: 19959: 19959: 19959: 19959: typedef union 19959: { 19959: char __size[4]; 19959: int __align; 19959: } pthread_condattr_t; 19959: 19959: 19959: 19959: typedef unsigned int pthread_key_t; 19959: 19959: 19959: 19959: typedef int pthread_once_t; 19959: 19959: 19959: union pthread_attr_t 19959: { 19959: char __size[36]; 19959: long int __align; 19959: }; 19959: 19959: typedef union pthread_attr_t pthread_attr_t; 19959: 19959: 19959: 19959: 19959: typedef union 19959: { 19959: struct __pthread_mutex_s __data; 19959: char __size[24]; 19959: long int __align; 19959: } pthread_mutex_t; 19959: 19959: 19959: typedef union 19959: { 19959: struct __pthread_cond_s __data; 19959: char __size[48]; 19959: __extension__ long long int __align; 19959: } pthread_cond_t; 19959: 19959: 19959: 19959: 19959: 19959: typedef union 19959: { 19959: struct __pthread_rwlock_arch_t __data; 19959: char __size[32]; 19959: long int __align; 19959: } pthread_rwlock_t; 19959: 19959: typedef union 19959: { 19959: char __size[8]; 19959: long int __align; 19959: } pthread_rwlockattr_t; 19959: 19959: 19959: 19959: 19959: 19959: typedef volatile int pthread_spinlock_t; 19959: 19959: 19959: 19959: 19959: typedef union 19959: { 19959: char __size[20]; 19959: long int __align; 19959: } pthread_barrier_t; 19959: 19959: typedef union 19959: { 19959: char __size[4]; 19959: int __align; 19959: } pthread_barrierattr_t; 19959: # 228 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 19959: 19959: 19959: } 19959: # 396 "/usr/include/stdlib.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long int random (void) noexcept (true); 19959: 19959: 19959: extern void srandom (unsigned int __seed) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern char *initstate (unsigned int __seed, char *__statebuf, 19959: size_t __statelen) noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: 19959: extern char *setstate (char *__statebuf) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct random_data 19959: { 19959: int32_t *fptr; 19959: int32_t *rptr; 19959: int32_t *state; 19959: int rand_type; 19959: int rand_deg; 19959: int rand_sep; 19959: int32_t *end_ptr; 19959: }; 19959: 19959: extern int random_r (struct random_data *__restrict __buf, 19959: int32_t *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: extern int srandom_r (unsigned int __seed, struct random_data *__buf) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, 19959: size_t __statelen, 19959: struct random_data *__restrict __buf) 19959: noexcept (true) __attribute__ ((__nonnull__ (2, 4))); 19959: 19959: extern int setstate_r (char *__restrict __statebuf, 19959: struct random_data *__restrict __buf) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: 19959: 19959: extern int rand (void) noexcept (true); 19959: 19959: extern void srand (unsigned int __seed) noexcept (true); 19959: 19959: 19959: 19959: extern int rand_r (unsigned int *__seed) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern double drand48 (void) noexcept (true); 19959: extern double erand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern long int lrand48 (void) noexcept (true); 19959: extern long int nrand48 (unsigned short int __xsubi[3]) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern long int mrand48 (void) noexcept (true); 19959: extern long int jrand48 (unsigned short int __xsubi[3]) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern void srand48 (long int __seedval) noexcept (true); 19959: extern unsigned short int *seed48 (unsigned short int __seed16v[3]) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: extern void lcong48 (unsigned short int __param[7]) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: struct drand48_data 19959: { 19959: unsigned short int __x[3]; 19959: unsigned short int __old_x[3]; 19959: unsigned short int __c; 19959: unsigned short int __init; 19959: __extension__ unsigned long long int __a; 19959: 19959: }; 19959: 19959: 19959: extern int drand48_r (struct drand48_data *__restrict __buffer, 19959: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: extern int erand48_r (unsigned short int __xsubi[3], 19959: struct drand48_data *__restrict __buffer, 19959: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int lrand48_r (struct drand48_data *__restrict __buffer, 19959: long int *__restrict __result) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: extern int nrand48_r (unsigned short int __xsubi[3], 19959: struct drand48_data *__restrict __buffer, 19959: long int *__restrict __result) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int mrand48_r (struct drand48_data *__restrict __buffer, 19959: long int *__restrict __result) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: extern int jrand48_r (unsigned short int __xsubi[3], 19959: struct drand48_data *__restrict __buffer, 19959: long int *__restrict __result) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int srand48_r (long int __seedval, struct drand48_data *__buffer) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: extern int seed48_r (unsigned short int __seed16v[3], 19959: struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: extern int lcong48_r (unsigned short int __param[7], 19959: struct drand48_data *__buffer) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern __uint32_t arc4random (void) 19959: noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: extern void arc4random_buf (void *__buf, size_t __size) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern __uint32_t arc4random_uniform (__uint32_t __upper_bound) 19959: noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 19959: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: extern void *calloc (size_t __nmemb, size_t __size) 19959: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern void *realloc (void *__ptr, size_t __size) 19959: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 19959: 19959: 19959: extern void free (void *__ptr) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 19959: noexcept (true) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__alloc_size__ (2, 3))) 19959: __attribute__ ((__malloc__ (__builtin_free, 1))); 19959: 19959: 19959: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 19959: noexcept (true) __attribute__ ((__malloc__ (reallocarray, 1))); 19959: 19959: 19959: 19959: # 1 "/usr/include/alloca.h" 1 3 4 19959: # 24 "/usr/include/alloca.h" 3 4 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 25 "/usr/include/alloca.h" 2 3 4 19959: 19959: extern "C" { 19959: 19959: 19959: 19959: 19959: 19959: extern void *alloca (size_t __size) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 588 "/usr/include/stdlib.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 19959: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern void *aligned_alloc (size_t __alignment, size_t __size) 19959: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 19959: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: extern void abort (void) noexcept (true) __attribute__ ((__noreturn__)); 19959: 19959: 19959: 19959: extern int atexit (void (*__func) (void)) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: extern "C++" int at_quick_exit (void (*__func) (void)) 19959: noexcept (true) __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); 19959: # 630 "/usr/include/stdlib.h" 3 4 19959: extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: extern void exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 19959: 19959: 19959: 19959: 19959: 19959: extern void quick_exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 19959: 19959: 19959: 19959: 19959: 19959: extern void _Exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 19959: 19959: 19959: 19959: 19959: extern char *getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern char *secure_getenv (const char *__name) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int putenv (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: extern int setenv (const char *__name, const char *__value, int __replace) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: extern int unsetenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int clearenv (void) noexcept (true); 19959: # 695 "/usr/include/stdlib.h" 3 4 19959: extern char *mktemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: # 708 "/usr/include/stdlib.h" 3 4 19959: extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: # 718 "/usr/include/stdlib.h" 3 4 19959: extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: # 730 "/usr/include/stdlib.h" 3 4 19959: extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: # 740 "/usr/include/stdlib.h" 3 4 19959: extern int mkstemps64 (char *__template, int __suffixlen) 19959: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: # 751 "/usr/include/stdlib.h" 3 4 19959: extern char *mkdtemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: # 762 "/usr/include/stdlib.h" 3 4 19959: extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: # 772 "/usr/include/stdlib.h" 3 4 19959: extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: # 782 "/usr/include/stdlib.h" 3 4 19959: extern int mkostemps (char *__template, int __suffixlen, int __flags) 19959: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: # 794 "/usr/include/stdlib.h" 3 4 19959: extern int mkostemps64 (char *__template, int __suffixlen, int __flags) 19959: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: # 804 "/usr/include/stdlib.h" 3 4 19959: extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: extern char *canonicalize_file_name (const char *__name) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__malloc__)) 19959: __attribute__ ((__malloc__ (__builtin_free, 1))) __attribute__ ((__warn_unused_result__)); 19959: # 821 "/usr/include/stdlib.h" 3 4 19959: extern char *realpath (const char *__restrict __name, 19959: char *__restrict __resolved) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef int (*__compar_fn_t) (const void *, const void *); 19959: 19959: 19959: typedef __compar_fn_t comparison_fn_t; 19959: 19959: 19959: 19959: typedef int (*__compar_d_fn_t) (const void *, const void *, void *); 19959: 19959: 19959: 19959: 19959: extern void *bsearch (const void *__key, const void *__base, 19959: size_t __nmemb, size_t __size, __compar_fn_t __compar) 19959: __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 1 3 4 19959: # 19 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 3 4 19959: extern __inline __attribute__ ((__gnu_inline__)) void * 19959: bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, 19959: __compar_fn_t __compar) 19959: { 19959: size_t __l, __u, __idx; 19959: const void *__p; 19959: int __comparison; 19959: 19959: __l = 0; 19959: __u = __nmemb; 19959: while (__l < __u) 19959: { 19959: __idx = (__l + __u) / 2; 19959: __p = (const void *) (((const char *) __base) + (__idx * __size)); 19959: __comparison = (*__compar) (__key, __p); 19959: if (__comparison < 0) 19959: __u = __idx; 19959: else if (__comparison > 0) 19959: __l = __idx + 1; 19959: else 19959: { 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wcast-qual" 19959: 19959: return (void *) __p; 19959: 19959: #pragma GCC diagnostic pop 19959: 19959: } 19959: } 19959: 19959: return __null; 19959: } 19959: # 847 "/usr/include/stdlib.h" 2 3 4 19959: 19959: 19959: 19959: 19959: extern void qsort (void *__base, size_t __nmemb, size_t __size, 19959: __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); 19959: 19959: extern void qsort_r (void *__base, size_t __nmemb, size_t __size, 19959: __compar_d_fn_t __compar, void *__arg) 19959: __attribute__ ((__nonnull__ (1, 4))); 19959: 19959: 19959: 19959: 19959: extern int abs (int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 19959: extern long int labs (long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: __extension__ extern long long int llabs (long long int __x) 19959: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern div_t div (int __numer, int __denom) 19959: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 19959: extern ldiv_t ldiv (long int __numer, long int __denom) 19959: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: __extension__ extern lldiv_t lldiv (long long int __numer, 19959: long long int __denom) 19959: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 19959: # 893 "/usr/include/stdlib.h" 3 4 19959: extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, 19959: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, 19959: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern char *gcvt (double __value, int __ndigit, char *__buf) 19959: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern char *qecvt (long double __value, int __ndigit, 19959: int *__restrict __decpt, int *__restrict __sign) 19959: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 19959: extern char *qfcvt (long double __value, int __ndigit, 19959: int *__restrict __decpt, int *__restrict __sign) 19959: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 19959: extern char *qgcvt (long double __value, int __ndigit, char *__buf) 19959: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, 19959: int *__restrict __sign, char *__restrict __buf, 19959: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 19959: extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, 19959: int *__restrict __sign, char *__restrict __buf, 19959: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 19959: 19959: extern int qecvt_r (long double __value, int __ndigit, 19959: int *__restrict __decpt, int *__restrict __sign, 19959: char *__restrict __buf, size_t __len) 19959: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 19959: extern int qfcvt_r (long double __value, int __ndigit, 19959: int *__restrict __decpt, int *__restrict __sign, 19959: char *__restrict __buf, size_t __len) 19959: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 19959: 19959: 19959: 19959: 19959: 19959: extern int mblen (const char *__s, size_t __n) noexcept (true); 19959: 19959: 19959: extern int mbtowc (wchar_t *__restrict __pwc, 19959: const char *__restrict __s, size_t __n) noexcept (true); 19959: 19959: 19959: extern int wctomb (char *__s, wchar_t __wchar) noexcept (true); 19959: 19959: 19959: 19959: extern size_t mbstowcs (wchar_t *__restrict __pwcs, 19959: const char *__restrict __s, size_t __n) noexcept (true) 19959: __attribute__ ((__access__ (__read_only__, 2))); 19959: 19959: extern size_t wcstombs (char *__restrict __s, 19959: const wchar_t *__restrict __pwcs, size_t __n) 19959: noexcept (true) 19959: __attribute__ ((__access__ (__write_only__, 1, 3))) 19959: __attribute__ ((__access__ (__read_only__, 2))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int rpmatch (const char *__response) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: # 980 "/usr/include/stdlib.h" 3 4 19959: extern int getsubopt (char **__restrict __optionp, 19959: char *const *__restrict __tokens, 19959: char **__restrict __valuep) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int grantpt (int __fd) noexcept (true); 19959: 19959: 19959: 19959: extern int unlockpt (int __fd) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern char *ptsname (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int ptsname_r (int __fd, char *__buf, size_t __buflen) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: 19959: 19959: extern int getpt (void); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int getloadavg (double __loadavg[], int __nelem) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: # 1036 "/usr/include/stdlib.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 3 4 19959: extern __inline __attribute__ ((__gnu_inline__)) double 19959: __attribute__ ((__leaf__)) atof (const char *__nptr) noexcept (true) 19959: { 19959: return strtod (__nptr, (char **) __null); 19959: } 19959: # 1037 "/usr/include/stdlib.h" 2 3 4 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 1 3 4 19959: # 23 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 3 4 19959: extern char *__realpath_chk (const char *__restrict __name, 19959: char *__restrict __resolved, 19959: size_t __resolvedlen) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) noexcept (true) __asm__ ("" "realpath") 19959: 19959: __attribute__ ((__warn_unused_result__)); 19959: extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) noexcept (true) __asm__ ("" "__realpath_chk") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) 19959: __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 19959: __attribute__ ((__leaf__)) realpath (const char *__restrict __name, char *__restrict __resolved) noexcept (true) 19959: { 19959: size_t sz = __builtin_object_size (__resolved, 2 > 1); 19959: 19959: if (sz == (size_t) -1) 19959: return __realpath_alias (__name, __resolved); 19959: 19959: 19959: 19959: 19959: 19959: return __realpath_chk (__name, __resolved, sz); 19959: } 19959: 19959: 19959: extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, 19959: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 19959: __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ptsname_r") 19959: 19959: __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ptsname_r_chk") 19959: 19959: 19959: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) ptsname_r (int __fd, char *__buf, size_t __buflen) noexcept (true) 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: 19959: 19959: extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) 19959: noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: extern int __wctomb_alias (char *__s, wchar_t __wchar) noexcept (true) __asm__ ("" "wctomb") 19959: __attribute__ ((__warn_unused_result__)); 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int 19959: __attribute__ ((__leaf__)) wctomb (char *__s, wchar_t __wchar) noexcept (true) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 19959: && 16 > __builtin_object_size (__s, 2 > 1)) 19959: return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); 19959: return __wctomb_alias (__s, __wchar); 19959: } 19959: 19959: 19959: extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, 19959: const char *__restrict __src, 19959: size_t __len, size_t __dstlen) noexcept (true) 19959: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 19959: extern size_t __mbstowcs_nulldst (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 19959: 19959: 19959: 19959: __attribute__ ((__access__ (__read_only__, 2))); 19959: extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 19959: 19959: 19959: 19959: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 19959: 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") 19959: 19959: 19959: 19959: __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 19959: __attribute__ ((__leaf__)) mbstowcs (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) 19959: 19959: { 19959: if (__builtin_constant_p (__dst == __null) && __dst == __null) 19959: return __mbstowcs_nulldst (__dst, __src, __len); 19959: else 19959: 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))))) 19959: ; 19959: } 19959: 19959: extern size_t __wcstombs_chk (char *__restrict __dst, 19959: const wchar_t *__restrict __src, 19959: size_t __len, size_t __dstlen) noexcept (true) 19959: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 19959: extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "wcstombs") 19959: 19959: 19959: 19959: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 19959: 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") 19959: 19959: 19959: 19959: __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 19959: __attribute__ ((__leaf__)) wcstombs (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) 19959: 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: # 1041 "/usr/include/stdlib.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 19959: # 1044 "/usr/include/stdlib.h" 2 3 4 19959: 19959: 19959: 19959: 19959: } 19959: # 80 "/usr/include/c++/13/cstdlib" 2 3 19959: 19959: # 1 "/usr/include/c++/13/bits/std_abs.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/std_abs.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/std_abs.h" 3 19959: # 46 "/usr/include/c++/13/bits/std_abs.h" 3 19959: extern "C++" 19959: { 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: using ::abs; 19959: 19959: 19959: inline long 19959: abs(long __i) { return __builtin_labs(__i); } 19959: 19959: 19959: 19959: inline long long 19959: abs(long long __x) { return __builtin_llabs (__x); } 19959: # 70 "/usr/include/c++/13/bits/std_abs.h" 3 19959: inline constexpr double 19959: abs(double __x) 19959: { return __builtin_fabs(__x); } 19959: 19959: inline constexpr float 19959: abs(float __x) 19959: { return __builtin_fabsf(__x); } 19959: 19959: inline constexpr long double 19959: abs(long double __x) 19959: { return __builtin_fabsl(__x); } 19959: # 150 "/usr/include/c++/13/bits/std_abs.h" 3 19959: 19959: } 19959: } 19959: # 82 "/usr/include/c++/13/cstdlib" 2 3 19959: # 125 "/usr/include/c++/13/cstdlib" 3 19959: extern "C++" 19959: { 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: using ::div_t; 19959: using ::ldiv_t; 19959: 19959: using ::abort; 19959: 19959: using ::aligned_alloc; 19959: 19959: using ::atexit; 19959: 19959: 19959: using ::at_quick_exit; 19959: 19959: 19959: using ::atof; 19959: using ::atoi; 19959: using ::atol; 19959: using ::bsearch; 19959: using ::calloc; 19959: using ::div; 19959: using ::exit; 19959: using ::free; 19959: using ::getenv; 19959: using ::labs; 19959: using ::ldiv; 19959: using ::malloc; 19959: 19959: using ::mblen; 19959: using ::mbstowcs; 19959: using ::mbtowc; 19959: 19959: using ::qsort; 19959: 19959: 19959: using ::quick_exit; 19959: 19959: 19959: using ::rand; 19959: using ::realloc; 19959: using ::srand; 19959: using ::strtod; 19959: using ::strtol; 19959: using ::strtoul; 19959: using ::system; 19959: 19959: using ::wcstombs; 19959: using ::wctomb; 19959: 19959: 19959: 19959: inline ldiv_t 19959: div(long __i, long __j) noexcept { return ldiv(__i, __j); } 19959: 19959: 19959: 19959: 19959: } 19959: # 199 "/usr/include/c++/13/cstdlib" 3 19959: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: using ::lldiv_t; 19959: 19959: 19959: 19959: 19959: 19959: using ::_Exit; 19959: 19959: 19959: 19959: using ::llabs; 19959: 19959: inline lldiv_t 19959: div(long long __n, long long __d) 19959: { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } 19959: 19959: using ::lldiv; 19959: # 231 "/usr/include/c++/13/cstdlib" 3 19959: using ::atoll; 19959: using ::strtoll; 19959: using ::strtoull; 19959: 19959: using ::strtof; 19959: using ::strtold; 19959: 19959: 19959: } 19959: 19959: namespace std 19959: { 19959: 19959: using ::__gnu_cxx::lldiv_t; 19959: 19959: using ::__gnu_cxx::_Exit; 19959: 19959: using ::__gnu_cxx::llabs; 19959: using ::__gnu_cxx::div; 19959: using ::__gnu_cxx::lldiv; 19959: 19959: using ::__gnu_cxx::atoll; 19959: using ::__gnu_cxx::strtof; 19959: using ::__gnu_cxx::strtoll; 19959: using ::__gnu_cxx::strtoull; 19959: using ::__gnu_cxx::strtold; 19959: } 19959: 19959: 19959: 19959: } 19959: # 72 "/usr/include/c++/13/bits/stl_algo.h" 2 3 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: 19959: void 19959: __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, 19959: _Iterator __c, _Compare __comp) 19959: { 19959: if (__comp(__a, __b)) 19959: { 19959: if (__comp(__b, __c)) 19959: std::iter_swap(__result, __b); 19959: else if (__comp(__a, __c)) 19959: std::iter_swap(__result, __c); 19959: else 19959: std::iter_swap(__result, __a); 19959: } 19959: else if (__comp(__a, __c)) 19959: std::iter_swap(__result, __a); 19959: else if (__comp(__b, __c)) 19959: std::iter_swap(__result, __c); 19959: else 19959: std::iter_swap(__result, __b); 19959: } 19959: 19959: 19959: template 19959: 19959: inline _InputIterator 19959: __find_if_not(_InputIterator __first, _InputIterator __last, 19959: _Predicate __pred) 19959: { 19959: return std::__find_if(__first, __last, 19959: __gnu_cxx::__ops::__negate(__pred), 19959: std::__iterator_category(__first)); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _InputIterator 19959: __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) 19959: { 19959: for (; __len; --__len, (void) ++__first) 19959: if (!__pred(__first)) 19959: break; 19959: return __first; 19959: } 19959: # 144 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: _ForwardIterator1 19959: __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 19959: _BinaryPredicate __predicate) 19959: { 19959: 19959: if (__first1 == __last1 || __first2 == __last2) 19959: return __first1; 19959: 19959: 19959: _ForwardIterator2 __p1(__first2); 19959: if (++__p1 == __last2) 19959: return std::__find_if(__first1, __last1, 19959: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 19959: 19959: 19959: _ForwardIterator1 __current = __first1; 19959: 19959: for (;;) 19959: { 19959: __first1 = 19959: std::__find_if(__first1, __last1, 19959: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 19959: 19959: if (__first1 == __last1) 19959: return __last1; 19959: 19959: _ForwardIterator2 __p = __p1; 19959: __current = __first1; 19959: if (++__current == __last1) 19959: return __last1; 19959: 19959: while (__predicate(__current, __p)) 19959: { 19959: if (++__p == __last2) 19959: return __first1; 19959: if (++__current == __last1) 19959: return __last1; 19959: } 19959: ++__first1; 19959: } 19959: return __first1; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _ForwardIterator 19959: __search_n_aux(_ForwardIterator __first, _ForwardIterator __last, 19959: _Integer __count, _UnaryPredicate __unary_pred, 19959: std::forward_iterator_tag) 19959: { 19959: __first = std::__find_if(__first, __last, __unary_pred); 19959: while (__first != __last) 19959: { 19959: typename iterator_traits<_ForwardIterator>::difference_type 19959: __n = __count; 19959: _ForwardIterator __i = __first; 19959: ++__i; 19959: while (__i != __last && __n != 1 && __unary_pred(__i)) 19959: { 19959: ++__i; 19959: --__n; 19959: } 19959: if (__n == 1) 19959: return __first; 19959: if (__i == __last) 19959: return __last; 19959: __first = std::__find_if(++__i, __last, __unary_pred); 19959: } 19959: return __last; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _RandomAccessIter 19959: __search_n_aux(_RandomAccessIter __first, _RandomAccessIter __last, 19959: _Integer __count, _UnaryPredicate __unary_pred, 19959: std::random_access_iterator_tag) 19959: { 19959: typedef typename std::iterator_traits<_RandomAccessIter>::difference_type 19959: _DistanceType; 19959: 19959: _DistanceType __tailSize = __last - __first; 19959: _DistanceType __remainder = __count; 19959: 19959: while (__remainder <= __tailSize) 19959: { 19959: __first += __remainder; 19959: __tailSize -= __remainder; 19959: 19959: 19959: _RandomAccessIter __backTrack = __first; 19959: while (__unary_pred(--__backTrack)) 19959: { 19959: if (--__remainder == 0) 19959: return (__first - __count); 19959: } 19959: __remainder = __count + 1 - (__first - __backTrack); 19959: } 19959: return __last; 19959: } 19959: 19959: template 19959: 19959: _ForwardIterator 19959: __search_n(_ForwardIterator __first, _ForwardIterator __last, 19959: _Integer __count, 19959: _UnaryPredicate __unary_pred) 19959: { 19959: if (__count <= 0) 19959: return __first; 19959: 19959: if (__count == 1) 19959: return std::__find_if(__first, __last, __unary_pred); 19959: 19959: return std::__search_n_aux(__first, __last, __count, __unary_pred, 19959: std::__iterator_category(__first)); 19959: } 19959: 19959: 19959: template 19959: 19959: _ForwardIterator1 19959: __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 19959: forward_iterator_tag, forward_iterator_tag, 19959: _BinaryPredicate __comp) 19959: { 19959: if (__first2 == __last2) 19959: return __last1; 19959: 19959: _ForwardIterator1 __result = __last1; 19959: while (1) 19959: { 19959: _ForwardIterator1 __new_result 19959: = std::__search(__first1, __last1, __first2, __last2, __comp); 19959: if (__new_result == __last1) 19959: return __result; 19959: else 19959: { 19959: __result = __new_result; 19959: __first1 = __new_result; 19959: ++__first1; 19959: } 19959: } 19959: } 19959: 19959: 19959: template 19959: 19959: _BidirectionalIterator1 19959: __find_end(_BidirectionalIterator1 __first1, 19959: _BidirectionalIterator1 __last1, 19959: _BidirectionalIterator2 __first2, 19959: _BidirectionalIterator2 __last2, 19959: bidirectional_iterator_tag, bidirectional_iterator_tag, 19959: _BinaryPredicate __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; 19959: typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; 19959: 19959: _RevIterator1 __rlast1(__first1); 19959: _RevIterator2 __rlast2(__first2); 19959: _RevIterator1 __rresult = std::__search(_RevIterator1(__last1), __rlast1, 19959: _RevIterator2(__last2), __rlast2, 19959: __comp); 19959: 19959: if (__rresult == __rlast1) 19959: return __last1; 19959: else 19959: { 19959: _BidirectionalIterator1 __result = __rresult.base(); 19959: std::advance(__result, -std::distance(__first2, __last2)); 19959: return __result; 19959: } 19959: } 19959: # 370 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator1 19959: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__find_end(__first1, __last1, __first2, __last2, 19959: std::__iterator_category(__first1), 19959: std::__iterator_category(__first2), 19959: __gnu_cxx::__ops::__iter_equal_to_iter()); 19959: } 19959: # 419 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator1 19959: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 19959: _BinaryPredicate __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__find_end(__first1, __last1, __first2, __last2, 19959: std::__iterator_category(__first1), 19959: std::__iterator_category(__first2), 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: # 455 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 19959: { return __last == std::find_if_not(__first, __last, __pred); } 19959: # 473 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 19959: { return __last == std::find_if(__first, __last, __pred); } 19959: # 492 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 19959: { return !std::none_of(__first, __last, __pred); } 19959: # 508 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _InputIterator 19959: find_if_not(_InputIterator __first, _InputIterator __last, 19959: _Predicate __pred) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: return std::__find_if_not(__first, __last, 19959: __gnu_cxx::__ops::__pred_iter(__pred)); 19959: } 19959: # 533 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: is_partitioned(_InputIterator __first, _InputIterator __last, 19959: _Predicate __pred) 19959: { 19959: __first = std::find_if_not(__first, __last, __pred); 19959: if (__first == __last) 19959: return true; 19959: ++__first; 19959: return std::none_of(__first, __last, __pred); 19959: } 19959: # 555 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: _ForwardIterator 19959: partition_point(_ForwardIterator __first, _ForwardIterator __last, 19959: _Predicate __pred) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: typedef typename iterator_traits<_ForwardIterator>::difference_type 19959: _DistanceType; 19959: 19959: _DistanceType __len = std::distance(__first, __last); 19959: 19959: while (__len > 0) 19959: { 19959: _DistanceType __half = __len >> 1; 19959: _ForwardIterator __middle = __first; 19959: std::advance(__middle, __half); 19959: if (__pred(*__middle)) 19959: { 19959: __first = __middle; 19959: ++__first; 19959: __len = __len - __half - 1; 19959: } 19959: else 19959: __len = __half; 19959: } 19959: return __first; 19959: } 19959: 19959: 19959: template 19959: 19959: _OutputIterator 19959: __remove_copy_if(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, _Predicate __pred) 19959: { 19959: for (; __first != __last; ++__first) 19959: if (!__pred(__first)) 19959: { 19959: *__result = *__first; 19959: ++__result; 19959: } 19959: return __result; 19959: } 19959: # 622 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: remove_copy(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, const _Tp& __value) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__remove_copy_if(__first, __last, __result, 19959: __gnu_cxx::__ops::__iter_equals_val(__value)); 19959: } 19959: # 655 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: remove_copy_if(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, _Predicate __pred) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__remove_copy_if(__first, __last, __result, 19959: __gnu_cxx::__ops::__pred_iter(__pred)); 19959: } 19959: # 690 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: _OutputIterator 19959: copy_if(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, _Predicate __pred) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: for (; __first != __last; ++__first) 19959: if (__pred(*__first)) 19959: { 19959: *__result = *__first; 19959: ++__result; 19959: } 19959: return __result; 19959: } 19959: 19959: template 19959: 19959: _OutputIterator 19959: __copy_n(_InputIterator __first, _Size __n, 19959: _OutputIterator __result, input_iterator_tag) 19959: { 19959: return std::__niter_wrap(__result, 19959: __copy_n_a(__first, __n, 19959: std::__niter_base(__result), true)); 19959: } 19959: 19959: template 19959: 19959: inline _OutputIterator 19959: __copy_n(_RandomAccessIterator __first, _Size __n, 19959: _OutputIterator __result, random_access_iterator_tag) 19959: { return std::copy(__first, __first + __n, __result); } 19959: # 746 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: copy_n(_InputIterator __first, _Size __n, _OutputIterator __result) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: const auto __n2 = std::__size_to_integer(__n); 19959: if (__n2 <= 0) 19959: return __result; 19959: 19959: ; 19959: ; 19959: 19959: return std::__copy_n(__first, __n2, __result, 19959: std::__iterator_category(__first)); 19959: } 19959: # 782 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: pair<_OutputIterator1, _OutputIterator2> 19959: partition_copy(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator1 __out_true, _OutputIterator2 __out_false, 19959: _Predicate __pred) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: for (; __first != __last; ++__first) 19959: if (__pred(*__first)) 19959: { 19959: *__out_true = *__first; 19959: ++__out_true; 19959: } 19959: else 19959: { 19959: *__out_false = *__first; 19959: ++__out_false; 19959: } 19959: 19959: return pair<_OutputIterator1, _OutputIterator2>(__out_true, __out_false); 19959: } 19959: # 833 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: remove(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __value) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__remove_if(__first, __last, 19959: __gnu_cxx::__ops::__iter_equals_val(__value)); 19959: } 19959: # 867 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: remove_if(_ForwardIterator __first, _ForwardIterator __last, 19959: _Predicate __pred) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__remove_if(__first, __last, 19959: __gnu_cxx::__ops::__pred_iter(__pred)); 19959: } 19959: 19959: template 19959: 19959: _ForwardIterator 19959: __adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 19959: _BinaryPredicate __binary_pred) 19959: { 19959: if (__first == __last) 19959: return __last; 19959: _ForwardIterator __next = __first; 19959: while (++__next != __last) 19959: { 19959: if (__binary_pred(__first, __next)) 19959: return __first; 19959: __first = __next; 19959: } 19959: return __last; 19959: } 19959: 19959: template 19959: 19959: _ForwardIterator 19959: __unique(_ForwardIterator __first, _ForwardIterator __last, 19959: _BinaryPredicate __binary_pred) 19959: { 19959: 19959: __first = std::__adjacent_find(__first, __last, __binary_pred); 19959: if (__first == __last) 19959: return __last; 19959: 19959: 19959: _ForwardIterator __dest = __first; 19959: ++__first; 19959: while (++__first != __last) 19959: if (!__binary_pred(__dest, __first)) 19959: *++__dest = std::move(*__first); 19959: return ++__dest; 19959: } 19959: # 936 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: unique(_ForwardIterator __first, _ForwardIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__unique(__first, __last, 19959: __gnu_cxx::__ops::__iter_equal_to_iter()); 19959: } 19959: # 967 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: unique(_ForwardIterator __first, _ForwardIterator __last, 19959: _BinaryPredicate __binary_pred) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__unique(__first, __last, 19959: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _OutputIterator 19959: __unique_copy(_ForwardIterator __first, _ForwardIterator __last, 19959: _OutputIterator __result, _BinaryPredicate __binary_pred, 19959: forward_iterator_tag, output_iterator_tag) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: _ForwardIterator __next = __first; 19959: *__result = *__first; 19959: while (++__next != __last) 19959: if (!__binary_pred(__first, __next)) 19959: { 19959: __first = __next; 19959: *++__result = *__first; 19959: } 19959: return ++__result; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _OutputIterator 19959: __unique_copy(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, _BinaryPredicate __binary_pred, 19959: input_iterator_tag, output_iterator_tag) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: typename iterator_traits<_InputIterator>::value_type __value = *__first; 19959: __decltype(__gnu_cxx::__ops::__iter_comp_val(__binary_pred)) 19959: __rebound_pred 19959: = __gnu_cxx::__ops::__iter_comp_val(__binary_pred); 19959: *__result = __value; 19959: while (++__first != __last) 19959: if (!__rebound_pred(__first, __value)) 19959: { 19959: __value = *__first; 19959: *++__result = __value; 19959: } 19959: return ++__result; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _ForwardIterator 19959: __unique_copy(_InputIterator __first, _InputIterator __last, 19959: _ForwardIterator __result, _BinaryPredicate __binary_pred, 19959: input_iterator_tag, forward_iterator_tag) 19959: { 19959: 19959: 19959: 19959: 19959: *__result = *__first; 19959: while (++__first != __last) 19959: if (!__binary_pred(__result, __first)) 19959: *++__result = *__first; 19959: return ++__result; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: void 19959: __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, 19959: bidirectional_iterator_tag) 19959: { 19959: while (true) 19959: if (__first == __last || __first == --__last) 19959: return; 19959: else 19959: { 19959: std::iter_swap(__first, __last); 19959: ++__first; 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: void 19959: __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: random_access_iterator_tag) 19959: { 19959: if (__first == __last) 19959: return; 19959: --__last; 19959: while (__first < __last) 19959: { 19959: std::iter_swap(__first, __last); 19959: ++__first; 19959: --__last; 19959: } 19959: } 19959: # 1128 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline void 19959: reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) 19959: { 19959: 19959: 19959: 19959: ; 19959: std::__reverse(__first, __last, std::__iterator_category(__first)); 19959: } 19959: # 1156 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: _OutputIterator 19959: reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, 19959: _OutputIterator __result) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: while (__first != __last) 19959: { 19959: --__last; 19959: *__result = *__last; 19959: ++__result; 19959: } 19959: return __result; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _EuclideanRingElement 19959: __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) 19959: { 19959: while (__n != 0) 19959: { 19959: _EuclideanRingElement __t = __m % __n; 19959: __m = __n; 19959: __n = __t; 19959: } 19959: return __m; 19959: } 19959: 19959: inline namespace _V2 { 19959: 19959: 19959: template 19959: 19959: _ForwardIterator 19959: __rotate(_ForwardIterator __first, 19959: _ForwardIterator __middle, 19959: _ForwardIterator __last, 19959: forward_iterator_tag) 19959: { 19959: if (__first == __middle) 19959: return __last; 19959: else if (__last == __middle) 19959: return __first; 19959: 19959: _ForwardIterator __first2 = __middle; 19959: do 19959: { 19959: std::iter_swap(__first, __first2); 19959: ++__first; 19959: ++__first2; 19959: if (__first == __middle) 19959: __middle = __first2; 19959: } 19959: while (__first2 != __last); 19959: 19959: _ForwardIterator __ret = __first; 19959: 19959: __first2 = __middle; 19959: 19959: while (__first2 != __last) 19959: { 19959: std::iter_swap(__first, __first2); 19959: ++__first; 19959: ++__first2; 19959: if (__first == __middle) 19959: __middle = __first2; 19959: else if (__first2 == __last) 19959: __first2 = __middle; 19959: } 19959: return __ret; 19959: } 19959: 19959: 19959: template 19959: 19959: _BidirectionalIterator 19959: __rotate(_BidirectionalIterator __first, 19959: _BidirectionalIterator __middle, 19959: _BidirectionalIterator __last, 19959: bidirectional_iterator_tag) 19959: { 19959: 19959: 19959: 19959: 19959: if (__first == __middle) 19959: return __last; 19959: else if (__last == __middle) 19959: return __first; 19959: 19959: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 19959: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 19959: 19959: while (__first != __middle && __middle != __last) 19959: { 19959: std::iter_swap(__first, --__last); 19959: ++__first; 19959: } 19959: 19959: if (__first == __middle) 19959: { 19959: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 19959: return __last; 19959: } 19959: else 19959: { 19959: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 19959: return __first; 19959: } 19959: } 19959: 19959: 19959: template 19959: 19959: _RandomAccessIterator 19959: __rotate(_RandomAccessIterator __first, 19959: _RandomAccessIterator __middle, 19959: _RandomAccessIterator __last, 19959: random_access_iterator_tag) 19959: { 19959: 19959: 19959: 19959: 19959: if (__first == __middle) 19959: return __last; 19959: else if (__last == __middle) 19959: return __first; 19959: 19959: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 19959: _Distance; 19959: typedef typename iterator_traits<_RandomAccessIterator>::value_type 19959: _ValueType; 19959: 19959: _Distance __n = __last - __first; 19959: _Distance __k = __middle - __first; 19959: 19959: if (__k == __n - __k) 19959: { 19959: std::swap_ranges(__first, __middle, __middle); 19959: return __middle; 19959: } 19959: 19959: _RandomAccessIterator __p = __first; 19959: _RandomAccessIterator __ret = __first + (__last - __middle); 19959: 19959: for (;;) 19959: { 19959: if (__k < __n - __k) 19959: { 19959: if (__is_pod(_ValueType) && __k == 1) 19959: { 19959: _ValueType __t = std::move(*__p); 19959: std::move(__p + 1, __p + __n, __p); 19959: *(__p + __n - 1) = std::move(__t); 19959: return __ret; 19959: } 19959: _RandomAccessIterator __q = __p + __k; 19959: for (_Distance __i = 0; __i < __n - __k; ++ __i) 19959: { 19959: std::iter_swap(__p, __q); 19959: ++__p; 19959: ++__q; 19959: } 19959: __n %= __k; 19959: if (__n == 0) 19959: return __ret; 19959: std::swap(__n, __k); 19959: __k = __n - __k; 19959: } 19959: else 19959: { 19959: __k = __n - __k; 19959: if (__is_pod(_ValueType) && __k == 1) 19959: { 19959: _ValueType __t = std::move(*(__p + __n - 1)); 19959: std::move_backward(__p, __p + __n - 1, __p + __n); 19959: *__p = std::move(__t); 19959: return __ret; 19959: } 19959: _RandomAccessIterator __q = __p + __n; 19959: __p = __q - __k; 19959: for (_Distance __i = 0; __i < __n - __k; ++ __i) 19959: { 19959: --__p; 19959: --__q; 19959: std::iter_swap(__p, __q); 19959: } 19959: __n %= __k; 19959: if (__n == 0) 19959: return __ret; 19959: std::swap(__n, __k); 19959: } 19959: } 19959: } 19959: # 1387 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: rotate(_ForwardIterator __first, _ForwardIterator __middle, 19959: _ForwardIterator __last) 19959: { 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__rotate(__first, __middle, __last, 19959: std::__iterator_category(__first)); 19959: } 19959: 19959: } 19959: # 1425 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, 19959: _ForwardIterator __last, _OutputIterator __result) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::copy(__first, __middle, 19959: std::copy(__middle, __last, __result)); 19959: } 19959: 19959: 19959: template 19959: 19959: _ForwardIterator 19959: __partition(_ForwardIterator __first, _ForwardIterator __last, 19959: _Predicate __pred, forward_iterator_tag) 19959: { 19959: if (__first == __last) 19959: return __first; 19959: 19959: while (__pred(*__first)) 19959: if (++__first == __last) 19959: return __first; 19959: 19959: _ForwardIterator __next = __first; 19959: 19959: while (++__next != __last) 19959: if (__pred(*__next)) 19959: { 19959: std::iter_swap(__first, __next); 19959: ++__first; 19959: } 19959: 19959: return __first; 19959: } 19959: 19959: 19959: template 19959: 19959: _BidirectionalIterator 19959: __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, 19959: _Predicate __pred, bidirectional_iterator_tag) 19959: { 19959: while (true) 19959: { 19959: while (true) 19959: if (__first == __last) 19959: return __first; 19959: else if (__pred(*__first)) 19959: ++__first; 19959: else 19959: break; 19959: --__last; 19959: while (true) 19959: if (__first == __last) 19959: return __first; 19959: else if (!bool(__pred(*__last))) 19959: --__last; 19959: else 19959: break; 19959: std::iter_swap(__first, __last); 19959: ++__first; 19959: } 19959: } 19959: # 1506 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: _ForwardIterator 19959: __stable_partition_adaptive(_ForwardIterator __first, 19959: _ForwardIterator __last, 19959: _Predicate __pred, _Distance __len, 19959: _Pointer __buffer, 19959: _Distance __buffer_size) 19959: { 19959: if (__len == 1) 19959: return __first; 19959: 19959: if (__len <= __buffer_size) 19959: { 19959: _ForwardIterator __result1 = __first; 19959: _Pointer __result2 = __buffer; 19959: 19959: 19959: 19959: 19959: *__result2 = std::move(*__first); 19959: ++__result2; 19959: ++__first; 19959: for (; __first != __last; ++__first) 19959: if (__pred(__first)) 19959: { 19959: *__result1 = std::move(*__first); 19959: ++__result1; 19959: } 19959: else 19959: { 19959: *__result2 = std::move(*__first); 19959: ++__result2; 19959: } 19959: 19959: std::move(__buffer, __result2, __result1); 19959: return __result1; 19959: } 19959: 19959: _ForwardIterator __middle = __first; 19959: std::advance(__middle, __len / 2); 19959: _ForwardIterator __left_split = 19959: std::__stable_partition_adaptive(__first, __middle, __pred, 19959: __len / 2, __buffer, 19959: __buffer_size); 19959: 19959: 19959: 19959: _Distance __right_len = __len - __len / 2; 19959: _ForwardIterator __right_split = 19959: std::__find_if_not_n(__middle, __right_len, __pred); 19959: 19959: if (__right_len) 19959: __right_split = 19959: std::__stable_partition_adaptive(__right_split, __last, __pred, 19959: __right_len, 19959: __buffer, __buffer_size); 19959: 19959: return std::rotate(__left_split, __middle, __right_split); 19959: } 19959: 19959: template 19959: _ForwardIterator 19959: __stable_partition(_ForwardIterator __first, _ForwardIterator __last, 19959: _Predicate __pred) 19959: { 19959: __first = std::__find_if_not(__first, __last, __pred); 19959: 19959: if (__first == __last) 19959: return __first; 19959: 19959: typedef typename iterator_traits<_ForwardIterator>::value_type 19959: _ValueType; 19959: typedef typename iterator_traits<_ForwardIterator>::difference_type 19959: _DistanceType; 19959: 19959: _Temporary_buffer<_ForwardIterator, _ValueType> 19959: __buf(__first, std::distance(__first, __last)); 19959: return 19959: std::__stable_partition_adaptive(__first, __last, __pred, 19959: _DistanceType(__buf.requested_size()), 19959: __buf.begin(), 19959: _DistanceType(__buf.size())); 19959: } 19959: # 1608 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: inline _ForwardIterator 19959: stable_partition(_ForwardIterator __first, _ForwardIterator __last, 19959: _Predicate __pred) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__stable_partition(__first, __last, 19959: __gnu_cxx::__ops::__pred_iter(__pred)); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: void 19959: __heap_select(_RandomAccessIterator __first, 19959: _RandomAccessIterator __middle, 19959: _RandomAccessIterator __last, _Compare __comp) 19959: { 19959: std::__make_heap(__first, __middle, __comp); 19959: for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) 19959: if (__comp(__i, __first)) 19959: std::__pop_heap(__first, __middle, __i, __comp); 19959: } 19959: 19959: 19959: 19959: template 19959: 19959: _RandomAccessIterator 19959: __partial_sort_copy(_InputIterator __first, _InputIterator __last, 19959: _RandomAccessIterator __result_first, 19959: _RandomAccessIterator __result_last, 19959: _Compare __comp) 19959: { 19959: typedef typename iterator_traits<_InputIterator>::value_type 19959: _InputValueType; 19959: typedef iterator_traits<_RandomAccessIterator> _RItTraits; 19959: typedef typename _RItTraits::difference_type _DistanceType; 19959: 19959: if (__result_first == __result_last) 19959: return __result_last; 19959: _RandomAccessIterator __result_real_last = __result_first; 19959: while (__first != __last && __result_real_last != __result_last) 19959: { 19959: *__result_real_last = *__first; 19959: ++__result_real_last; 19959: ++__first; 19959: } 19959: 19959: std::__make_heap(__result_first, __result_real_last, __comp); 19959: while (__first != __last) 19959: { 19959: if (__comp(__first, __result_first)) 19959: std::__adjust_heap(__result_first, _DistanceType(0), 19959: _DistanceType(__result_real_last 19959: - __result_first), 19959: _InputValueType(*__first), __comp); 19959: ++__first; 19959: } 19959: std::__sort_heap(__result_first, __result_real_last, __comp); 19959: return __result_real_last; 19959: } 19959: # 1701 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _RandomAccessIterator 19959: partial_sort_copy(_InputIterator __first, _InputIterator __last, 19959: _RandomAccessIterator __result_first, 19959: _RandomAccessIterator __result_last) 19959: { 19959: # 1716 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__partial_sort_copy(__first, __last, 19959: __result_first, __result_last, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 1751 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _RandomAccessIterator 19959: partial_sort_copy(_InputIterator __first, _InputIterator __last, 19959: _RandomAccessIterator __result_first, 19959: _RandomAccessIterator __result_last, 19959: _Compare __comp) 19959: { 19959: # 1768 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__partial_sort_copy(__first, __last, 19959: __result_first, __result_last, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: 19959: void 19959: __unguarded_linear_insert(_RandomAccessIterator __last, 19959: _Compare __comp) 19959: { 19959: typename iterator_traits<_RandomAccessIterator>::value_type 19959: __val = std::move(*__last); 19959: _RandomAccessIterator __next = __last; 19959: --__next; 19959: while (__comp(__val, __next)) 19959: { 19959: *__last = std::move(*__next); 19959: __last = __next; 19959: --__next; 19959: } 19959: *__last = std::move(__val); 19959: } 19959: 19959: 19959: template 19959: 19959: void 19959: __insertion_sort(_RandomAccessIterator __first, 19959: _RandomAccessIterator __last, _Compare __comp) 19959: { 19959: if (__first == __last) return; 19959: 19959: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 19959: { 19959: if (__comp(__i, __first)) 19959: { 19959: typename iterator_traits<_RandomAccessIterator>::value_type 19959: __val = std::move(*__i); 19959: std::move_backward(__first, __i, __i + 1); 19959: *__first = std::move(__val); 19959: } 19959: else 19959: std::__unguarded_linear_insert(__i, 19959: __gnu_cxx::__ops::__val_comp_iter(__comp)); 19959: } 19959: } 19959: 19959: 19959: template 19959: 19959: inline void 19959: __unguarded_insertion_sort(_RandomAccessIterator __first, 19959: _RandomAccessIterator __last, _Compare __comp) 19959: { 19959: for (_RandomAccessIterator __i = __first; __i != __last; ++__i) 19959: std::__unguarded_linear_insert(__i, 19959: __gnu_cxx::__ops::__val_comp_iter(__comp)); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: enum { _S_threshold = 16 }; 19959: 19959: 19959: template 19959: 19959: void 19959: __final_insertion_sort(_RandomAccessIterator __first, 19959: _RandomAccessIterator __last, _Compare __comp) 19959: { 19959: if (__last - __first > int(_S_threshold)) 19959: { 19959: std::__insertion_sort(__first, __first + int(_S_threshold), __comp); 19959: std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, 19959: __comp); 19959: } 19959: else 19959: std::__insertion_sort(__first, __last, __comp); 19959: } 19959: 19959: 19959: template 19959: 19959: _RandomAccessIterator 19959: __unguarded_partition(_RandomAccessIterator __first, 19959: _RandomAccessIterator __last, 19959: _RandomAccessIterator __pivot, _Compare __comp) 19959: { 19959: while (true) 19959: { 19959: while (__comp(__first, __pivot)) 19959: ++__first; 19959: --__last; 19959: while (__comp(__pivot, __last)) 19959: --__last; 19959: if (!(__first < __last)) 19959: return __first; 19959: std::iter_swap(__first, __last); 19959: ++__first; 19959: } 19959: } 19959: 19959: 19959: template 19959: 19959: inline _RandomAccessIterator 19959: __unguarded_partition_pivot(_RandomAccessIterator __first, 19959: _RandomAccessIterator __last, _Compare __comp) 19959: { 19959: _RandomAccessIterator __mid = __first + (__last - __first) / 2; 19959: std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, 19959: __comp); 19959: return std::__unguarded_partition(__first + 1, __last, __first, __comp); 19959: } 19959: 19959: template 19959: 19959: inline void 19959: __partial_sort(_RandomAccessIterator __first, 19959: _RandomAccessIterator __middle, 19959: _RandomAccessIterator __last, 19959: _Compare __comp) 19959: { 19959: std::__heap_select(__first, __middle, __last, __comp); 19959: std::__sort_heap(__first, __middle, __comp); 19959: } 19959: 19959: 19959: template 19959: 19959: void 19959: __introsort_loop(_RandomAccessIterator __first, 19959: _RandomAccessIterator __last, 19959: _Size __depth_limit, _Compare __comp) 19959: { 19959: while (__last - __first > int(_S_threshold)) 19959: { 19959: if (__depth_limit == 0) 19959: { 19959: std::__partial_sort(__first, __last, __last, __comp); 19959: return; 19959: } 19959: --__depth_limit; 19959: _RandomAccessIterator __cut = 19959: std::__unguarded_partition_pivot(__first, __last, __comp); 19959: std::__introsort_loop(__cut, __last, __depth_limit, __comp); 19959: __last = __cut; 19959: } 19959: } 19959: 19959: 19959: 19959: template 19959: 19959: inline void 19959: __sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _Compare __comp) 19959: { 19959: if (__first != __last) 19959: { 19959: std::__introsort_loop(__first, __last, 19959: std::__lg(__last - __first) * 2, 19959: __comp); 19959: std::__final_insertion_sort(__first, __last, __comp); 19959: } 19959: } 19959: 19959: template 19959: 19959: void 19959: __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, 19959: _RandomAccessIterator __last, _Size __depth_limit, 19959: _Compare __comp) 19959: { 19959: while (__last - __first > 3) 19959: { 19959: if (__depth_limit == 0) 19959: { 19959: std::__heap_select(__first, __nth + 1, __last, __comp); 19959: 19959: std::iter_swap(__first, __nth); 19959: return; 19959: } 19959: --__depth_limit; 19959: _RandomAccessIterator __cut = 19959: std::__unguarded_partition_pivot(__first, __last, __comp); 19959: if (__cut <= __nth) 19959: __first = __cut; 19959: else 19959: __last = __cut; 19959: } 19959: std::__insertion_sort(__first, __last, __comp); 19959: } 19959: # 2002 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __val, _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__lower_bound(__first, __last, __val, 19959: __gnu_cxx::__ops::__iter_comp_val(__comp)); 19959: } 19959: 19959: template 19959: 19959: _ForwardIterator 19959: __upper_bound(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __val, _Compare __comp) 19959: { 19959: typedef typename iterator_traits<_ForwardIterator>::difference_type 19959: _DistanceType; 19959: 19959: _DistanceType __len = std::distance(__first, __last); 19959: 19959: while (__len > 0) 19959: { 19959: _DistanceType __half = __len >> 1; 19959: _ForwardIterator __middle = __first; 19959: std::advance(__middle, __half); 19959: if (__comp(__val, __middle)) 19959: __len = __half; 19959: else 19959: { 19959: __first = __middle; 19959: ++__first; 19959: __len = __len - __half - 1; 19959: } 19959: } 19959: return __first; 19959: } 19959: # 2058 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __val) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__upper_bound(__first, __last, __val, 19959: __gnu_cxx::__ops::__val_less_iter()); 19959: } 19959: # 2089 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __val, _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__upper_bound(__first, __last, __val, 19959: __gnu_cxx::__ops::__val_comp_iter(__comp)); 19959: } 19959: 19959: template 19959: 19959: pair<_ForwardIterator, _ForwardIterator> 19959: __equal_range(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __val, 19959: _CompareItTp __comp_it_val, _CompareTpIt __comp_val_it) 19959: { 19959: typedef typename iterator_traits<_ForwardIterator>::difference_type 19959: _DistanceType; 19959: 19959: _DistanceType __len = std::distance(__first, __last); 19959: 19959: while (__len > 0) 19959: { 19959: _DistanceType __half = __len >> 1; 19959: _ForwardIterator __middle = __first; 19959: std::advance(__middle, __half); 19959: if (__comp_it_val(__middle, __val)) 19959: { 19959: __first = __middle; 19959: ++__first; 19959: __len = __len - __half - 1; 19959: } 19959: else if (__comp_val_it(__val, __middle)) 19959: __len = __half; 19959: else 19959: { 19959: _ForwardIterator __left 19959: = std::__lower_bound(__first, __middle, __val, __comp_it_val); 19959: std::advance(__first, __len); 19959: _ForwardIterator __right 19959: = std::__upper_bound(++__middle, __first, __val, __comp_val_it); 19959: return pair<_ForwardIterator, _ForwardIterator>(__left, __right); 19959: } 19959: } 19959: return pair<_ForwardIterator, _ForwardIterator>(__first, __first); 19959: } 19959: # 2162 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline pair<_ForwardIterator, _ForwardIterator> 19959: equal_range(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __val) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__equal_range(__first, __last, __val, 19959: __gnu_cxx::__ops::__iter_less_val(), 19959: __gnu_cxx::__ops::__val_less_iter()); 19959: } 19959: # 2199 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline pair<_ForwardIterator, _ForwardIterator> 19959: equal_range(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __val, _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: ; 19959: 19959: return std::__equal_range(__first, __last, __val, 19959: __gnu_cxx::__ops::__iter_comp_val(__comp), 19959: __gnu_cxx::__ops::__val_comp_iter(__comp)); 19959: } 19959: # 2233 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: bool 19959: binary_search(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __val) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: _ForwardIterator __i 19959: = std::__lower_bound(__first, __last, __val, 19959: __gnu_cxx::__ops::__iter_less_val()); 19959: return __i != __last && !(__val < *__i); 19959: } 19959: # 2267 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: bool 19959: binary_search(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __val, _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: ; 19959: 19959: _ForwardIterator __i 19959: = std::__lower_bound(__first, __last, __val, 19959: __gnu_cxx::__ops::__iter_comp_val(__comp)); 19959: return __i != __last && !bool(__comp(__val, *__i)); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: void 19959: __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result, _Compare __comp) 19959: { 19959: while (__first1 != __last1 && __first2 != __last2) 19959: { 19959: if (__comp(__first2, __first1)) 19959: { 19959: *__result = std::move(*__first2); 19959: ++__first2; 19959: } 19959: else 19959: { 19959: *__result = std::move(*__first1); 19959: ++__first1; 19959: } 19959: ++__result; 19959: } 19959: if (__first1 != __last1) 19959: std::move(__first1, __last1, __result); 19959: } 19959: 19959: 19959: template 19959: void 19959: __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, 19959: _BidirectionalIterator1 __last1, 19959: _BidirectionalIterator2 __first2, 19959: _BidirectionalIterator2 __last2, 19959: _BidirectionalIterator3 __result, 19959: _Compare __comp) 19959: { 19959: if (__first1 == __last1) 19959: { 19959: std::move_backward(__first2, __last2, __result); 19959: return; 19959: } 19959: else if (__first2 == __last2) 19959: return; 19959: 19959: --__last1; 19959: --__last2; 19959: while (true) 19959: { 19959: if (__comp(__last2, __last1)) 19959: { 19959: *--__result = std::move(*__last1); 19959: if (__first1 == __last1) 19959: { 19959: std::move_backward(__first2, ++__last2, __result); 19959: return; 19959: } 19959: --__last1; 19959: } 19959: else 19959: { 19959: *--__result = std::move(*__last2); 19959: if (__first2 == __last2) 19959: return; 19959: --__last2; 19959: } 19959: } 19959: } 19959: 19959: 19959: template 19959: _BidirectionalIterator1 19959: __rotate_adaptive(_BidirectionalIterator1 __first, 19959: _BidirectionalIterator1 __middle, 19959: _BidirectionalIterator1 __last, 19959: _Distance __len1, _Distance __len2, 19959: _BidirectionalIterator2 __buffer, 19959: _Distance __buffer_size) 19959: { 19959: _BidirectionalIterator2 __buffer_end; 19959: if (__len1 > __len2 && __len2 <= __buffer_size) 19959: { 19959: if (__len2) 19959: { 19959: __buffer_end = std::move(__middle, __last, __buffer); 19959: std::move_backward(__first, __middle, __last); 19959: return std::move(__buffer, __buffer_end, __first); 19959: } 19959: else 19959: return __first; 19959: } 19959: else if (__len1 <= __buffer_size) 19959: { 19959: if (__len1) 19959: { 19959: __buffer_end = std::move(__first, __middle, __buffer); 19959: std::move(__middle, __last, __first); 19959: return std::move_backward(__buffer, __buffer_end, __last); 19959: } 19959: else 19959: return __last; 19959: } 19959: else 19959: return std::rotate(__first, __middle, __last); 19959: } 19959: 19959: 19959: template 19959: void 19959: __merge_adaptive(_BidirectionalIterator __first, 19959: _BidirectionalIterator __middle, 19959: _BidirectionalIterator __last, 19959: _Distance __len1, _Distance __len2, 19959: _Pointer __buffer, _Compare __comp) 19959: { 19959: if (__len1 <= __len2) 19959: { 19959: _Pointer __buffer_end = std::move(__first, __middle, __buffer); 19959: std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, 19959: __first, __comp); 19959: } 19959: else 19959: { 19959: _Pointer __buffer_end = std::move(__middle, __last, __buffer); 19959: std::__move_merge_adaptive_backward(__first, __middle, __buffer, 19959: __buffer_end, __last, __comp); 19959: } 19959: } 19959: 19959: template 19959: void 19959: __merge_adaptive_resize(_BidirectionalIterator __first, 19959: _BidirectionalIterator __middle, 19959: _BidirectionalIterator __last, 19959: _Distance __len1, _Distance __len2, 19959: _Pointer __buffer, _Distance __buffer_size, 19959: _Compare __comp) 19959: { 19959: if (__len1 <= __buffer_size || __len2 <= __buffer_size) 19959: std::__merge_adaptive(__first, __middle, __last, 19959: __len1, __len2, __buffer, __comp); 19959: else 19959: { 19959: _BidirectionalIterator __first_cut = __first; 19959: _BidirectionalIterator __second_cut = __middle; 19959: _Distance __len11 = 0; 19959: _Distance __len22 = 0; 19959: if (__len1 > __len2) 19959: { 19959: __len11 = __len1 / 2; 19959: std::advance(__first_cut, __len11); 19959: __second_cut 19959: = std::__lower_bound(__middle, __last, *__first_cut, 19959: __gnu_cxx::__ops::__iter_comp_val(__comp)); 19959: __len22 = std::distance(__middle, __second_cut); 19959: } 19959: else 19959: { 19959: __len22 = __len2 / 2; 19959: std::advance(__second_cut, __len22); 19959: __first_cut 19959: = std::__upper_bound(__first, __middle, *__second_cut, 19959: __gnu_cxx::__ops::__val_comp_iter(__comp)); 19959: __len11 = std::distance(__first, __first_cut); 19959: } 19959: 19959: _BidirectionalIterator __new_middle 19959: = std::__rotate_adaptive(__first_cut, __middle, __second_cut, 19959: _Distance(__len1 - __len11), __len22, 19959: __buffer, __buffer_size); 19959: std::__merge_adaptive_resize(__first, __first_cut, __new_middle, 19959: __len11, __len22, 19959: __buffer, __buffer_size, __comp); 19959: std::__merge_adaptive_resize(__new_middle, __second_cut, __last, 19959: _Distance(__len1 - __len11), 19959: _Distance(__len2 - __len22), 19959: __buffer, __buffer_size, __comp); 19959: } 19959: } 19959: 19959: 19959: template 19959: void 19959: __merge_without_buffer(_BidirectionalIterator __first, 19959: _BidirectionalIterator __middle, 19959: _BidirectionalIterator __last, 19959: _Distance __len1, _Distance __len2, 19959: _Compare __comp) 19959: { 19959: if (__len1 == 0 || __len2 == 0) 19959: return; 19959: 19959: if (__len1 + __len2 == 2) 19959: { 19959: if (__comp(__middle, __first)) 19959: std::iter_swap(__first, __middle); 19959: return; 19959: } 19959: 19959: _BidirectionalIterator __first_cut = __first; 19959: _BidirectionalIterator __second_cut = __middle; 19959: _Distance __len11 = 0; 19959: _Distance __len22 = 0; 19959: if (__len1 > __len2) 19959: { 19959: __len11 = __len1 / 2; 19959: std::advance(__first_cut, __len11); 19959: __second_cut 19959: = std::__lower_bound(__middle, __last, *__first_cut, 19959: __gnu_cxx::__ops::__iter_comp_val(__comp)); 19959: __len22 = std::distance(__middle, __second_cut); 19959: } 19959: else 19959: { 19959: __len22 = __len2 / 2; 19959: std::advance(__second_cut, __len22); 19959: __first_cut 19959: = std::__upper_bound(__first, __middle, *__second_cut, 19959: __gnu_cxx::__ops::__val_comp_iter(__comp)); 19959: __len11 = std::distance(__first, __first_cut); 19959: } 19959: 19959: _BidirectionalIterator __new_middle 19959: = std::rotate(__first_cut, __middle, __second_cut); 19959: std::__merge_without_buffer(__first, __first_cut, __new_middle, 19959: __len11, __len22, __comp); 19959: std::__merge_without_buffer(__new_middle, __second_cut, __last, 19959: __len1 - __len11, __len2 - __len22, __comp); 19959: } 19959: 19959: template 19959: void 19959: __inplace_merge(_BidirectionalIterator __first, 19959: _BidirectionalIterator __middle, 19959: _BidirectionalIterator __last, 19959: _Compare __comp) 19959: { 19959: typedef typename iterator_traits<_BidirectionalIterator>::value_type 19959: _ValueType; 19959: typedef typename iterator_traits<_BidirectionalIterator>::difference_type 19959: _DistanceType; 19959: 19959: if (__first == __middle || __middle == __last) 19959: return; 19959: 19959: const _DistanceType __len1 = std::distance(__first, __middle); 19959: const _DistanceType __len2 = std::distance(__middle, __last); 19959: 19959: 19959: typedef _Temporary_buffer<_BidirectionalIterator, _ValueType> _TmpBuf; 19959: 19959: 19959: _TmpBuf __buf(__first, std::min(__len1, __len2)); 19959: 19959: if (__builtin_expect(__buf.size() == __buf.requested_size(), true)) 19959: std::__merge_adaptive 19959: (__first, __middle, __last, __len1, __len2, __buf.begin(), __comp); 19959: else if (__builtin_expect(__buf.begin() == 0, false)) 19959: std::__merge_without_buffer 19959: (__first, __middle, __last, __len1, __len2, __comp); 19959: else 19959: std::__merge_adaptive_resize 19959: (__first, __middle, __last, __len1, __len2, __buf.begin(), 19959: _DistanceType(__buf.size()), __comp); 19959: 19959: 19959: 19959: 19959: } 19959: # 2582 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: inline void 19959: inplace_merge(_BidirectionalIterator __first, 19959: _BidirectionalIterator __middle, 19959: _BidirectionalIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: 19959: std::__inplace_merge(__first, __middle, __last, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 2623 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: inline void 19959: inplace_merge(_BidirectionalIterator __first, 19959: _BidirectionalIterator __middle, 19959: _BidirectionalIterator __last, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: 19959: std::__inplace_merge(__first, __middle, __last, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: 19959: 19959: template 19959: _OutputIterator 19959: __move_merge(_InputIterator __first1, _InputIterator __last1, 19959: _InputIterator __first2, _InputIterator __last2, 19959: _OutputIterator __result, _Compare __comp) 19959: { 19959: while (__first1 != __last1 && __first2 != __last2) 19959: { 19959: if (__comp(__first2, __first1)) 19959: { 19959: *__result = std::move(*__first2); 19959: ++__first2; 19959: } 19959: else 19959: { 19959: *__result = std::move(*__first1); 19959: ++__first1; 19959: } 19959: ++__result; 19959: } 19959: return std::move(__first2, __last2, std::move(__first1, __last1, __result)) 19959: 19959: ; 19959: } 19959: 19959: template 19959: void 19959: __merge_sort_loop(_RandomAccessIterator1 __first, 19959: _RandomAccessIterator1 __last, 19959: _RandomAccessIterator2 __result, _Distance __step_size, 19959: _Compare __comp) 19959: { 19959: const _Distance __two_step = 2 * __step_size; 19959: 19959: while (__last - __first >= __two_step) 19959: { 19959: __result = std::__move_merge(__first, __first + __step_size, 19959: __first + __step_size, 19959: __first + __two_step, 19959: __result, __comp); 19959: __first += __two_step; 19959: } 19959: __step_size = std::min(_Distance(__last - __first), __step_size); 19959: 19959: std::__move_merge(__first, __first + __step_size, 19959: __first + __step_size, __last, __result, __comp); 19959: } 19959: 19959: template 19959: 19959: void 19959: __chunk_insertion_sort(_RandomAccessIterator __first, 19959: _RandomAccessIterator __last, 19959: _Distance __chunk_size, _Compare __comp) 19959: { 19959: while (__last - __first >= __chunk_size) 19959: { 19959: std::__insertion_sort(__first, __first + __chunk_size, __comp); 19959: __first += __chunk_size; 19959: } 19959: std::__insertion_sort(__first, __last, __comp); 19959: } 19959: 19959: enum { _S_chunk_size = 7 }; 19959: 19959: template 19959: void 19959: __merge_sort_with_buffer(_RandomAccessIterator __first, 19959: _RandomAccessIterator __last, 19959: _Pointer __buffer, _Compare __comp) 19959: { 19959: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 19959: _Distance; 19959: 19959: const _Distance __len = __last - __first; 19959: const _Pointer __buffer_last = __buffer + __len; 19959: 19959: _Distance __step_size = _S_chunk_size; 19959: std::__chunk_insertion_sort(__first, __last, __step_size, __comp); 19959: 19959: while (__step_size < __len) 19959: { 19959: std::__merge_sort_loop(__first, __last, __buffer, 19959: __step_size, __comp); 19959: __step_size *= 2; 19959: std::__merge_sort_loop(__buffer, __buffer_last, __first, 19959: __step_size, __comp); 19959: __step_size *= 2; 19959: } 19959: } 19959: 19959: template 19959: void 19959: __stable_sort_adaptive(_RandomAccessIterator __first, 19959: _RandomAccessIterator __middle, 19959: _RandomAccessIterator __last, 19959: _Pointer __buffer, _Compare __comp) 19959: { 19959: std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); 19959: std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); 19959: 19959: std::__merge_adaptive(__first, __middle, __last, 19959: __middle - __first, __last - __middle, 19959: __buffer, __comp); 19959: } 19959: 19959: template 19959: void 19959: __stable_sort_adaptive_resize(_RandomAccessIterator __first, 19959: _RandomAccessIterator __last, 19959: _Pointer __buffer, _Distance __buffer_size, 19959: _Compare __comp) 19959: { 19959: const _Distance __len = (__last - __first + 1) / 2; 19959: const _RandomAccessIterator __middle = __first + __len; 19959: if (__len > __buffer_size) 19959: { 19959: std::__stable_sort_adaptive_resize(__first, __middle, __buffer, 19959: __buffer_size, __comp); 19959: std::__stable_sort_adaptive_resize(__middle, __last, __buffer, 19959: __buffer_size, __comp); 19959: std::__merge_adaptive_resize(__first, __middle, __last, 19959: _Distance(__middle - __first), 19959: _Distance(__last - __middle), 19959: __buffer, __buffer_size, 19959: __comp); 19959: } 19959: else 19959: std::__stable_sort_adaptive(__first, __middle, __last, 19959: __buffer, __comp); 19959: } 19959: 19959: 19959: template 19959: void 19959: __inplace_stable_sort(_RandomAccessIterator __first, 19959: _RandomAccessIterator __last, _Compare __comp) 19959: { 19959: if (__last - __first < 15) 19959: { 19959: std::__insertion_sort(__first, __last, __comp); 19959: return; 19959: } 19959: _RandomAccessIterator __middle = __first + (__last - __first) / 2; 19959: std::__inplace_stable_sort(__first, __middle, __comp); 19959: std::__inplace_stable_sort(__middle, __last, __comp); 19959: std::__merge_without_buffer(__first, __middle, __last, 19959: __middle - __first, 19959: __last - __middle, 19959: __comp); 19959: } 19959: # 2809 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: bool 19959: __includes(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _Compare __comp) 19959: { 19959: while (__first1 != __last1 && __first2 != __last2) 19959: { 19959: if (__comp(__first2, __first1)) 19959: return false; 19959: if (!__comp(__first1, __first2)) 19959: ++__first2; 19959: ++__first1; 19959: } 19959: 19959: return __first2 == __last2; 19959: } 19959: # 2847 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: includes(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__includes(__first1, __last1, __first2, __last2, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 2892 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: includes(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__includes(__first1, __last1, __first2, __last2, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: # 2928 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: bool 19959: __next_permutation(_BidirectionalIterator __first, 19959: _BidirectionalIterator __last, _Compare __comp) 19959: { 19959: if (__first == __last) 19959: return false; 19959: _BidirectionalIterator __i = __first; 19959: ++__i; 19959: if (__i == __last) 19959: return false; 19959: __i = __last; 19959: --__i; 19959: 19959: for(;;) 19959: { 19959: _BidirectionalIterator __ii = __i; 19959: --__i; 19959: if (__comp(__i, __ii)) 19959: { 19959: _BidirectionalIterator __j = __last; 19959: while (!__comp(__i, --__j)) 19959: {} 19959: std::iter_swap(__i, __j); 19959: std::__reverse(__ii, __last, 19959: std::__iterator_category(__first)); 19959: return true; 19959: } 19959: if (__i == __first) 19959: { 19959: std::__reverse(__first, __last, 19959: std::__iterator_category(__first)); 19959: return false; 19959: } 19959: } 19959: } 19959: # 2978 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: next_permutation(_BidirectionalIterator __first, 19959: _BidirectionalIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__next_permutation 19959: (__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 3011 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: next_permutation(_BidirectionalIterator __first, 19959: _BidirectionalIterator __last, _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__next_permutation 19959: (__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: template 19959: 19959: bool 19959: __prev_permutation(_BidirectionalIterator __first, 19959: _BidirectionalIterator __last, _Compare __comp) 19959: { 19959: if (__first == __last) 19959: return false; 19959: _BidirectionalIterator __i = __first; 19959: ++__i; 19959: if (__i == __last) 19959: return false; 19959: __i = __last; 19959: --__i; 19959: 19959: for(;;) 19959: { 19959: _BidirectionalIterator __ii = __i; 19959: --__i; 19959: if (__comp(__ii, __i)) 19959: { 19959: _BidirectionalIterator __j = __last; 19959: while (!__comp(--__j, __i)) 19959: {} 19959: std::iter_swap(__i, __j); 19959: std::__reverse(__ii, __last, 19959: std::__iterator_category(__first)); 19959: return true; 19959: } 19959: if (__i == __first) 19959: { 19959: std::__reverse(__first, __last, 19959: std::__iterator_category(__first)); 19959: return false; 19959: } 19959: } 19959: } 19959: # 3081 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: prev_permutation(_BidirectionalIterator __first, 19959: _BidirectionalIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__prev_permutation(__first, __last, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 3114 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: prev_permutation(_BidirectionalIterator __first, 19959: _BidirectionalIterator __last, _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__prev_permutation(__first, __last, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _OutputIterator 19959: __replace_copy_if(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, 19959: _Predicate __pred, const _Tp& __new_value) 19959: { 19959: for (; __first != __last; ++__first, (void)++__result) 19959: if (__pred(__first)) 19959: *__result = __new_value; 19959: else 19959: *__result = *__first; 19959: return __result; 19959: } 19959: # 3166 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: replace_copy(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, 19959: const _Tp& __old_value, const _Tp& __new_value) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__replace_copy_if(__first, __last, __result, 19959: __gnu_cxx::__ops::__iter_equals_val(__old_value), 19959: __new_value); 19959: } 19959: # 3201 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: replace_copy_if(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, 19959: _Predicate __pred, const _Tp& __new_value) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__replace_copy_if(__first, __last, __result, 19959: __gnu_cxx::__ops::__pred_iter(__pred), 19959: __new_value); 19959: } 19959: # 3230 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: is_sorted(_ForwardIterator __first, _ForwardIterator __last) 19959: { return std::is_sorted_until(__first, __last) == __last; } 19959: # 3245 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: is_sorted(_ForwardIterator __first, _ForwardIterator __last, 19959: _Compare __comp) 19959: { return std::is_sorted_until(__first, __last, __comp) == __last; } 19959: 19959: template 19959: 19959: _ForwardIterator 19959: __is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 19959: _Compare __comp) 19959: { 19959: if (__first == __last) 19959: return __last; 19959: 19959: _ForwardIterator __next = __first; 19959: for (++__next; __next != __last; __first = __next, (void)++__next) 19959: if (__comp(__next, __first)) 19959: return __next; 19959: return __next; 19959: } 19959: # 3276 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__is_sorted_until(__first, __last, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 3301 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__is_sorted_until(__first, __last, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: # 3327 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: constexpr 19959: inline pair 19959: minmax(const _Tp& __a, const _Tp& __b) 19959: { 19959: 19959: 19959: 19959: return __b < __a ? pair(__b, __a) 19959: : pair(__a, __b); 19959: } 19959: # 3348 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: constexpr 19959: inline pair 19959: minmax(const _Tp& __a, const _Tp& __b, _Compare __comp) 19959: { 19959: return __comp(__b, __a) ? pair(__b, __a) 19959: : pair(__a, __b); 19959: } 19959: 19959: template 19959: constexpr 19959: pair<_ForwardIterator, _ForwardIterator> 19959: __minmax_element(_ForwardIterator __first, _ForwardIterator __last, 19959: _Compare __comp) 19959: { 19959: _ForwardIterator __next = __first; 19959: if (__first == __last 19959: || ++__next == __last) 19959: return std::make_pair(__first, __first); 19959: 19959: _ForwardIterator __min{}, __max{}; 19959: if (__comp(__next, __first)) 19959: { 19959: __min = __next; 19959: __max = __first; 19959: } 19959: else 19959: { 19959: __min = __first; 19959: __max = __next; 19959: } 19959: 19959: __first = __next; 19959: ++__first; 19959: 19959: while (__first != __last) 19959: { 19959: __next = __first; 19959: if (++__next == __last) 19959: { 19959: if (__comp(__first, __min)) 19959: __min = __first; 19959: else if (!__comp(__first, __max)) 19959: __max = __first; 19959: break; 19959: } 19959: 19959: if (__comp(__next, __first)) 19959: { 19959: if (__comp(__next, __min)) 19959: __min = __next; 19959: if (!__comp(__first, __max)) 19959: __max = __first; 19959: } 19959: else 19959: { 19959: if (__comp(__first, __min)) 19959: __min = __first; 19959: if (!__comp(__next, __max)) 19959: __max = __next; 19959: } 19959: 19959: __first = __next; 19959: ++__first; 19959: } 19959: 19959: return std::make_pair(__min, __max); 19959: } 19959: # 3428 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: constexpr 19959: inline pair<_ForwardIterator, _ForwardIterator> 19959: minmax_element(_ForwardIterator __first, _ForwardIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__minmax_element(__first, __last, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 3456 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: constexpr 19959: inline pair<_ForwardIterator, _ForwardIterator> 19959: minmax_element(_ForwardIterator __first, _ForwardIterator __last, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__minmax_element(__first, __last, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: template 19959: constexpr 19959: inline pair<_Tp, _Tp> 19959: minmax(initializer_list<_Tp> __l) 19959: { 19959: ; 19959: pair __p = 19959: std::__minmax_element(__l.begin(), __l.end(), 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: return std::make_pair(*__p.first, *__p.second); 19959: } 19959: 19959: template 19959: constexpr 19959: inline pair<_Tp, _Tp> 19959: minmax(initializer_list<_Tp> __l, _Compare __comp) 19959: { 19959: ; 19959: pair __p = 19959: std::__minmax_element(__l.begin(), __l.end(), 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: return std::make_pair(*__p.first, *__p.second); 19959: } 19959: # 3512 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _BinaryPredicate __pred) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__is_permutation(__first1, __last1, __first2, 19959: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 19959: } 19959: 19959: 19959: template 19959: 19959: bool 19959: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 19959: _BinaryPredicate __pred) 19959: { 19959: using _Cat1 19959: = typename iterator_traits<_ForwardIterator1>::iterator_category; 19959: using _Cat2 19959: = typename iterator_traits<_ForwardIterator2>::iterator_category; 19959: using _It1_is_RA = is_same<_Cat1, random_access_iterator_tag>; 19959: using _It2_is_RA = is_same<_Cat2, random_access_iterator_tag>; 19959: constexpr bool __ra_iters = _It1_is_RA() && _It2_is_RA(); 19959: if (__ra_iters) 19959: { 19959: auto __d1 = std::distance(__first1, __last1); 19959: auto __d2 = std::distance(__first2, __last2); 19959: if (__d1 != __d2) 19959: return false; 19959: } 19959: 19959: 19959: 19959: for (; __first1 != __last1 && __first2 != __last2; 19959: ++__first1, (void)++__first2) 19959: if (!__pred(__first1, __first2)) 19959: break; 19959: 19959: if (__ra_iters) 19959: { 19959: if (__first1 == __last1) 19959: return true; 19959: } 19959: else 19959: { 19959: auto __d1 = std::distance(__first1, __last1); 19959: auto __d2 = std::distance(__first2, __last2); 19959: if (__d1 == 0 && __d2 == 0) 19959: return true; 19959: if (__d1 != __d2) 19959: return false; 19959: } 19959: 19959: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 19959: { 19959: if (__scan != std::__find_if(__first1, __scan, 19959: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 19959: continue; 19959: 19959: auto __matches = std::__count_if(__first2, __last2, 19959: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 19959: if (0 == __matches 19959: || std::__count_if(__scan, __last1, 19959: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 19959: != __matches) 19959: return false; 19959: } 19959: return true; 19959: } 19959: # 3607 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 19959: { 19959: ; 19959: ; 19959: 19959: return 19959: std::__is_permutation(__first1, __last1, __first2, __last2, 19959: __gnu_cxx::__ops::__iter_equal_to_iter()); 19959: } 19959: # 3635 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline bool 19959: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 19959: _BinaryPredicate __pred) 19959: { 19959: ; 19959: ; 19959: 19959: return std::__is_permutation(__first1, __last1, __first2, __last2, 19959: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 19959: } 19959: # 3665 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: constexpr const _Tp& 19959: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(!(__hi < __lo))) __builtin_unreachable(); } while (false); 19959: return std::min(std::max(__val, __lo), __hi); 19959: } 19959: # 3685 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: constexpr const _Tp& 19959: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Compare __comp) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(!__comp(__hi, __lo))) __builtin_unreachable(); } while (false); 19959: return std::min(std::max(__val, __lo, __comp), __hi, __comp); 19959: } 19959: # 3717 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: pair<_IntType, _IntType> 19959: __gen_two_uniform_ints(_IntType __b0, _IntType __b1, 19959: _UniformRandomBitGenerator&& __g) 19959: { 19959: _IntType __x 19959: = uniform_int_distribution<_IntType>{0, (__b0 * __b1) - 1}(__g); 19959: return std::make_pair(__x / __b1, __x % __b1); 19959: } 19959: # 3739 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: void 19959: shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _UniformRandomNumberGenerator&& __g) 19959: { 19959: 19959: 19959: 19959: ; 19959: 19959: if (__first == __last) 19959: return; 19959: 19959: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 19959: _DistanceType; 19959: 19959: typedef typename std::make_unsigned<_DistanceType>::type __ud_type; 19959: typedef typename std::uniform_int_distribution<__ud_type> __distr_type; 19959: typedef typename __distr_type::param_type __p_type; 19959: 19959: typedef typename remove_reference<_UniformRandomNumberGenerator>::type 19959: _Gen; 19959: typedef typename common_type::type 19959: __uc_type; 19959: 19959: const __uc_type __urngrange = __g.max() - __g.min(); 19959: const __uc_type __urange = __uc_type(__last - __first); 19959: 19959: if (__urngrange / __urange >= __urange) 19959: 19959: { 19959: _RandomAccessIterator __i = __first + 1; 19959: 19959: 19959: 19959: 19959: 19959: if ((__urange % 2) == 0) 19959: { 19959: __distr_type __d{0, 1}; 19959: std::iter_swap(__i++, __first + __d(__g)); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: while (__i != __last) 19959: { 19959: const __uc_type __swap_range = __uc_type(__i - __first) + 1; 19959: 19959: const pair<__uc_type, __uc_type> __pospos = 19959: __gen_two_uniform_ints(__swap_range, __swap_range + 1, __g); 19959: 19959: std::iter_swap(__i++, __first + __pospos.first); 19959: std::iter_swap(__i++, __first + __pospos.second); 19959: } 19959: 19959: return; 19959: } 19959: 19959: __distr_type __d; 19959: 19959: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 19959: std::iter_swap(__i, __first + __d(__g, __p_type(0, __i - __first))); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: # 3824 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: _Function 19959: for_each(_InputIterator __first, _InputIterator __last, _Function __f) 19959: { 19959: 19959: 19959: ; 19959: for (; __first != __last; ++__first) 19959: __f(*__first); 19959: return __f; 19959: } 19959: # 3850 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: _InputIterator 19959: for_each_n(_InputIterator __first, _Size __n, _Function __f) 19959: { 19959: auto __n2 = std::__size_to_integer(__n); 19959: using _Cat = typename iterator_traits<_InputIterator>::iterator_category; 19959: if constexpr (is_base_of_v) 19959: { 19959: if (__n2 <= 0) 19959: return __first; 19959: auto __last = __first + __n2; 19959: std::for_each(__first, __last, std::move(__f)); 19959: return __last; 19959: } 19959: else 19959: { 19959: while (__n2-->0) 19959: { 19959: __f(*__first); 19959: ++__first; 19959: } 19959: return __first; 19959: } 19959: } 19959: # 3886 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _InputIterator 19959: find(_InputIterator __first, _InputIterator __last, 19959: const _Tp& __val) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: return std::__find_if(__first, __last, 19959: __gnu_cxx::__ops::__iter_equals_val(__val)); 19959: } 19959: # 3911 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _InputIterator 19959: find_if(_InputIterator __first, _InputIterator __last, 19959: _Predicate __pred) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__find_if(__first, __last, 19959: __gnu_cxx::__ops::__pred_iter(__pred)); 19959: } 19959: # 3943 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: _InputIterator 19959: find_first_of(_InputIterator __first1, _InputIterator __last1, 19959: _ForwardIterator __first2, _ForwardIterator __last2) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: for (; __first1 != __last1; ++__first1) 19959: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 19959: if (*__first1 == *__iter) 19959: return __first1; 19959: return __last1; 19959: } 19959: # 3984 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: _InputIterator 19959: find_first_of(_InputIterator __first1, _InputIterator __last1, 19959: _ForwardIterator __first2, _ForwardIterator __last2, 19959: _BinaryPredicate __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: for (; __first1 != __last1; ++__first1) 19959: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 19959: if (__comp(*__first1, *__iter)) 19959: return __first1; 19959: return __last1; 19959: } 19959: # 4017 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: adjacent_find(_ForwardIterator __first, _ForwardIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__adjacent_find(__first, __last, 19959: __gnu_cxx::__ops::__iter_equal_to_iter()); 19959: } 19959: # 4043 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 19959: _BinaryPredicate __binary_pred) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__adjacent_find(__first, __last, 19959: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 19959: } 19959: # 4069 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline typename iterator_traits<_InputIterator>::difference_type 19959: count(_InputIterator __first, _InputIterator __last, const _Tp& __value) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__count_if(__first, __last, 19959: __gnu_cxx::__ops::__iter_equals_val(__value)); 19959: } 19959: # 4093 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline typename iterator_traits<_InputIterator>::difference_type 19959: count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__count_if(__first, __last, 19959: __gnu_cxx::__ops::__pred_iter(__pred)); 19959: } 19959: # 4134 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator1 19959: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__search(__first1, __last1, __first2, __last2, 19959: __gnu_cxx::__ops::__iter_equal_to_iter()); 19959: } 19959: # 4174 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator1 19959: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 19959: _BinaryPredicate __predicate) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__search(__first1, __last1, __first2, __last2, 19959: __gnu_cxx::__ops::__iter_comp_iter(__predicate)); 19959: } 19959: # 4210 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: search_n(_ForwardIterator __first, _ForwardIterator __last, 19959: _Integer __count, const _Tp& __val) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__search_n(__first, __last, __count, 19959: __gnu_cxx::__ops::__iter_equals_val(__val)); 19959: } 19959: # 4244 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: search_n(_ForwardIterator __first, _ForwardIterator __last, 19959: _Integer __count, const _Tp& __val, 19959: _BinaryPredicate __binary_pred) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__search_n(__first, __last, __count, 19959: __gnu_cxx::__ops::__iter_comp_val(__binary_pred, __val)); 19959: } 19959: # 4270 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: search(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Searcher& __searcher) 19959: { return __searcher(__first, __last).first; } 19959: # 4294 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: _OutputIterator 19959: transform(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, _UnaryOperation __unary_op) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: for (; __first != __last; ++__first, (void)++__result) 19959: *__result = __unary_op(*__first); 19959: return __result; 19959: } 19959: # 4332 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: _OutputIterator 19959: transform(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _OutputIterator __result, 19959: _BinaryOperation __binary_op) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: for (; __first1 != __last1; ++__first1, (void)++__first2, ++__result) 19959: *__result = __binary_op(*__first1, *__first2); 19959: return __result; 19959: } 19959: # 4366 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: void 19959: replace(_ForwardIterator __first, _ForwardIterator __last, 19959: const _Tp& __old_value, const _Tp& __new_value) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: for (; __first != __last; ++__first) 19959: if (*__first == __old_value) 19959: *__first = __new_value; 19959: } 19959: # 4399 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: void 19959: replace_if(_ForwardIterator __first, _ForwardIterator __last, 19959: _Predicate __pred, const _Tp& __new_value) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: for (; __first != __last; ++__first) 19959: if (__pred(*__first)) 19959: *__first = __new_value; 19959: } 19959: # 4431 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: void 19959: generate(_ForwardIterator __first, _ForwardIterator __last, 19959: _Generator __gen) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: for (; __first != __last; ++__first) 19959: *__first = __gen(); 19959: } 19959: # 4464 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: _OutputIterator 19959: generate_n(_OutputIterator __first, _Size __n, _Generator __gen) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: typedef __decltype(std::__size_to_integer(__n)) _IntSize; 19959: for (_IntSize __niter = std::__size_to_integer(__n); 19959: __niter > 0; --__niter, (void) ++__first) 19959: *__first = __gen(); 19959: return __first; 19959: } 19959: # 4499 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: unique_copy(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: if (__first == __last) 19959: return __result; 19959: return std::__unique_copy(__first, __last, __result, 19959: __gnu_cxx::__ops::__iter_equal_to_iter(), 19959: std::__iterator_category(__first), 19959: std::__iterator_category(__result)); 19959: } 19959: # 4539 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: unique_copy(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, 19959: _BinaryPredicate __binary_pred) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: if (__first == __last) 19959: return __result; 19959: return std::__unique_copy(__first, __last, __result, 19959: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred), 19959: std::__iterator_category(__first), 19959: std::__iterator_category(__result)); 19959: } 19959: # 4578 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 19959: inline void 19959: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) 19959: { 19959: 19959: 19959: 19959: ; 19959: 19959: if (__first != __last) 19959: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 19959: { 19959: 19959: _RandomAccessIterator __j = __first 19959: + std::rand() % ((__i - __first) + 1); 19959: if (__i != __j) 19959: std::iter_swap(__i, __j); 19959: } 19959: } 19959: # 4617 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 19959: void 19959: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: 19959: _RandomNumberGenerator&& __rand) 19959: 19959: 19959: 19959: { 19959: 19959: 19959: 19959: ; 19959: 19959: if (__first == __last) 19959: return; 19959: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 19959: { 19959: _RandomAccessIterator __j = __first + __rand((__i - __first) + 1); 19959: if (__i != __j) 19959: std::iter_swap(__i, __j); 19959: } 19959: } 19959: # 4659 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _ForwardIterator 19959: partition(_ForwardIterator __first, _ForwardIterator __last, 19959: _Predicate __pred) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: return std::__partition(__first, __last, __pred, 19959: std::__iterator_category(__first)); 19959: } 19959: # 4694 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline void 19959: partial_sort(_RandomAccessIterator __first, 19959: _RandomAccessIterator __middle, 19959: _RandomAccessIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: 19959: std::__partial_sort(__first, __middle, __last, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 4733 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline void 19959: partial_sort(_RandomAccessIterator __first, 19959: _RandomAccessIterator __middle, 19959: _RandomAccessIterator __last, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: 19959: std::__partial_sort(__first, __middle, __last, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: # 4770 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline void 19959: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 19959: _RandomAccessIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: 19959: if (__first == __last || __nth == __last) 19959: return; 19959: 19959: std::__introselect(__first, __nth, __last, 19959: std::__lg(__last - __first) * 2, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 4810 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline void 19959: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 19959: _RandomAccessIterator __last, _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: 19959: if (__first == __last || __nth == __last) 19959: return; 19959: 19959: std::__introselect(__first, __nth, __last, 19959: std::__lg(__last - __first) * 2, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: # 4848 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline void 19959: sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 4879 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline void 19959: sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: template 19959: 19959: _OutputIterator 19959: __merge(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result, _Compare __comp) 19959: { 19959: while (__first1 != __last1 && __first2 != __last2) 19959: { 19959: if (__comp(__first2, __first1)) 19959: { 19959: *__result = *__first2; 19959: ++__first2; 19959: } 19959: else 19959: { 19959: *__result = *__first1; 19959: ++__first1; 19959: } 19959: ++__result; 19959: } 19959: return std::copy(__first2, __last2, 19959: std::copy(__first1, __last1, __result)); 19959: } 19959: # 4942 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: merge(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__merge(__first1, __last1, 19959: __first2, __last2, __result, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 4993 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: merge(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result, _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__merge(__first1, __last1, 19959: __first2, __last2, __result, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: template 19959: inline void 19959: __stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _Compare __comp) 19959: { 19959: typedef typename iterator_traits<_RandomAccessIterator>::value_type 19959: _ValueType; 19959: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 19959: _DistanceType; 19959: 19959: if (__first == __last) 19959: return; 19959: 19959: 19959: typedef _Temporary_buffer<_RandomAccessIterator, _ValueType> _TmpBuf; 19959: 19959: 19959: _TmpBuf __buf(__first, (__last - __first + 1) / 2); 19959: 19959: if (__builtin_expect(__buf.requested_size() == __buf.size(), true)) 19959: std::__stable_sort_adaptive(__first, 19959: __first + _DistanceType(__buf.size()), 19959: __last, __buf.begin(), __comp); 19959: else if (__builtin_expect(__buf.begin() == 0, false)) 19959: std::__inplace_stable_sort(__first, __last, __comp); 19959: else 19959: std::__stable_sort_adaptive_resize(__first, __last, __buf.begin(), 19959: _DistanceType(__buf.size()), __comp); 19959: 19959: 19959: 19959: } 19959: # 5071 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: inline void 19959: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: std::__stable_sort(__first, __last, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 5105 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: inline void 19959: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: std::__stable_sort(__first, __last, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: template 19959: 19959: _OutputIterator 19959: __set_union(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result, _Compare __comp) 19959: { 19959: while (__first1 != __last1 && __first2 != __last2) 19959: { 19959: if (__comp(__first1, __first2)) 19959: { 19959: *__result = *__first1; 19959: ++__first1; 19959: } 19959: else if (__comp(__first2, __first1)) 19959: { 19959: *__result = *__first2; 19959: ++__first2; 19959: } 19959: else 19959: { 19959: *__result = *__first1; 19959: ++__first1; 19959: ++__first2; 19959: } 19959: ++__result; 19959: } 19959: return std::copy(__first2, __last2, 19959: std::copy(__first1, __last1, __result)); 19959: } 19959: # 5175 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__set_union(__first1, __last1, 19959: __first2, __last2, __result, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 5226 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result, _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__set_union(__first1, __last1, 19959: __first2, __last2, __result, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: template 19959: 19959: _OutputIterator 19959: __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result, _Compare __comp) 19959: { 19959: while (__first1 != __last1 && __first2 != __last2) 19959: if (__comp(__first1, __first2)) 19959: ++__first1; 19959: else if (__comp(__first2, __first1)) 19959: ++__first2; 19959: else 19959: { 19959: *__result = *__first1; 19959: ++__first1; 19959: ++__first2; 19959: ++__result; 19959: } 19959: return __result; 19959: } 19959: # 5299 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__set_intersection(__first1, __last1, 19959: __first2, __last2, __result, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 5349 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result, _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__set_intersection(__first1, __last1, 19959: __first2, __last2, __result, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: template 19959: 19959: _OutputIterator 19959: __set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result, _Compare __comp) 19959: { 19959: while (__first1 != __last1 && __first2 != __last2) 19959: if (__comp(__first1, __first2)) 19959: { 19959: *__result = *__first1; 19959: ++__first1; 19959: ++__result; 19959: } 19959: else if (__comp(__first2, __first1)) 19959: ++__first2; 19959: else 19959: { 19959: ++__first1; 19959: ++__first2; 19959: } 19959: return std::copy(__first1, __last1, __result); 19959: } 19959: # 5424 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__set_difference(__first1, __last1, 19959: __first2, __last2, __result, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 5476 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result, _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__set_difference(__first1, __last1, 19959: __first2, __last2, __result, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: template 19959: 19959: _OutputIterator 19959: __set_symmetric_difference(_InputIterator1 __first1, 19959: _InputIterator1 __last1, 19959: _InputIterator2 __first2, 19959: _InputIterator2 __last2, 19959: _OutputIterator __result, 19959: _Compare __comp) 19959: { 19959: while (__first1 != __last1 && __first2 != __last2) 19959: if (__comp(__first1, __first2)) 19959: { 19959: *__result = *__first1; 19959: ++__first1; 19959: ++__result; 19959: } 19959: else if (__comp(__first2, __first1)) 19959: { 19959: *__result = *__first2; 19959: ++__first2; 19959: ++__result; 19959: } 19959: else 19959: { 19959: ++__first1; 19959: ++__first2; 19959: } 19959: return std::copy(__first2, __last2, 19959: std::copy(__first1, __last1, __result)); 19959: } 19959: # 5557 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__set_symmetric_difference(__first1, __last1, 19959: __first2, __last2, __result, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 5609 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: 19959: inline _OutputIterator 19959: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _InputIterator2 __last2, 19959: _OutputIterator __result, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: ; 19959: ; 19959: 19959: return std::__set_symmetric_difference(__first1, __last1, 19959: __first2, __last2, __result, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: template 19959: constexpr 19959: _ForwardIterator 19959: __min_element(_ForwardIterator __first, _ForwardIterator __last, 19959: _Compare __comp) 19959: { 19959: if (__first == __last) 19959: return __first; 19959: _ForwardIterator __result = __first; 19959: while (++__first != __last) 19959: if (__comp(__first, __result)) 19959: __result = __first; 19959: return __result; 19959: } 19959: # 5663 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: constexpr 19959: _ForwardIterator 19959: inline min_element(_ForwardIterator __first, _ForwardIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__min_element(__first, __last, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 5688 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: constexpr 19959: inline _ForwardIterator 19959: min_element(_ForwardIterator __first, _ForwardIterator __last, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__min_element(__first, __last, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: template 19959: constexpr 19959: _ForwardIterator 19959: __max_element(_ForwardIterator __first, _ForwardIterator __last, 19959: _Compare __comp) 19959: { 19959: if (__first == __last) return __first; 19959: _ForwardIterator __result = __first; 19959: while (++__first != __last) 19959: if (__comp(__result, __first)) 19959: __result = __first; 19959: return __result; 19959: } 19959: # 5727 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: constexpr 19959: inline _ForwardIterator 19959: max_element(_ForwardIterator __first, _ForwardIterator __last) 19959: { 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__max_element(__first, __last, 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: # 5752 "/usr/include/c++/13/bits/stl_algo.h" 3 19959: template 19959: constexpr 19959: inline _ForwardIterator 19959: max_element(_ForwardIterator __first, _ForwardIterator __last, 19959: _Compare __comp) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: ; 19959: 19959: return std::__max_element(__first, __last, 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: 19959: 19959: template 19959: constexpr 19959: inline _Tp 19959: min(initializer_list<_Tp> __l) 19959: { 19959: ; 19959: return *std::__min_element(__l.begin(), __l.end(), 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: 19959: template 19959: constexpr 19959: inline _Tp 19959: min(initializer_list<_Tp> __l, _Compare __comp) 19959: { 19959: ; 19959: return *std::__min_element(__l.begin(), __l.end(), 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: template 19959: constexpr 19959: inline _Tp 19959: max(initializer_list<_Tp> __l) 19959: { 19959: ; 19959: return *std::__max_element(__l.begin(), __l.end(), 19959: __gnu_cxx::__ops::__iter_less_iter()); 19959: } 19959: 19959: template 19959: constexpr 19959: inline _Tp 19959: max(initializer_list<_Tp> __l, _Compare __comp) 19959: { 19959: ; 19959: return *std::__max_element(__l.begin(), __l.end(), 19959: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: _RandomAccessIterator 19959: __sample(_InputIterator __first, _InputIterator __last, input_iterator_tag, 19959: _RandomAccessIterator __out, random_access_iterator_tag, 19959: _Size __n, _UniformRandomBitGenerator&& __g) 19959: { 19959: using __distrib_type = uniform_int_distribution<_Size>; 19959: using __param_type = typename __distrib_type::param_type; 19959: __distrib_type __d{}; 19959: _Size __sample_sz = 0; 19959: while (__first != __last && __sample_sz != __n) 19959: { 19959: __out[__sample_sz++] = *__first; 19959: ++__first; 19959: } 19959: for (auto __pop_sz = __sample_sz; __first != __last; 19959: ++__first, (void) ++__pop_sz) 19959: { 19959: const auto __k = __d(__g, __param_type{0, __pop_sz}); 19959: if (__k < __n) 19959: __out[__k] = *__first; 19959: } 19959: return __out + __sample_sz; 19959: } 19959: 19959: 19959: template 19959: _OutputIterator 19959: __sample(_ForwardIterator __first, _ForwardIterator __last, 19959: forward_iterator_tag, 19959: _OutputIterator __out, _Cat, 19959: _Size __n, _UniformRandomBitGenerator&& __g) 19959: { 19959: using __distrib_type = uniform_int_distribution<_Size>; 19959: using __param_type = typename __distrib_type::param_type; 19959: using _USize = make_unsigned_t<_Size>; 19959: using _Gen = remove_reference_t<_UniformRandomBitGenerator>; 19959: using __uc_type = common_type_t; 19959: 19959: if (__first == __last) 19959: return __out; 19959: 19959: __distrib_type __d{}; 19959: _Size __unsampled_sz = std::distance(__first, __last); 19959: __n = std::min(__n, __unsampled_sz); 19959: 19959: 19959: 19959: 19959: const __uc_type __urngrange = __g.max() - __g.min(); 19959: if (__urngrange / __uc_type(__unsampled_sz) >= __uc_type(__unsampled_sz)) 19959: 19959: 19959: { 19959: while (__n != 0 && __unsampled_sz >= 2) 19959: { 19959: const pair<_Size, _Size> __p = 19959: __gen_two_uniform_ints(__unsampled_sz, __unsampled_sz - 1, __g); 19959: 19959: --__unsampled_sz; 19959: if (__p.first < __n) 19959: { 19959: *__out++ = *__first; 19959: --__n; 19959: } 19959: 19959: ++__first; 19959: 19959: if (__n == 0) break; 19959: 19959: --__unsampled_sz; 19959: if (__p.second < __n) 19959: { 19959: *__out++ = *__first; 19959: --__n; 19959: } 19959: 19959: ++__first; 19959: } 19959: } 19959: 19959: 19959: 19959: for (; __n != 0; ++__first) 19959: if (__d(__g, __param_type{0, --__unsampled_sz}) < __n) 19959: { 19959: *__out++ = *__first; 19959: --__n; 19959: } 19959: return __out; 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: _SampleIterator 19959: sample(_PopulationIterator __first, _PopulationIterator __last, 19959: _SampleIterator __out, _Distance __n, 19959: _UniformRandomBitGenerator&& __g) 19959: { 19959: using __pop_cat = typename 19959: std::iterator_traits<_PopulationIterator>::iterator_category; 19959: using __samp_cat = typename 19959: std::iterator_traits<_SampleIterator>::iterator_category; 19959: 19959: static_assert( 19959: __or_, 19959: is_convertible<__samp_cat, random_access_iterator_tag>>::value, 19959: "output range must use a RandomAccessIterator when input range" 19959: " does not meet the ForwardIterator requirements"); 19959: 19959: static_assert(is_integral<_Distance>::value, 19959: "sample size must be an integer type"); 19959: 19959: typename iterator_traits<_PopulationIterator>::difference_type __d = __n; 19959: return std:: 19959: __sample(__first, __last, __pop_cat{}, __out, __samp_cat{}, __d, 19959: std::forward<_UniformRandomBitGenerator>(__g)); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 68 "/usr/include/c++/13/functional" 2 3 19959: # 79 "/usr/include/c++/13/functional" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: template struct _Placeholder { }; 19959: # 108 "/usr/include/c++/13/functional" 3 19959: template 19959: inline invoke_result_t<_Callable, _Args...> 19959: invoke(_Callable&& __fn, _Args&&... __args) 19959: noexcept(is_nothrow_invocable_v<_Callable, _Args...>) 19959: { 19959: return std::__invoke(std::forward<_Callable>(__fn), 19959: std::forward<_Args>(__args)...); 19959: } 19959: # 141 "/usr/include/c++/13/functional" 3 19959: template::value> 19959: class _Mem_fn_base 19959: : public _Mem_fn_traits<_MemFunPtr>::__maybe_type 19959: { 19959: using _Traits = _Mem_fn_traits<_MemFunPtr>; 19959: 19959: using _Arity = typename _Traits::__arity; 19959: using _Varargs = typename _Traits::__vararg; 19959: 19959: template 19959: friend struct _Bind_check_arity; 19959: 19959: _MemFunPtr _M_pmf; 19959: 19959: public: 19959: 19959: using result_type = typename _Traits::__result_type; 19959: 19959: explicit constexpr 19959: _Mem_fn_base(_MemFunPtr __pmf) noexcept : _M_pmf(__pmf) { } 19959: 19959: template 19959: 19959: auto 19959: operator()(_Args&&... __args) const 19959: noexcept(noexcept( 19959: std::__invoke(_M_pmf, std::forward<_Args>(__args)...))) 19959: -> decltype(std::__invoke(_M_pmf, std::forward<_Args>(__args)...)) 19959: { return std::__invoke(_M_pmf, std::forward<_Args>(__args)...); } 19959: }; 19959: 19959: 19959: template 19959: class _Mem_fn_base<_MemObjPtr, false> 19959: { 19959: using _Arity = integral_constant; 19959: using _Varargs = false_type; 19959: 19959: template 19959: friend struct _Bind_check_arity; 19959: 19959: _MemObjPtr _M_pm; 19959: 19959: public: 19959: explicit constexpr 19959: _Mem_fn_base(_MemObjPtr __pm) noexcept : _M_pm(__pm) { } 19959: 19959: template 19959: 19959: auto 19959: operator()(_Tp&& __obj) const 19959: noexcept(noexcept(std::__invoke(_M_pm, std::forward<_Tp>(__obj)))) 19959: -> decltype(std::__invoke(_M_pm, std::forward<_Tp>(__obj))) 19959: { return std::__invoke(_M_pm, std::forward<_Tp>(__obj)); } 19959: }; 19959: 19959: template 19959: struct _Mem_fn; 19959: 19959: template 19959: struct _Mem_fn<_Res _Class::*> 19959: : _Mem_fn_base<_Res _Class::*> 19959: { 19959: using _Mem_fn_base<_Res _Class::*>::_Mem_fn_base; 19959: }; 19959: # 234 "/usr/include/c++/13/functional" 3 19959: template 19959: 19959: inline _Mem_fn<_Tp _Class::*> 19959: mem_fn(_Tp _Class::* __pm) noexcept 19959: { 19959: return _Mem_fn<_Tp _Class::*>(__pm); 19959: } 19959: # 253 "/usr/include/c++/13/functional" 3 19959: template 19959: struct is_bind_expression 19959: : public false_type { }; 19959: # 265 "/usr/include/c++/13/functional" 3 19959: template 19959: struct is_placeholder 19959: : public integral_constant 19959: { }; 19959: 19959: 19959: template inline constexpr bool is_bind_expression_v 19959: = is_bind_expression<_Tp>::value; 19959: template inline constexpr int is_placeholder_v 19959: = is_placeholder<_Tp>::value; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace placeholders 19959: { 19959: # 294 "/usr/include/c++/13/functional" 3 19959: inline const _Placeholder<1> _1; 19959: inline const _Placeholder<2> _2; 19959: inline const _Placeholder<3> _3; 19959: inline const _Placeholder<4> _4; 19959: inline const _Placeholder<5> _5; 19959: inline const _Placeholder<6> _6; 19959: inline const _Placeholder<7> _7; 19959: inline const _Placeholder<8> _8; 19959: inline const _Placeholder<9> _9; 19959: inline const _Placeholder<10> _10; 19959: inline const _Placeholder<11> _11; 19959: inline const _Placeholder<12> _12; 19959: inline const _Placeholder<13> _13; 19959: inline const _Placeholder<14> _14; 19959: inline const _Placeholder<15> _15; 19959: inline const _Placeholder<16> _16; 19959: inline const _Placeholder<17> _17; 19959: inline const _Placeholder<18> _18; 19959: inline const _Placeholder<19> _19; 19959: inline const _Placeholder<20> _20; 19959: inline const _Placeholder<21> _21; 19959: inline const _Placeholder<22> _22; 19959: inline const _Placeholder<23> _23; 19959: inline const _Placeholder<24> _24; 19959: inline const _Placeholder<25> _25; 19959: inline const _Placeholder<26> _26; 19959: inline const _Placeholder<27> _27; 19959: inline const _Placeholder<28> _28; 19959: inline const _Placeholder<29> _29; 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_placeholder<_Placeholder<_Num> > 19959: : public integral_constant 19959: { }; 19959: 19959: template 19959: struct is_placeholder > 19959: : public integral_constant 19959: { }; 19959: 19959: 19959: 19959: 19959: template 19959: using _Safe_tuple_element_t 19959: = typename enable_if<(__i < tuple_size<_Tuple>::value), 19959: tuple_element<__i, _Tuple>>::type::type; 19959: # 362 "/usr/include/c++/13/functional" 3 19959: template::value, 19959: bool _IsPlaceholder = (is_placeholder<_Arg>::value > 0)> 19959: class _Mu; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: class _Mu, false, false> 19959: { 19959: public: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _Tp& 19959: operator()(_CVRef& __arg, _Tuple&) const volatile 19959: { return __arg.get(); } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: class _Mu<_Arg, true, false> 19959: { 19959: public: 19959: template 19959: 19959: auto 19959: operator()(_CVArg& __arg, 19959: tuple<_Args...>& __tuple) const volatile 19959: -> decltype(__arg(declval<_Args>()...)) 19959: { 19959: 19959: typedef typename _Build_index_tuple::__type 19959: _Indexes; 19959: return this->__call(__arg, __tuple, _Indexes()); 19959: } 19959: 19959: private: 19959: 19959: 19959: template 19959: 19959: auto 19959: __call(_CVArg& __arg, tuple<_Args...>& __tuple, 19959: const _Index_tuple<_Indexes...>&) const volatile 19959: -> decltype(__arg(declval<_Args>()...)) 19959: { 19959: return __arg(std::get<_Indexes>(std::move(__tuple))...); 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: class _Mu<_Arg, false, true> 19959: { 19959: public: 19959: template 19959: 19959: _Safe_tuple_element_t<(is_placeholder<_Arg>::value - 1), _Tuple>&& 19959: operator()(const volatile _Arg&, _Tuple& __tuple) const volatile 19959: { 19959: return 19959: ::std::get<(is_placeholder<_Arg>::value - 1)>(std::move(__tuple)); 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: class _Mu<_Arg, false, false> 19959: { 19959: public: 19959: template 19959: 19959: _CVArg&& 19959: operator()(_CVArg&& __arg, _Tuple&) const volatile 19959: { return std::forward<_CVArg>(__arg); } 19959: }; 19959: 19959: 19959: template 19959: inline auto 19959: __volget(volatile tuple<_Tp...>& __tuple) 19959: -> __tuple_element_t<_Ind, tuple<_Tp...>> volatile& 19959: { return std::get<_Ind>(const_cast&>(__tuple)); } 19959: 19959: 19959: template 19959: inline auto 19959: __volget(const volatile tuple<_Tp...>& __tuple) 19959: -> __tuple_element_t<_Ind, tuple<_Tp...>> const volatile& 19959: { return std::get<_Ind>(const_cast&>(__tuple)); } 19959: # 487 "/usr/include/c++/13/functional" 3 19959: template 19959: class _Bind; 19959: 19959: template 19959: class _Bind<_Functor(_Bound_args...)> 19959: : public _Weak_result_type<_Functor> 19959: { 19959: typedef typename _Build_index_tuple::__type 19959: _Bound_indexes; 19959: 19959: _Functor _M_f; 19959: tuple<_Bound_args...> _M_bound_args; 19959: 19959: 19959: template 19959: 19959: _Result 19959: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 19959: { 19959: return std::__invoke(_M_f, 19959: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 19959: ); 19959: } 19959: 19959: 19959: template 19959: 19959: _Result 19959: __call_c(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 19959: { 19959: return std::__invoke(_M_f, 19959: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 19959: ); 19959: } 19959: 19959: 19959: 19959: template 19959: _Result 19959: __call_v(tuple<_Args...>&& __args, 19959: _Index_tuple<_Indexes...>) volatile 19959: { 19959: return std::__invoke(_M_f, 19959: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 19959: ); 19959: } 19959: 19959: 19959: template 19959: _Result 19959: __call_c_v(tuple<_Args...>&& __args, 19959: _Index_tuple<_Indexes...>) const volatile 19959: { 19959: return std::__invoke(_M_f, 19959: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 19959: ); 19959: } 19959: 19959: 19959: template 19959: using _Mu_type = decltype( 19959: _Mu::type>()( 19959: std::declval<_BoundArg&>(), std::declval<_CallArgs&>()) ); 19959: 19959: template 19959: using _Res_type_impl 19959: = typename result_of< _Fn&(_Mu_type<_BArgs, _CallArgs>&&...) >::type; 19959: 19959: template 19959: using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>; 19959: 19959: template 19959: using __dependent = typename 19959: enable_if::value+1), _Functor>::type; 19959: 19959: template class __cv_quals> 19959: using _Res_type_cv = _Res_type_impl< 19959: typename __cv_quals<__dependent<_CallArgs>>::type, 19959: _CallArgs, 19959: typename __cv_quals<_Bound_args>::type...>; 19959: 19959: public: 19959: template 19959: explicit 19959: _Bind(const _Functor& __f, _Args&&... __args) 19959: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 19959: { } 19959: 19959: template 19959: explicit 19959: _Bind(_Functor&& __f, _Args&&... __args) 19959: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 19959: { } 19959: 19959: _Bind(const _Bind&) = default; 19959: _Bind(_Bind&&) = default; 19959: 19959: 19959: template>> 19959: 19959: _Result 19959: operator()(_Args&&... __args) 19959: { 19959: return this->__call<_Result>( 19959: std::forward_as_tuple(std::forward<_Args>(__args)...), 19959: _Bound_indexes()); 19959: } 19959: 19959: 19959: template, add_const>> 19959: 19959: _Result 19959: operator()(_Args&&... __args) const 19959: { 19959: return this->__call_c<_Result>( 19959: std::forward_as_tuple(std::forward<_Args>(__args)...), 19959: _Bound_indexes()); 19959: } 19959: 19959: 19959: 19959: template, add_volatile>> 19959: [[deprecated("std::bind does not support volatile in C++17")]] 19959: _Result 19959: operator()(_Args&&... __args) volatile 19959: { 19959: return this->__call_v<_Result>( 19959: std::forward_as_tuple(std::forward<_Args>(__args)...), 19959: _Bound_indexes()); 19959: } 19959: 19959: 19959: template, add_cv>> 19959: [[deprecated("std::bind does not support volatile in C++17")]] 19959: _Result 19959: operator()(_Args&&... __args) const volatile 19959: { 19959: return this->__call_c_v<_Result>( 19959: std::forward_as_tuple(std::forward<_Args>(__args)...), 19959: _Bound_indexes()); 19959: } 19959: 19959: }; 19959: 19959: 19959: template 19959: class _Bind_result; 19959: 19959: template 19959: class _Bind_result<_Result, _Functor(_Bound_args...)> 19959: { 19959: typedef typename _Build_index_tuple::__type 19959: _Bound_indexes; 19959: 19959: _Functor _M_f; 19959: tuple<_Bound_args...> _M_bound_args; 19959: 19959: 19959: template 19959: 19959: _Res 19959: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 19959: { 19959: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 19959: (std::get<_Indexes>(_M_bound_args), __args)...); 19959: } 19959: 19959: 19959: template 19959: 19959: _Res 19959: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 19959: { 19959: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 19959: (std::get<_Indexes>(_M_bound_args), __args)...); 19959: } 19959: 19959: 19959: 19959: template 19959: _Res 19959: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) volatile 19959: { 19959: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 19959: (__volget<_Indexes>(_M_bound_args), __args)...); 19959: } 19959: 19959: 19959: template 19959: _Res 19959: __call(tuple<_Args...>&& __args, 19959: _Index_tuple<_Indexes...>) const volatile 19959: { 19959: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 19959: (__volget<_Indexes>(_M_bound_args), __args)...); 19959: } 19959: 19959: 19959: public: 19959: typedef _Result result_type; 19959: 19959: template 19959: explicit 19959: _Bind_result(const _Functor& __f, _Args&&... __args) 19959: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 19959: { } 19959: 19959: template 19959: explicit 19959: _Bind_result(_Functor&& __f, _Args&&... __args) 19959: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 19959: { } 19959: 19959: _Bind_result(const _Bind_result&) = default; 19959: _Bind_result(_Bind_result&&) = default; 19959: 19959: 19959: template 19959: 19959: result_type 19959: operator()(_Args&&... __args) 19959: { 19959: return this->__call<_Result>( 19959: std::forward_as_tuple(std::forward<_Args>(__args)...), 19959: _Bound_indexes()); 19959: } 19959: 19959: 19959: template 19959: 19959: result_type 19959: operator()(_Args&&... __args) const 19959: { 19959: return this->__call<_Result>( 19959: std::forward_as_tuple(std::forward<_Args>(__args)...), 19959: _Bound_indexes()); 19959: } 19959: 19959: 19959: 19959: template 19959: [[deprecated("std::bind does not support volatile in C++17")]] 19959: result_type 19959: operator()(_Args&&... __args) volatile 19959: { 19959: return this->__call<_Result>( 19959: std::forward_as_tuple(std::forward<_Args>(__args)...), 19959: _Bound_indexes()); 19959: } 19959: 19959: 19959: template 19959: [[deprecated("std::bind does not support volatile in C++17")]] 19959: result_type 19959: operator()(_Args&&... __args) const volatile 19959: { 19959: return this->__call<_Result>( 19959: std::forward_as_tuple(std::forward<_Args>(__args)...), 19959: _Bound_indexes()); 19959: } 19959: 19959: 19959: 19959: 19959: }; 19959: # 764 "/usr/include/c++/13/functional" 3 19959: template 19959: struct is_bind_expression<_Bind<_Signature> > 19959: : public true_type { }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_bind_expression > 19959: : public true_type { }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_bind_expression > 19959: : public true_type { }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_bind_expression> 19959: : public true_type { }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_bind_expression<_Bind_result<_Result, _Signature>> 19959: : public true_type { }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_bind_expression> 19959: : public true_type { }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_bind_expression> 19959: : public true_type { }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct is_bind_expression> 19959: : public true_type { }; 19959: 19959: template 19959: struct _Bind_check_arity { }; 19959: 19959: template 19959: struct _Bind_check_arity<_Ret (*)(_Args...), _BoundArgs...> 19959: { 19959: static_assert(sizeof...(_BoundArgs) == sizeof...(_Args), 19959: "Wrong number of arguments for function"); 19959: }; 19959: 19959: template 19959: struct _Bind_check_arity<_Ret (*)(_Args......), _BoundArgs...> 19959: { 19959: static_assert(sizeof...(_BoundArgs) >= sizeof...(_Args), 19959: "Wrong number of arguments for function"); 19959: }; 19959: 19959: template 19959: struct _Bind_check_arity<_Tp _Class::*, _BoundArgs...> 19959: { 19959: using _Arity = typename _Mem_fn<_Tp _Class::*>::_Arity; 19959: using _Varargs = typename _Mem_fn<_Tp _Class::*>::_Varargs; 19959: static_assert(_Varargs::value 19959: ? sizeof...(_BoundArgs) >= _Arity::value + 1 19959: : sizeof...(_BoundArgs) == _Arity::value + 1, 19959: "Wrong number of arguments for pointer-to-member"); 19959: }; 19959: 19959: 19959: 19959: 19959: template::type> 19959: using __is_socketlike = __or_, is_enum<_Tp2>>; 19959: 19959: template 19959: struct _Bind_helper 19959: : _Bind_check_arity::type, _BoundArgs...> 19959: { 19959: typedef typename decay<_Func>::type __func_type; 19959: typedef _Bind<__func_type(typename decay<_BoundArgs>::type...)> type; 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: struct _Bind_helper 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline typename 19959: _Bind_helper<__is_socketlike<_Func>::value, _Func, _BoundArgs...>::type 19959: bind(_Func&& __f, _BoundArgs&&... __args) 19959: { 19959: typedef _Bind_helper __helper_type; 19959: return typename __helper_type::type(std::forward<_Func>(__f), 19959: std::forward<_BoundArgs>(__args)...); 19959: } 19959: 19959: template 19959: struct _Bindres_helper 19959: : _Bind_check_arity::type, _BoundArgs...> 19959: { 19959: typedef typename decay<_Func>::type __functor_type; 19959: typedef _Bind_result<_Result, 19959: __functor_type(typename decay<_BoundArgs>::type...)> 19959: type; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline 19959: typename _Bindres_helper<_Result, _Func, _BoundArgs...>::type 19959: bind(_Func&& __f, _BoundArgs&&... __args) 19959: { 19959: typedef _Bindres_helper<_Result, _Func, _BoundArgs...> __helper_type; 19959: return typename __helper_type::type(std::forward<_Func>(__f), 19959: std::forward<_BoundArgs>(__args)...); 19959: } 19959: # 1084 "/usr/include/c++/13/functional" 3 19959: template 19959: class _Not_fn 19959: { 19959: template 19959: using __inv_res_t = typename __invoke_result<_Fn2, _Args...>::type; 19959: 19959: template 19959: static decltype(!std::declval<_Tp>()) 19959: _S_not() noexcept(noexcept(!std::declval<_Tp>())); 19959: 19959: public: 19959: template 19959: constexpr 19959: _Not_fn(_Fn2&& __fn, int) 19959: : _M_fn(std::forward<_Fn2>(__fn)) { } 19959: 19959: _Not_fn(const _Not_fn& __fn) = default; 19959: _Not_fn(_Not_fn&& __fn) = default; 19959: ~_Not_fn() = default; 19959: # 1118 "/usr/include/c++/13/functional" 3 19959: 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)...); } 19959: 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)...); } 19959: 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)...); } 19959: 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)...); } 19959: 19959: 19959: private: 19959: _Fn _M_fn; 19959: }; 19959: 19959: template 19959: struct __is_byte_like : false_type { }; 19959: 19959: template 19959: struct __is_byte_like<_Tp, equal_to<_Tp>> 19959: : __bool_constant::value> { }; 19959: 19959: template 19959: struct __is_byte_like<_Tp, equal_to> 19959: : __bool_constant::value> { }; 19959: 19959: 19959: 19959: enum class byte : unsigned char; 19959: 19959: template<> 19959: struct __is_byte_like> 19959: : true_type { }; 19959: 19959: template<> 19959: struct __is_byte_like> 19959: : true_type { }; 19959: # 1165 "/usr/include/c++/13/functional" 3 19959: template 19959: 19959: inline auto 19959: not_fn(_Fn&& __fn) 19959: noexcept(std::is_nothrow_constructible, _Fn&&>::value) 19959: { 19959: return _Not_fn>{std::forward<_Fn>(__fn), 0}; 19959: } 19959: 19959: 19959: 19959: template> 19959: class default_searcher 19959: { 19959: public: 19959: 19959: default_searcher(_ForwardIterator1 __pat_first, 19959: _ForwardIterator1 __pat_last, 19959: _BinaryPredicate __pred = _BinaryPredicate()) 19959: : _M_m(__pat_first, __pat_last, std::move(__pred)) 19959: { } 19959: 19959: template 19959: 19959: pair<_ForwardIterator2, _ForwardIterator2> 19959: operator()(_ForwardIterator2 __first, _ForwardIterator2 __last) const 19959: { 19959: _ForwardIterator2 __first_ret = 19959: std::search(__first, __last, std::get<0>(_M_m), std::get<1>(_M_m), 19959: std::get<2>(_M_m)); 19959: auto __ret = std::make_pair(__first_ret, __first_ret); 19959: if (__ret.first != __last) 19959: std::advance(__ret.second, std::distance(std::get<0>(_M_m), 19959: std::get<1>(_M_m))); 19959: return __ret; 19959: } 19959: 19959: private: 19959: tuple<_ForwardIterator1, _ForwardIterator1, _BinaryPredicate> _M_m; 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: struct __boyer_moore_map_base 19959: { 19959: template 19959: __boyer_moore_map_base(_RAIter __pat, size_t __patlen, 19959: _Hash&& __hf, _Pred&& __pred) 19959: : _M_bad_char{ __patlen, std::move(__hf), std::move(__pred) } 19959: { 19959: if (__patlen > 0) 19959: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 19959: _M_bad_char[__pat[__i]] = __patlen - 1 - __i; 19959: } 19959: 19959: using __diff_type = _Tp; 19959: 19959: __diff_type 19959: _M_lookup(_Key __key, __diff_type __not_found) const 19959: { 19959: auto __iter = _M_bad_char.find(__key); 19959: if (__iter == _M_bad_char.end()) 19959: return __not_found; 19959: return __iter->second; 19959: } 19959: 19959: _Pred 19959: _M_pred() const { return _M_bad_char.key_eq(); } 19959: 19959: std::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; 19959: }; 19959: 19959: template 19959: struct __boyer_moore_array_base 19959: { 19959: template 19959: __boyer_moore_array_base(_RAIter __pat, size_t __patlen, 19959: _Unused&&, _Pred&& __pred) 19959: : _M_bad_char{ array<_Tp, _Len>{}, std::move(__pred) } 19959: { 19959: std::get<0>(_M_bad_char).fill(__patlen); 19959: if (__patlen > 0) 19959: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 19959: { 19959: auto __ch = __pat[__i]; 19959: using _UCh = make_unsigned_t; 19959: auto __uch = static_cast<_UCh>(__ch); 19959: std::get<0>(_M_bad_char)[__uch] = __patlen - 1 - __i; 19959: } 19959: } 19959: 19959: using __diff_type = _Tp; 19959: 19959: template 19959: __diff_type 19959: _M_lookup(_Key __key, __diff_type __not_found) const 19959: { 19959: auto __ukey = static_cast>(__key); 19959: if (__ukey >= _Len) 19959: return __not_found; 19959: return std::get<0>(_M_bad_char)[__ukey]; 19959: } 19959: 19959: const _Pred& 19959: _M_pred() const { return std::get<1>(_M_bad_char); } 19959: 19959: tuple, _Pred> _M_bad_char; 19959: }; 19959: 19959: 19959: 19959: template::value_type, 19959: typename _Diff = typename iterator_traits<_RAIter>::difference_type> 19959: using __boyer_moore_base_t 19959: = __conditional_t<__is_byte_like<_Val, _Pred>::value, 19959: __boyer_moore_array_base<_Diff, 256, _Pred>, 19959: __boyer_moore_map_base<_Val, _Diff, _Hash, _Pred>>; 19959: 19959: template::value_type>, 19959: typename _BinaryPredicate = equal_to<>> 19959: class boyer_moore_searcher 19959: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 19959: { 19959: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 19959: using typename _Base::__diff_type; 19959: 19959: public: 19959: boyer_moore_searcher(_RAIter __pat_first, _RAIter __pat_last, 19959: _Hash __hf = _Hash(), 19959: _BinaryPredicate __pred = _BinaryPredicate()); 19959: 19959: template 19959: pair<_RandomAccessIterator2, _RandomAccessIterator2> 19959: operator()(_RandomAccessIterator2 __first, 19959: _RandomAccessIterator2 __last) const; 19959: 19959: private: 19959: bool 19959: _M_is_prefix(_RAIter __word, __diff_type __len, 19959: __diff_type __pos) 19959: { 19959: const auto& __pred = this->_M_pred(); 19959: __diff_type __suffixlen = __len - __pos; 19959: for (__diff_type __i = 0; __i < __suffixlen; ++__i) 19959: if (!__pred(__word[__i], __word[__pos + __i])) 19959: return false; 19959: return true; 19959: } 19959: 19959: __diff_type 19959: _M_suffix_length(_RAIter __word, __diff_type __len, 19959: __diff_type __pos) 19959: { 19959: const auto& __pred = this->_M_pred(); 19959: __diff_type __i = 0; 19959: while (__pred(__word[__pos - __i], __word[__len - 1 - __i]) 19959: && __i < __pos) 19959: { 19959: ++__i; 19959: } 19959: return __i; 19959: } 19959: 19959: template 19959: __diff_type 19959: _M_bad_char_shift(_Tp __c) const 19959: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 19959: 19959: _RAIter _M_pat; 19959: _RAIter _M_pat_end; 19959: std::vector<__diff_type> _M_good_suffix; 19959: }; 19959: 19959: template::value_type>, 19959: typename _BinaryPredicate = equal_to<>> 19959: class boyer_moore_horspool_searcher 19959: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 19959: { 19959: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 19959: using typename _Base::__diff_type; 19959: 19959: public: 19959: boyer_moore_horspool_searcher(_RAIter __pat, 19959: _RAIter __pat_end, 19959: _Hash __hf = _Hash(), 19959: _BinaryPredicate __pred 19959: = _BinaryPredicate()) 19959: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 19959: _M_pat(__pat), _M_pat_end(__pat_end) 19959: { } 19959: 19959: template 19959: pair<_RandomAccessIterator2, _RandomAccessIterator2> 19959: operator()(_RandomAccessIterator2 __first, 19959: _RandomAccessIterator2 __last) const 19959: { 19959: const auto& __pred = this->_M_pred(); 19959: auto __patlen = _M_pat_end - _M_pat; 19959: if (__patlen == 0) 19959: return std::make_pair(__first, __first); 19959: auto __len = __last - __first; 19959: while (__len >= __patlen) 19959: { 19959: for (auto __scan = __patlen - 1; 19959: __pred(__first[__scan], _M_pat[__scan]); --__scan) 19959: if (__scan == 0) 19959: return std::make_pair(__first, __first + __patlen); 19959: auto __shift = _M_bad_char_shift(__first[__patlen - 1]); 19959: __len -= __shift; 19959: __first += __shift; 19959: } 19959: return std::make_pair(__last, __last); 19959: } 19959: 19959: private: 19959: template 19959: __diff_type 19959: _M_bad_char_shift(_Tp __c) const 19959: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 19959: 19959: _RAIter _M_pat; 19959: _RAIter _M_pat_end; 19959: }; 19959: 19959: template 19959: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 19959: boyer_moore_searcher(_RAIter __pat, _RAIter __pat_end, 19959: _Hash __hf, _BinaryPredicate __pred) 19959: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 19959: _M_pat(__pat), _M_pat_end(__pat_end), _M_good_suffix(__pat_end - __pat) 19959: { 19959: auto __patlen = __pat_end - __pat; 19959: if (__patlen == 0) 19959: return; 19959: __diff_type __last_prefix = __patlen - 1; 19959: for (__diff_type __p = __patlen - 1; __p >= 0; --__p) 19959: { 19959: if (_M_is_prefix(__pat, __patlen, __p + 1)) 19959: __last_prefix = __p + 1; 19959: _M_good_suffix[__p] = __last_prefix + (__patlen - 1 - __p); 19959: } 19959: for (__diff_type __p = 0; __p < __patlen - 1; ++__p) 19959: { 19959: auto __slen = _M_suffix_length(__pat, __patlen, __p); 19959: auto __pos = __patlen - 1 - __slen; 19959: if (!__pred(__pat[__p - __slen], __pat[__pos])) 19959: _M_good_suffix[__pos] = __patlen - 1 - __p + __slen; 19959: } 19959: } 19959: 19959: template 19959: template 19959: pair<_RandomAccessIterator2, _RandomAccessIterator2> 19959: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 19959: operator()(_RandomAccessIterator2 __first, 19959: _RandomAccessIterator2 __last) const 19959: { 19959: auto __patlen = _M_pat_end - _M_pat; 19959: if (__patlen == 0) 19959: return std::make_pair(__first, __first); 19959: const auto& __pred = this->_M_pred(); 19959: __diff_type __i = __patlen - 1; 19959: auto __stringlen = __last - __first; 19959: while (__i < __stringlen) 19959: { 19959: __diff_type __j = __patlen - 1; 19959: while (__j >= 0 && __pred(__first[__i], _M_pat[__j])) 19959: { 19959: --__i; 19959: --__j; 19959: } 19959: if (__j < 0) 19959: { 19959: const auto __match = __first + __i + 1; 19959: return std::make_pair(__match, __match + __patlen); 19959: } 19959: __i += std::max(_M_bad_char_shift(__first[__i]), 19959: _M_good_suffix[__j]); 19959: } 19959: return std::make_pair(__last, __last); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: # 1 "/usr/include/c++/13/memory" 1 3 19959: # 47 "/usr/include/c++/13/memory" 3 19959: 19959: # 48 "/usr/include/c++/13/memory" 3 19959: # 70 "/usr/include/c++/13/memory" 3 19959: # 1 "/usr/include/c++/13/bits/stl_raw_storage_iter.h" 1 3 19959: # 59 "/usr/include/c++/13/bits/stl_raw_storage_iter.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: # 64 "/usr/include/c++/13/bits/stl_raw_storage_iter.h" 3 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: 19959: 19959: 19959: 19959: template 19959: class [[__deprecated__]] raw_storage_iterator 19959: : public iterator 19959: { 19959: protected: 19959: _OutputIterator _M_iter; 19959: 19959: public: 19959: explicit 19959: raw_storage_iterator(_OutputIterator __x) 19959: : _M_iter(__x) {} 19959: 19959: raw_storage_iterator& 19959: operator*() { return *this; } 19959: 19959: raw_storage_iterator& 19959: operator=(const _Tp& __element) 19959: { 19959: std::_Construct(std::__addressof(*_M_iter), __element); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: raw_storage_iterator& 19959: operator=(_Tp&& __element) 19959: { 19959: std::_Construct(std::__addressof(*_M_iter), std::move(__element)); 19959: return *this; 19959: } 19959: 19959: 19959: raw_storage_iterator& 19959: operator++() 19959: { 19959: ++_M_iter; 19959: return *this; 19959: } 19959: 19959: raw_storage_iterator 19959: operator++(int) 19959: { 19959: raw_storage_iterator __tmp = *this; 19959: ++_M_iter; 19959: return __tmp; 19959: } 19959: 19959: 19959: 19959: _OutputIterator base() const { return _M_iter; } 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: } 19959: # 71 "/usr/include/c++/13/memory" 2 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/align.h" 1 3 19959: # 39 "/usr/include/c++/13/bits/align.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 61 "/usr/include/c++/13/bits/align.h" 3 19959: inline void* 19959: align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept 19959: { 19959: if (__space < __size) 19959: return nullptr; 19959: const auto __intptr = reinterpret_cast(__ptr); 19959: const auto __aligned = (__intptr - 1u + __align) & -__align; 19959: const auto __diff = __aligned - __intptr; 19959: if (__diff > (__space - __size)) 19959: return nullptr; 19959: else 19959: { 19959: __space -= __diff; 19959: return __ptr = reinterpret_cast(__aligned); 19959: } 19959: } 19959: # 108 "/usr/include/c++/13/bits/align.h" 3 19959: 19959: } 19959: # 75 "/usr/include/c++/13/memory" 2 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/unique_ptr.h" 1 3 19959: # 53 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 63 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: template class auto_ptr; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct default_delete 19959: { 19959: 19959: constexpr default_delete() noexcept = default; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template>> 19959: 19959: default_delete(const default_delete<_Up>&) noexcept { } 19959: 19959: 19959: 19959: void 19959: operator()(_Tp* __ptr) const 19959: { 19959: static_assert(!is_void<_Tp>::value, 19959: "can't delete pointer to incomplete type"); 19959: static_assert(sizeof(_Tp)>0, 19959: "can't delete pointer to incomplete type"); 19959: delete __ptr; 19959: } 19959: }; 19959: # 111 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: template 19959: struct default_delete<_Tp[]> 19959: { 19959: public: 19959: 19959: constexpr default_delete() noexcept = default; 19959: # 127 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: template>> 19959: 19959: default_delete(const default_delete<_Up[]>&) noexcept { } 19959: 19959: 19959: template 19959: 19959: typename enable_if::value>::type 19959: operator()(_Up* __ptr) const 19959: { 19959: static_assert(sizeof(_Tp)>0, 19959: "can't delete pointer to incomplete type"); 19959: delete [] __ptr; 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: class __uniq_ptr_impl 19959: { 19959: template 19959: struct _Ptr 19959: { 19959: using type = _Up*; 19959: }; 19959: 19959: template 19959: struct 19959: _Ptr<_Up, _Ep, __void_t::type::pointer>> 19959: { 19959: using type = typename remove_reference<_Ep>::type::pointer; 19959: }; 19959: 19959: public: 19959: using _DeleterConstraint = enable_if< 19959: __and_<__not_>, 19959: is_default_constructible<_Dp>>::value>; 19959: 19959: using pointer = typename _Ptr<_Tp, _Dp>::type; 19959: 19959: static_assert( !is_rvalue_reference<_Dp>::value, 19959: "unique_ptr's deleter type must be a function object type" 19959: " or an lvalue reference type" ); 19959: 19959: __uniq_ptr_impl() = default; 19959: 19959: __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; } 19959: 19959: template 19959: 19959: __uniq_ptr_impl(pointer __p, _Del&& __d) 19959: : _M_t(__p, std::forward<_Del>(__d)) { } 19959: 19959: 19959: __uniq_ptr_impl(__uniq_ptr_impl&& __u) noexcept 19959: : _M_t(std::move(__u._M_t)) 19959: { __u._M_ptr() = nullptr; } 19959: 19959: 19959: __uniq_ptr_impl& operator=(__uniq_ptr_impl&& __u) noexcept 19959: { 19959: reset(__u.release()); 19959: _M_deleter() = std::forward<_Dp>(__u._M_deleter()); 19959: return *this; 19959: } 19959: 19959: 19959: pointer& _M_ptr() noexcept { return std::get<0>(_M_t); } 19959: 19959: pointer _M_ptr() const noexcept { return std::get<0>(_M_t); } 19959: 19959: _Dp& _M_deleter() noexcept { return std::get<1>(_M_t); } 19959: 19959: const _Dp& _M_deleter() const noexcept { return std::get<1>(_M_t); } 19959: 19959: 19959: void reset(pointer __p) noexcept 19959: { 19959: const pointer __old_p = _M_ptr(); 19959: _M_ptr() = __p; 19959: if (__old_p) 19959: _M_deleter()(__old_p); 19959: } 19959: 19959: 19959: pointer release() noexcept 19959: { 19959: pointer __p = _M_ptr(); 19959: _M_ptr() = nullptr; 19959: return __p; 19959: } 19959: 19959: 19959: void 19959: swap(__uniq_ptr_impl& __rhs) noexcept 19959: { 19959: using std::swap; 19959: swap(this->_M_ptr(), __rhs._M_ptr()); 19959: swap(this->_M_deleter(), __rhs._M_deleter()); 19959: } 19959: 19959: private: 19959: tuple _M_t; 19959: }; 19959: 19959: 19959: template ::value, 19959: bool = is_move_assignable<_Dp>::value> 19959: struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp> 19959: { 19959: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 19959: __uniq_ptr_data(__uniq_ptr_data&&) = default; 19959: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 19959: }; 19959: 19959: template 19959: struct __uniq_ptr_data<_Tp, _Dp, true, false> : __uniq_ptr_impl<_Tp, _Dp> 19959: { 19959: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 19959: __uniq_ptr_data(__uniq_ptr_data&&) = default; 19959: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 19959: }; 19959: 19959: template 19959: struct __uniq_ptr_data<_Tp, _Dp, false, true> : __uniq_ptr_impl<_Tp, _Dp> 19959: { 19959: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 19959: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 19959: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 19959: }; 19959: 19959: template 19959: struct __uniq_ptr_data<_Tp, _Dp, false, false> : __uniq_ptr_impl<_Tp, _Dp> 19959: { 19959: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 19959: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 19959: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template > 19959: class unique_ptr 19959: { 19959: template 19959: using _DeleterConstraint = 19959: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 19959: 19959: __uniq_ptr_data<_Tp, _Dp> _M_t; 19959: 19959: public: 19959: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 19959: using element_type = _Tp; 19959: using deleter_type = _Dp; 19959: 19959: private: 19959: 19959: 19959: template 19959: using __safe_conversion_up = __and_< 19959: is_convertible::pointer, pointer>, 19959: __not_> 19959: >; 19959: 19959: public: 19959: 19959: 19959: 19959: template> 19959: constexpr unique_ptr() noexcept 19959: : _M_t() 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: 19959: explicit 19959: unique_ptr(pointer __p) noexcept 19959: : _M_t(__p) 19959: { } 19959: # 328 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: template>> 19959: 19959: unique_ptr(pointer __p, const deleter_type& __d) noexcept 19959: : _M_t(__p, __d) { } 19959: # 341 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: template>> 19959: 19959: unique_ptr(pointer __p, 19959: __enable_if_t::value, 19959: _Del&&> __d) noexcept 19959: : _M_t(__p, std::move(__d)) 19959: { } 19959: 19959: template::type> 19959: 19959: unique_ptr(pointer, 19959: __enable_if_t::value, 19959: _DelUnref&&>) = delete; 19959: 19959: 19959: template> 19959: constexpr unique_ptr(nullptr_t) noexcept 19959: : _M_t() 19959: { } 19959: 19959: 19959: 19959: 19959: unique_ptr(unique_ptr&&) = default; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template, 19959: __conditional_t::value, 19959: is_same<_Ep, _Dp>, 19959: is_convertible<_Ep, _Dp>>>> 19959: 19959: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 19959: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 19959: { } 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: template, is_same<_Dp, default_delete<_Tp>>>> 19959: unique_ptr(auto_ptr<_Up>&& __u) noexcept; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: 19959: 19959: 19959: 19959: ~unique_ptr() noexcept 19959: { 19959: static_assert(__is_invocable::value, 19959: "unique_ptr's deleter must be invocable with a pointer"); 19959: auto& __ptr = _M_t._M_ptr(); 19959: if (__ptr != nullptr) 19959: get_deleter()(std::move(__ptr)); 19959: __ptr = pointer(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: unique_ptr& operator=(unique_ptr&&) = default; 19959: # 423 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: template 19959: 19959: typename enable_if< __and_< 19959: __safe_conversion_up<_Up, _Ep>, 19959: is_assignable 19959: >::value, 19959: unique_ptr&>::type 19959: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 19959: { 19959: reset(__u.release()); 19959: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: unique_ptr& 19959: operator=(nullptr_t) noexcept 19959: { 19959: reset(); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: typename add_lvalue_reference::type 19959: operator*() const noexcept(noexcept(*std::declval())) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) __builtin_unreachable(); } while (false); 19959: return *get(); 19959: } 19959: 19959: 19959: 19959: pointer 19959: operator->() const noexcept 19959: { 19959: ; 19959: return get(); 19959: } 19959: 19959: 19959: 19959: pointer 19959: get() const noexcept 19959: { return _M_t._M_ptr(); } 19959: 19959: 19959: 19959: deleter_type& 19959: get_deleter() noexcept 19959: { return _M_t._M_deleter(); } 19959: 19959: 19959: 19959: const deleter_type& 19959: get_deleter() const noexcept 19959: { return _M_t._M_deleter(); } 19959: 19959: 19959: 19959: explicit operator bool() const noexcept 19959: { return get() == pointer() ? false : true; } 19959: 19959: 19959: 19959: 19959: 19959: pointer 19959: release() noexcept 19959: { return _M_t.release(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: reset(pointer __p = pointer()) noexcept 19959: { 19959: static_assert(__is_invocable::value, 19959: "unique_ptr's deleter must be invocable with a pointer"); 19959: _M_t.reset(std::move(__p)); 19959: } 19959: 19959: 19959: 19959: void 19959: swap(unique_ptr& __u) noexcept 19959: { 19959: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 19959: _M_t.swap(__u._M_t); 19959: } 19959: 19959: 19959: unique_ptr(const unique_ptr&) = delete; 19959: unique_ptr& operator=(const unique_ptr&) = delete; 19959: }; 19959: # 534 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: template 19959: class unique_ptr<_Tp[], _Dp> 19959: { 19959: template 19959: using _DeleterConstraint = 19959: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 19959: 19959: __uniq_ptr_data<_Tp, _Dp> _M_t; 19959: 19959: 19959: template 19959: using __is_derived_Tp 19959: = __and_< is_base_of<_Tp, _Up>, 19959: __not_, __remove_cv_t<_Up>>> >; 19959: 19959: public: 19959: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 19959: using element_type = _Tp; 19959: using deleter_type = _Dp; 19959: 19959: 19959: 19959: template, 19959: typename _UP_pointer = typename _UPtr::pointer, 19959: typename _UP_element_type = typename _UPtr::element_type> 19959: using __safe_conversion_up = __and_< 19959: is_array<_Up>, 19959: is_same, 19959: is_same<_UP_pointer, _UP_element_type*>, 19959: is_convertible<_UP_element_type(*)[], element_type(*)[]> 19959: >; 19959: 19959: 19959: template 19959: using __safe_conversion_raw = __and_< 19959: __or_<__or_, 19959: is_same<_Up, nullptr_t>>, 19959: __and_, 19959: is_same, 19959: is_convertible< 19959: typename remove_pointer<_Up>::type(*)[], 19959: element_type(*)[]> 19959: > 19959: > 19959: >; 19959: 19959: 19959: 19959: 19959: template> 19959: constexpr unique_ptr() noexcept 19959: : _M_t() 19959: { } 19959: # 596 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: template, 19959: typename = typename enable_if< 19959: __safe_conversion_raw<_Up>::value, bool>::type> 19959: 19959: explicit 19959: unique_ptr(_Up __p) noexcept 19959: : _M_t(__p) 19959: { } 19959: # 615 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: template, 19959: is_copy_constructible<_Del>>> 19959: 19959: unique_ptr(_Up __p, const deleter_type& __d) noexcept 19959: : _M_t(__p, __d) { } 19959: # 630 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: template, 19959: is_move_constructible<_Del>>> 19959: 19959: unique_ptr(_Up __p, 19959: __enable_if_t::value, 19959: _Del&&> __d) noexcept 19959: : _M_t(std::move(__p), std::move(__d)) 19959: { } 19959: 19959: template::type, 19959: typename = _Require<__safe_conversion_raw<_Up>>> 19959: unique_ptr(_Up, 19959: __enable_if_t::value, 19959: _DelUnref&&>) = delete; 19959: 19959: 19959: unique_ptr(unique_ptr&&) = default; 19959: 19959: 19959: template> 19959: constexpr unique_ptr(nullptr_t) noexcept 19959: : _M_t() 19959: { } 19959: 19959: template, 19959: __conditional_t::value, 19959: is_same<_Ep, _Dp>, 19959: is_convertible<_Ep, _Dp>>>> 19959: 19959: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 19959: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: ~unique_ptr() 19959: { 19959: auto& __ptr = _M_t._M_ptr(); 19959: if (__ptr != nullptr) 19959: get_deleter()(__ptr); 19959: __ptr = pointer(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: unique_ptr& 19959: operator=(unique_ptr&&) = default; 19959: # 694 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: template 19959: 19959: typename 19959: enable_if<__and_<__safe_conversion_up<_Up, _Ep>, 19959: is_assignable 19959: >::value, 19959: unique_ptr&>::type 19959: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 19959: { 19959: reset(__u.release()); 19959: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: unique_ptr& 19959: operator=(nullptr_t) noexcept 19959: { 19959: reset(); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: typename std::add_lvalue_reference::type 19959: operator[](size_t __i) const 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) __builtin_unreachable(); } while (false); 19959: return get()[__i]; 19959: } 19959: 19959: 19959: 19959: pointer 19959: get() const noexcept 19959: { return _M_t._M_ptr(); } 19959: 19959: 19959: 19959: deleter_type& 19959: get_deleter() noexcept 19959: { return _M_t._M_deleter(); } 19959: 19959: 19959: 19959: const deleter_type& 19959: get_deleter() const noexcept 19959: { return _M_t._M_deleter(); } 19959: 19959: 19959: 19959: explicit operator bool() const noexcept 19959: { return get() == pointer() ? false : true; } 19959: 19959: 19959: 19959: 19959: 19959: pointer 19959: release() noexcept 19959: { return _M_t.release(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template , 19959: __and_, 19959: is_pointer<_Up>, 19959: is_convertible< 19959: typename remove_pointer<_Up>::type(*)[], 19959: element_type(*)[] 19959: > 19959: > 19959: > 19959: >> 19959: 19959: void 19959: reset(_Up __p) noexcept 19959: { _M_t.reset(std::move(__p)); } 19959: 19959: 19959: void reset(nullptr_t = nullptr) noexcept 19959: { reset(pointer()); } 19959: 19959: 19959: 19959: void 19959: swap(unique_ptr& __u) noexcept 19959: { 19959: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 19959: _M_t.swap(__u._M_t); 19959: } 19959: 19959: 19959: unique_ptr(const unique_ptr&) = delete; 19959: unique_ptr& operator=(const unique_ptr&) = delete; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline 19959: 19959: 19959: 19959: typename enable_if<__is_swappable<_Dp>::value>::type 19959: 19959: 19959: 19959: swap(unique_ptr<_Tp, _Dp>& __x, 19959: unique_ptr<_Tp, _Dp>& __y) noexcept 19959: { __x.swap(__y); } 19959: 19959: 19959: template 19959: typename enable_if::value>::type 19959: swap(unique_ptr<_Tp, _Dp>&, 19959: unique_ptr<_Tp, _Dp>&) = delete; 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(const unique_ptr<_Tp, _Dp>& __x, 19959: const unique_ptr<_Up, _Ep>& __y) 19959: { return __x.get() == __y.get(); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 19959: { return !__x; } 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 19959: { return !__x; } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator!=(const unique_ptr<_Tp, _Dp>& __x, 19959: const unique_ptr<_Up, _Ep>& __y) 19959: { return __x.get() != __y.get(); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 19959: { return (bool)__x; } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 19959: { return (bool)__x; } 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<(const unique_ptr<_Tp, _Dp>& __x, 19959: const unique_ptr<_Up, _Ep>& __y) 19959: { 19959: typedef typename 19959: std::common_type::pointer, 19959: typename unique_ptr<_Up, _Ep>::pointer>::type _CT; 19959: return std::less<_CT>()(__x.get(), __y.get()); 19959: } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 19959: { 19959: return std::less::pointer>()(__x.get(), 19959: nullptr); 19959: } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 19959: { 19959: return std::less::pointer>()(nullptr, 19959: __x.get()); 19959: } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<=(const unique_ptr<_Tp, _Dp>& __x, 19959: const unique_ptr<_Up, _Ep>& __y) 19959: { return !(__y < __x); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 19959: { return !(nullptr < __x); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 19959: { return !(__x < nullptr); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>(const unique_ptr<_Tp, _Dp>& __x, 19959: const unique_ptr<_Up, _Ep>& __y) 19959: { return (__y < __x); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 19959: { 19959: return std::less::pointer>()(nullptr, 19959: __x.get()); 19959: } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 19959: { 19959: return std::less::pointer>()(__x.get(), 19959: nullptr); 19959: } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>=(const unique_ptr<_Tp, _Dp>& __x, 19959: const unique_ptr<_Up, _Ep>& __y) 19959: { return !(__x < __y); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 19959: { return !(__x < nullptr); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 19959: { return !(nullptr < __x); } 19959: # 1006 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: template::__enable_hash_call> 19959: struct __uniq_ptr_hash 19959: 19959: : private __poison_hash<_Ptr> 19959: 19959: { 19959: size_t 19959: operator()(const _Up& __u) const 19959: noexcept(noexcept(std::declval>()(std::declval<_Ptr>()))) 19959: { return hash<_Ptr>()(__u.get()); } 19959: }; 19959: 19959: template 19959: struct __uniq_ptr_hash<_Up, _Ptr, false> 19959: : private __poison_hash<_Ptr> 19959: { }; 19959: 19959: 19959: 19959: template 19959: struct hash> 19959: : public __hash_base>, 19959: public __uniq_ptr_hash> 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: namespace __detail 19959: { 19959: template 19959: struct _MakeUniq 19959: { typedef unique_ptr<_Tp> __single_object; }; 19959: 19959: template 19959: struct _MakeUniq<_Tp[]> 19959: { typedef unique_ptr<_Tp[]> __array; }; 19959: 19959: template 19959: struct _MakeUniq<_Tp[_Bound]> 19959: { struct __invalid_type { }; }; 19959: 19959: template 19959: using __unique_ptr_t = typename _MakeUniq<_Tp>::__single_object; 19959: template 19959: using __unique_ptr_array_t = typename _MakeUniq<_Tp>::__array; 19959: template 19959: using __invalid_make_unique_t = typename _MakeUniq<_Tp>::__invalid_type; 19959: } 19959: # 1066 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: template 19959: 19959: inline __detail::__unique_ptr_t<_Tp> 19959: make_unique(_Args&&... __args) 19959: { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } 19959: # 1081 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: template 19959: 19959: inline __detail::__unique_ptr_array_t<_Tp> 19959: make_unique(size_t __num) 19959: { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: __detail::__invalid_make_unique_t<_Tp> 19959: make_unique(_Args&&...) = delete; 19959: # 1154 "/usr/include/c++/13/bits/unique_ptr.h" 3 19959: namespace __detail::__variant 19959: { 19959: template struct _Never_valueless_alt; 19959: 19959: 19959: 19959: template 19959: struct _Never_valueless_alt> 19959: : std::true_type 19959: { }; 19959: } 19959: 19959: 19959: 19959: } 19959: # 79 "/usr/include/c++/13/memory" 2 3 19959: 19959: # 1 "/usr/include/c++/13/bits/shared_ptr.h" 1 3 19959: # 52 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: # 1 "/usr/include/c++/13/iosfwd" 1 3 19959: # 36 "/usr/include/c++/13/iosfwd" 3 19959: 19959: # 37 "/usr/include/c++/13/iosfwd" 3 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/stringfwd.h" 1 3 19959: # 37 "/usr/include/c++/13/bits/stringfwd.h" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/stringfwd.h" 3 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct char_traits; 19959: 19959: template<> struct char_traits; 19959: 19959: template<> struct char_traits; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template<> struct char_traits; 19959: template<> struct char_traits; 19959: 19959: 19959: namespace __cxx11 { 19959: 19959: template, 19959: typename _Alloc = allocator<_CharT> > 19959: class basic_string; 19959: 19959: } 19959: 19959: 19959: typedef basic_string string; 19959: 19959: 19959: typedef basic_string wstring; 19959: # 89 "/usr/include/c++/13/bits/stringfwd.h" 3 19959: typedef basic_string u16string; 19959: 19959: 19959: typedef basic_string u32string; 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 42 "/usr/include/c++/13/iosfwd" 2 3 19959: # 1 "/usr/include/c++/13/bits/postypes.h" 1 3 19959: # 38 "/usr/include/c++/13/bits/postypes.h" 3 19959: 19959: # 39 "/usr/include/c++/13/bits/postypes.h" 3 19959: 19959: # 1 "/usr/include/c++/13/cwchar" 1 3 19959: # 39 "/usr/include/c++/13/cwchar" 3 19959: 19959: # 40 "/usr/include/c++/13/cwchar" 3 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/wchar.h" 1 3 4 19959: # 27 "/usr/include/wchar.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 19959: # 28 "/usr/include/wchar.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 19959: # 31 "/usr/include/wchar.h" 2 3 4 19959: 19959: 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 36 "/usr/include/wchar.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdarg.h" 1 3 4 19959: # 40 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdarg.h" 3 4 19959: typedef __builtin_va_list __gnuc_va_list; 19959: # 39 "/usr/include/wchar.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 1 3 4 19959: # 20 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 3 4 19959: typedef unsigned int wint_t; 19959: # 42 "/usr/include/wchar.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 1 3 4 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 1 3 4 19959: # 13 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 3 4 19959: typedef struct 19959: { 19959: int __count; 19959: union 19959: { 19959: unsigned int __wch; 19959: char __wchb[4]; 19959: } __value; 19959: } __mbstate_t; 19959: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 2 3 4 19959: 19959: typedef __mbstate_t mbstate_t; 19959: # 43 "/usr/include/wchar.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__FILE.h" 1 3 4 19959: 19959: 19959: 19959: struct _IO_FILE; 19959: typedef struct _IO_FILE __FILE; 19959: # 44 "/usr/include/wchar.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/FILE.h" 1 3 4 19959: 19959: 19959: 19959: struct _IO_FILE; 19959: 19959: 19959: typedef struct _IO_FILE FILE; 19959: # 47 "/usr/include/wchar.h" 2 3 4 19959: # 79 "/usr/include/wchar.h" 3 4 19959: extern "C" { 19959: 19959: 19959: 19959: struct tm; 19959: 19959: 19959: 19959: extern wchar_t *wcscpy (wchar_t *__restrict __dest, 19959: const wchar_t *__restrict __src) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern wchar_t *wcsncpy (wchar_t *__restrict __dest, 19959: const wchar_t *__restrict __src, size_t __n) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern wchar_t *wcscat (wchar_t *__restrict __dest, 19959: const wchar_t *__restrict __src) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: extern wchar_t *wcsncat (wchar_t *__restrict __dest, 19959: const wchar_t *__restrict __src, size_t __n) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 19959: 19959: 19959: extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, 19959: size_t __n) noexcept (true); 19959: 19959: 19959: 19959: extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 19959: locale_t __loc) noexcept (true); 19959: 19959: extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 19959: size_t __n, locale_t __loc) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 19959: 19959: 19959: 19959: extern size_t wcsxfrm (wchar_t *__restrict __s1, 19959: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, 19959: locale_t __loc) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, 19959: size_t __n, locale_t __loc) noexcept (true); 19959: 19959: 19959: extern wchar_t *wcsdup (const wchar_t *__s) noexcept (true) 19959: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 19959: 19959: 19959: 19959: 19959: extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) 19959: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 19959: extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) 19959: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) 19959: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 19959: extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) 19959: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 19959: # 182 "/usr/include/wchar.h" 3 4 19959: extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) 19959: noexcept (true) __attribute__ ((__pure__)); 19959: 19959: 19959: 19959: 19959: extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) 19959: noexcept (true) __attribute__ ((__pure__)); 19959: 19959: 19959: extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) 19959: noexcept (true) __attribute__ ((__pure__)); 19959: 19959: 19959: extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) 19959: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 19959: extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, 19959: const wchar_t *__accept) 19959: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) 19959: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 19959: extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, 19959: const wchar_t *__needle) 19959: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern wchar_t *wcstok (wchar_t *__restrict __s, 19959: const wchar_t *__restrict __delim, 19959: wchar_t **__restrict __ptr) noexcept (true); 19959: 19959: 19959: extern size_t wcslen (const wchar_t *__s) noexcept (true) __attribute__ ((__pure__)); 19959: 19959: 19959: 19959: 19959: extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) 19959: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 19959: extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, 19959: const wchar_t *__needle) 19959: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 19959: # 241 "/usr/include/wchar.h" 3 4 19959: extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) 19959: noexcept (true) __attribute__ ((__pure__)); 19959: 19959: 19959: 19959: 19959: 19959: extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) 19959: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 19959: extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, 19959: size_t __n) 19959: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 19959: noexcept (true) __attribute__ ((__pure__)); 19959: 19959: 19959: extern wchar_t *wmemcpy (wchar_t *__restrict __s1, 19959: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 19959: 19959: 19959: 19959: extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) 19959: noexcept (true); 19959: 19959: 19959: extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern wchar_t *wmempcpy (wchar_t *__restrict __s1, 19959: const wchar_t *__restrict __s2, size_t __n) 19959: noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern wint_t btowc (int __c) noexcept (true); 19959: 19959: 19959: 19959: extern int wctob (wint_t __c) noexcept (true); 19959: 19959: 19959: 19959: extern int mbsinit (const mbstate_t *__ps) noexcept (true) __attribute__ ((__pure__)); 19959: 19959: 19959: 19959: extern size_t mbrtowc (wchar_t *__restrict __pwc, 19959: const char *__restrict __s, size_t __n, 19959: mbstate_t *__restrict __p) noexcept (true); 19959: 19959: 19959: extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, 19959: mbstate_t *__restrict __ps) noexcept (true); 19959: 19959: 19959: extern size_t __mbrlen (const char *__restrict __s, size_t __n, 19959: mbstate_t *__restrict __ps) noexcept (true); 19959: extern size_t mbrlen (const char *__restrict __s, size_t __n, 19959: mbstate_t *__restrict __ps) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern wint_t __btowc_alias (int __c) __asm ("btowc"); 19959: extern __inline __attribute__ ((__gnu_inline__)) wint_t 19959: __attribute__ ((__leaf__)) btowc (int __c) noexcept (true) 19959: { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' 19959: ? (wint_t) __c : __btowc_alias (__c)); } 19959: 19959: extern int __wctob_alias (wint_t __c) __asm ("wctob"); 19959: extern __inline __attribute__ ((__gnu_inline__)) int 19959: __attribute__ ((__leaf__)) wctob (wint_t __wc) noexcept (true) 19959: { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' 19959: ? (int) __wc : __wctob_alias (__wc)); } 19959: 19959: extern __inline __attribute__ ((__gnu_inline__)) size_t 19959: __attribute__ ((__leaf__)) mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true) 19959: 19959: { return (__ps != __null 19959: ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); } 19959: 19959: 19959: 19959: 19959: extern size_t mbsrtowcs (wchar_t *__restrict __dst, 19959: const char **__restrict __src, size_t __len, 19959: mbstate_t *__restrict __ps) noexcept (true); 19959: 19959: 19959: 19959: extern size_t wcsrtombs (char *__restrict __dst, 19959: const wchar_t **__restrict __src, size_t __len, 19959: mbstate_t *__restrict __ps) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern size_t mbsnrtowcs (wchar_t *__restrict __dst, 19959: const char **__restrict __src, size_t __nmc, 19959: size_t __len, mbstate_t *__restrict __ps) noexcept (true); 19959: 19959: 19959: 19959: extern size_t wcsnrtombs (char *__restrict __dst, 19959: const wchar_t **__restrict __src, 19959: size_t __nwc, size_t __len, 19959: mbstate_t *__restrict __ps) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int wcwidth (wchar_t __c) noexcept (true); 19959: 19959: 19959: 19959: extern int wcswidth (const wchar_t *__s, size_t __n) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern double wcstod (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr) noexcept (true); 19959: 19959: 19959: 19959: extern float wcstof (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr) noexcept (true); 19959: extern long double wcstold (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr) noexcept (true); 19959: # 397 "/usr/include/wchar.h" 3 4 19959: extern _Float32 wcstof32 (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr) noexcept (true); 19959: 19959: 19959: 19959: extern _Float64 wcstof64 (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr) noexcept (true); 19959: # 412 "/usr/include/wchar.h" 3 4 19959: extern _Float32x wcstof32x (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr) noexcept (true); 19959: # 429 "/usr/include/wchar.h" 3 4 19959: extern long int wcstol (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, int __base) noexcept (true); 19959: 19959: 19959: 19959: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, int __base) 19959: noexcept (true); 19959: 19959: 19959: 19959: 19959: __extension__ 19959: extern long long int wcstoll (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, int __base) 19959: noexcept (true); 19959: 19959: 19959: 19959: __extension__ 19959: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, 19959: int __base) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: __extension__ 19959: extern long long int wcstoq (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, int __base) 19959: noexcept (true); 19959: 19959: 19959: 19959: __extension__ 19959: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, 19959: int __base) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long int wcstol_l (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, int __base, 19959: locale_t __loc) noexcept (true); 19959: 19959: extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, 19959: int __base, locale_t __loc) noexcept (true); 19959: 19959: __extension__ 19959: extern long long int wcstoll_l (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, 19959: int __base, locale_t __loc) noexcept (true); 19959: 19959: __extension__ 19959: extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, 19959: int __base, locale_t __loc) 19959: noexcept (true); 19959: 19959: extern double wcstod_l (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, locale_t __loc) 19959: noexcept (true); 19959: 19959: extern float wcstof_l (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, locale_t __loc) 19959: noexcept (true); 19959: 19959: extern long double wcstold_l (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, 19959: locale_t __loc) noexcept (true); 19959: # 512 "/usr/include/wchar.h" 3 4 19959: extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, 19959: locale_t __loc) noexcept (true); 19959: 19959: 19959: 19959: extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, 19959: locale_t __loc) noexcept (true); 19959: # 530 "/usr/include/wchar.h" 3 4 19959: extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, 19959: locale_t __loc) noexcept (true); 19959: # 552 "/usr/include/wchar.h" 3 4 19959: extern wchar_t *wcpcpy (wchar_t *__restrict __dest, 19959: const wchar_t *__restrict __src) noexcept (true); 19959: 19959: 19959: 19959: extern wchar_t *wcpncpy (wchar_t *__restrict __dest, 19959: const wchar_t *__restrict __src, size_t __n) 19959: noexcept (true); 19959: # 581 "/usr/include/wchar.h" 3 4 19959: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 19959: __attribute__ ((__malloc__)) ; 19959: 19959: 19959: 19959: 19959: 19959: extern int fwide (__FILE *__fp, int __mode) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int fwprintf (__FILE *__restrict __stream, 19959: const wchar_t *__restrict __format, ...) 19959: ; 19959: 19959: 19959: 19959: 19959: extern int wprintf (const wchar_t *__restrict __format, ...) 19959: ; 19959: 19959: extern int swprintf (wchar_t *__restrict __s, size_t __n, 19959: const wchar_t *__restrict __format, ...) 19959: noexcept (true) ; 19959: 19959: 19959: 19959: 19959: 19959: extern int vfwprintf (__FILE *__restrict __s, 19959: const wchar_t *__restrict __format, 19959: __gnuc_va_list __arg) 19959: ; 19959: 19959: 19959: 19959: 19959: extern int vwprintf (const wchar_t *__restrict __format, 19959: __gnuc_va_list __arg) 19959: ; 19959: 19959: 19959: extern int vswprintf (wchar_t *__restrict __s, size_t __n, 19959: const wchar_t *__restrict __format, 19959: __gnuc_va_list __arg) 19959: noexcept (true) ; 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int fwscanf (__FILE *__restrict __stream, 19959: const wchar_t *__restrict __format, ...) 19959: ; 19959: 19959: 19959: 19959: 19959: extern int wscanf (const wchar_t *__restrict __format, ...) 19959: ; 19959: 19959: extern int swscanf (const wchar_t *__restrict __s, 19959: const wchar_t *__restrict __format, ...) 19959: noexcept (true) ; 19959: # 657 "/usr/include/wchar.h" 3 4 19959: extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_fwscanf") 19959: 19959: 19959: ; 19959: extern int wscanf (const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_wscanf") 19959: 19959: ; 19959: extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc99_swscanf") 19959: 19959: 19959: ; 19959: # 688 "/usr/include/wchar.h" 3 4 19959: extern int vfwscanf (__FILE *__restrict __s, 19959: const wchar_t *__restrict __format, 19959: __gnuc_va_list __arg) 19959: ; 19959: 19959: 19959: 19959: 19959: extern int vwscanf (const wchar_t *__restrict __format, 19959: __gnuc_va_list __arg) 19959: ; 19959: 19959: extern int vswscanf (const wchar_t *__restrict __s, 19959: const wchar_t *__restrict __format, 19959: __gnuc_va_list __arg) 19959: noexcept (true) ; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfwscanf") 19959: 19959: 19959: ; 19959: extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vwscanf") 19959: 19959: ; 19959: extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc99_vswscanf") 19959: 19959: 19959: ; 19959: # 744 "/usr/include/wchar.h" 3 4 19959: extern wint_t fgetwc (__FILE *__stream); 19959: extern wint_t getwc (__FILE *__stream); 19959: 19959: 19959: 19959: 19959: 19959: extern wint_t getwchar (void); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern wint_t fputwc (wchar_t __wc, __FILE *__stream); 19959: extern wint_t putwc (wchar_t __wc, __FILE *__stream); 19959: 19959: 19959: 19959: 19959: 19959: extern wint_t putwchar (wchar_t __wc); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, 19959: __FILE *__restrict __stream); 19959: 19959: 19959: 19959: 19959: 19959: extern int fputws (const wchar_t *__restrict __ws, 19959: __FILE *__restrict __stream); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern wint_t ungetwc (wint_t __wc, __FILE *__stream); 19959: # 799 "/usr/include/wchar.h" 3 4 19959: extern wint_t getwc_unlocked (__FILE *__stream); 19959: extern wint_t getwchar_unlocked (void); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern wint_t fgetwc_unlocked (__FILE *__stream); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); 19959: # 825 "/usr/include/wchar.h" 3 4 19959: extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); 19959: extern wint_t putwchar_unlocked (wchar_t __wc); 19959: # 835 "/usr/include/wchar.h" 3 4 19959: extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, 19959: __FILE *__restrict __stream); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int fputws_unlocked (const wchar_t *__restrict __ws, 19959: __FILE *__restrict __stream); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, 19959: const wchar_t *__restrict __format, 19959: const struct tm *__restrict __tp) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, 19959: const wchar_t *__restrict __format, 19959: const struct tm *__restrict __tp, 19959: locale_t __loc) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 1 3 4 19959: # 27 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 3 4 19959: extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, 19959: const wchar_t *__restrict __s2, size_t __n, 19959: size_t __ns1) noexcept (true); 19959: extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, 19959: size_t __n, size_t __ns1) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, 19959: const wchar_t *__restrict __s2, size_t __n, 19959: size_t __ns1) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, 19959: size_t __ns) noexcept (true); 19959: extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, 19959: const wchar_t *__restrict __src, 19959: size_t __n) noexcept (true); 19959: extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, 19959: const wchar_t *__restrict __src, 19959: size_t __destlen) noexcept (true); 19959: extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, 19959: const wchar_t *__restrict __src, size_t __n, 19959: size_t __destlen) noexcept (true); 19959: extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, 19959: const wchar_t *__restrict __src, size_t __n, 19959: size_t __destlen) noexcept (true); 19959: extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, 19959: const wchar_t *__restrict __src, 19959: size_t __destlen) noexcept (true); 19959: extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, 19959: const wchar_t *__restrict __src, 19959: size_t __n, size_t __destlen) noexcept (true); 19959: extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, 19959: int __flag, size_t __s_len, 19959: const wchar_t *__restrict __format, ...) 19959: noexcept (true) ; 19959: extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, 19959: int __flag, size_t __s_len, 19959: const wchar_t *__restrict __format, 19959: __gnuc_va_list __arg) 19959: noexcept (true) ; 19959: 19959: 19959: 19959: extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, 19959: const wchar_t *__restrict __format, ...); 19959: extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, 19959: ...); 19959: extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, 19959: const wchar_t *__restrict __format, 19959: __gnuc_va_list __ap); 19959: extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, 19959: __gnuc_va_list __ap); 19959: 19959: 19959: 19959: extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, 19959: __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, 19959: int __n, __FILE *__restrict __stream) 19959: __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, 19959: mbstate_t *__restrict __p, 19959: size_t __buflen) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, 19959: const char **__restrict __src, 19959: size_t __len, mbstate_t *__restrict __ps, 19959: size_t __dstlen) noexcept (true); 19959: extern size_t __wcsrtombs_chk (char *__restrict __dst, 19959: const wchar_t **__restrict __src, 19959: size_t __len, mbstate_t *__restrict __ps, 19959: size_t __dstlen) noexcept (true); 19959: 19959: 19959: 19959: extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, 19959: const char **__restrict __src, size_t __nmc, 19959: size_t __len, mbstate_t *__restrict __ps, 19959: size_t __dstlen) noexcept (true); 19959: extern size_t __wcsnrtombs_chk (char *__restrict __dst, 19959: const wchar_t **__restrict __src, 19959: size_t __nwc, size_t __len, 19959: mbstate_t *__restrict __ps, size_t __dstlen) 19959: noexcept (true); 19959: # 869 "/usr/include/wchar.h" 2 3 4 19959: # 879 "/usr/include/wchar.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 19959: extern wchar_t *__wmemcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmemcpy") 19959: 19959: 19959: ; 19959: 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") 19959: 19959: 19959: 19959: __attribute__((__warning__ ("wmemcpy called with length bigger than size of destination " "buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 19959: __attribute__ ((__leaf__)) wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 19959: 19959: { 19959: 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))))) 19959: 19959: ; 19959: } 19959: 19959: 19959: extern wchar_t *__wmemmove_alias (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __asm__ ("" "wmemmove") 19959: 19959: ; 19959: extern wchar_t *__wmemmove_chk_warn (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) noexcept (true) __asm__ ("" "__wmemmove_chk") 19959: 19959: 19959: __attribute__((__warning__ ("wmemmove called with length bigger than size of destination " "buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 19959: __attribute__ ((__leaf__)) wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) 19959: { 19959: 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))))) 19959: 19959: ; 19959: } 19959: 19959: 19959: 19959: extern wchar_t *__wmempcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmempcpy") 19959: 19959: 19959: ; 19959: 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") 19959: 19959: 19959: 19959: __attribute__((__warning__ ("wmempcpy called with length bigger than size of destination " "buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 19959: __attribute__ ((__leaf__)) wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 19959: 19959: { 19959: 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))))) 19959: 19959: ; 19959: } 19959: 19959: 19959: 19959: extern wchar_t *__wmemset_alias (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm__ ("" "wmemset") 19959: ; 19959: extern wchar_t *__wmemset_chk_warn (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) noexcept (true) __asm__ ("" "__wmemset_chk") 19959: 19959: 19959: __attribute__((__warning__ ("wmemset called with length bigger than size of destination " "buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 19959: __attribute__ ((__leaf__)) wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) 19959: { 19959: 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))))) 19959: 19959: ; 19959: } 19959: 19959: 19959: extern wchar_t *__wcscpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscpy") 19959: 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 19959: __attribute__ ((__leaf__)) wcscpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) 19959: { 19959: size_t sz = __builtin_object_size (__dest, 2 > 1); 19959: if (sz != (size_t) -1) 19959: return __wcscpy_chk (__dest, __src, sz / sizeof (wchar_t)); 19959: return __wcscpy_alias (__dest, __src); 19959: } 19959: 19959: 19959: extern wchar_t *__wcpcpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcpcpy") 19959: 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 19959: __attribute__ ((__leaf__)) wcpcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) 19959: { 19959: size_t sz = __builtin_object_size (__dest, 2 > 1); 19959: if (sz != (size_t) -1) 19959: return __wcpcpy_chk (__dest, __src, sz / sizeof (wchar_t)); 19959: return __wcpcpy_alias (__dest, __src); 19959: } 19959: 19959: 19959: extern wchar_t *__wcsncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncpy") 19959: 19959: 19959: ; 19959: 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") 19959: 19959: 19959: 19959: __attribute__((__warning__ ("wcsncpy called with length bigger than size of destination " "buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 19959: __attribute__ ((__leaf__)) wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 19959: 19959: { 19959: 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))))) 19959: 19959: ; 19959: } 19959: 19959: 19959: extern wchar_t *__wcpncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcpncpy") 19959: 19959: 19959: ; 19959: 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") 19959: 19959: 19959: 19959: __attribute__((__warning__ ("wcpncpy called with length bigger than size of destination " "buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 19959: __attribute__ ((__leaf__)) wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 19959: 19959: { 19959: 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))))) 19959: 19959: ; 19959: } 19959: 19959: 19959: extern wchar_t *__wcscat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscat") 19959: 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 19959: __attribute__ ((__leaf__)) wcscat (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) 19959: { 19959: size_t sz = __builtin_object_size (__dest, 2 > 1); 19959: if (sz != (size_t) -1) 19959: return __wcscat_chk (__dest, __src, sz / sizeof (wchar_t)); 19959: return __wcscat_alias (__dest, __src); 19959: } 19959: 19959: 19959: extern wchar_t *__wcsncat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncat") 19959: 19959: 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 19959: __attribute__ ((__leaf__)) wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 19959: 19959: { 19959: size_t sz = __builtin_object_size (__dest, 2 > 1); 19959: if (sz != (size_t) -1) 19959: return __wcsncat_chk (__dest, __src, __n, sz / sizeof (wchar_t)); 19959: return __wcsncat_alias (__dest, __src, __n); 19959: } 19959: 19959: 19959: 19959: extern int __swprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) __asm__ ("" "swprintf") 19959: 19959: 19959: ; 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) 19959: 19959: { 19959: size_t sz = __builtin_object_size (__s, 2 > 1); 19959: if (sz != (size_t) -1 || 2 > 1) 19959: return __swprintf_chk (__s, __n, 2 - 1, 19959: sz / sizeof (wchar_t), __fmt, __builtin_va_arg_pack ()); 19959: return __swprintf_alias (__s, __n, __fmt, __builtin_va_arg_pack ()); 19959: } 19959: # 230 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 19959: extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) __asm__ ("" "vswprintf") 19959: 19959: 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 19959: 19959: { 19959: size_t sz = __builtin_object_size (__s, 2 > 1); 19959: if (sz != (size_t) -1 || 2 > 1) 19959: return __vswprintf_chk (__s, __n, 2 - 1, 19959: sz / sizeof (wchar_t), __fmt, __ap); 19959: return __vswprintf_alias (__s, __n, __fmt, __ap); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: wprintf (const wchar_t *__restrict __fmt, ...) 19959: { 19959: return __wprintf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) 19959: { 19959: return __fwprintf_chk (__stream, 2 - 1, __fmt, 19959: __builtin_va_arg_pack ()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 19959: { 19959: return __vwprintf_chk (2 - 1, __fmt, __ap); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: vfwprintf (__FILE *__restrict __stream, 19959: const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 19959: { 19959: return __vfwprintf_chk (__stream, 2 - 1, __fmt, __ap); 19959: } 19959: 19959: 19959: 19959: extern wchar_t *__fgetws_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws") 19959: 19959: __attribute__ ((__warn_unused_result__)); 19959: extern wchar_t *__fgetws_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_chk") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws called with bigger size than length " "of destination buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 19959: fgetws (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) 19959: { 19959: size_t sz = __builtin_object_size (__s, 2 > 1); 19959: 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))))))) 19959: return __fgetws_alias (__s, __n, __stream); 19959: 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))))) 19959: return __fgetws_chk_warn (__s, sz / sizeof (wchar_t), __n, __stream); 19959: return __fgetws_chk (__s, sz / sizeof (wchar_t), __n, __stream); 19959: } 19959: 19959: 19959: extern wchar_t *__fgetws_unlocked_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws_unlocked") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)); 19959: extern wchar_t *__fgetws_unlocked_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_unlocked_chk") 19959: 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws_unlocked called with bigger size than length " "of destination buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 19959: fgetws_unlocked (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) 19959: { 19959: size_t sz = __builtin_object_size (__s, 2 > 1); 19959: 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))))))) 19959: return __fgetws_unlocked_alias (__s, __n, __stream); 19959: 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))))) 19959: return __fgetws_unlocked_chk_warn (__s, sz / sizeof (wchar_t), __n, 19959: __stream); 19959: return __fgetws_unlocked_chk (__s, sz / sizeof (wchar_t), __n, __stream); 19959: } 19959: 19959: 19959: 19959: extern size_t __wcrtomb_alias (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcrtomb") 19959: 19959: __attribute__ ((__warn_unused_result__)); 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 19959: __attribute__ ((__leaf__)) wcrtomb (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) 19959: 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 19959: && 16 > __builtin_object_size (__s, 2 > 1)) 19959: return __wcrtomb_chk (__s, __wchar, __ps, __builtin_object_size (__s, 2 > 1)); 19959: return __wcrtomb_alias (__s, __wchar, __ps); 19959: } 19959: 19959: 19959: extern size_t __mbsrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "mbsrtowcs") 19959: 19959: 19959: 19959: ; 19959: 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") 19959: 19959: 19959: 19959: 19959: __attribute__((__warning__ ("mbsrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 19959: __attribute__ ((__leaf__)) mbsrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 19959: 19959: { 19959: 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))))) 19959: 19959: ; 19959: } 19959: 19959: 19959: extern size_t __wcsrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcsrtombs") 19959: 19959: 19959: 19959: ; 19959: 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") 19959: 19959: 19959: 19959: 19959: __attribute__((__warning__ ("wcsrtombs called with dst buffer smaller than len"))); 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 19959: __attribute__ ((__leaf__)) wcsrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 19959: 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: 19959: 19959: 19959: 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") 19959: 19959: 19959: 19959: ; 19959: 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") 19959: 19959: 19959: 19959: 19959: __attribute__((__warning__ ("mbsnrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 19959: __attribute__ ((__leaf__)) mbsnrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 19959: 19959: { 19959: 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))))) 19959: 19959: ; 19959: } 19959: 19959: 19959: 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") 19959: 19959: 19959: 19959: ; 19959: 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") 19959: 19959: 19959: 19959: 19959: 19959: __attribute__((__warning__ ("wcsnrtombs called with dst buffer smaller than len"))); 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 19959: __attribute__ ((__leaf__)) wcsnrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 19959: 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: # 880 "/usr/include/wchar.h" 2 3 4 19959: 19959: 19959: } 19959: # 45 "/usr/include/c++/13/cwchar" 2 3 19959: # 62 "/usr/include/c++/13/cwchar" 3 19959: namespace std 19959: { 19959: using ::mbstate_t; 19959: } 19959: # 135 "/usr/include/c++/13/cwchar" 3 19959: extern "C++" 19959: { 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: using ::wint_t; 19959: 19959: using ::btowc; 19959: using ::fgetwc; 19959: using ::fgetws; 19959: using ::fputwc; 19959: using ::fputws; 19959: using ::fwide; 19959: using ::fwprintf; 19959: using ::fwscanf; 19959: using ::getwc; 19959: using ::getwchar; 19959: using ::mbrlen; 19959: using ::mbrtowc; 19959: using ::mbsinit; 19959: using ::mbsrtowcs; 19959: using ::putwc; 19959: using ::putwchar; 19959: 19959: using ::swprintf; 19959: 19959: using ::swscanf; 19959: using ::ungetwc; 19959: using ::vfwprintf; 19959: 19959: using ::vfwscanf; 19959: 19959: 19959: using ::vswprintf; 19959: 19959: 19959: using ::vswscanf; 19959: 19959: using ::vwprintf; 19959: 19959: using ::vwscanf; 19959: 19959: using ::wcrtomb; 19959: using ::wcscat; 19959: using ::wcscmp; 19959: using ::wcscoll; 19959: using ::wcscpy; 19959: using ::wcscspn; 19959: using ::wcsftime; 19959: using ::wcslen; 19959: using ::wcsncat; 19959: using ::wcsncmp; 19959: using ::wcsncpy; 19959: using ::wcsrtombs; 19959: using ::wcsspn; 19959: using ::wcstod; 19959: 19959: using ::wcstof; 19959: 19959: using ::wcstok; 19959: using ::wcstol; 19959: using ::wcstoul; 19959: using ::wcsxfrm; 19959: using ::wctob; 19959: using ::wmemcmp; 19959: using ::wmemcpy; 19959: using ::wmemmove; 19959: using ::wmemset; 19959: using ::wprintf; 19959: using ::wscanf; 19959: using ::wcschr; 19959: using ::wcspbrk; 19959: using ::wcsrchr; 19959: using ::wcsstr; 19959: using ::wmemchr; 19959: # 234 "/usr/include/c++/13/cwchar" 3 19959: 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace __gnu_cxx 19959: { 19959: 19959: 19959: 19959: 19959: 19959: using ::wcstold; 19959: # 260 "/usr/include/c++/13/cwchar" 3 19959: using ::wcstoll; 19959: using ::wcstoull; 19959: 19959: } 19959: 19959: namespace std 19959: { 19959: using ::__gnu_cxx::wcstold; 19959: using ::__gnu_cxx::wcstoll; 19959: using ::__gnu_cxx::wcstoull; 19959: } 19959: # 280 "/usr/include/c++/13/cwchar" 3 19959: namespace std 19959: { 19959: 19959: using std::wcstof; 19959: 19959: 19959: using std::vfwscanf; 19959: 19959: 19959: using std::vswscanf; 19959: 19959: 19959: using std::vwscanf; 19959: 19959: 19959: 19959: using std::wcstold; 19959: using std::wcstoll; 19959: using std::wcstoull; 19959: 19959: } 19959: # 41 "/usr/include/c++/13/bits/postypes.h" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 62 "/usr/include/c++/13/bits/postypes.h" 3 19959: typedef long long int streamoff; 19959: 19959: 19959: 19959: 19959: 19959: typedef ptrdiff_t streamsize; 19959: # 81 "/usr/include/c++/13/bits/postypes.h" 3 19959: template 19959: class fpos 19959: { 19959: private: 19959: streamoff _M_off; 19959: _StateT _M_state; 19959: 19959: public: 19959: 19959: 19959: 19959: 19959: fpos() 19959: : _M_off(0), _M_state() { } 19959: # 103 "/usr/include/c++/13/bits/postypes.h" 3 19959: fpos(streamoff __off) 19959: : _M_off(__off), _M_state() { } 19959: 19959: 19959: fpos(const fpos&) = default; 19959: fpos& operator=(const fpos&) = default; 19959: ~fpos() = default; 19959: 19959: 19959: 19959: operator streamoff() const { return _M_off; } 19959: 19959: 19959: void 19959: state(_StateT __st) 19959: { _M_state = __st; } 19959: 19959: 19959: _StateT 19959: state() const 19959: { return _M_state; } 19959: 19959: 19959: 19959: 19959: 19959: fpos& 19959: operator+=(streamoff __off) 19959: { 19959: _M_off += __off; 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: fpos& 19959: operator-=(streamoff __off) 19959: { 19959: _M_off -= __off; 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: fpos 19959: operator+(streamoff __off) const 19959: { 19959: fpos __pos(*this); 19959: __pos += __off; 19959: return __pos; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: fpos 19959: operator-(streamoff __off) const 19959: { 19959: fpos __pos(*this); 19959: __pos -= __off; 19959: return __pos; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: streamoff 19959: operator-(const fpos& __other) const 19959: { return _M_off - __other._M_off; } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 19959: { return streamoff(__lhs) == streamoff(__rhs); } 19959: 19959: template 19959: inline bool 19959: operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 19959: { return streamoff(__lhs) != streamoff(__rhs); } 19959: 19959: 19959: 19959: 19959: 19959: typedef fpos streampos; 19959: 19959: typedef fpos wstreampos; 19959: # 215 "/usr/include/c++/13/bits/postypes.h" 3 19959: typedef fpos u16streampos; 19959: 19959: typedef fpos u32streampos; 19959: 19959: 19959: 19959: } 19959: # 43 "/usr/include/c++/13/iosfwd" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 76 "/usr/include/c++/13/iosfwd" 3 19959: class ios_base; 19959: 19959: template > 19959: class basic_ios; 19959: 19959: template > 19959: class basic_streambuf; 19959: 19959: template > 19959: class basic_istream; 19959: 19959: template > 19959: class basic_ostream; 19959: 19959: template > 19959: class basic_iostream; 19959: 19959: 19959: namespace __cxx11 { 19959: 19959: template, 19959: typename _Alloc = allocator<_CharT> > 19959: class basic_stringbuf; 19959: 19959: template, 19959: typename _Alloc = allocator<_CharT> > 19959: class basic_istringstream; 19959: 19959: template, 19959: typename _Alloc = allocator<_CharT> > 19959: class basic_ostringstream; 19959: 19959: template, 19959: typename _Alloc = allocator<_CharT> > 19959: class basic_stringstream; 19959: 19959: } 19959: 19959: template > 19959: class basic_filebuf; 19959: 19959: template > 19959: class basic_ifstream; 19959: 19959: template > 19959: class basic_ofstream; 19959: 19959: template > 19959: class basic_fstream; 19959: 19959: template > 19959: class istreambuf_iterator; 19959: 19959: template > 19959: class ostreambuf_iterator; 19959: 19959: 19959: 19959: typedef basic_ios ios; 19959: 19959: 19959: typedef basic_streambuf streambuf; 19959: 19959: 19959: typedef basic_istream istream; 19959: 19959: 19959: typedef basic_ostream ostream; 19959: 19959: 19959: typedef basic_iostream iostream; 19959: 19959: 19959: typedef basic_stringbuf stringbuf; 19959: 19959: 19959: typedef basic_istringstream istringstream; 19959: 19959: 19959: typedef basic_ostringstream ostringstream; 19959: 19959: 19959: typedef basic_stringstream stringstream; 19959: 19959: 19959: typedef basic_filebuf filebuf; 19959: 19959: 19959: typedef basic_ifstream ifstream; 19959: 19959: 19959: typedef basic_ofstream ofstream; 19959: 19959: 19959: typedef basic_fstream fstream; 19959: 19959: 19959: 19959: typedef basic_ios wios; 19959: 19959: 19959: typedef basic_streambuf wstreambuf; 19959: 19959: 19959: typedef basic_istream wistream; 19959: 19959: 19959: typedef basic_ostream wostream; 19959: 19959: 19959: typedef basic_iostream wiostream; 19959: 19959: 19959: typedef basic_stringbuf wstringbuf; 19959: 19959: 19959: typedef basic_istringstream wistringstream; 19959: 19959: 19959: typedef basic_ostringstream wostringstream; 19959: 19959: 19959: typedef basic_stringstream wstringstream; 19959: 19959: 19959: typedef basic_filebuf wfilebuf; 19959: 19959: 19959: typedef basic_ifstream wifstream; 19959: 19959: 19959: typedef basic_ofstream wofstream; 19959: 19959: 19959: typedef basic_fstream wfstream; 19959: # 255 "/usr/include/c++/13/iosfwd" 3 19959: 19959: } 19959: # 53 "/usr/include/c++/13/bits/shared_ptr.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/shared_ptr_base.h" 1 3 19959: # 53 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 19959: # 1 "/usr/include/c++/13/bits/allocated_ptr.h" 1 3 19959: # 40 "/usr/include/c++/13/bits/allocated_ptr.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: template 19959: struct __allocated_ptr 19959: { 19959: using pointer = typename allocator_traits<_Alloc>::pointer; 19959: using value_type = typename allocator_traits<_Alloc>::value_type; 19959: 19959: 19959: __allocated_ptr(_Alloc& __a, pointer __ptr) noexcept 19959: : _M_alloc(std::__addressof(__a)), _M_ptr(__ptr) 19959: { } 19959: 19959: 19959: template>> 19959: __allocated_ptr(_Alloc& __a, _Ptr __ptr) 19959: : _M_alloc(std::__addressof(__a)), 19959: _M_ptr(pointer_traits::pointer_to(*__ptr)) 19959: { } 19959: 19959: 19959: __allocated_ptr(__allocated_ptr&& __gd) noexcept 19959: : _M_alloc(__gd._M_alloc), _M_ptr(__gd._M_ptr) 19959: { __gd._M_ptr = nullptr; } 19959: 19959: 19959: ~__allocated_ptr() 19959: { 19959: if (_M_ptr != nullptr) 19959: std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); 19959: } 19959: 19959: 19959: __allocated_ptr& 19959: operator=(std::nullptr_t) noexcept 19959: { 19959: _M_ptr = nullptr; 19959: return *this; 19959: } 19959: 19959: 19959: value_type* get() { return std::__to_address(_M_ptr); } 19959: 19959: private: 19959: _Alloc* _M_alloc; 19959: pointer _M_ptr; 19959: }; 19959: 19959: 19959: template 19959: __allocated_ptr<_Alloc> 19959: __allocate_guarded(_Alloc& __a) 19959: { 19959: return { __a, std::allocator_traits<_Alloc>::allocate(__a, 1) }; 19959: } 19959: 19959: 19959: 19959: } 19959: # 54 "/usr/include/c++/13/bits/shared_ptr_base.h" 2 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/ext/atomicity.h" 1 3 19959: # 32 "/usr/include/c++/13/ext/atomicity.h" 3 19959: 19959: # 33 "/usr/include/c++/13/ext/atomicity.h" 3 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr.h" 1 3 19959: # 30 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr.h" 3 19959: #pragma GCC visibility push(default) 19959: # 148 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr.h" 3 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 1 3 19959: # 35 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 19959: # 1 "/usr/include/pthread.h" 1 3 4 19959: # 22 "/usr/include/pthread.h" 3 4 19959: # 1 "/usr/include/sched.h" 1 3 4 19959: # 29 "/usr/include/sched.h" 3 4 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 30 "/usr/include/sched.h" 2 3 4 19959: # 43 "/usr/include/sched.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 1 3 4 19959: # 80 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 1 3 4 19959: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 3 4 19959: struct sched_param 19959: { 19959: int sched_priority; 19959: }; 19959: # 81 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 2 3 4 19959: 19959: extern "C" { 19959: 19959: 19959: 19959: extern int clone (int (*__fn) (void *__arg), void *__child_stack, 19959: int __flags, void *__arg, ...) noexcept (true); 19959: 19959: 19959: extern int unshare (int __flags) noexcept (true); 19959: 19959: 19959: extern int sched_getcpu (void) noexcept (true); 19959: 19959: 19959: extern int getcpu (unsigned int *, unsigned int *) noexcept (true); 19959: 19959: 19959: extern int setns (int __fd, int __nstype) noexcept (true); 19959: 19959: 19959: } 19959: # 44 "/usr/include/sched.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 1 3 4 19959: # 32 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 19959: typedef unsigned long int __cpu_mask; 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef struct 19959: { 19959: __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; 19959: } cpu_set_t; 19959: # 115 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 19959: extern "C" { 19959: 19959: extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 19959: noexcept (true); 19959: extern cpu_set_t *__sched_cpualloc (size_t __count) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: extern void __sched_cpufree (cpu_set_t *__set) noexcept (true); 19959: 19959: } 19959: # 45 "/usr/include/sched.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern "C" { 19959: 19959: 19959: extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) 19959: noexcept (true); 19959: 19959: 19959: extern int sched_getparam (__pid_t __pid, struct sched_param *__param) noexcept (true); 19959: 19959: 19959: extern int sched_setscheduler (__pid_t __pid, int __policy, 19959: const struct sched_param *__param) noexcept (true); 19959: 19959: 19959: extern int sched_getscheduler (__pid_t __pid) noexcept (true); 19959: 19959: 19959: extern int sched_yield (void) noexcept (true); 19959: 19959: 19959: extern int sched_get_priority_max (int __algorithm) noexcept (true); 19959: 19959: 19959: extern int sched_get_priority_min (int __algorithm) noexcept (true); 19959: 19959: 19959: 19959: extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) noexcept (true); 19959: # 130 "/usr/include/sched.h" 3 4 19959: extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, 19959: const cpu_set_t *__cpuset) noexcept (true); 19959: 19959: 19959: extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, 19959: cpu_set_t *__cpuset) noexcept (true); 19959: 19959: 19959: } 19959: # 23 "/usr/include/pthread.h" 2 3 4 19959: # 1 "/usr/include/time.h" 1 3 4 19959: # 29 "/usr/include/time.h" 3 4 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 30 "/usr/include/time.h" 2 3 4 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/time.h" 1 3 4 19959: # 73 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 1 3 4 19959: # 26 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 19959: struct timex 19959: { 19959: # 58 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 19959: unsigned int modes; 19959: __syscall_slong_t offset; 19959: __syscall_slong_t freq; 19959: __syscall_slong_t maxerror; 19959: __syscall_slong_t esterror; 19959: int status; 19959: __syscall_slong_t constant; 19959: __syscall_slong_t precision; 19959: __syscall_slong_t tolerance; 19959: struct timeval time; 19959: __syscall_slong_t tick; 19959: __syscall_slong_t ppsfreq; 19959: __syscall_slong_t jitter; 19959: int shift; 19959: __syscall_slong_t stabil; 19959: __syscall_slong_t jitcnt; 19959: __syscall_slong_t calcnt; 19959: __syscall_slong_t errcnt; 19959: __syscall_slong_t stbcnt; 19959: 19959: int tai; 19959: 19959: 19959: int :32; int :32; int :32; int :32; 19959: int :32; int :32; int :32; int :32; 19959: int :32; int :32; int :32; 19959: 19959: }; 19959: # 74 "/usr/include/arm-linux-gnueabihf/bits/time.h" 2 3 4 19959: 19959: extern "C" { 19959: 19959: 19959: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: # 90 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 19959: } 19959: # 34 "/usr/include/time.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_tm.h" 1 3 4 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct tm 19959: { 19959: int tm_sec; 19959: int tm_min; 19959: int tm_hour; 19959: int tm_mday; 19959: int tm_mon; 19959: int tm_year; 19959: int tm_wday; 19959: int tm_yday; 19959: int tm_isdst; 19959: 19959: 19959: long int tm_gmtoff; 19959: const char *tm_zone; 19959: 19959: 19959: 19959: 19959: }; 19959: # 40 "/usr/include/time.h" 2 3 4 19959: # 48 "/usr/include/time.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_itimerspec.h" 1 3 4 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct itimerspec 19959: { 19959: struct timespec it_interval; 19959: struct timespec it_value; 19959: }; 19959: # 49 "/usr/include/time.h" 2 3 4 19959: struct sigevent; 19959: # 68 "/usr/include/time.h" 3 4 19959: extern "C" { 19959: 19959: 19959: 19959: extern clock_t clock (void) noexcept (true); 19959: 19959: 19959: 19959: extern time_t time (time_t *__timer) noexcept (true); 19959: 19959: 19959: extern double difftime (time_t __time1, time_t __time0) 19959: noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern time_t mktime (struct tm *__tp) noexcept (true); 19959: # 100 "/usr/include/time.h" 3 4 19959: extern size_t strftime (char *__restrict __s, size_t __maxsize, 19959: const char *__restrict __format, 19959: const struct tm *__restrict __tp) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern char *strptime (const char *__restrict __s, 19959: const char *__restrict __fmt, struct tm *__tp) 19959: noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern size_t strftime_l (char *__restrict __s, size_t __maxsize, 19959: const char *__restrict __format, 19959: const struct tm *__restrict __tp, 19959: locale_t __loc) noexcept (true); 19959: 19959: 19959: 19959: extern char *strptime_l (const char *__restrict __s, 19959: const char *__restrict __fmt, struct tm *__tp, 19959: locale_t __loc) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern struct tm *gmtime (const time_t *__timer) noexcept (true); 19959: 19959: 19959: 19959: extern struct tm *localtime (const time_t *__timer) noexcept (true); 19959: # 154 "/usr/include/time.h" 3 4 19959: extern struct tm *gmtime_r (const time_t *__restrict __timer, 19959: struct tm *__restrict __tp) noexcept (true); 19959: 19959: 19959: 19959: extern struct tm *localtime_r (const time_t *__restrict __timer, 19959: struct tm *__restrict __tp) noexcept (true); 19959: # 179 "/usr/include/time.h" 3 4 19959: extern char *asctime (const struct tm *__tp) noexcept (true); 19959: 19959: 19959: 19959: extern char *ctime (const time_t *__timer) noexcept (true); 19959: # 197 "/usr/include/time.h" 3 4 19959: extern char *asctime_r (const struct tm *__restrict __tp, 19959: char *__restrict __buf) noexcept (true); 19959: 19959: 19959: 19959: extern char *ctime_r (const time_t *__restrict __timer, 19959: char *__restrict __buf) noexcept (true); 19959: # 217 "/usr/include/time.h" 3 4 19959: extern char *__tzname[2]; 19959: extern int __daylight; 19959: extern long int __timezone; 19959: 19959: 19959: 19959: 19959: extern char *tzname[2]; 19959: 19959: 19959: 19959: extern void tzset (void) noexcept (true); 19959: 19959: 19959: 19959: extern int daylight; 19959: extern long int timezone; 19959: # 246 "/usr/include/time.h" 3 4 19959: extern time_t timegm (struct tm *__tp) noexcept (true); 19959: # 263 "/usr/include/time.h" 3 4 19959: extern time_t timelocal (struct tm *__tp) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int dysize (int __year) noexcept (true) __attribute__ ((__const__)); 19959: # 281 "/usr/include/time.h" 3 4 19959: extern int nanosleep (const struct timespec *__requested_time, 19959: struct timespec *__remaining); 19959: 19959: 19959: extern int clock_getres (clockid_t __clock_id, struct timespec *__res) noexcept (true); 19959: 19959: 19959: extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: # 323 "/usr/include/time.h" 3 4 19959: extern int clock_nanosleep (clockid_t __clock_id, int __flags, 19959: const struct timespec *__req, 19959: struct timespec *__rem); 19959: # 338 "/usr/include/time.h" 3 4 19959: extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int timer_create (clockid_t __clock_id, 19959: struct sigevent *__restrict __evp, 19959: timer_t *__restrict __timerid) noexcept (true); 19959: 19959: 19959: extern int timer_delete (timer_t __timerid) noexcept (true); 19959: 19959: 19959: 19959: extern int timer_settime (timer_t __timerid, int __flags, 19959: const struct itimerspec *__restrict __value, 19959: struct itimerspec *__restrict __ovalue) noexcept (true); 19959: 19959: 19959: extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) 19959: noexcept (true); 19959: # 376 "/usr/include/time.h" 3 4 19959: extern int timer_getoverrun (timer_t __timerid) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int timespec_get (struct timespec *__ts, int __base) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: # 399 "/usr/include/time.h" 3 4 19959: extern int timespec_getres (struct timespec *__ts, int __base) 19959: noexcept (true); 19959: # 425 "/usr/include/time.h" 3 4 19959: extern int getdate_err; 19959: # 434 "/usr/include/time.h" 3 4 19959: extern struct tm *getdate (const char *__string); 19959: # 448 "/usr/include/time.h" 3 4 19959: extern int getdate_r (const char *__restrict __string, 19959: struct tm *__restrict __resbufp); 19959: 19959: 19959: } 19959: # 24 "/usr/include/pthread.h" 2 3 4 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 1 3 4 19959: # 33 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 3 4 19959: typedef int __jmp_buf[64] __attribute__((__aligned__ (8))); 19959: # 28 "/usr/include/pthread.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 19959: # 29 "/usr/include/pthread.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 1 3 4 19959: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 3 4 19959: struct __jmp_buf_tag 19959: { 19959: 19959: 19959: 19959: 19959: __jmp_buf __jmpbuf; 19959: int __mask_was_saved; 19959: __sigset_t __saved_mask; 19959: }; 19959: # 32 "/usr/include/pthread.h" 2 3 4 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 1 3 4 19959: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 3 4 19959: extern "C" { 19959: extern long int __sysconf (int __name) noexcept (true); 19959: } 19959: # 34 "/usr/include/pthread.h" 2 3 4 19959: 19959: 19959: 19959: enum 19959: { 19959: PTHREAD_CREATE_JOINABLE, 19959: 19959: PTHREAD_CREATE_DETACHED 19959: 19959: }; 19959: 19959: 19959: 19959: enum 19959: { 19959: PTHREAD_MUTEX_TIMED_NP, 19959: PTHREAD_MUTEX_RECURSIVE_NP, 19959: PTHREAD_MUTEX_ERRORCHECK_NP, 19959: PTHREAD_MUTEX_ADAPTIVE_NP 19959: 19959: , 19959: PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, 19959: PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, 19959: PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, 19959: PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL 19959: 19959: 19959: 19959: , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP 19959: 19959: }; 19959: 19959: 19959: 19959: 19959: enum 19959: { 19959: PTHREAD_MUTEX_STALLED, 19959: PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, 19959: PTHREAD_MUTEX_ROBUST, 19959: PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: enum 19959: { 19959: PTHREAD_PRIO_NONE, 19959: PTHREAD_PRIO_INHERIT, 19959: PTHREAD_PRIO_PROTECT 19959: }; 19959: # 104 "/usr/include/pthread.h" 3 4 19959: enum 19959: { 19959: PTHREAD_RWLOCK_PREFER_READER_NP, 19959: PTHREAD_RWLOCK_PREFER_WRITER_NP, 19959: PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 19959: PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP 19959: }; 19959: # 124 "/usr/include/pthread.h" 3 4 19959: enum 19959: { 19959: PTHREAD_INHERIT_SCHED, 19959: 19959: PTHREAD_EXPLICIT_SCHED 19959: 19959: }; 19959: 19959: 19959: 19959: enum 19959: { 19959: PTHREAD_SCOPE_SYSTEM, 19959: 19959: PTHREAD_SCOPE_PROCESS 19959: 19959: }; 19959: 19959: 19959: 19959: enum 19959: { 19959: PTHREAD_PROCESS_PRIVATE, 19959: 19959: PTHREAD_PROCESS_SHARED 19959: 19959: }; 19959: # 159 "/usr/include/pthread.h" 3 4 19959: struct _pthread_cleanup_buffer 19959: { 19959: void (*__routine) (void *); 19959: void *__arg; 19959: int __canceltype; 19959: struct _pthread_cleanup_buffer *__prev; 19959: }; 19959: 19959: 19959: enum 19959: { 19959: PTHREAD_CANCEL_ENABLE, 19959: 19959: PTHREAD_CANCEL_DISABLE 19959: 19959: }; 19959: enum 19959: { 19959: PTHREAD_CANCEL_DEFERRED, 19959: 19959: PTHREAD_CANCEL_ASYNCHRONOUS 19959: 19959: }; 19959: # 197 "/usr/include/pthread.h" 3 4 19959: extern "C" { 19959: 19959: 19959: 19959: 19959: extern int pthread_create (pthread_t *__restrict __newthread, 19959: const pthread_attr_t *__restrict __attr, 19959: void *(*__start_routine) (void *), 19959: void *__restrict __arg) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 19959: 19959: 19959: 19959: 19959: 19959: extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int pthread_join (pthread_t __th, void **__thread_return); 19959: 19959: 19959: 19959: 19959: extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) noexcept (true); 19959: # 233 "/usr/include/pthread.h" 3 4 19959: extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, 19959: const struct timespec *__abstime); 19959: # 243 "/usr/include/pthread.h" 3 4 19959: extern int pthread_clockjoin_np (pthread_t __th, void **__thread_return, 19959: clockid_t __clockid, 19959: const struct timespec *__abstime); 19959: # 269 "/usr/include/pthread.h" 3 4 19959: extern int pthread_detach (pthread_t __th) noexcept (true); 19959: 19959: 19959: 19959: extern pthread_t pthread_self (void) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) 19959: noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int pthread_attr_init (pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_attr_destroy (pthread_attr_t *__attr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, 19959: int *__detachstate) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, 19959: int __detachstate) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, 19959: size_t *__guardsize) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_attr_setguardsize (pthread_attr_t *__attr, 19959: size_t __guardsize) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, 19959: struct sched_param *__restrict __param) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, 19959: const struct sched_param *__restrict 19959: __param) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict 19959: __attr, int *__restrict __policy) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict 19959: __attr, int *__restrict __inherit) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, 19959: int __inherit) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, 19959: int *__restrict __scope) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict 19959: __attr, void **__restrict __stackaddr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); 19959: 19959: 19959: 19959: 19959: 19959: extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, 19959: void *__stackaddr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); 19959: 19959: 19959: extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict 19959: __attr, size_t *__restrict __stacksize) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: 19959: extern int pthread_attr_setstacksize (pthread_attr_t *__attr, 19959: size_t __stacksize) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, 19959: void **__restrict __stackaddr, 19959: size_t *__restrict __stacksize) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))); 19959: 19959: 19959: 19959: 19959: extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, 19959: size_t __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, 19959: size_t __cpusetsize, 19959: const cpu_set_t *__cpuset) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 19959: 19959: 19959: 19959: extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, 19959: size_t __cpusetsize, 19959: cpu_set_t *__cpuset) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 19959: 19959: 19959: extern int pthread_getattr_default_np (pthread_attr_t *__attr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_attr_setsigmask_np (pthread_attr_t *__attr, 19959: const __sigset_t *sigmask); 19959: 19959: 19959: 19959: 19959: extern int pthread_attr_getsigmask_np (const pthread_attr_t *__attr, 19959: __sigset_t *sigmask); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int pthread_setattr_default_np (const pthread_attr_t *__attr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int pthread_setschedparam (pthread_t __target_thread, int __policy, 19959: const struct sched_param *__param) 19959: noexcept (true) __attribute__ ((__nonnull__ (3))); 19959: 19959: 19959: extern int pthread_getschedparam (pthread_t __target_thread, 19959: int *__restrict __policy, 19959: struct sched_param *__restrict __param) 19959: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 19959: 19959: 19959: extern int pthread_setschedprio (pthread_t __target_thread, int __prio) 19959: noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int pthread_getname_np (pthread_t __target_thread, char *__buf, 19959: size_t __buflen) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: extern int pthread_setname_np (pthread_t __target_thread, const char *__name) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: 19959: 19959: 19959: extern int pthread_getconcurrency (void) noexcept (true); 19959: 19959: 19959: extern int pthread_setconcurrency (int __level) noexcept (true); 19959: 19959: 19959: 19959: extern int pthread_yield (void) noexcept (true); 19959: 19959: extern int pthread_yield (void) noexcept (true) __asm__ ("" "sched_yield") 19959: __attribute__ ((__deprecated__ ("pthread_yield is deprecated, use sched_yield instead"))) 19959: ; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, 19959: const cpu_set_t *__cpuset) 19959: noexcept (true) __attribute__ ((__nonnull__ (3))); 19959: 19959: 19959: extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, 19959: cpu_set_t *__cpuset) 19959: noexcept (true) __attribute__ ((__nonnull__ (3))); 19959: # 509 "/usr/include/pthread.h" 3 4 19959: extern int pthread_once (pthread_once_t *__once_control, 19959: void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); 19959: # 521 "/usr/include/pthread.h" 3 4 19959: extern int pthread_setcancelstate (int __state, int *__oldstate); 19959: 19959: 19959: 19959: extern int pthread_setcanceltype (int __type, int *__oldtype); 19959: 19959: 19959: extern int pthread_cancel (pthread_t __th); 19959: 19959: 19959: 19959: 19959: extern void pthread_testcancel (void); 19959: 19959: 19959: 19959: 19959: struct __cancel_jmp_buf_tag 19959: { 19959: __jmp_buf __cancel_jmp_buf; 19959: int __mask_was_saved; 19959: }; 19959: 19959: typedef struct 19959: { 19959: struct __cancel_jmp_buf_tag __cancel_jmp_buf[1]; 19959: void *__pad[4]; 19959: } __pthread_unwind_buf_t __attribute__ ((__aligned__)); 19959: # 557 "/usr/include/pthread.h" 3 4 19959: struct __pthread_cleanup_frame 19959: { 19959: void (*__cancel_routine) (void *); 19959: void *__cancel_arg; 19959: int __do_it; 19959: int __cancel_type; 19959: }; 19959: 19959: 19959: 19959: 19959: class __pthread_cleanup_class 19959: { 19959: void (*__cancel_routine) (void *); 19959: void *__cancel_arg; 19959: int __do_it; 19959: int __cancel_type; 19959: 19959: public: 19959: __pthread_cleanup_class (void (*__fct) (void *), void *__arg) 19959: : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } 19959: ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } 19959: void __setdoit (int __newval) { __do_it = __newval; } 19959: void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, 19959: &__cancel_type); } 19959: void __restore () const { pthread_setcanceltype (__cancel_type, 0); } 19959: }; 19959: # 766 "/usr/include/pthread.h" 3 4 19959: extern int __sigsetjmp_cancel (struct __cancel_jmp_buf_tag __env[1], int __savemask) noexcept (true) __asm__ ("" "__sigsetjmp") 19959: 19959: 19959: __attribute__ ((__returns_twice__)); 19959: # 781 "/usr/include/pthread.h" 3 4 19959: extern int pthread_mutex_init (pthread_mutex_t *__mutex, 19959: const pthread_mutexattr_t *__mutexattr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_mutex_lock (pthread_mutex_t *__mutex) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, 19959: const struct timespec *__restrict 19959: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: # 817 "/usr/include/pthread.h" 3 4 19959: extern int pthread_mutex_clocklock (pthread_mutex_t *__restrict __mutex, 19959: clockid_t __clockid, 19959: const struct timespec *__restrict 19959: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 19959: # 835 "/usr/include/pthread.h" 3 4 19959: extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern int pthread_mutex_getprioceiling (const pthread_mutex_t * 19959: __restrict __mutex, 19959: int *__restrict __prioceiling) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, 19959: int __prioceiling, 19959: int *__restrict __old_ceiling) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 19959: 19959: 19959: 19959: 19959: extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_mutex_consistent_np (pthread_mutex_t *) noexcept (true) __asm__ ("" "pthread_mutex_consistent") 19959: __attribute__ ((__nonnull__ (1))) 19959: __attribute__ ((__deprecated__ ("pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent"))) 19959: ; 19959: # 874 "/usr/include/pthread.h" 3 4 19959: extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * 19959: __restrict __attr, 19959: int *__restrict __pshared) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, 19959: int __pshared) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict 19959: __attr, int *__restrict __kind) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: 19959: extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * 19959: __restrict __attr, 19959: int *__restrict __protocol) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, 19959: int __protocol) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * 19959: __restrict __attr, 19959: int *__restrict __prioceiling) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, 19959: int __prioceiling) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, 19959: int *__robustness) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_mutexattr_getrobust_np (pthread_mutexattr_t *, int *) noexcept (true) __asm__ ("" "pthread_mutexattr_getrobust") 19959: 19959: __attribute__ ((__nonnull__ (1))) 19959: __attribute__ ((__deprecated__ ("pthread_mutexattr_getrobust_np is deprecated, use pthread_mutexattr_getrobust"))) 19959: ; 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, 19959: int __robustness) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *, int) noexcept (true) __asm__ ("" "pthread_mutexattr_setrobust") 19959: 19959: __attribute__ ((__nonnull__ (1))) 19959: __attribute__ ((__deprecated__ ("pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust"))) 19959: ; 19959: # 967 "/usr/include/pthread.h" 3 4 19959: extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, 19959: const pthread_rwlockattr_t *__restrict 19959: __attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, 19959: const struct timespec *__restrict 19959: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: # 1004 "/usr/include/pthread.h" 3 4 19959: extern int pthread_rwlock_clockrdlock (pthread_rwlock_t *__restrict __rwlock, 19959: clockid_t __clockid, 19959: const struct timespec *__restrict 19959: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 19959: # 1023 "/usr/include/pthread.h" 3 4 19959: extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, 19959: const struct timespec *__restrict 19959: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: # 1051 "/usr/include/pthread.h" 3 4 19959: extern int pthread_rwlock_clockwrlock (pthread_rwlock_t *__restrict __rwlock, 19959: clockid_t __clockid, 19959: const struct timespec *__restrict 19959: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 19959: # 1071 "/usr/include/pthread.h" 3 4 19959: extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * 19959: __restrict __attr, 19959: int *__restrict __pshared) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, 19959: int __pshared) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * 19959: __restrict __attr, 19959: int *__restrict __pref) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, 19959: int __pref) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int pthread_cond_init (pthread_cond_t *__restrict __cond, 19959: const pthread_condattr_t *__restrict __cond_attr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_cond_destroy (pthread_cond_t *__cond) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_cond_signal (pthread_cond_t *__cond) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_cond_broadcast (pthread_cond_t *__cond) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, 19959: pthread_mutex_t *__restrict __mutex) 19959: __attribute__ ((__nonnull__ (1, 2))); 19959: # 1145 "/usr/include/pthread.h" 3 4 19959: extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, 19959: pthread_mutex_t *__restrict __mutex, 19959: const struct timespec *__restrict __abstime) 19959: __attribute__ ((__nonnull__ (1, 2, 3))); 19959: # 1171 "/usr/include/pthread.h" 3 4 19959: extern int pthread_cond_clockwait (pthread_cond_t *__restrict __cond, 19959: pthread_mutex_t *__restrict __mutex, 19959: __clockid_t __clock_id, 19959: const struct timespec *__restrict __abstime) 19959: __attribute__ ((__nonnull__ (1, 2, 4))); 19959: # 1194 "/usr/include/pthread.h" 3 4 19959: extern int pthread_condattr_init (pthread_condattr_t *__attr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_condattr_destroy (pthread_condattr_t *__attr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_condattr_getpshared (const pthread_condattr_t * 19959: __restrict __attr, 19959: int *__restrict __pshared) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, 19959: int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern int pthread_condattr_getclock (const pthread_condattr_t * 19959: __restrict __attr, 19959: __clockid_t *__restrict __clock_id) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_condattr_setclock (pthread_condattr_t *__attr, 19959: __clockid_t __clock_id) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: # 1230 "/usr/include/pthread.h" 3 4 19959: extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_spin_destroy (pthread_spinlock_t *__lock) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_spin_lock (pthread_spinlock_t *__lock) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_spin_trylock (pthread_spinlock_t *__lock) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_spin_unlock (pthread_spinlock_t *__lock) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, 19959: const pthread_barrierattr_t *__restrict 19959: __attr, unsigned int __count) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_barrier_wait (pthread_barrier_t *__barrier) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * 19959: __restrict __attr, 19959: int *__restrict __pshared) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, 19959: int __pshared) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: # 1297 "/usr/include/pthread.h" 3 4 19959: extern int pthread_key_create (pthread_key_t *__key, 19959: void (*__destr_function) (void *)) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int pthread_key_delete (pthread_key_t __key) noexcept (true); 19959: 19959: 19959: extern void *pthread_getspecific (pthread_key_t __key) noexcept (true); 19959: 19959: 19959: extern int pthread_setspecific (pthread_key_t __key, 19959: const void *__pointer) 19959: noexcept (true) __attribute__ ((__access__ (__none__, 2))); 19959: 19959: 19959: 19959: 19959: extern int pthread_getcpuclockid (pthread_t __thread_id, 19959: __clockid_t *__clock_id) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: # 1332 "/usr/include/pthread.h" 3 4 19959: extern int pthread_atfork (void (*__prepare) (void), 19959: void (*__parent) (void), 19959: void (*__child) (void)) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__gnu_inline__)) int 19959: __attribute__ ((__leaf__)) pthread_equal (pthread_t __thread1, pthread_t __thread2) noexcept (true) 19959: { 19959: return __thread1 == __thread2; 19959: } 19959: 19959: 19959: } 19959: # 36 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 2 3 19959: # 47 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 19959: typedef pthread_t __gthread_t; 19959: typedef pthread_key_t __gthread_key_t; 19959: typedef pthread_once_t __gthread_once_t; 19959: typedef pthread_mutex_t __gthread_mutex_t; 19959: typedef pthread_mutex_t __gthread_recursive_mutex_t; 19959: typedef pthread_cond_t __gthread_cond_t; 19959: typedef struct timespec __gthread_time_t; 19959: # 102 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 299 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 19959: static inline int 19959: __gthread_active_p (void) 19959: { 19959: return 1; 19959: } 19959: # 659 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 19959: static inline int 19959: __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), 19959: void *__args) 19959: { 19959: return pthread_create (__threadid, __null, __func, __args); 19959: } 19959: 19959: static inline int 19959: __gthread_join (__gthread_t __threadid, void **__value_ptr) 19959: { 19959: return pthread_join (__threadid, __value_ptr); 19959: } 19959: 19959: static inline int 19959: __gthread_detach (__gthread_t __threadid) 19959: { 19959: return pthread_detach (__threadid); 19959: } 19959: 19959: static inline int 19959: __gthread_equal (__gthread_t __t1, __gthread_t __t2) 19959: { 19959: return pthread_equal (__t1, __t2); 19959: } 19959: 19959: static inline __gthread_t 19959: __gthread_self (void) 19959: { 19959: return pthread_self (); 19959: } 19959: 19959: static inline int 19959: __gthread_yield (void) 19959: { 19959: return sched_yield (); 19959: } 19959: 19959: static inline int 19959: __gthread_once (__gthread_once_t *__once, void (*__func) (void)) 19959: { 19959: if (__gthread_active_p ()) 19959: return pthread_once (__once, __func); 19959: else 19959: return -1; 19959: } 19959: 19959: static inline int 19959: __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) 19959: { 19959: return pthread_key_create (__key, __dtor); 19959: } 19959: 19959: static inline int 19959: __gthread_key_delete (__gthread_key_t __key) 19959: { 19959: return pthread_key_delete (__key); 19959: } 19959: 19959: static inline void * 19959: __gthread_getspecific (__gthread_key_t __key) 19959: { 19959: return pthread_getspecific (__key); 19959: } 19959: 19959: static inline int 19959: __gthread_setspecific (__gthread_key_t __key, const void *__ptr) 19959: { 19959: return pthread_setspecific (__key, __ptr); 19959: } 19959: 19959: static inline void 19959: __gthread_mutex_init_function (__gthread_mutex_t *__mutex) 19959: { 19959: if (__gthread_active_p ()) 19959: pthread_mutex_init (__mutex, __null); 19959: } 19959: 19959: static inline int 19959: __gthread_mutex_destroy (__gthread_mutex_t *__mutex) 19959: { 19959: if (__gthread_active_p ()) 19959: return pthread_mutex_destroy (__mutex); 19959: else 19959: return 0; 19959: } 19959: 19959: static inline int 19959: __gthread_mutex_lock (__gthread_mutex_t *__mutex) 19959: { 19959: if (__gthread_active_p ()) 19959: return pthread_mutex_lock (__mutex); 19959: else 19959: return 0; 19959: } 19959: 19959: static inline int 19959: __gthread_mutex_trylock (__gthread_mutex_t *__mutex) 19959: { 19959: if (__gthread_active_p ()) 19959: return pthread_mutex_trylock (__mutex); 19959: else 19959: return 0; 19959: } 19959: 19959: 19959: static inline int 19959: __gthread_mutex_timedlock (__gthread_mutex_t *__mutex, 19959: const __gthread_time_t *__abs_timeout) 19959: { 19959: if (__gthread_active_p ()) 19959: return pthread_mutex_timedlock (__mutex, __abs_timeout); 19959: else 19959: return 0; 19959: } 19959: 19959: 19959: static inline int 19959: __gthread_mutex_unlock (__gthread_mutex_t *__mutex) 19959: { 19959: if (__gthread_active_p ()) 19959: return pthread_mutex_unlock (__mutex); 19959: else 19959: return 0; 19959: } 19959: # 808 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 19959: static inline int 19959: __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) 19959: { 19959: return __gthread_mutex_lock (__mutex); 19959: } 19959: 19959: static inline int 19959: __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) 19959: { 19959: return __gthread_mutex_trylock (__mutex); 19959: } 19959: 19959: 19959: static inline int 19959: __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, 19959: const __gthread_time_t *__abs_timeout) 19959: { 19959: return __gthread_mutex_timedlock (__mutex, __abs_timeout); 19959: } 19959: 19959: 19959: static inline int 19959: __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) 19959: { 19959: return __gthread_mutex_unlock (__mutex); 19959: } 19959: 19959: static inline int 19959: __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) 19959: { 19959: return __gthread_mutex_destroy (__mutex); 19959: } 19959: # 850 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 19959: static inline int 19959: __gthread_cond_broadcast (__gthread_cond_t *__cond) 19959: { 19959: return pthread_cond_broadcast (__cond); 19959: } 19959: 19959: static inline int 19959: __gthread_cond_signal (__gthread_cond_t *__cond) 19959: { 19959: return pthread_cond_signal (__cond); 19959: } 19959: 19959: static inline int 19959: __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) 19959: { 19959: return pthread_cond_wait (__cond, __mutex); 19959: } 19959: 19959: static inline int 19959: __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, 19959: const __gthread_time_t *__abs_timeout) 19959: { 19959: return pthread_cond_timedwait (__cond, __mutex, __abs_timeout); 19959: } 19959: 19959: static inline int 19959: __gthread_cond_wait_recursive (__gthread_cond_t *__cond, 19959: __gthread_recursive_mutex_t *__mutex) 19959: { 19959: return __gthread_cond_wait (__cond, __mutex); 19959: } 19959: 19959: static inline int 19959: __gthread_cond_destroy (__gthread_cond_t* __cond) 19959: { 19959: return pthread_cond_destroy (__cond); 19959: } 19959: # 149 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr.h" 2 3 19959: 19959: 19959: #pragma GCC visibility pop 19959: # 36 "/usr/include/c++/13/ext/atomicity.h" 2 3 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/atomic_word.h" 1 3 19959: # 32 "/usr/include/arm-linux-gnueabihf/c++/13/bits/atomic_word.h" 3 19959: typedef int _Atomic_word; 19959: # 37 "/usr/include/c++/13/ext/atomicity.h" 2 3 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 3 4 19959: extern "C" { 19959: 19959: 19959: 19959: 19959: extern char __libc_single_threaded; 19959: 19959: } 19959: # 39 "/usr/include/c++/13/ext/atomicity.h" 2 3 19959: 19959: 19959: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: __attribute__((__always_inline__)) 19959: inline bool 19959: __is_single_threaded() noexcept 19959: { 19959: 19959: 19959: 19959: return ::__libc_single_threaded; 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline _Atomic_word 19959: __attribute__((__always_inline__)) 19959: __exchange_and_add(volatile _Atomic_word* __mem, int __val) 19959: { return __atomic_fetch_add(__mem, __val, 4); } 19959: 19959: inline void 19959: __attribute__((__always_inline__)) 19959: __atomic_add(volatile _Atomic_word* __mem, int __val) 19959: { __atomic_fetch_add(__mem, __val, 4); } 19959: # 80 "/usr/include/c++/13/ext/atomicity.h" 3 19959: inline _Atomic_word 19959: __attribute__((__always_inline__)) 19959: __exchange_and_add_single(_Atomic_word* __mem, int __val) 19959: { 19959: _Atomic_word __result = *__mem; 19959: *__mem += __val; 19959: return __result; 19959: } 19959: 19959: inline void 19959: __attribute__((__always_inline__)) 19959: __atomic_add_single(_Atomic_word* __mem, int __val) 19959: { *__mem += __val; } 19959: 19959: inline _Atomic_word 19959: __attribute__ ((__always_inline__)) 19959: __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) 19959: { 19959: if (__is_single_threaded()) 19959: return __exchange_and_add_single(__mem, __val); 19959: else 19959: return __exchange_and_add(__mem, __val); 19959: } 19959: 19959: inline void 19959: __attribute__ ((__always_inline__)) 19959: __atomic_add_dispatch(_Atomic_word* __mem, int __val) 19959: { 19959: if (__is_single_threaded()) 19959: __atomic_add_single(__mem, __val); 19959: else 19959: __atomic_add(__mem, __val); 19959: } 19959: 19959: 19959: } 19959: # 62 "/usr/include/c++/13/bits/shared_ptr_base.h" 2 3 19959: # 1 "/usr/include/c++/13/ext/concurrence.h" 1 3 19959: # 32 "/usr/include/c++/13/ext/concurrence.h" 3 19959: 19959: # 33 "/usr/include/c++/13/ext/concurrence.h" 3 19959: 19959: # 1 "/usr/include/c++/13/exception" 1 3 19959: # 33 "/usr/include/c++/13/exception" 3 19959: 19959: # 34 "/usr/include/c++/13/exception" 3 19959: 19959: 19959: 19959: 19959: extern "C++" { 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: # 51 "/usr/include/c++/13/exception" 3 19959: class bad_exception : public exception 19959: { 19959: public: 19959: bad_exception() noexcept { } 19959: 19959: 19959: 19959: virtual ~bad_exception() noexcept; 19959: 19959: 19959: virtual const char* 19959: what() const noexcept; 19959: }; 19959: 19959: 19959: typedef void (*terminate_handler) (); 19959: 19959: 19959: terminate_handler set_terminate(terminate_handler) noexcept; 19959: 19959: 19959: 19959: terminate_handler get_terminate() noexcept; 19959: 19959: 19959: 19959: 19959: void terminate() noexcept __attribute__ ((__noreturn__)); 19959: 19959: 19959: 19959: typedef void (*__attribute__ ((__deprecated__)) unexpected_handler) (); 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((__deprecated__)) 19959: unexpected_handler set_unexpected(unexpected_handler) noexcept; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((__deprecated__)) 19959: unexpected_handler get_unexpected() noexcept; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((__deprecated__)) 19959: void unexpected() __attribute__ ((__noreturn__)); 19959: # 121 "/usr/include/c++/13/exception" 3 19959: __attribute__ ((__deprecated__ ("use '" "std::uncaught_exceptions()" "' instead"))) 19959: bool uncaught_exception() noexcept __attribute__ ((__pure__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: int uncaught_exceptions() noexcept __attribute__ ((__pure__)); 19959: 19959: 19959: 19959: } 19959: 19959: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 156 "/usr/include/c++/13/exception" 3 19959: void __verbose_terminate_handler(); 19959: 19959: 19959: } 19959: 19959: } 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/exception_ptr.h" 1 3 19959: # 36 "/usr/include/c++/13/bits/exception_ptr.h" 3 19959: # 1 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 1 3 19959: # 34 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 3 19959: 19959: # 35 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 3 19959: 19959: #pragma GCC visibility push(default) 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 39 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 2 3 19959: # 50 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 3 19959: namespace std 19959: { 19959: class type_info; 19959: } 19959: 19959: namespace __cxxabiv1 19959: { 19959: struct __cxa_refcounted_exception; 19959: 19959: extern "C" 19959: { 19959: 19959: void* 19959: __cxa_allocate_exception(size_t) noexcept; 19959: 19959: void 19959: __cxa_free_exception(void*) noexcept; 19959: 19959: 19959: __cxa_refcounted_exception* 19959: __cxa_init_primary_exception(void *__object, std::type_info *__tinfo, 19959: void ( *__dest) (void *)) 19959: noexcept; 19959: 19959: } 19959: } 19959: 19959: 19959: 19959: #pragma GCC visibility pop 19959: # 37 "/usr/include/c++/13/bits/exception_ptr.h" 2 3 19959: # 50 "/usr/include/c++/13/bits/exception_ptr.h" 3 19959: extern "C++" { 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: class type_info; 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace __exception_ptr 19959: { 19959: class exception_ptr; 19959: } 19959: 19959: using __exception_ptr::exception_ptr; 19959: # 75 "/usr/include/c++/13/bits/exception_ptr.h" 3 19959: exception_ptr current_exception() noexcept; 19959: 19959: template 19959: exception_ptr make_exception_ptr(_Ex) noexcept; 19959: 19959: 19959: void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); 19959: 19959: namespace __exception_ptr 19959: { 19959: using std::rethrow_exception; 19959: # 97 "/usr/include/c++/13/bits/exception_ptr.h" 3 19959: class exception_ptr 19959: { 19959: void* _M_exception_object; 19959: 19959: explicit exception_ptr(void* __e) noexcept; 19959: 19959: void _M_addref() noexcept; 19959: void _M_release() noexcept; 19959: 19959: void *_M_get() const noexcept __attribute__ ((__pure__)); 19959: 19959: friend exception_ptr std::current_exception() noexcept; 19959: friend void std::rethrow_exception(exception_ptr); 19959: template 19959: friend exception_ptr std::make_exception_ptr(_Ex) noexcept; 19959: 19959: public: 19959: exception_ptr() noexcept; 19959: 19959: exception_ptr(const exception_ptr&) noexcept; 19959: 19959: 19959: exception_ptr(nullptr_t) noexcept 19959: : _M_exception_object(nullptr) 19959: { } 19959: 19959: exception_ptr(exception_ptr&& __o) noexcept 19959: : _M_exception_object(__o._M_exception_object) 19959: { __o._M_exception_object = nullptr; } 19959: # 135 "/usr/include/c++/13/bits/exception_ptr.h" 3 19959: exception_ptr& 19959: operator=(const exception_ptr&) noexcept; 19959: 19959: 19959: exception_ptr& 19959: operator=(exception_ptr&& __o) noexcept 19959: { 19959: exception_ptr(static_cast(__o)).swap(*this); 19959: return *this; 19959: } 19959: 19959: 19959: ~exception_ptr() noexcept; 19959: 19959: void 19959: swap(exception_ptr&) noexcept; 19959: # 162 "/usr/include/c++/13/bits/exception_ptr.h" 3 19959: explicit operator bool() const noexcept 19959: { return _M_exception_object; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const exception_ptr& __x, const exception_ptr& __y) 19959: noexcept 19959: { return __x._M_exception_object == __y._M_exception_object; } 19959: 19959: friend bool 19959: operator!=(const exception_ptr& __x, const exception_ptr& __y) 19959: noexcept 19959: { return __x._M_exception_object != __y._M_exception_object; } 19959: 19959: 19959: const class std::type_info* 19959: __cxa_exception_type() const noexcept 19959: __attribute__ ((__pure__)); 19959: }; 19959: 19959: 19959: inline 19959: exception_ptr::exception_ptr() noexcept 19959: : _M_exception_object(0) 19959: { } 19959: 19959: 19959: inline 19959: exception_ptr::exception_ptr(const exception_ptr& __other) 19959: noexcept 19959: : _M_exception_object(__other._M_exception_object) 19959: { 19959: if (_M_exception_object) 19959: _M_addref(); 19959: } 19959: 19959: 19959: inline 19959: exception_ptr::~exception_ptr() noexcept 19959: { 19959: if (_M_exception_object) 19959: _M_release(); 19959: } 19959: 19959: 19959: inline exception_ptr& 19959: exception_ptr::operator=(const exception_ptr& __other) noexcept 19959: { 19959: exception_ptr(__other).swap(*this); 19959: return *this; 19959: } 19959: 19959: 19959: inline void 19959: exception_ptr::swap(exception_ptr &__other) noexcept 19959: { 19959: void *__tmp = _M_exception_object; 19959: _M_exception_object = __other._M_exception_object; 19959: __other._M_exception_object = __tmp; 19959: } 19959: 19959: 19959: inline void 19959: swap(exception_ptr& __lhs, exception_ptr& __rhs) 19959: { __lhs.swap(__rhs); } 19959: 19959: 19959: template 19959: 19959: inline void 19959: __dest_thunk(void* __x) 19959: { static_cast<_Ex*>(__x)->~_Ex(); } 19959: 19959: 19959: } 19959: 19959: using __exception_ptr::swap; 19959: 19959: 19959: 19959: template 19959: exception_ptr 19959: make_exception_ptr(_Ex __ex) noexcept 19959: { 19959: 19959: using _Ex2 = typename decay<_Ex>::type; 19959: void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); 19959: (void) __cxxabiv1::__cxa_init_primary_exception( 19959: __e, const_cast(&typeid(_Ex)), 19959: __exception_ptr::__dest_thunk<_Ex2>); 19959: try 19959: { 19959: ::new (__e) _Ex2(__ex); 19959: return exception_ptr(__e); 19959: } 19959: catch(...) 19959: { 19959: __cxxabiv1::__cxa_free_exception(__e); 19959: return current_exception(); 19959: } 19959: # 277 "/usr/include/c++/13/bits/exception_ptr.h" 3 19959: } 19959: # 291 "/usr/include/c++/13/bits/exception_ptr.h" 3 19959: } 19959: 19959: } 19959: # 165 "/usr/include/c++/13/exception" 2 3 19959: # 1 "/usr/include/c++/13/bits/nested_exception.h" 1 3 19959: # 40 "/usr/include/c++/13/bits/nested_exception.h" 3 19959: extern "C++" { 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: # 59 "/usr/include/c++/13/bits/nested_exception.h" 3 19959: class nested_exception 19959: { 19959: exception_ptr _M_ptr; 19959: 19959: public: 19959: 19959: nested_exception() noexcept : _M_ptr(current_exception()) { } 19959: 19959: nested_exception(const nested_exception&) noexcept = default; 19959: 19959: nested_exception& operator=(const nested_exception&) noexcept = default; 19959: 19959: virtual ~nested_exception() noexcept; 19959: 19959: 19959: [[noreturn]] 19959: void 19959: rethrow_nested() const 19959: { 19959: if (_M_ptr) 19959: rethrow_exception(_M_ptr); 19959: std::terminate(); 19959: } 19959: 19959: 19959: exception_ptr 19959: nested_ptr() const noexcept 19959: { return _M_ptr; } 19959: }; 19959: 19959: 19959: 19959: template 19959: struct _Nested_exception : public _Except, public nested_exception 19959: { 19959: explicit _Nested_exception(const _Except& __ex) 19959: : _Except(__ex) 19959: { } 19959: 19959: explicit _Nested_exception(_Except&& __ex) 19959: : _Except(static_cast<_Except&&>(__ex)) 19959: { } 19959: }; 19959: # 145 "/usr/include/c++/13/bits/nested_exception.h" 3 19959: template 19959: [[noreturn]] 19959: inline void 19959: throw_with_nested(_Tp&& __t) 19959: { 19959: using _Up = typename decay<_Tp>::type; 19959: using _CopyConstructible 19959: = __and_, is_move_constructible<_Up>>; 19959: static_assert(_CopyConstructible::value, 19959: "throw_with_nested argument must be CopyConstructible"); 19959: 19959: 19959: if constexpr (is_class_v<_Up>) 19959: if constexpr (!is_final_v<_Up>) 19959: if constexpr (!is_base_of_v) 19959: throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; 19959: throw std::forward<_Tp>(__t); 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 203 "/usr/include/c++/13/bits/nested_exception.h" 3 19959: template 19959: 19959: 19959: 19959: inline void 19959: rethrow_if_nested(const _Ex& __ex) 19959: { 19959: const _Ex* __ptr = __builtin_addressof(__ex); 19959: # 223 "/usr/include/c++/13/bits/nested_exception.h" 3 19959: if constexpr (!is_polymorphic_v<_Ex>) 19959: return; 19959: else if constexpr (is_base_of_v 19959: && !is_convertible_v<_Ex*, nested_exception*>) 19959: return; 19959: 19959: 19959: 19959: 19959: else if (auto __ne_ptr = dynamic_cast(__ptr)) 19959: __ne_ptr->rethrow_nested(); 19959: 19959: } 19959: 19959: 19959: } 19959: 19959: } 19959: # 166 "/usr/include/c++/13/exception" 2 3 19959: # 35 "/usr/include/c++/13/ext/concurrence.h" 2 3 19959: 19959: 19959: 19959: 19959: 19959: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: enum _Lock_policy { _S_single, _S_mutex, _S_atomic }; 19959: 19959: 19959: 19959: inline const _Lock_policy __default_lock_policy = 19959: 19959: 19959: 19959: _S_atomic; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class __concurrence_lock_error : public std::exception 19959: { 19959: public: 19959: virtual char const* 19959: what() const throw() 19959: { return "__gnu_cxx::__concurrence_lock_error"; } 19959: }; 19959: 19959: class __concurrence_unlock_error : public std::exception 19959: { 19959: public: 19959: virtual char const* 19959: what() const throw() 19959: { return "__gnu_cxx::__concurrence_unlock_error"; } 19959: }; 19959: 19959: class __concurrence_broadcast_error : public std::exception 19959: { 19959: public: 19959: virtual char const* 19959: what() const throw() 19959: { return "__gnu_cxx::__concurrence_broadcast_error"; } 19959: }; 19959: 19959: class __concurrence_wait_error : public std::exception 19959: { 19959: public: 19959: virtual char const* 19959: what() const throw() 19959: { return "__gnu_cxx::__concurrence_wait_error"; } 19959: }; 19959: 19959: 19959: inline void 19959: __throw_concurrence_lock_error() 19959: { (throw (__concurrence_lock_error())); } 19959: 19959: inline void 19959: __throw_concurrence_unlock_error() 19959: { (throw (__concurrence_unlock_error())); } 19959: 19959: 19959: inline void 19959: __throw_concurrence_broadcast_error() 19959: { (throw (__concurrence_broadcast_error())); } 19959: 19959: inline void 19959: __throw_concurrence_wait_error() 19959: { (throw (__concurrence_wait_error())); } 19959: 19959: 19959: class __mutex 19959: { 19959: private: 19959: 19959: __gthread_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 19959: 19959: 19959: 19959: 19959: __mutex(const __mutex&); 19959: __mutex& operator=(const __mutex&); 19959: 19959: public: 19959: __mutex() 19959: { 19959: 19959: 19959: 19959: 19959: } 19959: # 144 "/usr/include/c++/13/ext/concurrence.h" 3 19959: void lock() 19959: { 19959: 19959: if (__gthread_active_p()) 19959: { 19959: if (__gthread_mutex_lock(&_M_mutex) != 0) 19959: __throw_concurrence_lock_error(); 19959: } 19959: 19959: } 19959: 19959: void unlock() 19959: { 19959: 19959: if (__gthread_active_p()) 19959: { 19959: if (__gthread_mutex_unlock(&_M_mutex) != 0) 19959: __throw_concurrence_unlock_error(); 19959: } 19959: 19959: } 19959: 19959: __gthread_mutex_t* gthread_mutex(void) 19959: { return &_M_mutex; } 19959: }; 19959: 19959: class __recursive_mutex 19959: { 19959: private: 19959: 19959: __gthread_recursive_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 19959: 19959: 19959: 19959: 19959: __recursive_mutex(const __recursive_mutex&); 19959: __recursive_mutex& operator=(const __recursive_mutex&); 19959: 19959: public: 19959: __recursive_mutex() 19959: { 19959: 19959: 19959: 19959: 19959: } 19959: # 199 "/usr/include/c++/13/ext/concurrence.h" 3 19959: void lock() 19959: { 19959: 19959: if (__gthread_active_p()) 19959: { 19959: if (__gthread_recursive_mutex_lock(&_M_mutex) != 0) 19959: __throw_concurrence_lock_error(); 19959: } 19959: 19959: } 19959: 19959: void unlock() 19959: { 19959: 19959: if (__gthread_active_p()) 19959: { 19959: if (__gthread_recursive_mutex_unlock(&_M_mutex) != 0) 19959: __throw_concurrence_unlock_error(); 19959: } 19959: 19959: } 19959: 19959: __gthread_recursive_mutex_t* gthread_recursive_mutex(void) 19959: { return &_M_mutex; } 19959: }; 19959: 19959: 19959: 19959: 19959: class __scoped_lock 19959: { 19959: public: 19959: typedef __mutex __mutex_type; 19959: 19959: private: 19959: __mutex_type& _M_device; 19959: 19959: __scoped_lock(const __scoped_lock&); 19959: __scoped_lock& operator=(const __scoped_lock&); 19959: 19959: public: 19959: explicit __scoped_lock(__mutex_type& __name) : _M_device(__name) 19959: { _M_device.lock(); } 19959: 19959: ~__scoped_lock() throw() 19959: { _M_device.unlock(); } 19959: }; 19959: 19959: 19959: class __cond 19959: { 19959: private: 19959: 19959: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 19959: 19959: 19959: 19959: 19959: __cond(const __cond&); 19959: __cond& operator=(const __cond&); 19959: 19959: public: 19959: __cond() 19959: { 19959: 19959: 19959: 19959: 19959: } 19959: # 277 "/usr/include/c++/13/ext/concurrence.h" 3 19959: void broadcast() 19959: { 19959: 19959: if (__gthread_active_p()) 19959: { 19959: if (__gthread_cond_broadcast(&_M_cond) != 0) 19959: __throw_concurrence_broadcast_error(); 19959: } 19959: 19959: } 19959: 19959: void wait(__mutex *mutex) 19959: { 19959: 19959: { 19959: if (__gthread_cond_wait(&_M_cond, mutex->gthread_mutex()) != 0) 19959: __throw_concurrence_wait_error(); 19959: } 19959: 19959: } 19959: 19959: void wait_recursive(__recursive_mutex *mutex) 19959: { 19959: 19959: { 19959: if (__gthread_cond_wait_recursive(&_M_cond, 19959: mutex->gthread_recursive_mutex()) 19959: != 0) 19959: __throw_concurrence_wait_error(); 19959: } 19959: 19959: } 19959: }; 19959: 19959: 19959: 19959: } 19959: # 63 "/usr/include/c++/13/bits/shared_ptr_base.h" 2 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: # 75 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: template class auto_ptr; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: 19959: 19959: 19959: 19959: class bad_weak_ptr : public std::exception 19959: { 19959: public: 19959: virtual char const* what() const noexcept; 19959: 19959: virtual ~bad_weak_ptr() noexcept; 19959: }; 19959: 19959: 19959: inline void 19959: __throw_bad_weak_ptr() 19959: { (throw (bad_weak_ptr())); } 19959: 19959: using __gnu_cxx::_Lock_policy; 19959: using __gnu_cxx::__default_lock_policy; 19959: using __gnu_cxx::_S_single; 19959: using __gnu_cxx::_S_mutex; 19959: using __gnu_cxx::_S_atomic; 19959: 19959: 19959: template<_Lock_policy _Lp> 19959: class _Mutex_base 19959: { 19959: protected: 19959: 19959: enum { _S_need_barriers = 0 }; 19959: }; 19959: 19959: template<> 19959: class _Mutex_base<_S_mutex> 19959: : public __gnu_cxx::__mutex 19959: { 19959: protected: 19959: 19959: 19959: 19959: enum { _S_need_barriers = 1 }; 19959: }; 19959: 19959: template<_Lock_policy _Lp = __default_lock_policy> 19959: class _Sp_counted_base 19959: : public _Mutex_base<_Lp> 19959: { 19959: public: 19959: _Sp_counted_base() noexcept 19959: : _M_use_count(1), _M_weak_count(1) { } 19959: 19959: virtual 19959: ~_Sp_counted_base() noexcept 19959: { } 19959: 19959: 19959: 19959: virtual void 19959: _M_dispose() noexcept = 0; 19959: 19959: 19959: virtual void 19959: _M_destroy() noexcept 19959: { delete this; } 19959: 19959: virtual void* 19959: _M_get_deleter(const std::type_info&) noexcept = 0; 19959: 19959: 19959: void 19959: _M_add_ref_copy() 19959: { __gnu_cxx::__atomic_add_dispatch(&_M_use_count, 1); } 19959: 19959: 19959: void 19959: _M_add_ref_lock() 19959: { 19959: if (!_M_add_ref_lock_nothrow()) 19959: __throw_bad_weak_ptr(); 19959: } 19959: 19959: 19959: bool 19959: _M_add_ref_lock_nothrow() noexcept; 19959: 19959: 19959: void 19959: _M_release() noexcept; 19959: 19959: 19959: void 19959: _M_release_last_use() noexcept 19959: { 19959: ; 19959: _M_dispose(); 19959: 19959: 19959: 19959: 19959: if (_Mutex_base<_Lp>::_S_need_barriers) 19959: { 19959: __atomic_thread_fence (4); 19959: } 19959: 19959: 19959: ; 19959: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, 19959: -1) == 1) 19959: { 19959: ; 19959: _M_destroy(); 19959: } 19959: } 19959: 19959: 19959: __attribute__((__noinline__)) 19959: void 19959: _M_release_last_use_cold() noexcept 19959: { _M_release_last_use(); } 19959: 19959: 19959: void 19959: _M_weak_add_ref() noexcept 19959: { __gnu_cxx::__atomic_add_dispatch(&_M_weak_count, 1); } 19959: 19959: 19959: void 19959: _M_weak_release() noexcept 19959: { 19959: 19959: ; 19959: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1) 19959: { 19959: ; 19959: if (_Mutex_base<_Lp>::_S_need_barriers) 19959: { 19959: 19959: 19959: __atomic_thread_fence (4); 19959: } 19959: _M_destroy(); 19959: } 19959: } 19959: 19959: long 19959: _M_get_use_count() const noexcept 19959: { 19959: 19959: 19959: return __atomic_load_n(&_M_use_count, 0); 19959: } 19959: 19959: private: 19959: _Sp_counted_base(_Sp_counted_base const&) = delete; 19959: _Sp_counted_base& operator=(_Sp_counted_base const&) = delete; 19959: 19959: _Atomic_word _M_use_count; 19959: _Atomic_word _M_weak_count; 19959: }; 19959: 19959: template<> 19959: inline bool 19959: _Sp_counted_base<_S_single>:: 19959: _M_add_ref_lock_nothrow() noexcept 19959: { 19959: if (_M_use_count == 0) 19959: return false; 19959: ++_M_use_count; 19959: return true; 19959: } 19959: 19959: template<> 19959: inline bool 19959: _Sp_counted_base<_S_mutex>:: 19959: _M_add_ref_lock_nothrow() noexcept 19959: { 19959: __gnu_cxx::__scoped_lock sentry(*this); 19959: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, 1) == 0) 19959: { 19959: _M_use_count = 0; 19959: return false; 19959: } 19959: return true; 19959: } 19959: 19959: template<> 19959: inline bool 19959: _Sp_counted_base<_S_atomic>:: 19959: _M_add_ref_lock_nothrow() noexcept 19959: { 19959: 19959: _Atomic_word __count = _M_get_use_count(); 19959: do 19959: { 19959: if (__count == 0) 19959: return false; 19959: 19959: 19959: } 19959: while (!__atomic_compare_exchange_n(&_M_use_count, &__count, __count + 1, 19959: true, 4, 19959: 0)); 19959: return true; 19959: } 19959: 19959: template<> 19959: inline void 19959: _Sp_counted_base<_S_single>::_M_add_ref_copy() 19959: { ++_M_use_count; } 19959: 19959: template<> 19959: inline void 19959: _Sp_counted_base<_S_single>::_M_release() noexcept 19959: { 19959: if (--_M_use_count == 0) 19959: { 19959: _M_dispose(); 19959: if (--_M_weak_count == 0) 19959: _M_destroy(); 19959: } 19959: } 19959: 19959: template<> 19959: inline void 19959: _Sp_counted_base<_S_mutex>::_M_release() noexcept 19959: { 19959: 19959: ; 19959: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 19959: { 19959: _M_release_last_use(); 19959: } 19959: } 19959: 19959: template<> 19959: inline void 19959: _Sp_counted_base<_S_atomic>::_M_release() noexcept 19959: { 19959: ; 19959: 19959: constexpr bool __lock_free 19959: = __atomic_always_lock_free(sizeof(long long), 0) 19959: && __atomic_always_lock_free(sizeof(_Atomic_word), 0); 19959: constexpr bool __double_word 19959: = sizeof(long long) == 2 * sizeof(_Atomic_word); 19959: 19959: 19959: constexpr bool __aligned = __alignof(long long) <= alignof(void*); 19959: if constexpr (__lock_free && __double_word && __aligned) 19959: { 19959: constexpr int __wordbits = 8 * sizeof(_Atomic_word); 19959: constexpr int __shiftbits = __double_word ? __wordbits : 0; 19959: constexpr long long __unique_ref = 1LL + (1LL << __shiftbits); 19959: auto __both_counts = reinterpret_cast(&_M_use_count); 19959: 19959: ; 19959: if (__atomic_load_n(__both_counts, 2) == __unique_ref) 19959: { 19959: 19959: 19959: 19959: 19959: _M_weak_count = _M_use_count = 0; 19959: ; 19959: ; 19959: _M_dispose(); 19959: _M_destroy(); 19959: return; 19959: } 19959: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 19959: [[__unlikely__]] 19959: { 19959: _M_release_last_use_cold(); 19959: return; 19959: } 19959: } 19959: else 19959: 19959: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 19959: { 19959: _M_release_last_use(); 19959: } 19959: } 19959: 19959: template<> 19959: inline void 19959: _Sp_counted_base<_S_single>::_M_weak_add_ref() noexcept 19959: { ++_M_weak_count; } 19959: 19959: template<> 19959: inline void 19959: _Sp_counted_base<_S_single>::_M_weak_release() noexcept 19959: { 19959: if (--_M_weak_count == 0) 19959: _M_destroy(); 19959: } 19959: 19959: template<> 19959: inline long 19959: _Sp_counted_base<_S_single>::_M_get_use_count() const noexcept 19959: { return _M_use_count; } 19959: 19959: 19959: 19959: template 19959: class __shared_ptr; 19959: 19959: template 19959: class __weak_ptr; 19959: 19959: template 19959: class __enable_shared_from_this; 19959: 19959: template 19959: class shared_ptr; 19959: 19959: template 19959: class weak_ptr; 19959: 19959: template 19959: struct owner_less; 19959: 19959: template 19959: class enable_shared_from_this; 19959: 19959: template<_Lock_policy _Lp = __default_lock_policy> 19959: class __weak_count; 19959: 19959: template<_Lock_policy _Lp = __default_lock_policy> 19959: class __shared_count; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: class _Sp_counted_ptr final : public _Sp_counted_base<_Lp> 19959: { 19959: public: 19959: explicit 19959: _Sp_counted_ptr(_Ptr __p) noexcept 19959: : _M_ptr(__p) { } 19959: 19959: virtual void 19959: _M_dispose() noexcept 19959: { delete _M_ptr; } 19959: 19959: virtual void 19959: _M_destroy() noexcept 19959: { delete this; } 19959: 19959: virtual void* 19959: _M_get_deleter(const std::type_info&) noexcept 19959: { return nullptr; } 19959: 19959: _Sp_counted_ptr(const _Sp_counted_ptr&) = delete; 19959: _Sp_counted_ptr& operator=(const _Sp_counted_ptr&) = delete; 19959: 19959: private: 19959: _Ptr _M_ptr; 19959: }; 19959: 19959: template<> 19959: inline void 19959: _Sp_counted_ptr::_M_dispose() noexcept { } 19959: 19959: template<> 19959: inline void 19959: _Sp_counted_ptr::_M_dispose() noexcept { } 19959: 19959: template<> 19959: inline void 19959: _Sp_counted_ptr::_M_dispose() noexcept { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Sp_ebo_helper; 19959: 19959: 19959: template 19959: struct _Sp_ebo_helper<_Nm, _Tp, true> : private _Tp 19959: { 19959: explicit _Sp_ebo_helper(const _Tp& __tp) : _Tp(__tp) { } 19959: explicit _Sp_ebo_helper(_Tp&& __tp) : _Tp(std::move(__tp)) { } 19959: 19959: static _Tp& 19959: _S_get(_Sp_ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); } 19959: }; 19959: 19959: 19959: template 19959: struct _Sp_ebo_helper<_Nm, _Tp, false> 19959: { 19959: explicit _Sp_ebo_helper(const _Tp& __tp) : _M_tp(__tp) { } 19959: explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { } 19959: 19959: static _Tp& 19959: _S_get(_Sp_ebo_helper& __eboh) 19959: { return __eboh._M_tp; } 19959: 19959: private: 19959: _Tp _M_tp; 19959: }; 19959: 19959: 19959: template 19959: class _Sp_counted_deleter final : public _Sp_counted_base<_Lp> 19959: { 19959: class _Impl : _Sp_ebo_helper<0, _Deleter>, _Sp_ebo_helper<1, _Alloc> 19959: { 19959: typedef _Sp_ebo_helper<0, _Deleter> _Del_base; 19959: typedef _Sp_ebo_helper<1, _Alloc> _Alloc_base; 19959: 19959: public: 19959: _Impl(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 19959: : _Del_base(std::move(__d)), _Alloc_base(__a), _M_ptr(__p) 19959: { } 19959: 19959: _Deleter& _M_del() noexcept { return _Del_base::_S_get(*this); } 19959: _Alloc& _M_alloc() noexcept { return _Alloc_base::_S_get(*this); } 19959: 19959: _Ptr _M_ptr; 19959: }; 19959: 19959: public: 19959: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_deleter>; 19959: 19959: 19959: _Sp_counted_deleter(_Ptr __p, _Deleter __d) noexcept 19959: : _M_impl(__p, std::move(__d), _Alloc()) { } 19959: 19959: 19959: _Sp_counted_deleter(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 19959: : _M_impl(__p, std::move(__d), __a) { } 19959: 19959: ~_Sp_counted_deleter() noexcept { } 19959: 19959: virtual void 19959: _M_dispose() noexcept 19959: { _M_impl._M_del()(_M_impl._M_ptr); } 19959: 19959: virtual void 19959: _M_destroy() noexcept 19959: { 19959: __allocator_type __a(_M_impl._M_alloc()); 19959: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 19959: this->~_Sp_counted_deleter(); 19959: } 19959: 19959: virtual void* 19959: _M_get_deleter(const type_info& __ti [[__gnu__::__unused__]]) noexcept 19959: { 19959: 19959: 19959: 19959: return __ti == typeid(_Deleter) 19959: ? std::__addressof(_M_impl._M_del()) 19959: : nullptr; 19959: 19959: 19959: 19959: } 19959: 19959: private: 19959: _Impl _M_impl; 19959: }; 19959: 19959: 19959: 19959: struct _Sp_make_shared_tag 19959: { 19959: private: 19959: template 19959: friend class _Sp_counted_ptr_inplace; 19959: 19959: static const type_info& 19959: _S_ti() noexcept __attribute__ ((__visibility__ ("default"))) 19959: { 19959: alignas(type_info) static constexpr char __tag[sizeof(type_info)] = { }; 19959: return reinterpret_cast(__tag); 19959: } 19959: 19959: static bool _S_eq(const type_info&) noexcept; 19959: }; 19959: 19959: template 19959: struct _Sp_alloc_shared_tag 19959: { 19959: const _Alloc& _M_a; 19959: }; 19959: 19959: template 19959: class _Sp_counted_ptr_inplace final : public _Sp_counted_base<_Lp> 19959: { 19959: class _Impl : _Sp_ebo_helper<0, _Alloc> 19959: { 19959: typedef _Sp_ebo_helper<0, _Alloc> _A_base; 19959: 19959: public: 19959: explicit _Impl(_Alloc __a) noexcept : _A_base(__a) { } 19959: 19959: _Alloc& _M_alloc() noexcept { return _A_base::_S_get(*this); } 19959: 19959: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 19959: }; 19959: 19959: public: 19959: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>; 19959: 19959: 19959: template 19959: _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args) 19959: : _M_impl(__a) 19959: { 19959: 19959: 19959: allocator_traits<_Alloc>::construct(__a, _M_ptr(), 19959: std::forward<_Args>(__args)...); 19959: } 19959: 19959: ~_Sp_counted_ptr_inplace() noexcept { } 19959: 19959: virtual void 19959: _M_dispose() noexcept 19959: { 19959: allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr()); 19959: } 19959: 19959: 19959: virtual void 19959: _M_destroy() noexcept 19959: { 19959: __allocator_type __a(_M_impl._M_alloc()); 19959: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 19959: this->~_Sp_counted_ptr_inplace(); 19959: } 19959: 19959: private: 19959: friend class __shared_count<_Lp>; 19959: 19959: 19959: 19959: virtual void* 19959: _M_get_deleter(const std::type_info& __ti) noexcept override 19959: { 19959: auto __ptr = const_cast::type*>(_M_ptr()); 19959: 19959: 19959: 19959: 19959: if (&__ti == &_Sp_make_shared_tag::_S_ti() 19959: || 19959: 19959: __ti == typeid(_Sp_make_shared_tag) 19959: 19959: 19959: 19959: ) 19959: return __ptr; 19959: return nullptr; 19959: } 19959: 19959: _Tp* _M_ptr() noexcept { return _M_impl._M_storage._M_ptr(); } 19959: 19959: _Impl _M_impl; 19959: }; 19959: # 886 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 19959: struct __sp_array_delete 19959: { 19959: template 19959: void operator()(_Yp* __p) const { delete[] __p; } 19959: }; 19959: 19959: template<_Lock_policy _Lp> 19959: class __shared_count 19959: { 19959: 19959: template 19959: struct __not_alloc_shared_tag { using type = void; }; 19959: 19959: template 19959: struct __not_alloc_shared_tag<_Sp_alloc_shared_tag<_Tp>> { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: public: 19959: constexpr __shared_count() noexcept : _M_pi(0) 19959: { } 19959: 19959: template 19959: explicit 19959: __shared_count(_Ptr __p) : _M_pi(0) 19959: { 19959: try 19959: { 19959: _M_pi = new _Sp_counted_ptr<_Ptr, _Lp>(__p); 19959: } 19959: catch(...) 19959: { 19959: delete __p; 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: __shared_count(_Ptr __p, false_type) 19959: : __shared_count(__p) 19959: { } 19959: 19959: template 19959: __shared_count(_Ptr __p, true_type) 19959: : __shared_count(__p, __sp_array_delete{}, allocator()) 19959: { } 19959: 19959: template::type> 19959: __shared_count(_Ptr __p, _Deleter __d) 19959: : __shared_count(__p, std::move(__d), allocator()) 19959: { } 19959: 19959: template::type> 19959: __shared_count(_Ptr __p, _Deleter __d, _Alloc __a) : _M_pi(0) 19959: { 19959: typedef _Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp> _Sp_cd_type; 19959: try 19959: { 19959: typename _Sp_cd_type::__allocator_type __a2(__a); 19959: auto __guard = std::__allocate_guarded(__a2); 19959: _Sp_cd_type* __mem = __guard.get(); 19959: ::new (__mem) _Sp_cd_type(__p, std::move(__d), std::move(__a)); 19959: _M_pi = __mem; 19959: __guard = nullptr; 19959: } 19959: catch(...) 19959: { 19959: __d(__p); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: __shared_count(_Tp*& __p, _Sp_alloc_shared_tag<_Alloc> __a, 19959: _Args&&... __args) 19959: { 19959: typedef _Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp> _Sp_cp_type; 19959: typename _Sp_cp_type::__allocator_type __a2(__a._M_a); 19959: auto __guard = std::__allocate_guarded(__a2); 19959: _Sp_cp_type* __mem = __guard.get(); 19959: auto __pi = ::new (__mem) 19959: _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...); 19959: __guard = nullptr; 19959: _M_pi = __pi; 19959: __p = __pi->_M_ptr(); 19959: } 19959: # 1024 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: template 19959: explicit 19959: __shared_count(std::auto_ptr<_Tp>&& __r); 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: 19959: template 19959: explicit 19959: __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0) 19959: { 19959: 19959: 19959: if (__r.get() == nullptr) 19959: return; 19959: 19959: using _Ptr = typename unique_ptr<_Tp, _Del>::pointer; 19959: using _Del2 = __conditional_t::value, 19959: reference_wrapper::type>, 19959: _Del>; 19959: using _Sp_cd_type 19959: = _Sp_counted_deleter<_Ptr, _Del2, allocator, _Lp>; 19959: using _Alloc = allocator<_Sp_cd_type>; 19959: using _Alloc_traits = allocator_traits<_Alloc>; 19959: _Alloc __a; 19959: _Sp_cd_type* __mem = _Alloc_traits::allocate(__a, 1); 19959: 19959: 19959: 19959: _Alloc_traits::construct(__a, __mem, __r.release(), 19959: std::forward<_Del>(__r.get_deleter())); 19959: _M_pi = __mem; 19959: } 19959: 19959: 19959: explicit __shared_count(const __weak_count<_Lp>& __r); 19959: 19959: 19959: explicit 19959: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept; 19959: 19959: ~__shared_count() noexcept 19959: { 19959: if (_M_pi != nullptr) 19959: _M_pi->_M_release(); 19959: } 19959: 19959: __shared_count(const __shared_count& __r) noexcept 19959: : _M_pi(__r._M_pi) 19959: { 19959: if (_M_pi != nullptr) 19959: _M_pi->_M_add_ref_copy(); 19959: } 19959: 19959: __shared_count& 19959: operator=(const __shared_count& __r) noexcept 19959: { 19959: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 19959: if (__tmp != _M_pi) 19959: { 19959: if (__tmp != nullptr) 19959: __tmp->_M_add_ref_copy(); 19959: if (_M_pi != nullptr) 19959: _M_pi->_M_release(); 19959: _M_pi = __tmp; 19959: } 19959: return *this; 19959: } 19959: 19959: void 19959: _M_swap(__shared_count& __r) noexcept 19959: { 19959: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 19959: __r._M_pi = _M_pi; 19959: _M_pi = __tmp; 19959: } 19959: 19959: long 19959: _M_get_use_count() const noexcept 19959: { return _M_pi ? _M_pi->_M_get_use_count() : 0; } 19959: 19959: bool 19959: _M_unique() const noexcept 19959: { return this->_M_get_use_count() == 1; } 19959: 19959: void* 19959: _M_get_deleter(const std::type_info& __ti) const noexcept 19959: { return _M_pi ? _M_pi->_M_get_deleter(__ti) : nullptr; } 19959: 19959: bool 19959: _M_less(const __shared_count& __rhs) const noexcept 19959: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 19959: 19959: bool 19959: _M_less(const __weak_count<_Lp>& __rhs) const noexcept 19959: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 19959: 19959: 19959: friend inline bool 19959: operator==(const __shared_count& __a, const __shared_count& __b) noexcept 19959: { return __a._M_pi == __b._M_pi; } 19959: 19959: private: 19959: friend class __weak_count<_Lp>; 19959: 19959: 19959: 19959: 19959: _Sp_counted_base<_Lp>* _M_pi; 19959: }; 19959: 19959: 19959: template<_Lock_policy _Lp> 19959: class __weak_count 19959: { 19959: public: 19959: constexpr __weak_count() noexcept : _M_pi(nullptr) 19959: { } 19959: 19959: __weak_count(const __shared_count<_Lp>& __r) noexcept 19959: : _M_pi(__r._M_pi) 19959: { 19959: if (_M_pi != nullptr) 19959: _M_pi->_M_weak_add_ref(); 19959: } 19959: 19959: __weak_count(const __weak_count& __r) noexcept 19959: : _M_pi(__r._M_pi) 19959: { 19959: if (_M_pi != nullptr) 19959: _M_pi->_M_weak_add_ref(); 19959: } 19959: 19959: __weak_count(__weak_count&& __r) noexcept 19959: : _M_pi(__r._M_pi) 19959: { __r._M_pi = nullptr; } 19959: 19959: ~__weak_count() noexcept 19959: { 19959: if (_M_pi != nullptr) 19959: _M_pi->_M_weak_release(); 19959: } 19959: 19959: __weak_count& 19959: operator=(const __shared_count<_Lp>& __r) noexcept 19959: { 19959: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 19959: if (__tmp != nullptr) 19959: __tmp->_M_weak_add_ref(); 19959: if (_M_pi != nullptr) 19959: _M_pi->_M_weak_release(); 19959: _M_pi = __tmp; 19959: return *this; 19959: } 19959: 19959: __weak_count& 19959: operator=(const __weak_count& __r) noexcept 19959: { 19959: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 19959: if (__tmp != nullptr) 19959: __tmp->_M_weak_add_ref(); 19959: if (_M_pi != nullptr) 19959: _M_pi->_M_weak_release(); 19959: _M_pi = __tmp; 19959: return *this; 19959: } 19959: 19959: __weak_count& 19959: operator=(__weak_count&& __r) noexcept 19959: { 19959: if (_M_pi != nullptr) 19959: _M_pi->_M_weak_release(); 19959: _M_pi = __r._M_pi; 19959: __r._M_pi = nullptr; 19959: return *this; 19959: } 19959: 19959: void 19959: _M_swap(__weak_count& __r) noexcept 19959: { 19959: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 19959: __r._M_pi = _M_pi; 19959: _M_pi = __tmp; 19959: } 19959: 19959: long 19959: _M_get_use_count() const noexcept 19959: { return _M_pi != nullptr ? _M_pi->_M_get_use_count() : 0; } 19959: 19959: bool 19959: _M_less(const __weak_count& __rhs) const noexcept 19959: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 19959: 19959: bool 19959: _M_less(const __shared_count<_Lp>& __rhs) const noexcept 19959: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 19959: 19959: 19959: friend inline bool 19959: operator==(const __weak_count& __a, const __weak_count& __b) noexcept 19959: { return __a._M_pi == __b._M_pi; } 19959: 19959: private: 19959: friend class __shared_count<_Lp>; 19959: 19959: 19959: 19959: 19959: _Sp_counted_base<_Lp>* _M_pi; 19959: }; 19959: 19959: 19959: template<_Lock_policy _Lp> 19959: inline 19959: __shared_count<_Lp>::__shared_count(const __weak_count<_Lp>& __r) 19959: : _M_pi(__r._M_pi) 19959: { 19959: if (_M_pi == nullptr || !_M_pi->_M_add_ref_lock_nothrow()) 19959: __throw_bad_weak_ptr(); 19959: } 19959: 19959: 19959: template<_Lock_policy _Lp> 19959: inline 19959: __shared_count<_Lp>:: 19959: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept 19959: : _M_pi(__r._M_pi) 19959: { 19959: if (_M_pi && !_M_pi->_M_add_ref_lock_nothrow()) 19959: _M_pi = nullptr; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __sp_compatible_with 19959: : false_type 19959: { }; 19959: 19959: template 19959: struct __sp_compatible_with<_Yp*, _Tp*> 19959: : is_convertible<_Yp*, _Tp*>::type 19959: { }; 19959: 19959: template 19959: struct __sp_compatible_with<_Up(*)[_Nm], _Up(*)[]> 19959: : true_type 19959: { }; 19959: 19959: template 19959: struct __sp_compatible_with<_Up(*)[_Nm], const _Up(*)[]> 19959: : true_type 19959: { }; 19959: 19959: template 19959: struct __sp_compatible_with<_Up(*)[_Nm], volatile _Up(*)[]> 19959: : true_type 19959: { }; 19959: 19959: template 19959: struct __sp_compatible_with<_Up(*)[_Nm], const volatile _Up(*)[]> 19959: : true_type 19959: { }; 19959: 19959: 19959: template 19959: struct __sp_is_constructible_arrN 19959: : false_type 19959: { }; 19959: 19959: template 19959: struct __sp_is_constructible_arrN<_Up, _Nm, _Yp, __void_t<_Yp[_Nm]>> 19959: : is_convertible<_Yp(*)[_Nm], _Up(*)[_Nm]>::type 19959: { }; 19959: 19959: 19959: template 19959: struct __sp_is_constructible_arr 19959: : false_type 19959: { }; 19959: 19959: template 19959: struct __sp_is_constructible_arr<_Up, _Yp, __void_t<_Yp[]>> 19959: : is_convertible<_Yp(*)[], _Up(*)[]>::type 19959: { }; 19959: 19959: 19959: template 19959: struct __sp_is_constructible; 19959: 19959: 19959: template 19959: struct __sp_is_constructible<_Up[_Nm], _Yp> 19959: : __sp_is_constructible_arrN<_Up, _Nm, _Yp>::type 19959: { }; 19959: 19959: 19959: template 19959: struct __sp_is_constructible<_Up[], _Yp> 19959: : __sp_is_constructible_arr<_Up, _Yp>::type 19959: { }; 19959: 19959: 19959: template 19959: struct __sp_is_constructible 19959: : is_convertible<_Yp*, _Tp*>::type 19959: { }; 19959: 19959: 19959: 19959: template::value, bool = is_void<_Tp>::value> 19959: class __shared_ptr_access 19959: { 19959: public: 19959: using element_type = _Tp; 19959: 19959: element_type& 19959: operator*() const noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) __builtin_unreachable(); } while (false); 19959: return *_M_get(); 19959: } 19959: 19959: element_type* 19959: operator->() const noexcept 19959: { 19959: ; 19959: return _M_get(); 19959: } 19959: 19959: private: 19959: element_type* 19959: _M_get() const noexcept 19959: { return static_cast*>(this)->get(); } 19959: }; 19959: 19959: 19959: template 19959: class __shared_ptr_access<_Tp, _Lp, false, true> 19959: { 19959: public: 19959: using element_type = _Tp; 19959: 19959: element_type* 19959: operator->() const noexcept 19959: { 19959: auto __ptr = static_cast*>(this)->get(); 19959: ; 19959: return __ptr; 19959: } 19959: }; 19959: 19959: 19959: template 19959: class __shared_ptr_access<_Tp, _Lp, true, false> 19959: { 19959: public: 19959: using element_type = typename remove_extent<_Tp>::type; 19959: # 1407 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 19959: element_type& 19959: operator[](ptrdiff_t __i) const noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) __builtin_unreachable(); } while (false); 19959: do { if (std::__is_constant_evaluated() && !bool(!extent<_Tp>::value || __i < extent<_Tp>::value)) __builtin_unreachable(); } while (false); 19959: return _M_get()[__i]; 19959: } 19959: 19959: private: 19959: element_type* 19959: _M_get() const noexcept 19959: { return static_cast*>(this)->get(); } 19959: }; 19959: 19959: template 19959: class __shared_ptr 19959: : public __shared_ptr_access<_Tp, _Lp> 19959: { 19959: public: 19959: using element_type = typename remove_extent<_Tp>::type; 19959: 19959: private: 19959: 19959: template 19959: using _SafeConv 19959: = typename enable_if<__sp_is_constructible<_Tp, _Yp>::value>::type; 19959: 19959: 19959: template 19959: using _Compatible = typename 19959: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 19959: 19959: 19959: template 19959: using _Assignable = _Compatible<_Yp, __shared_ptr&>; 19959: 19959: 19959: template::pointer> 19959: using _UniqCompatible = __enable_if_t<__and_< 19959: __sp_compatible_with<_Yp*, _Tp*>, 19959: is_convertible<_Ptr, element_type*>, 19959: is_move_constructible<_Del> 19959: >::value, _Res>; 19959: 19959: 19959: template 19959: using _UniqAssignable = _UniqCompatible<_Yp, _Del, __shared_ptr&>; 19959: 19959: public: 19959: 19959: 19959: using weak_type = __weak_ptr<_Tp, _Lp>; 19959: 19959: 19959: constexpr __shared_ptr() noexcept 19959: : _M_ptr(0), _M_refcount() 19959: { } 19959: 19959: template> 19959: explicit 19959: __shared_ptr(_Yp* __p) 19959: : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) 19959: { 19959: static_assert( !is_void<_Yp>::value, "incomplete type" ); 19959: static_assert( sizeof(_Yp) > 0, "incomplete type" ); 19959: _M_enable_shared_from_this_with(__p); 19959: } 19959: 19959: template> 19959: __shared_ptr(_Yp* __p, _Deleter __d) 19959: : _M_ptr(__p), _M_refcount(__p, std::move(__d)) 19959: { 19959: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 19959: "deleter expression d(p) is well-formed"); 19959: _M_enable_shared_from_this_with(__p); 19959: } 19959: 19959: template> 19959: __shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 19959: : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) 19959: { 19959: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 19959: "deleter expression d(p) is well-formed"); 19959: _M_enable_shared_from_this_with(__p); 19959: } 19959: 19959: template 19959: __shared_ptr(nullptr_t __p, _Deleter __d) 19959: : _M_ptr(0), _M_refcount(__p, std::move(__d)) 19959: { } 19959: 19959: template 19959: __shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 19959: : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) 19959: { } 19959: 19959: 19959: template 19959: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r, 19959: element_type* __p) noexcept 19959: : _M_ptr(__p), _M_refcount(__r._M_refcount) 19959: { } 19959: 19959: 19959: template 19959: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r, 19959: element_type* __p) noexcept 19959: : _M_ptr(__p), _M_refcount() 19959: { 19959: _M_refcount._M_swap(__r._M_refcount); 19959: __r._M_ptr = nullptr; 19959: } 19959: 19959: __shared_ptr(const __shared_ptr&) noexcept = default; 19959: __shared_ptr& operator=(const __shared_ptr&) noexcept = default; 19959: ~__shared_ptr() = default; 19959: 19959: template> 19959: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 19959: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 19959: { } 19959: 19959: __shared_ptr(__shared_ptr&& __r) noexcept 19959: : _M_ptr(__r._M_ptr), _M_refcount() 19959: { 19959: _M_refcount._M_swap(__r._M_refcount); 19959: __r._M_ptr = nullptr; 19959: } 19959: 19959: template> 19959: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept 19959: : _M_ptr(__r._M_ptr), _M_refcount() 19959: { 19959: _M_refcount._M_swap(__r._M_refcount); 19959: __r._M_ptr = nullptr; 19959: } 19959: 19959: template> 19959: explicit __shared_ptr(const __weak_ptr<_Yp, _Lp>& __r) 19959: : _M_refcount(__r._M_refcount) 19959: { 19959: 19959: 19959: _M_ptr = __r._M_ptr; 19959: } 19959: 19959: 19959: template> 19959: __shared_ptr(unique_ptr<_Yp, _Del>&& __r) 19959: : _M_ptr(__r.get()), _M_refcount() 19959: { 19959: auto __raw = __to_address(__r.get()); 19959: _M_refcount = __shared_count<_Lp>(std::move(__r)); 19959: _M_enable_shared_from_this_with(__raw); 19959: } 19959: # 1585 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: template> 19959: __shared_ptr(auto_ptr<_Yp>&& __r); 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: constexpr __shared_ptr(nullptr_t) noexcept : __shared_ptr() { } 19959: 19959: template 19959: _Assignable<_Yp> 19959: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 19959: { 19959: _M_ptr = __r._M_ptr; 19959: _M_refcount = __r._M_refcount; 19959: return *this; 19959: } 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: template 19959: _Assignable<_Yp> 19959: operator=(auto_ptr<_Yp>&& __r) 19959: { 19959: __shared_ptr(std::move(__r)).swap(*this); 19959: return *this; 19959: } 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: __shared_ptr& 19959: operator=(__shared_ptr&& __r) noexcept 19959: { 19959: __shared_ptr(std::move(__r)).swap(*this); 19959: return *this; 19959: } 19959: 19959: template 19959: _Assignable<_Yp> 19959: operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept 19959: { 19959: __shared_ptr(std::move(__r)).swap(*this); 19959: return *this; 19959: } 19959: 19959: template 19959: _UniqAssignable<_Yp, _Del> 19959: operator=(unique_ptr<_Yp, _Del>&& __r) 19959: { 19959: __shared_ptr(std::move(__r)).swap(*this); 19959: return *this; 19959: } 19959: 19959: void 19959: reset() noexcept 19959: { __shared_ptr().swap(*this); } 19959: 19959: template 19959: _SafeConv<_Yp> 19959: reset(_Yp* __p) 19959: { 19959: 19959: do { if (std::__is_constant_evaluated() && !bool(__p == nullptr || __p != _M_ptr)) __builtin_unreachable(); } while (false); 19959: __shared_ptr(__p).swap(*this); 19959: } 19959: 19959: template 19959: _SafeConv<_Yp> 19959: reset(_Yp* __p, _Deleter __d) 19959: { __shared_ptr(__p, std::move(__d)).swap(*this); } 19959: 19959: template 19959: _SafeConv<_Yp> 19959: reset(_Yp* __p, _Deleter __d, _Alloc __a) 19959: { __shared_ptr(__p, std::move(__d), std::move(__a)).swap(*this); } 19959: 19959: 19959: element_type* 19959: get() const noexcept 19959: { return _M_ptr; } 19959: 19959: 19959: explicit operator bool() const noexcept 19959: { return _M_ptr != nullptr; } 19959: 19959: 19959: bool 19959: unique() const noexcept 19959: { return _M_refcount._M_unique(); } 19959: 19959: 19959: long 19959: use_count() const noexcept 19959: { return _M_refcount._M_get_use_count(); } 19959: 19959: 19959: void 19959: swap(__shared_ptr<_Tp, _Lp>& __other) noexcept 19959: { 19959: std::swap(_M_ptr, __other._M_ptr); 19959: _M_refcount._M_swap(__other._M_refcount); 19959: } 19959: # 1697 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 19959: template 19959: bool 19959: owner_before(__shared_ptr<_Tp1, _Lp> const& __rhs) const noexcept 19959: { return _M_refcount._M_less(__rhs._M_refcount); } 19959: 19959: template 19959: bool 19959: owner_before(__weak_ptr<_Tp1, _Lp> const& __rhs) const noexcept 19959: { return _M_refcount._M_less(__rhs._M_refcount); } 19959: 19959: 19959: protected: 19959: 19959: template 19959: __shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 19959: : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...) 19959: { _M_enable_shared_from_this_with(_M_ptr); } 19959: 19959: template 19959: friend __shared_ptr<_Tp1, _Lp1> 19959: __allocate_shared(const _Alloc& __a, _Args&&... __args); 19959: # 1731 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 19959: __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t) noexcept 19959: : _M_refcount(__r._M_refcount, std::nothrow) 19959: { 19959: _M_ptr = _M_refcount._M_get_use_count() ? __r._M_ptr : nullptr; 19959: } 19959: 19959: friend class __weak_ptr<_Tp, _Lp>; 19959: 19959: private: 19959: 19959: template 19959: using __esft_base_t = decltype(__enable_shared_from_this_base( 19959: std::declval&>(), 19959: std::declval<_Yp*>())); 19959: 19959: 19959: template 19959: struct __has_esft_base 19959: : false_type { }; 19959: 19959: template 19959: struct __has_esft_base<_Yp, __void_t<__esft_base_t<_Yp>>> 19959: : __not_> { }; 19959: 19959: template::type> 19959: typename enable_if<__has_esft_base<_Yp2>::value>::type 19959: _M_enable_shared_from_this_with(_Yp* __p) noexcept 19959: { 19959: if (auto __base = __enable_shared_from_this_base(_M_refcount, __p)) 19959: __base->_M_weak_assign(const_cast<_Yp2*>(__p), _M_refcount); 19959: } 19959: 19959: template::type> 19959: typename enable_if::value>::type 19959: _M_enable_shared_from_this_with(_Yp*) noexcept 19959: { } 19959: 19959: void* 19959: _M_get_deleter(const std::type_info& __ti) const noexcept 19959: { return _M_refcount._M_get_deleter(__ti); } 19959: 19959: template friend class __shared_ptr; 19959: template friend class __weak_ptr; 19959: 19959: template 19959: friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&) noexcept; 19959: 19959: template 19959: friend _Del* get_deleter(const shared_ptr<_Tp1>&) noexcept; 19959: 19959: 19959: 19959: 19959: 19959: element_type* _M_ptr; 19959: __shared_count<_Lp> _M_refcount; 19959: }; 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator==(const __shared_ptr<_Tp1, _Lp>& __a, 19959: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 19959: { return __a.get() == __b.get(); } 19959: 19959: template 19959: inline bool 19959: operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 19959: { return !__a; } 19959: # 1817 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 19959: template 19959: inline bool 19959: operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 19959: { return !__a; } 19959: 19959: template 19959: inline bool 19959: operator!=(const __shared_ptr<_Tp1, _Lp>& __a, 19959: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 19959: { return __a.get() != __b.get(); } 19959: 19959: template 19959: inline bool 19959: operator!=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 19959: { return (bool)__a; } 19959: 19959: template 19959: inline bool 19959: operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 19959: { return (bool)__a; } 19959: 19959: template 19959: inline bool 19959: operator<(const __shared_ptr<_Tp, _Lp>& __a, 19959: const __shared_ptr<_Up, _Lp>& __b) noexcept 19959: { 19959: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 19959: using _Up_elt = typename __shared_ptr<_Up, _Lp>::element_type; 19959: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 19959: return less<_Vp>()(__a.get(), __b.get()); 19959: } 19959: 19959: template 19959: inline bool 19959: operator<(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 19959: { 19959: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 19959: return less<_Tp_elt*>()(__a.get(), nullptr); 19959: } 19959: 19959: template 19959: inline bool 19959: operator<(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 19959: { 19959: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 19959: return less<_Tp_elt*>()(nullptr, __a.get()); 19959: } 19959: 19959: template 19959: inline bool 19959: operator<=(const __shared_ptr<_Tp1, _Lp>& __a, 19959: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 19959: { return !(__b < __a); } 19959: 19959: template 19959: inline bool 19959: operator<=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 19959: { return !(nullptr < __a); } 19959: 19959: template 19959: inline bool 19959: operator<=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 19959: { return !(__a < nullptr); } 19959: 19959: template 19959: inline bool 19959: operator>(const __shared_ptr<_Tp1, _Lp>& __a, 19959: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 19959: { return (__b < __a); } 19959: 19959: template 19959: inline bool 19959: operator>(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 19959: { return nullptr < __a; } 19959: 19959: template 19959: inline bool 19959: operator>(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 19959: { return __a < nullptr; } 19959: 19959: template 19959: inline bool 19959: operator>=(const __shared_ptr<_Tp1, _Lp>& __a, 19959: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 19959: { return !(__a < __b); } 19959: 19959: template 19959: inline bool 19959: operator>=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 19959: { return !(__a < nullptr); } 19959: 19959: template 19959: inline bool 19959: operator>=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 19959: { return !(nullptr < __a); } 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b) noexcept 19959: { __a.swap(__b); } 19959: # 1927 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 19959: template 19959: inline __shared_ptr<_Tp, _Lp> 19959: static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 19959: { 19959: using _Sp = __shared_ptr<_Tp, _Lp>; 19959: return _Sp(__r, static_cast(__r.get())); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline __shared_ptr<_Tp, _Lp> 19959: const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 19959: { 19959: using _Sp = __shared_ptr<_Tp, _Lp>; 19959: return _Sp(__r, const_cast(__r.get())); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline __shared_ptr<_Tp, _Lp> 19959: dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 19959: { 19959: using _Sp = __shared_ptr<_Tp, _Lp>; 19959: if (auto* __p = dynamic_cast(__r.get())) 19959: return _Sp(__r, __p); 19959: return _Sp(); 19959: } 19959: 19959: 19959: template 19959: inline __shared_ptr<_Tp, _Lp> 19959: reinterpret_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 19959: { 19959: using _Sp = __shared_ptr<_Tp, _Lp>; 19959: return _Sp(__r, reinterpret_cast(__r.get())); 19959: } 19959: 19959: 19959: template 19959: class __weak_ptr 19959: { 19959: template 19959: using _Compatible = typename 19959: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 19959: 19959: 19959: template 19959: using _Assignable = _Compatible<_Yp, __weak_ptr&>; 19959: 19959: public: 19959: using element_type = typename remove_extent<_Tp>::type; 19959: 19959: constexpr __weak_ptr() noexcept 19959: : _M_ptr(nullptr), _M_refcount() 19959: { } 19959: 19959: __weak_ptr(const __weak_ptr&) noexcept = default; 19959: 19959: ~__weak_ptr() = default; 19959: # 2009 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 19959: template> 19959: __weak_ptr(const __weak_ptr<_Yp, _Lp>& __r) noexcept 19959: : _M_refcount(__r._M_refcount) 19959: { _M_ptr = __r.lock().get(); } 19959: 19959: template> 19959: __weak_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 19959: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 19959: { } 19959: 19959: __weak_ptr(__weak_ptr&& __r) noexcept 19959: : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) 19959: { __r._M_ptr = nullptr; } 19959: 19959: template> 19959: __weak_ptr(__weak_ptr<_Yp, _Lp>&& __r) noexcept 19959: : _M_ptr(__r.lock().get()), _M_refcount(std::move(__r._M_refcount)) 19959: { __r._M_ptr = nullptr; } 19959: 19959: __weak_ptr& 19959: operator=(const __weak_ptr& __r) noexcept = default; 19959: 19959: template 19959: _Assignable<_Yp> 19959: operator=(const __weak_ptr<_Yp, _Lp>& __r) noexcept 19959: { 19959: _M_ptr = __r.lock().get(); 19959: _M_refcount = __r._M_refcount; 19959: return *this; 19959: } 19959: 19959: template 19959: _Assignable<_Yp> 19959: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 19959: { 19959: _M_ptr = __r._M_ptr; 19959: _M_refcount = __r._M_refcount; 19959: return *this; 19959: } 19959: 19959: __weak_ptr& 19959: operator=(__weak_ptr&& __r) noexcept 19959: { 19959: __weak_ptr(std::move(__r)).swap(*this); 19959: return *this; 19959: } 19959: 19959: template 19959: _Assignable<_Yp> 19959: operator=(__weak_ptr<_Yp, _Lp>&& __r) noexcept 19959: { 19959: _M_ptr = __r.lock().get(); 19959: _M_refcount = std::move(__r._M_refcount); 19959: __r._M_ptr = nullptr; 19959: return *this; 19959: } 19959: 19959: __shared_ptr<_Tp, _Lp> 19959: lock() const noexcept 19959: { return __shared_ptr(*this, std::nothrow); } 19959: 19959: long 19959: use_count() const noexcept 19959: { return _M_refcount._M_get_use_count(); } 19959: 19959: bool 19959: expired() const noexcept 19959: { return _M_refcount._M_get_use_count() == 0; } 19959: 19959: template 19959: bool 19959: owner_before(const __shared_ptr<_Tp1, _Lp>& __rhs) const noexcept 19959: { return _M_refcount._M_less(__rhs._M_refcount); } 19959: 19959: template 19959: bool 19959: owner_before(const __weak_ptr<_Tp1, _Lp>& __rhs) const noexcept 19959: { return _M_refcount._M_less(__rhs._M_refcount); } 19959: 19959: void 19959: reset() noexcept 19959: { __weak_ptr().swap(*this); } 19959: 19959: void 19959: swap(__weak_ptr& __s) noexcept 19959: { 19959: std::swap(_M_ptr, __s._M_ptr); 19959: _M_refcount._M_swap(__s._M_refcount); 19959: } 19959: 19959: private: 19959: 19959: void 19959: _M_assign(_Tp* __ptr, const __shared_count<_Lp>& __refcount) noexcept 19959: { 19959: if (use_count() == 0) 19959: { 19959: _M_ptr = __ptr; 19959: _M_refcount = __refcount; 19959: } 19959: } 19959: 19959: template friend class __shared_ptr; 19959: template friend class __weak_ptr; 19959: friend class __enable_shared_from_this<_Tp, _Lp>; 19959: friend class enable_shared_from_this<_Tp>; 19959: 19959: 19959: 19959: 19959: element_type* _M_ptr; 19959: __weak_count<_Lp> _M_refcount; 19959: }; 19959: 19959: 19959: template 19959: inline void 19959: swap(__weak_ptr<_Tp, _Lp>& __a, __weak_ptr<_Tp, _Lp>& __b) noexcept 19959: { __a.swap(__b); } 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: template 19959: struct _Sp_owner_less : public binary_function<_Tp, _Tp, bool> 19959: { 19959: bool 19959: operator()(const _Tp& __lhs, const _Tp& __rhs) const noexcept 19959: { return __lhs.owner_before(__rhs); } 19959: 19959: bool 19959: operator()(const _Tp& __lhs, const _Tp1& __rhs) const noexcept 19959: { return __lhs.owner_before(__rhs); } 19959: 19959: bool 19959: operator()(const _Tp1& __lhs, const _Tp& __rhs) const noexcept 19959: { return __lhs.owner_before(__rhs); } 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: template<> 19959: struct _Sp_owner_less 19959: { 19959: template 19959: auto 19959: operator()(const _Tp& __lhs, const _Up& __rhs) const noexcept 19959: -> decltype(__lhs.owner_before(__rhs)) 19959: { return __lhs.owner_before(__rhs); } 19959: 19959: using is_transparent = void; 19959: }; 19959: 19959: template 19959: struct owner_less<__shared_ptr<_Tp, _Lp>> 19959: : public _Sp_owner_less<__shared_ptr<_Tp, _Lp>, __weak_ptr<_Tp, _Lp>> 19959: { }; 19959: 19959: template 19959: struct owner_less<__weak_ptr<_Tp, _Lp>> 19959: : public _Sp_owner_less<__weak_ptr<_Tp, _Lp>, __shared_ptr<_Tp, _Lp>> 19959: { }; 19959: 19959: 19959: template 19959: class __enable_shared_from_this 19959: { 19959: protected: 19959: constexpr __enable_shared_from_this() noexcept { } 19959: 19959: __enable_shared_from_this(const __enable_shared_from_this&) noexcept { } 19959: 19959: __enable_shared_from_this& 19959: operator=(const __enable_shared_from_this&) noexcept 19959: { return *this; } 19959: 19959: ~__enable_shared_from_this() { } 19959: 19959: public: 19959: __shared_ptr<_Tp, _Lp> 19959: shared_from_this() 19959: { return __shared_ptr<_Tp, _Lp>(this->_M_weak_this); } 19959: 19959: __shared_ptr 19959: shared_from_this() const 19959: { return __shared_ptr(this->_M_weak_this); } 19959: 19959: 19959: __weak_ptr<_Tp, _Lp> 19959: weak_from_this() noexcept 19959: { return this->_M_weak_this; } 19959: 19959: __weak_ptr 19959: weak_from_this() const noexcept 19959: { return this->_M_weak_this; } 19959: 19959: 19959: private: 19959: template 19959: void 19959: _M_weak_assign(_Tp1* __p, const __shared_count<_Lp>& __n) const noexcept 19959: { _M_weak_this._M_assign(__p, __n); } 19959: 19959: friend const __enable_shared_from_this* 19959: __enable_shared_from_this_base(const __shared_count<_Lp>&, 19959: const __enable_shared_from_this* __p) 19959: { return __p; } 19959: 19959: template 19959: friend class __shared_ptr; 19959: 19959: mutable __weak_ptr<_Tp, _Lp> _M_weak_this; 19959: }; 19959: 19959: template 19959: inline __shared_ptr<_Tp, _Lp> 19959: __allocate_shared(const _Alloc& __a, _Args&&... __args) 19959: { 19959: static_assert(!is_array<_Tp>::value, "make_shared not supported"); 19959: 19959: return __shared_ptr<_Tp, _Lp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 19959: std::forward<_Args>(__args)...); 19959: } 19959: 19959: template 19959: inline __shared_ptr<_Tp, _Lp> 19959: __make_shared(_Args&&... __args) 19959: { 19959: typedef typename std::remove_const<_Tp>::type _Tp_nc; 19959: return std::__allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(), 19959: std::forward<_Args>(__args)...); 19959: } 19959: 19959: 19959: template 19959: struct hash<__shared_ptr<_Tp, _Lp>> 19959: : public __hash_base> 19959: { 19959: size_t 19959: operator()(const __shared_ptr<_Tp, _Lp>& __s) const noexcept 19959: { 19959: return hash::element_type*>()( 19959: __s.get()); 19959: } 19959: }; 19959: 19959: 19959: } 19959: # 54 "/usr/include/c++/13/bits/shared_ptr.h" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 68 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template 19959: inline std::basic_ostream<_Ch, _Tr>& 19959: operator<<(std::basic_ostream<_Ch, _Tr>& __os, 19959: const __shared_ptr<_Tp, _Lp>& __p) 19959: { 19959: __os << __p.get(); 19959: return __os; 19959: } 19959: 19959: template 19959: inline _Del* 19959: get_deleter(const __shared_ptr<_Tp, _Lp>& __p) noexcept 19959: { 19959: 19959: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline _Del* 19959: get_deleter(const shared_ptr<_Tp>& __p) noexcept 19959: { 19959: 19959: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 19959: 19959: 19959: 19959: } 19959: # 111 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template 19959: using _NonArray = __enable_if_t::value, _Tp>; 19959: # 174 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template 19959: class shared_ptr : public __shared_ptr<_Tp> 19959: { 19959: template 19959: using _Constructible = typename enable_if< 19959: is_constructible<__shared_ptr<_Tp>, _Args...>::value 19959: >::type; 19959: 19959: template 19959: using _Assignable = typename enable_if< 19959: is_assignable<__shared_ptr<_Tp>&, _Arg>::value, shared_ptr& 19959: >::type; 19959: 19959: public: 19959: 19959: 19959: using element_type = typename __shared_ptr<_Tp>::element_type; 19959: 19959: 19959: 19959: 19959: 19959: using weak_type = weak_ptr<_Tp>; 19959: 19959: 19959: 19959: 19959: 19959: constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { } 19959: 19959: shared_ptr(const shared_ptr&) noexcept = default; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: explicit 19959: shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { } 19959: # 229 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template> 19959: shared_ptr(_Yp* __p, _Deleter __d) 19959: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 19959: # 247 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template 19959: shared_ptr(nullptr_t __p, _Deleter __d) 19959: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 19959: # 266 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template> 19959: shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 19959: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 19959: # 286 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template 19959: shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 19959: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 19959: # 310 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template 19959: shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept 19959: : __shared_ptr<_Tp>(__r, __p) { } 19959: # 349 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template&>> 19959: shared_ptr(const shared_ptr<_Yp>& __r) noexcept 19959: : __shared_ptr<_Tp>(__r) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: shared_ptr(shared_ptr&& __r) noexcept 19959: : __shared_ptr<_Tp>(std::move(__r)) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template>> 19959: shared_ptr(shared_ptr<_Yp>&& __r) noexcept 19959: : __shared_ptr<_Tp>(std::move(__r)) { } 19959: # 379 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template&>> 19959: explicit shared_ptr(const weak_ptr<_Yp>& __r) 19959: : __shared_ptr<_Tp>(__r) { } 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: template>> 19959: shared_ptr(auto_ptr<_Yp>&& __r); 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: 19959: 19959: template>> 19959: shared_ptr(unique_ptr<_Yp, _Del>&& __r) 19959: : __shared_ptr<_Tp>(std::move(__r)) { } 19959: # 412 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { } 19959: 19959: shared_ptr& operator=(const shared_ptr&) noexcept = default; 19959: 19959: template 19959: _Assignable&> 19959: operator=(const shared_ptr<_Yp>& __r) noexcept 19959: { 19959: this->__shared_ptr<_Tp>::operator=(__r); 19959: return *this; 19959: } 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: template 19959: _Assignable> 19959: operator=(auto_ptr<_Yp>&& __r) 19959: { 19959: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 19959: return *this; 19959: } 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: shared_ptr& 19959: operator=(shared_ptr&& __r) noexcept 19959: { 19959: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 19959: return *this; 19959: } 19959: 19959: template 19959: _Assignable> 19959: operator=(shared_ptr<_Yp>&& __r) noexcept 19959: { 19959: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 19959: return *this; 19959: } 19959: 19959: template 19959: _Assignable> 19959: operator=(unique_ptr<_Yp, _Del>&& __r) 19959: { 19959: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 19959: return *this; 19959: } 19959: 19959: private: 19959: 19959: template 19959: shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 19959: : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...) 19959: { } 19959: 19959: template 19959: friend shared_ptr<_NonArray<_Yp>> 19959: allocate_shared(const _Alloc&, _Args&&...); 19959: 19959: template 19959: friend shared_ptr<_NonArray<_Yp>> 19959: make_shared(_Args&&...); 19959: # 535 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept 19959: : __shared_ptr<_Tp>(__r, std::nothrow) { } 19959: 19959: friend class weak_ptr<_Tp>; 19959: }; 19959: 19959: 19959: template 19959: shared_ptr(weak_ptr<_Tp>) -> shared_ptr<_Tp>; 19959: template 19959: shared_ptr(unique_ptr<_Tp, _Del>) -> shared_ptr<_Tp>; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 19959: { return __a.get() == __b.get(); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 19959: { return !__a; } 19959: # 580 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 19959: { return !__a; } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator!=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 19959: { return __a.get() != __b.get(); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator!=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 19959: { return (bool)__a; } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator!=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 19959: { return (bool)__a; } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator<(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 19959: { 19959: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 19959: using _Up_elt = typename shared_ptr<_Up>::element_type; 19959: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 19959: return less<_Vp>()(__a.get(), __b.get()); 19959: } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator<(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 19959: { 19959: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 19959: return less<_Tp_elt*>()(__a.get(), nullptr); 19959: } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator<(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 19959: { 19959: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 19959: return less<_Tp_elt*>()(nullptr, __a.get()); 19959: } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator<=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 19959: { return !(__b < __a); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator<=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 19959: { return !(nullptr < __a); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator<=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 19959: { return !(__a < nullptr); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator>(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 19959: { return (__b < __a); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator>(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 19959: { return nullptr < __a; } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator>(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 19959: { return __a < nullptr; } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator>=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 19959: { return !(__a < __b); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator>=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 19959: { return !(__a < nullptr); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] inline bool 19959: operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 19959: { return !(nullptr < __a); } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept 19959: { __a.swap(__b); } 19959: 19959: 19959: 19959: 19959: template 19959: inline shared_ptr<_Tp> 19959: static_pointer_cast(const shared_ptr<_Up>& __r) noexcept 19959: { 19959: using _Sp = shared_ptr<_Tp>; 19959: return _Sp(__r, static_cast(__r.get())); 19959: } 19959: 19959: 19959: template 19959: inline shared_ptr<_Tp> 19959: const_pointer_cast(const shared_ptr<_Up>& __r) noexcept 19959: { 19959: using _Sp = shared_ptr<_Tp>; 19959: return _Sp(__r, const_cast(__r.get())); 19959: } 19959: 19959: 19959: template 19959: inline shared_ptr<_Tp> 19959: dynamic_pointer_cast(const shared_ptr<_Up>& __r) noexcept 19959: { 19959: using _Sp = shared_ptr<_Tp>; 19959: if (auto* __p = dynamic_cast(__r.get())) 19959: return _Sp(__r, __p); 19959: return _Sp(); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: inline shared_ptr<_Tp> 19959: reinterpret_pointer_cast(const shared_ptr<_Up>& __r) noexcept 19959: { 19959: using _Sp = shared_ptr<_Tp>; 19959: return _Sp(__r, reinterpret_cast(__r.get())); 19959: } 19959: # 810 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template 19959: class weak_ptr : public __weak_ptr<_Tp> 19959: { 19959: template 19959: using _Constructible = typename enable_if< 19959: is_constructible<__weak_ptr<_Tp>, _Arg>::value 19959: >::type; 19959: 19959: template 19959: using _Assignable = typename enable_if< 19959: is_assignable<__weak_ptr<_Tp>&, _Arg>::value, weak_ptr& 19959: >::type; 19959: 19959: public: 19959: constexpr weak_ptr() noexcept = default; 19959: 19959: template&>> 19959: weak_ptr(const shared_ptr<_Yp>& __r) noexcept 19959: : __weak_ptr<_Tp>(__r) { } 19959: 19959: weak_ptr(const weak_ptr&) noexcept = default; 19959: 19959: template&>> 19959: weak_ptr(const weak_ptr<_Yp>& __r) noexcept 19959: : __weak_ptr<_Tp>(__r) { } 19959: 19959: weak_ptr(weak_ptr&&) noexcept = default; 19959: 19959: template>> 19959: weak_ptr(weak_ptr<_Yp>&& __r) noexcept 19959: : __weak_ptr<_Tp>(std::move(__r)) { } 19959: 19959: weak_ptr& 19959: operator=(const weak_ptr& __r) noexcept = default; 19959: 19959: template 19959: _Assignable&> 19959: operator=(const weak_ptr<_Yp>& __r) noexcept 19959: { 19959: this->__weak_ptr<_Tp>::operator=(__r); 19959: return *this; 19959: } 19959: 19959: template 19959: _Assignable&> 19959: operator=(const shared_ptr<_Yp>& __r) noexcept 19959: { 19959: this->__weak_ptr<_Tp>::operator=(__r); 19959: return *this; 19959: } 19959: 19959: weak_ptr& 19959: operator=(weak_ptr&& __r) noexcept = default; 19959: 19959: template 19959: _Assignable> 19959: operator=(weak_ptr<_Yp>&& __r) noexcept 19959: { 19959: this->__weak_ptr<_Tp>::operator=(std::move(__r)); 19959: return *this; 19959: } 19959: 19959: shared_ptr<_Tp> 19959: lock() const noexcept 19959: { return shared_ptr<_Tp>(*this, std::nothrow); } 19959: }; 19959: 19959: 19959: template 19959: weak_ptr(shared_ptr<_Tp>) -> weak_ptr<_Tp>; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept 19959: { __a.swap(__b); } 19959: 19959: 19959: 19959: template 19959: struct owner_less; 19959: 19959: 19959: template<> 19959: struct owner_less : _Sp_owner_less 19959: { }; 19959: 19959: 19959: template 19959: struct owner_less> 19959: : public _Sp_owner_less, weak_ptr<_Tp>> 19959: { }; 19959: 19959: 19959: template 19959: struct owner_less> 19959: : public _Sp_owner_less, shared_ptr<_Tp>> 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: class enable_shared_from_this 19959: { 19959: protected: 19959: constexpr enable_shared_from_this() noexcept { } 19959: 19959: enable_shared_from_this(const enable_shared_from_this&) noexcept { } 19959: 19959: enable_shared_from_this& 19959: operator=(const enable_shared_from_this&) noexcept 19959: { return *this; } 19959: 19959: ~enable_shared_from_this() { } 19959: 19959: public: 19959: shared_ptr<_Tp> 19959: shared_from_this() 19959: { return shared_ptr<_Tp>(this->_M_weak_this); } 19959: 19959: shared_ptr 19959: shared_from_this() const 19959: { return shared_ptr(this->_M_weak_this); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: weak_ptr<_Tp> 19959: weak_from_this() noexcept 19959: { return this->_M_weak_this; } 19959: 19959: weak_ptr 19959: weak_from_this() const noexcept 19959: { return this->_M_weak_this; } 19959: 19959: 19959: 19959: private: 19959: template 19959: void 19959: _M_weak_assign(_Tp1* __p, const __shared_count<>& __n) const noexcept 19959: { _M_weak_this._M_assign(__p, __n); } 19959: 19959: 19959: friend const enable_shared_from_this* 19959: __enable_shared_from_this_base(const __shared_count<>&, 19959: const enable_shared_from_this* __p) 19959: { return __p; } 19959: 19959: template 19959: friend class __shared_ptr; 19959: 19959: mutable weak_ptr<_Tp> _M_weak_this; 19959: }; 19959: # 988 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template 19959: inline shared_ptr<_NonArray<_Tp>> 19959: allocate_shared(const _Alloc& __a, _Args&&... __args) 19959: { 19959: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 19959: std::forward<_Args>(__args)...); 19959: } 19959: # 1003 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template 19959: inline shared_ptr<_NonArray<_Tp>> 19959: make_shared(_Args&&... __args) 19959: { 19959: using _Alloc = allocator; 19959: _Alloc __a; 19959: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 19959: std::forward<_Args>(__args)...); 19959: } 19959: # 1152 "/usr/include/c++/13/bits/shared_ptr.h" 3 19959: template 19959: struct hash> 19959: : public __hash_base> 19959: { 19959: size_t 19959: operator()(const shared_ptr<_Tp>& __s) const noexcept 19959: { 19959: return std::hash::element_type*>()(__s.get()); 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: namespace __detail::__variant 19959: { 19959: template struct _Never_valueless_alt; 19959: 19959: 19959: 19959: template 19959: struct _Never_valueless_alt> 19959: : std::true_type 19959: { }; 19959: 19959: 19959: 19959: template 19959: struct _Never_valueless_alt> 19959: : std::true_type 19959: { }; 19959: } 19959: 19959: 19959: 19959: } 19959: # 81 "/usr/include/c++/13/memory" 2 3 19959: # 1 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 1 3 19959: # 61 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 73 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 19959: struct _Sp_locker 19959: { 19959: _Sp_locker(const _Sp_locker&) = delete; 19959: _Sp_locker& operator=(const _Sp_locker&) = delete; 19959: 19959: 19959: explicit 19959: _Sp_locker(const void*) noexcept; 19959: _Sp_locker(const void*, const void*) noexcept; 19959: ~_Sp_locker(); 19959: 19959: private: 19959: unsigned char _M_key1; 19959: unsigned char _M_key2; 19959: 19959: 19959: 19959: }; 19959: # 100 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 19959: template 19959: inline bool 19959: atomic_is_lock_free(const __shared_ptr<_Tp, _Lp>*) 19959: { 19959: 19959: return __gthread_active_p() == 0; 19959: 19959: 19959: 19959: } 19959: 19959: template 19959: inline bool 19959: atomic_is_lock_free(const shared_ptr<_Tp>* __p) 19959: { return std::atomic_is_lock_free<_Tp, __default_lock_policy>(__p); } 19959: # 127 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 19959: template 19959: inline shared_ptr<_Tp> 19959: atomic_load_explicit(const shared_ptr<_Tp>* __p, memory_order) 19959: { 19959: _Sp_locker __lock{__p}; 19959: return *__p; 19959: } 19959: 19959: template 19959: inline shared_ptr<_Tp> 19959: atomic_load(const shared_ptr<_Tp>* __p) 19959: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 19959: 19959: template 19959: inline __shared_ptr<_Tp, _Lp> 19959: atomic_load_explicit(const __shared_ptr<_Tp, _Lp>* __p, memory_order) 19959: { 19959: _Sp_locker __lock{__p}; 19959: return *__p; 19959: } 19959: 19959: template 19959: inline __shared_ptr<_Tp, _Lp> 19959: atomic_load(const __shared_ptr<_Tp, _Lp>* __p) 19959: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 19959: # 163 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 19959: template 19959: inline void 19959: atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 19959: memory_order) 19959: { 19959: _Sp_locker __lock{__p}; 19959: __p->swap(__r); 19959: } 19959: 19959: template 19959: inline void 19959: atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 19959: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 19959: 19959: template 19959: inline void 19959: atomic_store_explicit(__shared_ptr<_Tp, _Lp>* __p, 19959: __shared_ptr<_Tp, _Lp> __r, 19959: memory_order) 19959: { 19959: _Sp_locker __lock{__p}; 19959: __p->swap(__r); 19959: } 19959: 19959: template 19959: inline void 19959: atomic_store(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 19959: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 19959: # 200 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 19959: template 19959: inline shared_ptr<_Tp> 19959: atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 19959: memory_order) 19959: { 19959: _Sp_locker __lock{__p}; 19959: __p->swap(__r); 19959: return __r; 19959: } 19959: 19959: template 19959: inline shared_ptr<_Tp> 19959: atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 19959: { 19959: return std::atomic_exchange_explicit(__p, std::move(__r), 19959: memory_order_seq_cst); 19959: } 19959: 19959: template 19959: inline __shared_ptr<_Tp, _Lp> 19959: atomic_exchange_explicit(__shared_ptr<_Tp, _Lp>* __p, 19959: __shared_ptr<_Tp, _Lp> __r, 19959: memory_order) 19959: { 19959: _Sp_locker __lock{__p}; 19959: __p->swap(__r); 19959: return __r; 19959: } 19959: 19959: template 19959: inline __shared_ptr<_Tp, _Lp> 19959: atomic_exchange(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 19959: { 19959: return std::atomic_exchange_explicit(__p, std::move(__r), 19959: memory_order_seq_cst); 19959: } 19959: # 249 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 19959: template 19959: bool 19959: atomic_compare_exchange_strong_explicit(shared_ptr<_Tp>* __p, 19959: shared_ptr<_Tp>* __v, 19959: shared_ptr<_Tp> __w, 19959: memory_order, 19959: memory_order) 19959: { 19959: shared_ptr<_Tp> __x; 19959: _Sp_locker __lock{__p, __v}; 19959: owner_less> __less; 19959: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 19959: { 19959: __x = std::move(*__p); 19959: *__p = std::move(__w); 19959: return true; 19959: } 19959: __x = std::move(*__v); 19959: *__v = *__p; 19959: return false; 19959: } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_strong(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 19959: shared_ptr<_Tp> __w) 19959: { 19959: return std::atomic_compare_exchange_strong_explicit(__p, __v, 19959: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 19959: } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_weak_explicit(shared_ptr<_Tp>* __p, 19959: shared_ptr<_Tp>* __v, 19959: shared_ptr<_Tp> __w, 19959: memory_order __success, 19959: memory_order __failure) 19959: { 19959: return std::atomic_compare_exchange_strong_explicit(__p, __v, 19959: std::move(__w), __success, __failure); 19959: } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_weak(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 19959: shared_ptr<_Tp> __w) 19959: { 19959: return std::atomic_compare_exchange_weak_explicit(__p, __v, 19959: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 19959: } 19959: 19959: template 19959: bool 19959: atomic_compare_exchange_strong_explicit(__shared_ptr<_Tp, _Lp>* __p, 19959: __shared_ptr<_Tp, _Lp>* __v, 19959: __shared_ptr<_Tp, _Lp> __w, 19959: memory_order, 19959: memory_order) 19959: { 19959: __shared_ptr<_Tp, _Lp> __x; 19959: _Sp_locker __lock{__p, __v}; 19959: owner_less<__shared_ptr<_Tp, _Lp>> __less; 19959: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 19959: { 19959: __x = std::move(*__p); 19959: *__p = std::move(__w); 19959: return true; 19959: } 19959: __x = std::move(*__v); 19959: *__v = *__p; 19959: return false; 19959: } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_strong(__shared_ptr<_Tp, _Lp>* __p, 19959: __shared_ptr<_Tp, _Lp>* __v, 19959: __shared_ptr<_Tp, _Lp> __w) 19959: { 19959: return std::atomic_compare_exchange_strong_explicit(__p, __v, 19959: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 19959: } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_weak_explicit(__shared_ptr<_Tp, _Lp>* __p, 19959: __shared_ptr<_Tp, _Lp>* __v, 19959: __shared_ptr<_Tp, _Lp> __w, 19959: memory_order __success, 19959: memory_order __failure) 19959: { 19959: return std::atomic_compare_exchange_strong_explicit(__p, __v, 19959: std::move(__w), __success, __failure); 19959: } 19959: 19959: template 19959: inline bool 19959: atomic_compare_exchange_weak(__shared_ptr<_Tp, _Lp>* __p, 19959: __shared_ptr<_Tp, _Lp>* __v, 19959: __shared_ptr<_Tp, _Lp> __w) 19959: { 19959: return std::atomic_compare_exchange_weak_explicit(__p, __v, 19959: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 19959: } 19959: # 850 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 19959: 19959: } 19959: # 82 "/usr/include/c++/13/memory" 2 3 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/backward/auto_ptr.h" 1 3 19959: # 36 "/usr/include/c++/13/backward/auto_ptr.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 47 "/usr/include/c++/13/backward/auto_ptr.h" 3 19959: template 19959: struct auto_ptr_ref 19959: { 19959: _Tp1* _M_ptr; 19959: 19959: explicit 19959: auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { } 19959: } __attribute__ ((__deprecated__)); 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: # 92 "/usr/include/c++/13/backward/auto_ptr.h" 3 19959: template 19959: class auto_ptr 19959: { 19959: private: 19959: _Tp* _M_ptr; 19959: 19959: public: 19959: 19959: typedef _Tp element_type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } 19959: # 118 "/usr/include/c++/13/backward/auto_ptr.h" 3 19959: auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } 19959: # 130 "/usr/include/c++/13/backward/auto_ptr.h" 3 19959: template 19959: auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } 19959: # 141 "/usr/include/c++/13/backward/auto_ptr.h" 3 19959: auto_ptr& 19959: operator=(auto_ptr& __a) throw() 19959: { 19959: reset(__a.release()); 19959: return *this; 19959: } 19959: # 158 "/usr/include/c++/13/backward/auto_ptr.h" 3 19959: template 19959: auto_ptr& 19959: operator=(auto_ptr<_Tp1>& __a) throw() 19959: { 19959: reset(__a.release()); 19959: return *this; 19959: } 19959: # 176 "/usr/include/c++/13/backward/auto_ptr.h" 3 19959: ~auto_ptr() { delete _M_ptr; } 19959: # 186 "/usr/include/c++/13/backward/auto_ptr.h" 3 19959: element_type& 19959: operator*() const throw() 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) __builtin_unreachable(); } while (false); 19959: return *_M_ptr; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: element_type* 19959: operator->() const throw() 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) __builtin_unreachable(); } while (false); 19959: return _M_ptr; 19959: } 19959: # 216 "/usr/include/c++/13/backward/auto_ptr.h" 3 19959: element_type* 19959: get() const throw() { return _M_ptr; } 19959: # 230 "/usr/include/c++/13/backward/auto_ptr.h" 3 19959: element_type* 19959: release() throw() 19959: { 19959: element_type* __tmp = _M_ptr; 19959: _M_ptr = 0; 19959: return __tmp; 19959: } 19959: # 245 "/usr/include/c++/13/backward/auto_ptr.h" 3 19959: void 19959: reset(element_type* __p = 0) throw() 19959: { 19959: if (__p != _M_ptr) 19959: { 19959: delete _M_ptr; 19959: _M_ptr = __p; 19959: } 19959: } 19959: # 270 "/usr/include/c++/13/backward/auto_ptr.h" 3 19959: auto_ptr(auto_ptr_ref __ref) throw() 19959: : _M_ptr(__ref._M_ptr) { } 19959: 19959: auto_ptr& 19959: operator=(auto_ptr_ref __ref) throw() 19959: { 19959: if (__ref._M_ptr != this->get()) 19959: { 19959: delete _M_ptr; 19959: _M_ptr = __ref._M_ptr; 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: operator auto_ptr_ref<_Tp1>() throw() 19959: { return auto_ptr_ref<_Tp1>(this->release()); } 19959: 19959: template 19959: operator auto_ptr<_Tp1>() throw() 19959: { return auto_ptr<_Tp1>(this->release()); } 19959: } __attribute__ ((__deprecated__ ("use '" "std::unique_ptr" "' instead"))); 19959: 19959: 19959: 19959: template<> 19959: class auto_ptr 19959: { 19959: public: 19959: typedef void element_type; 19959: } __attribute__ ((__deprecated__)); 19959: 19959: 19959: 19959: template<_Lock_policy _Lp> 19959: template 19959: inline 19959: __shared_count<_Lp>::__shared_count(std::auto_ptr<_Tp>&& __r) 19959: : _M_pi(new _Sp_counted_ptr<_Tp*, _Lp>(__r.get())) 19959: { __r.release(); } 19959: 19959: template 19959: template 19959: inline 19959: __shared_ptr<_Tp, _Lp>::__shared_ptr(std::auto_ptr<_Tp1>&& __r) 19959: : _M_ptr(__r.get()), _M_refcount() 19959: { 19959: 19959: static_assert( sizeof(_Tp1) > 0, "incomplete type" ); 19959: _Tp1* __tmp = __r.get(); 19959: _M_refcount = __shared_count<_Lp>(std::move(__r)); 19959: _M_enable_shared_from_this_with(__tmp); 19959: } 19959: 19959: template 19959: template 19959: inline 19959: shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Tp1>&& __r) 19959: : __shared_ptr<_Tp>(std::move(__r)) { } 19959: 19959: 19959: template 19959: template 19959: inline 19959: unique_ptr<_Tp, _Dp>::unique_ptr(auto_ptr<_Up>&& __u) noexcept 19959: : _M_t(__u.release(), deleter_type()) { } 19959: 19959: 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: } 19959: # 87 "/usr/include/c++/13/memory" 2 3 19959: # 101 "/usr/include/c++/13/memory" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 119 "/usr/include/c++/13/memory" 3 19959: enum class pointer_safety { relaxed, preferred, strict }; 19959: 19959: 19959: inline void 19959: declare_reachable(void*) { } 19959: 19959: 19959: template 19959: inline _Tp* 19959: undeclare_reachable(_Tp* __p) { return __p; } 19959: 19959: 19959: inline void 19959: declare_no_pointers(char*, size_t) { } 19959: 19959: 19959: inline void 19959: undeclare_no_pointers(char*, size_t) { } 19959: 19959: 19959: inline pointer_safety 19959: get_pointer_safety() noexcept { return pointer_safety::relaxed; } 19959: 19959: 19959: 19959: } 19959: # 154 "/usr/include/c++/13/memory" 3 19959: # 1 "/usr/include/c++/13/pstl/glue_memory_defs.h" 1 3 19959: # 13 "/usr/include/c++/13/pstl/glue_memory_defs.h" 3 19959: # 1 "/usr/include/c++/13/pstl/execution_defs.h" 1 3 19959: # 15 "/usr/include/c++/13/pstl/execution_defs.h" 3 19959: namespace __pstl 19959: { 19959: namespace execution 19959: { 19959: inline namespace v1 19959: { 19959: 19959: 19959: class sequenced_policy 19959: { 19959: public: 19959: 19959: static constexpr std::false_type 19959: __allow_unsequenced() 19959: { 19959: return std::false_type{}; 19959: } 19959: static constexpr std::false_type 19959: __allow_vector() 19959: { 19959: return std::false_type{}; 19959: } 19959: static constexpr std::false_type 19959: __allow_parallel() 19959: { 19959: return std::false_type{}; 19959: } 19959: }; 19959: 19959: 19959: class parallel_policy 19959: { 19959: public: 19959: 19959: static constexpr std::false_type 19959: __allow_unsequenced() 19959: { 19959: return std::false_type{}; 19959: } 19959: static constexpr std::false_type 19959: __allow_vector() 19959: { 19959: return std::false_type{}; 19959: } 19959: static constexpr std::true_type 19959: __allow_parallel() 19959: { 19959: return std::true_type{}; 19959: } 19959: }; 19959: 19959: 19959: class parallel_unsequenced_policy 19959: { 19959: public: 19959: 19959: static constexpr std::true_type 19959: __allow_unsequenced() 19959: { 19959: return std::true_type{}; 19959: } 19959: static constexpr std::true_type 19959: __allow_vector() 19959: { 19959: return std::true_type{}; 19959: } 19959: static constexpr std::true_type 19959: __allow_parallel() 19959: { 19959: return std::true_type{}; 19959: } 19959: }; 19959: 19959: class unsequenced_policy 19959: { 19959: public: 19959: 19959: static constexpr std::true_type 19959: __allow_unsequenced() 19959: { 19959: return std::true_type{}; 19959: } 19959: static constexpr std::true_type 19959: __allow_vector() 19959: { 19959: return std::true_type{}; 19959: } 19959: static constexpr std::false_type 19959: __allow_parallel() 19959: { 19959: return std::false_type{}; 19959: } 19959: }; 19959: 19959: 19959: inline constexpr sequenced_policy seq{}; 19959: inline constexpr parallel_policy par{}; 19959: inline constexpr parallel_unsequenced_policy par_unseq{}; 19959: inline constexpr unsequenced_policy unseq{}; 19959: 19959: 19959: template 19959: struct is_execution_policy : std::false_type 19959: { 19959: }; 19959: 19959: template <> 19959: struct is_execution_policy<__pstl::execution::sequenced_policy> : std::true_type 19959: { 19959: }; 19959: template <> 19959: struct is_execution_policy<__pstl::execution::parallel_policy> : std::true_type 19959: { 19959: }; 19959: template <> 19959: struct is_execution_policy<__pstl::execution::parallel_unsequenced_policy> : std::true_type 19959: { 19959: }; 19959: template <> 19959: struct is_execution_policy<__pstl::execution::unsequenced_policy> : std::true_type 19959: { 19959: }; 19959: 19959: 19959: template 19959: constexpr bool is_execution_policy_v = __pstl::execution::is_execution_policy<_Tp>::value; 19959: 19959: 19959: } 19959: } 19959: 19959: namespace __internal 19959: { 19959: template 19959: 19959: using __enable_if_execution_policy = 19959: typename std::enable_if<__pstl::execution::is_execution_policy>::value, 19959: _Tp>::type; 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: } 19959: # 14 "/usr/include/c++/13/pstl/glue_memory_defs.h" 2 3 19959: 19959: namespace std 19959: { 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: uninitialized_copy(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: uninitialized_copy_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: uninitialized_move(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: uninitialized_move_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: uninitialized_fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: uninitialized_fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, const _Tp& __value); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: destroy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: destroy_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: uninitialized_default_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: uninitialized_default_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: uninitialized_value_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: uninitialized_value_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 19959: 19959: } 19959: # 155 "/usr/include/c++/13/memory" 2 3 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: # 1 "/usr/include/c++/13/string" 1 3 19959: # 36 "/usr/include/c++/13/string" 3 19959: 19959: # 37 "/usr/include/c++/13/string" 3 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/char_traits.h" 1 3 19959: # 37 "/usr/include/c++/13/bits/char_traits.h" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/char_traits.h" 3 19959: # 46 "/usr/include/c++/13/bits/char_traits.h" 3 19959: # 1 "/usr/include/c++/13/cwchar" 1 3 19959: # 39 "/usr/include/c++/13/cwchar" 3 19959: 19959: # 40 "/usr/include/c++/13/cwchar" 3 19959: # 47 "/usr/include/c++/13/bits/char_traits.h" 2 3 19959: # 64 "/usr/include/c++/13/bits/char_traits.h" 3 19959: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: # 68 "/usr/include/c++/13/bits/char_traits.h" 3 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wstringop-overflow" 19959: #pragma GCC diagnostic ignored "-Wstringop-overread" 19959: #pragma GCC diagnostic ignored "-Warray-bounds" 19959: # 83 "/usr/include/c++/13/bits/char_traits.h" 3 19959: template 19959: struct _Char_types 19959: { 19959: typedef unsigned long int_type; 19959: 19959: typedef std::streampos pos_type; 19959: typedef std::streamoff off_type; 19959: typedef std::mbstate_t state_type; 19959: 19959: }; 19959: # 110 "/usr/include/c++/13/bits/char_traits.h" 3 19959: template 19959: struct char_traits 19959: { 19959: typedef _CharT char_type; 19959: typedef typename _Char_types<_CharT>::int_type int_type; 19959: 19959: typedef typename _Char_types<_CharT>::pos_type pos_type; 19959: typedef typename _Char_types<_CharT>::off_type off_type; 19959: typedef typename _Char_types<_CharT>::state_type state_type; 19959: 19959: 19959: 19959: 19959: 19959: static constexpr void 19959: assign(char_type& __c1, const char_type& __c2) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: __c1 = __c2; 19959: } 19959: 19959: static constexpr bool 19959: eq(const char_type& __c1, const char_type& __c2) 19959: { return __c1 == __c2; } 19959: 19959: static constexpr bool 19959: lt(const char_type& __c1, const char_type& __c2) 19959: { return __c1 < __c2; } 19959: 19959: static constexpr int 19959: compare(const char_type* __s1, const char_type* __s2, std::size_t __n); 19959: 19959: static constexpr std::size_t 19959: length(const char_type* __s); 19959: 19959: static constexpr const char_type* 19959: find(const char_type* __s, std::size_t __n, const char_type& __a); 19959: 19959: static char_type* 19959: move(char_type* __s1, const char_type* __s2, std::size_t __n); 19959: 19959: static char_type* 19959: copy(char_type* __s1, const char_type* __s2, std::size_t __n); 19959: 19959: static char_type* 19959: assign(char_type* __s, std::size_t __n, char_type __a); 19959: 19959: static constexpr char_type 19959: to_char_type(const int_type& __c) 19959: { return static_cast(__c); } 19959: 19959: static constexpr int_type 19959: to_int_type(const char_type& __c) 19959: { return static_cast(__c); } 19959: 19959: static constexpr bool 19959: eq_int_type(const int_type& __c1, const int_type& __c2) 19959: { return __c1 == __c2; } 19959: 19959: 19959: static constexpr int_type 19959: eof() 19959: { return static_cast(-1); } 19959: 19959: static constexpr int_type 19959: not_eof(const int_type& __c) 19959: { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } 19959: 19959: }; 19959: 19959: template 19959: constexpr int 19959: char_traits<_CharT>:: 19959: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) 19959: { 19959: for (std::size_t __i = 0; __i < __n; ++__i) 19959: if (lt(__s1[__i], __s2[__i])) 19959: return -1; 19959: else if (lt(__s2[__i], __s1[__i])) 19959: return 1; 19959: return 0; 19959: } 19959: 19959: template 19959: constexpr std::size_t 19959: char_traits<_CharT>:: 19959: length(const char_type* __p) 19959: { 19959: std::size_t __i = 0; 19959: while (!eq(__p[__i], char_type())) 19959: ++__i; 19959: return __i; 19959: } 19959: 19959: template 19959: constexpr const typename char_traits<_CharT>::char_type* 19959: char_traits<_CharT>:: 19959: find(const char_type* __s, std::size_t __n, const char_type& __a) 19959: { 19959: for (std::size_t __i = 0; __i < __n; ++__i) 19959: if (eq(__s[__i], __a)) 19959: return __s + __i; 19959: return 0; 19959: } 19959: 19959: template 19959: 19959: typename char_traits<_CharT>::char_type* 19959: char_traits<_CharT>:: 19959: move(char_type* __s1, const char_type* __s2, std::size_t __n) 19959: { 19959: if (__n == 0) 19959: return __s1; 19959: # 246 "/usr/include/c++/13/bits/char_traits.h" 3 19959: __builtin_memmove(__s1, __s2, __n * sizeof(char_type)); 19959: return __s1; 19959: } 19959: 19959: template 19959: 19959: typename char_traits<_CharT>::char_type* 19959: char_traits<_CharT>:: 19959: copy(char_type* __s1, const char_type* __s2, std::size_t __n) 19959: { 19959: if (__n == 0) 19959: return __s1; 19959: # 266 "/usr/include/c++/13/bits/char_traits.h" 3 19959: __builtin_memcpy(__s1, __s2, __n * sizeof(char_type)); 19959: return __s1; 19959: } 19959: 19959: template 19959: 19959: typename char_traits<_CharT>::char_type* 19959: char_traits<_CharT>:: 19959: assign(char_type* __s, std::size_t __n, char_type __a) 19959: { 19959: # 285 "/usr/include/c++/13/bits/char_traits.h" 3 19959: if constexpr (sizeof(_CharT) == 1 && __is_trivial(_CharT)) 19959: { 19959: if (__n) 19959: { 19959: unsigned char __c; 19959: __builtin_memcpy(&__c, __builtin_addressof(__a), 1); 19959: __builtin_memset(__s, __c, __n); 19959: } 19959: } 19959: else 19959: { 19959: for (std::size_t __i = 0; __i < __n; ++__i) 19959: __s[__i] = __a; 19959: } 19959: return __s; 19959: } 19959: 19959: 19959: } 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 330 "/usr/include/c++/13/bits/char_traits.h" 3 19959: template 19959: struct char_traits : public __gnu_cxx::char_traits<_CharT> 19959: { }; 19959: 19959: 19959: 19959: template<> 19959: struct char_traits 19959: { 19959: typedef char char_type; 19959: typedef int int_type; 19959: 19959: typedef streampos pos_type; 19959: typedef streamoff off_type; 19959: typedef mbstate_t state_type; 19959: 19959: 19959: 19959: 19959: 19959: static constexpr void 19959: assign(char_type& __c1, const char_type& __c2) noexcept 19959: { 19959: 19959: 19959: 19959: 19959: 19959: __c1 = __c2; 19959: } 19959: 19959: static constexpr bool 19959: eq(const char_type& __c1, const char_type& __c2) noexcept 19959: { return __c1 == __c2; } 19959: 19959: static constexpr bool 19959: lt(const char_type& __c1, const char_type& __c2) noexcept 19959: { 19959: 19959: return (static_cast(__c1) 19959: < static_cast(__c2)); 19959: } 19959: 19959: static constexpr int 19959: compare(const char_type* __s1, const char_type* __s2, size_t __n) 19959: { 19959: if (__n == 0) 19959: return 0; 19959: 19959: if (std::__is_constant_evaluated()) 19959: { 19959: for (size_t __i = 0; __i < __n; ++__i) 19959: if (lt(__s1[__i], __s2[__i])) 19959: return -1; 19959: else if (lt(__s2[__i], __s1[__i])) 19959: return 1; 19959: return 0; 19959: } 19959: 19959: return __builtin_memcmp(__s1, __s2, __n); 19959: } 19959: 19959: static constexpr size_t 19959: length(const char_type* __s) 19959: { 19959: 19959: if (std::__is_constant_evaluated()) 19959: return __gnu_cxx::char_traits::length(__s); 19959: 19959: return __builtin_strlen(__s); 19959: } 19959: 19959: static constexpr const char_type* 19959: find(const char_type* __s, size_t __n, const char_type& __a) 19959: { 19959: if (__n == 0) 19959: return 0; 19959: 19959: if (std::__is_constant_evaluated()) 19959: return __gnu_cxx::char_traits::find(__s, __n, __a); 19959: 19959: return static_cast(__builtin_memchr(__s, __a, __n)); 19959: } 19959: 19959: static char_type* 19959: move(char_type* __s1, const char_type* __s2, size_t __n) 19959: { 19959: if (__n == 0) 19959: return __s1; 19959: 19959: 19959: 19959: 19959: return static_cast(__builtin_memmove(__s1, __s2, __n)); 19959: } 19959: 19959: static char_type* 19959: copy(char_type* __s1, const char_type* __s2, size_t __n) 19959: { 19959: if (__n == 0) 19959: return __s1; 19959: 19959: 19959: 19959: 19959: return static_cast(__builtin_memcpy(__s1, __s2, __n)); 19959: } 19959: 19959: static char_type* 19959: assign(char_type* __s, size_t __n, char_type __a) 19959: { 19959: if (__n == 0) 19959: return __s; 19959: 19959: 19959: 19959: 19959: return static_cast(__builtin_memset(__s, __a, __n)); 19959: } 19959: 19959: static constexpr char_type 19959: to_char_type(const int_type& __c) noexcept 19959: { return static_cast(__c); } 19959: 19959: 19959: 19959: static constexpr int_type 19959: to_int_type(const char_type& __c) noexcept 19959: { return static_cast(static_cast(__c)); } 19959: 19959: static constexpr bool 19959: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 19959: { return __c1 == __c2; } 19959: 19959: 19959: static constexpr int_type 19959: eof() noexcept 19959: { return static_cast(-1); } 19959: 19959: static constexpr int_type 19959: not_eof(const int_type& __c) noexcept 19959: { return (__c == eof()) ? 0 : __c; } 19959: 19959: }; 19959: 19959: 19959: 19959: 19959: template<> 19959: struct char_traits 19959: { 19959: typedef wchar_t char_type; 19959: typedef wint_t int_type; 19959: 19959: typedef streamoff off_type; 19959: typedef wstreampos pos_type; 19959: typedef mbstate_t state_type; 19959: 19959: 19959: 19959: 19959: 19959: static constexpr void 19959: assign(char_type& __c1, const char_type& __c2) noexcept 19959: { 19959: 19959: 19959: 19959: 19959: 19959: __c1 = __c2; 19959: } 19959: 19959: static constexpr bool 19959: eq(const char_type& __c1, const char_type& __c2) noexcept 19959: { return __c1 == __c2; } 19959: 19959: static constexpr bool 19959: lt(const char_type& __c1, const char_type& __c2) noexcept 19959: { return __c1 < __c2; } 19959: 19959: static constexpr int 19959: compare(const char_type* __s1, const char_type* __s2, size_t __n) 19959: { 19959: if (__n == 0) 19959: return 0; 19959: 19959: if (std::__is_constant_evaluated()) 19959: return __gnu_cxx::char_traits::compare(__s1, __s2, __n); 19959: 19959: return wmemcmp(__s1, __s2, __n); 19959: } 19959: 19959: static constexpr size_t 19959: length(const char_type* __s) 19959: { 19959: 19959: if (std::__is_constant_evaluated()) 19959: return __gnu_cxx::char_traits::length(__s); 19959: 19959: return wcslen(__s); 19959: } 19959: 19959: static constexpr const char_type* 19959: find(const char_type* __s, size_t __n, const char_type& __a) 19959: { 19959: if (__n == 0) 19959: return 0; 19959: 19959: if (std::__is_constant_evaluated()) 19959: return __gnu_cxx::char_traits::find(__s, __n, __a); 19959: 19959: return wmemchr(__s, __a, __n); 19959: } 19959: 19959: static char_type* 19959: move(char_type* __s1, const char_type* __s2, size_t __n) 19959: { 19959: if (__n == 0) 19959: return __s1; 19959: 19959: 19959: 19959: 19959: return wmemmove(__s1, __s2, __n); 19959: } 19959: 19959: static char_type* 19959: copy(char_type* __s1, const char_type* __s2, size_t __n) 19959: { 19959: if (__n == 0) 19959: return __s1; 19959: 19959: 19959: 19959: 19959: return wmemcpy(__s1, __s2, __n); 19959: } 19959: 19959: static char_type* 19959: assign(char_type* __s, size_t __n, char_type __a) 19959: { 19959: if (__n == 0) 19959: return __s; 19959: 19959: 19959: 19959: 19959: return wmemset(__s, __a, __n); 19959: } 19959: 19959: static constexpr char_type 19959: to_char_type(const int_type& __c) noexcept 19959: { return char_type(__c); } 19959: 19959: static constexpr int_type 19959: to_int_type(const char_type& __c) noexcept 19959: { return int_type(__c); } 19959: 19959: static constexpr bool 19959: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 19959: { return __c1 == __c2; } 19959: 19959: 19959: static constexpr int_type 19959: eof() noexcept 19959: { return static_cast((0xffffffffu)); } 19959: 19959: static constexpr int_type 19959: not_eof(const int_type& __c) noexcept 19959: { return eq_int_type(__c, eof()) ? 0 : __c; } 19959: 19959: }; 19959: # 740 "/usr/include/c++/13/bits/char_traits.h" 3 19959: 19959: } 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template<> 19959: struct char_traits 19959: { 19959: typedef char16_t char_type; 19959: 19959: typedef short unsigned int int_type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef streamoff off_type; 19959: typedef u16streampos pos_type; 19959: typedef mbstate_t state_type; 19959: 19959: 19959: 19959: 19959: 19959: static constexpr void 19959: assign(char_type& __c1, const char_type& __c2) noexcept 19959: { 19959: 19959: 19959: 19959: 19959: 19959: __c1 = __c2; 19959: } 19959: 19959: static constexpr bool 19959: eq(const char_type& __c1, const char_type& __c2) noexcept 19959: { return __c1 == __c2; } 19959: 19959: static constexpr bool 19959: lt(const char_type& __c1, const char_type& __c2) noexcept 19959: { return __c1 < __c2; } 19959: 19959: static constexpr int 19959: compare(const char_type* __s1, const char_type* __s2, size_t __n) 19959: { 19959: for (size_t __i = 0; __i < __n; ++__i) 19959: if (lt(__s1[__i], __s2[__i])) 19959: return -1; 19959: else if (lt(__s2[__i], __s1[__i])) 19959: return 1; 19959: return 0; 19959: } 19959: 19959: static constexpr size_t 19959: length(const char_type* __s) 19959: { 19959: size_t __i = 0; 19959: while (!eq(__s[__i], char_type())) 19959: ++__i; 19959: return __i; 19959: } 19959: 19959: static constexpr const char_type* 19959: find(const char_type* __s, size_t __n, const char_type& __a) 19959: { 19959: for (size_t __i = 0; __i < __n; ++__i) 19959: if (eq(__s[__i], __a)) 19959: return __s + __i; 19959: return 0; 19959: } 19959: 19959: static char_type* 19959: move(char_type* __s1, const char_type* __s2, size_t __n) 19959: { 19959: if (__n == 0) 19959: return __s1; 19959: 19959: 19959: 19959: 19959: return (static_cast 19959: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 19959: } 19959: 19959: static char_type* 19959: copy(char_type* __s1, const char_type* __s2, size_t __n) 19959: { 19959: if (__n == 0) 19959: return __s1; 19959: 19959: 19959: 19959: 19959: return (static_cast 19959: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 19959: } 19959: 19959: static char_type* 19959: assign(char_type* __s, size_t __n, char_type __a) 19959: { 19959: for (size_t __i = 0; __i < __n; ++__i) 19959: assign(__s[__i], __a); 19959: return __s; 19959: } 19959: 19959: static constexpr char_type 19959: to_char_type(const int_type& __c) noexcept 19959: { return char_type(__c); } 19959: 19959: static constexpr bool 19959: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 19959: { return __c1 == __c2; } 19959: 19959: 19959: static constexpr int_type 19959: to_int_type(const char_type& __c) noexcept 19959: { return __c == eof() ? int_type(0xfffd) : int_type(__c); } 19959: 19959: static constexpr int_type 19959: eof() noexcept 19959: { return static_cast(-1); } 19959: 19959: static constexpr int_type 19959: not_eof(const int_type& __c) noexcept 19959: { return eq_int_type(__c, eof()) ? 0 : __c; } 19959: 19959: 19959: 19959: 19959: 19959: }; 19959: 19959: template<> 19959: struct char_traits 19959: { 19959: typedef char32_t char_type; 19959: 19959: typedef unsigned int int_type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef streamoff off_type; 19959: typedef u32streampos pos_type; 19959: typedef mbstate_t state_type; 19959: 19959: 19959: 19959: 19959: 19959: static constexpr void 19959: assign(char_type& __c1, const char_type& __c2) noexcept 19959: { 19959: 19959: 19959: 19959: 19959: 19959: __c1 = __c2; 19959: } 19959: 19959: static constexpr bool 19959: eq(const char_type& __c1, const char_type& __c2) noexcept 19959: { return __c1 == __c2; } 19959: 19959: static constexpr bool 19959: lt(const char_type& __c1, const char_type& __c2) noexcept 19959: { return __c1 < __c2; } 19959: 19959: static constexpr int 19959: compare(const char_type* __s1, const char_type* __s2, size_t __n) 19959: { 19959: for (size_t __i = 0; __i < __n; ++__i) 19959: if (lt(__s1[__i], __s2[__i])) 19959: return -1; 19959: else if (lt(__s2[__i], __s1[__i])) 19959: return 1; 19959: return 0; 19959: } 19959: 19959: static constexpr size_t 19959: length(const char_type* __s) 19959: { 19959: size_t __i = 0; 19959: while (!eq(__s[__i], char_type())) 19959: ++__i; 19959: return __i; 19959: } 19959: 19959: static constexpr const char_type* 19959: find(const char_type* __s, size_t __n, const char_type& __a) 19959: { 19959: for (size_t __i = 0; __i < __n; ++__i) 19959: if (eq(__s[__i], __a)) 19959: return __s + __i; 19959: return 0; 19959: } 19959: 19959: static char_type* 19959: move(char_type* __s1, const char_type* __s2, size_t __n) 19959: { 19959: if (__n == 0) 19959: return __s1; 19959: 19959: 19959: 19959: 19959: return (static_cast 19959: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 19959: } 19959: 19959: static char_type* 19959: copy(char_type* __s1, const char_type* __s2, size_t __n) 19959: { 19959: if (__n == 0) 19959: return __s1; 19959: 19959: 19959: 19959: 19959: return (static_cast 19959: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 19959: } 19959: 19959: static char_type* 19959: assign(char_type* __s, size_t __n, char_type __a) 19959: { 19959: for (size_t __i = 0; __i < __n; ++__i) 19959: assign(__s[__i], __a); 19959: return __s; 19959: } 19959: 19959: static constexpr char_type 19959: to_char_type(const int_type& __c) noexcept 19959: { return char_type(__c); } 19959: 19959: static constexpr int_type 19959: to_int_type(const char_type& __c) noexcept 19959: { return int_type(__c); } 19959: 19959: static constexpr bool 19959: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 19959: { return __c1 == __c2; } 19959: 19959: 19959: static constexpr int_type 19959: eof() noexcept 19959: { return static_cast(-1); } 19959: 19959: static constexpr int_type 19959: not_eof(const int_type& __c) noexcept 19959: { return eq_int_type(__c, eof()) ? 0 : __c; } 19959: 19959: }; 19959: # 1022 "/usr/include/c++/13/bits/char_traits.h" 3 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: } 19959: # 43 "/usr/include/c++/13/string" 2 3 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/localefwd.h" 1 3 19959: # 37 "/usr/include/c++/13/bits/localefwd.h" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/localefwd.h" 3 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++locale.h" 1 3 19959: # 39 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++locale.h" 3 19959: 19959: # 40 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++locale.h" 3 19959: 19959: # 1 "/usr/include/c++/13/clocale" 1 3 19959: # 39 "/usr/include/c++/13/clocale" 3 19959: 19959: # 40 "/usr/include/c++/13/clocale" 3 19959: 19959: 19959: # 1 "/usr/include/locale.h" 1 3 4 19959: # 28 "/usr/include/locale.h" 3 4 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 29 "/usr/include/locale.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/locale.h" 1 3 4 19959: # 30 "/usr/include/locale.h" 2 3 4 19959: 19959: extern "C" { 19959: # 51 "/usr/include/locale.h" 3 4 19959: struct lconv 19959: { 19959: 19959: 19959: char *decimal_point; 19959: char *thousands_sep; 19959: 19959: 19959: 19959: 19959: 19959: char *grouping; 19959: 19959: 19959: 19959: 19959: 19959: char *int_curr_symbol; 19959: char *currency_symbol; 19959: char *mon_decimal_point; 19959: char *mon_thousands_sep; 19959: char *mon_grouping; 19959: char *positive_sign; 19959: char *negative_sign; 19959: char int_frac_digits; 19959: char frac_digits; 19959: 19959: char p_cs_precedes; 19959: 19959: char p_sep_by_space; 19959: 19959: char n_cs_precedes; 19959: 19959: char n_sep_by_space; 19959: 19959: 19959: 19959: 19959: 19959: 19959: char p_sign_posn; 19959: char n_sign_posn; 19959: 19959: 19959: char int_p_cs_precedes; 19959: 19959: char int_p_sep_by_space; 19959: 19959: char int_n_cs_precedes; 19959: 19959: char int_n_sep_by_space; 19959: 19959: 19959: 19959: 19959: 19959: 19959: char int_p_sign_posn; 19959: char int_n_sign_posn; 19959: # 118 "/usr/include/locale.h" 3 4 19959: }; 19959: 19959: 19959: 19959: extern char *setlocale (int __category, const char *__locale) noexcept (true); 19959: 19959: 19959: extern struct lconv *localeconv (void) noexcept (true); 19959: # 141 "/usr/include/locale.h" 3 4 19959: extern locale_t newlocale (int __category_mask, const char *__locale, 19959: locale_t __base) noexcept (true); 19959: # 176 "/usr/include/locale.h" 3 4 19959: extern locale_t duplocale (locale_t __dataset) noexcept (true); 19959: 19959: 19959: 19959: extern void freelocale (locale_t __dataset) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern locale_t uselocale (locale_t __dataset) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 43 "/usr/include/c++/13/clocale" 2 3 19959: # 51 "/usr/include/c++/13/clocale" 3 19959: namespace std 19959: { 19959: using ::lconv; 19959: using ::setlocale; 19959: using ::localeconv; 19959: } 19959: # 42 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++locale.h" 2 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: extern "C" __typeof(uselocale) __uselocale; 19959: 19959: 19959: } 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: typedef __locale_t __c_locale; 19959: # 73 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++locale.h" 3 19959: inline int 19959: __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), 19959: char* __out, 19959: const int __size __attribute__ ((__unused__)), 19959: const char* __fmt, ...) 19959: { 19959: 19959: __c_locale __old = __gnu_cxx::__uselocale(__cloc); 19959: # 93 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++locale.h" 3 19959: __builtin_va_list __args; 19959: __builtin_va_start(__args, __fmt); 19959: 19959: 19959: const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); 19959: 19959: 19959: 19959: 19959: __builtin_va_end(__args); 19959: 19959: 19959: __gnu_cxx::__uselocale(__old); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: return __ret; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 41 "/usr/include/c++/13/bits/localefwd.h" 2 3 19959: 19959: # 1 "/usr/include/c++/13/cctype" 1 3 19959: # 39 "/usr/include/c++/13/cctype" 3 19959: 19959: # 40 "/usr/include/c++/13/cctype" 3 19959: 19959: 19959: # 1 "/usr/include/ctype.h" 1 3 4 19959: # 28 "/usr/include/ctype.h" 3 4 19959: extern "C" { 19959: # 46 "/usr/include/ctype.h" 3 4 19959: enum 19959: { 19959: _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), 19959: _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), 19959: _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), 19959: _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), 19959: _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), 19959: _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), 19959: _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), 19959: _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), 19959: _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), 19959: _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), 19959: _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), 19959: _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) 19959: }; 19959: # 79 "/usr/include/ctype.h" 3 4 19959: extern const unsigned short int **__ctype_b_loc (void) 19959: noexcept (true) __attribute__ ((__const__)); 19959: extern const __int32_t **__ctype_tolower_loc (void) 19959: noexcept (true) __attribute__ ((__const__)); 19959: extern const __int32_t **__ctype_toupper_loc (void) 19959: noexcept (true) __attribute__ ((__const__)); 19959: # 108 "/usr/include/ctype.h" 3 4 19959: extern int isalnum (int) noexcept (true); 19959: extern int isalpha (int) noexcept (true); 19959: extern int iscntrl (int) noexcept (true); 19959: extern int isdigit (int) noexcept (true); 19959: extern int islower (int) noexcept (true); 19959: extern int isgraph (int) noexcept (true); 19959: extern int isprint (int) noexcept (true); 19959: extern int ispunct (int) noexcept (true); 19959: extern int isspace (int) noexcept (true); 19959: extern int isupper (int) noexcept (true); 19959: extern int isxdigit (int) noexcept (true); 19959: 19959: 19959: 19959: extern int tolower (int __c) noexcept (true); 19959: 19959: 19959: extern int toupper (int __c) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int isblank (int) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int isctype (int __c, int __mask) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int isascii (int __c) noexcept (true); 19959: 19959: 19959: 19959: extern int toascii (int __c) noexcept (true); 19959: 19959: 19959: 19959: extern int _toupper (int) noexcept (true); 19959: extern int _tolower (int) noexcept (true); 19959: # 251 "/usr/include/ctype.h" 3 4 19959: extern int isalnum_l (int, locale_t) noexcept (true); 19959: extern int isalpha_l (int, locale_t) noexcept (true); 19959: extern int iscntrl_l (int, locale_t) noexcept (true); 19959: extern int isdigit_l (int, locale_t) noexcept (true); 19959: extern int islower_l (int, locale_t) noexcept (true); 19959: extern int isgraph_l (int, locale_t) noexcept (true); 19959: extern int isprint_l (int, locale_t) noexcept (true); 19959: extern int ispunct_l (int, locale_t) noexcept (true); 19959: extern int isspace_l (int, locale_t) noexcept (true); 19959: extern int isupper_l (int, locale_t) noexcept (true); 19959: extern int isxdigit_l (int, locale_t) noexcept (true); 19959: 19959: extern int isblank_l (int, locale_t) noexcept (true); 19959: 19959: 19959: 19959: extern int __tolower_l (int __c, locale_t __l) noexcept (true); 19959: extern int tolower_l (int __c, locale_t __l) noexcept (true); 19959: 19959: 19959: extern int __toupper_l (int __c, locale_t __l) noexcept (true); 19959: extern int toupper_l (int __c, locale_t __l) noexcept (true); 19959: # 327 "/usr/include/ctype.h" 3 4 19959: } 19959: # 43 "/usr/include/c++/13/cctype" 2 3 19959: # 62 "/usr/include/c++/13/cctype" 3 19959: namespace std 19959: { 19959: using ::isalnum; 19959: using ::isalpha; 19959: using ::iscntrl; 19959: using ::isdigit; 19959: using ::isgraph; 19959: using ::islower; 19959: using ::isprint; 19959: using ::ispunct; 19959: using ::isspace; 19959: using ::isupper; 19959: using ::isxdigit; 19959: using ::tolower; 19959: using ::toupper; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace std 19959: { 19959: using ::isblank; 19959: } 19959: # 43 "/usr/include/c++/13/bits/localefwd.h" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 55 "/usr/include/c++/13/bits/localefwd.h" 3 19959: class locale; 19959: 19959: template 19959: bool 19959: has_facet(const locale&) throw(); 19959: 19959: template 19959: const _Facet& 19959: use_facet(const locale&); 19959: 19959: 19959: template 19959: bool 19959: isspace(_CharT, const locale&); 19959: 19959: template 19959: bool 19959: isprint(_CharT, const locale&); 19959: 19959: template 19959: bool 19959: iscntrl(_CharT, const locale&); 19959: 19959: template 19959: bool 19959: isupper(_CharT, const locale&); 19959: 19959: template 19959: bool 19959: islower(_CharT, const locale&); 19959: 19959: template 19959: bool 19959: isalpha(_CharT, const locale&); 19959: 19959: template 19959: bool 19959: isdigit(_CharT, const locale&); 19959: 19959: template 19959: bool 19959: ispunct(_CharT, const locale&); 19959: 19959: template 19959: bool 19959: isxdigit(_CharT, const locale&); 19959: 19959: template 19959: bool 19959: isalnum(_CharT, const locale&); 19959: 19959: template 19959: bool 19959: isgraph(_CharT, const locale&); 19959: 19959: 19959: template 19959: bool 19959: isblank(_CharT, const locale&); 19959: 19959: 19959: template 19959: _CharT 19959: toupper(_CharT, const locale&); 19959: 19959: template 19959: _CharT 19959: tolower(_CharT, const locale&); 19959: 19959: 19959: struct ctype_base; 19959: template 19959: class ctype; 19959: template<> class ctype; 19959: 19959: template<> class ctype; 19959: 19959: template 19959: class ctype_byname; 19959: 19959: 19959: class codecvt_base; 19959: template 19959: class codecvt; 19959: template<> class codecvt; 19959: 19959: template<> class codecvt; 19959: 19959: 19959: template<> class codecvt; 19959: template<> class codecvt; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: class codecvt_byname; 19959: 19959: 19959: 19959: template > 19959: class num_get; 19959: template > 19959: class num_put; 19959: 19959: namespace __cxx11 { 19959: template class numpunct; 19959: template class numpunct_byname; 19959: } 19959: 19959: namespace __cxx11 { 19959: 19959: template 19959: class collate; 19959: template 19959: class collate_byname; 19959: } 19959: 19959: 19959: class time_base; 19959: namespace __cxx11 { 19959: template > 19959: class time_get; 19959: template > 19959: class time_get_byname; 19959: } 19959: template > 19959: class time_put; 19959: template > 19959: class time_put_byname; 19959: 19959: 19959: class money_base; 19959: namespace __cxx11 { 19959: template > 19959: class money_get; 19959: template > 19959: class money_put; 19959: } 19959: namespace __cxx11 { 19959: template 19959: class moneypunct; 19959: template 19959: class moneypunct_byname; 19959: } 19959: 19959: 19959: struct messages_base; 19959: namespace __cxx11 { 19959: template 19959: class messages; 19959: template 19959: class messages_byname; 19959: } 19959: 19959: 19959: } 19959: # 46 "/usr/include/c++/13/string" 2 3 19959: # 1 "/usr/include/c++/13/bits/ostream_insert.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/ostream_insert.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/ostream_insert.h" 3 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/cxxabi_forced.h" 1 3 19959: # 34 "/usr/include/c++/13/bits/cxxabi_forced.h" 3 19959: 19959: # 35 "/usr/include/c++/13/bits/cxxabi_forced.h" 3 19959: 19959: #pragma GCC visibility push(default) 19959: 19959: 19959: namespace __cxxabiv1 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class __forced_unwind 19959: { 19959: virtual ~__forced_unwind() throw(); 19959: 19959: 19959: virtual void __pure_dummy() = 0; 19959: }; 19959: } 19959: 19959: 19959: #pragma GCC visibility pop 19959: # 37 "/usr/include/c++/13/bits/ostream_insert.h" 2 3 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: template 19959: inline void 19959: __ostream_write(basic_ostream<_CharT, _Traits>& __out, 19959: const _CharT* __s, streamsize __n) 19959: { 19959: typedef basic_ostream<_CharT, _Traits> __ostream_type; 19959: typedef typename __ostream_type::ios_base __ios_base; 19959: 19959: const streamsize __put = __out.rdbuf()->sputn(__s, __n); 19959: if (__put != __n) 19959: __out.setstate(__ios_base::badbit); 19959: } 19959: 19959: template 19959: inline void 19959: __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) 19959: { 19959: typedef basic_ostream<_CharT, _Traits> __ostream_type; 19959: typedef typename __ostream_type::ios_base __ios_base; 19959: 19959: const _CharT __c = __out.fill(); 19959: for (; __n > 0; --__n) 19959: { 19959: const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); 19959: if (_Traits::eq_int_type(__put, _Traits::eof())) 19959: { 19959: __out.setstate(__ios_base::badbit); 19959: break; 19959: } 19959: } 19959: } 19959: 19959: template 19959: basic_ostream<_CharT, _Traits>& 19959: __ostream_insert(basic_ostream<_CharT, _Traits>& __out, 19959: const _CharT* __s, streamsize __n) 19959: { 19959: typedef basic_ostream<_CharT, _Traits> __ostream_type; 19959: typedef typename __ostream_type::ios_base __ios_base; 19959: 19959: typename __ostream_type::sentry __cerb(__out); 19959: if (__cerb) 19959: { 19959: try 19959: { 19959: const streamsize __w = __out.width(); 19959: if (__w > __n) 19959: { 19959: const bool __left = ((__out.flags() 19959: & __ios_base::adjustfield) 19959: == __ios_base::left); 19959: if (!__left) 19959: __ostream_fill(__out, __w - __n); 19959: if (__out.good()) 19959: __ostream_write(__out, __s, __n); 19959: if (__left && __out.good()) 19959: __ostream_fill(__out, __w - __n); 19959: } 19959: else 19959: __ostream_write(__out, __s, __n); 19959: __out.width(0); 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: __out._M_setstate(__ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { __out._M_setstate(__ios_base::badbit); } 19959: } 19959: return __out; 19959: } 19959: 19959: 19959: 19959: 19959: extern template ostream& __ostream_insert(ostream&, const char*, streamsize); 19959: 19959: 19959: extern template wostream& __ostream_insert(wostream&, const wchar_t*, 19959: streamsize); 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 47 "/usr/include/c++/13/string" 2 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/basic_string.h" 1 3 19959: # 37 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/basic_string.h" 3 19959: # 47 "/usr/include/c++/13/bits/basic_string.h" 3 19959: # 1 "/usr/include/c++/13/string_view" 1 3 19959: # 36 "/usr/include/c++/13/string_view" 3 19959: 19959: # 37 "/usr/include/c++/13/string_view" 3 19959: # 56 "/usr/include/c++/13/string_view" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 69 "/usr/include/c++/13/string_view" 3 19959: constexpr size_t 19959: __sv_check(size_t __size, size_t __pos, const char* __s) 19959: { 19959: if (__pos > __size) 19959: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > __size " "(which is %zu)") 19959: , __s, __pos, __size); 19959: return __pos; 19959: } 19959: 19959: 19959: 19959: constexpr size_t 19959: __sv_limit(size_t __size, size_t __pos, size_t __off) noexcept 19959: { 19959: const bool __testoff = __off < __size - __pos; 19959: return __testoff ? __off : __size - __pos; 19959: } 19959: # 105 "/usr/include/c++/13/string_view" 3 19959: template> 19959: class basic_string_view 19959: { 19959: static_assert(!is_array_v<_CharT>); 19959: static_assert(is_trivial_v<_CharT> && is_standard_layout_v<_CharT>); 19959: static_assert(is_same_v<_CharT, typename _Traits::char_type>); 19959: 19959: public: 19959: 19959: 19959: using traits_type = _Traits; 19959: using value_type = _CharT; 19959: using pointer = value_type*; 19959: using const_pointer = const value_type*; 19959: using reference = value_type&; 19959: using const_reference = const value_type&; 19959: using const_iterator = const value_type*; 19959: using iterator = const_iterator; 19959: using const_reverse_iterator = std::reverse_iterator; 19959: using reverse_iterator = const_reverse_iterator; 19959: using size_type = size_t; 19959: using difference_type = ptrdiff_t; 19959: static constexpr size_type npos = size_type(-1); 19959: 19959: 19959: 19959: constexpr 19959: basic_string_view() noexcept 19959: : _M_len{0}, _M_str{nullptr} 19959: { } 19959: 19959: constexpr basic_string_view(const basic_string_view&) noexcept = default; 19959: 19959: [[__gnu__::__nonnull__]] 19959: constexpr 19959: basic_string_view(const _CharT* __str) noexcept 19959: : _M_len{traits_type::length(__str)}, 19959: _M_str{__str} 19959: { } 19959: 19959: constexpr 19959: basic_string_view(const _CharT* __str, size_type __len) noexcept 19959: : _M_len{__len}, _M_str{__str} 19959: { } 19959: # 182 "/usr/include/c++/13/string_view" 3 19959: constexpr basic_string_view& 19959: operator=(const basic_string_view&) noexcept = default; 19959: 19959: 19959: 19959: [[nodiscard]] 19959: constexpr const_iterator 19959: begin() const noexcept 19959: { return this->_M_str; } 19959: 19959: [[nodiscard]] 19959: constexpr const_iterator 19959: end() const noexcept 19959: { return this->_M_str + this->_M_len; } 19959: 19959: [[nodiscard]] 19959: constexpr const_iterator 19959: cbegin() const noexcept 19959: { return this->_M_str; } 19959: 19959: [[nodiscard]] 19959: constexpr const_iterator 19959: cend() const noexcept 19959: { return this->_M_str + this->_M_len; } 19959: 19959: [[nodiscard]] 19959: constexpr const_reverse_iterator 19959: rbegin() const noexcept 19959: { return const_reverse_iterator(this->end()); } 19959: 19959: [[nodiscard]] 19959: constexpr const_reverse_iterator 19959: rend() const noexcept 19959: { return const_reverse_iterator(this->begin()); } 19959: 19959: [[nodiscard]] 19959: constexpr const_reverse_iterator 19959: crbegin() const noexcept 19959: { return const_reverse_iterator(this->end()); } 19959: 19959: [[nodiscard]] 19959: constexpr const_reverse_iterator 19959: crend() const noexcept 19959: { return const_reverse_iterator(this->begin()); } 19959: 19959: 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: size() const noexcept 19959: { return this->_M_len; } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: length() const noexcept 19959: { return _M_len; } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: max_size() const noexcept 19959: { 19959: return (npos - sizeof(size_type) - sizeof(void*)) 19959: / sizeof(value_type) / 4; 19959: } 19959: 19959: [[nodiscard]] 19959: constexpr bool 19959: empty() const noexcept 19959: { return this->_M_len == 0; } 19959: 19959: 19959: 19959: [[nodiscard]] 19959: constexpr const_reference 19959: operator[](size_type __pos) const noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__pos < this->_M_len)) __builtin_unreachable(); } while (false); 19959: return *(this->_M_str + __pos); 19959: } 19959: 19959: [[nodiscard]] 19959: constexpr const_reference 19959: at(size_type __pos) const 19959: { 19959: if (__pos >= _M_len) 19959: __throw_out_of_range_fmt(("basic_string_view::at: __pos " "(which is %zu) >= this->size() " "(which is %zu)") 19959: 19959: , __pos, this->size()); 19959: return *(this->_M_str + __pos); 19959: } 19959: 19959: [[nodiscard]] 19959: constexpr const_reference 19959: front() const noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) __builtin_unreachable(); } while (false); 19959: return *this->_M_str; 19959: } 19959: 19959: [[nodiscard]] 19959: constexpr const_reference 19959: back() const noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) __builtin_unreachable(); } while (false); 19959: return *(this->_M_str + this->_M_len - 1); 19959: } 19959: 19959: [[nodiscard]] 19959: constexpr const_pointer 19959: data() const noexcept 19959: { return this->_M_str; } 19959: 19959: 19959: 19959: constexpr void 19959: remove_prefix(size_type __n) noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) __builtin_unreachable(); } while (false); 19959: this->_M_str += __n; 19959: this->_M_len -= __n; 19959: } 19959: 19959: constexpr void 19959: remove_suffix(size_type __n) noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) __builtin_unreachable(); } while (false); 19959: this->_M_len -= __n; 19959: } 19959: 19959: constexpr void 19959: swap(basic_string_view& __sv) noexcept 19959: { 19959: auto __tmp = *this; 19959: *this = __sv; 19959: __sv = __tmp; 19959: } 19959: 19959: 19959: 19959: 19959: size_type 19959: copy(_CharT* __str, size_type __n, size_type __pos = 0) const 19959: { 19959: ; 19959: __pos = std::__sv_check(size(), __pos, "basic_string_view::copy"); 19959: const size_type __rlen = std::min(__n, _M_len - __pos); 19959: 19959: 19959: traits_type::copy(__str, data() + __pos, __rlen); 19959: return __rlen; 19959: } 19959: 19959: [[nodiscard]] 19959: constexpr basic_string_view 19959: substr(size_type __pos = 0, size_type __n = npos) const noexcept(false) 19959: { 19959: __pos = std::__sv_check(size(), __pos, "basic_string_view::substr"); 19959: const size_type __rlen = std::min(__n, _M_len - __pos); 19959: return basic_string_view{_M_str + __pos, __rlen}; 19959: } 19959: 19959: [[nodiscard]] 19959: constexpr int 19959: compare(basic_string_view __str) const noexcept 19959: { 19959: const size_type __rlen = std::min(this->_M_len, __str._M_len); 19959: int __ret = traits_type::compare(this->_M_str, __str._M_str, __rlen); 19959: if (__ret == 0) 19959: __ret = _S_compare(this->_M_len, __str._M_len); 19959: return __ret; 19959: } 19959: 19959: [[nodiscard]] 19959: constexpr int 19959: compare(size_type __pos1, size_type __n1, basic_string_view __str) const 19959: { return this->substr(__pos1, __n1).compare(__str); } 19959: 19959: [[nodiscard]] 19959: constexpr int 19959: compare(size_type __pos1, size_type __n1, 19959: basic_string_view __str, size_type __pos2, size_type __n2) const 19959: { 19959: return this->substr(__pos1, __n1).compare(__str.substr(__pos2, __n2)); 19959: } 19959: 19959: [[nodiscard, __gnu__::__nonnull__]] 19959: constexpr int 19959: compare(const _CharT* __str) const noexcept 19959: { return this->compare(basic_string_view{__str}); } 19959: 19959: [[nodiscard, __gnu__::__nonnull__]] 19959: constexpr int 19959: compare(size_type __pos1, size_type __n1, const _CharT* __str) const 19959: { return this->substr(__pos1, __n1).compare(basic_string_view{__str}); } 19959: 19959: [[nodiscard]] 19959: constexpr int 19959: compare(size_type __pos1, size_type __n1, 19959: const _CharT* __str, size_type __n2) const noexcept(false) 19959: { 19959: return this->substr(__pos1, __n1) 19959: .compare(basic_string_view(__str, __n2)); 19959: } 19959: # 448 "/usr/include/c++/13/string_view" 3 19959: [[nodiscard]] 19959: constexpr size_type 19959: find(basic_string_view __str, size_type __pos = 0) const noexcept 19959: { return this->find(__str._M_str, __pos, __str._M_len); } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find(_CharT __c, size_type __pos = 0) const noexcept; 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 19959: 19959: [[nodiscard, __gnu__::__nonnull__]] 19959: constexpr size_type 19959: find(const _CharT* __str, size_type __pos = 0) const noexcept 19959: { return this->find(__str, __pos, traits_type::length(__str)); } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: rfind(basic_string_view __str, size_type __pos = npos) const noexcept 19959: { return this->rfind(__str._M_str, __pos, __str._M_len); } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: rfind(_CharT __c, size_type __pos = npos) const noexcept; 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 19959: 19959: [[nodiscard, __gnu__::__nonnull__]] 19959: constexpr size_type 19959: rfind(const _CharT* __str, size_type __pos = npos) const noexcept 19959: { return this->rfind(__str, __pos, traits_type::length(__str)); } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find_first_of(basic_string_view __str, size_type __pos = 0) const noexcept 19959: { return this->find_first_of(__str._M_str, __pos, __str._M_len); } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 19959: { return this->find(__c, __pos); } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find_first_of(const _CharT* __str, size_type __pos, 19959: size_type __n) const noexcept; 19959: 19959: [[nodiscard, __gnu__::__nonnull__]] 19959: constexpr size_type 19959: find_first_of(const _CharT* __str, size_type __pos = 0) const noexcept 19959: { return this->find_first_of(__str, __pos, traits_type::length(__str)); } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find_last_of(basic_string_view __str, 19959: size_type __pos = npos) const noexcept 19959: { return this->find_last_of(__str._M_str, __pos, __str._M_len); } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find_last_of(_CharT __c, size_type __pos=npos) const noexcept 19959: { return this->rfind(__c, __pos); } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find_last_of(const _CharT* __str, size_type __pos, 19959: size_type __n) const noexcept; 19959: 19959: [[nodiscard, __gnu__::__nonnull__]] 19959: constexpr size_type 19959: find_last_of(const _CharT* __str, size_type __pos = npos) const noexcept 19959: { return this->find_last_of(__str, __pos, traits_type::length(__str)); } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find_first_not_of(basic_string_view __str, 19959: size_type __pos = 0) const noexcept 19959: { return this->find_first_not_of(__str._M_str, __pos, __str._M_len); } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find_first_not_of(const _CharT* __str, 19959: size_type __pos, size_type __n) const noexcept; 19959: 19959: [[nodiscard, __gnu__::__nonnull__]] 19959: constexpr size_type 19959: find_first_not_of(const _CharT* __str, size_type __pos = 0) const noexcept 19959: { 19959: return this->find_first_not_of(__str, __pos, 19959: traits_type::length(__str)); 19959: } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find_last_not_of(basic_string_view __str, 19959: size_type __pos = npos) const noexcept 19959: { return this->find_last_not_of(__str._M_str, __pos, __str._M_len); } 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; 19959: 19959: [[nodiscard]] 19959: constexpr size_type 19959: find_last_not_of(const _CharT* __str, 19959: size_type __pos, size_type __n) const noexcept; 19959: 19959: [[nodiscard, __gnu__::__nonnull__]] 19959: constexpr size_type 19959: find_last_not_of(const _CharT* __str, 19959: size_type __pos = npos) const noexcept 19959: { 19959: return this->find_last_not_of(__str, __pos, 19959: traits_type::length(__str)); 19959: } 19959: 19959: private: 19959: 19959: static constexpr int 19959: _S_compare(size_type __n1, size_type __n2) noexcept 19959: { 19959: using __limits = __gnu_cxx::__int_traits; 19959: const difference_type __diff = __n1 - __n2; 19959: if (__diff > __limits::__max) 19959: return __limits::__max; 19959: if (__diff < __limits::__min) 19959: return __limits::__min; 19959: return static_cast(__diff); 19959: } 19959: 19959: size_t _M_len; 19959: const _CharT* _M_str; 19959: }; 19959: # 608 "/usr/include/c++/13/string_view" 3 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator==(basic_string_view<_CharT, _Traits> __x, 19959: basic_string_view<_CharT, _Traits> __y) noexcept 19959: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator==(basic_string_view<_CharT, _Traits> __x, 19959: __type_identity_t> __y) 19959: noexcept 19959: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 19959: # 641 "/usr/include/c++/13/string_view" 3 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator==(__type_identity_t> __x, 19959: basic_string_view<_CharT, _Traits> __y) noexcept 19959: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator!=(basic_string_view<_CharT, _Traits> __x, 19959: basic_string_view<_CharT, _Traits> __y) noexcept 19959: { return !(__x == __y); } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator!=(basic_string_view<_CharT, _Traits> __x, 19959: __type_identity_t> __y) 19959: noexcept 19959: { return !(__x == __y); } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator!=(__type_identity_t> __x, 19959: basic_string_view<_CharT, _Traits> __y) noexcept 19959: { return !(__x == __y); } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator< (basic_string_view<_CharT, _Traits> __x, 19959: basic_string_view<_CharT, _Traits> __y) noexcept 19959: { return __x.compare(__y) < 0; } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator< (basic_string_view<_CharT, _Traits> __x, 19959: __type_identity_t> __y) 19959: noexcept 19959: { return __x.compare(__y) < 0; } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator< (__type_identity_t> __x, 19959: basic_string_view<_CharT, _Traits> __y) noexcept 19959: { return __x.compare(__y) < 0; } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator> (basic_string_view<_CharT, _Traits> __x, 19959: basic_string_view<_CharT, _Traits> __y) noexcept 19959: { return __x.compare(__y) > 0; } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator> (basic_string_view<_CharT, _Traits> __x, 19959: __type_identity_t> __y) 19959: noexcept 19959: { return __x.compare(__y) > 0; } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator> (__type_identity_t> __x, 19959: basic_string_view<_CharT, _Traits> __y) noexcept 19959: { return __x.compare(__y) > 0; } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator<=(basic_string_view<_CharT, _Traits> __x, 19959: basic_string_view<_CharT, _Traits> __y) noexcept 19959: { return __x.compare(__y) <= 0; } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator<=(basic_string_view<_CharT, _Traits> __x, 19959: __type_identity_t> __y) 19959: noexcept 19959: { return __x.compare(__y) <= 0; } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator<=(__type_identity_t> __x, 19959: basic_string_view<_CharT, _Traits> __y) noexcept 19959: { return __x.compare(__y) <= 0; } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator>=(basic_string_view<_CharT, _Traits> __x, 19959: basic_string_view<_CharT, _Traits> __y) noexcept 19959: { return __x.compare(__y) >= 0; } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator>=(basic_string_view<_CharT, _Traits> __x, 19959: __type_identity_t> __y) 19959: noexcept 19959: { return __x.compare(__y) >= 0; } 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr bool 19959: operator>=(__type_identity_t> __x, 19959: basic_string_view<_CharT, _Traits> __y) noexcept 19959: { return __x.compare(__y) >= 0; } 19959: 19959: 19959: 19959: 19959: template 19959: inline basic_ostream<_CharT, _Traits>& 19959: operator<<(basic_ostream<_CharT, _Traits>& __os, 19959: basic_string_view<_CharT,_Traits> __str) 19959: { return __ostream_insert(__os, __str.data(), __str.size()); } 19959: 19959: 19959: 19959: 19959: using string_view = basic_string_view; 19959: using wstring_view = basic_string_view; 19959: 19959: 19959: 19959: using u16string_view = basic_string_view; 19959: using u32string_view = basic_string_view; 19959: 19959: 19959: 19959: template 19959: struct hash; 19959: 19959: template<> 19959: struct hash 19959: : public __hash_base 19959: { 19959: [[nodiscard]] 19959: size_t 19959: operator()(const string_view& __str) const noexcept 19959: { return std::_Hash_impl::hash(__str.data(), __str.length()); } 19959: }; 19959: 19959: template<> 19959: struct __is_fast_hash> : std::false_type 19959: { }; 19959: 19959: template<> 19959: struct hash 19959: : public __hash_base 19959: { 19959: [[nodiscard]] 19959: size_t 19959: operator()(const wstring_view& __s) const noexcept 19959: { return std::_Hash_impl::hash(__s.data(), 19959: __s.length() * sizeof(wchar_t)); } 19959: }; 19959: 19959: template<> 19959: struct __is_fast_hash> : std::false_type 19959: { }; 19959: # 828 "/usr/include/c++/13/string_view" 3 19959: template<> 19959: struct hash 19959: : public __hash_base 19959: { 19959: [[nodiscard]] 19959: size_t 19959: operator()(const u16string_view& __s) const noexcept 19959: { return std::_Hash_impl::hash(__s.data(), 19959: __s.length() * sizeof(char16_t)); } 19959: }; 19959: 19959: template<> 19959: struct __is_fast_hash> : std::false_type 19959: { }; 19959: 19959: template<> 19959: struct hash 19959: : public __hash_base 19959: { 19959: [[nodiscard]] 19959: size_t 19959: operator()(const u32string_view& __s) const noexcept 19959: { return std::_Hash_impl::hash(__s.data(), 19959: __s.length() * sizeof(char32_t)); } 19959: }; 19959: 19959: template<> 19959: struct __is_fast_hash> : std::false_type 19959: { }; 19959: 19959: inline namespace literals 19959: { 19959: inline namespace string_view_literals 19959: { 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wliteral-suffix" 19959: inline constexpr basic_string_view 19959: operator""sv(const char* __str, size_t __len) noexcept 19959: { return basic_string_view{__str, __len}; } 19959: 19959: inline constexpr basic_string_view 19959: operator""sv(const wchar_t* __str, size_t __len) noexcept 19959: { return basic_string_view{__str, __len}; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline constexpr basic_string_view 19959: operator""sv(const char16_t* __str, size_t __len) noexcept 19959: { return basic_string_view{__str, __len}; } 19959: 19959: inline constexpr basic_string_view 19959: operator""sv(const char32_t* __str, size_t __len) noexcept 19959: { return basic_string_view{__str, __len}; } 19959: 19959: #pragma GCC diagnostic pop 19959: } 19959: } 19959: # 904 "/usr/include/c++/13/string_view" 3 19959: 19959: } 19959: 19959: # 1 "/usr/include/c++/13/bits/string_view.tcc" 1 3 19959: # 37 "/usr/include/c++/13/bits/string_view.tcc" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/string_view.tcc" 3 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template 19959: constexpr typename basic_string_view<_CharT, _Traits>::size_type 19959: basic_string_view<_CharT, _Traits>:: 19959: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept 19959: { 19959: ; 19959: 19959: if (__n == 0) 19959: return __pos <= _M_len ? __pos : npos; 19959: if (__pos >= _M_len) 19959: return npos; 19959: 19959: const _CharT __elem0 = __str[0]; 19959: const _CharT* __first = _M_str + __pos; 19959: const _CharT* const __last = _M_str + _M_len; 19959: size_type __len = _M_len - __pos; 19959: 19959: while (__len >= __n) 19959: { 19959: 19959: __first = traits_type::find(__first, __len - __n + 1, __elem0); 19959: if (!__first) 19959: return npos; 19959: 19959: 19959: 19959: if (traits_type::compare(__first, __str, __n) == 0) 19959: return __first - _M_str; 19959: __len = __last - ++__first; 19959: } 19959: return npos; 19959: } 19959: 19959: template 19959: constexpr typename basic_string_view<_CharT, _Traits>::size_type 19959: basic_string_view<_CharT, _Traits>:: 19959: find(_CharT __c, size_type __pos) const noexcept 19959: { 19959: size_type __ret = npos; 19959: if (__pos < this->_M_len) 19959: { 19959: const size_type __n = this->_M_len - __pos; 19959: const _CharT* __p = traits_type::find(this->_M_str + __pos, __n, __c); 19959: if (__p) 19959: __ret = __p - this->_M_str; 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: constexpr typename basic_string_view<_CharT, _Traits>::size_type 19959: basic_string_view<_CharT, _Traits>:: 19959: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept 19959: { 19959: ; 19959: 19959: if (__n <= this->_M_len) 19959: { 19959: __pos = std::min(size_type(this->_M_len - __n), __pos); 19959: do 19959: { 19959: if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) 19959: return __pos; 19959: } 19959: while (__pos-- > 0); 19959: } 19959: return npos; 19959: } 19959: 19959: template 19959: constexpr typename basic_string_view<_CharT, _Traits>::size_type 19959: basic_string_view<_CharT, _Traits>:: 19959: rfind(_CharT __c, size_type __pos) const noexcept 19959: { 19959: size_type __size = this->_M_len; 19959: if (__size > 0) 19959: { 19959: if (--__size > __pos) 19959: __size = __pos; 19959: for (++__size; __size-- > 0; ) 19959: if (traits_type::eq(this->_M_str[__size], __c)) 19959: return __size; 19959: } 19959: return npos; 19959: } 19959: 19959: template 19959: constexpr typename basic_string_view<_CharT, _Traits>::size_type 19959: basic_string_view<_CharT, _Traits>:: 19959: find_first_of(const _CharT* __str, size_type __pos, 19959: size_type __n) const noexcept 19959: { 19959: ; 19959: for (; __n && __pos < this->_M_len; ++__pos) 19959: { 19959: const _CharT* __p = traits_type::find(__str, __n, 19959: this->_M_str[__pos]); 19959: if (__p) 19959: return __pos; 19959: } 19959: return npos; 19959: } 19959: 19959: template 19959: constexpr typename basic_string_view<_CharT, _Traits>::size_type 19959: basic_string_view<_CharT, _Traits>:: 19959: find_last_of(const _CharT* __str, size_type __pos, 19959: size_type __n) const noexcept 19959: { 19959: ; 19959: size_type __size = this->size(); 19959: if (__size && __n) 19959: { 19959: if (--__size > __pos) 19959: __size = __pos; 19959: do 19959: { 19959: if (traits_type::find(__str, __n, this->_M_str[__size])) 19959: return __size; 19959: } 19959: while (__size-- != 0); 19959: } 19959: return npos; 19959: } 19959: 19959: template 19959: constexpr typename basic_string_view<_CharT, _Traits>::size_type 19959: basic_string_view<_CharT, _Traits>:: 19959: find_first_not_of(const _CharT* __str, size_type __pos, 19959: size_type __n) const noexcept 19959: { 19959: ; 19959: for (; __pos < this->_M_len; ++__pos) 19959: if (!traits_type::find(__str, __n, this->_M_str[__pos])) 19959: return __pos; 19959: return npos; 19959: } 19959: 19959: template 19959: constexpr typename basic_string_view<_CharT, _Traits>::size_type 19959: basic_string_view<_CharT, _Traits>:: 19959: find_first_not_of(_CharT __c, size_type __pos) const noexcept 19959: { 19959: for (; __pos < this->_M_len; ++__pos) 19959: if (!traits_type::eq(this->_M_str[__pos], __c)) 19959: return __pos; 19959: return npos; 19959: } 19959: 19959: template 19959: constexpr typename basic_string_view<_CharT, _Traits>::size_type 19959: basic_string_view<_CharT, _Traits>:: 19959: find_last_not_of(const _CharT* __str, size_type __pos, 19959: size_type __n) const noexcept 19959: { 19959: ; 19959: size_type __size = this->_M_len; 19959: if (__size) 19959: { 19959: if (--__size > __pos) 19959: __size = __pos; 19959: do 19959: { 19959: if (!traits_type::find(__str, __n, this->_M_str[__size])) 19959: return __size; 19959: } 19959: while (__size--); 19959: } 19959: return npos; 19959: } 19959: 19959: template 19959: constexpr typename basic_string_view<_CharT, _Traits>::size_type 19959: basic_string_view<_CharT, _Traits>:: 19959: find_last_not_of(_CharT __c, size_type __pos) const noexcept 19959: { 19959: size_type __size = this->_M_len; 19959: if (__size) 19959: { 19959: if (--__size > __pos) 19959: __size = __pos; 19959: do 19959: { 19959: if (!traits_type::eq(this->_M_str[__size], __c)) 19959: return __size; 19959: } 19959: while (__size--); 19959: } 19959: return npos; 19959: } 19959: 19959: 19959: } 19959: # 908 "/usr/include/c++/13/string_view" 2 3 19959: # 48 "/usr/include/c++/13/bits/basic_string.h" 2 3 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: namespace __cxx11 { 19959: # 86 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: class basic_string 19959: { 19959: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 19959: rebind<_CharT>::other _Char_alloc_type; 19959: 19959: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 19959: 19959: 19959: public: 19959: typedef _Traits traits_type; 19959: typedef typename _Traits::char_type value_type; 19959: typedef _Char_alloc_type allocator_type; 19959: typedef typename _Alloc_traits::size_type size_type; 19959: typedef typename _Alloc_traits::difference_type difference_type; 19959: typedef typename _Alloc_traits::reference reference; 19959: typedef typename _Alloc_traits::const_reference const_reference; 19959: typedef typename _Alloc_traits::pointer pointer; 19959: typedef typename _Alloc_traits::const_pointer const_pointer; 19959: typedef __gnu_cxx::__normal_iterator iterator; 19959: typedef __gnu_cxx::__normal_iterator 19959: const_iterator; 19959: typedef std::reverse_iterator const_reverse_iterator; 19959: typedef std::reverse_iterator reverse_iterator; 19959: 19959: 19959: static const size_type npos = static_cast(-1); 19959: 19959: protected: 19959: 19959: 19959: 19959: 19959: typedef const_iterator __const_iterator; 19959: 19959: 19959: private: 19959: static pointer 19959: _S_allocate(_Char_alloc_type& __a, size_type __n) 19959: { 19959: pointer __p = _Alloc_traits::allocate(__a, __n); 19959: # 136 "/usr/include/c++/13/bits/basic_string.h" 3 19959: return __p; 19959: } 19959: 19959: 19959: 19959: typedef basic_string_view<_CharT, _Traits> __sv_type; 19959: 19959: template 19959: using _If_sv = enable_if_t< 19959: __and_, 19959: __not_>, 19959: __not_>>::value, 19959: _Res>; 19959: 19959: 19959: 19959: static __sv_type 19959: _S_to_string_view(__sv_type __svt) noexcept 19959: { return __svt; } 19959: 19959: 19959: 19959: 19959: 19959: struct __sv_wrapper 19959: { 19959: explicit 19959: __sv_wrapper(__sv_type __sv) noexcept : _M_sv(__sv) { } 19959: 19959: __sv_type _M_sv; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: basic_string(__sv_wrapper __svw, const _Alloc& __a) 19959: : basic_string(__svw._M_sv.data(), __svw._M_sv.size(), __a) { } 19959: 19959: 19959: 19959: struct _Alloc_hider : allocator_type 19959: { 19959: 19959: 19959: 19959: 19959: 19959: _Alloc_hider(pointer __dat, const _Alloc& __a) 19959: : allocator_type(__a), _M_p(__dat) { } 19959: 19959: 19959: _Alloc_hider(pointer __dat, _Alloc&& __a = _Alloc()) 19959: : allocator_type(std::move(__a)), _M_p(__dat) { } 19959: 19959: 19959: pointer _M_p; 19959: }; 19959: 19959: _Alloc_hider _M_dataplus; 19959: size_type _M_string_length; 19959: 19959: enum { _S_local_capacity = 15 / sizeof(_CharT) }; 19959: 19959: union 19959: { 19959: _CharT _M_local_buf[_S_local_capacity + 1]; 19959: size_type _M_allocated_capacity; 19959: }; 19959: 19959: 19959: void 19959: _M_data(pointer __p) 19959: { _M_dataplus._M_p = __p; } 19959: 19959: 19959: void 19959: _M_length(size_type __length) 19959: { _M_string_length = __length; } 19959: 19959: 19959: pointer 19959: _M_data() const 19959: { return _M_dataplus._M_p; } 19959: 19959: 19959: pointer 19959: _M_local_data() 19959: { 19959: 19959: return std::pointer_traits::pointer_to(*_M_local_buf); 19959: 19959: 19959: 19959: } 19959: 19959: 19959: const_pointer 19959: _M_local_data() const 19959: { 19959: 19959: return std::pointer_traits::pointer_to(*_M_local_buf); 19959: 19959: 19959: 19959: } 19959: 19959: 19959: void 19959: _M_capacity(size_type __capacity) 19959: { _M_allocated_capacity = __capacity; } 19959: 19959: 19959: void 19959: _M_set_length(size_type __n) 19959: { 19959: _M_length(__n); 19959: traits_type::assign(_M_data()[__n], _CharT()); 19959: } 19959: 19959: 19959: bool 19959: _M_is_local() const 19959: { 19959: if (_M_data() == _M_local_data()) 19959: { 19959: if (_M_string_length > _S_local_capacity) 19959: __builtin_unreachable(); 19959: return true; 19959: } 19959: return false; 19959: } 19959: 19959: 19959: 19959: pointer 19959: _M_create(size_type&, size_type); 19959: 19959: 19959: void 19959: _M_dispose() 19959: { 19959: if (!_M_is_local()) 19959: _M_destroy(_M_allocated_capacity); 19959: } 19959: 19959: 19959: void 19959: _M_destroy(size_type __size) throw() 19959: { _Alloc_traits::deallocate(_M_get_allocator(), _M_data(), __size + 1); } 19959: # 316 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: 19959: void 19959: _M_construct(_InIterator __beg, _InIterator __end, 19959: std::input_iterator_tag); 19959: 19959: 19959: 19959: template 19959: 19959: void 19959: _M_construct(_FwdIterator __beg, _FwdIterator __end, 19959: std::forward_iterator_tag); 19959: 19959: 19959: void 19959: _M_construct(size_type __req, _CharT __c); 19959: 19959: 19959: allocator_type& 19959: _M_get_allocator() 19959: { return _M_dataplus; } 19959: 19959: 19959: const allocator_type& 19959: _M_get_allocator() const 19959: { return _M_dataplus; } 19959: 19959: 19959: __attribute__((__always_inline__)) 19959: constexpr 19959: void 19959: _M_init_local_buf() noexcept 19959: { 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: __attribute__((__always_inline__)) 19959: constexpr 19959: pointer 19959: _M_use_local_data() noexcept 19959: { 19959: 19959: 19959: 19959: return _M_local_data(); 19959: } 19959: 19959: private: 19959: # 384 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: size_type 19959: _M_check(size_type __pos, const char* __s) const 19959: { 19959: if (__pos > this->size()) 19959: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") 19959: , 19959: __s, __pos, this->size()); 19959: return __pos; 19959: } 19959: 19959: 19959: void 19959: _M_check_length(size_type __n1, size_type __n2, const char* __s) const 19959: { 19959: if (this->max_size() - (this->size() - __n1) < __n2) 19959: __throw_length_error((__s)); 19959: } 19959: 19959: 19959: 19959: 19959: size_type 19959: _M_limit(size_type __pos, size_type __off) const noexcept 19959: { 19959: const bool __testoff = __off < this->size() - __pos; 19959: return __testoff ? __off : this->size() - __pos; 19959: } 19959: 19959: 19959: bool 19959: _M_disjunct(const _CharT* __s) const noexcept 19959: { 19959: return (less()(__s, _M_data()) 19959: || less()(_M_data() + this->size(), __s)); 19959: } 19959: 19959: 19959: 19959: 19959: static void 19959: _S_copy(_CharT* __d, const _CharT* __s, size_type __n) 19959: { 19959: if (__n == 1) 19959: traits_type::assign(*__d, *__s); 19959: else 19959: traits_type::copy(__d, __s, __n); 19959: } 19959: 19959: 19959: static void 19959: _S_move(_CharT* __d, const _CharT* __s, size_type __n) 19959: { 19959: if (__n == 1) 19959: traits_type::assign(*__d, *__s); 19959: else 19959: traits_type::move(__d, __s, __n); 19959: } 19959: 19959: 19959: static void 19959: _S_assign(_CharT* __d, size_type __n, _CharT __c) 19959: { 19959: if (__n == 1) 19959: traits_type::assign(*__d, __c); 19959: else 19959: traits_type::assign(__d, __n, __c); 19959: } 19959: 19959: 19959: 19959: template 19959: 19959: static void 19959: _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) 19959: { 19959: for (; __k1 != __k2; ++__k1, (void)++__p) 19959: traits_type::assign(*__p, *__k1); 19959: } 19959: 19959: 19959: static void 19959: _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) noexcept 19959: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 19959: 19959: 19959: static void 19959: _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) 19959: noexcept 19959: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 19959: 19959: 19959: static void 19959: _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) noexcept 19959: { _S_copy(__p, __k1, __k2 - __k1); } 19959: 19959: 19959: static void 19959: _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) 19959: noexcept 19959: { _S_copy(__p, __k1, __k2 - __k1); } 19959: 19959: 19959: static int 19959: _S_compare(size_type __n1, size_type __n2) noexcept 19959: { 19959: const difference_type __d = difference_type(__n1 - __n2); 19959: 19959: if (__d > __gnu_cxx::__numeric_traits::__max) 19959: return __gnu_cxx::__numeric_traits::__max; 19959: else if (__d < __gnu_cxx::__numeric_traits::__min) 19959: return __gnu_cxx::__numeric_traits::__min; 19959: else 19959: return int(__d); 19959: } 19959: 19959: 19959: void 19959: _M_assign(const basic_string&); 19959: 19959: 19959: void 19959: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 19959: size_type __len2); 19959: 19959: 19959: void 19959: _M_erase(size_type __pos, size_type __n); 19959: 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string() 19959: noexcept(is_nothrow_default_constructible<_Alloc>::value) 19959: : _M_dataplus(_M_local_data()) 19959: { 19959: _M_init_local_buf(); 19959: _M_set_length(0); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: basic_string(const _Alloc& __a) noexcept 19959: : _M_dataplus(_M_local_data(), __a) 19959: { 19959: _M_init_local_buf(); 19959: _M_set_length(0); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string(const basic_string& __str) 19959: : _M_dataplus(_M_local_data(), 19959: _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) 19959: { 19959: _M_construct(__str._M_data(), __str._M_data() + __str.length(), 19959: std::forward_iterator_tag()); 19959: } 19959: # 563 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string(const basic_string& __str, size_type __pos, 19959: const _Alloc& __a = _Alloc()) 19959: : _M_dataplus(_M_local_data(), __a) 19959: { 19959: const _CharT* __start = __str._M_data() 19959: + __str._M_check(__pos, "basic_string::basic_string"); 19959: _M_construct(__start, __start + __str._M_limit(__pos, npos), 19959: std::forward_iterator_tag()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string(const basic_string& __str, size_type __pos, 19959: size_type __n) 19959: : _M_dataplus(_M_local_data()) 19959: { 19959: const _CharT* __start = __str._M_data() 19959: + __str._M_check(__pos, "basic_string::basic_string"); 19959: _M_construct(__start, __start + __str._M_limit(__pos, __n), 19959: std::forward_iterator_tag()); 19959: } 19959: # 598 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string(const basic_string& __str, size_type __pos, 19959: size_type __n, const _Alloc& __a) 19959: : _M_dataplus(_M_local_data(), __a) 19959: { 19959: const _CharT* __start 19959: = __str._M_data() + __str._M_check(__pos, "string::string"); 19959: _M_construct(__start, __start + __str._M_limit(__pos, __n), 19959: std::forward_iterator_tag()); 19959: } 19959: # 618 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string(const _CharT* __s, size_type __n, 19959: const _Alloc& __a = _Alloc()) 19959: : _M_dataplus(_M_local_data(), __a) 19959: { 19959: 19959: if (__s == 0 && __n > 0) 19959: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 19959: ); 19959: _M_construct(__s, __s + __n, std::forward_iterator_tag()); 19959: } 19959: # 638 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template> 19959: 19959: 19959: basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) 19959: : _M_dataplus(_M_local_data(), __a) 19959: { 19959: 19959: if (__s == 0) 19959: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 19959: ); 19959: const _CharT* __end = __s + traits_type::length(__s); 19959: _M_construct(__s, __end, forward_iterator_tag()); 19959: } 19959: # 661 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template> 19959: 19959: 19959: basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()) 19959: : _M_dataplus(_M_local_data(), __a) 19959: { _M_construct(__n, __c); } 19959: # 676 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string(basic_string&& __str) noexcept 19959: : _M_dataplus(_M_local_data(), std::move(__str._M_get_allocator())) 19959: { 19959: if (__str._M_is_local()) 19959: { 19959: _M_init_local_buf(); 19959: traits_type::copy(_M_local_buf, __str._M_local_buf, 19959: __str.length() + 1); 19959: } 19959: else 19959: { 19959: _M_data(__str._M_data()); 19959: _M_capacity(__str._M_allocated_capacity); 19959: } 19959: 19959: 19959: 19959: 19959: _M_length(__str.length()); 19959: __str._M_data(__str._M_use_local_data()); 19959: __str._M_set_length(0); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) 19959: : _M_dataplus(_M_local_data(), __a) 19959: { _M_construct(__l.begin(), __l.end(), std::forward_iterator_tag()); } 19959: 19959: 19959: basic_string(const basic_string& __str, const _Alloc& __a) 19959: : _M_dataplus(_M_local_data(), __a) 19959: { _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } 19959: 19959: 19959: basic_string(basic_string&& __str, const _Alloc& __a) 19959: noexcept(_Alloc_traits::_S_always_equal()) 19959: : _M_dataplus(_M_local_data(), __a) 19959: { 19959: if (__str._M_is_local()) 19959: { 19959: _M_init_local_buf(); 19959: traits_type::copy(_M_local_buf, __str._M_local_buf, 19959: __str.length() + 1); 19959: _M_length(__str.length()); 19959: __str._M_set_length(0); 19959: } 19959: else if (_Alloc_traits::_S_always_equal() 19959: || __str.get_allocator() == __a) 19959: { 19959: _M_data(__str._M_data()); 19959: _M_length(__str.length()); 19959: _M_capacity(__str._M_allocated_capacity); 19959: __str._M_data(__str._M_use_local_data()); 19959: __str._M_set_length(0); 19959: } 19959: else 19959: _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); 19959: } 19959: # 754 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template> 19959: 19959: 19959: 19959: 19959: basic_string(_InputIterator __beg, _InputIterator __end, 19959: const _Alloc& __a = _Alloc()) 19959: : _M_dataplus(_M_local_data(), __a), _M_string_length(0) 19959: { 19959: 19959: _M_construct(__beg, __end, std::__iterator_category(__beg)); 19959: 19959: 19959: 19959: 19959: } 19959: # 780 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template>> 19959: 19959: basic_string(const _Tp& __t, size_type __pos, size_type __n, 19959: const _Alloc& __a = _Alloc()) 19959: : basic_string(_S_to_string_view(__t).substr(__pos, __n), __a) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: 19959: explicit 19959: basic_string(const _Tp& __t, const _Alloc& __a = _Alloc()) 19959: : basic_string(__sv_wrapper(_S_to_string_view(__t)), __a) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: ~basic_string() 19959: { _M_dispose(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string& 19959: operator=(const basic_string& __str) 19959: { 19959: return this->assign(__str); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string& 19959: operator=(const _CharT* __s) 19959: { return this->assign(__s); } 19959: # 833 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: operator=(_CharT __c) 19959: { 19959: this->assign(1, __c); 19959: return *this; 19959: } 19959: # 851 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: operator=(basic_string&& __str) 19959: noexcept(_Alloc_traits::_S_nothrow_move()) 19959: { 19959: const bool __equal_allocs = _Alloc_traits::_S_always_equal() 19959: || _M_get_allocator() == __str._M_get_allocator(); 19959: if (!_M_is_local() && _Alloc_traits::_S_propagate_on_move_assign() 19959: && !__equal_allocs) 19959: { 19959: 19959: _M_destroy(_M_allocated_capacity); 19959: _M_data(_M_local_data()); 19959: _M_set_length(0); 19959: } 19959: 19959: std::__alloc_on_move(_M_get_allocator(), __str._M_get_allocator()); 19959: 19959: if (__str._M_is_local()) 19959: { 19959: 19959: 19959: 19959: if (__builtin_expect(std::__addressof(__str) != this, true)) 19959: { 19959: if (__str.size()) 19959: this->_S_copy(_M_data(), __str._M_data(), __str.size()); 19959: _M_set_length(__str.size()); 19959: } 19959: } 19959: else if (_Alloc_traits::_S_propagate_on_move_assign() || __equal_allocs) 19959: { 19959: 19959: pointer __data = nullptr; 19959: size_type __capacity; 19959: if (!_M_is_local()) 19959: { 19959: if (__equal_allocs) 19959: { 19959: 19959: __data = _M_data(); 19959: __capacity = _M_allocated_capacity; 19959: } 19959: else 19959: _M_destroy(_M_allocated_capacity); 19959: } 19959: 19959: _M_data(__str._M_data()); 19959: _M_length(__str.length()); 19959: _M_capacity(__str._M_allocated_capacity); 19959: if (__data) 19959: { 19959: __str._M_data(__data); 19959: __str._M_capacity(__capacity); 19959: } 19959: else 19959: __str._M_data(__str._M_local_buf); 19959: } 19959: else 19959: assign(__str); 19959: __str.clear(); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string& 19959: operator=(initializer_list<_CharT> __l) 19959: { 19959: this->assign(__l.begin(), __l.size()); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _If_sv<_Tp, basic_string&> 19959: operator=(const _Tp& __svt) 19959: { return this->assign(__svt); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: operator __sv_type() const noexcept 19959: { return __sv_type(data(), size()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: iterator 19959: begin() noexcept 19959: { return iterator(_M_data()); } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: begin() const noexcept 19959: { return const_iterator(_M_data()); } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: iterator 19959: end() noexcept 19959: { return iterator(_M_data() + this->size()); } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: end() const noexcept 19959: { return const_iterator(_M_data() + this->size()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reverse_iterator 19959: rbegin() noexcept 19959: { return reverse_iterator(this->end()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: rbegin() const noexcept 19959: { return const_reverse_iterator(this->end()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reverse_iterator 19959: rend() noexcept 19959: { return reverse_iterator(this->begin()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: rend() const noexcept 19959: { return const_reverse_iterator(this->begin()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: cbegin() const noexcept 19959: { return const_iterator(this->_M_data()); } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: cend() const noexcept 19959: { return const_iterator(this->_M_data() + this->size()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: crbegin() const noexcept 19959: { return const_reverse_iterator(this->end()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: crend() const noexcept 19959: { return const_reverse_iterator(this->begin()); } 19959: 19959: 19959: public: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: size_type 19959: size() const noexcept 19959: { return _M_string_length; } 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: size_type 19959: length() const noexcept 19959: { return _M_string_length; } 19959: 19959: 19959: [[__nodiscard__]] 19959: size_type 19959: max_size() const noexcept 19959: { return (_Alloc_traits::max_size(_M_get_allocator()) - 1) / 2; } 19959: # 1097 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: void 19959: resize(size_type __n, _CharT __c); 19959: # 1111 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: void 19959: resize(size_type __n) 19959: { this->resize(__n, _CharT()); } 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: 19959: void 19959: shrink_to_fit() noexcept 19959: { reserve(); } 19959: #pragma GCC diagnostic pop 19959: # 1167 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: capacity() const noexcept 19959: { 19959: return _M_is_local() ? size_type(_S_local_capacity) 19959: : _M_allocated_capacity; 19959: } 19959: # 1192 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: void 19959: reserve(size_type __res_arg); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: reserve(); 19959: 19959: 19959: 19959: 19959: 19959: void 19959: clear() noexcept 19959: { _M_set_length(0); } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: bool 19959: empty() const noexcept 19959: { return this->size() == 0; } 19959: # 1234 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: const_reference 19959: operator[] (size_type __pos) const noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) __builtin_unreachable(); } while (false); 19959: return _M_data()[__pos]; 19959: } 19959: # 1252 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: reference 19959: operator[](size_type __pos) 19959: { 19959: 19959: 19959: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) __builtin_unreachable(); } while (false); 19959: 19959: ; 19959: return _M_data()[__pos]; 19959: } 19959: # 1274 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: const_reference 19959: at(size_type __n) const 19959: { 19959: if (__n >= this->size()) 19959: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 19959: 19959: , 19959: __n, this->size()); 19959: return _M_data()[__n]; 19959: } 19959: # 1296 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: reference 19959: at(size_type __n) 19959: { 19959: if (__n >= size()) 19959: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 19959: 19959: , 19959: __n, this->size()); 19959: return _M_data()[__n]; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reference 19959: front() noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 19959: return operator[](0); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reference 19959: front() const noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 19959: return operator[](0); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reference 19959: back() noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 19959: return operator[](this->size() - 1); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reference 19959: back() const noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 19959: return operator[](this->size() - 1); 19959: } 19959: # 1364 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: operator+=(const basic_string& __str) 19959: { return this->append(__str); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string& 19959: operator+=(const _CharT* __s) 19959: { return this->append(__s); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string& 19959: operator+=(_CharT __c) 19959: { 19959: this->push_back(__c); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string& 19959: operator+=(initializer_list<_CharT> __l) 19959: { return this->append(__l.begin(), __l.size()); } 19959: # 1410 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: 19959: _If_sv<_Tp, basic_string&> 19959: operator+=(const _Tp& __svt) 19959: { return this->append(__svt); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string& 19959: append(const basic_string& __str) 19959: { return this->append(__str._M_data(), __str.size()); } 19959: # 1440 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: append(const basic_string& __str, size_type __pos, size_type __n = npos) 19959: { return this->append(__str._M_data() 19959: + __str._M_check(__pos, "basic_string::append"), 19959: __str._M_limit(__pos, __n)); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string& 19959: append(const _CharT* __s, size_type __n) 19959: { 19959: ; 19959: _M_check_length(size_type(0), __n, "basic_string::append"); 19959: return _M_append(__s, __n); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string& 19959: append(const _CharT* __s) 19959: { 19959: ; 19959: const size_type __n = traits_type::length(__s); 19959: _M_check_length(size_type(0), __n, "basic_string::append"); 19959: return _M_append(__s, __n); 19959: } 19959: # 1485 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: append(size_type __n, _CharT __c) 19959: { return _M_replace_aux(this->size(), size_type(0), __n, __c); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string& 19959: append(initializer_list<_CharT> __l) 19959: { return this->append(__l.begin(), __l.size()); } 19959: # 1511 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template> 19959: 19959: 19959: 19959: 19959: basic_string& 19959: append(_InputIterator __first, _InputIterator __last) 19959: { return this->replace(end(), end(), __first, __last); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: _If_sv<_Tp, basic_string&> 19959: append(const _Tp& __svt) 19959: { 19959: __sv_type __sv = __svt; 19959: return this->append(__sv.data(), __sv.size()); 19959: } 19959: # 1543 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: 19959: _If_sv<_Tp, basic_string&> 19959: append(const _Tp& __svt, size_type __pos, size_type __n = npos) 19959: { 19959: __sv_type __sv = __svt; 19959: return _M_append(__sv.data() 19959: + std::__sv_check(__sv.size(), __pos, "basic_string::append"), 19959: std::__sv_limit(__sv.size(), __pos, __n)); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: push_back(_CharT __c) 19959: { 19959: const size_type __size = this->size(); 19959: if (__size + 1 > this->capacity()) 19959: this->_M_mutate(__size, size_type(0), 0, size_type(1)); 19959: traits_type::assign(this->_M_data()[__size], __c); 19959: this->_M_set_length(__size + 1); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string& 19959: assign(const basic_string& __str) 19959: { 19959: 19959: if (_Alloc_traits::_S_propagate_on_copy_assign()) 19959: { 19959: if (!_Alloc_traits::_S_always_equal() && !_M_is_local() 19959: && _M_get_allocator() != __str._M_get_allocator()) 19959: { 19959: 19959: 19959: if (__str.size() <= _S_local_capacity) 19959: { 19959: _M_destroy(_M_allocated_capacity); 19959: _M_data(_M_use_local_data()); 19959: _M_set_length(0); 19959: } 19959: else 19959: { 19959: const auto __len = __str.size(); 19959: auto __alloc = __str._M_get_allocator(); 19959: 19959: auto __ptr = _S_allocate(__alloc, __len + 1); 19959: _M_destroy(_M_allocated_capacity); 19959: _M_data(__ptr); 19959: _M_capacity(__len); 19959: _M_set_length(__len); 19959: } 19959: } 19959: std::__alloc_on_copy(_M_get_allocator(), __str._M_get_allocator()); 19959: } 19959: 19959: this->_M_assign(__str); 19959: return *this; 19959: } 19959: # 1621 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: assign(basic_string&& __str) 19959: noexcept(_Alloc_traits::_S_nothrow_move()) 19959: { 19959: 19959: 19959: return *this = std::move(__str); 19959: } 19959: # 1645 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: assign(const basic_string& __str, size_type __pos, size_type __n = npos) 19959: { return _M_replace(size_type(0), this->size(), __str._M_data() 19959: + __str._M_check(__pos, "basic_string::assign"), 19959: __str._M_limit(__pos, __n)); } 19959: # 1662 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: assign(const _CharT* __s, size_type __n) 19959: { 19959: ; 19959: return _M_replace(size_type(0), this->size(), __s, __n); 19959: } 19959: # 1679 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: assign(const _CharT* __s) 19959: { 19959: ; 19959: return _M_replace(size_type(0), this->size(), __s, 19959: traits_type::length(__s)); 19959: } 19959: # 1697 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: assign(size_type __n, _CharT __c) 19959: { return _M_replace_aux(size_type(0), this->size(), __n, __c); } 19959: # 1711 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template> 19959: 19959: 19959: 19959: 19959: basic_string& 19959: assign(_InputIterator __first, _InputIterator __last) 19959: { return this->replace(begin(), end(), __first, __last); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_string& 19959: assign(initializer_list<_CharT> __l) 19959: { return this->assign(__l.begin(), __l.size()); } 19959: # 1739 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: 19959: _If_sv<_Tp, basic_string&> 19959: assign(const _Tp& __svt) 19959: { 19959: __sv_type __sv = __svt; 19959: return this->assign(__sv.data(), __sv.size()); 19959: } 19959: # 1755 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: 19959: _If_sv<_Tp, basic_string&> 19959: assign(const _Tp& __svt, size_type __pos, size_type __n = npos) 19959: { 19959: __sv_type __sv = __svt; 19959: return _M_replace(size_type(0), this->size(), 19959: __sv.data() 19959: + std::__sv_check(__sv.size(), __pos, "basic_string::assign"), 19959: std::__sv_limit(__sv.size(), __pos, __n)); 19959: } 19959: # 1784 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: iterator 19959: insert(const_iterator __p, size_type __n, _CharT __c) 19959: { 19959: ; 19959: const size_type __pos = __p - begin(); 19959: this->replace(__p, __p, __n, __c); 19959: return iterator(this->_M_data() + __pos); 19959: } 19959: # 1827 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template> 19959: 19959: iterator 19959: insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) 19959: { 19959: ; 19959: const size_type __pos = __p - begin(); 19959: this->replace(__p, __p, __beg, __end); 19959: return iterator(this->_M_data() + __pos); 19959: } 19959: # 1864 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: iterator 19959: insert(const_iterator __p, initializer_list<_CharT> __l) 19959: { return this->insert(__p, __l.begin(), __l.end()); } 19959: # 1892 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: insert(size_type __pos1, const basic_string& __str) 19959: { return this->replace(__pos1, size_type(0), 19959: __str._M_data(), __str.size()); } 19959: # 1916 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: insert(size_type __pos1, const basic_string& __str, 19959: size_type __pos2, size_type __n = npos) 19959: { return this->replace(__pos1, size_type(0), __str._M_data() 19959: + __str._M_check(__pos2, "basic_string::insert"), 19959: __str._M_limit(__pos2, __n)); } 19959: # 1940 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: insert(size_type __pos, const _CharT* __s, size_type __n) 19959: { return this->replace(__pos, size_type(0), __s, __n); } 19959: # 1960 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: insert(size_type __pos, const _CharT* __s) 19959: { 19959: ; 19959: return this->replace(__pos, size_type(0), __s, 19959: traits_type::length(__s)); 19959: } 19959: # 1985 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: insert(size_type __pos, size_type __n, _CharT __c) 19959: { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), 19959: size_type(0), __n, __c); } 19959: # 2004 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: iterator 19959: insert(__const_iterator __p, _CharT __c) 19959: { 19959: ; 19959: const size_type __pos = __p - begin(); 19959: _M_replace_aux(__pos, size_type(0), size_type(1), __c); 19959: return iterator(_M_data() + __pos); 19959: } 19959: # 2021 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: 19959: _If_sv<_Tp, basic_string&> 19959: insert(size_type __pos, const _Tp& __svt) 19959: { 19959: __sv_type __sv = __svt; 19959: return this->insert(__pos, __sv.data(), __sv.size()); 19959: } 19959: # 2038 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: 19959: _If_sv<_Tp, basic_string&> 19959: insert(size_type __pos1, const _Tp& __svt, 19959: size_type __pos2, size_type __n = npos) 19959: { 19959: __sv_type __sv = __svt; 19959: return this->replace(__pos1, size_type(0), 19959: __sv.data() 19959: + std::__sv_check(__sv.size(), __pos2, "basic_string::insert"), 19959: std::__sv_limit(__sv.size(), __pos2, __n)); 19959: } 19959: # 2067 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: erase(size_type __pos = 0, size_type __n = npos) 19959: { 19959: _M_check(__pos, "basic_string::erase"); 19959: if (__n == npos) 19959: this->_M_set_length(__pos); 19959: else if (__n != 0) 19959: this->_M_erase(__pos, _M_limit(__pos, __n)); 19959: return *this; 19959: } 19959: # 2087 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: iterator 19959: erase(__const_iterator __position) 19959: { 19959: 19959: ; 19959: const size_type __pos = __position - begin(); 19959: this->_M_erase(__pos, size_type(1)); 19959: return iterator(_M_data() + __pos); 19959: } 19959: # 2107 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: iterator 19959: erase(__const_iterator __first, __const_iterator __last) 19959: { 19959: 19959: ; 19959: const size_type __pos = __first - begin(); 19959: if (__last == end()) 19959: this->_M_set_length(__pos); 19959: else 19959: this->_M_erase(__pos, __last - __first); 19959: return iterator(this->_M_data() + __pos); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: pop_back() noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 19959: _M_erase(size() - 1, 1); 19959: } 19959: # 2153 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: replace(size_type __pos, size_type __n, const basic_string& __str) 19959: { return this->replace(__pos, __n, __str._M_data(), __str.size()); } 19959: # 2176 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: replace(size_type __pos1, size_type __n1, const basic_string& __str, 19959: size_type __pos2, size_type __n2 = npos) 19959: { return this->replace(__pos1, __n1, __str._M_data() 19959: + __str._M_check(__pos2, "basic_string::replace"), 19959: __str._M_limit(__pos2, __n2)); } 19959: # 2202 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: replace(size_type __pos, size_type __n1, const _CharT* __s, 19959: size_type __n2) 19959: { 19959: ; 19959: return _M_replace(_M_check(__pos, "basic_string::replace"), 19959: _M_limit(__pos, __n1), __s, __n2); 19959: } 19959: # 2228 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: replace(size_type __pos, size_type __n1, const _CharT* __s) 19959: { 19959: ; 19959: return this->replace(__pos, __n1, __s, traits_type::length(__s)); 19959: } 19959: # 2253 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) 19959: { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), 19959: _M_limit(__pos, __n1), __n2, __c); } 19959: # 2272 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: replace(__const_iterator __i1, __const_iterator __i2, 19959: const basic_string& __str) 19959: { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } 19959: # 2293 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: replace(__const_iterator __i1, __const_iterator __i2, 19959: const _CharT* __s, size_type __n) 19959: { 19959: 19959: ; 19959: return this->replace(__i1 - begin(), __i2 - __i1, __s, __n); 19959: } 19959: # 2316 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) 19959: { 19959: ; 19959: return this->replace(__i1, __i2, __s, traits_type::length(__s)); 19959: } 19959: # 2338 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: replace(__const_iterator __i1, __const_iterator __i2, size_type __n, 19959: _CharT __c) 19959: { 19959: 19959: ; 19959: return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c); 19959: } 19959: # 2364 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template> 19959: 19959: basic_string& 19959: replace(const_iterator __i1, const_iterator __i2, 19959: _InputIterator __k1, _InputIterator __k2) 19959: { 19959: 19959: ; 19959: ; 19959: return this->_M_replace_dispatch(__i1, __i2, __k1, __k2, 19959: std::__false_type()); 19959: } 19959: # 2397 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& 19959: replace(__const_iterator __i1, __const_iterator __i2, 19959: _CharT* __k1, _CharT* __k2) 19959: { 19959: 19959: ; 19959: ; 19959: return this->replace(__i1 - begin(), __i2 - __i1, 19959: __k1, __k2 - __k1); 19959: } 19959: 19959: 19959: basic_string& 19959: replace(__const_iterator __i1, __const_iterator __i2, 19959: const _CharT* __k1, const _CharT* __k2) 19959: { 19959: 19959: ; 19959: ; 19959: return this->replace(__i1 - begin(), __i2 - __i1, 19959: __k1, __k2 - __k1); 19959: } 19959: 19959: 19959: basic_string& 19959: replace(__const_iterator __i1, __const_iterator __i2, 19959: iterator __k1, iterator __k2) 19959: { 19959: 19959: ; 19959: ; 19959: return this->replace(__i1 - begin(), __i2 - __i1, 19959: __k1.base(), __k2 - __k1); 19959: } 19959: 19959: 19959: basic_string& 19959: replace(__const_iterator __i1, __const_iterator __i2, 19959: const_iterator __k1, const_iterator __k2) 19959: { 19959: 19959: ; 19959: ; 19959: return this->replace(__i1 - begin(), __i2 - __i1, 19959: __k1.base(), __k2 - __k1); 19959: } 19959: # 2460 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: basic_string& replace(const_iterator __i1, const_iterator __i2, 19959: initializer_list<_CharT> __l) 19959: { return this->replace(__i1, __i2, __l.begin(), __l.size()); } 19959: # 2474 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: 19959: _If_sv<_Tp, basic_string&> 19959: replace(size_type __pos, size_type __n, const _Tp& __svt) 19959: { 19959: __sv_type __sv = __svt; 19959: return this->replace(__pos, __n, __sv.data(), __sv.size()); 19959: } 19959: # 2492 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: 19959: _If_sv<_Tp, basic_string&> 19959: replace(size_type __pos1, size_type __n1, const _Tp& __svt, 19959: size_type __pos2, size_type __n2 = npos) 19959: { 19959: __sv_type __sv = __svt; 19959: return this->replace(__pos1, __n1, 19959: __sv.data() 19959: + std::__sv_check(__sv.size(), __pos2, "basic_string::replace"), 19959: std::__sv_limit(__sv.size(), __pos2, __n2)); 19959: } 19959: # 2514 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: 19959: _If_sv<_Tp, basic_string&> 19959: replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) 19959: { 19959: __sv_type __sv = __svt; 19959: return this->replace(__i1 - begin(), __i2 - __i1, __sv); 19959: } 19959: 19959: 19959: private: 19959: template 19959: 19959: basic_string& 19959: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 19959: _Integer __n, _Integer __val, __true_type) 19959: { return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __val); } 19959: 19959: template 19959: 19959: basic_string& 19959: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 19959: _InputIterator __k1, _InputIterator __k2, 19959: __false_type); 19959: 19959: 19959: basic_string& 19959: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 19959: _CharT __c); 19959: 19959: __attribute__((__noinline__, __noclone__, __cold__)) void 19959: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 19959: const size_type __len2, const size_type __how_much); 19959: 19959: 19959: basic_string& 19959: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 19959: const size_type __len2); 19959: 19959: 19959: basic_string& 19959: _M_append(const _CharT* __s, size_type __n); 19959: 19959: public: 19959: # 2571 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: size_type 19959: copy(_CharT* __s, size_type __n, size_type __pos = 0) const; 19959: # 2582 "/usr/include/c++/13/bits/basic_string.h" 3 19959: 19959: void 19959: swap(basic_string& __s) noexcept; 19959: # 2593 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: const _CharT* 19959: c_str() const noexcept 19959: { return _M_data(); } 19959: # 2606 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: const _CharT* 19959: data() const noexcept 19959: { return _M_data(); } 19959: # 2618 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: _CharT* 19959: data() noexcept 19959: { return _M_data(); } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return _M_get_allocator(); } 19959: # 2644 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find(const _CharT* __s, size_type __pos, size_type __n) const 19959: noexcept; 19959: # 2659 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find(const basic_string& __str, size_type __pos = 0) const 19959: noexcept 19959: { return this->find(__str.data(), __pos, __str.size()); } 19959: # 2672 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: _If_sv<_Tp, size_type> 19959: find(const _Tp& __svt, size_type __pos = 0) const 19959: noexcept(is_same<_Tp, __sv_type>::value) 19959: { 19959: __sv_type __sv = __svt; 19959: return this->find(__sv.data(), __pos, __sv.size()); 19959: } 19959: # 2693 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find(const _CharT* __s, size_type __pos = 0) const noexcept 19959: { 19959: ; 19959: return this->find(__s, __pos, traits_type::length(__s)); 19959: } 19959: # 2711 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find(_CharT __c, size_type __pos = 0) const noexcept; 19959: # 2725 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: rfind(const basic_string& __str, size_type __pos = npos) const 19959: noexcept 19959: { return this->rfind(__str.data(), __pos, __str.size()); } 19959: # 2738 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: _If_sv<_Tp, size_type> 19959: rfind(const _Tp& __svt, size_type __pos = npos) const 19959: noexcept(is_same<_Tp, __sv_type>::value) 19959: { 19959: __sv_type __sv = __svt; 19959: return this->rfind(__sv.data(), __pos, __sv.size()); 19959: } 19959: # 2761 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: rfind(const _CharT* __s, size_type __pos, size_type __n) const 19959: noexcept; 19959: # 2776 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: rfind(const _CharT* __s, size_type __pos = npos) const 19959: { 19959: ; 19959: return this->rfind(__s, __pos, traits_type::length(__s)); 19959: } 19959: # 2794 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: rfind(_CharT __c, size_type __pos = npos) const noexcept; 19959: # 2809 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_first_of(const basic_string& __str, size_type __pos = 0) const 19959: noexcept 19959: { return this->find_first_of(__str.data(), __pos, __str.size()); } 19959: # 2823 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: _If_sv<_Tp, size_type> 19959: find_first_of(const _Tp& __svt, size_type __pos = 0) const 19959: noexcept(is_same<_Tp, __sv_type>::value) 19959: { 19959: __sv_type __sv = __svt; 19959: return this->find_first_of(__sv.data(), __pos, __sv.size()); 19959: } 19959: # 2846 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 19959: noexcept; 19959: # 2861 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_first_of(const _CharT* __s, size_type __pos = 0) const 19959: noexcept 19959: { 19959: ; 19959: return this->find_first_of(__s, __pos, traits_type::length(__s)); 19959: } 19959: # 2882 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 19959: { return this->find(__c, __pos); } 19959: # 2898 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_last_of(const basic_string& __str, size_type __pos = npos) const 19959: noexcept 19959: { return this->find_last_of(__str.data(), __pos, __str.size()); } 19959: # 2912 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: _If_sv<_Tp, size_type> 19959: find_last_of(const _Tp& __svt, size_type __pos = npos) const 19959: noexcept(is_same<_Tp, __sv_type>::value) 19959: { 19959: __sv_type __sv = __svt; 19959: return this->find_last_of(__sv.data(), __pos, __sv.size()); 19959: } 19959: # 2935 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 19959: noexcept; 19959: # 2950 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_last_of(const _CharT* __s, size_type __pos = npos) const 19959: noexcept 19959: { 19959: ; 19959: return this->find_last_of(__s, __pos, traits_type::length(__s)); 19959: } 19959: # 2971 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_last_of(_CharT __c, size_type __pos = npos) const noexcept 19959: { return this->rfind(__c, __pos); } 19959: # 2986 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_first_not_of(const basic_string& __str, size_type __pos = 0) const 19959: noexcept 19959: { return this->find_first_not_of(__str.data(), __pos, __str.size()); } 19959: # 3000 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: _If_sv<_Tp, size_type> 19959: find_first_not_of(const _Tp& __svt, size_type __pos = 0) const 19959: noexcept(is_same<_Tp, __sv_type>::value) 19959: { 19959: __sv_type __sv = __svt; 19959: return this->find_first_not_of(__sv.data(), __pos, __sv.size()); 19959: } 19959: # 3023 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_first_not_of(const _CharT* __s, size_type __pos, 19959: size_type __n) const noexcept; 19959: # 3038 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_first_not_of(const _CharT* __s, size_type __pos = 0) const 19959: noexcept 19959: { 19959: ; 19959: return this->find_first_not_of(__s, __pos, traits_type::length(__s)); 19959: } 19959: # 3057 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_first_not_of(_CharT __c, size_type __pos = 0) const 19959: noexcept; 19959: # 3073 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_last_not_of(const basic_string& __str, size_type __pos = npos) const 19959: noexcept 19959: { return this->find_last_not_of(__str.data(), __pos, __str.size()); } 19959: # 3087 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: _If_sv<_Tp, size_type> 19959: find_last_not_of(const _Tp& __svt, size_type __pos = npos) const 19959: noexcept(is_same<_Tp, __sv_type>::value) 19959: { 19959: __sv_type __sv = __svt; 19959: return this->find_last_not_of(__sv.data(), __pos, __sv.size()); 19959: } 19959: # 3110 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_last_not_of(const _CharT* __s, size_type __pos, 19959: size_type __n) const noexcept; 19959: # 3125 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_last_not_of(const _CharT* __s, size_type __pos = npos) const 19959: noexcept 19959: { 19959: ; 19959: return this->find_last_not_of(__s, __pos, traits_type::length(__s)); 19959: } 19959: # 3144 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: size_type 19959: find_last_not_of(_CharT __c, size_type __pos = npos) const 19959: noexcept; 19959: # 3161 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: basic_string 19959: substr(size_type __pos = 0, size_type __n = npos) const 19959: { return basic_string(*this, 19959: _M_check(__pos, "basic_string::substr"), __n); } 19959: # 3181 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: int 19959: compare(const basic_string& __str) const 19959: { 19959: const size_type __size = this->size(); 19959: const size_type __osize = __str.size(); 19959: const size_type __len = std::min(__size, __osize); 19959: 19959: int __r = traits_type::compare(_M_data(), __str.data(), __len); 19959: if (!__r) 19959: __r = _S_compare(__size, __osize); 19959: return __r; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: _If_sv<_Tp, int> 19959: compare(const _Tp& __svt) const 19959: noexcept(is_same<_Tp, __sv_type>::value) 19959: { 19959: __sv_type __sv = __svt; 19959: const size_type __size = this->size(); 19959: const size_type __osize = __sv.size(); 19959: const size_type __len = std::min(__size, __osize); 19959: 19959: int __r = traits_type::compare(_M_data(), __sv.data(), __len); 19959: if (!__r) 19959: __r = _S_compare(__size, __osize); 19959: return __r; 19959: } 19959: # 3226 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: _If_sv<_Tp, int> 19959: compare(size_type __pos, size_type __n, const _Tp& __svt) const 19959: noexcept(is_same<_Tp, __sv_type>::value) 19959: { 19959: __sv_type __sv = __svt; 19959: return __sv_type(*this).substr(__pos, __n).compare(__sv); 19959: } 19959: # 3246 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: _If_sv<_Tp, int> 19959: compare(size_type __pos1, size_type __n1, const _Tp& __svt, 19959: size_type __pos2, size_type __n2 = npos) const 19959: noexcept(is_same<_Tp, __sv_type>::value) 19959: { 19959: __sv_type __sv = __svt; 19959: return __sv_type(*this) 19959: .substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2)); 19959: } 19959: # 3278 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: int 19959: compare(size_type __pos, size_type __n, const basic_string& __str) const 19959: { 19959: _M_check(__pos, "basic_string::compare"); 19959: __n = _M_limit(__pos, __n); 19959: const size_type __osize = __str.size(); 19959: const size_type __len = std::min(__n, __osize); 19959: int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); 19959: if (!__r) 19959: __r = _S_compare(__n, __osize); 19959: return __r; 19959: } 19959: # 3315 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: int 19959: compare(size_type __pos1, size_type __n1, const basic_string& __str, 19959: size_type __pos2, size_type __n2 = npos) const 19959: { 19959: _M_check(__pos1, "basic_string::compare"); 19959: __str._M_check(__pos2, "basic_string::compare"); 19959: __n1 = _M_limit(__pos1, __n1); 19959: __n2 = __str._M_limit(__pos2, __n2); 19959: const size_type __len = std::min(__n1, __n2); 19959: int __r = traits_type::compare(_M_data() + __pos1, 19959: __str.data() + __pos2, __len); 19959: if (!__r) 19959: __r = _S_compare(__n1, __n2); 19959: return __r; 19959: } 19959: # 3346 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: int 19959: compare(const _CharT* __s) const noexcept 19959: { 19959: ; 19959: const size_type __size = this->size(); 19959: const size_type __osize = traits_type::length(__s); 19959: const size_type __len = std::min(__size, __osize); 19959: int __r = traits_type::compare(_M_data(), __s, __len); 19959: if (!__r) 19959: __r = _S_compare(__size, __osize); 19959: return __r; 19959: } 19959: # 3381 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: int 19959: compare(size_type __pos, size_type __n1, const _CharT* __s) const 19959: { 19959: ; 19959: _M_check(__pos, "basic_string::compare"); 19959: __n1 = _M_limit(__pos, __n1); 19959: const size_type __osize = traits_type::length(__s); 19959: const size_type __len = std::min(__n1, __osize); 19959: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 19959: if (!__r) 19959: __r = _S_compare(__n1, __osize); 19959: return __r; 19959: } 19959: # 3420 "/usr/include/c++/13/bits/basic_string.h" 3 19959: [[__nodiscard__]] 19959: int 19959: compare(size_type __pos, size_type __n1, const _CharT* __s, 19959: size_type __n2) const 19959: { 19959: ; 19959: _M_check(__pos, "basic_string::compare"); 19959: __n1 = _M_limit(__pos, __n1); 19959: const size_type __len = std::min(__n1, __n2); 19959: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 19959: if (!__r) 19959: __r = _S_compare(__n1, __n2); 19959: return __r; 19959: } 19959: # 3485 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template friend class basic_stringbuf; 19959: }; 19959: } 19959: 19959: } 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: namespace __cxx11 { 19959: template::value_type, 19959: typename _Allocator = allocator<_CharT>, 19959: typename = _RequireInputIter<_InputIterator>, 19959: typename = _RequireAllocator<_Allocator>> 19959: basic_string(_InputIterator, _InputIterator, _Allocator = _Allocator()) 19959: -> basic_string<_CharT, char_traits<_CharT>, _Allocator>; 19959: 19959: 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: basic_string(basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator()) 19959: -> basic_string<_CharT, _Traits, _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: basic_string(basic_string_view<_CharT, _Traits>, 19959: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 19959: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 19959: const _Allocator& = _Allocator()) 19959: -> basic_string<_CharT, _Traits, _Allocator>; 19959: } 19959: 19959: 19959: template 19959: 19959: inline _Str 19959: __str_concat(typename _Str::value_type const* __lhs, 19959: typename _Str::size_type __lhs_len, 19959: typename _Str::value_type const* __rhs, 19959: typename _Str::size_type __rhs_len, 19959: typename _Str::allocator_type const& __a) 19959: { 19959: typedef typename _Str::allocator_type allocator_type; 19959: typedef __gnu_cxx::__alloc_traits _Alloc_traits; 19959: _Str __str(_Alloc_traits::_S_select_on_copy(__a)); 19959: __str.reserve(__lhs_len + __rhs_len); 19959: __str.append(__lhs, __lhs_len); 19959: __str.append(__rhs, __rhs_len); 19959: return __str; 19959: } 19959: # 3550 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline basic_string<_CharT, _Traits, _Alloc> 19959: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: { 19959: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 19959: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 19959: __rhs.c_str(), __rhs.size(), 19959: __lhs.get_allocator()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline basic_string<_CharT,_Traits,_Alloc> 19959: operator+(const _CharT* __lhs, 19959: const basic_string<_CharT,_Traits,_Alloc>& __rhs) 19959: { 19959: ; 19959: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 19959: return std::__str_concat<_Str>(__lhs, _Traits::length(__lhs), 19959: __rhs.c_str(), __rhs.size(), 19959: __rhs.get_allocator()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline basic_string<_CharT,_Traits,_Alloc> 19959: operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs) 19959: { 19959: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 19959: return std::__str_concat<_Str>(__builtin_addressof(__lhs), 1, 19959: __rhs.c_str(), __rhs.size(), 19959: __rhs.get_allocator()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline basic_string<_CharT, _Traits, _Alloc> 19959: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const _CharT* __rhs) 19959: { 19959: ; 19959: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 19959: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 19959: __rhs, _Traits::length(__rhs), 19959: __lhs.get_allocator()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline basic_string<_CharT, _Traits, _Alloc> 19959: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) 19959: { 19959: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 19959: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 19959: __builtin_addressof(__rhs), 1, 19959: __lhs.get_allocator()); 19959: } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline basic_string<_CharT, _Traits, _Alloc> 19959: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: { return std::move(__lhs.append(__rhs)); } 19959: 19959: template 19959: 19959: inline basic_string<_CharT, _Traits, _Alloc> 19959: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 19959: { return std::move(__rhs.insert(0, __lhs)); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline basic_string<_CharT, _Traits, _Alloc> 19959: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 19959: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 19959: { 19959: 19959: using _Alloc_traits = allocator_traits<_Alloc>; 19959: bool __use_rhs = false; 19959: if constexpr (typename _Alloc_traits::is_always_equal{}) 19959: __use_rhs = true; 19959: else if (__lhs.get_allocator() == __rhs.get_allocator()) 19959: __use_rhs = true; 19959: if (__use_rhs) 19959: 19959: { 19959: const auto __size = __lhs.size() + __rhs.size(); 19959: if (__size > __lhs.capacity() && __size <= __rhs.capacity()) 19959: return std::move(__rhs.insert(0, __lhs)); 19959: } 19959: return std::move(__lhs.append(__rhs)); 19959: } 19959: 19959: template 19959: [[__nodiscard__]] [[__nodiscard__]] 19959: inline basic_string<_CharT, _Traits, _Alloc> 19959: operator+(const _CharT* __lhs, 19959: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 19959: { return std::move(__rhs.insert(0, __lhs)); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline basic_string<_CharT, _Traits, _Alloc> 19959: operator+(_CharT __lhs, 19959: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 19959: { return std::move(__rhs.insert(0, 1, __lhs)); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline basic_string<_CharT, _Traits, _Alloc> 19959: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 19959: const _CharT* __rhs) 19959: { return std::move(__lhs.append(__rhs)); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline basic_string<_CharT, _Traits, _Alloc> 19959: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 19959: _CharT __rhs) 19959: { return std::move(__lhs.append(1, __rhs)); } 19959: # 3707 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: noexcept 19959: { 19959: return __lhs.size() == __rhs.size() 19959: && !_Traits::compare(__lhs.data(), __rhs.data(), __lhs.size()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const _CharT* __rhs) 19959: { 19959: return __lhs.size() == _Traits::length(__rhs) 19959: && !_Traits::compare(__lhs.data(), __rhs, __lhs.size()); 19959: } 19959: # 3771 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(const _CharT* __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: { return __rhs == __lhs; } 19959: # 3785 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: noexcept 19959: { return !(__lhs == __rhs); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator!=(const _CharT* __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: { return !(__rhs == __lhs); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const _CharT* __rhs) 19959: { return !(__lhs == __rhs); } 19959: # 3826 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: noexcept 19959: { return __lhs.compare(__rhs) < 0; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const _CharT* __rhs) 19959: { return __lhs.compare(__rhs) < 0; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<(const _CharT* __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: { return __rhs.compare(__lhs) > 0; } 19959: # 3867 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: noexcept 19959: { return __lhs.compare(__rhs) > 0; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const _CharT* __rhs) 19959: { return __lhs.compare(__rhs) > 0; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>(const _CharT* __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: { return __rhs.compare(__lhs) < 0; } 19959: # 3908 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: noexcept 19959: { return __lhs.compare(__rhs) <= 0; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const _CharT* __rhs) 19959: { return __lhs.compare(__rhs) <= 0; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<=(const _CharT* __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: { return __rhs.compare(__lhs) >= 0; } 19959: # 3949 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: noexcept 19959: { return __lhs.compare(__rhs) >= 0; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: const _CharT* __rhs) 19959: { return __lhs.compare(__rhs) >= 0; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>=(const _CharT* __lhs, 19959: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: { return __rhs.compare(__lhs) <= 0; } 19959: # 3991 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: 19959: inline void 19959: swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, 19959: basic_string<_CharT, _Traits, _Alloc>& __rhs) 19959: noexcept(noexcept(__lhs.swap(__rhs))) 19959: { __lhs.swap(__rhs); } 19959: # 4012 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: operator>>(basic_istream<_CharT, _Traits>& __is, 19959: basic_string<_CharT, _Traits, _Alloc>& __str); 19959: 19959: template<> 19959: basic_istream& 19959: operator>>(basic_istream& __is, basic_string& __str); 19959: # 4030 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: inline basic_ostream<_CharT, _Traits>& 19959: operator<<(basic_ostream<_CharT, _Traits>& __os, 19959: const basic_string<_CharT, _Traits, _Alloc>& __str) 19959: { 19959: 19959: 19959: return __ostream_insert(__os, __str.data(), __str.size()); 19959: } 19959: # 4053 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: getline(basic_istream<_CharT, _Traits>& __is, 19959: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); 19959: # 4070 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: inline basic_istream<_CharT, _Traits>& 19959: getline(basic_istream<_CharT, _Traits>& __is, 19959: basic_string<_CharT, _Traits, _Alloc>& __str) 19959: { return std::getline(__is, __str, __is.widen('\n')); } 19959: 19959: 19959: 19959: template 19959: inline basic_istream<_CharT, _Traits>& 19959: getline(basic_istream<_CharT, _Traits>&& __is, 19959: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 19959: { return std::getline(__is, __str, __delim); } 19959: 19959: 19959: template 19959: inline basic_istream<_CharT, _Traits>& 19959: getline(basic_istream<_CharT, _Traits>&& __is, 19959: basic_string<_CharT, _Traits, _Alloc>& __str) 19959: { return std::getline(__is, __str); } 19959: 19959: 19959: template<> 19959: basic_istream& 19959: getline(basic_istream& __in, basic_string& __str, 19959: char __delim); 19959: 19959: 19959: template<> 19959: basic_istream& 19959: getline(basic_istream& __in, basic_string& __str, 19959: wchar_t __delim); 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/ext/string_conversions.h" 1 3 19959: # 32 "/usr/include/c++/13/ext/string_conversions.h" 3 19959: 19959: # 33 "/usr/include/c++/13/ext/string_conversions.h" 3 19959: # 43 "/usr/include/c++/13/ext/string_conversions.h" 3 19959: # 1 "/usr/include/c++/13/cstdlib" 1 3 19959: # 39 "/usr/include/c++/13/cstdlib" 3 19959: 19959: # 40 "/usr/include/c++/13/cstdlib" 3 19959: # 44 "/usr/include/c++/13/ext/string_conversions.h" 2 3 19959: # 1 "/usr/include/c++/13/cwchar" 1 3 19959: # 39 "/usr/include/c++/13/cwchar" 3 19959: 19959: # 40 "/usr/include/c++/13/cwchar" 3 19959: # 45 "/usr/include/c++/13/ext/string_conversions.h" 2 3 19959: # 1 "/usr/include/c++/13/cstdio" 1 3 19959: # 39 "/usr/include/c++/13/cstdio" 3 19959: 19959: # 40 "/usr/include/c++/13/cstdio" 3 19959: 19959: 19959: # 1 "/usr/include/stdio.h" 1 3 4 19959: # 27 "/usr/include/stdio.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 19959: # 28 "/usr/include/stdio.h" 2 3 4 19959: 19959: extern "C" { 19959: 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 34 "/usr/include/stdio.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdarg.h" 1 3 4 19959: # 37 "/usr/include/stdio.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 1 3 4 19959: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 3 4 19959: typedef struct _G_fpos_t 19959: { 19959: __off_t __pos; 19959: __mbstate_t __state; 19959: } __fpos_t; 19959: # 40 "/usr/include/stdio.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 1 3 4 19959: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 3 4 19959: typedef struct _G_fpos64_t 19959: { 19959: __off64_t __pos; 19959: __mbstate_t __state; 19959: } __fpos64_t; 19959: # 41 "/usr/include/stdio.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 1 3 4 19959: # 35 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 3 4 19959: struct _IO_FILE; 19959: struct _IO_marker; 19959: struct _IO_codecvt; 19959: struct _IO_wide_data; 19959: 19959: 19959: 19959: 19959: typedef void _IO_lock_t; 19959: 19959: 19959: 19959: 19959: 19959: struct _IO_FILE 19959: { 19959: int _flags; 19959: 19959: 19959: char *_IO_read_ptr; 19959: char *_IO_read_end; 19959: char *_IO_read_base; 19959: char *_IO_write_base; 19959: char *_IO_write_ptr; 19959: char *_IO_write_end; 19959: char *_IO_buf_base; 19959: char *_IO_buf_end; 19959: 19959: 19959: char *_IO_save_base; 19959: char *_IO_backup_base; 19959: char *_IO_save_end; 19959: 19959: struct _IO_marker *_markers; 19959: 19959: struct _IO_FILE *_chain; 19959: 19959: int _fileno; 19959: int _flags2; 19959: __off_t _old_offset; 19959: 19959: 19959: unsigned short _cur_column; 19959: signed char _vtable_offset; 19959: char _shortbuf[1]; 19959: 19959: _IO_lock_t *_lock; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __off64_t _offset; 19959: 19959: struct _IO_codecvt *_codecvt; 19959: struct _IO_wide_data *_wide_data; 19959: struct _IO_FILE *_freeres_list; 19959: void *_freeres_buf; 19959: size_t __pad5; 19959: int _mode; 19959: 19959: char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; 19959: }; 19959: # 44 "/usr/include/stdio.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 1 3 4 19959: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 3 4 19959: typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, 19959: size_t __nbytes); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, 19959: size_t __nbytes); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); 19959: 19959: 19959: typedef int cookie_close_function_t (void *__cookie); 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef struct _IO_cookie_io_functions_t 19959: { 19959: cookie_read_function_t *read; 19959: cookie_write_function_t *write; 19959: cookie_seek_function_t *seek; 19959: cookie_close_function_t *close; 19959: } cookie_io_functions_t; 19959: # 47 "/usr/include/stdio.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: typedef __gnuc_va_list va_list; 19959: # 84 "/usr/include/stdio.h" 3 4 19959: typedef __fpos_t fpos_t; 19959: 19959: 19959: 19959: 19959: typedef __fpos64_t fpos64_t; 19959: # 133 "/usr/include/stdio.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio_lim.h" 1 3 4 19959: # 134 "/usr/include/stdio.h" 2 3 4 19959: # 143 "/usr/include/stdio.h" 3 4 19959: extern FILE *stdin; 19959: extern FILE *stdout; 19959: extern FILE *stderr; 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int remove (const char *__filename) noexcept (true); 19959: 19959: extern int rename (const char *__old, const char *__new) noexcept (true); 19959: 19959: 19959: 19959: extern int renameat (int __oldfd, const char *__old, int __newfd, 19959: const char *__new) noexcept (true); 19959: # 170 "/usr/include/stdio.h" 3 4 19959: extern int renameat2 (int __oldfd, const char *__old, int __newfd, 19959: const char *__new, unsigned int __flags) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int fclose (FILE *__stream); 19959: # 188 "/usr/include/stdio.h" 3 4 19959: extern FILE *tmpfile (void) 19959: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 19959: # 200 "/usr/include/stdio.h" 3 4 19959: extern FILE *tmpfile64 (void) 19959: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: extern char *tmpnam (char[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern char *tmpnam_r (char __s[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: # 222 "/usr/include/stdio.h" 3 4 19959: extern char *tempnam (const char *__dir, const char *__pfx) 19959: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int fflush (FILE *__stream); 19959: # 239 "/usr/include/stdio.h" 3 4 19959: extern int fflush_unlocked (FILE *__stream); 19959: # 249 "/usr/include/stdio.h" 3 4 19959: extern int fcloseall (void); 19959: # 258 "/usr/include/stdio.h" 3 4 19959: extern FILE *fopen (const char *__restrict __filename, 19959: const char *__restrict __modes) 19959: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern FILE *freopen (const char *__restrict __filename, 19959: const char *__restrict __modes, 19959: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 19959: # 283 "/usr/include/stdio.h" 3 4 19959: extern FILE *fopen64 (const char *__restrict __filename, 19959: const char *__restrict __modes) 19959: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 19959: extern FILE *freopen64 (const char *__restrict __filename, 19959: const char *__restrict __modes, 19959: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern FILE *fdopen (int __fd, const char *__modes) noexcept (true) 19959: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: extern FILE *fopencookie (void *__restrict __magic_cookie, 19959: const char *__restrict __modes, 19959: cookie_io_functions_t __io_funcs) noexcept (true) 19959: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) 19959: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) noexcept (true) 19959: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 19959: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))); 19959: 19959: 19959: 19959: 19959: 19959: extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) noexcept (true); 19959: 19959: 19959: 19959: extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, 19959: int __modes, size_t __n) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, 19959: size_t __size) noexcept (true); 19959: 19959: 19959: extern void setlinebuf (FILE *__stream) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int fprintf (FILE *__restrict __stream, 19959: const char *__restrict __format, ...); 19959: 19959: 19959: 19959: 19959: extern int printf (const char *__restrict __format, ...); 19959: 19959: extern int sprintf (char *__restrict __s, 19959: const char *__restrict __format, ...) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, 19959: __gnuc_va_list __arg); 19959: 19959: 19959: 19959: 19959: extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); 19959: 19959: extern int vsprintf (char *__restrict __s, const char *__restrict __format, 19959: __gnuc_va_list __arg) noexcept (true); 19959: 19959: 19959: 19959: extern int snprintf (char *__restrict __s, size_t __maxlen, 19959: const char *__restrict __format, ...) 19959: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 19959: 19959: extern int vsnprintf (char *__restrict __s, size_t __maxlen, 19959: const char *__restrict __format, __gnuc_va_list __arg) 19959: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 19959: 19959: 19959: 19959: 19959: 19959: extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, 19959: __gnuc_va_list __arg) 19959: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 19959: extern int __asprintf (char **__restrict __ptr, 19959: const char *__restrict __fmt, ...) 19959: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 19959: extern int asprintf (char **__restrict __ptr, 19959: const char *__restrict __fmt, ...) 19959: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern int vdprintf (int __fd, const char *__restrict __fmt, 19959: __gnuc_va_list __arg) 19959: __attribute__ ((__format__ (__printf__, 2, 0))); 19959: extern int dprintf (int __fd, const char *__restrict __fmt, ...) 19959: __attribute__ ((__format__ (__printf__, 2, 3))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int fscanf (FILE *__restrict __stream, 19959: const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 19959: 19959: extern int sscanf (const char *__restrict __s, 19959: const char *__restrict __format, ...) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 19959: # 431 "/usr/include/stdio.h" 2 3 4 19959: 19959: 19959: 19959: extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf") 19959: 19959: __attribute__ ((__warn_unused_result__)); 19959: extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf") 19959: __attribute__ ((__warn_unused_result__)); 19959: extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc99_sscanf") 19959: 19959: ; 19959: # 459 "/usr/include/stdio.h" 3 4 19959: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, 19959: __gnuc_va_list __arg) 19959: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) 19959: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: extern int vsscanf (const char *__restrict __s, 19959: const char *__restrict __format, __gnuc_va_list __arg) 19959: noexcept (true) __attribute__ ((__format__ (__scanf__, 2, 0))); 19959: 19959: 19959: 19959: 19959: 19959: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf") 19959: 19959: 19959: 19959: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 19959: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf") 19959: 19959: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 19959: extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc99_vsscanf") 19959: 19959: 19959: 19959: __attribute__ ((__format__ (__scanf__, 2, 0))); 19959: # 513 "/usr/include/stdio.h" 3 4 19959: extern int fgetc (FILE *__stream); 19959: extern int getc (FILE *__stream); 19959: 19959: 19959: 19959: 19959: 19959: extern int getchar (void); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int getc_unlocked (FILE *__stream); 19959: extern int getchar_unlocked (void); 19959: # 538 "/usr/include/stdio.h" 3 4 19959: extern int fgetc_unlocked (FILE *__stream); 19959: # 549 "/usr/include/stdio.h" 3 4 19959: extern int fputc (int __c, FILE *__stream); 19959: extern int putc (int __c, FILE *__stream); 19959: 19959: 19959: 19959: 19959: 19959: extern int putchar (int __c); 19959: # 565 "/usr/include/stdio.h" 3 4 19959: extern int fputc_unlocked (int __c, FILE *__stream); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int putc_unlocked (int __c, FILE *__stream); 19959: extern int putchar_unlocked (int __c); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int getw (FILE *__stream); 19959: 19959: 19959: extern int putw (int __w, FILE *__stream); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: # 615 "/usr/include/stdio.h" 3 4 19959: extern char *fgets_unlocked (char *__restrict __s, int __n, 19959: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: # 632 "/usr/include/stdio.h" 3 4 19959: extern __ssize_t __getdelim (char **__restrict __lineptr, 19959: size_t *__restrict __n, int __delimiter, 19959: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 19959: extern __ssize_t getdelim (char **__restrict __lineptr, 19959: size_t *__restrict __n, int __delimiter, 19959: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern __ssize_t getline (char **__restrict __lineptr, 19959: size_t *__restrict __n, 19959: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int fputs (const char *__restrict __s, FILE *__restrict __stream); 19959: 19959: 19959: 19959: 19959: 19959: extern int puts (const char *__s); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int ungetc (int __c, FILE *__stream); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern size_t fread (void *__restrict __ptr, size_t __size, 19959: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern size_t fwrite (const void *__restrict __ptr, size_t __size, 19959: size_t __n, FILE *__restrict __s); 19959: # 691 "/usr/include/stdio.h" 3 4 19959: extern int fputs_unlocked (const char *__restrict __s, 19959: FILE *__restrict __stream); 19959: # 702 "/usr/include/stdio.h" 3 4 19959: extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, 19959: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 19959: extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, 19959: size_t __n, FILE *__restrict __stream); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int fseek (FILE *__stream, long int __off, int __whence); 19959: 19959: 19959: 19959: 19959: extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern void rewind (FILE *__stream); 19959: # 736 "/usr/include/stdio.h" 3 4 19959: extern int fseeko (FILE *__stream, __off_t __off, int __whence); 19959: 19959: 19959: 19959: 19959: extern __off_t ftello (FILE *__stream) __attribute__ ((__warn_unused_result__)); 19959: # 760 "/usr/include/stdio.h" 3 4 19959: extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); 19959: 19959: 19959: 19959: 19959: extern int fsetpos (FILE *__stream, const fpos_t *__pos); 19959: # 779 "/usr/include/stdio.h" 3 4 19959: extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); 19959: extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__)); 19959: extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); 19959: extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); 19959: 19959: 19959: 19959: extern void clearerr (FILE *__stream) noexcept (true); 19959: 19959: extern int feof (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: extern int ferror (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: extern void clearerr_unlocked (FILE *__stream) noexcept (true); 19959: extern int feof_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: extern int ferror_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern void perror (const char *__s); 19959: 19959: 19959: 19959: 19959: extern int fileno (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern int fileno_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: # 823 "/usr/include/stdio.h" 3 4 19959: extern int pclose (FILE *__stream); 19959: 19959: 19959: 19959: 19959: 19959: extern FILE *popen (const char *__command, const char *__modes) 19959: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (pclose, 1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern char *ctermid (char *__s) noexcept (true) 19959: __attribute__ ((__access__ (__write_only__, 1))); 19959: 19959: 19959: 19959: 19959: 19959: extern char *cuserid (char *__s) 19959: __attribute__ ((__access__ (__write_only__, 1))); 19959: 19959: 19959: 19959: 19959: struct obstack; 19959: 19959: 19959: extern int obstack_printf (struct obstack *__restrict __obstack, 19959: const char *__restrict __format, ...) 19959: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))); 19959: extern int obstack_vprintf (struct obstack *__restrict __obstack, 19959: const char *__restrict __format, 19959: __gnuc_va_list __args) 19959: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern void flockfile (FILE *__stream) noexcept (true); 19959: 19959: 19959: 19959: extern int ftrylockfile (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: extern void funlockfile (FILE *__stream) noexcept (true); 19959: # 885 "/usr/include/stdio.h" 3 4 19959: extern int __uflow (FILE *); 19959: extern int __overflow (FILE *, int); 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 1 3 4 19959: # 26 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 19959: extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, 19959: const char *__restrict __format, ...) noexcept (true) 19959: __attribute__ ((__access__ (__write_only__, 1, 3))); 19959: extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, 19959: const char *__restrict __format, 19959: __gnuc_va_list __ap) noexcept (true) 19959: __attribute__ ((__access__ (__write_only__, 1, 3))); 19959: 19959: 19959: 19959: extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, 19959: size_t __slen, const char *__restrict __format, 19959: ...) noexcept (true) 19959: __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, 19959: size_t __slen, const char *__restrict __format, 19959: __gnuc_va_list __ap) noexcept (true) 19959: __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: 19959: 19959: 19959: 19959: 19959: extern int __fprintf_chk (FILE *__restrict __stream, int __flag, 19959: const char *__restrict __format, ...); 19959: extern int __printf_chk (int __flag, const char *__restrict __format, ...); 19959: extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, 19959: const char *__restrict __format, __gnuc_va_list __ap); 19959: extern int __vprintf_chk (int __flag, const char *__restrict __format, 19959: __gnuc_va_list __ap); 19959: 19959: 19959: extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, 19959: ...) __attribute__ ((__format__ (__printf__, 3, 4))); 19959: extern int __vdprintf_chk (int __fd, int __flag, 19959: const char *__restrict __fmt, __gnuc_va_list __arg) 19959: __attribute__ ((__format__ (__printf__, 3, 0))); 19959: 19959: 19959: 19959: 19959: extern int __asprintf_chk (char **__restrict __ptr, int __flag, 19959: const char *__restrict __fmt, ...) 19959: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__)); 19959: extern int __vasprintf_chk (char **__restrict __ptr, int __flag, 19959: const char *__restrict __fmt, __gnuc_va_list __arg) 19959: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__)); 19959: extern int __obstack_printf_chk (struct obstack *__restrict __obstack, 19959: int __flag, const char *__restrict __format, 19959: ...) 19959: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 19959: extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, 19959: int __flag, 19959: const char *__restrict __format, 19959: __gnuc_va_list __args) 19959: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 19959: # 90 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 19959: extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, 19959: FILE *__restrict __stream) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))); 19959: 19959: extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, 19959: size_t __size, size_t __n, 19959: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, 19959: int __n, FILE *__restrict __stream) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))); 19959: 19959: 19959: 19959: 19959: extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, 19959: size_t __size, size_t __n, 19959: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 19959: # 891 "/usr/include/stdio.h" 2 3 4 19959: # 902 "/usr/include/stdio.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 1 3 4 19959: # 46 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 3 4 19959: extern __inline __attribute__ ((__gnu_inline__)) int 19959: getchar (void) 19959: { 19959: return getc (stdin); 19959: } 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__gnu_inline__)) int 19959: fgetc_unlocked (FILE *__fp) 19959: { 19959: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__gnu_inline__)) int 19959: getc_unlocked (FILE *__fp) 19959: { 19959: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 19959: } 19959: 19959: 19959: extern __inline __attribute__ ((__gnu_inline__)) int 19959: getchar_unlocked (void) 19959: { 19959: return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); 19959: } 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__gnu_inline__)) int 19959: putchar (int __c) 19959: { 19959: return putc (__c, stdout); 19959: } 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__gnu_inline__)) int 19959: fputc_unlocked (int __c, FILE *__stream) 19959: { 19959: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__gnu_inline__)) int 19959: putc_unlocked (int __c, FILE *__stream) 19959: { 19959: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 19959: } 19959: 19959: 19959: extern __inline __attribute__ ((__gnu_inline__)) int 19959: putchar_unlocked (int __c) 19959: { 19959: return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__gnu_inline__)) __ssize_t 19959: getline (char **__lineptr, size_t *__n, FILE *__stream) 19959: { 19959: return __getdelim (__lineptr, __n, '\n', __stream); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__gnu_inline__)) int 19959: __attribute__ ((__leaf__)) feof_unlocked (FILE *__stream) noexcept (true) 19959: { 19959: return (((__stream)->_flags & 0x0010) != 0); 19959: } 19959: 19959: 19959: extern __inline __attribute__ ((__gnu_inline__)) int 19959: __attribute__ ((__leaf__)) ferror_unlocked (FILE *__stream) noexcept (true) 19959: { 19959: return (((__stream)->_flags & 0x0020) != 0); 19959: } 19959: # 903 "/usr/include/stdio.h" 2 3 4 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 1 3 4 19959: # 27 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) noexcept (true) 19959: { 19959: return __builtin___sprintf_chk (__s, 2 - 1, 19959: __builtin_object_size (__s, 2 > 1), __fmt, 19959: __builtin_va_arg_pack ()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) vsprintf (char *__restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 19959: 19959: { 19959: return __builtin___vsprintf_chk (__s, 2 - 1, 19959: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 19959: } 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) noexcept (true) 19959: 19959: { 19959: return __builtin___snprintf_chk (__s, __n, 2 - 1, 19959: __builtin_object_size (__s, 2 > 1), __fmt, 19959: __builtin_va_arg_pack ()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) vsnprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 19959: 19959: { 19959: return __builtin___vsnprintf_chk (__s, __n, 2 - 1, 19959: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) 19959: { 19959: return __fprintf_chk (__stream, 2 - 1, __fmt, 19959: __builtin_va_arg_pack ()); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: printf (const char *__restrict __fmt, ...) 19959: { 19959: return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: vprintf (const char *__restrict __fmt, __gnuc_va_list __ap) 19959: { 19959: 19959: return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap); 19959: 19959: 19959: 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: vfprintf (FILE *__restrict __stream, 19959: const char *__restrict __fmt, __gnuc_va_list __ap) 19959: { 19959: return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap); 19959: } 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: dprintf (int __fd, const char *__restrict __fmt, ...) 19959: { 19959: return __dprintf_chk (__fd, 2 - 1, __fmt, 19959: __builtin_va_arg_pack ()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) 19959: { 19959: return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap); 19959: } 19959: 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 19959: { 19959: return __asprintf_chk (__ptr, 2 - 1, __fmt, 19959: __builtin_va_arg_pack ()); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 19959: 19959: { 19959: return __asprintf_chk (__ptr, 2 - 1, __fmt, 19959: __builtin_va_arg_pack ()); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __fmt, ...) noexcept (true) 19959: 19959: { 19959: return __obstack_printf_chk (__obstack, 2 - 1, __fmt, 19959: __builtin_va_arg_pack ()); 19959: } 19959: # 165 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) vasprintf (char **__restrict __ptr, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 19959: 19959: { 19959: return __vasprintf_chk (__ptr, 2 - 1, __fmt, __ap); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 19959: 19959: { 19959: return __obstack_vprintf_chk (__obstack, 2 - 1, __fmt, 19959: __ap); 19959: } 19959: # 198 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 19959: extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) char * 19959: fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 19959: { 19959: size_t sz = __builtin_object_size (__s, 2 > 1); 19959: 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))))))) 19959: return __fgets_alias (__s, __n, __stream); 19959: 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))))) 19959: return __fgets_chk_warn (__s, sz, __n, __stream); 19959: return __fgets_chk (__s, sz, __n, __stream); 19959: } 19959: 19959: extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)); 19959: extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") 19959: 19959: 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 19959: fread (void *__restrict __ptr, size_t __size, size_t __n, 19959: FILE *__restrict __stream) 19959: { 19959: size_t sz = __builtin_object_size (__ptr, 0); 19959: 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)))))) 19959: return __fread_alias (__ptr, __size, __n, __stream); 19959: 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)))) 19959: return __fread_chk_warn (__ptr, sz, __size, __n, __stream); 19959: return __fread_chk (__ptr, sz, __size, __n, __stream); 19959: } 19959: 19959: 19959: extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) char * 19959: fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream) 19959: { 19959: size_t sz = __builtin_object_size (__s, 2 > 1); 19959: 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))))))) 19959: return __fgets_unlocked_alias (__s, __n, __stream); 19959: 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))))) 19959: return __fgets_unlocked_chk_warn (__s, sz, __n, __stream); 19959: return __fgets_unlocked_chk (__s, sz, __n, __stream); 19959: } 19959: 19959: 19959: 19959: 19959: extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)); 19959: 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") 19959: 19959: 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 19959: fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, 19959: FILE *__restrict __stream) 19959: { 19959: size_t sz = __builtin_object_size (__ptr, 0); 19959: 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)))))) 19959: { 19959: 19959: if (__builtin_constant_p (__size) 19959: && __builtin_constant_p (__n) 19959: && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) 19959: && __size * __n <= 8) 19959: { 19959: size_t __cnt = __size * __n; 19959: char *__cptr = (char *) __ptr; 19959: if (__cnt == 0) 19959: return 0; 19959: 19959: for (; __cnt > 0; --__cnt) 19959: { 19959: int __c = getc_unlocked (__stream); 19959: if (__c == (-1)) 19959: break; 19959: *__cptr++ = __c; 19959: } 19959: return (__cptr - (char *) __ptr) / __size; 19959: } 19959: 19959: return __fread_unlocked_alias (__ptr, __size, __n, __stream); 19959: } 19959: 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)))) 19959: return __fread_unlocked_chk_warn (__ptr, sz, __size, __n, __stream); 19959: return __fread_unlocked_chk (__ptr, sz, __size, __n, __stream); 19959: 19959: } 19959: # 907 "/usr/include/stdio.h" 2 3 4 19959: 19959: 19959: } 19959: # 43 "/usr/include/c++/13/cstdio" 2 3 19959: # 96 "/usr/include/c++/13/cstdio" 3 19959: namespace std 19959: { 19959: using ::FILE; 19959: using ::fpos_t; 19959: 19959: using ::clearerr; 19959: using ::fclose; 19959: using ::feof; 19959: using ::ferror; 19959: using ::fflush; 19959: using ::fgetc; 19959: using ::fgetpos; 19959: using ::fgets; 19959: using ::fopen; 19959: using ::fprintf; 19959: using ::fputc; 19959: using ::fputs; 19959: using ::fread; 19959: using ::freopen; 19959: using ::fscanf; 19959: using ::fseek; 19959: using ::fsetpos; 19959: using ::ftell; 19959: using ::fwrite; 19959: using ::getc; 19959: using ::getchar; 19959: 19959: 19959: 19959: 19959: using ::perror; 19959: using ::printf; 19959: using ::putc; 19959: using ::putchar; 19959: using ::puts; 19959: using ::remove; 19959: using ::rename; 19959: using ::rewind; 19959: using ::scanf; 19959: using ::setbuf; 19959: using ::setvbuf; 19959: using ::sprintf; 19959: using ::sscanf; 19959: using ::tmpfile; 19959: 19959: using ::tmpnam; 19959: 19959: using ::ungetc; 19959: using ::vfprintf; 19959: using ::vprintf; 19959: using ::vsprintf; 19959: } 19959: # 157 "/usr/include/c++/13/cstdio" 3 19959: namespace __gnu_cxx 19959: { 19959: # 175 "/usr/include/c++/13/cstdio" 3 19959: using ::snprintf; 19959: using ::vfscanf; 19959: using ::vscanf; 19959: using ::vsnprintf; 19959: using ::vsscanf; 19959: 19959: } 19959: 19959: namespace std 19959: { 19959: using ::__gnu_cxx::snprintf; 19959: using ::__gnu_cxx::vfscanf; 19959: using ::__gnu_cxx::vscanf; 19959: using ::__gnu_cxx::vsnprintf; 19959: using ::__gnu_cxx::vsscanf; 19959: } 19959: # 46 "/usr/include/c++/13/ext/string_conversions.h" 2 3 19959: # 1 "/usr/include/c++/13/cerrno" 1 3 19959: # 39 "/usr/include/c++/13/cerrno" 3 19959: 19959: # 40 "/usr/include/c++/13/cerrno" 3 19959: 19959: 19959: # 1 "/usr/include/errno.h" 1 3 4 19959: # 28 "/usr/include/errno.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 1 3 4 19959: # 26 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 3 4 19959: # 1 "/usr/include/linux/errno.h" 1 3 4 19959: # 1 "/usr/lib/linux/uapi/arm/asm/errno.h" 1 3 4 19959: # 1 "/usr/include/asm-generic/errno.h" 1 3 4 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 19959: # 6 "/usr/include/asm-generic/errno.h" 2 3 4 19959: # 2 "/usr/lib/linux/uapi/arm/asm/errno.h" 2 3 4 19959: # 2 "/usr/include/linux/errno.h" 2 3 4 19959: # 27 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 2 3 4 19959: # 29 "/usr/include/errno.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: extern "C" { 19959: 19959: 19959: extern int *__errno_location (void) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern char *program_invocation_name; 19959: extern char *program_invocation_short_name; 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 1 3 4 19959: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 3 4 19959: typedef int error_t; 19959: # 49 "/usr/include/errno.h" 2 3 4 19959: 19959: 19959: 19959: } 19959: # 43 "/usr/include/c++/13/cerrno" 2 3 19959: # 47 "/usr/include/c++/13/ext/string_conversions.h" 2 3 19959: 19959: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: _Ret 19959: __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), 19959: const char* __name, const _CharT* __str, std::size_t* __idx, 19959: _Base... __base) 19959: { 19959: _Ret __ret; 19959: 19959: _CharT* __endptr; 19959: 19959: struct _Save_errno { 19959: _Save_errno() : _M_errno((*__errno_location ())) { (*__errno_location ()) = 0; } 19959: ~_Save_errno() { if ((*__errno_location ()) == 0) (*__errno_location ()) = _M_errno; } 19959: int _M_errno; 19959: } const __save_errno; 19959: 19959: struct _Range_chk { 19959: static bool 19959: _S_chk(_TRet, std::false_type) { return false; } 19959: 19959: static bool 19959: _S_chk(_TRet __val, std::true_type) 19959: { 19959: return __val < _TRet(__numeric_traits::__min) 19959: || __val > _TRet(__numeric_traits::__max); 19959: } 19959: }; 19959: 19959: const _TRet __tmp = __convf(__str, &__endptr, __base...); 19959: 19959: if (__endptr == __str) 19959: std::__throw_invalid_argument(__name); 19959: else if ((*__errno_location ()) == 34 19959: || _Range_chk::_S_chk(__tmp, std::is_same<_Ret, int>{})) 19959: std::__throw_out_of_range(__name); 19959: else 19959: __ret = __tmp; 19959: 19959: if (__idx) 19959: *__idx = __endptr - __str; 19959: 19959: return __ret; 19959: } 19959: 19959: 19959: template 19959: _String 19959: __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, 19959: __builtin_va_list), std::size_t __n, 19959: const _CharT* __fmt, ...) 19959: { 19959: 19959: 19959: _CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 19959: * __n)); 19959: 19959: __builtin_va_list __args; 19959: __builtin_va_start(__args, __fmt); 19959: 19959: const int __len = __convf(__s, __n, __fmt, __args); 19959: 19959: __builtin_va_end(__args); 19959: 19959: return _String(__s, __s + __len); 19959: } 19959: 19959: 19959: } 19959: # 4110 "/usr/include/c++/13/bits/basic_string.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/charconv.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/charconv.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/charconv.h" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: namespace __detail 19959: { 19959: 19959: 19959: template 19959: constexpr bool __integer_to_chars_is_unsigned 19959: = ! __gnu_cxx::__int_traits<_Tp>::__is_signed; 19959: 19959: 19959: 19959: template 19959: constexpr unsigned 19959: __to_chars_len(_Tp __value, int __base = 10) noexcept 19959: { 19959: 19959: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 19959: 19959: 19959: unsigned __n = 1; 19959: const unsigned __b2 = __base * __base; 19959: const unsigned __b3 = __b2 * __base; 19959: const unsigned long __b4 = __b3 * __base; 19959: for (;;) 19959: { 19959: if (__value < (unsigned)__base) return __n; 19959: if (__value < __b2) return __n + 1; 19959: if (__value < __b3) return __n + 2; 19959: if (__value < __b4) return __n + 3; 19959: __value /= __b4; 19959: __n += 4; 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: void 19959: __to_chars_10_impl(char* __first, unsigned __len, _Tp __val) noexcept 19959: { 19959: 19959: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 19959: 19959: 19959: constexpr char __digits[201] = 19959: "0001020304050607080910111213141516171819" 19959: "2021222324252627282930313233343536373839" 19959: "4041424344454647484950515253545556575859" 19959: "6061626364656667686970717273747576777879" 19959: "8081828384858687888990919293949596979899"; 19959: unsigned __pos = __len - 1; 19959: while (__val >= 100) 19959: { 19959: auto const __num = (__val % 100) * 2; 19959: __val /= 100; 19959: __first[__pos] = __digits[__num + 1]; 19959: __first[__pos - 1] = __digits[__num]; 19959: __pos -= 2; 19959: } 19959: if (__val >= 10) 19959: { 19959: auto const __num = __val * 2; 19959: __first[1] = __digits[__num + 1]; 19959: __first[0] = __digits[__num]; 19959: } 19959: else 19959: __first[0] = '0' + __val; 19959: } 19959: 19959: } 19959: 19959: } 19959: # 4111 "/usr/include/c++/13/bits/basic_string.h" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: namespace __cxx11 { 19959: 19959: 19959: 19959: inline int 19959: stoi(const string& __str, size_t* __idx = 0, int __base = 10) 19959: { return __gnu_cxx::__stoa(&std::strtol, "stoi", __str.c_str(), 19959: __idx, __base); } 19959: 19959: inline long 19959: stol(const string& __str, size_t* __idx = 0, int __base = 10) 19959: { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(), 19959: __idx, __base); } 19959: 19959: inline unsigned long 19959: stoul(const string& __str, size_t* __idx = 0, int __base = 10) 19959: { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(), 19959: __idx, __base); } 19959: 19959: inline long long 19959: stoll(const string& __str, size_t* __idx = 0, int __base = 10) 19959: { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(), 19959: __idx, __base); } 19959: 19959: inline unsigned long long 19959: stoull(const string& __str, size_t* __idx = 0, int __base = 10) 19959: { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(), 19959: __idx, __base); } 19959: 19959: 19959: inline float 19959: stof(const string& __str, size_t* __idx = 0) 19959: { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } 19959: 19959: inline double 19959: stod(const string& __str, size_t* __idx = 0) 19959: { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } 19959: 19959: inline long double 19959: stold(const string& __str, size_t* __idx = 0) 19959: { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: inline string 19959: to_string(int __val) 19959: 19959: noexcept 19959: 19959: { 19959: const bool __neg = __val < 0; 19959: const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val; 19959: const auto __len = __detail::__to_chars_len(__uval); 19959: string __str(__neg + __len, '-'); 19959: __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); 19959: return __str; 19959: } 19959: 19959: [[__nodiscard__]] 19959: inline string 19959: to_string(unsigned __val) 19959: 19959: noexcept 19959: 19959: { 19959: string __str(__detail::__to_chars_len(__val), '\0'); 19959: __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); 19959: return __str; 19959: } 19959: 19959: [[__nodiscard__]] 19959: inline string 19959: to_string(long __val) 19959: 19959: noexcept 19959: 19959: { 19959: const bool __neg = __val < 0; 19959: const unsigned long __uval = __neg ? (unsigned long)~__val + 1ul : __val; 19959: const auto __len = __detail::__to_chars_len(__uval); 19959: string __str(__neg + __len, '-'); 19959: __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); 19959: return __str; 19959: } 19959: 19959: [[__nodiscard__]] 19959: inline string 19959: to_string(unsigned long __val) 19959: 19959: noexcept 19959: 19959: { 19959: string __str(__detail::__to_chars_len(__val), '\0'); 19959: __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); 19959: return __str; 19959: } 19959: 19959: [[__nodiscard__]] 19959: inline string 19959: to_string(long long __val) 19959: { 19959: const bool __neg = __val < 0; 19959: const unsigned long long __uval 19959: = __neg ? (unsigned long long)~__val + 1ull : __val; 19959: const auto __len = __detail::__to_chars_len(__uval); 19959: string __str(__neg + __len, '-'); 19959: __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); 19959: return __str; 19959: } 19959: 19959: [[__nodiscard__]] 19959: inline string 19959: to_string(unsigned long long __val) 19959: { 19959: string __str(__detail::__to_chars_len(__val), '\0'); 19959: __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); 19959: return __str; 19959: } 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: inline string 19959: to_string(float __val) 19959: { 19959: const int __n = 19959: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 19959: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 19959: "%f", __val); 19959: } 19959: 19959: [[__nodiscard__]] 19959: inline string 19959: to_string(double __val) 19959: { 19959: const int __n = 19959: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 19959: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 19959: "%f", __val); 19959: } 19959: 19959: [[__nodiscard__]] 19959: inline string 19959: to_string(long double __val) 19959: { 19959: const int __n = 19959: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 19959: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 19959: "%Lf", __val); 19959: } 19959: 19959: 19959: 19959: inline int 19959: stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) 19959: { return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(), 19959: __idx, __base); } 19959: 19959: inline long 19959: stol(const wstring& __str, size_t* __idx = 0, int __base = 10) 19959: { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(), 19959: __idx, __base); } 19959: 19959: inline unsigned long 19959: stoul(const wstring& __str, size_t* __idx = 0, int __base = 10) 19959: { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(), 19959: __idx, __base); } 19959: 19959: inline long long 19959: stoll(const wstring& __str, size_t* __idx = 0, int __base = 10) 19959: { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), 19959: __idx, __base); } 19959: 19959: inline unsigned long long 19959: stoull(const wstring& __str, size_t* __idx = 0, int __base = 10) 19959: { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(), 19959: __idx, __base); } 19959: 19959: 19959: inline float 19959: stof(const wstring& __str, size_t* __idx = 0) 19959: { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } 19959: 19959: inline double 19959: stod(const wstring& __str, size_t* __idx = 0) 19959: { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } 19959: 19959: inline long double 19959: stold(const wstring& __str, size_t* __idx = 0) 19959: { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: inline wstring 19959: to_wstring(int __val) 19959: { return __gnu_cxx::__to_xstring(&std::vswprintf, 4 * sizeof(int), 19959: L"%d", __val); } 19959: 19959: [[__nodiscard__]] 19959: inline wstring 19959: to_wstring(unsigned __val) 19959: { return __gnu_cxx::__to_xstring(&std::vswprintf, 19959: 4 * sizeof(unsigned), 19959: L"%u", __val); } 19959: 19959: [[__nodiscard__]] 19959: inline wstring 19959: to_wstring(long __val) 19959: { return __gnu_cxx::__to_xstring(&std::vswprintf, 4 * sizeof(long), 19959: L"%ld", __val); } 19959: 19959: [[__nodiscard__]] 19959: inline wstring 19959: to_wstring(unsigned long __val) 19959: { return __gnu_cxx::__to_xstring(&std::vswprintf, 19959: 4 * sizeof(unsigned long), 19959: L"%lu", __val); } 19959: 19959: [[__nodiscard__]] 19959: inline wstring 19959: to_wstring(long long __val) 19959: { return __gnu_cxx::__to_xstring(&std::vswprintf, 19959: 4 * sizeof(long long), 19959: L"%lld", __val); } 19959: 19959: [[__nodiscard__]] 19959: inline wstring 19959: to_wstring(unsigned long long __val) 19959: { return __gnu_cxx::__to_xstring(&std::vswprintf, 19959: 4 * sizeof(unsigned long long), 19959: L"%llu", __val); } 19959: 19959: [[__nodiscard__]] 19959: inline wstring 19959: to_wstring(float __val) 19959: { 19959: const int __n = 19959: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 19959: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 19959: L"%f", __val); 19959: } 19959: 19959: [[__nodiscard__]] 19959: inline wstring 19959: to_wstring(double __val) 19959: { 19959: const int __n = 19959: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 19959: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 19959: L"%f", __val); 19959: } 19959: 19959: [[__nodiscard__]] 19959: inline wstring 19959: to_wstring(long double __val) 19959: { 19959: const int __n = 19959: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 19959: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 19959: L"%Lf", __val); 19959: } 19959: 19959: 19959: 19959: } 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: template, _Alloc>> 19959: struct __str_hash_base 19959: : public __hash_base 19959: { 19959: [[__nodiscard__]] 19959: size_t 19959: operator()(const _StrT& __s) const noexcept 19959: { return _Hash_impl::hash(__s.data(), __s.length() * sizeof(_CharT)); } 19959: }; 19959: 19959: 19959: 19959: template 19959: struct hash, _Alloc>> 19959: : public __str_hash_base 19959: { }; 19959: 19959: 19959: template 19959: struct hash, _Alloc>> 19959: : public __str_hash_base 19959: { }; 19959: 19959: template 19959: struct __is_fast_hash, 19959: _Alloc>>> 19959: : std::false_type 19959: { }; 19959: # 4440 "/usr/include/c++/13/bits/basic_string.h" 3 19959: template 19959: struct hash, _Alloc>> 19959: : public __str_hash_base 19959: { }; 19959: 19959: 19959: template 19959: struct hash, _Alloc>> 19959: : public __str_hash_base 19959: { }; 19959: 19959: 19959: 19959: template<> struct __is_fast_hash> : std::false_type { }; 19959: template<> struct __is_fast_hash> : std::false_type { }; 19959: template<> struct __is_fast_hash> : std::false_type { }; 19959: template<> struct __is_fast_hash> : std::false_type { }; 19959: # 4472 "/usr/include/c++/13/bits/basic_string.h" 3 19959: inline namespace literals 19959: { 19959: inline namespace string_literals 19959: { 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wliteral-suffix" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: inline basic_string 19959: operator""s(const char* __str, size_t __len) 19959: { return basic_string{__str, __len}; } 19959: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: inline basic_string 19959: operator""s(const wchar_t* __str, size_t __len) 19959: { return basic_string{__str, __len}; } 19959: # 4502 "/usr/include/c++/13/bits/basic_string.h" 3 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: inline basic_string 19959: operator""s(const char16_t* __str, size_t __len) 19959: { return basic_string{__str, __len}; } 19959: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: inline basic_string 19959: operator""s(const char32_t* __str, size_t __len) 19959: { return basic_string{__str, __len}; } 19959: 19959: 19959: #pragma GCC diagnostic pop 19959: } 19959: } 19959: 19959: 19959: namespace __detail::__variant 19959: { 19959: template struct _Never_valueless_alt; 19959: 19959: 19959: 19959: template 19959: struct _Never_valueless_alt> 19959: : __and_< 19959: is_nothrow_move_constructible>, 19959: is_nothrow_move_assignable> 19959: >::type 19959: { }; 19959: } 19959: 19959: 19959: 19959: 19959: } 19959: # 55 "/usr/include/c++/13/string" 2 3 19959: # 1 "/usr/include/c++/13/bits/basic_string.tcc" 1 3 19959: # 42 "/usr/include/c++/13/bits/basic_string.tcc" 3 19959: 19959: # 43 "/usr/include/c++/13/bits/basic_string.tcc" 3 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: template 19959: const typename basic_string<_CharT, _Traits, _Alloc>::size_type 19959: basic_string<_CharT, _Traits, _Alloc>::npos; 19959: 19959: template 19959: 19959: void 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: swap(basic_string& __s) noexcept 19959: { 19959: if (this == std::__addressof(__s)) 19959: return; 19959: 19959: _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator()); 19959: 19959: if (_M_is_local()) 19959: if (__s._M_is_local()) 19959: { 19959: if (length() && __s.length()) 19959: { 19959: _CharT __tmp_data[_S_local_capacity + 1]; 19959: traits_type::copy(__tmp_data, __s._M_local_buf, 19959: __s.length() + 1); 19959: traits_type::copy(__s._M_local_buf, _M_local_buf, 19959: length() + 1); 19959: traits_type::copy(_M_local_buf, __tmp_data, 19959: __s.length() + 1); 19959: } 19959: else if (__s.length()) 19959: { 19959: _M_init_local_buf(); 19959: traits_type::copy(_M_local_buf, __s._M_local_buf, 19959: __s.length() + 1); 19959: _M_length(__s.length()); 19959: __s._M_set_length(0); 19959: return; 19959: } 19959: else if (length()) 19959: { 19959: __s._M_init_local_buf(); 19959: traits_type::copy(__s._M_local_buf, _M_local_buf, 19959: length() + 1); 19959: __s._M_length(length()); 19959: _M_set_length(0); 19959: return; 19959: } 19959: } 19959: else 19959: { 19959: const size_type __tmp_capacity = __s._M_allocated_capacity; 19959: __s._M_init_local_buf(); 19959: traits_type::copy(__s._M_local_buf, _M_local_buf, 19959: length() + 1); 19959: _M_data(__s._M_data()); 19959: __s._M_data(__s._M_local_buf); 19959: _M_capacity(__tmp_capacity); 19959: } 19959: else 19959: { 19959: const size_type __tmp_capacity = _M_allocated_capacity; 19959: if (__s._M_is_local()) 19959: { 19959: _M_init_local_buf(); 19959: traits_type::copy(_M_local_buf, __s._M_local_buf, 19959: __s.length() + 1); 19959: __s._M_data(_M_data()); 19959: _M_data(_M_local_buf); 19959: } 19959: else 19959: { 19959: pointer __tmp_ptr = _M_data(); 19959: _M_data(__s._M_data()); 19959: __s._M_data(__tmp_ptr); 19959: _M_capacity(__s._M_allocated_capacity); 19959: } 19959: __s._M_capacity(__tmp_capacity); 19959: } 19959: 19959: const size_type __tmp_length = length(); 19959: _M_length(__s.length()); 19959: __s._M_length(__tmp_length); 19959: } 19959: 19959: template 19959: 19959: typename basic_string<_CharT, _Traits, _Alloc>::pointer 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: _M_create(size_type& __capacity, size_type __old_capacity) 19959: { 19959: 19959: 19959: if (__capacity > max_size()) 19959: std::__throw_length_error(("basic_string::_M_create")); 19959: 19959: 19959: 19959: 19959: if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) 19959: { 19959: __capacity = 2 * __old_capacity; 19959: 19959: if (__capacity > max_size()) 19959: __capacity = max_size(); 19959: } 19959: 19959: 19959: 19959: return _S_allocate(_M_get_allocator(), __capacity + 1); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: template 19959: 19959: void 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: _M_construct(_InIterator __beg, _InIterator __end, 19959: std::input_iterator_tag) 19959: { 19959: size_type __len = 0; 19959: size_type __capacity = size_type(_S_local_capacity); 19959: 19959: _M_init_local_buf(); 19959: 19959: while (__beg != __end && __len < __capacity) 19959: { 19959: _M_local_buf[__len++] = *__beg; 19959: ++__beg; 19959: } 19959: 19959: struct _Guard 19959: { 19959: 19959: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 19959: 19959: 19959: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 19959: 19959: basic_string* _M_guarded; 19959: } __guard(this); 19959: 19959: while (__beg != __end) 19959: { 19959: if (__len == __capacity) 19959: { 19959: 19959: __capacity = __len + 1; 19959: pointer __another = _M_create(__capacity, __len); 19959: this->_S_copy(__another, _M_data(), __len); 19959: _M_dispose(); 19959: _M_data(__another); 19959: _M_capacity(__capacity); 19959: } 19959: traits_type::assign(_M_data()[__len++], *__beg); 19959: ++__beg; 19959: } 19959: 19959: __guard._M_guarded = 0; 19959: 19959: _M_set_length(__len); 19959: } 19959: 19959: template 19959: template 19959: 19959: void 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: _M_construct(_InIterator __beg, _InIterator __end, 19959: std::forward_iterator_tag) 19959: { 19959: size_type __dnew = static_cast(std::distance(__beg, __end)); 19959: 19959: if (__dnew > size_type(_S_local_capacity)) 19959: { 19959: _M_data(_M_create(__dnew, size_type(0))); 19959: _M_capacity(__dnew); 19959: } 19959: else 19959: _M_init_local_buf(); 19959: 19959: 19959: struct _Guard 19959: { 19959: 19959: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 19959: 19959: 19959: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 19959: 19959: basic_string* _M_guarded; 19959: } __guard(this); 19959: 19959: this->_S_copy_chars(_M_data(), __beg, __end); 19959: 19959: __guard._M_guarded = 0; 19959: 19959: _M_set_length(__dnew); 19959: } 19959: 19959: template 19959: 19959: void 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: _M_construct(size_type __n, _CharT __c) 19959: { 19959: if (__n > size_type(_S_local_capacity)) 19959: { 19959: _M_data(_M_create(__n, size_type(0))); 19959: _M_capacity(__n); 19959: } 19959: else 19959: _M_init_local_buf(); 19959: 19959: if (__n) 19959: this->_S_assign(_M_data(), __n, __c); 19959: 19959: _M_set_length(__n); 19959: } 19959: 19959: template 19959: 19959: void 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: _M_assign(const basic_string& __str) 19959: { 19959: if (this != std::__addressof(__str)) 19959: { 19959: const size_type __rsize = __str.length(); 19959: const size_type __capacity = capacity(); 19959: 19959: if (__rsize > __capacity) 19959: { 19959: size_type __new_capacity = __rsize; 19959: pointer __tmp = _M_create(__new_capacity, __capacity); 19959: _M_dispose(); 19959: _M_data(__tmp); 19959: _M_capacity(__new_capacity); 19959: } 19959: 19959: if (__rsize) 19959: this->_S_copy(_M_data(), __str._M_data(), __rsize); 19959: 19959: _M_set_length(__rsize); 19959: } 19959: } 19959: 19959: template 19959: 19959: void 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: reserve(size_type __res) 19959: { 19959: const size_type __capacity = capacity(); 19959: 19959: 19959: 19959: 19959: if (__res <= __capacity) 19959: return; 19959: 19959: pointer __tmp = _M_create(__res, __capacity); 19959: this->_S_copy(__tmp, _M_data(), length() + 1); 19959: _M_dispose(); 19959: _M_data(__tmp); 19959: _M_capacity(__res); 19959: } 19959: 19959: template 19959: 19959: void 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 19959: size_type __len2) 19959: { 19959: const size_type __how_much = length() - __pos - __len1; 19959: 19959: size_type __new_capacity = length() + __len2 - __len1; 19959: pointer __r = _M_create(__new_capacity, capacity()); 19959: 19959: if (__pos) 19959: this->_S_copy(__r, _M_data(), __pos); 19959: if (__s && __len2) 19959: this->_S_copy(__r + __pos, __s, __len2); 19959: if (__how_much) 19959: this->_S_copy(__r + __pos + __len2, 19959: _M_data() + __pos + __len1, __how_much); 19959: 19959: _M_dispose(); 19959: _M_data(__r); 19959: _M_capacity(__new_capacity); 19959: } 19959: 19959: template 19959: 19959: void 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: _M_erase(size_type __pos, size_type __n) 19959: { 19959: const size_type __how_much = length() - __pos - __n; 19959: 19959: if (__how_much && __n) 19959: this->_S_move(_M_data() + __pos, _M_data() + __pos + __n, __how_much); 19959: 19959: _M_set_length(length() - __n); 19959: } 19959: 19959: template 19959: 19959: void 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: reserve() 19959: { 19959: if (_M_is_local()) 19959: return; 19959: 19959: const size_type __length = length(); 19959: const size_type __capacity = _M_allocated_capacity; 19959: 19959: if (__length <= size_type(_S_local_capacity)) 19959: { 19959: _M_init_local_buf(); 19959: this->_S_copy(_M_local_buf, _M_data(), __length + 1); 19959: _M_destroy(__capacity); 19959: _M_data(_M_local_data()); 19959: } 19959: 19959: else if (__length < __capacity) 19959: try 19959: { 19959: pointer __tmp = _S_allocate(_M_get_allocator(), __length + 1); 19959: this->_S_copy(__tmp, _M_data(), __length + 1); 19959: _M_dispose(); 19959: _M_data(__tmp); 19959: _M_capacity(__length); 19959: } 19959: catch (const __cxxabiv1::__forced_unwind&) 19959: { throw; } 19959: catch (...) 19959: { } 19959: 19959: } 19959: 19959: template 19959: 19959: void 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: resize(size_type __n, _CharT __c) 19959: { 19959: const size_type __size = this->size(); 19959: if (__size < __n) 19959: this->append(__n - __size, __c); 19959: else if (__n < __size) 19959: this->_M_set_length(__n); 19959: } 19959: 19959: template 19959: 19959: basic_string<_CharT, _Traits, _Alloc>& 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: _M_append(const _CharT* __s, size_type __n) 19959: { 19959: const size_type __len = __n + this->size(); 19959: 19959: if (__len <= this->capacity()) 19959: { 19959: if (__n) 19959: this->_S_copy(this->_M_data() + this->size(), __s, __n); 19959: } 19959: else 19959: this->_M_mutate(this->size(), size_type(0), __s, __n); 19959: 19959: this->_M_set_length(__len); 19959: return *this; 19959: } 19959: 19959: template 19959: template 19959: 19959: basic_string<_CharT, _Traits, _Alloc>& 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 19959: _InputIterator __k1, _InputIterator __k2, 19959: std::__false_type) 19959: { 19959: 19959: 19959: const basic_string __s(__k1, __k2, this->get_allocator()); 19959: const size_type __n1 = __i2 - __i1; 19959: return _M_replace(__i1 - begin(), __n1, __s._M_data(), 19959: __s.size()); 19959: } 19959: 19959: template 19959: 19959: basic_string<_CharT, _Traits, _Alloc>& 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 19959: _CharT __c) 19959: { 19959: _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); 19959: 19959: const size_type __old_size = this->size(); 19959: const size_type __new_size = __old_size + __n2 - __n1; 19959: 19959: if (__new_size <= this->capacity()) 19959: { 19959: pointer __p = this->_M_data() + __pos1; 19959: 19959: const size_type __how_much = __old_size - __pos1 - __n1; 19959: if (__how_much && __n1 != __n2) 19959: this->_S_move(__p + __n2, __p + __n1, __how_much); 19959: } 19959: else 19959: this->_M_mutate(__pos1, __n1, 0, __n2); 19959: 19959: if (__n2) 19959: this->_S_assign(this->_M_data() + __pos1, __n2, __c); 19959: 19959: this->_M_set_length(__new_size); 19959: return *this; 19959: } 19959: 19959: template 19959: __attribute__((__noinline__, __noclone__, __cold__)) void 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 19959: const size_type __len2, const size_type __how_much) 19959: { 19959: 19959: if (__len2 && __len2 <= __len1) 19959: this->_S_move(__p, __s, __len2); 19959: if (__how_much && __len1 != __len2) 19959: this->_S_move(__p + __len2, __p + __len1, __how_much); 19959: if (__len2 > __len1) 19959: { 19959: if (__s + __len2 <= __p + __len1) 19959: this->_S_move(__p, __s, __len2); 19959: else if (__s >= __p + __len1) 19959: { 19959: 19959: 19959: const size_type __poff = (__s - __p) + (__len2 - __len1); 19959: this->_S_copy(__p, __p + __poff, __len2); 19959: } 19959: else 19959: { 19959: const size_type __nleft = (__p + __len1) - __s; 19959: this->_S_move(__p, __s, __nleft); 19959: this->_S_copy(__p + __nleft, __p + __len2, __len2 - __nleft); 19959: } 19959: } 19959: } 19959: 19959: template 19959: 19959: basic_string<_CharT, _Traits, _Alloc>& 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 19959: const size_type __len2) 19959: { 19959: _M_check_length(__len1, __len2, "basic_string::_M_replace"); 19959: 19959: const size_type __old_size = this->size(); 19959: const size_type __new_size = __old_size + __len2 - __len1; 19959: 19959: if (__new_size <= this->capacity()) 19959: { 19959: pointer __p = this->_M_data() + __pos; 19959: 19959: const size_type __how_much = __old_size - __pos - __len1; 19959: # 537 "/usr/include/c++/13/bits/basic_string.tcc" 3 19959: if (__builtin_expect(_M_disjunct(__s), true)) 19959: { 19959: if (__how_much && __len1 != __len2) 19959: this->_S_move(__p + __len2, __p + __len1, __how_much); 19959: if (__len2) 19959: this->_S_copy(__p, __s, __len2); 19959: } 19959: else 19959: _M_replace_cold(__p, __len1, __s, __len2, __how_much); 19959: } 19959: else 19959: this->_M_mutate(__pos, __len1, __s, __len2); 19959: 19959: this->_M_set_length(__new_size); 19959: return *this; 19959: } 19959: 19959: template 19959: 19959: typename basic_string<_CharT, _Traits, _Alloc>::size_type 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: copy(_CharT* __s, size_type __n, size_type __pos) const 19959: { 19959: _M_check(__pos, "basic_string::copy"); 19959: __n = _M_limit(__pos, __n); 19959: ; 19959: if (__n) 19959: _S_copy(__s, _M_data() + __pos, __n); 19959: 19959: return __n; 19959: } 19959: # 615 "/usr/include/c++/13/bits/basic_string.tcc" 3 19959: template 19959: 19959: typename basic_string<_CharT, _Traits, _Alloc>::size_type 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: find(const _CharT* __s, size_type __pos, size_type __n) const 19959: noexcept 19959: { 19959: ; 19959: const size_type __size = this->size(); 19959: 19959: if (__n == 0) 19959: return __pos <= __size ? __pos : npos; 19959: if (__pos >= __size) 19959: return npos; 19959: 19959: const _CharT __elem0 = __s[0]; 19959: const _CharT* const __data = data(); 19959: const _CharT* __first = __data + __pos; 19959: const _CharT* const __last = __data + __size; 19959: size_type __len = __size - __pos; 19959: 19959: while (__len >= __n) 19959: { 19959: 19959: __first = traits_type::find(__first, __len - __n + 1, __elem0); 19959: if (!__first) 19959: return npos; 19959: 19959: 19959: 19959: if (traits_type::compare(__first, __s, __n) == 0) 19959: return __first - __data; 19959: __len = __last - ++__first; 19959: } 19959: return npos; 19959: } 19959: 19959: template 19959: 19959: typename basic_string<_CharT, _Traits, _Alloc>::size_type 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: find(_CharT __c, size_type __pos) const noexcept 19959: { 19959: size_type __ret = npos; 19959: const size_type __size = this->size(); 19959: if (__pos < __size) 19959: { 19959: const _CharT* __data = _M_data(); 19959: const size_type __n = __size - __pos; 19959: const _CharT* __p = traits_type::find(__data + __pos, __n, __c); 19959: if (__p) 19959: __ret = __p - __data; 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: 19959: typename basic_string<_CharT, _Traits, _Alloc>::size_type 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: rfind(const _CharT* __s, size_type __pos, size_type __n) const 19959: noexcept 19959: { 19959: ; 19959: const size_type __size = this->size(); 19959: if (__n <= __size) 19959: { 19959: __pos = std::min(size_type(__size - __n), __pos); 19959: const _CharT* __data = _M_data(); 19959: do 19959: { 19959: if (traits_type::compare(__data + __pos, __s, __n) == 0) 19959: return __pos; 19959: } 19959: while (__pos-- > 0); 19959: } 19959: return npos; 19959: } 19959: 19959: template 19959: 19959: typename basic_string<_CharT, _Traits, _Alloc>::size_type 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: rfind(_CharT __c, size_type __pos) const noexcept 19959: { 19959: size_type __size = this->size(); 19959: if (__size) 19959: { 19959: if (--__size > __pos) 19959: __size = __pos; 19959: for (++__size; __size-- > 0; ) 19959: if (traits_type::eq(_M_data()[__size], __c)) 19959: return __size; 19959: } 19959: return npos; 19959: } 19959: 19959: template 19959: 19959: typename basic_string<_CharT, _Traits, _Alloc>::size_type 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 19959: noexcept 19959: { 19959: ; 19959: for (; __n && __pos < this->size(); ++__pos) 19959: { 19959: const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); 19959: if (__p) 19959: return __pos; 19959: } 19959: return npos; 19959: } 19959: 19959: template 19959: 19959: typename basic_string<_CharT, _Traits, _Alloc>::size_type 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 19959: noexcept 19959: { 19959: ; 19959: size_type __size = this->size(); 19959: if (__size && __n) 19959: { 19959: if (--__size > __pos) 19959: __size = __pos; 19959: do 19959: { 19959: if (traits_type::find(__s, __n, _M_data()[__size])) 19959: return __size; 19959: } 19959: while (__size-- != 0); 19959: } 19959: return npos; 19959: } 19959: 19959: template 19959: 19959: typename basic_string<_CharT, _Traits, _Alloc>::size_type 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const 19959: noexcept 19959: { 19959: ; 19959: for (; __pos < this->size(); ++__pos) 19959: if (!traits_type::find(__s, __n, _M_data()[__pos])) 19959: return __pos; 19959: return npos; 19959: } 19959: 19959: template 19959: 19959: typename basic_string<_CharT, _Traits, _Alloc>::size_type 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: find_first_not_of(_CharT __c, size_type __pos) const noexcept 19959: { 19959: for (; __pos < this->size(); ++__pos) 19959: if (!traits_type::eq(_M_data()[__pos], __c)) 19959: return __pos; 19959: return npos; 19959: } 19959: 19959: template 19959: 19959: typename basic_string<_CharT, _Traits, _Alloc>::size_type 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const 19959: noexcept 19959: { 19959: ; 19959: size_type __size = this->size(); 19959: if (__size) 19959: { 19959: if (--__size > __pos) 19959: __size = __pos; 19959: do 19959: { 19959: if (!traits_type::find(__s, __n, _M_data()[__size])) 19959: return __size; 19959: } 19959: while (__size--); 19959: } 19959: return npos; 19959: } 19959: 19959: template 19959: 19959: typename basic_string<_CharT, _Traits, _Alloc>::size_type 19959: basic_string<_CharT, _Traits, _Alloc>:: 19959: find_last_not_of(_CharT __c, size_type __pos) const noexcept 19959: { 19959: size_type __size = this->size(); 19959: if (__size) 19959: { 19959: if (--__size > __pos) 19959: __size = __pos; 19959: do 19959: { 19959: if (!traits_type::eq(_M_data()[__size], __c)) 19959: return __size; 19959: } 19959: while (__size--); 19959: } 19959: return npos; 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: operator>>(basic_istream<_CharT, _Traits>& __in, 19959: basic_string<_CharT, _Traits, _Alloc>& __str) 19959: { 19959: typedef basic_istream<_CharT, _Traits> __istream_type; 19959: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 19959: typedef typename __istream_type::ios_base __ios_base; 19959: typedef typename __istream_type::int_type __int_type; 19959: typedef typename __string_type::size_type __size_type; 19959: typedef ctype<_CharT> __ctype_type; 19959: typedef typename __ctype_type::ctype_base __ctype_base; 19959: 19959: __size_type __extracted = 0; 19959: typename __ios_base::iostate __err = __ios_base::goodbit; 19959: typename __istream_type::sentry __cerb(__in, false); 19959: if (__cerb) 19959: { 19959: try 19959: { 19959: 19959: __str.erase(); 19959: _CharT __buf[128]; 19959: __size_type __len = 0; 19959: const streamsize __w = __in.width(); 19959: const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) 19959: : __str.max_size(); 19959: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 19959: const __int_type __eof = _Traits::eof(); 19959: __int_type __c = __in.rdbuf()->sgetc(); 19959: 19959: while (__extracted < __n 19959: && !_Traits::eq_int_type(__c, __eof) 19959: && !__ct.is(__ctype_base::space, 19959: _Traits::to_char_type(__c))) 19959: { 19959: if (__len == sizeof(__buf) / sizeof(_CharT)) 19959: { 19959: __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); 19959: __len = 0; 19959: } 19959: __buf[__len++] = _Traits::to_char_type(__c); 19959: ++__extracted; 19959: __c = __in.rdbuf()->snextc(); 19959: } 19959: __str.append(__buf, __len); 19959: 19959: if (__extracted < __n && _Traits::eq_int_type(__c, __eof)) 19959: __err |= __ios_base::eofbit; 19959: __in.width(0); 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: __in._M_setstate(__ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { 19959: 19959: 19959: 19959: __in._M_setstate(__ios_base::badbit); 19959: } 19959: } 19959: 19959: if (!__extracted) 19959: __err |= __ios_base::failbit; 19959: if (__err) 19959: __in.setstate(__err); 19959: return __in; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: getline(basic_istream<_CharT, _Traits>& __in, 19959: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 19959: { 19959: typedef basic_istream<_CharT, _Traits> __istream_type; 19959: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 19959: typedef typename __istream_type::ios_base __ios_base; 19959: typedef typename __istream_type::int_type __int_type; 19959: typedef typename __string_type::size_type __size_type; 19959: 19959: __size_type __extracted = 0; 19959: const __size_type __n = __str.max_size(); 19959: typename __ios_base::iostate __err = __ios_base::goodbit; 19959: typename __istream_type::sentry __cerb(__in, true); 19959: if (__cerb) 19959: { 19959: try 19959: { 19959: __str.erase(); 19959: const __int_type __idelim = _Traits::to_int_type(__delim); 19959: const __int_type __eof = _Traits::eof(); 19959: __int_type __c = __in.rdbuf()->sgetc(); 19959: 19959: while (__extracted < __n 19959: && !_Traits::eq_int_type(__c, __eof) 19959: && !_Traits::eq_int_type(__c, __idelim)) 19959: { 19959: __str += _Traits::to_char_type(__c); 19959: ++__extracted; 19959: __c = __in.rdbuf()->snextc(); 19959: } 19959: 19959: if (_Traits::eq_int_type(__c, __eof)) 19959: __err |= __ios_base::eofbit; 19959: else if (_Traits::eq_int_type(__c, __idelim)) 19959: { 19959: ++__extracted; 19959: __in.rdbuf()->sbumpc(); 19959: } 19959: else 19959: __err |= __ios_base::failbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: __in._M_setstate(__ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { 19959: 19959: 19959: 19959: __in._M_setstate(__ios_base::badbit); 19959: } 19959: } 19959: if (!__extracted) 19959: __err |= __ios_base::failbit; 19959: if (__err) 19959: __in.setstate(__err); 19959: return __in; 19959: } 19959: # 969 "/usr/include/c++/13/bits/basic_string.tcc" 3 19959: extern template class basic_string; 19959: # 982 "/usr/include/c++/13/bits/basic_string.tcc" 3 19959: extern template 19959: basic_istream& 19959: operator>>(basic_istream&, string&); 19959: extern template 19959: basic_ostream& 19959: operator<<(basic_ostream&, const string&); 19959: extern template 19959: basic_istream& 19959: getline(basic_istream&, string&, char); 19959: extern template 19959: basic_istream& 19959: getline(basic_istream&, string&); 19959: 19959: 19959: 19959: extern template class basic_string; 19959: # 1008 "/usr/include/c++/13/bits/basic_string.tcc" 3 19959: extern template 19959: basic_istream& 19959: operator>>(basic_istream&, wstring&); 19959: extern template 19959: basic_ostream& 19959: operator<<(basic_ostream&, const wstring&); 19959: extern template 19959: basic_istream& 19959: getline(basic_istream&, wstring&, wchar_t); 19959: extern template 19959: basic_istream& 19959: getline(basic_istream&, wstring&); 19959: 19959: 19959: 19959: 19959: } 19959: # 56 "/usr/include/c++/13/string" 2 3 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: namespace pmr { 19959: template> 19959: using basic_string = std::basic_string<_CharT, _Traits, 19959: polymorphic_allocator<_CharT>>; 19959: using string = basic_string; 19959: 19959: 19959: 19959: using u16string = basic_string; 19959: using u32string = basic_string; 19959: using wstring = basic_string; 19959: } 19959: 19959: } 19959: # 16 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: # 1 "/usr/include/c++/13/unordered_set" 1 3 19959: # 32 "/usr/include/c++/13/unordered_set" 3 19959: 19959: # 33 "/usr/include/c++/13/unordered_set" 3 19959: # 41 "/usr/include/c++/13/unordered_set" 3 19959: # 1 "/usr/include/c++/13/bits/unordered_set.h" 1 3 19959: # 38 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: template 19959: using __uset_traits = __detail::_Hashtable_traits<_Cache, true, true>; 19959: 19959: template, 19959: typename _Pred = std::equal_to<_Value>, 19959: typename _Alloc = std::allocator<_Value>, 19959: typename _Tr = __uset_traits<__cache_default<_Value, _Hash>::value>> 19959: using __uset_hashtable = _Hashtable<_Value, _Value, _Alloc, 19959: __detail::_Identity, _Pred, _Hash, 19959: __detail::_Mod_range_hashing, 19959: __detail::_Default_ranged_hash, 19959: __detail::_Prime_rehash_policy, _Tr>; 19959: 19959: 19959: template 19959: using __umset_traits = __detail::_Hashtable_traits<_Cache, true, false>; 19959: 19959: template, 19959: typename _Pred = std::equal_to<_Value>, 19959: typename _Alloc = std::allocator<_Value>, 19959: typename _Tr = __umset_traits<__cache_default<_Value, _Hash>::value>> 19959: using __umset_hashtable = _Hashtable<_Value, _Value, _Alloc, 19959: __detail::_Identity, 19959: _Pred, _Hash, 19959: __detail::_Mod_range_hashing, 19959: __detail::_Default_ranged_hash, 19959: __detail::_Prime_rehash_policy, _Tr>; 19959: 19959: template 19959: class unordered_multiset; 19959: # 100 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: template, 19959: typename _Pred = equal_to<_Value>, 19959: typename _Alloc = allocator<_Value>> 19959: class unordered_set 19959: { 19959: typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 19959: _Hashtable _M_h; 19959: 19959: public: 19959: 19959: 19959: 19959: typedef typename _Hashtable::key_type key_type; 19959: typedef typename _Hashtable::value_type value_type; 19959: typedef typename _Hashtable::hasher hasher; 19959: typedef typename _Hashtable::key_equal key_equal; 19959: typedef typename _Hashtable::allocator_type allocator_type; 19959: 19959: 19959: 19959: 19959: typedef typename _Hashtable::pointer pointer; 19959: typedef typename _Hashtable::const_pointer const_pointer; 19959: typedef typename _Hashtable::reference reference; 19959: typedef typename _Hashtable::const_reference const_reference; 19959: typedef typename _Hashtable::iterator iterator; 19959: typedef typename _Hashtable::const_iterator const_iterator; 19959: typedef typename _Hashtable::local_iterator local_iterator; 19959: typedef typename _Hashtable::const_local_iterator const_local_iterator; 19959: typedef typename _Hashtable::size_type size_type; 19959: typedef typename _Hashtable::difference_type difference_type; 19959: 19959: 19959: 19959: using node_type = typename _Hashtable::node_type; 19959: using insert_return_type = typename _Hashtable::insert_return_type; 19959: 19959: 19959: 19959: 19959: 19959: unordered_set() = default; 19959: # 151 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: explicit 19959: unordered_set(size_type __n, 19959: const hasher& __hf = hasher(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_h(__n, __hf, __eql, __a) 19959: { } 19959: # 172 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: template 19959: unordered_set(_InputIterator __first, _InputIterator __last, 19959: size_type __n = 0, 19959: const hasher& __hf = hasher(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_h(__first, __last, __n, __hf, __eql, __a) 19959: { } 19959: 19959: 19959: unordered_set(const unordered_set&) = default; 19959: 19959: 19959: unordered_set(unordered_set&&) = default; 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: unordered_set(const allocator_type& __a) 19959: : _M_h(__a) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: unordered_set(const unordered_set& __uset, 19959: const allocator_type& __a) 19959: : _M_h(__uset._M_h, __a) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: unordered_set(unordered_set&& __uset, 19959: const allocator_type& __a) 19959: noexcept( noexcept(_Hashtable(std::move(__uset._M_h), __a)) ) 19959: : _M_h(std::move(__uset._M_h), __a) 19959: { } 19959: # 228 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: unordered_set(initializer_list __l, 19959: size_type __n = 0, 19959: const hasher& __hf = hasher(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_h(__l, __n, __hf, __eql, __a) 19959: { } 19959: 19959: unordered_set(size_type __n, const allocator_type& __a) 19959: : unordered_set(__n, hasher(), key_equal(), __a) 19959: { } 19959: 19959: unordered_set(size_type __n, const hasher& __hf, 19959: const allocator_type& __a) 19959: : unordered_set(__n, __hf, key_equal(), __a) 19959: { } 19959: 19959: template 19959: unordered_set(_InputIterator __first, _InputIterator __last, 19959: size_type __n, 19959: const allocator_type& __a) 19959: : unordered_set(__first, __last, __n, hasher(), key_equal(), __a) 19959: { } 19959: 19959: template 19959: unordered_set(_InputIterator __first, _InputIterator __last, 19959: size_type __n, const hasher& __hf, 19959: const allocator_type& __a) 19959: : unordered_set(__first, __last, __n, __hf, key_equal(), __a) 19959: { } 19959: 19959: unordered_set(initializer_list __l, 19959: size_type __n, 19959: const allocator_type& __a) 19959: : unordered_set(__l, __n, hasher(), key_equal(), __a) 19959: { } 19959: 19959: unordered_set(initializer_list __l, 19959: size_type __n, const hasher& __hf, 19959: const allocator_type& __a) 19959: : unordered_set(__l, __n, __hf, key_equal(), __a) 19959: { } 19959: 19959: 19959: unordered_set& 19959: operator=(const unordered_set&) = default; 19959: 19959: 19959: unordered_set& 19959: operator=(unordered_set&&) = default; 19959: # 290 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: unordered_set& 19959: operator=(initializer_list __l) 19959: { 19959: _M_h = __l; 19959: return *this; 19959: } 19959: 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return _M_h.get_allocator(); } 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] bool 19959: empty() const noexcept 19959: { return _M_h.empty(); } 19959: 19959: 19959: size_type 19959: size() const noexcept 19959: { return _M_h.size(); } 19959: 19959: 19959: size_type 19959: max_size() const noexcept 19959: { return _M_h.max_size(); } 19959: # 326 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: iterator 19959: begin() noexcept 19959: { return _M_h.begin(); } 19959: 19959: const_iterator 19959: begin() const noexcept 19959: { return _M_h.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: end() noexcept 19959: { return _M_h.end(); } 19959: 19959: const_iterator 19959: end() const noexcept 19959: { return _M_h.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: cbegin() const noexcept 19959: { return _M_h.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: cend() const noexcept 19959: { return _M_h.end(); } 19959: # 382 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: template 19959: std::pair 19959: emplace(_Args&&... __args) 19959: { return _M_h.emplace(std::forward<_Args>(__args)...); } 19959: # 408 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: template 19959: iterator 19959: emplace_hint(const_iterator __pos, _Args&&... __args) 19959: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 19959: # 427 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: std::pair 19959: insert(const value_type& __x) 19959: { return _M_h.insert(__x); } 19959: 19959: std::pair 19959: insert(value_type&& __x) 19959: { return _M_h.insert(std::move(__x)); } 19959: # 456 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: iterator 19959: insert(const_iterator __hint, const value_type& __x) 19959: { return _M_h.insert(__hint, __x); } 19959: 19959: iterator 19959: insert(const_iterator __hint, value_type&& __x) 19959: { return _M_h.insert(__hint, std::move(__x)); } 19959: # 474 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: template 19959: void 19959: insert(_InputIterator __first, _InputIterator __last) 19959: { _M_h.insert(__first, __last); } 19959: # 486 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: void 19959: insert(initializer_list __l) 19959: { _M_h.insert(__l); } 19959: 19959: 19959: 19959: node_type 19959: extract(const_iterator __pos) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 19959: return _M_h.extract(__pos); 19959: } 19959: 19959: 19959: node_type 19959: extract(const key_type& __key) 19959: { return _M_h.extract(__key); } 19959: 19959: 19959: insert_return_type 19959: insert(node_type&& __nh) 19959: { return _M_h._M_reinsert_node(std::move(__nh)); } 19959: 19959: 19959: iterator 19959: insert(const_iterator, node_type&& __nh) 19959: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 19959: # 529 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: iterator 19959: erase(const_iterator __position) 19959: { return _M_h.erase(__position); } 19959: 19959: 19959: iterator 19959: erase(iterator __position) 19959: { return _M_h.erase(__position); } 19959: # 551 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: size_type 19959: erase(const key_type& __x) 19959: { return _M_h.erase(__x); } 19959: # 569 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: iterator 19959: erase(const_iterator __first, const_iterator __last) 19959: { return _M_h.erase(__first, __last); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: clear() noexcept 19959: { _M_h.clear(); } 19959: # 592 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: void 19959: swap(unordered_set& __x) 19959: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 19959: { _M_h.swap(__x._M_h); } 19959: 19959: 19959: template 19959: friend class std::_Hash_merge_helper; 19959: 19959: template 19959: void 19959: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 19959: { 19959: using _Merge_helper = _Hash_merge_helper; 19959: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 19959: { merge(__source); } 19959: 19959: template 19959: void 19959: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 19959: { 19959: using _Merge_helper = _Hash_merge_helper; 19959: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 19959: { merge(__source); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: hasher 19959: hash_function() const 19959: { return _M_h.hash_function(); } 19959: 19959: 19959: 19959: key_equal 19959: key_eq() const 19959: { return _M_h.key_eq(); } 19959: # 656 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: iterator 19959: find(const key_type& __x) 19959: { return _M_h.find(__x); } 19959: # 668 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: const_iterator 19959: find(const key_type& __x) const 19959: { return _M_h.find(__x); } 19959: # 691 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: size_type 19959: count(const key_type& __x) const 19959: { return _M_h.count(__x); } 19959: # 732 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) 19959: { return _M_h.equal_range(__x); } 19959: # 744 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) const 19959: { return _M_h.equal_range(__x); } 19959: # 760 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: size_type 19959: bucket_count() const noexcept 19959: { return _M_h.bucket_count(); } 19959: 19959: 19959: size_type 19959: max_bucket_count() const noexcept 19959: { return _M_h.max_bucket_count(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_type 19959: bucket_size(size_type __n) const 19959: { return _M_h.bucket_size(__n); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_type 19959: bucket(const key_type& __key) const 19959: { return _M_h.bucket(__key); } 19959: # 794 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: local_iterator 19959: begin(size_type __n) 19959: { return _M_h.begin(__n); } 19959: 19959: const_local_iterator 19959: begin(size_type __n) const 19959: { return _M_h.begin(__n); } 19959: 19959: const_local_iterator 19959: cbegin(size_type __n) const 19959: { return _M_h.cbegin(__n); } 19959: # 814 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: local_iterator 19959: end(size_type __n) 19959: { return _M_h.end(__n); } 19959: 19959: const_local_iterator 19959: end(size_type __n) const 19959: { return _M_h.end(__n); } 19959: 19959: const_local_iterator 19959: cend(size_type __n) const 19959: { return _M_h.cend(__n); } 19959: 19959: 19959: 19959: 19959: 19959: float 19959: load_factor() const noexcept 19959: { return _M_h.load_factor(); } 19959: 19959: 19959: 19959: float 19959: max_load_factor() const noexcept 19959: { return _M_h.max_load_factor(); } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: max_load_factor(float __z) 19959: { _M_h.max_load_factor(__z); } 19959: # 855 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: void 19959: rehash(size_type __n) 19959: { _M_h.rehash(__n); } 19959: # 866 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: void 19959: reserve(size_type __n) 19959: { _M_h.reserve(__n); } 19959: 19959: template 19959: friend bool 19959: operator==(const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&, 19959: const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&); 19959: }; 19959: 19959: 19959: 19959: template::value_type>, 19959: typename _Pred = 19959: equal_to::value_type>, 19959: typename _Allocator = 19959: allocator::value_type>, 19959: typename = _RequireInputIter<_InputIterator>, 19959: typename = _RequireNotAllocatorOrIntegral<_Hash>, 19959: typename = _RequireNotAllocator<_Pred>, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_set(_InputIterator, _InputIterator, 19959: unordered_set::size_type = {}, 19959: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 19959: -> unordered_set::value_type, 19959: _Hash, _Pred, _Allocator>; 19959: 19959: template, 19959: typename _Pred = equal_to<_Tp>, 19959: typename _Allocator = allocator<_Tp>, 19959: typename = _RequireNotAllocatorOrIntegral<_Hash>, 19959: typename = _RequireNotAllocator<_Pred>, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_set(initializer_list<_Tp>, 19959: unordered_set::size_type = {}, 19959: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 19959: -> unordered_set<_Tp, _Hash, _Pred, _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_set(_InputIterator, _InputIterator, 19959: unordered_set::size_type, _Allocator) 19959: -> unordered_set::value_type, 19959: hash< 19959: typename iterator_traits<_InputIterator>::value_type>, 19959: equal_to< 19959: typename iterator_traits<_InputIterator>::value_type>, 19959: _Allocator>; 19959: 19959: template, 19959: typename = _RequireNotAllocatorOrIntegral<_Hash>, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_set(_InputIterator, _InputIterator, 19959: unordered_set::size_type, 19959: _Hash, _Allocator) 19959: -> unordered_set::value_type, 19959: _Hash, 19959: equal_to< 19959: typename iterator_traits<_InputIterator>::value_type>, 19959: _Allocator>; 19959: 19959: template> 19959: unordered_set(initializer_list<_Tp>, 19959: unordered_set::size_type, _Allocator) 19959: -> unordered_set<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_set(initializer_list<_Tp>, 19959: unordered_set::size_type, _Hash, _Allocator) 19959: -> unordered_set<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 19959: # 968 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: template, 19959: typename _Pred = equal_to<_Value>, 19959: typename _Alloc = allocator<_Value>> 19959: class unordered_multiset 19959: { 19959: typedef __umset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 19959: _Hashtable _M_h; 19959: 19959: public: 19959: 19959: 19959: 19959: typedef typename _Hashtable::key_type key_type; 19959: typedef typename _Hashtable::value_type value_type; 19959: typedef typename _Hashtable::hasher hasher; 19959: typedef typename _Hashtable::key_equal key_equal; 19959: typedef typename _Hashtable::allocator_type allocator_type; 19959: 19959: 19959: 19959: 19959: typedef typename _Hashtable::pointer pointer; 19959: typedef typename _Hashtable::const_pointer const_pointer; 19959: typedef typename _Hashtable::reference reference; 19959: typedef typename _Hashtable::const_reference const_reference; 19959: typedef typename _Hashtable::iterator iterator; 19959: typedef typename _Hashtable::const_iterator const_iterator; 19959: typedef typename _Hashtable::local_iterator local_iterator; 19959: typedef typename _Hashtable::const_local_iterator const_local_iterator; 19959: typedef typename _Hashtable::size_type size_type; 19959: typedef typename _Hashtable::difference_type difference_type; 19959: 19959: 19959: 19959: using node_type = typename _Hashtable::node_type; 19959: 19959: 19959: 19959: 19959: 19959: unordered_multiset() = default; 19959: # 1018 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: explicit 19959: unordered_multiset(size_type __n, 19959: const hasher& __hf = hasher(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_h(__n, __hf, __eql, __a) 19959: { } 19959: # 1039 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: template 19959: unordered_multiset(_InputIterator __first, _InputIterator __last, 19959: size_type __n = 0, 19959: const hasher& __hf = hasher(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_h(__first, __last, __n, __hf, __eql, __a) 19959: { } 19959: 19959: 19959: unordered_multiset(const unordered_multiset&) = default; 19959: 19959: 19959: unordered_multiset(unordered_multiset&&) = default; 19959: # 1065 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: unordered_multiset(initializer_list __l, 19959: size_type __n = 0, 19959: const hasher& __hf = hasher(), 19959: const key_equal& __eql = key_equal(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_h(__l, __n, __hf, __eql, __a) 19959: { } 19959: 19959: 19959: unordered_multiset& 19959: operator=(const unordered_multiset&) = default; 19959: 19959: 19959: unordered_multiset& 19959: operator=(unordered_multiset&&) = default; 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: unordered_multiset(const allocator_type& __a) 19959: : _M_h(__a) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: unordered_multiset(const unordered_multiset& __umset, 19959: const allocator_type& __a) 19959: : _M_h(__umset._M_h, __a) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: unordered_multiset(unordered_multiset&& __umset, 19959: const allocator_type& __a) 19959: noexcept( noexcept(_Hashtable(std::move(__umset._M_h), __a)) ) 19959: : _M_h(std::move(__umset._M_h), __a) 19959: { } 19959: 19959: unordered_multiset(size_type __n, const allocator_type& __a) 19959: : unordered_multiset(__n, hasher(), key_equal(), __a) 19959: { } 19959: 19959: unordered_multiset(size_type __n, const hasher& __hf, 19959: const allocator_type& __a) 19959: : unordered_multiset(__n, __hf, key_equal(), __a) 19959: { } 19959: 19959: template 19959: unordered_multiset(_InputIterator __first, _InputIterator __last, 19959: size_type __n, 19959: const allocator_type& __a) 19959: : unordered_multiset(__first, __last, __n, hasher(), key_equal(), __a) 19959: { } 19959: 19959: template 19959: unordered_multiset(_InputIterator __first, _InputIterator __last, 19959: size_type __n, const hasher& __hf, 19959: const allocator_type& __a) 19959: : unordered_multiset(__first, __last, __n, __hf, key_equal(), __a) 19959: { } 19959: 19959: unordered_multiset(initializer_list __l, 19959: size_type __n, 19959: const allocator_type& __a) 19959: : unordered_multiset(__l, __n, hasher(), key_equal(), __a) 19959: { } 19959: 19959: unordered_multiset(initializer_list __l, 19959: size_type __n, const hasher& __hf, 19959: const allocator_type& __a) 19959: : unordered_multiset(__l, __n, __hf, key_equal(), __a) 19959: { } 19959: # 1157 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: unordered_multiset& 19959: operator=(initializer_list __l) 19959: { 19959: _M_h = __l; 19959: return *this; 19959: } 19959: 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return _M_h.get_allocator(); } 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] bool 19959: empty() const noexcept 19959: { return _M_h.empty(); } 19959: 19959: 19959: size_type 19959: size() const noexcept 19959: { return _M_h.size(); } 19959: 19959: 19959: size_type 19959: max_size() const noexcept 19959: { return _M_h.max_size(); } 19959: # 1193 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: iterator 19959: begin() noexcept 19959: { return _M_h.begin(); } 19959: 19959: const_iterator 19959: begin() const noexcept 19959: { return _M_h.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: end() noexcept 19959: { return _M_h.end(); } 19959: 19959: const_iterator 19959: end() const noexcept 19959: { return _M_h.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: cbegin() const noexcept 19959: { return _M_h.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: cend() const noexcept 19959: { return _M_h.end(); } 19959: # 1241 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: template 19959: iterator 19959: emplace(_Args&&... __args) 19959: { return _M_h.emplace(std::forward<_Args>(__args)...); } 19959: # 1263 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: template 19959: iterator 19959: emplace_hint(const_iterator __pos, _Args&&... __args) 19959: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 19959: # 1276 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: iterator 19959: insert(const value_type& __x) 19959: { return _M_h.insert(__x); } 19959: 19959: iterator 19959: insert(value_type&& __x) 19959: { return _M_h.insert(std::move(__x)); } 19959: # 1302 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: iterator 19959: insert(const_iterator __hint, const value_type& __x) 19959: { return _M_h.insert(__hint, __x); } 19959: 19959: iterator 19959: insert(const_iterator __hint, value_type&& __x) 19959: { return _M_h.insert(__hint, std::move(__x)); } 19959: # 1319 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: template 19959: void 19959: insert(_InputIterator __first, _InputIterator __last) 19959: { _M_h.insert(__first, __last); } 19959: # 1331 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: void 19959: insert(initializer_list __l) 19959: { _M_h.insert(__l); } 19959: 19959: 19959: 19959: node_type 19959: extract(const_iterator __pos) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 19959: return _M_h.extract(__pos); 19959: } 19959: 19959: 19959: node_type 19959: extract(const key_type& __key) 19959: { return _M_h.extract(__key); } 19959: 19959: 19959: iterator 19959: insert(node_type&& __nh) 19959: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 19959: 19959: 19959: iterator 19959: insert(const_iterator __hint, node_type&& __nh) 19959: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 19959: # 1375 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: iterator 19959: erase(const_iterator __position) 19959: { return _M_h.erase(__position); } 19959: 19959: 19959: iterator 19959: erase(iterator __position) 19959: { return _M_h.erase(__position); } 19959: # 1398 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: size_type 19959: erase(const key_type& __x) 19959: { return _M_h.erase(__x); } 19959: # 1418 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: iterator 19959: erase(const_iterator __first, const_iterator __last) 19959: { return _M_h.erase(__first, __last); } 19959: # 1429 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: void 19959: clear() noexcept 19959: { _M_h.clear(); } 19959: # 1442 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: void 19959: swap(unordered_multiset& __x) 19959: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 19959: { _M_h.swap(__x._M_h); } 19959: 19959: 19959: template 19959: friend class std::_Hash_merge_helper; 19959: 19959: template 19959: void 19959: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 19959: { 19959: using _Merge_helper 19959: = _Hash_merge_helper; 19959: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 19959: { merge(__source); } 19959: 19959: template 19959: void 19959: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 19959: { 19959: using _Merge_helper 19959: = _Hash_merge_helper; 19959: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 19959: { merge(__source); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: hasher 19959: hash_function() const 19959: { return _M_h.hash_function(); } 19959: 19959: 19959: 19959: key_equal 19959: key_eq() const 19959: { return _M_h.key_eq(); } 19959: # 1508 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: iterator 19959: find(const key_type& __x) 19959: { return _M_h.find(__x); } 19959: # 1520 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: const_iterator 19959: find(const key_type& __x) const 19959: { return _M_h.find(__x); } 19959: # 1539 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: size_type 19959: count(const key_type& __x) const 19959: { return _M_h.count(__x); } 19959: # 1577 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) 19959: { return _M_h.equal_range(__x); } 19959: # 1589 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) const 19959: { return _M_h.equal_range(__x); } 19959: # 1605 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: size_type 19959: bucket_count() const noexcept 19959: { return _M_h.bucket_count(); } 19959: 19959: 19959: size_type 19959: max_bucket_count() const noexcept 19959: { return _M_h.max_bucket_count(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_type 19959: bucket_size(size_type __n) const 19959: { return _M_h.bucket_size(__n); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_type 19959: bucket(const key_type& __key) const 19959: { return _M_h.bucket(__key); } 19959: # 1639 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: local_iterator 19959: begin(size_type __n) 19959: { return _M_h.begin(__n); } 19959: 19959: const_local_iterator 19959: begin(size_type __n) const 19959: { return _M_h.begin(__n); } 19959: 19959: const_local_iterator 19959: cbegin(size_type __n) const 19959: { return _M_h.cbegin(__n); } 19959: # 1659 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: local_iterator 19959: end(size_type __n) 19959: { return _M_h.end(__n); } 19959: 19959: const_local_iterator 19959: end(size_type __n) const 19959: { return _M_h.end(__n); } 19959: 19959: const_local_iterator 19959: cend(size_type __n) const 19959: { return _M_h.cend(__n); } 19959: 19959: 19959: 19959: 19959: 19959: float 19959: load_factor() const noexcept 19959: { return _M_h.load_factor(); } 19959: 19959: 19959: 19959: float 19959: max_load_factor() const noexcept 19959: { return _M_h.max_load_factor(); } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: max_load_factor(float __z) 19959: { _M_h.max_load_factor(__z); } 19959: # 1700 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: void 19959: rehash(size_type __n) 19959: { _M_h.rehash(__n); } 19959: # 1711 "/usr/include/c++/13/bits/unordered_set.h" 3 19959: void 19959: reserve(size_type __n) 19959: { _M_h.reserve(__n); } 19959: 19959: template 19959: friend bool 19959: operator==(const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&, 19959: const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&); 19959: }; 19959: 19959: 19959: 19959: 19959: template::value_type>, 19959: typename _Pred = 19959: equal_to::value_type>, 19959: typename _Allocator = 19959: allocator::value_type>, 19959: typename = _RequireInputIter<_InputIterator>, 19959: typename = _RequireNotAllocatorOrIntegral<_Hash>, 19959: typename = _RequireNotAllocator<_Pred>, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_multiset(_InputIterator, _InputIterator, 19959: unordered_multiset::size_type = {}, 19959: _Hash = _Hash(), _Pred = _Pred(), 19959: _Allocator = _Allocator()) 19959: -> unordered_multiset::value_type, 19959: _Hash, _Pred, _Allocator>; 19959: 19959: template, 19959: typename _Pred = equal_to<_Tp>, 19959: typename _Allocator = allocator<_Tp>, 19959: typename = _RequireNotAllocatorOrIntegral<_Hash>, 19959: typename = _RequireNotAllocator<_Pred>, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_multiset(initializer_list<_Tp>, 19959: unordered_multiset::size_type = {}, 19959: _Hash = _Hash(), _Pred = _Pred(), 19959: _Allocator = _Allocator()) 19959: -> unordered_multiset<_Tp, _Hash, _Pred, _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_multiset(_InputIterator, _InputIterator, 19959: unordered_multiset::size_type, _Allocator) 19959: -> unordered_multiset::value_type, 19959: hash::value_type>, 19959: equal_to::value_type>, 19959: _Allocator>; 19959: 19959: template, 19959: typename = _RequireNotAllocatorOrIntegral<_Hash>, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_multiset(_InputIterator, _InputIterator, 19959: unordered_multiset::size_type, 19959: _Hash, _Allocator) 19959: -> unordered_multiset::value_type, 19959: _Hash, 19959: equal_to< 19959: typename 19959: iterator_traits<_InputIterator>::value_type>, 19959: _Allocator>; 19959: 19959: template> 19959: unordered_multiset(initializer_list<_Tp>, 19959: unordered_multiset::size_type, _Allocator) 19959: -> unordered_multiset<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: unordered_multiset(initializer_list<_Tp>, 19959: unordered_multiset::size_type, _Hash, _Allocator) 19959: -> unordered_multiset<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 19959: unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: template 19959: inline void 19959: swap(unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 19959: unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: template 19959: inline bool 19959: operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 19959: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 19959: { return __x._M_h._M_equal(__y._M_h); } 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 19959: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 19959: { return !(__x == __y); } 19959: 19959: 19959: template 19959: inline bool 19959: operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 19959: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 19959: { return __x._M_h._M_equal(__y._M_h); } 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 19959: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 19959: { return !(__x == __y); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Hash_merge_helper< 19959: std::unordered_set<_Val, _Hash1, _Eq1, _Alloc>, _Hash2, _Eq2> 19959: { 19959: private: 19959: template 19959: using unordered_set = std::unordered_set<_Tp...>; 19959: template 19959: using unordered_multiset = std::unordered_multiset<_Tp...>; 19959: 19959: friend unordered_set<_Val, _Hash1, _Eq1, _Alloc>; 19959: 19959: static auto& 19959: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 19959: { return __set._M_h; } 19959: 19959: static auto& 19959: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 19959: { return __set._M_h; } 19959: }; 19959: 19959: 19959: template 19959: struct _Hash_merge_helper< 19959: std::unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>, 19959: _Hash2, _Eq2> 19959: { 19959: private: 19959: template 19959: using unordered_set = std::unordered_set<_Tp...>; 19959: template 19959: using unordered_multiset = std::unordered_multiset<_Tp...>; 19959: 19959: friend unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>; 19959: 19959: static auto& 19959: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 19959: { return __set._M_h; } 19959: 19959: static auto& 19959: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 19959: { return __set._M_h; } 19959: }; 19959: 19959: 19959: 19959: } 19959: # 42 "/usr/include/c++/13/unordered_set" 2 3 19959: # 51 "/usr/include/c++/13/unordered_set" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: namespace pmr 19959: { 19959: template, 19959: typename _Pred = std::equal_to<_Key>> 19959: using unordered_set 19959: = std::unordered_set<_Key, _Hash, _Pred, 19959: polymorphic_allocator<_Key>>; 19959: template, 19959: typename _Pred = std::equal_to<_Key>> 19959: using unordered_multiset 19959: = std::unordered_multiset<_Key, _Hash, _Pred, 19959: polymorphic_allocator<_Key>>; 19959: } 19959: 19959: } 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/utility" 1 3 19959: # 58 "/usr/include/c++/13/utility" 3 19959: 19959: # 59 "/usr/include/c++/13/utility" 3 19959: # 68 "/usr/include/c++/13/utility" 3 19959: # 1 "/usr/include/c++/13/bits/stl_relops.h" 1 3 19959: # 62 "/usr/include/c++/13/bits/stl_relops.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: namespace rel_ops 19959: { 19959: # 86 "/usr/include/c++/13/bits/stl_relops.h" 3 19959: template 19959: inline bool 19959: operator!=(const _Tp& __x, const _Tp& __y) 19959: { return !(__x == __y); } 19959: # 99 "/usr/include/c++/13/bits/stl_relops.h" 3 19959: template 19959: inline bool 19959: operator>(const _Tp& __x, const _Tp& __y) 19959: { return __y < __x; } 19959: # 112 "/usr/include/c++/13/bits/stl_relops.h" 3 19959: template 19959: inline bool 19959: operator<=(const _Tp& __x, const _Tp& __y) 19959: { return !(__y < __x); } 19959: # 125 "/usr/include/c++/13/bits/stl_relops.h" 3 19959: template 19959: inline bool 19959: operator>=(const _Tp& __x, const _Tp& __y) 19959: { return !(__x < __y); } 19959: } 19959: 19959: 19959: } 19959: # 69 "/usr/include/c++/13/utility" 2 3 19959: # 82 "/usr/include/c++/13/utility" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 94 "/usr/include/c++/13/utility" 3 19959: template 19959: 19959: inline _Tp 19959: exchange(_Tp& __obj, _Up&& __new_val) 19959: noexcept(__and_, 19959: is_nothrow_assignable<_Tp&, _Up>>::value) 19959: { return std::__exchange(__obj, std::forward<_Up>(__new_val)); } 19959: 19959: 19959: 19959: 19959: template 19959: [[nodiscard]] 19959: constexpr add_const_t<_Tp>& 19959: as_const(_Tp& __t) noexcept 19959: { return __t; } 19959: 19959: template 19959: void as_const(const _Tp&&) = delete; 19959: # 224 "/usr/include/c++/13/utility" 3 19959: 19959: } 19959: # 16 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rocksdb_namespace.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 18 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/status.h" 1 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/status.h" 19959: 19959: # 31 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/status.h" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 1 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: 19959: 19959: # 1 "/usr/include/c++/13/cassert" 1 3 19959: # 41 "/usr/include/c++/13/cassert" 3 19959: 19959: # 42 "/usr/include/c++/13/cassert" 3 19959: 19959: 19959: # 1 "/usr/include/assert.h" 1 3 4 19959: # 66 "/usr/include/assert.h" 3 4 19959: extern "C" { 19959: 19959: 19959: extern void __assert_fail (const char *__assertion, const char *__file, 19959: unsigned int __line, const char *__function) 19959: noexcept (true) __attribute__ ((__noreturn__)); 19959: 19959: 19959: extern void __assert_perror_fail (int __errnum, const char *__file, 19959: unsigned int __line, const char *__function) 19959: noexcept (true) __attribute__ ((__noreturn__)); 19959: 19959: 19959: 19959: 19959: extern void __assert (const char *__assertion, const char *__file, int __line) 19959: noexcept (true) __attribute__ ((__noreturn__)); 19959: 19959: 19959: } 19959: # 45 "/usr/include/c++/13/cassert" 2 3 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 2 19959: 19959: # 1 "/usr/include/c++/13/cstdio" 1 3 19959: # 39 "/usr/include/c++/13/cstdio" 3 19959: 19959: # 40 "/usr/include/c++/13/cstdio" 3 19959: # 24 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 2 19959: # 1 "/usr/include/c++/13/cstring" 1 3 19959: # 39 "/usr/include/c++/13/cstring" 3 19959: 19959: # 40 "/usr/include/c++/13/cstring" 3 19959: 19959: 19959: # 1 "/usr/include/string.h" 1 3 4 19959: # 26 "/usr/include/string.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 19959: # 27 "/usr/include/string.h" 2 3 4 19959: 19959: extern "C" { 19959: 19959: 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 34 "/usr/include/string.h" 2 3 4 19959: # 43 "/usr/include/string.h" 3 4 19959: extern void *memcpy (void *__restrict __dest, const void *__restrict __src, 19959: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern void *memmove (void *__dest, const void *__src, size_t __n) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: 19959: 19959: extern void *memccpy (void *__restrict __dest, const void *__restrict __src, 19959: int __c, size_t __n) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 4))); 19959: 19959: 19959: 19959: 19959: extern void *memset (void *__s, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int memcmp (const void *__s1, const void *__s2, size_t __n) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: # 80 "/usr/include/string.h" 3 4 19959: extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: extern "C++" 19959: { 19959: extern void *memchr (void *__s, int __c, size_t __n) 19959: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: extern const void *memchr (const void *__s, int __c, size_t __n) 19959: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) void * 19959: memchr (void *__s, int __c, size_t __n) noexcept (true) 19959: { 19959: return __builtin_memchr (__s, __c, __n); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const void * 19959: memchr (const void *__s, int __c, size_t __n) noexcept (true) 19959: { 19959: return __builtin_memchr (__s, __c, __n); 19959: } 19959: 19959: } 19959: # 115 "/usr/include/string.h" 3 4 19959: extern "C++" void *rawmemchr (void *__s, int __c) 19959: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: extern "C++" const void *rawmemchr (const void *__s, int __c) 19959: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern "C++" void *memrchr (void *__s, int __c, size_t __n) 19959: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 19959: __attribute__ ((__access__ (__read_only__, 1, 3))); 19959: extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) 19959: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 19959: __attribute__ ((__access__ (__read_only__, 1, 3))); 19959: # 141 "/usr/include/string.h" 3 4 19959: extern char *strcpy (char *__restrict __dest, const char *__restrict __src) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: extern char *strncpy (char *__restrict __dest, 19959: const char *__restrict __src, size_t __n) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern char *strcat (char *__restrict __dest, const char *__restrict __src) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: extern char *strncat (char *__restrict __dest, const char *__restrict __src, 19959: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int strcmp (const char *__s1, const char *__s2) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: extern int strncmp (const char *__s1, const char *__s2, size_t __n) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int strcoll (const char *__s1, const char *__s2) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: extern size_t strxfrm (char *__restrict __dest, 19959: const char *__restrict __src, size_t __n) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 19959: 19959: 19959: extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, 19959: locale_t __l) noexcept (true) __attribute__ ((__nonnull__ (2, 4))) 19959: __attribute__ ((__access__ (__write_only__, 1, 3))); 19959: 19959: 19959: 19959: 19959: 19959: extern char *strdup (const char *__s) 19959: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern char *strndup (const char *__string, size_t __n) 19959: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 19959: # 224 "/usr/include/string.h" 3 4 19959: extern "C++" 19959: { 19959: extern char *strchr (char *__s, int __c) 19959: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: extern const char *strchr (const char *__s, int __c) 19959: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 19959: strchr (char *__s, int __c) noexcept (true) 19959: { 19959: return __builtin_strchr (__s, __c); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 19959: strchr (const char *__s, int __c) noexcept (true) 19959: { 19959: return __builtin_strchr (__s, __c); 19959: } 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern "C++" 19959: { 19959: extern char *strrchr (char *__s, int __c) 19959: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: extern const char *strrchr (const char *__s, int __c) 19959: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 19959: strrchr (char *__s, int __c) noexcept (true) 19959: { 19959: return __builtin_strrchr (__s, __c); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 19959: strrchr (const char *__s, int __c) noexcept (true) 19959: { 19959: return __builtin_strrchr (__s, __c); 19959: } 19959: 19959: } 19959: # 281 "/usr/include/string.h" 3 4 19959: extern "C++" char *strchrnul (char *__s, int __c) 19959: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: extern "C++" const char *strchrnul (const char *__s, int __c) 19959: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: # 293 "/usr/include/string.h" 3 4 19959: extern size_t strcspn (const char *__s, const char *__reject) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern size_t strspn (const char *__s, const char *__accept) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern "C++" 19959: { 19959: extern char *strpbrk (char *__s, const char *__accept) 19959: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: extern const char *strpbrk (const char *__s, const char *__accept) 19959: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 19959: strpbrk (char *__s, const char *__accept) noexcept (true) 19959: { 19959: return __builtin_strpbrk (__s, __accept); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 19959: strpbrk (const char *__s, const char *__accept) noexcept (true) 19959: { 19959: return __builtin_strpbrk (__s, __accept); 19959: } 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern "C++" 19959: { 19959: extern char *strstr (char *__haystack, const char *__needle) 19959: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: extern const char *strstr (const char *__haystack, const char *__needle) 19959: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 19959: strstr (char *__haystack, const char *__needle) noexcept (true) 19959: { 19959: return __builtin_strstr (__haystack, __needle); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 19959: strstr (const char *__haystack, const char *__needle) noexcept (true) 19959: { 19959: return __builtin_strstr (__haystack, __needle); 19959: } 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern char *strtok (char *__restrict __s, const char *__restrict __delim) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: 19959: extern char *__strtok_r (char *__restrict __s, 19959: const char *__restrict __delim, 19959: char **__restrict __save_ptr) 19959: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 19959: 19959: extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, 19959: char **__restrict __save_ptr) 19959: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 19959: 19959: 19959: 19959: 19959: 19959: extern "C++" char *strcasestr (char *__haystack, const char *__needle) 19959: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: extern "C++" const char *strcasestr (const char *__haystack, 19959: const char *__needle) 19959: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: # 389 "/usr/include/string.h" 3 4 19959: extern void *memmem (const void *__haystack, size_t __haystacklen, 19959: const void *__needle, size_t __needlelen) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))) 19959: __attribute__ ((__access__ (__read_only__, 1, 2))) 19959: __attribute__ ((__access__ (__read_only__, 3, 4))); 19959: 19959: 19959: 19959: extern void *__mempcpy (void *__restrict __dest, 19959: const void *__restrict __src, size_t __n) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: extern void *mempcpy (void *__restrict __dest, 19959: const void *__restrict __src, size_t __n) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: 19959: extern size_t strlen (const char *__s) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: extern size_t strnlen (const char *__string, size_t __maxlen) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: extern char *strerror (int __errnum) noexcept (true); 19959: # 444 "/usr/include/string.h" 3 4 19959: extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: 19959: 19959: 19959: 19959: extern const char *strerrordesc_np (int __err) noexcept (true); 19959: 19959: extern const char *strerrorname_np (int __err) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern char *strerror_l (int __errnum, locale_t __l) noexcept (true); 19959: 19959: 19959: 19959: # 1 "/usr/include/strings.h" 1 3 4 19959: # 23 "/usr/include/strings.h" 3 4 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 24 "/usr/include/strings.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern "C" { 19959: 19959: 19959: 19959: extern int bcmp (const void *__s1, const void *__s2, size_t __n) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern void bcopy (const void *__src, void *__dest, size_t __n) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern void bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern "C++" 19959: { 19959: extern char *index (char *__s, int __c) 19959: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: extern const char *index (const char *__s, int __c) 19959: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 19959: index (char *__s, int __c) noexcept (true) 19959: { 19959: return __builtin_index (__s, __c); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 19959: index (const char *__s, int __c) noexcept (true) 19959: { 19959: return __builtin_index (__s, __c); 19959: } 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern "C++" 19959: { 19959: extern char *rindex (char *__s, int __c) 19959: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: extern const char *rindex (const char *__s, int __c) 19959: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 19959: rindex (char *__s, int __c) noexcept (true) 19959: { 19959: return __builtin_rindex (__s, __c); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 19959: rindex (const char *__s, int __c) noexcept (true) 19959: { 19959: return __builtin_rindex (__s, __c); 19959: } 19959: 19959: } 19959: # 104 "/usr/include/strings.h" 3 4 19959: extern int ffs (int __i) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: 19959: extern int ffsl (long int __l) noexcept (true) __attribute__ ((__const__)); 19959: __extension__ extern int ffsll (long long int __ll) 19959: noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern int strcasecmp (const char *__s1, const char *__s2) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 19959: 19959: 19959: 19959: extern int strncasecmp_l (const char *__s1, const char *__s2, 19959: size_t __n, locale_t __loc) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 1 3 4 19959: # 22 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 3 4 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 19959: __attribute__ ((__leaf__)) bcopy (const void *__src, void *__dest, size_t __len) noexcept (true) 19959: { 19959: (void) __builtin___memmove_chk (__dest, __src, __len, 19959: __builtin_object_size (__dest, 0)); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 19959: __attribute__ ((__leaf__)) bzero (void *__dest, size_t __len) noexcept (true) 19959: { 19959: (void) __builtin___memset_chk (__dest, '\0', __len, 19959: __builtin_object_size (__dest, 0)); 19959: } 19959: # 145 "/usr/include/strings.h" 2 3 4 19959: # 463 "/usr/include/string.h" 2 3 4 19959: 19959: 19959: 19959: extern void explicit_bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 19959: __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: 19959: 19959: 19959: extern char *strsep (char **__restrict __stringp, 19959: const char *__restrict __delim) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: 19959: extern char *strsignal (int __sig) noexcept (true); 19959: 19959: 19959: 19959: extern const char *sigabbrev_np (int __sig) noexcept (true); 19959: 19959: 19959: extern const char *sigdescr_np (int __sig) noexcept (true); 19959: 19959: 19959: 19959: extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: extern char *__stpncpy (char *__restrict __dest, 19959: const char *__restrict __src, size_t __n) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: extern char *stpncpy (char *__restrict __dest, 19959: const char *__restrict __src, size_t __n) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: 19959: extern int strverscmp (const char *__s1, const char *__s2) 19959: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: extern char *strfry (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern void *memfrob (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 19959: __attribute__ ((__access__ (__read_write__, 1, 2))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern "C++" char *basename (char *__filename) 19959: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 19959: extern "C++" const char *basename (const char *__filename) 19959: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 19959: # 535 "/usr/include/string.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 1 3 4 19959: # 25 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 19959: __attribute__ ((__leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 19959: 19959: { 19959: return __builtin___memcpy_chk (__dest, __src, __len, 19959: __builtin_object_size (__dest, 0)); 19959: } 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 19959: __attribute__ ((__leaf__)) memmove (void *__dest, const void *__src, size_t __len) noexcept (true) 19959: { 19959: return __builtin___memmove_chk (__dest, __src, __len, 19959: __builtin_object_size (__dest, 0)); 19959: } 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 19959: __attribute__ ((__leaf__)) mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 19959: 19959: { 19959: return __builtin___mempcpy_chk (__dest, __src, __len, 19959: __builtin_object_size (__dest, 0)); 19959: } 19959: # 56 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 19959: __attribute__ ((__leaf__)) memset (void *__dest, int __ch, size_t __len) noexcept (true) 19959: { 19959: return __builtin___memset_chk (__dest, __ch, __len, 19959: __builtin_object_size (__dest, 0)); 19959: } 19959: 19959: 19959: 19959: 19959: void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 19959: __attribute__ ((__leaf__)) explicit_bzero (void *__dest, size_t __len) noexcept (true) 19959: { 19959: __explicit_bzero_chk (__dest, __len, __builtin_object_size (__dest, 0)); 19959: } 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 19959: __attribute__ ((__leaf__)) strcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) 19959: { 19959: return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 19959: } 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 19959: __attribute__ ((__leaf__)) stpcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) 19959: { 19959: return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 19959: } 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 19959: __attribute__ ((__leaf__)) strncpy (char *__restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 19959: 19959: { 19959: return __builtin___strncpy_chk (__dest, __src, __len, 19959: __builtin_object_size (__dest, 2 > 1)); 19959: } 19959: 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 19959: __attribute__ ((__leaf__)) stpncpy (char *__dest, const char *__src, size_t __n) noexcept (true) 19959: { 19959: return __builtin___stpncpy_chk (__dest, __src, __n, 19959: __builtin_object_size (__dest, 2 > 1)); 19959: } 19959: # 127 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 19959: __attribute__ ((__leaf__)) strcat (char *__restrict __dest, const char *__restrict __src) noexcept (true) 19959: { 19959: return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 19959: } 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 19959: __attribute__ ((__leaf__)) strncat (char *__restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 19959: 19959: { 19959: return __builtin___strncat_chk (__dest, __src, __len, 19959: __builtin_object_size (__dest, 2 > 1)); 19959: } 19959: # 536 "/usr/include/string.h" 2 3 4 19959: 19959: 19959: 19959: } 19959: # 43 "/usr/include/c++/13/cstring" 2 3 19959: # 71 "/usr/include/c++/13/cstring" 3 19959: extern "C++" 19959: { 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: using ::memchr; 19959: using ::memcmp; 19959: using ::memcpy; 19959: using ::memmove; 19959: using ::memset; 19959: using ::strcat; 19959: using ::strcmp; 19959: using ::strcoll; 19959: using ::strcpy; 19959: using ::strcspn; 19959: using ::strerror; 19959: using ::strlen; 19959: using ::strncat; 19959: using ::strncmp; 19959: using ::strncpy; 19959: using ::strspn; 19959: using ::strtok; 19959: using ::strxfrm; 19959: using ::strchr; 19959: using ::strpbrk; 19959: using ::strrchr; 19959: using ::strstr; 19959: # 122 "/usr/include/c++/13/cstring" 3 19959: 19959: } 19959: } 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 2 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cleanable.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cleanable.h" 19959: 19959: 19959: 19959: 19959: 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cleanable.h" 19959: namespace rocksdb { 19959: 19959: class Cleanable { 19959: public: 19959: Cleanable(); 19959: 19959: Cleanable(Cleanable&) = delete; 19959: Cleanable& operator=(Cleanable&) = delete; 19959: 19959: 19959: ~Cleanable(); 19959: 19959: 19959: Cleanable(Cleanable&&) noexcept; 19959: Cleanable& operator=(Cleanable&&) noexcept; 19959: 19959: 19959: 19959: 19959: 19959: 19959: using CleanupFunction = void (*)(void* arg1, void* arg2); 19959: 19959: 19959: void RegisterCleanup(CleanupFunction function, void* arg1, void* arg2); 19959: 19959: 19959: 19959: void DelegateCleanupsTo(Cleanable* other); 19959: 19959: 19959: inline void Reset() { 19959: DoCleanup(); 19959: cleanup_.function = nullptr; 19959: cleanup_.next = nullptr; 19959: } 19959: 19959: inline bool HasCleanups() { return cleanup_.function != nullptr; } 19959: 19959: protected: 19959: struct Cleanup { 19959: CleanupFunction function; 19959: void* arg1; 19959: void* arg2; 19959: Cleanup* next; 19959: }; 19959: Cleanup cleanup_; 19959: 19959: void RegisterCleanup(Cleanup* c); 19959: 19959: private: 19959: 19959: 19959: 19959: inline void DoCleanup() { 19959: if (cleanup_.function != nullptr) { 19959: (*cleanup_.function)(cleanup_.arg1, cleanup_.arg2); 19959: for (Cleanup* c = cleanup_.next; c != nullptr;) { 19959: (*c->function)(c->arg1, c->arg2); 19959: Cleanup* next = c->next; 19959: delete c; 19959: c = next; 19959: } 19959: } 19959: } 19959: }; 19959: # 89 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cleanable.h" 19959: class SharedCleanablePtr { 19959: public: 19959: 19959: SharedCleanablePtr() {} 19959: 19959: SharedCleanablePtr(const SharedCleanablePtr& from); 19959: SharedCleanablePtr(SharedCleanablePtr&& from) noexcept; 19959: SharedCleanablePtr& operator=(const SharedCleanablePtr& from); 19959: SharedCleanablePtr& operator=(SharedCleanablePtr&& from) noexcept; 19959: 19959: ~SharedCleanablePtr(); 19959: 19959: 19959: void Allocate(); 19959: 19959: void Reset(); 19959: 19959: Cleanable& operator*(); 19959: Cleanable* operator->(); 19959: 19959: Cleanable* get(); 19959: 19959: 19959: 19959: 19959: 19959: 19959: void RegisterCopyWith(Cleanable* target); 19959: 19959: 19959: 19959: 19959: void MoveAsCleanupTo(Cleanable* target); 19959: 19959: private: 19959: struct Impl; 19959: Impl* ptr_ = nullptr; 19959: }; 19959: 19959: } 19959: # 29 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: class Slice { 19959: public: 19959: 19959: Slice() : data_(""), size_(0) {} 19959: 19959: 19959: Slice(const char* d, size_t n) : data_(d), size_(n) {} 19959: 19959: 19959: 19959: Slice(const std::string& s) : data_(s.data()), size_(s.size()) {} 19959: 19959: 19959: 19959: Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size()) {} 19959: 19959: 19959: 19959: Slice(const char* s) : data_(s) { size_ = (s == nullptr) ? 0 : strlen(s); } 19959: 19959: 19959: 19959: Slice(const struct SliceParts& parts, std::string* buf); 19959: 19959: 19959: const char* data() const { return data_; } 19959: 19959: 19959: size_t size() const { return size_; } 19959: 19959: 19959: bool empty() const { return size_ == 0; } 19959: 19959: 19959: 19959: char operator[](size_t n) const { 19959: 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: n < size() 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "n < size()" 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 68, __extension__ __PRETTY_FUNCTION__)) 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: return data_[n]; 19959: } 19959: 19959: 19959: void clear() { 19959: data_ = ""; 19959: size_ = 0; 19959: } 19959: 19959: 19959: void remove_prefix(size_t n) { 19959: 19959: # 80 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 80 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: n <= size() 19959: # 80 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 80 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "n <= size()" 19959: # 80 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 80, __extension__ __PRETTY_FUNCTION__)) 19959: # 80 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: data_ += n; 19959: size_ -= n; 19959: } 19959: 19959: void remove_suffix(size_t n) { 19959: 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: n <= size() 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "n <= size()" 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 86, __extension__ __PRETTY_FUNCTION__)) 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: size_ -= n; 19959: } 19959: 19959: 19959: 19959: std::string ToString(bool hex = false) const; 19959: 19959: 19959: std::string_view ToStringView() const { 19959: return std::string_view(data_, size_); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool DecodeHex(std::string* result) const; 19959: 19959: 19959: 19959: 19959: 19959: int compare(const Slice& b) const; 19959: 19959: 19959: bool starts_with(const Slice& x) const { 19959: return ((size_ >= x.size_) && (memcmp(data_, x.data_, x.size_) == 0)); 19959: } 19959: 19959: bool ends_with(const Slice& x) const { 19959: return ((size_ >= x.size_) && 19959: (memcmp(data_ + size_ - x.size_, x.data_, x.size_) == 0)); 19959: } 19959: 19959: 19959: size_t difference_offset(const Slice& b) const; 19959: 19959: 19959: const char* data_; 19959: size_t size_; 19959: 19959: 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class PinnableSlice : public Slice, public Cleanable { 19959: public: 19959: PinnableSlice() { buf_ = &self_space_; } 19959: explicit PinnableSlice(std::string* buf) { buf_ = buf; } 19959: 19959: PinnableSlice(PinnableSlice&& other); 19959: PinnableSlice& operator=(PinnableSlice&& other); 19959: 19959: 19959: PinnableSlice(PinnableSlice&) = delete; 19959: PinnableSlice& operator=(PinnableSlice&) = delete; 19959: 19959: inline void PinSlice(const Slice& s, CleanupFunction f, void* arg1, 19959: void* arg2) { 19959: 19959: # 152 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 152 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: !pinned_ 19959: # 152 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 152 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "!pinned_" 19959: # 152 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 152, __extension__ __PRETTY_FUNCTION__)) 19959: # 152 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: pinned_ = true; 19959: data_ = s.data(); 19959: size_ = s.size(); 19959: RegisterCleanup(f, arg1, arg2); 19959: 19959: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: pinned_ 19959: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "pinned_" 19959: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 157, __extension__ __PRETTY_FUNCTION__)) 19959: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: } 19959: 19959: inline void PinSlice(const Slice& s, Cleanable* cleanable) { 19959: 19959: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: !pinned_ 19959: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "!pinned_" 19959: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 161, __extension__ __PRETTY_FUNCTION__)) 19959: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: pinned_ = true; 19959: data_ = s.data(); 19959: size_ = s.size(); 19959: if (cleanable != nullptr) { 19959: cleanable->DelegateCleanupsTo(this); 19959: } 19959: 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: pinned_ 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "pinned_" 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 168, __extension__ __PRETTY_FUNCTION__)) 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: } 19959: 19959: inline void PinSelf(const Slice& slice) { 19959: 19959: # 172 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 172 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: !pinned_ 19959: # 172 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 172 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "!pinned_" 19959: # 172 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 172, __extension__ __PRETTY_FUNCTION__)) 19959: # 172 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: buf_->assign(slice.data(), slice.size()); 19959: data_ = buf_->data(); 19959: size_ = buf_->size(); 19959: 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: !pinned_ 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "!pinned_" 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 176, __extension__ __PRETTY_FUNCTION__)) 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: } 19959: 19959: inline void PinSelf() { 19959: 19959: # 180 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 180 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: !pinned_ 19959: # 180 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 180 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "!pinned_" 19959: # 180 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 180, __extension__ __PRETTY_FUNCTION__)) 19959: # 180 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: data_ = buf_->data(); 19959: size_ = buf_->size(); 19959: 19959: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: !pinned_ 19959: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "!pinned_" 19959: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 183, __extension__ __PRETTY_FUNCTION__)) 19959: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: } 19959: 19959: void remove_suffix(size_t n) { 19959: 19959: # 187 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 187 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: n <= size() 19959: # 187 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 187 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "n <= size()" 19959: # 187 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 187, __extension__ __PRETTY_FUNCTION__)) 19959: # 187 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: if (pinned_) { 19959: size_ -= n; 19959: } else { 19959: buf_->erase(size() - n, n); 19959: PinSelf(); 19959: } 19959: } 19959: 19959: void remove_prefix(size_t n) { 19959: 19959: # 197 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 197 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: n <= size() 19959: # 197 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 197 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "n <= size()" 19959: # 197 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 197, __extension__ __PRETTY_FUNCTION__)) 19959: # 197 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: if (pinned_) { 19959: data_ += n; 19959: size_ -= n; 19959: } else { 19959: buf_->erase(0, n); 19959: PinSelf(); 19959: } 19959: } 19959: 19959: void Reset() { 19959: Cleanable::Reset(); 19959: pinned_ = false; 19959: size_ = 0; 19959: } 19959: 19959: inline std::string* GetSelf() { return buf_; } 19959: 19959: inline bool IsPinned() const { return pinned_; } 19959: 19959: private: 19959: friend class PinnableSlice4Test; 19959: std::string self_space_; 19959: std::string* buf_; 19959: bool pinned_ = false; 19959: }; 19959: 19959: 19959: 19959: struct SliceParts { 19959: SliceParts(const Slice* _parts, int _num_parts) 19959: : parts(_parts), num_parts(_num_parts) {} 19959: SliceParts() : parts(nullptr), num_parts(0) {} 19959: 19959: const Slice* parts; 19959: int num_parts; 19959: }; 19959: 19959: inline bool operator==(const Slice& x, const Slice& y) { 19959: return ((x.size() == y.size()) && 19959: (memcmp(x.data(), y.data(), x.size()) == 0)); 19959: } 19959: 19959: inline bool operator!=(const Slice& x, const Slice& y) { return !(x == y); } 19959: 19959: inline int Slice::compare(const Slice& b) const { 19959: 19959: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: (static_cast ( 19959: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: data_ != nullptr && b.data_ != nullptr 19959: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: "data_ != nullptr && b.data_ != nullptr" 19959: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 19959: , "./include/rocksdb/slice.h", 243, __extension__ __PRETTY_FUNCTION__)) 19959: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 19959: ; 19959: const size_t min_len = (size_ < b.size_) ? size_ : b.size_; 19959: int r = memcmp(data_, b.data_, min_len); 19959: if (r == 0) { 19959: if (size_ < b.size_) 19959: r = -1; 19959: else if (size_ > b.size_) 19959: r = +1; 19959: } 19959: return r; 19959: } 19959: 19959: inline size_t Slice::difference_offset(const Slice& b) const { 19959: size_t off = 0; 19959: const size_t len = (size_ < b.size_) ? size_ : b.size_; 19959: for (; off < len; off++) { 19959: if (data_[off] != b.data_[off]) break; 19959: } 19959: return off; 19959: } 19959: 19959: } 19959: # 32 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/status.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: class Status { 19959: public: 19959: 19959: Status() 19959: : code_(kOk), 19959: subcode_(kNone), 19959: sev_(kNoError), 19959: retryable_(false), 19959: data_loss_(false), 19959: scope_(0), 19959: state_(nullptr) {} 19959: ~Status() { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: 19959: Status(const Status& s); 19959: Status& operator=(const Status& s); 19959: Status(Status&& s) noexcept; 19959: Status& operator=(Status&& s) noexcept; 19959: bool operator==(const Status& rhs) const; 19959: bool operator!=(const Status& rhs) const; 19959: 19959: 19959: 19959: 19959: inline void PermitUncheckedError() const { MarkChecked(); } 19959: 19959: inline void MustCheck() const { 19959: 19959: 19959: 19959: } 19959: 19959: enum Code : unsigned char { 19959: kOk = 0, 19959: kNotFound = 1, 19959: kCorruption = 2, 19959: kNotSupported = 3, 19959: kInvalidArgument = 4, 19959: kIOError = 5, 19959: kMergeInProgress = 6, 19959: kIncomplete = 7, 19959: kShutdownInProgress = 8, 19959: kTimedOut = 9, 19959: kAborted = 10, 19959: kBusy = 11, 19959: kExpired = 12, 19959: kTryAgain = 13, 19959: kCompactionTooLarge = 14, 19959: kColumnFamilyDropped = 15, 19959: kMaxCode 19959: }; 19959: 19959: Code code() const { 19959: MarkChecked(); 19959: return code_; 19959: } 19959: 19959: enum SubCode : unsigned char { 19959: kNone = 0, 19959: kMutexTimeout = 1, 19959: kLockTimeout = 2, 19959: kLockLimit = 3, 19959: kNoSpace = 4, 19959: kDeadlock = 5, 19959: kStaleFile = 6, 19959: kMemoryLimit = 7, 19959: kSpaceLimit = 8, 19959: kPathNotFound = 9, 19959: KMergeOperandsInsufficientCapacity = 10, 19959: kManualCompactionPaused = 11, 19959: kOverwritten = 12, 19959: kTxnNotPrepared = 13, 19959: kIOFenced = 14, 19959: kMergeOperatorFailed = 15, 19959: kMergeOperandThresholdExceeded = 16, 19959: kMaxSubCode 19959: }; 19959: 19959: SubCode subcode() const { 19959: MarkChecked(); 19959: return subcode_; 19959: } 19959: 19959: enum Severity : unsigned char { 19959: kNoError = 0, 19959: kSoftError = 1, 19959: kHardError = 2, 19959: kFatalError = 3, 19959: kUnrecoverableError = 4, 19959: kMaxSeverity 19959: }; 19959: 19959: Status(const Status& s, Severity sev); 19959: 19959: Status(Code _code, SubCode _subcode, Severity _sev, const Slice& msg) 19959: : Status(_code, _subcode, msg, "", _sev) {} 19959: 19959: static Status CopyAppendMessage(const Status& s, const Slice& delim, 19959: const Slice& msg); 19959: 19959: Severity severity() const { 19959: MarkChecked(); 19959: return sev_; 19959: } 19959: 19959: 19959: const char* getState() const { 19959: MarkChecked(); 19959: return state_.get(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: Status& UpdateIfOk(Status&& s) { 19959: if (code() == kOk) { 19959: *this = std::move(s); 19959: } else { 19959: 19959: s.PermitUncheckedError(); 19959: } 19959: MustCheck(); 19959: return *this; 19959: } 19959: 19959: Status& UpdateIfOk(const Status& s) { 19959: return UpdateIfOk(std::forward(Status(s))); 19959: } 19959: 19959: 19959: static Status OK() { return Status(); } 19959: 19959: 19959: 19959: 19959: 19959: static Status OkOverwritten() { return Status(kOk, kOverwritten); } 19959: 19959: 19959: 19959: 19959: 19959: static Status OkMergeOperandThresholdExceeded() { 19959: return Status(kOk, kMergeOperandThresholdExceeded); 19959: } 19959: 19959: 19959: static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kNotFound, msg, msg2); 19959: } 19959: 19959: 19959: static Status NotFound(SubCode msg = kNone) { return Status(kNotFound, msg); } 19959: 19959: static Status NotFound(SubCode sc, const Slice& msg, 19959: const Slice& msg2 = Slice()) { 19959: return Status(kNotFound, sc, msg, msg2); 19959: } 19959: 19959: static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kCorruption, msg, msg2); 19959: } 19959: static Status Corruption(SubCode msg = kNone) { 19959: return Status(kCorruption, msg); 19959: } 19959: 19959: static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kNotSupported, msg, msg2); 19959: } 19959: static Status NotSupported(SubCode msg = kNone) { 19959: return Status(kNotSupported, msg); 19959: } 19959: 19959: static Status InvalidArgument(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kInvalidArgument, msg, msg2); 19959: } 19959: static Status InvalidArgument(SubCode msg = kNone) { 19959: return Status(kInvalidArgument, msg); 19959: } 19959: 19959: static Status IOError(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kIOError, msg, msg2); 19959: } 19959: static Status IOError(SubCode msg = kNone) { return Status(kIOError, msg); } 19959: 19959: static Status MergeInProgress(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kMergeInProgress, msg, msg2); 19959: } 19959: static Status MergeInProgress(SubCode msg = kNone) { 19959: return Status(kMergeInProgress, msg); 19959: } 19959: 19959: static Status Incomplete(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kIncomplete, msg, msg2); 19959: } 19959: static Status Incomplete(SubCode msg = kNone) { 19959: return Status(kIncomplete, msg); 19959: } 19959: 19959: static Status ShutdownInProgress(SubCode msg = kNone) { 19959: return Status(kShutdownInProgress, msg); 19959: } 19959: static Status ShutdownInProgress(const Slice& msg, 19959: const Slice& msg2 = Slice()) { 19959: return Status(kShutdownInProgress, msg, msg2); 19959: } 19959: static Status Aborted(SubCode msg = kNone) { return Status(kAborted, msg); } 19959: static Status Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kAborted, msg, msg2); 19959: } 19959: 19959: static Status Busy(SubCode msg = kNone) { return Status(kBusy, msg); } 19959: static Status Busy(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kBusy, msg, msg2); 19959: } 19959: 19959: static Status TimedOut(SubCode msg = kNone) { return Status(kTimedOut, msg); } 19959: static Status TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kTimedOut, msg, msg2); 19959: } 19959: 19959: static Status Expired(SubCode msg = kNone) { return Status(kExpired, msg); } 19959: static Status Expired(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kExpired, msg, msg2); 19959: } 19959: 19959: static Status TryAgain(SubCode msg = kNone) { return Status(kTryAgain, msg); } 19959: static Status TryAgain(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kTryAgain, msg, msg2); 19959: } 19959: 19959: static Status CompactionTooLarge(SubCode msg = kNone) { 19959: return Status(kCompactionTooLarge, msg); 19959: } 19959: static Status CompactionTooLarge(const Slice& msg, 19959: const Slice& msg2 = Slice()) { 19959: return Status(kCompactionTooLarge, msg, msg2); 19959: } 19959: 19959: static Status ColumnFamilyDropped(SubCode msg = kNone) { 19959: return Status(kColumnFamilyDropped, msg); 19959: } 19959: 19959: static Status ColumnFamilyDropped(const Slice& msg, 19959: const Slice& msg2 = Slice()) { 19959: return Status(kColumnFamilyDropped, msg, msg2); 19959: } 19959: 19959: static Status NoSpace() { return Status(kIOError, kNoSpace); } 19959: static Status NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kIOError, kNoSpace, msg, msg2); 19959: } 19959: 19959: static Status MemoryLimit() { return Status(kAborted, kMemoryLimit); } 19959: static Status MemoryLimit(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kAborted, kMemoryLimit, msg, msg2); 19959: } 19959: 19959: static Status SpaceLimit() { return Status(kIOError, kSpaceLimit); } 19959: static Status SpaceLimit(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kIOError, kSpaceLimit, msg, msg2); 19959: } 19959: 19959: static Status PathNotFound() { return Status(kIOError, kPathNotFound); } 19959: static Status PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kIOError, kPathNotFound, msg, msg2); 19959: } 19959: 19959: static Status TxnNotPrepared() { 19959: return Status(kInvalidArgument, kTxnNotPrepared); 19959: } 19959: static Status TxnNotPrepared(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return Status(kInvalidArgument, kTxnNotPrepared, msg, msg2); 19959: } 19959: 19959: 19959: bool ok() const { 19959: MarkChecked(); 19959: return code() == kOk; 19959: } 19959: 19959: 19959: 19959: bool IsOkOverwritten() const { 19959: MarkChecked(); 19959: return code() == kOk && subcode() == kOverwritten; 19959: } 19959: 19959: 19959: 19959: bool IsOkMergeOperandThresholdExceeded() const { 19959: MarkChecked(); 19959: return code() == kOk && subcode() == kMergeOperandThresholdExceeded; 19959: } 19959: 19959: 19959: bool IsNotFound() const { 19959: MarkChecked(); 19959: return code() == kNotFound; 19959: } 19959: 19959: 19959: bool IsCorruption() const { 19959: MarkChecked(); 19959: return code() == kCorruption; 19959: } 19959: 19959: 19959: bool IsNotSupported() const { 19959: MarkChecked(); 19959: return code() == kNotSupported; 19959: } 19959: 19959: 19959: bool IsInvalidArgument() const { 19959: MarkChecked(); 19959: return code() == kInvalidArgument; 19959: } 19959: 19959: 19959: bool IsIOError() const { 19959: MarkChecked(); 19959: return code() == kIOError; 19959: } 19959: 19959: 19959: bool IsMergeInProgress() const { 19959: MarkChecked(); 19959: return code() == kMergeInProgress; 19959: } 19959: 19959: 19959: bool IsIncomplete() const { 19959: MarkChecked(); 19959: return code() == kIncomplete; 19959: } 19959: 19959: 19959: bool IsShutdownInProgress() const { 19959: MarkChecked(); 19959: return code() == kShutdownInProgress; 19959: } 19959: 19959: bool IsTimedOut() const { 19959: MarkChecked(); 19959: return code() == kTimedOut; 19959: } 19959: 19959: bool IsAborted() const { 19959: MarkChecked(); 19959: return code() == kAborted; 19959: } 19959: 19959: bool IsLockLimit() const { 19959: MarkChecked(); 19959: return code() == kAborted && subcode() == kLockLimit; 19959: } 19959: 19959: 19959: 19959: bool IsBusy() const { 19959: MarkChecked(); 19959: return code() == kBusy; 19959: } 19959: 19959: bool IsDeadlock() const { 19959: MarkChecked(); 19959: return code() == kBusy && subcode() == kDeadlock; 19959: } 19959: 19959: 19959: bool IsExpired() const { 19959: MarkChecked(); 19959: return code() == kExpired; 19959: } 19959: 19959: 19959: 19959: 19959: bool IsTryAgain() const { 19959: MarkChecked(); 19959: return code() == kTryAgain; 19959: } 19959: 19959: 19959: bool IsCompactionTooLarge() const { 19959: MarkChecked(); 19959: return code() == kCompactionTooLarge; 19959: } 19959: 19959: 19959: bool IsColumnFamilyDropped() const { 19959: MarkChecked(); 19959: return code() == kColumnFamilyDropped; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool IsNoSpace() const { 19959: MarkChecked(); 19959: return (code() == kIOError) && (subcode() == kNoSpace); 19959: } 19959: 19959: 19959: 19959: 19959: bool IsMemoryLimit() const { 19959: MarkChecked(); 19959: return (code() == kAborted) && (subcode() == kMemoryLimit); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: bool IsPathNotFound() const { 19959: MarkChecked(); 19959: return (code() == kIOError || code() == kNotFound) && 19959: (subcode() == kPathNotFound); 19959: } 19959: 19959: 19959: 19959: bool IsManualCompactionPaused() const { 19959: MarkChecked(); 19959: return (code() == kIncomplete) && (subcode() == kManualCompactionPaused); 19959: } 19959: 19959: 19959: bool IsTxnNotPrepared() const { 19959: MarkChecked(); 19959: return (code() == kInvalidArgument) && (subcode() == kTxnNotPrepared); 19959: } 19959: 19959: 19959: bool IsIOFenced() const { 19959: MarkChecked(); 19959: return (code() == kIOError) && (subcode() == kIOFenced); 19959: } 19959: 19959: 19959: 19959: std::string ToString() const; 19959: 19959: protected: 19959: Code code_; 19959: SubCode subcode_; 19959: Severity sev_; 19959: bool retryable_; 19959: bool data_loss_; 19959: unsigned char scope_; 19959: 19959: 19959: std::unique_ptr state_; 19959: 19959: 19959: 19959: 19959: explicit Status(Code _code, SubCode _subcode = kNone) 19959: : code_(_code), 19959: subcode_(_subcode), 19959: sev_(kNoError), 19959: retryable_(false), 19959: data_loss_(false), 19959: scope_(0) {} 19959: 19959: explicit Status(Code _code, SubCode _subcode, bool retryable, bool data_loss, 19959: unsigned char scope) 19959: : code_(_code), 19959: subcode_(_subcode), 19959: sev_(kNoError), 19959: retryable_(retryable), 19959: data_loss_(data_loss), 19959: scope_(scope) {} 19959: 19959: Status(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2, 19959: Severity sev = kNoError); 19959: Status(Code _code, const Slice& msg, const Slice& msg2) 19959: : Status(_code, kNone, msg, msg2) {} 19959: 19959: static std::unique_ptr CopyState(const char* s); 19959: 19959: inline void MarkChecked() const { 19959: 19959: 19959: 19959: } 19959: }; 19959: 19959: inline Status::Status(const Status& s) 19959: : code_(s.code_), 19959: subcode_(s.subcode_), 19959: sev_(s.sev_), 19959: retryable_(s.retryable_), 19959: data_loss_(s.data_loss_), 19959: scope_(s.scope_) { 19959: s.MarkChecked(); 19959: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 19959: } 19959: inline Status::Status(const Status& s, Severity sev) 19959: : code_(s.code_), 19959: subcode_(s.subcode_), 19959: sev_(sev), 19959: retryable_(s.retryable_), 19959: data_loss_(s.data_loss_), 19959: scope_(s.scope_) { 19959: s.MarkChecked(); 19959: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 19959: } 19959: inline Status& Status::operator=(const Status& s) { 19959: if (this != &s) { 19959: s.MarkChecked(); 19959: MustCheck(); 19959: code_ = s.code_; 19959: subcode_ = s.subcode_; 19959: sev_ = s.sev_; 19959: retryable_ = s.retryable_; 19959: data_loss_ = s.data_loss_; 19959: scope_ = s.scope_; 19959: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 19959: } 19959: return *this; 19959: } 19959: 19959: inline Status::Status(Status&& s) noexcept : Status() { 19959: s.MarkChecked(); 19959: *this = std::move(s); 19959: } 19959: 19959: inline Status& Status::operator=(Status&& s) noexcept { 19959: if (this != &s) { 19959: s.MarkChecked(); 19959: MustCheck(); 19959: code_ = std::move(s.code_); 19959: s.code_ = kOk; 19959: subcode_ = std::move(s.subcode_); 19959: s.subcode_ = kNone; 19959: sev_ = std::move(s.sev_); 19959: s.sev_ = kNoError; 19959: retryable_ = std::move(s.retryable_); 19959: s.retryable_ = false; 19959: data_loss_ = std::move(s.data_loss_); 19959: s.data_loss_ = false; 19959: scope_ = std::move(s.scope_); 19959: s.scope_ = 0; 19959: state_ = std::move(s.state_); 19959: } 19959: return *this; 19959: } 19959: 19959: inline bool Status::operator==(const Status& rhs) const { 19959: MarkChecked(); 19959: rhs.MarkChecked(); 19959: return (code_ == rhs.code_); 19959: } 19959: 19959: inline bool Status::operator!=(const Status& rhs) const { 19959: MarkChecked(); 19959: rhs.MarkChecked(); 19959: return !(*this == rhs); 19959: } 19959: 19959: } 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 2 19959: 19959: namespace rocksdb { 19959: class Logger; 19959: class ObjectRegistry; 19959: class OptionTypeInfo; 19959: struct ColumnFamilyOptions; 19959: struct ConfigOptions; 19959: struct DBOptions; 19959: # 44 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: class Configurable { 19959: protected: 19959: friend class ConfigurableHelper; 19959: struct RegisteredOptions { 19959: 19959: std::string name; 19959: 19959: void* opt_ptr; 19959: 19959: const std::unordered_map* type_map; 19959: }; 19959: 19959: public: 19959: virtual ~Configurable() {} 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: template 19959: const T* GetOptions() const { 19959: return GetOptions(T::kName()); 19959: } 19959: template 19959: T* GetOptions() { 19959: return GetOptions(T::kName()); 19959: } 19959: template 19959: const T* GetOptions(const std::string& name) const { 19959: return reinterpret_cast(GetOptionsPtr(name)); 19959: } 19959: template 19959: T* GetOptions(const std::string& name) { 19959: return reinterpret_cast(const_cast(GetOptionsPtr(name))); 19959: } 19959: # 114 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: Status ConfigureFromMap( 19959: const ConfigOptions& config_options, 19959: const std::unordered_map& opt_map); 19959: Status ConfigureFromMap( 19959: const ConfigOptions& config_options, 19959: const std::unordered_map& opt_map, 19959: std::unordered_map* unused); 19959: # 133 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: Status ConfigureOption(const ConfigOptions& config_options, 19959: const std::string& name, const std::string& value); 19959: # 158 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: Status ConfigureFromString(const ConfigOptions& config_options, 19959: const std::string& opts); 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: Status GetOptionString(const ConfigOptions& config_options, 19959: std::string* result) const; 19959: 19959: 19959: 19959: 19959: 19959: std::string ToString(const ConfigOptions& config_options) const { 19959: return ToString(config_options, ""); 19959: } 19959: std::string ToString(const ConfigOptions& config_options, 19959: const std::string& prefix) const; 19959: 19959: 19959: 19959: 19959: 19959: 19959: Status GetOptionNames(const ConfigOptions& config_options, 19959: std::unordered_set* result) const; 19959: # 198 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: virtual Status GetOption(const ConfigOptions& config_options, 19959: const std::string& name, std::string* value) const; 19959: # 208 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: virtual bool AreEquivalent(const ConfigOptions& config_options, 19959: const Configurable* other, 19959: std::string* name) const; 19959: 19959: 19959: 19959: 19959: virtual std::string GetPrintableOptions() const { return ""; } 19959: # 239 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: virtual Status PrepareOptions(const ConfigOptions& config_options); 19959: # 255 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: virtual Status ValidateOptions(const DBOptions& db_opts, 19959: const ColumnFamilyOptions& cf_opts) const; 19959: # 272 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: static Status GetOptionsMap( 19959: const std::string& opt_value, const std::string& default_id, 19959: std::string* id, std::unordered_map* options); 19959: 19959: protected: 19959: # 287 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: virtual const void* GetOptionsPtr(const std::string& name) const; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status ParseStringOptions(const ConfigOptions& config_options, 19959: const std::string& opts_str); 19959: # 309 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: virtual Status ConfigureOptions( 19959: const ConfigOptions& config_options, 19959: const std::unordered_map& opts_map, 19959: std::unordered_map* unused); 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status ParseOption(const ConfigOptions& config_options, 19959: const OptionTypeInfo& opt_info, 19959: const std::string& opt_name, 19959: const std::string& opt_value, void* opt_ptr); 19959: # 338 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: virtual bool OptionsAreEqual(const ConfigOptions& config_options, 19959: const OptionTypeInfo& opt_info, 19959: const std::string& name, 19959: const void* const this_ptr, 19959: const void* const that_ptr, 19959: std::string* bad_name) const; 19959: 19959: 19959: virtual std::string SerializeOptions(const ConfigOptions& config_options, 19959: const std::string& header) const; 19959: 19959: 19959: virtual std::string GetOptionName(const std::string& long_name) const; 19959: # 371 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 19959: template 19959: void RegisterOptions( 19959: T* opt_ptr, 19959: const std::unordered_map* opt_map) { 19959: RegisterOptions(T::kName(), opt_ptr, opt_map); 19959: } 19959: void RegisterOptions( 19959: const std::string& name, void* opt_ptr, 19959: const std::unordered_map* opt_map); 19959: 19959: 19959: inline bool HasRegisteredOptions() const { return !options_.empty(); } 19959: 19959: private: 19959: 19959: 19959: 19959: std::vector options_; 19959: }; 19959: } 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 2 19959: 19959: 19959: namespace rocksdb { 19959: # 56 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 19959: class Customizable : public Configurable { 19959: public: 19959: ~Customizable() override {} 19959: 19959: 19959: virtual const char* Name() const = 0; 19959: 19959: 19959: 19959: 19959: virtual std::string GetId() const { 19959: std::string id = Name(); 19959: return id; 19959: } 19959: # 89 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 19959: virtual bool IsInstanceOf(const std::string& name) const { 19959: if (name.empty()) { 19959: return false; 19959: } else if (name == Name()) { 19959: return true; 19959: } else { 19959: const char* nickname = NickName(); 19959: if (nickname != nullptr && name == nickname) { 19959: return true; 19959: } else { 19959: return false; 19959: } 19959: } 19959: } 19959: 19959: const void* GetOptionsPtr(const std::string& name) const override { 19959: const void* ptr = Configurable::GetOptionsPtr(name); 19959: if (ptr != nullptr) { 19959: return ptr; 19959: } else { 19959: const auto inner = Inner(); 19959: if (inner != nullptr) { 19959: return inner->GetOptionsPtr(name); 19959: } else { 19959: return nullptr; 19959: } 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: const T* CheckedCast() const { 19959: if (IsInstanceOf(T::kClassName())) { 19959: return static_cast(this); 19959: } else { 19959: const auto inner = Inner(); 19959: if (inner != nullptr) { 19959: return inner->CheckedCast(); 19959: } else { 19959: return nullptr; 19959: } 19959: } 19959: } 19959: 19959: template 19959: T* CheckedCast() { 19959: if (IsInstanceOf(T::kClassName())) { 19959: return static_cast(this); 19959: } else { 19959: auto inner = const_cast(Inner()); 19959: if (inner != nullptr) { 19959: return inner->CheckedCast(); 19959: } else { 19959: return nullptr; 19959: } 19959: } 19959: } 19959: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 19959: bool AreEquivalent(const ConfigOptions& config_options, 19959: const Configurable* other, 19959: std::string* mismatch) const override; 19959: 19959: 19959: Status GetOption(const ConfigOptions& config_options, const std::string& name, 19959: std::string* value) const override; 19959: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 19959: static Status GetOptionsMap( 19959: const ConfigOptions& config_options, const Customizable* custom, 19959: const std::string& opt_value, std::string* id, 19959: std::unordered_map* options); 19959: # 195 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 19959: static Status ConfigureNewObject( 19959: const ConfigOptions& config_options, Customizable* object, 19959: const std::unordered_map& options); 19959: 19959: 19959: 19959: 19959: virtual const Customizable* Inner() const { return nullptr; } 19959: 19959: protected: 19959: # 217 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 19959: std::string GenerateIndividualId() const; 19959: 19959: 19959: 19959: 19959: virtual const char* NickName() const { return ""; } 19959: 19959: std::string GetOptionName(const std::string& long_name) const override; 19959: std::string SerializeOptions(const ConfigOptions& options, 19959: const std::string& prefix) const override; 19959: }; 19959: 19959: } 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 2 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class Slice; 19959: 19959: 19959: 19959: class CompareInterface { 19959: public: 19959: virtual ~CompareInterface() {} 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 19959: virtual int Compare(const Slice& a, const Slice& b) const = 0; 19959: }; 19959: # 44 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 19959: class Comparator : public Customizable, public CompareInterface { 19959: public: 19959: Comparator() : timestamp_size_(0) {} 19959: 19959: Comparator(size_t ts_sz) : timestamp_size_(ts_sz) {} 19959: 19959: Comparator(const Comparator& orig) : timestamp_size_(orig.timestamp_size_) {} 19959: 19959: Comparator& operator=(const Comparator& rhs) { 19959: if (this != &rhs) { 19959: timestamp_size_ = rhs.timestamp_size_; 19959: } 19959: return *this; 19959: } 19959: 19959: ~Comparator() override {} 19959: 19959: static Status CreateFromString(const ConfigOptions& opts, 19959: const std::string& id, 19959: const Comparator** comp); 19959: static const char* Type() { return "Comparator"; } 19959: # 76 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 19959: const char* Name() const override = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual bool Equal(const Slice& a, const Slice& b) const { 19959: return Compare(a, b) == 0; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void FindShortestSeparator(std::string* start, 19959: const Slice& limit) const = 0; 19959: 19959: 19959: 19959: 19959: virtual void FindShortSuccessor(std::string* key) const = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual bool IsSameLengthImmediateSuccessor(const Slice& , 19959: const Slice& ) const { 19959: return false; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual bool CanKeysWithDifferentByteContentsBeEqual() const { return true; } 19959: 19959: 19959: 19959: virtual const Comparator* GetRootComparator() const { return this; } 19959: 19959: inline size_t timestamp_size() const { return timestamp_size_; } 19959: 19959: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 19959: return CompareWithoutTimestamp(a, true, b, true); 19959: } 19959: # 136 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 19959: virtual int CompareTimestamp(const Slice& , 19959: const Slice& ) const { 19959: return 0; 19959: } 19959: 19959: virtual int CompareWithoutTimestamp(const Slice& a, bool , 19959: const Slice& b, bool ) const { 19959: return Compare(a, b); 19959: } 19959: 19959: virtual bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 19959: return 0 == 19959: CompareWithoutTimestamp(a, true, b, true); 19959: } 19959: 19959: private: 19959: size_t timestamp_size_; 19959: }; 19959: 19959: 19959: 19959: 19959: const Comparator* BytewiseComparator(); 19959: 19959: 19959: 19959: const Comparator* ReverseBytewiseComparator(); 19959: 19959: 19959: 19959: 19959: 19959: 19959: const Comparator* BytewiseComparatorWithU64Ts(); 19959: 19959: 19959: 19959: 19959: 19959: 19959: const Comparator* ReverseBytewiseComparatorWithU64Ts(); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: Status DecodeU64Ts(const Slice& ts, uint64_t* int_ts); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: Slice EncodeU64Ts(uint64_t ts, std::string* ts_buf); 19959: 19959: 19959: 19959: 19959: Slice MaxU64Ts(); 19959: 19959: 19959: 19959: 19959: Slice MinU64Ts(); 19959: 19959: } 19959: # 18 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice_transform.h" 1 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice_transform.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class Slice; 19959: struct ConfigOptions; 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice_transform.h" 19959: class SliceTransform : public Customizable { 19959: public: 19959: virtual ~SliceTransform(){}; 19959: 19959: 19959: virtual const char* Name() const override = 0; 19959: static const char* Type() { return "SliceTransform"; } 19959: 19959: 19959: static Status CreateFromString(const ConfigOptions& config_options, 19959: const std::string& id, 19959: std::shared_ptr* result); 19959: 19959: 19959: 19959: std::string AsString() const; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Slice Transform(const Slice& key) const = 0; 19959: # 71 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice_transform.h" 19959: virtual bool InDomain(const Slice& key) const = 0; 19959: 19959: 19959: 19959: virtual bool InRange(const Slice& ) const { return false; } 19959: # 92 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice_transform.h" 19959: virtual bool FullLengthEnabled(size_t* ) const { return false; } 19959: # 119 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice_transform.h" 19959: virtual bool SameResultWhenAppended(const Slice& ) const { 19959: return false; 19959: } 19959: }; 19959: 19959: 19959: 19959: extern const SliceTransform* NewFixedPrefixTransform(size_t prefix_len); 19959: 19959: 19959: 19959: extern const SliceTransform* NewCappedPrefixTransform(size_t cap_len); 19959: 19959: 19959: extern const SliceTransform* NewNoopTransform(); 19959: 19959: } 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/types.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/types.h" 19959: namespace rocksdb { 19959: 19959: 19959: 19959: using ColumnFamilyId = uint32_t; 19959: 19959: 19959: using SequenceNumber = uint64_t; 19959: 19959: struct TableProperties; 19959: using TablePropertiesCollection = 19959: std::unordered_map>; 19959: 19959: const SequenceNumber kMinUnCommittedSeq = 1; 19959: 19959: enum class TableFileCreationReason { 19959: kFlush, 19959: kCompaction, 19959: kRecovery, 19959: kMisc, 19959: }; 19959: 19959: enum class BlobFileCreationReason { 19959: kFlush, 19959: kCompaction, 19959: kRecovery, 19959: }; 19959: 19959: 19959: 19959: enum FileType { 19959: kWalFile, 19959: kDBLockFile, 19959: kTableFile, 19959: kDescriptorFile, 19959: kCurrentFile, 19959: kTempFile, 19959: kInfoLogFile, 19959: kMetaDatabase, 19959: kIdentityFile, 19959: kOptionsFile, 19959: kBlobFile 19959: }; 19959: 19959: 19959: 19959: enum EntryType { 19959: kEntryPut, 19959: kEntryDelete, 19959: kEntrySingleDelete, 19959: kEntryMerge, 19959: kEntryRangeDeletion, 19959: kEntryBlobIndex, 19959: kEntryDeleteWithTimestamp, 19959: kEntryWideColumnEntity, 19959: kEntryOther, 19959: }; 19959: 19959: enum class WriteStallCause { 19959: 19959: 19959: 19959: kMemtableLimit, 19959: kL0FileCountLimit, 19959: kPendingCompactionBytes, 19959: kCFScopeWriteStallCauseEnumMax, 19959: 19959: 19959: 19959: 19959: 19959: kWriteBufferManagerLimit, 19959: kDBScopeWriteStallCauseEnumMax, 19959: 19959: 19959: 19959: kNone, 19959: }; 19959: 19959: enum class WriteStallCondition { 19959: kDelayed, 19959: kStopped, 19959: 19959: kNormal, 19959: }; 19959: 19959: } 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/coding.h" 1 19959: # 18 "/build/reproducible-path/rocksdb-8.9.1/util/coding.h" 19959: 19959: # 1 "/usr/include/c++/13/algorithm" 1 3 19959: # 58 "/usr/include/c++/13/algorithm" 3 19959: 19959: # 59 "/usr/include/c++/13/algorithm" 3 19959: # 73 "/usr/include/c++/13/algorithm" 3 19959: # 1 "/usr/include/c++/13/pstl/glue_algorithm_defs.h" 1 3 19959: # 17 "/usr/include/c++/13/pstl/glue_algorithm_defs.h" 3 19959: 19959: # 17 "/usr/include/c++/13/pstl/glue_algorithm_defs.h" 3 19959: namespace std 19959: { 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: any_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: all_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: none_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: for_each(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Function __f); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: for_each_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, _Function __f); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: find_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: find_if_not(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 19959: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 19959: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 19959: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 19959: _ForwardIterator2 __s_last); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 19959: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 19959: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 19959: typename iterator_traits<_ForwardIterator>::difference_type> 19959: count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 19959: typename iterator_traits<_ForwardIterator>::difference_type> 19959: count_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 19959: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 19959: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 19959: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 19959: _ForwardIterator2 __s_last); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 19959: const _Tp& __value, _BinaryPredicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 19959: const _Tp& __value); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: copy_n(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _Size __n, _ForwardIterator2 __result); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 result, 19959: _Predicate __pred); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: swap_ranges(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 19959: _UnaryOperation __op); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 19959: _ForwardIterator __result, _BinaryOperation __op); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred, 19959: const _Tp& __new_value); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: replace(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, 19959: const _Tp& __new_value); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: replace_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __result, _UnaryPredicate __pred, const _Tp& __new_value); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: replace_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 19959: const _Tp& __old_value, const _Tp& __new_value); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __count, const _Tp& __value); 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: generate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Generator __g); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: generate_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size count, _Generator __g); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: remove_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __result, _Predicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: remove_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 19959: const _Tp& __value); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: remove_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: remove(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 19959: _BinaryPredicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: reverse(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: reverse_copy(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 19959: _ForwardIterator __d_first); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: rotate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: rotate_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __middle, _ForwardIterator1 __last, 19959: _ForwardIterator2 __result); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: is_partitioned(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: partition(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _BidirectionalIterator> 19959: stable_partition(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 19959: _UnaryPredicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 19959: partition_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 19959: _ForwardIterator1 __out_true, _ForwardIterator2 __out_false, _UnaryPredicate __pred); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 19959: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 19959: _ForwardIterator2 __last2, _BinaryPredicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 19959: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 19959: _BinaryPredicate __pred); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 19959: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 19959: _ForwardIterator2 __last2); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 19959: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 19959: _BinaryPredicate __p); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 19959: _ForwardIterator2 __last2, _BinaryPredicate __p); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 19959: _ForwardIterator2 __last2); 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: move(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __d_first); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 19959: _RandomAccessIterator __last, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 19959: _RandomAccessIterator __last); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 19959: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 19959: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 19959: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 19959: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last); 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 19959: _RandomAccessIterator __last, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 19959: _RandomAccessIterator __last); 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 19959: _ForwardIterator2 __last2, _ForwardIterator __d_first, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 19959: _ForwardIterator2 __last2, _ForwardIterator __d_first); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 19959: _BidirectionalIterator __last, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 19959: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 19959: _BidirectionalIterator __last); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 19959: _ForwardIterator2 __last2, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 19959: _ForwardIterator2 __last2); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 19959: _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 19959: _ForwardIterator2 __last2, _ForwardIterator __result); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator result, 19959: _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 19959: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 19959: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 19959: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 19959: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 19959: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 19959: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _ForwardIterator2 __last2); 19959: 19959: } 19959: # 74 "/usr/include/c++/13/algorithm" 2 3 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/util/coding.h" 2 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/port.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/port/port.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 1 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 19959: 19959: 19959: # 1 "/usr/include/c++/13/thread" 1 3 19959: # 32 "/usr/include/c++/13/thread" 3 19959: 19959: # 33 "/usr/include/c++/13/thread" 3 19959: # 45 "/usr/include/c++/13/thread" 3 19959: # 1 "/usr/include/c++/13/bits/std_thread.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/std_thread.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/std_thread.h" 3 19959: # 52 "/usr/include/c++/13/bits/std_thread.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 78 "/usr/include/c++/13/bits/std_thread.h" 3 19959: class thread 19959: { 19959: public: 19959: 19959: using native_handle_type = __gthread_t; 19959: # 92 "/usr/include/c++/13/bits/std_thread.h" 3 19959: class id 19959: { 19959: native_handle_type _M_thread; 19959: 19959: public: 19959: id() noexcept : _M_thread() { } 19959: 19959: explicit 19959: id(native_handle_type __id) : _M_thread(__id) { } 19959: 19959: private: 19959: friend class thread; 19959: friend struct hash; 19959: 19959: friend bool 19959: operator==(id __x, id __y) noexcept; 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator<(id __x, id __y) noexcept; 19959: 19959: 19959: template 19959: friend basic_ostream<_CharT, _Traits>& 19959: operator<<(basic_ostream<_CharT, _Traits>& __out, id __id); 19959: }; 19959: 19959: private: 19959: id _M_id; 19959: 19959: 19959: 19959: 19959: template 19959: using __not_same = __not_, thread>>; 19959: 19959: public: 19959: thread() noexcept = default; 19959: 19959: 19959: private: 19959: 19959: 19959: 19959: 19959: 19959: 19959: static void 19959: _M_thread_deps_never_run() { 19959: 19959: 19959: 19959: 19959: } 19959: 19959: public: 19959: template>> 19959: explicit 19959: thread(_Callable&& __f, _Args&&... __args) 19959: { 19959: static_assert( __is_invocable::type, 19959: typename decay<_Args>::type...>::value, 19959: "std::thread arguments must be invocable after conversion to rvalues" 19959: ); 19959: 19959: using _Wrapper = _Call_wrapper<_Callable, _Args...>; 19959: 19959: 19959: _M_start_thread(_State_ptr(new _State_impl<_Wrapper>( 19959: std::forward<_Callable>(__f), std::forward<_Args>(__args)...)), 19959: _M_thread_deps_never_run); 19959: } 19959: 19959: 19959: ~thread() 19959: { 19959: if (joinable()) 19959: std::__terminate(); 19959: } 19959: 19959: thread(const thread&) = delete; 19959: 19959: thread(thread&& __t) noexcept 19959: { swap(__t); } 19959: 19959: thread& operator=(const thread&) = delete; 19959: 19959: thread& operator=(thread&& __t) noexcept 19959: { 19959: if (joinable()) 19959: std::__terminate(); 19959: swap(__t); 19959: return *this; 19959: } 19959: 19959: void 19959: swap(thread& __t) noexcept 19959: { std::swap(_M_id, __t._M_id); } 19959: 19959: bool 19959: joinable() const noexcept 19959: { return !(_M_id == id()); } 19959: 19959: void 19959: join(); 19959: 19959: void 19959: detach(); 19959: 19959: id 19959: get_id() const noexcept 19959: { return _M_id; } 19959: 19959: 19959: 19959: native_handle_type 19959: native_handle() 19959: { return _M_id._M_thread; } 19959: 19959: 19959: static unsigned int 19959: hardware_concurrency() noexcept; 19959: 19959: 19959: 19959: private: 19959: 19959: 19959: 19959: struct _State 19959: { 19959: virtual ~_State(); 19959: virtual void _M_run() = 0; 19959: }; 19959: using _State_ptr = unique_ptr<_State>; 19959: 19959: private: 19959: template 19959: struct _State_impl : public _State 19959: { 19959: _Callable _M_func; 19959: 19959: template 19959: _State_impl(_Args&&... __args) 19959: : _M_func(std::forward<_Args>(__args)...) 19959: { } 19959: 19959: void 19959: _M_run() { _M_func(); } 19959: }; 19959: 19959: void 19959: _M_start_thread(_State_ptr, void (*)()); 19959: # 269 "/usr/include/c++/13/bits/std_thread.h" 3 19959: private: 19959: 19959: template 19959: struct _Invoker 19959: { 19959: template 19959: explicit 19959: _Invoker(_Args&&... __args) 19959: : _M_t(std::forward<_Args>(__args)...) 19959: { } 19959: 19959: _Tuple _M_t; 19959: 19959: template 19959: struct __result; 19959: template 19959: struct __result> 19959: : __invoke_result<_Fn, _Args...> 19959: { }; 19959: 19959: template 19959: typename __result<_Tuple>::type 19959: _M_invoke(_Index_tuple<_Ind...>) 19959: { return std::__invoke(std::get<_Ind>(std::move(_M_t))...); } 19959: 19959: typename __result<_Tuple>::type 19959: operator()() 19959: { 19959: using _Indices 19959: = typename _Build_index_tuple::value>::__type; 19959: return _M_invoke(_Indices()); 19959: } 19959: }; 19959: 19959: public: 19959: 19959: template 19959: using _Call_wrapper = _Invoker::type...>>; 19959: 19959: 19959: }; 19959: # 318 "/usr/include/c++/13/bits/std_thread.h" 3 19959: inline void 19959: swap(thread& __x, thread& __y) noexcept 19959: { __x.swap(__y); } 19959: 19959: 19959: inline bool 19959: operator==(thread::id __x, thread::id __y) noexcept 19959: { 19959: 19959: 19959: 19959: 19959: return __x._M_thread == __y._M_thread; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template<> 19959: struct hash 19959: : public __hash_base 19959: { 19959: size_t 19959: operator()(const thread::id& __id) const noexcept 19959: { return std::_Hash_impl::hash(__id._M_thread); } 19959: }; 19959: 19959: namespace this_thread 19959: { 19959: 19959: inline thread::id 19959: get_id() noexcept 19959: { 19959: 19959: 19959: 19959: return thread::id(pthread_self()); 19959: 19959: 19959: 19959: } 19959: 19959: 19959: inline void 19959: yield() noexcept 19959: { 19959: 19959: __gthread_yield(); 19959: 19959: } 19959: 19959: } 19959: 19959: 19959: 19959: 19959: } 19959: # 46 "/usr/include/c++/13/thread" 2 3 19959: # 1 "/usr/include/c++/13/bits/this_thread_sleep.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/this_thread_sleep.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/this_thread_sleep.h" 3 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/chrono.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/chrono.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/chrono.h" 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/ratio" 1 3 19959: # 33 "/usr/include/c++/13/ratio" 3 19959: 19959: # 34 "/usr/include/c++/13/ratio" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/cstdint" 1 3 19959: # 32 "/usr/include/c++/13/cstdint" 3 19959: 19959: # 33 "/usr/include/c++/13/cstdint" 3 19959: # 48 "/usr/include/c++/13/cstdint" 3 19959: namespace std 19959: { 19959: 19959: using ::int8_t; 19959: using ::int16_t; 19959: using ::int32_t; 19959: using ::int64_t; 19959: 19959: using ::int_fast8_t; 19959: using ::int_fast16_t; 19959: using ::int_fast32_t; 19959: using ::int_fast64_t; 19959: 19959: using ::int_least8_t; 19959: using ::int_least16_t; 19959: using ::int_least32_t; 19959: using ::int_least64_t; 19959: 19959: using ::intmax_t; 19959: using ::intptr_t; 19959: 19959: using ::uint8_t; 19959: using ::uint16_t; 19959: using ::uint32_t; 19959: using ::uint64_t; 19959: 19959: using ::uint_fast8_t; 19959: using ::uint_fast16_t; 19959: using ::uint_fast32_t; 19959: using ::uint_fast64_t; 19959: 19959: using ::uint_least8_t; 19959: using ::uint_least16_t; 19959: using ::uint_least32_t; 19959: using ::uint_least64_t; 19959: 19959: using ::uintmax_t; 19959: using ::uintptr_t; 19959: # 142 "/usr/include/c++/13/cstdint" 3 19959: } 19959: # 41 "/usr/include/c++/13/ratio" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 56 "/usr/include/c++/13/ratio" 3 19959: template 19959: struct __static_sign 19959: : integral_constant 19959: { }; 19959: 19959: template 19959: struct __static_abs 19959: : integral_constant::value> 19959: { }; 19959: 19959: template 19959: struct __static_gcd 19959: : __static_gcd<_Qn, (_Pn % _Qn)> 19959: { }; 19959: 19959: template 19959: struct __static_gcd<_Pn, 0> 19959: : integral_constant::value> 19959: { }; 19959: 19959: template 19959: struct __static_gcd<0, _Qn> 19959: : integral_constant::value> 19959: { }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __safe_multiply 19959: { 19959: private: 19959: static const uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 19959: 19959: static const uintmax_t __a0 = __static_abs<_Pn>::value % __c; 19959: static const uintmax_t __a1 = __static_abs<_Pn>::value / __c; 19959: static const uintmax_t __b0 = __static_abs<_Qn>::value % __c; 19959: static const uintmax_t __b1 = __static_abs<_Qn>::value / __c; 19959: 19959: static_assert(__a1 == 0 || __b1 == 0, 19959: "overflow in multiplication"); 19959: static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1), 19959: "overflow in multiplication"); 19959: static_assert(__b0 * __a0 <= 0x7fffffffffffffffLL, 19959: "overflow in multiplication"); 19959: static_assert((__a0 * __b1 + __b0 * __a1) * __c 19959: <= 0x7fffffffffffffffLL - __b0 * __a0, 19959: "overflow in multiplication"); 19959: 19959: public: 19959: static const intmax_t value = _Pn * _Qn; 19959: }; 19959: 19959: 19959: 19959: template 19959: struct __big_less 19959: : integral_constant 19959: { }; 19959: 19959: template 19959: struct __big_add 19959: { 19959: static constexpr uintmax_t __lo = __lo1 + __lo2; 19959: static constexpr uintmax_t __hi = (__hi1 + __hi2 + 19959: (__lo1 + __lo2 < __lo1)); 19959: }; 19959: 19959: 19959: template 19959: struct __big_sub 19959: { 19959: static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value, 19959: "Internal library error"); 19959: static constexpr uintmax_t __lo = __lo1 - __lo2; 19959: static constexpr uintmax_t __hi = (__hi1 - __hi2 - 19959: (__lo1 < __lo2)); 19959: }; 19959: 19959: 19959: template 19959: struct __big_mul 19959: { 19959: private: 19959: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 19959: static constexpr uintmax_t __x0 = __x % __c; 19959: static constexpr uintmax_t __x1 = __x / __c; 19959: static constexpr uintmax_t __y0 = __y % __c; 19959: static constexpr uintmax_t __y1 = __y / __c; 19959: static constexpr uintmax_t __x0y0 = __x0 * __y0; 19959: static constexpr uintmax_t __x0y1 = __x0 * __y1; 19959: static constexpr uintmax_t __x1y0 = __x1 * __y0; 19959: static constexpr uintmax_t __x1y1 = __x1 * __y1; 19959: static constexpr uintmax_t __mix = __x0y1 + __x1y0; 19959: static constexpr uintmax_t __mix_lo = __mix * __c; 19959: static constexpr uintmax_t __mix_hi 19959: = __mix / __c + ((__mix < __x0y1) ? __c : 0); 19959: typedef __big_add<__mix_hi, __mix_lo, __x1y1, __x0y0> _Res; 19959: public: 19959: static constexpr uintmax_t __hi = _Res::__hi; 19959: static constexpr uintmax_t __lo = _Res::__lo; 19959: }; 19959: 19959: 19959: 19959: template 19959: struct __big_div_impl 19959: { 19959: private: 19959: static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)), 19959: "Internal library error"); 19959: static_assert(__n1 < __d, "Internal library error"); 19959: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 19959: static constexpr uintmax_t __d1 = __d / __c; 19959: static constexpr uintmax_t __d0 = __d % __c; 19959: 19959: static constexpr uintmax_t __q1x = __n1 / __d1; 19959: static constexpr uintmax_t __r1x = __n1 % __d1; 19959: static constexpr uintmax_t __m = __q1x * __d0; 19959: static constexpr uintmax_t __r1y = __r1x * __c + __n0 / __c; 19959: static constexpr uintmax_t __r1z = __r1y + __d; 19959: static constexpr uintmax_t __r1 19959: = ((__r1y < __m) ? ((__r1z >= __d) && (__r1z < __m)) 19959: ? (__r1z + __d) : __r1z : __r1y) - __m; 19959: static constexpr uintmax_t __q1 19959: = __q1x - ((__r1y < __m) 19959: ? ((__r1z >= __d) && (__r1z < __m)) ? 2 : 1 : 0); 19959: static constexpr uintmax_t __q0x = __r1 / __d1; 19959: static constexpr uintmax_t __r0x = __r1 % __d1; 19959: static constexpr uintmax_t __n = __q0x * __d0; 19959: static constexpr uintmax_t __r0y = __r0x * __c + __n0 % __c; 19959: static constexpr uintmax_t __r0z = __r0y + __d; 19959: static constexpr uintmax_t __r0 19959: = ((__r0y < __n) ? ((__r0z >= __d) && (__r0z < __n)) 19959: ? (__r0z + __d) : __r0z : __r0y) - __n; 19959: static constexpr uintmax_t __q0 19959: = __q0x - ((__r0y < __n) ? ((__r0z >= __d) 19959: && (__r0z < __n)) ? 2 : 1 : 0); 19959: 19959: public: 19959: static constexpr uintmax_t __quot = __q1 * __c + __q0; 19959: static constexpr uintmax_t __rem = __r0; 19959: 19959: private: 19959: typedef __big_mul<__quot, __d> _Prod; 19959: typedef __big_add<_Prod::__hi, _Prod::__lo, 0, __rem> _Sum; 19959: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 19959: "Internal library error"); 19959: }; 19959: 19959: template 19959: struct __big_div 19959: { 19959: private: 19959: static_assert(__d != 0, "Internal library error"); 19959: static_assert(sizeof (uintmax_t) == sizeof (unsigned long long), 19959: "This library calls __builtin_clzll on uintmax_t, which " 19959: "is unsafe on your platform. Please complain to " 19959: "http://gcc.gnu.org/bugzilla/"); 19959: static constexpr int __shift = __builtin_clzll(__d); 19959: static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift; 19959: static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0; 19959: static constexpr uintmax_t __c1 = uintmax_t(1) << __shift; 19959: static constexpr uintmax_t __c2 = uintmax_t(1) << __coshift; 19959: static constexpr uintmax_t __new_d = __d * __c1; 19959: static constexpr uintmax_t __new_n0 = __n0 * __c1; 19959: static constexpr uintmax_t __n1_shifted = (__n1 % __d) * __c1; 19959: static constexpr uintmax_t __n0_top = (__shift != 0) ? (__n0 / __c2) : 0; 19959: static constexpr uintmax_t __new_n1 = __n1_shifted + __n0_top; 19959: typedef __big_div_impl<__new_n1, __new_n0, __new_d> _Res; 19959: 19959: public: 19959: static constexpr uintmax_t __quot_hi = __n1 / __d; 19959: static constexpr uintmax_t __quot_lo = _Res::__quot; 19959: static constexpr uintmax_t __rem = _Res::__rem / __c1; 19959: 19959: private: 19959: typedef __big_mul<__quot_lo, __d> _P0; 19959: typedef __big_mul<__quot_hi, __d> _P1; 19959: typedef __big_add<_P0::__hi, _P0::__lo, _P1::__lo, __rem> _Sum; 19959: 19959: static_assert(_P1::__hi == 0, "Internal library error"); 19959: static_assert(_Sum::__hi >= _P0::__hi, "Internal library error"); 19959: 19959: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 19959: "Internal library error"); 19959: static_assert(__rem < __d, "Internal library error"); 19959: }; 19959: # 265 "/usr/include/c++/13/ratio" 3 19959: template 19959: struct ratio 19959: { 19959: static_assert(_Den != 0, "denominator cannot be zero"); 19959: static_assert(_Num >= -0x7fffffffffffffffLL && _Den >= -0x7fffffffffffffffLL, 19959: "out of range"); 19959: 19959: 19959: static constexpr intmax_t num = 19959: _Num * __static_sign<_Den>::value / __static_gcd<_Num, _Den>::value; 19959: 19959: static constexpr intmax_t den = 19959: __static_abs<_Den>::value / __static_gcd<_Num, _Den>::value; 19959: 19959: typedef ratio type; 19959: }; 19959: # 292 "/usr/include/c++/13/ratio" 3 19959: template 19959: struct __is_ratio 19959: : std::false_type 19959: { }; 19959: 19959: template 19959: struct __is_ratio> 19959: : std::true_type 19959: { }; 19959: 19959: 19959: template 19959: constexpr bool __is_ratio_v = false; 19959: template 19959: constexpr bool __is_ratio_v> = true; 19959: 19959: 19959: template 19959: constexpr bool 19959: __are_both_ratios() noexcept 19959: { 19959: 19959: if constexpr (__is_ratio_v<_R1>) 19959: if constexpr (__is_ratio_v<_R2>) 19959: return true; 19959: return false; 19959: 19959: 19959: 19959: } 19959: 19959: template 19959: struct __ratio_multiply 19959: { 19959: static_assert(std::__are_both_ratios<_R1, _R2>(), 19959: "both template arguments must be a std::ratio"); 19959: 19959: private: 19959: static const intmax_t __gcd1 = 19959: __static_gcd<_R1::num, _R2::den>::value; 19959: static const intmax_t __gcd2 = 19959: __static_gcd<_R2::num, _R1::den>::value; 19959: 19959: public: 19959: typedef ratio< 19959: __safe_multiply<(_R1::num / __gcd1), 19959: (_R2::num / __gcd2)>::value, 19959: __safe_multiply<(_R1::den / __gcd2), 19959: (_R2::den / __gcd1)>::value> type; 19959: 19959: static constexpr intmax_t num = type::num; 19959: static constexpr intmax_t den = type::den; 19959: }; 19959: # 357 "/usr/include/c++/13/ratio" 3 19959: template 19959: using ratio_multiply = typename __ratio_multiply<_R1, _R2>::type; 19959: 19959: 19959: 19959: template 19959: struct __ratio_divide 19959: { 19959: static_assert(_R2::num != 0, "division by 0"); 19959: 19959: typedef typename __ratio_multiply< 19959: _R1, 19959: ratio<_R2::den, _R2::num>>::type type; 19959: 19959: static constexpr intmax_t num = type::num; 19959: static constexpr intmax_t den = type::den; 19959: }; 19959: # 386 "/usr/include/c++/13/ratio" 3 19959: template 19959: using ratio_divide = typename __ratio_divide<_R1, _R2>::type; 19959: 19959: 19959: template 19959: struct ratio_equal 19959: : integral_constant 19959: { 19959: static_assert(std::__are_both_ratios<_R1, _R2>(), 19959: "both template arguments must be a std::ratio"); 19959: }; 19959: 19959: 19959: template 19959: struct ratio_not_equal 19959: : integral_constant::value> 19959: { }; 19959: 19959: 19959: 19959: 19959: template, 19959: typename _Right = __big_mul<_R2::num,_R1::den> > 19959: struct __ratio_less_impl_1 19959: : integral_constant::value> 19959: { }; 19959: 19959: template::value 19959: != __static_sign<_R2::num>::value)), 19959: bool = (__static_sign<_R1::num>::value == -1 19959: && __static_sign<_R2::num>::value == -1)> 19959: struct __ratio_less_impl 19959: : __ratio_less_impl_1<_R1, _R2>::type 19959: { }; 19959: 19959: template 19959: struct __ratio_less_impl<_R1, _R2, true, false> 19959: : integral_constant 19959: { }; 19959: 19959: template 19959: struct __ratio_less_impl<_R1, _R2, false, true> 19959: : __ratio_less_impl_1, 19959: ratio<-_R1::num, _R1::den> >::type 19959: { }; 19959: 19959: 19959: 19959: 19959: template 19959: struct ratio_less 19959: : __ratio_less_impl<_R1, _R2>::type 19959: { 19959: static_assert(std::__are_both_ratios<_R1, _R2>(), 19959: "both template arguments must be a std::ratio"); 19959: }; 19959: 19959: 19959: template 19959: struct ratio_less_equal 19959: : integral_constant::value> 19959: { }; 19959: 19959: 19959: template 19959: struct ratio_greater 19959: : integral_constant::value> 19959: { }; 19959: 19959: 19959: template 19959: struct ratio_greater_equal 19959: : integral_constant::value> 19959: { }; 19959: 19959: 19959: template 19959: inline constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value; 19959: template 19959: inline constexpr bool ratio_not_equal_v = ratio_not_equal<_R1, _R2>::value; 19959: template 19959: inline constexpr bool ratio_less_v = ratio_less<_R1, _R2>::value; 19959: template 19959: inline constexpr bool ratio_less_equal_v 19959: = ratio_less_equal<_R1, _R2>::value; 19959: template 19959: inline constexpr bool ratio_greater_v = ratio_greater<_R1, _R2>::value; 19959: template 19959: inline constexpr bool ratio_greater_equal_v 19959: = ratio_greater_equal<_R1, _R2>::value; 19959: 19959: 19959: 19959: 19959: template= 0), 19959: bool = (_R2::num >= 0), 19959: bool = ratio_less::value, _R1::den>, 19959: ratio<__static_abs<_R2::num>::value, _R2::den> >::value> 19959: struct __ratio_add_impl 19959: { 19959: private: 19959: typedef typename __ratio_add_impl< 19959: ratio<-_R1::num, _R1::den>, 19959: ratio<-_R2::num, _R2::den> >::type __t; 19959: public: 19959: typedef ratio<-__t::num, __t::den> type; 19959: }; 19959: 19959: 19959: template 19959: struct __ratio_add_impl<_R1, _R2, true, true, __b> 19959: { 19959: private: 19959: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 19959: static constexpr uintmax_t __d2 = _R2::den / __g; 19959: typedef __big_mul<_R1::den, __d2> __d; 19959: typedef __big_mul<_R1::num, _R2::den / __g> __x; 19959: typedef __big_mul<_R2::num, _R1::den / __g> __y; 19959: typedef __big_add<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 19959: static_assert(__n::__hi >= __x::__hi, "Internal library error"); 19959: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 19959: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 19959: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 19959: static_assert(__n_final::__rem == 0, "Internal library error"); 19959: static_assert(__n_final::__quot_hi == 0 && 19959: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 19959: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 19959: static_assert(__d_final::__hi == 0 && 19959: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 19959: public: 19959: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 19959: }; 19959: 19959: template 19959: struct __ratio_add_impl<_R1, _R2, false, true, true> 19959: : __ratio_add_impl<_R2, _R1> 19959: { }; 19959: 19959: 19959: template 19959: struct __ratio_add_impl<_R1, _R2, true, false, false> 19959: { 19959: private: 19959: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 19959: static constexpr uintmax_t __d2 = _R2::den / __g; 19959: typedef __big_mul<_R1::den, __d2> __d; 19959: typedef __big_mul<_R1::num, _R2::den / __g> __x; 19959: typedef __big_mul<-_R2::num, _R1::den / __g> __y; 19959: typedef __big_sub<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 19959: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 19959: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 19959: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 19959: static_assert(__n_final::__rem == 0, "Internal library error"); 19959: static_assert(__n_final::__quot_hi == 0 && 19959: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 19959: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 19959: static_assert(__d_final::__hi == 0 && 19959: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 19959: public: 19959: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 19959: }; 19959: 19959: template 19959: struct __ratio_add 19959: { 19959: static_assert(std::__are_both_ratios<_R1, _R2>(), 19959: "both template arguments must be a std::ratio"); 19959: 19959: typedef typename __ratio_add_impl<_R1, _R2>::type type; 19959: static constexpr intmax_t num = type::num; 19959: static constexpr intmax_t den = type::den; 19959: }; 19959: # 575 "/usr/include/c++/13/ratio" 3 19959: template 19959: using ratio_add = typename __ratio_add<_R1, _R2>::type; 19959: 19959: 19959: 19959: template 19959: struct __ratio_subtract 19959: { 19959: typedef typename __ratio_add< 19959: _R1, 19959: ratio<-_R2::num, _R2::den>>::type type; 19959: 19959: static constexpr intmax_t num = type::num; 19959: static constexpr intmax_t den = type::den; 19959: }; 19959: # 602 "/usr/include/c++/13/ratio" 3 19959: template 19959: using ratio_subtract = typename __ratio_subtract<_R1, _R2>::type; 19959: 19959: 19959: typedef ratio<1, 1000000000000000000> atto; 19959: typedef ratio<1, 1000000000000000> femto; 19959: typedef ratio<1, 1000000000000> pico; 19959: typedef ratio<1, 1000000000> nano; 19959: typedef ratio<1, 1000000> micro; 19959: typedef ratio<1, 1000> milli; 19959: typedef ratio<1, 100> centi; 19959: typedef ratio<1, 10> deci; 19959: typedef ratio< 10, 1> deca; 19959: typedef ratio< 100, 1> hecto; 19959: typedef ratio< 1000, 1> kilo; 19959: typedef ratio< 1000000, 1> mega; 19959: typedef ratio< 1000000000, 1> giga; 19959: typedef ratio< 1000000000000, 1> tera; 19959: typedef ratio< 1000000000000000, 1> peta; 19959: typedef ratio< 1000000000000000000, 1> exa; 19959: 19959: 19959: 19959: } 19959: # 38 "/usr/include/c++/13/bits/chrono.h" 2 3 19959: 19959: # 1 "/usr/include/c++/13/limits" 1 3 19959: # 40 "/usr/include/c++/13/limits" 3 19959: 19959: # 41 "/usr/include/c++/13/limits" 3 19959: # 158 "/usr/include/c++/13/limits" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: enum float_round_style 19959: { 19959: round_indeterminate = -1, 19959: round_toward_zero = 0, 19959: round_to_nearest = 1, 19959: round_toward_infinity = 2, 19959: round_toward_neg_infinity = 3 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: enum float_denorm_style 19959: { 19959: 19959: denorm_indeterminate = -1, 19959: 19959: denorm_absent = 0, 19959: 19959: denorm_present = 1 19959: }; 19959: # 202 "/usr/include/c++/13/limits" 3 19959: struct __numeric_limits_base 19959: { 19959: 19959: 19959: static constexpr bool is_specialized = false; 19959: 19959: 19959: 19959: 19959: static constexpr int digits = 0; 19959: 19959: 19959: static constexpr int digits10 = 0; 19959: 19959: 19959: 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: 19959: 19959: static constexpr bool is_signed = false; 19959: 19959: 19959: static constexpr bool is_integer = false; 19959: 19959: 19959: 19959: 19959: static constexpr bool is_exact = false; 19959: 19959: 19959: 19959: static constexpr int radix = 0; 19959: 19959: 19959: 19959: static constexpr int min_exponent = 0; 19959: 19959: 19959: 19959: static constexpr int min_exponent10 = 0; 19959: 19959: 19959: 19959: 19959: static constexpr int max_exponent = 0; 19959: 19959: 19959: 19959: static constexpr int max_exponent10 = 0; 19959: 19959: 19959: static constexpr bool has_infinity = false; 19959: 19959: 19959: 19959: static constexpr bool has_quiet_NaN = false; 19959: 19959: 19959: 19959: static constexpr bool has_signaling_NaN = false; 19959: 19959: 19959: static constexpr float_denorm_style has_denorm = denorm_absent; 19959: 19959: 19959: 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: 19959: 19959: static constexpr bool is_iec559 = false; 19959: 19959: 19959: 19959: 19959: static constexpr bool is_bounded = false; 19959: # 288 "/usr/include/c++/13/limits" 3 19959: static constexpr bool is_modulo = false; 19959: 19959: 19959: static constexpr bool traps = false; 19959: 19959: 19959: static constexpr bool tinyness_before = false; 19959: 19959: 19959: 19959: 19959: static constexpr float_round_style round_style = 19959: round_toward_zero; 19959: }; 19959: # 311 "/usr/include/c++/13/limits" 3 19959: template 19959: struct numeric_limits : public __numeric_limits_base 19959: { 19959: 19959: 19959: static constexpr _Tp 19959: min() noexcept { return _Tp(); } 19959: 19959: 19959: static constexpr _Tp 19959: max() noexcept { return _Tp(); } 19959: 19959: 19959: 19959: 19959: static constexpr _Tp 19959: lowest() noexcept { return _Tp(); } 19959: 19959: 19959: 19959: 19959: static constexpr _Tp 19959: epsilon() noexcept { return _Tp(); } 19959: 19959: 19959: static constexpr _Tp 19959: round_error() noexcept { return _Tp(); } 19959: 19959: 19959: static constexpr _Tp 19959: infinity() noexcept { return _Tp(); } 19959: 19959: 19959: 19959: static constexpr _Tp 19959: quiet_NaN() noexcept { return _Tp(); } 19959: 19959: 19959: 19959: static constexpr _Tp 19959: signaling_NaN() noexcept { return _Tp(); } 19959: 19959: 19959: 19959: 19959: static constexpr _Tp 19959: denorm_min() noexcept { return _Tp(); } 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: struct numeric_limits 19959: : public numeric_limits<_Tp> { }; 19959: 19959: template 19959: struct numeric_limits 19959: : public numeric_limits<_Tp> { }; 19959: 19959: template 19959: struct numeric_limits 19959: : public numeric_limits<_Tp> { }; 19959: # 383 "/usr/include/c++/13/limits" 3 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr bool 19959: min() noexcept { return false; } 19959: 19959: static constexpr bool 19959: max() noexcept { return true; } 19959: 19959: 19959: static constexpr bool 19959: lowest() noexcept { return min(); } 19959: 19959: static constexpr int digits = 1; 19959: static constexpr int digits10 = 0; 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: static constexpr bool is_signed = false; 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr bool 19959: epsilon() noexcept { return false; } 19959: 19959: static constexpr bool 19959: round_error() noexcept { return false; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm 19959: = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr bool 19959: infinity() noexcept { return false; } 19959: 19959: static constexpr bool 19959: quiet_NaN() noexcept { return false; } 19959: 19959: static constexpr bool 19959: signaling_NaN() noexcept { return false; } 19959: 19959: static constexpr bool 19959: denorm_min() noexcept { return false; } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = false; 19959: 19959: 19959: 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style 19959: = round_toward_zero; 19959: }; 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr char 19959: 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); } 19959: 19959: static constexpr char 19959: max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } 19959: 19959: 19959: static constexpr char 19959: lowest() noexcept { return min(); } 19959: 19959: 19959: static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); 19959: static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: static constexpr bool is_signed = ((char)(-1) < 0); 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr char 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr char 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm 19959: = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr 19959: char infinity() noexcept { return char(); } 19959: 19959: static constexpr char 19959: quiet_NaN() noexcept { return char(); } 19959: 19959: static constexpr char 19959: signaling_NaN() noexcept { return char(); } 19959: 19959: static constexpr char 19959: denorm_min() noexcept { return static_cast(0); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = !is_signed; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style 19959: = round_toward_zero; 19959: }; 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr signed char 19959: min() noexcept { return -0x7f - 1; } 19959: 19959: static constexpr signed char 19959: max() noexcept { return 0x7f; } 19959: 19959: 19959: static constexpr signed char 19959: lowest() noexcept { return min(); } 19959: 19959: 19959: static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); 19959: static constexpr int digits10 19959: = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: static constexpr bool is_signed = true; 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr signed char 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr signed char 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm 19959: = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr signed char 19959: infinity() noexcept { return static_cast(0); } 19959: 19959: static constexpr signed char 19959: quiet_NaN() noexcept { return static_cast(0); } 19959: 19959: static constexpr signed char 19959: signaling_NaN() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr signed char 19959: denorm_min() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = false; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style 19959: = round_toward_zero; 19959: }; 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr unsigned char 19959: min() noexcept { return 0; } 19959: 19959: static constexpr unsigned char 19959: max() noexcept { return 0x7f * 2U + 1; } 19959: 19959: 19959: static constexpr unsigned char 19959: lowest() noexcept { return min(); } 19959: 19959: 19959: static constexpr int digits 19959: = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); 19959: static constexpr int digits10 19959: = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: static constexpr bool is_signed = false; 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr unsigned char 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr unsigned char 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm 19959: = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr unsigned char 19959: infinity() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned char 19959: quiet_NaN() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned char 19959: signaling_NaN() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned char 19959: denorm_min() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = true; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style 19959: = round_toward_zero; 19959: }; 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr wchar_t 19959: 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); } 19959: 19959: static constexpr wchar_t 19959: 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); } 19959: 19959: 19959: static constexpr wchar_t 19959: lowest() noexcept { return min(); } 19959: 19959: 19959: static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); 19959: static constexpr int digits10 19959: = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: static constexpr bool is_signed = ((wchar_t)(-1) < 0); 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr wchar_t 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr wchar_t 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm 19959: = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr wchar_t 19959: infinity() noexcept { return wchar_t(); } 19959: 19959: static constexpr wchar_t 19959: quiet_NaN() noexcept { return wchar_t(); } 19959: 19959: static constexpr wchar_t 19959: signaling_NaN() noexcept { return wchar_t(); } 19959: 19959: static constexpr wchar_t 19959: denorm_min() noexcept { return wchar_t(); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = !is_signed; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style 19959: = round_toward_zero; 19959: }; 19959: # 796 "/usr/include/c++/13/limits" 3 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr char16_t 19959: 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); } 19959: 19959: static constexpr char16_t 19959: 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); } 19959: 19959: static constexpr char16_t 19959: lowest() noexcept { return min(); } 19959: 19959: static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); 19959: static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); 19959: static constexpr int max_digits10 = 0; 19959: static constexpr bool is_signed = ((char16_t)(-1) < 0); 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr char16_t 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr char16_t 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr char16_t 19959: infinity() noexcept { return char16_t(); } 19959: 19959: static constexpr char16_t 19959: quiet_NaN() noexcept { return char16_t(); } 19959: 19959: static constexpr char16_t 19959: signaling_NaN() noexcept { return char16_t(); } 19959: 19959: static constexpr char16_t 19959: denorm_min() noexcept { return char16_t(); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = !is_signed; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style = round_toward_zero; 19959: }; 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr char32_t 19959: 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); } 19959: 19959: static constexpr char32_t 19959: 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); } 19959: 19959: static constexpr char32_t 19959: lowest() noexcept { return min(); } 19959: 19959: static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); 19959: static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); 19959: static constexpr int max_digits10 = 0; 19959: static constexpr bool is_signed = ((char32_t)(-1) < 0); 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr char32_t 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr char32_t 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr char32_t 19959: infinity() noexcept { return char32_t(); } 19959: 19959: static constexpr char32_t 19959: quiet_NaN() noexcept { return char32_t(); } 19959: 19959: static constexpr char32_t 19959: signaling_NaN() noexcept { return char32_t(); } 19959: 19959: static constexpr char32_t 19959: denorm_min() noexcept { return char32_t(); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = !is_signed; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style = round_toward_zero; 19959: }; 19959: 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr short 19959: min() noexcept { return -0x7fff - 1; } 19959: 19959: static constexpr short 19959: max() noexcept { return 0x7fff; } 19959: 19959: 19959: static constexpr short 19959: lowest() noexcept { return min(); } 19959: 19959: 19959: static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); 19959: static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: static constexpr bool is_signed = true; 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr short 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr short 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm 19959: = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr short 19959: infinity() noexcept { return short(); } 19959: 19959: static constexpr short 19959: quiet_NaN() noexcept { return short(); } 19959: 19959: static constexpr short 19959: signaling_NaN() noexcept { return short(); } 19959: 19959: static constexpr short 19959: denorm_min() noexcept { return short(); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = false; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style 19959: = round_toward_zero; 19959: }; 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr unsigned short 19959: min() noexcept { return 0; } 19959: 19959: static constexpr unsigned short 19959: max() noexcept { return 0x7fff * 2U + 1; } 19959: 19959: 19959: static constexpr unsigned short 19959: lowest() noexcept { return min(); } 19959: 19959: 19959: static constexpr int digits 19959: = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); 19959: static constexpr int digits10 19959: = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: static constexpr bool is_signed = false; 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr unsigned short 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr unsigned short 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm 19959: = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr unsigned short 19959: infinity() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned short 19959: quiet_NaN() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned short 19959: signaling_NaN() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned short 19959: denorm_min() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = true; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style 19959: = round_toward_zero; 19959: }; 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr int 19959: min() noexcept { return -0x7fffffff - 1; } 19959: 19959: static constexpr int 19959: max() noexcept { return 0x7fffffff; } 19959: 19959: 19959: static constexpr int 19959: lowest() noexcept { return min(); } 19959: 19959: 19959: static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); 19959: static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: static constexpr bool is_signed = true; 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr int 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr int 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm 19959: = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr int 19959: infinity() noexcept { return static_cast(0); } 19959: 19959: static constexpr int 19959: quiet_NaN() noexcept { return static_cast(0); } 19959: 19959: static constexpr int 19959: signaling_NaN() noexcept { return static_cast(0); } 19959: 19959: static constexpr int 19959: denorm_min() noexcept { return static_cast(0); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = false; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style 19959: = round_toward_zero; 19959: }; 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr unsigned int 19959: min() noexcept { return 0; } 19959: 19959: static constexpr unsigned int 19959: max() noexcept { return 0x7fffffff * 2U + 1; } 19959: 19959: 19959: static constexpr unsigned int 19959: lowest() noexcept { return min(); } 19959: 19959: 19959: static constexpr int digits 19959: = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); 19959: static constexpr int digits10 19959: = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: static constexpr bool is_signed = false; 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr unsigned int 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr unsigned int 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm 19959: = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr unsigned int 19959: infinity() noexcept { return static_cast(0); } 19959: 19959: static constexpr unsigned int 19959: quiet_NaN() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned int 19959: signaling_NaN() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned int 19959: denorm_min() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = true; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style 19959: = round_toward_zero; 19959: }; 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr long 19959: min() noexcept { return -0x7fffffffL - 1; } 19959: 19959: static constexpr long 19959: max() noexcept { return 0x7fffffffL; } 19959: 19959: 19959: static constexpr long 19959: lowest() noexcept { return min(); } 19959: 19959: 19959: static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); 19959: static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: static constexpr bool is_signed = true; 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr long 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr long 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm 19959: = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr long 19959: infinity() noexcept { return static_cast(0); } 19959: 19959: static constexpr long 19959: quiet_NaN() noexcept { return static_cast(0); } 19959: 19959: static constexpr long 19959: signaling_NaN() noexcept { return static_cast(0); } 19959: 19959: static constexpr long 19959: denorm_min() noexcept { return static_cast(0); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = false; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style 19959: = round_toward_zero; 19959: }; 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr unsigned long 19959: min() noexcept { return 0; } 19959: 19959: static constexpr unsigned long 19959: max() noexcept { return 0x7fffffffL * 2UL + 1; } 19959: 19959: 19959: static constexpr unsigned long 19959: lowest() noexcept { return min(); } 19959: 19959: 19959: static constexpr int digits 19959: = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); 19959: static constexpr int digits10 19959: = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: static constexpr bool is_signed = false; 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr unsigned long 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr unsigned long 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm 19959: = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr unsigned long 19959: infinity() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned long 19959: quiet_NaN() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned long 19959: signaling_NaN() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned long 19959: denorm_min() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = true; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style 19959: = round_toward_zero; 19959: }; 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr long long 19959: min() noexcept { return -0x7fffffffffffffffLL - 1; } 19959: 19959: static constexpr long long 19959: max() noexcept { return 0x7fffffffffffffffLL; } 19959: 19959: 19959: static constexpr long long 19959: lowest() noexcept { return min(); } 19959: 19959: 19959: static constexpr int digits 19959: = (sizeof(long long) * 8 - ((long long)(-1) < 0)); 19959: static constexpr int digits10 19959: = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: static constexpr bool is_signed = true; 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr long long 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr long long 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm 19959: = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr long long 19959: infinity() noexcept { return static_cast(0); } 19959: 19959: static constexpr long long 19959: quiet_NaN() noexcept { return static_cast(0); } 19959: 19959: static constexpr long long 19959: signaling_NaN() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr long long 19959: denorm_min() noexcept { return static_cast(0); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = false; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style 19959: = round_toward_zero; 19959: }; 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr unsigned long long 19959: min() noexcept { return 0; } 19959: 19959: static constexpr unsigned long long 19959: max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } 19959: 19959: 19959: static constexpr unsigned long long 19959: lowest() noexcept { return min(); } 19959: 19959: 19959: static constexpr int digits 19959: = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); 19959: static constexpr int digits10 19959: = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); 19959: 19959: static constexpr int max_digits10 = 0; 19959: 19959: static constexpr bool is_signed = false; 19959: static constexpr bool is_integer = true; 19959: static constexpr bool is_exact = true; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr unsigned long long 19959: epsilon() noexcept { return 0; } 19959: 19959: static constexpr unsigned long long 19959: round_error() noexcept { return 0; } 19959: 19959: static constexpr int min_exponent = 0; 19959: static constexpr int min_exponent10 = 0; 19959: static constexpr int max_exponent = 0; 19959: static constexpr int max_exponent10 = 0; 19959: 19959: static constexpr bool has_infinity = false; 19959: static constexpr bool has_quiet_NaN = false; 19959: static constexpr bool has_signaling_NaN = false; 19959: static constexpr float_denorm_style has_denorm 19959: = denorm_absent; 19959: static constexpr bool has_denorm_loss = false; 19959: 19959: static constexpr unsigned long long 19959: infinity() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned long long 19959: quiet_NaN() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned long long 19959: signaling_NaN() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr unsigned long long 19959: denorm_min() noexcept 19959: { return static_cast(0); } 19959: 19959: static constexpr bool is_iec559 = false; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = true; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = false; 19959: static constexpr float_round_style round_style 19959: = round_toward_zero; 19959: }; 19959: # 1669 "/usr/include/c++/13/limits" 3 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr float 19959: min() noexcept { return 1.1754943508222875e-38F; } 19959: 19959: static constexpr float 19959: max() noexcept { return 3.4028234663852886e+38F; } 19959: 19959: 19959: static constexpr float 19959: lowest() noexcept { return -3.4028234663852886e+38F; } 19959: 19959: 19959: static constexpr int digits = 24; 19959: static constexpr int digits10 = 6; 19959: 19959: static constexpr int max_digits10 19959: = (2 + (24) * 643L / 2136); 19959: 19959: static constexpr bool is_signed = true; 19959: static constexpr bool is_integer = false; 19959: static constexpr bool is_exact = false; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr float 19959: epsilon() noexcept { return 1.1920928955078125e-7F; } 19959: 19959: static constexpr float 19959: round_error() noexcept { return 0.5F; } 19959: 19959: static constexpr int min_exponent = (-125); 19959: static constexpr int min_exponent10 = (-37); 19959: static constexpr int max_exponent = 128; 19959: static constexpr int max_exponent10 = 38; 19959: 19959: static constexpr bool has_infinity = 1; 19959: static constexpr bool has_quiet_NaN = 1; 19959: static constexpr bool has_signaling_NaN = has_quiet_NaN; 19959: static constexpr float_denorm_style has_denorm 19959: = bool(1) ? denorm_present : denorm_absent; 19959: static constexpr bool has_denorm_loss 19959: = false; 19959: 19959: static constexpr float 19959: infinity() noexcept { return __builtin_huge_valf(); } 19959: 19959: static constexpr float 19959: quiet_NaN() noexcept { return __builtin_nanf(""); } 19959: 19959: static constexpr float 19959: signaling_NaN() noexcept { return __builtin_nansf(""); } 19959: 19959: static constexpr float 19959: denorm_min() noexcept { return 1.4012984643248171e-45F; } 19959: 19959: static constexpr bool is_iec559 19959: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = false; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before 19959: = false; 19959: static constexpr float_round_style round_style 19959: = round_to_nearest; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr double 19959: min() noexcept { return double(2.2250738585072014e-308L); } 19959: 19959: static constexpr double 19959: max() noexcept { return double(1.7976931348623157e+308L); } 19959: 19959: 19959: static constexpr double 19959: lowest() noexcept { return -double(1.7976931348623157e+308L); } 19959: 19959: 19959: static constexpr int digits = 53; 19959: static constexpr int digits10 = 15; 19959: 19959: static constexpr int max_digits10 19959: = (2 + (53) * 643L / 2136); 19959: 19959: static constexpr bool is_signed = true; 19959: static constexpr bool is_integer = false; 19959: static constexpr bool is_exact = false; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr double 19959: epsilon() noexcept { return double(2.2204460492503131e-16L); } 19959: 19959: static constexpr double 19959: round_error() noexcept { return 0.5; } 19959: 19959: static constexpr int min_exponent = (-1021); 19959: static constexpr int min_exponent10 = (-307); 19959: static constexpr int max_exponent = 1024; 19959: static constexpr int max_exponent10 = 308; 19959: 19959: static constexpr bool has_infinity = 1; 19959: static constexpr bool has_quiet_NaN = 1; 19959: static constexpr bool has_signaling_NaN = has_quiet_NaN; 19959: static constexpr float_denorm_style has_denorm 19959: = bool(1) ? denorm_present : denorm_absent; 19959: static constexpr bool has_denorm_loss 19959: = false; 19959: 19959: static constexpr double 19959: infinity() noexcept { return __builtin_huge_val(); } 19959: 19959: static constexpr double 19959: quiet_NaN() noexcept { return __builtin_nan(""); } 19959: 19959: static constexpr double 19959: signaling_NaN() noexcept { return __builtin_nans(""); } 19959: 19959: static constexpr double 19959: denorm_min() noexcept { return double(4.9406564584124654e-324L); } 19959: 19959: static constexpr bool is_iec559 19959: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = false; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before 19959: = false; 19959: static constexpr float_round_style round_style 19959: = round_to_nearest; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template<> 19959: struct numeric_limits 19959: { 19959: static constexpr bool is_specialized = true; 19959: 19959: static constexpr long double 19959: min() noexcept { return 2.2250738585072014e-308L; } 19959: 19959: static constexpr long double 19959: max() noexcept { return 1.7976931348623157e+308L; } 19959: 19959: 19959: static constexpr long double 19959: lowest() noexcept { return -1.7976931348623157e+308L; } 19959: 19959: 19959: static constexpr int digits = 53; 19959: static constexpr int digits10 = 15; 19959: 19959: static constexpr int max_digits10 19959: = (2 + (53) * 643L / 2136); 19959: 19959: static constexpr bool is_signed = true; 19959: static constexpr bool is_integer = false; 19959: static constexpr bool is_exact = false; 19959: static constexpr int radix = 2; 19959: 19959: static constexpr long double 19959: epsilon() noexcept { return 2.2204460492503131e-16L; } 19959: 19959: static constexpr long double 19959: round_error() noexcept { return 0.5L; } 19959: 19959: static constexpr int min_exponent = (-1021); 19959: static constexpr int min_exponent10 = (-307); 19959: static constexpr int max_exponent = 1024; 19959: static constexpr int max_exponent10 = 308; 19959: 19959: static constexpr bool has_infinity = 1; 19959: static constexpr bool has_quiet_NaN = 1; 19959: static constexpr bool has_signaling_NaN = has_quiet_NaN; 19959: static constexpr float_denorm_style has_denorm 19959: = bool(1) ? denorm_present : denorm_absent; 19959: static constexpr bool has_denorm_loss 19959: = false; 19959: 19959: static constexpr long double 19959: infinity() noexcept { return __builtin_huge_vall(); } 19959: 19959: static constexpr long double 19959: quiet_NaN() noexcept { return __builtin_nanl(""); } 19959: 19959: static constexpr long double 19959: signaling_NaN() noexcept { return __builtin_nansl(""); } 19959: 19959: static constexpr long double 19959: denorm_min() noexcept { return 4.9406564584124654e-324L; } 19959: 19959: static constexpr bool is_iec559 19959: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 19959: static constexpr bool is_bounded = true; 19959: static constexpr bool is_modulo = false; 19959: 19959: static constexpr bool traps = false; 19959: static constexpr bool tinyness_before = 19959: false; 19959: static constexpr float_round_style round_style = 19959: round_to_nearest; 19959: }; 19959: # 2076 "/usr/include/c++/13/limits" 3 19959: 19959: } 19959: # 40 "/usr/include/c++/13/bits/chrono.h" 2 3 19959: # 1 "/usr/include/c++/13/ctime" 1 3 19959: # 39 "/usr/include/c++/13/ctime" 3 19959: 19959: # 40 "/usr/include/c++/13/ctime" 3 19959: # 58 "/usr/include/c++/13/ctime" 3 19959: namespace std 19959: { 19959: using ::clock_t; 19959: using ::time_t; 19959: using ::tm; 19959: 19959: using ::clock; 19959: using ::difftime; 19959: using ::mktime; 19959: using ::time; 19959: using ::asctime; 19959: using ::ctime; 19959: using ::gmtime; 19959: using ::localtime; 19959: using ::strftime; 19959: } 19959: 19959: 19959: 19959: namespace std 19959: { 19959: using ::timespec; 19959: using ::timespec_get; 19959: } 19959: # 41 "/usr/include/c++/13/bits/chrono.h" 2 3 19959: # 1 "/usr/include/c++/13/bits/parse_numbers.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/parse_numbers.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/parse_numbers.h" 3 19959: # 42 "/usr/include/c++/13/bits/parse_numbers.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: namespace __parse_int 19959: { 19959: template 19959: struct _Digit; 19959: 19959: template 19959: struct _Digit<_Base, '0'> : integral_constant 19959: { 19959: using __valid = true_type; 19959: }; 19959: 19959: template 19959: struct _Digit<_Base, '1'> : integral_constant 19959: { 19959: using __valid = true_type; 19959: }; 19959: 19959: template 19959: struct _Digit_impl : integral_constant 19959: { 19959: static_assert(_Base > _Val, "invalid digit"); 19959: using __valid = true_type; 19959: }; 19959: 19959: template 19959: struct _Digit<_Base, '2'> : _Digit_impl<_Base, 2> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, '3'> : _Digit_impl<_Base, 3> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, '4'> : _Digit_impl<_Base, 4> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, '5'> : _Digit_impl<_Base, 5> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, '6'> : _Digit_impl<_Base, 6> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, '7'> : _Digit_impl<_Base, 7> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, '8'> : _Digit_impl<_Base, 8> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, '9'> : _Digit_impl<_Base, 9> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, 'a'> : _Digit_impl<_Base, 0xa> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, 'A'> : _Digit_impl<_Base, 0xa> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, 'b'> : _Digit_impl<_Base, 0xb> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, 'B'> : _Digit_impl<_Base, 0xb> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, 'c'> : _Digit_impl<_Base, 0xc> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, 'C'> : _Digit_impl<_Base, 0xc> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, 'd'> : _Digit_impl<_Base, 0xd> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, 'D'> : _Digit_impl<_Base, 0xd> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, 'e'> : _Digit_impl<_Base, 0xe> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, 'E'> : _Digit_impl<_Base, 0xe> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, 'f'> : _Digit_impl<_Base, 0xf> 19959: { }; 19959: 19959: template 19959: struct _Digit<_Base, 'F'> : _Digit_impl<_Base, 0xf> 19959: { }; 19959: 19959: 19959: template 19959: struct _Digit<_Base, '\''> : integral_constant 19959: { 19959: using __valid = false_type; 19959: }; 19959: 19959: 19959: 19959: template 19959: using __ull_constant = integral_constant; 19959: 19959: template 19959: struct _Power_help 19959: { 19959: using __next = typename _Power_help<_Base, _Digs...>::type; 19959: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 19959: using type 19959: = __ull_constant<__next::value * (__valid_digit{} ? _Base : 1ULL)>; 19959: }; 19959: 19959: template 19959: struct _Power_help<_Base, _Dig> 19959: { 19959: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 19959: using type = __ull_constant<__valid_digit::value>; 19959: }; 19959: 19959: template 19959: struct _Power : _Power_help<_Base, _Digs...>::type 19959: { }; 19959: 19959: template 19959: struct _Power<_Base> : __ull_constant<0> 19959: { }; 19959: 19959: 19959: 19959: template 19959: struct _Number_help 19959: { 19959: using __digit = _Digit<_Base, _Dig>; 19959: using __valid_digit = typename __digit::__valid; 19959: using __next = _Number_help<_Base, 19959: __valid_digit::value ? _Pow / _Base : _Pow, 19959: _Digs...>; 19959: using type = __ull_constant<_Pow * __digit::value + __next::type::value>; 19959: static_assert((type::value / _Pow) == __digit::value, 19959: "integer literal does not fit in unsigned long long"); 19959: }; 19959: 19959: 19959: template 19959: struct _Number_help<_Base, _Pow, '\'', _Dig, _Digs...> 19959: : _Number_help<_Base, _Pow, _Dig, _Digs...> 19959: { }; 19959: 19959: 19959: template 19959: struct _Number_help<_Base, 1ULL, _Dig> 19959: { 19959: using type = __ull_constant<_Digit<_Base, _Dig>::value>; 19959: }; 19959: 19959: template 19959: struct _Number 19959: : _Number_help<_Base, _Power<_Base, _Digs...>::value, _Digs...>::type 19959: { }; 19959: 19959: template 19959: struct _Number<_Base> 19959: : __ull_constant<0> 19959: { }; 19959: 19959: 19959: 19959: template 19959: struct _Parse_int; 19959: 19959: template 19959: struct _Parse_int<'0', 'b', _Digs...> 19959: : _Number<2U, _Digs...>::type 19959: { }; 19959: 19959: template 19959: struct _Parse_int<'0', 'B', _Digs...> 19959: : _Number<2U, _Digs...>::type 19959: { }; 19959: 19959: template 19959: struct _Parse_int<'0', 'x', _Digs...> 19959: : _Number<16U, _Digs...>::type 19959: { }; 19959: 19959: template 19959: struct _Parse_int<'0', 'X', _Digs...> 19959: : _Number<16U, _Digs...>::type 19959: { }; 19959: 19959: template 19959: struct _Parse_int<'0', _Digs...> 19959: : _Number<8U, _Digs...>::type 19959: { }; 19959: 19959: template 19959: struct _Parse_int 19959: : _Number<10U, _Digs...>::type 19959: { }; 19959: 19959: } 19959: 19959: 19959: namespace __select_int 19959: { 19959: template 19959: struct _Select_int_base; 19959: 19959: template 19959: struct _Select_int_base<_Val, _IntType, _Ints...> 19959: : __conditional_t<(_Val <= __gnu_cxx::__int_traits<_IntType>::__max), 19959: integral_constant<_IntType, (_IntType)_Val>, 19959: _Select_int_base<_Val, _Ints...>> 19959: { }; 19959: 19959: template 19959: struct _Select_int_base<_Val> 19959: { }; 19959: 19959: template 19959: using _Select_int = typename _Select_int_base< 19959: __parse_int::_Parse_int<_Digs...>::value, 19959: unsigned char, 19959: unsigned short, 19959: unsigned int, 19959: unsigned long, 19959: unsigned long long 19959: >::type; 19959: 19959: } 19959: 19959: 19959: } 19959: # 42 "/usr/include/c++/13/bits/chrono.h" 2 3 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: namespace filesystem { struct __file_clock; }; 19959: 19959: 19959: namespace chrono 19959: { 19959: 19959: 19959: 19959: 19959: template> 19959: class duration; 19959: 19959: 19959: template 19959: class time_point; 19959: 19959: } 19959: # 77 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: struct __duration_common_type 19959: { }; 19959: 19959: template 19959: struct __duration_common_type<_CT, _Period1, _Period2, 19959: __void_t> 19959: { 19959: private: 19959: using __gcd_num = __static_gcd<_Period1::num, _Period2::num>; 19959: using __gcd_den = __static_gcd<_Period1::den, _Period2::den>; 19959: using __cr = typename _CT::type; 19959: using __r = ratio<__gcd_num::value, 19959: (_Period1::den / __gcd_den::value) * _Period2::den>; 19959: 19959: public: 19959: using type = chrono::duration<__cr, typename __r::type>; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct common_type, 19959: chrono::duration<_Rep2, _Period2>> 19959: : __duration_common_type, 19959: typename _Period1::type, 19959: typename _Period2::type> 19959: { }; 19959: 19959: 19959: template 19959: struct common_type, 19959: chrono::duration<_Rep, _Period>> 19959: { 19959: using type = chrono::duration::type, 19959: typename _Period::type>; 19959: }; 19959: 19959: 19959: template 19959: struct common_type> 19959: { 19959: using type = chrono::duration::type, 19959: typename _Period::type>; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __timepoint_common_type 19959: { }; 19959: 19959: template 19959: struct __timepoint_common_type<_CT, _Clock, __void_t> 19959: { 19959: using type = chrono::time_point<_Clock, typename _CT::type>; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct common_type, 19959: chrono::time_point<_Clock, _Duration2>> 19959: : __timepoint_common_type, _Clock> 19959: { }; 19959: 19959: 19959: template 19959: struct common_type, 19959: chrono::time_point<_Clock, _Duration>> 19959: { using type = chrono::time_point<_Clock, _Duration>; }; 19959: 19959: 19959: template 19959: struct common_type> 19959: { using type = chrono::time_point<_Clock, _Duration>; }; 19959: 19959: 19959: 19959: 19959: namespace chrono 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct __duration_cast_impl 19959: { 19959: template 19959: static constexpr _ToDur 19959: __cast(const duration<_Rep, _Period>& __d) 19959: { 19959: typedef typename _ToDur::rep __to_rep; 19959: return _ToDur(static_cast<__to_rep>(static_cast<_CR>(__d.count()) 19959: * static_cast<_CR>(_CF::num) 19959: / static_cast<_CR>(_CF::den))); 19959: } 19959: }; 19959: 19959: template 19959: struct __duration_cast_impl<_ToDur, _CF, _CR, true, true> 19959: { 19959: template 19959: static constexpr _ToDur 19959: __cast(const duration<_Rep, _Period>& __d) 19959: { 19959: typedef typename _ToDur::rep __to_rep; 19959: return _ToDur(static_cast<__to_rep>(__d.count())); 19959: } 19959: }; 19959: 19959: template 19959: struct __duration_cast_impl<_ToDur, _CF, _CR, true, false> 19959: { 19959: template 19959: static constexpr _ToDur 19959: __cast(const duration<_Rep, _Period>& __d) 19959: { 19959: typedef typename _ToDur::rep __to_rep; 19959: return _ToDur(static_cast<__to_rep>( 19959: static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den))); 19959: } 19959: }; 19959: 19959: template 19959: struct __duration_cast_impl<_ToDur, _CF, _CR, false, true> 19959: { 19959: template 19959: static constexpr _ToDur 19959: __cast(const duration<_Rep, _Period>& __d) 19959: { 19959: typedef typename _ToDur::rep __to_rep; 19959: return _ToDur(static_cast<__to_rep>( 19959: static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); 19959: } 19959: }; 19959: 19959: template 19959: struct __is_duration 19959: : std::false_type 19959: { }; 19959: 19959: template 19959: struct __is_duration> 19959: : std::true_type 19959: { }; 19959: 19959: template 19959: using __enable_if_is_duration 19959: = typename enable_if<__is_duration<_Tp>::value, _Tp>::type; 19959: 19959: template 19959: using __disable_if_is_duration 19959: = typename enable_if::value, _Tp>::type; 19959: 19959: 19959: template 19959: inline constexpr bool __is_duration_v = false; 19959: template 19959: inline constexpr bool __is_duration_v> = true; 19959: template 19959: inline constexpr bool __is_time_point_v = false; 19959: template 19959: inline constexpr bool __is_time_point_v> = true; 19959: # 270 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: [[__nodiscard__]] 19959: constexpr __enable_if_is_duration<_ToDur> 19959: duration_cast(const duration<_Rep, _Period>& __d) 19959: { 19959: 19959: if constexpr (is_same_v<_ToDur, duration<_Rep, _Period>>) 19959: return __d; 19959: else 19959: { 19959: 19959: using __to_period = typename _ToDur::period; 19959: using __to_rep = typename _ToDur::rep; 19959: using __cf = ratio_divide<_Period, __to_period>; 19959: using __cr = typename common_type<__to_rep, _Rep, intmax_t>::type; 19959: using __dc = __duration_cast_impl<_ToDur, __cf, __cr, 19959: __cf::num == 1, __cf::den == 1>; 19959: return __dc::__cast(__d); 19959: 19959: } 19959: 19959: } 19959: # 304 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: struct treat_as_floating_point 19959: : is_floating_point<_Rep> 19959: { }; 19959: 19959: 19959: template 19959: inline constexpr bool treat_as_floating_point_v = 19959: treat_as_floating_point<_Rep>::value; 19959: 19959: template<> 19959: inline constexpr bool treat_as_floating_point_v = false; 19959: template<> 19959: inline constexpr bool treat_as_floating_point_v = false; 19959: template<> 19959: inline constexpr bool treat_as_floating_point_v = false; 19959: template<> 19959: inline constexpr bool treat_as_floating_point_v = true; 19959: template<> 19959: inline constexpr bool treat_as_floating_point_v = true; 19959: template<> 19959: inline constexpr bool treat_as_floating_point_v = true; 19959: # 386 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 19959: floor(const duration<_Rep, _Period>& __d) 19959: { 19959: auto __to = chrono::duration_cast<_ToDur>(__d); 19959: if (__to > __d) 19959: return __to - _ToDur{1}; 19959: return __to; 19959: } 19959: # 406 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 19959: ceil(const duration<_Rep, _Period>& __d) 19959: { 19959: auto __to = chrono::duration_cast<_ToDur>(__d); 19959: if (__to < __d) 19959: return __to + _ToDur{1}; 19959: return __to; 19959: } 19959: # 427 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: [[nodiscard]] constexpr 19959: enable_if_t< 19959: __and_<__is_duration<_ToDur>, 19959: __not_>>::value, 19959: _ToDur> 19959: round(const duration<_Rep, _Period>& __d) 19959: { 19959: _ToDur __t0 = chrono::floor<_ToDur>(__d); 19959: _ToDur __t1 = __t0 + _ToDur{1}; 19959: auto __diff0 = __d - __t0; 19959: auto __diff1 = __t1 - __d; 19959: if (__diff0 == __diff1) 19959: { 19959: if (__t0.count() & 1) 19959: return __t1; 19959: return __t0; 19959: } 19959: else if (__diff0 < __diff1) 19959: return __t0; 19959: return __t1; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: [[nodiscard]] constexpr 19959: enable_if_t::is_signed, duration<_Rep, _Period>> 19959: abs(duration<_Rep, _Period> __d) 19959: { 19959: if (__d >= __d.zero()) 19959: return __d; 19959: return -__d; 19959: } 19959: 19959: 19959: namespace __detail { using chrono::ceil; } 19959: # 494 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: struct duration_values 19959: { 19959: static constexpr _Rep 19959: zero() noexcept 19959: { return _Rep(0); } 19959: 19959: static constexpr _Rep 19959: max() noexcept 19959: { return numeric_limits<_Rep>::max(); } 19959: 19959: static constexpr _Rep 19959: min() noexcept 19959: { return numeric_limits<_Rep>::lowest(); } 19959: }; 19959: 19959: template 19959: class duration 19959: { 19959: static_assert(!__is_duration<_Rep>::value, 19959: "rep cannot be a std::chrono::duration"); 19959: static_assert(__is_ratio<_Period>::value, 19959: "period must be a specialization of std::ratio"); 19959: static_assert(_Period::num > 0, "period must be positive"); 19959: 19959: template 19959: using __is_float = treat_as_floating_point<_Rep2>; 19959: 19959: static constexpr intmax_t 19959: _S_gcd(intmax_t __m, intmax_t __n) noexcept 19959: { 19959: 19959: 19959: 19959: do 19959: { 19959: intmax_t __rem = __m % __n; 19959: __m = __n; 19959: __n = __rem; 19959: } 19959: while (__n != 0); 19959: return __m; 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: using __divide = ratio<(_R1::num / __gcd1) * (_R2::den / __gcd2), 19959: (_R1::den / __gcd2) * (_R2::num / __gcd1)>; 19959: 19959: 19959: template 19959: using __is_harmonic 19959: = __bool_constant<__divide<_Period2, _Period>::den == 1>; 19959: 19959: public: 19959: 19959: using rep = _Rep; 19959: using period = typename _Period::type; 19959: 19959: 19959: constexpr duration() = default; 19959: 19959: duration(const duration&) = default; 19959: 19959: 19959: 19959: template, 19959: __or_<__is_float, __not_<__is_float<_Rep2>>>>> 19959: constexpr explicit duration(const _Rep2& __rep) 19959: : __r(static_cast(__rep)) { } 19959: 19959: template, 19959: __or_<__is_float, 19959: __and_<__is_harmonic<_Period2>, 19959: __not_<__is_float<_Rep2>>>>>> 19959: constexpr duration(const duration<_Rep2, _Period2>& __d) 19959: : __r(duration_cast(__d).count()) { } 19959: 19959: ~duration() = default; 19959: duration& operator=(const duration&) = default; 19959: 19959: 19959: constexpr rep 19959: count() const 19959: { return __r; } 19959: 19959: 19959: 19959: constexpr duration::type, period> 19959: operator+() const 19959: { return duration::type, period>(__r); } 19959: 19959: constexpr duration::type, period> 19959: operator-() const 19959: { return duration::type, period>(-__r); } 19959: 19959: constexpr duration& 19959: operator++() 19959: { 19959: ++__r; 19959: return *this; 19959: } 19959: 19959: constexpr duration 19959: operator++(int) 19959: { return duration(__r++); } 19959: 19959: constexpr duration& 19959: operator--() 19959: { 19959: --__r; 19959: return *this; 19959: } 19959: 19959: constexpr duration 19959: operator--(int) 19959: { return duration(__r--); } 19959: 19959: constexpr duration& 19959: operator+=(const duration& __d) 19959: { 19959: __r += __d.count(); 19959: return *this; 19959: } 19959: 19959: constexpr duration& 19959: operator-=(const duration& __d) 19959: { 19959: __r -= __d.count(); 19959: return *this; 19959: } 19959: 19959: constexpr duration& 19959: operator*=(const rep& __rhs) 19959: { 19959: __r *= __rhs; 19959: return *this; 19959: } 19959: 19959: constexpr duration& 19959: operator/=(const rep& __rhs) 19959: { 19959: __r /= __rhs; 19959: return *this; 19959: } 19959: 19959: 19959: template 19959: constexpr 19959: __enable_if_t::value, duration&> 19959: operator%=(const rep& __rhs) 19959: { 19959: __r %= __rhs; 19959: return *this; 19959: } 19959: 19959: template 19959: constexpr 19959: __enable_if_t::value, duration&> 19959: operator%=(const duration& __d) 19959: { 19959: __r %= __d.count(); 19959: return *this; 19959: } 19959: 19959: 19959: static constexpr duration 19959: zero() noexcept 19959: { return duration(duration_values::zero()); } 19959: 19959: static constexpr duration 19959: min() noexcept 19959: { return duration(duration_values::min()); } 19959: 19959: static constexpr duration 19959: max() noexcept 19959: { return duration(duration_values::max()); } 19959: 19959: private: 19959: rep __r; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: constexpr typename common_type, 19959: duration<_Rep2, _Period2>>::type 19959: operator+(const duration<_Rep1, _Period1>& __lhs, 19959: const duration<_Rep2, _Period2>& __rhs) 19959: { 19959: typedef duration<_Rep1, _Period1> __dur1; 19959: typedef duration<_Rep2, _Period2> __dur2; 19959: typedef typename common_type<__dur1,__dur2>::type __cd; 19959: return __cd(__cd(__lhs).count() + __cd(__rhs).count()); 19959: } 19959: 19959: 19959: template 19959: constexpr typename common_type, 19959: duration<_Rep2, _Period2>>::type 19959: operator-(const duration<_Rep1, _Period1>& __lhs, 19959: const duration<_Rep2, _Period2>& __rhs) 19959: { 19959: typedef duration<_Rep1, _Period1> __dur1; 19959: typedef duration<_Rep2, _Period2> __dur2; 19959: typedef typename common_type<__dur1,__dur2>::type __cd; 19959: return __cd(__cd(__lhs).count() - __cd(__rhs).count()); 19959: } 19959: # 727 "/usr/include/c++/13/bits/chrono.h" 3 19959: template::type> 19959: using __common_rep_t = typename 19959: enable_if::value, _CRep>::type; 19959: # 739 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: constexpr duration<__common_rep_t<_Rep1, _Rep2>, _Period> 19959: operator*(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 19959: { 19959: typedef duration::type, _Period> 19959: __cd; 19959: return __cd(__cd(__d).count() * __s); 19959: } 19959: 19959: template 19959: constexpr duration<__common_rep_t<_Rep2, _Rep1>, _Period> 19959: operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d) 19959: { return __d * __s; } 19959: 19959: template 19959: constexpr 19959: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 19959: operator/(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 19959: { 19959: typedef duration::type, _Period> 19959: __cd; 19959: return __cd(__cd(__d).count() / __s); 19959: } 19959: 19959: template 19959: constexpr typename common_type<_Rep1, _Rep2>::type 19959: operator/(const duration<_Rep1, _Period1>& __lhs, 19959: const duration<_Rep2, _Period2>& __rhs) 19959: { 19959: typedef duration<_Rep1, _Period1> __dur1; 19959: typedef duration<_Rep2, _Period2> __dur2; 19959: typedef typename common_type<__dur1,__dur2>::type __cd; 19959: return __cd(__lhs).count() / __cd(__rhs).count(); 19959: } 19959: 19959: 19959: template 19959: constexpr 19959: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 19959: operator%(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 19959: { 19959: typedef duration::type, _Period> 19959: __cd; 19959: return __cd(__cd(__d).count() % __s); 19959: } 19959: 19959: template 19959: constexpr typename common_type, 19959: duration<_Rep2, _Period2>>::type 19959: operator%(const duration<_Rep1, _Period1>& __lhs, 19959: const duration<_Rep2, _Period2>& __rhs) 19959: { 19959: typedef duration<_Rep1, _Period1> __dur1; 19959: typedef duration<_Rep2, _Period2> __dur2; 19959: typedef typename common_type<__dur1,__dur2>::type __cd; 19959: return __cd(__cd(__lhs).count() % __cd(__rhs).count()); 19959: } 19959: # 807 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: constexpr bool 19959: operator==(const duration<_Rep1, _Period1>& __lhs, 19959: const duration<_Rep2, _Period2>& __rhs) 19959: { 19959: typedef duration<_Rep1, _Period1> __dur1; 19959: typedef duration<_Rep2, _Period2> __dur2; 19959: typedef typename common_type<__dur1,__dur2>::type __ct; 19959: return __ct(__lhs).count() == __ct(__rhs).count(); 19959: } 19959: 19959: template 19959: constexpr bool 19959: operator<(const duration<_Rep1, _Period1>& __lhs, 19959: const duration<_Rep2, _Period2>& __rhs) 19959: { 19959: typedef duration<_Rep1, _Period1> __dur1; 19959: typedef duration<_Rep2, _Period2> __dur2; 19959: typedef typename common_type<__dur1,__dur2>::type __ct; 19959: return __ct(__lhs).count() < __ct(__rhs).count(); 19959: } 19959: # 844 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: constexpr bool 19959: operator!=(const duration<_Rep1, _Period1>& __lhs, 19959: const duration<_Rep2, _Period2>& __rhs) 19959: { return !(__lhs == __rhs); } 19959: 19959: 19959: template 19959: constexpr bool 19959: operator<=(const duration<_Rep1, _Period1>& __lhs, 19959: const duration<_Rep2, _Period2>& __rhs) 19959: { return !(__rhs < __lhs); } 19959: 19959: template 19959: constexpr bool 19959: operator>(const duration<_Rep1, _Period1>& __lhs, 19959: const duration<_Rep2, _Period2>& __rhs) 19959: { return __rhs < __lhs; } 19959: 19959: template 19959: constexpr bool 19959: operator>=(const duration<_Rep1, _Period1>& __lhs, 19959: const duration<_Rep2, _Period2>& __rhs) 19959: { return !(__lhs < __rhs); } 19959: # 888 "/usr/include/c++/13/bits/chrono.h" 3 19959: using nanoseconds = duration; 19959: 19959: 19959: using microseconds = duration; 19959: 19959: 19959: using milliseconds = duration; 19959: 19959: 19959: using seconds = duration; 19959: 19959: 19959: using minutes = duration>; 19959: 19959: 19959: using hours = duration>; 19959: # 921 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: class time_point 19959: { 19959: static_assert(__is_duration<_Dur>::value, 19959: "duration must be a specialization of std::chrono::duration"); 19959: 19959: public: 19959: typedef _Clock clock; 19959: typedef _Dur duration; 19959: typedef typename duration::rep rep; 19959: typedef typename duration::period period; 19959: 19959: constexpr time_point() : __d(duration::zero()) 19959: { } 19959: 19959: constexpr explicit time_point(const duration& __dur) 19959: : __d(__dur) 19959: { } 19959: 19959: 19959: template>> 19959: constexpr time_point(const time_point& __t) 19959: : __d(__t.time_since_epoch()) 19959: { } 19959: 19959: 19959: constexpr duration 19959: time_since_epoch() const 19959: { return __d; } 19959: # 977 "/usr/include/c++/13/bits/chrono.h" 3 19959: constexpr time_point& 19959: operator+=(const duration& __dur) 19959: { 19959: __d += __dur; 19959: return *this; 19959: } 19959: 19959: constexpr time_point& 19959: operator-=(const duration& __dur) 19959: { 19959: __d -= __dur; 19959: return *this; 19959: } 19959: 19959: 19959: static constexpr time_point 19959: min() noexcept 19959: { return time_point(duration::min()); } 19959: 19959: static constexpr time_point 19959: max() noexcept 19959: { return time_point(duration::max()); } 19959: 19959: private: 19959: duration __d; 19959: }; 19959: # 1016 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: [[__nodiscard__]] constexpr 19959: __enable_if_t<__is_duration<_ToDur>::value, time_point<_Clock, _ToDur>> 19959: time_point_cast(const time_point<_Clock, _Dur>& __t) 19959: { 19959: typedef time_point<_Clock, _ToDur> __time_point; 19959: return __time_point(duration_cast<_ToDur>(__t.time_since_epoch())); 19959: } 19959: # 1038 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: [[nodiscard]] constexpr 19959: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 19959: floor(const time_point<_Clock, _Dur>& __tp) 19959: { 19959: return time_point<_Clock, _ToDur>{ 19959: chrono::floor<_ToDur>(__tp.time_since_epoch())}; 19959: } 19959: # 1059 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: [[nodiscard]] constexpr 19959: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 19959: ceil(const time_point<_Clock, _Dur>& __tp) 19959: { 19959: return time_point<_Clock, _ToDur>{ 19959: chrono::ceil<_ToDur>(__tp.time_since_epoch())}; 19959: } 19959: # 1081 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: [[nodiscard]] constexpr 19959: enable_if_t<__is_duration_v<_ToDur> 19959: && !treat_as_floating_point_v, 19959: time_point<_Clock, _ToDur>> 19959: round(const time_point<_Clock, _Dur>& __tp) 19959: { 19959: return time_point<_Clock, _ToDur>{ 19959: chrono::round<_ToDur>(__tp.time_since_epoch())}; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: constexpr time_point<_Clock, 19959: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 19959: operator+(const time_point<_Clock, _Dur1>& __lhs, 19959: const duration<_Rep2, _Period2>& __rhs) 19959: { 19959: typedef duration<_Rep2, _Period2> __dur2; 19959: typedef typename common_type<_Dur1,__dur2>::type __ct; 19959: typedef time_point<_Clock, __ct> __time_point; 19959: return __time_point(__lhs.time_since_epoch() + __rhs); 19959: } 19959: 19959: 19959: template 19959: constexpr time_point<_Clock, 19959: typename common_type, _Dur2>::type> 19959: operator+(const duration<_Rep1, _Period1>& __lhs, 19959: const time_point<_Clock, _Dur2>& __rhs) 19959: { 19959: typedef duration<_Rep1, _Period1> __dur1; 19959: typedef typename common_type<__dur1,_Dur2>::type __ct; 19959: typedef time_point<_Clock, __ct> __time_point; 19959: return __time_point(__rhs.time_since_epoch() + __lhs); 19959: } 19959: 19959: 19959: template 19959: constexpr time_point<_Clock, 19959: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 19959: operator-(const time_point<_Clock, _Dur1>& __lhs, 19959: const duration<_Rep2, _Period2>& __rhs) 19959: { 19959: typedef duration<_Rep2, _Period2> __dur2; 19959: typedef typename common_type<_Dur1,__dur2>::type __ct; 19959: typedef time_point<_Clock, __ct> __time_point; 19959: return __time_point(__lhs.time_since_epoch() -__rhs); 19959: } 19959: 19959: 19959: template 19959: constexpr typename common_type<_Dur1, _Dur2>::type 19959: operator-(const time_point<_Clock, _Dur1>& __lhs, 19959: const time_point<_Clock, _Dur2>& __rhs) 19959: { return __lhs.time_since_epoch() - __rhs.time_since_epoch(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: constexpr bool 19959: operator==(const time_point<_Clock, _Dur1>& __lhs, 19959: const time_point<_Clock, _Dur2>& __rhs) 19959: { return __lhs.time_since_epoch() == __rhs.time_since_epoch(); } 19959: # 1165 "/usr/include/c++/13/bits/chrono.h" 3 19959: template 19959: constexpr bool 19959: operator!=(const time_point<_Clock, _Dur1>& __lhs, 19959: const time_point<_Clock, _Dur2>& __rhs) 19959: { return !(__lhs == __rhs); } 19959: 19959: 19959: template 19959: constexpr bool 19959: operator<(const time_point<_Clock, _Dur1>& __lhs, 19959: const time_point<_Clock, _Dur2>& __rhs) 19959: { return __lhs.time_since_epoch() < __rhs.time_since_epoch(); } 19959: 19959: template 19959: constexpr bool 19959: operator<=(const time_point<_Clock, _Dur1>& __lhs, 19959: const time_point<_Clock, _Dur2>& __rhs) 19959: { return !(__rhs < __lhs); } 19959: 19959: template 19959: constexpr bool 19959: operator>(const time_point<_Clock, _Dur1>& __lhs, 19959: const time_point<_Clock, _Dur2>& __rhs) 19959: { return __rhs < __lhs; } 19959: 19959: template 19959: constexpr bool 19959: operator>=(const time_point<_Clock, _Dur1>& __lhs, 19959: const time_point<_Clock, _Dur2>& __rhs) 19959: { return !(__lhs < __rhs); } 19959: # 1217 "/usr/include/c++/13/bits/chrono.h" 3 19959: inline namespace _V2 { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct system_clock 19959: { 19959: typedef chrono::nanoseconds duration; 19959: typedef duration::rep rep; 19959: typedef duration::period period; 19959: typedef chrono::time_point time_point; 19959: 19959: static_assert(system_clock::duration::min() 19959: < system_clock::duration::zero(), 19959: "a clock's minimum duration cannot be less than its epoch"); 19959: 19959: static constexpr bool is_steady = false; 19959: 19959: static time_point 19959: now() noexcept; 19959: 19959: 19959: static std::time_t 19959: to_time_t(const time_point& __t) noexcept 19959: { 19959: return std::time_t(duration_cast 19959: (__t.time_since_epoch()).count()); 19959: } 19959: 19959: static time_point 19959: from_time_t(std::time_t __t) noexcept 19959: { 19959: typedef chrono::time_point __from; 19959: return time_point_cast 19959: (__from(chrono::seconds(__t))); 19959: } 19959: }; 19959: # 1265 "/usr/include/c++/13/bits/chrono.h" 3 19959: struct steady_clock 19959: { 19959: typedef chrono::nanoseconds duration; 19959: typedef duration::rep rep; 19959: typedef duration::period period; 19959: typedef chrono::time_point time_point; 19959: 19959: static constexpr bool is_steady = true; 19959: 19959: static time_point 19959: now() noexcept; 19959: }; 19959: # 1287 "/usr/include/c++/13/bits/chrono.h" 3 19959: using high_resolution_clock = system_clock; 19959: 19959: } 19959: # 1313 "/usr/include/c++/13/bits/chrono.h" 3 19959: } 19959: 19959: 19959: 19959: 19959: inline namespace literals 19959: { 19959: # 1344 "/usr/include/c++/13/bits/chrono.h" 3 19959: inline namespace chrono_literals 19959: { 19959: 19959: 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wliteral-suffix" 19959: 19959: template 19959: constexpr _Dur __check_overflow() 19959: { 19959: using _Val = __parse_int::_Parse_int<_Digits...>; 19959: constexpr typename _Dur::rep __repval = _Val::value; 19959: static_assert(__repval >= 0 && __repval == _Val::value, 19959: "literal value cannot be represented by duration type"); 19959: return _Dur(__repval); 19959: } 19959: 19959: 19959: 19959: constexpr chrono::duration> 19959: operator""h(long double __hours) 19959: { return chrono::duration>{__hours}; } 19959: 19959: 19959: template 19959: constexpr chrono::hours 19959: operator""h() 19959: { return __check_overflow(); } 19959: 19959: 19959: constexpr chrono::duration> 19959: operator""min(long double __mins) 19959: { return chrono::duration>{__mins}; } 19959: 19959: 19959: template 19959: constexpr chrono::minutes 19959: operator""min() 19959: { return __check_overflow(); } 19959: 19959: 19959: constexpr chrono::duration 19959: operator""s(long double __secs) 19959: { return chrono::duration{__secs}; } 19959: 19959: 19959: template 19959: constexpr chrono::seconds 19959: operator""s() 19959: { return __check_overflow(); } 19959: 19959: 19959: constexpr chrono::duration 19959: operator""ms(long double __msecs) 19959: { return chrono::duration{__msecs}; } 19959: 19959: 19959: template 19959: constexpr chrono::milliseconds 19959: operator""ms() 19959: { return __check_overflow(); } 19959: 19959: 19959: constexpr chrono::duration 19959: operator""us(long double __usecs) 19959: { return chrono::duration{__usecs}; } 19959: 19959: 19959: template 19959: constexpr chrono::microseconds 19959: operator""us() 19959: { return __check_overflow(); } 19959: 19959: 19959: constexpr chrono::duration 19959: operator""ns(long double __nsecs) 19959: { return chrono::duration{__nsecs}; } 19959: 19959: 19959: template 19959: constexpr chrono::nanoseconds 19959: operator""ns() 19959: { return __check_overflow(); } 19959: 19959: #pragma GCC diagnostic pop 19959: 19959: } 19959: } 19959: 19959: namespace chrono 19959: { 19959: using namespace literals::chrono_literals; 19959: } 19959: 19959: 19959: 19959: namespace filesystem 19959: { 19959: struct __file_clock 19959: { 19959: using duration = chrono::nanoseconds; 19959: using rep = duration::rep; 19959: using period = duration::period; 19959: using time_point = chrono::time_point<__file_clock>; 19959: static constexpr bool is_steady = false; 19959: 19959: static time_point 19959: now() noexcept 19959: { return _S_from_sys(chrono::system_clock::now()); } 19959: # 1470 "/usr/include/c++/13/bits/chrono.h" 3 19959: private: 19959: using __sys_clock = chrono::system_clock; 19959: 19959: 19959: 19959: 19959: static constexpr chrono::seconds _S_epoch_diff{6437664000}; 19959: 19959: protected: 19959: 19959: template 19959: static 19959: chrono::time_point<__file_clock, _Dur> 19959: _S_from_sys(const chrono::time_point<__sys_clock, _Dur>& __t) noexcept 19959: { 19959: using __file_time = chrono::time_point<__file_clock, _Dur>; 19959: return __file_time{__t.time_since_epoch()} - _S_epoch_diff; 19959: } 19959: 19959: 19959: template 19959: static 19959: chrono::time_point<__sys_clock, _Dur> 19959: _S_to_sys(const chrono::time_point<__file_clock, _Dur>& __t) noexcept 19959: { 19959: using __sys_time = chrono::time_point<__sys_clock, _Dur>; 19959: return __sys_time{__t.time_since_epoch()} + _S_epoch_diff; 19959: } 19959: }; 19959: } 19959: 19959: 19959: 19959: } 19959: # 37 "/usr/include/c++/13/bits/this_thread_sleep.h" 2 3 19959: 19959: 19959: # 1 "/usr/include/c++/13/cerrno" 1 3 19959: # 39 "/usr/include/c++/13/cerrno" 3 19959: 19959: # 40 "/usr/include/c++/13/cerrno" 3 19959: # 40 "/usr/include/c++/13/bits/this_thread_sleep.h" 2 3 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 56 "/usr/include/c++/13/bits/this_thread_sleep.h" 3 19959: namespace this_thread 19959: { 19959: # 66 "/usr/include/c++/13/bits/this_thread_sleep.h" 3 19959: template 19959: inline void 19959: sleep_for(const chrono::duration<_Rep, _Period>& __rtime) 19959: { 19959: if (__rtime <= __rtime.zero()) 19959: return; 19959: auto __s = chrono::duration_cast(__rtime); 19959: auto __ns = chrono::duration_cast(__rtime - __s); 19959: 19959: struct ::timespec __ts = 19959: { 19959: static_cast(__s.count()), 19959: static_cast(__ns.count()) 19959: }; 19959: while (::nanosleep(&__ts, &__ts) == -1 && (*__errno_location ()) == 4) 19959: { } 19959: 19959: 19959: 19959: } 19959: 19959: 19959: template 19959: inline void 19959: sleep_until(const chrono::time_point<_Clock, _Duration>& __atime) 19959: { 19959: 19959: 19959: 19959: auto __now = _Clock::now(); 19959: if (_Clock::is_steady) 19959: { 19959: if (__now < __atime) 19959: sleep_for(__atime - __now); 19959: return; 19959: } 19959: while (__now < __atime) 19959: { 19959: sleep_for(__atime - __now); 19959: __now = _Clock::now(); 19959: } 19959: } 19959: 19959: } 19959: 19959: 19959: 19959: 19959: } 19959: # 47 "/usr/include/c++/13/thread" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 70 "/usr/include/c++/13/thread" 3 19959: inline bool 19959: operator!=(thread::id __x, thread::id __y) noexcept 19959: { return !(__x == __y); } 19959: 19959: inline bool 19959: operator<(thread::id __x, thread::id __y) noexcept 19959: { 19959: 19959: 19959: return __x._M_thread < __y._M_thread; 19959: } 19959: 19959: inline bool 19959: operator<=(thread::id __x, thread::id __y) noexcept 19959: { return !(__y < __x); } 19959: 19959: inline bool 19959: operator>(thread::id __x, thread::id __y) noexcept 19959: { return __y < __x; } 19959: 19959: inline bool 19959: operator>=(thread::id __x, thread::id __y) noexcept 19959: { return !(__x < __y); } 19959: 19959: 19959: template 19959: inline basic_ostream<_CharT, _Traits>& 19959: operator<<(basic_ostream<_CharT, _Traits>& __out, thread::id __id) 19959: { 19959: if (__id == thread::id()) 19959: return __out << "thread::id of a non-executing thread"; 19959: else 19959: return __out << __id._M_thread; 19959: } 19959: # 283 "/usr/include/c++/13/thread" 3 19959: 19959: } 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/port_defs.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/port_defs.h" 19959: 19959: 19959: 19959: 19959: 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/port_defs.h" 19959: namespace rocksdb { 19959: 19959: namespace port { 19959: class CondVar; 19959: } 19959: 19959: enum class CpuPriority { 19959: kIdle = 0, 19959: kLow = 1, 19959: kNormal = 2, 19959: kHigh = 3, 19959: }; 19959: 19959: } 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 2 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 19959: namespace rocksdb { 19959: 19959: extern const bool kDefaultToAdaptiveMutex; 19959: 19959: namespace port { 19959: constexpr bool kLittleEndian = ( 19959: # 91 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 3 4 19959: 1234 19959: # 91 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 19959: == 19959: # 91 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 3 4 19959: 1234 19959: # 91 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 19959: ); 19959: 19959: 19959: class CondVar; 19959: 19959: class Mutex { 19959: public: 19959: static const char* kName() { return "pthread_mutex_t"; } 19959: 19959: explicit Mutex(bool adaptive = kDefaultToAdaptiveMutex); 19959: 19959: Mutex(const Mutex&) = delete; 19959: void operator=(const Mutex&) = delete; 19959: 19959: ~Mutex(); 19959: 19959: void Lock(); 19959: void Unlock(); 19959: 19959: bool TryLock(); 19959: 19959: 19959: 19959: void AssertHeld() const; 19959: 19959: 19959: inline void lock() { Lock(); } 19959: inline void unlock() { Unlock(); } 19959: inline bool try_lock() { return TryLock(); } 19959: 19959: private: 19959: friend class CondVar; 19959: pthread_mutex_t mu_; 19959: 19959: bool locked_ = false; 19959: 19959: }; 19959: 19959: class RWMutex { 19959: public: 19959: RWMutex(); 19959: 19959: RWMutex(const RWMutex&) = delete; 19959: void operator=(const RWMutex&) = delete; 19959: 19959: ~RWMutex(); 19959: 19959: void ReadLock(); 19959: void WriteLock(); 19959: void ReadUnlock(); 19959: void WriteUnlock(); 19959: void AssertHeld() const {} 19959: 19959: private: 19959: pthread_rwlock_t mu_; 19959: }; 19959: 19959: class CondVar { 19959: public: 19959: explicit CondVar(Mutex* mu); 19959: ~CondVar(); 19959: 19959: Mutex* GetMutex() const { return mu_; } 19959: 19959: void Wait(); 19959: 19959: bool TimedWait(uint64_t abs_time_us); 19959: void Signal(); 19959: void SignalAll(); 19959: 19959: private: 19959: pthread_cond_t cv_; 19959: Mutex* mu_; 19959: }; 19959: 19959: using Thread = std::thread; 19959: 19959: static inline void AsmVolatilePause() { 19959: # 179 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 19959: } 19959: 19959: 19959: extern int PhysicalCoreID(); 19959: 19959: using OnceType = pthread_once_t; 19959: 19959: extern void InitOnce(OnceType* once, void (*initializer)()); 19959: # 211 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 19959: static_assert((64U & (64U - 1)) == 0, 19959: "Cache line size must be a power of 2 number of bytes"); 19959: 19959: extern void* cacheline_aligned_alloc(size_t size); 19959: 19959: extern void cacheline_aligned_free(void* memblock); 19959: # 229 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 19959: extern void Crash(const std::string& srcfile, int srcline); 19959: 19959: extern int GetMaxOpenFiles(); 19959: 19959: extern const size_t kPageSize; 19959: 19959: using ThreadId = pid_t; 19959: 19959: extern void SetCpuPriority(ThreadId id, CpuPriority priority); 19959: 19959: int64_t GetProcessID(); 19959: 19959: 19959: 19959: bool GenerateRfcUuid(std::string* output); 19959: 19959: } 19959: } 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/port/port.h" 2 19959: # 23 "/build/reproducible-path/rocksdb-8.9.1/util/coding.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/coding_lean.h" 1 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/util/coding_lean.h" 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/cstring" 1 3 19959: # 39 "/usr/include/c++/13/cstring" 3 19959: 19959: # 40 "/usr/include/c++/13/cstring" 3 19959: # 16 "/build/reproducible-path/rocksdb-8.9.1/util/coding_lean.h" 2 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: inline void EncodeFixed16(char* buf, uint16_t value) { 19959: if (port::kLittleEndian) { 19959: memcpy(buf, &value, sizeof(value)); 19959: } else { 19959: buf[0] = value & 0xff; 19959: buf[1] = (value >> 8) & 0xff; 19959: } 19959: } 19959: 19959: inline void EncodeFixed32(char* buf, uint32_t value) { 19959: if (port::kLittleEndian) { 19959: memcpy(buf, &value, sizeof(value)); 19959: } else { 19959: buf[0] = value & 0xff; 19959: buf[1] = (value >> 8) & 0xff; 19959: buf[2] = (value >> 16) & 0xff; 19959: buf[3] = (value >> 24) & 0xff; 19959: } 19959: } 19959: 19959: inline void EncodeFixed64(char* buf, uint64_t value) { 19959: if (port::kLittleEndian) { 19959: memcpy(buf, &value, sizeof(value)); 19959: } else { 19959: buf[0] = value & 0xff; 19959: buf[1] = (value >> 8) & 0xff; 19959: buf[2] = (value >> 16) & 0xff; 19959: buf[3] = (value >> 24) & 0xff; 19959: buf[4] = (value >> 32) & 0xff; 19959: buf[5] = (value >> 40) & 0xff; 19959: buf[6] = (value >> 48) & 0xff; 19959: buf[7] = (value >> 56) & 0xff; 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: inline uint16_t DecodeFixed16(const char* ptr) { 19959: if (port::kLittleEndian) { 19959: 19959: uint16_t result; 19959: memcpy(&result, ptr, sizeof(result)); 19959: return result; 19959: } else { 19959: return ((static_cast(static_cast(ptr[0]))) | 19959: (static_cast(static_cast(ptr[1])) << 8)); 19959: } 19959: } 19959: 19959: inline uint32_t DecodeFixed32(const char* ptr) { 19959: if (port::kLittleEndian) { 19959: 19959: uint32_t result; 19959: memcpy(&result, ptr, sizeof(result)); 19959: return result; 19959: } else { 19959: return ((static_cast(static_cast(ptr[0]))) | 19959: (static_cast(static_cast(ptr[1])) << 8) | 19959: (static_cast(static_cast(ptr[2])) << 16) | 19959: (static_cast(static_cast(ptr[3])) << 24)); 19959: } 19959: } 19959: 19959: inline uint64_t DecodeFixed64(const char* ptr) { 19959: if (port::kLittleEndian) { 19959: 19959: uint64_t result; 19959: memcpy(&result, ptr, sizeof(result)); 19959: return result; 19959: } else { 19959: uint64_t lo = DecodeFixed32(ptr); 19959: uint64_t hi = DecodeFixed32(ptr + 4); 19959: return (hi << 32) | lo; 19959: } 19959: } 19959: 19959: } 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/util/coding.h" 2 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: const uint32_t kMaxVarint64Length = 10; 19959: 19959: 19959: extern void PutFixed16(std::string* dst, uint16_t value); 19959: extern void PutFixed32(std::string* dst, uint32_t value); 19959: extern void PutFixed64(std::string* dst, uint64_t value); 19959: extern void PutVarint32(std::string* dst, uint32_t value); 19959: extern void PutVarint32Varint32(std::string* dst, uint32_t value1, 19959: uint32_t value2); 19959: extern void PutVarint32Varint32Varint32(std::string* dst, uint32_t value1, 19959: uint32_t value2, uint32_t value3); 19959: extern void PutVarint64(std::string* dst, uint64_t value); 19959: extern void PutVarint64Varint64(std::string* dst, uint64_t value1, 19959: uint64_t value2); 19959: extern void PutVarint32Varint64(std::string* dst, uint32_t value1, 19959: uint64_t value2); 19959: extern void PutVarint32Varint32Varint64(std::string* dst, uint32_t value1, 19959: uint32_t value2, uint64_t value3); 19959: extern void PutLengthPrefixedSlice(std::string* dst, const Slice& value); 19959: extern void PutLengthPrefixedSliceParts(std::string* dst, 19959: const SliceParts& slice_parts); 19959: extern void PutLengthPrefixedSlicePartsWithPadding( 19959: std::string* dst, const SliceParts& slice_parts, size_t pad_sz); 19959: 19959: 19959: 19959: extern bool GetFixed64(Slice* input, uint64_t* value); 19959: extern bool GetFixed32(Slice* input, uint32_t* value); 19959: extern bool GetFixed16(Slice* input, uint16_t* value); 19959: extern bool GetVarint32(Slice* input, uint32_t* value); 19959: extern bool GetVarint64(Slice* input, uint64_t* value); 19959: extern bool GetVarsignedint64(Slice* input, int64_t* value); 19959: extern bool GetLengthPrefixedSlice(Slice* input, Slice* result); 19959: 19959: extern Slice GetLengthPrefixedSlice(const char* data); 19959: 19959: extern Slice GetSliceUntil(Slice* slice, char delimiter); 19959: 19959: 19959: 19959: constexpr inline uint64_t i64ToZigzag(const int64_t l) { 19959: return (static_cast(l) << 1) ^ static_cast(l >> 63); 19959: } 19959: inline int64_t zigzagToI64(uint64_t n) { 19959: return (n >> 1) ^ -static_cast(n & 1); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: extern const char* GetVarint32Ptr(const char* p, const char* limit, 19959: uint32_t* v); 19959: extern const char* GetVarint64Ptr(const char* p, const char* limit, 19959: uint64_t* v); 19959: inline const char* GetVarsignedint64Ptr(const char* p, const char* limit, 19959: int64_t* value) { 19959: uint64_t u = 0; 19959: const char* ret = GetVarint64Ptr(p, limit, &u); 19959: *value = zigzagToI64(u); 19959: return ret; 19959: } 19959: 19959: 19959: extern int VarintLength(uint64_t v); 19959: 19959: 19959: 19959: 19959: extern char* EncodeVarint32(char* dst, uint32_t value); 19959: extern char* EncodeVarint64(char* dst, uint64_t value); 19959: 19959: 19959: extern const char* GetVarint32PtrFallback(const char* p, const char* limit, 19959: uint32_t* value); 19959: inline const char* GetVarint32Ptr(const char* p, const char* limit, 19959: uint32_t* value) { 19959: if (p < limit) { 19959: uint32_t result = *(reinterpret_cast(p)); 19959: if ((result & 128) == 0) { 19959: *value = result; 19959: return p + 1; 19959: } 19959: } 19959: return GetVarint32PtrFallback(p, limit, value); 19959: } 19959: 19959: 19959: inline void PutFixed16(std::string* dst, uint16_t value) { 19959: if (port::kLittleEndian) { 19959: dst->append(const_cast(reinterpret_cast(&value)), 19959: sizeof(value)); 19959: } else { 19959: char buf[sizeof(value)]; 19959: EncodeFixed16(buf, value); 19959: dst->append(buf, sizeof(buf)); 19959: } 19959: } 19959: 19959: inline void PutFixed32(std::string* dst, uint32_t value) { 19959: if (port::kLittleEndian) { 19959: dst->append(const_cast(reinterpret_cast(&value)), 19959: sizeof(value)); 19959: } else { 19959: char buf[sizeof(value)]; 19959: EncodeFixed32(buf, value); 19959: dst->append(buf, sizeof(buf)); 19959: } 19959: } 19959: 19959: inline void PutFixed64(std::string* dst, uint64_t value) { 19959: if (port::kLittleEndian) { 19959: dst->append(const_cast(reinterpret_cast(&value)), 19959: sizeof(value)); 19959: } else { 19959: char buf[sizeof(value)]; 19959: EncodeFixed64(buf, value); 19959: dst->append(buf, sizeof(buf)); 19959: } 19959: } 19959: 19959: inline void PutVarint32(std::string* dst, uint32_t v) { 19959: char buf[5]; 19959: char* ptr = EncodeVarint32(buf, v); 19959: dst->append(buf, static_cast(ptr - buf)); 19959: } 19959: 19959: inline void PutVarint32Varint32(std::string* dst, uint32_t v1, uint32_t v2) { 19959: char buf[10]; 19959: char* ptr = EncodeVarint32(buf, v1); 19959: ptr = EncodeVarint32(ptr, v2); 19959: dst->append(buf, static_cast(ptr - buf)); 19959: } 19959: 19959: inline void PutVarint32Varint32Varint32(std::string* dst, uint32_t v1, 19959: uint32_t v2, uint32_t v3) { 19959: char buf[15]; 19959: char* ptr = EncodeVarint32(buf, v1); 19959: ptr = EncodeVarint32(ptr, v2); 19959: ptr = EncodeVarint32(ptr, v3); 19959: dst->append(buf, static_cast(ptr - buf)); 19959: } 19959: 19959: inline char* EncodeVarint64(char* dst, uint64_t v) { 19959: static const unsigned int B = 128; 19959: unsigned char* ptr = reinterpret_cast(dst); 19959: while (v >= B) { 19959: *(ptr++) = (v & (B - 1)) | B; 19959: v >>= 7; 19959: } 19959: *(ptr++) = static_cast(v); 19959: return reinterpret_cast(ptr); 19959: } 19959: 19959: inline void PutVarint64(std::string* dst, uint64_t v) { 19959: char buf[kMaxVarint64Length]; 19959: char* ptr = EncodeVarint64(buf, v); 19959: dst->append(buf, static_cast(ptr - buf)); 19959: } 19959: 19959: inline void PutVarsignedint64(std::string* dst, int64_t v) { 19959: char buf[kMaxVarint64Length]; 19959: 19959: char* ptr = EncodeVarint64(buf, i64ToZigzag(v)); 19959: dst->append(buf, static_cast(ptr - buf)); 19959: } 19959: 19959: inline void PutVarint64Varint64(std::string* dst, uint64_t v1, uint64_t v2) { 19959: char buf[20]; 19959: char* ptr = EncodeVarint64(buf, v1); 19959: ptr = EncodeVarint64(ptr, v2); 19959: dst->append(buf, static_cast(ptr - buf)); 19959: } 19959: 19959: inline void PutVarint32Varint64(std::string* dst, uint32_t v1, uint64_t v2) { 19959: char buf[15]; 19959: char* ptr = EncodeVarint32(buf, v1); 19959: ptr = EncodeVarint64(ptr, v2); 19959: dst->append(buf, static_cast(ptr - buf)); 19959: } 19959: 19959: inline void PutVarint32Varint32Varint64(std::string* dst, uint32_t v1, 19959: uint32_t v2, uint64_t v3) { 19959: char buf[20]; 19959: char* ptr = EncodeVarint32(buf, v1); 19959: ptr = EncodeVarint32(ptr, v2); 19959: ptr = EncodeVarint64(ptr, v3); 19959: dst->append(buf, static_cast(ptr - buf)); 19959: } 19959: 19959: inline void PutLengthPrefixedSlice(std::string* dst, const Slice& value) { 19959: PutVarint32(dst, static_cast(value.size())); 19959: dst->append(value.data(), value.size()); 19959: } 19959: 19959: inline void PutLengthPrefixedSliceParts(std::string* dst, size_t total_bytes, 19959: const SliceParts& slice_parts) { 19959: for (int i = 0; i < slice_parts.num_parts; ++i) { 19959: total_bytes += slice_parts.parts[i].size(); 19959: } 19959: PutVarint32(dst, static_cast(total_bytes)); 19959: for (int i = 0; i < slice_parts.num_parts; ++i) { 19959: dst->append(slice_parts.parts[i].data(), slice_parts.parts[i].size()); 19959: } 19959: } 19959: 19959: inline void PutLengthPrefixedSliceParts(std::string* dst, 19959: const SliceParts& slice_parts) { 19959: PutLengthPrefixedSliceParts(dst, 0, slice_parts); 19959: } 19959: 19959: inline void PutLengthPrefixedSlicePartsWithPadding( 19959: std::string* dst, const SliceParts& slice_parts, size_t pad_sz) { 19959: PutLengthPrefixedSliceParts(dst, pad_sz, slice_parts); 19959: dst->append(pad_sz, '\0'); 19959: } 19959: 19959: inline int VarintLength(uint64_t v) { 19959: int len = 1; 19959: while (v >= 128) { 19959: v >>= 7; 19959: len++; 19959: } 19959: return len; 19959: } 19959: 19959: inline bool GetFixed64(Slice* input, uint64_t* value) { 19959: if (input->size() < sizeof(uint64_t)) { 19959: return false; 19959: } 19959: *value = DecodeFixed64(input->data()); 19959: input->remove_prefix(sizeof(uint64_t)); 19959: return true; 19959: } 19959: 19959: inline bool GetFixed32(Slice* input, uint32_t* value) { 19959: if (input->size() < sizeof(uint32_t)) { 19959: return false; 19959: } 19959: *value = DecodeFixed32(input->data()); 19959: input->remove_prefix(sizeof(uint32_t)); 19959: return true; 19959: } 19959: 19959: inline bool GetFixed16(Slice* input, uint16_t* value) { 19959: if (input->size() < sizeof(uint16_t)) { 19959: return false; 19959: } 19959: *value = DecodeFixed16(input->data()); 19959: input->remove_prefix(sizeof(uint16_t)); 19959: return true; 19959: } 19959: 19959: inline bool GetVarint32(Slice* input, uint32_t* value) { 19959: const char* p = input->data(); 19959: const char* limit = p + input->size(); 19959: const char* q = GetVarint32Ptr(p, limit, value); 19959: if (q == nullptr) { 19959: return false; 19959: } else { 19959: *input = Slice(q, static_cast(limit - q)); 19959: return true; 19959: } 19959: } 19959: 19959: inline bool GetVarint64(Slice* input, uint64_t* value) { 19959: const char* p = input->data(); 19959: const char* limit = p + input->size(); 19959: const char* q = GetVarint64Ptr(p, limit, value); 19959: if (q == nullptr) { 19959: return false; 19959: } else { 19959: *input = Slice(q, static_cast(limit - q)); 19959: return true; 19959: } 19959: } 19959: 19959: inline bool GetVarsignedint64(Slice* input, int64_t* value) { 19959: const char* p = input->data(); 19959: const char* limit = p + input->size(); 19959: const char* q = GetVarsignedint64Ptr(p, limit, value); 19959: if (q == nullptr) { 19959: return false; 19959: } else { 19959: *input = Slice(q, static_cast(limit - q)); 19959: return true; 19959: } 19959: } 19959: 19959: inline bool GetLengthPrefixedSlice(Slice* input, Slice* result) { 19959: uint32_t len = 0; 19959: if (GetVarint32(input, &len) && input->size() >= len) { 19959: *result = Slice(input->data(), len); 19959: input->remove_prefix(len); 19959: return true; 19959: } else { 19959: return false; 19959: } 19959: } 19959: 19959: inline Slice GetLengthPrefixedSlice(const char* data) { 19959: uint32_t len = 0; 19959: 19959: 19959: auto p = GetVarint32Ptr(data, data + 5 , &len); 19959: return Slice(p, len); 19959: } 19959: 19959: inline Slice GetSliceUntil(Slice* slice, char delimiter) { 19959: uint32_t len = 0; 19959: for (len = 0; len < slice->size() && slice->data()[len] != delimiter; ++len) { 19959: 19959: } 19959: 19959: Slice ret(slice->data(), len); 19959: slice->remove_prefix(len + ((len < slice->size()) ? 1 : 0)); 19959: return ret; 19959: } 19959: 19959: template 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline void 19959: PutUnaligned(T* memory, const T& value) { 19959: 19959: 19959: 19959: 19959: *memory = value; 19959: 19959: } 19959: 19959: template 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline void 19959: GetUnaligned(const T* memory, T* value) { 19959: 19959: 19959: 19959: 19959: *value = *memory; 19959: 19959: } 19959: 19959: } 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/user_comparator_wrapper.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/util/user_comparator_wrapper.h" 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_context_imp.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_step_timer.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_level_imp.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_level.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: enum PerfLevel : unsigned char { 19959: kUninitialized = 0, 19959: kDisable = 1, 19959: kEnableCount = 2, 19959: kEnableTimeExceptForMutex = 3, 19959: 19959: 19959: 19959: kEnableTimeAndCPUTimeExceptForMutex = 4, 19959: kEnableTime = 5, 19959: kOutOfBounds = 6 19959: }; 19959: 19959: 19959: void SetPerfLevel(PerfLevel level); 19959: 19959: 19959: PerfLevel GetPerfLevel(); 19959: 19959: } 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_level_imp.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: extern thread_local PerfLevel perf_level; 19959: 19959: } 19959: # 8 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_step_timer.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/map" 1 3 19959: # 58 "/usr/include/c++/13/map" 3 19959: 19959: # 59 "/usr/include/c++/13/map" 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/stl_tree.h" 1 3 19959: # 61 "/usr/include/c++/13/bits/stl_tree.h" 3 19959: 19959: # 62 "/usr/include/c++/13/bits/stl_tree.h" 3 19959: # 75 "/usr/include/c++/13/bits/stl_tree.h" 3 19959: 19959: # 75 "/usr/include/c++/13/bits/stl_tree.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 99 "/usr/include/c++/13/bits/stl_tree.h" 3 19959: enum _Rb_tree_color { _S_red = false, _S_black = true }; 19959: 19959: struct _Rb_tree_node_base 19959: { 19959: typedef _Rb_tree_node_base* _Base_ptr; 19959: typedef const _Rb_tree_node_base* _Const_Base_ptr; 19959: 19959: _Rb_tree_color _M_color; 19959: _Base_ptr _M_parent; 19959: _Base_ptr _M_left; 19959: _Base_ptr _M_right; 19959: 19959: static _Base_ptr 19959: _S_minimum(_Base_ptr __x) noexcept 19959: { 19959: while (__x->_M_left != 0) __x = __x->_M_left; 19959: return __x; 19959: } 19959: 19959: static _Const_Base_ptr 19959: _S_minimum(_Const_Base_ptr __x) noexcept 19959: { 19959: while (__x->_M_left != 0) __x = __x->_M_left; 19959: return __x; 19959: } 19959: 19959: static _Base_ptr 19959: _S_maximum(_Base_ptr __x) noexcept 19959: { 19959: while (__x->_M_right != 0) __x = __x->_M_right; 19959: return __x; 19959: } 19959: 19959: static _Const_Base_ptr 19959: _S_maximum(_Const_Base_ptr __x) noexcept 19959: { 19959: while (__x->_M_right != 0) __x = __x->_M_right; 19959: return __x; 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct _Rb_tree_key_compare 19959: { 19959: _Key_compare _M_key_compare; 19959: 19959: _Rb_tree_key_compare() 19959: noexcept(is_nothrow_default_constructible<_Key_compare>::value) 19959: 19959: : _M_key_compare() 19959: { } 19959: 19959: _Rb_tree_key_compare(const _Key_compare& __comp) 19959: : _M_key_compare(__comp) 19959: { } 19959: 19959: 19959: 19959: _Rb_tree_key_compare(const _Rb_tree_key_compare&) = default; 19959: 19959: _Rb_tree_key_compare(_Rb_tree_key_compare&& __x) 19959: noexcept(is_nothrow_copy_constructible<_Key_compare>::value) 19959: : _M_key_compare(__x._M_key_compare) 19959: { } 19959: 19959: }; 19959: 19959: 19959: struct _Rb_tree_header 19959: { 19959: _Rb_tree_node_base _M_header; 19959: size_t _M_node_count; 19959: 19959: _Rb_tree_header() noexcept 19959: { 19959: _M_header._M_color = _S_red; 19959: _M_reset(); 19959: } 19959: 19959: 19959: _Rb_tree_header(_Rb_tree_header&& __x) noexcept 19959: { 19959: if (__x._M_header._M_parent != nullptr) 19959: _M_move_data(__x); 19959: else 19959: { 19959: _M_header._M_color = _S_red; 19959: _M_reset(); 19959: } 19959: } 19959: 19959: 19959: void 19959: _M_move_data(_Rb_tree_header& __from) 19959: { 19959: _M_header._M_color = __from._M_header._M_color; 19959: _M_header._M_parent = __from._M_header._M_parent; 19959: _M_header._M_left = __from._M_header._M_left; 19959: _M_header._M_right = __from._M_header._M_right; 19959: _M_header._M_parent->_M_parent = &_M_header; 19959: _M_node_count = __from._M_node_count; 19959: 19959: __from._M_reset(); 19959: } 19959: 19959: void 19959: _M_reset() 19959: { 19959: _M_header._M_parent = 0; 19959: _M_header._M_left = &_M_header; 19959: _M_header._M_right = &_M_header; 19959: _M_node_count = 0; 19959: } 19959: }; 19959: 19959: template 19959: struct _Rb_tree_node : public _Rb_tree_node_base 19959: { 19959: typedef _Rb_tree_node<_Val>* _Link_type; 19959: # 231 "/usr/include/c++/13/bits/stl_tree.h" 3 19959: __gnu_cxx::__aligned_membuf<_Val> _M_storage; 19959: 19959: _Val* 19959: _M_valptr() 19959: { return _M_storage._M_ptr(); } 19959: 19959: const _Val* 19959: _M_valptr() const 19959: { return _M_storage._M_ptr(); } 19959: 19959: }; 19959: 19959: __attribute__ ((__pure__)) _Rb_tree_node_base* 19959: _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); 19959: 19959: __attribute__ ((__pure__)) const _Rb_tree_node_base* 19959: _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); 19959: 19959: __attribute__ ((__pure__)) _Rb_tree_node_base* 19959: _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); 19959: 19959: __attribute__ ((__pure__)) const _Rb_tree_node_base* 19959: _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); 19959: 19959: template 19959: struct _Rb_tree_iterator 19959: { 19959: typedef _Tp value_type; 19959: typedef _Tp& reference; 19959: typedef _Tp* pointer; 19959: 19959: typedef bidirectional_iterator_tag iterator_category; 19959: typedef ptrdiff_t difference_type; 19959: 19959: typedef _Rb_tree_iterator<_Tp> _Self; 19959: typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; 19959: typedef _Rb_tree_node<_Tp>* _Link_type; 19959: 19959: _Rb_tree_iterator() noexcept 19959: : _M_node() { } 19959: 19959: explicit 19959: _Rb_tree_iterator(_Base_ptr __x) noexcept 19959: : _M_node(__x) { } 19959: 19959: reference 19959: operator*() const noexcept 19959: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 19959: 19959: pointer 19959: operator->() const noexcept 19959: { return static_cast<_Link_type> (_M_node)->_M_valptr(); } 19959: 19959: _Self& 19959: operator++() noexcept 19959: { 19959: _M_node = _Rb_tree_increment(_M_node); 19959: return *this; 19959: } 19959: 19959: _Self 19959: operator++(int) noexcept 19959: { 19959: _Self __tmp = *this; 19959: _M_node = _Rb_tree_increment(_M_node); 19959: return __tmp; 19959: } 19959: 19959: _Self& 19959: operator--() noexcept 19959: { 19959: _M_node = _Rb_tree_decrement(_M_node); 19959: return *this; 19959: } 19959: 19959: _Self 19959: operator--(int) noexcept 19959: { 19959: _Self __tmp = *this; 19959: _M_node = _Rb_tree_decrement(_M_node); 19959: return __tmp; 19959: } 19959: 19959: friend bool 19959: operator==(const _Self& __x, const _Self& __y) noexcept 19959: { return __x._M_node == __y._M_node; } 19959: 19959: 19959: friend bool 19959: operator!=(const _Self& __x, const _Self& __y) noexcept 19959: { return __x._M_node != __y._M_node; } 19959: 19959: 19959: _Base_ptr _M_node; 19959: }; 19959: 19959: template 19959: struct _Rb_tree_const_iterator 19959: { 19959: typedef _Tp value_type; 19959: typedef const _Tp& reference; 19959: typedef const _Tp* pointer; 19959: 19959: typedef _Rb_tree_iterator<_Tp> iterator; 19959: 19959: typedef bidirectional_iterator_tag iterator_category; 19959: typedef ptrdiff_t difference_type; 19959: 19959: typedef _Rb_tree_const_iterator<_Tp> _Self; 19959: typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; 19959: typedef const _Rb_tree_node<_Tp>* _Link_type; 19959: 19959: _Rb_tree_const_iterator() noexcept 19959: : _M_node() { } 19959: 19959: explicit 19959: _Rb_tree_const_iterator(_Base_ptr __x) noexcept 19959: : _M_node(__x) { } 19959: 19959: _Rb_tree_const_iterator(const iterator& __it) noexcept 19959: : _M_node(__it._M_node) { } 19959: 19959: iterator 19959: _M_const_cast() const noexcept 19959: { return iterator(const_cast(_M_node)); } 19959: 19959: reference 19959: operator*() const noexcept 19959: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 19959: 19959: pointer 19959: operator->() const noexcept 19959: { return static_cast<_Link_type>(_M_node)->_M_valptr(); } 19959: 19959: _Self& 19959: operator++() noexcept 19959: { 19959: _M_node = _Rb_tree_increment(_M_node); 19959: return *this; 19959: } 19959: 19959: _Self 19959: operator++(int) noexcept 19959: { 19959: _Self __tmp = *this; 19959: _M_node = _Rb_tree_increment(_M_node); 19959: return __tmp; 19959: } 19959: 19959: _Self& 19959: operator--() noexcept 19959: { 19959: _M_node = _Rb_tree_decrement(_M_node); 19959: return *this; 19959: } 19959: 19959: _Self 19959: operator--(int) noexcept 19959: { 19959: _Self __tmp = *this; 19959: _M_node = _Rb_tree_decrement(_M_node); 19959: return __tmp; 19959: } 19959: 19959: friend bool 19959: operator==(const _Self& __x, const _Self& __y) noexcept 19959: { return __x._M_node == __y._M_node; } 19959: 19959: 19959: friend bool 19959: operator!=(const _Self& __x, const _Self& __y) noexcept 19959: { return __x._M_node != __y._M_node; } 19959: 19959: 19959: _Base_ptr _M_node; 19959: }; 19959: 19959: __attribute__((__nonnull__)) 19959: void 19959: _Rb_tree_insert_and_rebalance(const bool __insert_left, 19959: _Rb_tree_node_base* __x, 19959: _Rb_tree_node_base* __p, 19959: _Rb_tree_node_base& __header) throw (); 19959: 19959: __attribute__((__nonnull__,__returns_nonnull__)) 19959: _Rb_tree_node_base* 19959: _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, 19959: _Rb_tree_node_base& __header) throw (); 19959: 19959: 19959: template 19959: struct _Rb_tree_merge_helper { }; 19959: 19959: 19959: template > 19959: class _Rb_tree 19959: { 19959: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 19959: rebind<_Rb_tree_node<_Val> >::other _Node_allocator; 19959: 19959: typedef __gnu_cxx::__alloc_traits<_Node_allocator> _Alloc_traits; 19959: 19959: protected: 19959: typedef _Rb_tree_node_base* _Base_ptr; 19959: typedef const _Rb_tree_node_base* _Const_Base_ptr; 19959: typedef _Rb_tree_node<_Val>* _Link_type; 19959: typedef const _Rb_tree_node<_Val>* _Const_Link_type; 19959: 19959: private: 19959: 19959: 19959: struct _Reuse_or_alloc_node 19959: { 19959: _Reuse_or_alloc_node(_Rb_tree& __t) 19959: : _M_root(__t._M_root()), _M_nodes(__t._M_rightmost()), _M_t(__t) 19959: { 19959: if (_M_root) 19959: { 19959: _M_root->_M_parent = 0; 19959: 19959: if (_M_nodes->_M_left) 19959: _M_nodes = _M_nodes->_M_left; 19959: } 19959: else 19959: _M_nodes = 0; 19959: } 19959: 19959: 19959: _Reuse_or_alloc_node(const _Reuse_or_alloc_node&) = delete; 19959: 19959: 19959: ~_Reuse_or_alloc_node() 19959: { _M_t._M_erase(static_cast<_Link_type>(_M_root)); } 19959: 19959: template 19959: _Link_type 19959: operator()(_Arg&& __arg) 19959: { 19959: _Link_type __node = static_cast<_Link_type>(_M_extract()); 19959: if (__node) 19959: { 19959: _M_t._M_destroy_node(__node); 19959: _M_t._M_construct_node(__node, std::forward<_Arg>(__arg)); 19959: return __node; 19959: } 19959: 19959: return _M_t._M_create_node(std::forward<_Arg>(__arg)); 19959: } 19959: 19959: private: 19959: _Base_ptr 19959: _M_extract() 19959: { 19959: if (!_M_nodes) 19959: return _M_nodes; 19959: 19959: _Base_ptr __node = _M_nodes; 19959: _M_nodes = _M_nodes->_M_parent; 19959: if (_M_nodes) 19959: { 19959: if (_M_nodes->_M_right == __node) 19959: { 19959: _M_nodes->_M_right = 0; 19959: 19959: if (_M_nodes->_M_left) 19959: { 19959: _M_nodes = _M_nodes->_M_left; 19959: 19959: while (_M_nodes->_M_right) 19959: _M_nodes = _M_nodes->_M_right; 19959: 19959: if (_M_nodes->_M_left) 19959: _M_nodes = _M_nodes->_M_left; 19959: } 19959: } 19959: else 19959: _M_nodes->_M_left = 0; 19959: } 19959: else 19959: _M_root = 0; 19959: 19959: return __node; 19959: } 19959: 19959: _Base_ptr _M_root; 19959: _Base_ptr _M_nodes; 19959: _Rb_tree& _M_t; 19959: }; 19959: 19959: 19959: 19959: struct _Alloc_node 19959: { 19959: _Alloc_node(_Rb_tree& __t) 19959: : _M_t(__t) { } 19959: 19959: template 19959: _Link_type 19959: operator()(_Arg&& __arg) const 19959: { return _M_t._M_create_node(std::forward<_Arg>(__arg)); } 19959: 19959: private: 19959: _Rb_tree& _M_t; 19959: }; 19959: 19959: public: 19959: typedef _Key key_type; 19959: typedef _Val value_type; 19959: typedef value_type* pointer; 19959: typedef const value_type* const_pointer; 19959: typedef value_type& reference; 19959: typedef const value_type& const_reference; 19959: typedef size_t size_type; 19959: typedef ptrdiff_t difference_type; 19959: typedef _Alloc allocator_type; 19959: 19959: _Node_allocator& 19959: _M_get_Node_allocator() noexcept 19959: { return this->_M_impl; } 19959: 19959: const _Node_allocator& 19959: _M_get_Node_allocator() const noexcept 19959: { return this->_M_impl; } 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return allocator_type(_M_get_Node_allocator()); } 19959: 19959: protected: 19959: _Link_type 19959: _M_get_node() 19959: { return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); } 19959: 19959: void 19959: _M_put_node(_Link_type __p) noexcept 19959: { _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); } 19959: # 590 "/usr/include/c++/13/bits/stl_tree.h" 3 19959: template 19959: void 19959: _M_construct_node(_Link_type __node, _Args&&... __args) 19959: { 19959: try 19959: { 19959: ::new(__node) _Rb_tree_node<_Val>; 19959: _Alloc_traits::construct(_M_get_Node_allocator(), 19959: __node->_M_valptr(), 19959: std::forward<_Args>(__args)...); 19959: } 19959: catch(...) 19959: { 19959: __node->~_Rb_tree_node<_Val>(); 19959: _M_put_node(__node); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: _Link_type 19959: _M_create_node(_Args&&... __args) 19959: { 19959: _Link_type __tmp = _M_get_node(); 19959: _M_construct_node(__tmp, std::forward<_Args>(__args)...); 19959: return __tmp; 19959: } 19959: 19959: 19959: void 19959: _M_destroy_node(_Link_type __p) noexcept 19959: { 19959: 19959: 19959: 19959: _Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr()); 19959: __p->~_Rb_tree_node<_Val>(); 19959: 19959: } 19959: 19959: void 19959: _M_drop_node(_Link_type __p) noexcept 19959: { 19959: _M_destroy_node(__p); 19959: _M_put_node(__p); 19959: } 19959: 19959: template 19959: _Link_type 19959: _M_clone_node(_Link_type __x, _NodeGen& __node_gen) 19959: { 19959: 19959: using _Vp = __conditional_t<_MoveValue, 19959: value_type&&, 19959: const value_type&>; 19959: 19959: _Link_type __tmp 19959: = __node_gen(std::forward<_Vp>(*__x->_M_valptr())); 19959: __tmp->_M_color = __x->_M_color; 19959: __tmp->_M_left = 0; 19959: __tmp->_M_right = 0; 19959: return __tmp; 19959: } 19959: 19959: protected: 19959: 19959: 19959: 19959: 19959: template 19959: 19959: struct _Rb_tree_impl 19959: : public _Node_allocator 19959: , public _Rb_tree_key_compare<_Key_compare> 19959: , public _Rb_tree_header 19959: { 19959: typedef _Rb_tree_key_compare<_Key_compare> _Base_key_compare; 19959: 19959: _Rb_tree_impl() 19959: noexcept(is_nothrow_default_constructible<_Node_allocator>::value && is_nothrow_default_constructible<_Base_key_compare>::value) 19959: 19959: 19959: : _Node_allocator() 19959: { } 19959: 19959: _Rb_tree_impl(const _Rb_tree_impl& __x) 19959: : _Node_allocator(_Alloc_traits::_S_select_on_copy(__x)) 19959: , _Base_key_compare(__x._M_key_compare) 19959: , _Rb_tree_header() 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: _Rb_tree_impl(_Rb_tree_impl&&) 19959: noexcept( is_nothrow_move_constructible<_Base_key_compare>::value ) 19959: = default; 19959: 19959: explicit 19959: _Rb_tree_impl(_Node_allocator&& __a) 19959: : _Node_allocator(std::move(__a)) 19959: { } 19959: 19959: _Rb_tree_impl(_Rb_tree_impl&& __x, _Node_allocator&& __a) 19959: : _Node_allocator(std::move(__a)), 19959: _Base_key_compare(std::move(__x)), 19959: _Rb_tree_header(std::move(__x)) 19959: { } 19959: 19959: _Rb_tree_impl(const _Key_compare& __comp, _Node_allocator&& __a) 19959: : _Node_allocator(std::move(__a)), _Base_key_compare(__comp) 19959: { } 19959: 19959: }; 19959: 19959: _Rb_tree_impl<_Compare> _M_impl; 19959: 19959: protected: 19959: _Base_ptr& 19959: _M_root() noexcept 19959: { return this->_M_impl._M_header._M_parent; } 19959: 19959: _Const_Base_ptr 19959: _M_root() const noexcept 19959: { return this->_M_impl._M_header._M_parent; } 19959: 19959: _Base_ptr& 19959: _M_leftmost() noexcept 19959: { return this->_M_impl._M_header._M_left; } 19959: 19959: _Const_Base_ptr 19959: _M_leftmost() const noexcept 19959: { return this->_M_impl._M_header._M_left; } 19959: 19959: _Base_ptr& 19959: _M_rightmost() noexcept 19959: { return this->_M_impl._M_header._M_right; } 19959: 19959: _Const_Base_ptr 19959: _M_rightmost() const noexcept 19959: { return this->_M_impl._M_header._M_right; } 19959: 19959: _Link_type 19959: _M_mbegin() const noexcept 19959: { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } 19959: 19959: _Link_type 19959: _M_begin() noexcept 19959: { return _M_mbegin(); } 19959: 19959: _Const_Link_type 19959: _M_begin() const noexcept 19959: { 19959: return static_cast<_Const_Link_type> 19959: (this->_M_impl._M_header._M_parent); 19959: } 19959: 19959: _Base_ptr 19959: _M_end() noexcept 19959: { return &this->_M_impl._M_header; } 19959: 19959: _Const_Base_ptr 19959: _M_end() const noexcept 19959: { return &this->_M_impl._M_header; } 19959: 19959: static const _Key& 19959: _S_key(_Const_Link_type __x) 19959: { 19959: 19959: 19959: 19959: static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{}, 19959: "comparison object must be invocable " 19959: "with two arguments of key type"); 19959: 19959: 19959: 19959: if constexpr (__is_invocable<_Compare&, const _Key&, const _Key&>{}) 19959: static_assert( 19959: is_invocable_v, 19959: "comparison object must be invocable as const"); 19959: 19959: 19959: 19959: return _KeyOfValue()(*__x->_M_valptr()); 19959: } 19959: 19959: static _Link_type 19959: _S_left(_Base_ptr __x) noexcept 19959: { return static_cast<_Link_type>(__x->_M_left); } 19959: 19959: static _Const_Link_type 19959: _S_left(_Const_Base_ptr __x) noexcept 19959: { return static_cast<_Const_Link_type>(__x->_M_left); } 19959: 19959: static _Link_type 19959: _S_right(_Base_ptr __x) noexcept 19959: { return static_cast<_Link_type>(__x->_M_right); } 19959: 19959: static _Const_Link_type 19959: _S_right(_Const_Base_ptr __x) noexcept 19959: { return static_cast<_Const_Link_type>(__x->_M_right); } 19959: 19959: static const _Key& 19959: _S_key(_Const_Base_ptr __x) 19959: { return _S_key(static_cast<_Const_Link_type>(__x)); } 19959: 19959: static _Base_ptr 19959: _S_minimum(_Base_ptr __x) noexcept 19959: { return _Rb_tree_node_base::_S_minimum(__x); } 19959: 19959: static _Const_Base_ptr 19959: _S_minimum(_Const_Base_ptr __x) noexcept 19959: { return _Rb_tree_node_base::_S_minimum(__x); } 19959: 19959: static _Base_ptr 19959: _S_maximum(_Base_ptr __x) noexcept 19959: { return _Rb_tree_node_base::_S_maximum(__x); } 19959: 19959: static _Const_Base_ptr 19959: _S_maximum(_Const_Base_ptr __x) noexcept 19959: { return _Rb_tree_node_base::_S_maximum(__x); } 19959: 19959: public: 19959: typedef _Rb_tree_iterator iterator; 19959: typedef _Rb_tree_const_iterator const_iterator; 19959: 19959: typedef std::reverse_iterator reverse_iterator; 19959: typedef std::reverse_iterator const_reverse_iterator; 19959: 19959: 19959: using node_type = _Node_handle<_Key, _Val, _Node_allocator>; 19959: using insert_return_type = _Node_insert_return< 19959: __conditional_t, const_iterator, iterator>, 19959: node_type>; 19959: 19959: 19959: pair<_Base_ptr, _Base_ptr> 19959: _M_get_insert_unique_pos(const key_type& __k); 19959: 19959: pair<_Base_ptr, _Base_ptr> 19959: _M_get_insert_equal_pos(const key_type& __k); 19959: 19959: pair<_Base_ptr, _Base_ptr> 19959: _M_get_insert_hint_unique_pos(const_iterator __pos, 19959: const key_type& __k); 19959: 19959: pair<_Base_ptr, _Base_ptr> 19959: _M_get_insert_hint_equal_pos(const_iterator __pos, 19959: const key_type& __k); 19959: 19959: private: 19959: 19959: template 19959: iterator 19959: _M_insert_(_Base_ptr __x, _Base_ptr __y, _Arg&& __v, _NodeGen&); 19959: 19959: iterator 19959: _M_insert_node(_Base_ptr __x, _Base_ptr __y, _Link_type __z); 19959: 19959: template 19959: iterator 19959: _M_insert_lower(_Base_ptr __y, _Arg&& __v); 19959: 19959: template 19959: iterator 19959: _M_insert_equal_lower(_Arg&& __x); 19959: 19959: iterator 19959: _M_insert_lower_node(_Base_ptr __p, _Link_type __z); 19959: 19959: iterator 19959: _M_insert_equal_lower_node(_Link_type __z); 19959: # 881 "/usr/include/c++/13/bits/stl_tree.h" 3 19959: enum { __as_lvalue, __as_rvalue }; 19959: 19959: template 19959: _Link_type 19959: _M_copy(_Link_type, _Base_ptr, _NodeGen&); 19959: 19959: template 19959: _Link_type 19959: _M_copy(const _Rb_tree& __x, _NodeGen& __gen) 19959: { 19959: _Link_type __root = 19959: _M_copy<_MoveValues>(__x._M_mbegin(), _M_end(), __gen); 19959: _M_leftmost() = _S_minimum(__root); 19959: _M_rightmost() = _S_maximum(__root); 19959: _M_impl._M_node_count = __x._M_impl._M_node_count; 19959: return __root; 19959: } 19959: 19959: _Link_type 19959: _M_copy(const _Rb_tree& __x) 19959: { 19959: _Alloc_node __an(*this); 19959: return _M_copy<__as_lvalue>(__x, __an); 19959: } 19959: 19959: void 19959: _M_erase(_Link_type __x); 19959: 19959: iterator 19959: _M_lower_bound(_Link_type __x, _Base_ptr __y, 19959: const _Key& __k); 19959: 19959: const_iterator 19959: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 19959: const _Key& __k) const; 19959: 19959: iterator 19959: _M_upper_bound(_Link_type __x, _Base_ptr __y, 19959: const _Key& __k); 19959: 19959: const_iterator 19959: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 19959: const _Key& __k) const; 19959: 19959: public: 19959: 19959: 19959: 19959: 19959: _Rb_tree() = default; 19959: 19959: 19959: _Rb_tree(const _Compare& __comp, 19959: const allocator_type& __a = allocator_type()) 19959: : _M_impl(__comp, _Node_allocator(__a)) { } 19959: 19959: _Rb_tree(const _Rb_tree& __x) 19959: : _M_impl(__x._M_impl) 19959: { 19959: if (__x._M_root() != 0) 19959: _M_root() = _M_copy(__x); 19959: } 19959: 19959: 19959: _Rb_tree(const allocator_type& __a) 19959: : _M_impl(_Node_allocator(__a)) 19959: { } 19959: 19959: _Rb_tree(const _Rb_tree& __x, const allocator_type& __a) 19959: : _M_impl(__x._M_impl._M_key_compare, _Node_allocator(__a)) 19959: { 19959: if (__x._M_root() != nullptr) 19959: _M_root() = _M_copy(__x); 19959: } 19959: 19959: _Rb_tree(_Rb_tree&&) = default; 19959: 19959: _Rb_tree(_Rb_tree&& __x, const allocator_type& __a) 19959: : _Rb_tree(std::move(__x), _Node_allocator(__a)) 19959: { } 19959: 19959: private: 19959: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, true_type) 19959: noexcept(is_nothrow_default_constructible<_Compare>::value) 19959: : _M_impl(std::move(__x._M_impl), std::move(__a)) 19959: { } 19959: 19959: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, false_type) 19959: : _M_impl(__x._M_impl._M_key_compare, std::move(__a)) 19959: { 19959: if (__x._M_root() != nullptr) 19959: _M_move_data(__x, false_type{}); 19959: } 19959: 19959: public: 19959: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a) 19959: noexcept( noexcept( 19959: _Rb_tree(std::declval<_Rb_tree&&>(), std::declval<_Node_allocator&&>(), 19959: std::declval())) ) 19959: : _Rb_tree(std::move(__x), std::move(__a), 19959: typename _Alloc_traits::is_always_equal{}) 19959: { } 19959: 19959: 19959: ~_Rb_tree() noexcept 19959: { _M_erase(_M_begin()); } 19959: 19959: _Rb_tree& 19959: operator=(const _Rb_tree& __x); 19959: 19959: 19959: _Compare 19959: key_comp() const 19959: { return _M_impl._M_key_compare; } 19959: 19959: iterator 19959: begin() noexcept 19959: { return iterator(this->_M_impl._M_header._M_left); } 19959: 19959: const_iterator 19959: begin() const noexcept 19959: { return const_iterator(this->_M_impl._M_header._M_left); } 19959: 19959: iterator 19959: end() noexcept 19959: { return iterator(&this->_M_impl._M_header); } 19959: 19959: const_iterator 19959: end() const noexcept 19959: { return const_iterator(&this->_M_impl._M_header); } 19959: 19959: reverse_iterator 19959: rbegin() noexcept 19959: { return reverse_iterator(end()); } 19959: 19959: const_reverse_iterator 19959: rbegin() const noexcept 19959: { return const_reverse_iterator(end()); } 19959: 19959: reverse_iterator 19959: rend() noexcept 19959: { return reverse_iterator(begin()); } 19959: 19959: const_reverse_iterator 19959: rend() const noexcept 19959: { return const_reverse_iterator(begin()); } 19959: 19959: [[__nodiscard__]] bool 19959: empty() const noexcept 19959: { return _M_impl._M_node_count == 0; } 19959: 19959: size_type 19959: size() const noexcept 19959: { return _M_impl._M_node_count; } 19959: 19959: size_type 19959: max_size() const noexcept 19959: { return _Alloc_traits::max_size(_M_get_Node_allocator()); } 19959: 19959: void 19959: swap(_Rb_tree& __t) 19959: noexcept(__is_nothrow_swappable<_Compare>::value); 19959: 19959: 19959: 19959: template 19959: pair 19959: _M_insert_unique(_Arg&& __x); 19959: 19959: template 19959: iterator 19959: _M_insert_equal(_Arg&& __x); 19959: 19959: template 19959: iterator 19959: _M_insert_unique_(const_iterator __pos, _Arg&& __x, _NodeGen&); 19959: 19959: template 19959: iterator 19959: _M_insert_unique_(const_iterator __pos, _Arg&& __x) 19959: { 19959: _Alloc_node __an(*this); 19959: return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); 19959: } 19959: 19959: template 19959: iterator 19959: _M_insert_equal_(const_iterator __pos, _Arg&& __x, _NodeGen&); 19959: 19959: template 19959: iterator 19959: _M_insert_equal_(const_iterator __pos, _Arg&& __x) 19959: { 19959: _Alloc_node __an(*this); 19959: return _M_insert_equal_(__pos, std::forward<_Arg>(__x), __an); 19959: } 19959: 19959: template 19959: pair 19959: _M_emplace_unique(_Args&&... __args); 19959: 19959: template 19959: iterator 19959: _M_emplace_equal(_Args&&... __args); 19959: 19959: template 19959: iterator 19959: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args); 19959: 19959: template 19959: iterator 19959: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args); 19959: 19959: template 19959: using __same_value_type 19959: = is_same::value_type>; 19959: 19959: template 19959: __enable_if_t<__same_value_type<_InputIterator>::value> 19959: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 19959: { 19959: _Alloc_node __an(*this); 19959: for (; __first != __last; ++__first) 19959: _M_insert_unique_(end(), *__first, __an); 19959: } 19959: 19959: template 19959: __enable_if_t::value> 19959: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 19959: { 19959: for (; __first != __last; ++__first) 19959: _M_emplace_unique(*__first); 19959: } 19959: 19959: template 19959: __enable_if_t<__same_value_type<_InputIterator>::value> 19959: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 19959: { 19959: _Alloc_node __an(*this); 19959: for (; __first != __last; ++__first) 19959: _M_insert_equal_(end(), *__first, __an); 19959: } 19959: 19959: template 19959: __enable_if_t::value> 19959: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 19959: { 19959: for (; __first != __last; ++__first) 19959: _M_emplace_equal(*__first); 19959: } 19959: # 1180 "/usr/include/c++/13/bits/stl_tree.h" 3 19959: private: 19959: void 19959: _M_erase_aux(const_iterator __position); 19959: 19959: void 19959: _M_erase_aux(const_iterator __first, const_iterator __last); 19959: 19959: public: 19959: 19959: 19959: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: iterator 19959: erase(const_iterator __position) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__position != end())) __builtin_unreachable(); } while (false); 19959: const_iterator __result = __position; 19959: ++__result; 19959: _M_erase_aux(__position); 19959: return __result._M_const_cast(); 19959: } 19959: 19959: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: iterator 19959: erase(iterator __position) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__position != end())) __builtin_unreachable(); } while (false); 19959: iterator __result = __position; 19959: ++__result; 19959: _M_erase_aux(__position); 19959: return __result; 19959: } 19959: # 1229 "/usr/include/c++/13/bits/stl_tree.h" 3 19959: size_type 19959: erase(const key_type& __x); 19959: 19959: 19959: 19959: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: iterator 19959: erase(const_iterator __first, const_iterator __last) 19959: { 19959: _M_erase_aux(__first, __last); 19959: return __last._M_const_cast(); 19959: } 19959: # 1252 "/usr/include/c++/13/bits/stl_tree.h" 3 19959: void 19959: clear() noexcept 19959: { 19959: _M_erase(_M_begin()); 19959: _M_impl._M_reset(); 19959: } 19959: 19959: 19959: iterator 19959: find(const key_type& __k); 19959: 19959: const_iterator 19959: find(const key_type& __k) const; 19959: 19959: size_type 19959: count(const key_type& __k) const; 19959: 19959: iterator 19959: lower_bound(const key_type& __k) 19959: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 19959: 19959: const_iterator 19959: lower_bound(const key_type& __k) const 19959: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 19959: 19959: iterator 19959: upper_bound(const key_type& __k) 19959: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 19959: 19959: const_iterator 19959: upper_bound(const key_type& __k) const 19959: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 19959: 19959: pair 19959: equal_range(const key_type& __k); 19959: 19959: pair 19959: equal_range(const key_type& __k) const; 19959: 19959: 19959: template> 19959: iterator 19959: _M_find_tr(const _Kt& __k) 19959: { 19959: const _Rb_tree* __const_this = this; 19959: return __const_this->_M_find_tr(__k)._M_const_cast(); 19959: } 19959: 19959: template> 19959: const_iterator 19959: _M_find_tr(const _Kt& __k) const 19959: { 19959: auto __j = _M_lower_bound_tr(__k); 19959: if (__j != end() && _M_impl._M_key_compare(__k, _S_key(__j._M_node))) 19959: __j = end(); 19959: return __j; 19959: } 19959: 19959: template> 19959: size_type 19959: _M_count_tr(const _Kt& __k) const 19959: { 19959: auto __p = _M_equal_range_tr(__k); 19959: return std::distance(__p.first, __p.second); 19959: } 19959: 19959: template> 19959: iterator 19959: _M_lower_bound_tr(const _Kt& __k) 19959: { 19959: const _Rb_tree* __const_this = this; 19959: return __const_this->_M_lower_bound_tr(__k)._M_const_cast(); 19959: } 19959: 19959: template> 19959: const_iterator 19959: _M_lower_bound_tr(const _Kt& __k) const 19959: { 19959: auto __x = _M_begin(); 19959: auto __y = _M_end(); 19959: while (__x != 0) 19959: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 19959: { 19959: __y = __x; 19959: __x = _S_left(__x); 19959: } 19959: else 19959: __x = _S_right(__x); 19959: return const_iterator(__y); 19959: } 19959: 19959: template> 19959: iterator 19959: _M_upper_bound_tr(const _Kt& __k) 19959: { 19959: const _Rb_tree* __const_this = this; 19959: return __const_this->_M_upper_bound_tr(__k)._M_const_cast(); 19959: } 19959: 19959: template> 19959: const_iterator 19959: _M_upper_bound_tr(const _Kt& __k) const 19959: { 19959: auto __x = _M_begin(); 19959: auto __y = _M_end(); 19959: while (__x != 0) 19959: if (_M_impl._M_key_compare(__k, _S_key(__x))) 19959: { 19959: __y = __x; 19959: __x = _S_left(__x); 19959: } 19959: else 19959: __x = _S_right(__x); 19959: return const_iterator(__y); 19959: } 19959: 19959: template> 19959: pair 19959: _M_equal_range_tr(const _Kt& __k) 19959: { 19959: const _Rb_tree* __const_this = this; 19959: auto __ret = __const_this->_M_equal_range_tr(__k); 19959: return { __ret.first._M_const_cast(), __ret.second._M_const_cast() }; 19959: } 19959: 19959: template> 19959: pair 19959: _M_equal_range_tr(const _Kt& __k) const 19959: { 19959: auto __low = _M_lower_bound_tr(__k); 19959: auto __high = __low; 19959: auto& __cmp = _M_impl._M_key_compare; 19959: while (__high != end() && !__cmp(__k, _S_key(__high._M_node))) 19959: ++__high; 19959: return { __low, __high }; 19959: } 19959: 19959: 19959: 19959: bool 19959: __rb_verify() const; 19959: 19959: 19959: _Rb_tree& 19959: operator=(_Rb_tree&&) 19959: noexcept(_Alloc_traits::_S_nothrow_move() 19959: && is_nothrow_move_assignable<_Compare>::value); 19959: 19959: template 19959: void 19959: _M_assign_unique(_Iterator, _Iterator); 19959: 19959: template 19959: void 19959: _M_assign_equal(_Iterator, _Iterator); 19959: 19959: private: 19959: 19959: void 19959: _M_move_data(_Rb_tree& __x, true_type) 19959: { _M_impl._M_move_data(__x._M_impl); } 19959: 19959: 19959: 19959: void 19959: _M_move_data(_Rb_tree&, false_type); 19959: 19959: 19959: void 19959: _M_move_assign(_Rb_tree&, true_type); 19959: 19959: 19959: 19959: void 19959: _M_move_assign(_Rb_tree&, false_type); 19959: 19959: 19959: 19959: public: 19959: 19959: insert_return_type 19959: _M_reinsert_node_unique(node_type&& __nh) 19959: { 19959: insert_return_type __ret; 19959: if (__nh.empty()) 19959: __ret.position = end(); 19959: else 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 19959: 19959: auto __res = _M_get_insert_unique_pos(__nh._M_key()); 19959: if (__res.second) 19959: { 19959: __ret.position 19959: = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 19959: __nh._M_ptr = nullptr; 19959: __ret.inserted = true; 19959: } 19959: else 19959: { 19959: __ret.node = std::move(__nh); 19959: __ret.position = iterator(__res.first); 19959: __ret.inserted = false; 19959: } 19959: } 19959: return __ret; 19959: } 19959: 19959: 19959: iterator 19959: _M_reinsert_node_equal(node_type&& __nh) 19959: { 19959: iterator __ret; 19959: if (__nh.empty()) 19959: __ret = end(); 19959: else 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 19959: auto __res = _M_get_insert_equal_pos(__nh._M_key()); 19959: if (__res.second) 19959: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 19959: else 19959: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 19959: __nh._M_ptr = nullptr; 19959: } 19959: return __ret; 19959: } 19959: 19959: 19959: iterator 19959: _M_reinsert_node_hint_unique(const_iterator __hint, node_type&& __nh) 19959: { 19959: iterator __ret; 19959: if (__nh.empty()) 19959: __ret = end(); 19959: else 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 19959: auto __res = _M_get_insert_hint_unique_pos(__hint, __nh._M_key()); 19959: if (__res.second) 19959: { 19959: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 19959: __nh._M_ptr = nullptr; 19959: } 19959: else 19959: __ret = iterator(__res.first); 19959: } 19959: return __ret; 19959: } 19959: 19959: 19959: iterator 19959: _M_reinsert_node_hint_equal(const_iterator __hint, node_type&& __nh) 19959: { 19959: iterator __ret; 19959: if (__nh.empty()) 19959: __ret = end(); 19959: else 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 19959: auto __res = _M_get_insert_hint_equal_pos(__hint, __nh._M_key()); 19959: if (__res.second) 19959: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 19959: else 19959: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 19959: __nh._M_ptr = nullptr; 19959: } 19959: return __ret; 19959: } 19959: 19959: 19959: node_type 19959: extract(const_iterator __pos) 19959: { 19959: auto __ptr = _Rb_tree_rebalance_for_erase( 19959: __pos._M_const_cast()._M_node, _M_impl._M_header); 19959: --_M_impl._M_node_count; 19959: return { static_cast<_Link_type>(__ptr), _M_get_Node_allocator() }; 19959: } 19959: 19959: 19959: node_type 19959: extract(const key_type& __k) 19959: { 19959: node_type __nh; 19959: auto __pos = find(__k); 19959: if (__pos != end()) 19959: __nh = extract(const_iterator(__pos)); 19959: return __nh; 19959: } 19959: 19959: template 19959: using _Compatible_tree 19959: = _Rb_tree<_Key, _Val, _KeyOfValue, _Compare2, _Alloc>; 19959: 19959: template 19959: friend struct _Rb_tree_merge_helper; 19959: 19959: 19959: template 19959: void 19959: _M_merge_unique(_Compatible_tree<_Compare2>& __src) noexcept 19959: { 19959: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 19959: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 19959: { 19959: auto __pos = __i++; 19959: auto __res = _M_get_insert_unique_pos(_KeyOfValue()(*__pos)); 19959: if (__res.second) 19959: { 19959: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 19959: auto __ptr = _Rb_tree_rebalance_for_erase( 19959: __pos._M_node, __src_impl._M_header); 19959: --__src_impl._M_node_count; 19959: _M_insert_node(__res.first, __res.second, 19959: static_cast<_Link_type>(__ptr)); 19959: } 19959: } 19959: } 19959: 19959: 19959: template 19959: void 19959: _M_merge_equal(_Compatible_tree<_Compare2>& __src) noexcept 19959: { 19959: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 19959: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 19959: { 19959: auto __pos = __i++; 19959: auto __res = _M_get_insert_equal_pos(_KeyOfValue()(*__pos)); 19959: if (__res.second) 19959: { 19959: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 19959: auto __ptr = _Rb_tree_rebalance_for_erase( 19959: __pos._M_node, __src_impl._M_header); 19959: --__src_impl._M_node_count; 19959: _M_insert_node(__res.first, __res.second, 19959: static_cast<_Link_type>(__ptr)); 19959: } 19959: } 19959: } 19959: 19959: 19959: friend bool 19959: operator==(const _Rb_tree& __x, const _Rb_tree& __y) 19959: { 19959: return __x.size() == __y.size() 19959: && std::equal(__x.begin(), __x.end(), __y.begin()); 19959: } 19959: # 1621 "/usr/include/c++/13/bits/stl_tree.h" 3 19959: friend bool 19959: operator<(const _Rb_tree& __x, const _Rb_tree& __y) 19959: { 19959: return std::lexicographical_compare(__x.begin(), __x.end(), 19959: __y.begin(), __y.end()); 19959: } 19959: 19959: 19959: private: 19959: 19959: 19959: struct _Auto_node 19959: { 19959: template 19959: _Auto_node(_Rb_tree& __t, _Args&&... __args) 19959: : _M_t(__t), 19959: _M_node(__t._M_create_node(std::forward<_Args>(__args)...)) 19959: { } 19959: 19959: ~_Auto_node() 19959: { 19959: if (_M_node) 19959: _M_t._M_drop_node(_M_node); 19959: } 19959: 19959: _Auto_node(_Auto_node&& __n) 19959: : _M_t(__n._M_t), _M_node(__n._M_node) 19959: { __n._M_node = nullptr; } 19959: 19959: const _Key& 19959: _M_key() const 19959: { return _S_key(_M_node); } 19959: 19959: iterator 19959: _M_insert(pair<_Base_ptr, _Base_ptr> __p) 19959: { 19959: auto __it = _M_t._M_insert_node(__p.first, __p.second, _M_node); 19959: _M_node = nullptr; 19959: return __it; 19959: } 19959: 19959: iterator 19959: _M_insert_equal_lower() 19959: { 19959: auto __it = _M_t._M_insert_equal_lower_node(_M_node); 19959: _M_node = nullptr; 19959: return __it; 19959: } 19959: 19959: _Rb_tree& _M_t; 19959: _Link_type _M_node; 19959: }; 19959: 19959: }; 19959: 19959: template 19959: inline void 19959: swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) 19959: { __x.swap(__y); } 19959: 19959: 19959: template 19959: void 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_move_data(_Rb_tree& __x, false_type) 19959: { 19959: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 19959: _M_move_data(__x, true_type()); 19959: else 19959: { 19959: constexpr bool __move = !__move_if_noexcept_cond::value; 19959: _Alloc_node __an(*this); 19959: _M_root() = _M_copy<__move>(__x, __an); 19959: if constexpr (__move) 19959: __x.clear(); 19959: } 19959: } 19959: 19959: template 19959: inline void 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_move_assign(_Rb_tree& __x, true_type) 19959: { 19959: clear(); 19959: if (__x._M_root() != nullptr) 19959: _M_move_data(__x, true_type()); 19959: std::__alloc_on_move(_M_get_Node_allocator(), 19959: __x._M_get_Node_allocator()); 19959: } 19959: 19959: template 19959: void 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_move_assign(_Rb_tree& __x, false_type) 19959: { 19959: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 19959: return _M_move_assign(__x, true_type{}); 19959: 19959: 19959: 19959: _Reuse_or_alloc_node __roan(*this); 19959: _M_impl._M_reset(); 19959: if (__x._M_root() != nullptr) 19959: { 19959: _M_root() = _M_copy<__as_rvalue>(__x, __roan); 19959: __x.clear(); 19959: } 19959: } 19959: 19959: template 19959: inline _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: operator=(_Rb_tree&& __x) 19959: noexcept(_Alloc_traits::_S_nothrow_move() 19959: && is_nothrow_move_assignable<_Compare>::value) 19959: { 19959: _M_impl._M_key_compare = std::move(__x._M_impl._M_key_compare); 19959: _M_move_assign(__x, __bool_constant<_Alloc_traits::_S_nothrow_move()>()); 19959: return *this; 19959: } 19959: 19959: template 19959: template 19959: void 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_assign_unique(_Iterator __first, _Iterator __last) 19959: { 19959: _Reuse_or_alloc_node __roan(*this); 19959: _M_impl._M_reset(); 19959: for (; __first != __last; ++__first) 19959: _M_insert_unique_(end(), *__first, __roan); 19959: } 19959: 19959: template 19959: template 19959: void 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_assign_equal(_Iterator __first, _Iterator __last) 19959: { 19959: _Reuse_or_alloc_node __roan(*this); 19959: _M_impl._M_reset(); 19959: for (; __first != __last; ++__first) 19959: _M_insert_equal_(end(), *__first, __roan); 19959: } 19959: 19959: 19959: template 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: operator=(const _Rb_tree& __x) 19959: { 19959: if (this != std::__addressof(__x)) 19959: { 19959: 19959: 19959: if (_Alloc_traits::_S_propagate_on_copy_assign()) 19959: { 19959: auto& __this_alloc = this->_M_get_Node_allocator(); 19959: auto& __that_alloc = __x._M_get_Node_allocator(); 19959: if (!_Alloc_traits::_S_always_equal() 19959: && __this_alloc != __that_alloc) 19959: { 19959: 19959: 19959: clear(); 19959: std::__alloc_on_copy(__this_alloc, __that_alloc); 19959: } 19959: } 19959: 19959: 19959: _Reuse_or_alloc_node __roan(*this); 19959: _M_impl._M_reset(); 19959: _M_impl._M_key_compare = __x._M_impl._M_key_compare; 19959: if (__x._M_root() != 0) 19959: _M_root() = _M_copy<__as_lvalue>(__x, __roan); 19959: } 19959: 19959: return *this; 19959: } 19959: 19959: template 19959: 19959: template 19959: 19959: 19959: 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_insert_(_Base_ptr __x, _Base_ptr __p, 19959: 19959: _Arg&& __v, 19959: 19959: 19959: 19959: _NodeGen& __node_gen) 19959: { 19959: bool __insert_left = (__x != 0 || __p == _M_end() 19959: || _M_impl._M_key_compare(_KeyOfValue()(__v), 19959: _S_key(__p))); 19959: 19959: _Link_type __z = __node_gen(std::forward<_Arg>(__v)); 19959: 19959: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 19959: this->_M_impl._M_header); 19959: ++_M_impl._M_node_count; 19959: return iterator(__z); 19959: } 19959: 19959: template 19959: 19959: template 19959: 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: 19959: _M_insert_lower(_Base_ptr __p, _Arg&& __v) 19959: 19959: 19959: 19959: { 19959: bool __insert_left = (__p == _M_end() 19959: || !_M_impl._M_key_compare(_S_key(__p), 19959: _KeyOfValue()(__v))); 19959: 19959: _Link_type __z = _M_create_node(std::forward<_Arg>(__v)); 19959: 19959: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 19959: this->_M_impl._M_header); 19959: ++_M_impl._M_node_count; 19959: return iterator(__z); 19959: } 19959: 19959: template 19959: 19959: template 19959: 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: 19959: _M_insert_equal_lower(_Arg&& __v) 19959: 19959: 19959: 19959: { 19959: _Link_type __x = _M_begin(); 19959: _Base_ptr __y = _M_end(); 19959: while (__x != 0) 19959: { 19959: __y = __x; 19959: __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? 19959: _S_left(__x) : _S_right(__x); 19959: } 19959: return _M_insert_lower(__y, std::forward<_Arg>(__v)); 19959: } 19959: 19959: template 19959: template 19959: typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type 19959: _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: 19959: _M_copy(_Link_type __x, _Base_ptr __p, _NodeGen& __node_gen) 19959: { 19959: 19959: _Link_type __top = _M_clone_node<_MoveValues>(__x, __node_gen); 19959: __top->_M_parent = __p; 19959: 19959: try 19959: { 19959: if (__x->_M_right) 19959: __top->_M_right = 19959: _M_copy<_MoveValues>(_S_right(__x), __top, __node_gen); 19959: __p = __top; 19959: __x = _S_left(__x); 19959: 19959: while (__x != 0) 19959: { 19959: _Link_type __y = _M_clone_node<_MoveValues>(__x, __node_gen); 19959: __p->_M_left = __y; 19959: __y->_M_parent = __p; 19959: if (__x->_M_right) 19959: __y->_M_right = _M_copy<_MoveValues>(_S_right(__x), 19959: __y, __node_gen); 19959: __p = __y; 19959: __x = _S_left(__x); 19959: } 19959: } 19959: catch(...) 19959: { 19959: _M_erase(__top); 19959: throw; 19959: } 19959: return __top; 19959: } 19959: 19959: template 19959: void 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_erase(_Link_type __x) 19959: { 19959: 19959: while (__x != 0) 19959: { 19959: _M_erase(_S_right(__x)); 19959: _Link_type __y = _S_left(__x); 19959: _M_drop_node(__x); 19959: __x = __y; 19959: } 19959: } 19959: 19959: template 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, 19959: _Compare, _Alloc>::iterator 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_lower_bound(_Link_type __x, _Base_ptr __y, 19959: const _Key& __k) 19959: { 19959: while (__x != 0) 19959: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 19959: __y = __x, __x = _S_left(__x); 19959: else 19959: __x = _S_right(__x); 19959: return iterator(__y); 19959: } 19959: 19959: template 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, 19959: _Compare, _Alloc>::const_iterator 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 19959: const _Key& __k) const 19959: { 19959: while (__x != 0) 19959: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 19959: __y = __x, __x = _S_left(__x); 19959: else 19959: __x = _S_right(__x); 19959: return const_iterator(__y); 19959: } 19959: 19959: template 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, 19959: _Compare, _Alloc>::iterator 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_upper_bound(_Link_type __x, _Base_ptr __y, 19959: const _Key& __k) 19959: { 19959: while (__x != 0) 19959: if (_M_impl._M_key_compare(__k, _S_key(__x))) 19959: __y = __x, __x = _S_left(__x); 19959: else 19959: __x = _S_right(__x); 19959: return iterator(__y); 19959: } 19959: 19959: template 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, 19959: _Compare, _Alloc>::const_iterator 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 19959: const _Key& __k) const 19959: { 19959: while (__x != 0) 19959: if (_M_impl._M_key_compare(__k, _S_key(__x))) 19959: __y = __x, __x = _S_left(__x); 19959: else 19959: __x = _S_right(__x); 19959: return const_iterator(__y); 19959: } 19959: 19959: template 19959: pair::iterator, 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, 19959: _Compare, _Alloc>::iterator> 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: equal_range(const _Key& __k) 19959: { 19959: _Link_type __x = _M_begin(); 19959: _Base_ptr __y = _M_end(); 19959: while (__x != 0) 19959: { 19959: if (_M_impl._M_key_compare(_S_key(__x), __k)) 19959: __x = _S_right(__x); 19959: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 19959: __y = __x, __x = _S_left(__x); 19959: else 19959: { 19959: _Link_type __xu(__x); 19959: _Base_ptr __yu(__y); 19959: __y = __x, __x = _S_left(__x); 19959: __xu = _S_right(__xu); 19959: return pair(_M_lower_bound(__x, __y, __k), 19959: _M_upper_bound(__xu, __yu, __k)); 19959: } 19959: } 19959: return pair(iterator(__y), 19959: iterator(__y)); 19959: } 19959: 19959: template 19959: pair::const_iterator, 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, 19959: _Compare, _Alloc>::const_iterator> 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: equal_range(const _Key& __k) const 19959: { 19959: _Const_Link_type __x = _M_begin(); 19959: _Const_Base_ptr __y = _M_end(); 19959: while (__x != 0) 19959: { 19959: if (_M_impl._M_key_compare(_S_key(__x), __k)) 19959: __x = _S_right(__x); 19959: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 19959: __y = __x, __x = _S_left(__x); 19959: else 19959: { 19959: _Const_Link_type __xu(__x); 19959: _Const_Base_ptr __yu(__y); 19959: __y = __x, __x = _S_left(__x); 19959: __xu = _S_right(__xu); 19959: return pair(_M_lower_bound(__x, __y, __k), 19959: _M_upper_bound(__xu, __yu, __k)); 19959: } 19959: } 19959: return pair(const_iterator(__y), 19959: const_iterator(__y)); 19959: } 19959: 19959: template 19959: void 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: swap(_Rb_tree& __t) 19959: noexcept(__is_nothrow_swappable<_Compare>::value) 19959: { 19959: if (_M_root() == 0) 19959: { 19959: if (__t._M_root() != 0) 19959: _M_impl._M_move_data(__t._M_impl); 19959: } 19959: else if (__t._M_root() == 0) 19959: __t._M_impl._M_move_data(_M_impl); 19959: else 19959: { 19959: std::swap(_M_root(),__t._M_root()); 19959: std::swap(_M_leftmost(),__t._M_leftmost()); 19959: std::swap(_M_rightmost(),__t._M_rightmost()); 19959: 19959: _M_root()->_M_parent = _M_end(); 19959: __t._M_root()->_M_parent = __t._M_end(); 19959: std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); 19959: } 19959: 19959: std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); 19959: 19959: _Alloc_traits::_S_on_swap(_M_get_Node_allocator(), 19959: __t._M_get_Node_allocator()); 19959: } 19959: 19959: template 19959: pair::_Base_ptr, 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, 19959: _Compare, _Alloc>::_Base_ptr> 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_get_insert_unique_pos(const key_type& __k) 19959: { 19959: typedef pair<_Base_ptr, _Base_ptr> _Res; 19959: _Link_type __x = _M_begin(); 19959: _Base_ptr __y = _M_end(); 19959: bool __comp = true; 19959: while (__x != 0) 19959: { 19959: __y = __x; 19959: __comp = _M_impl._M_key_compare(__k, _S_key(__x)); 19959: __x = __comp ? _S_left(__x) : _S_right(__x); 19959: } 19959: iterator __j = iterator(__y); 19959: if (__comp) 19959: { 19959: if (__j == begin()) 19959: return _Res(__x, __y); 19959: else 19959: --__j; 19959: } 19959: if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) 19959: return _Res(__x, __y); 19959: return _Res(__j._M_node, 0); 19959: } 19959: 19959: template 19959: pair::_Base_ptr, 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, 19959: _Compare, _Alloc>::_Base_ptr> 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_get_insert_equal_pos(const key_type& __k) 19959: { 19959: typedef pair<_Base_ptr, _Base_ptr> _Res; 19959: _Link_type __x = _M_begin(); 19959: _Base_ptr __y = _M_end(); 19959: while (__x != 0) 19959: { 19959: __y = __x; 19959: __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? 19959: _S_left(__x) : _S_right(__x); 19959: } 19959: return _Res(__x, __y); 19959: } 19959: 19959: template 19959: 19959: template 19959: 19959: pair::iterator, bool> 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: 19959: _M_insert_unique(_Arg&& __v) 19959: 19959: 19959: 19959: { 19959: typedef pair _Res; 19959: pair<_Base_ptr, _Base_ptr> __res 19959: = _M_get_insert_unique_pos(_KeyOfValue()(__v)); 19959: 19959: if (__res.second) 19959: { 19959: _Alloc_node __an(*this); 19959: return _Res(_M_insert_(__res.first, __res.second, 19959: std::forward<_Arg>(__v), __an), 19959: true); 19959: } 19959: 19959: return _Res(iterator(__res.first), false); 19959: } 19959: 19959: template 19959: 19959: template 19959: 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: 19959: _M_insert_equal(_Arg&& __v) 19959: 19959: 19959: 19959: { 19959: pair<_Base_ptr, _Base_ptr> __res 19959: = _M_get_insert_equal_pos(_KeyOfValue()(__v)); 19959: _Alloc_node __an(*this); 19959: return _M_insert_(__res.first, __res.second, 19959: std::forward<_Arg>(__v), __an); 19959: } 19959: 19959: template 19959: pair::_Base_ptr, 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, 19959: _Compare, _Alloc>::_Base_ptr> 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_get_insert_hint_unique_pos(const_iterator __position, 19959: const key_type& __k) 19959: { 19959: iterator __pos = __position._M_const_cast(); 19959: typedef pair<_Base_ptr, _Base_ptr> _Res; 19959: 19959: 19959: if (__pos._M_node == _M_end()) 19959: { 19959: if (size() > 0 19959: && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) 19959: return _Res(0, _M_rightmost()); 19959: else 19959: return _M_get_insert_unique_pos(__k); 19959: } 19959: else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) 19959: { 19959: 19959: iterator __before = __pos; 19959: if (__pos._M_node == _M_leftmost()) 19959: return _Res(_M_leftmost(), _M_leftmost()); 19959: else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) 19959: { 19959: if (_S_right(__before._M_node) == 0) 19959: return _Res(0, __before._M_node); 19959: else 19959: return _Res(__pos._M_node, __pos._M_node); 19959: } 19959: else 19959: return _M_get_insert_unique_pos(__k); 19959: } 19959: else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 19959: { 19959: 19959: iterator __after = __pos; 19959: if (__pos._M_node == _M_rightmost()) 19959: return _Res(0, _M_rightmost()); 19959: else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) 19959: { 19959: if (_S_right(__pos._M_node) == 0) 19959: return _Res(0, __pos._M_node); 19959: else 19959: return _Res(__after._M_node, __after._M_node); 19959: } 19959: else 19959: return _M_get_insert_unique_pos(__k); 19959: } 19959: else 19959: 19959: return _Res(__pos._M_node, 0); 19959: } 19959: 19959: template 19959: 19959: template 19959: 19959: 19959: 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_insert_unique_(const_iterator __position, 19959: 19959: _Arg&& __v, 19959: 19959: 19959: 19959: _NodeGen& __node_gen) 19959: { 19959: pair<_Base_ptr, _Base_ptr> __res 19959: = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); 19959: 19959: if (__res.second) 19959: return _M_insert_(__res.first, __res.second, 19959: std::forward<_Arg>(__v), 19959: __node_gen); 19959: return iterator(__res.first); 19959: } 19959: 19959: template 19959: pair::_Base_ptr, 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, 19959: _Compare, _Alloc>::_Base_ptr> 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) 19959: { 19959: iterator __pos = __position._M_const_cast(); 19959: typedef pair<_Base_ptr, _Base_ptr> _Res; 19959: 19959: 19959: if (__pos._M_node == _M_end()) 19959: { 19959: if (size() > 0 19959: && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) 19959: return _Res(0, _M_rightmost()); 19959: else 19959: return _M_get_insert_equal_pos(__k); 19959: } 19959: else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 19959: { 19959: 19959: iterator __before = __pos; 19959: if (__pos._M_node == _M_leftmost()) 19959: return _Res(_M_leftmost(), _M_leftmost()); 19959: else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) 19959: { 19959: if (_S_right(__before._M_node) == 0) 19959: return _Res(0, __before._M_node); 19959: else 19959: return _Res(__pos._M_node, __pos._M_node); 19959: } 19959: else 19959: return _M_get_insert_equal_pos(__k); 19959: } 19959: else 19959: { 19959: 19959: iterator __after = __pos; 19959: if (__pos._M_node == _M_rightmost()) 19959: return _Res(0, _M_rightmost()); 19959: else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) 19959: { 19959: if (_S_right(__pos._M_node) == 0) 19959: return _Res(0, __pos._M_node); 19959: else 19959: return _Res(__after._M_node, __after._M_node); 19959: } 19959: else 19959: return _Res(0, 0); 19959: } 19959: } 19959: 19959: template 19959: 19959: template 19959: 19959: 19959: 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_insert_equal_(const_iterator __position, 19959: 19959: _Arg&& __v, 19959: 19959: 19959: 19959: _NodeGen& __node_gen) 19959: { 19959: pair<_Base_ptr, _Base_ptr> __res 19959: = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); 19959: 19959: if (__res.second) 19959: return _M_insert_(__res.first, __res.second, 19959: std::forward<_Arg>(__v), 19959: __node_gen); 19959: 19959: return _M_insert_equal_lower(std::forward<_Arg>(__v)); 19959: } 19959: 19959: 19959: template 19959: auto 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_insert_node(_Base_ptr __x, _Base_ptr __p, _Link_type __z) 19959: -> iterator 19959: { 19959: bool __insert_left = (__x != 0 || __p == _M_end() 19959: || _M_impl._M_key_compare(_S_key(__z), 19959: _S_key(__p))); 19959: 19959: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 19959: this->_M_impl._M_header); 19959: ++_M_impl._M_node_count; 19959: return iterator(__z); 19959: } 19959: 19959: template 19959: auto 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_insert_lower_node(_Base_ptr __p, _Link_type __z) 19959: -> iterator 19959: { 19959: bool __insert_left = (__p == _M_end() 19959: || !_M_impl._M_key_compare(_S_key(__p), 19959: _S_key(__z))); 19959: 19959: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 19959: this->_M_impl._M_header); 19959: ++_M_impl._M_node_count; 19959: return iterator(__z); 19959: } 19959: 19959: template 19959: auto 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_insert_equal_lower_node(_Link_type __z) 19959: -> iterator 19959: { 19959: _Link_type __x = _M_begin(); 19959: _Base_ptr __y = _M_end(); 19959: while (__x != 0) 19959: { 19959: __y = __x; 19959: __x = !_M_impl._M_key_compare(_S_key(__x), _S_key(__z)) ? 19959: _S_left(__x) : _S_right(__x); 19959: } 19959: return _M_insert_lower_node(__y, __z); 19959: } 19959: 19959: template 19959: template 19959: auto 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_emplace_unique(_Args&&... __args) 19959: -> pair 19959: { 19959: _Auto_node __z(*this, std::forward<_Args>(__args)...); 19959: auto __res = _M_get_insert_unique_pos(__z._M_key()); 19959: if (__res.second) 19959: return {__z._M_insert(__res), true}; 19959: return {iterator(__res.first), false}; 19959: } 19959: 19959: template 19959: template 19959: auto 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_emplace_equal(_Args&&... __args) 19959: -> iterator 19959: { 19959: _Auto_node __z(*this, std::forward<_Args>(__args)...); 19959: auto __res = _M_get_insert_equal_pos(__z._M_key()); 19959: return __z._M_insert(__res); 19959: } 19959: 19959: template 19959: template 19959: auto 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args) 19959: -> iterator 19959: { 19959: _Auto_node __z(*this, std::forward<_Args>(__args)...); 19959: auto __res = _M_get_insert_hint_unique_pos(__pos, __z._M_key()); 19959: if (__res.second) 19959: return __z._M_insert(__res); 19959: return iterator(__res.first); 19959: } 19959: 19959: template 19959: template 19959: auto 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args) 19959: -> iterator 19959: { 19959: _Auto_node __z(*this, std::forward<_Args>(__args)...); 19959: auto __res = _M_get_insert_hint_equal_pos(__pos, __z._M_key()); 19959: if (__res.second) 19959: return __z._M_insert(__res); 19959: return __z._M_insert_equal_lower(); 19959: } 19959: 19959: 19959: 19959: template 19959: void 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_erase_aux(const_iterator __position) 19959: { 19959: _Link_type __y = 19959: static_cast<_Link_type>(_Rb_tree_rebalance_for_erase 19959: (const_cast<_Base_ptr>(__position._M_node), 19959: this->_M_impl._M_header)); 19959: _M_drop_node(__y); 19959: --_M_impl._M_node_count; 19959: } 19959: 19959: template 19959: void 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: _M_erase_aux(const_iterator __first, const_iterator __last) 19959: { 19959: if (__first == begin() && __last == end()) 19959: clear(); 19959: else 19959: while (__first != __last) 19959: _M_erase_aux(__first++); 19959: } 19959: 19959: template 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: erase(const _Key& __x) 19959: { 19959: pair __p = equal_range(__x); 19959: const size_type __old_size = size(); 19959: _M_erase_aux(__p.first, __p.second); 19959: return __old_size - size(); 19959: } 19959: 19959: template 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, 19959: _Compare, _Alloc>::iterator 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: find(const _Key& __k) 19959: { 19959: iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 19959: return (__j == end() 19959: || _M_impl._M_key_compare(__k, 19959: _S_key(__j._M_node))) ? end() : __j; 19959: } 19959: 19959: template 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, 19959: _Compare, _Alloc>::const_iterator 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: find(const _Key& __k) const 19959: { 19959: const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 19959: return (__j == end() 19959: || _M_impl._M_key_compare(__k, 19959: _S_key(__j._M_node))) ? end() : __j; 19959: } 19959: 19959: template 19959: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 19959: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 19959: count(const _Key& __k) const 19959: { 19959: pair __p = equal_range(__k); 19959: const size_type __n = std::distance(__p.first, __p.second); 19959: return __n; 19959: } 19959: 19959: __attribute__ ((__pure__)) unsigned int 19959: _Rb_tree_black_count(const _Rb_tree_node_base* __node, 19959: const _Rb_tree_node_base* __root) throw (); 19959: 19959: template 19959: bool 19959: _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const 19959: { 19959: if (_M_impl._M_node_count == 0 || begin() == end()) 19959: return _M_impl._M_node_count == 0 && begin() == end() 19959: && this->_M_impl._M_header._M_left == _M_end() 19959: && this->_M_impl._M_header._M_right == _M_end(); 19959: 19959: unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); 19959: for (const_iterator __it = begin(); __it != end(); ++__it) 19959: { 19959: _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); 19959: _Const_Link_type __L = _S_left(__x); 19959: _Const_Link_type __R = _S_right(__x); 19959: 19959: if (__x->_M_color == _S_red) 19959: if ((__L && __L->_M_color == _S_red) 19959: || (__R && __R->_M_color == _S_red)) 19959: return false; 19959: 19959: if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) 19959: return false; 19959: if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) 19959: return false; 19959: 19959: if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) 19959: return false; 19959: } 19959: 19959: if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) 19959: return false; 19959: if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) 19959: return false; 19959: return true; 19959: } 19959: 19959: 19959: 19959: template 19959: struct _Rb_tree_merge_helper<_Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>, 19959: _Cmp2> 19959: { 19959: private: 19959: friend class _Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>; 19959: 19959: static auto& 19959: _S_get_impl(_Rb_tree<_Key, _Val, _Sel, _Cmp2, _Alloc>& __tree) 19959: { return __tree._M_impl; } 19959: }; 19959: 19959: 19959: 19959: } 19959: # 63 "/usr/include/c++/13/map" 2 3 19959: # 1 "/usr/include/c++/13/bits/stl_map.h" 1 3 19959: # 66 "/usr/include/c++/13/bits/stl_map.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: class multimap; 19959: # 100 "/usr/include/c++/13/bits/stl_map.h" 3 19959: template , 19959: typename _Alloc = std::allocator > > 19959: class map 19959: { 19959: public: 19959: typedef _Key key_type; 19959: typedef _Tp mapped_type; 19959: typedef std::pair value_type; 19959: typedef _Compare key_compare; 19959: typedef _Alloc allocator_type; 19959: 19959: private: 19959: # 130 "/usr/include/c++/13/bits/stl_map.h" 3 19959: public: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: class value_compare 19959: : public std::binary_function 19959: { 19959: friend class map<_Key, _Tp, _Compare, _Alloc>; 19959: protected: 19959: _Compare comp; 19959: 19959: value_compare(_Compare __c) 19959: : comp(__c) { } 19959: 19959: public: 19959: bool operator()(const value_type& __x, const value_type& __y) const 19959: { return comp(__x.first, __y.first); } 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: private: 19959: 19959: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 19959: rebind::other _Pair_alloc_type; 19959: 19959: typedef _Rb_tree, 19959: key_compare, _Pair_alloc_type> _Rep_type; 19959: 19959: 19959: _Rep_type _M_t; 19959: 19959: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 19959: 19959: 19959: template> 19959: static constexpr bool __usable_key 19959: = __or_v, 19959: __and_, is_scalar<_Key>>>; 19959: 19959: 19959: public: 19959: 19959: 19959: typedef typename _Alloc_traits::pointer pointer; 19959: typedef typename _Alloc_traits::const_pointer const_pointer; 19959: typedef typename _Alloc_traits::reference reference; 19959: typedef typename _Alloc_traits::const_reference const_reference; 19959: typedef typename _Rep_type::iterator iterator; 19959: typedef typename _Rep_type::const_iterator const_iterator; 19959: typedef typename _Rep_type::size_type size_type; 19959: typedef typename _Rep_type::difference_type difference_type; 19959: typedef typename _Rep_type::reverse_iterator reverse_iterator; 19959: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 19959: 19959: 19959: using node_type = typename _Rep_type::node_type; 19959: using insert_return_type = typename _Rep_type::insert_return_type; 19959: # 197 "/usr/include/c++/13/bits/stl_map.h" 3 19959: map() = default; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: map(const _Compare& __comp, 19959: const allocator_type& __a = allocator_type()) 19959: : _M_t(__comp, _Pair_alloc_type(__a)) { } 19959: # 219 "/usr/include/c++/13/bits/stl_map.h" 3 19959: map(const map&) = default; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: map(map&&) = default; 19959: # 240 "/usr/include/c++/13/bits/stl_map.h" 3 19959: map(initializer_list __l, 19959: const _Compare& __comp = _Compare(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_t(__comp, _Pair_alloc_type(__a)) 19959: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 19959: 19959: 19959: explicit 19959: map(const allocator_type& __a) 19959: : _M_t(_Pair_alloc_type(__a)) { } 19959: 19959: 19959: map(const map& __m, const __type_identity_t& __a) 19959: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 19959: 19959: 19959: map(map&& __m, const __type_identity_t& __a) 19959: noexcept(is_nothrow_copy_constructible<_Compare>::value 19959: && _Alloc_traits::_S_always_equal()) 19959: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 19959: 19959: 19959: map(initializer_list __l, const allocator_type& __a) 19959: : _M_t(_Pair_alloc_type(__a)) 19959: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 19959: 19959: 19959: template 19959: map(_InputIterator __first, _InputIterator __last, 19959: const allocator_type& __a) 19959: : _M_t(_Pair_alloc_type(__a)) 19959: { _M_t._M_insert_range_unique(__first, __last); } 19959: # 284 "/usr/include/c++/13/bits/stl_map.h" 3 19959: template 19959: map(_InputIterator __first, _InputIterator __last) 19959: : _M_t() 19959: { _M_t._M_insert_range_unique(__first, __last); } 19959: # 301 "/usr/include/c++/13/bits/stl_map.h" 3 19959: template 19959: map(_InputIterator __first, _InputIterator __last, 19959: const _Compare& __comp, 19959: const allocator_type& __a = allocator_type()) 19959: : _M_t(__comp, _Pair_alloc_type(__a)) 19959: { _M_t._M_insert_range_unique(__first, __last); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ~map() = default; 19959: # 330 "/usr/include/c++/13/bits/stl_map.h" 3 19959: map& 19959: operator=(const map&) = default; 19959: 19959: 19959: map& 19959: operator=(map&&) = default; 19959: # 348 "/usr/include/c++/13/bits/stl_map.h" 3 19959: map& 19959: operator=(initializer_list __l) 19959: { 19959: _M_t._M_assign_unique(__l.begin(), __l.end()); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return allocator_type(_M_t.get_allocator()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: begin() noexcept 19959: { return _M_t.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: begin() const noexcept 19959: { return _M_t.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: end() noexcept 19959: { return _M_t.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: end() const noexcept 19959: { return _M_t.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: reverse_iterator 19959: rbegin() noexcept 19959: { return _M_t.rbegin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_reverse_iterator 19959: rbegin() const noexcept 19959: { return _M_t.rbegin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: reverse_iterator 19959: rend() noexcept 19959: { return _M_t.rend(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_reverse_iterator 19959: rend() const noexcept 19959: { return _M_t.rend(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: cbegin() const noexcept 19959: { return _M_t.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: cend() const noexcept 19959: { return _M_t.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_reverse_iterator 19959: crbegin() const noexcept 19959: { return _M_t.rbegin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_reverse_iterator 19959: crend() const noexcept 19959: { return _M_t.rend(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] bool 19959: empty() const noexcept 19959: { return _M_t.empty(); } 19959: 19959: 19959: size_type 19959: size() const noexcept 19959: { return _M_t.size(); } 19959: 19959: 19959: size_type 19959: max_size() const noexcept 19959: { return _M_t.max_size(); } 19959: # 503 "/usr/include/c++/13/bits/stl_map.h" 3 19959: mapped_type& 19959: operator[](const key_type& __k) 19959: { 19959: 19959: 19959: 19959: iterator __i = lower_bound(__k); 19959: 19959: if (__i == end() || key_comp()(__k, (*__i).first)) 19959: 19959: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 19959: std::tuple(__k), 19959: std::tuple<>()); 19959: 19959: 19959: 19959: return (*__i).second; 19959: } 19959: 19959: 19959: mapped_type& 19959: operator[](key_type&& __k) 19959: { 19959: 19959: 19959: 19959: iterator __i = lower_bound(__k); 19959: 19959: if (__i == end() || key_comp()(__k, (*__i).first)) 19959: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 19959: std::forward_as_tuple(std::move(__k)), 19959: std::tuple<>()); 19959: return (*__i).second; 19959: } 19959: # 548 "/usr/include/c++/13/bits/stl_map.h" 3 19959: mapped_type& 19959: at(const key_type& __k) 19959: { 19959: iterator __i = lower_bound(__k); 19959: if (__i == end() || key_comp()(__k, (*__i).first)) 19959: __throw_out_of_range(("map::at")); 19959: return (*__i).second; 19959: } 19959: 19959: const mapped_type& 19959: at(const key_type& __k) const 19959: { 19959: const_iterator __i = lower_bound(__k); 19959: if (__i == end() || key_comp()(__k, (*__i).first)) 19959: __throw_out_of_range(("map::at")); 19959: return (*__i).second; 19959: } 19959: # 586 "/usr/include/c++/13/bits/stl_map.h" 3 19959: template 19959: std::pair 19959: emplace(_Args&&... __args) 19959: { 19959: 19959: if constexpr (sizeof...(_Args) == 2) 19959: if constexpr (is_same_v>) 19959: { 19959: auto&& [__a, __v] = pair<_Args&...>(__args...); 19959: if constexpr (__usable_key) 19959: { 19959: const key_type& __k = __a; 19959: iterator __i = lower_bound(__k); 19959: if (__i == end() || key_comp()(__k, (*__i).first)) 19959: { 19959: __i = emplace_hint(__i, std::forward<_Args>(__args)...); 19959: return {__i, true}; 19959: } 19959: return {__i, false}; 19959: } 19959: } 19959: 19959: return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); 19959: } 19959: # 636 "/usr/include/c++/13/bits/stl_map.h" 3 19959: template 19959: iterator 19959: emplace_hint(const_iterator __pos, _Args&&... __args) 19959: { 19959: return _M_t._M_emplace_hint_unique(__pos, 19959: std::forward<_Args>(__args)...); 19959: } 19959: 19959: 19959: 19959: 19959: node_type 19959: extract(const_iterator __pos) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 19959: return _M_t.extract(__pos); 19959: } 19959: 19959: 19959: node_type 19959: extract(const key_type& __x) 19959: { return _M_t.extract(__x); } 19959: 19959: 19959: insert_return_type 19959: insert(node_type&& __nh) 19959: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 19959: 19959: 19959: iterator 19959: insert(const_iterator __hint, node_type&& __nh) 19959: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 19959: 19959: template 19959: friend struct std::_Rb_tree_merge_helper; 19959: 19959: template 19959: void 19959: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 19959: { 19959: using _Merge_helper = _Rb_tree_merge_helper; 19959: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 19959: { merge(__source); } 19959: 19959: template 19959: void 19959: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 19959: { 19959: using _Merge_helper = _Rb_tree_merge_helper; 19959: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 19959: { merge(__source); } 19959: # 721 "/usr/include/c++/13/bits/stl_map.h" 3 19959: template 19959: pair 19959: try_emplace(const key_type& __k, _Args&&... __args) 19959: { 19959: iterator __i = lower_bound(__k); 19959: if (__i == end() || key_comp()(__k, (*__i).first)) 19959: { 19959: __i = emplace_hint(__i, std::piecewise_construct, 19959: std::forward_as_tuple(__k), 19959: std::forward_as_tuple( 19959: std::forward<_Args>(__args)...)); 19959: return {__i, true}; 19959: } 19959: return {__i, false}; 19959: } 19959: 19959: 19959: template 19959: pair 19959: try_emplace(key_type&& __k, _Args&&... __args) 19959: { 19959: iterator __i = lower_bound(__k); 19959: if (__i == end() || key_comp()(__k, (*__i).first)) 19959: { 19959: __i = emplace_hint(__i, std::piecewise_construct, 19959: std::forward_as_tuple(std::move(__k)), 19959: std::forward_as_tuple( 19959: std::forward<_Args>(__args)...)); 19959: return {__i, true}; 19959: } 19959: return {__i, false}; 19959: } 19959: # 781 "/usr/include/c++/13/bits/stl_map.h" 3 19959: template 19959: iterator 19959: try_emplace(const_iterator __hint, const key_type& __k, 19959: _Args&&... __args) 19959: { 19959: iterator __i; 19959: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 19959: if (__true_hint.second) 19959: __i = emplace_hint(iterator(__true_hint.second), 19959: std::piecewise_construct, 19959: std::forward_as_tuple(__k), 19959: std::forward_as_tuple( 19959: std::forward<_Args>(__args)...)); 19959: else 19959: __i = iterator(__true_hint.first); 19959: return __i; 19959: } 19959: 19959: 19959: template 19959: iterator 19959: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 19959: { 19959: iterator __i; 19959: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 19959: if (__true_hint.second) 19959: __i = emplace_hint(iterator(__true_hint.second), 19959: std::piecewise_construct, 19959: std::forward_as_tuple(std::move(__k)), 19959: std::forward_as_tuple( 19959: std::forward<_Args>(__args)...)); 19959: else 19959: __i = iterator(__true_hint.first); 19959: return __i; 19959: } 19959: # 834 "/usr/include/c++/13/bits/stl_map.h" 3 19959: std::pair 19959: insert(const value_type& __x) 19959: { return _M_t._M_insert_unique(__x); } 19959: 19959: 19959: 19959: 19959: std::pair 19959: insert(value_type&& __x) 19959: { return _M_t._M_insert_unique(std::move(__x)); } 19959: 19959: template 19959: __enable_if_t::value, 19959: pair> 19959: insert(_Pair&& __x) 19959: { 19959: 19959: using _P2 = remove_reference_t<_Pair>; 19959: if constexpr (__is_pair>) 19959: if constexpr (is_same_v>) 19959: if constexpr (__usable_key) 19959: { 19959: const key_type& __k = __x.first; 19959: iterator __i = lower_bound(__k); 19959: if (__i == end() || key_comp()(__k, (*__i).first)) 19959: { 19959: __i = emplace_hint(__i, std::forward<_Pair>(__x)); 19959: return {__i, true}; 19959: } 19959: return {__i, false}; 19959: } 19959: 19959: return _M_t._M_emplace_unique(std::forward<_Pair>(__x)); 19959: } 19959: # 879 "/usr/include/c++/13/bits/stl_map.h" 3 19959: void 19959: insert(std::initializer_list __list) 19959: { insert(__list.begin(), __list.end()); } 19959: # 908 "/usr/include/c++/13/bits/stl_map.h" 3 19959: iterator 19959: 19959: insert(const_iterator __position, const value_type& __x) 19959: 19959: 19959: 19959: { return _M_t._M_insert_unique_(__position, __x); } 19959: 19959: 19959: 19959: 19959: iterator 19959: insert(const_iterator __position, value_type&& __x) 19959: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 19959: 19959: template 19959: __enable_if_t::value, iterator> 19959: insert(const_iterator __position, _Pair&& __x) 19959: { 19959: return _M_t._M_emplace_hint_unique(__position, 19959: std::forward<_Pair>(__x)); 19959: } 19959: # 941 "/usr/include/c++/13/bits/stl_map.h" 3 19959: template 19959: void 19959: insert(_InputIterator __first, _InputIterator __last) 19959: { _M_t._M_insert_range_unique(__first, __last); } 19959: # 966 "/usr/include/c++/13/bits/stl_map.h" 3 19959: template 19959: pair 19959: insert_or_assign(const key_type& __k, _Obj&& __obj) 19959: { 19959: iterator __i = lower_bound(__k); 19959: if (__i == end() || key_comp()(__k, (*__i).first)) 19959: { 19959: __i = emplace_hint(__i, std::piecewise_construct, 19959: std::forward_as_tuple(__k), 19959: std::forward_as_tuple( 19959: std::forward<_Obj>(__obj))); 19959: return {__i, true}; 19959: } 19959: (*__i).second = std::forward<_Obj>(__obj); 19959: return {__i, false}; 19959: } 19959: 19959: 19959: template 19959: pair 19959: insert_or_assign(key_type&& __k, _Obj&& __obj) 19959: { 19959: iterator __i = lower_bound(__k); 19959: if (__i == end() || key_comp()(__k, (*__i).first)) 19959: { 19959: __i = emplace_hint(__i, std::piecewise_construct, 19959: std::forward_as_tuple(std::move(__k)), 19959: std::forward_as_tuple( 19959: std::forward<_Obj>(__obj))); 19959: return {__i, true}; 19959: } 19959: (*__i).second = std::forward<_Obj>(__obj); 19959: return {__i, false}; 19959: } 19959: # 1021 "/usr/include/c++/13/bits/stl_map.h" 3 19959: template 19959: iterator 19959: insert_or_assign(const_iterator __hint, 19959: const key_type& __k, _Obj&& __obj) 19959: { 19959: iterator __i; 19959: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 19959: if (__true_hint.second) 19959: { 19959: return emplace_hint(iterator(__true_hint.second), 19959: std::piecewise_construct, 19959: std::forward_as_tuple(__k), 19959: std::forward_as_tuple( 19959: std::forward<_Obj>(__obj))); 19959: } 19959: __i = iterator(__true_hint.first); 19959: (*__i).second = std::forward<_Obj>(__obj); 19959: return __i; 19959: } 19959: 19959: 19959: template 19959: iterator 19959: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 19959: { 19959: iterator __i; 19959: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 19959: if (__true_hint.second) 19959: { 19959: return emplace_hint(iterator(__true_hint.second), 19959: std::piecewise_construct, 19959: std::forward_as_tuple(std::move(__k)), 19959: std::forward_as_tuple( 19959: std::forward<_Obj>(__obj))); 19959: } 19959: __i = iterator(__true_hint.first); 19959: (*__i).second = std::forward<_Obj>(__obj); 19959: return __i; 19959: } 19959: # 1080 "/usr/include/c++/13/bits/stl_map.h" 3 19959: iterator 19959: erase(const_iterator __position) 19959: { return _M_t.erase(__position); } 19959: 19959: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: iterator 19959: erase(iterator __position) 19959: { return _M_t.erase(__position); } 19959: # 1117 "/usr/include/c++/13/bits/stl_map.h" 3 19959: size_type 19959: erase(const key_type& __x) 19959: { return _M_t.erase(__x); } 19959: # 1137 "/usr/include/c++/13/bits/stl_map.h" 3 19959: iterator 19959: erase(const_iterator __first, const_iterator __last) 19959: { return _M_t.erase(__first, __last); } 19959: # 1171 "/usr/include/c++/13/bits/stl_map.h" 3 19959: void 19959: swap(map& __x) 19959: noexcept(__is_nothrow_swappable<_Compare>::value) 19959: { _M_t.swap(__x._M_t); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: clear() noexcept 19959: { _M_t.clear(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: key_compare 19959: key_comp() const 19959: { return _M_t.key_comp(); } 19959: 19959: 19959: 19959: 19959: 19959: value_compare 19959: value_comp() const 19959: { return value_compare(_M_t.key_comp()); } 19959: # 1218 "/usr/include/c++/13/bits/stl_map.h" 3 19959: iterator 19959: find(const key_type& __x) 19959: { return _M_t.find(__x); } 19959: 19959: 19959: template 19959: auto 19959: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 19959: { return _M_t._M_find_tr(__x); } 19959: # 1243 "/usr/include/c++/13/bits/stl_map.h" 3 19959: const_iterator 19959: find(const key_type& __x) const 19959: { return _M_t.find(__x); } 19959: 19959: 19959: template 19959: auto 19959: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 19959: { return _M_t._M_find_tr(__x); } 19959: # 1264 "/usr/include/c++/13/bits/stl_map.h" 3 19959: size_type 19959: count(const key_type& __x) const 19959: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 19959: 19959: 19959: template 19959: auto 19959: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 19959: { return _M_t._M_count_tr(__x); } 19959: # 1307 "/usr/include/c++/13/bits/stl_map.h" 3 19959: iterator 19959: lower_bound(const key_type& __x) 19959: { return _M_t.lower_bound(__x); } 19959: 19959: 19959: template 19959: auto 19959: lower_bound(const _Kt& __x) 19959: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 19959: { return iterator(_M_t._M_lower_bound_tr(__x)); } 19959: # 1332 "/usr/include/c++/13/bits/stl_map.h" 3 19959: const_iterator 19959: lower_bound(const key_type& __x) const 19959: { return _M_t.lower_bound(__x); } 19959: 19959: 19959: template 19959: auto 19959: lower_bound(const _Kt& __x) const 19959: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 19959: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 19959: # 1352 "/usr/include/c++/13/bits/stl_map.h" 3 19959: iterator 19959: upper_bound(const key_type& __x) 19959: { return _M_t.upper_bound(__x); } 19959: 19959: 19959: template 19959: auto 19959: upper_bound(const _Kt& __x) 19959: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 19959: { return iterator(_M_t._M_upper_bound_tr(__x)); } 19959: # 1372 "/usr/include/c++/13/bits/stl_map.h" 3 19959: const_iterator 19959: upper_bound(const key_type& __x) const 19959: { return _M_t.upper_bound(__x); } 19959: 19959: 19959: template 19959: auto 19959: upper_bound(const _Kt& __x) const 19959: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 19959: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 19959: # 1401 "/usr/include/c++/13/bits/stl_map.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) 19959: { return _M_t.equal_range(__x); } 19959: 19959: 19959: template 19959: auto 19959: equal_range(const _Kt& __x) 19959: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 19959: { return pair(_M_t._M_equal_range_tr(__x)); } 19959: # 1430 "/usr/include/c++/13/bits/stl_map.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) const 19959: { return _M_t.equal_range(__x); } 19959: 19959: 19959: template 19959: auto 19959: equal_range(const _Kt& __x) const 19959: -> decltype(pair( 19959: _M_t._M_equal_range_tr(__x))) 19959: { 19959: return pair( 19959: _M_t._M_equal_range_tr(__x)); 19959: } 19959: 19959: 19959: 19959: template 19959: friend bool 19959: operator==(const map<_K1, _T1, _C1, _A1>&, 19959: const map<_K1, _T1, _C1, _A1>&); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: friend bool 19959: operator<(const map<_K1, _T1, _C1, _A1>&, 19959: const map<_K1, _T1, _C1, _A1>&); 19959: 19959: }; 19959: 19959: 19959: 19959: 19959: template>, 19959: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 19959: typename = _RequireInputIter<_InputIterator>, 19959: typename = _RequireNotAllocator<_Compare>, 19959: typename = _RequireAllocator<_Allocator>> 19959: map(_InputIterator, _InputIterator, 19959: _Compare = _Compare(), _Allocator = _Allocator()) 19959: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 19959: _Compare, _Allocator>; 19959: 19959: template, 19959: typename _Allocator = allocator>, 19959: typename = _RequireNotAllocator<_Compare>, 19959: typename = _RequireAllocator<_Allocator>> 19959: map(initializer_list>, 19959: _Compare = _Compare(), _Allocator = _Allocator()) 19959: -> map<_Key, _Tp, _Compare, _Allocator>; 19959: 19959: template , 19959: typename = _RequireAllocator<_Allocator>> 19959: map(_InputIterator, _InputIterator, _Allocator) 19959: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 19959: less<__iter_key_t<_InputIterator>>, _Allocator>; 19959: 19959: template> 19959: map(initializer_list>, _Allocator) 19959: -> map<_Key, _Tp, less<_Key>, _Allocator>; 19959: # 1511 "/usr/include/c++/13/bits/stl_map.h" 3 19959: template 19959: inline bool 19959: operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, 19959: const map<_Key, _Tp, _Compare, _Alloc>& __y) 19959: { return __x._M_t == __y._M_t; } 19959: # 1549 "/usr/include/c++/13/bits/stl_map.h" 3 19959: template 19959: inline bool 19959: operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, 19959: const map<_Key, _Tp, _Compare, _Alloc>& __y) 19959: { return __x._M_t < __y._M_t; } 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 19959: const map<_Key, _Tp, _Compare, _Alloc>& __y) 19959: { return !(__x == __y); } 19959: 19959: 19959: template 19959: inline bool 19959: operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, 19959: const map<_Key, _Tp, _Compare, _Alloc>& __y) 19959: { return __y < __x; } 19959: 19959: 19959: template 19959: inline bool 19959: operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 19959: const map<_Key, _Tp, _Compare, _Alloc>& __y) 19959: { return !(__y < __x); } 19959: 19959: 19959: template 19959: inline bool 19959: operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 19959: const map<_Key, _Tp, _Compare, _Alloc>& __y) 19959: { return !(__x < __y); } 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(map<_Key, _Tp, _Compare, _Alloc>& __x, 19959: map<_Key, _Tp, _Compare, _Alloc>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct 19959: _Rb_tree_merge_helper, 19959: _Cmp2> 19959: { 19959: private: 19959: friend class std::map<_Key, _Val, _Cmp1, _Alloc>; 19959: 19959: static auto& 19959: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 19959: { return __map._M_t; } 19959: 19959: static auto& 19959: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 19959: { return __map._M_t; } 19959: }; 19959: 19959: 19959: 19959: } 19959: # 64 "/usr/include/c++/13/map" 2 3 19959: # 1 "/usr/include/c++/13/bits/stl_multimap.h" 1 3 19959: # 64 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: class map; 19959: # 98 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: template , 19959: typename _Alloc = std::allocator > > 19959: class multimap 19959: { 19959: public: 19959: typedef _Key key_type; 19959: typedef _Tp mapped_type; 19959: typedef std::pair value_type; 19959: typedef _Compare key_compare; 19959: typedef _Alloc allocator_type; 19959: 19959: private: 19959: # 129 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: public: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: class value_compare 19959: : public std::binary_function 19959: { 19959: friend class multimap<_Key, _Tp, _Compare, _Alloc>; 19959: protected: 19959: _Compare comp; 19959: 19959: value_compare(_Compare __c) 19959: : comp(__c) { } 19959: 19959: public: 19959: bool operator()(const value_type& __x, const value_type& __y) const 19959: { return comp(__x.first, __y.first); } 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: private: 19959: 19959: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 19959: rebind::other _Pair_alloc_type; 19959: 19959: typedef _Rb_tree, 19959: key_compare, _Pair_alloc_type> _Rep_type; 19959: 19959: _Rep_type _M_t; 19959: 19959: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 19959: 19959: public: 19959: 19959: 19959: typedef typename _Alloc_traits::pointer pointer; 19959: typedef typename _Alloc_traits::const_pointer const_pointer; 19959: typedef typename _Alloc_traits::reference reference; 19959: typedef typename _Alloc_traits::const_reference const_reference; 19959: typedef typename _Rep_type::iterator iterator; 19959: typedef typename _Rep_type::const_iterator const_iterator; 19959: typedef typename _Rep_type::size_type size_type; 19959: typedef typename _Rep_type::difference_type difference_type; 19959: typedef typename _Rep_type::reverse_iterator reverse_iterator; 19959: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 19959: 19959: 19959: using node_type = typename _Rep_type::node_type; 19959: # 187 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: multimap() = default; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: multimap(const _Compare& __comp, 19959: const allocator_type& __a = allocator_type()) 19959: : _M_t(__comp, _Pair_alloc_type(__a)) { } 19959: # 209 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: multimap(const multimap&) = default; 19959: # 218 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: multimap(multimap&&) = default; 19959: # 230 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: multimap(initializer_list __l, 19959: const _Compare& __comp = _Compare(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_t(__comp, _Pair_alloc_type(__a)) 19959: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 19959: 19959: 19959: explicit 19959: multimap(const allocator_type& __a) 19959: : _M_t(_Pair_alloc_type(__a)) { } 19959: 19959: 19959: multimap(const multimap& __m, 19959: const __type_identity_t& __a) 19959: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 19959: 19959: 19959: multimap(multimap&& __m, const __type_identity_t& __a) 19959: noexcept(is_nothrow_copy_constructible<_Compare>::value 19959: && _Alloc_traits::_S_always_equal()) 19959: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 19959: 19959: 19959: multimap(initializer_list __l, const allocator_type& __a) 19959: : _M_t(_Pair_alloc_type(__a)) 19959: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 19959: 19959: 19959: template 19959: multimap(_InputIterator __first, _InputIterator __last, 19959: const allocator_type& __a) 19959: : _M_t(_Pair_alloc_type(__a)) 19959: { _M_t._M_insert_range_equal(__first, __last); } 19959: # 274 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: template 19959: multimap(_InputIterator __first, _InputIterator __last) 19959: : _M_t() 19959: { _M_t._M_insert_range_equal(__first, __last); } 19959: # 290 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: template 19959: multimap(_InputIterator __first, _InputIterator __last, 19959: const _Compare& __comp, 19959: const allocator_type& __a = allocator_type()) 19959: : _M_t(__comp, _Pair_alloc_type(__a)) 19959: { _M_t._M_insert_range_equal(__first, __last); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ~multimap() = default; 19959: # 319 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: multimap& 19959: operator=(const multimap&) = default; 19959: 19959: 19959: multimap& 19959: operator=(multimap&&) = default; 19959: # 337 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: multimap& 19959: operator=(initializer_list __l) 19959: { 19959: _M_t._M_assign_equal(__l.begin(), __l.end()); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return allocator_type(_M_t.get_allocator()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: begin() noexcept 19959: { return _M_t.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: begin() const noexcept 19959: { return _M_t.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: end() noexcept 19959: { return _M_t.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: end() const noexcept 19959: { return _M_t.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: reverse_iterator 19959: rbegin() noexcept 19959: { return _M_t.rbegin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_reverse_iterator 19959: rbegin() const noexcept 19959: { return _M_t.rbegin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: reverse_iterator 19959: rend() noexcept 19959: { return _M_t.rend(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_reverse_iterator 19959: rend() const noexcept 19959: { return _M_t.rend(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: cbegin() const noexcept 19959: { return _M_t.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_iterator 19959: cend() const noexcept 19959: { return _M_t.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_reverse_iterator 19959: crbegin() const noexcept 19959: { return _M_t.rbegin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const_reverse_iterator 19959: crend() const noexcept 19959: { return _M_t.rend(); } 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] bool 19959: empty() const noexcept 19959: { return _M_t.empty(); } 19959: 19959: 19959: size_type 19959: size() const noexcept 19959: { return _M_t.size(); } 19959: 19959: 19959: size_type 19959: max_size() const noexcept 19959: { return _M_t.max_size(); } 19959: # 495 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: template 19959: iterator 19959: emplace(_Args&&... __args) 19959: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 19959: # 522 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: template 19959: iterator 19959: emplace_hint(const_iterator __pos, _Args&&... __args) 19959: { 19959: return _M_t._M_emplace_hint_equal(__pos, 19959: std::forward<_Args>(__args)...); 19959: } 19959: # 544 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: iterator 19959: insert(const value_type& __x) 19959: { return _M_t._M_insert_equal(__x); } 19959: 19959: 19959: 19959: 19959: iterator 19959: insert(value_type&& __x) 19959: { return _M_t._M_insert_equal(std::move(__x)); } 19959: 19959: template 19959: __enable_if_t::value, iterator> 19959: insert(_Pair&& __x) 19959: { return _M_t._M_emplace_equal(std::forward<_Pair>(__x)); } 19959: # 583 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: iterator 19959: 19959: insert(const_iterator __position, const value_type& __x) 19959: 19959: 19959: 19959: { return _M_t._M_insert_equal_(__position, __x); } 19959: 19959: 19959: 19959: 19959: iterator 19959: insert(const_iterator __position, value_type&& __x) 19959: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 19959: 19959: template 19959: __enable_if_t::value, iterator> 19959: insert(const_iterator __position, _Pair&& __x) 19959: { 19959: return _M_t._M_emplace_hint_equal(__position, 19959: std::forward<_Pair>(__x)); 19959: } 19959: # 617 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: template 19959: void 19959: insert(_InputIterator __first, _InputIterator __last) 19959: { _M_t._M_insert_range_equal(__first, __last); } 19959: # 630 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: void 19959: insert(initializer_list __l) 19959: { this->insert(__l.begin(), __l.end()); } 19959: 19959: 19959: 19959: 19959: node_type 19959: extract(const_iterator __pos) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 19959: return _M_t.extract(__pos); 19959: } 19959: 19959: 19959: node_type 19959: extract(const key_type& __x) 19959: { return _M_t.extract(__x); } 19959: 19959: 19959: iterator 19959: insert(node_type&& __nh) 19959: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 19959: 19959: 19959: iterator 19959: insert(const_iterator __hint, node_type&& __nh) 19959: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 19959: 19959: template 19959: friend struct std::_Rb_tree_merge_helper; 19959: 19959: template 19959: void 19959: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 19959: { 19959: using _Merge_helper = _Rb_tree_merge_helper; 19959: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 19959: { merge(__source); } 19959: 19959: template 19959: void 19959: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 19959: { 19959: using _Merge_helper = _Rb_tree_merge_helper; 19959: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 19959: { merge(__source); } 19959: # 707 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: iterator 19959: erase(const_iterator __position) 19959: { return _M_t.erase(__position); } 19959: 19959: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: iterator 19959: erase(iterator __position) 19959: { return _M_t.erase(__position); } 19959: # 744 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: size_type 19959: erase(const key_type& __x) 19959: { return _M_t.erase(__x); } 19959: # 765 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: iterator 19959: erase(const_iterator __first, const_iterator __last) 19959: { return _M_t.erase(__first, __last); } 19959: # 802 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: void 19959: swap(multimap& __x) 19959: noexcept(__is_nothrow_swappable<_Compare>::value) 19959: { _M_t.swap(__x._M_t); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: clear() noexcept 19959: { _M_t.clear(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: key_compare 19959: key_comp() const 19959: { return _M_t.key_comp(); } 19959: 19959: 19959: 19959: 19959: 19959: value_compare 19959: value_comp() const 19959: { return value_compare(_M_t.key_comp()); } 19959: # 848 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: iterator 19959: find(const key_type& __x) 19959: { return _M_t.find(__x); } 19959: 19959: 19959: template 19959: auto 19959: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 19959: { return _M_t._M_find_tr(__x); } 19959: # 872 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: const_iterator 19959: find(const key_type& __x) const 19959: { return _M_t.find(__x); } 19959: 19959: 19959: template 19959: auto 19959: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 19959: { return _M_t._M_find_tr(__x); } 19959: # 890 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: size_type 19959: count(const key_type& __x) const 19959: { return _M_t.count(__x); } 19959: 19959: 19959: template 19959: auto 19959: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 19959: { return _M_t._M_count_tr(__x); } 19959: # 933 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: iterator 19959: lower_bound(const key_type& __x) 19959: { return _M_t.lower_bound(__x); } 19959: 19959: 19959: template 19959: auto 19959: lower_bound(const _Kt& __x) 19959: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 19959: { return iterator(_M_t._M_lower_bound_tr(__x)); } 19959: # 958 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: const_iterator 19959: lower_bound(const key_type& __x) const 19959: { return _M_t.lower_bound(__x); } 19959: 19959: 19959: template 19959: auto 19959: lower_bound(const _Kt& __x) const 19959: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 19959: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 19959: # 978 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: iterator 19959: upper_bound(const key_type& __x) 19959: { return _M_t.upper_bound(__x); } 19959: 19959: 19959: template 19959: auto 19959: upper_bound(const _Kt& __x) 19959: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 19959: { return iterator(_M_t._M_upper_bound_tr(__x)); } 19959: # 998 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: const_iterator 19959: upper_bound(const key_type& __x) const 19959: { return _M_t.upper_bound(__x); } 19959: 19959: 19959: template 19959: auto 19959: upper_bound(const _Kt& __x) const 19959: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 19959: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 19959: # 1025 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) 19959: { return _M_t.equal_range(__x); } 19959: 19959: 19959: template 19959: auto 19959: equal_range(const _Kt& __x) 19959: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 19959: { return pair(_M_t._M_equal_range_tr(__x)); } 19959: # 1052 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) const 19959: { return _M_t.equal_range(__x); } 19959: 19959: 19959: template 19959: auto 19959: equal_range(const _Kt& __x) const 19959: -> decltype(pair( 19959: _M_t._M_equal_range_tr(__x))) 19959: { 19959: return pair( 19959: _M_t._M_equal_range_tr(__x)); 19959: } 19959: 19959: 19959: 19959: template 19959: friend bool 19959: operator==(const multimap<_K1, _T1, _C1, _A1>&, 19959: const multimap<_K1, _T1, _C1, _A1>&); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: friend bool 19959: operator<(const multimap<_K1, _T1, _C1, _A1>&, 19959: const multimap<_K1, _T1, _C1, _A1>&); 19959: 19959: }; 19959: 19959: 19959: 19959: template>, 19959: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 19959: typename = _RequireInputIter<_InputIterator>, 19959: typename = _RequireNotAllocator<_Compare>, 19959: typename = _RequireAllocator<_Allocator>> 19959: multimap(_InputIterator, _InputIterator, 19959: _Compare = _Compare(), _Allocator = _Allocator()) 19959: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 19959: _Compare, _Allocator>; 19959: 19959: template, 19959: typename _Allocator = allocator>, 19959: typename = _RequireNotAllocator<_Compare>, 19959: typename = _RequireAllocator<_Allocator>> 19959: multimap(initializer_list>, 19959: _Compare = _Compare(), _Allocator = _Allocator()) 19959: -> multimap<_Key, _Tp, _Compare, _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: multimap(_InputIterator, _InputIterator, _Allocator) 19959: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 19959: less<__iter_key_t<_InputIterator>>, _Allocator>; 19959: 19959: template> 19959: multimap(initializer_list>, _Allocator) 19959: -> multimap<_Key, _Tp, less<_Key>, _Allocator>; 19959: # 1132 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: template 19959: inline bool 19959: operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 19959: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 19959: { return __x._M_t == __y._M_t; } 19959: # 1170 "/usr/include/c++/13/bits/stl_multimap.h" 3 19959: template 19959: inline bool 19959: operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 19959: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 19959: { return __x._M_t < __y._M_t; } 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 19959: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 19959: { return !(__x == __y); } 19959: 19959: 19959: template 19959: inline bool 19959: operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 19959: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 19959: { return __y < __x; } 19959: 19959: 19959: template 19959: inline bool 19959: operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 19959: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 19959: { return !(__y < __x); } 19959: 19959: 19959: template 19959: inline bool 19959: operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 19959: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 19959: { return !(__x < __y); } 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, 19959: multimap<_Key, _Tp, _Compare, _Alloc>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct 19959: _Rb_tree_merge_helper, 19959: _Cmp2> 19959: { 19959: private: 19959: friend class std::multimap<_Key, _Val, _Cmp1, _Alloc>; 19959: 19959: static auto& 19959: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 19959: { return __map._M_t; } 19959: 19959: static auto& 19959: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 19959: { return __map._M_t; } 19959: }; 19959: 19959: 19959: 19959: } 19959: # 65 "/usr/include/c++/13/map" 2 3 19959: # 74 "/usr/include/c++/13/map" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: namespace pmr 19959: { 19959: template> 19959: using map 19959: = std::map<_Key, _Tp, _Cmp, 19959: polymorphic_allocator>>; 19959: template> 19959: using multimap 19959: = std::multimap<_Key, _Tp, _Cmp, 19959: polymorphic_allocator>>; 19959: } 19959: 19959: } 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 2 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 19959: 19959: # 1 "/usr/include/c++/13/cassert" 1 3 19959: # 41 "/usr/include/c++/13/cassert" 3 19959: 19959: # 42 "/usr/include/c++/13/cassert" 3 19959: 19959: 19959: # 1 "/usr/include/assert.h" 1 3 4 19959: # 45 "/usr/include/c++/13/cassert" 2 3 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 2 19959: 19959: # 1 "/usr/include/c++/13/mutex" 1 3 19959: # 32 "/usr/include/c++/13/mutex" 3 19959: 19959: # 33 "/usr/include/c++/13/mutex" 3 19959: # 44 "/usr/include/c++/13/mutex" 3 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/error_constants.h" 1 3 19959: # 34 "/usr/include/arm-linux-gnueabihf/c++/13/bits/error_constants.h" 3 19959: # 1 "/usr/include/c++/13/cerrno" 1 3 19959: # 39 "/usr/include/c++/13/cerrno" 3 19959: 19959: # 40 "/usr/include/c++/13/cerrno" 3 19959: # 35 "/usr/include/arm-linux-gnueabihf/c++/13/bits/error_constants.h" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: enum class errc 19959: { 19959: address_family_not_supported = 97, 19959: address_in_use = 98, 19959: address_not_available = 99, 19959: already_connected = 106, 19959: argument_list_too_long = 7, 19959: argument_out_of_domain = 33, 19959: bad_address = 14, 19959: bad_file_descriptor = 9, 19959: 19959: 19959: bad_message = 74, 19959: 19959: 19959: broken_pipe = 32, 19959: connection_aborted = 103, 19959: connection_already_in_progress = 114, 19959: connection_refused = 111, 19959: connection_reset = 104, 19959: cross_device_link = 18, 19959: destination_address_required = 89, 19959: device_or_resource_busy = 16, 19959: directory_not_empty = 39, 19959: executable_format_error = 8, 19959: file_exists = 17, 19959: file_too_large = 27, 19959: filename_too_long = 36, 19959: function_not_supported = 38, 19959: host_unreachable = 113, 19959: 19959: 19959: identifier_removed = 43, 19959: 19959: 19959: illegal_byte_sequence = 84, 19959: inappropriate_io_control_operation = 25, 19959: interrupted = 4, 19959: invalid_argument = 22, 19959: invalid_seek = 29, 19959: io_error = 5, 19959: is_a_directory = 21, 19959: message_size = 90, 19959: network_down = 100, 19959: network_reset = 102, 19959: network_unreachable = 101, 19959: no_buffer_space = 105, 19959: no_child_process = 10, 19959: 19959: 19959: no_link = 67, 19959: 19959: 19959: no_lock_available = 37, 19959: 19959: 19959: no_message_available = 61, 19959: 19959: 19959: no_message = 42, 19959: no_protocol_option = 92, 19959: no_space_on_device = 28, 19959: 19959: 19959: no_stream_resources = 63, 19959: 19959: 19959: no_such_device_or_address = 6, 19959: no_such_device = 19, 19959: no_such_file_or_directory = 2, 19959: no_such_process = 3, 19959: not_a_directory = 20, 19959: not_a_socket = 88, 19959: 19959: 19959: not_a_stream = 60, 19959: 19959: 19959: not_connected = 107, 19959: not_enough_memory = 12, 19959: 19959: 19959: not_supported = 95, 19959: 19959: 19959: 19959: operation_canceled = 125, 19959: 19959: 19959: operation_in_progress = 115, 19959: operation_not_permitted = 1, 19959: operation_not_supported = 95, 19959: operation_would_block = 11, 19959: 19959: 19959: owner_dead = 130, 19959: 19959: 19959: permission_denied = 13, 19959: 19959: 19959: protocol_error = 71, 19959: 19959: 19959: protocol_not_supported = 93, 19959: read_only_file_system = 30, 19959: resource_deadlock_would_occur = 35, 19959: resource_unavailable_try_again = 11, 19959: result_out_of_range = 34, 19959: 19959: 19959: state_not_recoverable = 131, 19959: 19959: 19959: 19959: stream_timeout = 62, 19959: 19959: 19959: 19959: text_file_busy = 26, 19959: 19959: 19959: timed_out = 110, 19959: too_many_files_open_in_system = 23, 19959: too_many_files_open = 24, 19959: too_many_links = 31, 19959: too_many_symbolic_link_levels = 40, 19959: 19959: 19959: value_too_large = 75, 19959: 19959: 19959: 19959: 19959: wrong_protocol_type = 91 19959: }; 19959: 19959: 19959: } 19959: # 45 "/usr/include/c++/13/mutex" 2 3 19959: # 1 "/usr/include/c++/13/bits/std_mutex.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/std_mutex.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/std_mutex.h" 3 19959: # 43 "/usr/include/c++/13/bits/std_mutex.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 59 "/usr/include/c++/13/bits/std_mutex.h" 3 19959: class __mutex_base 19959: { 19959: protected: 19959: typedef __gthread_mutex_t __native_type; 19959: 19959: 19959: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 19959: 19959: constexpr __mutex_base() noexcept = default; 19959: # 80 "/usr/include/c++/13/bits/std_mutex.h" 3 19959: __mutex_base(const __mutex_base&) = delete; 19959: __mutex_base& operator=(const __mutex_base&) = delete; 19959: }; 19959: # 96 "/usr/include/c++/13/bits/std_mutex.h" 3 19959: class mutex : private __mutex_base 19959: { 19959: public: 19959: typedef __native_type* native_handle_type; 19959: 19959: 19959: constexpr 19959: 19959: mutex() noexcept = default; 19959: ~mutex() = default; 19959: 19959: mutex(const mutex&) = delete; 19959: mutex& operator=(const mutex&) = delete; 19959: 19959: void 19959: lock() 19959: { 19959: int __e = __gthread_mutex_lock(&_M_mutex); 19959: 19959: 19959: if (__e) 19959: __throw_system_error(__e); 19959: } 19959: 19959: [[__nodiscard__]] 19959: bool 19959: try_lock() noexcept 19959: { 19959: 19959: return !__gthread_mutex_trylock(&_M_mutex); 19959: } 19959: 19959: void 19959: unlock() 19959: { 19959: 19959: __gthread_mutex_unlock(&_M_mutex); 19959: } 19959: 19959: native_handle_type 19959: native_handle() noexcept 19959: { return &_M_mutex; } 19959: }; 19959: 19959: 19959: 19959: 19959: class __condvar 19959: { 19959: using timespec = __gthread_time_t; 19959: 19959: public: 19959: __condvar() noexcept 19959: { 19959: 19959: 19959: 19959: } 19959: 19959: ~__condvar() 19959: { 19959: int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); 19959: do { if (std::__is_constant_evaluated() && !bool(__e != 16)) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: __condvar(const __condvar&) = delete; 19959: __condvar& operator=(const __condvar&) = delete; 19959: 19959: __gthread_cond_t* native_handle() noexcept { return &_M_cond; } 19959: 19959: 19959: void 19959: wait(mutex& __m) 19959: { 19959: int __e __attribute__((__unused__)) 19959: = __gthread_cond_wait(&_M_cond, __m.native_handle()); 19959: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: void 19959: wait_until(mutex& __m, timespec& __abs_time) 19959: { 19959: __gthread_cond_timedwait(&_M_cond, __m.native_handle(), &__abs_time); 19959: } 19959: 19959: 19959: void 19959: wait_until(mutex& __m, clockid_t __clock, timespec& __abs_time) 19959: { 19959: pthread_cond_clockwait(&_M_cond, __m.native_handle(), __clock, 19959: &__abs_time); 19959: } 19959: 19959: 19959: void 19959: notify_one() noexcept 19959: { 19959: int __e __attribute__((__unused__)) = __gthread_cond_signal(&_M_cond); 19959: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: void 19959: notify_all() noexcept 19959: { 19959: int __e __attribute__((__unused__)) = __gthread_cond_broadcast(&_M_cond); 19959: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: protected: 19959: 19959: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 19959: 19959: 19959: 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: struct defer_lock_t { explicit defer_lock_t() = default; }; 19959: 19959: 19959: struct try_to_lock_t { explicit try_to_lock_t() = default; }; 19959: 19959: 19959: 19959: struct adopt_lock_t { explicit adopt_lock_t() = default; }; 19959: 19959: 19959: inline constexpr defer_lock_t defer_lock { }; 19959: 19959: 19959: inline constexpr try_to_lock_t try_to_lock { }; 19959: 19959: 19959: inline constexpr adopt_lock_t adopt_lock { }; 19959: # 242 "/usr/include/c++/13/bits/std_mutex.h" 3 19959: template 19959: class lock_guard 19959: { 19959: public: 19959: typedef _Mutex mutex_type; 19959: 19959: explicit lock_guard(mutex_type& __m) : _M_device(__m) 19959: { _M_device.lock(); } 19959: 19959: lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m) 19959: { } 19959: 19959: ~lock_guard() 19959: { _M_device.unlock(); } 19959: 19959: lock_guard(const lock_guard&) = delete; 19959: lock_guard& operator=(const lock_guard&) = delete; 19959: 19959: private: 19959: mutex_type& _M_device; 19959: }; 19959: 19959: 19959: 19959: } 19959: # 46 "/usr/include/c++/13/mutex" 2 3 19959: # 1 "/usr/include/c++/13/bits/unique_lock.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/unique_lock.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/unique_lock.h" 3 19959: # 43 "/usr/include/c++/13/bits/unique_lock.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 58 "/usr/include/c++/13/bits/unique_lock.h" 3 19959: template 19959: class unique_lock 19959: { 19959: public: 19959: typedef _Mutex mutex_type; 19959: 19959: unique_lock() noexcept 19959: : _M_device(0), _M_owns(false) 19959: { } 19959: 19959: explicit unique_lock(mutex_type& __m) 19959: : _M_device(std::__addressof(__m)), _M_owns(false) 19959: { 19959: lock(); 19959: _M_owns = true; 19959: } 19959: 19959: unique_lock(mutex_type& __m, defer_lock_t) noexcept 19959: : _M_device(std::__addressof(__m)), _M_owns(false) 19959: { } 19959: 19959: unique_lock(mutex_type& __m, try_to_lock_t) 19959: : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock()) 19959: { } 19959: 19959: unique_lock(mutex_type& __m, adopt_lock_t) noexcept 19959: : _M_device(std::__addressof(__m)), _M_owns(true) 19959: { 19959: 19959: } 19959: 19959: template 19959: unique_lock(mutex_type& __m, 19959: const chrono::time_point<_Clock, _Duration>& __atime) 19959: : _M_device(std::__addressof(__m)), 19959: _M_owns(_M_device->try_lock_until(__atime)) 19959: { } 19959: 19959: template 19959: unique_lock(mutex_type& __m, 19959: const chrono::duration<_Rep, _Period>& __rtime) 19959: : _M_device(std::__addressof(__m)), 19959: _M_owns(_M_device->try_lock_for(__rtime)) 19959: { } 19959: 19959: ~unique_lock() 19959: { 19959: if (_M_owns) 19959: unlock(); 19959: } 19959: 19959: unique_lock(const unique_lock&) = delete; 19959: unique_lock& operator=(const unique_lock&) = delete; 19959: 19959: unique_lock(unique_lock&& __u) noexcept 19959: : _M_device(__u._M_device), _M_owns(__u._M_owns) 19959: { 19959: __u._M_device = 0; 19959: __u._M_owns = false; 19959: } 19959: 19959: unique_lock& operator=(unique_lock&& __u) noexcept 19959: { 19959: if(_M_owns) 19959: unlock(); 19959: 19959: unique_lock(std::move(__u)).swap(*this); 19959: 19959: __u._M_device = 0; 19959: __u._M_owns = false; 19959: 19959: return *this; 19959: } 19959: 19959: void 19959: lock() 19959: { 19959: if (!_M_device) 19959: __throw_system_error(int(errc::operation_not_permitted)); 19959: else if (_M_owns) 19959: __throw_system_error(int(errc::resource_deadlock_would_occur)); 19959: else 19959: { 19959: _M_device->lock(); 19959: _M_owns = true; 19959: } 19959: } 19959: 19959: [[__nodiscard__]] 19959: bool 19959: try_lock() 19959: { 19959: if (!_M_device) 19959: __throw_system_error(int(errc::operation_not_permitted)); 19959: else if (_M_owns) 19959: __throw_system_error(int(errc::resource_deadlock_would_occur)); 19959: else 19959: { 19959: _M_owns = _M_device->try_lock(); 19959: return _M_owns; 19959: } 19959: } 19959: 19959: template 19959: [[__nodiscard__]] 19959: bool 19959: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 19959: { 19959: if (!_M_device) 19959: __throw_system_error(int(errc::operation_not_permitted)); 19959: else if (_M_owns) 19959: __throw_system_error(int(errc::resource_deadlock_would_occur)); 19959: else 19959: { 19959: _M_owns = _M_device->try_lock_until(__atime); 19959: return _M_owns; 19959: } 19959: } 19959: 19959: template 19959: [[__nodiscard__]] 19959: bool 19959: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 19959: { 19959: if (!_M_device) 19959: __throw_system_error(int(errc::operation_not_permitted)); 19959: else if (_M_owns) 19959: __throw_system_error(int(errc::resource_deadlock_would_occur)); 19959: else 19959: { 19959: _M_owns = _M_device->try_lock_for(__rtime); 19959: return _M_owns; 19959: } 19959: } 19959: 19959: void 19959: unlock() 19959: { 19959: if (!_M_owns) 19959: __throw_system_error(int(errc::operation_not_permitted)); 19959: else if (_M_device) 19959: { 19959: _M_device->unlock(); 19959: _M_owns = false; 19959: } 19959: } 19959: 19959: void 19959: swap(unique_lock& __u) noexcept 19959: { 19959: std::swap(_M_device, __u._M_device); 19959: std::swap(_M_owns, __u._M_owns); 19959: } 19959: 19959: mutex_type* 19959: release() noexcept 19959: { 19959: mutex_type* __ret = _M_device; 19959: _M_device = 0; 19959: _M_owns = false; 19959: return __ret; 19959: } 19959: 19959: [[__nodiscard__]] 19959: bool 19959: owns_lock() const noexcept 19959: { return _M_owns; } 19959: 19959: explicit operator bool() const noexcept 19959: { return owns_lock(); } 19959: 19959: [[__nodiscard__]] 19959: mutex_type* 19959: mutex() const noexcept 19959: { return _M_device; } 19959: 19959: private: 19959: mutex_type* _M_device; 19959: bool _M_owns; 19959: }; 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept 19959: { __x.swap(__y); } 19959: 19959: 19959: } 19959: # 47 "/usr/include/c++/13/mutex" 2 3 19959: # 57 "/usr/include/c++/13/mutex" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 70 "/usr/include/c++/13/mutex" 3 19959: class __recursive_mutex_base 19959: { 19959: protected: 19959: typedef __gthread_recursive_mutex_t __native_type; 19959: 19959: __recursive_mutex_base(const __recursive_mutex_base&) = delete; 19959: __recursive_mutex_base& operator=(const __recursive_mutex_base&) = delete; 19959: 19959: 19959: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 19959: 19959: __recursive_mutex_base() = default; 19959: # 94 "/usr/include/c++/13/mutex" 3 19959: }; 19959: # 106 "/usr/include/c++/13/mutex" 3 19959: class recursive_mutex : private __recursive_mutex_base 19959: { 19959: public: 19959: typedef __native_type* native_handle_type; 19959: 19959: recursive_mutex() = default; 19959: ~recursive_mutex() = default; 19959: 19959: recursive_mutex(const recursive_mutex&) = delete; 19959: recursive_mutex& operator=(const recursive_mutex&) = delete; 19959: 19959: void 19959: lock() 19959: { 19959: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 19959: 19959: 19959: if (__e) 19959: __throw_system_error(__e); 19959: } 19959: 19959: [[__nodiscard__]] 19959: bool 19959: try_lock() noexcept 19959: { 19959: 19959: return !__gthread_recursive_mutex_trylock(&_M_mutex); 19959: } 19959: 19959: void 19959: unlock() 19959: { 19959: 19959: __gthread_recursive_mutex_unlock(&_M_mutex); 19959: } 19959: 19959: native_handle_type 19959: native_handle() noexcept 19959: { return &_M_mutex; } 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: class __timed_mutex_impl 19959: { 19959: protected: 19959: template 19959: bool 19959: _M_try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 19959: { 19959: 19959: using __clock = chrono::steady_clock; 19959: 19959: 19959: 19959: 19959: auto __rt = chrono::duration_cast<__clock::duration>(__rtime); 19959: if (ratio_greater<__clock::period, _Period>()) 19959: ++__rt; 19959: return _M_try_lock_until(__clock::now() + __rt); 19959: } 19959: 19959: template 19959: bool 19959: _M_try_lock_until(const chrono::time_point& __atime) 19959: { 19959: auto __s = chrono::time_point_cast(__atime); 19959: auto __ns = chrono::duration_cast(__atime - __s); 19959: 19959: __gthread_time_t __ts = { 19959: static_cast(__s.time_since_epoch().count()), 19959: static_cast(__ns.count()) 19959: }; 19959: 19959: return static_cast<_Derived*>(this)->_M_timedlock(__ts); 19959: } 19959: 19959: 19959: template 19959: bool 19959: _M_try_lock_until(const chrono::time_point& __atime) 19959: { 19959: auto __s = chrono::time_point_cast(__atime); 19959: auto __ns = chrono::duration_cast(__atime - __s); 19959: 19959: __gthread_time_t __ts = { 19959: static_cast(__s.time_since_epoch().count()), 19959: static_cast(__ns.count()) 19959: }; 19959: 19959: return static_cast<_Derived*>(this)->_M_clocklock(1, 19959: __ts); 19959: } 19959: 19959: 19959: template 19959: bool 19959: _M_try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: auto __now = _Clock::now(); 19959: do { 19959: auto __rtime = __atime - __now; 19959: if (_M_try_lock_for(__rtime)) 19959: return true; 19959: __now = _Clock::now(); 19959: } while (__atime > __now); 19959: return false; 19959: } 19959: }; 19959: # 235 "/usr/include/c++/13/mutex" 3 19959: class timed_mutex 19959: : private __mutex_base, public __timed_mutex_impl 19959: { 19959: public: 19959: typedef __native_type* native_handle_type; 19959: 19959: timed_mutex() = default; 19959: ~timed_mutex() = default; 19959: 19959: timed_mutex(const timed_mutex&) = delete; 19959: timed_mutex& operator=(const timed_mutex&) = delete; 19959: 19959: void 19959: lock() 19959: { 19959: int __e = __gthread_mutex_lock(&_M_mutex); 19959: 19959: 19959: if (__e) 19959: __throw_system_error(__e); 19959: } 19959: 19959: [[__nodiscard__]] 19959: bool 19959: try_lock() noexcept 19959: { 19959: 19959: return !__gthread_mutex_trylock(&_M_mutex); 19959: } 19959: 19959: template 19959: [[__nodiscard__]] 19959: bool 19959: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 19959: { return _M_try_lock_for(__rtime); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: bool 19959: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 19959: { return _M_try_lock_until(__atime); } 19959: 19959: void 19959: unlock() 19959: { 19959: 19959: __gthread_mutex_unlock(&_M_mutex); 19959: } 19959: 19959: native_handle_type 19959: native_handle() noexcept 19959: { return &_M_mutex; } 19959: 19959: private: 19959: friend class __timed_mutex_impl; 19959: 19959: bool 19959: _M_timedlock(const __gthread_time_t& __ts) 19959: { return !__gthread_mutex_timedlock(&_M_mutex, &__ts); } 19959: 19959: 19959: bool 19959: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 19959: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 19959: 19959: }; 19959: # 312 "/usr/include/c++/13/mutex" 3 19959: class recursive_timed_mutex 19959: : private __recursive_mutex_base, 19959: public __timed_mutex_impl 19959: { 19959: public: 19959: typedef __native_type* native_handle_type; 19959: 19959: recursive_timed_mutex() = default; 19959: ~recursive_timed_mutex() = default; 19959: 19959: recursive_timed_mutex(const recursive_timed_mutex&) = delete; 19959: recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete; 19959: 19959: void 19959: lock() 19959: { 19959: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 19959: 19959: 19959: if (__e) 19959: __throw_system_error(__e); 19959: } 19959: 19959: [[__nodiscard__]] 19959: bool 19959: try_lock() noexcept 19959: { 19959: 19959: return !__gthread_recursive_mutex_trylock(&_M_mutex); 19959: } 19959: 19959: template 19959: [[__nodiscard__]] 19959: bool 19959: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 19959: { return _M_try_lock_for(__rtime); } 19959: 19959: template 19959: [[__nodiscard__]] 19959: bool 19959: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 19959: { return _M_try_lock_until(__atime); } 19959: 19959: void 19959: unlock() 19959: { 19959: 19959: __gthread_recursive_mutex_unlock(&_M_mutex); 19959: } 19959: 19959: native_handle_type 19959: native_handle() noexcept 19959: { return &_M_mutex; } 19959: 19959: private: 19959: friend class __timed_mutex_impl; 19959: 19959: bool 19959: _M_timedlock(const __gthread_time_t& __ts) 19959: { return !__gthread_recursive_mutex_timedlock(&_M_mutex, &__ts); } 19959: 19959: 19959: bool 19959: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 19959: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 19959: 19959: }; 19959: # 559 "/usr/include/c++/13/mutex" 3 19959: namespace __detail 19959: { 19959: 19959: template 19959: inline int 19959: __try_lock_impl(_Lockable& __l) 19959: { 19959: if (unique_lock<_Lockable> __lock{__l, try_to_lock}) 19959: { 19959: __lock.release(); 19959: return -1; 19959: } 19959: else 19959: return 0; 19959: } 19959: 19959: 19959: 19959: template 19959: inline int 19959: __try_lock_impl(_L0& __l0, _Lockables&... __lockables) 19959: { 19959: 19959: if constexpr ((is_same_v<_L0, _Lockables> && ...)) 19959: { 19959: constexpr int _Np = 1 + sizeof...(_Lockables); 19959: unique_lock<_L0> __locks[_Np] = { 19959: {__l0, defer_lock}, {__lockables, defer_lock}... 19959: }; 19959: for (int __i = 0; __i < _Np; ++__i) 19959: { 19959: if (!__locks[__i].try_lock()) 19959: { 19959: const int __failed = __i; 19959: while (__i--) 19959: __locks[__i].unlock(); 19959: return __failed; 19959: } 19959: } 19959: for (auto& __l : __locks) 19959: __l.release(); 19959: return -1; 19959: } 19959: else 19959: 19959: if (unique_lock<_L0> __lock{__l0, try_to_lock}) 19959: { 19959: int __idx = __detail::__try_lock_impl(__lockables...); 19959: if (__idx == -1) 19959: { 19959: __lock.release(); 19959: return -1; 19959: } 19959: return __idx + 1; 19959: } 19959: else 19959: return 0; 19959: } 19959: 19959: } 19959: # 631 "/usr/include/c++/13/mutex" 3 19959: template 19959: [[__nodiscard__]] 19959: inline int 19959: try_lock(_L1& __l1, _L2& __l2, _L3&... __l3) 19959: { 19959: return __detail::__try_lock_impl(__l1, __l2, __l3...); 19959: } 19959: 19959: 19959: namespace __detail 19959: { 19959: 19959: 19959: 19959: 19959: 19959: template 19959: void 19959: __lock_impl(int& __i, int __depth, _L0& __l0, _L1&... __l1) 19959: { 19959: while (__i >= __depth) 19959: { 19959: if (__i == __depth) 19959: { 19959: int __failed = 1; 19959: { 19959: unique_lock<_L0> __first(__l0); 19959: __failed += __detail::__try_lock_impl(__l1...); 19959: if (!__failed) 19959: { 19959: __i = -1; 19959: __first.release(); 19959: return; 19959: } 19959: } 19959: 19959: __gthread_yield(); 19959: 19959: constexpr auto __n = 1 + sizeof...(_L1); 19959: __i = (__depth + __failed) % __n; 19959: } 19959: else 19959: __detail::__lock_impl(__i, __depth + 1, __l1..., __l0); 19959: } 19959: } 19959: 19959: } 19959: # 691 "/usr/include/c++/13/mutex" 3 19959: template 19959: void 19959: lock(_L1& __l1, _L2& __l2, _L3&... __l3) 19959: { 19959: 19959: if constexpr (is_same_v<_L1, _L2> && (is_same_v<_L1, _L3> && ...)) 19959: { 19959: constexpr int _Np = 2 + sizeof...(_L3); 19959: unique_lock<_L1> __locks[] = { 19959: {__l1, defer_lock}, {__l2, defer_lock}, {__l3, defer_lock}... 19959: }; 19959: int __first = 0; 19959: do { 19959: __locks[__first].lock(); 19959: for (int __j = 1; __j < _Np; ++__j) 19959: { 19959: const int __idx = (__first + __j) % _Np; 19959: if (!__locks[__idx].try_lock()) 19959: { 19959: for (int __k = __j; __k != 0; --__k) 19959: __locks[(__first + __k - 1) % _Np].unlock(); 19959: __first = __idx; 19959: break; 19959: } 19959: } 19959: } while (!__locks[__first].owns_lock()); 19959: 19959: for (auto& __l : __locks) 19959: __l.release(); 19959: } 19959: else 19959: 19959: { 19959: int __i = 0; 19959: __detail::__lock_impl(__i, 0, __l1, __l2, __l3...); 19959: } 19959: } 19959: # 739 "/usr/include/c++/13/mutex" 3 19959: template 19959: class scoped_lock 19959: { 19959: public: 19959: explicit scoped_lock(_MutexTypes&... __m) : _M_devices(std::tie(__m...)) 19959: { std::lock(__m...); } 19959: 19959: explicit scoped_lock(adopt_lock_t, _MutexTypes&... __m) noexcept 19959: : _M_devices(std::tie(__m...)) 19959: { } 19959: 19959: ~scoped_lock() 19959: { std::apply([](auto&... __m) { (__m.unlock(), ...); }, _M_devices); } 19959: 19959: scoped_lock(const scoped_lock&) = delete; 19959: scoped_lock& operator=(const scoped_lock&) = delete; 19959: 19959: private: 19959: tuple<_MutexTypes&...> _M_devices; 19959: }; 19959: 19959: template<> 19959: class scoped_lock<> 19959: { 19959: public: 19959: explicit scoped_lock() = default; 19959: explicit scoped_lock(adopt_lock_t) noexcept { } 19959: ~scoped_lock() = default; 19959: 19959: scoped_lock(const scoped_lock&) = delete; 19959: scoped_lock& operator=(const scoped_lock&) = delete; 19959: }; 19959: 19959: template 19959: class scoped_lock<_Mutex> 19959: { 19959: public: 19959: using mutex_type = _Mutex; 19959: 19959: explicit scoped_lock(mutex_type& __m) : _M_device(__m) 19959: { _M_device.lock(); } 19959: 19959: explicit scoped_lock(adopt_lock_t, mutex_type& __m) noexcept 19959: : _M_device(__m) 19959: { } 19959: 19959: ~scoped_lock() 19959: { _M_device.unlock(); } 19959: 19959: scoped_lock(const scoped_lock&) = delete; 19959: scoped_lock& operator=(const scoped_lock&) = delete; 19959: 19959: private: 19959: mutex_type& _M_device; 19959: }; 19959: 19959: 19959: 19959: 19959: struct once_flag 19959: { 19959: constexpr once_flag() noexcept = default; 19959: 19959: 19959: once_flag(const once_flag&) = delete; 19959: 19959: once_flag& operator=(const once_flag&) = delete; 19959: 19959: private: 19959: 19959: 19959: __gthread_once_t _M_once = 0; 19959: 19959: struct _Prepare_execution; 19959: 19959: template 19959: friend void 19959: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: extern __thread void* __once_callable; 19959: extern __thread void (*__once_call)(); 19959: 19959: 19959: struct once_flag::_Prepare_execution 19959: { 19959: template 19959: explicit 19959: _Prepare_execution(_Callable& __c) 19959: { 19959: 19959: __once_callable = std::__addressof(__c); 19959: 19959: __once_call = [] { (*static_cast<_Callable*>(__once_callable))(); }; 19959: } 19959: 19959: ~_Prepare_execution() 19959: { 19959: 19959: __once_callable = nullptr; 19959: __once_call = nullptr; 19959: } 19959: 19959: _Prepare_execution(const _Prepare_execution&) = delete; 19959: _Prepare_execution& operator=(const _Prepare_execution&) = delete; 19959: }; 19959: # 891 "/usr/include/c++/13/mutex" 3 19959: extern "C" void __once_proxy(void); 19959: 19959: 19959: template 19959: void 19959: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) 19959: { 19959: 19959: auto __callable = [&] { 19959: std::__invoke(std::forward<_Callable>(__f), 19959: std::forward<_Args>(__args)...); 19959: }; 19959: 19959: once_flag::_Prepare_execution __exec(__callable); 19959: 19959: 19959: if (int __e = __gthread_once(&__once._M_once, &__once_proxy)) 19959: __throw_system_error(__e); 19959: } 19959: # 1012 "/usr/include/c++/13/mutex" 3 19959: 19959: } 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 2 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 19959: 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 19959: namespace rocksdb { 19959: # 31 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 19959: enum Tickers : uint32_t { 19959: 19959: 19959: 19959: 19959: BLOCK_CACHE_MISS = 0, 19959: 19959: 19959: 19959: 19959: BLOCK_CACHE_HIT, 19959: 19959: BLOCK_CACHE_ADD, 19959: 19959: BLOCK_CACHE_ADD_FAILURES, 19959: 19959: BLOCK_CACHE_INDEX_MISS, 19959: 19959: BLOCK_CACHE_INDEX_HIT, 19959: 19959: BLOCK_CACHE_INDEX_ADD, 19959: 19959: BLOCK_CACHE_INDEX_BYTES_INSERT, 19959: 19959: BLOCK_CACHE_FILTER_MISS, 19959: 19959: BLOCK_CACHE_FILTER_HIT, 19959: 19959: BLOCK_CACHE_FILTER_ADD, 19959: 19959: BLOCK_CACHE_FILTER_BYTES_INSERT, 19959: 19959: BLOCK_CACHE_DATA_MISS, 19959: 19959: BLOCK_CACHE_DATA_HIT, 19959: 19959: BLOCK_CACHE_DATA_ADD, 19959: 19959: BLOCK_CACHE_DATA_BYTES_INSERT, 19959: 19959: BLOCK_CACHE_BYTES_READ, 19959: 19959: BLOCK_CACHE_BYTES_WRITE, 19959: 19959: 19959: BLOOM_FILTER_USEFUL, 19959: 19959: BLOOM_FILTER_FULL_POSITIVE, 19959: 19959: 19959: BLOOM_FILTER_FULL_TRUE_POSITIVE, 19959: 19959: 19959: PERSISTENT_CACHE_HIT, 19959: 19959: PERSISTENT_CACHE_MISS, 19959: 19959: 19959: SIM_BLOCK_CACHE_HIT, 19959: 19959: SIM_BLOCK_CACHE_MISS, 19959: 19959: 19959: MEMTABLE_HIT, 19959: 19959: MEMTABLE_MISS, 19959: 19959: 19959: GET_HIT_L0, 19959: 19959: GET_HIT_L1, 19959: 19959: GET_HIT_L2_AND_UP, 19959: 19959: 19959: 19959: 19959: 19959: COMPACTION_KEY_DROP_NEWER_ENTRY, 19959: 19959: COMPACTION_KEY_DROP_OBSOLETE, 19959: COMPACTION_KEY_DROP_RANGE_DEL, 19959: COMPACTION_KEY_DROP_USER, 19959: COMPACTION_RANGE_DEL_DROP_OBSOLETE, 19959: 19959: COMPACTION_OPTIMIZED_DEL_DROP_OBSOLETE, 19959: 19959: COMPACTION_CANCELLED, 19959: 19959: 19959: NUMBER_KEYS_WRITTEN, 19959: 19959: NUMBER_KEYS_READ, 19959: 19959: NUMBER_KEYS_UPDATED, 19959: 19959: 19959: BYTES_WRITTEN, 19959: 19959: 19959: 19959: 19959: BYTES_READ, 19959: 19959: NUMBER_DB_SEEK, 19959: NUMBER_DB_NEXT, 19959: NUMBER_DB_PREV, 19959: 19959: NUMBER_DB_SEEK_FOUND, 19959: NUMBER_DB_NEXT_FOUND, 19959: NUMBER_DB_PREV_FOUND, 19959: 19959: 19959: ITER_BYTES_READ, 19959: NO_FILE_OPENS, 19959: NO_FILE_ERRORS, 19959: 19959: STALL_MICROS, 19959: 19959: 19959: DB_MUTEX_WAIT_MICROS, 19959: 19959: 19959: NUMBER_MULTIGET_CALLS, 19959: NUMBER_MULTIGET_KEYS_READ, 19959: NUMBER_MULTIGET_BYTES_READ, 19959: 19959: NUMBER_MERGE_FAILURES, 19959: 19959: 19959: 19959: 19959: BLOOM_FILTER_PREFIX_CHECKED, 19959: 19959: BLOOM_FILTER_PREFIX_USEFUL, 19959: 19959: 19959: 19959: BLOOM_FILTER_PREFIX_TRUE_POSITIVE, 19959: 19959: 19959: 19959: NUMBER_OF_RESEEKS_IN_ITERATION, 19959: 19959: 19959: 19959: GET_UPDATES_SINCE_CALLS, 19959: WAL_FILE_SYNCED, 19959: WAL_FILE_BYTES, 19959: 19959: 19959: 19959: WRITE_DONE_BY_SELF, 19959: WRITE_DONE_BY_OTHER, 19959: WRITE_WITH_WAL, 19959: COMPACT_READ_BYTES, 19959: COMPACT_WRITE_BYTES, 19959: FLUSH_WRITE_BYTES, 19959: 19959: 19959: COMPACT_READ_BYTES_MARKED, 19959: COMPACT_READ_BYTES_PERIODIC, 19959: COMPACT_READ_BYTES_TTL, 19959: COMPACT_WRITE_BYTES_MARKED, 19959: COMPACT_WRITE_BYTES_PERIODIC, 19959: COMPACT_WRITE_BYTES_TTL, 19959: 19959: 19959: 19959: NUMBER_DIRECT_LOAD_TABLE_PROPERTIES, 19959: NUMBER_SUPERVERSION_ACQUIRES, 19959: NUMBER_SUPERVERSION_RELEASES, 19959: NUMBER_SUPERVERSION_CLEANUPS, 19959: 19959: 19959: NUMBER_BLOCK_COMPRESSED, 19959: NUMBER_BLOCK_DECOMPRESSED, 19959: 19959: 19959: NUMBER_BLOCK_NOT_COMPRESSED, 19959: 19959: 19959: MERGE_OPERATION_TOTAL_TIME, 19959: FILTER_OPERATION_TOTAL_TIME, 19959: COMPACTION_CPU_TOTAL_TIME, 19959: 19959: 19959: ROW_CACHE_HIT, 19959: ROW_CACHE_MISS, 19959: 19959: 19959: 19959: 19959: 19959: 19959: READ_AMP_ESTIMATE_USEFUL_BYTES, 19959: READ_AMP_TOTAL_READ_BYTES, 19959: 19959: 19959: NUMBER_RATE_LIMITER_DRAINS, 19959: 19959: 19959: NUMBER_ITER_SKIP, 19959: 19959: 19959: 19959: BLOB_DB_NUM_PUT, 19959: 19959: BLOB_DB_NUM_WRITE, 19959: 19959: BLOB_DB_NUM_GET, 19959: 19959: BLOB_DB_NUM_MULTIGET, 19959: 19959: 19959: BLOB_DB_NUM_SEEK, 19959: 19959: BLOB_DB_NUM_NEXT, 19959: 19959: BLOB_DB_NUM_PREV, 19959: 19959: BLOB_DB_NUM_KEYS_WRITTEN, 19959: 19959: BLOB_DB_NUM_KEYS_READ, 19959: 19959: 19959: BLOB_DB_BYTES_WRITTEN, 19959: 19959: 19959: BLOB_DB_BYTES_READ, 19959: 19959: 19959: BLOB_DB_WRITE_INLINED, 19959: 19959: 19959: BLOB_DB_WRITE_INLINED_TTL, 19959: 19959: 19959: BLOB_DB_WRITE_BLOB, 19959: 19959: 19959: BLOB_DB_WRITE_BLOB_TTL, 19959: 19959: BLOB_DB_BLOB_FILE_BYTES_WRITTEN, 19959: 19959: BLOB_DB_BLOB_FILE_BYTES_READ, 19959: 19959: BLOB_DB_BLOB_FILE_SYNCED, 19959: 19959: 19959: BLOB_DB_BLOB_INDEX_EXPIRED_COUNT, 19959: 19959: 19959: BLOB_DB_BLOB_INDEX_EXPIRED_SIZE, 19959: 19959: 19959: BLOB_DB_BLOB_INDEX_EVICTED_COUNT, 19959: 19959: 19959: BLOB_DB_BLOB_INDEX_EVICTED_SIZE, 19959: 19959: 19959: BLOB_DB_GC_NUM_FILES, 19959: 19959: 19959: BLOB_DB_GC_NUM_NEW_FILES, 19959: 19959: BLOB_DB_GC_FAILURES, 19959: 19959: BLOB_DB_GC_NUM_KEYS_RELOCATED, 19959: 19959: BLOB_DB_GC_BYTES_RELOCATED, 19959: 19959: 19959: BLOB_DB_FIFO_NUM_FILES_EVICTED, 19959: 19959: 19959: BLOB_DB_FIFO_NUM_KEYS_EVICTED, 19959: 19959: 19959: BLOB_DB_FIFO_BYTES_EVICTED, 19959: 19959: 19959: 19959: 19959: TXN_PREPARE_MUTEX_OVERHEAD, 19959: 19959: TXN_OLD_COMMIT_MAP_MUTEX_OVERHEAD, 19959: 19959: TXN_DUPLICATE_KEY_OVERHEAD, 19959: 19959: TXN_SNAPSHOT_MUTEX_OVERHEAD, 19959: 19959: TXN_GET_TRY_AGAIN, 19959: 19959: 19959: 19959: 19959: NUMBER_MULTIGET_KEYS_FOUND, 19959: 19959: NO_ITERATOR_CREATED, 19959: NO_ITERATOR_DELETED, 19959: 19959: BLOCK_CACHE_COMPRESSION_DICT_MISS, 19959: BLOCK_CACHE_COMPRESSION_DICT_HIT, 19959: BLOCK_CACHE_COMPRESSION_DICT_ADD, 19959: BLOCK_CACHE_COMPRESSION_DICT_BYTES_INSERT, 19959: 19959: 19959: 19959: BLOCK_CACHE_ADD_REDUNDANT, 19959: 19959: 19959: BLOCK_CACHE_INDEX_ADD_REDUNDANT, 19959: 19959: 19959: BLOCK_CACHE_FILTER_ADD_REDUNDANT, 19959: 19959: 19959: BLOCK_CACHE_DATA_ADD_REDUNDANT, 19959: 19959: 19959: 19959: BLOCK_CACHE_COMPRESSION_DICT_ADD_REDUNDANT, 19959: 19959: 19959: 19959: FILES_MARKED_TRASH, 19959: 19959: FILES_DELETED_FROM_TRASH_QUEUE, 19959: 19959: 19959: FILES_DELETED_IMMEDIATELY, 19959: 19959: 19959: 19959: 19959: 19959: ERROR_HANDLER_BG_ERROR_COUNT, 19959: ERROR_HANDLER_BG_ERROR_COUNT_MISSPELLED, 19959: ERROR_HANDLER_BG_IO_ERROR_COUNT, 19959: ERROR_HANDLER_BG_IO_ERROR_COUNT_MISSPELLED, 19959: ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT, 19959: ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT_MISSPELLED, 19959: ERROR_HANDLER_AUTORESUME_COUNT, 19959: ERROR_HANDLER_AUTORESUME_RETRY_TOTAL_COUNT, 19959: ERROR_HANDLER_AUTORESUME_SUCCESS_COUNT, 19959: 19959: 19959: 19959: MEMTABLE_PAYLOAD_BYTES_AT_FLUSH, 19959: 19959: MEMTABLE_GARBAGE_BYTES_AT_FLUSH, 19959: 19959: 19959: SECONDARY_CACHE_HITS, 19959: 19959: 19959: VERIFY_CHECKSUM_READ_BYTES, 19959: 19959: 19959: BACKUP_READ_BYTES, 19959: BACKUP_WRITE_BYTES, 19959: 19959: 19959: REMOTE_COMPACT_READ_BYTES, 19959: REMOTE_COMPACT_WRITE_BYTES, 19959: 19959: 19959: HOT_FILE_READ_BYTES, 19959: WARM_FILE_READ_BYTES, 19959: COLD_FILE_READ_BYTES, 19959: HOT_FILE_READ_COUNT, 19959: WARM_FILE_READ_COUNT, 19959: COLD_FILE_READ_COUNT, 19959: 19959: 19959: LAST_LEVEL_READ_BYTES, 19959: LAST_LEVEL_READ_COUNT, 19959: NON_LAST_LEVEL_READ_BYTES, 19959: NON_LAST_LEVEL_READ_COUNT, 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: LAST_LEVEL_SEEK_FILTERED, 19959: 19959: 19959: LAST_LEVEL_SEEK_FILTER_MATCH, 19959: 19959: 19959: LAST_LEVEL_SEEK_DATA, 19959: 19959: 19959: LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 19959: 19959: 19959: LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 19959: 19959: NON_LAST_LEVEL_SEEK_FILTERED, 19959: NON_LAST_LEVEL_SEEK_FILTER_MATCH, 19959: NON_LAST_LEVEL_SEEK_DATA, 19959: NON_LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 19959: NON_LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 19959: 19959: 19959: BLOCK_CHECKSUM_COMPUTE_COUNT, 19959: 19959: 19959: 19959: BLOCK_CHECKSUM_MISMATCH_COUNT, 19959: 19959: MULTIGET_COROUTINE_COUNT, 19959: 19959: 19959: 19959: BLOB_DB_CACHE_MISS, 19959: 19959: BLOB_DB_CACHE_HIT, 19959: 19959: BLOB_DB_CACHE_ADD, 19959: 19959: BLOB_DB_CACHE_ADD_FAILURES, 19959: 19959: BLOB_DB_CACHE_BYTES_READ, 19959: 19959: BLOB_DB_CACHE_BYTES_WRITE, 19959: 19959: 19959: READ_ASYNC_MICROS, 19959: 19959: ASYNC_READ_ERROR_COUNT, 19959: 19959: 19959: SECONDARY_CACHE_FILTER_HITS, 19959: SECONDARY_CACHE_INDEX_HITS, 19959: SECONDARY_CACHE_DATA_HITS, 19959: 19959: 19959: 19959: 19959: TABLE_OPEN_PREFETCH_TAIL_MISS, 19959: 19959: 19959: 19959: TABLE_OPEN_PREFETCH_TAIL_HIT, 19959: 19959: 19959: 19959: TIMESTAMP_FILTER_TABLE_CHECKED, 19959: 19959: TIMESTAMP_FILTER_TABLE_FILTERED, 19959: 19959: 19959: 19959: BYTES_COMPRESSED_FROM, 19959: 19959: 19959: BYTES_COMPRESSED_TO, 19959: 19959: 19959: 19959: 19959: BYTES_COMPRESSION_BYPASSED, 19959: 19959: 19959: 19959: 19959: 19959: BYTES_COMPRESSION_REJECTED, 19959: 19959: 19959: NUMBER_BLOCK_COMPRESSION_BYPASSED, 19959: 19959: NUMBER_BLOCK_COMPRESSION_REJECTED, 19959: 19959: 19959: 19959: BYTES_DECOMPRESSED_FROM, 19959: 19959: 19959: BYTES_DECOMPRESSED_TO, 19959: 19959: 19959: 19959: READAHEAD_TRIMMED, 19959: 19959: 19959: FIFO_MAX_SIZE_COMPACTIONS, 19959: FIFO_TTL_COMPACTIONS, 19959: 19959: 19959: PREFETCH_BYTES, 19959: 19959: 19959: PREFETCH_BYTES_USEFUL, 19959: 19959: 19959: PREFETCH_HITS, 19959: 19959: TICKER_ENUM_MAX 19959: }; 19959: 19959: 19959: 19959: extern const std::vector> TickersNameMap; 19959: # 552 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 19959: enum Histograms : uint32_t { 19959: DB_GET = 0, 19959: DB_WRITE, 19959: COMPACTION_TIME, 19959: COMPACTION_CPU_TIME, 19959: SUBCOMPACTION_SETUP_TIME, 19959: TABLE_SYNC_MICROS, 19959: COMPACTION_OUTFILE_SYNC_MICROS, 19959: WAL_FILE_SYNC_MICROS, 19959: MANIFEST_FILE_SYNC_MICROS, 19959: 19959: TABLE_OPEN_IO_MICROS, 19959: DB_MULTIGET, 19959: READ_BLOCK_COMPACTION_MICROS, 19959: READ_BLOCK_GET_MICROS, 19959: WRITE_RAW_BLOCK_MICROS, 19959: NUM_FILES_IN_SINGLE_COMPACTION, 19959: DB_SEEK, 19959: WRITE_STALL, 19959: 19959: SST_READ_MICROS, 19959: 19959: 19959: FILE_READ_FLUSH_MICROS, 19959: FILE_READ_COMPACTION_MICROS, 19959: FILE_READ_DB_OPEN_MICROS, 19959: 19959: 19959: FILE_READ_GET_MICROS, 19959: FILE_READ_MULTIGET_MICROS, 19959: FILE_READ_DB_ITERATOR_MICROS, 19959: FILE_READ_VERIFY_DB_CHECKSUM_MICROS, 19959: FILE_READ_VERIFY_FILE_CHECKSUMS_MICROS, 19959: 19959: 19959: NUM_SUBCOMPACTIONS_SCHEDULED, 19959: 19959: BYTES_PER_READ, 19959: BYTES_PER_WRITE, 19959: BYTES_PER_MULTIGET, 19959: 19959: BYTES_COMPRESSED, 19959: BYTES_DECOMPRESSED, 19959: COMPRESSION_TIMES_NANOS, 19959: DECOMPRESSION_TIMES_NANOS, 19959: 19959: 19959: READ_NUM_MERGE_OPERANDS, 19959: 19959: 19959: 19959: BLOB_DB_KEY_SIZE, 19959: 19959: BLOB_DB_VALUE_SIZE, 19959: 19959: 19959: BLOB_DB_WRITE_MICROS, 19959: 19959: BLOB_DB_GET_MICROS, 19959: 19959: BLOB_DB_MULTIGET_MICROS, 19959: 19959: 19959: BLOB_DB_SEEK_MICROS, 19959: 19959: BLOB_DB_NEXT_MICROS, 19959: 19959: BLOB_DB_PREV_MICROS, 19959: 19959: BLOB_DB_BLOB_FILE_WRITE_MICROS, 19959: 19959: BLOB_DB_BLOB_FILE_READ_MICROS, 19959: 19959: BLOB_DB_BLOB_FILE_SYNC_MICROS, 19959: 19959: BLOB_DB_COMPRESSION_MICROS, 19959: 19959: BLOB_DB_DECOMPRESSION_MICROS, 19959: 19959: FLUSH_TIME, 19959: SST_BATCH_SIZE, 19959: 19959: 19959: 19959: NUM_INDEX_AND_FILTER_BLOCKS_READ_PER_LEVEL, 19959: 19959: NUM_SST_READ_PER_LEVEL, 19959: 19959: 19959: ERROR_HANDLER_AUTORESUME_RETRY_COUNT, 19959: 19959: 19959: ASYNC_READ_BYTES, 19959: POLL_WAIT_MICROS, 19959: 19959: 19959: PREFETCHED_BYTES_DISCARDED, 19959: 19959: 19959: MULTIGET_IO_BATCH_SIZE, 19959: 19959: 19959: NUM_LEVEL_READ_PER_MULTIGET, 19959: 19959: 19959: ASYNC_PREFETCH_ABORT_MICROS, 19959: 19959: 19959: 19959: TABLE_OPEN_PREFETCH_TAIL_READ_BYTES, 19959: 19959: HISTOGRAM_ENUM_MAX 19959: }; 19959: 19959: extern const std::vector> HistogramsNameMap; 19959: 19959: struct HistogramData { 19959: double median; 19959: double percentile95; 19959: double percentile99; 19959: double average; 19959: double standard_deviation; 19959: 19959: 19959: double max = 0.0; 19959: uint64_t count = 0; 19959: uint64_t sum = 0; 19959: double min = 0.0; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: enum StatsLevel : uint8_t { 19959: 19959: kDisableAll, 19959: 19959: kExceptTickers = kDisableAll, 19959: 19959: kExceptHistogramOrTimers, 19959: 19959: kExceptTimers, 19959: 19959: 19959: kExceptDetailedTimers, 19959: 19959: 19959: kExceptTimeForMutex, 19959: 19959: 19959: 19959: kAll, 19959: }; 19959: # 720 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 19959: class Statistics : public Customizable { 19959: public: 19959: ~Statistics() override {} 19959: static const char* Type() { return "Statistics"; } 19959: static Status CreateFromString(const ConfigOptions& opts, 19959: const std::string& value, 19959: std::shared_ptr* result); 19959: 19959: 19959: 19959: const char* Name() const override { return ""; } 19959: virtual uint64_t getTickerCount(uint32_t tickerType) const = 0; 19959: virtual void histogramData(uint32_t type, 19959: HistogramData* const data) const = 0; 19959: virtual std::string getHistogramString(uint32_t ) const { return ""; } 19959: virtual void recordTick(uint32_t tickerType, uint64_t count = 1) = 0; 19959: virtual void setTickerCount(uint32_t tickerType, uint64_t count) = 0; 19959: virtual uint64_t getAndResetTickerCount(uint32_t tickerType) = 0; 19959: virtual void reportTimeToHistogram(uint32_t histogramType, uint64_t time) { 19959: if (get_stats_level() <= StatsLevel::kExceptTimers) { 19959: return; 19959: } 19959: recordInHistogram(histogramType, time); 19959: } 19959: 19959: 19959: 19959: virtual void measureTime(uint32_t , uint64_t ) { 19959: 19959: 19959: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 3 4 19959: (static_cast ( 19959: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 19959: false 19959: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 19959: "false" 19959: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 3 4 19959: , "./include/rocksdb/statistics.h", 749, __extension__ __PRETTY_FUNCTION__)) 19959: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 19959: ; 19959: } 19959: virtual void recordInHistogram(uint32_t histogramType, uint64_t time) { 19959: 19959: 19959: 19959: 19959: measureTime(histogramType, time); 19959: } 19959: 19959: 19959: virtual Status Reset() { return Status::NotSupported("Not implemented"); } 19959: 19959: using Customizable::ToString; 19959: 19959: virtual std::string ToString() const { 19959: 19959: return std::string("ToString(): not implemented"); 19959: } 19959: 19959: virtual bool getTickerMap(std::map*) const { 19959: 19959: return false; 19959: } 19959: 19959: 19959: virtual bool HistEnabledForType(uint32_t type) const { 19959: return type < HISTOGRAM_ENUM_MAX; 19959: } 19959: void set_stats_level(StatsLevel sl) { 19959: stats_level_.store(sl, std::memory_order_relaxed); 19959: } 19959: StatsLevel get_stats_level() const { 19959: return stats_level_.load(std::memory_order_relaxed); 19959: } 19959: 19959: private: 19959: std::atomic stats_level_{kExceptDetailedTimers}; 19959: }; 19959: 19959: 19959: std::shared_ptr CreateDBStatistics(); 19959: 19959: } 19959: # 18 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: class HistogramBucketMapper { 19959: public: 19959: HistogramBucketMapper(); 19959: 19959: 19959: size_t IndexForValue(uint64_t value) const; 19959: 19959: 19959: size_t BucketCount() const { return bucketValues_.size(); } 19959: 19959: uint64_t LastValue() const { return maxBucketValue_; } 19959: 19959: uint64_t FirstValue() const { return minBucketValue_; } 19959: 19959: uint64_t BucketLimit(const size_t bucketNumber) const { 19959: 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 3 4 19959: (static_cast ( 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 19959: bucketNumber < BucketCount() 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 19959: "bucketNumber < BucketCount()" 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 3 4 19959: , "./monitoring/histogram.h", 36, __extension__ __PRETTY_FUNCTION__)) 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 19959: ; 19959: return bucketValues_[bucketNumber]; 19959: } 19959: 19959: private: 19959: std::vector bucketValues_; 19959: uint64_t maxBucketValue_; 19959: uint64_t minBucketValue_; 19959: }; 19959: 19959: struct HistogramStat { 19959: HistogramStat(); 19959: ~HistogramStat() {} 19959: 19959: HistogramStat(const HistogramStat&) = delete; 19959: HistogramStat& operator=(const HistogramStat&) = delete; 19959: 19959: void Clear(); 19959: bool Empty() const; 19959: void Add(uint64_t value); 19959: void Merge(const HistogramStat& other); 19959: 19959: inline uint64_t min() const { return min_.load(std::memory_order_relaxed); } 19959: inline uint64_t max() const { return max_.load(std::memory_order_relaxed); } 19959: inline uint64_t num() const { return num_.load(std::memory_order_relaxed); } 19959: inline uint64_t sum() const { return sum_.load(std::memory_order_relaxed); } 19959: inline uint64_t sum_squares() const { 19959: return sum_squares_.load(std::memory_order_relaxed); 19959: } 19959: inline uint64_t bucket_at(size_t b) const { 19959: return buckets_[b].load(std::memory_order_relaxed); 19959: } 19959: 19959: double Median() const; 19959: double Percentile(double p) const; 19959: double Average() const; 19959: double StandardDeviation() const; 19959: void Data(HistogramData* const data) const; 19959: std::string ToString() const; 19959: 19959: 19959: 19959: 19959: std::atomic_uint_fast64_t min_; 19959: std::atomic_uint_fast64_t max_; 19959: std::atomic_uint_fast64_t num_; 19959: std::atomic_uint_fast64_t sum_; 19959: std::atomic_uint_fast64_t sum_squares_; 19959: std::atomic_uint_fast64_t buckets_[109]; 19959: const uint64_t num_buckets_; 19959: }; 19959: 19959: class Histogram { 19959: public: 19959: Histogram() {} 19959: virtual ~Histogram(){}; 19959: 19959: virtual void Clear() = 0; 19959: virtual bool Empty() const = 0; 19959: virtual void Add(uint64_t value) = 0; 19959: virtual void Merge(const Histogram&) = 0; 19959: 19959: virtual std::string ToString() const = 0; 19959: virtual const char* Name() const = 0; 19959: virtual uint64_t min() const = 0; 19959: virtual uint64_t max() const = 0; 19959: virtual uint64_t num() const = 0; 19959: virtual double Median() const = 0; 19959: virtual double Percentile(double p) const = 0; 19959: virtual double Average() const = 0; 19959: virtual double StandardDeviation() const = 0; 19959: virtual void Data(HistogramData* const data) const = 0; 19959: }; 19959: 19959: class HistogramImpl : public Histogram { 19959: public: 19959: HistogramImpl() { Clear(); } 19959: 19959: HistogramImpl(const HistogramImpl&) = delete; 19959: HistogramImpl& operator=(const HistogramImpl&) = delete; 19959: 19959: virtual void Clear() override; 19959: virtual bool Empty() const override; 19959: virtual void Add(uint64_t value) override; 19959: virtual void Merge(const Histogram& other) override; 19959: void Merge(const HistogramImpl& other); 19959: 19959: virtual std::string ToString() const override; 19959: virtual const char* Name() const override { return "HistogramImpl"; } 19959: virtual uint64_t min() const override { return stats_.min(); } 19959: virtual uint64_t max() const override { return stats_.max(); } 19959: virtual uint64_t num() const override { return stats_.num(); } 19959: virtual double Median() const override; 19959: virtual double Percentile(double p) const override; 19959: virtual double Average() const override; 19959: virtual double StandardDeviation() const override; 19959: virtual void Data(HistogramData* const data) const override; 19959: 19959: virtual ~HistogramImpl() {} 19959: 19959: inline HistogramStat& TEST_GetStats() { return stats_; } 19959: 19959: private: 19959: HistogramStat stats_; 19959: std::mutex mutex_; 19959: }; 19959: 19959: } 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/likely.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/port/likely.h" 19959: 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 2 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/cassert" 1 3 19959: # 41 "/usr/include/c++/13/cassert" 3 19959: 19959: # 42 "/usr/include/c++/13/cassert" 3 19959: 19959: 19959: # 1 "/usr/include/assert.h" 1 3 4 19959: # 45 "/usr/include/c++/13/cassert" 2 3 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 2 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/assert.h" 1 3 4 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 2 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/lang.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 54 "/build/reproducible-path/rocksdb-8.9.1/port/lang.h" 19959: constexpr bool kMustFreeHeapAllocations = false; 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 2 19959: 19959: 19959: ; 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: template 19959: inline T BottomNBits(T v, int nbits) { 19959: static_assert(std::is_integral_v, "non-integral type"); 19959: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 19959: 19959: # 32 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 19959: (static_cast ( 19959: # 32 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: nbits >= 0 19959: # 32 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 32 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: "nbits >= 0" 19959: # 32 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 19959: , "./util/math.h", 32, __extension__ __PRETTY_FUNCTION__)) 19959: # 32 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: ; 19959: 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 19959: (static_cast ( 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: nbits < int{8 * sizeof(T)} 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: "nbits < int{8 * sizeof(T)}" 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 19959: , "./util/math.h", 33, __extension__ __PRETTY_FUNCTION__)) 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: ; 19959: # 44 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: return static_cast(v & ((T{1} << nbits) - 1)); 19959: } 19959: 19959: 19959: 19959: template 19959: inline int FloorLog2(T v) { 19959: static_assert(std::is_integral_v, "non-integral type"); 19959: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 19959: 19959: # 53 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 19959: (static_cast ( 19959: # 53 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: v > 0 19959: # 53 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 53 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: "v > 0" 19959: # 53 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 19959: , "./util/math.h", 53, __extension__ __PRETTY_FUNCTION__)) 19959: # 53 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: ; 19959: # 74 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 19959: if (sizeof(T) <= sizeof(unsigned int)) { 19959: int lz = __builtin_clz(static_cast(v)); 19959: return int{sizeof(unsigned int)} * 8 - 1 - lz; 19959: } else if (sizeof(T) <= sizeof(unsigned long)) { 19959: int lz = __builtin_clzl(static_cast(v)); 19959: return int{sizeof(unsigned long)} * 8 - 1 - lz; 19959: } else { 19959: int lz = __builtin_clzll(static_cast(v)); 19959: return int{sizeof(unsigned long long)} * 8 - 1 - lz; 19959: } 19959: 19959: } 19959: 19959: 19959: template 19959: constexpr int ConstexprFloorLog2(T v) { 19959: 19959: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 19959: int rv = 0; 19959: while (v > T{1}) { 19959: ++rv; 19959: v >>= 1; 19959: } 19959: return rv; 19959: } 19959: 19959: 19959: template 19959: inline int CountTrailingZeroBits(T v) { 19959: static_assert(std::is_integral_v, "non-integral type"); 19959: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 19959: 19959: # 106 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 19959: (static_cast ( 19959: # 106 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: v != 0 19959: # 106 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 106 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: "v != 0" 19959: # 106 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 19959: , "./util/math.h", 106, __extension__ __PRETTY_FUNCTION__)) 19959: # 106 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: ; 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 19959: if (sizeof(T) <= sizeof(unsigned int)) { 19959: return __builtin_ctz(static_cast(v)); 19959: } else if (sizeof(T) <= sizeof(unsigned long)) { 19959: return __builtin_ctzl(static_cast(v)); 19959: } else { 19959: return __builtin_ctzll(static_cast(v)); 19959: } 19959: 19959: } 19959: # 172 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: template 19959: inline int BitsSetToOne(T v) { 19959: static_assert(std::is_integral_v, "non-integral type"); 19959: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 19959: # 209 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 19959: if (sizeof(T) < sizeof(unsigned int)) { 19959: 19959: constexpr auto mm = 8 * sizeof(unsigned int) - 1; 19959: 19959: constexpr unsigned int m = (1U << ((8 * sizeof(T)) & mm)) - 1; 19959: return __builtin_popcount(static_cast(v) & m); 19959: } else if (sizeof(T) == sizeof(unsigned int)) { 19959: return __builtin_popcount(static_cast(v)); 19959: } else if (sizeof(T) <= sizeof(unsigned long)) { 19959: return __builtin_popcountl(static_cast(v)); 19959: } else { 19959: return __builtin_popcountll(static_cast(v)); 19959: } 19959: 19959: } 19959: 19959: template 19959: inline int BitParity(T v) { 19959: static_assert(std::is_integral_v, "non-integral type"); 19959: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 19959: 19959: 19959: 19959: 19959: 19959: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 19959: if (sizeof(T) <= sizeof(unsigned int)) { 19959: 19959: return __builtin_parity(static_cast(v)); 19959: } else if (sizeof(T) <= sizeof(unsigned long)) { 19959: return __builtin_parityl(static_cast(v)); 19959: } else { 19959: return __builtin_parityll(static_cast(v)); 19959: } 19959: 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: inline T EndianSwapValue(T v) { 19959: static_assert(std::is_integral_v, "non-integral type"); 19959: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 19959: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: if (sizeof(T) == 2) { 19959: return static_cast(__builtin_bswap16(static_cast(v))); 19959: } else if (sizeof(T) == 4) { 19959: return static_cast(__builtin_bswap32(static_cast(v))); 19959: } else if (sizeof(T) == 8) { 19959: return static_cast(__builtin_bswap64(static_cast(v))); 19959: } 19959: 19959: 19959: T ret_val = 0; 19959: for (std::size_t i = 0; i < sizeof(T); ++i) { 19959: ret_val |= ((v >> (8 * i)) & 0xff) << (8 * (sizeof(T) - 1 - i)); 19959: } 19959: return ret_val; 19959: } 19959: 19959: 19959: template 19959: inline T ReverseBits(T v) { 19959: static_assert(std::is_integral_v, "non-integral type"); 19959: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 19959: 19959: T r = EndianSwapValue(v); 19959: const T kHighestByte = T{1} << ((sizeof(T) - 1) * 8); 19959: const T kEveryByte = kHighestByte | (kHighestByte / 255); 19959: 19959: r = ((r & (kEveryByte * 0x0f)) << 4) | ((r >> 4) & (kEveryByte * 0x0f)); 19959: r = ((r & (kEveryByte * 0x33)) << 2) | ((r >> 2) & (kEveryByte * 0x33)); 19959: r = ((r & (kEveryByte * 0x55)) << 1) | ((r >> 1) & (kEveryByte * 0x55)); 19959: 19959: return r; 19959: } 19959: # 317 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 19959: template 19959: inline T DownwardInvolution(T v) { 19959: static_assert(std::is_integral_v, "non-integral type"); 19959: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 19959: static_assert(sizeof(T) <= 8, "only supported up to 64 bits"); 19959: 19959: uint64_t r = static_cast(v); 19959: if constexpr (sizeof(T) > 4) { 19959: r ^= r >> 32; 19959: } 19959: if constexpr (sizeof(T) > 2) { 19959: r ^= (r & 0xffff0000ffff0000U) >> 16; 19959: } 19959: if constexpr (sizeof(T) > 1) { 19959: r ^= (r & 0xff00ff00ff00ff00U) >> 8; 19959: } 19959: r ^= (r & 0xf0f0f0f0f0f0f0f0U) >> 4; 19959: r ^= (r & 0xccccccccccccccccU) >> 2; 19959: r ^= (r & 0xaaaaaaaaaaaaaaaaU) >> 1; 19959: return static_cast(r); 19959: } 19959: 19959: 19959: 19959: template 19959: inline std::conditional_t BitwiseAnd(A a, B b) { 19959: static_assert(std::is_integral_v, "non-integral type"); 19959: static_assert(std::is_integral_v, "non-integral type"); 19959: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 19959: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 19959: using Smaller = std::conditional_t; 19959: return static_cast(a & b); 19959: } 19959: 19959: } 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/random.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/util/random.h" 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/random" 1 3 19959: # 32 "/usr/include/c++/13/random" 3 19959: 19959: # 33 "/usr/include/c++/13/random" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/cmath" 1 3 19959: # 39 "/usr/include/c++/13/cmath" 3 19959: 19959: # 40 "/usr/include/c++/13/cmath" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/math.h" 1 3 4 19959: # 27 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 19959: # 28 "/usr/include/math.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 34 "/usr/include/math.h" 3 4 19959: extern "C" { 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 1 3 4 19959: # 27 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/libm-simd-decl-stubs.h" 1 3 4 19959: # 28 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 2 3 4 19959: # 41 "/usr/include/math.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 19959: # 44 "/usr/include/math.h" 2 3 4 19959: # 152 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/flt-eval-method.h" 1 3 4 19959: # 153 "/usr/include/math.h" 2 3 4 19959: # 163 "/usr/include/math.h" 3 4 19959: typedef float float_t; 19959: typedef double double_t; 19959: # 204 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-logb.h" 1 3 4 19959: # 205 "/usr/include/math.h" 2 3 4 19959: # 247 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-fast.h" 1 3 4 19959: # 248 "/usr/include/math.h" 2 3 4 19959: 19959: 19959: 19959: enum 19959: { 19959: FP_INT_UPWARD = 19959: 19959: 0, 19959: FP_INT_DOWNWARD = 19959: 19959: 1, 19959: FP_INT_TOWARDZERO = 19959: 19959: 2, 19959: FP_INT_TONEARESTFROMZERO = 19959: 19959: 3, 19959: FP_INT_TONEAREST = 19959: 19959: 4, 19959: }; 19959: # 312 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 19959: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 19959: extern int __fpclassify (double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern int __signbit (double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern int __isinf (double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern int __finite (double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern int __isnan (double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern int __iseqsig (double __x, double __y) noexcept (true); 19959: 19959: 19959: extern int __issignaling (double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: # 313 "/usr/include/math.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 19959: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern double acos (double __x) noexcept (true); extern double __acos (double __x) noexcept (true); 19959: 19959: extern double asin (double __x) noexcept (true); extern double __asin (double __x) noexcept (true); 19959: 19959: extern double atan (double __x) noexcept (true); extern double __atan (double __x) noexcept (true); 19959: 19959: extern double atan2 (double __y, double __x) noexcept (true); extern double __atan2 (double __y, double __x) noexcept (true); 19959: 19959: 19959: extern double cos (double __x) noexcept (true); extern double __cos (double __x) noexcept (true); 19959: 19959: extern double sin (double __x) noexcept (true); extern double __sin (double __x) noexcept (true); 19959: 19959: extern double tan (double __x) noexcept (true); extern double __tan (double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern double cosh (double __x) noexcept (true); extern double __cosh (double __x) noexcept (true); 19959: 19959: extern double sinh (double __x) noexcept (true); extern double __sinh (double __x) noexcept (true); 19959: 19959: extern double tanh (double __x) noexcept (true); extern double __tanh (double __x) noexcept (true); 19959: 19959: 19959: 19959: extern void sincos (double __x, double *__sinx, double *__cosx) noexcept (true); extern void __sincos (double __x, double *__sinx, double *__cosx) noexcept (true) 19959: ; 19959: 19959: 19959: 19959: 19959: extern double acosh (double __x) noexcept (true); extern double __acosh (double __x) noexcept (true); 19959: 19959: extern double asinh (double __x) noexcept (true); extern double __asinh (double __x) noexcept (true); 19959: 19959: extern double atanh (double __x) noexcept (true); extern double __atanh (double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern double exp (double __x) noexcept (true); extern double __exp (double __x) noexcept (true); 19959: 19959: 19959: extern double frexp (double __x, int *__exponent) noexcept (true); extern double __frexp (double __x, int *__exponent) noexcept (true); 19959: 19959: 19959: extern double ldexp (double __x, int __exponent) noexcept (true); extern double __ldexp (double __x, int __exponent) noexcept (true); 19959: 19959: 19959: extern double log (double __x) noexcept (true); extern double __log (double __x) noexcept (true); 19959: 19959: 19959: extern double log10 (double __x) noexcept (true); extern double __log10 (double __x) noexcept (true); 19959: 19959: 19959: extern double modf (double __x, double *__iptr) noexcept (true); extern double __modf (double __x, double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: 19959: extern double exp10 (double __x) noexcept (true); extern double __exp10 (double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern double expm1 (double __x) noexcept (true); extern double __expm1 (double __x) noexcept (true); 19959: 19959: 19959: extern double log1p (double __x) noexcept (true); extern double __log1p (double __x) noexcept (true); 19959: 19959: 19959: extern double logb (double __x) noexcept (true); extern double __logb (double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern double exp2 (double __x) noexcept (true); extern double __exp2 (double __x) noexcept (true); 19959: 19959: 19959: extern double log2 (double __x) noexcept (true); extern double __log2 (double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern double pow (double __x, double __y) noexcept (true); extern double __pow (double __x, double __y) noexcept (true); 19959: 19959: 19959: extern double sqrt (double __x) noexcept (true); extern double __sqrt (double __x) noexcept (true); 19959: 19959: 19959: 19959: extern double hypot (double __x, double __y) noexcept (true); extern double __hypot (double __x, double __y) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern double cbrt (double __x) noexcept (true); extern double __cbrt (double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern double ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double __ceil (double __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern double fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double __fabs (double __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern double floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double __floor (double __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern double fmod (double __x, double __y) noexcept (true); extern double __fmod (double __x, double __y) noexcept (true); 19959: # 183 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern int finite (double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern double drem (double __x, double __y) noexcept (true); extern double __drem (double __x, double __y) noexcept (true); 19959: 19959: 19959: 19959: extern double significand (double __x) noexcept (true); extern double __significand (double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern double copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern double nan (const char *__tagb) noexcept (true); extern double __nan (const char *__tagb) noexcept (true); 19959: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern double j0 (double) noexcept (true); extern double __j0 (double) noexcept (true); 19959: extern double j1 (double) noexcept (true); extern double __j1 (double) noexcept (true); 19959: extern double jn (int, double) noexcept (true); extern double __jn (int, double) noexcept (true); 19959: extern double y0 (double) noexcept (true); extern double __y0 (double) noexcept (true); 19959: extern double y1 (double) noexcept (true); extern double __y1 (double) noexcept (true); 19959: extern double yn (int, double) noexcept (true); extern double __yn (int, double) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern double erf (double) noexcept (true); extern double __erf (double) noexcept (true); 19959: extern double erfc (double) noexcept (true); extern double __erfc (double) noexcept (true); 19959: extern double lgamma (double) noexcept (true); extern double __lgamma (double) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern double tgamma (double) noexcept (true); extern double __tgamma (double) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern double gamma (double) noexcept (true); extern double __gamma (double) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern double lgamma_r (double, int *__signgamp) noexcept (true); extern double __lgamma_r (double, int *__signgamp) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern double rint (double __x) noexcept (true); extern double __rint (double __x) noexcept (true); 19959: 19959: 19959: extern double nextafter (double __x, double __y) noexcept (true); extern double __nextafter (double __x, double __y) noexcept (true); 19959: 19959: extern double nexttoward (double __x, long double __y) noexcept (true); extern double __nexttoward (double __x, long double __y) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern double nextdown (double __x) noexcept (true); extern double __nextdown (double __x) noexcept (true); 19959: 19959: extern double nextup (double __x) noexcept (true); extern double __nextup (double __x) noexcept (true); 19959: 19959: 19959: 19959: extern double remainder (double __x, double __y) noexcept (true); extern double __remainder (double __x, double __y) noexcept (true); 19959: 19959: 19959: 19959: extern double scalbn (double __x, int __n) noexcept (true); extern double __scalbn (double __x, int __n) noexcept (true); 19959: 19959: 19959: 19959: extern int ilogb (double __x) noexcept (true); extern int __ilogb (double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern long int llogb (double __x) noexcept (true); extern long int __llogb (double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern double scalbln (double __x, long int __n) noexcept (true); extern double __scalbln (double __x, long int __n) noexcept (true); 19959: 19959: 19959: 19959: extern double nearbyint (double __x) noexcept (true); extern double __nearbyint (double __x) noexcept (true); 19959: 19959: 19959: 19959: extern double round (double __x) noexcept (true) __attribute__ ((__const__)); extern double __round (double __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern double trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double __trunc (double __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern double remquo (double __x, double __y, int *__quo) noexcept (true); extern double __remquo (double __x, double __y, int *__quo) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long int lrint (double __x) noexcept (true); extern long int __lrint (double __x) noexcept (true); 19959: __extension__ 19959: extern long long int llrint (double __x) noexcept (true); extern long long int __llrint (double __x) noexcept (true); 19959: 19959: 19959: 19959: extern long int lround (double __x) noexcept (true); extern long int __lround (double __x) noexcept (true); 19959: __extension__ 19959: extern long long int llround (double __x) noexcept (true); extern long long int __llround (double __x) noexcept (true); 19959: 19959: 19959: 19959: extern double fdim (double __x, double __y) noexcept (true); extern double __fdim (double __x, double __y) noexcept (true); 19959: 19959: 19959: 19959: extern double fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern double fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern double fma (double __x, double __y, double __z) noexcept (true); extern double __fma (double __x, double __y, double __z) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern double roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern double __roundeven (double __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: extern int canonicalize (double *__cx, const double *__x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern double fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern double fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern double fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern double fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern double fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern double fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern double fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern double fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 19959: 19959: extern int totalorder (const double *__x, const double *__y) noexcept (true) 19959: 19959: __attribute__ ((__pure__)); 19959: 19959: 19959: extern int totalordermag (const double *__x, const double *__y) noexcept (true) 19959: 19959: __attribute__ ((__pure__)); 19959: 19959: 19959: extern double getpayload (const double *__x) noexcept (true); extern double __getpayload (const double *__x) noexcept (true); 19959: 19959: 19959: extern int setpayload (double *__x, double __payload) noexcept (true); 19959: 19959: 19959: extern int setpayloadsig (double *__x, double __payload) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern double scalb (double __x, double __n) noexcept (true); extern double __scalb (double __x, double __n) noexcept (true); 19959: # 314 "/usr/include/math.h" 2 3 4 19959: # 329 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 19959: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 19959: extern int __fpclassifyf (float __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern int __signbitf (float __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern int __isinff (float __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern int __finitef (float __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern int __isnanf (float __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern int __iseqsigf (float __x, float __y) noexcept (true); 19959: 19959: 19959: extern int __issignalingf (float __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: # 330 "/usr/include/math.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 19959: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern float acosf (float __x) noexcept (true); extern float __acosf (float __x) noexcept (true); 19959: 19959: extern float asinf (float __x) noexcept (true); extern float __asinf (float __x) noexcept (true); 19959: 19959: extern float atanf (float __x) noexcept (true); extern float __atanf (float __x) noexcept (true); 19959: 19959: extern float atan2f (float __y, float __x) noexcept (true); extern float __atan2f (float __y, float __x) noexcept (true); 19959: 19959: 19959: extern float cosf (float __x) noexcept (true); extern float __cosf (float __x) noexcept (true); 19959: 19959: extern float sinf (float __x) noexcept (true); extern float __sinf (float __x) noexcept (true); 19959: 19959: extern float tanf (float __x) noexcept (true); extern float __tanf (float __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern float coshf (float __x) noexcept (true); extern float __coshf (float __x) noexcept (true); 19959: 19959: extern float sinhf (float __x) noexcept (true); extern float __sinhf (float __x) noexcept (true); 19959: 19959: extern float tanhf (float __x) noexcept (true); extern float __tanhf (float __x) noexcept (true); 19959: 19959: 19959: 19959: extern void sincosf (float __x, float *__sinx, float *__cosx) noexcept (true); extern void __sincosf (float __x, float *__sinx, float *__cosx) noexcept (true) 19959: ; 19959: 19959: 19959: 19959: 19959: extern float acoshf (float __x) noexcept (true); extern float __acoshf (float __x) noexcept (true); 19959: 19959: extern float asinhf (float __x) noexcept (true); extern float __asinhf (float __x) noexcept (true); 19959: 19959: extern float atanhf (float __x) noexcept (true); extern float __atanhf (float __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern float expf (float __x) noexcept (true); extern float __expf (float __x) noexcept (true); 19959: 19959: 19959: extern float frexpf (float __x, int *__exponent) noexcept (true); extern float __frexpf (float __x, int *__exponent) noexcept (true); 19959: 19959: 19959: extern float ldexpf (float __x, int __exponent) noexcept (true); extern float __ldexpf (float __x, int __exponent) noexcept (true); 19959: 19959: 19959: extern float logf (float __x) noexcept (true); extern float __logf (float __x) noexcept (true); 19959: 19959: 19959: extern float log10f (float __x) noexcept (true); extern float __log10f (float __x) noexcept (true); 19959: 19959: 19959: extern float modff (float __x, float *__iptr) noexcept (true); extern float __modff (float __x, float *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: 19959: extern float exp10f (float __x) noexcept (true); extern float __exp10f (float __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern float expm1f (float __x) noexcept (true); extern float __expm1f (float __x) noexcept (true); 19959: 19959: 19959: extern float log1pf (float __x) noexcept (true); extern float __log1pf (float __x) noexcept (true); 19959: 19959: 19959: extern float logbf (float __x) noexcept (true); extern float __logbf (float __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern float exp2f (float __x) noexcept (true); extern float __exp2f (float __x) noexcept (true); 19959: 19959: 19959: extern float log2f (float __x) noexcept (true); extern float __log2f (float __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern float powf (float __x, float __y) noexcept (true); extern float __powf (float __x, float __y) noexcept (true); 19959: 19959: 19959: extern float sqrtf (float __x) noexcept (true); extern float __sqrtf (float __x) noexcept (true); 19959: 19959: 19959: 19959: extern float hypotf (float __x, float __y) noexcept (true); extern float __hypotf (float __x, float __y) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern float cbrtf (float __x) noexcept (true); extern float __cbrtf (float __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern float ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __ceilf (float __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern float fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __fabsf (float __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern float floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __floorf (float __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern float fmodf (float __x, float __y) noexcept (true); extern float __fmodf (float __x, float __y) noexcept (true); 19959: # 177 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern int isinff (float __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern int finitef (float __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern float dremf (float __x, float __y) noexcept (true); extern float __dremf (float __x, float __y) noexcept (true); 19959: 19959: 19959: 19959: extern float significandf (float __x) noexcept (true); extern float __significandf (float __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern float copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern float nanf (const char *__tagb) noexcept (true); extern float __nanf (const char *__tagb) noexcept (true); 19959: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern int isnanf (float __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: 19959: extern float j0f (float) noexcept (true); extern float __j0f (float) noexcept (true); 19959: extern float j1f (float) noexcept (true); extern float __j1f (float) noexcept (true); 19959: extern float jnf (int, float) noexcept (true); extern float __jnf (int, float) noexcept (true); 19959: extern float y0f (float) noexcept (true); extern float __y0f (float) noexcept (true); 19959: extern float y1f (float) noexcept (true); extern float __y1f (float) noexcept (true); 19959: extern float ynf (int, float) noexcept (true); extern float __ynf (int, float) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern float erff (float) noexcept (true); extern float __erff (float) noexcept (true); 19959: extern float erfcf (float) noexcept (true); extern float __erfcf (float) noexcept (true); 19959: extern float lgammaf (float) noexcept (true); extern float __lgammaf (float) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern float tgammaf (float) noexcept (true); extern float __tgammaf (float) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern float gammaf (float) noexcept (true); extern float __gammaf (float) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern float lgammaf_r (float, int *__signgamp) noexcept (true); extern float __lgammaf_r (float, int *__signgamp) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern float rintf (float __x) noexcept (true); extern float __rintf (float __x) noexcept (true); 19959: 19959: 19959: extern float nextafterf (float __x, float __y) noexcept (true); extern float __nextafterf (float __x, float __y) noexcept (true); 19959: 19959: extern float nexttowardf (float __x, long double __y) noexcept (true); extern float __nexttowardf (float __x, long double __y) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern float nextdownf (float __x) noexcept (true); extern float __nextdownf (float __x) noexcept (true); 19959: 19959: extern float nextupf (float __x) noexcept (true); extern float __nextupf (float __x) noexcept (true); 19959: 19959: 19959: 19959: extern float remainderf (float __x, float __y) noexcept (true); extern float __remainderf (float __x, float __y) noexcept (true); 19959: 19959: 19959: 19959: extern float scalbnf (float __x, int __n) noexcept (true); extern float __scalbnf (float __x, int __n) noexcept (true); 19959: 19959: 19959: 19959: extern int ilogbf (float __x) noexcept (true); extern int __ilogbf (float __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern long int llogbf (float __x) noexcept (true); extern long int __llogbf (float __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern float scalblnf (float __x, long int __n) noexcept (true); extern float __scalblnf (float __x, long int __n) noexcept (true); 19959: 19959: 19959: 19959: extern float nearbyintf (float __x) noexcept (true); extern float __nearbyintf (float __x) noexcept (true); 19959: 19959: 19959: 19959: extern float roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundf (float __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern float truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __truncf (float __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern float remquof (float __x, float __y, int *__quo) noexcept (true); extern float __remquof (float __x, float __y, int *__quo) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long int lrintf (float __x) noexcept (true); extern long int __lrintf (float __x) noexcept (true); 19959: __extension__ 19959: extern long long int llrintf (float __x) noexcept (true); extern long long int __llrintf (float __x) noexcept (true); 19959: 19959: 19959: 19959: extern long int lroundf (float __x) noexcept (true); extern long int __lroundf (float __x) noexcept (true); 19959: __extension__ 19959: extern long long int llroundf (float __x) noexcept (true); extern long long int __llroundf (float __x) noexcept (true); 19959: 19959: 19959: 19959: extern float fdimf (float __x, float __y) noexcept (true); extern float __fdimf (float __x, float __y) noexcept (true); 19959: 19959: 19959: 19959: extern float fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern float fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern float fmaf (float __x, float __y, float __z) noexcept (true); extern float __fmaf (float __x, float __y, float __z) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern float roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: extern int canonicalizef (float *__cx, const float *__x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern float fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern float fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern float fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern float fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern float fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern float fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern float fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern float fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 19959: 19959: extern int totalorderf (const float *__x, const float *__y) noexcept (true) 19959: 19959: __attribute__ ((__pure__)); 19959: 19959: 19959: extern int totalordermagf (const float *__x, const float *__y) noexcept (true) 19959: 19959: __attribute__ ((__pure__)); 19959: 19959: 19959: extern float getpayloadf (const float *__x) noexcept (true); extern float __getpayloadf (const float *__x) noexcept (true); 19959: 19959: 19959: extern int setpayloadf (float *__x, float __payload) noexcept (true); 19959: 19959: 19959: extern int setpayloadsigf (float *__x, float __payload) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern float scalbf (float __x, float __n) noexcept (true); extern float __scalbf (float __x, float __n) noexcept (true); 19959: # 331 "/usr/include/math.h" 2 3 4 19959: # 398 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 19959: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 19959: extern int __fpclassifyl (long double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern int __signbitl (long double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern int __isinfl (long double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern int __finitel (long double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern int __isnanl (long double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern int __iseqsigl (long double __x, long double __y) noexcept (true); 19959: 19959: 19959: extern int __issignalingl (long double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: # 399 "/usr/include/math.h" 2 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 19959: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern long double acosl (long double __x) noexcept (true); extern long double __acosl (long double __x) noexcept (true); 19959: 19959: extern long double asinl (long double __x) noexcept (true); extern long double __asinl (long double __x) noexcept (true); 19959: 19959: extern long double atanl (long double __x) noexcept (true); extern long double __atanl (long double __x) noexcept (true); 19959: 19959: extern long double atan2l (long double __y, long double __x) noexcept (true); extern long double __atan2l (long double __y, long double __x) noexcept (true); 19959: 19959: 19959: extern long double cosl (long double __x) noexcept (true); extern long double __cosl (long double __x) noexcept (true); 19959: 19959: extern long double sinl (long double __x) noexcept (true); extern long double __sinl (long double __x) noexcept (true); 19959: 19959: extern long double tanl (long double __x) noexcept (true); extern long double __tanl (long double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern long double coshl (long double __x) noexcept (true); extern long double __coshl (long double __x) noexcept (true); 19959: 19959: extern long double sinhl (long double __x) noexcept (true); extern long double __sinhl (long double __x) noexcept (true); 19959: 19959: extern long double tanhl (long double __x) noexcept (true); extern long double __tanhl (long double __x) noexcept (true); 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 19959: extern long double acoshl (long double __x) noexcept (true); extern long double __acoshl (long double __x) noexcept (true); 19959: 19959: extern long double asinhl (long double __x) noexcept (true); extern long double __asinhl (long double __x) noexcept (true); 19959: 19959: extern long double atanhl (long double __x) noexcept (true); extern long double __atanhl (long double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern long double expl (long double __x) noexcept (true); extern long double __expl (long double __x) noexcept (true); 19959: 19959: 19959: extern long double frexpl (long double __x, int *__exponent) noexcept (true); extern long double __frexpl (long double __x, int *__exponent) noexcept (true); 19959: 19959: 19959: extern long double ldexpl (long double __x, int __exponent) noexcept (true); extern long double __ldexpl (long double __x, int __exponent) noexcept (true); 19959: 19959: 19959: extern long double logl (long double __x) noexcept (true); extern long double __logl (long double __x) noexcept (true); 19959: 19959: 19959: extern long double log10l (long double __x) noexcept (true); extern long double __log10l (long double __x) noexcept (true); 19959: 19959: 19959: 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))); 19959: 19959: 19959: 19959: extern long double exp10l (long double __x) noexcept (true); extern long double __exp10l (long double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern long double expm1l (long double __x) noexcept (true); extern long double __expm1l (long double __x) noexcept (true); 19959: 19959: 19959: extern long double log1pl (long double __x) noexcept (true); extern long double __log1pl (long double __x) noexcept (true); 19959: 19959: 19959: extern long double logbl (long double __x) noexcept (true); extern long double __logbl (long double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern long double exp2l (long double __x) noexcept (true); extern long double __exp2l (long double __x) noexcept (true); 19959: 19959: 19959: extern long double log2l (long double __x) noexcept (true); extern long double __log2l (long double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long double powl (long double __x, long double __y) noexcept (true); extern long double __powl (long double __x, long double __y) noexcept (true); 19959: 19959: 19959: extern long double sqrtl (long double __x) noexcept (true); extern long double __sqrtl (long double __x) noexcept (true); 19959: 19959: 19959: 19959: extern long double hypotl (long double __x, long double __y) noexcept (true); extern long double __hypotl (long double __x, long double __y) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern long double cbrtl (long double __x) noexcept (true); extern long double __cbrtl (long double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long double ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __ceill (long double __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern long double fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern long double floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __floorl (long double __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern long double fmodl (long double __x, long double __y) noexcept (true); extern long double __fmodl (long double __x, long double __y) noexcept (true); 19959: # 177 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern int isinfl (long double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern int finitel (long double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: extern long double dreml (long double __x, long double __y) noexcept (true); extern long double __dreml (long double __x, long double __y) noexcept (true); 19959: 19959: 19959: 19959: extern long double significandl (long double __x) noexcept (true); extern long double __significandl (long double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 19959: 19959: extern long double nanl (const char *__tagb) noexcept (true); extern long double __nanl (const char *__tagb) noexcept (true); 19959: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern int isnanl (long double __value) noexcept (true) 19959: __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: 19959: extern long double j0l (long double) noexcept (true); extern long double __j0l (long double) noexcept (true); 19959: extern long double j1l (long double) noexcept (true); extern long double __j1l (long double) noexcept (true); 19959: extern long double jnl (int, long double) noexcept (true); extern long double __jnl (int, long double) noexcept (true); 19959: extern long double y0l (long double) noexcept (true); extern long double __y0l (long double) noexcept (true); 19959: extern long double y1l (long double) noexcept (true); extern long double __y1l (long double) noexcept (true); 19959: extern long double ynl (int, long double) noexcept (true); extern long double __ynl (int, long double) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern long double erfl (long double) noexcept (true); extern long double __erfl (long double) noexcept (true); 19959: extern long double erfcl (long double) noexcept (true); extern long double __erfcl (long double) noexcept (true); 19959: extern long double lgammal (long double) noexcept (true); extern long double __lgammal (long double) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern long double tgammal (long double) noexcept (true); extern long double __tgammal (long double) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern long double gammal (long double) noexcept (true); extern long double __gammal (long double) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long double lgammal_r (long double, int *__signgamp) noexcept (true); extern long double __lgammal_r (long double, int *__signgamp) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long double rintl (long double __x) noexcept (true); extern long double __rintl (long double __x) noexcept (true); 19959: 19959: 19959: extern long double nextafterl (long double __x, long double __y) noexcept (true); extern long double __nextafterl (long double __x, long double __y) noexcept (true); 19959: 19959: extern long double nexttowardl (long double __x, long double __y) noexcept (true); extern long double __nexttowardl (long double __x, long double __y) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern long double nextdownl (long double __x) noexcept (true); extern long double __nextdownl (long double __x) noexcept (true); 19959: 19959: extern long double nextupl (long double __x) noexcept (true); extern long double __nextupl (long double __x) noexcept (true); 19959: 19959: 19959: 19959: extern long double remainderl (long double __x, long double __y) noexcept (true); extern long double __remainderl (long double __x, long double __y) noexcept (true); 19959: 19959: 19959: 19959: extern long double scalbnl (long double __x, int __n) noexcept (true); extern long double __scalbnl (long double __x, int __n) noexcept (true); 19959: 19959: 19959: 19959: extern int ilogbl (long double __x) noexcept (true); extern int __ilogbl (long double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern long int llogbl (long double __x) noexcept (true); extern long int __llogbl (long double __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern long double scalblnl (long double __x, long int __n) noexcept (true); extern long double __scalblnl (long double __x, long int __n) noexcept (true); 19959: 19959: 19959: 19959: extern long double nearbyintl (long double __x) noexcept (true); extern long double __nearbyintl (long double __x) noexcept (true); 19959: 19959: 19959: 19959: extern long double roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundl (long double __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern long double truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __truncl (long double __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: 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); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long int lrintl (long double __x) noexcept (true); extern long int __lrintl (long double __x) noexcept (true); 19959: __extension__ 19959: extern long long int llrintl (long double __x) noexcept (true); extern long long int __llrintl (long double __x) noexcept (true); 19959: 19959: 19959: 19959: extern long int lroundl (long double __x) noexcept (true); extern long int __lroundl (long double __x) noexcept (true); 19959: __extension__ 19959: extern long long int llroundl (long double __x) noexcept (true); extern long long int __llroundl (long double __x) noexcept (true); 19959: 19959: 19959: 19959: extern long double fdiml (long double __x, long double __y) noexcept (true); extern long double __fdiml (long double __x, long double __y) noexcept (true); 19959: 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 19959: 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); 19959: 19959: 19959: 19959: 19959: extern long double roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: extern int canonicalizel (long double *__cx, const long double *__x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 19959: 19959: extern int totalorderl (const long double *__x, const long double *__y) noexcept (true) 19959: 19959: __attribute__ ((__pure__)); 19959: 19959: 19959: extern int totalordermagl (const long double *__x, const long double *__y) noexcept (true) 19959: 19959: __attribute__ ((__pure__)); 19959: 19959: 19959: extern long double getpayloadl (const long double *__x) noexcept (true); extern long double __getpayloadl (const long double *__x) noexcept (true); 19959: 19959: 19959: extern int setpayloadl (long double *__x, long double __payload) noexcept (true); 19959: 19959: 19959: extern int setpayloadsigl (long double *__x, long double __payload) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long double scalbl (long double __x, long double __n) noexcept (true); extern long double __scalbl (long double __x, long double __n) noexcept (true); 19959: # 400 "/usr/include/math.h" 2 3 4 19959: # 450 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 19959: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true); 19959: 19959: extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true); 19959: 19959: extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true); 19959: 19959: extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); 19959: 19959: 19959: extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true); 19959: 19959: extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true); 19959: 19959: extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true); 19959: 19959: extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true); 19959: 19959: extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true) 19959: ; 19959: 19959: 19959: 19959: 19959: extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true); 19959: 19959: extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true); 19959: 19959: extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true); 19959: 19959: 19959: extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true); 19959: 19959: 19959: extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: 19959: extern _Float32 exp10f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10f32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32 expm1f32 (_Float32 __x) noexcept (true); extern _Float32 __expm1f32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: extern _Float32 log1pf32 (_Float32 __x) noexcept (true); extern _Float32 __log1pf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: extern _Float32 logbf32 (_Float32 __x) noexcept (true); extern _Float32 __logbf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32 exp2f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2f32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: extern _Float32 log2f32 (_Float32 __x) noexcept (true); extern _Float32 __log2f32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32 powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) noexcept (true); 19959: 19959: 19959: extern _Float32 sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __sqrtf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32 cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 __cbrtf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32 ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32 fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32 floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); 19959: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern _Float32 nanf32 (const char *__tagb) noexcept (true); extern _Float32 __nanf32 (const char *__tagb) noexcept (true); 19959: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern _Float32 j0f32 (_Float32) noexcept (true); extern _Float32 __j0f32 (_Float32) noexcept (true); 19959: extern _Float32 j1f32 (_Float32) noexcept (true); extern _Float32 __j1f32 (_Float32) noexcept (true); 19959: extern _Float32 jnf32 (int, _Float32) noexcept (true); extern _Float32 __jnf32 (int, _Float32) noexcept (true); 19959: extern _Float32 y0f32 (_Float32) noexcept (true); extern _Float32 __y0f32 (_Float32) noexcept (true); 19959: extern _Float32 y1f32 (_Float32) noexcept (true); extern _Float32 __y1f32 (_Float32) noexcept (true); 19959: extern _Float32 ynf32 (int, _Float32) noexcept (true); extern _Float32 __ynf32 (int, _Float32) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32 erff32 (_Float32) noexcept (true); extern _Float32 __erff32 (_Float32) noexcept (true); 19959: extern _Float32 erfcf32 (_Float32) noexcept (true); extern _Float32 __erfcf32 (_Float32) noexcept (true); 19959: extern _Float32 lgammaf32 (_Float32) noexcept (true); extern _Float32 __lgammaf32 (_Float32) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32 tgammaf32 (_Float32) noexcept (true); extern _Float32 __tgammaf32 (_Float32) noexcept (true); 19959: # 252 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern _Float32 lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32 rintf32 (_Float32 __x) noexcept (true); extern _Float32 __rintf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32 nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 __nextdownf32 (_Float32 __x) noexcept (true); 19959: 19959: extern _Float32 nextupf32 (_Float32 __x) noexcept (true); extern _Float32 __nextupf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32 scalbnf32 (_Float32 __x, int __n) noexcept (true); extern _Float32 __scalbnf32 (_Float32 __x, int __n) noexcept (true); 19959: 19959: 19959: 19959: extern int ilogbf32 (_Float32 __x) noexcept (true); extern int __ilogbf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern long int llogbf32 (_Float32 __x) noexcept (true); extern long int __llogbf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32 scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32 nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 __nearbyintf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32 roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern _Float32 truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long int lrintf32 (_Float32 __x) noexcept (true); extern long int __lrintf32 (_Float32 __x) noexcept (true); 19959: __extension__ 19959: extern long long int llrintf32 (_Float32 __x) noexcept (true); extern long long int __llrintf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: extern long int lroundf32 (_Float32 __x) noexcept (true); extern long int __lroundf32 (_Float32 __x) noexcept (true); 19959: __extension__ 19959: extern long long int llroundf32 (_Float32 __x) noexcept (true); extern long long int __llroundf32 (_Float32 __x) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32 fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32 roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern _Float32 fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32 fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32 fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32 fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32 fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32 fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 19959: 19959: extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 19959: 19959: __attribute__ ((__pure__)); 19959: 19959: 19959: extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 19959: 19959: __attribute__ ((__pure__)); 19959: 19959: 19959: extern _Float32 getpayloadf32 (const _Float32 *__x) noexcept (true); extern _Float32 __getpayloadf32 (const _Float32 *__x) noexcept (true); 19959: 19959: 19959: extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 19959: 19959: 19959: extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 19959: # 451 "/usr/include/math.h" 2 3 4 19959: # 467 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 19959: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern _Float64 acosf64 (_Float64 __x) noexcept (true); extern _Float64 __acosf64 (_Float64 __x) noexcept (true); 19959: 19959: extern _Float64 asinf64 (_Float64 __x) noexcept (true); extern _Float64 __asinf64 (_Float64 __x) noexcept (true); 19959: 19959: extern _Float64 atanf64 (_Float64 __x) noexcept (true); extern _Float64 __atanf64 (_Float64 __x) noexcept (true); 19959: 19959: extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); 19959: 19959: 19959: extern _Float64 cosf64 (_Float64 __x) noexcept (true); extern _Float64 __cosf64 (_Float64 __x) noexcept (true); 19959: 19959: extern _Float64 sinf64 (_Float64 __x) noexcept (true); extern _Float64 __sinf64 (_Float64 __x) noexcept (true); 19959: 19959: extern _Float64 tanf64 (_Float64 __x) noexcept (true); extern _Float64 __tanf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float64 coshf64 (_Float64 __x) noexcept (true); extern _Float64 __coshf64 (_Float64 __x) noexcept (true); 19959: 19959: extern _Float64 sinhf64 (_Float64 __x) noexcept (true); extern _Float64 __sinhf64 (_Float64 __x) noexcept (true); 19959: 19959: extern _Float64 tanhf64 (_Float64 __x) noexcept (true); extern _Float64 __tanhf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true) 19959: ; 19959: 19959: 19959: 19959: 19959: extern _Float64 acoshf64 (_Float64 __x) noexcept (true); extern _Float64 __acoshf64 (_Float64 __x) noexcept (true); 19959: 19959: extern _Float64 asinhf64 (_Float64 __x) noexcept (true); extern _Float64 __asinhf64 (_Float64 __x) noexcept (true); 19959: 19959: extern _Float64 atanhf64 (_Float64 __x) noexcept (true); extern _Float64 __atanhf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern _Float64 expf64 (_Float64 __x) noexcept (true); extern _Float64 __expf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: extern _Float64 frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) noexcept (true); 19959: 19959: 19959: extern _Float64 ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) noexcept (true); 19959: 19959: 19959: extern _Float64 logf64 (_Float64 __x) noexcept (true); extern _Float64 __logf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: extern _Float64 log10f64 (_Float64 __x) noexcept (true); extern _Float64 __log10f64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: 19959: extern _Float64 exp10f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10f64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float64 expm1f64 (_Float64 __x) noexcept (true); extern _Float64 __expm1f64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: extern _Float64 log1pf64 (_Float64 __x) noexcept (true); extern _Float64 __log1pf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: extern _Float64 logbf64 (_Float64 __x) noexcept (true); extern _Float64 __logbf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float64 exp2f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2f64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: extern _Float64 log2f64 (_Float64 __x) noexcept (true); extern _Float64 __log2f64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float64 powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: 19959: 19959: extern _Float64 sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __sqrtf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float64 cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 __cbrtf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float64 ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float64 fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float64 floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern _Float64 nanf64 (const char *__tagb) noexcept (true); extern _Float64 __nanf64 (const char *__tagb) noexcept (true); 19959: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern _Float64 j0f64 (_Float64) noexcept (true); extern _Float64 __j0f64 (_Float64) noexcept (true); 19959: extern _Float64 j1f64 (_Float64) noexcept (true); extern _Float64 __j1f64 (_Float64) noexcept (true); 19959: extern _Float64 jnf64 (int, _Float64) noexcept (true); extern _Float64 __jnf64 (int, _Float64) noexcept (true); 19959: extern _Float64 y0f64 (_Float64) noexcept (true); extern _Float64 __y0f64 (_Float64) noexcept (true); 19959: extern _Float64 y1f64 (_Float64) noexcept (true); extern _Float64 __y1f64 (_Float64) noexcept (true); 19959: extern _Float64 ynf64 (int, _Float64) noexcept (true); extern _Float64 __ynf64 (int, _Float64) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern _Float64 erff64 (_Float64) noexcept (true); extern _Float64 __erff64 (_Float64) noexcept (true); 19959: extern _Float64 erfcf64 (_Float64) noexcept (true); extern _Float64 __erfcf64 (_Float64) noexcept (true); 19959: extern _Float64 lgammaf64 (_Float64) noexcept (true); extern _Float64 __lgammaf64 (_Float64) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float64 tgammaf64 (_Float64) noexcept (true); extern _Float64 __tgammaf64 (_Float64) noexcept (true); 19959: # 252 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern _Float64 lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float64 rintf64 (_Float64 __x) noexcept (true); extern _Float64 __rintf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float64 nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 __nextdownf64 (_Float64 __x) noexcept (true); 19959: 19959: extern _Float64 nextupf64 (_Float64 __x) noexcept (true); extern _Float64 __nextupf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: 19959: 19959: 19959: extern _Float64 scalbnf64 (_Float64 __x, int __n) noexcept (true); extern _Float64 __scalbnf64 (_Float64 __x, int __n) noexcept (true); 19959: 19959: 19959: 19959: extern int ilogbf64 (_Float64 __x) noexcept (true); extern int __ilogbf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern long int llogbf64 (_Float64 __x) noexcept (true); extern long int __llogbf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float64 scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) noexcept (true); 19959: 19959: 19959: 19959: extern _Float64 nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 __nearbyintf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: extern _Float64 roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern _Float64 truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long int lrintf64 (_Float64 __x) noexcept (true); extern long int __lrintf64 (_Float64 __x) noexcept (true); 19959: __extension__ 19959: extern long long int llrintf64 (_Float64 __x) noexcept (true); extern long long int __llrintf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: extern long int lroundf64 (_Float64 __x) noexcept (true); extern long int __lroundf64 (_Float64 __x) noexcept (true); 19959: __extension__ 19959: extern long long int llroundf64 (_Float64 __x) noexcept (true); extern long long int __llroundf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: 19959: extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: 19959: 19959: 19959: extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float64 fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float64 roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern _Float64 fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float64 fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float64 fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float64 fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float64 fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float64 fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 19959: 19959: extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 19959: 19959: __attribute__ ((__pure__)); 19959: 19959: 19959: extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 19959: 19959: __attribute__ ((__pure__)); 19959: 19959: 19959: extern _Float64 getpayloadf64 (const _Float64 *__x) noexcept (true); extern _Float64 __getpayloadf64 (const _Float64 *__x) noexcept (true); 19959: 19959: 19959: extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 19959: 19959: 19959: extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 19959: # 468 "/usr/include/math.h" 2 3 4 19959: # 501 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 19959: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern _Float32x acosf32x (_Float32x __x) noexcept (true); extern _Float32x __acosf32x (_Float32x __x) noexcept (true); 19959: 19959: extern _Float32x asinf32x (_Float32x __x) noexcept (true); extern _Float32x __asinf32x (_Float32x __x) noexcept (true); 19959: 19959: extern _Float32x atanf32x (_Float32x __x) noexcept (true); extern _Float32x __atanf32x (_Float32x __x) noexcept (true); 19959: 19959: extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); 19959: 19959: 19959: extern _Float32x cosf32x (_Float32x __x) noexcept (true); extern _Float32x __cosf32x (_Float32x __x) noexcept (true); 19959: 19959: extern _Float32x sinf32x (_Float32x __x) noexcept (true); extern _Float32x __sinf32x (_Float32x __x) noexcept (true); 19959: 19959: extern _Float32x tanf32x (_Float32x __x) noexcept (true); extern _Float32x __tanf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32x coshf32x (_Float32x __x) noexcept (true); extern _Float32x __coshf32x (_Float32x __x) noexcept (true); 19959: 19959: extern _Float32x sinhf32x (_Float32x __x) noexcept (true); extern _Float32x __sinhf32x (_Float32x __x) noexcept (true); 19959: 19959: extern _Float32x tanhf32x (_Float32x __x) noexcept (true); extern _Float32x __tanhf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true) 19959: ; 19959: 19959: 19959: 19959: 19959: extern _Float32x acoshf32x (_Float32x __x) noexcept (true); extern _Float32x __acoshf32x (_Float32x __x) noexcept (true); 19959: 19959: extern _Float32x asinhf32x (_Float32x __x) noexcept (true); extern _Float32x __asinhf32x (_Float32x __x) noexcept (true); 19959: 19959: extern _Float32x atanhf32x (_Float32x __x) noexcept (true); extern _Float32x __atanhf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32x expf32x (_Float32x __x) noexcept (true); extern _Float32x __expf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: extern _Float32x frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) noexcept (true); 19959: 19959: 19959: extern _Float32x ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) noexcept (true); 19959: 19959: 19959: extern _Float32x logf32x (_Float32x __x) noexcept (true); extern _Float32x __logf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: extern _Float32x log10f32x (_Float32x __x) noexcept (true); extern _Float32x __log10f32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: 19959: extern _Float32x exp10f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10f32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32x expm1f32x (_Float32x __x) noexcept (true); extern _Float32x __expm1f32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: extern _Float32x log1pf32x (_Float32x __x) noexcept (true); extern _Float32x __log1pf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: extern _Float32x logbf32x (_Float32x __x) noexcept (true); extern _Float32x __logbf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32x exp2f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2f32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: extern _Float32x log2f32x (_Float32x __x) noexcept (true); extern _Float32x __log2f32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32x powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) noexcept (true); 19959: 19959: 19959: extern _Float32x sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __sqrtf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32x cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x __cbrtf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32x ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32x fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32x floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); 19959: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern _Float32x nanf32x (const char *__tagb) noexcept (true); extern _Float32x __nanf32x (const char *__tagb) noexcept (true); 19959: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern _Float32x j0f32x (_Float32x) noexcept (true); extern _Float32x __j0f32x (_Float32x) noexcept (true); 19959: extern _Float32x j1f32x (_Float32x) noexcept (true); extern _Float32x __j1f32x (_Float32x) noexcept (true); 19959: extern _Float32x jnf32x (int, _Float32x) noexcept (true); extern _Float32x __jnf32x (int, _Float32x) noexcept (true); 19959: extern _Float32x y0f32x (_Float32x) noexcept (true); extern _Float32x __y0f32x (_Float32x) noexcept (true); 19959: extern _Float32x y1f32x (_Float32x) noexcept (true); extern _Float32x __y1f32x (_Float32x) noexcept (true); 19959: extern _Float32x ynf32x (int, _Float32x) noexcept (true); extern _Float32x __ynf32x (int, _Float32x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32x erff32x (_Float32x) noexcept (true); extern _Float32x __erff32x (_Float32x) noexcept (true); 19959: extern _Float32x erfcf32x (_Float32x) noexcept (true); extern _Float32x __erfcf32x (_Float32x) noexcept (true); 19959: extern _Float32x lgammaf32x (_Float32x) noexcept (true); extern _Float32x __lgammaf32x (_Float32x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32x tgammaf32x (_Float32x) noexcept (true); extern _Float32x __tgammaf32x (_Float32x) noexcept (true); 19959: # 252 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 19959: extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32x rintf32x (_Float32x __x) noexcept (true); extern _Float32x __rintf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32x nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x __nextdownf32x (_Float32x __x) noexcept (true); 19959: 19959: extern _Float32x nextupf32x (_Float32x __x) noexcept (true); extern _Float32x __nextupf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32x scalbnf32x (_Float32x __x, int __n) noexcept (true); extern _Float32x __scalbnf32x (_Float32x __x, int __n) noexcept (true); 19959: 19959: 19959: 19959: extern int ilogbf32x (_Float32x __x) noexcept (true); extern int __ilogbf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern long int llogbf32x (_Float32x __x) noexcept (true); extern long int __llogbf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32x scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32x nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x __nearbyintf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32x roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern _Float32x truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long int lrintf32x (_Float32x __x) noexcept (true); extern long int __lrintf32x (_Float32x __x) noexcept (true); 19959: __extension__ 19959: extern long long int llrintf32x (_Float32x __x) noexcept (true); extern long long int __llrintf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: extern long int lroundf32x (_Float32x __x) noexcept (true); extern long int __lroundf32x (_Float32x __x) noexcept (true); 19959: __extension__ 19959: extern long long int llroundf32x (_Float32x __x) noexcept (true); extern long long int __llroundf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); 19959: 19959: 19959: 19959: extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32x fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern _Float32x roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: 19959: 19959: 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) 19959: ; 19959: 19959: 19959: extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern _Float32x fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32x fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32x fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32x fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32x fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern _Float32x fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 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__)); 19959: 19959: 19959: 19959: 19959: extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 19959: 19959: __attribute__ ((__pure__)); 19959: 19959: 19959: extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 19959: 19959: __attribute__ ((__pure__)); 19959: 19959: 19959: extern _Float32x getpayloadf32x (const _Float32x *__x) noexcept (true); extern _Float32x __getpayloadf32x (const _Float32x *__x) noexcept (true); 19959: 19959: 19959: extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 19959: 19959: 19959: extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 19959: # 502 "/usr/include/math.h" 2 3 4 19959: # 566 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 19959: extern float fadd (double __x, double __y) noexcept (true); 19959: 19959: 19959: extern float fdiv (double __x, double __y) noexcept (true); 19959: 19959: 19959: extern float ffma (double __x, double __y, double __z) noexcept (true); 19959: 19959: 19959: extern float fmul (double __x, double __y) noexcept (true); 19959: 19959: 19959: extern float fsqrt (double __x) noexcept (true); 19959: 19959: 19959: extern float fsub (double __x, double __y) noexcept (true); 19959: # 567 "/usr/include/math.h" 2 3 4 19959: # 587 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 19959: extern float faddl (long double __x, long double __y) noexcept (true); 19959: 19959: 19959: extern float fdivl (long double __x, long double __y) noexcept (true); 19959: 19959: 19959: extern float ffmal (long double __x, long double __y, long double __z) noexcept (true); 19959: 19959: 19959: extern float fmull (long double __x, long double __y) noexcept (true); 19959: 19959: 19959: extern float fsqrtl (long double __x) noexcept (true); 19959: 19959: 19959: extern float fsubl (long double __x, long double __y) noexcept (true); 19959: # 588 "/usr/include/math.h" 2 3 4 19959: # 616 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 19959: extern double daddl (long double __x, long double __y) noexcept (true); 19959: 19959: 19959: extern double ddivl (long double __x, long double __y) noexcept (true); 19959: 19959: 19959: extern double dfmal (long double __x, long double __y, long double __z) noexcept (true); 19959: 19959: 19959: extern double dmull (long double __x, long double __y) noexcept (true); 19959: 19959: 19959: extern double dsqrtl (long double __x) noexcept (true); 19959: 19959: 19959: extern double dsubl (long double __x, long double __y) noexcept (true); 19959: # 617 "/usr/include/math.h" 2 3 4 19959: # 697 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 19959: extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) noexcept (true); 19959: 19959: 19959: extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) noexcept (true); 19959: 19959: 19959: extern _Float32 f32fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 19959: 19959: 19959: extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) noexcept (true); 19959: 19959: 19959: extern _Float32 f32sqrtf32x (_Float32x __x) noexcept (true); 19959: 19959: 19959: extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) noexcept (true); 19959: # 698 "/usr/include/math.h" 2 3 4 19959: # 707 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 19959: extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: 19959: 19959: extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: 19959: 19959: extern _Float32 f32fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 19959: 19959: 19959: extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: 19959: 19959: extern _Float32 f32sqrtf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: # 708 "/usr/include/math.h" 2 3 4 19959: # 747 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 19959: extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: 19959: 19959: extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: 19959: 19959: extern _Float32x f32xfmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 19959: 19959: 19959: extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: 19959: 19959: extern _Float32x f32xsqrtf64 (_Float64 __x) noexcept (true); 19959: 19959: 19959: extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) noexcept (true); 19959: # 748 "/usr/include/math.h" 2 3 4 19959: # 854 "/usr/include/math.h" 3 4 19959: extern int signgam; 19959: # 934 "/usr/include/math.h" 3 4 19959: enum 19959: { 19959: FP_NAN = 19959: 19959: 0, 19959: FP_INFINITE = 19959: 19959: 1, 19959: FP_ZERO = 19959: 19959: 2, 19959: FP_SUBNORMAL = 19959: 19959: 3, 19959: FP_NORMAL = 19959: 19959: 4 19959: }; 19959: # 1054 "/usr/include/math.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/iscanonical.h" 1 3 4 19959: # 1055 "/usr/include/math.h" 2 3 4 19959: # 1066 "/usr/include/math.h" 3 4 19959: extern "C++" { 19959: inline int issignaling (float __val) { return __issignalingf (__val); } 19959: inline int issignaling (double __val) { return __issignaling (__val); } 19959: inline int 19959: issignaling (long double __val) 19959: { 19959: 19959: return __issignaling (__val); 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 1097 "/usr/include/math.h" 3 4 19959: extern "C++" { 19959: # 1128 "/usr/include/math.h" 3 4 19959: template inline bool 19959: iszero (__T __val) 19959: { 19959: return __val == 0; 19959: } 19959: 19959: } 19959: # 1363 "/usr/include/math.h" 3 4 19959: extern "C++" { 19959: template struct __iseqsig_type; 19959: 19959: template<> struct __iseqsig_type 19959: { 19959: static int __call (float __x, float __y) throw () 19959: { 19959: return __iseqsigf (__x, __y); 19959: } 19959: }; 19959: 19959: template<> struct __iseqsig_type 19959: { 19959: static int __call (double __x, double __y) throw () 19959: { 19959: return __iseqsig (__x, __y); 19959: } 19959: }; 19959: 19959: template<> struct __iseqsig_type 19959: { 19959: static int __call (long double __x, long double __y) throw () 19959: { 19959: 19959: 19959: 19959: return __iseqsig (__x, __y); 19959: 19959: } 19959: }; 19959: 19959: 19959: template<> struct __iseqsig_type<_Float32> 19959: { 19959: static int __call (_Float32 __x, _Float32 __y) throw () 19959: { 19959: return __iseqsigf (__x, __y); 19959: } 19959: }; 19959: 19959: 19959: 19959: template<> struct __iseqsig_type<_Float64> 19959: { 19959: static int __call (_Float64 __x, _Float64 __y) throw () 19959: { 19959: return __iseqsig (__x, __y); 19959: } 19959: }; 19959: # 1431 "/usr/include/math.h" 3 4 19959: template<> struct __iseqsig_type<_Float32x> 19959: { 19959: static int __call (_Float32x __x, _Float32x __y) throw () 19959: { 19959: return __iseqsig (__x, __y); 19959: } 19959: }; 19959: # 1454 "/usr/include/math.h" 3 4 19959: template 19959: inline int 19959: iseqsig (_T1 __x, _T2 __y) throw () 19959: { 19959: 19959: typedef decltype (((__x) + (__y) + 0.0f)) _T3; 19959: 19959: 19959: 19959: return __iseqsig_type<_T3>::__call (__x, __y); 19959: } 19959: 19959: } 19959: 19959: 19959: 19959: 19959: } 19959: # 48 "/usr/include/c++/13/cmath" 2 3 19959: # 79 "/usr/include/c++/13/cmath" 3 19959: extern "C++" 19959: { 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: using ::acos; 19959: 19959: 19959: inline constexpr float 19959: acos(float __x) 19959: { return __builtin_acosf(__x); } 19959: 19959: inline constexpr long double 19959: acos(long double __x) 19959: { return __builtin_acosl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: acos(_Tp __x) 19959: { return __builtin_acos(__x); } 19959: 19959: using ::asin; 19959: 19959: 19959: inline constexpr float 19959: asin(float __x) 19959: { return __builtin_asinf(__x); } 19959: 19959: inline constexpr long double 19959: asin(long double __x) 19959: { return __builtin_asinl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: asin(_Tp __x) 19959: { return __builtin_asin(__x); } 19959: 19959: using ::atan; 19959: 19959: 19959: inline constexpr float 19959: atan(float __x) 19959: { return __builtin_atanf(__x); } 19959: 19959: inline constexpr long double 19959: atan(long double __x) 19959: { return __builtin_atanl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: atan(_Tp __x) 19959: { return __builtin_atan(__x); } 19959: 19959: using ::atan2; 19959: 19959: 19959: inline constexpr float 19959: atan2(float __y, float __x) 19959: { return __builtin_atan2f(__y, __x); } 19959: 19959: inline constexpr long double 19959: atan2(long double __y, long double __x) 19959: { return __builtin_atan2l(__y, __x); } 19959: 19959: 19959: using ::ceil; 19959: 19959: 19959: inline constexpr float 19959: ceil(float __x) 19959: { return __builtin_ceilf(__x); } 19959: 19959: inline constexpr long double 19959: ceil(long double __x) 19959: { return __builtin_ceill(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: ceil(_Tp __x) 19959: { return __builtin_ceil(__x); } 19959: 19959: using ::cos; 19959: 19959: 19959: inline constexpr float 19959: cos(float __x) 19959: { return __builtin_cosf(__x); } 19959: 19959: inline constexpr long double 19959: cos(long double __x) 19959: { return __builtin_cosl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: cos(_Tp __x) 19959: { return __builtin_cos(__x); } 19959: 19959: using ::cosh; 19959: 19959: 19959: inline constexpr float 19959: cosh(float __x) 19959: { return __builtin_coshf(__x); } 19959: 19959: inline constexpr long double 19959: cosh(long double __x) 19959: { return __builtin_coshl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: cosh(_Tp __x) 19959: { return __builtin_cosh(__x); } 19959: 19959: using ::exp; 19959: 19959: 19959: inline constexpr float 19959: exp(float __x) 19959: { return __builtin_expf(__x); } 19959: 19959: inline constexpr long double 19959: exp(long double __x) 19959: { return __builtin_expl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: exp(_Tp __x) 19959: { return __builtin_exp(__x); } 19959: 19959: using ::fabs; 19959: 19959: 19959: inline constexpr float 19959: fabs(float __x) 19959: { return __builtin_fabsf(__x); } 19959: 19959: inline constexpr long double 19959: fabs(long double __x) 19959: { return __builtin_fabsl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: fabs(_Tp __x) 19959: { return __builtin_fabs(__x); } 19959: 19959: using ::floor; 19959: 19959: 19959: inline constexpr float 19959: floor(float __x) 19959: { return __builtin_floorf(__x); } 19959: 19959: inline constexpr long double 19959: floor(long double __x) 19959: { return __builtin_floorl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: floor(_Tp __x) 19959: { return __builtin_floor(__x); } 19959: 19959: using ::fmod; 19959: 19959: 19959: inline constexpr float 19959: fmod(float __x, float __y) 19959: { return __builtin_fmodf(__x, __y); } 19959: 19959: inline constexpr long double 19959: fmod(long double __x, long double __y) 19959: { return __builtin_fmodl(__x, __y); } 19959: 19959: 19959: using ::frexp; 19959: 19959: 19959: inline float 19959: frexp(float __x, int* __exp) 19959: { return __builtin_frexpf(__x, __exp); } 19959: 19959: inline long double 19959: frexp(long double __x, int* __exp) 19959: { return __builtin_frexpl(__x, __exp); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: frexp(_Tp __x, int* __exp) 19959: { return __builtin_frexp(__x, __exp); } 19959: 19959: using ::ldexp; 19959: 19959: 19959: inline constexpr float 19959: ldexp(float __x, int __exp) 19959: { return __builtin_ldexpf(__x, __exp); } 19959: 19959: inline constexpr long double 19959: ldexp(long double __x, int __exp) 19959: { return __builtin_ldexpl(__x, __exp); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: ldexp(_Tp __x, int __exp) 19959: { return __builtin_ldexp(__x, __exp); } 19959: 19959: using ::log; 19959: 19959: 19959: inline constexpr float 19959: log(float __x) 19959: { return __builtin_logf(__x); } 19959: 19959: inline constexpr long double 19959: log(long double __x) 19959: { return __builtin_logl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: log(_Tp __x) 19959: { return __builtin_log(__x); } 19959: 19959: using ::log10; 19959: 19959: 19959: inline constexpr float 19959: log10(float __x) 19959: { return __builtin_log10f(__x); } 19959: 19959: inline constexpr long double 19959: log10(long double __x) 19959: { return __builtin_log10l(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: log10(_Tp __x) 19959: { return __builtin_log10(__x); } 19959: 19959: using ::modf; 19959: 19959: 19959: inline float 19959: modf(float __x, float* __iptr) 19959: { return __builtin_modff(__x, __iptr); } 19959: 19959: inline long double 19959: modf(long double __x, long double* __iptr) 19959: { return __builtin_modfl(__x, __iptr); } 19959: 19959: 19959: using ::pow; 19959: 19959: 19959: inline constexpr float 19959: pow(float __x, float __y) 19959: { return __builtin_powf(__x, __y); } 19959: 19959: inline constexpr long double 19959: pow(long double __x, long double __y) 19959: { return __builtin_powl(__x, __y); } 19959: # 396 "/usr/include/c++/13/cmath" 3 19959: using ::sin; 19959: 19959: 19959: inline constexpr float 19959: sin(float __x) 19959: { return __builtin_sinf(__x); } 19959: 19959: inline constexpr long double 19959: sin(long double __x) 19959: { return __builtin_sinl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: sin(_Tp __x) 19959: { return __builtin_sin(__x); } 19959: 19959: using ::sinh; 19959: 19959: 19959: inline constexpr float 19959: sinh(float __x) 19959: { return __builtin_sinhf(__x); } 19959: 19959: inline constexpr long double 19959: sinh(long double __x) 19959: { return __builtin_sinhl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: sinh(_Tp __x) 19959: { return __builtin_sinh(__x); } 19959: 19959: using ::sqrt; 19959: 19959: 19959: inline constexpr float 19959: sqrt(float __x) 19959: { return __builtin_sqrtf(__x); } 19959: 19959: inline constexpr long double 19959: sqrt(long double __x) 19959: { return __builtin_sqrtl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: sqrt(_Tp __x) 19959: { return __builtin_sqrt(__x); } 19959: 19959: using ::tan; 19959: 19959: 19959: inline constexpr float 19959: tan(float __x) 19959: { return __builtin_tanf(__x); } 19959: 19959: inline constexpr long double 19959: tan(long double __x) 19959: { return __builtin_tanl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: tan(_Tp __x) 19959: { return __builtin_tan(__x); } 19959: 19959: using ::tanh; 19959: 19959: 19959: inline constexpr float 19959: tanh(float __x) 19959: { return __builtin_tanhf(__x); } 19959: 19959: inline constexpr long double 19959: tanh(long double __x) 19959: { return __builtin_tanhl(__x); } 19959: 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: tanh(_Tp __x) 19959: { return __builtin_tanh(__x); } 19959: # 1049 "/usr/include/c++/13/cmath" 3 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 19959: atan2(_Tp __y, _Up __x) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return atan2(__type(__y), __type(__x)); 19959: } 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 19959: fmod(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return fmod(__type(__x), __type(__y)); 19959: } 19959: 19959: template 19959: inline constexpr 19959: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 19959: pow(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return pow(__type(__x), __type(__y)); 19959: } 19959: # 1096 "/usr/include/c++/13/cmath" 3 19959: constexpr int 19959: fpclassify(float __x) 19959: { return __builtin_fpclassify(0, 1, 4, 19959: 3, 2, __x); } 19959: 19959: constexpr int 19959: fpclassify(double __x) 19959: { return __builtin_fpclassify(0, 1, 4, 19959: 3, 2, __x); } 19959: 19959: constexpr int 19959: fpclassify(long double __x) 19959: { return __builtin_fpclassify(0, 1, 4, 19959: 3, 2, __x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: int>::__type 19959: fpclassify(_Tp __x) 19959: { return __x != 0 ? 4 : 2; } 19959: 19959: 19959: 19959: constexpr bool 19959: isfinite(float __x) 19959: { return __builtin_isfinite(__x); } 19959: 19959: constexpr bool 19959: isfinite(double __x) 19959: { return __builtin_isfinite(__x); } 19959: 19959: constexpr bool 19959: isfinite(long double __x) 19959: { return __builtin_isfinite(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: bool>::__type 19959: isfinite(_Tp) 19959: { return true; } 19959: 19959: 19959: 19959: constexpr bool 19959: isinf(float __x) 19959: { return __builtin_isinf(__x); } 19959: 19959: 19959: 19959: 19959: 19959: constexpr bool 19959: isinf(double __x) 19959: { return __builtin_isinf(__x); } 19959: 19959: 19959: constexpr bool 19959: isinf(long double __x) 19959: { return __builtin_isinf(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: bool>::__type 19959: isinf(_Tp) 19959: { return false; } 19959: 19959: 19959: 19959: constexpr bool 19959: isnan(float __x) 19959: { return __builtin_isnan(__x); } 19959: 19959: 19959: 19959: 19959: 19959: constexpr bool 19959: isnan(double __x) 19959: { return __builtin_isnan(__x); } 19959: 19959: 19959: constexpr bool 19959: isnan(long double __x) 19959: { return __builtin_isnan(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: bool>::__type 19959: isnan(_Tp) 19959: { return false; } 19959: 19959: 19959: 19959: constexpr bool 19959: isnormal(float __x) 19959: { return __builtin_isnormal(__x); } 19959: 19959: constexpr bool 19959: isnormal(double __x) 19959: { return __builtin_isnormal(__x); } 19959: 19959: constexpr bool 19959: isnormal(long double __x) 19959: { return __builtin_isnormal(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: bool>::__type 19959: isnormal(_Tp __x) 19959: { return __x != 0 ? true : false; } 19959: 19959: 19959: 19959: 19959: constexpr bool 19959: signbit(float __x) 19959: { return __builtin_signbit(__x); } 19959: 19959: constexpr bool 19959: signbit(double __x) 19959: { return __builtin_signbit(__x); } 19959: 19959: constexpr bool 19959: signbit(long double __x) 19959: { return __builtin_signbit(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: bool>::__type 19959: signbit(_Tp __x) 19959: { return __x < 0 ? true : false; } 19959: 19959: 19959: 19959: constexpr bool 19959: isgreater(float __x, float __y) 19959: { return __builtin_isgreater(__x, __y); } 19959: 19959: constexpr bool 19959: isgreater(double __x, double __y) 19959: { return __builtin_isgreater(__x, __y); } 19959: 19959: constexpr bool 19959: isgreater(long double __x, long double __y) 19959: { return __builtin_isgreater(__x, __y); } 19959: 19959: 19959: 19959: template 19959: constexpr typename 19959: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 19959: && __is_arithmetic<_Up>::__value), bool>::__type 19959: isgreater(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return __builtin_isgreater(__type(__x), __type(__y)); 19959: } 19959: 19959: 19959: 19959: constexpr bool 19959: isgreaterequal(float __x, float __y) 19959: { return __builtin_isgreaterequal(__x, __y); } 19959: 19959: constexpr bool 19959: isgreaterequal(double __x, double __y) 19959: { return __builtin_isgreaterequal(__x, __y); } 19959: 19959: constexpr bool 19959: isgreaterequal(long double __x, long double __y) 19959: { return __builtin_isgreaterequal(__x, __y); } 19959: 19959: 19959: 19959: template 19959: constexpr typename 19959: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 19959: && __is_arithmetic<_Up>::__value), bool>::__type 19959: isgreaterequal(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return __builtin_isgreaterequal(__type(__x), __type(__y)); 19959: } 19959: 19959: 19959: 19959: constexpr bool 19959: isless(float __x, float __y) 19959: { return __builtin_isless(__x, __y); } 19959: 19959: constexpr bool 19959: isless(double __x, double __y) 19959: { return __builtin_isless(__x, __y); } 19959: 19959: constexpr bool 19959: isless(long double __x, long double __y) 19959: { return __builtin_isless(__x, __y); } 19959: 19959: 19959: 19959: template 19959: constexpr typename 19959: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 19959: && __is_arithmetic<_Up>::__value), bool>::__type 19959: isless(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return __builtin_isless(__type(__x), __type(__y)); 19959: } 19959: 19959: 19959: 19959: constexpr bool 19959: islessequal(float __x, float __y) 19959: { return __builtin_islessequal(__x, __y); } 19959: 19959: constexpr bool 19959: islessequal(double __x, double __y) 19959: { return __builtin_islessequal(__x, __y); } 19959: 19959: constexpr bool 19959: islessequal(long double __x, long double __y) 19959: { return __builtin_islessequal(__x, __y); } 19959: 19959: 19959: 19959: template 19959: constexpr typename 19959: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 19959: && __is_arithmetic<_Up>::__value), bool>::__type 19959: islessequal(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return __builtin_islessequal(__type(__x), __type(__y)); 19959: } 19959: 19959: 19959: 19959: constexpr bool 19959: islessgreater(float __x, float __y) 19959: { return __builtin_islessgreater(__x, __y); } 19959: 19959: constexpr bool 19959: islessgreater(double __x, double __y) 19959: { return __builtin_islessgreater(__x, __y); } 19959: 19959: constexpr bool 19959: islessgreater(long double __x, long double __y) 19959: { return __builtin_islessgreater(__x, __y); } 19959: 19959: 19959: 19959: template 19959: constexpr typename 19959: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 19959: && __is_arithmetic<_Up>::__value), bool>::__type 19959: islessgreater(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return __builtin_islessgreater(__type(__x), __type(__y)); 19959: } 19959: 19959: 19959: 19959: constexpr bool 19959: isunordered(float __x, float __y) 19959: { return __builtin_isunordered(__x, __y); } 19959: 19959: constexpr bool 19959: isunordered(double __x, double __y) 19959: { return __builtin_isunordered(__x, __y); } 19959: 19959: constexpr bool 19959: isunordered(long double __x, long double __y) 19959: { return __builtin_isunordered(__x, __y); } 19959: 19959: 19959: 19959: template 19959: constexpr typename 19959: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 19959: && __is_arithmetic<_Up>::__value), bool>::__type 19959: isunordered(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return __builtin_isunordered(__type(__x), __type(__y)); 19959: } 19959: # 1881 "/usr/include/c++/13/cmath" 3 19959: using ::double_t; 19959: using ::float_t; 19959: 19959: 19959: using ::acosh; 19959: using ::acoshf; 19959: using ::acoshl; 19959: 19959: using ::asinh; 19959: using ::asinhf; 19959: using ::asinhl; 19959: 19959: using ::atanh; 19959: using ::atanhf; 19959: using ::atanhl; 19959: 19959: using ::cbrt; 19959: using ::cbrtf; 19959: using ::cbrtl; 19959: 19959: using ::copysign; 19959: using ::copysignf; 19959: using ::copysignl; 19959: 19959: using ::erf; 19959: using ::erff; 19959: using ::erfl; 19959: 19959: using ::erfc; 19959: using ::erfcf; 19959: using ::erfcl; 19959: 19959: using ::exp2; 19959: using ::exp2f; 19959: using ::exp2l; 19959: 19959: using ::expm1; 19959: using ::expm1f; 19959: using ::expm1l; 19959: 19959: using ::fdim; 19959: using ::fdimf; 19959: using ::fdiml; 19959: 19959: using ::fma; 19959: using ::fmaf; 19959: using ::fmal; 19959: 19959: using ::fmax; 19959: using ::fmaxf; 19959: using ::fmaxl; 19959: 19959: using ::fmin; 19959: using ::fminf; 19959: using ::fminl; 19959: 19959: using ::hypot; 19959: using ::hypotf; 19959: using ::hypotl; 19959: 19959: using ::ilogb; 19959: using ::ilogbf; 19959: using ::ilogbl; 19959: 19959: using ::lgamma; 19959: using ::lgammaf; 19959: using ::lgammal; 19959: 19959: 19959: using ::llrint; 19959: using ::llrintf; 19959: using ::llrintl; 19959: 19959: using ::llround; 19959: using ::llroundf; 19959: using ::llroundl; 19959: 19959: 19959: using ::log1p; 19959: using ::log1pf; 19959: using ::log1pl; 19959: 19959: using ::log2; 19959: using ::log2f; 19959: using ::log2l; 19959: 19959: using ::logb; 19959: using ::logbf; 19959: using ::logbl; 19959: 19959: using ::lrint; 19959: using ::lrintf; 19959: using ::lrintl; 19959: 19959: using ::lround; 19959: using ::lroundf; 19959: using ::lroundl; 19959: 19959: using ::nan; 19959: using ::nanf; 19959: using ::nanl; 19959: 19959: using ::nearbyint; 19959: using ::nearbyintf; 19959: using ::nearbyintl; 19959: 19959: using ::nextafter; 19959: using ::nextafterf; 19959: using ::nextafterl; 19959: 19959: using ::nexttoward; 19959: using ::nexttowardf; 19959: using ::nexttowardl; 19959: 19959: using ::remainder; 19959: using ::remainderf; 19959: using ::remainderl; 19959: 19959: using ::remquo; 19959: using ::remquof; 19959: using ::remquol; 19959: 19959: using ::rint; 19959: using ::rintf; 19959: using ::rintl; 19959: 19959: using ::round; 19959: using ::roundf; 19959: using ::roundl; 19959: 19959: using ::scalbln; 19959: using ::scalblnf; 19959: using ::scalblnl; 19959: 19959: using ::scalbn; 19959: using ::scalbnf; 19959: using ::scalbnl; 19959: 19959: using ::tgamma; 19959: using ::tgammaf; 19959: using ::tgammal; 19959: 19959: using ::trunc; 19959: using ::truncf; 19959: using ::truncl; 19959: 19959: 19959: 19959: constexpr float 19959: acosh(float __x) 19959: { return __builtin_acoshf(__x); } 19959: 19959: constexpr long double 19959: acosh(long double __x) 19959: { return __builtin_acoshl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: acosh(_Tp __x) 19959: { return __builtin_acosh(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: asinh(float __x) 19959: { return __builtin_asinhf(__x); } 19959: 19959: constexpr long double 19959: asinh(long double __x) 19959: { return __builtin_asinhl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: asinh(_Tp __x) 19959: { return __builtin_asinh(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: atanh(float __x) 19959: { return __builtin_atanhf(__x); } 19959: 19959: constexpr long double 19959: atanh(long double __x) 19959: { return __builtin_atanhl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: atanh(_Tp __x) 19959: { return __builtin_atanh(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: cbrt(float __x) 19959: { return __builtin_cbrtf(__x); } 19959: 19959: constexpr long double 19959: cbrt(long double __x) 19959: { return __builtin_cbrtl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: cbrt(_Tp __x) 19959: { return __builtin_cbrt(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: copysign(float __x, float __y) 19959: { return __builtin_copysignf(__x, __y); } 19959: 19959: constexpr long double 19959: copysign(long double __x, long double __y) 19959: { return __builtin_copysignl(__x, __y); } 19959: 19959: 19959: 19959: constexpr float 19959: erf(float __x) 19959: { return __builtin_erff(__x); } 19959: 19959: constexpr long double 19959: erf(long double __x) 19959: { return __builtin_erfl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: erf(_Tp __x) 19959: { return __builtin_erf(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: erfc(float __x) 19959: { return __builtin_erfcf(__x); } 19959: 19959: constexpr long double 19959: erfc(long double __x) 19959: { return __builtin_erfcl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: erfc(_Tp __x) 19959: { return __builtin_erfc(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: exp2(float __x) 19959: { return __builtin_exp2f(__x); } 19959: 19959: constexpr long double 19959: exp2(long double __x) 19959: { return __builtin_exp2l(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: exp2(_Tp __x) 19959: { return __builtin_exp2(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: expm1(float __x) 19959: { return __builtin_expm1f(__x); } 19959: 19959: constexpr long double 19959: expm1(long double __x) 19959: { return __builtin_expm1l(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: expm1(_Tp __x) 19959: { return __builtin_expm1(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: fdim(float __x, float __y) 19959: { return __builtin_fdimf(__x, __y); } 19959: 19959: constexpr long double 19959: fdim(long double __x, long double __y) 19959: { return __builtin_fdiml(__x, __y); } 19959: 19959: 19959: 19959: constexpr float 19959: fma(float __x, float __y, float __z) 19959: { return __builtin_fmaf(__x, __y, __z); } 19959: 19959: constexpr long double 19959: fma(long double __x, long double __y, long double __z) 19959: { return __builtin_fmal(__x, __y, __z); } 19959: 19959: 19959: 19959: constexpr float 19959: fmax(float __x, float __y) 19959: { return __builtin_fmaxf(__x, __y); } 19959: 19959: constexpr long double 19959: fmax(long double __x, long double __y) 19959: { return __builtin_fmaxl(__x, __y); } 19959: 19959: 19959: 19959: constexpr float 19959: fmin(float __x, float __y) 19959: { return __builtin_fminf(__x, __y); } 19959: 19959: constexpr long double 19959: fmin(long double __x, long double __y) 19959: { return __builtin_fminl(__x, __y); } 19959: 19959: 19959: 19959: constexpr float 19959: hypot(float __x, float __y) 19959: { return __builtin_hypotf(__x, __y); } 19959: 19959: constexpr long double 19959: hypot(long double __x, long double __y) 19959: { return __builtin_hypotl(__x, __y); } 19959: 19959: 19959: 19959: constexpr int 19959: ilogb(float __x) 19959: { return __builtin_ilogbf(__x); } 19959: 19959: constexpr int 19959: ilogb(long double __x) 19959: { return __builtin_ilogbl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr 19959: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: int>::__type 19959: ilogb(_Tp __x) 19959: { return __builtin_ilogb(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: lgamma(float __x) 19959: { return __builtin_lgammaf(__x); } 19959: 19959: constexpr long double 19959: lgamma(long double __x) 19959: { return __builtin_lgammal(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: lgamma(_Tp __x) 19959: { return __builtin_lgamma(__x); } 19959: 19959: 19959: 19959: constexpr long long 19959: llrint(float __x) 19959: { return __builtin_llrintf(__x); } 19959: 19959: constexpr long long 19959: llrint(long double __x) 19959: { return __builtin_llrintl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: long long>::__type 19959: llrint(_Tp __x) 19959: { return __builtin_llrint(__x); } 19959: 19959: 19959: 19959: constexpr long long 19959: llround(float __x) 19959: { return __builtin_llroundf(__x); } 19959: 19959: constexpr long long 19959: llround(long double __x) 19959: { return __builtin_llroundl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: long long>::__type 19959: llround(_Tp __x) 19959: { return __builtin_llround(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: log1p(float __x) 19959: { return __builtin_log1pf(__x); } 19959: 19959: constexpr long double 19959: log1p(long double __x) 19959: { return __builtin_log1pl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: log1p(_Tp __x) 19959: { return __builtin_log1p(__x); } 19959: 19959: 19959: 19959: 19959: constexpr float 19959: log2(float __x) 19959: { return __builtin_log2f(__x); } 19959: 19959: constexpr long double 19959: log2(long double __x) 19959: { return __builtin_log2l(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: log2(_Tp __x) 19959: { return __builtin_log2(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: logb(float __x) 19959: { return __builtin_logbf(__x); } 19959: 19959: constexpr long double 19959: logb(long double __x) 19959: { return __builtin_logbl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: logb(_Tp __x) 19959: { return __builtin_logb(__x); } 19959: 19959: 19959: 19959: constexpr long 19959: lrint(float __x) 19959: { return __builtin_lrintf(__x); } 19959: 19959: constexpr long 19959: lrint(long double __x) 19959: { return __builtin_lrintl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: long>::__type 19959: lrint(_Tp __x) 19959: { return __builtin_lrint(__x); } 19959: 19959: 19959: 19959: constexpr long 19959: lround(float __x) 19959: { return __builtin_lroundf(__x); } 19959: 19959: constexpr long 19959: lround(long double __x) 19959: { return __builtin_lroundl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: long>::__type 19959: lround(_Tp __x) 19959: { return __builtin_lround(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: nearbyint(float __x) 19959: { return __builtin_nearbyintf(__x); } 19959: 19959: constexpr long double 19959: nearbyint(long double __x) 19959: { return __builtin_nearbyintl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: nearbyint(_Tp __x) 19959: { return __builtin_nearbyint(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: nextafter(float __x, float __y) 19959: { return __builtin_nextafterf(__x, __y); } 19959: 19959: constexpr long double 19959: nextafter(long double __x, long double __y) 19959: { return __builtin_nextafterl(__x, __y); } 19959: 19959: 19959: 19959: constexpr float 19959: nexttoward(float __x, long double __y) 19959: { return __builtin_nexttowardf(__x, __y); } 19959: 19959: constexpr long double 19959: nexttoward(long double __x, long double __y) 19959: { return __builtin_nexttowardl(__x, __y); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: nexttoward(_Tp __x, long double __y) 19959: { return __builtin_nexttoward(__x, __y); } 19959: 19959: 19959: 19959: constexpr float 19959: remainder(float __x, float __y) 19959: { return __builtin_remainderf(__x, __y); } 19959: 19959: constexpr long double 19959: remainder(long double __x, long double __y) 19959: { return __builtin_remainderl(__x, __y); } 19959: 19959: 19959: 19959: inline float 19959: remquo(float __x, float __y, int* __pquo) 19959: { return __builtin_remquof(__x, __y, __pquo); } 19959: 19959: inline long double 19959: remquo(long double __x, long double __y, int* __pquo) 19959: { return __builtin_remquol(__x, __y, __pquo); } 19959: 19959: 19959: 19959: constexpr float 19959: rint(float __x) 19959: { return __builtin_rintf(__x); } 19959: 19959: constexpr long double 19959: rint(long double __x) 19959: { return __builtin_rintl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: rint(_Tp __x) 19959: { return __builtin_rint(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: round(float __x) 19959: { return __builtin_roundf(__x); } 19959: 19959: constexpr long double 19959: round(long double __x) 19959: { return __builtin_roundl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: round(_Tp __x) 19959: { return __builtin_round(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: scalbln(float __x, long __ex) 19959: { return __builtin_scalblnf(__x, __ex); } 19959: 19959: constexpr long double 19959: scalbln(long double __x, long __ex) 19959: { return __builtin_scalblnl(__x, __ex); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: scalbln(_Tp __x, long __ex) 19959: { return __builtin_scalbln(__x, __ex); } 19959: 19959: 19959: 19959: constexpr float 19959: scalbn(float __x, int __ex) 19959: { return __builtin_scalbnf(__x, __ex); } 19959: 19959: constexpr long double 19959: scalbn(long double __x, int __ex) 19959: { return __builtin_scalbnl(__x, __ex); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: scalbn(_Tp __x, int __ex) 19959: { return __builtin_scalbn(__x, __ex); } 19959: 19959: 19959: 19959: constexpr float 19959: tgamma(float __x) 19959: { return __builtin_tgammaf(__x); } 19959: 19959: constexpr long double 19959: tgamma(long double __x) 19959: { return __builtin_tgammal(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: tgamma(_Tp __x) 19959: { return __builtin_tgamma(__x); } 19959: 19959: 19959: 19959: constexpr float 19959: trunc(float __x) 19959: { return __builtin_truncf(__x); } 19959: 19959: constexpr long double 19959: trunc(long double __x) 19959: { return __builtin_truncl(__x); } 19959: 19959: 19959: 19959: template 19959: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 19959: double>::__type 19959: trunc(_Tp __x) 19959: { return __builtin_trunc(__x); } 19959: # 3469 "/usr/include/c++/13/cmath" 3 19959: template 19959: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 19959: copysign(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return copysign(__type(__x), __type(__y)); 19959: } 19959: 19959: template 19959: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 19959: fdim(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return fdim(__type(__x), __type(__y)); 19959: } 19959: 19959: template 19959: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 19959: fmax(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return fmax(__type(__x), __type(__y)); 19959: } 19959: 19959: template 19959: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 19959: fmin(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return fmin(__type(__x), __type(__y)); 19959: } 19959: 19959: template 19959: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 19959: hypot(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return hypot(__type(__x), __type(__y)); 19959: } 19959: 19959: template 19959: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 19959: nextafter(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return nextafter(__type(__x), __type(__y)); 19959: } 19959: 19959: template 19959: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 19959: remainder(_Tp __x, _Up __y) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return remainder(__type(__x), __type(__y)); 19959: } 19959: 19959: template 19959: inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 19959: remquo(_Tp __x, _Up __y, int* __pquo) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 19959: return remquo(__type(__x), __type(__y), __pquo); 19959: } 19959: 19959: template 19959: constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type 19959: fma(_Tp __x, _Up __y, _Vp __z) 19959: { 19959: typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; 19959: return fma(__type(__x), __type(__y), __type(__z)); 19959: } 19959: # 3550 "/usr/include/c++/13/cmath" 3 19959: template 19959: inline _Tp 19959: __hypot3(_Tp __x, _Tp __y, _Tp __z) 19959: { 19959: __x = std::abs(__x); 19959: __y = std::abs(__y); 19959: __z = std::abs(__z); 19959: if (_Tp __a = __x < __y ? __y < __z ? __z : __y : __x < __z ? __z : __x) 19959: return __a * std::sqrt((__x / __a) * (__x / __a) 19959: + (__y / __a) * (__y / __a) 19959: + (__z / __a) * (__z / __a)); 19959: else 19959: return {}; 19959: } 19959: 19959: inline float 19959: hypot(float __x, float __y, float __z) 19959: { return std::__hypot3(__x, __y, __z); } 19959: 19959: inline double 19959: hypot(double __x, double __y, double __z) 19959: { return std::__hypot3(__x, __y, __z); } 19959: 19959: inline long double 19959: hypot(long double __x, long double __y, long double __z) 19959: { return std::__hypot3(__x, __y, __z); } 19959: 19959: template 19959: __gnu_cxx::__promoted_t<_Tp, _Up, _Vp> 19959: hypot(_Tp __x, _Up __y, _Vp __z) 19959: { 19959: using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; 19959: return std::__hypot3<__type>(__x, __y, __z); 19959: } 19959: # 3695 "/usr/include/c++/13/cmath" 3 19959: 19959: } 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/specfun.h" 1 3 19959: # 47 "/usr/include/c++/13/bits/specfun.h" 3 19959: # 1 "/usr/include/c++/13/tr1/gamma.tcc" 1 3 19959: # 49 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: # 1 "/usr/include/c++/13/tr1/special_function_util.h" 1 3 19959: # 39 "/usr/include/c++/13/tr1/special_function_util.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 50 "/usr/include/c++/13/tr1/special_function_util.h" 3 19959: namespace __detail 19959: { 19959: 19959: 19959: 19959: template 19959: struct __floating_point_constant 19959: { 19959: static const _Tp __value; 19959: }; 19959: 19959: 19959: 19959: template 19959: struct __numeric_constants 19959: { 19959: 19959: static _Tp __pi() throw() 19959: { return static_cast<_Tp>(3.1415926535897932384626433832795029L); } 19959: 19959: static _Tp __pi_2() throw() 19959: { return static_cast<_Tp>(1.5707963267948966192313216916397514L); } 19959: 19959: static _Tp __pi_3() throw() 19959: { return static_cast<_Tp>(1.0471975511965977461542144610931676L); } 19959: 19959: static _Tp __pi_4() throw() 19959: { return static_cast<_Tp>(0.7853981633974483096156608458198757L); } 19959: 19959: static _Tp __1_pi() throw() 19959: { return static_cast<_Tp>(0.3183098861837906715377675267450287L); } 19959: 19959: static _Tp __2_sqrtpi() throw() 19959: { return static_cast<_Tp>(1.1283791670955125738961589031215452L); } 19959: 19959: static _Tp __sqrt2() throw() 19959: { return static_cast<_Tp>(1.4142135623730950488016887242096981L); } 19959: 19959: static _Tp __sqrt3() throw() 19959: { return static_cast<_Tp>(1.7320508075688772935274463415058723L); } 19959: 19959: static _Tp __sqrtpio2() throw() 19959: { return static_cast<_Tp>(1.2533141373155002512078826424055226L); } 19959: 19959: static _Tp __sqrt1_2() throw() 19959: { return static_cast<_Tp>(0.7071067811865475244008443621048490L); } 19959: 19959: static _Tp __lnpi() throw() 19959: { return static_cast<_Tp>(1.1447298858494001741434273513530587L); } 19959: 19959: static _Tp __gamma_e() throw() 19959: { return static_cast<_Tp>(0.5772156649015328606065120900824024L); } 19959: 19959: static _Tp __euler() throw() 19959: { return static_cast<_Tp>(2.7182818284590452353602874713526625L); } 19959: }; 19959: # 114 "/usr/include/c++/13/tr1/special_function_util.h" 3 19959: template 19959: inline bool __isnan(_Tp __x) 19959: { return std::isnan(__x); } 19959: # 133 "/usr/include/c++/13/tr1/special_function_util.h" 3 19959: } 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 50 "/usr/include/c++/13/tr1/gamma.tcc" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 65 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: namespace __detail 19959: { 19959: # 76 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: template 19959: _Tp 19959: __bernoulli_series(unsigned int __n) 19959: { 19959: 19959: static const _Tp __num[28] = { 19959: _Tp(1UL), -_Tp(1UL) / _Tp(2UL), 19959: _Tp(1UL) / _Tp(6UL), _Tp(0UL), 19959: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 19959: _Tp(1UL) / _Tp(42UL), _Tp(0UL), 19959: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 19959: _Tp(5UL) / _Tp(66UL), _Tp(0UL), 19959: -_Tp(691UL) / _Tp(2730UL), _Tp(0UL), 19959: _Tp(7UL) / _Tp(6UL), _Tp(0UL), 19959: -_Tp(3617UL) / _Tp(510UL), _Tp(0UL), 19959: _Tp(43867UL) / _Tp(798UL), _Tp(0UL), 19959: -_Tp(174611) / _Tp(330UL), _Tp(0UL), 19959: _Tp(854513UL) / _Tp(138UL), _Tp(0UL), 19959: -_Tp(236364091UL) / _Tp(2730UL), _Tp(0UL), 19959: _Tp(8553103UL) / _Tp(6UL), _Tp(0UL) 19959: }; 19959: 19959: if (__n == 0) 19959: return _Tp(1); 19959: 19959: if (__n == 1) 19959: return -_Tp(1) / _Tp(2); 19959: 19959: 19959: if (__n % 2 == 1) 19959: return _Tp(0); 19959: 19959: 19959: if (__n < 28) 19959: return __num[__n]; 19959: 19959: 19959: _Tp __fact = _Tp(1); 19959: if ((__n / 2) % 2 == 0) 19959: __fact *= _Tp(-1); 19959: for (unsigned int __k = 1; __k <= __n; ++__k) 19959: __fact *= __k / (_Tp(2) * __numeric_constants<_Tp>::__pi()); 19959: __fact *= _Tp(2); 19959: 19959: _Tp __sum = _Tp(0); 19959: for (unsigned int __i = 1; __i < 1000; ++__i) 19959: { 19959: _Tp __term = std::pow(_Tp(__i), -_Tp(__n)); 19959: if (__term < std::numeric_limits<_Tp>::epsilon()) 19959: break; 19959: __sum += __term; 19959: } 19959: 19959: return __fact * __sum; 19959: } 19959: # 139 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: template 19959: inline _Tp 19959: __bernoulli(int __n) 19959: { return __bernoulli_series<_Tp>(__n); } 19959: # 153 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: template 19959: _Tp 19959: __log_gamma_bernoulli(_Tp __x) 19959: { 19959: _Tp __lg = (__x - _Tp(0.5L)) * std::log(__x) - __x 19959: + _Tp(0.5L) * std::log(_Tp(2) 19959: * __numeric_constants<_Tp>::__pi()); 19959: 19959: const _Tp __xx = __x * __x; 19959: _Tp __help = _Tp(1) / __x; 19959: for ( unsigned int __i = 1; __i < 20; ++__i ) 19959: { 19959: const _Tp __2i = _Tp(2 * __i); 19959: __help /= __2i * (__2i - _Tp(1)) * __xx; 19959: __lg += __bernoulli<_Tp>(2 * __i) * __help; 19959: } 19959: 19959: return __lg; 19959: } 19959: # 181 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: template 19959: _Tp 19959: __log_gamma_lanczos(_Tp __x) 19959: { 19959: const _Tp __xm1 = __x - _Tp(1); 19959: 19959: static const _Tp __lanczos_cheb_7[9] = { 19959: _Tp( 0.99999999999980993227684700473478L), 19959: _Tp( 676.520368121885098567009190444019L), 19959: _Tp(-1259.13921672240287047156078755283L), 19959: _Tp( 771.3234287776530788486528258894L), 19959: _Tp(-176.61502916214059906584551354L), 19959: _Tp( 12.507343278686904814458936853L), 19959: _Tp(-0.13857109526572011689554707L), 19959: _Tp( 9.984369578019570859563e-6L), 19959: _Tp( 1.50563273514931155834e-7L) 19959: }; 19959: 19959: static const _Tp __LOGROOT2PI 19959: = _Tp(0.9189385332046727417803297364056176L); 19959: 19959: _Tp __sum = __lanczos_cheb_7[0]; 19959: for(unsigned int __k = 1; __k < 9; ++__k) 19959: __sum += __lanczos_cheb_7[__k] / (__xm1 + __k); 19959: 19959: const _Tp __term1 = (__xm1 + _Tp(0.5L)) 19959: * std::log((__xm1 + _Tp(7.5L)) 19959: / __numeric_constants<_Tp>::__euler()); 19959: const _Tp __term2 = __LOGROOT2PI + std::log(__sum); 19959: const _Tp __result = __term1 + (__term2 - _Tp(7)); 19959: 19959: return __result; 19959: } 19959: # 225 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: template 19959: _Tp 19959: __log_gamma(_Tp __x) 19959: { 19959: if (__x > _Tp(0.5L)) 19959: return __log_gamma_lanczos(__x); 19959: else 19959: { 19959: const _Tp __sin_fact 19959: = std::abs(std::sin(__numeric_constants<_Tp>::__pi() * __x)); 19959: if (__sin_fact == _Tp(0)) 19959: std::__throw_domain_error(("Argument is nonpositive integer " "in __log_gamma") 19959: ); 19959: return __numeric_constants<_Tp>::__lnpi() 19959: - std::log(__sin_fact) 19959: - __log_gamma_lanczos(_Tp(1) - __x); 19959: } 19959: } 19959: # 252 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: template 19959: _Tp 19959: __log_gamma_sign(_Tp __x) 19959: { 19959: if (__x > _Tp(0)) 19959: return _Tp(1); 19959: else 19959: { 19959: const _Tp __sin_fact 19959: = std::sin(__numeric_constants<_Tp>::__pi() * __x); 19959: if (__sin_fact > _Tp(0)) 19959: return (1); 19959: else if (__sin_fact < _Tp(0)) 19959: return -_Tp(1); 19959: else 19959: return _Tp(0); 19959: } 19959: } 19959: # 283 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: template 19959: _Tp 19959: __log_bincoef(unsigned int __n, unsigned int __k) 19959: { 19959: 19959: static const _Tp __max_bincoeff 19959: = std::numeric_limits<_Tp>::max_exponent10 19959: * std::log(_Tp(10)) - _Tp(1); 19959: 19959: _Tp __coeff = ::std::lgamma(_Tp(1 + __n)) 19959: - ::std::lgamma(_Tp(1 + __k)) 19959: - ::std::lgamma(_Tp(1 + __n - __k)); 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 314 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: template 19959: _Tp 19959: __bincoef(unsigned int __n, unsigned int __k) 19959: { 19959: 19959: static const _Tp __max_bincoeff 19959: = std::numeric_limits<_Tp>::max_exponent10 19959: * std::log(_Tp(10)) - _Tp(1); 19959: 19959: const _Tp __log_coeff = __log_bincoef<_Tp>(__n, __k); 19959: if (__log_coeff > __max_bincoeff) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else 19959: return std::exp(__log_coeff); 19959: } 19959: # 337 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: template 19959: inline _Tp 19959: __gamma(_Tp __x) 19959: { return std::exp(__log_gamma(__x)); } 19959: # 356 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: template 19959: _Tp 19959: __psi_series(_Tp __x) 19959: { 19959: _Tp __sum = -__numeric_constants<_Tp>::__gamma_e() - _Tp(1) / __x; 19959: const unsigned int __max_iter = 100000; 19959: for (unsigned int __k = 1; __k < __max_iter; ++__k) 19959: { 19959: const _Tp __term = __x / (__k * (__k + __x)); 19959: __sum += __term; 19959: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 19959: break; 19959: } 19959: return __sum; 19959: } 19959: # 386 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: template 19959: _Tp 19959: __psi_asymp(_Tp __x) 19959: { 19959: _Tp __sum = std::log(__x) - _Tp(0.5L) / __x; 19959: const _Tp __xx = __x * __x; 19959: _Tp __xp = __xx; 19959: const unsigned int __max_iter = 100; 19959: for (unsigned int __k = 1; __k < __max_iter; ++__k) 19959: { 19959: const _Tp __term = __bernoulli<_Tp>(2 * __k) / (2 * __k * __xp); 19959: __sum -= __term; 19959: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 19959: break; 19959: __xp *= __xx; 19959: } 19959: return __sum; 19959: } 19959: # 417 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: template 19959: _Tp 19959: __psi(_Tp __x) 19959: { 19959: const int __n = static_cast(__x + 0.5L); 19959: const _Tp __eps = _Tp(4) * std::numeric_limits<_Tp>::epsilon(); 19959: if (__n <= 0 && std::abs(__x - _Tp(__n)) < __eps) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__x < _Tp(0)) 19959: { 19959: const _Tp __pi = __numeric_constants<_Tp>::__pi(); 19959: return __psi(_Tp(1) - __x) 19959: - __pi * std::cos(__pi * __x) / std::sin(__pi * __x); 19959: } 19959: else if (__x > _Tp(100)) 19959: return __psi_asymp(__x); 19959: else 19959: return __psi_series(__x); 19959: } 19959: # 446 "/usr/include/c++/13/tr1/gamma.tcc" 3 19959: template 19959: _Tp 19959: __psi(unsigned int __n, _Tp __x) 19959: { 19959: if (__x <= _Tp(0)) 19959: std::__throw_domain_error(("Argument out of range " "in __psi") 19959: ); 19959: else if (__n == 0) 19959: return __psi(__x); 19959: else 19959: { 19959: const _Tp __hzeta = __hurwitz_zeta(_Tp(__n + 1), __x); 19959: 19959: const _Tp __ln_nfact = ::std::lgamma(_Tp(__n + 1)); 19959: 19959: 19959: 19959: _Tp __result = std::exp(__ln_nfact) * __hzeta; 19959: if (__n % 2 == 1) 19959: __result = -__result; 19959: return __result; 19959: } 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 48 "/usr/include/c++/13/bits/specfun.h" 2 3 19959: # 1 "/usr/include/c++/13/tr1/bessel_function.tcc" 1 3 19959: # 55 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 71 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 19959: namespace __detail 19959: { 19959: # 98 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 19959: template 19959: void 19959: __gamma_temme(_Tp __mu, 19959: _Tp & __gam1, _Tp & __gam2, _Tp & __gampl, _Tp & __gammi) 19959: { 19959: 19959: __gampl = _Tp(1) / ::std::tgamma(_Tp(1) + __mu); 19959: __gammi = _Tp(1) / ::std::tgamma(_Tp(1) - __mu); 19959: 19959: 19959: 19959: 19959: 19959: if (std::abs(__mu) < std::numeric_limits<_Tp>::epsilon()) 19959: __gam1 = -_Tp(__numeric_constants<_Tp>::__gamma_e()); 19959: else 19959: __gam1 = (__gammi - __gampl) / (_Tp(2) * __mu); 19959: 19959: __gam2 = (__gammi + __gampl) / (_Tp(2)); 19959: 19959: return; 19959: } 19959: # 136 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 19959: template 19959: void 19959: __bessel_jn(_Tp __nu, _Tp __x, 19959: _Tp & __Jnu, _Tp & __Nnu, _Tp & __Jpnu, _Tp & __Npnu) 19959: { 19959: if (__x == _Tp(0)) 19959: { 19959: if (__nu == _Tp(0)) 19959: { 19959: __Jnu = _Tp(1); 19959: __Jpnu = _Tp(0); 19959: } 19959: else if (__nu == _Tp(1)) 19959: { 19959: __Jnu = _Tp(0); 19959: __Jpnu = _Tp(0.5L); 19959: } 19959: else 19959: { 19959: __Jnu = _Tp(0); 19959: __Jpnu = _Tp(0); 19959: } 19959: __Nnu = -std::numeric_limits<_Tp>::infinity(); 19959: __Npnu = std::numeric_limits<_Tp>::infinity(); 19959: return; 19959: } 19959: 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: 19959: 19959: 19959: 19959: const _Tp __fp_min = std::sqrt(std::numeric_limits<_Tp>::min()); 19959: const int __max_iter = 15000; 19959: const _Tp __x_min = _Tp(2); 19959: 19959: const int __nl = (__x < __x_min 19959: ? static_cast(__nu + _Tp(0.5L)) 19959: : std::max(0, static_cast(__nu - __x + _Tp(1.5L)))); 19959: 19959: const _Tp __mu = __nu - __nl; 19959: const _Tp __mu2 = __mu * __mu; 19959: const _Tp __xi = _Tp(1) / __x; 19959: const _Tp __xi2 = _Tp(2) * __xi; 19959: _Tp __w = __xi2 / __numeric_constants<_Tp>::__pi(); 19959: int __isign = 1; 19959: _Tp __h = __nu * __xi; 19959: if (__h < __fp_min) 19959: __h = __fp_min; 19959: _Tp __b = __xi2 * __nu; 19959: _Tp __d = _Tp(0); 19959: _Tp __c = __h; 19959: int __i; 19959: for (__i = 1; __i <= __max_iter; ++__i) 19959: { 19959: __b += __xi2; 19959: __d = __b - __d; 19959: if (std::abs(__d) < __fp_min) 19959: __d = __fp_min; 19959: __c = __b - _Tp(1) / __c; 19959: if (std::abs(__c) < __fp_min) 19959: __c = __fp_min; 19959: __d = _Tp(1) / __d; 19959: const _Tp __del = __c * __d; 19959: __h *= __del; 19959: if (__d < _Tp(0)) 19959: __isign = -__isign; 19959: if (std::abs(__del - _Tp(1)) < __eps) 19959: break; 19959: } 19959: if (__i > __max_iter) 19959: std::__throw_runtime_error(("Argument x too large in __bessel_jn; " "try asymptotic expansion.") 19959: ); 19959: _Tp __Jnul = __isign * __fp_min; 19959: _Tp __Jpnul = __h * __Jnul; 19959: _Tp __Jnul1 = __Jnul; 19959: _Tp __Jpnu1 = __Jpnul; 19959: _Tp __fact = __nu * __xi; 19959: for ( int __l = __nl; __l >= 1; --__l ) 19959: { 19959: const _Tp __Jnutemp = __fact * __Jnul + __Jpnul; 19959: __fact -= __xi; 19959: __Jpnul = __fact * __Jnutemp - __Jnul; 19959: __Jnul = __Jnutemp; 19959: } 19959: if (__Jnul == _Tp(0)) 19959: __Jnul = __eps; 19959: _Tp __f= __Jpnul / __Jnul; 19959: _Tp __Nmu, __Nnu1, __Npmu, __Jmu; 19959: if (__x < __x_min) 19959: { 19959: const _Tp __x2 = __x / _Tp(2); 19959: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 19959: _Tp __fact = (std::abs(__pimu) < __eps 19959: ? _Tp(1) : __pimu / std::sin(__pimu)); 19959: _Tp __d = -std::log(__x2); 19959: _Tp __e = __mu * __d; 19959: _Tp __fact2 = (std::abs(__e) < __eps 19959: ? _Tp(1) : std::sinh(__e) / __e); 19959: _Tp __gam1, __gam2, __gampl, __gammi; 19959: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 19959: _Tp __ff = (_Tp(2) / __numeric_constants<_Tp>::__pi()) 19959: * __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 19959: __e = std::exp(__e); 19959: _Tp __p = __e / (__numeric_constants<_Tp>::__pi() * __gampl); 19959: _Tp __q = _Tp(1) / (__e * __numeric_constants<_Tp>::__pi() * __gammi); 19959: const _Tp __pimu2 = __pimu / _Tp(2); 19959: _Tp __fact3 = (std::abs(__pimu2) < __eps 19959: ? _Tp(1) : std::sin(__pimu2) / __pimu2 ); 19959: _Tp __r = __numeric_constants<_Tp>::__pi() * __pimu2 * __fact3 * __fact3; 19959: _Tp __c = _Tp(1); 19959: __d = -__x2 * __x2; 19959: _Tp __sum = __ff + __r * __q; 19959: _Tp __sum1 = __p; 19959: for (__i = 1; __i <= __max_iter; ++__i) 19959: { 19959: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 19959: __c *= __d / _Tp(__i); 19959: __p /= _Tp(__i) - __mu; 19959: __q /= _Tp(__i) + __mu; 19959: const _Tp __del = __c * (__ff + __r * __q); 19959: __sum += __del; 19959: const _Tp __del1 = __c * __p - __i * __del; 19959: __sum1 += __del1; 19959: if ( std::abs(__del) < __eps * (_Tp(1) + std::abs(__sum)) ) 19959: break; 19959: } 19959: if ( __i > __max_iter ) 19959: std::__throw_runtime_error(("Bessel y series failed to converge " "in __bessel_jn.") 19959: ); 19959: __Nmu = -__sum; 19959: __Nnu1 = -__sum1 * __xi2; 19959: __Npmu = __mu * __xi * __Nmu - __Nnu1; 19959: __Jmu = __w / (__Npmu - __f * __Nmu); 19959: } 19959: else 19959: { 19959: _Tp __a = _Tp(0.25L) - __mu2; 19959: _Tp __q = _Tp(1); 19959: _Tp __p = -__xi / _Tp(2); 19959: _Tp __br = _Tp(2) * __x; 19959: _Tp __bi = _Tp(2); 19959: _Tp __fact = __a * __xi / (__p * __p + __q * __q); 19959: _Tp __cr = __br + __q * __fact; 19959: _Tp __ci = __bi + __p * __fact; 19959: _Tp __den = __br * __br + __bi * __bi; 19959: _Tp __dr = __br / __den; 19959: _Tp __di = -__bi / __den; 19959: _Tp __dlr = __cr * __dr - __ci * __di; 19959: _Tp __dli = __cr * __di + __ci * __dr; 19959: _Tp __temp = __p * __dlr - __q * __dli; 19959: __q = __p * __dli + __q * __dlr; 19959: __p = __temp; 19959: int __i; 19959: for (__i = 2; __i <= __max_iter; ++__i) 19959: { 19959: __a += _Tp(2 * (__i - 1)); 19959: __bi += _Tp(2); 19959: __dr = __a * __dr + __br; 19959: __di = __a * __di + __bi; 19959: if (std::abs(__dr) + std::abs(__di) < __fp_min) 19959: __dr = __fp_min; 19959: __fact = __a / (__cr * __cr + __ci * __ci); 19959: __cr = __br + __cr * __fact; 19959: __ci = __bi - __ci * __fact; 19959: if (std::abs(__cr) + std::abs(__ci) < __fp_min) 19959: __cr = __fp_min; 19959: __den = __dr * __dr + __di * __di; 19959: __dr /= __den; 19959: __di /= -__den; 19959: __dlr = __cr * __dr - __ci * __di; 19959: __dli = __cr * __di + __ci * __dr; 19959: __temp = __p * __dlr - __q * __dli; 19959: __q = __p * __dli + __q * __dlr; 19959: __p = __temp; 19959: if (std::abs(__dlr - _Tp(1)) + std::abs(__dli) < __eps) 19959: break; 19959: } 19959: if (__i > __max_iter) 19959: std::__throw_runtime_error(("Lentz's method failed " "in __bessel_jn.") 19959: ); 19959: const _Tp __gam = (__p - __f) / __q; 19959: __Jmu = std::sqrt(__w / ((__p - __f) * __gam + __q)); 19959: 19959: __Jmu = ::std::copysign(__Jmu, __Jnul); 19959: 19959: 19959: 19959: 19959: __Nmu = __gam * __Jmu; 19959: __Npmu = (__p + __q / __gam) * __Nmu; 19959: __Nnu1 = __mu * __xi * __Nmu - __Npmu; 19959: } 19959: __fact = __Jmu / __Jnul; 19959: __Jnu = __fact * __Jnul1; 19959: __Jpnu = __fact * __Jpnu1; 19959: for (__i = 1; __i <= __nl; ++__i) 19959: { 19959: const _Tp __Nnutemp = (__mu + __i) * __xi2 * __Nnu1 - __Nmu; 19959: __Nmu = __Nnu1; 19959: __Nnu1 = __Nnutemp; 19959: } 19959: __Nnu = __Nmu; 19959: __Npnu = __nu * __xi * __Nmu - __Nnu1; 19959: 19959: return; 19959: } 19959: # 361 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 19959: template 19959: void 19959: __cyl_bessel_jn_asymp(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu) 19959: { 19959: const _Tp __mu = _Tp(4) * __nu * __nu; 19959: const _Tp __8x = _Tp(8) * __x; 19959: 19959: _Tp __P = _Tp(0); 19959: _Tp __Q = _Tp(0); 19959: 19959: _Tp __k = _Tp(0); 19959: _Tp __term = _Tp(1); 19959: 19959: int __epsP = 0; 19959: int __epsQ = 0; 19959: 19959: _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: 19959: do 19959: { 19959: __term *= (__k == 0 19959: ? _Tp(1) 19959: : -(__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x)); 19959: 19959: __epsP = std::abs(__term) < __eps * std::abs(__P); 19959: __P += __term; 19959: 19959: __k++; 19959: 19959: __term *= (__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x); 19959: __epsQ = std::abs(__term) < __eps * std::abs(__Q); 19959: __Q += __term; 19959: 19959: if (__epsP && __epsQ && __k > (__nu / 2.)) 19959: break; 19959: 19959: __k++; 19959: } 19959: while (__k < 1000); 19959: 19959: const _Tp __chi = __x - (__nu + _Tp(0.5L)) 19959: * __numeric_constants<_Tp>::__pi_2(); 19959: 19959: const _Tp __c = std::cos(__chi); 19959: const _Tp __s = std::sin(__chi); 19959: 19959: const _Tp __coef = std::sqrt(_Tp(2) 19959: / (__numeric_constants<_Tp>::__pi() * __x)); 19959: 19959: __Jnu = __coef * (__c * __P - __s * __Q); 19959: __Nnu = __coef * (__s * __P + __c * __Q); 19959: 19959: return; 19959: } 19959: # 444 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 19959: template 19959: _Tp 19959: __cyl_bessel_ij_series(_Tp __nu, _Tp __x, _Tp __sgn, 19959: unsigned int __max_iter) 19959: { 19959: if (__x == _Tp(0)) 19959: return __nu == _Tp(0) ? _Tp(1) : _Tp(0); 19959: 19959: const _Tp __x2 = __x / _Tp(2); 19959: _Tp __fact = __nu * std::log(__x2); 19959: 19959: __fact -= ::std::lgamma(__nu + _Tp(1)); 19959: 19959: 19959: 19959: __fact = std::exp(__fact); 19959: const _Tp __xx4 = __sgn * __x2 * __x2; 19959: _Tp __Jn = _Tp(1); 19959: _Tp __term = _Tp(1); 19959: 19959: for (unsigned int __i = 1; __i < __max_iter; ++__i) 19959: { 19959: __term *= __xx4 / (_Tp(__i) * (__nu + _Tp(__i))); 19959: __Jn += __term; 19959: if (std::abs(__term / __Jn) < std::numeric_limits<_Tp>::epsilon()) 19959: break; 19959: } 19959: 19959: return __fact * __Jn; 19959: } 19959: # 490 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 19959: template 19959: _Tp 19959: __cyl_bessel_j(_Tp __nu, _Tp __x) 19959: { 19959: if (__nu < _Tp(0) || __x < _Tp(0)) 19959: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_j.") 19959: ); 19959: else if (__isnan(__nu) || __isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 19959: return __cyl_bessel_ij_series(__nu, __x, -_Tp(1), 200); 19959: else if (__x > _Tp(1000)) 19959: { 19959: _Tp __J_nu, __N_nu; 19959: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 19959: return __J_nu; 19959: } 19959: else 19959: { 19959: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 19959: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 19959: return __J_nu; 19959: } 19959: } 19959: # 532 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 19959: template 19959: _Tp 19959: __cyl_neumann_n(_Tp __nu, _Tp __x) 19959: { 19959: if (__nu < _Tp(0) || __x < _Tp(0)) 19959: std::__throw_domain_error(("Bad argument " "in __cyl_neumann_n.") 19959: ); 19959: else if (__isnan(__nu) || __isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__x > _Tp(1000)) 19959: { 19959: _Tp __J_nu, __N_nu; 19959: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 19959: return __N_nu; 19959: } 19959: else 19959: { 19959: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 19959: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 19959: return __N_nu; 19959: } 19959: } 19959: # 569 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 19959: template 19959: void 19959: __sph_bessel_jn(unsigned int __n, _Tp __x, 19959: _Tp & __j_n, _Tp & __n_n, _Tp & __jp_n, _Tp & __np_n) 19959: { 19959: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 19959: 19959: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 19959: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 19959: 19959: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 19959: / std::sqrt(__x); 19959: 19959: __j_n = __factor * __J_nu; 19959: __n_n = __factor * __N_nu; 19959: __jp_n = __factor * __Jp_nu - __j_n / (_Tp(2) * __x); 19959: __np_n = __factor * __Np_nu - __n_n / (_Tp(2) * __x); 19959: 19959: return; 19959: } 19959: # 604 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 19959: template 19959: _Tp 19959: __sph_bessel(unsigned int __n, _Tp __x) 19959: { 19959: if (__x < _Tp(0)) 19959: std::__throw_domain_error(("Bad argument " "in __sph_bessel.") 19959: ); 19959: else if (__isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__x == _Tp(0)) 19959: { 19959: if (__n == 0) 19959: return _Tp(1); 19959: else 19959: return _Tp(0); 19959: } 19959: else 19959: { 19959: _Tp __j_n, __n_n, __jp_n, __np_n; 19959: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 19959: return __j_n; 19959: } 19959: } 19959: # 642 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 19959: template 19959: _Tp 19959: __sph_neumann(unsigned int __n, _Tp __x) 19959: { 19959: if (__x < _Tp(0)) 19959: std::__throw_domain_error(("Bad argument " "in __sph_neumann.") 19959: ); 19959: else if (__isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__x == _Tp(0)) 19959: return -std::numeric_limits<_Tp>::infinity(); 19959: else 19959: { 19959: _Tp __j_n, __n_n, __jp_n, __np_n; 19959: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 19959: return __n_n; 19959: } 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 49 "/usr/include/c++/13/bits/specfun.h" 2 3 19959: # 1 "/usr/include/c++/13/tr1/beta_function.tcc" 1 3 19959: # 49 "/usr/include/c++/13/tr1/beta_function.tcc" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 65 "/usr/include/c++/13/tr1/beta_function.tcc" 3 19959: namespace __detail 19959: { 19959: # 79 "/usr/include/c++/13/tr1/beta_function.tcc" 3 19959: template 19959: _Tp 19959: __beta_gamma(_Tp __x, _Tp __y) 19959: { 19959: 19959: _Tp __bet; 19959: 19959: if (__x > __y) 19959: { 19959: __bet = ::std::tgamma(__x) 19959: / ::std::tgamma(__x + __y); 19959: __bet *= ::std::tgamma(__y); 19959: } 19959: else 19959: { 19959: __bet = ::std::tgamma(__y) 19959: / ::std::tgamma(__x + __y); 19959: __bet *= ::std::tgamma(__x); 19959: } 19959: # 111 "/usr/include/c++/13/tr1/beta_function.tcc" 3 19959: return __bet; 19959: } 19959: # 127 "/usr/include/c++/13/tr1/beta_function.tcc" 3 19959: template 19959: _Tp 19959: __beta_lgamma(_Tp __x, _Tp __y) 19959: { 19959: 19959: _Tp __bet = ::std::lgamma(__x) 19959: + ::std::lgamma(__y) 19959: - ::std::lgamma(__x + __y); 19959: 19959: 19959: 19959: 19959: 19959: __bet = std::exp(__bet); 19959: return __bet; 19959: } 19959: # 158 "/usr/include/c++/13/tr1/beta_function.tcc" 3 19959: template 19959: _Tp 19959: __beta_product(_Tp __x, _Tp __y) 19959: { 19959: 19959: _Tp __bet = (__x + __y) / (__x * __y); 19959: 19959: unsigned int __max_iter = 1000000; 19959: for (unsigned int __k = 1; __k < __max_iter; ++__k) 19959: { 19959: _Tp __term = (_Tp(1) + (__x + __y) / __k) 19959: / ((_Tp(1) + __x / __k) * (_Tp(1) + __y / __k)); 19959: __bet *= __term; 19959: } 19959: 19959: return __bet; 19959: } 19959: # 189 "/usr/include/c++/13/tr1/beta_function.tcc" 3 19959: template 19959: inline _Tp 19959: __beta(_Tp __x, _Tp __y) 19959: { 19959: if (__isnan(__x) || __isnan(__y)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else 19959: return __beta_lgamma(__x, __y); 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 50 "/usr/include/c++/13/bits/specfun.h" 2 3 19959: # 1 "/usr/include/c++/13/tr1/ell_integral.tcc" 1 3 19959: # 45 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 59 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: namespace __detail 19959: { 19959: # 76 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: template 19959: _Tp 19959: __ellint_rf(_Tp __x, _Tp __y, _Tp __z) 19959: { 19959: const _Tp __min = std::numeric_limits<_Tp>::min(); 19959: const _Tp __lolim = _Tp(5) * __min; 19959: 19959: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 19959: std::__throw_domain_error(("Argument less than zero " "in __ellint_rf.") 19959: ); 19959: else if (__x + __y < __lolim || __x + __z < __lolim 19959: || __y + __z < __lolim) 19959: std::__throw_domain_error(("Argument too small in __ellint_rf")); 19959: else 19959: { 19959: const _Tp __c0 = _Tp(1) / _Tp(4); 19959: const _Tp __c1 = _Tp(1) / _Tp(24); 19959: const _Tp __c2 = _Tp(1) / _Tp(10); 19959: const _Tp __c3 = _Tp(3) / _Tp(44); 19959: const _Tp __c4 = _Tp(1) / _Tp(14); 19959: 19959: _Tp __xn = __x; 19959: _Tp __yn = __y; 19959: _Tp __zn = __z; 19959: 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: const _Tp __errtol = std::pow(__eps, _Tp(1) / _Tp(6)); 19959: _Tp __mu; 19959: _Tp __xndev, __yndev, __zndev; 19959: 19959: const unsigned int __max_iter = 100; 19959: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 19959: { 19959: __mu = (__xn + __yn + __zn) / _Tp(3); 19959: __xndev = 2 - (__mu + __xn) / __mu; 19959: __yndev = 2 - (__mu + __yn) / __mu; 19959: __zndev = 2 - (__mu + __zn) / __mu; 19959: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 19959: __epsilon = std::max(__epsilon, std::abs(__zndev)); 19959: if (__epsilon < __errtol) 19959: break; 19959: const _Tp __xnroot = std::sqrt(__xn); 19959: const _Tp __ynroot = std::sqrt(__yn); 19959: const _Tp __znroot = std::sqrt(__zn); 19959: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 19959: + __ynroot * __znroot; 19959: __xn = __c0 * (__xn + __lambda); 19959: __yn = __c0 * (__yn + __lambda); 19959: __zn = __c0 * (__zn + __lambda); 19959: } 19959: 19959: const _Tp __e2 = __xndev * __yndev - __zndev * __zndev; 19959: const _Tp __e3 = __xndev * __yndev * __zndev; 19959: const _Tp __s = _Tp(1) + (__c1 * __e2 - __c2 - __c3 * __e3) * __e2 19959: + __c4 * __e3; 19959: 19959: return __s / std::sqrt(__mu); 19959: } 19959: } 19959: # 153 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: template 19959: _Tp 19959: __comp_ellint_1_series(_Tp __k) 19959: { 19959: 19959: const _Tp __kk = __k * __k; 19959: 19959: _Tp __term = __kk / _Tp(4); 19959: _Tp __sum = _Tp(1) + __term; 19959: 19959: const unsigned int __max_iter = 1000; 19959: for (unsigned int __i = 2; __i < __max_iter; ++__i) 19959: { 19959: __term *= (2 * __i - 1) * __kk / (2 * __i); 19959: if (__term < std::numeric_limits<_Tp>::epsilon()) 19959: break; 19959: __sum += __term; 19959: } 19959: 19959: return __numeric_constants<_Tp>::__pi_2() * __sum; 19959: } 19959: # 191 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: template 19959: _Tp 19959: __comp_ellint_1(_Tp __k) 19959: { 19959: 19959: if (__isnan(__k)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (std::abs(__k) >= _Tp(1)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else 19959: return __ellint_rf(_Tp(0), _Tp(1) - __k * __k, _Tp(1)); 19959: } 19959: # 219 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: template 19959: _Tp 19959: __ellint_1(_Tp __k, _Tp __phi) 19959: { 19959: 19959: if (__isnan(__k) || __isnan(__phi)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (std::abs(__k) > _Tp(1)) 19959: std::__throw_domain_error(("Bad argument in __ellint_1.")); 19959: else 19959: { 19959: 19959: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 19959: + _Tp(0.5L)); 19959: const _Tp __phi_red = __phi 19959: - __n * __numeric_constants<_Tp>::__pi(); 19959: 19959: const _Tp __s = std::sin(__phi_red); 19959: const _Tp __c = std::cos(__phi_red); 19959: 19959: const _Tp __F = __s 19959: * __ellint_rf(__c * __c, 19959: _Tp(1) - __k * __k * __s * __s, _Tp(1)); 19959: 19959: if (__n == 0) 19959: return __F; 19959: else 19959: return __F + _Tp(2) * __n * __comp_ellint_1(__k); 19959: } 19959: } 19959: # 266 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: template 19959: _Tp 19959: __comp_ellint_2_series(_Tp __k) 19959: { 19959: 19959: const _Tp __kk = __k * __k; 19959: 19959: _Tp __term = __kk; 19959: _Tp __sum = __term; 19959: 19959: const unsigned int __max_iter = 1000; 19959: for (unsigned int __i = 2; __i < __max_iter; ++__i) 19959: { 19959: const _Tp __i2m = 2 * __i - 1; 19959: const _Tp __i2 = 2 * __i; 19959: __term *= __i2m * __i2m * __kk / (__i2 * __i2); 19959: if (__term < std::numeric_limits<_Tp>::epsilon()) 19959: break; 19959: __sum += __term / __i2m; 19959: } 19959: 19959: return __numeric_constants<_Tp>::__pi_2() * (_Tp(1) - __sum); 19959: } 19959: # 314 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: template 19959: _Tp 19959: __ellint_rd(_Tp __x, _Tp __y, _Tp __z) 19959: { 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 19959: const _Tp __max = std::numeric_limits<_Tp>::max(); 19959: const _Tp __lolim = _Tp(2) / std::pow(__max, _Tp(2) / _Tp(3)); 19959: 19959: if (__x < _Tp(0) || __y < _Tp(0)) 19959: std::__throw_domain_error(("Argument less than zero " "in __ellint_rd.") 19959: ); 19959: else if (__x + __y < __lolim || __z < __lolim) 19959: std::__throw_domain_error(("Argument too small " "in __ellint_rd.") 19959: ); 19959: else 19959: { 19959: const _Tp __c0 = _Tp(1) / _Tp(4); 19959: const _Tp __c1 = _Tp(3) / _Tp(14); 19959: const _Tp __c2 = _Tp(1) / _Tp(6); 19959: const _Tp __c3 = _Tp(9) / _Tp(22); 19959: const _Tp __c4 = _Tp(3) / _Tp(26); 19959: 19959: _Tp __xn = __x; 19959: _Tp __yn = __y; 19959: _Tp __zn = __z; 19959: _Tp __sigma = _Tp(0); 19959: _Tp __power4 = _Tp(1); 19959: 19959: _Tp __mu; 19959: _Tp __xndev, __yndev, __zndev; 19959: 19959: const unsigned int __max_iter = 100; 19959: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 19959: { 19959: __mu = (__xn + __yn + _Tp(3) * __zn) / _Tp(5); 19959: __xndev = (__mu - __xn) / __mu; 19959: __yndev = (__mu - __yn) / __mu; 19959: __zndev = (__mu - __zn) / __mu; 19959: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 19959: __epsilon = std::max(__epsilon, std::abs(__zndev)); 19959: if (__epsilon < __errtol) 19959: break; 19959: _Tp __xnroot = std::sqrt(__xn); 19959: _Tp __ynroot = std::sqrt(__yn); 19959: _Tp __znroot = std::sqrt(__zn); 19959: _Tp __lambda = __xnroot * (__ynroot + __znroot) 19959: + __ynroot * __znroot; 19959: __sigma += __power4 / (__znroot * (__zn + __lambda)); 19959: __power4 *= __c0; 19959: __xn = __c0 * (__xn + __lambda); 19959: __yn = __c0 * (__yn + __lambda); 19959: __zn = __c0 * (__zn + __lambda); 19959: } 19959: 19959: _Tp __ea = __xndev * __yndev; 19959: _Tp __eb = __zndev * __zndev; 19959: _Tp __ec = __ea - __eb; 19959: _Tp __ed = __ea - _Tp(6) * __eb; 19959: _Tp __ef = __ed + __ec + __ec; 19959: _Tp __s1 = __ed * (-__c1 + __c3 * __ed 19959: / _Tp(3) - _Tp(3) * __c4 * __zndev * __ef 19959: / _Tp(2)); 19959: _Tp __s2 = __zndev 19959: * (__c2 * __ef 19959: + __zndev * (-__c3 * __ec - __zndev * __c4 - __ea)); 19959: 19959: return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2) 19959: / (__mu * std::sqrt(__mu)); 19959: } 19959: } 19959: # 399 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: template 19959: _Tp 19959: __comp_ellint_2(_Tp __k) 19959: { 19959: 19959: if (__isnan(__k)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (std::abs(__k) == 1) 19959: return _Tp(1); 19959: else if (std::abs(__k) > _Tp(1)) 19959: std::__throw_domain_error(("Bad argument in __comp_ellint_2.")); 19959: else 19959: { 19959: const _Tp __kk = __k * __k; 19959: 19959: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 19959: - __kk * __ellint_rd(_Tp(0), _Tp(1) - __kk, _Tp(1)) / _Tp(3); 19959: } 19959: } 19959: # 433 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: template 19959: _Tp 19959: __ellint_2(_Tp __k, _Tp __phi) 19959: { 19959: 19959: if (__isnan(__k) || __isnan(__phi)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (std::abs(__k) > _Tp(1)) 19959: std::__throw_domain_error(("Bad argument in __ellint_2.")); 19959: else 19959: { 19959: 19959: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 19959: + _Tp(0.5L)); 19959: const _Tp __phi_red = __phi 19959: - __n * __numeric_constants<_Tp>::__pi(); 19959: 19959: const _Tp __kk = __k * __k; 19959: const _Tp __s = std::sin(__phi_red); 19959: const _Tp __ss = __s * __s; 19959: const _Tp __sss = __ss * __s; 19959: const _Tp __c = std::cos(__phi_red); 19959: const _Tp __cc = __c * __c; 19959: 19959: const _Tp __E = __s 19959: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 19959: - __kk * __sss 19959: * __ellint_rd(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 19959: / _Tp(3); 19959: 19959: if (__n == 0) 19959: return __E; 19959: else 19959: return __E + _Tp(2) * __n * __comp_ellint_2(__k); 19959: } 19959: } 19959: # 492 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: template 19959: _Tp 19959: __ellint_rc(_Tp __x, _Tp __y) 19959: { 19959: const _Tp __min = std::numeric_limits<_Tp>::min(); 19959: const _Tp __lolim = _Tp(5) * __min; 19959: 19959: if (__x < _Tp(0) || __y < _Tp(0) || __x + __y < __lolim) 19959: std::__throw_domain_error(("Argument less than zero " "in __ellint_rc.") 19959: ); 19959: else 19959: { 19959: const _Tp __c0 = _Tp(1) / _Tp(4); 19959: const _Tp __c1 = _Tp(1) / _Tp(7); 19959: const _Tp __c2 = _Tp(9) / _Tp(22); 19959: const _Tp __c3 = _Tp(3) / _Tp(10); 19959: const _Tp __c4 = _Tp(3) / _Tp(8); 19959: 19959: _Tp __xn = __x; 19959: _Tp __yn = __y; 19959: 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: const _Tp __errtol = std::pow(__eps / _Tp(30), _Tp(1) / _Tp(6)); 19959: _Tp __mu; 19959: _Tp __sn; 19959: 19959: const unsigned int __max_iter = 100; 19959: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 19959: { 19959: __mu = (__xn + _Tp(2) * __yn) / _Tp(3); 19959: __sn = (__yn + __mu) / __mu - _Tp(2); 19959: if (std::abs(__sn) < __errtol) 19959: break; 19959: const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) 19959: + __yn; 19959: __xn = __c0 * (__xn + __lambda); 19959: __yn = __c0 * (__yn + __lambda); 19959: } 19959: 19959: _Tp __s = __sn * __sn 19959: * (__c3 + __sn*(__c1 + __sn * (__c4 + __sn * __c2))); 19959: 19959: return (_Tp(1) + __s) / std::sqrt(__mu); 19959: } 19959: } 19959: # 561 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: template 19959: _Tp 19959: __ellint_rj(_Tp __x, _Tp __y, _Tp __z, _Tp __p) 19959: { 19959: const _Tp __min = std::numeric_limits<_Tp>::min(); 19959: const _Tp __lolim = std::pow(_Tp(5) * __min, _Tp(1)/_Tp(3)); 19959: 19959: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 19959: std::__throw_domain_error(("Argument less than zero " "in __ellint_rj.") 19959: ); 19959: else if (__x + __y < __lolim || __x + __z < __lolim 19959: || __y + __z < __lolim || __p < __lolim) 19959: std::__throw_domain_error(("Argument too small " "in __ellint_rj") 19959: ); 19959: else 19959: { 19959: const _Tp __c0 = _Tp(1) / _Tp(4); 19959: const _Tp __c1 = _Tp(3) / _Tp(14); 19959: const _Tp __c2 = _Tp(1) / _Tp(3); 19959: const _Tp __c3 = _Tp(3) / _Tp(22); 19959: const _Tp __c4 = _Tp(3) / _Tp(26); 19959: 19959: _Tp __xn = __x; 19959: _Tp __yn = __y; 19959: _Tp __zn = __z; 19959: _Tp __pn = __p; 19959: _Tp __sigma = _Tp(0); 19959: _Tp __power4 = _Tp(1); 19959: 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 19959: 19959: _Tp __mu; 19959: _Tp __xndev, __yndev, __zndev, __pndev; 19959: 19959: const unsigned int __max_iter = 100; 19959: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 19959: { 19959: __mu = (__xn + __yn + __zn + _Tp(2) * __pn) / _Tp(5); 19959: __xndev = (__mu - __xn) / __mu; 19959: __yndev = (__mu - __yn) / __mu; 19959: __zndev = (__mu - __zn) / __mu; 19959: __pndev = (__mu - __pn) / __mu; 19959: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 19959: __epsilon = std::max(__epsilon, std::abs(__zndev)); 19959: __epsilon = std::max(__epsilon, std::abs(__pndev)); 19959: if (__epsilon < __errtol) 19959: break; 19959: const _Tp __xnroot = std::sqrt(__xn); 19959: const _Tp __ynroot = std::sqrt(__yn); 19959: const _Tp __znroot = std::sqrt(__zn); 19959: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 19959: + __ynroot * __znroot; 19959: const _Tp __alpha1 = __pn * (__xnroot + __ynroot + __znroot) 19959: + __xnroot * __ynroot * __znroot; 19959: const _Tp __alpha2 = __alpha1 * __alpha1; 19959: const _Tp __beta = __pn * (__pn + __lambda) 19959: * (__pn + __lambda); 19959: __sigma += __power4 * __ellint_rc(__alpha2, __beta); 19959: __power4 *= __c0; 19959: __xn = __c0 * (__xn + __lambda); 19959: __yn = __c0 * (__yn + __lambda); 19959: __zn = __c0 * (__zn + __lambda); 19959: __pn = __c0 * (__pn + __lambda); 19959: } 19959: 19959: _Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev; 19959: _Tp __eb = __xndev * __yndev * __zndev; 19959: _Tp __ec = __pndev * __pndev; 19959: _Tp __e2 = __ea - _Tp(3) * __ec; 19959: _Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec); 19959: _Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4) 19959: - _Tp(3) * __c4 * __e3 / _Tp(2)); 19959: _Tp __s2 = __eb * (__c2 / _Tp(2) 19959: + __pndev * (-__c3 - __c3 + __pndev * __c4)); 19959: _Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3) 19959: - __c2 * __pndev * __ec; 19959: 19959: return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3) 19959: / (__mu * std::sqrt(__mu)); 19959: } 19959: } 19959: # 661 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: template 19959: _Tp 19959: __comp_ellint_3(_Tp __k, _Tp __nu) 19959: { 19959: 19959: if (__isnan(__k) || __isnan(__nu)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__nu == _Tp(1)) 19959: return std::numeric_limits<_Tp>::infinity(); 19959: else if (std::abs(__k) > _Tp(1)) 19959: std::__throw_domain_error(("Bad argument in __comp_ellint_3.")); 19959: else 19959: { 19959: const _Tp __kk = __k * __k; 19959: 19959: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 19959: + __nu 19959: * __ellint_rj(_Tp(0), _Tp(1) - __kk, _Tp(1), _Tp(1) - __nu) 19959: / _Tp(3); 19959: } 19959: } 19959: # 701 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 19959: template 19959: _Tp 19959: __ellint_3(_Tp __k, _Tp __nu, _Tp __phi) 19959: { 19959: 19959: if (__isnan(__k) || __isnan(__nu) || __isnan(__phi)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (std::abs(__k) > _Tp(1)) 19959: std::__throw_domain_error(("Bad argument in __ellint_3.")); 19959: else 19959: { 19959: 19959: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 19959: + _Tp(0.5L)); 19959: const _Tp __phi_red = __phi 19959: - __n * __numeric_constants<_Tp>::__pi(); 19959: 19959: const _Tp __kk = __k * __k; 19959: const _Tp __s = std::sin(__phi_red); 19959: const _Tp __ss = __s * __s; 19959: const _Tp __sss = __ss * __s; 19959: const _Tp __c = std::cos(__phi_red); 19959: const _Tp __cc = __c * __c; 19959: 19959: const _Tp __Pi = __s 19959: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 19959: + __nu * __sss 19959: * __ellint_rj(__cc, _Tp(1) - __kk * __ss, _Tp(1), 19959: _Tp(1) - __nu * __ss) / _Tp(3); 19959: 19959: if (__n == 0) 19959: return __Pi; 19959: else 19959: return __Pi + _Tp(2) * __n * __comp_ellint_3(__k, __nu); 19959: } 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 51 "/usr/include/c++/13/bits/specfun.h" 2 3 19959: # 1 "/usr/include/c++/13/tr1/exp_integral.tcc" 1 3 19959: # 50 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 64 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: namespace __detail 19959: { 19959: template _Tp __expint_E1(_Tp); 19959: # 81 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: template 19959: _Tp 19959: __expint_E1_series(_Tp __x) 19959: { 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: _Tp __term = _Tp(1); 19959: _Tp __esum = _Tp(0); 19959: _Tp __osum = _Tp(0); 19959: const unsigned int __max_iter = 1000; 19959: for (unsigned int __i = 1; __i < __max_iter; ++__i) 19959: { 19959: __term *= - __x / __i; 19959: if (std::abs(__term) < __eps) 19959: break; 19959: if (__term >= _Tp(0)) 19959: __esum += __term / __i; 19959: else 19959: __osum += __term / __i; 19959: } 19959: 19959: return - __esum - __osum 19959: - __numeric_constants<_Tp>::__gamma_e() - std::log(__x); 19959: } 19959: # 118 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: template 19959: _Tp 19959: __expint_E1_asymp(_Tp __x) 19959: { 19959: _Tp __term = _Tp(1); 19959: _Tp __esum = _Tp(1); 19959: _Tp __osum = _Tp(0); 19959: const unsigned int __max_iter = 1000; 19959: for (unsigned int __i = 1; __i < __max_iter; ++__i) 19959: { 19959: _Tp __prev = __term; 19959: __term *= - __i / __x; 19959: if (std::abs(__term) > std::abs(__prev)) 19959: break; 19959: if (__term >= _Tp(0)) 19959: __esum += __term; 19959: else 19959: __osum += __term; 19959: } 19959: 19959: return std::exp(- __x) * (__esum + __osum) / __x; 19959: } 19959: # 155 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: template 19959: _Tp 19959: __expint_En_series(unsigned int __n, _Tp __x) 19959: { 19959: const unsigned int __max_iter = 1000; 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: const int __nm1 = __n - 1; 19959: _Tp __ans = (__nm1 != 0 19959: ? _Tp(1) / __nm1 : -std::log(__x) 19959: - __numeric_constants<_Tp>::__gamma_e()); 19959: _Tp __fact = _Tp(1); 19959: for (int __i = 1; __i <= __max_iter; ++__i) 19959: { 19959: __fact *= -__x / _Tp(__i); 19959: _Tp __del; 19959: if ( __i != __nm1 ) 19959: __del = -__fact / _Tp(__i - __nm1); 19959: else 19959: { 19959: _Tp __psi = -__numeric_constants<_Tp>::gamma_e(); 19959: for (int __ii = 1; __ii <= __nm1; ++__ii) 19959: __psi += _Tp(1) / _Tp(__ii); 19959: __del = __fact * (__psi - std::log(__x)); 19959: } 19959: __ans += __del; 19959: if (std::abs(__del) < __eps * std::abs(__ans)) 19959: return __ans; 19959: } 19959: std::__throw_runtime_error(("Series summation failed " "in __expint_En_series.") 19959: ); 19959: } 19959: # 201 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: template 19959: _Tp 19959: __expint_En_cont_frac(unsigned int __n, _Tp __x) 19959: { 19959: const unsigned int __max_iter = 1000; 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: const _Tp __fp_min = std::numeric_limits<_Tp>::min(); 19959: const int __nm1 = __n - 1; 19959: _Tp __b = __x + _Tp(__n); 19959: _Tp __c = _Tp(1) / __fp_min; 19959: _Tp __d = _Tp(1) / __b; 19959: _Tp __h = __d; 19959: for ( unsigned int __i = 1; __i <= __max_iter; ++__i ) 19959: { 19959: _Tp __a = -_Tp(__i * (__nm1 + __i)); 19959: __b += _Tp(2); 19959: __d = _Tp(1) / (__a * __d + __b); 19959: __c = __b + __a / __c; 19959: const _Tp __del = __c * __d; 19959: __h *= __del; 19959: if (std::abs(__del - _Tp(1)) < __eps) 19959: { 19959: const _Tp __ans = __h * std::exp(-__x); 19959: return __ans; 19959: } 19959: } 19959: std::__throw_runtime_error(("Continued fraction failed " "in __expint_En_cont_frac.") 19959: ); 19959: } 19959: # 246 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: template 19959: _Tp 19959: __expint_En_recursion(unsigned int __n, _Tp __x) 19959: { 19959: _Tp __En; 19959: _Tp __E1 = __expint_E1(__x); 19959: if (__x < _Tp(__n)) 19959: { 19959: 19959: __En = __E1; 19959: for (unsigned int __j = 2; __j < __n; ++__j) 19959: __En = (std::exp(-__x) - __x * __En) / _Tp(__j - 1); 19959: } 19959: else 19959: { 19959: 19959: __En = _Tp(1); 19959: const int __N = __n + 20; 19959: _Tp __save = _Tp(0); 19959: for (int __j = __N; __j > 0; --__j) 19959: { 19959: __En = (std::exp(-__x) - __j * __En) / __x; 19959: if (__j == __n) 19959: __save = __En; 19959: } 19959: _Tp __norm = __En / __E1; 19959: __En /= __norm; 19959: } 19959: 19959: return __En; 19959: } 19959: # 290 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: template 19959: _Tp 19959: __expint_Ei_series(_Tp __x) 19959: { 19959: _Tp __term = _Tp(1); 19959: _Tp __sum = _Tp(0); 19959: const unsigned int __max_iter = 1000; 19959: for (unsigned int __i = 1; __i < __max_iter; ++__i) 19959: { 19959: __term *= __x / __i; 19959: __sum += __term / __i; 19959: if (__term < std::numeric_limits<_Tp>::epsilon() * __sum) 19959: break; 19959: } 19959: 19959: return __numeric_constants<_Tp>::__gamma_e() + __sum + std::log(__x); 19959: } 19959: # 321 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: template 19959: _Tp 19959: __expint_Ei_asymp(_Tp __x) 19959: { 19959: _Tp __term = _Tp(1); 19959: _Tp __sum = _Tp(1); 19959: const unsigned int __max_iter = 1000; 19959: for (unsigned int __i = 1; __i < __max_iter; ++__i) 19959: { 19959: _Tp __prev = __term; 19959: __term *= __i / __x; 19959: if (__term < std::numeric_limits<_Tp>::epsilon()) 19959: break; 19959: if (__term >= __prev) 19959: break; 19959: __sum += __term; 19959: } 19959: 19959: return std::exp(__x) * __sum / __x; 19959: } 19959: # 354 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: template 19959: _Tp 19959: __expint_Ei(_Tp __x) 19959: { 19959: if (__x < _Tp(0)) 19959: return -__expint_E1(-__x); 19959: else if (__x < -std::log(std::numeric_limits<_Tp>::epsilon())) 19959: return __expint_Ei_series(__x); 19959: else 19959: return __expint_Ei_asymp(__x); 19959: } 19959: # 378 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: template 19959: _Tp 19959: __expint_E1(_Tp __x) 19959: { 19959: if (__x < _Tp(0)) 19959: return -__expint_Ei(-__x); 19959: else if (__x < _Tp(1)) 19959: return __expint_E1_series(__x); 19959: else if (__x < _Tp(100)) 19959: return __expint_En_cont_frac(1, __x); 19959: else 19959: return __expint_E1_asymp(__x); 19959: } 19959: # 408 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: template 19959: _Tp 19959: __expint_asymp(unsigned int __n, _Tp __x) 19959: { 19959: _Tp __term = _Tp(1); 19959: _Tp __sum = _Tp(1); 19959: for (unsigned int __i = 1; __i <= __n; ++__i) 19959: { 19959: _Tp __prev = __term; 19959: __term *= -(__n - __i + 1) / __x; 19959: if (std::abs(__term) > std::abs(__prev)) 19959: break; 19959: __sum += __term; 19959: } 19959: 19959: return std::exp(-__x) * __sum / __x; 19959: } 19959: # 442 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: template 19959: _Tp 19959: __expint_large_n(unsigned int __n, _Tp __x) 19959: { 19959: const _Tp __xpn = __x + __n; 19959: const _Tp __xpn2 = __xpn * __xpn; 19959: _Tp __term = _Tp(1); 19959: _Tp __sum = _Tp(1); 19959: for (unsigned int __i = 1; __i <= __n; ++__i) 19959: { 19959: _Tp __prev = __term; 19959: __term *= (__n - 2 * (__i - 1) * __x) / __xpn2; 19959: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 19959: break; 19959: __sum += __term; 19959: } 19959: 19959: return std::exp(-__x) * __sum / __xpn; 19959: } 19959: # 476 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: template 19959: _Tp 19959: __expint(unsigned int __n, _Tp __x) 19959: { 19959: 19959: if (__isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__n <= 1 && __x == _Tp(0)) 19959: return std::numeric_limits<_Tp>::infinity(); 19959: else 19959: { 19959: _Tp __E0 = std::exp(__x) / __x; 19959: if (__n == 0) 19959: return __E0; 19959: 19959: _Tp __E1 = __expint_E1(__x); 19959: if (__n == 1) 19959: return __E1; 19959: 19959: if (__x == _Tp(0)) 19959: return _Tp(1) / static_cast<_Tp>(__n - 1); 19959: 19959: _Tp __En = __expint_En_recursion(__n, __x); 19959: 19959: return __En; 19959: } 19959: } 19959: # 516 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 19959: template 19959: inline _Tp 19959: __expint(_Tp __x) 19959: { 19959: if (__isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else 19959: return __expint_Ei(__x); 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 52 "/usr/include/c++/13/bits/specfun.h" 2 3 19959: # 1 "/usr/include/c++/13/tr1/hypergeometric.tcc" 1 3 19959: # 44 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 60 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 19959: namespace __detail 19959: { 19959: # 83 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 19959: template 19959: _Tp 19959: __conf_hyperg_series(_Tp __a, _Tp __c, _Tp __x) 19959: { 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: 19959: _Tp __term = _Tp(1); 19959: _Tp __Fac = _Tp(1); 19959: const unsigned int __max_iter = 100000; 19959: unsigned int __i; 19959: for (__i = 0; __i < __max_iter; ++__i) 19959: { 19959: __term *= (__a + _Tp(__i)) * __x 19959: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 19959: if (std::abs(__term) < __eps) 19959: { 19959: break; 19959: } 19959: __Fac += __term; 19959: } 19959: if (__i == __max_iter) 19959: std::__throw_runtime_error(("Series failed to converge " "in __conf_hyperg_series.") 19959: ); 19959: 19959: return __Fac; 19959: } 19959: # 120 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 19959: template 19959: _Tp 19959: __conf_hyperg_luke(_Tp __a, _Tp __c, _Tp __xin) 19959: { 19959: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 19959: const int __nmax = 20000; 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: const _Tp __x = -__xin; 19959: const _Tp __x3 = __x * __x * __x; 19959: const _Tp __t0 = __a / __c; 19959: const _Tp __t1 = (__a + _Tp(1)) / (_Tp(2) * __c); 19959: const _Tp __t2 = (__a + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); 19959: _Tp __F = _Tp(1); 19959: _Tp __prec; 19959: 19959: _Tp __Bnm3 = _Tp(1); 19959: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 19959: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 19959: 19959: _Tp __Anm3 = _Tp(1); 19959: _Tp __Anm2 = __Bnm2 - __t0 * __x; 19959: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 19959: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 19959: 19959: int __n = 3; 19959: while(1) 19959: { 19959: _Tp __npam1 = _Tp(__n - 1) + __a; 19959: _Tp __npcm1 = _Tp(__n - 1) + __c; 19959: _Tp __npam2 = _Tp(__n - 2) + __a; 19959: _Tp __npcm2 = _Tp(__n - 2) + __c; 19959: _Tp __tnm1 = _Tp(2 * __n - 1); 19959: _Tp __tnm3 = _Tp(2 * __n - 3); 19959: _Tp __tnm5 = _Tp(2 * __n - 5); 19959: _Tp __F1 = (_Tp(__n - 2) - __a) / (_Tp(2) * __tnm3 * __npcm1); 19959: _Tp __F2 = (_Tp(__n) + __a) * __npam1 19959: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 19959: _Tp __F3 = -__npam2 * __npam1 * (_Tp(__n - 2) - __a) 19959: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 19959: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 19959: _Tp __E = -__npam1 * (_Tp(__n - 1) - __c) 19959: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 19959: 19959: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 19959: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 19959: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 19959: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 19959: _Tp __r = __An / __Bn; 19959: 19959: __prec = std::abs((__F - __r) / __F); 19959: __F = __r; 19959: 19959: if (__prec < __eps || __n > __nmax) 19959: break; 19959: 19959: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 19959: { 19959: __An /= __big; 19959: __Bn /= __big; 19959: __Anm1 /= __big; 19959: __Bnm1 /= __big; 19959: __Anm2 /= __big; 19959: __Bnm2 /= __big; 19959: __Anm3 /= __big; 19959: __Bnm3 /= __big; 19959: } 19959: else if (std::abs(__An) < _Tp(1) / __big 19959: || std::abs(__Bn) < _Tp(1) / __big) 19959: { 19959: __An *= __big; 19959: __Bn *= __big; 19959: __Anm1 *= __big; 19959: __Bnm1 *= __big; 19959: __Anm2 *= __big; 19959: __Bnm2 *= __big; 19959: __Anm3 *= __big; 19959: __Bnm3 *= __big; 19959: } 19959: 19959: ++__n; 19959: __Bnm3 = __Bnm2; 19959: __Bnm2 = __Bnm1; 19959: __Bnm1 = __Bn; 19959: __Anm3 = __Anm2; 19959: __Anm2 = __Anm1; 19959: __Anm1 = __An; 19959: } 19959: 19959: if (__n >= __nmax) 19959: std::__throw_runtime_error(("Iteration failed to converge " "in __conf_hyperg_luke.") 19959: ); 19959: 19959: return __F; 19959: } 19959: # 227 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 19959: template 19959: _Tp 19959: __conf_hyperg(_Tp __a, _Tp __c, _Tp __x) 19959: { 19959: 19959: const _Tp __c_nint = ::std::nearbyint(__c); 19959: 19959: 19959: 19959: if (__isnan(__a) || __isnan(__c) || __isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__c_nint == __c && __c_nint <= 0) 19959: return std::numeric_limits<_Tp>::infinity(); 19959: else if (__a == _Tp(0)) 19959: return _Tp(1); 19959: else if (__c == __a) 19959: return std::exp(__x); 19959: else if (__x < _Tp(0)) 19959: return __conf_hyperg_luke(__a, __c, __x); 19959: else 19959: return __conf_hyperg_series(__a, __c, __x); 19959: } 19959: # 271 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 19959: template 19959: _Tp 19959: __hyperg_series(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 19959: { 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: 19959: _Tp __term = _Tp(1); 19959: _Tp __Fabc = _Tp(1); 19959: const unsigned int __max_iter = 100000; 19959: unsigned int __i; 19959: for (__i = 0; __i < __max_iter; ++__i) 19959: { 19959: __term *= (__a + _Tp(__i)) * (__b + _Tp(__i)) * __x 19959: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 19959: if (std::abs(__term) < __eps) 19959: { 19959: break; 19959: } 19959: __Fabc += __term; 19959: } 19959: if (__i == __max_iter) 19959: std::__throw_runtime_error(("Series failed to converge " "in __hyperg_series.") 19959: ); 19959: 19959: return __Fabc; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: _Tp 19959: __hyperg_luke(_Tp __a, _Tp __b, _Tp __c, _Tp __xin) 19959: { 19959: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 19959: const int __nmax = 20000; 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: const _Tp __x = -__xin; 19959: const _Tp __x3 = __x * __x * __x; 19959: const _Tp __t0 = __a * __b / __c; 19959: const _Tp __t1 = (__a + _Tp(1)) * (__b + _Tp(1)) / (_Tp(2) * __c); 19959: const _Tp __t2 = (__a + _Tp(2)) * (__b + _Tp(2)) 19959: / (_Tp(2) * (__c + _Tp(1))); 19959: 19959: _Tp __F = _Tp(1); 19959: 19959: _Tp __Bnm3 = _Tp(1); 19959: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 19959: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 19959: 19959: _Tp __Anm3 = _Tp(1); 19959: _Tp __Anm2 = __Bnm2 - __t0 * __x; 19959: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 19959: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 19959: 19959: int __n = 3; 19959: while (1) 19959: { 19959: const _Tp __npam1 = _Tp(__n - 1) + __a; 19959: const _Tp __npbm1 = _Tp(__n - 1) + __b; 19959: const _Tp __npcm1 = _Tp(__n - 1) + __c; 19959: const _Tp __npam2 = _Tp(__n - 2) + __a; 19959: const _Tp __npbm2 = _Tp(__n - 2) + __b; 19959: const _Tp __npcm2 = _Tp(__n - 2) + __c; 19959: const _Tp __tnm1 = _Tp(2 * __n - 1); 19959: const _Tp __tnm3 = _Tp(2 * __n - 3); 19959: const _Tp __tnm5 = _Tp(2 * __n - 5); 19959: const _Tp __n2 = __n * __n; 19959: const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n 19959: + _Tp(2) - __a * __b - _Tp(2) * (__a + __b)) 19959: / (_Tp(2) * __tnm3 * __npcm1); 19959: const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n 19959: + _Tp(2) - __a * __b) * __npam1 * __npbm1 19959: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 19959: const _Tp __F3 = (__npam2 * __npam1 * __npbm2 * __npbm1 19959: * (_Tp(__n - 2) - __a) * (_Tp(__n - 2) - __b)) 19959: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 19959: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 19959: const _Tp __E = -__npam1 * __npbm1 * (_Tp(__n - 1) - __c) 19959: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 19959: 19959: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 19959: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 19959: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 19959: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 19959: const _Tp __r = __An / __Bn; 19959: 19959: const _Tp __prec = std::abs((__F - __r) / __F); 19959: __F = __r; 19959: 19959: if (__prec < __eps || __n > __nmax) 19959: break; 19959: 19959: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 19959: { 19959: __An /= __big; 19959: __Bn /= __big; 19959: __Anm1 /= __big; 19959: __Bnm1 /= __big; 19959: __Anm2 /= __big; 19959: __Bnm2 /= __big; 19959: __Anm3 /= __big; 19959: __Bnm3 /= __big; 19959: } 19959: else if (std::abs(__An) < _Tp(1) / __big 19959: || std::abs(__Bn) < _Tp(1) / __big) 19959: { 19959: __An *= __big; 19959: __Bn *= __big; 19959: __Anm1 *= __big; 19959: __Bnm1 *= __big; 19959: __Anm2 *= __big; 19959: __Bnm2 *= __big; 19959: __Anm3 *= __big; 19959: __Bnm3 *= __big; 19959: } 19959: 19959: ++__n; 19959: __Bnm3 = __Bnm2; 19959: __Bnm2 = __Bnm1; 19959: __Bnm1 = __Bn; 19959: __Anm3 = __Anm2; 19959: __Anm2 = __Anm1; 19959: __Anm1 = __An; 19959: } 19959: 19959: if (__n >= __nmax) 19959: std::__throw_runtime_error(("Iteration failed to converge " "in __hyperg_luke.") 19959: ); 19959: 19959: return __F; 19959: } 19959: # 438 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 19959: template 19959: _Tp 19959: __hyperg_reflect(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 19959: { 19959: const _Tp __d = __c - __a - __b; 19959: const int __intd = std::floor(__d + _Tp(0.5L)); 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: const _Tp __toler = _Tp(1000) * __eps; 19959: const _Tp __log_max = std::log(std::numeric_limits<_Tp>::max()); 19959: const bool __d_integer = (std::abs(__d - __intd) < __toler); 19959: 19959: if (__d_integer) 19959: { 19959: const _Tp __ln_omx = std::log(_Tp(1) - __x); 19959: const _Tp __ad = std::abs(__d); 19959: _Tp __F1, __F2; 19959: 19959: _Tp __d1, __d2; 19959: if (__d >= _Tp(0)) 19959: { 19959: __d1 = __d; 19959: __d2 = _Tp(0); 19959: } 19959: else 19959: { 19959: __d1 = _Tp(0); 19959: __d2 = __d; 19959: } 19959: 19959: const _Tp __lng_c = __log_gamma(__c); 19959: 19959: 19959: if (__ad < __eps) 19959: { 19959: 19959: __F1 = _Tp(0); 19959: } 19959: else 19959: { 19959: 19959: bool __ok_d1 = true; 19959: _Tp __lng_ad, __lng_ad1, __lng_bd1; 19959: try 19959: { 19959: __lng_ad = __log_gamma(__ad); 19959: __lng_ad1 = __log_gamma(__a + __d1); 19959: __lng_bd1 = __log_gamma(__b + __d1); 19959: } 19959: catch(...) 19959: { 19959: __ok_d1 = false; 19959: } 19959: 19959: if (__ok_d1) 19959: { 19959: 19959: 19959: 19959: _Tp __sum1 = _Tp(1); 19959: _Tp __term = _Tp(1); 19959: _Tp __ln_pre1 = __lng_ad + __lng_c + __d2 * __ln_omx 19959: - __lng_ad1 - __lng_bd1; 19959: 19959: 19959: 19959: for (int __i = 1; __i < __ad; ++__i) 19959: { 19959: const int __j = __i - 1; 19959: __term *= (__a + __d2 + __j) * (__b + __d2 + __j) 19959: / (_Tp(1) + __d2 + __j) / __i * (_Tp(1) - __x); 19959: __sum1 += __term; 19959: } 19959: 19959: if (__ln_pre1 > __log_max) 19959: std::__throw_runtime_error(("Overflow of gamma functions" " in __hyperg_luke.") 19959: ); 19959: else 19959: __F1 = std::exp(__ln_pre1) * __sum1; 19959: } 19959: else 19959: { 19959: 19959: 19959: __F1 = _Tp(0); 19959: } 19959: } 19959: 19959: 19959: bool __ok_d2 = true; 19959: _Tp __lng_ad2, __lng_bd2; 19959: try 19959: { 19959: __lng_ad2 = __log_gamma(__a + __d2); 19959: __lng_bd2 = __log_gamma(__b + __d2); 19959: } 19959: catch(...) 19959: { 19959: __ok_d2 = false; 19959: } 19959: 19959: if (__ok_d2) 19959: { 19959: 19959: 19959: const int __maxiter = 2000; 19959: const _Tp __psi_1 = -__numeric_constants<_Tp>::__gamma_e(); 19959: const _Tp __psi_1pd = __psi(_Tp(1) + __ad); 19959: const _Tp __psi_apd1 = __psi(__a + __d1); 19959: const _Tp __psi_bpd1 = __psi(__b + __d1); 19959: 19959: _Tp __psi_term = __psi_1 + __psi_1pd - __psi_apd1 19959: - __psi_bpd1 - __ln_omx; 19959: _Tp __fact = _Tp(1); 19959: _Tp __sum2 = __psi_term; 19959: _Tp __ln_pre2 = __lng_c + __d1 * __ln_omx 19959: - __lng_ad2 - __lng_bd2; 19959: 19959: 19959: int __j; 19959: for (__j = 1; __j < __maxiter; ++__j) 19959: { 19959: 19959: 19959: const _Tp __term1 = _Tp(1) / _Tp(__j) 19959: + _Tp(1) / (__ad + __j); 19959: const _Tp __term2 = _Tp(1) / (__a + __d1 + _Tp(__j - 1)) 19959: + _Tp(1) / (__b + __d1 + _Tp(__j - 1)); 19959: __psi_term += __term1 - __term2; 19959: __fact *= (__a + __d1 + _Tp(__j - 1)) 19959: * (__b + __d1 + _Tp(__j - 1)) 19959: / ((__ad + __j) * __j) * (_Tp(1) - __x); 19959: const _Tp __delta = __fact * __psi_term; 19959: __sum2 += __delta; 19959: if (std::abs(__delta) < __eps * std::abs(__sum2)) 19959: break; 19959: } 19959: if (__j == __maxiter) 19959: std::__throw_runtime_error(("Sum F2 failed to converge " "in __hyperg_reflect") 19959: ); 19959: 19959: if (__sum2 == _Tp(0)) 19959: __F2 = _Tp(0); 19959: else 19959: __F2 = std::exp(__ln_pre2) * __sum2; 19959: } 19959: else 19959: { 19959: 19959: 19959: __F2 = _Tp(0); 19959: } 19959: 19959: const _Tp __sgn_2 = (__intd % 2 == 1 ? -_Tp(1) : _Tp(1)); 19959: const _Tp __F = __F1 + __sgn_2 * __F2; 19959: 19959: return __F; 19959: } 19959: else 19959: { 19959: 19959: 19959: 19959: 19959: bool __ok1 = true; 19959: _Tp __sgn_g1ca = _Tp(0), __ln_g1ca = _Tp(0); 19959: _Tp __sgn_g1cb = _Tp(0), __ln_g1cb = _Tp(0); 19959: try 19959: { 19959: __sgn_g1ca = __log_gamma_sign(__c - __a); 19959: __ln_g1ca = __log_gamma(__c - __a); 19959: __sgn_g1cb = __log_gamma_sign(__c - __b); 19959: __ln_g1cb = __log_gamma(__c - __b); 19959: } 19959: catch(...) 19959: { 19959: __ok1 = false; 19959: } 19959: 19959: bool __ok2 = true; 19959: _Tp __sgn_g2a = _Tp(0), __ln_g2a = _Tp(0); 19959: _Tp __sgn_g2b = _Tp(0), __ln_g2b = _Tp(0); 19959: try 19959: { 19959: __sgn_g2a = __log_gamma_sign(__a); 19959: __ln_g2a = __log_gamma(__a); 19959: __sgn_g2b = __log_gamma_sign(__b); 19959: __ln_g2b = __log_gamma(__b); 19959: } 19959: catch(...) 19959: { 19959: __ok2 = false; 19959: } 19959: 19959: const _Tp __sgn_gc = __log_gamma_sign(__c); 19959: const _Tp __ln_gc = __log_gamma(__c); 19959: const _Tp __sgn_gd = __log_gamma_sign(__d); 19959: const _Tp __ln_gd = __log_gamma(__d); 19959: const _Tp __sgn_gmd = __log_gamma_sign(-__d); 19959: const _Tp __ln_gmd = __log_gamma(-__d); 19959: 19959: const _Tp __sgn1 = __sgn_gc * __sgn_gd * __sgn_g1ca * __sgn_g1cb; 19959: const _Tp __sgn2 = __sgn_gc * __sgn_gmd * __sgn_g2a * __sgn_g2b; 19959: 19959: _Tp __pre1, __pre2; 19959: if (__ok1 && __ok2) 19959: { 19959: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 19959: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 19959: + __d * std::log(_Tp(1) - __x); 19959: if (__ln_pre1 < __log_max && __ln_pre2 < __log_max) 19959: { 19959: __pre1 = std::exp(__ln_pre1); 19959: __pre2 = std::exp(__ln_pre2); 19959: __pre1 *= __sgn1; 19959: __pre2 *= __sgn2; 19959: } 19959: else 19959: { 19959: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 19959: ); 19959: } 19959: } 19959: else if (__ok1 && !__ok2) 19959: { 19959: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 19959: if (__ln_pre1 < __log_max) 19959: { 19959: __pre1 = std::exp(__ln_pre1); 19959: __pre1 *= __sgn1; 19959: __pre2 = _Tp(0); 19959: } 19959: else 19959: { 19959: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 19959: ); 19959: } 19959: } 19959: else if (!__ok1 && __ok2) 19959: { 19959: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 19959: + __d * std::log(_Tp(1) - __x); 19959: if (__ln_pre2 < __log_max) 19959: { 19959: __pre1 = _Tp(0); 19959: __pre2 = std::exp(__ln_pre2); 19959: __pre2 *= __sgn2; 19959: } 19959: else 19959: { 19959: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 19959: ); 19959: } 19959: } 19959: else 19959: { 19959: __pre1 = _Tp(0); 19959: __pre2 = _Tp(0); 19959: std::__throw_runtime_error(("Underflow of gamma functions " "in __hyperg_reflect") 19959: ); 19959: } 19959: 19959: const _Tp __F1 = __hyperg_series(__a, __b, _Tp(1) - __d, 19959: _Tp(1) - __x); 19959: const _Tp __F2 = __hyperg_series(__c - __a, __c - __b, _Tp(1) + __d, 19959: _Tp(1) - __x); 19959: 19959: const _Tp __F = __pre1 * __F1 + __pre2 * __F2; 19959: 19959: return __F; 19959: } 19959: } 19959: # 728 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 19959: template 19959: _Tp 19959: __hyperg(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 19959: { 19959: 19959: const _Tp __a_nint = ::std::nearbyint(__a); 19959: const _Tp __b_nint = ::std::nearbyint(__b); 19959: const _Tp __c_nint = ::std::nearbyint(__c); 19959: 19959: 19959: 19959: 19959: 19959: const _Tp __toler = _Tp(1000) * std::numeric_limits<_Tp>::epsilon(); 19959: if (std::abs(__x) >= _Tp(1)) 19959: std::__throw_domain_error(("Argument outside unit circle " "in __hyperg.") 19959: ); 19959: else if (__isnan(__a) || __isnan(__b) 19959: || __isnan(__c) || __isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__c_nint == __c && __c_nint <= _Tp(0)) 19959: return std::numeric_limits<_Tp>::infinity(); 19959: else if (std::abs(__c - __b) < __toler || std::abs(__c - __a) < __toler) 19959: return std::pow(_Tp(1) - __x, __c - __a - __b); 19959: else if (__a >= _Tp(0) && __b >= _Tp(0) && __c >= _Tp(0) 19959: && __x >= _Tp(0) && __x < _Tp(0.995L)) 19959: return __hyperg_series(__a, __b, __c, __x); 19959: else if (std::abs(__a) < _Tp(10) && std::abs(__b) < _Tp(10)) 19959: { 19959: 19959: 19959: if (__a < _Tp(0) && std::abs(__a - __a_nint) < __toler) 19959: return __hyperg_series(__a_nint, __b, __c, __x); 19959: else if (__b < _Tp(0) && std::abs(__b - __b_nint) < __toler) 19959: return __hyperg_series(__a, __b_nint, __c, __x); 19959: else if (__x < -_Tp(0.25L)) 19959: return __hyperg_luke(__a, __b, __c, __x); 19959: else if (__x < _Tp(0.5L)) 19959: return __hyperg_series(__a, __b, __c, __x); 19959: else 19959: if (std::abs(__c) > _Tp(10)) 19959: return __hyperg_series(__a, __b, __c, __x); 19959: else 19959: return __hyperg_reflect(__a, __b, __c, __x); 19959: } 19959: else 19959: return __hyperg_luke(__a, __b, __c, __x); 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 53 "/usr/include/c++/13/bits/specfun.h" 2 3 19959: # 1 "/usr/include/c++/13/tr1/legendre_function.tcc" 1 3 19959: # 49 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 65 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 19959: namespace __detail 19959: { 19959: # 80 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 19959: template 19959: _Tp 19959: __poly_legendre_p(unsigned int __l, _Tp __x) 19959: { 19959: 19959: if (__isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__x == +_Tp(1)) 19959: return +_Tp(1); 19959: else if (__x == -_Tp(1)) 19959: return (__l % 2 == 1 ? -_Tp(1) : +_Tp(1)); 19959: else 19959: { 19959: _Tp __p_lm2 = _Tp(1); 19959: if (__l == 0) 19959: return __p_lm2; 19959: 19959: _Tp __p_lm1 = __x; 19959: if (__l == 1) 19959: return __p_lm1; 19959: 19959: _Tp __p_l = 0; 19959: for (unsigned int __ll = 2; __ll <= __l; ++__ll) 19959: { 19959: 19959: 19959: __p_l = _Tp(2) * __x * __p_lm1 - __p_lm2 19959: - (__x * __p_lm1 - __p_lm2) / _Tp(__ll); 19959: __p_lm2 = __p_lm1; 19959: __p_lm1 = __p_l; 19959: } 19959: 19959: return __p_l; 19959: } 19959: } 19959: # 136 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 19959: template 19959: _Tp 19959: __assoc_legendre_p(unsigned int __l, unsigned int __m, _Tp __x, 19959: _Tp __phase = _Tp(+1)) 19959: { 19959: 19959: if (__m > __l) 19959: return _Tp(0); 19959: else if (__isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__m == 0) 19959: return __poly_legendre_p(__l, __x); 19959: else 19959: { 19959: _Tp __p_mm = _Tp(1); 19959: if (__m > 0) 19959: { 19959: 19959: 19959: _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); 19959: _Tp __fact = _Tp(1); 19959: for (unsigned int __i = 1; __i <= __m; ++__i) 19959: { 19959: __p_mm *= __phase * __fact * __root; 19959: __fact += _Tp(2); 19959: } 19959: } 19959: if (__l == __m) 19959: return __p_mm; 19959: 19959: _Tp __p_mp1m = _Tp(2 * __m + 1) * __x * __p_mm; 19959: if (__l == __m + 1) 19959: return __p_mp1m; 19959: 19959: _Tp __p_lm2m = __p_mm; 19959: _Tp __P_lm1m = __p_mp1m; 19959: _Tp __p_lm = _Tp(0); 19959: for (unsigned int __j = __m + 2; __j <= __l; ++__j) 19959: { 19959: __p_lm = (_Tp(2 * __j - 1) * __x * __P_lm1m 19959: - _Tp(__j + __m - 1) * __p_lm2m) / _Tp(__j - __m); 19959: __p_lm2m = __P_lm1m; 19959: __P_lm1m = __p_lm; 19959: } 19959: 19959: return __p_lm; 19959: } 19959: } 19959: # 214 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 19959: template 19959: _Tp 19959: __sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 19959: { 19959: if (__isnan(__theta)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: 19959: const _Tp __x = std::cos(__theta); 19959: 19959: if (__m > __l) 19959: return _Tp(0); 19959: else if (__m == 0) 19959: { 19959: _Tp __P = __poly_legendre_p(__l, __x); 19959: _Tp __fact = std::sqrt(_Tp(2 * __l + 1) 19959: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 19959: __P *= __fact; 19959: return __P; 19959: } 19959: else if (__x == _Tp(1) || __x == -_Tp(1)) 19959: { 19959: 19959: return _Tp(0); 19959: } 19959: else 19959: { 19959: 19959: 19959: 19959: 19959: 19959: const _Tp __sgn = ( __m % 2 == 1 ? -_Tp(1) : _Tp(1)); 19959: const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); 19959: 19959: const _Tp __lncirc = ::std::log1p(-__x * __x); 19959: 19959: 19959: 19959: 19959: 19959: const _Tp __lnpoch = ::std::lgamma(_Tp(__m + _Tp(0.5L))) 19959: - ::std::lgamma(_Tp(__m)); 19959: 19959: 19959: 19959: 19959: const _Tp __lnpre_val = 19959: -_Tp(0.25L) * __numeric_constants<_Tp>::__lnpi() 19959: + _Tp(0.5L) * (__lnpoch + __m * __lncirc); 19959: const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) 19959: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 19959: _Tp __y_mm = __sgn * __sr * std::exp(__lnpre_val); 19959: _Tp __y_mp1m = __y_mp1m_factor * __y_mm; 19959: 19959: if (__l == __m) 19959: return __y_mm; 19959: else if (__l == __m + 1) 19959: return __y_mp1m; 19959: else 19959: { 19959: _Tp __y_lm = _Tp(0); 19959: 19959: 19959: for (unsigned int __ll = __m + 2; __ll <= __l; ++__ll) 19959: { 19959: const _Tp __rat1 = _Tp(__ll - __m) / _Tp(__ll + __m); 19959: const _Tp __rat2 = _Tp(__ll - __m - 1) / _Tp(__ll + __m - 1); 19959: const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) 19959: * _Tp(2 * __ll - 1)); 19959: const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) 19959: / _Tp(2 * __ll - 3)); 19959: __y_lm = (__x * __y_mp1m * __fact1 19959: - (__ll + __m - 1) * __y_mm * __fact2) / _Tp(__ll - __m); 19959: __y_mm = __y_mp1m; 19959: __y_mp1m = __y_lm; 19959: } 19959: 19959: return __y_lm; 19959: } 19959: } 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 54 "/usr/include/c++/13/bits/specfun.h" 2 3 19959: # 1 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 1 3 19959: # 51 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 65 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 19959: namespace __detail 19959: { 19959: # 83 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 19959: template 19959: void 19959: __bessel_ik(_Tp __nu, _Tp __x, 19959: _Tp & __Inu, _Tp & __Knu, _Tp & __Ipnu, _Tp & __Kpnu) 19959: { 19959: if (__x == _Tp(0)) 19959: { 19959: if (__nu == _Tp(0)) 19959: { 19959: __Inu = _Tp(1); 19959: __Ipnu = _Tp(0); 19959: } 19959: else if (__nu == _Tp(1)) 19959: { 19959: __Inu = _Tp(0); 19959: __Ipnu = _Tp(0.5L); 19959: } 19959: else 19959: { 19959: __Inu = _Tp(0); 19959: __Ipnu = _Tp(0); 19959: } 19959: __Knu = std::numeric_limits<_Tp>::infinity(); 19959: __Kpnu = -std::numeric_limits<_Tp>::infinity(); 19959: return; 19959: } 19959: 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: const _Tp __fp_min = _Tp(10) * std::numeric_limits<_Tp>::epsilon(); 19959: const int __max_iter = 15000; 19959: const _Tp __x_min = _Tp(2); 19959: 19959: const int __nl = static_cast(__nu + _Tp(0.5L)); 19959: 19959: const _Tp __mu = __nu - __nl; 19959: const _Tp __mu2 = __mu * __mu; 19959: const _Tp __xi = _Tp(1) / __x; 19959: const _Tp __xi2 = _Tp(2) * __xi; 19959: _Tp __h = __nu * __xi; 19959: if ( __h < __fp_min ) 19959: __h = __fp_min; 19959: _Tp __b = __xi2 * __nu; 19959: _Tp __d = _Tp(0); 19959: _Tp __c = __h; 19959: int __i; 19959: for ( __i = 1; __i <= __max_iter; ++__i ) 19959: { 19959: __b += __xi2; 19959: __d = _Tp(1) / (__b + __d); 19959: __c = __b + _Tp(1) / __c; 19959: const _Tp __del = __c * __d; 19959: __h *= __del; 19959: if (std::abs(__del - _Tp(1)) < __eps) 19959: break; 19959: } 19959: if (__i > __max_iter) 19959: std::__throw_runtime_error(("Argument x too large " "in __bessel_ik; " "try asymptotic expansion.") 19959: 19959: ); 19959: _Tp __Inul = __fp_min; 19959: _Tp __Ipnul = __h * __Inul; 19959: _Tp __Inul1 = __Inul; 19959: _Tp __Ipnu1 = __Ipnul; 19959: _Tp __fact = __nu * __xi; 19959: for (int __l = __nl; __l >= 1; --__l) 19959: { 19959: const _Tp __Inutemp = __fact * __Inul + __Ipnul; 19959: __fact -= __xi; 19959: __Ipnul = __fact * __Inutemp + __Inul; 19959: __Inul = __Inutemp; 19959: } 19959: _Tp __f = __Ipnul / __Inul; 19959: _Tp __Kmu, __Knu1; 19959: if (__x < __x_min) 19959: { 19959: const _Tp __x2 = __x / _Tp(2); 19959: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 19959: const _Tp __fact = (std::abs(__pimu) < __eps 19959: ? _Tp(1) : __pimu / std::sin(__pimu)); 19959: _Tp __d = -std::log(__x2); 19959: _Tp __e = __mu * __d; 19959: const _Tp __fact2 = (std::abs(__e) < __eps 19959: ? _Tp(1) : std::sinh(__e) / __e); 19959: _Tp __gam1, __gam2, __gampl, __gammi; 19959: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 19959: _Tp __ff = __fact 19959: * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 19959: _Tp __sum = __ff; 19959: __e = std::exp(__e); 19959: _Tp __p = __e / (_Tp(2) * __gampl); 19959: _Tp __q = _Tp(1) / (_Tp(2) * __e * __gammi); 19959: _Tp __c = _Tp(1); 19959: __d = __x2 * __x2; 19959: _Tp __sum1 = __p; 19959: int __i; 19959: for (__i = 1; __i <= __max_iter; ++__i) 19959: { 19959: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 19959: __c *= __d / __i; 19959: __p /= __i - __mu; 19959: __q /= __i + __mu; 19959: const _Tp __del = __c * __ff; 19959: __sum += __del; 19959: const _Tp __del1 = __c * (__p - __i * __ff); 19959: __sum1 += __del1; 19959: if (std::abs(__del) < __eps * std::abs(__sum)) 19959: break; 19959: } 19959: if (__i > __max_iter) 19959: std::__throw_runtime_error(("Bessel k series failed to converge " "in __bessel_ik.") 19959: ); 19959: __Kmu = __sum; 19959: __Knu1 = __sum1 * __xi2; 19959: } 19959: else 19959: { 19959: _Tp __b = _Tp(2) * (_Tp(1) + __x); 19959: _Tp __d = _Tp(1) / __b; 19959: _Tp __delh = __d; 19959: _Tp __h = __delh; 19959: _Tp __q1 = _Tp(0); 19959: _Tp __q2 = _Tp(1); 19959: _Tp __a1 = _Tp(0.25L) - __mu2; 19959: _Tp __q = __c = __a1; 19959: _Tp __a = -__a1; 19959: _Tp __s = _Tp(1) + __q * __delh; 19959: int __i; 19959: for (__i = 2; __i <= __max_iter; ++__i) 19959: { 19959: __a -= 2 * (__i - 1); 19959: __c = -__a * __c / __i; 19959: const _Tp __qnew = (__q1 - __b * __q2) / __a; 19959: __q1 = __q2; 19959: __q2 = __qnew; 19959: __q += __c * __qnew; 19959: __b += _Tp(2); 19959: __d = _Tp(1) / (__b + __a * __d); 19959: __delh = (__b * __d - _Tp(1)) * __delh; 19959: __h += __delh; 19959: const _Tp __dels = __q * __delh; 19959: __s += __dels; 19959: if ( std::abs(__dels / __s) < __eps ) 19959: break; 19959: } 19959: if (__i > __max_iter) 19959: std::__throw_runtime_error(("Steed's method failed " "in __bessel_ik.") 19959: ); 19959: __h = __a1 * __h; 19959: __Kmu = std::sqrt(__numeric_constants<_Tp>::__pi() / (_Tp(2) * __x)) 19959: * std::exp(-__x) / __s; 19959: __Knu1 = __Kmu * (__mu + __x + _Tp(0.5L) - __h) * __xi; 19959: } 19959: 19959: _Tp __Kpmu = __mu * __xi * __Kmu - __Knu1; 19959: _Tp __Inumu = __xi / (__f * __Kmu - __Kpmu); 19959: __Inu = __Inumu * __Inul1 / __Inul; 19959: __Ipnu = __Inumu * __Ipnu1 / __Inul; 19959: for ( __i = 1; __i <= __nl; ++__i ) 19959: { 19959: const _Tp __Knutemp = (__mu + __i) * __xi2 * __Knu1 + __Kmu; 19959: __Kmu = __Knu1; 19959: __Knu1 = __Knutemp; 19959: } 19959: __Knu = __Kmu; 19959: __Kpnu = __nu * __xi * __Kmu - __Knu1; 19959: 19959: return; 19959: } 19959: # 267 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 19959: template 19959: _Tp 19959: __cyl_bessel_i(_Tp __nu, _Tp __x) 19959: { 19959: if (__nu < _Tp(0) || __x < _Tp(0)) 19959: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_i.") 19959: ); 19959: else if (__isnan(__nu) || __isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 19959: return __cyl_bessel_ij_series(__nu, __x, +_Tp(1), 200); 19959: else 19959: { 19959: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 19959: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 19959: return __I_nu; 19959: } 19959: } 19959: # 303 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 19959: template 19959: _Tp 19959: __cyl_bessel_k(_Tp __nu, _Tp __x) 19959: { 19959: if (__nu < _Tp(0) || __x < _Tp(0)) 19959: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_k.") 19959: ); 19959: else if (__isnan(__nu) || __isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else 19959: { 19959: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 19959: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 19959: return __K_nu; 19959: } 19959: } 19959: # 337 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 19959: template 19959: void 19959: __sph_bessel_ik(unsigned int __n, _Tp __x, 19959: _Tp & __i_n, _Tp & __k_n, _Tp & __ip_n, _Tp & __kp_n) 19959: { 19959: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 19959: 19959: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 19959: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 19959: 19959: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 19959: / std::sqrt(__x); 19959: 19959: __i_n = __factor * __I_nu; 19959: __k_n = __factor * __K_nu; 19959: __ip_n = __factor * __Ip_nu - __i_n / (_Tp(2) * __x); 19959: __kp_n = __factor * __Kp_nu - __k_n / (_Tp(2) * __x); 19959: 19959: return; 19959: } 19959: # 373 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 19959: template 19959: void 19959: __airy(_Tp __x, _Tp & __Ai, _Tp & __Bi, _Tp & __Aip, _Tp & __Bip) 19959: { 19959: const _Tp __absx = std::abs(__x); 19959: const _Tp __rootx = std::sqrt(__absx); 19959: const _Tp __z = _Tp(2) * __absx * __rootx / _Tp(3); 19959: const _Tp _S_inf = std::numeric_limits<_Tp>::infinity(); 19959: 19959: if (__isnan(__x)) 19959: __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__z == _S_inf) 19959: { 19959: __Aip = __Ai = _Tp(0); 19959: __Bip = __Bi = _S_inf; 19959: } 19959: else if (__z == -_S_inf) 19959: __Bip = __Aip = __Bi = __Ai = _Tp(0); 19959: else if (__x > _Tp(0)) 19959: { 19959: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 19959: 19959: __bessel_ik(_Tp(1) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 19959: __Ai = __rootx * __K_nu 19959: / (__numeric_constants<_Tp>::__sqrt3() 19959: * __numeric_constants<_Tp>::__pi()); 19959: __Bi = __rootx * (__K_nu / __numeric_constants<_Tp>::__pi() 19959: + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); 19959: 19959: __bessel_ik(_Tp(2) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 19959: __Aip = -__x * __K_nu 19959: / (__numeric_constants<_Tp>::__sqrt3() 19959: * __numeric_constants<_Tp>::__pi()); 19959: __Bip = __x * (__K_nu / __numeric_constants<_Tp>::__pi() 19959: + _Tp(2) * __I_nu 19959: / __numeric_constants<_Tp>::__sqrt3()); 19959: } 19959: else if (__x < _Tp(0)) 19959: { 19959: _Tp __J_nu, __Jp_nu, __N_nu, __Np_nu; 19959: 19959: __bessel_jn(_Tp(1) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 19959: __Ai = __rootx * (__J_nu 19959: - __N_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 19959: __Bi = -__rootx * (__N_nu 19959: + __J_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 19959: 19959: __bessel_jn(_Tp(2) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 19959: __Aip = __absx * (__N_nu / __numeric_constants<_Tp>::__sqrt3() 19959: + __J_nu) / _Tp(2); 19959: __Bip = __absx * (__J_nu / __numeric_constants<_Tp>::__sqrt3() 19959: - __N_nu) / _Tp(2); 19959: } 19959: else 19959: { 19959: 19959: 19959: 19959: __Ai = _Tp(0.35502805388781723926L); 19959: __Bi = __Ai * __numeric_constants<_Tp>::__sqrt3(); 19959: 19959: 19959: 19959: 19959: __Aip = -_Tp(0.25881940379280679840L); 19959: __Bip = -__Aip * __numeric_constants<_Tp>::__sqrt3(); 19959: } 19959: 19959: return; 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 55 "/usr/include/c++/13/bits/specfun.h" 2 3 19959: # 1 "/usr/include/c++/13/tr1/poly_hermite.tcc" 1 3 19959: # 42 "/usr/include/c++/13/tr1/poly_hermite.tcc" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 56 "/usr/include/c++/13/tr1/poly_hermite.tcc" 3 19959: namespace __detail 19959: { 19959: # 72 "/usr/include/c++/13/tr1/poly_hermite.tcc" 3 19959: template 19959: _Tp 19959: __poly_hermite_recursion(unsigned int __n, _Tp __x) 19959: { 19959: 19959: _Tp __H_0 = 1; 19959: if (__n == 0) 19959: return __H_0; 19959: 19959: 19959: _Tp __H_1 = 2 * __x; 19959: if (__n == 1) 19959: return __H_1; 19959: 19959: 19959: _Tp __H_n, __H_nm1, __H_nm2; 19959: unsigned int __i; 19959: for (__H_nm2 = __H_0, __H_nm1 = __H_1, __i = 2; __i <= __n; ++__i) 19959: { 19959: __H_n = 2 * (__x * __H_nm1 - (__i - 1) * __H_nm2); 19959: __H_nm2 = __H_nm1; 19959: __H_nm1 = __H_n; 19959: } 19959: 19959: return __H_n; 19959: } 19959: # 114 "/usr/include/c++/13/tr1/poly_hermite.tcc" 3 19959: template 19959: inline _Tp 19959: __poly_hermite(unsigned int __n, _Tp __x) 19959: { 19959: if (__isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else 19959: return __poly_hermite_recursion(__n, __x); 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 56 "/usr/include/c++/13/bits/specfun.h" 2 3 19959: # 1 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 1 3 19959: # 44 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 60 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 19959: namespace __detail 19959: { 19959: # 75 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 19959: template 19959: _Tp 19959: __poly_laguerre_large_n(unsigned __n, _Tpa __alpha1, _Tp __x) 19959: { 19959: const _Tp __a = -_Tp(__n); 19959: const _Tp __b = _Tp(__alpha1) + _Tp(1); 19959: const _Tp __eta = _Tp(2) * __b - _Tp(4) * __a; 19959: const _Tp __cos2th = __x / __eta; 19959: const _Tp __sin2th = _Tp(1) - __cos2th; 19959: const _Tp __th = std::acos(std::sqrt(__cos2th)); 19959: const _Tp __pre_h = __numeric_constants<_Tp>::__pi_2() 19959: * __numeric_constants<_Tp>::__pi_2() 19959: * __eta * __eta * __cos2th * __sin2th; 19959: 19959: 19959: const _Tp __lg_b = ::std::lgamma(_Tp(__n) + __b); 19959: const _Tp __lnfact = ::std::lgamma(_Tp(__n + 1)); 19959: 19959: 19959: 19959: 19959: 19959: _Tp __pre_term1 = _Tp(0.5L) * (_Tp(1) - __b) 19959: * std::log(_Tp(0.25L) * __x * __eta); 19959: _Tp __pre_term2 = _Tp(0.25L) * std::log(__pre_h); 19959: _Tp __lnpre = __lg_b - __lnfact + _Tp(0.5L) * __x 19959: + __pre_term1 - __pre_term2; 19959: _Tp __ser_term1 = std::sin(__a * __numeric_constants<_Tp>::__pi()); 19959: _Tp __ser_term2 = std::sin(_Tp(0.25L) * __eta 19959: * (_Tp(2) * __th 19959: - std::sin(_Tp(2) * __th)) 19959: + __numeric_constants<_Tp>::__pi_4()); 19959: _Tp __ser = __ser_term1 + __ser_term2; 19959: 19959: return std::exp(__lnpre) * __ser; 19959: } 19959: # 129 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 19959: template 19959: _Tp 19959: __poly_laguerre_hyperg(unsigned int __n, _Tpa __alpha1, _Tp __x) 19959: { 19959: const _Tp __b = _Tp(__alpha1) + _Tp(1); 19959: const _Tp __mx = -__x; 19959: const _Tp __tc_sgn = (__x < _Tp(0) ? _Tp(1) 19959: : ((__n % 2 == 1) ? -_Tp(1) : _Tp(1))); 19959: 19959: _Tp __tc = _Tp(1); 19959: const _Tp __ax = std::abs(__x); 19959: for (unsigned int __k = 1; __k <= __n; ++__k) 19959: __tc *= (__ax / __k); 19959: 19959: _Tp __term = __tc * __tc_sgn; 19959: _Tp __sum = __term; 19959: for (int __k = int(__n) - 1; __k >= 0; --__k) 19959: { 19959: __term *= ((__b + _Tp(__k)) / _Tp(int(__n) - __k)) 19959: * _Tp(__k + 1) / __mx; 19959: __sum += __term; 19959: } 19959: 19959: return __sum; 19959: } 19959: # 185 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 19959: template 19959: _Tp 19959: __poly_laguerre_recursion(unsigned int __n, _Tpa __alpha1, _Tp __x) 19959: { 19959: 19959: _Tp __l_0 = _Tp(1); 19959: if (__n == 0) 19959: return __l_0; 19959: 19959: 19959: _Tp __l_1 = -__x + _Tp(1) + _Tp(__alpha1); 19959: if (__n == 1) 19959: return __l_1; 19959: 19959: 19959: _Tp __l_n2 = __l_0; 19959: _Tp __l_n1 = __l_1; 19959: _Tp __l_n = _Tp(0); 19959: for (unsigned int __nn = 2; __nn <= __n; ++__nn) 19959: { 19959: __l_n = (_Tp(2 * __nn - 1) + _Tp(__alpha1) - __x) 19959: * __l_n1 / _Tp(__nn) 19959: - (_Tp(__nn - 1) + _Tp(__alpha1)) * __l_n2 / _Tp(__nn); 19959: __l_n2 = __l_n1; 19959: __l_n1 = __l_n; 19959: } 19959: 19959: return __l_n; 19959: } 19959: # 244 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 19959: template 19959: _Tp 19959: __poly_laguerre(unsigned int __n, _Tpa __alpha1, _Tp __x) 19959: { 19959: if (__x < _Tp(0)) 19959: std::__throw_domain_error(("Negative argument " "in __poly_laguerre.") 19959: ); 19959: 19959: else if (__isnan(__x)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__n == 0) 19959: return _Tp(1); 19959: else if (__n == 1) 19959: return _Tp(1) + _Tp(__alpha1) - __x; 19959: else if (__x == _Tp(0)) 19959: { 19959: _Tp __prod = _Tp(__alpha1) + _Tp(1); 19959: for (unsigned int __k = 2; __k <= __n; ++__k) 19959: __prod *= (_Tp(__alpha1) + _Tp(__k)) / _Tp(__k); 19959: return __prod; 19959: } 19959: else if (__n > 10000000 && _Tp(__alpha1) > -_Tp(1) 19959: && __x < _Tp(2) * (_Tp(__alpha1) + _Tp(1)) + _Tp(4 * __n)) 19959: return __poly_laguerre_large_n(__n, __alpha1, __x); 19959: else if (_Tp(__alpha1) >= _Tp(0) 19959: || (__x > _Tp(0) && _Tp(__alpha1) < -_Tp(__n + 1))) 19959: return __poly_laguerre_recursion(__n, __alpha1, __x); 19959: else 19959: return __poly_laguerre_hyperg(__n, __alpha1, __x); 19959: } 19959: # 296 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 19959: template 19959: inline _Tp 19959: __assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 19959: { return __poly_laguerre(__n, __m, __x); } 19959: # 316 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 19959: template 19959: inline _Tp 19959: __laguerre(unsigned int __n, _Tp __x) 19959: { return __poly_laguerre(__n, 0, __x); } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 57 "/usr/include/c++/13/bits/specfun.h" 2 3 19959: # 1 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 1 3 19959: # 47 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 63 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 19959: namespace __detail 19959: { 19959: # 78 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 19959: template 19959: _Tp 19959: __riemann_zeta_sum(_Tp __s) 19959: { 19959: 19959: if (__s < _Tp(1)) 19959: std::__throw_domain_error(("Bad argument in zeta sum.")); 19959: 19959: const unsigned int max_iter = 10000; 19959: _Tp __zeta = _Tp(0); 19959: for (unsigned int __k = 1; __k < max_iter; ++__k) 19959: { 19959: _Tp __term = std::pow(static_cast<_Tp>(__k), -__s); 19959: if (__term < std::numeric_limits<_Tp>::epsilon()) 19959: { 19959: break; 19959: } 19959: __zeta += __term; 19959: } 19959: 19959: return __zeta; 19959: } 19959: # 115 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 19959: template 19959: _Tp 19959: __riemann_zeta_alt(_Tp __s) 19959: { 19959: _Tp __sgn = _Tp(1); 19959: _Tp __zeta = _Tp(0); 19959: for (unsigned int __i = 1; __i < 10000000; ++__i) 19959: { 19959: _Tp __term = __sgn / std::pow(__i, __s); 19959: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 19959: break; 19959: __zeta += __term; 19959: __sgn *= _Tp(-1); 19959: } 19959: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 19959: 19959: return __zeta; 19959: } 19959: # 157 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 19959: template 19959: _Tp 19959: __riemann_zeta_glob(_Tp __s) 19959: { 19959: _Tp __zeta = _Tp(0); 19959: 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: 19959: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 19959: * std::log(_Tp(10)) - _Tp(1); 19959: 19959: 19959: 19959: if (__s < _Tp(0)) 19959: { 19959: 19959: if (::std::fmod(__s,_Tp(2)) == _Tp(0)) 19959: return _Tp(0); 19959: else 19959: 19959: { 19959: _Tp __zeta = __riemann_zeta_glob(_Tp(1) - __s); 19959: __zeta *= std::pow(_Tp(2) 19959: * __numeric_constants<_Tp>::__pi(), __s) 19959: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 19959: 19959: * std::exp(::std::lgamma(_Tp(1) - __s)) 19959: 19959: 19959: 19959: / __numeric_constants<_Tp>::__pi(); 19959: return __zeta; 19959: } 19959: } 19959: 19959: _Tp __num = _Tp(0.5L); 19959: const unsigned int __maxit = 10000; 19959: for (unsigned int __i = 0; __i < __maxit; ++__i) 19959: { 19959: bool __punt = false; 19959: _Tp __sgn = _Tp(1); 19959: _Tp __term = _Tp(0); 19959: for (unsigned int __j = 0; __j <= __i; ++__j) 19959: { 19959: 19959: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 19959: - ::std::lgamma(_Tp(1 + __j)) 19959: - ::std::lgamma(_Tp(1 + __i - __j)); 19959: 19959: 19959: 19959: 19959: 19959: if (__bincoeff > __max_bincoeff) 19959: { 19959: 19959: __punt = true; 19959: break; 19959: } 19959: __bincoeff = std::exp(__bincoeff); 19959: __term += __sgn * __bincoeff * std::pow(_Tp(1 + __j), -__s); 19959: __sgn *= _Tp(-1); 19959: } 19959: if (__punt) 19959: break; 19959: __term *= __num; 19959: __zeta += __term; 19959: if (std::abs(__term/__zeta) < __eps) 19959: break; 19959: __num *= _Tp(0.5L); 19959: } 19959: 19959: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 19959: 19959: return __zeta; 19959: } 19959: # 252 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 19959: template 19959: _Tp 19959: __riemann_zeta_product(_Tp __s) 19959: { 19959: static const _Tp __prime[] = { 19959: _Tp(2), _Tp(3), _Tp(5), _Tp(7), _Tp(11), _Tp(13), _Tp(17), _Tp(19), 19959: _Tp(23), _Tp(29), _Tp(31), _Tp(37), _Tp(41), _Tp(43), _Tp(47), 19959: _Tp(53), _Tp(59), _Tp(61), _Tp(67), _Tp(71), _Tp(73), _Tp(79), 19959: _Tp(83), _Tp(89), _Tp(97), _Tp(101), _Tp(103), _Tp(107), _Tp(109) 19959: }; 19959: static const unsigned int __num_primes = sizeof(__prime) / sizeof(_Tp); 19959: 19959: _Tp __zeta = _Tp(1); 19959: for (unsigned int __i = 0; __i < __num_primes; ++__i) 19959: { 19959: const _Tp __fact = _Tp(1) - std::pow(__prime[__i], -__s); 19959: __zeta *= __fact; 19959: if (_Tp(1) - __fact < std::numeric_limits<_Tp>::epsilon()) 19959: break; 19959: } 19959: 19959: __zeta = _Tp(1) / __zeta; 19959: 19959: return __zeta; 19959: } 19959: # 293 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 19959: template 19959: _Tp 19959: __riemann_zeta(_Tp __s) 19959: { 19959: if (__isnan(__s)) 19959: return std::numeric_limits<_Tp>::quiet_NaN(); 19959: else if (__s == _Tp(1)) 19959: return std::numeric_limits<_Tp>::infinity(); 19959: else if (__s < -_Tp(19)) 19959: { 19959: _Tp __zeta = __riemann_zeta_product(_Tp(1) - __s); 19959: __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) 19959: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 19959: 19959: * std::exp(::std::lgamma(_Tp(1) - __s)) 19959: 19959: 19959: 19959: / __numeric_constants<_Tp>::__pi(); 19959: return __zeta; 19959: } 19959: else if (__s < _Tp(20)) 19959: { 19959: 19959: bool __glob = true; 19959: if (__glob) 19959: return __riemann_zeta_glob(__s); 19959: else 19959: { 19959: if (__s > _Tp(1)) 19959: return __riemann_zeta_sum(__s); 19959: else 19959: { 19959: _Tp __zeta = std::pow(_Tp(2) 19959: * __numeric_constants<_Tp>::__pi(), __s) 19959: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 19959: 19959: * ::std::tgamma(_Tp(1) - __s) 19959: 19959: 19959: 19959: * __riemann_zeta_sum(_Tp(1) - __s); 19959: return __zeta; 19959: } 19959: } 19959: } 19959: else 19959: return __riemann_zeta_product(__s); 19959: } 19959: # 365 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 19959: template 19959: _Tp 19959: __hurwitz_zeta_glob(_Tp __a, _Tp __s) 19959: { 19959: _Tp __zeta = _Tp(0); 19959: 19959: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 19959: 19959: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 19959: * std::log(_Tp(10)) - _Tp(1); 19959: 19959: const unsigned int __maxit = 10000; 19959: for (unsigned int __i = 0; __i < __maxit; ++__i) 19959: { 19959: bool __punt = false; 19959: _Tp __sgn = _Tp(1); 19959: _Tp __term = _Tp(0); 19959: for (unsigned int __j = 0; __j <= __i; ++__j) 19959: { 19959: 19959: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 19959: - ::std::lgamma(_Tp(1 + __j)) 19959: - ::std::lgamma(_Tp(1 + __i - __j)); 19959: 19959: 19959: 19959: 19959: 19959: if (__bincoeff > __max_bincoeff) 19959: { 19959: 19959: __punt = true; 19959: break; 19959: } 19959: __bincoeff = std::exp(__bincoeff); 19959: __term += __sgn * __bincoeff * std::pow(_Tp(__a + __j), -__s); 19959: __sgn *= _Tp(-1); 19959: } 19959: if (__punt) 19959: break; 19959: __term /= _Tp(__i + 1); 19959: if (std::abs(__term / __zeta) < __eps) 19959: break; 19959: __zeta += __term; 19959: } 19959: 19959: __zeta /= __s - _Tp(1); 19959: 19959: return __zeta; 19959: } 19959: # 430 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 19959: template 19959: inline _Tp 19959: __hurwitz_zeta(_Tp __a, _Tp __s) 19959: { return __hurwitz_zeta_glob(__a, __s); } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 58 "/usr/include/c++/13/bits/specfun.h" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 203 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: assoc_laguerref(unsigned int __n, unsigned int __m, float __x) 19959: { return __detail::__assoc_laguerre(__n, __m, __x); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: assoc_laguerrel(unsigned int __n, unsigned int __m, long double __x) 19959: { return __detail::__assoc_laguerre(__n, __m, __x); } 19959: # 248 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: return __detail::__assoc_laguerre<__type>(__n, __m, __x); 19959: } 19959: # 264 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: assoc_legendref(unsigned int __l, unsigned int __m, float __x) 19959: { return __detail::__assoc_legendre_p(__l, __m, __x); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: assoc_legendrel(unsigned int __l, unsigned int __m, long double __x) 19959: { return __detail::__assoc_legendre_p(__l, __m, __x); } 19959: # 294 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: return __detail::__assoc_legendre_p<__type>(__l, __m, __x); 19959: } 19959: # 309 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: betaf(float __a, float __b) 19959: { return __detail::__beta(__a, __b); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: betal(long double __a, long double __b) 19959: { return __detail::__beta(__a, __b); } 19959: # 339 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type 19959: beta(_Tpa __a, _Tpb __b) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type __type; 19959: return __detail::__beta<__type>(__a, __b); 19959: } 19959: # 355 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: comp_ellint_1f(float __k) 19959: { return __detail::__comp_ellint_1(__k); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: comp_ellint_1l(long double __k) 19959: { return __detail::__comp_ellint_1(__k); } 19959: # 387 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: comp_ellint_1(_Tp __k) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: return __detail::__comp_ellint_1<__type>(__k); 19959: } 19959: # 403 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: comp_ellint_2f(float __k) 19959: { return __detail::__comp_ellint_2(__k); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: comp_ellint_2l(long double __k) 19959: { return __detail::__comp_ellint_2(__k); } 19959: # 434 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: comp_ellint_2(_Tp __k) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: return __detail::__comp_ellint_2<__type>(__k); 19959: } 19959: # 450 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: comp_ellint_3f(float __k, float __nu) 19959: { return __detail::__comp_ellint_3(__k, __nu); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: comp_ellint_3l(long double __k, long double __nu) 19959: { return __detail::__comp_ellint_3(__k, __nu); } 19959: # 485 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type 19959: comp_ellint_3(_Tp __k, _Tpn __nu) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type __type; 19959: return __detail::__comp_ellint_3<__type>(__k, __nu); 19959: } 19959: # 501 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: cyl_bessel_if(float __nu, float __x) 19959: { return __detail::__cyl_bessel_i(__nu, __x); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: cyl_bessel_il(long double __nu, long double __x) 19959: { return __detail::__cyl_bessel_i(__nu, __x); } 19959: # 531 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 19959: cyl_bessel_i(_Tpnu __nu, _Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 19959: return __detail::__cyl_bessel_i<__type>(__nu, __x); 19959: } 19959: # 547 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: cyl_bessel_jf(float __nu, float __x) 19959: { return __detail::__cyl_bessel_j(__nu, __x); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: cyl_bessel_jl(long double __nu, long double __x) 19959: { return __detail::__cyl_bessel_j(__nu, __x); } 19959: # 577 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 19959: cyl_bessel_j(_Tpnu __nu, _Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 19959: return __detail::__cyl_bessel_j<__type>(__nu, __x); 19959: } 19959: # 593 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: cyl_bessel_kf(float __nu, float __x) 19959: { return __detail::__cyl_bessel_k(__nu, __x); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: cyl_bessel_kl(long double __nu, long double __x) 19959: { return __detail::__cyl_bessel_k(__nu, __x); } 19959: # 629 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 19959: cyl_bessel_k(_Tpnu __nu, _Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 19959: return __detail::__cyl_bessel_k<__type>(__nu, __x); 19959: } 19959: # 645 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: cyl_neumannf(float __nu, float __x) 19959: { return __detail::__cyl_neumann_n(__nu, __x); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: cyl_neumannl(long double __nu, long double __x) 19959: { return __detail::__cyl_neumann_n(__nu, __x); } 19959: # 677 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 19959: cyl_neumann(_Tpnu __nu, _Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 19959: return __detail::__cyl_neumann_n<__type>(__nu, __x); 19959: } 19959: # 693 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: ellint_1f(float __k, float __phi) 19959: { return __detail::__ellint_1(__k, __phi); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: ellint_1l(long double __k, long double __phi) 19959: { return __detail::__ellint_1(__k, __phi); } 19959: # 725 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 19959: ellint_1(_Tp __k, _Tpp __phi) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 19959: return __detail::__ellint_1<__type>(__k, __phi); 19959: } 19959: # 741 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: ellint_2f(float __k, float __phi) 19959: { return __detail::__ellint_2(__k, __phi); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: ellint_2l(long double __k, long double __phi) 19959: { return __detail::__ellint_2(__k, __phi); } 19959: # 773 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 19959: ellint_2(_Tp __k, _Tpp __phi) 19959: { 19959: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 19959: return __detail::__ellint_2<__type>(__k, __phi); 19959: } 19959: # 789 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: ellint_3f(float __k, float __nu, float __phi) 19959: { return __detail::__ellint_3(__k, __nu, __phi); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: ellint_3l(long double __k, long double __nu, long double __phi) 19959: { return __detail::__ellint_3(__k, __nu, __phi); } 19959: # 826 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type 19959: ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi) 19959: { 19959: typedef typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type __type; 19959: return __detail::__ellint_3<__type>(__k, __nu, __phi); 19959: } 19959: # 841 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: expintf(float __x) 19959: { return __detail::__expint(__x); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: expintl(long double __x) 19959: { return __detail::__expint(__x); } 19959: # 866 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: expint(_Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: return __detail::__expint<__type>(__x); 19959: } 19959: # 882 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: hermitef(unsigned int __n, float __x) 19959: { return __detail::__poly_hermite(__n, __x); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: hermitel(unsigned int __n, long double __x) 19959: { return __detail::__poly_hermite(__n, __x); } 19959: # 914 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: hermite(unsigned int __n, _Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: return __detail::__poly_hermite<__type>(__n, __x); 19959: } 19959: # 930 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: laguerref(unsigned int __n, float __x) 19959: { return __detail::__laguerre(__n, __x); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: laguerrel(unsigned int __n, long double __x) 19959: { return __detail::__laguerre(__n, __x); } 19959: # 958 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: laguerre(unsigned int __n, _Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: return __detail::__laguerre<__type>(__n, __x); 19959: } 19959: # 974 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: legendref(unsigned int __l, float __x) 19959: { return __detail::__poly_legendre_p(__l, __x); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: legendrel(unsigned int __l, long double __x) 19959: { return __detail::__poly_legendre_p(__l, __x); } 19959: # 1003 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: legendre(unsigned int __l, _Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: return __detail::__poly_legendre_p<__type>(__l, __x); 19959: } 19959: # 1019 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: riemann_zetaf(float __s) 19959: { return __detail::__riemann_zeta(__s); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: riemann_zetal(long double __s) 19959: { return __detail::__riemann_zeta(__s); } 19959: # 1054 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: riemann_zeta(_Tp __s) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: return __detail::__riemann_zeta<__type>(__s); 19959: } 19959: # 1070 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: sph_besself(unsigned int __n, float __x) 19959: { return __detail::__sph_bessel(__n, __x); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: sph_bessell(unsigned int __n, long double __x) 19959: { return __detail::__sph_bessel(__n, __x); } 19959: # 1098 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: sph_bessel(unsigned int __n, _Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: return __detail::__sph_bessel<__type>(__n, __x); 19959: } 19959: # 1114 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: sph_legendref(unsigned int __l, unsigned int __m, float __theta) 19959: { return __detail::__sph_legendre(__l, __m, __theta); } 19959: # 1125 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline long double 19959: sph_legendrel(unsigned int __l, unsigned int __m, long double __theta) 19959: { return __detail::__sph_legendre(__l, __m, __theta); } 19959: # 1145 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: return __detail::__sph_legendre<__type>(__l, __m, __theta); 19959: } 19959: # 1161 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: sph_neumannf(unsigned int __n, float __x) 19959: { return __detail::__sph_neumann(__n, __x); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline long double 19959: sph_neumannl(unsigned int __n, long double __x) 19959: { return __detail::__sph_neumann(__n, __x); } 19959: # 1189 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: sph_neumann(unsigned int __n, _Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: return __detail::__sph_neumann<__type>(__n, __x); 19959: } 19959: 19959: 19959: 19959: 19959: } 19959: 19959: 19959: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 1216 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: airy_aif(float __x) 19959: { 19959: float __Ai, __Bi, __Aip, __Bip; 19959: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 19959: return __Ai; 19959: } 19959: 19959: 19959: 19959: 19959: inline long double 19959: airy_ail(long double __x) 19959: { 19959: long double __Ai, __Bi, __Aip, __Bip; 19959: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 19959: return __Ai; 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: airy_ai(_Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: __type __Ai, __Bi, __Aip, __Bip; 19959: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 19959: return __Ai; 19959: } 19959: 19959: 19959: 19959: 19959: inline float 19959: airy_bif(float __x) 19959: { 19959: float __Ai, __Bi, __Aip, __Bip; 19959: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 19959: return __Bi; 19959: } 19959: 19959: 19959: 19959: 19959: inline long double 19959: airy_bil(long double __x) 19959: { 19959: long double __Ai, __Bi, __Aip, __Bip; 19959: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 19959: return __Bi; 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: inline typename __gnu_cxx::__promote<_Tp>::__type 19959: airy_bi(_Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 19959: __type __Ai, __Bi, __Aip, __Bip; 19959: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 19959: return __Bi; 19959: } 19959: # 1292 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: conf_hypergf(float __a, float __c, float __x) 19959: { return std::__detail::__conf_hyperg(__a, __c, __x); } 19959: # 1303 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline long double 19959: conf_hypergl(long double __a, long double __c, long double __x) 19959: { return std::__detail::__conf_hyperg(__a, __c, __x); } 19959: # 1323 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type 19959: conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type __type; 19959: return std::__detail::__conf_hyperg<__type>(__a, __c, __x); 19959: } 19959: # 1340 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline float 19959: hypergf(float __a, float __b, float __c, float __x) 19959: { return std::__detail::__hyperg(__a, __b, __c, __x); } 19959: # 1351 "/usr/include/c++/13/bits/specfun.h" 3 19959: inline long double 19959: hypergl(long double __a, long double __b, long double __c, long double __x) 19959: { return std::__detail::__hyperg(__a, __b, __c, __x); } 19959: # 1372 "/usr/include/c++/13/bits/specfun.h" 3 19959: template 19959: inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type 19959: hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x) 19959: { 19959: typedef typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp> 19959: ::__type __type; 19959: return std::__detail::__hyperg<__type>(__a, __b, __c, __x); 19959: } 19959: 19959: 19959: 19959: } 19959: # 3700 "/usr/include/c++/13/cmath" 2 3 19959: 19959: 19959: } 19959: # 41 "/usr/include/c++/13/random" 2 3 19959: # 1 "/usr/include/c++/13/cstdlib" 1 3 19959: # 39 "/usr/include/c++/13/cstdlib" 3 19959: 19959: # 40 "/usr/include/c++/13/cstdlib" 3 19959: # 42 "/usr/include/c++/13/random" 2 3 19959: # 51 "/usr/include/c++/13/random" 3 19959: # 1 "/usr/include/c++/13/bits/random.h" 1 3 19959: # 37 "/usr/include/c++/13/bits/random.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 58 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: _RealType 19959: generate_canonical(_UniformRandomNumberGenerator& __g); 19959: 19959: 19959: 19959: namespace __detail 19959: { 19959: template 19959: (std::numeric_limits<_UIntType>::digits)> 19959: struct _Shift 19959: { static constexpr _UIntType __value = 0; }; 19959: 19959: template 19959: struct _Shift<_UIntType, __w, true> 19959: { static constexpr _UIntType __value = _UIntType(1) << __w; }; 19959: 19959: template 19959: struct _Select_uint_least_t 19959: { 19959: static_assert(__which < 0, 19959: "sorry, would be too much trouble for a slow result"); 19959: }; 19959: 19959: template 19959: struct _Select_uint_least_t<__s, 4> 19959: { using type = unsigned int; }; 19959: 19959: template 19959: struct _Select_uint_least_t<__s, 3> 19959: { using type = unsigned long; }; 19959: 19959: template 19959: struct _Select_uint_least_t<__s, 2> 19959: { using type = unsigned long long; }; 19959: # 108 "/usr/include/c++/13/bits/random.h" 3 19959: template= __m - 1), 19959: bool __schrage_ok = __m % __a < __m / __a> 19959: struct _Mod 19959: { 19959: static _Tp 19959: __calc(_Tp __x) 19959: { 19959: using _Tp2 19959: = typename _Select_uint_least_t::type; 19959: return static_cast<_Tp>((_Tp2(__a) * __x + __c) % __m); 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct _Mod<_Tp, __m, __a, __c, false, true> 19959: { 19959: static _Tp 19959: __calc(_Tp __x); 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: struct _Mod<_Tp, __m, __a, __c, true, __s> 19959: { 19959: static _Tp 19959: __calc(_Tp __x) 19959: { 19959: _Tp __res = __a * __x + __c; 19959: if (__m) 19959: __res %= __m; 19959: return __res; 19959: } 19959: }; 19959: 19959: template 19959: inline _Tp 19959: __mod(_Tp __x) 19959: { 19959: if constexpr (__a == 0) 19959: return __c; 19959: else 19959: { 19959: 19959: constexpr _Tp __a1 = __a ? __a : 1; 19959: return _Mod<_Tp, __m, __a1, __c>::__calc(__x); 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Adaptor 19959: { 19959: static_assert(std::is_floating_point<_DInputType>::value, 19959: "template argument must be a floating point type"); 19959: 19959: public: 19959: _Adaptor(_Engine& __g) 19959: : _M_g(__g) { } 19959: 19959: _DInputType 19959: min() const 19959: { return _DInputType(0); } 19959: 19959: _DInputType 19959: max() const 19959: { return _DInputType(1); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: _DInputType 19959: operator()() 19959: { 19959: return std::generate_canonical<_DInputType, 19959: std::numeric_limits<_DInputType>::digits, 19959: _Engine>(_M_g); 19959: } 19959: 19959: private: 19959: _Engine& _M_g; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: using __seed_seq_generate_t = decltype( 19959: std::declval<_Sseq&>().generate(std::declval(), 19959: std::declval())); 19959: 19959: template> 19959: using _If_seed_seq_for = _Require< 19959: __not_, _Engine>>, 19959: is_unsigned, 19959: __not_> 19959: >; 19959: 19959: } 19959: # 263 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class linear_congruential_engine 19959: { 19959: static_assert(std::is_unsigned<_UIntType>::value, 19959: "result_type must be an unsigned integral type"); 19959: static_assert(__m == 0u || (__a < __m && __c < __m), 19959: "template argument substituting __m out of bounds"); 19959: 19959: template 19959: using _If_seed_seq 19959: = __detail::_If_seed_seq_for<_Sseq, linear_congruential_engine, 19959: _UIntType>; 19959: 19959: public: 19959: 19959: typedef _UIntType result_type; 19959: 19959: 19959: static constexpr result_type multiplier = __a; 19959: 19959: static constexpr result_type increment = __c; 19959: 19959: static constexpr result_type modulus = __m; 19959: static constexpr result_type default_seed = 1u; 19959: 19959: 19959: 19959: 19959: 19959: linear_congruential_engine() : linear_congruential_engine(default_seed) 19959: { } 19959: # 302 "/usr/include/c++/13/bits/random.h" 3 19959: explicit 19959: linear_congruential_engine(result_type __s) 19959: { seed(__s); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: explicit 19959: linear_congruential_engine(_Sseq& __q) 19959: { seed(__q); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: seed(result_type __s = default_seed); 19959: # 333 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: _If_seed_seq<_Sseq> 19959: seed(_Sseq& __q); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: static constexpr result_type 19959: min() 19959: { return __c == 0u ? 1u : 0u; } 19959: 19959: 19959: 19959: 19959: static constexpr result_type 19959: max() 19959: { return __m - 1u; } 19959: 19959: 19959: 19959: 19959: void 19959: discard(unsigned long long __z) 19959: { 19959: for (; __z != 0ULL; --__z) 19959: (*this)(); 19959: } 19959: 19959: 19959: 19959: 19959: result_type 19959: operator()() 19959: { 19959: _M_x = __detail::__mod<_UIntType, __m, __a, __c>(_M_x); 19959: return _M_x; 19959: } 19959: # 385 "/usr/include/c++/13/bits/random.h" 3 19959: friend bool 19959: operator==(const linear_congruential_engine& __lhs, 19959: const linear_congruential_engine& __rhs) 19959: { return __lhs._M_x == __rhs._M_x; } 19959: # 398 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::linear_congruential_engine<_UIntType1, 19959: __a1, __c1, __m1>& __lcr); 19959: # 418 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::linear_congruential_engine<_UIntType1, __a1, 19959: __c1, __m1>& __lcr); 19959: 19959: private: 19959: _UIntType _M_x; 19959: }; 19959: # 441 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: inline bool 19959: operator!=(const std::linear_congruential_engine<_UIntType, __a, 19959: __c, __m>& __lhs, 19959: const std::linear_congruential_engine<_UIntType, __a, 19959: __c, __m>& __rhs) 19959: { return !(__lhs == __rhs); } 19959: # 481 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class mersenne_twister_engine 19959: { 19959: static_assert(std::is_unsigned<_UIntType>::value, 19959: "result_type must be an unsigned integral type"); 19959: static_assert(1u <= __m && __m <= __n, 19959: "template argument substituting __m out of bounds"); 19959: static_assert(__r <= __w, "template argument substituting " 19959: "__r out of bound"); 19959: static_assert(__u <= __w, "template argument substituting " 19959: "__u out of bound"); 19959: static_assert(__s <= __w, "template argument substituting " 19959: "__s out of bound"); 19959: static_assert(__t <= __w, "template argument substituting " 19959: "__t out of bound"); 19959: static_assert(__l <= __w, "template argument substituting " 19959: "__l out of bound"); 19959: static_assert(__w <= std::numeric_limits<_UIntType>::digits, 19959: "template argument substituting __w out of bound"); 19959: static_assert(__a <= (__detail::_Shift<_UIntType, __w>::__value - 1), 19959: "template argument substituting __a out of bound"); 19959: static_assert(__b <= (__detail::_Shift<_UIntType, __w>::__value - 1), 19959: "template argument substituting __b out of bound"); 19959: static_assert(__c <= (__detail::_Shift<_UIntType, __w>::__value - 1), 19959: "template argument substituting __c out of bound"); 19959: static_assert(__d <= (__detail::_Shift<_UIntType, __w>::__value - 1), 19959: "template argument substituting __d out of bound"); 19959: static_assert(__f <= (__detail::_Shift<_UIntType, __w>::__value - 1), 19959: "template argument substituting __f out of bound"); 19959: 19959: template 19959: using _If_seed_seq 19959: = __detail::_If_seed_seq_for<_Sseq, mersenne_twister_engine, 19959: _UIntType>; 19959: 19959: public: 19959: 19959: typedef _UIntType result_type; 19959: 19959: 19959: static constexpr size_t word_size = __w; 19959: static constexpr size_t state_size = __n; 19959: static constexpr size_t shift_size = __m; 19959: static constexpr size_t mask_bits = __r; 19959: static constexpr result_type xor_mask = __a; 19959: static constexpr size_t tempering_u = __u; 19959: static constexpr result_type tempering_d = __d; 19959: static constexpr size_t tempering_s = __s; 19959: static constexpr result_type tempering_b = __b; 19959: static constexpr size_t tempering_t = __t; 19959: static constexpr result_type tempering_c = __c; 19959: static constexpr size_t tempering_l = __l; 19959: static constexpr result_type initialization_multiplier = __f; 19959: static constexpr result_type default_seed = 5489u; 19959: 19959: 19959: 19959: mersenne_twister_engine() : mersenne_twister_engine(default_seed) { } 19959: 19959: explicit 19959: mersenne_twister_engine(result_type __sd) 19959: { seed(__sd); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: explicit 19959: mersenne_twister_engine(_Sseq& __q) 19959: { seed(__q); } 19959: 19959: void 19959: seed(result_type __sd = default_seed); 19959: 19959: template 19959: _If_seed_seq<_Sseq> 19959: seed(_Sseq& __q); 19959: 19959: 19959: 19959: 19959: static constexpr result_type 19959: min() 19959: { return 0; } 19959: 19959: 19959: 19959: 19959: static constexpr result_type 19959: max() 19959: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 19959: 19959: 19959: 19959: 19959: void 19959: discard(unsigned long long __z); 19959: 19959: result_type 19959: operator()(); 19959: # 601 "/usr/include/c++/13/bits/random.h" 3 19959: friend bool 19959: operator==(const mersenne_twister_engine& __lhs, 19959: const mersenne_twister_engine& __rhs) 19959: { return (std::equal(__lhs._M_x, __lhs._M_x + state_size, __rhs._M_x) 19959: && __lhs._M_p == __rhs._M_p); } 19959: # 619 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::mersenne_twister_engine<_UIntType1, __w1, __n1, 19959: __m1, __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 19959: __l1, __f1>& __x); 19959: # 645 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::mersenne_twister_engine<_UIntType1, __w1, __n1, __m1, 19959: __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 19959: __l1, __f1>& __x); 19959: 19959: private: 19959: void _M_gen_rand(); 19959: 19959: _UIntType _M_x[state_size]; 19959: size_t _M_p; 19959: }; 19959: # 679 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: inline bool 19959: operator!=(const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 19959: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __lhs, 19959: const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 19959: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __rhs) 19959: { return !(__lhs == __rhs); } 19959: # 710 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class subtract_with_carry_engine 19959: { 19959: static_assert(std::is_unsigned<_UIntType>::value, 19959: "result_type must be an unsigned integral type"); 19959: static_assert(0u < __s && __s < __r, 19959: "0 < s < r"); 19959: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 19959: "template argument substituting __w out of bounds"); 19959: 19959: template 19959: using _If_seed_seq 19959: = __detail::_If_seed_seq_for<_Sseq, subtract_with_carry_engine, 19959: _UIntType>; 19959: 19959: public: 19959: 19959: typedef _UIntType result_type; 19959: 19959: 19959: static constexpr size_t word_size = __w; 19959: static constexpr size_t short_lag = __s; 19959: static constexpr size_t long_lag = __r; 19959: static constexpr uint_least32_t default_seed = 19780503u; 19959: 19959: subtract_with_carry_engine() : subtract_with_carry_engine(0u) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: subtract_with_carry_engine(result_type __sd) 19959: { seed(__sd); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: explicit 19959: subtract_with_carry_engine(_Sseq& __q) 19959: { seed(__q); } 19959: # 769 "/usr/include/c++/13/bits/random.h" 3 19959: void 19959: seed(result_type __sd = 0u); 19959: 19959: 19959: 19959: 19959: 19959: template 19959: _If_seed_seq<_Sseq> 19959: seed(_Sseq& __q); 19959: 19959: 19959: 19959: 19959: 19959: static constexpr result_type 19959: min() 19959: { return 0; } 19959: 19959: 19959: 19959: 19959: 19959: static constexpr result_type 19959: max() 19959: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 19959: 19959: 19959: 19959: 19959: void 19959: discard(unsigned long long __z) 19959: { 19959: for (; __z != 0ULL; --__z) 19959: (*this)(); 19959: } 19959: 19959: 19959: 19959: 19959: result_type 19959: operator()(); 19959: # 824 "/usr/include/c++/13/bits/random.h" 3 19959: friend bool 19959: operator==(const subtract_with_carry_engine& __lhs, 19959: const subtract_with_carry_engine& __rhs) 19959: { return (std::equal(__lhs._M_x, __lhs._M_x + long_lag, __rhs._M_x) 19959: && __lhs._M_carry == __rhs._M_carry 19959: && __lhs._M_p == __rhs._M_p); } 19959: # 843 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::subtract_with_carry_engine<_UIntType1, __w1, 19959: __s1, __r1>& __x); 19959: # 862 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::subtract_with_carry_engine<_UIntType1, __w1, 19959: __s1, __r1>& __x); 19959: 19959: private: 19959: 19959: _UIntType _M_x[long_lag]; 19959: _UIntType _M_carry; 19959: size_t _M_p; 19959: }; 19959: # 889 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: inline bool 19959: operator!=(const std::subtract_with_carry_engine<_UIntType, __w, 19959: __s, __r>& __lhs, 19959: const std::subtract_with_carry_engine<_UIntType, __w, 19959: __s, __r>& __rhs) 19959: { return !(__lhs == __rhs); } 19959: # 907 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class discard_block_engine 19959: { 19959: static_assert(1 <= __r && __r <= __p, 19959: "template argument substituting __r out of bounds"); 19959: 19959: public: 19959: 19959: typedef typename _RandomNumberEngine::result_type result_type; 19959: 19959: template 19959: using _If_seed_seq 19959: = __detail::_If_seed_seq_for<_Sseq, discard_block_engine, 19959: result_type>; 19959: 19959: 19959: static constexpr size_t block_size = __p; 19959: static constexpr size_t used_block = __r; 19959: 19959: 19959: 19959: 19959: 19959: 19959: discard_block_engine() 19959: : _M_b(), _M_n(0) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: discard_block_engine(const _RandomNumberEngine& __rng) 19959: : _M_b(__rng), _M_n(0) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: discard_block_engine(_RandomNumberEngine&& __rng) 19959: : _M_b(std::move(__rng)), _M_n(0) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: discard_block_engine(result_type __s) 19959: : _M_b(__s), _M_n(0) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: explicit 19959: discard_block_engine(_Sseq& __q) 19959: : _M_b(__q), _M_n(0) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: seed() 19959: { 19959: _M_b.seed(); 19959: _M_n = 0; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: seed(result_type __s) 19959: { 19959: _M_b.seed(__s); 19959: _M_n = 0; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: _If_seed_seq<_Sseq> 19959: seed(_Sseq& __q) 19959: { 19959: _M_b.seed(__q); 19959: _M_n = 0; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: const _RandomNumberEngine& 19959: base() const noexcept 19959: { return _M_b; } 19959: 19959: 19959: 19959: 19959: static constexpr result_type 19959: min() 19959: { return _RandomNumberEngine::min(); } 19959: 19959: 19959: 19959: 19959: static constexpr result_type 19959: max() 19959: { return _RandomNumberEngine::max(); } 19959: 19959: 19959: 19959: 19959: void 19959: discard(unsigned long long __z) 19959: { 19959: for (; __z != 0ULL; --__z) 19959: (*this)(); 19959: } 19959: 19959: 19959: 19959: 19959: result_type 19959: operator()(); 19959: # 1059 "/usr/include/c++/13/bits/random.h" 3 19959: friend bool 19959: operator==(const discard_block_engine& __lhs, 19959: const discard_block_engine& __rhs) 19959: { return __lhs._M_b == __rhs._M_b && __lhs._M_n == __rhs._M_n; } 19959: # 1075 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::discard_block_engine<_RandomNumberEngine1, 19959: __p1, __r1>& __x); 19959: # 1093 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::discard_block_engine<_RandomNumberEngine1, 19959: __p1, __r1>& __x); 19959: 19959: private: 19959: _RandomNumberEngine _M_b; 19959: size_t _M_n; 19959: }; 19959: # 1117 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: inline bool 19959: operator!=(const std::discard_block_engine<_RandomNumberEngine, __p, 19959: __r>& __lhs, 19959: const std::discard_block_engine<_RandomNumberEngine, __p, 19959: __r>& __rhs) 19959: { return !(__lhs == __rhs); } 19959: # 1133 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class independent_bits_engine 19959: { 19959: static_assert(std::is_unsigned<_UIntType>::value, 19959: "result_type must be an unsigned integral type"); 19959: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 19959: "template argument substituting __w out of bounds"); 19959: 19959: template 19959: using _If_seed_seq 19959: = __detail::_If_seed_seq_for<_Sseq, independent_bits_engine, 19959: _UIntType>; 19959: 19959: public: 19959: 19959: typedef _UIntType result_type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: independent_bits_engine() 19959: : _M_b() { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: independent_bits_engine(const _RandomNumberEngine& __rng) 19959: : _M_b(__rng) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: independent_bits_engine(_RandomNumberEngine&& __rng) 19959: : _M_b(std::move(__rng)) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: independent_bits_engine(result_type __s) 19959: : _M_b(__s) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: explicit 19959: independent_bits_engine(_Sseq& __q) 19959: : _M_b(__q) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: seed() 19959: { _M_b.seed(); } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: seed(result_type __s) 19959: { _M_b.seed(__s); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: _If_seed_seq<_Sseq> 19959: seed(_Sseq& __q) 19959: { _M_b.seed(__q); } 19959: 19959: 19959: 19959: 19959: 19959: const _RandomNumberEngine& 19959: base() const noexcept 19959: { return _M_b; } 19959: 19959: 19959: 19959: 19959: static constexpr result_type 19959: min() 19959: { return 0U; } 19959: 19959: 19959: 19959: 19959: static constexpr result_type 19959: max() 19959: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 19959: 19959: 19959: 19959: 19959: void 19959: discard(unsigned long long __z) 19959: { 19959: for (; __z != 0ULL; --__z) 19959: (*this)(); 19959: } 19959: 19959: 19959: 19959: 19959: result_type 19959: operator()(); 19959: # 1275 "/usr/include/c++/13/bits/random.h" 3 19959: friend bool 19959: operator==(const independent_bits_engine& __lhs, 19959: const independent_bits_engine& __rhs) 19959: { return __lhs._M_b == __rhs._M_b; } 19959: # 1292 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::independent_bits_engine<_RandomNumberEngine, 19959: __w, _UIntType>& __x) 19959: { 19959: __is >> __x._M_b; 19959: return __is; 19959: } 19959: 19959: private: 19959: _RandomNumberEngine _M_b; 19959: }; 19959: # 1319 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: inline bool 19959: operator!=(const std::independent_bits_engine<_RandomNumberEngine, __w, 19959: _UIntType>& __lhs, 19959: const std::independent_bits_engine<_RandomNumberEngine, __w, 19959: _UIntType>& __rhs) 19959: { return !(__lhs == __rhs); } 19959: # 1338 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::independent_bits_engine<_RandomNumberEngine, 19959: __w, _UIntType>& __x) 19959: { 19959: __os << __x.base(); 19959: return __os; 19959: } 19959: # 1360 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class shuffle_order_engine 19959: { 19959: static_assert(1u <= __k, "template argument substituting " 19959: "__k out of bound"); 19959: 19959: public: 19959: 19959: typedef typename _RandomNumberEngine::result_type result_type; 19959: 19959: template 19959: using _If_seed_seq 19959: = __detail::_If_seed_seq_for<_Sseq, shuffle_order_engine, 19959: result_type>; 19959: 19959: static constexpr size_t table_size = __k; 19959: 19959: 19959: 19959: 19959: 19959: 19959: shuffle_order_engine() 19959: : _M_b() 19959: { _M_initialize(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: shuffle_order_engine(const _RandomNumberEngine& __rng) 19959: : _M_b(__rng) 19959: { _M_initialize(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: shuffle_order_engine(_RandomNumberEngine&& __rng) 19959: : _M_b(std::move(__rng)) 19959: { _M_initialize(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: shuffle_order_engine(result_type __s) 19959: : _M_b(__s) 19959: { _M_initialize(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: explicit 19959: shuffle_order_engine(_Sseq& __q) 19959: : _M_b(__q) 19959: { _M_initialize(); } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: seed() 19959: { 19959: _M_b.seed(); 19959: _M_initialize(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: seed(result_type __s) 19959: { 19959: _M_b.seed(__s); 19959: _M_initialize(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: _If_seed_seq<_Sseq> 19959: seed(_Sseq& __q) 19959: { 19959: _M_b.seed(__q); 19959: _M_initialize(); 19959: } 19959: 19959: 19959: 19959: 19959: const _RandomNumberEngine& 19959: base() const noexcept 19959: { return _M_b; } 19959: 19959: 19959: 19959: 19959: static constexpr result_type 19959: min() 19959: { return _RandomNumberEngine::min(); } 19959: 19959: 19959: 19959: 19959: static constexpr result_type 19959: max() 19959: { return _RandomNumberEngine::max(); } 19959: 19959: 19959: 19959: 19959: void 19959: discard(unsigned long long __z) 19959: { 19959: for (; __z != 0ULL; --__z) 19959: (*this)(); 19959: } 19959: 19959: 19959: 19959: 19959: result_type 19959: operator()(); 19959: # 1513 "/usr/include/c++/13/bits/random.h" 3 19959: friend bool 19959: operator==(const shuffle_order_engine& __lhs, 19959: const shuffle_order_engine& __rhs) 19959: { return (__lhs._M_b == __rhs._M_b 19959: && std::equal(__lhs._M_v, __lhs._M_v + __k, __rhs._M_v) 19959: && __lhs._M_y == __rhs._M_y); } 19959: # 1531 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::shuffle_order_engine<_RandomNumberEngine1, 19959: __k1>& __x); 19959: # 1549 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::shuffle_order_engine<_RandomNumberEngine1, __k1>& __x); 19959: 19959: private: 19959: void _M_initialize() 19959: { 19959: for (size_t __i = 0; __i < __k; ++__i) 19959: _M_v[__i] = _M_b(); 19959: _M_y = _M_b(); 19959: } 19959: 19959: _RandomNumberEngine _M_b; 19959: result_type _M_v[__k]; 19959: result_type _M_y; 19959: }; 19959: # 1580 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: inline bool 19959: operator!=(const std::shuffle_order_engine<_RandomNumberEngine, 19959: __k>& __lhs, 19959: const std::shuffle_order_engine<_RandomNumberEngine, 19959: __k>& __rhs) 19959: { return !(__lhs == __rhs); } 19959: 19959: 19959: 19959: 19959: 19959: typedef linear_congruential_engine 19959: minstd_rand0; 19959: 19959: 19959: 19959: 19959: typedef linear_congruential_engine 19959: minstd_rand; 19959: # 1609 "/usr/include/c++/13/bits/random.h" 3 19959: typedef mersenne_twister_engine< 19959: uint_fast32_t, 19959: 32, 624, 397, 31, 19959: 0x9908b0dfUL, 11, 19959: 0xffffffffUL, 7, 19959: 0x9d2c5680UL, 15, 19959: 0xefc60000UL, 18, 1812433253UL> mt19937; 19959: 19959: 19959: 19959: 19959: typedef mersenne_twister_engine< 19959: uint_fast64_t, 19959: 64, 312, 156, 31, 19959: 0xb5026f5aa96619e9ULL, 29, 19959: 0x5555555555555555ULL, 17, 19959: 0x71d67fffeda60000ULL, 37, 19959: 0xfff7eee000000000ULL, 43, 19959: 6364136223846793005ULL> mt19937_64; 19959: 19959: typedef subtract_with_carry_engine 19959: ranlux24_base; 19959: 19959: typedef subtract_with_carry_engine 19959: ranlux48_base; 19959: 19959: typedef discard_block_engine ranlux24; 19959: 19959: typedef discard_block_engine ranlux48; 19959: 19959: typedef shuffle_order_engine knuth_b; 19959: 19959: typedef minstd_rand0 default_random_engine; 19959: # 1650 "/usr/include/c++/13/bits/random.h" 3 19959: class random_device 19959: { 19959: public: 19959: 19959: typedef unsigned int result_type; 19959: 19959: 19959: 19959: random_device() { _M_init("default"); } 19959: 19959: explicit 19959: random_device(const std::string& __token) { _M_init(__token); } 19959: 19959: ~random_device() 19959: { _M_fini(); } 19959: 19959: static constexpr result_type 19959: min() 19959: { return std::numeric_limits::min(); } 19959: 19959: static constexpr result_type 19959: max() 19959: { return std::numeric_limits::max(); } 19959: 19959: double 19959: entropy() const noexcept 19959: { return this->_M_getentropy(); } 19959: 19959: result_type 19959: operator()() 19959: { return this->_M_getval(); } 19959: 19959: 19959: random_device(const random_device&) = delete; 19959: void operator=(const random_device&) = delete; 19959: 19959: private: 19959: 19959: void _M_init(const std::string& __token); 19959: void _M_init_pretr1(const std::string& __token); 19959: void _M_fini(); 19959: 19959: result_type _M_getval(); 19959: result_type _M_getval_pretr1(); 19959: double _M_getentropy() const noexcept; 19959: 19959: void _M_init(const char*, size_t); 19959: 19959: __extension__ union 19959: { 19959: struct 19959: { 19959: void* _M_file; 19959: result_type (*_M_func)(void*); 19959: int _M_fd; 19959: }; 19959: mt19937 _M_mt; 19959: }; 19959: }; 19959: # 1731 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: inline bool 19959: operator!=(const std::uniform_int_distribution<_IntType>& __d1, 19959: const std::uniform_int_distribution<_IntType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 1748 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>&, 19959: const std::uniform_int_distribution<_IntType>&); 19959: # 1762 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>&, 19959: std::uniform_int_distribution<_IntType>&); 19959: # 1778 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class uniform_real_distribution 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "result_type must be a floating point type"); 19959: 19959: public: 19959: 19959: typedef _RealType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef uniform_real_distribution<_RealType> distribution_type; 19959: 19959: param_type() : param_type(0) { } 19959: 19959: explicit 19959: param_type(_RealType __a, _RealType __b = _RealType(1)) 19959: : _M_a(__a), _M_b(__b) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: result_type 19959: a() const 19959: { return _M_a; } 19959: 19959: result_type 19959: b() const 19959: { return _M_b; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: _RealType _M_a; 19959: _RealType _M_b; 19959: }; 19959: 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: uniform_real_distribution() : uniform_real_distribution(0.0) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: uniform_real_distribution(_RealType __a, _RealType __b = _RealType(1)) 19959: : _M_param(__a, __b) 19959: { } 19959: 19959: explicit 19959: uniform_real_distribution(const param_type& __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: reset() { } 19959: 19959: result_type 19959: a() const 19959: { return _M_param.a(); } 19959: 19959: result_type 19959: b() const 19959: { return _M_param.b(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return this->a(); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return this->b(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: return (__aurng() * (__p.b() - __p.a())) + __p.a(); 19959: } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const uniform_real_distribution& __d1, 19959: const uniform_real_distribution& __d2) 19959: { return __d1._M_param == __d2._M_param; } 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::uniform_real_distribution<_IntType>& __d1, 19959: const std::uniform_real_distribution<_IntType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 1976 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>&, 19959: const std::uniform_real_distribution<_RealType>&); 19959: # 1990 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>&, 19959: std::uniform_real_distribution<_RealType>&); 19959: # 2015 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class normal_distribution 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "result_type must be a floating point type"); 19959: 19959: public: 19959: 19959: typedef _RealType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef normal_distribution<_RealType> distribution_type; 19959: 19959: param_type() : param_type(0.0) { } 19959: 19959: explicit 19959: param_type(_RealType __mean, _RealType __stddev = _RealType(1)) 19959: : _M_mean(__mean), _M_stddev(__stddev) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_stddev > _RealType(0))) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: _RealType 19959: mean() const 19959: { return _M_mean; } 19959: 19959: _RealType 19959: stddev() const 19959: { return _M_stddev; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return (__p1._M_mean == __p2._M_mean 19959: && __p1._M_stddev == __p2._M_stddev); } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: _RealType _M_mean; 19959: _RealType _M_stddev; 19959: }; 19959: 19959: public: 19959: normal_distribution() : normal_distribution(0.0) { } 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: normal_distribution(result_type __mean, 19959: result_type __stddev = result_type(1)) 19959: : _M_param(__mean, __stddev) 19959: { } 19959: 19959: explicit 19959: normal_distribution(const param_type& __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { _M_saved_available = false; } 19959: 19959: 19959: 19959: 19959: _RealType 19959: mean() const 19959: { return _M_param.mean(); } 19959: 19959: 19959: 19959: 19959: _RealType 19959: stddev() const 19959: { return _M_param.stddev(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return std::numeric_limits::lowest(); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: friend bool 19959: operator==(const std::normal_distribution<_RealType1>& __d1, 19959: const std::normal_distribution<_RealType1>& __d2); 19959: # 2186 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::normal_distribution<_RealType1>& __x); 19959: # 2201 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::normal_distribution<_RealType1>& __x); 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: result_type _M_saved = 0; 19959: bool _M_saved_available = false; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::normal_distribution<_RealType>& __d1, 19959: const std::normal_distribution<_RealType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 2242 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class lognormal_distribution 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "result_type must be a floating point type"); 19959: 19959: public: 19959: 19959: typedef _RealType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef lognormal_distribution<_RealType> distribution_type; 19959: 19959: param_type() : param_type(0.0) { } 19959: 19959: explicit 19959: param_type(_RealType __m, _RealType __s = _RealType(1)) 19959: : _M_m(__m), _M_s(__s) 19959: { } 19959: 19959: _RealType 19959: m() const 19959: { return _M_m; } 19959: 19959: _RealType 19959: s() const 19959: { return _M_s; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_m == __p2._M_m && __p1._M_s == __p2._M_s; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: _RealType _M_m; 19959: _RealType _M_s; 19959: }; 19959: 19959: lognormal_distribution() : lognormal_distribution(0.0) { } 19959: 19959: explicit 19959: lognormal_distribution(_RealType __m, _RealType __s = _RealType(1)) 19959: : _M_param(__m, __s), _M_nd() 19959: { } 19959: 19959: explicit 19959: lognormal_distribution(const param_type& __p) 19959: : _M_param(__p), _M_nd() 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { _M_nd.reset(); } 19959: 19959: 19959: 19959: 19959: _RealType 19959: m() const 19959: { return _M_param.m(); } 19959: 19959: _RealType 19959: s() const 19959: { return _M_param.s(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return result_type(0); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { return std::exp(__p.s() * _M_nd(__urng) + __p.m()); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const lognormal_distribution& __d1, 19959: const lognormal_distribution& __d2) 19959: { return (__d1._M_param == __d2._M_param 19959: && __d1._M_nd == __d2._M_nd); } 19959: # 2403 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::lognormal_distribution<_RealType1>& __x); 19959: # 2418 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::lognormal_distribution<_RealType1>& __x); 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: 19959: std::normal_distribution _M_nd; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::lognormal_distribution<_RealType>& __d1, 19959: const std::lognormal_distribution<_RealType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 2467 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class gamma_distribution 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "result_type must be a floating point type"); 19959: 19959: public: 19959: 19959: typedef _RealType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef gamma_distribution<_RealType> distribution_type; 19959: friend class gamma_distribution<_RealType>; 19959: 19959: param_type() : param_type(1.0) { } 19959: 19959: explicit 19959: param_type(_RealType __alpha_val, _RealType __beta_val = _RealType(1)) 19959: : _M_alpha(__alpha_val), _M_beta(__beta_val) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_alpha > _RealType(0))) __builtin_unreachable(); } while (false); 19959: _M_initialize(); 19959: } 19959: 19959: _RealType 19959: alpha() const 19959: { return _M_alpha; } 19959: 19959: _RealType 19959: beta() const 19959: { return _M_beta; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return (__p1._M_alpha == __p2._M_alpha 19959: && __p1._M_beta == __p2._M_beta); } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: void 19959: _M_initialize(); 19959: 19959: _RealType _M_alpha; 19959: _RealType _M_beta; 19959: 19959: _RealType _M_malpha, _M_a2; 19959: }; 19959: 19959: public: 19959: 19959: 19959: 19959: gamma_distribution() : gamma_distribution(1.0) { } 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: gamma_distribution(_RealType __alpha_val, 19959: _RealType __beta_val = _RealType(1)) 19959: : _M_param(__alpha_val, __beta_val), _M_nd() 19959: { } 19959: 19959: explicit 19959: gamma_distribution(const param_type& __p) 19959: : _M_param(__p), _M_nd() 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { _M_nd.reset(); } 19959: 19959: 19959: 19959: 19959: _RealType 19959: alpha() const 19959: { return _M_param.alpha(); } 19959: 19959: 19959: 19959: 19959: _RealType 19959: beta() const 19959: { return _M_param.beta(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return result_type(0); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const gamma_distribution& __d1, 19959: const gamma_distribution& __d2) 19959: { return (__d1._M_param == __d2._M_param 19959: && __d1._M_nd == __d2._M_nd); } 19959: # 2649 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::gamma_distribution<_RealType1>& __x); 19959: # 2663 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::gamma_distribution<_RealType1>& __x); 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: 19959: std::normal_distribution _M_nd; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::gamma_distribution<_RealType>& __d1, 19959: const std::gamma_distribution<_RealType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 2709 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class chi_squared_distribution 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "result_type must be a floating point type"); 19959: 19959: public: 19959: 19959: typedef _RealType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef chi_squared_distribution<_RealType> distribution_type; 19959: 19959: param_type() : param_type(1) { } 19959: 19959: explicit 19959: param_type(_RealType __n) 19959: : _M_n(__n) 19959: { } 19959: 19959: _RealType 19959: n() const 19959: { return _M_n; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_n == __p2._M_n; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: _RealType _M_n; 19959: }; 19959: 19959: chi_squared_distribution() : chi_squared_distribution(1) { } 19959: 19959: explicit 19959: chi_squared_distribution(_RealType __n) 19959: : _M_param(__n), _M_gd(__n / 2) 19959: { } 19959: 19959: explicit 19959: chi_squared_distribution(const param_type& __p) 19959: : _M_param(__p), _M_gd(__p.n() / 2) 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { _M_gd.reset(); } 19959: 19959: 19959: 19959: 19959: _RealType 19959: n() const 19959: { return _M_param.n(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { 19959: _M_param = __param; 19959: typedef typename std::gamma_distribution::param_type 19959: param_type; 19959: _M_gd.param(param_type{__param.n() / 2}); 19959: } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return result_type(0); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return 2 * _M_gd(__urng); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: typedef typename std::gamma_distribution::param_type 19959: param_type; 19959: return 2 * _M_gd(__urng, param_type(__p.n() / 2)); 19959: } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate_impl(__f, __t, __urng); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { typename std::gamma_distribution::param_type 19959: __p2(__p.n() / 2); 19959: this->__generate_impl(__f, __t, __urng, __p2); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate_impl(__f, __t, __urng); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { typename std::gamma_distribution::param_type 19959: __p2(__p.n() / 2); 19959: this->__generate_impl(__f, __t, __urng, __p2); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const chi_squared_distribution& __d1, 19959: const chi_squared_distribution& __d2) 19959: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 19959: # 2879 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::chi_squared_distribution<_RealType1>& __x); 19959: # 2894 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::chi_squared_distribution<_RealType1>& __x); 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng); 19959: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const typename 19959: std::gamma_distribution::param_type& __p); 19959: 19959: param_type _M_param; 19959: 19959: std::gamma_distribution _M_gd; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::chi_squared_distribution<_RealType>& __d1, 19959: const std::chi_squared_distribution<_RealType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 2939 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class cauchy_distribution 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "result_type must be a floating point type"); 19959: 19959: public: 19959: 19959: typedef _RealType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef cauchy_distribution<_RealType> distribution_type; 19959: 19959: param_type() : param_type(0) { } 19959: 19959: explicit 19959: param_type(_RealType __a, _RealType __b = _RealType(1)) 19959: : _M_a(__a), _M_b(__b) 19959: { } 19959: 19959: _RealType 19959: a() const 19959: { return _M_a; } 19959: 19959: _RealType 19959: b() const 19959: { return _M_b; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: _RealType _M_a; 19959: _RealType _M_b; 19959: }; 19959: 19959: cauchy_distribution() : cauchy_distribution(0.0) { } 19959: 19959: explicit 19959: cauchy_distribution(_RealType __a, _RealType __b = 1.0) 19959: : _M_param(__a, __b) 19959: { } 19959: 19959: explicit 19959: cauchy_distribution(const param_type& __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { } 19959: 19959: 19959: 19959: 19959: _RealType 19959: a() const 19959: { return _M_param.a(); } 19959: 19959: _RealType 19959: b() const 19959: { return _M_param.b(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return std::numeric_limits::lowest(); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const cauchy_distribution& __d1, 19959: const cauchy_distribution& __d2) 19959: { return __d1._M_param == __d2._M_param; } 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::cauchy_distribution<_RealType>& __d1, 19959: const std::cauchy_distribution<_RealType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 3120 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::cauchy_distribution<_RealType>& __x); 19959: # 3135 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::cauchy_distribution<_RealType>& __x); 19959: # 3154 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class fisher_f_distribution 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "result_type must be a floating point type"); 19959: 19959: public: 19959: 19959: typedef _RealType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef fisher_f_distribution<_RealType> distribution_type; 19959: 19959: param_type() : param_type(1) { } 19959: 19959: explicit 19959: param_type(_RealType __m, _RealType __n = _RealType(1)) 19959: : _M_m(__m), _M_n(__n) 19959: { } 19959: 19959: _RealType 19959: m() const 19959: { return _M_m; } 19959: 19959: _RealType 19959: n() const 19959: { return _M_n; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_m == __p2._M_m && __p1._M_n == __p2._M_n; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: _RealType _M_m; 19959: _RealType _M_n; 19959: }; 19959: 19959: fisher_f_distribution() : fisher_f_distribution(1.0) { } 19959: 19959: explicit 19959: fisher_f_distribution(_RealType __m, 19959: _RealType __n = _RealType(1)) 19959: : _M_param(__m, __n), _M_gd_x(__m / 2), _M_gd_y(__n / 2) 19959: { } 19959: 19959: explicit 19959: fisher_f_distribution(const param_type& __p) 19959: : _M_param(__p), _M_gd_x(__p.m() / 2), _M_gd_y(__p.n() / 2) 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { 19959: _M_gd_x.reset(); 19959: _M_gd_y.reset(); 19959: } 19959: 19959: 19959: 19959: 19959: _RealType 19959: m() const 19959: { return _M_param.m(); } 19959: 19959: _RealType 19959: n() const 19959: { return _M_param.n(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return result_type(0); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return (_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m()); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: typedef typename std::gamma_distribution::param_type 19959: param_type; 19959: return ((_M_gd_x(__urng, param_type(__p.m() / 2)) * n()) 19959: / (_M_gd_y(__urng, param_type(__p.n() / 2)) * m())); 19959: } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate_impl(__f, __t, __urng); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate_impl(__f, __t, __urng); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const fisher_f_distribution& __d1, 19959: const fisher_f_distribution& __d2) 19959: { return (__d1._M_param == __d2._M_param 19959: && __d1._M_gd_x == __d2._M_gd_x 19959: && __d1._M_gd_y == __d2._M_gd_y); } 19959: # 3331 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::fisher_f_distribution<_RealType1>& __x); 19959: # 3346 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::fisher_f_distribution<_RealType1>& __x); 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng); 19959: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: 19959: std::gamma_distribution _M_gd_x, _M_gd_y; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::fisher_f_distribution<_RealType>& __d1, 19959: const std::fisher_f_distribution<_RealType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 3393 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class student_t_distribution 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "result_type must be a floating point type"); 19959: 19959: public: 19959: 19959: typedef _RealType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef student_t_distribution<_RealType> distribution_type; 19959: 19959: param_type() : param_type(1) { } 19959: 19959: explicit 19959: param_type(_RealType __n) 19959: : _M_n(__n) 19959: { } 19959: 19959: _RealType 19959: n() const 19959: { return _M_n; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_n == __p2._M_n; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: _RealType _M_n; 19959: }; 19959: 19959: student_t_distribution() : student_t_distribution(1.0) { } 19959: 19959: explicit 19959: student_t_distribution(_RealType __n) 19959: : _M_param(__n), _M_nd(), _M_gd(__n / 2, 2) 19959: { } 19959: 19959: explicit 19959: student_t_distribution(const param_type& __p) 19959: : _M_param(__p), _M_nd(), _M_gd(__p.n() / 2, 2) 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { 19959: _M_nd.reset(); 19959: _M_gd.reset(); 19959: } 19959: 19959: 19959: 19959: 19959: _RealType 19959: n() const 19959: { return _M_param.n(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return std::numeric_limits::lowest(); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: typedef typename std::gamma_distribution::param_type 19959: param_type; 19959: 19959: const result_type __g = _M_gd(__urng, param_type(__p.n() / 2, 2)); 19959: return _M_nd(__urng) * std::sqrt(__p.n() / __g); 19959: } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate_impl(__f, __t, __urng); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate_impl(__f, __t, __urng); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const student_t_distribution& __d1, 19959: const student_t_distribution& __d2) 19959: { return (__d1._M_param == __d2._M_param 19959: && __d1._M_nd == __d2._M_nd && __d1._M_gd == __d2._M_gd); } 19959: # 3560 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::student_t_distribution<_RealType1>& __x); 19959: # 3575 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::student_t_distribution<_RealType1>& __x); 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng); 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: 19959: std::normal_distribution _M_nd; 19959: std::gamma_distribution _M_gd; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::student_t_distribution<_RealType>& __d1, 19959: const std::student_t_distribution<_RealType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 3627 "/usr/include/c++/13/bits/random.h" 3 19959: class bernoulli_distribution 19959: { 19959: public: 19959: 19959: typedef bool result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef bernoulli_distribution distribution_type; 19959: 19959: param_type() : param_type(0.5) { } 19959: 19959: explicit 19959: param_type(double __p) 19959: : _M_p(__p) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool((_M_p >= 0.0) && (_M_p <= 1.0))) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: double 19959: p() const 19959: { return _M_p; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_p == __p2._M_p; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: double _M_p; 19959: }; 19959: 19959: public: 19959: 19959: 19959: 19959: bernoulli_distribution() : bernoulli_distribution(0.5) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: bernoulli_distribution(double __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: explicit 19959: bernoulli_distribution(const param_type& __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: reset() { } 19959: 19959: 19959: 19959: 19959: double 19959: p() const 19959: { return _M_param.p(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return std::numeric_limits::min(); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 19959: __aurng(__urng); 19959: if ((__aurng() - __aurng.min()) 19959: < __p.p() * (__aurng.max() - __aurng.min())) 19959: return true; 19959: return false; 19959: } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const bernoulli_distribution& __d1, 19959: const bernoulli_distribution& __d2) 19959: { return __d1._M_param == __d2._M_param; } 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline bool 19959: operator!=(const std::bernoulli_distribution& __d1, 19959: const std::bernoulli_distribution& __d2) 19959: { return !(__d1 == __d2); } 19959: # 3814 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::bernoulli_distribution& __x); 19959: # 3828 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: inline std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::bernoulli_distribution& __x) 19959: { 19959: double __p; 19959: if (__is >> __p) 19959: __x.param(bernoulli_distribution::param_type(__p)); 19959: return __is; 19959: } 19959: # 3850 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class binomial_distribution 19959: { 19959: static_assert(std::is_integral<_IntType>::value, 19959: "result_type must be an integral type"); 19959: 19959: public: 19959: 19959: typedef _IntType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef binomial_distribution<_IntType> distribution_type; 19959: friend class binomial_distribution<_IntType>; 19959: 19959: param_type() : param_type(1) { } 19959: 19959: explicit 19959: param_type(_IntType __t, double __p = 0.5) 19959: : _M_t(__t), _M_p(__p) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool((_M_t >= _IntType(0)) && (_M_p >= 0.0) && (_M_p <= 1.0))) __builtin_unreachable(); } while (false) 19959: 19959: ; 19959: _M_initialize(); 19959: } 19959: 19959: _IntType 19959: t() const 19959: { return _M_t; } 19959: 19959: double 19959: p() const 19959: { return _M_p; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_t == __p2._M_t && __p1._M_p == __p2._M_p; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: void 19959: _M_initialize(); 19959: 19959: _IntType _M_t; 19959: double _M_p; 19959: 19959: double _M_q; 19959: 19959: double _M_d1, _M_d2, _M_s1, _M_s2, _M_c, 19959: _M_a1, _M_a123, _M_s, _M_lf, _M_lp1p; 19959: 19959: bool _M_easy; 19959: }; 19959: 19959: 19959: 19959: binomial_distribution() : binomial_distribution(1) { } 19959: 19959: explicit 19959: binomial_distribution(_IntType __t, double __p = 0.5) 19959: : _M_param(__t, __p), _M_nd() 19959: { } 19959: 19959: explicit 19959: binomial_distribution(const param_type& __p) 19959: : _M_param(__p), _M_nd() 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { _M_nd.reset(); } 19959: 19959: 19959: 19959: 19959: _IntType 19959: t() const 19959: { return _M_param.t(); } 19959: 19959: 19959: 19959: 19959: double 19959: p() const 19959: { return _M_param.p(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return 0; } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return _M_param.t(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const binomial_distribution& __d1, 19959: const binomial_distribution& __d2) 19959: 19959: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 19959: # 4034 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::binomial_distribution<_IntType1>& __x); 19959: # 4050 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::binomial_distribution<_IntType1>& __x); 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: result_type 19959: _M_waiting(_UniformRandomNumberGenerator& __urng, 19959: _IntType __t, double __q); 19959: 19959: param_type _M_param; 19959: 19959: 19959: std::normal_distribution _M_nd; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::binomial_distribution<_IntType>& __d1, 19959: const std::binomial_distribution<_IntType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 4096 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class geometric_distribution 19959: { 19959: static_assert(std::is_integral<_IntType>::value, 19959: "result_type must be an integral type"); 19959: 19959: public: 19959: 19959: typedef _IntType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef geometric_distribution<_IntType> distribution_type; 19959: friend class geometric_distribution<_IntType>; 19959: 19959: param_type() : param_type(0.5) { } 19959: 19959: explicit 19959: param_type(double __p) 19959: : _M_p(__p) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool((_M_p > 0.0) && (_M_p < 1.0))) __builtin_unreachable(); } while (false); 19959: _M_initialize(); 19959: } 19959: 19959: double 19959: p() const 19959: { return _M_p; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_p == __p2._M_p; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: void 19959: _M_initialize() 19959: { _M_log_1_p = std::log(1.0 - _M_p); } 19959: 19959: double _M_p; 19959: 19959: double _M_log_1_p; 19959: }; 19959: 19959: 19959: 19959: geometric_distribution() : geometric_distribution(0.5) { } 19959: 19959: explicit 19959: geometric_distribution(double __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: explicit 19959: geometric_distribution(const param_type& __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: reset() { } 19959: 19959: 19959: 19959: 19959: double 19959: p() const 19959: { return _M_param.p(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return 0; } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const geometric_distribution& __d1, 19959: const geometric_distribution& __d2) 19959: { return __d1._M_param == __d2._M_param; } 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::geometric_distribution<_IntType>& __d1, 19959: const std::geometric_distribution<_IntType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 4281 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::geometric_distribution<_IntType>& __x); 19959: # 4296 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::geometric_distribution<_IntType>& __x); 19959: # 4313 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class negative_binomial_distribution 19959: { 19959: static_assert(std::is_integral<_IntType>::value, 19959: "result_type must be an integral type"); 19959: 19959: public: 19959: 19959: typedef _IntType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef negative_binomial_distribution<_IntType> distribution_type; 19959: 19959: param_type() : param_type(1) { } 19959: 19959: explicit 19959: param_type(_IntType __k, double __p = 0.5) 19959: : _M_k(__k), _M_p(__p) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool((_M_k > 0) && (_M_p > 0.0) && (_M_p <= 1.0))) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: _IntType 19959: k() const 19959: { return _M_k; } 19959: 19959: double 19959: p() const 19959: { return _M_p; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_k == __p2._M_k && __p1._M_p == __p2._M_p; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: _IntType _M_k; 19959: double _M_p; 19959: }; 19959: 19959: negative_binomial_distribution() : negative_binomial_distribution(1) { } 19959: 19959: explicit 19959: negative_binomial_distribution(_IntType __k, double __p = 0.5) 19959: : _M_param(__k, __p), _M_gd(__k, (1.0 - __p) / __p) 19959: { } 19959: 19959: explicit 19959: negative_binomial_distribution(const param_type& __p) 19959: : _M_param(__p), _M_gd(__p.k(), (1.0 - __p.p()) / __p.p()) 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { _M_gd.reset(); } 19959: 19959: 19959: 19959: 19959: _IntType 19959: k() const 19959: { return _M_param.k(); } 19959: 19959: 19959: 19959: 19959: double 19959: p() const 19959: { return _M_param.p(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return result_type(0); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng); 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate_impl(__f, __t, __urng); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate_impl(__f, __t, __urng); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const negative_binomial_distribution& __d1, 19959: const negative_binomial_distribution& __d2) 19959: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 19959: # 4483 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::negative_binomial_distribution<_IntType1>& __x); 19959: # 4498 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::negative_binomial_distribution<_IntType1>& __x); 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng); 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: 19959: std::gamma_distribution _M_gd; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::negative_binomial_distribution<_IntType>& __d1, 19959: const std::negative_binomial_distribution<_IntType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 4550 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class poisson_distribution 19959: { 19959: static_assert(std::is_integral<_IntType>::value, 19959: "result_type must be an integral type"); 19959: 19959: public: 19959: 19959: typedef _IntType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef poisson_distribution<_IntType> distribution_type; 19959: friend class poisson_distribution<_IntType>; 19959: 19959: param_type() : param_type(1.0) { } 19959: 19959: explicit 19959: param_type(double __mean) 19959: : _M_mean(__mean) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_mean > 0.0)) __builtin_unreachable(); } while (false); 19959: _M_initialize(); 19959: } 19959: 19959: double 19959: mean() const 19959: { return _M_mean; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_mean == __p2._M_mean; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: 19959: void 19959: _M_initialize(); 19959: 19959: double _M_mean; 19959: 19959: double _M_lm_thr; 19959: 19959: double _M_lfm, _M_sm, _M_d, _M_scx, _M_1cx, _M_c2b, _M_cb; 19959: 19959: }; 19959: 19959: 19959: 19959: poisson_distribution() : poisson_distribution(1.0) { } 19959: 19959: explicit 19959: poisson_distribution(double __mean) 19959: : _M_param(__mean), _M_nd() 19959: { } 19959: 19959: explicit 19959: poisson_distribution(const param_type& __p) 19959: : _M_param(__p), _M_nd() 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { _M_nd.reset(); } 19959: 19959: 19959: 19959: 19959: double 19959: mean() const 19959: { return _M_param.mean(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return 0; } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const poisson_distribution& __d1, 19959: const poisson_distribution& __d2) 19959: 19959: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 19959: # 4719 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::poisson_distribution<_IntType1>& __x); 19959: # 4734 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::poisson_distribution<_IntType1>& __x); 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: 19959: 19959: std::normal_distribution _M_nd; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::poisson_distribution<_IntType>& __d1, 19959: const std::poisson_distribution<_IntType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 4782 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class exponential_distribution 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "result_type must be a floating point type"); 19959: 19959: public: 19959: 19959: typedef _RealType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef exponential_distribution<_RealType> distribution_type; 19959: 19959: param_type() : param_type(1.0) { } 19959: 19959: explicit 19959: param_type(_RealType __lambda) 19959: : _M_lambda(__lambda) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(_M_lambda > _RealType(0))) __builtin_unreachable(); } while (false); 19959: } 19959: 19959: _RealType 19959: lambda() const 19959: { return _M_lambda; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_lambda == __p2._M_lambda; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: _RealType _M_lambda; 19959: }; 19959: 19959: public: 19959: 19959: 19959: 19959: 19959: exponential_distribution() : exponential_distribution(1.0) { } 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: exponential_distribution(_RealType __lambda) 19959: : _M_param(__lambda) 19959: { } 19959: 19959: explicit 19959: exponential_distribution(const param_type& __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: reset() { } 19959: 19959: 19959: 19959: 19959: _RealType 19959: lambda() const 19959: { return _M_param.lambda(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return result_type(0); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: return -std::log(result_type(1) - __aurng()) / __p.lambda(); 19959: } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const exponential_distribution& __d1, 19959: const exponential_distribution& __d2) 19959: { return __d1._M_param == __d2._M_param; } 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::exponential_distribution<_RealType>& __d1, 19959: const std::exponential_distribution<_RealType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 4971 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::exponential_distribution<_RealType>& __x); 19959: # 4986 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::exponential_distribution<_RealType>& __x); 19959: # 5004 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class weibull_distribution 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "result_type must be a floating point type"); 19959: 19959: public: 19959: 19959: typedef _RealType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef weibull_distribution<_RealType> distribution_type; 19959: 19959: param_type() : param_type(1.0) { } 19959: 19959: explicit 19959: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 19959: : _M_a(__a), _M_b(__b) 19959: { } 19959: 19959: _RealType 19959: a() const 19959: { return _M_a; } 19959: 19959: _RealType 19959: b() const 19959: { return _M_b; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: _RealType _M_a; 19959: _RealType _M_b; 19959: }; 19959: 19959: weibull_distribution() : weibull_distribution(1.0) { } 19959: 19959: explicit 19959: weibull_distribution(_RealType __a, _RealType __b = _RealType(1)) 19959: : _M_param(__a, __b) 19959: { } 19959: 19959: explicit 19959: weibull_distribution(const param_type& __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { } 19959: 19959: 19959: 19959: 19959: _RealType 19959: a() const 19959: { return _M_param.a(); } 19959: 19959: 19959: 19959: 19959: _RealType 19959: b() const 19959: { return _M_param.b(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return result_type(0); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const weibull_distribution& __d1, 19959: const weibull_distribution& __d2) 19959: { return __d1._M_param == __d2._M_param; } 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::weibull_distribution<_RealType>& __d1, 19959: const std::weibull_distribution<_RealType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 5188 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::weibull_distribution<_RealType>& __x); 19959: # 5203 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::weibull_distribution<_RealType>& __x); 19959: # 5221 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class extreme_value_distribution 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "result_type must be a floating point type"); 19959: 19959: public: 19959: 19959: typedef _RealType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef extreme_value_distribution<_RealType> distribution_type; 19959: 19959: param_type() : param_type(0.0) { } 19959: 19959: explicit 19959: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 19959: : _M_a(__a), _M_b(__b) 19959: { } 19959: 19959: _RealType 19959: a() const 19959: { return _M_a; } 19959: 19959: _RealType 19959: b() const 19959: { return _M_b; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: _RealType _M_a; 19959: _RealType _M_b; 19959: }; 19959: 19959: extreme_value_distribution() : extreme_value_distribution(0.0) { } 19959: 19959: explicit 19959: extreme_value_distribution(_RealType __a, _RealType __b = _RealType(1)) 19959: : _M_param(__a, __b) 19959: { } 19959: 19959: explicit 19959: extreme_value_distribution(const param_type& __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { } 19959: 19959: 19959: 19959: 19959: _RealType 19959: a() const 19959: { return _M_param.a(); } 19959: 19959: 19959: 19959: 19959: _RealType 19959: b() const 19959: { return _M_param.b(); } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return std::numeric_limits::lowest(); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { return std::numeric_limits::max(); } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const extreme_value_distribution& __d1, 19959: const extreme_value_distribution& __d2) 19959: { return __d1._M_param == __d2._M_param; } 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::extreme_value_distribution<_RealType>& __d1, 19959: const std::extreme_value_distribution<_RealType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 5405 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::extreme_value_distribution<_RealType>& __x); 19959: # 5420 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::extreme_value_distribution<_RealType>& __x); 19959: # 5443 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class discrete_distribution 19959: { 19959: static_assert(std::is_integral<_IntType>::value, 19959: "result_type must be an integral type"); 19959: 19959: public: 19959: 19959: typedef _IntType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef discrete_distribution<_IntType> distribution_type; 19959: friend class discrete_distribution<_IntType>; 19959: 19959: param_type() 19959: : _M_prob(), _M_cp() 19959: { } 19959: 19959: template 19959: param_type(_InputIterator __wbegin, 19959: _InputIterator __wend) 19959: : _M_prob(__wbegin, __wend), _M_cp() 19959: { _M_initialize(); } 19959: 19959: param_type(initializer_list __wil) 19959: : _M_prob(__wil.begin(), __wil.end()), _M_cp() 19959: { _M_initialize(); } 19959: 19959: template 19959: param_type(size_t __nw, double __xmin, double __xmax, 19959: _Func __fw); 19959: 19959: 19959: param_type(const param_type&) = default; 19959: param_type& operator=(const param_type&) = default; 19959: 19959: std::vector 19959: probabilities() const 19959: { return _M_prob.empty() ? std::vector(1, 1.0) : _M_prob; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_prob == __p2._M_prob; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: void 19959: _M_initialize(); 19959: 19959: std::vector _M_prob; 19959: std::vector _M_cp; 19959: }; 19959: 19959: discrete_distribution() 19959: : _M_param() 19959: { } 19959: 19959: template 19959: discrete_distribution(_InputIterator __wbegin, 19959: _InputIterator __wend) 19959: : _M_param(__wbegin, __wend) 19959: { } 19959: 19959: discrete_distribution(initializer_list __wl) 19959: : _M_param(__wl) 19959: { } 19959: 19959: template 19959: discrete_distribution(size_t __nw, double __xmin, double __xmax, 19959: _Func __fw) 19959: : _M_param(__nw, __xmin, __xmax, __fw) 19959: { } 19959: 19959: explicit 19959: discrete_distribution(const param_type& __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { } 19959: 19959: 19959: 19959: 19959: std::vector 19959: probabilities() const 19959: { 19959: return _M_param._M_prob.empty() 19959: ? std::vector(1, 1.0) : _M_param._M_prob; 19959: } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { return result_type(0); } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { 19959: return _M_param._M_prob.empty() 19959: ? result_type(0) : result_type(_M_param._M_prob.size() - 1); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const discrete_distribution& __d1, 19959: const discrete_distribution& __d2) 19959: { return __d1._M_param == __d2._M_param; } 19959: # 5631 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::discrete_distribution<_IntType1>& __x); 19959: # 5647 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::discrete_distribution<_IntType1>& __x); 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::discrete_distribution<_IntType>& __d1, 19959: const std::discrete_distribution<_IntType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 5691 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class piecewise_constant_distribution 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "result_type must be a floating point type"); 19959: 19959: public: 19959: 19959: typedef _RealType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef piecewise_constant_distribution<_RealType> distribution_type; 19959: friend class piecewise_constant_distribution<_RealType>; 19959: 19959: param_type() 19959: : _M_int(), _M_den(), _M_cp() 19959: { } 19959: 19959: template 19959: param_type(_InputIteratorB __bfirst, 19959: _InputIteratorB __bend, 19959: _InputIteratorW __wbegin); 19959: 19959: template 19959: param_type(initializer_list<_RealType> __bi, _Func __fw); 19959: 19959: template 19959: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 19959: _Func __fw); 19959: 19959: 19959: param_type(const param_type&) = default; 19959: param_type& operator=(const param_type&) = default; 19959: 19959: std::vector<_RealType> 19959: intervals() const 19959: { 19959: if (_M_int.empty()) 19959: { 19959: std::vector<_RealType> __tmp(2); 19959: __tmp[1] = _RealType(1); 19959: return __tmp; 19959: } 19959: else 19959: return _M_int; 19959: } 19959: 19959: std::vector 19959: densities() const 19959: { return _M_den.empty() ? std::vector(1, 1.0) : _M_den; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: void 19959: _M_initialize(); 19959: 19959: std::vector<_RealType> _M_int; 19959: std::vector _M_den; 19959: std::vector _M_cp; 19959: }; 19959: 19959: piecewise_constant_distribution() 19959: : _M_param() 19959: { } 19959: 19959: template 19959: piecewise_constant_distribution(_InputIteratorB __bfirst, 19959: _InputIteratorB __bend, 19959: _InputIteratorW __wbegin) 19959: : _M_param(__bfirst, __bend, __wbegin) 19959: { } 19959: 19959: template 19959: piecewise_constant_distribution(initializer_list<_RealType> __bl, 19959: _Func __fw) 19959: : _M_param(__bl, __fw) 19959: { } 19959: 19959: template 19959: piecewise_constant_distribution(size_t __nw, 19959: _RealType __xmin, _RealType __xmax, 19959: _Func __fw) 19959: : _M_param(__nw, __xmin, __xmax, __fw) 19959: { } 19959: 19959: explicit 19959: piecewise_constant_distribution(const param_type& __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { } 19959: 19959: 19959: 19959: 19959: std::vector<_RealType> 19959: intervals() const 19959: { 19959: if (_M_param._M_int.empty()) 19959: { 19959: std::vector<_RealType> __tmp(2); 19959: __tmp[1] = _RealType(1); 19959: return __tmp; 19959: } 19959: else 19959: return _M_param._M_int; 19959: } 19959: 19959: 19959: 19959: 19959: std::vector 19959: densities() const 19959: { 19959: return _M_param._M_den.empty() 19959: ? std::vector(1, 1.0) : _M_param._M_den; 19959: } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { 19959: return _M_param._M_int.empty() 19959: ? result_type(0) : _M_param._M_int.front(); 19959: } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { 19959: return _M_param._M_int.empty() 19959: ? result_type(1) : _M_param._M_int.back(); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const piecewise_constant_distribution& __d1, 19959: const piecewise_constant_distribution& __d2) 19959: { return __d1._M_param == __d2._M_param; } 19959: # 5915 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::piecewise_constant_distribution<_RealType1>& __x); 19959: # 5931 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::piecewise_constant_distribution<_RealType1>& __x); 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::piecewise_constant_distribution<_RealType>& __d1, 19959: const std::piecewise_constant_distribution<_RealType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 5971 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: class piecewise_linear_distribution 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "result_type must be a floating point type"); 19959: 19959: public: 19959: 19959: typedef _RealType result_type; 19959: 19959: 19959: struct param_type 19959: { 19959: typedef piecewise_linear_distribution<_RealType> distribution_type; 19959: friend class piecewise_linear_distribution<_RealType>; 19959: 19959: param_type() 19959: : _M_int(), _M_den(), _M_cp(), _M_m() 19959: { } 19959: 19959: template 19959: param_type(_InputIteratorB __bfirst, 19959: _InputIteratorB __bend, 19959: _InputIteratorW __wbegin); 19959: 19959: template 19959: param_type(initializer_list<_RealType> __bl, _Func __fw); 19959: 19959: template 19959: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 19959: _Func __fw); 19959: 19959: 19959: param_type(const param_type&) = default; 19959: param_type& operator=(const param_type&) = default; 19959: 19959: std::vector<_RealType> 19959: intervals() const 19959: { 19959: if (_M_int.empty()) 19959: { 19959: std::vector<_RealType> __tmp(2); 19959: __tmp[1] = _RealType(1); 19959: return __tmp; 19959: } 19959: else 19959: return _M_int; 19959: } 19959: 19959: std::vector 19959: densities() const 19959: { return _M_den.empty() ? std::vector(2, 1.0) : _M_den; } 19959: 19959: friend bool 19959: operator==(const param_type& __p1, const param_type& __p2) 19959: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 19959: 19959: 19959: friend bool 19959: operator!=(const param_type& __p1, const param_type& __p2) 19959: { return !(__p1 == __p2); } 19959: 19959: 19959: private: 19959: void 19959: _M_initialize(); 19959: 19959: std::vector<_RealType> _M_int; 19959: std::vector _M_den; 19959: std::vector _M_cp; 19959: std::vector _M_m; 19959: }; 19959: 19959: piecewise_linear_distribution() 19959: : _M_param() 19959: { } 19959: 19959: template 19959: piecewise_linear_distribution(_InputIteratorB __bfirst, 19959: _InputIteratorB __bend, 19959: _InputIteratorW __wbegin) 19959: : _M_param(__bfirst, __bend, __wbegin) 19959: { } 19959: 19959: template 19959: piecewise_linear_distribution(initializer_list<_RealType> __bl, 19959: _Func __fw) 19959: : _M_param(__bl, __fw) 19959: { } 19959: 19959: template 19959: piecewise_linear_distribution(size_t __nw, 19959: _RealType __xmin, _RealType __xmax, 19959: _Func __fw) 19959: : _M_param(__nw, __xmin, __xmax, __fw) 19959: { } 19959: 19959: explicit 19959: piecewise_linear_distribution(const param_type& __p) 19959: : _M_param(__p) 19959: { } 19959: 19959: 19959: 19959: 19959: void 19959: reset() 19959: { } 19959: 19959: 19959: 19959: 19959: std::vector<_RealType> 19959: intervals() const 19959: { 19959: if (_M_param._M_int.empty()) 19959: { 19959: std::vector<_RealType> __tmp(2); 19959: __tmp[1] = _RealType(1); 19959: return __tmp; 19959: } 19959: else 19959: return _M_param._M_int; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: std::vector 19959: densities() const 19959: { 19959: return _M_param._M_den.empty() 19959: ? std::vector(2, 1.0) : _M_param._M_den; 19959: } 19959: 19959: 19959: 19959: 19959: param_type 19959: param() const 19959: { return _M_param; } 19959: 19959: 19959: 19959: 19959: 19959: void 19959: param(const param_type& __param) 19959: { _M_param = __param; } 19959: 19959: 19959: 19959: 19959: result_type 19959: min() const 19959: { 19959: return _M_param._M_int.empty() 19959: ? result_type(0) : _M_param._M_int.front(); 19959: } 19959: 19959: 19959: 19959: 19959: result_type 19959: max() const 19959: { 19959: return _M_param._M_int.empty() 19959: ? result_type(1) : _M_param._M_int.back(); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { return this->operator()(__urng, _M_param); } 19959: 19959: template 19959: result_type 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { this->__generate(__f, __t, __urng, _M_param); } 19959: 19959: template 19959: void 19959: __generate(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: template 19959: void 19959: __generate(result_type* __f, result_type* __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { this->__generate_impl(__f, __t, __urng, __p); } 19959: 19959: 19959: 19959: 19959: 19959: friend bool 19959: operator==(const piecewise_linear_distribution& __d1, 19959: const piecewise_linear_distribution& __d2) 19959: { return __d1._M_param == __d2._M_param; } 19959: # 6197 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const std::piecewise_linear_distribution<_RealType1>& __x); 19959: # 6213 "/usr/include/c++/13/bits/random.h" 3 19959: template 19959: friend std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: std::piecewise_linear_distribution<_RealType1>& __x); 19959: 19959: private: 19959: template 19959: void 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p); 19959: 19959: param_type _M_param; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const std::piecewise_linear_distribution<_RealType>& __d1, 19959: const std::piecewise_linear_distribution<_RealType>& __d2) 19959: { return !(__d1 == __d2); } 19959: # 6258 "/usr/include/c++/13/bits/random.h" 3 19959: class seed_seq 19959: { 19959: public: 19959: 19959: typedef uint_least32_t result_type; 19959: 19959: 19959: seed_seq() noexcept 19959: : _M_v() 19959: { } 19959: 19959: template>> 19959: seed_seq(std::initializer_list<_IntType> __il); 19959: 19959: template 19959: seed_seq(_InputIterator __begin, _InputIterator __end); 19959: 19959: 19959: template 19959: void 19959: generate(_RandomAccessIterator __begin, _RandomAccessIterator __end); 19959: 19959: 19959: size_t size() const noexcept 19959: { return _M_v.size(); } 19959: 19959: template 19959: void 19959: param(_OutputIterator __dest) const 19959: { std::copy(_M_v.begin(), _M_v.end(), __dest); } 19959: 19959: 19959: seed_seq(const seed_seq&) = delete; 19959: seed_seq& operator=(const seed_seq&) = delete; 19959: 19959: private: 19959: std::vector _M_v; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 52 "/usr/include/c++/13/random" 2 3 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/opt_random.h" 1 3 19959: # 33 "/usr/include/arm-linux-gnueabihf/c++/13/bits/opt_random.h" 3 19959: 19959: # 34 "/usr/include/arm-linux-gnueabihf/c++/13/bits/opt_random.h" 3 19959: # 53 "/usr/include/c++/13/random" 2 3 19959: # 1 "/usr/include/c++/13/bits/random.tcc" 1 3 19959: # 33 "/usr/include/c++/13/bits/random.tcc" 3 19959: # 1 "/usr/include/c++/13/numeric" 1 3 19959: # 58 "/usr/include/c++/13/numeric" 3 19959: 19959: # 59 "/usr/include/c++/13/numeric" 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/stl_numeric.h" 1 3 19959: # 64 "/usr/include/c++/13/bits/stl_numeric.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 85 "/usr/include/c++/13/bits/stl_numeric.h" 3 19959: template 19959: 19959: void 19959: iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: for (; __first != __last; ++__first) 19959: { 19959: *__first = __value; 19959: ++__value; 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: # 131 "/usr/include/c++/13/bits/stl_numeric.h" 3 19959: template 19959: 19959: inline _Tp 19959: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init) 19959: { 19959: 19959: 19959: ; 19959: 19959: for (; __first != __last; ++__first) 19959: __init = __init + *__first; 19959: return __init; 19959: } 19959: # 158 "/usr/include/c++/13/bits/stl_numeric.h" 3 19959: template 19959: 19959: inline _Tp 19959: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init, 19959: _BinaryOperation __binary_op) 19959: { 19959: 19959: 19959: ; 19959: 19959: for (; __first != __last; ++__first) 19959: __init = __binary_op(__init, *__first); 19959: return __init; 19959: } 19959: # 187 "/usr/include/c++/13/bits/stl_numeric.h" 3 19959: template 19959: 19959: inline _Tp 19959: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _Tp __init) 19959: { 19959: 19959: 19959: 19959: ; 19959: 19959: for (; __first1 != __last1; ++__first1, (void)++__first2) 19959: __init = __init + (*__first1 * *__first2); 19959: return __init; 19959: } 19959: # 219 "/usr/include/c++/13/bits/stl_numeric.h" 3 19959: template 19959: 19959: inline _Tp 19959: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _Tp __init, 19959: _BinaryOperation1 __binary_op1, 19959: _BinaryOperation2 __binary_op2) 19959: { 19959: 19959: 19959: 19959: ; 19959: 19959: for (; __first1 != __last1; ++__first1, (void)++__first2) 19959: __init = __binary_op1(__init, 19959: __binary_op2(*__first1, *__first2)); 19959: return __init; 19959: } 19959: # 253 "/usr/include/c++/13/bits/stl_numeric.h" 3 19959: template 19959: 19959: _OutputIterator 19959: partial_sum(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result) 19959: { 19959: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: if (__first == __last) 19959: return __result; 19959: _ValueType __value = *__first; 19959: *__result = __value; 19959: while (++__first != __last) 19959: { 19959: __value = __value + *__first; 19959: *++__result = __value; 19959: } 19959: return ++__result; 19959: } 19959: # 294 "/usr/include/c++/13/bits/stl_numeric.h" 3 19959: template 19959: 19959: _OutputIterator 19959: partial_sum(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, _BinaryOperation __binary_op) 19959: { 19959: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: if (__first == __last) 19959: return __result; 19959: _ValueType __value = *__first; 19959: *__result = __value; 19959: while (++__first != __last) 19959: { 19959: __value = __binary_op(__value, *__first); 19959: *++__result = __value; 19959: } 19959: return ++__result; 19959: } 19959: # 334 "/usr/include/c++/13/bits/stl_numeric.h" 3 19959: template 19959: 19959: _OutputIterator 19959: adjacent_difference(_InputIterator __first, 19959: _InputIterator __last, _OutputIterator __result) 19959: { 19959: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: if (__first == __last) 19959: return __result; 19959: _ValueType __value = *__first; 19959: *__result = __value; 19959: while (++__first != __last) 19959: { 19959: _ValueType __tmp = *__first; 19959: *++__result = __tmp - __value; 19959: __value = std::move(__tmp); 19959: } 19959: return ++__result; 19959: } 19959: # 376 "/usr/include/c++/13/bits/stl_numeric.h" 3 19959: template 19959: 19959: _OutputIterator 19959: adjacent_difference(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, _BinaryOperation __binary_op) 19959: { 19959: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 19959: 19959: 19959: 19959: 19959: 19959: ; 19959: 19959: if (__first == __last) 19959: return __result; 19959: _ValueType __value = *__first; 19959: *__result = __value; 19959: while (++__first != __last) 19959: { 19959: _ValueType __tmp = *__first; 19959: *++__result = __binary_op(__tmp, __value); 19959: __value = std::move(__tmp); 19959: } 19959: return ++__result; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 63 "/usr/include/c++/13/numeric" 2 3 19959: # 90 "/usr/include/c++/13/numeric" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: namespace __detail 19959: { 19959: 19959: 19959: template 19959: constexpr _Res 19959: __abs_r(_Tp __val) 19959: { 19959: static_assert(sizeof(_Res) >= sizeof(_Tp), 19959: "result type must be at least as wide as the input type"); 19959: 19959: if (__val >= 0) 19959: return __val; 19959: 19959: 19959: 19959: 19959: return -static_cast<_Res>(__val); 19959: } 19959: 19959: template void __abs_r(bool) = delete; 19959: 19959: 19959: template 19959: constexpr _Tp 19959: __gcd(_Tp __m, _Tp __n) 19959: { 19959: static_assert(is_unsigned<_Tp>::value, "type must be unsigned"); 19959: 19959: if (__m == 0) 19959: return __n; 19959: if (__n == 0) 19959: return __m; 19959: 19959: const int __i = std::__countr_zero(__m); 19959: __m >>= __i; 19959: const int __j = std::__countr_zero(__n); 19959: __n >>= __j; 19959: const int __k = __i < __j ? __i : __j; 19959: 19959: while (true) 19959: { 19959: if (__m > __n) 19959: { 19959: _Tp __tmp = __m; 19959: __m = __n; 19959: __n = __tmp; 19959: } 19959: 19959: __n -= __m; 19959: 19959: if (__n == 0) 19959: return __m << __k; 19959: 19959: __n >>= std::__countr_zero(__n); 19959: } 19959: } 19959: } 19959: # 162 "/usr/include/c++/13/numeric" 3 19959: template 19959: constexpr common_type_t<_Mn, _Nn> 19959: gcd(_Mn __m, _Nn __n) noexcept 19959: { 19959: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 19959: "std::gcd arguments must be integers"); 19959: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 19959: "std::gcd arguments must not be bool"); 19959: using _Ct = common_type_t<_Mn, _Nn>; 19959: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 19959: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 19959: return __detail::__gcd>(__m2, __n2); 19959: } 19959: 19959: 19959: template 19959: constexpr common_type_t<_Mn, _Nn> 19959: lcm(_Mn __m, _Nn __n) noexcept 19959: { 19959: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 19959: "std::lcm arguments must be integers"); 19959: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 19959: "std::lcm arguments must not be bool"); 19959: using _Ct = common_type_t<_Mn, _Nn>; 19959: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 19959: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 19959: if (__m2 == 0 || __n2 == 0) 19959: return 0; 19959: _Ct __r = __m2 / __detail::__gcd>(__m2, __n2); 19959: 19959: if constexpr (is_signed_v<_Ct>) 19959: if (__is_constant_evaluated()) 19959: return __r * __n2; 19959: 19959: bool __overflow = __builtin_mul_overflow(__r, __n2, &__r); 19959: do { if (std::__is_constant_evaluated() && !bool(!__overflow)) __builtin_unreachable(); } while (false); 19959: return __r; 19959: } 19959: # 284 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: _Tp 19959: reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 19959: _BinaryOperation __binary_op) 19959: { 19959: using __ref = typename iterator_traits<_InputIterator>::reference; 19959: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, __ref>); 19959: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, _Tp&>); 19959: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, _Tp&>); 19959: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, __ref>); 19959: if constexpr (__is_random_access_iter<_InputIterator>::value) 19959: { 19959: while ((__last - __first) >= 4) 19959: { 19959: _Tp __v1 = __binary_op(__first[0], __first[1]); 19959: _Tp __v2 = __binary_op(__first[2], __first[3]); 19959: _Tp __v3 = __binary_op(__v1, __v2); 19959: __init = __binary_op(__init, __v3); 19959: __first += 4; 19959: } 19959: } 19959: for (; __first != __last; ++__first) 19959: __init = __binary_op(__init, *__first); 19959: return __init; 19959: } 19959: # 322 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: inline _Tp 19959: reduce(_InputIterator __first, _InputIterator __last, _Tp __init) 19959: { return std::reduce(__first, __last, std::move(__init), plus<>()); } 19959: # 339 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: inline typename iterator_traits<_InputIterator>::value_type 19959: reduce(_InputIterator __first, _InputIterator __last) 19959: { 19959: using value_type = typename iterator_traits<_InputIterator>::value_type; 19959: return std::reduce(__first, __last, value_type{}, plus<>()); 19959: } 19959: # 366 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: _Tp 19959: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _Tp __init, 19959: _BinaryOperation1 __binary_op1, 19959: _BinaryOperation2 __binary_op2) 19959: { 19959: if constexpr (__and_v<__is_random_access_iter<_InputIterator1>, 19959: __is_random_access_iter<_InputIterator2>>) 19959: { 19959: while ((__last1 - __first1) >= 4) 19959: { 19959: _Tp __v1 = __binary_op1(__binary_op2(__first1[0], __first2[0]), 19959: __binary_op2(__first1[1], __first2[1])); 19959: _Tp __v2 = __binary_op1(__binary_op2(__first1[2], __first2[2]), 19959: __binary_op2(__first1[3], __first2[3])); 19959: _Tp __v3 = __binary_op1(__v1, __v2); 19959: __init = __binary_op1(__init, __v3); 19959: __first1 += 4; 19959: __first2 += 4; 19959: } 19959: } 19959: for (; __first1 != __last1; ++__first1, (void) ++__first2) 19959: __init = __binary_op1(__init, __binary_op2(*__first1, *__first2)); 19959: return __init; 19959: } 19959: # 410 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: inline _Tp 19959: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 19959: _InputIterator2 __first2, _Tp __init) 19959: { 19959: return std::transform_reduce(__first1, __last1, __first2, 19959: std::move(__init), 19959: plus<>(), multiplies<>()); 19959: } 19959: # 435 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: _Tp 19959: transform_reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 19959: _BinaryOperation __binary_op, _UnaryOperation __unary_op) 19959: { 19959: if constexpr (__is_random_access_iter<_InputIterator>::value) 19959: { 19959: while ((__last - __first) >= 4) 19959: { 19959: _Tp __v1 = __binary_op(__unary_op(__first[0]), 19959: __unary_op(__first[1])); 19959: _Tp __v2 = __binary_op(__unary_op(__first[2]), 19959: __unary_op(__first[3])); 19959: _Tp __v3 = __binary_op(__v1, __v2); 19959: __init = __binary_op(__init, __v3); 19959: __first += 4; 19959: } 19959: } 19959: for (; __first != __last; ++__first) 19959: __init = __binary_op(__init, __unary_op(*__first)); 19959: return __init; 19959: } 19959: # 478 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: _OutputIterator 19959: exclusive_scan(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, _Tp __init, 19959: _BinaryOperation __binary_op) 19959: { 19959: while (__first != __last) 19959: { 19959: auto __v = __init; 19959: __init = __binary_op(__init, *__first); 19959: ++__first; 19959: *__result++ = std::move(__v); 19959: } 19959: return __result; 19959: } 19959: # 513 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: inline _OutputIterator 19959: exclusive_scan(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, _Tp __init) 19959: { 19959: return std::exclusive_scan(__first, __last, __result, std::move(__init), 19959: plus<>()); 19959: } 19959: # 541 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: _OutputIterator 19959: inclusive_scan(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, _BinaryOperation __binary_op, 19959: _Tp __init) 19959: { 19959: for (; __first != __last; ++__first) 19959: *__result++ = __init = __binary_op(__init, *__first); 19959: return __result; 19959: } 19959: # 570 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: _OutputIterator 19959: inclusive_scan(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, _BinaryOperation __binary_op) 19959: { 19959: if (__first != __last) 19959: { 19959: auto __init = *__first; 19959: *__result++ = __init; 19959: ++__first; 19959: if (__first != __last) 19959: __result = std::inclusive_scan(__first, __last, __result, 19959: __binary_op, std::move(__init)); 19959: } 19959: return __result; 19959: } 19959: # 604 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: inline _OutputIterator 19959: inclusive_scan(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result) 19959: { return std::inclusive_scan(__first, __last, __result, plus<>()); } 19959: # 631 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: _OutputIterator 19959: transform_exclusive_scan(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, _Tp __init, 19959: _BinaryOperation __binary_op, 19959: _UnaryOperation __unary_op) 19959: { 19959: while (__first != __last) 19959: { 19959: auto __v = __init; 19959: __init = __binary_op(__init, __unary_op(*__first)); 19959: ++__first; 19959: *__result++ = std::move(__v); 19959: } 19959: return __result; 19959: } 19959: # 670 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: _OutputIterator 19959: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, 19959: _BinaryOperation __binary_op, 19959: _UnaryOperation __unary_op, 19959: _Tp __init) 19959: { 19959: for (; __first != __last; ++__first) 19959: *__result++ = __init = __binary_op(__init, __unary_op(*__first)); 19959: return __result; 19959: } 19959: # 704 "/usr/include/c++/13/numeric" 3 19959: template 19959: 19959: _OutputIterator 19959: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, 19959: _BinaryOperation __binary_op, 19959: _UnaryOperation __unary_op) 19959: { 19959: if (__first != __last) 19959: { 19959: auto __init = __unary_op(*__first); 19959: *__result++ = __init; 19959: ++__first; 19959: if (__first != __last) 19959: __result = std::transform_inclusive_scan(__first, __last, __result, 19959: __binary_op, __unary_op, 19959: std::move(__init)); 19959: } 19959: return __result; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 739 "/usr/include/c++/13/numeric" 3 19959: # 1 "/usr/include/c++/13/pstl/glue_numeric_defs.h" 1 3 19959: # 15 "/usr/include/c++/13/pstl/glue_numeric_defs.h" 3 19959: namespace std 19959: { 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 19959: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 19959: _BinaryOperation __binary_op); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 19959: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 19959: typename iterator_traits<_ForwardIterator>::value_type> 19959: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 19959: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _Tp __init); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 19959: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 19959: _ForwardIterator2 __first2, _Tp __init, _BinaryOperation1 __binary_op1, 19959: _BinaryOperation2 __binary_op2); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 19959: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 19959: _BinaryOperation __binary_op, _UnaryOperation __unary_op); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __result, _Tp __init); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __result); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __result, _BinaryOperation __binary_op); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __result, _BinaryOperation __binary_op, _Tp __init); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: transform_exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op, 19959: _UnaryOperation __unary_op); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op, 19959: _Tp __init); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op); 19959: 19959: 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __d_first, _BinaryOperation __op); 19959: 19959: template 19959: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 19959: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 19959: _ForwardIterator2 __d_first); 19959: 19959: } 19959: # 740 "/usr/include/c++/13/numeric" 2 3 19959: # 34 "/usr/include/c++/13/bits/random.tcc" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: namespace __detail 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: _Tp 19959: _Mod<_Tp, __m, __a, __c, false, true>:: 19959: __calc(_Tp __x) 19959: { 19959: if (__a == 1) 19959: __x %= __m; 19959: else 19959: { 19959: static const _Tp __q = __m / __a; 19959: static const _Tp __r = __m % __a; 19959: 19959: _Tp __t1 = __a * (__x % __q); 19959: _Tp __t2 = __r * (__x / __q); 19959: if (__t1 >= __t2) 19959: __x = __t1 - __t2; 19959: else 19959: __x = __m - __t2 + __t1; 19959: } 19959: 19959: if (__c != 0) 19959: { 19959: const _Tp __d = __m - __x; 19959: if (__d > __c) 19959: __x += __c; 19959: else 19959: __x = __c - __d; 19959: } 19959: return __x; 19959: } 19959: 19959: template 19959: _OutputIterator 19959: __normalize(_InputIterator __first, _InputIterator __last, 19959: _OutputIterator __result, const _Tp& __factor) 19959: { 19959: for (; __first != __last; ++__first, ++__result) 19959: *__result = *__first / __factor; 19959: return __result; 19959: } 19959: 19959: } 19959: # 116 "/usr/include/c++/13/bits/random.tcc" 3 19959: template 19959: void 19959: linear_congruential_engine<_UIntType, __a, __c, __m>:: 19959: seed(result_type __s) 19959: { 19959: if ((__detail::__mod<_UIntType, __m>(__c) == 0) 19959: && (__detail::__mod<_UIntType, __m>(__s) == 0)) 19959: _M_x = 1; 19959: else 19959: _M_x = __detail::__mod<_UIntType, __m>(__s); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: template 19959: auto 19959: linear_congruential_engine<_UIntType, __a, __c, __m>:: 19959: seed(_Sseq& __q) 19959: -> _If_seed_seq<_Sseq> 19959: { 19959: const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits 19959: : std::__lg(__m); 19959: const _UIntType __k = (__k0 + 31) / 32; 19959: uint_least32_t __arr[__k + 3]; 19959: __q.generate(__arr + 0, __arr + __k + 3); 19959: _UIntType __factor = 1u; 19959: _UIntType __sum = 0u; 19959: for (size_t __j = 0; __j < __k; ++__j) 19959: { 19959: __sum += __arr[__j + 3] * __factor; 19959: __factor *= __detail::_Shift<_UIntType, 32>::__value; 19959: } 19959: seed(__sum); 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const linear_congruential_engine<_UIntType, 19959: __a, __c, __m>& __lcr) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 19959: __os.fill(__os.widen(' ')); 19959: 19959: __os << __lcr._M_x; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: linear_congruential_engine<_UIntType, __a, __c, __m>& __lcr) 19959: { 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec); 19959: 19959: __is >> __lcr._M_x; 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: # 320 "/usr/include/c++/13/bits/random.tcc" 3 19959: template 19959: void 19959: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 19959: __s, __b, __t, __c, __l, __f>:: 19959: seed(result_type __sd) 19959: { 19959: _M_x[0] = __detail::__mod<_UIntType, 19959: __detail::_Shift<_UIntType, __w>::__value>(__sd); 19959: 19959: for (size_t __i = 1; __i < state_size; ++__i) 19959: { 19959: _UIntType __x = _M_x[__i - 1]; 19959: __x ^= __x >> (__w - 2); 19959: __x *= __f; 19959: __x += __detail::__mod<_UIntType, __n>(__i); 19959: _M_x[__i] = __detail::__mod<_UIntType, 19959: __detail::_Shift<_UIntType, __w>::__value>(__x); 19959: } 19959: _M_p = state_size; 19959: } 19959: 19959: template 19959: template 19959: auto 19959: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 19959: __s, __b, __t, __c, __l, __f>:: 19959: seed(_Sseq& __q) 19959: -> _If_seed_seq<_Sseq> 19959: { 19959: const _UIntType __upper_mask = (~_UIntType()) << __r; 19959: const size_t __k = (__w + 31) / 32; 19959: uint_least32_t __arr[__n * __k]; 19959: __q.generate(__arr + 0, __arr + __n * __k); 19959: 19959: bool __zero = true; 19959: for (size_t __i = 0; __i < state_size; ++__i) 19959: { 19959: _UIntType __factor = 1u; 19959: _UIntType __sum = 0u; 19959: for (size_t __j = 0; __j < __k; ++__j) 19959: { 19959: __sum += __arr[__k * __i + __j] * __factor; 19959: __factor *= __detail::_Shift<_UIntType, 32>::__value; 19959: } 19959: _M_x[__i] = __detail::__mod<_UIntType, 19959: __detail::_Shift<_UIntType, __w>::__value>(__sum); 19959: 19959: if (__zero) 19959: { 19959: if (__i == 0) 19959: { 19959: if ((_M_x[0] & __upper_mask) != 0u) 19959: __zero = false; 19959: } 19959: else if (_M_x[__i] != 0u) 19959: __zero = false; 19959: } 19959: } 19959: if (__zero) 19959: _M_x[0] = __detail::_Shift<_UIntType, __w - 1>::__value; 19959: _M_p = state_size; 19959: } 19959: 19959: template 19959: void 19959: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 19959: __s, __b, __t, __c, __l, __f>:: 19959: _M_gen_rand(void) 19959: { 19959: const _UIntType __upper_mask = (~_UIntType()) << __r; 19959: const _UIntType __lower_mask = ~__upper_mask; 19959: 19959: for (size_t __k = 0; __k < (__n - __m); ++__k) 19959: { 19959: _UIntType __y = ((_M_x[__k] & __upper_mask) 19959: | (_M_x[__k + 1] & __lower_mask)); 19959: _M_x[__k] = (_M_x[__k + __m] ^ (__y >> 1) 19959: ^ ((__y & 0x01) ? __a : 0)); 19959: } 19959: 19959: for (size_t __k = (__n - __m); __k < (__n - 1); ++__k) 19959: { 19959: _UIntType __y = ((_M_x[__k] & __upper_mask) 19959: | (_M_x[__k + 1] & __lower_mask)); 19959: _M_x[__k] = (_M_x[__k + (__m - __n)] ^ (__y >> 1) 19959: ^ ((__y & 0x01) ? __a : 0)); 19959: } 19959: 19959: _UIntType __y = ((_M_x[__n - 1] & __upper_mask) 19959: | (_M_x[0] & __lower_mask)); 19959: _M_x[__n - 1] = (_M_x[__m - 1] ^ (__y >> 1) 19959: ^ ((__y & 0x01) ? __a : 0)); 19959: _M_p = 0; 19959: } 19959: 19959: template 19959: void 19959: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 19959: __s, __b, __t, __c, __l, __f>:: 19959: discard(unsigned long long __z) 19959: { 19959: while (__z > state_size - _M_p) 19959: { 19959: __z -= state_size - _M_p; 19959: _M_gen_rand(); 19959: } 19959: _M_p += __z; 19959: } 19959: 19959: template 19959: typename 19959: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 19959: __s, __b, __t, __c, __l, __f>::result_type 19959: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 19959: __s, __b, __t, __c, __l, __f>:: 19959: operator()() 19959: { 19959: 19959: if (_M_p >= state_size) 19959: _M_gen_rand(); 19959: 19959: 19959: result_type __z = _M_x[_M_p++]; 19959: __z ^= (__z >> __u) & __d; 19959: __z ^= (__z << __s) & __b; 19959: __z ^= (__z << __t) & __c; 19959: __z ^= (__z >> __l); 19959: 19959: return __z; 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const mersenne_twister_engine<_UIntType, __w, __n, __m, 19959: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 19959: __os.fill(__space); 19959: 19959: for (size_t __i = 0; __i < __n; ++__i) 19959: __os << __x._M_x[__i] << __space; 19959: __os << __x._M_p; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: mersenne_twister_engine<_UIntType, __w, __n, __m, 19959: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 19959: { 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: for (size_t __i = 0; __i < __n; ++__i) 19959: __is >> __x._M_x[__i]; 19959: __is >> __x._M_p; 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: # 539 "/usr/include/c++/13/bits/random.tcc" 3 19959: template 19959: void 19959: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 19959: seed(result_type __value) 19959: { 19959: std::linear_congruential_engine 19959: __lcg(__value == 0u ? default_seed : __value); 19959: 19959: const size_t __n = (__w + 31) / 32; 19959: 19959: for (size_t __i = 0; __i < long_lag; ++__i) 19959: { 19959: _UIntType __sum = 0u; 19959: _UIntType __factor = 1u; 19959: for (size_t __j = 0; __j < __n; ++__j) 19959: { 19959: __sum += __detail::__mod::__value> 19959: (__lcg()) * __factor; 19959: __factor *= __detail::_Shift<_UIntType, 32>::__value; 19959: } 19959: _M_x[__i] = __detail::__mod<_UIntType, 19959: __detail::_Shift<_UIntType, __w>::__value>(__sum); 19959: } 19959: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 19959: _M_p = 0; 19959: } 19959: 19959: template 19959: template 19959: auto 19959: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 19959: seed(_Sseq& __q) 19959: -> _If_seed_seq<_Sseq> 19959: { 19959: const size_t __k = (__w + 31) / 32; 19959: uint_least32_t __arr[__r * __k]; 19959: __q.generate(__arr + 0, __arr + __r * __k); 19959: 19959: for (size_t __i = 0; __i < long_lag; ++__i) 19959: { 19959: _UIntType __sum = 0u; 19959: _UIntType __factor = 1u; 19959: for (size_t __j = 0; __j < __k; ++__j) 19959: { 19959: __sum += __arr[__k * __i + __j] * __factor; 19959: __factor *= __detail::_Shift<_UIntType, 32>::__value; 19959: } 19959: _M_x[__i] = __detail::__mod<_UIntType, 19959: __detail::_Shift<_UIntType, __w>::__value>(__sum); 19959: } 19959: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 19959: _M_p = 0; 19959: } 19959: 19959: template 19959: typename subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 19959: result_type 19959: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 19959: operator()() 19959: { 19959: 19959: long __ps = _M_p - short_lag; 19959: if (__ps < 0) 19959: __ps += long_lag; 19959: 19959: 19959: 19959: 19959: _UIntType __xi; 19959: if (_M_x[__ps] >= _M_x[_M_p] + _M_carry) 19959: { 19959: __xi = _M_x[__ps] - _M_x[_M_p] - _M_carry; 19959: _M_carry = 0; 19959: } 19959: else 19959: { 19959: __xi = (__detail::_Shift<_UIntType, __w>::__value 19959: - _M_x[_M_p] - _M_carry + _M_x[__ps]); 19959: _M_carry = 1; 19959: } 19959: _M_x[_M_p] = __xi; 19959: 19959: 19959: if (++_M_p >= long_lag) 19959: _M_p = 0; 19959: 19959: return __xi; 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const subtract_with_carry_engine<_UIntType, 19959: __w, __s, __r>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 19959: __os.fill(__space); 19959: 19959: for (size_t __i = 0; __i < __r; ++__i) 19959: __os << __x._M_x[__i] << __space; 19959: __os << __x._M_carry << __space << __x._M_p; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: subtract_with_carry_engine<_UIntType, __w, __s, __r>& __x) 19959: { 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: for (size_t __i = 0; __i < __r; ++__i) 19959: __is >> __x._M_x[__i]; 19959: __is >> __x._M_carry; 19959: __is >> __x._M_p; 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: # 683 "/usr/include/c++/13/bits/random.tcc" 3 19959: template 19959: typename discard_block_engine<_RandomNumberEngine, 19959: __p, __r>::result_type 19959: discard_block_engine<_RandomNumberEngine, __p, __r>:: 19959: operator()() 19959: { 19959: if (_M_n >= used_block) 19959: { 19959: _M_b.discard(block_size - _M_n); 19959: _M_n = 0; 19959: } 19959: ++_M_n; 19959: return _M_b(); 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const discard_block_engine<_RandomNumberEngine, 19959: __p, __r>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 19959: __os.fill(__space); 19959: 19959: __os << __x.base() << __space << __x._M_n; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: discard_block_engine<_RandomNumberEngine, __p, __r>& __x) 19959: { 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: __is >> __x._M_b >> __x._M_n; 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: typename independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 19959: result_type 19959: independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 19959: operator()() 19959: { 19959: typedef typename _RandomNumberEngine::result_type _Eresult_type; 19959: const _Eresult_type __r 19959: = (_M_b.max() - _M_b.min() < std::numeric_limits<_Eresult_type>::max() 19959: ? _M_b.max() - _M_b.min() + 1 : 0); 19959: const unsigned __edig = std::numeric_limits<_Eresult_type>::digits; 19959: const unsigned __m = __r ? std::__lg(__r) : __edig; 19959: 19959: typedef typename std::common_type<_Eresult_type, result_type>::type 19959: __ctype; 19959: const unsigned __cdig = std::numeric_limits<__ctype>::digits; 19959: 19959: unsigned __n, __n0; 19959: __ctype __s0, __s1, __y0, __y1; 19959: 19959: for (size_t __i = 0; __i < 2; ++__i) 19959: { 19959: __n = (__w + __m - 1) / __m + __i; 19959: __n0 = __n - __w % __n; 19959: const unsigned __w0 = __w / __n; 19959: 19959: __s0 = 0; 19959: __s1 = 0; 19959: if (__w0 < __cdig) 19959: { 19959: __s0 = __ctype(1) << __w0; 19959: __s1 = __s0 << 1; 19959: } 19959: 19959: __y0 = 0; 19959: __y1 = 0; 19959: if (__r) 19959: { 19959: __y0 = __s0 * (__r / __s0); 19959: if (__s1) 19959: __y1 = __s1 * (__r / __s1); 19959: 19959: if (__r - __y0 <= __y0 / __n) 19959: break; 19959: } 19959: else 19959: break; 19959: } 19959: 19959: result_type __sum = 0; 19959: for (size_t __k = 0; __k < __n0; ++__k) 19959: { 19959: __ctype __u; 19959: do 19959: __u = _M_b() - _M_b.min(); 19959: while (__y0 && __u >= __y0); 19959: __sum = __s0 * __sum + (__s0 ? __u % __s0 : __u); 19959: } 19959: for (size_t __k = __n0; __k < __n; ++__k) 19959: { 19959: __ctype __u; 19959: do 19959: __u = _M_b() - _M_b.min(); 19959: while (__y1 && __u >= __y1); 19959: __sum = __s1 * __sum + (__s1 ? __u % __s1 : __u); 19959: } 19959: return __sum; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace __detail 19959: { 19959: 19959: template 19959: constexpr bool 19959: __representable_as_double(_Tp __x) noexcept 19959: { 19959: static_assert(numeric_limits<_Tp>::is_integer, ""); 19959: static_assert(!numeric_limits<_Tp>::is_signed, ""); 19959: 19959: return (__x <= (1ull << 53)) 19959: 19959: || (!(__x & 1) && __detail::__representable_as_double(__x >> 1)); 19959: } 19959: 19959: 19959: template 19959: constexpr bool 19959: __p1_representable_as_double(_Tp __x) noexcept 19959: { 19959: static_assert(numeric_limits<_Tp>::is_integer, ""); 19959: static_assert(!numeric_limits<_Tp>::is_signed, ""); 19959: return numeric_limits<_Tp>::digits < 53 19959: || (bool(__x + 1u) 19959: && __detail::__representable_as_double(__x + 1u)); 19959: } 19959: } 19959: 19959: template 19959: typename shuffle_order_engine<_RandomNumberEngine, __k>::result_type 19959: shuffle_order_engine<_RandomNumberEngine, __k>:: 19959: operator()() 19959: { 19959: constexpr result_type __range = max() - min(); 19959: size_t __j = __k; 19959: const result_type __y = _M_y - min(); 19959: 19959: if constexpr (__detail::__p1_representable_as_double(__range)) 19959: __j *= __y / (__range + 1.0); 19959: else 19959: __j *= __y / (__range + 1.0L); 19959: _M_y = _M_v[__j]; 19959: _M_v[__j] = _M_b(); 19959: 19959: return _M_y; 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const shuffle_order_engine<_RandomNumberEngine, __k>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 19959: __os.fill(__space); 19959: 19959: __os << __x.base(); 19959: for (size_t __i = 0; __i < __k; ++__i) 19959: __os << __space << __x._M_v[__i]; 19959: __os << __space << __x._M_y; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: shuffle_order_engine<_RandomNumberEngine, __k>& __x) 19959: { 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: __is >> __x._M_b; 19959: for (size_t __i = 0; __i < __k; ++__i) 19959: __is >> __x._M_v[__i]; 19959: __is >> __x._M_y; 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const uniform_int_distribution<_IntType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: 19959: __os << __x.a() << __space << __x.b(); 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: uniform_int_distribution<_IntType>& __x) 19959: { 19959: using param_type 19959: = typename uniform_int_distribution<_IntType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: _IntType __a, __b; 19959: if (__is >> __a >> __b) 19959: __x.param(param_type(__a, __b)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: template 19959: void 19959: uniform_real_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: auto __range = __p.b() - __p.a(); 19959: while (__f != __t) 19959: *__f++ = __aurng() * __range + __p.a(); 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const uniform_real_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits<_RealType>::max_digits10); 19959: 19959: __os << __x.a() << __space << __x.b(); 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: uniform_real_distribution<_RealType>& __x) 19959: { 19959: using param_type 19959: = typename uniform_real_distribution<_RealType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::skipws); 19959: 19959: _RealType __a, __b; 19959: if (__is >> __a >> __b) 19959: __x.param(param_type(__a, __b)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: void 19959: std::bernoulli_distribution:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 19959: __aurng(__urng); 19959: auto __limit = __p.p() * (__aurng.max() - __aurng.min()); 19959: 19959: while (__f != __t) 19959: *__f++ = (__aurng() - __aurng.min()) < __limit; 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const bernoulli_distribution& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__os.widen(' ')); 19959: __os.precision(std::numeric_limits::max_digits10); 19959: 19959: __os << __x.p(); 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: 19959: template 19959: template 19959: typename geometric_distribution<_IntType>::result_type 19959: geometric_distribution<_IntType>:: 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: 19959: 19959: const double __naf = 19959: (1 - std::numeric_limits::epsilon()) / 2; 19959: 19959: const double __thr = 19959: std::numeric_limits<_IntType>::max() + __naf; 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 19959: __aurng(__urng); 19959: 19959: double __cand; 19959: do 19959: __cand = std::floor(std::log(1.0 - __aurng()) / __param._M_log_1_p); 19959: while (__cand >= __thr); 19959: 19959: return result_type(__cand + __naf); 19959: } 19959: 19959: template 19959: template 19959: void 19959: geometric_distribution<_IntType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: 19959: 19959: 19959: const double __naf = 19959: (1 - std::numeric_limits::epsilon()) / 2; 19959: 19959: const double __thr = 19959: std::numeric_limits<_IntType>::max() + __naf; 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 19959: __aurng(__urng); 19959: 19959: while (__f != __t) 19959: { 19959: double __cand; 19959: do 19959: __cand = std::floor(std::log(1.0 - __aurng()) 19959: / __param._M_log_1_p); 19959: while (__cand >= __thr); 19959: 19959: *__f++ = __cand + __naf; 19959: } 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const geometric_distribution<_IntType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__os.widen(' ')); 19959: __os.precision(std::numeric_limits::max_digits10); 19959: 19959: __os << __x.p(); 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: geometric_distribution<_IntType>& __x) 19959: { 19959: using param_type = typename geometric_distribution<_IntType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::skipws); 19959: 19959: double __p; 19959: if (__is >> __p) 19959: __x.param(param_type(__p)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: template 19959: typename negative_binomial_distribution<_IntType>::result_type 19959: negative_binomial_distribution<_IntType>:: 19959: operator()(_UniformRandomNumberGenerator& __urng) 19959: { 19959: const double __y = _M_gd(__urng); 19959: 19959: 19959: std::poisson_distribution __poisson(__y); 19959: return __poisson(__urng); 19959: } 19959: 19959: template 19959: template 19959: typename negative_binomial_distribution<_IntType>::result_type 19959: negative_binomial_distribution<_IntType>:: 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: typedef typename std::gamma_distribution::param_type 19959: param_type; 19959: 19959: const double __y = 19959: _M_gd(__urng, param_type(__p.k(), (1.0 - __p.p()) / __p.p())); 19959: 19959: std::poisson_distribution __poisson(__y); 19959: return __poisson(__urng); 19959: } 19959: 19959: template 19959: template 19959: void 19959: negative_binomial_distribution<_IntType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { 19959: 19959: while (__f != __t) 19959: { 19959: const double __y = _M_gd(__urng); 19959: 19959: 19959: std::poisson_distribution __poisson(__y); 19959: *__f++ = __poisson(__urng); 19959: } 19959: } 19959: 19959: template 19959: template 19959: void 19959: negative_binomial_distribution<_IntType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: 19959: typename std::gamma_distribution::param_type 19959: __p2(__p.k(), (1.0 - __p.p()) / __p.p()); 19959: 19959: while (__f != __t) 19959: { 19959: const double __y = _M_gd(__urng, __p2); 19959: 19959: std::poisson_distribution __poisson(__y); 19959: *__f++ = __poisson(__urng); 19959: } 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const negative_binomial_distribution<_IntType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__os.widen(' ')); 19959: __os.precision(std::numeric_limits::max_digits10); 19959: 19959: __os << __x.k() << __space << __x.p() 19959: << __space << __x._M_gd; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: negative_binomial_distribution<_IntType>& __x) 19959: { 19959: using param_type 19959: = typename negative_binomial_distribution<_IntType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::skipws); 19959: 19959: _IntType __k; 19959: double __p; 19959: if (__is >> __k >> __p >> __x._M_gd) 19959: __x.param(param_type(__k, __p)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: void 19959: poisson_distribution<_IntType>::param_type:: 19959: _M_initialize() 19959: { 19959: 19959: if (_M_mean >= 12) 19959: { 19959: const double __m = std::floor(_M_mean); 19959: _M_lm_thr = std::log(_M_mean); 19959: _M_lfm = std::lgamma(__m + 1); 19959: _M_sm = std::sqrt(__m); 19959: 19959: const double __pi_4 = 0.7853981633974483096156608458198757L; 19959: const double __dx = std::sqrt(2 * __m * std::log(32 * __m 19959: / __pi_4)); 19959: _M_d = std::round(std::max(6.0, std::min(__m, __dx))); 19959: const double __cx = 2 * __m + _M_d; 19959: _M_scx = std::sqrt(__cx / 2); 19959: _M_1cx = 1 / __cx; 19959: 19959: _M_c2b = std::sqrt(__pi_4 * __cx) * std::exp(_M_1cx); 19959: _M_cb = 2 * __cx * std::exp(-_M_d * _M_1cx * (1 + _M_d / 2)) 19959: / _M_d; 19959: } 19959: else 19959: 19959: _M_lm_thr = std::exp(-_M_mean); 19959: } 19959: # 1305 "/usr/include/c++/13/bits/random.tcc" 3 19959: template 19959: template 19959: typename poisson_distribution<_IntType>::result_type 19959: poisson_distribution<_IntType>:: 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 19959: __aurng(__urng); 19959: 19959: if (__param.mean() >= 12) 19959: { 19959: double __x; 19959: 19959: 19959: const double __naf = 19959: (1 - std::numeric_limits::epsilon()) / 2; 19959: const double __thr = 19959: std::numeric_limits<_IntType>::max() + __naf; 19959: 19959: const double __m = std::floor(__param.mean()); 19959: 19959: const double __spi_2 = 1.2533141373155002512078826424055226L; 19959: const double __c1 = __param._M_sm * __spi_2; 19959: const double __c2 = __param._M_c2b + __c1; 19959: const double __c3 = __c2 + 1; 19959: const double __c4 = __c3 + 1; 19959: 19959: const double __178 = 0.0128205128205128205128205128205128L; 19959: 19959: const double __e178 = 1.0129030479320018583185514777512983L; 19959: const double __c5 = __c4 + __e178; 19959: const double __c = __param._M_cb + __c5; 19959: const double __2cx = 2 * (2 * __m + __param._M_d); 19959: 19959: bool __reject = true; 19959: do 19959: { 19959: const double __u = __c * __aurng(); 19959: const double __e = -std::log(1.0 - __aurng()); 19959: 19959: double __w = 0.0; 19959: 19959: if (__u <= __c1) 19959: { 19959: const double __n = _M_nd(__urng); 19959: const double __y = -std::abs(__n) * __param._M_sm - 1; 19959: __x = std::floor(__y); 19959: __w = -__n * __n / 2; 19959: if (__x < -__m) 19959: continue; 19959: } 19959: else if (__u <= __c2) 19959: { 19959: const double __n = _M_nd(__urng); 19959: const double __y = 1 + std::abs(__n) * __param._M_scx; 19959: __x = std::ceil(__y); 19959: __w = __y * (2 - __y) * __param._M_1cx; 19959: if (__x > __param._M_d) 19959: continue; 19959: } 19959: else if (__u <= __c3) 19959: 19959: 19959: __x = -1; 19959: else if (__u <= __c4) 19959: __x = 0; 19959: else if (__u <= __c5) 19959: { 19959: __x = 1; 19959: 19959: __w = __178; 19959: } 19959: else 19959: { 19959: const double __v = -std::log(1.0 - __aurng()); 19959: const double __y = __param._M_d 19959: + __v * __2cx / __param._M_d; 19959: __x = std::ceil(__y); 19959: __w = -__param._M_d * __param._M_1cx * (1 + __y / 2); 19959: } 19959: 19959: __reject = (__w - __e - __x * __param._M_lm_thr 19959: > __param._M_lfm - std::lgamma(__x + __m + 1)); 19959: 19959: __reject |= __x + __m >= __thr; 19959: 19959: } while (__reject); 19959: 19959: return result_type(__x + __m + __naf); 19959: } 19959: else 19959: 19959: { 19959: _IntType __x = 0; 19959: double __prod = 1.0; 19959: 19959: do 19959: { 19959: __prod *= __aurng(); 19959: __x += 1; 19959: } 19959: while (__prod > __param._M_lm_thr); 19959: 19959: return __x - 1; 19959: } 19959: } 19959: 19959: template 19959: template 19959: void 19959: poisson_distribution<_IntType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: 19959: 19959: while (__f != __t) 19959: *__f++ = this->operator()(__urng, __param); 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const poisson_distribution<_IntType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits::max_digits10); 19959: 19959: __os << __x.mean() << __space << __x._M_nd; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: poisson_distribution<_IntType>& __x) 19959: { 19959: using param_type = typename poisson_distribution<_IntType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::skipws); 19959: 19959: double __mean; 19959: if (__is >> __mean >> __x._M_nd) 19959: __x.param(param_type(__mean)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: void 19959: binomial_distribution<_IntType>::param_type:: 19959: _M_initialize() 19959: { 19959: const double __p12 = _M_p <= 0.5 ? _M_p : 1.0 - _M_p; 19959: 19959: _M_easy = true; 19959: 19959: 19959: if (_M_t * __p12 >= 8) 19959: { 19959: _M_easy = false; 19959: const double __np = std::floor(_M_t * __p12); 19959: const double __pa = __np / _M_t; 19959: const double __1p = 1 - __pa; 19959: 19959: const double __pi_4 = 0.7853981633974483096156608458198757L; 19959: const double __d1x = 19959: std::sqrt(__np * __1p * std::log(32 * __np 19959: / (81 * __pi_4 * __1p))); 19959: _M_d1 = std::round(std::max(1.0, __d1x)); 19959: const double __d2x = 19959: std::sqrt(__np * __1p * std::log(32 * _M_t * __1p 19959: / (__pi_4 * __pa))); 19959: _M_d2 = std::round(std::max(1.0, __d2x)); 19959: 19959: 19959: const double __spi_2 = 1.2533141373155002512078826424055226L; 19959: _M_s1 = std::sqrt(__np * __1p) * (1 + _M_d1 / (4 * __np)); 19959: _M_s2 = std::sqrt(__np * __1p) * (1 + _M_d2 / (4 * _M_t * __1p)); 19959: _M_c = 2 * _M_d1 / __np; 19959: _M_a1 = std::exp(_M_c) * _M_s1 * __spi_2; 19959: const double __a12 = _M_a1 + _M_s2 * __spi_2; 19959: const double __s1s = _M_s1 * _M_s1; 19959: _M_a123 = __a12 + (std::exp(_M_d1 / (_M_t * __1p)) 19959: * 2 * __s1s / _M_d1 19959: * std::exp(-_M_d1 * _M_d1 / (2 * __s1s))); 19959: const double __s2s = _M_s2 * _M_s2; 19959: _M_s = (_M_a123 + 2 * __s2s / _M_d2 19959: * std::exp(-_M_d2 * _M_d2 / (2 * __s2s))); 19959: _M_lf = (std::lgamma(__np + 1) 19959: + std::lgamma(_M_t - __np + 1)); 19959: _M_lp1p = std::log(__pa / __1p); 19959: 19959: _M_q = -std::log(1 - (__p12 - __pa) / __1p); 19959: } 19959: else 19959: 19959: _M_q = -std::log(1 - __p12); 19959: } 19959: 19959: template 19959: template 19959: typename binomial_distribution<_IntType>::result_type 19959: binomial_distribution<_IntType>:: 19959: _M_waiting(_UniformRandomNumberGenerator& __urng, 19959: _IntType __t, double __q) 19959: { 19959: _IntType __x = 0; 19959: double __sum = 0.0; 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 19959: __aurng(__urng); 19959: 19959: do 19959: { 19959: if (__t == __x) 19959: return __x; 19959: const double __e = -std::log(1.0 - __aurng()); 19959: __sum += __e / (__t - __x); 19959: __x += 1; 19959: } 19959: while (__sum <= __q); 19959: 19959: return __x - 1; 19959: } 19959: # 1560 "/usr/include/c++/13/bits/random.tcc" 3 19959: template 19959: template 19959: typename binomial_distribution<_IntType>::result_type 19959: binomial_distribution<_IntType>:: 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: result_type __ret; 19959: const _IntType __t = __param.t(); 19959: const double __p = __param.p(); 19959: const double __p12 = __p <= 0.5 ? __p : 1.0 - __p; 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 19959: __aurng(__urng); 19959: 19959: 19959: if (!__param._M_easy) 19959: { 19959: double __x; 19959: 19959: 19959: const double __naf = 19959: (1 - std::numeric_limits::epsilon()) / 2; 19959: const double __thr = 19959: std::numeric_limits<_IntType>::max() + __naf; 19959: 19959: const double __np = std::floor(__t * __p12); 19959: 19959: 19959: const double __spi_2 = 1.2533141373155002512078826424055226L; 19959: const double __a1 = __param._M_a1; 19959: const double __a12 = __a1 + __param._M_s2 * __spi_2; 19959: const double __a123 = __param._M_a123; 19959: const double __s1s = __param._M_s1 * __param._M_s1; 19959: const double __s2s = __param._M_s2 * __param._M_s2; 19959: 19959: bool __reject; 19959: do 19959: { 19959: const double __u = __param._M_s * __aurng(); 19959: 19959: double __v; 19959: 19959: if (__u <= __a1) 19959: { 19959: const double __n = _M_nd(__urng); 19959: const double __y = __param._M_s1 * std::abs(__n); 19959: __reject = __y >= __param._M_d1; 19959: if (!__reject) 19959: { 19959: const double __e = -std::log(1.0 - __aurng()); 19959: __x = std::floor(__y); 19959: __v = -__e - __n * __n / 2 + __param._M_c; 19959: } 19959: } 19959: else if (__u <= __a12) 19959: { 19959: const double __n = _M_nd(__urng); 19959: const double __y = __param._M_s2 * std::abs(__n); 19959: __reject = __y >= __param._M_d2; 19959: if (!__reject) 19959: { 19959: const double __e = -std::log(1.0 - __aurng()); 19959: __x = std::floor(-__y); 19959: __v = -__e - __n * __n / 2; 19959: } 19959: } 19959: else if (__u <= __a123) 19959: { 19959: const double __e1 = -std::log(1.0 - __aurng()); 19959: const double __e2 = -std::log(1.0 - __aurng()); 19959: 19959: const double __y = __param._M_d1 19959: + 2 * __s1s * __e1 / __param._M_d1; 19959: __x = std::floor(__y); 19959: __v = (-__e2 + __param._M_d1 * (1 / (__t - __np) 19959: -__y / (2 * __s1s))); 19959: __reject = false; 19959: } 19959: else 19959: { 19959: const double __e1 = -std::log(1.0 - __aurng()); 19959: const double __e2 = -std::log(1.0 - __aurng()); 19959: 19959: const double __y = __param._M_d2 19959: + 2 * __s2s * __e1 / __param._M_d2; 19959: __x = std::floor(-__y); 19959: __v = -__e2 - __param._M_d2 * __y / (2 * __s2s); 19959: __reject = false; 19959: } 19959: 19959: __reject = __reject || __x < -__np || __x > __t - __np; 19959: if (!__reject) 19959: { 19959: const double __lfx = 19959: std::lgamma(__np + __x + 1) 19959: + std::lgamma(__t - (__np + __x) + 1); 19959: __reject = __v > __param._M_lf - __lfx 19959: + __x * __param._M_lp1p; 19959: } 19959: 19959: __reject |= __x + __np >= __thr; 19959: } 19959: while (__reject); 19959: 19959: __x += __np + __naf; 19959: 19959: const _IntType __z = _M_waiting(__urng, __t - _IntType(__x), 19959: __param._M_q); 19959: __ret = _IntType(__x) + __z; 19959: } 19959: else 19959: 19959: __ret = _M_waiting(__urng, __t, __param._M_q); 19959: 19959: if (__p12 != __p) 19959: __ret = __t - __ret; 19959: return __ret; 19959: } 19959: 19959: template 19959: template 19959: void 19959: binomial_distribution<_IntType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: 19959: 19959: while (__f != __t) 19959: *__f++ = this->operator()(__urng, __param); 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const binomial_distribution<_IntType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits::max_digits10); 19959: 19959: __os << __x.t() << __space << __x.p() 19959: << __space << __x._M_nd; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: binomial_distribution<_IntType>& __x) 19959: { 19959: using param_type = typename binomial_distribution<_IntType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: _IntType __t; 19959: double __p; 19959: if (__is >> __t >> __p >> __x._M_nd) 19959: __x.param(param_type(__t, __p)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: template 19959: void 19959: std::exponential_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: while (__f != __t) 19959: *__f++ = -std::log(result_type(1) - __aurng()) / __p.lambda(); 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const exponential_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__os.widen(' ')); 19959: __os.precision(std::numeric_limits<_RealType>::max_digits10); 19959: 19959: __os << __x.lambda(); 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: exponential_distribution<_RealType>& __x) 19959: { 19959: using param_type 19959: = typename exponential_distribution<_RealType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: _RealType __lambda; 19959: if (__is >> __lambda) 19959: __x.param(param_type(__lambda)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: # 1806 "/usr/include/c++/13/bits/random.tcc" 3 19959: template 19959: template 19959: typename normal_distribution<_RealType>::result_type 19959: normal_distribution<_RealType>:: 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: result_type __ret; 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: 19959: if (_M_saved_available) 19959: { 19959: _M_saved_available = false; 19959: __ret = _M_saved; 19959: } 19959: else 19959: { 19959: result_type __x, __y, __r2; 19959: do 19959: { 19959: __x = result_type(2.0) * __aurng() - 1.0; 19959: __y = result_type(2.0) * __aurng() - 1.0; 19959: __r2 = __x * __x + __y * __y; 19959: } 19959: while (__r2 > 1.0 || __r2 == 0.0); 19959: 19959: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 19959: _M_saved = __x * __mult; 19959: _M_saved_available = true; 19959: __ret = __y * __mult; 19959: } 19959: 19959: __ret = __ret * __param.stddev() + __param.mean(); 19959: return __ret; 19959: } 19959: 19959: template 19959: template 19959: void 19959: normal_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: 19959: 19959: if (__f == __t) 19959: return; 19959: 19959: if (_M_saved_available) 19959: { 19959: _M_saved_available = false; 19959: *__f++ = _M_saved * __param.stddev() + __param.mean(); 19959: 19959: if (__f == __t) 19959: return; 19959: } 19959: 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: 19959: while (__f + 1 < __t) 19959: { 19959: result_type __x, __y, __r2; 19959: do 19959: { 19959: __x = result_type(2.0) * __aurng() - 1.0; 19959: __y = result_type(2.0) * __aurng() - 1.0; 19959: __r2 = __x * __x + __y * __y; 19959: } 19959: while (__r2 > 1.0 || __r2 == 0.0); 19959: 19959: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 19959: *__f++ = __y * __mult * __param.stddev() + __param.mean(); 19959: *__f++ = __x * __mult * __param.stddev() + __param.mean(); 19959: } 19959: 19959: if (__f != __t) 19959: { 19959: result_type __x, __y, __r2; 19959: do 19959: { 19959: __x = result_type(2.0) * __aurng() - 1.0; 19959: __y = result_type(2.0) * __aurng() - 1.0; 19959: __r2 = __x * __x + __y * __y; 19959: } 19959: while (__r2 > 1.0 || __r2 == 0.0); 19959: 19959: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 19959: _M_saved = __x * __mult; 19959: _M_saved_available = true; 19959: *__f = __y * __mult * __param.stddev() + __param.mean(); 19959: } 19959: } 19959: 19959: template 19959: bool 19959: operator==(const std::normal_distribution<_RealType>& __d1, 19959: const std::normal_distribution<_RealType>& __d2) 19959: { 19959: if (__d1._M_param == __d2._M_param 19959: && __d1._M_saved_available == __d2._M_saved_available) 19959: return __d1._M_saved_available ? __d1._M_saved == __d2._M_saved : true; 19959: else 19959: return false; 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const normal_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits<_RealType>::max_digits10); 19959: 19959: __os << __x.mean() << __space << __x.stddev() 19959: << __space << __x._M_saved_available; 19959: if (__x._M_saved_available) 19959: __os << __space << __x._M_saved; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: normal_distribution<_RealType>& __x) 19959: { 19959: using param_type = typename normal_distribution<_RealType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: double __mean, __stddev; 19959: bool __saved_avail; 19959: if (__is >> __mean >> __stddev >> __saved_avail) 19959: { 19959: if (!__saved_avail || (__is >> __x._M_saved)) 19959: { 19959: __x._M_saved_available = __saved_avail; 19959: __x.param(param_type(__mean, __stddev)); 19959: } 19959: } 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: template 19959: void 19959: lognormal_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: 19959: while (__f != __t) 19959: *__f++ = std::exp(__p.s() * _M_nd(__urng) + __p.m()); 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const lognormal_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits<_RealType>::max_digits10); 19959: 19959: __os << __x.m() << __space << __x.s() 19959: << __space << __x._M_nd; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: lognormal_distribution<_RealType>& __x) 19959: { 19959: using param_type 19959: = typename lognormal_distribution<_RealType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: _RealType __m, __s; 19959: if (__is >> __m >> __s >> __x._M_nd) 19959: __x.param(param_type(__m, __s)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: template 19959: template 19959: void 19959: std::chi_squared_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { 19959: 19959: while (__f != __t) 19959: *__f++ = 2 * _M_gd(__urng); 19959: } 19959: 19959: template 19959: template 19959: void 19959: std::chi_squared_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const typename 19959: std::gamma_distribution::param_type& __p) 19959: { 19959: 19959: while (__f != __t) 19959: *__f++ = 2 * _M_gd(__urng, __p); 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const chi_squared_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits<_RealType>::max_digits10); 19959: 19959: __os << __x.n() << __space << __x._M_gd; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: chi_squared_distribution<_RealType>& __x) 19959: { 19959: using param_type 19959: = typename chi_squared_distribution<_RealType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: _RealType __n; 19959: if (__is >> __n >> __x._M_gd) 19959: __x.param(param_type(__n)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: template 19959: typename cauchy_distribution<_RealType>::result_type 19959: cauchy_distribution<_RealType>:: 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: _RealType __u; 19959: do 19959: __u = __aurng(); 19959: while (__u == 0.5); 19959: 19959: const _RealType __pi = 3.1415926535897932384626433832795029L; 19959: return __p.a() + __p.b() * std::tan(__pi * __u); 19959: } 19959: 19959: template 19959: template 19959: void 19959: cauchy_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: 19959: const _RealType __pi = 3.1415926535897932384626433832795029L; 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: while (__f != __t) 19959: { 19959: _RealType __u; 19959: do 19959: __u = __aurng(); 19959: while (__u == 0.5); 19959: 19959: *__f++ = __p.a() + __p.b() * std::tan(__pi * __u); 19959: } 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const cauchy_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits<_RealType>::max_digits10); 19959: 19959: __os << __x.a() << __space << __x.b(); 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: cauchy_distribution<_RealType>& __x) 19959: { 19959: using param_type = typename cauchy_distribution<_RealType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: _RealType __a, __b; 19959: if (__is >> __a >> __b) 19959: __x.param(param_type(__a, __b)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: template 19959: void 19959: std::fisher_f_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { 19959: 19959: while (__f != __t) 19959: *__f++ = ((_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m())); 19959: } 19959: 19959: template 19959: template 19959: void 19959: std::fisher_f_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: 19959: typedef typename std::gamma_distribution::param_type 19959: param_type; 19959: param_type __p1(__p.m() / 2); 19959: param_type __p2(__p.n() / 2); 19959: while (__f != __t) 19959: *__f++ = ((_M_gd_x(__urng, __p1) * n()) 19959: / (_M_gd_y(__urng, __p2) * m())); 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const fisher_f_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits<_RealType>::max_digits10); 19959: 19959: __os << __x.m() << __space << __x.n() 19959: << __space << __x._M_gd_x << __space << __x._M_gd_y; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: fisher_f_distribution<_RealType>& __x) 19959: { 19959: using param_type 19959: = typename fisher_f_distribution<_RealType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: _RealType __m, __n; 19959: if (__is >> __m >> __n >> __x._M_gd_x >> __x._M_gd_y) 19959: __x.param(param_type(__m, __n)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: template 19959: void 19959: std::student_t_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng) 19959: { 19959: 19959: while (__f != __t) 19959: *__f++ = _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); 19959: } 19959: 19959: template 19959: template 19959: void 19959: std::student_t_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __ur/usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ ng, 19959: const param_type& __p) 19959: { 19959: 19959: typename std::gamma_distribution::param_type 19959: __p2(__p.n() / 2, 2); 19959: while (__f != __t) 19959: *__f++ = _M_nd(__urng) * std::sqrt(__p.n() / _M_gd(__urng, __p2)); 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const student_t_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits<_RealType>::max_digits10); 19959: 19959: __os << __x.n() << __space << __x._M_nd << __space << __x._M_gd; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: student_t_distribution<_RealType>& __x) 19959: { 19959: using param_type 19959: = typename student_t_distribution<_RealType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: _RealType __n; 19959: if (__is >> __n >> __x._M_nd >> __x._M_gd) 19959: __x.param(param_type(__n)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: void 19959: gamma_distribution<_RealType>::param_type:: 19959: _M_initialize() 19959: { 19959: _M_malpha = _M_alpha < 1.0 ? _M_alpha + _RealType(1.0) : _M_alpha; 19959: 19959: const _RealType __a1 = _M_malpha - _RealType(1.0) / _RealType(3.0); 19959: _M_a2 = _RealType(1.0) / std::sqrt(_RealType(9.0) * __a1); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: template 19959: typename gamma_distribution<_RealType>::result_type 19959: gamma_distribution<_RealType>:: 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: 19959: result_type __u, __v, __n; 19959: const result_type __a1 = (__param._M_malpha 19959: - _RealType(1.0) / _RealType(3.0)); 19959: 19959: do 19959: { 19959: do 19959: { 19959: __n = _M_nd(__urng); 19959: __v = result_type(1.0) + __param._M_a2 * __n; 19959: } 19959: while (__v <= 0.0); 19959: 19959: __v = __v * __v * __v; 19959: __u = __aurng(); 19959: } 19959: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 19959: && (std::log(__u) > (0.5 * __n * __n + __a1 19959: * (1.0 - __v + std::log(__v))))); 19959: 19959: if (__param.alpha() == __param._M_malpha) 19959: return __a1 * __v * __param.beta(); 19959: else 19959: { 19959: do 19959: __u = __aurng(); 19959: while (__u == 0.0); 19959: 19959: return (std::pow(__u, result_type(1.0) / __param.alpha()) 19959: * __a1 * __v * __param.beta()); 19959: } 19959: } 19959: 19959: template 19959: template 19959: void 19959: gamma_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: 19959: result_type __u, __v, __n; 19959: const result_type __a1 = (__param._M_malpha 19959: - _RealType(1.0) / _RealType(3.0)); 19959: 19959: if (__param.alpha() == __param._M_malpha) 19959: while (__f != __t) 19959: { 19959: do 19959: { 19959: do 19959: { 19959: __n = _M_nd(__urng); 19959: __v = result_type(1.0) + __param._M_a2 * __n; 19959: } 19959: while (__v <= 0.0); 19959: 19959: __v = __v * __v * __v; 19959: __u = __aurng(); 19959: } 19959: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 19959: && (std::log(__u) > (0.5 * __n * __n + __a1 19959: * (1.0 - __v + std::log(__v))))); 19959: 19959: *__f++ = __a1 * __v * __param.beta(); 19959: } 19959: else 19959: while (__f != __t) 19959: { 19959: do 19959: { 19959: do 19959: { 19959: __n = _M_nd(__urng); 19959: __v = result_type(1.0) + __param._M_a2 * __n; 19959: } 19959: while (__v <= 0.0); 19959: 19959: __v = __v * __v * __v; 19959: __u = __aurng(); 19959: } 19959: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 19959: && (std::log(__u) > (0.5 * __n * __n + __a1 19959: * (1.0 - __v + std::log(__v))))); 19959: 19959: do 19959: __u = __aurng(); 19959: while (__u == 0.0); 19959: 19959: *__f++ = (std::pow(__u, result_type(1.0) / __param.alpha()) 19959: * __a1 * __v * __param.beta()); 19959: } 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const gamma_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits<_RealType>::max_digits10); 19959: 19959: __os << __x.alpha() << __space << __x.beta() 19959: << __space << __x._M_nd; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: gamma_distribution<_RealType>& __x) 19959: { 19959: using param_type = typename gamma_distribution<_RealType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: _RealType __alpha_val, __beta_val; 19959: if (__is >> __alpha_val >> __beta_val >> __x._M_nd) 19959: __x.param(param_type(__alpha_val, __beta_val)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: template 19959: typename weibull_distribution<_RealType>::result_type 19959: weibull_distribution<_RealType>:: 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: return __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 19959: result_type(1) / __p.a()); 19959: } 19959: 19959: template 19959: template 19959: void 19959: weibull_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: auto __inv_a = result_type(1) / __p.a(); 19959: 19959: while (__f != __t) 19959: *__f++ = __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 19959: __inv_a); 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const weibull_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits<_RealType>::max_digits10); 19959: 19959: __os << __x.a() << __space << __x.b(); 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: weibull_distribution<_RealType>& __x) 19959: { 19959: using param_type = typename weibull_distribution<_RealType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: _RealType __a, __b; 19959: if (__is >> __a >> __b) 19959: __x.param(param_type(__a, __b)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: template 19959: typename extreme_value_distribution<_RealType>::result_type 19959: extreme_value_distribution<_RealType>:: 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: return __p.a() - __p.b() * std::log(-std::log(result_type(1) 19959: - __aurng())); 19959: } 19959: 19959: template 19959: template 19959: void 19959: extreme_value_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __p) 19959: { 19959: 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 19959: __aurng(__urng); 19959: 19959: while (__f != __t) 19959: *__f++ = __p.a() - __p.b() * std::log(-std::log(result_type(1) 19959: - __aurng())); 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const extreme_value_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits<_RealType>::max_digits10); 19959: 19959: __os << __x.a() << __space << __x.b(); 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: extreme_value_distribution<_RealType>& __x) 19959: { 19959: using param_type 19959: = typename extreme_value_distribution<_RealType>::param_type; 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: _RealType __a, __b; 19959: if (__is >> __a >> __b) 19959: __x.param(param_type(__a, __b)); 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: void 19959: discrete_distribution<_IntType>::param_type:: 19959: _M_initialize() 19959: { 19959: if (_M_prob.size() < 2) 19959: { 19959: _M_prob.clear(); 19959: return; 19959: } 19959: 19959: const double __sum = std::accumulate(_M_prob.begin(), 19959: _M_prob.end(), 0.0); 19959: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) __builtin_unreachable(); } while (false); 19959: 19959: __detail::__normalize(_M_prob.begin(), _M_prob.end(), _M_prob.begin(), 19959: __sum); 19959: 19959: _M_cp.reserve(_M_prob.size()); 19959: std::partial_sum(_M_prob.begin(), _M_prob.end(), 19959: std::back_inserter(_M_cp)); 19959: 19959: _M_cp[_M_cp.size() - 1] = 1.0; 19959: } 19959: 19959: template 19959: template 19959: discrete_distribution<_IntType>::param_type:: 19959: param_type(size_t __nw, double __xmin, double __xmax, _Func __fw) 19959: : _M_prob(), _M_cp() 19959: { 19959: const size_t __n = __nw == 0 ? 1 : __nw; 19959: const double __delta = (__xmax - __xmin) / __n; 19959: 19959: _M_prob.reserve(__n); 19959: for (size_t __k = 0; __k < __nw; ++__k) 19959: _M_prob.push_back(__fw(__xmin + __k * __delta + 0.5 * __delta)); 19959: 19959: _M_initialize(); 19959: } 19959: 19959: template 19959: template 19959: typename discrete_distribution<_IntType>::result_type 19959: discrete_distribution<_IntType>:: 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: if (__param._M_cp.empty()) 19959: return result_type(0); 19959: 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 19959: __aurng(__urng); 19959: 19959: const double __p = __aurng(); 19959: auto __pos = std::lower_bound(__param._M_cp.begin(), 19959: __param._M_cp.end(), __p); 19959: 19959: return __pos - __param._M_cp.begin(); 19959: } 19959: 19959: template 19959: template 19959: void 19959: discrete_distribution<_IntType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: 19959: 19959: if (__param._M_cp.empty()) 19959: { 19959: while (__f != __t) 19959: *__f++ = result_type(0); 19959: return; 19959: } 19959: 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 19959: __aurng(__urng); 19959: 19959: while (__f != __t) 19959: { 19959: const double __p = __aurng(); 19959: auto __pos = std::lower_bound(__param._M_cp.begin(), 19959: __param._M_cp.end(), __p); 19959: 19959: *__f++ = __pos - __param._M_cp.begin(); 19959: } 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const discrete_distribution<_IntType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits::max_digits10); 19959: 19959: std::vector __prob = __x.probabilities(); 19959: __os << __prob.size(); 19959: for (auto __dit = __prob.begin(); __dit != __prob.end(); ++__dit) 19959: __os << __space << *__dit; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: namespace __detail 19959: { 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: __extract_params(basic_istream<_CharT, _Traits>& __is, 19959: vector<_ValT>& __vals, size_t __n) 19959: { 19959: __vals.reserve(__n); 19959: while (__n--) 19959: { 19959: _ValT __val; 19959: if (__is >> __val) 19959: __vals.push_back(__val); 19959: else 19959: break; 19959: } 19959: return __is; 19959: } 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: discrete_distribution<_IntType>& __x) 19959: { 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: size_t __n; 19959: if (__is >> __n) 19959: { 19959: std::vector __prob_vec; 19959: if (__detail::__extract_params(__is, __prob_vec, __n)) 19959: __x.param({__prob_vec.begin(), __prob_vec.end()}); 19959: } 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: void 19959: piecewise_constant_distribution<_RealType>::param_type:: 19959: _M_initialize() 19959: { 19959: if (_M_int.size() < 2 19959: || (_M_int.size() == 2 19959: && _M_int[0] == _RealType(0) 19959: && _M_int[1] == _RealType(1))) 19959: { 19959: _M_int.clear(); 19959: _M_den.clear(); 19959: return; 19959: } 19959: 19959: const double __sum = std::accumulate(_M_den.begin(), 19959: _M_den.end(), 0.0); 19959: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) __builtin_unreachable(); } while (false); 19959: 19959: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 19959: __sum); 19959: 19959: _M_cp.reserve(_M_den.size()); 19959: std::partial_sum(_M_den.begin(), _M_den.end(), 19959: std::back_inserter(_M_cp)); 19959: 19959: 19959: _M_cp[_M_cp.size() - 1] = 1.0; 19959: 19959: for (size_t __k = 0; __k < _M_den.size(); ++__k) 19959: _M_den[__k] /= _M_int[__k + 1] - _M_int[__k]; 19959: } 19959: 19959: template 19959: template 19959: piecewise_constant_distribution<_RealType>::param_type:: 19959: param_type(_InputIteratorB __bbegin, 19959: _InputIteratorB __bend, 19959: _InputIteratorW __wbegin) 19959: : _M_int(), _M_den(), _M_cp() 19959: { 19959: if (__bbegin != __bend) 19959: { 19959: for (;;) 19959: { 19959: _M_int.push_back(*__bbegin); 19959: ++__bbegin; 19959: if (__bbegin == __bend) 19959: break; 19959: 19959: _M_den.push_back(*__wbegin); 19959: ++__wbegin; 19959: } 19959: } 19959: 19959: _M_initialize(); 19959: } 19959: 19959: template 19959: template 19959: piecewise_constant_distribution<_RealType>::param_type:: 19959: param_type(initializer_list<_RealType> __bl, _Func __fw) 19959: : _M_int(), _M_den(), _M_cp() 19959: { 19959: _M_int.reserve(__bl.size()); 19959: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 19959: _M_int.push_back(*__biter); 19959: 19959: _M_den.reserve(_M_int.size() - 1); 19959: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 19959: _M_den.push_back(__fw(0.5 * (_M_int[__k + 1] + _M_int[__k]))); 19959: 19959: _M_initialize(); 19959: } 19959: 19959: template 19959: template 19959: piecewise_constant_distribution<_RealType>::param_type:: 19959: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 19959: : _M_int(), _M_den(), _M_cp() 19959: { 19959: const size_t __n = __nw == 0 ? 1 : __nw; 19959: const _RealType __delta = (__xmax - __xmin) / __n; 19959: 19959: _M_int.reserve(__n + 1); 19959: for (size_t __k = 0; __k <= __nw; ++__k) 19959: _M_int.push_back(__xmin + __k * __delta); 19959: 19959: _M_den.reserve(__n); 19959: for (size_t __k = 0; __k < __nw; ++__k) 19959: _M_den.push_back(__fw(_M_int[__k] + 0.5 * __delta)); 19959: 19959: _M_initialize(); 19959: } 19959: 19959: template 19959: template 19959: typename piecewise_constant_distribution<_RealType>::result_type 19959: piecewise_constant_distribution<_RealType>:: 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 19959: __aurng(__urng); 19959: 19959: const double __p = __aurng(); 19959: if (__param._M_cp.empty()) 19959: return __p; 19959: 19959: auto __pos = std::lower_bound(__param._M_cp.begin(), 19959: __param._M_cp.end(), __p); 19959: const size_t __i = __pos - __param._M_cp.begin(); 19959: 19959: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 19959: 19959: return __param._M_int[__i] + (__p - __pref) / __param._M_den[__i]; 19959: } 19959: 19959: template 19959: template 19959: void 19959: piecewise_constant_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 19959: __aurng(__urng); 19959: 19959: if (__param._M_cp.empty()) 19959: { 19959: while (__f != __t) 19959: *__f++ = __aurng(); 19959: return; 19959: } 19959: 19959: while (__f != __t) 19959: { 19959: const double __p = __aurng(); 19959: 19959: auto __pos = std::lower_bound(__param._M_cp.begin(), 19959: __param._M_cp.end(), __p); 19959: const size_t __i = __pos - __param._M_cp.begin(); 19959: 19959: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 19959: 19959: *__f++ = (__param._M_int[__i] 19959: + (__p - __pref) / __param._M_den[__i]); 19959: } 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const piecewise_constant_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits<_RealType>::max_digits10); 19959: 19959: std::vector<_RealType> __int = __x.intervals(); 19959: __os << __int.size() - 1; 19959: 19959: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 19959: __os << __space << *__xit; 19959: 19959: std::vector __den = __x.densities(); 19959: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 19959: __os << __space << *__dit; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: piecewise_constant_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: size_t __n; 19959: if (__is >> __n) 19959: { 19959: std::vector<_RealType> __int_vec; 19959: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 19959: { 19959: std::vector __den_vec; 19959: if (__detail::__extract_params(__is, __den_vec, __n)) 19959: { 19959: __x.param({ __int_vec.begin(), __int_vec.end(), 19959: __den_vec.begin() }); 19959: } 19959: } 19959: } 19959: 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: void 19959: piecewise_linear_distribution<_RealType>::param_type:: 19959: _M_initialize() 19959: { 19959: if (_M_int.size() < 2 19959: || (_M_int.size() == 2 19959: && _M_int[0] == _RealType(0) 19959: && _M_int[1] == _RealType(1) 19959: && _M_den[0] == _M_den[1])) 19959: { 19959: _M_int.clear(); 19959: _M_den.clear(); 19959: return; 19959: } 19959: 19959: double __sum = 0.0; 19959: _M_cp.reserve(_M_int.size() - 1); 19959: _M_m.reserve(_M_int.size() - 1); 19959: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 19959: { 19959: const _RealType __delta = _M_int[__k + 1] - _M_int[__k]; 19959: __sum += 0.5 * (_M_den[__k + 1] + _M_den[__k]) * __delta; 19959: _M_cp.push_back(__sum); 19959: _M_m.push_back((_M_den[__k + 1] - _M_den[__k]) / __delta); 19959: } 19959: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) __builtin_unreachable(); } while (false); 19959: 19959: 19959: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 19959: __sum); 19959: 19959: __detail::__normalize(_M_cp.begin(), _M_cp.end(), _M_cp.begin(), __sum); 19959: 19959: __detail::__normalize(_M_m.begin(), _M_m.end(), _M_m.begin(), __sum); 19959: 19959: 19959: _M_cp[_M_cp.size() - 1] = 1.0; 19959: } 19959: 19959: template 19959: template 19959: piecewise_linear_distribution<_RealType>::param_type:: 19959: param_type(_InputIteratorB __bbegin, 19959: _InputIteratorB __bend, 19959: _InputIteratorW __wbegin) 19959: : _M_int(), _M_den(), _M_cp(), _M_m() 19959: { 19959: for (; __bbegin != __bend; ++__bbegin, ++__wbegin) 19959: { 19959: _M_int.push_back(*__bbegin); 19959: _M_den.push_back(*__wbegin); 19959: } 19959: 19959: _M_initialize(); 19959: } 19959: 19959: template 19959: template 19959: piecewise_linear_distribution<_RealType>::param_type:: 19959: param_type(initializer_list<_RealType> __bl, _Func __fw) 19959: : _M_int(), _M_den(), _M_cp(), _M_m() 19959: { 19959: _M_int.reserve(__bl.size()); 19959: _M_den.reserve(__bl.size()); 19959: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 19959: { 19959: _M_int.push_back(*__biter); 19959: _M_den.push_back(__fw(*__biter)); 19959: } 19959: 19959: _M_initialize(); 19959: } 19959: 19959: template 19959: template 19959: piecewise_linear_distribution<_RealType>::param_type:: 19959: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 19959: : _M_int(), _M_den(), _M_cp(), _M_m() 19959: { 19959: const size_t __n = __nw == 0 ? 1 : __nw; 19959: const _RealType __delta = (__xmax - __xmin) / __n; 19959: 19959: _M_int.reserve(__n + 1); 19959: _M_den.reserve(__n + 1); 19959: for (size_t __k = 0; __k <= __nw; ++__k) 19959: { 19959: _M_int.push_back(__xmin + __k * __delta); 19959: _M_den.push_back(__fw(_M_int[__k] + __delta)); 19959: } 19959: 19959: _M_initialize(); 19959: } 19959: 19959: template 19959: template 19959: typename piecewise_linear_distribution<_RealType>::result_type 19959: piecewise_linear_distribution<_RealType>:: 19959: operator()(_UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 19959: __aurng(__urng); 19959: 19959: const double __p = __aurng(); 19959: if (__param._M_cp.empty()) 19959: return __p; 19959: 19959: auto __pos = std::lower_bound(__param._M_cp.begin(), 19959: __param._M_cp.end(), __p); 19959: const size_t __i = __pos - __param._M_cp.begin(); 19959: 19959: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 19959: 19959: const double __a = 0.5 * __param._M_m[__i]; 19959: const double __b = __param._M_den[__i]; 19959: const double __cm = __p - __pref; 19959: 19959: _RealType __x = __param._M_int[__i]; 19959: if (__a == 0) 19959: __x += __cm / __b; 19959: else 19959: { 19959: const double __d = __b * __b + 4.0 * __a * __cm; 19959: __x += 0.5 * (std::sqrt(__d) - __b) / __a; 19959: } 19959: 19959: return __x; 19959: } 19959: 19959: template 19959: template 19959: void 19959: piecewise_linear_distribution<_RealType>:: 19959: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 19959: _UniformRandomNumberGenerator& __urng, 19959: const param_type& __param) 19959: { 19959: 19959: 19959: while (__f != __t) 19959: *__f++ = this->operator()(__urng, __param); 19959: } 19959: 19959: template 19959: std::basic_ostream<_CharT, _Traits>& 19959: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 19959: const piecewise_linear_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __os.flags(); 19959: const _CharT __fill = __os.fill(); 19959: const std::streamsize __precision = __os.precision(); 19959: const _CharT __space = __os.widen(' '); 19959: __os.flags(__ios_base::scientific | __ios_base::left); 19959: __os.fill(__space); 19959: __os.precision(std::numeric_limits<_RealType>::max_digits10); 19959: 19959: std::vector<_RealType> __int = __x.intervals(); 19959: __os << __int.size() - 1; 19959: 19959: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 19959: __os << __space << *__xit; 19959: 19959: std::vector __den = __x.densities(); 19959: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 19959: __os << __space << *__dit; 19959: 19959: __os.flags(__flags); 19959: __os.fill(__fill); 19959: __os.precision(__precision); 19959: return __os; 19959: } 19959: 19959: template 19959: std::basic_istream<_CharT, _Traits>& 19959: operator>>(std::basic_istream<_CharT, _Traits>& __is, 19959: piecewise_linear_distribution<_RealType>& __x) 19959: { 19959: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 19959: 19959: const typename __ios_base::fmtflags __flags = __is.flags(); 19959: __is.flags(__ios_base::dec | __ios_base::skipws); 19959: 19959: size_t __n; 19959: if (__is >> __n) 19959: { 19959: vector<_RealType> __int_vec; 19959: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 19959: { 19959: vector __den_vec; 19959: if (__detail::__extract_params(__is, __den_vec, __n + 1)) 19959: { 19959: __x.param({ __int_vec.begin(), __int_vec.end(), 19959: __den_vec.begin() }); 19959: } 19959: } 19959: } 19959: __is.flags(__flags); 19959: return __is; 19959: } 19959: 19959: 19959: template 19959: seed_seq::seed_seq(std::initializer_list<_IntType> __il) 19959: { 19959: _M_v.reserve(__il.size()); 19959: for (auto __iter = __il.begin(); __iter != __il.end(); ++__iter) 19959: _M_v.push_back(__detail::__mod::__value>(*__iter)); 19959: } 19959: 19959: template 19959: seed_seq::seed_seq(_InputIterator __begin, _InputIterator __end) 19959: { 19959: if constexpr (__is_random_access_iter<_InputIterator>::value) 19959: _M_v.reserve(std::distance(__begin, __end)); 19959: 19959: for (_InputIterator __iter = __begin; __iter != __end; ++__iter) 19959: _M_v.push_back(__detail::__mod::__value>(*__iter)); 19959: } 19959: 19959: template 19959: void 19959: seed_seq::generate(_RandomAccessIterator __begin, 19959: _RandomAccessIterator __end) 19959: { 19959: typedef typename iterator_traits<_RandomAccessIterator>::value_type 19959: _Type; 19959: 19959: if (__begin == __end) 19959: return; 19959: 19959: std::fill(__begin, __end, _Type(0x8b8b8b8bu)); 19959: 19959: const size_t __n = __end - __begin; 19959: const size_t __s = _M_v.size(); 19959: const size_t __t = (__n >= 623) ? 11 19959: : (__n >= 68) ? 7 19959: : (__n >= 39) ? 5 19959: : (__n >= 7) ? 3 19959: : (__n - 1) / 2; 19959: const size_t __p = (__n - __t) / 2; 19959: const size_t __q = __p + __t; 19959: const size_t __m = std::max(size_t(__s + 1), __n); 19959: # 3289 "/usr/include/c++/13/bits/random.tcc" 3 19959: { 19959: uint32_t __r1 = 1371501266u; 19959: uint32_t __r2 = __r1 + __s; 19959: __begin[__p] += __r1; 19959: __begin[__q] = (uint32_t)__begin[__q] + __r2; 19959: __begin[0] = __r2; 19959: } 19959: 19959: for (size_t __k = 1; __k <= __s; ++__k) 19959: { 19959: const size_t __kn = __k % __n; 19959: const size_t __kpn = (__k + __p) % __n; 19959: const size_t __kqn = (__k + __q) % __n; 19959: uint32_t __arg = (__begin[__kn] 19959: ^ __begin[__kpn] 19959: ^ __begin[(__k - 1) % __n]); 19959: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 19959: uint32_t __r2 = __r1 + (uint32_t)__kn + _M_v[__k - 1]; 19959: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 19959: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 19959: __begin[__kn] = __r2; 19959: } 19959: 19959: for (size_t __k = __s + 1; __k < __m; ++__k) 19959: { 19959: const size_t __kn = __k % __n; 19959: const size_t __kpn = (__k + __p) % __n; 19959: const size_t __kqn = (__k + __q) % __n; 19959: uint32_t __arg = (__begin[__kn] 19959: ^ __begin[__kpn] 19959: ^ __begin[(__k - 1) % __n]); 19959: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 19959: uint32_t __r2 = __r1 + (uint32_t)__kn; 19959: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 19959: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 19959: __begin[__kn] = __r2; 19959: } 19959: 19959: for (size_t __k = __m; __k < __m + __n; ++__k) 19959: { 19959: const size_t __kn = __k % __n; 19959: const size_t __kpn = (__k + __p) % __n; 19959: const size_t __kqn = (__k + __q) % __n; 19959: uint32_t __arg = (__begin[__kn] 19959: + __begin[__kpn] 19959: + __begin[(__k - 1) % __n]); 19959: uint32_t __r3 = 1566083941u * (__arg ^ (__arg >> 27)); 19959: uint32_t __r4 = __r3 - __kn; 19959: __begin[__kpn] ^= __r3; 19959: __begin[__kqn] ^= __r4; 19959: __begin[__kn] = __r4; 19959: } 19959: } 19959: 19959: template 19959: _RealType 19959: generate_canonical(_UniformRandomNumberGenerator& __urng) 19959: { 19959: static_assert(std::is_floating_point<_RealType>::value, 19959: "template argument must be a floating point type"); 19959: 19959: const size_t __b 19959: = std::min(static_cast(std::numeric_limits<_RealType>::digits), 19959: __bits); 19959: const long double __r = static_cast(__urng.max()) 19959: - static_cast(__urng.min()) + 1.0L; 19959: const size_t __log2r = std::log(__r) / std::log(2.0L); 19959: const size_t __m = std::max(1UL, 19959: (__b + __log2r - 1UL) / __log2r); 19959: _RealType __ret; 19959: _RealType __sum = _RealType(0); 19959: _RealType __tmp = _RealType(1); 19959: for (size_t __k = __m; __k != 0; --__k) 19959: { 19959: __sum += _RealType(__urng() - __urng.min()) * __tmp; 19959: __tmp *= __r; 19959: } 19959: __ret = __sum / __tmp; 19959: if (__builtin_expect(__ret >= _RealType(1), 0)) 19959: { 19959: 19959: __ret = std::nextafter(_RealType(1), _RealType(0)); 19959: 19959: 19959: 19959: 19959: } 19959: return __ret; 19959: } 19959: 19959: 19959: } 19959: # 54 "/usr/include/c++/13/random" 2 3 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/util/random.h" 2 19959: 19959: 19959: 19959: 19959: # 18 "/build/reproducible-path/rocksdb-8.9.1/util/random.h" 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: class Random { 19959: private: 19959: enum : uint32_t { 19959: M = 2147483647L 19959: }; 19959: enum : uint64_t { 19959: A = 16807 19959: }; 19959: 19959: uint32_t seed_; 19959: 19959: static uint32_t GoodSeed(uint32_t s) { return (s & M) != 0 ? (s & M) : 1; } 19959: 19959: public: 19959: 19959: enum : uint32_t { kMaxNext = M }; 19959: 19959: explicit Random(uint32_t s) : seed_(GoodSeed(s)) {} 19959: 19959: void Reset(uint32_t s) { seed_ = GoodSeed(s); } 19959: 19959: uint32_t Next() { 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint64_t product = seed_ * A; 19959: 19959: 19959: seed_ = static_cast((product >> 31) + (product & M)); 19959: 19959: 19959: 19959: if (seed_ > M) { 19959: seed_ -= M; 19959: } 19959: return seed_; 19959: } 19959: 19959: uint64_t Next64() { return (uint64_t{Next()} << 32) | Next(); } 19959: 19959: 19959: 19959: uint32_t Uniform(int n) { return Next() % n; } 19959: 19959: 19959: 19959: bool OneIn(int n) { return Uniform(n) == 0; } 19959: 19959: 19959: 19959: bool OneInOpt(int n) { return n > 0 && OneIn(n); } 19959: 19959: 19959: 19959: 19959: bool PercentTrue(int percentage) { 19959: return static_cast(Uniform(100)) < percentage; 19959: } 19959: 19959: 19959: 19959: 19959: uint32_t Skewed(int max_log) { return Uniform(1 << Uniform(max_log + 1)); } 19959: 19959: 19959: std::string RandomString(int len); 19959: 19959: 19959: std::string HumanReadableString(int len); 19959: 19959: 19959: std::string RandomBinaryString(int len); 19959: 19959: 19959: 19959: static Random* GetTLSInstance(); 19959: }; 19959: 19959: 19959: 19959: 19959: class Random32 { 19959: private: 19959: std::mt19937 generator_; 19959: 19959: public: 19959: explicit Random32(uint32_t s) : generator_(s) {} 19959: 19959: 19959: uint32_t Next() { return static_cast(generator_()); } 19959: 19959: 19959: 19959: uint32_t Uniform(uint32_t n) { 19959: return static_cast( 19959: std::uniform_int_distribution( 19959: 0, n - 1)(generator_)); 19959: } 19959: 19959: 19959: 19959: 19959: uint32_t Uniformish(uint32_t n) { 19959: 19959: return static_cast((uint64_t(generator_()) * uint64_t(n)) >> 32); 19959: } 19959: 19959: 19959: 19959: bool OneIn(uint32_t n) { return Uniform(n) == 0; } 19959: 19959: 19959: 19959: 19959: uint32_t Skewed(int max_log) { 19959: return Uniform(uint32_t{1} << Uniform(max_log + 1)); 19959: } 19959: 19959: 19959: void Seed(uint32_t new_seed) { generator_.seed(new_seed); } 19959: }; 19959: 19959: 19959: class Random64 { 19959: private: 19959: std::mt19937_64 generator_; 19959: 19959: public: 19959: explicit Random64(uint64_t s) : generator_(s) {} 19959: 19959: 19959: uint64_t Next() { return generator_(); } 19959: 19959: 19959: 19959: uint64_t Uniform(uint64_t n) { 19959: return std::uniform_int_distribution(0, n - 1)(generator_); 19959: } 19959: 19959: 19959: 19959: bool OneIn(uint64_t n) { return Uniform(n) == 0; } 19959: 19959: 19959: 19959: 19959: uint64_t Skewed(int max_log) { 19959: return Uniform(uint64_t(1) << Uniform(max_log + 1)); 19959: } 19959: }; 19959: 19959: 19959: template 19959: void RandomShuffle(RandomIt first, RandomIt last, uint32_t seed) { 19959: std::mt19937 rng(seed); 19959: std::shuffle(first, last, rng); 19959: } 19959: 19959: 19959: template 19959: void RandomShuffle(RandomIt first, RandomIt last) { 19959: RandomShuffle(first, last, std::random_device{}()); 19959: } 19959: 19959: } 19959: # 18 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: template 19959: class CoreLocalArray { 19959: public: 19959: CoreLocalArray(); 19959: 19959: size_t Size() const; 19959: 19959: 19959: T* Access() const; 19959: 19959: 19959: 19959: std::pair AccessElementAndIndex() const; 19959: 19959: 19959: T* AccessAtCore(size_t core_idx) const; 19959: 19959: private: 19959: std::unique_ptr data_; 19959: int size_shift_; 19959: }; 19959: 19959: template 19959: CoreLocalArray::CoreLocalArray() { 19959: int num_cpus = static_cast(std::thread::hardware_concurrency()); 19959: 19959: size_shift_ = 3; 19959: while (1 << size_shift_ < num_cpus) { 19959: ++size_shift_; 19959: } 19959: data_.reset(new T[static_cast(1) << size_shift_]); 19959: } 19959: 19959: template 19959: size_t CoreLocalArray::Size() const { 19959: return static_cast(1) << size_shift_; 19959: } 19959: 19959: template 19959: T* CoreLocalArray::Access() const { 19959: return AccessElementAndIndex().first; 19959: } 19959: 19959: template 19959: std::pair CoreLocalArray::AccessElementAndIndex() const { 19959: int cpuid = port::PhysicalCoreID(); 19959: size_t core_idx; 19959: if ((__builtin_expect((cpuid < 0), 0))) { 19959: 19959: core_idx = Random::GetTLSInstance()->Uniform(1 << size_shift_); 19959: } else { 19959: core_idx = static_cast(BottomNBits(cpuid, size_shift_)); 19959: } 19959: return {AccessAtCore(core_idx), core_idx}; 19959: } 19959: 19959: template 19959: T* CoreLocalArray::AccessAtCore(size_t core_idx) const { 19959: 19959: # 81 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 3 4 19959: (static_cast ( 19959: # 81 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 19959: core_idx < static_cast(1) << size_shift_ 19959: # 81 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 81 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 19959: "core_idx < static_cast(1) << size_shift_" 19959: # 81 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 3 4 19959: , "./util/core_local.h", 81, __extension__ __PRETTY_FUNCTION__)) 19959: # 81 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 19959: ; 19959: return &data_[core_idx]; 19959: } 19959: 19959: } 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 19959: 19959: # 1 "/usr/include/assert.h" 1 3 4 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 2 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/fastrange.h" 1 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/util/fastrange.h" 19959: 19959: # 31 "/build/reproducible-path/rocksdb-8.9.1/util/fastrange.h" 19959: namespace rocksdb { 19959: 19959: namespace detail { 19959: 19959: 19959: template 19959: struct FastRangeGenericImpl { 19959: 19959: }; 19959: 19959: template 19959: struct FastRangeGenericImpl { 19959: static inline Range Fn(uint32_t hash, Range range) { 19959: static_assert(std::is_unsigned::value, "must be unsigned"); 19959: static_assert(sizeof(Range) <= sizeof(uint32_t), 19959: "cannot be larger than hash (32 bits)"); 19959: 19959: uint64_t product = uint64_t{range} * hash; 19959: return static_cast(product >> 32); 19959: } 19959: }; 19959: 19959: template 19959: struct FastRangeGenericImpl { 19959: static inline Range Fn(uint64_t hash, Range range) { 19959: static_assert(std::is_unsigned::value, "must be unsigned"); 19959: static_assert(sizeof(Range) <= sizeof(uint64_t), 19959: "cannot be larger than hash (64 bits)"); 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/util/fastrange.h" 19959: uint64_t range64 = range; 19959: uint64_t tmp = uint64_t{range64 & 0xffffFFFF} * uint64_t{hash & 0xffffFFFF}; 19959: tmp >>= 32; 19959: tmp += uint64_t{range64 & 0xffffFFFF} * uint64_t{hash >> 32}; 19959: 19959: uint64_t tmp2 = uint64_t{range64 >> 32} * uint64_t{hash & 0xffffFFFF}; 19959: tmp += static_cast(tmp2); 19959: tmp >>= 32; 19959: tmp += (tmp2 >> 32); 19959: tmp += uint64_t{range64 >> 32} * uint64_t{hash >> 32}; 19959: return static_cast(tmp); 19959: 19959: } 19959: }; 19959: 19959: } 19959: # 96 "/build/reproducible-path/rocksdb-8.9.1/util/fastrange.h" 19959: template 19959: inline Range FastRangeGeneric(Hash hash, Range range) { 19959: return detail::FastRangeGenericImpl::Fn(hash, range); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: inline size_t FastRange64(uint64_t hash, size_t range) { 19959: return FastRangeGeneric(hash, range); 19959: } 19959: 19959: 19959: inline uint32_t FastRange32(uint32_t hash, uint32_t range) { 19959: return FastRangeGeneric(hash, range); 19959: } 19959: 19959: } 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/hash.h" 1 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/util/hash.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: extern uint64_t Hash64(const char* data, size_t n, uint64_t seed); 19959: 19959: 19959: extern uint64_t Hash64(const char* data, size_t n); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline uint64_t NPHash64(const char* data, size_t n, uint64_t seed) { 19959: 19959: 19959: 19959: 19959: 19959: return Hash64(data, n, seed); 19959: 19959: } 19959: 19959: 19959: inline uint64_t NPHash64(const char* data, size_t n) { 19959: 19959: 19959: 19959: 19959: 19959: return Hash64(data, n); 19959: 19959: } 19959: 19959: 19959: 19959: void Hash2x64(const char* data, size_t n, uint64_t* high64, uint64_t* low64); 19959: void Hash2x64(const char* data, size_t n, uint64_t seed, uint64_t* high64, 19959: uint64_t* low64); 19959: 19959: 19959: 19959: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, 19959: uint64_t* out_high64, uint64_t* out_low64); 19959: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 19959: uint64_t* out_high64, uint64_t* out_low64); 19959: 19959: 19959: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, 19959: uint64_t* out_high64, uint64_t* out_low64); 19959: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 19959: uint64_t* out_high64, uint64_t* out_low64); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern uint32_t Hash(const char* data, size_t n, uint32_t seed); 19959: 19959: 19959: inline uint32_t BloomHash(const Slice& key) { 19959: return Hash(key.data(), key.size(), 0xbc9f1d34); 19959: } 19959: 19959: inline uint64_t GetSliceHash64(const Slice& key) { 19959: return Hash64(key.data(), key.size()); 19959: } 19959: 19959: 19959: extern uint64_t (*kGetSliceNPHash64UnseededFnPtr)(const Slice&); 19959: 19959: inline uint64_t GetSliceNPHash64(const Slice& s) { 19959: return NPHash64(s.data(), s.size()); 19959: } 19959: 19959: inline uint64_t GetSliceNPHash64(const Slice& s, uint64_t seed) { 19959: return NPHash64(s.data(), s.size(), seed); 19959: } 19959: 19959: 19959: 19959: extern uint64_t GetSlicePartsNPHash64(const SliceParts& data, uint64_t seed); 19959: 19959: inline size_t GetSliceRangedNPHash(const Slice& s, size_t range) { 19959: return FastRange64(NPHash64(s.data(), s.size()), range); 19959: } 19959: 19959: 19959: inline uint32_t GetSliceHash(const Slice& s) { 19959: return Hash(s.data(), s.size(), 397); 19959: } 19959: 19959: 19959: inline uint32_t Upper32of64(uint64_t v) { 19959: return static_cast(v >> 32); 19959: } 19959: inline uint32_t Lower32of64(uint64_t v) { return static_cast(v); } 19959: 19959: 19959: struct SliceHasher32 { 19959: uint32_t operator()(const Slice& s) const { return GetSliceHash(s); } 19959: }; 19959: struct SliceNPHasher64 { 19959: uint64_t operator()(const Slice& s, uint64_t seed = 0) const { 19959: return GetSliceNPHash64(s, seed); 19959: } 19959: }; 19959: 19959: } 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 2 19959: 19959: namespace rocksdb { 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 19959: class MutexLock { 19959: public: 19959: explicit MutexLock(port::Mutex *mu) : mu_(mu) { this->mu_->Lock(); } 19959: 19959: MutexLock(const MutexLock &) = delete; 19959: void operator=(const MutexLock &) = delete; 19959: 19959: ~MutexLock() { this->mu_->Unlock(); } 19959: 19959: private: 19959: port::Mutex *const mu_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class ReadLock { 19959: public: 19959: explicit ReadLock(port::RWMutex *mu) : mu_(mu) { this->mu_->ReadLock(); } 19959: 19959: ReadLock(const ReadLock &) = delete; 19959: void operator=(const ReadLock &) = delete; 19959: 19959: ~ReadLock() { this->mu_->ReadUnlock(); } 19959: 19959: private: 19959: port::RWMutex *const mu_; 19959: }; 19959: 19959: 19959: 19959: 19959: class ReadUnlock { 19959: public: 19959: explicit ReadUnlock(port::RWMutex *mu) : mu_(mu) { mu->AssertHeld(); } 19959: 19959: ReadUnlock(const ReadUnlock &) = delete; 19959: ReadUnlock &operator=(const ReadUnlock &) = delete; 19959: 19959: ~ReadUnlock() { mu_->ReadUnlock(); } 19959: 19959: private: 19959: port::RWMutex *const mu_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class WriteLock { 19959: public: 19959: explicit WriteLock(port::RWMutex *mu) : mu_(mu) { this->mu_->WriteLock(); } 19959: 19959: WriteLock(const WriteLock &) = delete; 19959: void operator=(const WriteLock &) = delete; 19959: 19959: ~WriteLock() { this->mu_->WriteUnlock(); } 19959: 19959: private: 19959: port::RWMutex *const mu_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: class SpinMutex { 19959: public: 19959: SpinMutex() : locked_(false) {} 19959: 19959: bool try_lock() { 19959: auto currently_locked = locked_.load(std::memory_order_relaxed); 19959: return !currently_locked && 19959: locked_.compare_exchange_weak(currently_locked, true, 19959: std::memory_order_acquire, 19959: std::memory_order_relaxed); 19959: } 19959: 19959: void lock() { 19959: for (size_t tries = 0;; ++tries) { 19959: if (try_lock()) { 19959: 19959: break; 19959: } 19959: port::AsmVolatilePause(); 19959: if (tries > 100) { 19959: std::this_thread::yield(); 19959: } 19959: } 19959: } 19959: 19959: void unlock() { locked_.store(false, std::memory_order_release); } 19959: 19959: private: 19959: std::atomic locked_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct alignas(64U) CacheAlignedWrapper { 19959: T obj_; 19959: }; 19959: template 19959: struct Unwrap { 19959: using type = T; 19959: static type &Go(T &t) { return t; } 19959: }; 19959: template 19959: struct Unwrap> { 19959: using type = T; 19959: static type &Go(CacheAlignedWrapper &t) { return t.obj_; } 19959: }; 19959: # 165 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 19959: template 19959: class Striped { 19959: public: 19959: explicit Striped(size_t stripe_count) 19959: : stripe_count_(stripe_count), data_(new T[stripe_count]) {} 19959: 19959: using Unwrapped = typename Unwrap::type; 19959: Unwrapped &Get(const Key &key, uint64_t seed = 0) { 19959: size_t index = FastRangeGeneric(hash_(key, seed), stripe_count_); 19959: return Unwrap::Go(data_[index]); 19959: } 19959: 19959: size_t ApproximateMemoryUsage() const { 19959: 19959: 19959: return sizeof(*this) + stripe_count_ * sizeof(T); 19959: } 19959: 19959: private: 19959: size_t stripe_count_; 19959: std::unique_ptr data_; 19959: Hash hash_; 19959: }; 19959: 19959: } 19959: # 18 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 2 19959: # 30 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 19959: namespace rocksdb { 19959: 19959: enum TickersInternal : uint32_t { 19959: INTERNAL_TICKER_ENUM_START = TICKER_ENUM_MAX, 19959: INTERNAL_TICKER_ENUM_MAX 19959: }; 19959: 19959: enum HistogramsInternal : uint32_t { 19959: INTERNAL_HISTOGRAM_START = HISTOGRAM_ENUM_MAX, 19959: INTERNAL_HISTOGRAM_ENUM_MAX 19959: }; 19959: 19959: class StatisticsImpl : public Statistics { 19959: public: 19959: StatisticsImpl(std::shared_ptr stats); 19959: virtual ~StatisticsImpl(); 19959: const char* Name() const override { return kClassName(); } 19959: static const char* kClassName() { return "BasicStatistics"; } 19959: 19959: virtual uint64_t getTickerCount(uint32_t ticker_type) const override; 19959: virtual void histogramData(uint32_t histogram_type, 19959: HistogramData* const data) const override; 19959: std::string getHistogramString(uint32_t histogram_type) const override; 19959: 19959: virtual void setTickerCount(uint32_t ticker_type, uint64_t count) override; 19959: virtual uint64_t getAndResetTickerCount(uint32_t ticker_type) override; 19959: virtual void recordTick(uint32_t ticker_type, uint64_t count) override; 19959: 19959: 19959: 19959: 19959: void measureTime(uint32_t histogramType, uint64_t time) override { 19959: recordInHistogram(histogramType, time); 19959: } 19959: virtual void recordInHistogram(uint32_t histogram_type, 19959: uint64_t value) override; 19959: 19959: virtual Status Reset() override; 19959: virtual std::string ToString() const override; 19959: virtual bool getTickerMap(std::map*) const override; 19959: virtual bool HistEnabledForType(uint32_t type) const override; 19959: 19959: const Customizable* Inner() const override { return stats_.get(); } 19959: 19959: private: 19959: 19959: std::shared_ptr stats_; 19959: 19959: 19959: mutable port::Mutex aggregate_lock_; 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct alignas(64U) StatisticsData { 19959: std::atomic_uint_fast64_t tickers_[INTERNAL_TICKER_ENUM_MAX] = {{0}}; 19959: HistogramImpl histograms_[INTERNAL_HISTOGRAM_ENUM_MAX]; 19959: 19959: char 19959: padding[(64U - 19959: (INTERNAL_TICKER_ENUM_MAX * sizeof(std::atomic_uint_fast64_t) + 19959: INTERNAL_HISTOGRAM_ENUM_MAX * sizeof(HistogramImpl)) % 19959: 64U)] ; 19959: 19959: void* operator new(size_t s) { return port::cacheline_aligned_alloc(s); } 19959: void* operator new[](size_t s) { return port::cacheline_aligned_alloc(s); } 19959: void operator delete(void* p) { port::cacheline_aligned_free(p); } 19959: void operator delete[](void* p) { port::cacheline_aligned_free(p); } 19959: }; 19959: 19959: 19959: static_assert(sizeof(StatisticsData) % 64U == 0, 19959: "Expected " "64U" "-byte aligned"); 19959: 19959: 19959: CoreLocalArray per_core_stats_; 19959: 19959: uint64_t getTickerCountLocked(uint32_t ticker_type) const; 19959: std::unique_ptr getHistogramImplLocked( 19959: uint32_t histogram_type) const; 19959: void setTickerCountLocked(uint32_t ticker_type, uint64_t count); 19959: }; 19959: 19959: 19959: inline void RecordInHistogram(Statistics* statistics, uint32_t histogram_type, 19959: uint64_t value) { 19959: if (statistics) { 19959: statistics->recordInHistogram(histogram_type, value); 19959: } 19959: } 19959: 19959: inline void RecordTimeToHistogram(Statistics* statistics, 19959: uint32_t histogram_type, uint64_t value) { 19959: if (statistics) { 19959: statistics->reportTimeToHistogram(histogram_type, value); 19959: } 19959: } 19959: 19959: inline void RecordTick(Statistics* statistics, uint32_t ticker_type, 19959: uint64_t count = 1) { 19959: if (statistics) { 19959: statistics->recordTick(ticker_type, count); 19959: } 19959: } 19959: 19959: inline void SetTickerCount(Statistics* statistics, uint32_t ticker_type, 19959: uint64_t count) { 19959: if (statistics) { 19959: statistics->setTickerCount(ticker_type, count); 19959: } 19959: } 19959: 19959: } 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_step_timer.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/system_clock.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/system_clock.h" 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/chrono" 1 3 19959: # 33 "/usr/include/c++/13/chrono" 3 19959: 19959: # 34 "/usr/include/c++/13/chrono" 3 19959: # 59 "/usr/include/c++/13/chrono" 3 19959: 19959: # 59 "/usr/include/c++/13/chrono" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 76 "/usr/include/c++/13/chrono" 3 19959: namespace chrono 19959: { 19959: # 3298 "/usr/include/c++/13/chrono" 3 19959: } 19959: # 3326 "/usr/include/c++/13/chrono" 3 19959: 19959: } 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/system_clock.h" 2 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/system_clock.h" 19959: 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/system_clock.h" 19959: namespace rocksdb { 19959: struct ConfigOptions; 19959: 19959: 19959: 19959: class SystemClock : public Customizable { 19959: public: 19959: ~SystemClock() override {} 19959: 19959: static const char* Type() { return "SystemClock"; } 19959: static Status CreateFromString(const ConfigOptions& options, 19959: const std::string& value, 19959: std::shared_ptr* result); 19959: 19959: virtual const char* Name() const override = 0; 19959: 19959: 19959: 19959: static const char* kDefaultName() { return "DefaultClock"; } 19959: 19959: 19959: 19959: static const std::shared_ptr& Default(); 19959: 19959: 19959: 19959: 19959: virtual uint64_t NowMicros() = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 19959: 19959: 19959: 19959: virtual uint64_t CPUMicros() { return 0; } 19959: 19959: 19959: 19959: 19959: virtual uint64_t CPUNanos() { return CPUMicros() * 1000; } 19959: 19959: 19959: virtual void SleepForMicroseconds(int micros) = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual bool TimedWait(port::CondVar* cv, std::chrono::microseconds deadline); 19959: 19959: 19959: 19959: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 19959: 19959: 19959: virtual std::string TimeToString(uint64_t time) = 0; 19959: }; 19959: 19959: 19959: 19959: class SystemClockWrapper : public SystemClock { 19959: public: 19959: explicit SystemClockWrapper(const std::shared_ptr& t); 19959: 19959: uint64_t NowMicros() override { return target_->NowMicros(); } 19959: 19959: uint64_t NowNanos() override { return target_->NowNanos(); } 19959: 19959: uint64_t CPUMicros() override { return target_->CPUMicros(); } 19959: 19959: uint64_t CPUNanos() override { return target_->CPUNanos(); } 19959: 19959: virtual void SleepForMicroseconds(int micros) override { 19959: return target_->SleepForMicroseconds(micros); 19959: } 19959: 19959: virtual bool TimedWait(port::CondVar* cv, 19959: std::chrono::microseconds deadline) override { 19959: return target_->TimedWait(cv, deadline); 19959: } 19959: 19959: Status GetCurrentTime(int64_t* unix_time) override { 19959: return target_->GetCurrentTime(unix_time); 19959: } 19959: 19959: std::string TimeToString(uint64_t time) override { 19959: return target_->TimeToString(time); 19959: } 19959: 19959: Status PrepareOptions(const ConfigOptions& options) override; 19959: std::string SerializeOptions(const ConfigOptions& config_options, 19959: const std::string& header) const override; 19959: const Customizable* Inner() const override { return target_.get(); } 19959: 19959: protected: 19959: std::shared_ptr target_; 19959: }; 19959: 19959: } 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_step_timer.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: class PerfStepTimer { 19959: public: 19959: explicit PerfStepTimer( 19959: uint64_t* metric, SystemClock* clock = nullptr, bool use_cpu_time = false, 19959: PerfLevel enable_level = PerfLevel::kEnableTimeExceptForMutex, 19959: Statistics* statistics = nullptr, uint32_t ticker_type = 0) 19959: : perf_counter_enabled_(perf_level >= enable_level), 19959: use_cpu_time_(use_cpu_time), 19959: ticker_type_(ticker_type), 19959: clock_((perf_counter_enabled_ || statistics != nullptr) 19959: ? (clock ? clock : SystemClock::Default().get()) 19959: : nullptr), 19959: start_(0), 19959: metric_(metric), 19959: statistics_(statistics) {} 19959: 19959: ~PerfStepTimer() { Stop(); } 19959: 19959: void Start() { 19959: if (perf_counter_enabled_ || statistics_ != nullptr) { 19959: start_ = time_now(); 19959: } 19959: } 19959: 19959: void Measure() { 19959: if (start_) { 19959: uint64_t now = time_now(); 19959: *metric_ += now - start_; 19959: start_ = now; 19959: } 19959: } 19959: 19959: void Stop() { 19959: if (start_) { 19959: uint64_t duration = time_now() - start_; 19959: if (perf_counter_enabled_) { 19959: *metric_ += duration; 19959: } 19959: 19959: if (statistics_ != nullptr) { 19959: RecordTick(statistics_, ticker_type_, duration); 19959: } 19959: start_ = 0; 19959: } 19959: } 19959: 19959: private: 19959: uint64_t time_now() { 19959: if (!use_cpu_time_) { 19959: return clock_->NowNanos(); 19959: } else { 19959: return clock_->CPUNanos(); 19959: } 19959: } 19959: 19959: const bool perf_counter_enabled_; 19959: const bool use_cpu_time_; 19959: uint32_t ticker_type_; 19959: SystemClock* const clock_; 19959: uint64_t start_; 19959: uint64_t* metric_; 19959: Statistics* statistics_; 19959: }; 19959: 19959: } 19959: # 8 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_context_imp.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_context.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_context.h" 19959: namespace rocksdb { 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_context.h" 19959: struct PerfContextByLevelBase { 19959: 19959: 19959: 19959: uint64_t bloom_filter_useful = 0; 19959: 19959: uint64_t bloom_filter_full_positive = 0; 19959: 19959: 19959: uint64_t bloom_filter_full_true_positive = 0; 19959: 19959: 19959: 19959: uint64_t user_key_return_count = 0; 19959: 19959: 19959: uint64_t get_from_table_nanos = 0; 19959: 19959: uint64_t block_cache_hit_count = 0; 19959: uint64_t block_cache_miss_count = 0; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct PerfContextByLevel : public PerfContextByLevelBase { 19959: void Reset(); 19959: }; 19959: # 67 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_context.h" 19959: struct PerfContextBase { 19959: uint64_t user_key_comparison_count; 19959: uint64_t block_cache_hit_count; 19959: uint64_t block_read_count; 19959: uint64_t block_read_byte; 19959: uint64_t block_read_time; 19959: 19959: uint64_t block_read_cpu_time; 19959: uint64_t block_cache_index_hit_count; 19959: 19959: uint64_t block_cache_standalone_handle_count; 19959: 19959: 19959: uint64_t block_cache_real_handle_count; 19959: uint64_t index_block_read_count; 19959: uint64_t block_cache_filter_hit_count; 19959: uint64_t filter_block_read_count; 19959: uint64_t compression_dict_block_read_count; 19959: 19959: 19959: uint64_t secondary_cache_hit_count; 19959: 19959: uint64_t compressed_sec_cache_insert_real_count; 19959: 19959: uint64_t compressed_sec_cache_insert_dummy_count; 19959: 19959: uint64_t compressed_sec_cache_uncompressed_bytes; 19959: 19959: uint64_t compressed_sec_cache_compressed_bytes; 19959: 19959: uint64_t block_checksum_time; 19959: uint64_t block_decompress_time; 19959: 19959: uint64_t get_read_bytes; 19959: uint64_t multiget_read_bytes; 19959: uint64_t iter_read_bytes; 19959: 19959: uint64_t blob_cache_hit_count; 19959: uint64_t blob_read_count; 19959: uint64_t blob_read_byte; 19959: uint64_t blob_read_time; 19959: uint64_t blob_checksum_time; 19959: uint64_t blob_decompress_time; 19959: # 128 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_context.h" 19959: uint64_t internal_key_skipped_count; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint64_t internal_delete_skipped_count; 19959: 19959: 19959: 19959: uint64_t internal_recent_skipped_count; 19959: 19959: 19959: 19959: uint64_t internal_merge_count; 19959: 19959: 19959: 19959: uint64_t internal_merge_point_lookup_count; 19959: 19959: 19959: 19959: uint64_t internal_range_del_reseek_count; 19959: 19959: uint64_t get_snapshot_time; 19959: uint64_t get_from_memtable_time; 19959: uint64_t get_from_memtable_count; 19959: 19959: uint64_t get_post_process_time; 19959: uint64_t get_from_output_files_time; 19959: 19959: uint64_t seek_on_memtable_time; 19959: 19959: 19959: uint64_t seek_on_memtable_count; 19959: 19959: uint64_t next_on_memtable_count; 19959: 19959: uint64_t prev_on_memtable_count; 19959: 19959: uint64_t seek_child_seek_time; 19959: 19959: uint64_t seek_child_seek_count; 19959: uint64_t seek_min_heap_time; 19959: uint64_t seek_max_heap_time; 19959: 19959: uint64_t seek_internal_seek_time; 19959: 19959: uint64_t find_next_user_entry_time; 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint64_t write_wal_time; 19959: 19959: uint64_t write_memtable_time; 19959: 19959: uint64_t write_delay_time; 19959: 19959: 19959: uint64_t write_scheduling_flushes_compactions_time; 19959: 19959: uint64_t write_pre_and_post_process_time; 19959: 19959: 19959: uint64_t write_thread_wait_nanos; 19959: 19959: 19959: uint64_t db_mutex_lock_nanos; 19959: 19959: uint64_t db_condition_wait_nanos; 19959: 19959: uint64_t merge_operator_time_nanos; 19959: 19959: 19959: uint64_t read_index_block_nanos; 19959: 19959: uint64_t read_filter_block_nanos; 19959: 19959: uint64_t new_table_block_iter_nanos; 19959: 19959: uint64_t new_table_iterator_nanos; 19959: 19959: uint64_t block_seek_nanos; 19959: 19959: uint64_t find_table_nanos; 19959: 19959: uint64_t bloom_memtable_hit_count; 19959: 19959: uint64_t bloom_memtable_miss_count; 19959: 19959: uint64_t bloom_sst_hit_count; 19959: 19959: uint64_t bloom_sst_miss_count; 19959: 19959: 19959: uint64_t key_lock_wait_time; 19959: 19959: uint64_t key_lock_wait_count; 19959: 19959: 19959: 19959: uint64_t env_new_sequential_file_nanos; 19959: uint64_t env_new_random_access_file_nanos; 19959: uint64_t env_new_writable_file_nanos; 19959: uint64_t env_reuse_writable_file_nanos; 19959: uint64_t env_new_random_rw_file_nanos; 19959: uint64_t env_new_directory_nanos; 19959: uint64_t env_file_exists_nanos; 19959: uint64_t env_get_children_nanos; 19959: uint64_t env_get_children_file_attributes_nanos; 19959: uint64_t env_delete_file_nanos; 19959: uint64_t env_create_dir_nanos; 19959: uint64_t env_create_dir_if_missing_nanos; 19959: uint64_t env_delete_dir_nanos; 19959: uint64_t env_get_file_size_nanos; 19959: uint64_t env_get_file_modification_time_nanos; 19959: uint64_t env_rename_file_nanos; 19959: uint64_t env_link_file_nanos; 19959: uint64_t env_lock_file_nanos; 19959: uint64_t env_unlock_file_nanos; 19959: uint64_t env_new_logger_nanos; 19959: 19959: uint64_t get_cpu_nanos; 19959: uint64_t iter_next_cpu_nanos; 19959: uint64_t iter_prev_cpu_nanos; 19959: uint64_t iter_seek_cpu_nanos; 19959: 19959: 19959: 19959: 19959: uint64_t iter_next_count; 19959: uint64_t iter_prev_count; 19959: uint64_t iter_seek_count; 19959: 19959: 19959: uint64_t encrypt_data_nanos; 19959: 19959: uint64_t decrypt_data_nanos; 19959: 19959: uint64_t number_async_seek; 19959: }; 19959: 19959: struct PerfContext : public PerfContextBase { 19959: ~PerfContext(); 19959: 19959: PerfContext() {} 19959: 19959: PerfContext(const PerfContext&); 19959: PerfContext& operator=(const PerfContext&); 19959: PerfContext(PerfContext&&) noexcept; 19959: 19959: void Reset(); 19959: 19959: std::string ToString(bool exclude_zero_counters = false) const; 19959: 19959: 19959: void EnablePerLevelPerfContext(); 19959: 19959: 19959: void DisablePerLevelPerfContext(); 19959: 19959: 19959: void ClearPerLevelPerfContext(); 19959: 19959: std::map* level_to_perf_context = nullptr; 19959: bool per_level_perf_context_enabled = false; 19959: 19959: void copyMetrics(const PerfContext* other) noexcept; 19959: }; 19959: # 312 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_context.h" 19959: PerfContext* get_perf_context(); 19959: 19959: } 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_context_imp.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/stop_watch.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: 19959: class StopWatch { 19959: public: 19959: StopWatch(SystemClock* clock, Statistics* statistics, 19959: const uint32_t hist_type_1, 19959: const uint32_t hist_type_2 = Histograms::HISTOGRAM_ENUM_MAX, 19959: uint64_t* elapsed = nullptr, bool overwrite = true, 19959: bool delay_enabled = false) 19959: : clock_(clock), 19959: statistics_(statistics), 19959: hist_type_1_(statistics && statistics->HistEnabledForType(hist_type_1) 19959: ? hist_type_1 19959: : Histograms::HISTOGRAM_ENUM_MAX), 19959: hist_type_2_(statistics && statistics->HistEnabledForType(hist_type_2) 19959: ? hist_type_2 19959: : Histograms::HISTOGRAM_ENUM_MAX), 19959: elapsed_(elapsed), 19959: overwrite_(overwrite), 19959: stats_enabled_(statistics && 19959: statistics->get_stats_level() > 19959: StatsLevel::kExceptTimers && 19959: (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX || 19959: hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX)), 19959: delay_enabled_(delay_enabled), 19959: total_delay_(0), 19959: delay_start_time_(0), 19959: start_time_((stats_enabled_ || elapsed != nullptr) ? clock->NowMicros() 19959: : 0) {} 19959: 19959: ~StopWatch() { 19959: if (elapsed_) { 19959: if (overwrite_) { 19959: *elapsed_ = clock_->NowMicros() - start_time_; 19959: } else { 19959: *elapsed_ += clock_->NowMicros() - start_time_; 19959: } 19959: } 19959: if (elapsed_ && delay_enabled_) { 19959: *elapsed_ -= total_delay_; 19959: } 19959: if (stats_enabled_) { 19959: const auto time = (elapsed_ != nullptr) 19959: ? *elapsed_ 19959: : (clock_->NowMicros() - start_time_); 19959: if (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX) { 19959: statistics_->reportTimeToHistogram(hist_type_1_, time); 19959: } 19959: if (hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX) { 19959: statistics_->reportTimeToHistogram(hist_type_2_, time); 19959: } 19959: } 19959: } 19959: 19959: void DelayStart() { 19959: 19959: 19959: if (elapsed_ && delay_enabled_ && delay_start_time_ == 0) { 19959: delay_start_time_ = clock_->NowMicros(); 19959: } 19959: } 19959: 19959: void DelayStop() { 19959: if (elapsed_ && delay_enabled_ && delay_start_time_ != 0) { 19959: total_delay_ += clock_->NowMicros() - delay_start_time_; 19959: } 19959: 19959: 19959: delay_start_time_ = 0; 19959: } 19959: 19959: uint64_t GetDelay() const { return delay_enabled_ ? total_delay_ : 0; } 19959: 19959: uint64_t start_time() const { return start_time_; } 19959: 19959: private: 19959: SystemClock* clock_; 19959: Statistics* statistics_; 19959: const uint32_t hist_type_1_; 19959: const uint32_t hist_type_2_; 19959: uint64_t* elapsed_; 19959: bool overwrite_; 19959: bool stats_enabled_; 19959: bool delay_enabled_; 19959: uint64_t total_delay_; 19959: uint64_t delay_start_time_; 19959: const uint64_t start_time_; 19959: }; 19959: 19959: 19959: class StopWatchNano { 19959: public: 19959: explicit StopWatchNano(SystemClock* clock, bool auto_start = false) 19959: : clock_(clock), start_(0) { 19959: if (auto_start) { 19959: Start(); 19959: } 19959: } 19959: 19959: void Start() { start_ = clock_->NowNanos(); } 19959: 19959: uint64_t ElapsedNanos(bool reset = false) { 19959: auto now = clock_->NowNanos(); 19959: auto elapsed = now - start_; 19959: if (reset) { 19959: start_ = now; 19959: } 19959: return elapsed; 19959: } 19959: 19959: uint64_t ElapsedNanosSafe(bool reset = false) { 19959: return (clock_ != nullptr) ? ElapsedNanos(reset) : 0U; 19959: } 19959: 19959: bool IsStarted() { return start_ != 0; } 19959: 19959: private: 19959: SystemClock* clock_; 19959: uint64_t start_; 19959: }; 19959: 19959: } 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_context_imp.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern thread_local PerfContext perf_context; 19959: # 96 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_context_imp.h" 19959: } 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/util/user_comparator_wrapper.h" 2 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: class UserComparatorWrapper { 19959: public: 19959: 19959: 19959: UserComparatorWrapper() : user_comparator_(nullptr) {} 19959: 19959: explicit UserComparatorWrapper(const Comparator* const user_cmp) 19959: : user_comparator_(user_cmp) {} 19959: 19959: ~UserComparatorWrapper() = default; 19959: 19959: const Comparator* user_comparator() const { return user_comparator_; } 19959: 19959: int Compare(const Slice& a, const Slice& b) const { 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 19959: return user_comparator_->Compare(a, b); 19959: } 19959: 19959: bool Equal(const Slice& a, const Slice& b) const { 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 19959: return user_comparator_->Equal(a, b); 19959: } 19959: 19959: int CompareTimestamp(const Slice& ts1, const Slice& ts2) const { 19959: return user_comparator_->CompareTimestamp(ts1, ts2); 19959: } 19959: 19959: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 19959: return user_comparator_->CompareWithoutTimestamp(a, b); 19959: } 19959: 19959: int CompareWithoutTimestamp(const Slice& a, bool a_has_ts, const Slice& b, 19959: bool b_has_ts) const { 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 19959: return user_comparator_->CompareWithoutTimestamp(a, a_has_ts, b, b_has_ts); 19959: } 19959: 19959: bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 19959: return user_comparator_->EqualWithoutTimestamp(a, b); 19959: } 19959: 19959: private: 19959: const Comparator* user_comparator_; 19959: }; 19959: 19959: } 19959: # 23 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class InternalKey; 19959: 19959: 19959: 19959: 19959: 19959: 19959: enum ValueType : unsigned char { 19959: kTypeDeletion = 0x0, 19959: kTypeValue = 0x1, 19959: kTypeMerge = 0x2, 19959: kTypeLogData = 0x3, 19959: kTypeColumnFamilyDeletion = 0x4, 19959: kTypeColumnFamilyValue = 0x5, 19959: kTypeColumnFamilyMerge = 0x6, 19959: kTypeSingleDeletion = 0x7, 19959: kTypeColumnFamilySingleDeletion = 0x8, 19959: kTypeBeginPrepareXID = 0x9, 19959: kTypeEndPrepareXID = 0xA, 19959: kTypeCommitXID = 0xB, 19959: kTypeRollbackXID = 0xC, 19959: kTypeNoop = 0xD, 19959: kTypeColumnFamilyRangeDeletion = 0xE, 19959: kTypeRangeDeletion = 0xF, 19959: kTypeColumnFamilyBlobIndex = 0x10, 19959: kTypeBlobIndex = 0x11, 19959: 19959: 19959: 19959: 19959: kTypeBeginPersistedPrepareXID = 0x12, 19959: 19959: 19959: 19959: kTypeBeginUnprepareXID = 0x13, 19959: kTypeDeletionWithTimestamp = 0x14, 19959: kTypeCommitXIDAndTimestamp = 0x15, 19959: kTypeWideColumnEntity = 0x16, 19959: kTypeColumnFamilyWideColumnEntity = 0x17, 19959: kTypeMaxValid, 19959: 19959: kMaxValue = 0x7F 19959: }; 19959: 19959: 19959: extern const ValueType kValueTypeForSeek; 19959: extern const ValueType kValueTypeForSeekForPrev; 19959: 19959: 19959: 19959: inline bool IsValueType(ValueType t) { 19959: return t <= kTypeMerge || kTypeSingleDeletion == t || kTypeBlobIndex == t || 19959: kTypeDeletionWithTimestamp == t || kTypeWideColumnEntity == t; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: inline bool IsExtendedValueType(ValueType t) { 19959: return IsValueType(t) || t == kTypeRangeDeletion || t == kTypeMaxValid; 19959: } 19959: 19959: 19959: 19959: static const SequenceNumber kMaxSequenceNumber = ((0x1ull << 56) - 1); 19959: 19959: static const SequenceNumber kDisableGlobalSequenceNumber = 19959: std::numeric_limits::max(); 19959: 19959: constexpr uint64_t kNumInternalBytes = 8; 19959: 19959: 19959: extern const std::string kDisableUserTimestamp; 19959: 19959: 19959: 19959: struct ParsedInternalKey { 19959: Slice user_key; 19959: SequenceNumber sequence; 19959: ValueType type; 19959: 19959: ParsedInternalKey() 19959: : sequence(kMaxSequenceNumber), 19959: type(kTypeDeletion) 19959: {} 19959: 19959: ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t) 19959: : user_key(u), sequence(seq), type(t) {} 19959: std::string DebugString(bool log_err_key, bool hex) const; 19959: 19959: void clear() { 19959: user_key.clear(); 19959: sequence = 0; 19959: type = kTypeDeletion; 19959: } 19959: 19959: void SetTimestamp(const Slice& ts) { 19959: 19959: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ts.size() <= user_key.size() 19959: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "ts.size() <= user_key.size()" 19959: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 130, __extension__ __PRETTY_FUNCTION__)) 19959: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: const char* addr = user_key.data() + user_key.size() - ts.size(); 19959: memcpy(const_cast(addr), ts.data(), ts.size()); 19959: } 19959: 19959: Slice GetTimestamp(size_t ts_sz) { 19959: 19959: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ts_sz <= user_key.size() 19959: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "ts_sz <= user_key.size()" 19959: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 136, __extension__ __PRETTY_FUNCTION__)) 19959: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: const char* addr = user_key.data() + user_key.size() - ts_sz; 19959: return Slice(const_cast(addr), ts_sz); 19959: } 19959: }; 19959: 19959: 19959: inline size_t InternalKeyEncodingLength(const ParsedInternalKey& key) { 19959: return key.user_key.size() + kNumInternalBytes; 19959: } 19959: 19959: 19959: inline uint64_t PackSequenceAndType(uint64_t seq, ValueType t) { 19959: 19959: # 149 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 149 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: seq <= kMaxSequenceNumber 19959: # 149 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 149 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "seq <= kMaxSequenceNumber" 19959: # 149 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 149, __extension__ __PRETTY_FUNCTION__)) 19959: # 149 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: 19959: 19959: # 151 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 151 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: IsExtendedValueType(t) || t == kTypeMaxValid 19959: # 151 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 151 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "IsExtendedValueType(t) || t == kTypeMaxValid" 19959: # 151 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 151, __extension__ __PRETTY_FUNCTION__)) 19959: # 151 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: return (seq << 8) | t; 19959: } 19959: 19959: 19959: 19959: inline void UnPackSequenceAndType(uint64_t packed, uint64_t* seq, 19959: ValueType* t) { 19959: *seq = packed >> 8; 19959: *t = static_cast(packed & 0xff); 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: EntryType GetEntryType(ValueType value_type); 19959: 19959: 19959: 19959: 19959: 19959: 19959: void AppendInternalKey(std::string* result, const ParsedInternalKey& key); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void AppendInternalKeyWithDifferentTimestamp(std::string* result, 19959: const ParsedInternalKey& key, 19959: const Slice& ts); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void AppendInternalKeyFooter(std::string* result, SequenceNumber s, 19959: ValueType t); 19959: 19959: 19959: 19959: 19959: 19959: 19959: void AppendKeyWithMinTimestamp(std::string* result, const Slice& key, 19959: size_t ts_sz); 19959: 19959: 19959: 19959: 19959: 19959: 19959: void AppendKeyWithMaxTimestamp(std::string* result, const Slice& key, 19959: size_t ts_sz); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void AppendUserKeyWithMinTimestamp(std::string* result, const Slice& key, 19959: size_t ts_sz); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void AppendUserKeyWithMaxTimestamp(std::string* result, const Slice& key, 19959: size_t ts_sz); 19959: # 237 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: void PadInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 19959: size_t ts_sz); 19959: # 247 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: void StripTimestampFromInternalKey(std::string* result, const Slice& key, 19959: size_t ts_sz); 19959: # 257 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: void ReplaceInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 19959: size_t ts_sz); 19959: 19959: 19959: 19959: 19959: 19959: Status ParseInternalKey(const Slice& internal_key, ParsedInternalKey* result, 19959: bool log_err_key); 19959: 19959: 19959: 19959: 19959: 19959: inline Slice ExtractUserKey(const Slice& internal_key) { 19959: 19959: # 272 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 272 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: internal_key.size() >= kNumInternalBytes 19959: # 272 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 272 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "internal_key.size() >= kNumInternalBytes" 19959: # 272 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 272, __extension__ __PRETTY_FUNCTION__)) 19959: # 272 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: return Slice(internal_key.data(), internal_key.size() - kNumInternalBytes); 19959: } 19959: 19959: 19959: 19959: inline Slice ExtractUserKeyAndStripTimestamp(const Slice& internal_key, 19959: size_t ts_sz) { 19959: Slice ret = internal_key; 19959: ret.remove_suffix(kNumInternalBytes + ts_sz); 19959: return ret; 19959: } 19959: 19959: 19959: 19959: inline Slice StripTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 19959: Slice ret = user_key; 19959: ret.remove_suffix(ts_sz); 19959: return ret; 19959: } 19959: 19959: 19959: 19959: inline Slice ExtractTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 19959: 19959: # 296 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 296 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: user_key.size() >= ts_sz 19959: # 296 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 296 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "user_key.size() >= ts_sz" 19959: # 296 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 296, __extension__ __PRETTY_FUNCTION__)) 19959: # 296 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: return Slice(user_key.data() + user_key.size() - ts_sz, ts_sz); 19959: } 19959: 19959: 19959: 19959: inline Slice ExtractTimestampFromKey(const Slice& internal_key, size_t ts_sz) { 19959: const size_t key_size = internal_key.size(); 19959: 19959: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: key_size >= kNumInternalBytes + ts_sz 19959: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "key_size >= kNumInternalBytes + ts_sz" 19959: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 304, __extension__ __PRETTY_FUNCTION__)) 19959: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: return Slice(internal_key.data() + key_size - ts_sz - kNumInternalBytes, 19959: ts_sz); 19959: } 19959: 19959: 19959: 19959: inline uint64_t ExtractInternalKeyFooter(const Slice& internal_key) { 19959: 19959: # 312 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 312 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: internal_key.size() >= kNumInternalBytes 19959: # 312 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 312 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "internal_key.size() >= kNumInternalBytes" 19959: # 312 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 312, __extension__ __PRETTY_FUNCTION__)) 19959: # 312 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: const size_t n = internal_key.size(); 19959: return DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 19959: } 19959: 19959: 19959: 19959: inline ValueType ExtractValueType(const Slice& internal_key) { 19959: uint64_t num = ExtractInternalKeyFooter(internal_key); 19959: unsigned char c = num & 0xff; 19959: return static_cast(c); 19959: } 19959: 19959: 19959: 19959: class InternalKeyComparator 19959: 19959: 19959: 19959: : public CompareInterface { 19959: private: 19959: UserComparatorWrapper user_comparator_; 19959: 19959: public: 19959: 19959: 19959: InternalKeyComparator() = default; 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit InternalKeyComparator(const Comparator* c) : user_comparator_(c) {} 19959: virtual ~InternalKeyComparator() {} 19959: 19959: int Compare(const Slice& a, const Slice& b) const override; 19959: 19959: bool Equal(const Slice& a, const Slice& b) const { 19959: 19959: 19959: return Compare(a, b) == 0; 19959: } 19959: 19959: 19959: int CompareKeySeq(const Slice& a, const Slice& b) const; 19959: int CompareKeySeq(const ParsedInternalKey& a, const Slice& b) const; 19959: 19959: const Comparator* user_comparator() const { 19959: return user_comparator_.user_comparator(); 19959: } 19959: 19959: int Compare(const InternalKey& a, const InternalKey& b) const; 19959: int Compare(const ParsedInternalKey& a, const ParsedInternalKey& b) const; 19959: int Compare(const Slice& a, const ParsedInternalKey& b) const; 19959: int Compare(const ParsedInternalKey& a, const Slice& b) const; 19959: 19959: 19959: 19959: 19959: int Compare(const Slice& a, SequenceNumber a_global_seqno, const Slice& b, 19959: SequenceNumber b_global_seqno) const; 19959: }; 19959: 19959: 19959: class InternalKey { 19959: private: 19959: std::string rep_; 19959: 19959: public: 19959: InternalKey() {} 19959: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t) { 19959: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, s, t)); 19959: } 19959: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t, Slice ts) { 19959: AppendInternalKeyWithDifferentTimestamp( 19959: &rep_, ParsedInternalKey(_user_key, s, t), ts); 19959: } 19959: 19959: 19959: 19959: void SetMaxPossibleForUserKey(const Slice& _user_key) { 19959: AppendInternalKey( 19959: &rep_, ParsedInternalKey(_user_key, 0, static_cast(0))); 19959: } 19959: 19959: 19959: 19959: void SetMinPossibleForUserKey(const Slice& _user_key) { 19959: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, kMaxSequenceNumber, 19959: kValueTypeForSeek)); 19959: } 19959: 19959: bool Valid() const { 19959: ParsedInternalKey parsed; 19959: return (ParseInternalKey(Slice(rep_), &parsed, false ) 19959: .ok()); 19959: } 19959: 19959: void DecodeFrom(const Slice& s) { rep_.assign(s.data(), s.size()); } 19959: Slice Encode() const { 19959: 19959: # 413 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 413 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: !rep_.empty() 19959: # 413 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 413 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "!rep_.empty()" 19959: # 413 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 413, __extension__ __PRETTY_FUNCTION__)) 19959: # 413 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: return rep_; 19959: } 19959: 19959: Slice user_key() const { return ExtractUserKey(rep_); } 19959: size_t size() const { return rep_.size(); } 19959: 19959: void Set(const Slice& _user_key, SequenceNumber s, ValueType t) { 19959: SetFrom(ParsedInternalKey(_user_key, s, t)); 19959: } 19959: 19959: void Set(const Slice& _user_key_with_ts, SequenceNumber s, ValueType t, 19959: const Slice& ts) { 19959: ParsedInternalKey pik = ParsedInternalKey(_user_key_with_ts, s, t); 19959: 19959: 19959: SetFrom(pik, ts); 19959: } 19959: 19959: void SetFrom(const ParsedInternalKey& p) { 19959: rep_.clear(); 19959: AppendInternalKey(&rep_, p); 19959: } 19959: 19959: void SetFrom(const ParsedInternalKey& p, const Slice& ts) { 19959: rep_.clear(); 19959: AppendInternalKeyWithDifferentTimestamp(&rep_, p, ts); 19959: } 19959: 19959: void Clear() { rep_.clear(); } 19959: 19959: 19959: 19959: std::string* rep() { return &rep_; } 19959: 19959: 19959: 19959: void ConvertFromUserKey(SequenceNumber s, ValueType t) { 19959: AppendInternalKeyFooter(&rep_, s, t); 19959: } 19959: 19959: std::string DebugString(bool hex) const; 19959: }; 19959: 19959: inline int InternalKeyComparator::Compare(const InternalKey& a, 19959: const InternalKey& b) const { 19959: return Compare(a.Encode(), b.Encode()); 19959: } 19959: 19959: inline Status ParseInternalKey(const Slice& internal_key, 19959: ParsedInternalKey* result, bool log_err_key) { 19959: const size_t n = internal_key.size(); 19959: 19959: if (n < kNumInternalBytes) { 19959: return Status::Corruption("Corrupted Key: Internal Key too small. Size=" + 19959: std::to_string(n) + ". "); 19959: } 19959: 19959: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 19959: unsigned char c = num & 0xff; 19959: result->sequence = num >> 8; 19959: result->type = static_cast(c); 19959: 19959: # 475 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 475 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: result->type <= ValueType::kMaxValue 19959: # 475 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 475 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "result->type <= ValueType::kMaxValue" 19959: # 475 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 475, __extension__ __PRETTY_FUNCTION__)) 19959: # 475 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: result->user_key = Slice(internal_key.data(), n - kNumInternalBytes); 19959: 19959: if (IsExtendedValueType(result->type)) { 19959: return Status::OK(); 19959: } else { 19959: return Status::Corruption("Corrupted Key", 19959: result->DebugString(log_err_key, true)); 19959: } 19959: } 19959: 19959: 19959: 19959: inline void UpdateInternalKey(std::string* ikey, uint64_t seq, ValueType t) { 19959: size_t ikey_sz = ikey->size(); 19959: 19959: # 490 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 490 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ikey_sz >= kNumInternalBytes 19959: # 490 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 490 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "ikey_sz >= kNumInternalBytes" 19959: # 490 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 490, __extension__ __PRETTY_FUNCTION__)) 19959: # 490 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: uint64_t newval = (seq << 8) | t; 19959: 19959: 19959: 19959: EncodeFixed64(&(*ikey)[ikey_sz - kNumInternalBytes], newval); 19959: } 19959: 19959: 19959: inline uint64_t GetInternalKeySeqno(const Slice& internal_key) { 19959: const size_t n = internal_key.size(); 19959: 19959: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: n >= kNumInternalBytes 19959: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "n >= kNumInternalBytes" 19959: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 501, __extension__ __PRETTY_FUNCTION__)) 19959: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 19959: return num >> 8; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class IterKey { 19959: public: 19959: IterKey() 19959: : buf_(space_), 19959: key_(buf_), 19959: key_size_(0), 19959: buf_size_(sizeof(space_)), 19959: is_user_key_(true) {} 19959: 19959: IterKey(const IterKey&) = delete; 19959: void operator=(const IterKey&) = delete; 19959: 19959: ~IterKey() { ResetBuffer(); } 19959: 19959: 19959: void SetIsUserKey(bool is_user_key) { is_user_key_ = is_user_key; } 19959: 19959: 19959: 19959: 19959: Slice GetKey() const { return Slice(key_, key_size_); } 19959: 19959: Slice GetInternalKey() const { 19959: 19959: # 535 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 535 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: !IsUserKey() 19959: # 535 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 535 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "!IsUserKey()" 19959: # 535 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 535, __extension__ __PRETTY_FUNCTION__)) 19959: # 535 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: return Slice(key_, key_size_); 19959: } 19959: 19959: 19959: 19959: Slice GetUserKey() const { 19959: if (IsUserKey()) { 19959: return Slice(key_, key_size_); 19959: } else { 19959: 19959: # 545 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 545 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: key_size_ >= kNumInternalBytes 19959: # 545 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 545 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "key_size_ >= kNumInternalBytes" 19959: # 545 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 545, __extension__ __PRETTY_FUNCTION__)) 19959: # 545 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: return Slice(key_, key_size_ - kNumInternalBytes); 19959: } 19959: } 19959: 19959: size_t Size() const { return key_size_; } 19959: 19959: void Clear() { key_size_ = 0; } 19959: 19959: 19959: 19959: 19959: 19959: void TrimAppend(const size_t shared_len, const char* non_shared_data, 19959: const size_t non_shared_len) { 19959: 19959: # 560 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 560 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: shared_len <= key_size_ 19959: # 560 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 560 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "shared_len <= key_size_" 19959: # 560 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 560, __extension__ __PRETTY_FUNCTION__)) 19959: # 560 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: size_t total_size = shared_len + non_shared_len; 19959: 19959: if (IsKeyPinned() ) { 19959: 19959: EnlargeBufferIfNeeded(total_size); 19959: memcpy(buf_, key_, shared_len); 19959: } else if (total_size > buf_size_) { 19959: 19959: char* p = new char[total_size]; 19959: memcpy(p, key_, shared_len); 19959: 19959: if (buf_ != space_) { 19959: delete[] buf_; 19959: } 19959: 19959: buf_ = p; 19959: buf_size_ = total_size; 19959: } 19959: 19959: memcpy(buf_ + shared_len, non_shared_data, non_shared_len); 19959: key_ = buf_; 19959: key_size_ = total_size; 19959: } 19959: 19959: 19959: 19959: 19959: void TrimAppendWithTimestamp(const size_t shared_len, 19959: const char* non_shared_data, 19959: const size_t non_shared_len, 19959: const size_t ts_sz) { 19959: std::string kTsMin(ts_sz, static_cast(0)); 19959: std::string key_with_ts; 19959: std::vector key_parts_with_ts; 19959: if (IsUserKey()) { 19959: key_parts_with_ts = {Slice(key_, shared_len), 19959: Slice(non_shared_data, non_shared_len), 19959: Slice(kTsMin)}; 19959: } else { 19959: 19959: # 600 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 600 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: shared_len + non_shared_len >= kNumInternalBytes 19959: # 600 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 600 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "shared_len + non_shared_len >= kNumInternalBytes" 19959: # 600 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 600, __extension__ __PRETTY_FUNCTION__)) 19959: # 600 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: 19959: 19959: 19959: 19959: 19959: 19959: const size_t user_key_len = key_size_ - kNumInternalBytes; 19959: const size_t sharable_user_key_len = user_key_len - ts_sz; 19959: const size_t shared_user_key_len = 19959: std::min(shared_len, sharable_user_key_len); 19959: const size_t shared_internal_bytes_len = shared_len - shared_user_key_len; 19959: 19959: 19959: 19959: key_parts_with_ts.reserve(5); 19959: bool ts_added = false; 19959: 19959: MaybeAddKeyPartsWithTimestamp( 19959: key_, shared_user_key_len, 19959: shared_internal_bytes_len + non_shared_len < kNumInternalBytes, 19959: shared_len + non_shared_len - kNumInternalBytes, kTsMin, 19959: key_parts_with_ts, &ts_added); 19959: MaybeAddKeyPartsWithTimestamp( 19959: key_ + user_key_len, shared_internal_bytes_len, 19959: non_shared_len < kNumInternalBytes, 19959: shared_internal_bytes_len + non_shared_len - kNumInternalBytes, 19959: kTsMin, key_parts_with_ts, &ts_added); 19959: MaybeAddKeyPartsWithTimestamp(non_shared_data, non_shared_len, 19959: non_shared_len >= kNumInternalBytes, 19959: non_shared_len - kNumInternalBytes, kTsMin, 19959: key_parts_with_ts, &ts_added); 19959: 19959: # 632 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 632 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ts_added 19959: # 632 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 632 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "ts_added" 19959: # 632 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 632, __extension__ __PRETTY_FUNCTION__)) 19959: # 632 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: } 19959: 19959: Slice new_key(SliceParts(&key_parts_with_ts.front(), 19959: static_cast(key_parts_with_ts.size())), 19959: &key_with_ts); 19959: SetKey(new_key); 19959: } 19959: 19959: Slice SetKey(const Slice& key, bool copy = true) { 19959: 19959: return SetKeyImpl(key, copy); 19959: } 19959: 19959: 19959: 19959: 19959: Slice SetUserKey(const Slice& key, bool copy = true) { 19959: is_user_key_ = true; 19959: return SetKeyImpl(key, copy); 19959: } 19959: 19959: Slice SetInternalKey(const Slice& key, bool copy = true) { 19959: is_user_key_ = false; 19959: return SetKeyImpl(key, copy); 19959: } 19959: 19959: 19959: 19959: Slice SetInternalKey(const Slice& key, ParsedInternalKey* ikey) { 19959: size_t key_n = key.size(); 19959: 19959: # 663 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 663 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: key_n >= kNumInternalBytes 19959: # 663 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 663 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "key_n >= kNumInternalBytes" 19959: # 663 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 663, __extension__ __PRETTY_FUNCTION__)) 19959: # 663 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: SetInternalKey(key); 19959: ikey->user_key = Slice(key_, key_n - kNumInternalBytes); 19959: return Slice(key_, key_n); 19959: } 19959: 19959: 19959: void OwnKey() { 19959: 19959: # 671 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 671 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: IsKeyPinned() == true 19959: # 671 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 671 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "IsKeyPinned() == true" 19959: # 671 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 671, __extension__ __PRETTY_FUNCTION__)) 19959: # 671 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: 19959: Reserve(key_size_); 19959: memcpy(buf_, key_, key_size_); 19959: key_ = buf_; 19959: } 19959: 19959: 19959: 19959: void UpdateInternalKey(uint64_t seq, ValueType t, const Slice* ts = nullptr) { 19959: 19959: # 681 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 681 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: !IsKeyPinned() 19959: # 681 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 681 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "!IsKeyPinned()" 19959: # 681 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 681, __extension__ __PRETTY_FUNCTION__)) 19959: # 681 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: 19959: # 682 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 682 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: key_size_ >= kNumInternalBytes 19959: # 682 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 682 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "key_size_ >= kNumInternalBytes" 19959: # 682 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 682, __extension__ __PRETTY_FUNCTION__)) 19959: # 682 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: if (ts) { 19959: 19959: # 684 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 684 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: key_size_ >= kNumInternalBytes + ts->size() 19959: # 684 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 684 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "key_size_ >= kNumInternalBytes + ts->size()" 19959: # 684 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 684, __extension__ __PRETTY_FUNCTION__)) 19959: # 684 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: memcpy(&buf_[key_size_ - kNumInternalBytes - ts->size()], ts->data(), 19959: ts->size()); 19959: } 19959: uint64_t newval = (seq << 8) | t; 19959: EncodeFixed64(&buf_[key_size_ - kNumInternalBytes], newval); 19959: } 19959: 19959: bool IsKeyPinned() const { return (key_ != buf_); } 19959: 19959: 19959: 19959: 19959: void SetInternalKey(const Slice& key_prefix, const Slice& user_key, 19959: SequenceNumber s, 19959: ValueType value_type = kValueTypeForSeek, 19959: const Slice* ts = nullptr) { 19959: size_t psize = key_prefix.size(); 19959: size_t usize = user_key.size(); 19959: size_t ts_sz = (ts != nullptr ? ts->size() : 0); 19959: EnlargeBufferIfNeeded(psize + usize + sizeof(uint64_t) + ts_sz); 19959: if (psize > 0) { 19959: memcpy(buf_, key_prefix.data(), psize); 19959: } 19959: memcpy(buf_ + psize, user_key.data(), usize); 19959: if (ts) { 19959: memcpy(buf_ + psize + usize, ts->data(), ts_sz); 19959: } 19959: EncodeFixed64(buf_ + usize + psize + ts_sz, 19959: PackSequenceAndType(s, value_type)); 19959: 19959: key_ = buf_; 19959: key_size_ = psize + usize + sizeof(uint64_t) + ts_sz; 19959: is_user_key_ = false; 19959: } 19959: 19959: void SetInternalKey(const Slice& user_key, SequenceNumber s, 19959: ValueType value_type = kValueTypeForSeek, 19959: const Slice* ts = nullptr) { 19959: SetInternalKey(Slice(), user_key, s, value_type, ts); 19959: } 19959: 19959: void Reserve(size_t size) { 19959: EnlargeBufferIfNeeded(size); 19959: key_size_ = size; 19959: } 19959: 19959: void SetInternalKey(const ParsedInternalKey& parsed_key) { 19959: SetInternalKey(Slice(), parsed_key); 19959: } 19959: 19959: void SetInternalKey(const Slice& key_prefix, 19959: const ParsedInternalKey& parsed_key_suffix) { 19959: SetInternalKey(key_prefix, parsed_key_suffix.user_key, 19959: parsed_key_suffix.sequence, parsed_key_suffix.type); 19959: } 19959: 19959: void EncodeLengthPrefixedKey(const Slice& key) { 19959: auto size = key.size(); 19959: EnlargeBufferIfNeeded(size + static_cast(VarintLength(size))); 19959: char* ptr = EncodeVarint32(buf_, static_cast(size)); 19959: memcpy(ptr, key.data(), size); 19959: key_ = buf_; 19959: is_user_key_ = true; 19959: } 19959: 19959: bool IsUserKey() const { return is_user_key_; } 19959: 19959: private: 19959: char* buf_; 19959: const char* key_; 19959: size_t key_size_; 19959: size_t buf_size_; 19959: char space_[39]; 19959: bool is_user_key_; 19959: 19959: Slice SetKeyImpl(const Slice& key, bool copy) { 19959: size_t size = key.size(); 19959: if (copy) { 19959: 19959: EnlargeBufferIfNeeded(size); 19959: memcpy(buf_, key.data(), size); 19959: key_ = buf_; 19959: } else { 19959: 19959: key_ = key.data(); 19959: } 19959: key_size_ = size; 19959: return Slice(key_, key_size_); 19959: } 19959: 19959: void ResetBuffer() { 19959: if (buf_ != space_) { 19959: delete[] buf_; 19959: buf_ = space_; 19959: } 19959: buf_size_ = sizeof(space_); 19959: key_size_ = 0; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: void EnlargeBufferIfNeeded(size_t key_size) { 19959: 19959: 19959: if (key_size > buf_size_) { 19959: EnlargeBuffer(key_size); 19959: } 19959: } 19959: 19959: void EnlargeBuffer(size_t key_size); 19959: 19959: void MaybeAddKeyPartsWithTimestamp(const char* slice_data, 19959: const size_t slice_sz, bool add_timestamp, 19959: const size_t left_sz, 19959: const std::string& min_timestamp, 19959: std::vector& key_parts, 19959: bool* ts_added) { 19959: if (add_timestamp && !*ts_added) { 19959: 19959: # 806 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 806 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: slice_sz >= left_sz 19959: # 806 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 806 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "slice_sz >= left_sz" 19959: # 806 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 806, __extension__ __PRETTY_FUNCTION__)) 19959: # 806 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: key_parts.emplace_back(slice_data, left_sz); 19959: key_parts.emplace_back(min_timestamp); 19959: key_parts.emplace_back(slice_data + left_sz, slice_sz - left_sz); 19959: *ts_added = true; 19959: } else { 19959: key_parts.emplace_back(slice_data, slice_sz); 19959: } 19959: } 19959: }; 19959: 19959: 19959: 19959: class InternalKeySliceTransform : public SliceTransform { 19959: public: 19959: explicit InternalKeySliceTransform(const SliceTransform* transform) 19959: : transform_(transform) {} 19959: 19959: virtual const char* Name() const override { return transform_->Name(); } 19959: 19959: virtual Slice Transform(const Slice& src) const override { 19959: auto user_key = ExtractUserKey(src); 19959: return transform_->Transform(user_key); 19959: } 19959: 19959: virtual bool InDomain(const Slice& src) const override { 19959: auto user_key = ExtractUserKey(src); 19959: return transform_->InDomain(user_key); 19959: } 19959: 19959: virtual bool InRange(const Slice& dst) const override { 19959: auto user_key = ExtractUserKey(dst); 19959: return transform_->InRange(user_key); 19959: } 19959: 19959: const SliceTransform* user_prefix_extractor() const { return transform_; } 19959: 19959: private: 19959: 19959: 19959: const SliceTransform* const transform_; 19959: }; 19959: 19959: 19959: 19959: 19959: bool ReadKeyFromWriteBatchEntry(Slice* input, Slice* key, bool cf_record); 19959: # 861 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: Status ReadRecordFromWriteBatch(Slice* input, char* tag, 19959: uint32_t* column_family, Slice* key, 19959: Slice* value, Slice* blob, Slice* xid); 19959: 19959: 19959: 19959: 19959: 19959: struct RangeTombstone { 19959: Slice start_key_; 19959: Slice end_key_; 19959: SequenceNumber seq_; 19959: 19959: 19959: Slice ts_; 19959: std::string pinned_start_key_; 19959: std::string pinned_end_key_; 19959: 19959: RangeTombstone() = default; 19959: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn) 19959: : start_key_(sk), end_key_(ek), seq_(sn) {} 19959: 19959: 19959: 19959: 19959: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn, Slice ts) 19959: : seq_(sn), ts_(ts) { 19959: 19959: # 888 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: (static_cast ( 19959: # 888 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: !ts.empty() 19959: # 888 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 888 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: "!ts.empty()" 19959: # 888 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 19959: , "./db/dbformat.h", 888, __extension__ __PRETTY_FUNCTION__)) 19959: # 888 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: ; 19959: pinned_start_key_.reserve(sk.size()); 19959: pinned_start_key_.append(sk.data(), sk.size() - ts.size()); 19959: pinned_start_key_.append(ts.data(), ts.size()); 19959: pinned_end_key_.reserve(ek.size()); 19959: pinned_end_key_.append(ek.data(), ek.size() - ts.size()); 19959: pinned_end_key_.append(ts.data(), ts.size()); 19959: start_key_ = pinned_start_key_; 19959: end_key_ = pinned_end_key_; 19959: } 19959: 19959: RangeTombstone(ParsedInternalKey parsed_key, Slice value) { 19959: start_key_ = parsed_key.user_key; 19959: seq_ = parsed_key.sequence; 19959: end_key_ = value; 19959: } 19959: 19959: 19959: std::pair Serialize() const { 19959: auto key = InternalKey(start_key_, seq_, kTypeRangeDeletion); 19959: return std::make_pair(std::move(key), end_key_); 19959: } 19959: 19959: 19959: InternalKey SerializeKey() const { 19959: return InternalKey(start_key_, seq_, kTypeRangeDeletion); 19959: } 19959: # 923 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 19959: InternalKey SerializeEndKey() const { 19959: if (!ts_.empty()) { 19959: static constexpr char kTsMax[] = "\xff\xff\xff\xff\xff\xff\xff\xff\xff"; 19959: if (ts_.size() <= strlen(kTsMax)) { 19959: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 19959: Slice(kTsMax, ts_.size())); 19959: } else { 19959: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 19959: std::string(ts_.size(), '\xff')); 19959: } 19959: } 19959: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion); 19959: } 19959: }; 19959: 19959: inline int InternalKeyComparator::Compare(const Slice& akey, 19959: const Slice& bkey) const { 19959: 19959: 19959: 19959: 19959: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 19959: if (r == 0) { 19959: const uint64_t anum = 19959: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes); 19959: const uint64_t bnum = 19959: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes); 19959: if (anum > bnum) { 19959: r = -1; 19959: } else if (anum < bnum) { 19959: r = +1; 19959: } 19959: } 19959: return r; 19959: } 19959: 19959: inline int InternalKeyComparator::CompareKeySeq(const Slice& akey, 19959: const Slice& bkey) const { 19959: 19959: 19959: 19959: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 19959: if (r == 0) { 19959: 19959: const uint64_t anum = 19959: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes) >> 8; 19959: const uint64_t bnum = 19959: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes) >> 8; 19959: if (anum > bnum) { 19959: r = -1; 19959: } else if (anum < bnum) { 19959: r = +1; 19959: } 19959: } 19959: return r; 19959: } 19959: 19959: inline int InternalKeyComparator::CompareKeySeq(const ParsedInternalKey& a, 19959: const Slice& b) const { 19959: 19959: 19959: 19959: int r = user_comparator_.Compare(a.user_key, ExtractUserKey(b)); 19959: if (r == 0) { 19959: 19959: const uint64_t anum = a.sequence; 19959: const uint64_t bnum = 19959: DecodeFixed64(b.data() + b.size() - kNumInternalBytes) >> 8; 19959: if (anum > bnum) { 19959: r = -1; 19959: } else if (anum < bnum) { 19959: r = +1; 19959: } 19959: } 19959: return r; 19959: } 19959: 19959: inline int InternalKeyComparator::Compare(const Slice& a, 19959: SequenceNumber a_global_seqno, 19959: const Slice& b, 19959: SequenceNumber b_global_seqno) const { 19959: int r = user_comparator_.Compare(ExtractUserKey(a), ExtractUserKey(b)); 19959: if (r == 0) { 19959: uint64_t a_footer, b_footer; 19959: if (a_global_seqno == kDisableGlobalSequenceNumber) { 19959: a_footer = ExtractInternalKeyFooter(a); 19959: } else { 19959: a_footer = PackSequenceAndType(a_global_seqno, ExtractValueType(a)); 19959: } 19959: if (b_global_seqno == kDisableGlobalSequenceNumber) { 19959: b_footer = ExtractInternalKeyFooter(b); 19959: } else { 19959: b_footer = PackSequenceAndType(b_global_seqno, ExtractValueType(b)); 19959: } 19959: if (a_footer > b_footer) { 19959: r = -1; 19959: } else if (a_footer < b_footer) { 19959: r = +1; 19959: } 19959: } 19959: return r; 19959: } 19959: 19959: 19959: struct ParsedInternalKeyComparator { 19959: explicit ParsedInternalKeyComparator(const InternalKeyComparator* c) 19959: : cmp(c) {} 19959: 19959: bool operator()(const ParsedInternalKey& a, 19959: const ParsedInternalKey& b) const { 19959: return cmp->Compare(a, b) < 0; 19959: } 19959: 19959: const InternalKeyComparator* cmp; 19959: }; 19959: 19959: } 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 1 19959: # 31 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: template 19959: class ProtectionInfo; 19959: template 19959: class ProtectionInfoKVO; 19959: template 19959: class ProtectionInfoKVOC; 19959: template 19959: class ProtectionInfoKVOS; 19959: template 19959: class ProtectionInfoKV; 19959: 19959: 19959: using ProtectionInfo64 = ProtectionInfo; 19959: using ProtectionInfoKVO64 = ProtectionInfoKVO; 19959: using ProtectionInfoKVOC64 = ProtectionInfoKVOC; 19959: using ProtectionInfoKVOS64 = ProtectionInfoKVOS; 19959: 19959: template 19959: class ProtectionInfo { 19959: public: 19959: ProtectionInfo() = default; 19959: 19959: Status GetStatus() const; 19959: ProtectionInfoKVO ProtectKVO(const Slice& key, const Slice& value, 19959: ValueType op_type) const; 19959: ProtectionInfoKVO ProtectKVO(const SliceParts& key, 19959: const SliceParts& value, 19959: ValueType op_type) const; 19959: ProtectionInfoKV ProtectKV(const Slice& key, const Slice& value) const; 19959: 19959: private: 19959: friend class ProtectionInfoKVO; 19959: friend class ProtectionInfoKVOS; 19959: friend class ProtectionInfoKVOC; 19959: friend class ProtectionInfoKV; 19959: # 84 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: static const uint64_t kSeedK = 0; 19959: static const uint64_t kSeedV = 0xD28AAD72F49BD50B; 19959: static const uint64_t kSeedO = 0xA5155AE5E937AA16; 19959: static const uint64_t kSeedS = 0x77A00858DDD37F21; 19959: static const uint64_t kSeedC = 0x4A2AB5CBD26F542C; 19959: 19959: ProtectionInfo(T val) : val_(val) { 19959: static_assert(sizeof(ProtectionInfo) == sizeof(T), ""); 19959: } 19959: 19959: T GetVal() const { return val_; } 19959: void SetVal(T val) { val_ = val; } 19959: 19959: void Encode(uint8_t len, char* dst) const { 19959: 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 19959: (static_cast ( 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: sizeof(val_) >= len 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: "sizeof(val_) >= len" 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 19959: , "./db/kv_checksum.h", 98, __extension__ __PRETTY_FUNCTION__)) 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: ; 19959: switch (len) { 19959: case 1: 19959: dst[0] = static_cast(val_); 19959: break; 19959: case 2: 19959: EncodeFixed16(dst, static_cast(val_)); 19959: break; 19959: case 4: 19959: EncodeFixed32(dst, static_cast(val_)); 19959: break; 19959: case 8: 19959: EncodeFixed64(dst, static_cast(val_)); 19959: break; 19959: default: 19959: 19959: # 113 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 19959: (static_cast ( 19959: # 113 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: false 19959: # 113 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 113 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: "false" 19959: # 113 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 19959: , "./db/kv_checksum.h", 113, __extension__ __PRETTY_FUNCTION__)) 19959: # 113 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: ; 19959: } 19959: } 19959: 19959: bool Verify(uint8_t len, const char* checksum_ptr) const { 19959: 19959: # 118 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 19959: (static_cast ( 19959: # 118 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: sizeof(val_) >= len 19959: # 118 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 118 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: "sizeof(val_) >= len" 19959: # 118 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 19959: , "./db/kv_checksum.h", 118, __extension__ __PRETTY_FUNCTION__)) 19959: # 118 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: ; 19959: switch (len) { 19959: case 1: 19959: return static_cast(checksum_ptr[0]) == 19959: static_cast(val_); 19959: case 2: 19959: return DecodeFixed16(checksum_ptr) == static_cast(val_); 19959: case 4: 19959: return DecodeFixed32(checksum_ptr) == static_cast(val_); 19959: case 8: 19959: return DecodeFixed64(checksum_ptr) == static_cast(val_); 19959: default: 19959: 19959: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 19959: (static_cast ( 19959: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: false 19959: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: "false" 19959: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 19959: , "./db/kv_checksum.h", 130, __extension__ __PRETTY_FUNCTION__)) 19959: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 19959: ; 19959: return false; 19959: } 19959: } 19959: 19959: T val_ = 0; 19959: }; 19959: 19959: template 19959: class ProtectionInfoKVO { 19959: public: 19959: ProtectionInfoKVO() = default; 19959: 19959: ProtectionInfo StripKVO(const Slice& key, const Slice& value, 19959: ValueType op_type) const; 19959: ProtectionInfo StripKVO(const SliceParts& key, const SliceParts& value, 19959: ValueType op_type) const; 19959: 19959: ProtectionInfoKVOC ProtectC(ColumnFamilyId column_family_id) const; 19959: ProtectionInfoKVOS ProtectS(SequenceNumber sequence_number) const; 19959: 19959: void UpdateK(const Slice& old_key, const Slice& new_key); 19959: void UpdateK(const SliceParts& old_key, const SliceParts& new_key); 19959: void UpdateV(const Slice& old_value, const Slice& new_value); 19959: void UpdateV(const SliceParts& old_value, const SliceParts& new_value); 19959: void UpdateO(ValueType old_op_type, ValueType new_op_type); 19959: 19959: 19959: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 19959: 19959: 19959: 19959: bool Verify(uint8_t len, const char* checksum_ptr) const { 19959: return info_.Verify(len, checksum_ptr); 19959: } 19959: 19959: private: 19959: friend class ProtectionInfo; 19959: friend class ProtectionInfoKVOS; 19959: friend class ProtectionInfoKVOC; 19959: 19959: explicit ProtectionInfoKVO(T val) : info_(val) { 19959: static_assert(sizeof(ProtectionInfoKVO) == sizeof(T), ""); 19959: } 19959: 19959: T GetVal() const { return info_.GetVal(); } 19959: void SetVal(T val) { info_.SetVal(val); } 19959: 19959: ProtectionInfo info_; 19959: }; 19959: 19959: template 19959: class ProtectionInfoKVOC { 19959: public: 19959: ProtectionInfoKVOC() = default; 19959: 19959: ProtectionInfoKVO StripC(ColumnFamilyId column_family_id) const; 19959: 19959: void UpdateK(const Slice& old_key, const Slice& new_key) { 19959: kvo_.UpdateK(old_key, new_key); 19959: } 19959: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 19959: kvo_.UpdateK(old_key, new_key); 19959: } 19959: void UpdateV(const Slice& old_value, const Slice& new_value) { 19959: kvo_.UpdateV(old_value, new_value); 19959: } 19959: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 19959: kvo_.UpdateV(old_value, new_value); 19959: } 19959: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 19959: kvo_.UpdateO(old_op_type, new_op_type); 19959: } 19959: void UpdateC(ColumnFamilyId old_column_family_id, 19959: ColumnFamilyId new_column_family_id); 19959: 19959: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 19959: bool Verify(uint8_t len, const char* checksum_ptr) const { 19959: return kvo_.Verify(len, checksum_ptr); 19959: } 19959: 19959: private: 19959: friend class ProtectionInfoKVO; 19959: 19959: explicit ProtectionInfoKVOC(T val) : kvo_(val) { 19959: static_assert(sizeof(ProtectionInfoKVOC) == sizeof(T), ""); 19959: } 19959: 19959: T GetVal() const { return kvo_.GetVal(); } 19959: void SetVal(T val) { kvo_.SetVal(val); } 19959: 19959: ProtectionInfoKVO kvo_; 19959: }; 19959: 19959: template 19959: class ProtectionInfoKVOS { 19959: public: 19959: ProtectionInfoKVOS() = default; 19959: 19959: ProtectionInfoKVO StripS(SequenceNumber sequence_number) const; 19959: 19959: void UpdateK(const Slice& old_key, const Slice& new_key) { 19959: kvo_.UpdateK(old_key, new_key); 19959: } 19959: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 19959: kvo_.UpdateK(old_key, new_key); 19959: } 19959: void UpdateV(const Slice& old_value, const Slice& new_value) { 19959: kvo_.UpdateV(old_value, new_value); 19959: } 19959: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 19959: kvo_.UpdateV(old_value, new_value); 19959: } 19959: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 19959: kvo_.UpdateO(old_op_type, new_op_type); 19959: } 19959: void UpdateS(SequenceNumber old_sequence_number, 19959: SequenceNumber new_sequence_number); 19959: 19959: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 19959: bool Verify(uint8_t len, const char* checksum_ptr) const { 19959: return kvo_.Verify(len, checksum_ptr); 19959: } 19959: 19959: private: 19959: friend class ProtectionInfoKVO; 19959: 19959: explicit ProtectionInfoKVOS(T val) : kvo_(val) { 19959: static_assert(sizeof(ProtectionInfoKVOS) == sizeof(T), ""); 19959: } 19959: 19959: T GetVal() const { return kvo_.GetVal(); } 19959: void SetVal(T val) { kvo_.SetVal(val); } 19959: 19959: ProtectionInfoKVO kvo_; 19959: }; 19959: 19959: template 19959: class ProtectionInfoKV { 19959: public: 19959: ProtectionInfoKV() = default; 19959: 19959: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 19959: bool Verify(uint8_t len, const char* checksum_ptr) const { 19959: return info_.Verify(len, checksum_ptr); 19959: } 19959: 19959: private: 19959: friend class ProtectionInfo; 19959: 19959: explicit ProtectionInfoKV(T val) : info_(val) { 19959: static_assert(sizeof(ProtectionInfoKV) == sizeof(T)); 19959: } 19959: 19959: ProtectionInfo info_; 19959: }; 19959: 19959: template 19959: Status ProtectionInfo::GetStatus() const { 19959: if (val_ != 0) { 19959: return Status::Corruption("ProtectionInfo mismatch"); 19959: } 19959: return Status::OK(); 19959: } 19959: 19959: template 19959: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const Slice& key, 19959: const Slice& value, 19959: ValueType op_type) const { 19959: T val = GetVal(); 19959: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 19959: val = 19959: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 19959: val = val ^ 19959: static_cast(NPHash64(reinterpret_cast(&op_type), 19959: sizeof(op_type), ProtectionInfo::kSeedO)); 19959: return ProtectionInfoKVO(val); 19959: } 19959: 19959: template 19959: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const SliceParts& key, 19959: const SliceParts& value, 19959: ValueType op_type) const { 19959: T val = GetVal(); 19959: val = val ^ 19959: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 19959: val = val ^ 19959: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 19959: val = val ^ 19959: static_cast(NPHash64(reinterpret_cast(&op_type), 19959: sizeof(op_type), ProtectionInfo::kSeedO)); 19959: return ProtectionInfoKVO(val); 19959: } 19959: 19959: template 19959: ProtectionInfoKV ProtectionInfo::ProtectKV(const Slice& key, 19959: const Slice& value) const { 19959: T val = GetVal(); 19959: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 19959: val = 19959: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 19959: return ProtectionInfoKV(val); 19959: } 19959: 19959: template 19959: void ProtectionInfoKVO::UpdateK(const Slice& old_key, const Slice& new_key) { 19959: T val = GetVal(); 19959: val = val ^ 19959: static_cast(GetSliceNPHash64(old_key, ProtectionInfo::kSeedK)); 19959: val = val ^ 19959: static_cast(GetSliceNPHash64(new_key, ProtectionInfo::kSeedK)); 19959: SetVal(val); 19959: } 19959: 19959: template 19959: void ProtectionInfoKVO::UpdateK(const SliceParts& old_key, 19959: const SliceParts& new_key) { 19959: T val = GetVal(); 19959: val = val ^ static_cast( 19959: GetSlicePartsNPHash64(old_key, ProtectionInfo::kSeedK)); 19959: val = val ^ static_cast( 19959: GetSlicePartsNPHash64(new_key, ProtectionInfo::kSeedK)); 19959: SetVal(val); 19959: } 19959: 19959: template 19959: void ProtectionInfoKVO::UpdateV(const Slice& old_value, 19959: const Slice& new_value) { 19959: T val = GetVal(); 19959: val = val ^ 19959: static_cast(GetSliceNPHash64(old_value, ProtectionInfo::kSeedV)); 19959: val = val ^ 19959: static_cast(GetSliceNPHash64(new_value, ProtectionInfo::kSeedV)); 19959: SetVal(val); 19959: } 19959: 19959: template 19959: void ProtectionInfoKVO::UpdateV(const SliceParts& old_value, 19959: const SliceParts& new_value) { 19959: T val = GetVal(); 19959: val = val ^ static_cast( 19959: GetSlicePartsNPHash64(old_value, ProtectionInfo::kSeedV)); 19959: val = val ^ static_cast( 19959: GetSlicePartsNPHash64(new_value, ProtectionInfo::kSeedV)); 19959: SetVal(val); 19959: } 19959: 19959: template 19959: void ProtectionInfoKVO::UpdateO(ValueType old_op_type, 19959: ValueType new_op_type) { 19959: T val = GetVal(); 19959: val = val ^ static_cast(NPHash64(reinterpret_cast(&old_op_type), 19959: sizeof(old_op_type), 19959: ProtectionInfo::kSeedO)); 19959: val = val ^ static_cast(NPHash64(reinterpret_cast(&new_op_type), 19959: sizeof(new_op_type), 19959: ProtectionInfo::kSeedO)); 19959: SetVal(val); 19959: } 19959: 19959: template 19959: ProtectionInfo ProtectionInfoKVO::StripKVO(const Slice& key, 19959: const Slice& value, 19959: ValueType op_type) const { 19959: T val = GetVal(); 19959: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 19959: val = 19959: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 19959: val = val ^ 19959: static_cast(NPHash64(reinterpret_cast(&op_type), 19959: sizeof(op_type), ProtectionInfo::kSeedO)); 19959: return ProtectionInfo(val); 19959: } 19959: 19959: template 19959: ProtectionInfo ProtectionInfoKVO::StripKVO(const SliceParts& key, 19959: const SliceParts& value, 19959: ValueType op_type) const { 19959: T val = GetVal(); 19959: val = val ^ 19959: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 19959: val = val ^ 19959: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 19959: val = val ^ 19959: static_cast(NPHash64(reinterpret_cast(&op_type), 19959: sizeof(op_type), ProtectionInfo::kSeedO)); 19959: return ProtectionInfo(val); 19959: } 19959: 19959: template 19959: ProtectionInfoKVOC ProtectionInfoKVO::ProtectC( 19959: ColumnFamilyId column_family_id) const { 19959: T val = GetVal(); 19959: val = val ^ static_cast(NPHash64( 19959: reinterpret_cast(&column_family_id), 19959: sizeof(column_family_id), ProtectionInfo::kSeedC)); 19959: return ProtectionInfoKVOC(val); 19959: } 19959: 19959: template 19959: ProtectionInfoKVO ProtectionInfoKVOC::StripC( 19959: ColumnFamilyId column_family_id) const { 19959: T val = GetVal(); 19959: val = val ^ static_cast(NPHash64( 19959: reinterpret_cast(&column_family_id), 19959: sizeof(column_family_id), ProtectionInfo::kSeedC)); 19959: return ProtectionInfoKVO(val); 19959: } 19959: 19959: template 19959: void ProtectionInfoKVOC::UpdateC(ColumnFamilyId old_column_family_id, 19959: ColumnFamilyId new_column_family_id) { 19959: T val = GetVal(); 19959: val = val ^ static_cast(NPHash64( 19959: reinterpret_cast(&old_column_family_id), 19959: sizeof(old_column_family_id), ProtectionInfo::kSeedC)); 19959: val = val ^ static_cast(NPHash64( 19959: reinterpret_cast(&new_column_family_id), 19959: sizeof(new_column_family_id), ProtectionInfo::kSeedC)); 19959: SetVal(val); 19959: } 19959: 19959: template 19959: ProtectionInfoKVOS ProtectionInfoKVO::ProtectS( 19959: SequenceNumber sequence_number) const { 19959: T val = GetVal(); 19959: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 19959: sizeof(sequence_number), 19959: ProtectionInfo::kSeedS)); 19959: return ProtectionInfoKVOS(val); 19959: } 19959: 19959: template 19959: ProtectionInfoKVO ProtectionInfoKVOS::StripS( 19959: SequenceNumber sequence_number) const { 19959: T val = GetVal(); 19959: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 19959: sizeof(sequence_number), 19959: ProtectionInfo::kSeedS)); 19959: return ProtectionInfoKVO(val); 19959: } 19959: 19959: template 19959: void ProtectionInfoKVOS::UpdateS(SequenceNumber old_sequence_number, 19959: SequenceNumber new_sequence_number) { 19959: T val = GetVal(); 19959: val = val ^ static_cast(NPHash64( 19959: reinterpret_cast(&old_sequence_number), 19959: sizeof(old_sequence_number), ProtectionInfo::kSeedS)); 19959: val = val ^ static_cast(NPHash64( 19959: reinterpret_cast(&new_sequence_number), 19959: sizeof(new_sequence_number), ProtectionInfo::kSeedS)); 19959: SetVal(val); 19959: } 19959: } 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/list" 1 3 19959: # 58 "/usr/include/c++/13/list" 3 19959: 19959: # 59 "/usr/include/c++/13/list" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/stl_list.h" 1 3 19959: # 68 "/usr/include/c++/13/bits/stl_list.h" 3 19959: 19959: # 68 "/usr/include/c++/13/bits/stl_list.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: namespace __detail 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct _List_node_base 19959: { 19959: _List_node_base* _M_next; 19959: _List_node_base* _M_prev; 19959: 19959: static void 19959: swap(_List_node_base& __x, _List_node_base& __y) noexcept; 19959: 19959: void 19959: _M_transfer(_List_node_base* const __first, 19959: _List_node_base* const __last) noexcept; 19959: 19959: void 19959: _M_reverse() noexcept; 19959: 19959: void 19959: _M_hook(_List_node_base* const __position) noexcept; 19959: 19959: void 19959: _M_unhook() noexcept; 19959: }; 19959: 19959: 19959: struct _List_node_header : public _List_node_base 19959: { 19959: 19959: std::size_t _M_size; 19959: 19959: 19959: _List_node_header() noexcept 19959: { _M_init(); } 19959: 19959: 19959: _List_node_header(_List_node_header&& __x) noexcept 19959: : _List_node_base{ __x._M_next, __x._M_prev } 19959: 19959: , _M_size(__x._M_size) 19959: 19959: { 19959: if (__x._M_base()->_M_next == __x._M_base()) 19959: this->_M_next = this->_M_prev = this; 19959: else 19959: { 19959: this->_M_next->_M_prev = this->_M_prev->_M_next = this->_M_base(); 19959: __x._M_init(); 19959: } 19959: } 19959: 19959: void 19959: _M_move_nodes(_List_node_header&& __x) 19959: { 19959: _List_node_base* const __xnode = __x._M_base(); 19959: if (__xnode->_M_next == __xnode) 19959: _M_init(); 19959: else 19959: { 19959: _List_node_base* const __node = this->_M_base(); 19959: __node->_M_next = __xnode->_M_next; 19959: __node->_M_prev = __xnode->_M_prev; 19959: __node->_M_next->_M_prev = __node->_M_prev->_M_next = __node; 19959: 19959: _M_size = __x._M_size; 19959: 19959: __x._M_init(); 19959: } 19959: } 19959: 19959: 19959: void 19959: _M_init() noexcept 19959: { 19959: this->_M_next = this->_M_prev = this; 19959: 19959: this->_M_size = 0; 19959: 19959: } 19959: 19959: private: 19959: _List_node_base* _M_base() { return this; } 19959: }; 19959: 19959: 19959: struct _Scratch_list : _List_node_base 19959: { 19959: _Scratch_list() { _M_next = _M_prev = this; } 19959: 19959: bool empty() const { return _M_next == this; } 19959: 19959: void swap(_List_node_base& __l) { _List_node_base::swap(*this, __l); } 19959: 19959: template 19959: struct _Ptr_cmp 19959: { 19959: _Cmp _M_cmp; 19959: 19959: bool 19959: operator()(__detail::_List_node_base* __lhs, 19959: __detail::_List_node_base* __rhs) 19959: { return _M_cmp(*_Iter(__lhs), *_Iter(__rhs)); } 19959: }; 19959: 19959: template 19959: struct _Ptr_cmp<_Iter, void> 19959: { 19959: bool 19959: operator()(__detail::_List_node_base* __lhs, 19959: __detail::_List_node_base* __rhs) const 19959: { return *_Iter(__lhs) < *_Iter(__rhs); } 19959: }; 19959: 19959: 19959: template 19959: void 19959: merge(_List_node_base& __x, _Cmp __comp) 19959: { 19959: _List_node_base* __first1 = _M_next; 19959: _List_node_base* const __last1 = this; 19959: _List_node_base* __first2 = __x._M_next; 19959: _List_node_base* const __last2 = std::__addressof(__x); 19959: 19959: while (__first1 != __last1 && __first2 != __last2) 19959: { 19959: if (__comp(__first2, __first1)) 19959: { 19959: _List_node_base* __next = __first2->_M_next; 19959: __first1->_M_transfer(__first2, __next); 19959: __first2 = __next; 19959: } 19959: else 19959: __first1 = __first1->_M_next; 19959: } 19959: if (__first2 != __last2) 19959: this->_M_transfer(__first2, __last2); 19959: } 19959: 19959: 19959: void _M_take_one(_List_node_base* __i) 19959: { this->_M_transfer(__i, __i->_M_next); } 19959: 19959: 19959: void _M_put_all(_List_node_base* __i) 19959: { 19959: if (!empty()) 19959: __i->_M_transfer(_M_next, this); 19959: } 19959: }; 19959: 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: struct _List_node : public __detail::_List_node_base 19959: { 19959: 19959: __gnu_cxx::__aligned_membuf<_Tp> _M_storage; 19959: _Tp* _M_valptr() { return _M_storage._M_ptr(); } 19959: _Tp const* _M_valptr() const { return _M_storage._M_ptr(); } 19959: 19959: 19959: 19959: 19959: 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _List_iterator 19959: { 19959: typedef _List_iterator<_Tp> _Self; 19959: typedef _List_node<_Tp> _Node; 19959: 19959: typedef ptrdiff_t difference_type; 19959: typedef std::bidirectional_iterator_tag iterator_category; 19959: typedef _Tp value_type; 19959: typedef _Tp* pointer; 19959: typedef _Tp& reference; 19959: 19959: _List_iterator() noexcept 19959: : _M_node() { } 19959: 19959: explicit 19959: _List_iterator(__detail::_List_node_base* __x) noexcept 19959: : _M_node(__x) { } 19959: 19959: _Self 19959: _M_const_cast() const noexcept 19959: { return *this; } 19959: 19959: 19959: [[__nodiscard__]] 19959: reference 19959: operator*() const noexcept 19959: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 19959: 19959: [[__nodiscard__]] 19959: pointer 19959: operator->() const noexcept 19959: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 19959: 19959: _Self& 19959: operator++() noexcept 19959: { 19959: _M_node = _M_node->_M_next; 19959: return *this; 19959: } 19959: 19959: _Self 19959: operator++(int) noexcept 19959: { 19959: _Self __tmp = *this; 19959: _M_node = _M_node->_M_next; 19959: return __tmp; 19959: } 19959: 19959: _Self& 19959: operator--() noexcept 19959: { 19959: _M_node = _M_node->_M_prev; 19959: return *this; 19959: } 19959: 19959: _Self 19959: operator--(int) noexcept 19959: { 19959: _Self __tmp = *this; 19959: _M_node = _M_node->_M_prev; 19959: return __tmp; 19959: } 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator==(const _Self& __x, const _Self& __y) noexcept 19959: { return __x._M_node == __y._M_node; } 19959: 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator!=(const _Self& __x, const _Self& __y) noexcept 19959: { return __x._M_node != __y._M_node; } 19959: 19959: 19959: 19959: __detail::_List_node_base* _M_node; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _List_const_iterator 19959: { 19959: typedef _List_const_iterator<_Tp> _Self; 19959: typedef const _List_node<_Tp> _Node; 19959: typedef _List_iterator<_Tp> iterator; 19959: 19959: typedef ptrdiff_t difference_type; 19959: typedef std::bidirectional_iterator_tag iterator_category; 19959: typedef _Tp value_type; 19959: typedef const _Tp* pointer; 19959: typedef const _Tp& reference; 19959: 19959: _List_const_iterator() noexcept 19959: : _M_node() { } 19959: 19959: explicit 19959: _List_const_iterator(const __detail::_List_node_base* __x) 19959: noexcept 19959: : _M_node(__x) { } 19959: 19959: _List_const_iterator(const iterator& __x) noexcept 19959: : _M_node(__x._M_node) { } 19959: 19959: iterator 19959: _M_const_cast() const noexcept 19959: { return iterator(const_cast<__detail::_List_node_base*>(_M_node)); } 19959: 19959: 19959: [[__nodiscard__]] 19959: reference 19959: operator*() const noexcept 19959: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 19959: 19959: [[__nodiscard__]] 19959: pointer 19959: operator->() const noexcept 19959: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 19959: 19959: _Self& 19959: operator++() noexcept 19959: { 19959: _M_node = _M_node->_M_next; 19959: return *this; 19959: } 19959: 19959: _Self 19959: operator++(int) noexcept 19959: { 19959: _Self __tmp = *this; 19959: _M_node = _M_node->_M_next; 19959: return __tmp; 19959: } 19959: 19959: _Self& 19959: operator--() noexcept 19959: { 19959: _M_node = _M_node->_M_prev; 19959: return *this; 19959: } 19959: 19959: _Self 19959: operator--(int) noexcept 19959: { 19959: _Self __tmp = *this; 19959: _M_node = _M_node->_M_prev; 19959: return __tmp; 19959: } 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator==(const _Self& __x, const _Self& __y) noexcept 19959: { return __x._M_node == __y._M_node; } 19959: 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator!=(const _Self& __x, const _Self& __y) noexcept 19959: { return __x._M_node != __y._M_node; } 19959: 19959: 19959: 19959: const __detail::_List_node_base* _M_node; 19959: }; 19959: 19959: namespace __cxx11 { 19959: 19959: template 19959: class _List_base 19959: { 19959: protected: 19959: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 19959: rebind<_Tp>::other _Tp_alloc_type; 19959: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tp_alloc_traits; 19959: typedef typename _Tp_alloc_traits::template 19959: rebind<_List_node<_Tp> >::other _Node_alloc_type; 19959: typedef __gnu_cxx::__alloc_traits<_Node_alloc_type> _Node_alloc_traits; 19959: 19959: 19959: static size_t 19959: _S_distance(const __detail::_List_node_base* __first, 19959: const __detail::_List_node_base* __last) 19959: { 19959: size_t __n = 0; 19959: while (__first != __last) 19959: { 19959: __first = __first->_M_next; 19959: ++__n; 19959: } 19959: return __n; 19959: } 19959: 19959: 19959: struct _List_impl 19959: : public _Node_alloc_type 19959: { 19959: __detail::_List_node_header _M_node; 19959: 19959: _List_impl() noexcept(is_nothrow_default_constructible<_Node_alloc_type>::value) 19959: 19959: : _Node_alloc_type() 19959: { } 19959: 19959: _List_impl(const _Node_alloc_type& __a) noexcept 19959: : _Node_alloc_type(__a) 19959: { } 19959: 19959: 19959: _List_impl(_List_impl&&) = default; 19959: 19959: _List_impl(_Node_alloc_type&& __a, _List_impl&& __x) 19959: : _Node_alloc_type(std::move(__a)), _M_node(std::move(__x._M_node)) 19959: { } 19959: 19959: _List_impl(_Node_alloc_type&& __a) noexcept 19959: : _Node_alloc_type(std::move(__a)) 19959: { } 19959: 19959: }; 19959: 19959: _List_impl _M_impl; 19959: 19959: 19959: size_t _M_get_size() const { return _M_impl._M_node._M_size; } 19959: 19959: void _M_set_size(size_t __n) { _M_impl._M_node._M_size = __n; } 19959: 19959: void _M_inc_size(size_t __n) { _M_impl._M_node._M_size += __n; } 19959: 19959: void _M_dec_size(size_t __n) { _M_impl._M_node._M_size -= __n; } 19959: 19959: 19959: size_t 19959: _M_distance(const __detail::_List_node_base* __first, 19959: const __detail::_List_node_base* __last) const 19959: { return _S_distance(__first, __last); } 19959: 19959: 19959: size_t _M_node_count() const { return _M_get_size(); } 19959: # 516 "/usr/include/c++/13/bits/stl_list.h" 3 19959: typename _Node_alloc_traits::pointer 19959: _M_get_node() 19959: { return _Node_alloc_traits::allocate(_M_impl, 1); } 19959: 19959: void 19959: _M_put_node(typename _Node_alloc_traits::pointer __p) noexcept 19959: { _Node_alloc_traits::deallocate(_M_impl, __p, 1); } 19959: 19959: public: 19959: typedef _Alloc allocator_type; 19959: 19959: _Node_alloc_type& 19959: _M_get_Node_allocator() noexcept 19959: { return _M_impl; } 19959: 19959: const _Node_alloc_type& 19959: _M_get_Node_allocator() const noexcept 19959: { return _M_impl; } 19959: 19959: 19959: _List_base() = default; 19959: 19959: 19959: 19959: 19959: _List_base(const _Node_alloc_type& __a) noexcept 19959: : _M_impl(__a) 19959: { } 19959: 19959: 19959: _List_base(_List_base&&) = default; 19959: 19959: 19959: _List_base(_List_base&& __x, _Node_alloc_type&& __a) 19959: : _M_impl(std::move(__a)) 19959: { 19959: if (__x._M_get_Node_allocator() == _M_get_Node_allocator()) 19959: _M_move_nodes(std::move(__x)); 19959: 19959: } 19959: 19959: 19959: 19959: _List_base(_Node_alloc_type&& __a, _List_base&& __x) 19959: : _M_impl(std::move(__a), std::move(__x._M_impl)) 19959: { } 19959: 19959: 19959: _List_base(_Node_alloc_type&& __a) 19959: : _M_impl(std::move(__a)) 19959: { } 19959: 19959: void 19959: _M_move_nodes(_List_base&& __x) 19959: { _M_impl._M_node._M_move_nodes(std::move(__x._M_impl._M_node)); } 19959: 19959: 19959: 19959: ~_List_base() noexcept 19959: { _M_clear(); } 19959: 19959: void 19959: _M_clear() noexcept; 19959: 19959: void 19959: _M_init() noexcept 19959: { this->_M_impl._M_node._M_init(); } 19959: }; 19959: # 631 "/usr/include/c++/13/bits/stl_list.h" 3 19959: template > 19959: class list : protected _List_base<_Tp, _Alloc> 19959: { 19959: # 644 "/usr/include/c++/13/bits/stl_list.h" 3 19959: static_assert(is_same::type, _Tp>::value, 19959: "std::list must have a non-const, non-volatile value_type"); 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef _List_base<_Tp, _Alloc> _Base; 19959: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 19959: typedef typename _Base::_Tp_alloc_traits _Tp_alloc_traits; 19959: typedef typename _Base::_Node_alloc_type _Node_alloc_type; 19959: typedef typename _Base::_Node_alloc_traits _Node_alloc_traits; 19959: 19959: public: 19959: typedef _Tp value_type; 19959: typedef typename _Tp_alloc_traits::pointer pointer; 19959: typedef typename _Tp_alloc_traits::const_pointer const_pointer; 19959: typedef typename _Tp_alloc_traits::reference reference; 19959: typedef typename _Tp_alloc_traits::const_reference const_reference; 19959: typedef _List_iterator<_Tp> iterator; 19959: typedef _List_const_iterator<_Tp> const_iterator; 19959: typedef std::reverse_iterator const_reverse_iterator; 19959: typedef std::reverse_iterator reverse_iterator; 19959: typedef size_t size_type; 19959: typedef ptrdiff_t difference_type; 19959: typedef _Alloc allocator_type; 19959: 19959: protected: 19959: 19959: 19959: typedef _List_node<_Tp> _Node; 19959: 19959: using _Base::_M_impl; 19959: using _Base::_M_put_node; 19959: using _Base::_M_get_node; 19959: using _Base::_M_get_Node_allocator; 19959: # 706 "/usr/include/c++/13/bits/stl_list.h" 3 19959: template 19959: _Node* 19959: _M_create_node(_Args&&... __args) 19959: { 19959: auto __p = this->_M_get_node(); 19959: auto& __alloc = _M_get_Node_allocator(); 19959: __allocated_ptr<_Node_alloc_type> __guard{__alloc, __p}; 19959: _Node_alloc_traits::construct(__alloc, __p->_M_valptr(), 19959: std::forward<_Args>(__args)...); 19959: __guard = nullptr; 19959: return __p; 19959: } 19959: 19959: 19959: 19959: static size_t 19959: _S_distance(const_iterator __first, const_iterator __last) 19959: { return std::distance(__first, __last); } 19959: 19959: 19959: size_t 19959: _M_node_count() const 19959: { return this->_M_get_size(); } 19959: # 741 "/usr/include/c++/13/bits/stl_list.h" 3 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: list() = default; 19959: # 758 "/usr/include/c++/13/bits/stl_list.h" 3 19959: explicit 19959: list(const allocator_type& __a) noexcept 19959: : _Base(_Node_alloc_type(__a)) { } 19959: # 771 "/usr/include/c++/13/bits/stl_list.h" 3 19959: explicit 19959: list(size_type __n, const allocator_type& __a = allocator_type()) 19959: : _Base(_Node_alloc_type(__a)) 19959: { _M_default_initialize(__n); } 19959: # 784 "/usr/include/c++/13/bits/stl_list.h" 3 19959: list(size_type __n, const value_type& __value, 19959: const allocator_type& __a = allocator_type()) 19959: : _Base(_Node_alloc_type(__a)) 19959: { _M_fill_initialize(__n, __value); } 19959: # 811 "/usr/include/c++/13/bits/stl_list.h" 3 19959: list(const list& __x) 19959: : _Base(_Node_alloc_traits:: 19959: _S_select_on_copy(__x._M_get_Node_allocator())) 19959: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 19959: # 824 "/usr/include/c++/13/bits/stl_list.h" 3 19959: list(list&&) = default; 19959: # 834 "/usr/include/c++/13/bits/stl_list.h" 3 19959: list(initializer_list __l, 19959: const allocator_type& __a = allocator_type()) 19959: : _Base(_Node_alloc_type(__a)) 19959: { _M_initialize_dispatch(__l.begin(), __l.end(), __false_type()); } 19959: 19959: list(const list& __x, const __type_identity_t& __a) 19959: : _Base(_Node_alloc_type(__a)) 19959: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 19959: 19959: private: 19959: list(list&& __x, const allocator_type& __a, true_type) noexcept 19959: : _Base(_Node_alloc_type(__a), std::move(__x)) 19959: { } 19959: 19959: list(list&& __x, const allocator_type& __a, false_type) 19959: : _Base(_Node_alloc_type(__a)) 19959: { 19959: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 19959: this->_M_move_nodes(std::move(__x)); 19959: else 19959: insert(begin(), std::__make_move_if_noexcept_iterator(__x.begin()), 19959: std::__make_move_if_noexcept_iterator(__x.end())); 19959: } 19959: 19959: public: 19959: list(list&& __x, const __type_identity_t& __a) 19959: noexcept(_Node_alloc_traits::_S_always_equal()) 19959: : list(std::move(__x), __a, 19959: typename _Node_alloc_traits::is_always_equal{}) 19959: { } 19959: # 877 "/usr/include/c++/13/bits/stl_list.h" 3 19959: template> 19959: list(_InputIterator __first, _InputIterator __last, 19959: const allocator_type& __a = allocator_type()) 19959: : _Base(_Node_alloc_type(__a)) 19959: { _M_initialize_dispatch(__first, __last, __false_type()); } 19959: # 903 "/usr/include/c++/13/bits/stl_list.h" 3 19959: ~list() = default; 19959: # 914 "/usr/include/c++/13/bits/stl_list.h" 3 19959: list& 19959: operator=(const list& __x); 19959: # 928 "/usr/include/c++/13/bits/stl_list.h" 3 19959: list& 19959: operator=(list&& __x) 19959: noexcept(_Node_alloc_traits::_S_nothrow_move()) 19959: { 19959: constexpr bool __move_storage = 19959: _Node_alloc_traits::_S_propagate_on_move_assign() 19959: || _Node_alloc_traits::_S_always_equal(); 19959: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 19959: return *this; 19959: } 19959: # 946 "/usr/include/c++/13/bits/stl_list.h" 3 19959: list& 19959: operator=(initializer_list __l) 19959: { 19959: this->assign(__l.begin(), __l.end()); 19959: return *this; 19959: } 19959: # 964 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: assign(size_type __n, const value_type& __val) 19959: { _M_fill_assign(__n, __val); } 19959: # 981 "/usr/include/c++/13/bits/stl_list.h" 3 19959: template> 19959: void 19959: assign(_InputIterator __first, _InputIterator __last) 19959: { _M_assign_dispatch(__first, __last, __false_type()); } 19959: # 1005 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: assign(initializer_list __l) 19959: { this->_M_assign_dispatch(__l.begin(), __l.end(), __false_type()); } 19959: 19959: 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return allocator_type(_Base::_M_get_Node_allocator()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: iterator 19959: begin() noexcept 19959: { return iterator(this->_M_impl._M_node._M_next); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: begin() const noexcept 19959: { return const_iterator(this->_M_impl._M_node._M_next); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: iterator 19959: end() noexcept 19959: { return iterator(&this->_M_impl._M_node); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: end() const noexcept 19959: { return const_iterator(&this->_M_impl._M_node); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reverse_iterator 19959: rbegin() noexcept 19959: { return reverse_iterator(end()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: rbegin() const noexcept 19959: { return const_reverse_iterator(end()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reverse_iterator 19959: rend() noexcept 19959: { return reverse_iterator(begin()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: rend() const noexcept 19959: { return const_reverse_iterator(begin()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: cbegin() const noexcept 19959: { return const_iterator(this->_M_impl._M_node._M_next); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_iterator 19959: cend() const noexcept 19959: { return const_iterator(&this->_M_impl._M_node); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: crbegin() const noexcept 19959: { return const_reverse_iterator(end()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reverse_iterator 19959: crend() const noexcept 19959: { return const_reverse_iterator(begin()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] bool 19959: empty() const noexcept 19959: { return this->_M_impl._M_node._M_next == &this->_M_impl._M_node; } 19959: 19959: 19959: [[__nodiscard__]] 19959: size_type 19959: size() const noexcept 19959: { return _M_node_count(); } 19959: 19959: 19959: [[__nodiscard__]] 19959: size_type 19959: max_size() const noexcept 19959: { return _Node_alloc_traits::max_size(_M_get_Node_allocator()); } 19959: # 1168 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: resize(size_type __new_size); 19959: # 1181 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: resize(size_type __new_size, const value_type& __x); 19959: # 1203 "/usr/include/c++/13/bits/stl_list.h" 3 19959: [[__nodiscard__]] 19959: reference 19959: front() noexcept 19959: { return *begin(); } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reference 19959: front() const noexcept 19959: { return *begin(); } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: reference 19959: back() noexcept 19959: { 19959: iterator __tmp = end(); 19959: --__tmp; 19959: return *__tmp; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: const_reference 19959: back() const noexcept 19959: { 19959: const_iterator __tmp = end(); 19959: --__tmp; 19959: return *__tmp; 19959: } 19959: # 1254 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: push_front(const value_type& __x) 19959: { this->_M_insert(begin(), __x); } 19959: 19959: 19959: void 19959: push_front(value_type&& __x) 19959: { this->_M_insert(begin(), std::move(__x)); } 19959: 19959: template 19959: 19959: reference 19959: 19959: 19959: 19959: emplace_front(_Args&&... __args) 19959: { 19959: this->_M_insert(begin(), std::forward<_Args>(__args)...); 19959: 19959: return front(); 19959: 19959: } 19959: # 1290 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: pop_front() noexcept 19959: { this->_M_erase(begin()); } 19959: # 1304 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: push_back(const value_type& __x) 19959: { this->_M_insert(end(), __x); } 19959: 19959: 19959: void 19959: push_back(value_type&& __x) 19959: { this->_M_insert(end(), std::move(__x)); } 19959: 19959: template 19959: 19959: reference 19959: 19959: 19959: 19959: emplace_back(_Args&&... __args) 19959: { 19959: this->_M_insert(end(), std::forward<_Args>(__args)...); 19959: 19959: return back(); 19959: 19959: } 19959: # 1339 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: pop_back() noexcept 19959: { this->_M_erase(iterator(this->_M_impl._M_node._M_prev)); } 19959: # 1356 "/usr/include/c++/13/bits/stl_list.h" 3 19959: template 19959: iterator 19959: emplace(const_iterator __position, _Args&&... __args); 19959: # 1371 "/usr/include/c++/13/bits/stl_list.h" 3 19959: iterator 19959: insert(const_iterator __position, const value_type& __x); 19959: # 1401 "/usr/include/c++/13/bits/stl_list.h" 3 19959: iterator 19959: insert(const_iterator __position, value_type&& __x) 19959: { return emplace(__position, std::move(__x)); } 19959: # 1420 "/usr/include/c++/13/bits/stl_list.h" 3 19959: iterator 19959: insert(const_iterator __p, initializer_list __l) 19959: { return this->insert(__p, __l.begin(), __l.end()); } 19959: # 1440 "/usr/include/c++/13/bits/stl_list.h" 3 19959: iterator 19959: insert(const_iterator __position, size_type __n, const value_type& __x); 19959: # 1479 "/usr/include/c++/13/bits/stl_list.h" 3 19959: template> 19959: iterator 19959: insert(const_iterator __position, _InputIterator __first, 19959: _InputIterator __last); 19959: # 1523 "/usr/include/c++/13/bits/stl_list.h" 3 19959: iterator 19959: 19959: erase(const_iterator __position) noexcept; 19959: # 1548 "/usr/include/c++/13/bits/stl_list.h" 3 19959: iterator 19959: 19959: erase(const_iterator __first, const_iterator __last) noexcept 19959: 19959: 19959: 19959: { 19959: while (__first != __last) 19959: __first = erase(__first); 19959: return __last._M_const_cast(); 19959: } 19959: # 1571 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: swap(list& __x) noexcept 19959: { 19959: __detail::_List_node_base::swap(this->_M_impl._M_node, 19959: __x._M_impl._M_node); 19959: 19959: size_t __xsize = __x._M_get_size(); 19959: __x._M_set_size(this->_M_get_size()); 19959: this->_M_set_size(__xsize); 19959: 19959: _Node_alloc_traits::_S_on_swap(this->_M_get_Node_allocator(), 19959: __x._M_get_Node_allocator()); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: clear() noexcept 19959: { 19959: _Base::_M_clear(); 19959: _Base::_M_init(); 19959: } 19959: # 1610 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: 19959: splice(const_iterator __position, list&& __x) noexcept 19959: 19959: 19959: 19959: { 19959: if (!__x.empty()) 19959: { 19959: _M_check_equal_allocators(__x); 19959: 19959: this->_M_transfer(__position._M_const_cast(), 19959: __x.begin(), __x.end()); 19959: 19959: this->_M_inc_size(__x._M_get_size()); 19959: __x._M_set_size(0); 19959: } 19959: } 19959: 19959: 19959: void 19959: splice(const_iterator __position, list& __x) noexcept 19959: { splice(__position, std::move(__x)); } 19959: # 1646 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: splice(const_iterator __position, list&& __x, const_iterator __i) noexcept 19959: # 1661 "/usr/include/c++/13/bits/stl_list.h" 3 19959: { 19959: iterator __j = __i._M_const_cast(); 19959: ++__j; 19959: if (__position == __i || __position == __j) 19959: return; 19959: 19959: if (this != std::__addressof(__x)) 19959: _M_check_equal_allocators(__x); 19959: 19959: this->_M_transfer(__position._M_const_cast(), 19959: __i._M_const_cast(), __j); 19959: 19959: this->_M_inc_size(1); 19959: __x._M_dec_size(1); 19959: } 19959: # 1688 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: splice(const_iterator __position, list& __x, const_iterator __i) noexcept 19959: { splice(__position, std::move(__x), __i); } 19959: # 1707 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: splice(const_iterator __position, list&& __x, const_iterator __first, 19959: const_iterator __last) noexcept 19959: # 1727 "/usr/include/c++/13/bits/stl_list.h" 3 19959: { 19959: if (__first != __last) 19959: { 19959: if (this != std::__addressof(__x)) 19959: _M_check_equal_allocators(__x); 19959: 19959: size_t __n = _S_distance(__first, __last); 19959: this->_M_inc_size(__n); 19959: __x._M_dec_size(__n); 19959: 19959: this->_M_transfer(__position._M_const_cast(), 19959: __first._M_const_cast(), 19959: __last._M_const_cast()); 19959: } 19959: } 19959: # 1757 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: splice(const_iterator __position, list& __x, const_iterator __first, 19959: const_iterator __last) noexcept 19959: { splice(__position, std::move(__x), __first, __last); } 19959: 19959: 19959: private: 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef void __remove_return_type; 19959: 19959: 19959: public: 19959: # 1786 "/usr/include/c++/13/bits/stl_list.h" 3 19959: 19959: __remove_return_type 19959: remove(const _Tp& __value); 19959: # 1801 "/usr/include/c++/13/bits/stl_list.h" 3 19959: template 19959: __remove_return_type 19959: remove_if(_Predicate); 19959: # 1815 "/usr/include/c++/13/bits/stl_list.h" 3 19959: 19959: __remove_return_type 19959: unique(); 19959: # 1831 "/usr/include/c++/13/bits/stl_list.h" 3 19959: template 19959: __remove_return_type 19959: unique(_BinaryPredicate); 19959: # 1847 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: merge(list&& __x); 19959: 19959: void 19959: merge(list& __x) 19959: { merge(std::move(__x)); } 19959: # 1872 "/usr/include/c++/13/bits/stl_list.h" 3 19959: template 19959: void 19959: merge(list&& __x, _StrictWeakOrdering __comp); 19959: 19959: template 19959: void 19959: merge(list& __x, _StrictWeakOrdering __comp) 19959: { merge(std::move(__x), __comp); } 19959: # 1891 "/usr/include/c++/13/bits/stl_list.h" 3 19959: void 19959: reverse() noexcept 19959: { this->_M_impl._M_node._M_reverse(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: sort(); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: void 19959: sort(_StrictWeakOrdering); 19959: 19959: protected: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: void 19959: _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) 19959: { _M_fill_initialize(static_cast(__n), __x); } 19959: 19959: 19959: template 19959: void 19959: _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, 19959: __false_type) 19959: { 19959: for (; __first != __last; ++__first) 19959: 19959: emplace_back(*__first); 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: void 19959: _M_fill_initialize(size_type __n, const value_type& __x) 19959: { 19959: for (; __n; --__n) 19959: push_back(__x); 19959: } 19959: 19959: 19959: 19959: void 19959: _M_default_initialize(size_type __n) 19959: { 19959: for (; __n; --__n) 19959: emplace_back(); 19959: } 19959: 19959: 19959: void 19959: _M_default_append(size_type __n); 19959: # 1969 "/usr/include/c++/13/bits/stl_list.h" 3 19959: template 19959: void 19959: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 19959: { _M_fill_assign(__n, __val); } 19959: 19959: 19959: template 19959: void 19959: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 19959: __false_type); 19959: 19959: 19959: 19959: void 19959: _M_fill_assign(size_type __n, const value_type& __val); 19959: 19959: 19959: 19959: void 19959: _M_transfer(iterator __position, iterator __first, iterator __last) 19959: { __position._M_node->_M_transfer(__first._M_node, __last._M_node); } 19959: # 2001 "/usr/include/c++/13/bits/stl_list.h" 3 19959: template 19959: void 19959: _M_insert(iterator __position, _Args&&... __args) 19959: { 19959: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 19959: __tmp->_M_hook(__position._M_node); 19959: this->_M_inc_size(1); 19959: } 19959: 19959: 19959: 19959: void 19959: _M_erase(iterator __position) noexcept 19959: { 19959: this->_M_dec_size(1); 19959: __position._M_node->_M_unhook(); 19959: _Node* __n = static_cast<_Node*>(__position._M_node); 19959: 19959: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __n->_M_valptr()); 19959: 19959: 19959: 19959: 19959: _M_put_node(__n); 19959: } 19959: 19959: 19959: void 19959: _M_check_equal_allocators(const list& __x) noexcept 19959: { 19959: if (_M_get_Node_allocator() != __x._M_get_Node_allocator()) 19959: __builtin_abort(); 19959: } 19959: 19959: 19959: const_iterator 19959: _M_resize_pos(size_type& __new_size) const; 19959: 19959: 19959: void 19959: _M_move_assign(list&& __x, true_type) noexcept 19959: { 19959: this->clear(); 19959: this->_M_move_nodes(std::move(__x)); 19959: std::__alloc_on_move(this->_M_get_Node_allocator(), 19959: __x._M_get_Node_allocator()); 19959: } 19959: 19959: void 19959: _M_move_assign(list&& __x, false_type) 19959: { 19959: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 19959: _M_move_assign(std::move(__x), true_type{}); 19959: else 19959: 19959: 19959: _M_assign_dispatch(std::make_move_iterator(__x.begin()), 19959: std::make_move_iterator(__x.end()), 19959: __false_type{}); 19959: } 19959: 19959: 19959: 19959: 19959: struct _Finalize_merge 19959: { 19959: explicit 19959: _Finalize_merge(list& __dest, list& __src, const iterator& __src_next) 19959: : _M_dest(__dest), _M_src(__src), _M_next(__src_next) 19959: { } 19959: 19959: ~_Finalize_merge() 19959: { 19959: 19959: 19959: 19959: const size_t __num_unmerged = std::distance(_M_next, _M_src.end()); 19959: const size_t __orig_size = _M_src._M_get_size(); 19959: _M_dest._M_inc_size(__orig_size - __num_unmerged); 19959: _M_src._M_set_size(__num_unmerged); 19959: } 19959: 19959: list& _M_dest; 19959: list& _M_src; 19959: const iterator& _M_next; 19959: 19959: 19959: _Finalize_merge(const _Finalize_merge&) = delete; 19959: 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: }; 19959: 19959: 19959: template::value_type, 19959: typename _Allocator = allocator<_ValT>, 19959: typename = _RequireInputIter<_InputIterator>, 19959: typename = _RequireAllocator<_Allocator>> 19959: list(_InputIterator, _InputIterator, _Allocator = _Allocator()) 19959: -> list<_ValT, _Allocator>; 19959: 19959: 19959: } 19959: # 2120 "/usr/include/c++/13/bits/stl_list.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 19959: { 19959: 19959: if (__x.size() != __y.size()) 19959: return false; 19959: 19959: 19959: typedef typename list<_Tp, _Alloc>::const_iterator const_iterator; 19959: const_iterator __end1 = __x.end(); 19959: const_iterator __end2 = __y.end(); 19959: 19959: const_iterator __i1 = __x.begin(); 19959: const_iterator __i2 = __y.begin(); 19959: while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) 19959: { 19959: ++__i1; 19959: ++__i2; 19959: } 19959: return __i1 == __end1 && __i2 == __end2; 19959: } 19959: # 2177 "/usr/include/c++/13/bits/stl_list.h" 3 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 19959: { return std::lexicographical_compare(__x.begin(), __x.end(), 19959: __y.begin(), __y.end()); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator!=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 19959: { return !(__x == __y); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 19959: { return __y < __x; } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator<=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 19959: { return !(__y < __x); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator>=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 19959: { return !(__x < __y); } 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline ptrdiff_t 19959: __distance(std::_List_iterator<_Tp> __first, 19959: std::_List_iterator<_Tp> __last, 19959: input_iterator_tag __tag) 19959: { 19959: typedef std::_List_const_iterator<_Tp> _CIter; 19959: return std::__distance(_CIter(__first), _CIter(__last), __tag); 19959: } 19959: 19959: template 19959: inline ptrdiff_t 19959: __distance(std::_List_const_iterator<_Tp> __first, 19959: std::_List_const_iterator<_Tp> __last, 19959: input_iterator_tag) 19959: { 19959: typedef __detail::_List_node_header _Sentinel; 19959: std::_List_const_iterator<_Tp> __beyond = __last; 19959: ++__beyond; 19959: const bool __whole = __first == __beyond; 19959: if (__builtin_constant_p (__whole) && __whole) 19959: return static_cast(__last._M_node)->_M_size; 19959: 19959: ptrdiff_t __n = 0; 19959: while (__first != __last) 19959: { 19959: ++__first; 19959: ++__n; 19959: } 19959: return __n; 19959: } 19959: 19959: 19959: 19959: } 19959: # 66 "/usr/include/c++/13/list" 2 3 19959: # 1 "/usr/include/c++/13/bits/list.tcc" 1 3 19959: # 59 "/usr/include/c++/13/bits/list.tcc" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: void 19959: _List_base<_Tp, _Alloc>:: 19959: _M_clear() noexcept 19959: { 19959: typedef _List_node<_Tp> _Node; 19959: __detail::_List_node_base* __cur = _M_impl._M_node._M_next; 19959: while (__cur != &_M_impl._M_node) 19959: { 19959: _Node* __tmp = static_cast<_Node*>(__cur); 19959: __cur = __tmp->_M_next; 19959: _Tp* __val = __tmp->_M_valptr(); 19959: 19959: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __val); 19959: 19959: 19959: 19959: _M_put_node(__tmp); 19959: } 19959: } 19959: 19959: 19959: template 19959: template 19959: typename list<_Tp, _Alloc>::iterator 19959: list<_Tp, _Alloc>:: 19959: emplace(const_iterator __position, _Args&&... __args) 19959: { 19959: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 19959: __tmp->_M_hook(__position._M_const_cast()._M_node); 19959: this->_M_inc_size(1); 19959: return iterator(__tmp); 19959: } 19959: 19959: 19959: template 19959: typename list<_Tp, _Alloc>::iterator 19959: list<_Tp, _Alloc>:: 19959: 19959: insert(const_iterator __position, const value_type& __x) 19959: 19959: 19959: 19959: { 19959: _Node* __tmp = _M_create_node(__x); 19959: __tmp->_M_hook(__position._M_const_cast()._M_node); 19959: this->_M_inc_size(1); 19959: return iterator(__tmp); 19959: } 19959: 19959: 19959: template 19959: typename list<_Tp, _Alloc>::iterator 19959: list<_Tp, _Alloc>:: 19959: insert(const_iterator __position, size_type __n, const value_type& __x) 19959: { 19959: if (__n) 19959: { 19959: list __tmp(__n, __x, get_allocator()); 19959: iterator __it = __tmp.begin(); 19959: splice(__position, __tmp); 19959: return __it; 19959: } 19959: return __position._M_const_cast(); 19959: } 19959: 19959: template 19959: template 19959: typename list<_Tp, _Alloc>::iterator 19959: list<_Tp, _Alloc>:: 19959: insert(const_iterator __position, _InputIterator __first, 19959: _InputIterator __last) 19959: { 19959: list __tmp(__first, __last, get_allocator()); 19959: if (!__tmp.empty()) 19959: { 19959: iterator __it = __tmp.begin(); 19959: splice(__position, __tmp); 19959: return __it; 19959: } 19959: return __position._M_const_cast(); 19959: } 19959: 19959: 19959: template 19959: typename list<_Tp, _Alloc>::iterator 19959: list<_Tp, _Alloc>:: 19959: 19959: erase(const_iterator __position) noexcept 19959: 19959: 19959: 19959: { 19959: iterator __ret = iterator(__position._M_node->_M_next); 19959: _M_erase(__position._M_const_cast()); 19959: return __ret; 19959: } 19959: # 173 "/usr/include/c++/13/bits/list.tcc" 3 19959: template 19959: typename list<_Tp, _Alloc>::const_iterator 19959: list<_Tp, _Alloc>:: 19959: _M_resize_pos(size_type& __new_size) const 19959: { 19959: const_iterator __i; 19959: 19959: const size_type __len = size(); 19959: if (__new_size < __len) 19959: { 19959: if (__new_size <= __len / 2) 19959: { 19959: __i = begin(); 19959: std::advance(__i, __new_size); 19959: } 19959: else 19959: { 19959: __i = end(); 19959: ptrdiff_t __num_erase = __len - __new_size; 19959: std::advance(__i, -__num_erase); 19959: } 19959: __new_size = 0; 19959: return __i; 19959: } 19959: else 19959: __i = end(); 19959: 19959: 19959: 19959: 19959: 19959: __new_size -= __len; 19959: return __i; 19959: } 19959: 19959: 19959: template 19959: void 19959: list<_Tp, _Alloc>:: 19959: _M_default_append(size_type __n) 19959: { 19959: size_type __i = 0; 19959: try 19959: { 19959: for (; __i < __n; ++__i) 19959: emplace_back(); 19959: } 19959: catch(...) 19959: { 19959: for (; __i; --__i) 19959: pop_back(); 19959: throw; 19959: } 19959: } 19959: 19959: template 19959: void 19959: list<_Tp, _Alloc>:: 19959: resize(size_type __new_size) 19959: { 19959: const_iterator __i = _M_resize_pos(__new_size); 19959: if (__new_size) 19959: _M_default_append(__new_size); 19959: else 19959: erase(__i, end()); 19959: } 19959: 19959: template 19959: void 19959: list<_Tp, _Alloc>:: 19959: resize(size_type __new_size, const value_type& __x) 19959: { 19959: const_iterator __i = _M_resize_pos(__new_size); 19959: if (__new_size) 19959: insert(end(), __new_size, __x); 19959: else 19959: erase(__i, end()); 19959: } 19959: # 265 "/usr/include/c++/13/bits/list.tcc" 3 19959: template 19959: list<_Tp, _Alloc>& 19959: list<_Tp, _Alloc>:: 19959: operator=(const list& __x) 19959: { 19959: if (this != std::__addressof(__x)) 19959: { 19959: 19959: if (_Node_alloc_traits::_S_propagate_on_copy_assign()) 19959: { 19959: auto& __this_alloc = this->_M_get_Node_allocator(); 19959: auto& __that_alloc = __x._M_get_Node_allocator(); 19959: if (!_Node_alloc_traits::_S_always_equal() 19959: && __this_alloc != __that_alloc) 19959: { 19959: 19959: clear(); 19959: } 19959: std::__alloc_on_copy(__this_alloc, __that_alloc); 19959: } 19959: 19959: _M_assign_dispatch(__x.begin(), __x.end(), __false_type()); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: void 19959: list<_Tp, _Alloc>:: 19959: _M_fill_assign(size_type __n, const value_type& __val) 19959: { 19959: iterator __i = begin(); 19959: for (; __i != end() && __n > 0; ++__i, --__n) 19959: *__i = __val; 19959: if (__n > 0) 19959: insert(end(), __n, __val); 19959: else 19959: erase(__i, end()); 19959: } 19959: 19959: template 19959: template 19959: void 19959: list<_Tp, _Alloc>:: 19959: _M_assign_dispatch(_InputIterator __first2, _InputIterator __last2, 19959: __false_type) 19959: { 19959: iterator __first1 = begin(); 19959: iterator __last1 = end(); 19959: for (; __first1 != __last1 && __first2 != __last2; 19959: ++__first1, (void)++__first2) 19959: *__first1 = *__first2; 19959: if (__first2 == __last2) 19959: erase(__first1, __last1); 19959: else 19959: insert(__last1, __first2, __last2); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: typename list<_Tp, _Alloc>::__remove_return_type 19959: list<_Tp, _Alloc>:: 19959: remove(const value_type& __value) 19959: { 19959: 19959: 19959: 19959: list __to_destroy(get_allocator()); 19959: iterator __first = begin(); 19959: iterator __last = end(); 19959: while (__first != __last) 19959: { 19959: iterator __next = __first; 19959: ++__next; 19959: if (*__first == __value) 19959: { 19959: 19959: 19959: 19959: __to_destroy.splice(__to_destroy.begin(), *this, __first); 19959: 19959: 19959: 19959: } 19959: 19959: __first = __next; 19959: } 19959: 19959: 19959: 19959: 19959: return ; 19959: 19959: } 19959: 19959: template 19959: typename list<_Tp, _Alloc>::__remove_return_type 19959: list<_Tp, _Alloc>:: 19959: unique() 19959: { 19959: iterator __first = begin(); 19959: iterator __last = end(); 19959: if (__first == __last) 19959: return ; 19959: 19959: 19959: 19959: list __to_destroy(get_allocator()); 19959: iterator __next = __first; 19959: while (++__next != __last) 19959: { 19959: if (*__first == *__next) 19959: { 19959: __to_destroy.splice(__to_destroy.begin(), *this, __next); 19959: 19959: 19959: 19959: } 19959: else 19959: __first = __next; 19959: __next = __first; 19959: } 19959: 19959: 19959: 19959: 19959: return ; 19959: 19959: } 19959: 19959: template 19959: void 19959: list<_Tp, _Alloc>:: 19959: 19959: merge(list&& __x) 19959: 19959: 19959: 19959: { 19959: 19959: 19959: if (this != std::__addressof(__x)) 19959: { 19959: _M_check_equal_allocators(__x); 19959: 19959: iterator __first1 = begin(); 19959: iterator __last1 = end(); 19959: iterator __first2 = __x.begin(); 19959: iterator __last2 = __x.end(); 19959: 19959: const _Finalize_merge __fin(*this, __x, __first2); 19959: 19959: while (__first1 != __last1 && __first2 != __last2) 19959: if (*__first2 < *__first1) 19959: { 19959: iterator __next = __first2; 19959: _M_transfer(__first1, __first2, ++__next); 19959: __first2 = __next; 19959: } 19959: else 19959: ++__first1; 19959: if (__first2 != __last2) 19959: { 19959: _M_transfer(__last1, __first2, __last2); 19959: __first2 = __last2; 19959: } 19959: } 19959: } 19959: 19959: template 19959: template 19959: void 19959: list<_Tp, _Alloc>:: 19959: 19959: merge(list&& __x, _StrictWeakOrdering __comp) 19959: 19959: 19959: 19959: { 19959: 19959: 19959: if (this != std::__addressof(__x)) 19959: { 19959: _M_check_equal_allocators(__x); 19959: 19959: iterator __first1 = begin(); 19959: iterator __last1 = end(); 19959: iterator __first2 = __x.begin(); 19959: iterator __last2 = __x.end(); 19959: 19959: const _Finalize_merge __fin(*this, __x, __first2); 19959: 19959: while (__first1 != __last1 && __first2 != __last2) 19959: if (__comp(*__first2, *__first1)) 19959: { 19959: iterator __next = __first2; 19959: _M_transfer(__first1, __first2, ++__next); 19959: __first2 = __next; 19959: } 19959: else 19959: ++__first1; 19959: if (__first2 != __last2) 19959: { 19959: _M_transfer(__last1, __first2, __last2); 19959: __first2 = __last2; 19959: } 19959: } 19959: } 19959: 19959: template 19959: void 19959: list<_Tp, _Alloc>:: 19959: sort() 19959: { 19959: 19959: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 19959: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 19959: { 19959: using __detail::_Scratch_list; 19959: # 497 "/usr/include/c++/13/bits/list.tcc" 3 19959: _Scratch_list __carry; 19959: _Scratch_list __tmp[64]; 19959: _Scratch_list* __fill = __tmp; 19959: _Scratch_list* __counter; 19959: 19959: _Scratch_list::_Ptr_cmp __ptr_comp; 19959: 19959: try 19959: { 19959: do 19959: { 19959: __carry._M_take_one(begin()._M_node); 19959: 19959: for(__counter = __tmp; 19959: __counter != __fill && !__counter->empty(); 19959: ++__counter) 19959: { 19959: 19959: __counter->merge(__carry, __ptr_comp); 19959: __carry.swap(*__counter); 19959: } 19959: __carry.swap(*__counter); 19959: if (__counter == __fill) 19959: ++__fill; 19959: } 19959: while ( !empty() ); 19959: 19959: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 19959: __counter->merge(__counter[-1], __ptr_comp); 19959: __fill[-1].swap(this->_M_impl._M_node); 19959: } 19959: catch(...) 19959: { 19959: 19959: __carry._M_put_all(end()._M_node); 19959: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 19959: __tmp[__i]._M_put_all(end()._M_node); 19959: throw; 19959: } 19959: } 19959: } 19959: 19959: template 19959: template 19959: typename list<_Tp, _Alloc>::__remove_return_type 19959: list<_Tp, _Alloc>:: 19959: remove_if(_Predicate __pred) 19959: { 19959: 19959: 19959: 19959: list __to_destroy(get_allocator()); 19959: iterator __first = begin(); 19959: iterator __last = end(); 19959: while (__first != __last) 19959: { 19959: iterator __next = __first; 19959: ++__next; 19959: if (__pred(*__first)) 19959: { 19959: __to_destroy.splice(__to_destroy.begin(), *this, __first); 19959: 19959: 19959: 19959: } 19959: __first = __next; 19959: } 19959: 19959: 19959: 19959: 19959: return ; 19959: 19959: } 19959: 19959: template 19959: template 19959: typename list<_Tp, _Alloc>::__remove_return_type 19959: list<_Tp, _Alloc>:: 19959: unique(_BinaryPredicate __binary_pred) 19959: { 19959: iterator __first = begin(); 19959: iterator __last = end(); 19959: if (__first == __last) 19959: return ; 19959: 19959: 19959: 19959: list __to_destroy(get_allocator()); 19959: iterator __next = __first; 19959: while (++__next != __last) 19959: { 19959: if (__binary_pred(*__first, *__next)) 19959: { 19959: __to_destroy.splice(__to_destroy.begin(), *this, __next); 19959: 19959: 19959: 19959: } 19959: else 19959: __first = __next; 19959: __next = __first; 19959: } 19959: 19959: 19959: 19959: 19959: return ; 19959: 19959: } 19959: 19959: 19959: 19959: template 19959: template 19959: void 19959: list<_Tp, _Alloc>:: 19959: sort(_StrictWeakOrdering __comp) 19959: { 19959: 19959: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 19959: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 19959: { 19959: using __detail::_Scratch_list; 19959: _Scratch_list __carry; 19959: _Scratch_list __tmp[64]; 19959: _Scratch_list* __fill = __tmp; 19959: _Scratch_list* __counter; 19959: 19959: _Scratch_list::_Ptr_cmp __ptr_comp 19959: = { __comp }; 19959: 19959: try 19959: { 19959: do 19959: { 19959: __carry._M_take_one(begin()._M_node); 19959: 19959: for(__counter = __tmp; 19959: __counter != __fill && !__counter->empty(); 19959: ++__counter) 19959: { 19959: 19959: __counter->merge(__carry, __ptr_comp); 19959: __carry.swap(*__counter); 19959: } 19959: __carry.swap(*__counter); 19959: if (__counter == __fill) 19959: ++__fill; 19959: } 19959: while ( !empty() ); 19959: 19959: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 19959: __counter->merge(__counter[-1], __ptr_comp); 19959: __fill[-1].swap(this->_M_impl._M_node); 19959: } 19959: catch(...) 19959: { 19959: 19959: __carry._M_put_all(end()._M_node); 19959: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 19959: __tmp[__i]._M_put_all(end()._M_node); 19959: throw; 19959: } 19959: } 19959: } 19959: 19959: 19959: 19959: } 19959: # 67 "/usr/include/c++/13/list" 2 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: namespace pmr 19959: { 19959: template 19959: using list = std::list<_Tp, polymorphic_allocator<_Tp>>; 19959: } 19959: 19959: } 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 2 19959: 19959: # 1 "/usr/include/c++/13/set" 1 3 19959: # 58 "/usr/include/c++/13/set" 3 19959: 19959: # 59 "/usr/include/c++/13/set" 3 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/stl_set.h" 1 3 19959: # 64 "/usr/include/c++/13/bits/stl_set.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: class multiset; 19959: # 94 "/usr/include/c++/13/bits/stl_set.h" 3 19959: template, 19959: typename _Alloc = std::allocator<_Key> > 19959: class set 19959: { 19959: # 110 "/usr/include/c++/13/bits/stl_set.h" 3 19959: static_assert(is_same::type, _Key>::value, 19959: "std::set must have a non-const, non-volatile value_type"); 19959: 19959: 19959: 19959: 19959: 19959: 19959: public: 19959: 19959: 19959: 19959: typedef _Key key_type; 19959: typedef _Key value_type; 19959: typedef _Compare key_compare; 19959: typedef _Compare value_compare; 19959: typedef _Alloc allocator_type; 19959: 19959: 19959: private: 19959: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 19959: rebind<_Key>::other _Key_alloc_type; 19959: 19959: typedef _Rb_tree, 19959: key_compare, _Key_alloc_type> _Rep_type; 19959: _Rep_type _M_t; 19959: 19959: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 19959: 19959: public: 19959: 19959: 19959: typedef typename _Alloc_traits::pointer pointer; 19959: typedef typename _Alloc_traits::const_pointer const_pointer; 19959: typedef typename _Alloc_traits::reference reference; 19959: typedef typename _Alloc_traits::const_reference const_reference; 19959: 19959: 19959: 19959: typedef typename _Rep_type::const_iterator iterator; 19959: typedef typename _Rep_type::const_iterator const_iterator; 19959: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 19959: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 19959: typedef typename _Rep_type::size_type size_type; 19959: typedef typename _Rep_type::difference_type difference_type; 19959: 19959: 19959: 19959: using node_type = typename _Rep_type::node_type; 19959: using insert_return_type = typename _Rep_type::insert_return_type; 19959: # 169 "/usr/include/c++/13/bits/stl_set.h" 3 19959: set() = default; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: set(const _Compare& __comp, 19959: const allocator_type& __a = allocator_type()) 19959: : _M_t(__comp, _Key_alloc_type(__a)) { } 19959: # 192 "/usr/include/c++/13/bits/stl_set.h" 3 19959: template 19959: set(_InputIterator __first, _InputIterator __last) 19959: : _M_t() 19959: { _M_t._M_insert_range_unique(__first, __last); } 19959: # 209 "/usr/include/c++/13/bits/stl_set.h" 3 19959: template 19959: set(_InputIterator __first, _InputIterator __last, 19959: const _Compare& __comp, 19959: const allocator_type& __a = allocator_type()) 19959: : _M_t(__comp, _Key_alloc_type(__a)) 19959: { _M_t._M_insert_range_unique(__first, __last); } 19959: # 225 "/usr/include/c++/13/bits/stl_set.h" 3 19959: set(const set&) = default; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: set(set&&) = default; 19959: # 245 "/usr/include/c++/13/bits/stl_set.h" 3 19959: set(initializer_list __l, 19959: const _Compare& __comp = _Compare(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_t(__comp, _Key_alloc_type(__a)) 19959: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 19959: 19959: 19959: explicit 19959: set(const allocator_type& __a) 19959: : _M_t(_Key_alloc_type(__a)) { } 19959: 19959: 19959: set(const set& __x, const __type_identity_t& __a) 19959: : _M_t(__x._M_t, _Key_alloc_type(__a)) { } 19959: 19959: 19959: set(set&& __x, const __type_identity_t& __a) 19959: noexcept(is_nothrow_copy_constructible<_Compare>::value 19959: && _Alloc_traits::_S_always_equal()) 19959: : _M_t(std::move(__x._M_t), _Key_alloc_type(__a)) { } 19959: 19959: 19959: set(initializer_list __l, const allocator_type& __a) 19959: : _M_t(_Key_alloc_type(__a)) 19959: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 19959: 19959: 19959: template 19959: set(_InputIterator __first, _InputIterator __last, 19959: const allocator_type& __a) 19959: : _M_t(_Key_alloc_type(__a)) 19959: { _M_t._M_insert_range_unique(__first, __last); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: ~set() = default; 19959: # 299 "/usr/include/c++/13/bits/stl_set.h" 3 19959: set& 19959: operator=(const set&) = default; 19959: 19959: 19959: set& 19959: operator=(set&&) = default; 19959: # 317 "/usr/include/c++/13/bits/stl_set.h" 3 19959: set& 19959: operator=(initializer_list __l) 19959: { 19959: _M_t._M_assign_unique(__l.begin(), __l.end()); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: key_compare 19959: key_comp() const 19959: { return _M_t.key_comp(); } 19959: 19959: value_compare 19959: value_comp() const 19959: { return _M_t.key_comp(); } 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return allocator_type(_M_t.get_allocator()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: begin() const noexcept 19959: { return _M_t.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: end() const noexcept 19959: { return _M_t.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: reverse_iterator 19959: rbegin() const noexcept 19959: { return _M_t.rbegin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: reverse_iterator 19959: rend() const noexcept 19959: { return _M_t.rend(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: cbegin() const noexcept 19959: { return _M_t.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: cend() const noexcept 19959: { return _M_t.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: reverse_iterator 19959: crbegin() const noexcept 19959: { return _M_t.rbegin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: reverse_iterator 19959: crend() const noexcept 19959: { return _M_t.rend(); } 19959: 19959: 19959: 19959: [[__nodiscard__]] bool 19959: empty() const noexcept 19959: { return _M_t.empty(); } 19959: 19959: 19959: size_type 19959: size() const noexcept 19959: { return _M_t.size(); } 19959: 19959: 19959: size_type 19959: max_size() const noexcept 19959: { return _M_t.max_size(); } 19959: # 442 "/usr/include/c++/13/bits/stl_set.h" 3 19959: void 19959: swap(set& __x) 19959: noexcept(__is_nothrow_swappable<_Compare>::value) 19959: { _M_t.swap(__x._M_t); } 19959: # 462 "/usr/include/c++/13/bits/stl_set.h" 3 19959: template 19959: std::pair 19959: emplace(_Args&&... __args) 19959: { return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); } 19959: # 488 "/usr/include/c++/13/bits/stl_set.h" 3 19959: template 19959: iterator 19959: emplace_hint(const_iterator __pos, _Args&&... __args) 19959: { 19959: return _M_t._M_emplace_hint_unique(__pos, 19959: std::forward<_Args>(__args)...); 19959: } 19959: # 510 "/usr/include/c++/13/bits/stl_set.h" 3 19959: std::pair 19959: insert(const value_type& __x) 19959: { 19959: std::pair __p = 19959: _M_t._M_insert_unique(__x); 19959: return std::pair(__p.first, __p.second); 19959: } 19959: 19959: 19959: std::pair 19959: insert(value_type&& __x) 19959: { 19959: std::pair __p = 19959: _M_t._M_insert_unique(std::move(__x)); 19959: return std::pair(__p.first, __p.second); 19959: } 19959: # 547 "/usr/include/c++/13/bits/stl_set.h" 3 19959: iterator 19959: insert(const_iterator __position, const value_type& __x) 19959: { return _M_t._M_insert_unique_(__position, __x); } 19959: 19959: 19959: iterator 19959: insert(const_iterator __position, value_type&& __x) 19959: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 19959: # 566 "/usr/include/c++/13/bits/stl_set.h" 3 19959: template 19959: void 19959: insert(_InputIterator __first, _InputIterator __last) 19959: { _M_t._M_insert_range_unique(__first, __last); } 19959: # 579 "/usr/include/c++/13/bits/stl_set.h" 3 19959: void 19959: insert(initializer_list __l) 19959: { this->insert(__l.begin(), __l.end()); } 19959: 19959: 19959: 19959: 19959: node_type 19959: extract(const_iterator __pos) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 19959: return _M_t.extract(__pos); 19959: } 19959: 19959: 19959: node_type 19959: extract(const key_type& __x) 19959: { return _M_t.extract(__x); } 19959: 19959: 19959: insert_return_type 19959: insert(node_type&& __nh) 19959: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 19959: 19959: 19959: iterator 19959: insert(const_iterator __hint, node_type&& __nh) 19959: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 19959: 19959: template 19959: friend struct std::_Rb_tree_merge_helper; 19959: 19959: template 19959: void 19959: merge(set<_Key, _Compare1, _Alloc>& __source) 19959: { 19959: using _Merge_helper = _Rb_tree_merge_helper; 19959: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(set<_Key, _Compare1, _Alloc>&& __source) 19959: { merge(__source); } 19959: 19959: template 19959: void 19959: merge(multiset<_Key, _Compare1, _Alloc>& __source) 19959: { 19959: using _Merge_helper = _Rb_tree_merge_helper; 19959: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 19959: { merge(__source); } 19959: # 654 "/usr/include/c++/13/bits/stl_set.h" 3 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: iterator 19959: erase(const_iterator __position) 19959: { return _M_t.erase(__position); } 19959: # 685 "/usr/include/c++/13/bits/stl_set.h" 3 19959: size_type 19959: erase(const key_type& __x) 19959: { return _M_t.erase(__x); } 19959: # 706 "/usr/include/c++/13/bits/stl_set.h" 3 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: iterator 19959: erase(const_iterator __first, const_iterator __last) 19959: { return _M_t.erase(__first, __last); } 19959: # 734 "/usr/include/c++/13/bits/stl_set.h" 3 19959: void 19959: clear() noexcept 19959: { _M_t.clear(); } 19959: # 749 "/usr/include/c++/13/bits/stl_set.h" 3 19959: size_type 19959: count(const key_type& __x) const 19959: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 19959: 19959: 19959: template 19959: auto 19959: count(const _Kt& __x) const 19959: -> decltype(_M_t._M_count_tr(__x)) 19959: { return _M_t._M_count_tr(__x); } 19959: # 795 "/usr/include/c++/13/bits/stl_set.h" 3 19959: iterator 19959: find(const key_type& __x) 19959: { return _M_t.find(__x); } 19959: 19959: const_iterator 19959: find(const key_type& __x) const 19959: { return _M_t.find(__x); } 19959: 19959: 19959: template 19959: auto 19959: find(const _Kt& __x) 19959: -> decltype(iterator{_M_t._M_find_tr(__x)}) 19959: { return iterator{_M_t._M_find_tr(__x)}; } 19959: 19959: template 19959: auto 19959: find(const _Kt& __x) const 19959: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 19959: { return const_iterator{_M_t._M_find_tr(__x)}; } 19959: # 830 "/usr/include/c++/13/bits/stl_set.h" 3 19959: iterator 19959: lower_bound(const key_type& __x) 19959: { return _M_t.lower_bound(__x); } 19959: 19959: const_iterator 19959: lower_bound(const key_type& __x) const 19959: { return _M_t.lower_bound(__x); } 19959: 19959: 19959: template 19959: auto 19959: lower_bound(const _Kt& __x) 19959: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 19959: { return iterator(_M_t._M_lower_bound_tr(__x)); } 19959: 19959: template 19959: auto 19959: lower_bound(const _Kt& __x) const 19959: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 19959: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 19959: # 860 "/usr/include/c++/13/bits/stl_set.h" 3 19959: iterator 19959: upper_bound(const key_type& __x) 19959: { return _M_t.upper_bound(__x); } 19959: 19959: const_iterator 19959: upper_bound(const key_type& __x) const 19959: { return _M_t.upper_bound(__x); } 19959: 19959: 19959: template 19959: auto 19959: upper_bound(const _Kt& __x) 19959: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 19959: { return iterator(_M_t._M_upper_bound_tr(__x)); } 19959: 19959: template 19959: auto 19959: upper_bound(const _Kt& __x) const 19959: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 19959: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 19959: # 899 "/usr/include/c++/13/bits/stl_set.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) 19959: { return _M_t.equal_range(__x); } 19959: 19959: std::pair 19959: equal_range(const key_type& __x) const 19959: { return _M_t.equal_range(__x); } 19959: 19959: 19959: template 19959: auto 19959: equal_range(const _Kt& __x) 19959: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 19959: { return pair(_M_t._M_equal_range_tr(__x)); } 19959: 19959: template 19959: auto 19959: equal_range(const _Kt& __x) const 19959: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 19959: { return pair(_M_t._M_equal_range_tr(__x)); } 19959: 19959: 19959: 19959: template 19959: friend bool 19959: operator==(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: friend bool 19959: operator<(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 19959: 19959: }; 19959: 19959: 19959: 19959: template::value_type>, 19959: typename _Allocator = 19959: allocator::value_type>, 19959: typename = _RequireInputIter<_InputIterator>, 19959: typename = _RequireNotAllocator<_Compare>, 19959: typename = _RequireAllocator<_Allocator>> 19959: set(_InputIterator, _InputIterator, 19959: _Compare = _Compare(), _Allocator = _Allocator()) 19959: -> set::value_type, 19959: _Compare, _Allocator>; 19959: 19959: template, 19959: typename _Allocator = allocator<_Key>, 19959: typename = _RequireNotAllocator<_Compare>, 19959: typename = _RequireAllocator<_Allocator>> 19959: set(initializer_list<_Key>, 19959: _Compare = _Compare(), _Allocator = _Allocator()) 19959: -> set<_Key, _Compare, _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: set(_InputIterator, _InputIterator, _Allocator) 19959: -> set::value_type, 19959: less::value_type>, 19959: _Allocator>; 19959: 19959: template> 19959: set(initializer_list<_Key>, _Allocator) 19959: -> set<_Key, less<_Key>, _Allocator>; 19959: # 985 "/usr/include/c++/13/bits/stl_set.h" 3 19959: template 19959: inline bool 19959: operator==(const set<_Key, _Compare, _Alloc>& __x, 19959: const set<_Key, _Compare, _Alloc>& __y) 19959: { return __x._M_t == __y._M_t; } 19959: # 1023 "/usr/include/c++/13/bits/stl_set.h" 3 19959: template 19959: inline bool 19959: operator<(const set<_Key, _Compare, _Alloc>& __x, 19959: const set<_Key, _Compare, _Alloc>& __y) 19959: { return __x._M_t < __y._M_t; } 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const set<_Key, _Compare, _Alloc>& __x, 19959: const set<_Key, _Compare, _Alloc>& __y) 19959: { return !(__x == __y); } 19959: 19959: 19959: template 19959: inline bool 19959: operator>(const set<_Key, _Compare, _Alloc>& __x, 19959: const set<_Key, _Compare, _Alloc>& __y) 19959: { return __y < __x; } 19959: 19959: 19959: template 19959: inline bool 19959: operator<=(const set<_Key, _Compare, _Alloc>& __x, 19959: const set<_Key, _Compare, _Alloc>& __y) 19959: { return !(__y < __x); } 19959: 19959: 19959: template 19959: inline bool 19959: operator>=(const set<_Key, _Compare, _Alloc>& __x, 19959: const set<_Key, _Compare, _Alloc>& __y) 19959: { return !(__x < __y); } 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct 19959: _Rb_tree_merge_helper, _Cmp2> 19959: { 19959: private: 19959: friend class std::set<_Val, _Cmp1, _Alloc>; 19959: 19959: static auto& 19959: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 19959: { return __set._M_t; } 19959: 19959: static auto& 19959: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 19959: { return __set._M_t; } 19959: }; 19959: 19959: 19959: 19959: } 19959: # 64 "/usr/include/c++/13/set" 2 3 19959: # 1 "/usr/include/c++/13/bits/stl_multiset.h" 1 3 19959: # 64 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: class set; 19959: # 95 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: template , 19959: typename _Alloc = std::allocator<_Key> > 19959: class multiset 19959: { 19959: # 111 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: static_assert(is_same::type, _Key>::value, 19959: "std::multiset must have a non-const, non-volatile value_type"); 19959: 19959: 19959: 19959: 19959: 19959: 19959: public: 19959: 19959: typedef _Key key_type; 19959: typedef _Key value_type; 19959: typedef _Compare key_compare; 19959: typedef _Compare value_compare; 19959: typedef _Alloc allocator_type; 19959: 19959: private: 19959: 19959: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 19959: rebind<_Key>::other _Key_alloc_type; 19959: 19959: typedef _Rb_tree, 19959: key_compare, _Key_alloc_type> _Rep_type; 19959: 19959: _Rep_type _M_t; 19959: 19959: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 19959: 19959: public: 19959: typedef typename _Alloc_traits::pointer pointer; 19959: typedef typename _Alloc_traits::const_pointer const_pointer; 19959: typedef typename _Alloc_traits::reference reference; 19959: typedef typename _Alloc_traits::const_reference const_reference; 19959: 19959: 19959: 19959: typedef typename _Rep_type::const_iterator iterator; 19959: typedef typename _Rep_type::const_iterator const_iterator; 19959: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 19959: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 19959: typedef typename _Rep_type::size_type size_type; 19959: typedef typename _Rep_type::difference_type difference_type; 19959: 19959: 19959: using node_type = typename _Rep_type::node_type; 19959: # 165 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: multiset() = default; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: multiset(const _Compare& __comp, 19959: const allocator_type& __a = allocator_type()) 19959: : _M_t(__comp, _Key_alloc_type(__a)) { } 19959: # 187 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: template 19959: multiset(_InputIterator __first, _InputIterator __last) 19959: : _M_t() 19959: { _M_t._M_insert_range_equal(__first, __last); } 19959: # 203 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: template 19959: multiset(_InputIterator __first, _InputIterator __last, 19959: const _Compare& __comp, 19959: const allocator_type& __a = allocator_type()) 19959: : _M_t(__comp, _Key_alloc_type(__a)) 19959: { _M_t._M_insert_range_equal(__first, __last); } 19959: # 219 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: multiset(const multiset&) = default; 19959: # 228 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: multiset(multiset&&) = default; 19959: # 240 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: multiset(initializer_list __l, 19959: const _Compare& __comp = _Compare(), 19959: const allocator_type& __a = allocator_type()) 19959: : _M_t(__comp, _Key_alloc_type(__a)) 19959: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 19959: 19959: 19959: explicit 19959: multiset(const allocator_type& __a) 19959: : _M_t(_Key_alloc_type(__a)) { } 19959: 19959: 19959: multiset(const multiset& __m, 19959: const __type_identity_t& __a) 19959: : _M_t(__m._M_t, _Key_alloc_type(__a)) { } 19959: 19959: 19959: multiset(multiset&& __m, const __type_identity_t& __a) 19959: noexcept(is_nothrow_copy_constructible<_Compare>::value 19959: && _Alloc_traits::_S_always_equal()) 19959: : _M_t(std::move(__m._M_t), _Key_alloc_type(__a)) { } 19959: 19959: 19959: multiset(initializer_list __l, const allocator_type& __a) 19959: : _M_t(_Key_alloc_type(__a)) 19959: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 19959: 19959: 19959: template 19959: multiset(_InputIterator __first, _InputIterator __last, 19959: const allocator_type& __a) 19959: : _M_t(_Key_alloc_type(__a)) 19959: { _M_t._M_insert_range_equal(__first, __last); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: ~multiset() = default; 19959: # 295 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: multiset& 19959: operator=(const multiset&) = default; 19959: 19959: 19959: multiset& 19959: operator=(multiset&&) = default; 19959: # 313 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: multiset& 19959: operator=(initializer_list __l) 19959: { 19959: _M_t._M_assign_equal(__l.begin(), __l.end()); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: key_compare 19959: key_comp() const 19959: { return _M_t.key_comp(); } 19959: 19959: value_compare 19959: value_comp() const 19959: { return _M_t.key_comp(); } 19959: 19959: allocator_type 19959: get_allocator() const noexcept 19959: { return allocator_type(_M_t.get_allocator()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: begin() const noexcept 19959: { return _M_t.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: end() const noexcept 19959: { return _M_t.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: reverse_iterator 19959: rbegin() const noexcept 19959: { return _M_t.rbegin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: reverse_iterator 19959: rend() const noexcept 19959: { return _M_t.rend(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: cbegin() const noexcept 19959: { return _M_t.begin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: iterator 19959: cend() const noexcept 19959: { return _M_t.end(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: reverse_iterator 19959: crbegin() const noexcept 19959: { return _M_t.rbegin(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: reverse_iterator 19959: crend() const noexcept 19959: { return _M_t.rend(); } 19959: 19959: 19959: 19959: [[__nodiscard__]] bool 19959: empty() const noexcept 19959: { return _M_t.empty(); } 19959: 19959: 19959: size_type 19959: size() const noexcept 19959: { return _M_t.size(); } 19959: 19959: 19959: size_type 19959: max_size() const noexcept 19959: { return _M_t.max_size(); } 19959: # 438 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: void 19959: swap(multiset& __x) 19959: noexcept(__is_nothrow_swappable<_Compare>::value) 19959: { _M_t.swap(__x._M_t); } 19959: # 457 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: template 19959: iterator 19959: emplace(_Args&&... __args) 19959: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 19959: # 483 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: template 19959: iterator 19959: emplace_hint(const_iterator __pos, _Args&&... __args) 19959: { 19959: return _M_t._M_emplace_hint_equal(__pos, 19959: std::forward<_Args>(__args)...); 19959: } 19959: # 503 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: iterator 19959: insert(const value_type& __x) 19959: { return _M_t._M_insert_equal(__x); } 19959: 19959: 19959: iterator 19959: insert(value_type&& __x) 19959: { return _M_t._M_insert_equal(std::move(__x)); } 19959: # 533 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: iterator 19959: insert(const_iterator __position, const value_type& __x) 19959: { return _M_t._M_insert_equal_(__position, __x); } 19959: 19959: 19959: iterator 19959: insert(const_iterator __position, value_type&& __x) 19959: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 19959: # 551 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: template 19959: void 19959: insert(_InputIterator __first, _InputIterator __last) 19959: { _M_t._M_insert_range_equal(__first, __last); } 19959: # 564 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: void 19959: insert(initializer_list __l) 19959: { this->insert(__l.begin(), __l.end()); } 19959: 19959: 19959: 19959: 19959: node_type 19959: extract(const_iterator __pos) 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 19959: return _M_t.extract(__pos); 19959: } 19959: 19959: 19959: node_type 19959: extract(const key_type& __x) 19959: { return _M_t.extract(__x); } 19959: 19959: 19959: iterator 19959: insert(node_type&& __nh) 19959: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 19959: 19959: 19959: iterator 19959: insert(const_iterator __hint, node_type&& __nh) 19959: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 19959: 19959: template 19959: friend struct std::_Rb_tree_merge_helper; 19959: 19959: template 19959: void 19959: merge(multiset<_Key, _Compare1, _Alloc>& __source) 19959: { 19959: using _Merge_helper = _Rb_tree_merge_helper; 19959: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 19959: { merge(__source); } 19959: 19959: template 19959: void 19959: merge(set<_Key, _Compare1, _Alloc>& __source) 19959: { 19959: using _Merge_helper = _Rb_tree_merge_helper; 19959: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 19959: } 19959: 19959: template 19959: void 19959: merge(set<_Key, _Compare1, _Alloc>&& __source) 19959: { merge(__source); } 19959: # 639 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: iterator 19959: erase(const_iterator __position) 19959: { return _M_t.erase(__position); } 19959: # 670 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: size_type 19959: erase(const key_type& __x) 19959: { return _M_t.erase(__x); } 19959: # 691 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: iterator 19959: erase(const_iterator __first, const_iterator __last) 19959: { return _M_t.erase(__first, __last); } 19959: # 719 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: void 19959: clear() noexcept 19959: { _M_t.clear(); } 19959: # 731 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: size_type 19959: count(const key_type& __x) const 19959: { return _M_t.count(__x); } 19959: 19959: 19959: template 19959: auto 19959: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 19959: { return _M_t._M_count_tr(__x); } 19959: # 776 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: iterator 19959: find(const key_type& __x) 19959: { return _M_t.find(__x); } 19959: 19959: const_iterator 19959: find(const key_type& __x) const 19959: { return _M_t.find(__x); } 19959: 19959: 19959: template 19959: auto 19959: find(const _Kt& __x) 19959: -> decltype(iterator{_M_t._M_find_tr(__x)}) 19959: { return iterator{_M_t._M_find_tr(__x)}; } 19959: 19959: template 19959: auto 19959: find(const _Kt& __x) const 19959: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 19959: { return const_iterator{_M_t._M_find_tr(__x)}; } 19959: # 811 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: iterator 19959: lower_bound(const key_type& __x) 19959: { return _M_t.lower_bound(__x); } 19959: 19959: const_iterator 19959: lower_bound(const key_type& __x) const 19959: { return _M_t.lower_bound(__x); } 19959: 19959: 19959: template 19959: auto 19959: lower_bound(const _Kt& __x) 19959: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 19959: { return iterator(_M_t._M_lower_bound_tr(__x)); } 19959: 19959: template 19959: auto 19959: lower_bound(const _Kt& __x) const 19959: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 19959: { return iterator(_M_t._M_lower_bound_tr(__x)); } 19959: # 841 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: iterator 19959: upper_bound(const key_type& __x) 19959: { return _M_t.upper_bound(__x); } 19959: 19959: const_iterator 19959: upper_bound(const key_type& __x) const 19959: { return _M_t.upper_bound(__x); } 19959: 19959: 19959: template 19959: auto 19959: upper_bound(const _Kt& __x) 19959: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 19959: { return iterator(_M_t._M_upper_bound_tr(__x)); } 19959: 19959: template 19959: auto 19959: upper_bound(const _Kt& __x) const 19959: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 19959: { return iterator(_M_t._M_upper_bound_tr(__x)); } 19959: # 880 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: std::pair 19959: equal_range(const key_type& __x) 19959: { return _M_t.equal_range(__x); } 19959: 19959: std::pair 19959: equal_range(const key_type& __x) const 19959: { return _M_t.equal_range(__x); } 19959: 19959: 19959: template 19959: auto 19959: equal_range(const _Kt& __x) 19959: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 19959: { return pair(_M_t._M_equal_range_tr(__x)); } 19959: 19959: template 19959: auto 19959: equal_range(const _Kt& __x) const 19959: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 19959: { return pair(_M_t._M_equal_range_tr(__x)); } 19959: 19959: 19959: 19959: template 19959: friend bool 19959: operator==(const multiset<_K1, _C1, _A1>&, 19959: const multiset<_K1, _C1, _A1>&); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: friend bool 19959: operator< (const multiset<_K1, _C1, _A1>&, 19959: const multiset<_K1, _C1, _A1>&); 19959: 19959: }; 19959: 19959: 19959: 19959: template::value_type>, 19959: typename _Allocator = 19959: allocator::value_type>, 19959: typename = _RequireInputIter<_InputIterator>, 19959: typename = _RequireNotAllocator<_Compare>, 19959: typename = _RequireAllocator<_Allocator>> 19959: multiset(_InputIterator, _InputIterator, 19959: _Compare = _Compare(), _Allocator = _Allocator()) 19959: -> multiset::value_type, 19959: _Compare, _Allocator>; 19959: 19959: template, 19959: typename _Allocator = allocator<_Key>, 19959: typename = _RequireNotAllocator<_Compare>, 19959: typename = _RequireAllocator<_Allocator>> 19959: multiset(initializer_list<_Key>, 19959: _Compare = _Compare(), _Allocator = _Allocator()) 19959: -> multiset<_Key, _Compare, _Allocator>; 19959: 19959: template, 19959: typename = _RequireAllocator<_Allocator>> 19959: multiset(_InputIterator, _InputIterator, _Allocator) 19959: -> multiset::value_type, 19959: less::value_type>, 19959: _Allocator>; 19959: 19959: template> 19959: multiset(initializer_list<_Key>, _Allocator) 19959: -> multiset<_Key, less<_Key>, _Allocator>; 19959: # 971 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: template 19959: inline bool 19959: operator==(const multiset<_Key, _Compare, _Alloc>& __x, 19959: const multiset<_Key, _Compare, _Alloc>& __y) 19959: { return __x._M_t == __y._M_t; } 19959: # 1009 "/usr/include/c++/13/bits/stl_multiset.h" 3 19959: template 19959: inline bool 19959: operator<(const multiset<_Key, _Compare, _Alloc>& __x, 19959: const multiset<_Key, _Compare, _Alloc>& __y) 19959: { return __x._M_t < __y._M_t; } 19959: 19959: 19959: template 19959: inline bool 19959: operator!=(const multiset<_Key, _Compare, _Alloc>& __x, 19959: const multiset<_Key, _Compare, _Alloc>& __y) 19959: { return !(__x == __y); } 19959: 19959: 19959: template 19959: inline bool 19959: operator>(const multiset<_Key,_Compare,_Alloc>& __x, 19959: const multiset<_Key,_Compare,_Alloc>& __y) 19959: { return __y < __x; } 19959: 19959: 19959: template 19959: inline bool 19959: operator<=(const multiset<_Key, _Compare, _Alloc>& __x, 19959: const multiset<_Key, _Compare, _Alloc>& __y) 19959: { return !(__y < __x); } 19959: 19959: 19959: template 19959: inline bool 19959: operator>=(const multiset<_Key, _Compare, _Alloc>& __x, 19959: const multiset<_Key, _Compare, _Alloc>& __y) 19959: { return !(__x < __y); } 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(multiset<_Key, _Compare, _Alloc>& __x, 19959: multiset<_Key, _Compare, _Alloc>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct 19959: _Rb_tree_merge_helper, 19959: _Cmp2> 19959: { 19959: private: 19959: friend class std::multiset<_Val, _Cmp1, _Alloc>; 19959: 19959: static auto& 19959: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 19959: { return __set._M_t; } 19959: 19959: static auto& 19959: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 19959: { return __set._M_t; } 19959: }; 19959: 19959: 19959: 19959: } 19959: # 65 "/usr/include/c++/13/set" 2 3 19959: # 74 "/usr/include/c++/13/set" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: namespace pmr 19959: { 19959: template> 19959: using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>; 19959: template> 19959: using multiset = std::multiset<_Key, _Cmp, polymorphic_allocator<_Key>>; 19959: } 19959: 19959: } 19959: # 11 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 2 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/file/readahead_file_info.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/file/readahead_file_info.h" 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct ReadaheadFileInfo { 19959: struct ReadaheadInfo { 19959: size_t readahead_size = 0; 19959: int64_t num_file_reads = 0; 19959: }; 19959: 19959: 19959: ReadaheadInfo data_block_readahead_info; 19959: 19959: 19959: ReadaheadInfo index_block_readahead_info; 19959: }; 19959: 19959: } 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 1 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/ostream" 1 3 19959: # 36 "/usr/include/c++/13/ostream" 3 19959: 19959: # 37 "/usr/include/c++/13/ostream" 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/ios" 1 3 19959: # 36 "/usr/include/c++/13/ios" 3 19959: 19959: # 37 "/usr/include/c++/13/ios" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/ios_base.h" 1 3 19959: # 37 "/usr/include/c++/13/bits/ios_base.h" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/ios_base.h" 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/locale_classes.h" 1 3 19959: # 37 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 43 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 62 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: class locale 19959: { 19959: public: 19959: 19959: 19959: typedef int category; 19959: 19959: 19959: class facet; 19959: class id; 19959: class _Impl; 19959: 19959: friend class facet; 19959: friend class _Impl; 19959: 19959: template 19959: friend bool 19959: has_facet(const locale&) throw(); 19959: 19959: template 19959: friend const _Facet& 19959: use_facet(const locale&); 19959: 19959: template 19959: friend const _Facet* 19959: __try_use_facet(const locale&) noexcept; 19959: 19959: template 19959: friend struct __use_cache; 19959: # 102 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: static const category none = 0; 19959: static const category ctype = 1L << 0; 19959: static const category numeric = 1L << 1; 19959: static const category collate = 1L << 2; 19959: static const category time = 1L << 3; 19959: static const category monetary = 1L << 4; 19959: static const category messages = 1L << 5; 19959: static const category all = (ctype | numeric | collate | 19959: time | monetary | messages); 19959: # 121 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: locale() throw(); 19959: # 130 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: locale(const locale& __other) throw(); 19959: # 140 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: explicit 19959: locale(const char* __s); 19959: # 155 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: locale(const locale& __base, const char* __s, category __cat); 19959: # 166 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: explicit 19959: locale(const std::string& __s) : locale(__s.c_str()) { } 19959: # 181 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: locale(const locale& __base, const std::string& __s, category __cat) 19959: : locale(__base, __s.c_str(), __cat) { } 19959: # 196 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: locale(const locale& __base, const locale& __add, category __cat); 19959: # 209 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: template 19959: locale(const locale& __other, _Facet* __f); 19959: 19959: 19959: ~locale() throw(); 19959: # 223 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: const locale& 19959: operator=(const locale& __other) throw(); 19959: # 238 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: template 19959: locale 19959: combine(const locale& __other) const; 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: string 19959: name() const; 19959: # 258 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: bool 19959: operator==(const locale& __other) const throw(); 19959: # 268 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: bool 19959: operator!=(const locale& __other) const throw() 19959: { return !(this->operator==(__other)); } 19959: # 288 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: template 19959: bool 19959: operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, 19959: const basic_string<_Char, _Traits, _Alloc>& __s2) const; 19959: # 304 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: static locale 19959: global(const locale& __loc); 19959: 19959: 19959: 19959: 19959: static const locale& 19959: classic(); 19959: 19959: private: 19959: 19959: _Impl* _M_impl; 19959: 19959: 19959: static _Impl* _S_classic; 19959: 19959: 19959: static _Impl* _S_global; 19959: 19959: 19959: 19959: 19959: 19959: static const char* const* const _S_categories; 19959: # 339 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: enum { _S_categories_size = 6 + 6 }; 19959: 19959: 19959: static __gthread_once_t _S_once; 19959: 19959: 19959: explicit 19959: locale(_Impl*) throw(); 19959: 19959: static void 19959: _S_initialize(); 19959: 19959: static void 19959: _S_initialize_once() throw(); 19959: 19959: static category 19959: _S_normalize_category(category); 19959: 19959: void 19959: _M_coalesce(const locale& __base, const locale& __add, category __cat); 19959: 19959: 19959: static const id* const _S_twinned_facets[]; 19959: 19959: }; 19959: # 377 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: class locale::facet 19959: { 19959: private: 19959: friend class locale; 19959: friend class locale::_Impl; 19959: 19959: mutable _Atomic_word _M_refcount; 19959: 19959: 19959: static __c_locale _S_c_locale; 19959: 19959: 19959: static const char _S_c_name[2]; 19959: 19959: 19959: static __gthread_once_t _S_once; 19959: 19959: 19959: static void 19959: _S_initialize_once(); 19959: 19959: protected: 19959: # 408 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: explicit 19959: facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) 19959: { } 19959: 19959: 19959: virtual 19959: ~facet(); 19959: 19959: static void 19959: _S_create_c_locale(__c_locale& __cloc, const char* __s, 19959: __c_locale __old = 0); 19959: 19959: static __c_locale 19959: _S_clone_c_locale(__c_locale& __cloc) throw(); 19959: 19959: static void 19959: _S_destroy_c_locale(__c_locale& __cloc); 19959: 19959: static __c_locale 19959: _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); 19959: 19959: 19959: 19959: static __c_locale 19959: _S_get_c_locale(); 19959: 19959: __attribute__ ((__const__)) static const char* 19959: _S_get_c_name() throw(); 19959: # 444 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: facet(const facet&) = delete; 19959: 19959: facet& 19959: operator=(const facet&) = delete; 19959: 19959: 19959: private: 19959: void 19959: _M_add_reference() const throw() 19959: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 19959: 19959: void 19959: _M_remove_reference() const throw() 19959: { 19959: 19959: ; 19959: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 19959: { 19959: ; 19959: try 19959: { delete this; } 19959: catch(...) 19959: { } 19959: } 19959: } 19959: 19959: const facet* _M_sso_shim(const id*) const; 19959: const facet* _M_cow_shim(const id*) const; 19959: 19959: protected: 19959: class __shim; 19959: }; 19959: # 489 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: class locale::id 19959: { 19959: private: 19959: friend class locale; 19959: friend class locale::_Impl; 19959: 19959: template 19959: friend const _Facet& 19959: use_facet(const locale&); 19959: 19959: template 19959: friend bool 19959: has_facet(const locale&) throw(); 19959: 19959: template 19959: friend const _Facet* 19959: __try_use_facet(const locale&) noexcept; 19959: 19959: 19959: 19959: 19959: mutable size_t _M_index; 19959: 19959: 19959: static _Atomic_word _S_refcount; 19959: 19959: void 19959: operator=(const id&); 19959: 19959: id(const id&); 19959: 19959: public: 19959: 19959: 19959: 19959: id() { } 19959: 19959: size_t 19959: _M_id() const throw(); 19959: }; 19959: 19959: 19959: 19959: class locale::_Impl 19959: { 19959: public: 19959: 19959: friend class locale; 19959: friend class locale::facet; 19959: 19959: template 19959: friend bool 19959: has_facet(const locale&) throw(); 19959: 19959: template 19959: friend const _Facet& 19959: use_facet(const locale&); 19959: 19959: template 19959: friend const _Facet* 19959: __try_use_facet(const locale&) noexcept; 19959: 19959: template 19959: friend struct __use_cache; 19959: 19959: private: 19959: 19959: _Atomic_word _M_refcount; 19959: const facet** _M_facets; 19959: size_t _M_facets_size; 19959: const facet** _M_caches; 19959: char** _M_names; 19959: static const locale::id* const _S_id_ctype[]; 19959: static const locale::id* const _S_id_numeric[]; 19959: static const locale::id* const _S_id_collate[]; 19959: static const locale::id* const _S_id_time[]; 19959: static const locale::id* const _S_id_monetary[]; 19959: static const locale::id* const _S_id_messages[]; 19959: static const locale::id* const* const _S_facet_categories[]; 19959: 19959: void 19959: _M_add_reference() throw() 19959: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 19959: 19959: void 19959: _M_remove_reference() throw() 19959: { 19959: 19959: ; 19959: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 19959: { 19959: ; 19959: try 19959: { delete this; } 19959: catch(...) 19959: { } 19959: } 19959: } 19959: 19959: _Impl(const _Impl&, size_t); 19959: _Impl(const char*, size_t); 19959: _Impl(size_t) throw(); 19959: 19959: ~_Impl() throw(); 19959: 19959: _Impl(const _Impl&); 19959: 19959: void 19959: operator=(const _Impl&); 19959: 19959: bool 19959: _M_check_same_name() 19959: { 19959: bool __ret = true; 19959: if (_M_names[1]) 19959: 19959: for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) 19959: __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; 19959: return __ret; 19959: } 19959: 19959: void 19959: _M_replace_categories(const _Impl*, category); 19959: 19959: void 19959: _M_replace_category(const _Impl*, const locale::id* const*); 19959: 19959: void 19959: _M_replace_facet(const _Impl*, const locale::id*); 19959: 19959: void 19959: _M_install_facet(const locale::id*, const facet*); 19959: 19959: template 19959: void 19959: _M_init_facet(_Facet* __facet) 19959: { _M_install_facet(&_Facet::id, __facet); } 19959: 19959: template 19959: void 19959: _M_init_facet_unchecked(_Facet* __facet) 19959: { 19959: __facet->_M_add_reference(); 19959: _M_facets[_Facet::id._M_id()] = __facet; 19959: } 19959: 19959: void 19959: _M_install_cache(const facet*, size_t); 19959: 19959: void _M_init_extra(facet**); 19959: void _M_init_extra(void*, void*, const char*, const char*); 19959: 19959: 19959: 19959: 19959: }; 19959: # 659 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: template 19959: class __cxx11:: collate : public locale::facet 19959: { 19959: public: 19959: 19959: 19959: 19959: typedef _CharT char_type; 19959: typedef basic_string<_CharT> string_type; 19959: 19959: 19959: protected: 19959: 19959: 19959: __c_locale _M_c_locale_collate; 19959: 19959: public: 19959: 19959: static locale::id id; 19959: # 686 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: explicit 19959: collate(size_t __refs = 0) 19959: : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) 19959: { } 19959: # 700 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: explicit 19959: collate(__c_locale __cloc, size_t __refs = 0) 19959: : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) 19959: { } 19959: # 717 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: int 19959: compare(const _CharT* __lo1, const _CharT* __hi1, 19959: const _CharT* __lo2, const _CharT* __hi2) const 19959: { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } 19959: # 736 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: string_type 19959: transform(const _CharT* __lo, const _CharT* __hi) const 19959: { return this->do_transform(__lo, __hi); } 19959: # 750 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: long 19959: hash(const _CharT* __lo, const _CharT* __hi) const 19959: { return this->do_hash(__lo, __hi); } 19959: 19959: 19959: int 19959: _M_compare(const _CharT*, const _CharT*) const throw(); 19959: 19959: size_t 19959: _M_transform(_CharT*, const _CharT*, size_t) const throw(); 19959: 19959: protected: 19959: 19959: virtual 19959: ~collate() 19959: { _S_destroy_c_locale(_M_c_locale_collate); } 19959: # 779 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: virtual int 19959: do_compare(const _CharT* __lo1, const _CharT* __hi1, 19959: const _CharT* __lo2, const _CharT* __hi2) const; 19959: # 793 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: virtual string_type 19959: do_transform(const _CharT* __lo, const _CharT* __hi) const; 19959: # 806 "/usr/include/c++/13/bits/locale_classes.h" 3 19959: virtual long 19959: do_hash(const _CharT* __lo, const _CharT* __hi) const; 19959: }; 19959: 19959: template 19959: locale::id collate<_CharT>::id; 19959: 19959: 19959: template<> 19959: int 19959: collate::_M_compare(const char*, const char*) const throw(); 19959: 19959: template<> 19959: size_t 19959: collate::_M_transform(char*, const char*, size_t) const throw(); 19959: 19959: 19959: template<> 19959: int 19959: collate::_M_compare(const wchar_t*, const wchar_t*) const throw(); 19959: 19959: template<> 19959: size_t 19959: collate::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); 19959: 19959: 19959: 19959: template 19959: class __cxx11:: collate_byname : public collate<_CharT> 19959: { 19959: public: 19959: 19959: 19959: typedef _CharT char_type; 19959: typedef basic_string<_CharT> string_type; 19959: 19959: 19959: explicit 19959: collate_byname(const char* __s, size_t __refs = 0) 19959: : collate<_CharT>(__refs) 19959: { 19959: if (__builtin_strcmp(__s, "C") != 0 19959: && __builtin_strcmp(__s, "POSIX") != 0) 19959: { 19959: this->_S_destroy_c_locale(this->_M_c_locale_collate); 19959: this->_S_create_c_locale(this->_M_c_locale_collate, __s); 19959: } 19959: } 19959: 19959: 19959: explicit 19959: collate_byname(const string& __s, size_t __refs = 0) 19959: : collate_byname(__s.c_str(), __refs) { } 19959: 19959: 19959: protected: 19959: virtual 19959: ~collate_byname() { } 19959: }; 19959: 19959: 19959: } 19959: 19959: # 1 "/usr/include/c++/13/bits/locale_classes.tcc" 1 3 19959: # 37 "/usr/include/c++/13/bits/locale_classes.tcc" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/locale_classes.tcc" 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template 19959: locale:: 19959: locale(const locale& __other, _Facet* __f) 19959: { 19959: _M_impl = new _Impl(*__other._M_impl, 1); 19959: 19959: try 19959: { _M_impl->_M_install_facet(&_Facet::id, __f); } 19959: catch(...) 19959: { 19959: _M_impl->_M_remove_reference(); 19959: throw; 19959: } 19959: delete [] _M_impl->_M_names[0]; 19959: _M_impl->_M_names[0] = 0; 19959: } 19959: 19959: template 19959: locale 19959: locale:: 19959: combine(const locale& __other) const 19959: { 19959: _Impl* __tmp = new _Impl(*_M_impl, 1); 19959: try 19959: { 19959: __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); 19959: } 19959: catch(...) 19959: { 19959: __tmp->_M_remove_reference(); 19959: throw; 19959: } 19959: return locale(__tmp); 19959: } 19959: 19959: template 19959: bool 19959: locale:: 19959: operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, 19959: const basic_string<_CharT, _Traits, _Alloc>& __s2) const 19959: { 19959: typedef std::collate<_CharT> __collate_type; 19959: const __collate_type& __collate = use_facet<__collate_type>(*this); 19959: return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), 19959: __s2.data(), __s2.data() + __s2.length()) < 0); 19959: } 19959: 19959: template 19959: inline const _Facet* 19959: __try_use_facet(const locale& __loc) noexcept 19959: { 19959: const size_t __i = _Facet::id._M_id(); 19959: const locale::facet** __facets = __loc._M_impl->_M_facets; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 19959: 19959: 19959: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 19959: 19959: 19959: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 19959: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 19959: 19959: 19959: 19959: 19959: if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) 19959: return 0; 19959: 19959: 19959: return dynamic_cast(__facets[__i]); 19959: 19959: 19959: 19959: } 19959: # 161 "/usr/include/c++/13/bits/locale_classes.tcc" 3 19959: template 19959: inline bool 19959: has_facet(const locale& __loc) throw() 19959: { 19959: 19959: static_assert(__is_base_of(locale::facet, _Facet), 19959: "template argument must be derived from locale::facet"); 19959: 19959: 19959: 19959: return std::__try_use_facet<_Facet>(__loc) != 0; 19959: } 19959: # 188 "/usr/include/c++/13/bits/locale_classes.tcc" 3 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdangling-reference" 19959: template 19959: inline const _Facet& 19959: use_facet(const locale& __loc) 19959: { 19959: 19959: static_assert(__is_base_of(locale::facet, _Facet), 19959: "template argument must be derived from locale::facet"); 19959: 19959: 19959: 19959: if (const _Facet* __f = std::__try_use_facet<_Facet>(__loc)) 19959: return *__f; 19959: __throw_bad_cast(); 19959: } 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: 19959: template 19959: int 19959: collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () 19959: { return 0; } 19959: 19959: 19959: template 19959: size_t 19959: collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () 19959: { return 0; } 19959: 19959: template 19959: int 19959: collate<_CharT>:: 19959: do_compare(const _CharT* __lo1, const _CharT* __hi1, 19959: const _CharT* __lo2, const _CharT* __hi2) const 19959: { 19959: 19959: 19959: const string_type __one(__lo1, __hi1); 19959: const string_type __two(__lo2, __hi2); 19959: 19959: const _CharT* __p = __one.c_str(); 19959: const _CharT* __pend = __one.data() + __one.length(); 19959: const _CharT* __q = __two.c_str(); 19959: const _CharT* __qend = __two.data() + __two.length(); 19959: 19959: 19959: 19959: 19959: for (;;) 19959: { 19959: const int __res = _M_compare(__p, __q); 19959: if (__res) 19959: return __res; 19959: 19959: __p += char_traits<_CharT>::length(__p); 19959: __q += char_traits<_CharT>::length(__q); 19959: if (__p == __pend && __q == __qend) 19959: return 0; 19959: else if (__p == __pend) 19959: return -1; 19959: else if (__q == __qend) 19959: return 1; 19959: 19959: __p++; 19959: __q++; 19959: } 19959: } 19959: 19959: template 19959: typename collate<_CharT>::string_type 19959: collate<_CharT>:: 19959: do_transform(const _CharT* __lo, const _CharT* __hi) const 19959: { 19959: string_type __ret; 19959: 19959: 19959: const string_type __str(__lo, __hi); 19959: 19959: const _CharT* __p = __str.c_str(); 19959: const _CharT* __pend = __str.data() + __str.length(); 19959: 19959: size_t __len = (__hi - __lo) * 2; 19959: 19959: _CharT* __c = new _CharT[__len]; 19959: 19959: try 19959: { 19959: 19959: 19959: 19959: for (;;) 19959: { 19959: 19959: size_t __res = _M_transform(__c, __p, __len); 19959: 19959: 19959: if (__res >= __len) 19959: { 19959: __len = __res + 1; 19959: delete [] __c, __c = 0; 19959: __c = new _CharT[__len]; 19959: __res = _M_transform(__c, __p, __len); 19959: } 19959: 19959: __ret.append(__c, __res); 19959: __p += char_traits<_CharT>::length(__p); 19959: if (__p == __pend) 19959: break; 19959: 19959: __p++; 19959: __ret.push_back(_CharT()); 19959: } 19959: } 19959: catch(...) 19959: { 19959: delete [] __c; 19959: throw; 19959: } 19959: 19959: delete [] __c; 19959: 19959: return __ret; 19959: } 19959: 19959: template 19959: long 19959: collate<_CharT>:: 19959: do_hash(const _CharT* __lo, const _CharT* __hi) const 19959: { 19959: unsigned long __val = 0; 19959: for (; __lo < __hi; ++__lo) 19959: __val = 19959: *__lo + ((__val << 7) 19959: | (__val >> (__gnu_cxx::__numeric_traits:: 19959: __digits - 7))); 19959: return static_cast(__val); 19959: } 19959: 19959: 19959: 19959: 19959: extern template class collate; 19959: extern template class collate_byname; 19959: 19959: extern template 19959: const collate* 19959: __try_use_facet >(const locale&) noexcept; 19959: 19959: extern template 19959: const collate& 19959: use_facet >(const locale&); 19959: 19959: extern template 19959: bool 19959: has_facet >(const locale&); 19959: 19959: 19959: extern template class collate; 19959: extern template class collate_byname; 19959: 19959: extern template 19959: const collate* 19959: __try_use_facet >(const locale&) noexcept; 19959: 19959: extern template 19959: const collate& 19959: use_facet >(const locale&); 19959: 19959: extern template 19959: bool 19959: has_facet >(const locale&); 19959: 19959: 19959: 19959: 19959: } 19959: # 870 "/usr/include/c++/13/bits/locale_classes.h" 2 3 19959: # 42 "/usr/include/c++/13/bits/ios_base.h" 2 3 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/system_error" 1 3 19959: # 32 "/usr/include/c++/13/system_error" 3 19959: 19959: # 33 "/usr/include/c++/13/system_error" 3 19959: # 43 "/usr/include/c++/13/system_error" 3 19959: # 1 "/usr/include/c++/13/stdexcept" 1 3 19959: # 36 "/usr/include/c++/13/stdexcept" 3 19959: 19959: # 37 "/usr/include/c++/13/stdexcept" 3 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: struct __cow_string 19959: { 19959: union { 19959: const char* _M_p; 19959: char _M_bytes[sizeof(const char*)]; 19959: }; 19959: 19959: __cow_string(); 19959: __cow_string(const std::string&); 19959: __cow_string(const char*, size_t); 19959: __cow_string(const __cow_string&) noexcept; 19959: __cow_string& operator=(const __cow_string&) noexcept; 19959: ~__cow_string(); 19959: 19959: __cow_string(__cow_string&&) noexcept; 19959: __cow_string& operator=(__cow_string&&) noexcept; 19959: 19959: }; 19959: 19959: typedef basic_string __sso_string; 19959: # 113 "/usr/include/c++/13/stdexcept" 3 19959: class logic_error : public exception 19959: { 19959: __cow_string _M_msg; 19959: 19959: public: 19959: 19959: explicit 19959: logic_error(const string& __arg) ; 19959: 19959: 19959: explicit 19959: logic_error(const char*) ; 19959: 19959: logic_error(logic_error&&) noexcept; 19959: logic_error& operator=(logic_error&&) noexcept; 19959: 19959: 19959: 19959: logic_error(const logic_error&) noexcept; 19959: logic_error& operator=(const logic_error&) noexcept; 19959: 19959: 19959: 19959: 19959: 19959: virtual ~logic_error() noexcept; 19959: 19959: 19959: 19959: virtual const char* 19959: what() const noexcept; 19959: 19959: 19959: 19959: 19959: 19959: }; 19959: 19959: 19959: 19959: class domain_error : public logic_error 19959: { 19959: public: 19959: explicit domain_error(const string& __arg) ; 19959: 19959: explicit domain_error(const char*) ; 19959: domain_error(const domain_error&) = default; 19959: domain_error& operator=(const domain_error&) = default; 19959: domain_error(domain_error&&) = default; 19959: domain_error& operator=(domain_error&&) = default; 19959: 19959: virtual ~domain_error() noexcept; 19959: }; 19959: 19959: 19959: class invalid_argument : public logic_error 19959: { 19959: public: 19959: explicit invalid_argument(const string& __arg) ; 19959: 19959: explicit invalid_argument(const char*) ; 19959: invalid_argument(const invalid_argument&) = default; 19959: invalid_argument& operator=(const invalid_argument&) = default; 19959: invalid_argument(invalid_argument&&) = default; 19959: invalid_argument& operator=(invalid_argument&&) = default; 19959: 19959: virtual ~invalid_argument() noexcept; 19959: }; 19959: 19959: 19959: 19959: class length_error : public logic_error 19959: { 19959: public: 19959: explicit length_error(const string& __arg) ; 19959: 19959: explicit length_error(const char*) ; 19959: length_error(const length_error&) = default; 19959: length_error& operator=(const length_error&) = default; 19959: length_error(length_error&&) = default; 19959: length_error& operator=(length_error&&) = default; 19959: 19959: virtual ~length_error() noexcept; 19959: }; 19959: 19959: 19959: 19959: class out_of_range : public logic_error 19959: { 19959: public: 19959: explicit out_of_range(const string& __arg) ; 19959: 19959: explicit out_of_range(const char*) ; 19959: out_of_range(const out_of_range&) = default; 19959: out_of_range& operator=(const out_of_range&) = default; 19959: out_of_range(out_of_range&&) = default; 19959: out_of_range& operator=(out_of_range&&) = default; 19959: 19959: virtual ~out_of_range() noexcept; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class runtime_error : public exception 19959: { 19959: __cow_string _M_msg; 19959: 19959: public: 19959: 19959: explicit 19959: runtime_error(const string& __arg) ; 19959: 19959: 19959: explicit 19959: runtime_error(const char*) ; 19959: 19959: runtime_error(runtime_error&&) noexcept; 19959: runtime_error& operator=(runtime_error&&) noexcept; 19959: 19959: 19959: 19959: runtime_error(const runtime_error&) noexcept; 19959: runtime_error& operator=(const runtime_error&) noexcept; 19959: 19959: 19959: 19959: 19959: 19959: virtual ~runtime_error() noexcept; 19959: 19959: 19959: 19959: virtual const char* 19959: what() const noexcept; 19959: 19959: 19959: 19959: 19959: 19959: }; 19959: 19959: 19959: class range_error : public runtime_error 19959: { 19959: public: 19959: explicit range_error(const string& __arg) ; 19959: 19959: explicit range_error(const char*) ; 19959: range_error(const range_error&) = default; 19959: range_error& operator=(const range_error&) = default; 19959: range_error(range_error&&) = default; 19959: range_error& operator=(range_error&&) = default; 19959: 19959: virtual ~range_error() noexcept; 19959: }; 19959: 19959: 19959: class overflow_error : public runtime_error 19959: { 19959: public: 19959: explicit overflow_error(const string& __arg) ; 19959: 19959: explicit overflow_error(const char*) ; 19959: overflow_error(const overflow_error&) = default; 19959: overflow_error& operator=(const overflow_error&) = default; 19959: overflow_error(overflow_error&&) = default; 19959: overflow_error& operator=(overflow_error&&) = default; 19959: 19959: virtual ~overflow_error() noexcept; 19959: }; 19959: 19959: 19959: class underflow_error : public runtime_error 19959: { 19959: public: 19959: explicit underflow_error(const string& __arg) ; 19959: 19959: explicit underflow_error(const char*) ; 19959: underflow_error(const underflow_error&) = default; 19959: underflow_error& operator=(const underflow_error&) = default; 19959: underflow_error(underflow_error&&) = default; 19959: underflow_error& operator=(underflow_error&&) = default; 19959: 19959: virtual ~underflow_error() noexcept; 19959: }; 19959: 19959: 19959: 19959: 19959: } 19959: # 44 "/usr/include/c++/13/system_error" 2 3 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: class error_code; 19959: class error_condition; 19959: class system_error; 19959: 19959: 19959: template 19959: struct is_error_code_enum : public false_type { }; 19959: 19959: 19959: template 19959: struct is_error_condition_enum : public false_type { }; 19959: 19959: template<> 19959: struct is_error_condition_enum 19959: : public true_type { }; 19959: 19959: 19959: template 19959: inline constexpr bool is_error_code_enum_v = 19959: is_error_code_enum<_Tp>::value; 19959: template 19959: inline constexpr bool is_error_condition_enum_v = 19959: is_error_condition_enum<_Tp>::value; 19959: 19959: 19959: 19959: inline namespace _V2 { 19959: # 106 "/usr/include/c++/13/system_error" 3 19959: class error_category 19959: { 19959: public: 19959: constexpr error_category() noexcept = default; 19959: 19959: virtual ~error_category(); 19959: 19959: error_category(const error_category&) = delete; 19959: error_category& operator=(const error_category&) = delete; 19959: 19959: 19959: virtual const char* 19959: name() const noexcept = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: private: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: virtual __cow_string 19959: _M_message(int) const; 19959: 19959: public: 19959: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: virtual string 19959: message(int) const = 0; 19959: # 144 "/usr/include/c++/13/system_error" 3 19959: public: 19959: 19959: virtual error_condition 19959: default_error_condition(int __i) const noexcept; 19959: 19959: 19959: virtual bool 19959: equivalent(int __i, const error_condition& __cond) const noexcept; 19959: 19959: 19959: virtual bool 19959: equivalent(const error_code& __code, int __i) const noexcept; 19959: 19959: 19959: [[__nodiscard__]] 19959: bool 19959: operator==(const error_category& __other) const noexcept 19959: { return this == &__other; } 19959: # 170 "/usr/include/c++/13/system_error" 3 19959: bool 19959: operator<(const error_category& __other) const noexcept 19959: { return less()(this, &__other); } 19959: 19959: bool 19959: operator!=(const error_category& __other) const noexcept 19959: { return this != &__other; } 19959: 19959: }; 19959: 19959: 19959: 19959: 19959: [[__nodiscard__, __gnu__::__const__]] 19959: const error_category& 19959: generic_category() noexcept; 19959: 19959: 19959: [[__nodiscard__, __gnu__::__const__]] 19959: const error_category& 19959: system_category() noexcept; 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: namespace __adl_only 19959: { 19959: void make_error_code() = delete; 19959: void make_error_condition() = delete; 19959: } 19959: # 223 "/usr/include/c++/13/system_error" 3 19959: class error_code 19959: { 19959: template 19959: using _Check 19959: = __enable_if_t::value>; 19959: 19959: public: 19959: error_code() noexcept 19959: : _M_value(0), _M_cat(&system_category()) { } 19959: 19959: error_code(int __v, const error_category& __cat) noexcept 19959: : _M_value(__v), _M_cat(&__cat) { } 19959: 19959: 19959: template> 19959: error_code(_ErrorCodeEnum __e) noexcept 19959: { 19959: using __adl_only::make_error_code; 19959: *this = make_error_code(__e); 19959: } 19959: 19959: error_code(const error_code&) = default; 19959: error_code& operator=(const error_code&) = default; 19959: 19959: void 19959: assign(int __v, const error_category& __cat) noexcept 19959: { 19959: _M_value = __v; 19959: _M_cat = &__cat; 19959: } 19959: 19959: void 19959: clear() noexcept 19959: { assign(0, system_category()); } 19959: 19959: 19959: [[__nodiscard__]] 19959: int 19959: value() const noexcept { return _M_value; } 19959: 19959: 19959: [[__nodiscard__]] 19959: const error_category& 19959: category() const noexcept { return *_M_cat; } 19959: 19959: 19959: error_condition 19959: default_error_condition() const noexcept; 19959: 19959: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: string 19959: message() const 19959: { return category().message(value()); } 19959: 19959: 19959: [[__nodiscard__]] 19959: explicit operator bool() const noexcept 19959: { return _M_value != 0; } 19959: 19959: 19959: private: 19959: int _M_value; 19959: const error_category* _M_cat; 19959: }; 19959: # 300 "/usr/include/c++/13/system_error" 3 19959: [[__nodiscard__]] 19959: inline error_code 19959: make_error_code(errc __e) noexcept 19959: { return error_code(static_cast(__e), generic_category()); } 19959: # 323 "/usr/include/c++/13/system_error" 3 19959: inline bool 19959: operator<(const error_code& __lhs, const error_code& __rhs) noexcept 19959: { 19959: return (__lhs.category() < __rhs.category() 19959: || (__lhs.category() == __rhs.category() 19959: && __lhs.value() < __rhs.value())); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: basic_ostream<_CharT, _Traits>& 19959: operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) 19959: { return (__os << __e.category().name() << ':' << __e.value()); } 19959: # 354 "/usr/include/c++/13/system_error" 3 19959: class error_condition 19959: { 19959: template 19959: using _Check 19959: = __enable_if_t::value>; 19959: 19959: public: 19959: 19959: error_condition() noexcept 19959: : _M_value(0), _M_cat(&generic_category()) { } 19959: 19959: 19959: error_condition(int __v, const error_category& __cat) noexcept 19959: : _M_value(__v), _M_cat(&__cat) { } 19959: 19959: 19959: template> 19959: error_condition(_ErrorConditionEnum __e) noexcept 19959: { 19959: using __adl_only::make_error_condition; 19959: *this = make_error_condition(__e); 19959: } 19959: 19959: error_condition(const error_condition&) = default; 19959: error_condition& operator=(const error_condition&) = default; 19959: 19959: 19959: void 19959: assign(int __v, const error_category& __cat) noexcept 19959: { 19959: _M_value = __v; 19959: _M_cat = &__cat; 19959: } 19959: 19959: 19959: void 19959: clear() noexcept 19959: { assign(0, generic_category()); } 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: int 19959: value() const noexcept { return _M_value; } 19959: 19959: 19959: [[__nodiscard__]] 19959: const error_category& 19959: category() const noexcept { return *_M_cat; } 19959: 19959: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: string 19959: message() const 19959: { return category().message(value()); } 19959: 19959: 19959: [[__nodiscard__]] 19959: explicit operator bool() const noexcept 19959: { return _M_value != 0; } 19959: 19959: 19959: private: 19959: int _M_value; 19959: const error_category* _M_cat; 19959: }; 19959: # 433 "/usr/include/c++/13/system_error" 3 19959: [[__nodiscard__]] 19959: inline error_condition 19959: make_error_condition(errc __e) noexcept 19959: { return error_condition(static_cast(__e), generic_category()); } 19959: # 447 "/usr/include/c++/13/system_error" 3 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(const error_code& __lhs, const error_code& __rhs) noexcept 19959: { 19959: return __lhs.category() == __rhs.category() 19959: && __lhs.value() == __rhs.value(); 19959: } 19959: # 463 "/usr/include/c++/13/system_error" 3 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(const error_code& __lhs, const error_condition& __rhs) noexcept 19959: { 19959: return __lhs.category().equivalent(__lhs.value(), __rhs) 19959: || __rhs.category().equivalent(__lhs, __rhs.value()); 19959: } 19959: # 478 "/usr/include/c++/13/system_error" 3 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(const error_condition& __lhs, 19959: const error_condition& __rhs) noexcept 19959: { 19959: return __lhs.category() == __rhs.category() 19959: && __lhs.value() == __rhs.value(); 19959: } 19959: # 506 "/usr/include/c++/13/system_error" 3 19959: inline bool 19959: operator<(const error_condition& __lhs, 19959: const error_condition& __rhs) noexcept 19959: { 19959: return (__lhs.category() < __rhs.category() 19959: || (__lhs.category() == __rhs.category() 19959: && __lhs.value() < __rhs.value())); 19959: } 19959: 19959: 19959: inline bool 19959: operator==(const error_condition& __lhs, const error_code& __rhs) noexcept 19959: { 19959: return (__rhs.category().equivalent(__rhs.value(), __lhs) 19959: || __lhs.category().equivalent(__rhs, __lhs.value())); 19959: } 19959: 19959: 19959: inline bool 19959: operator!=(const error_code& __lhs, const error_code& __rhs) noexcept 19959: { return !(__lhs == __rhs); } 19959: 19959: 19959: inline bool 19959: operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept 19959: { return !(__lhs == __rhs); } 19959: 19959: 19959: inline bool 19959: operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept 19959: { return !(__lhs == __rhs); } 19959: 19959: 19959: inline bool 19959: operator!=(const error_condition& __lhs, 19959: const error_condition& __rhs) noexcept 19959: { return !(__lhs == __rhs); } 19959: # 556 "/usr/include/c++/13/system_error" 3 19959: class system_error : public std::runtime_error 19959: { 19959: private: 19959: error_code _M_code; 19959: 19959: public: 19959: system_error(error_code __ec = error_code()) 19959: : runtime_error(__ec.message()), _M_code(__ec) { } 19959: 19959: system_error(error_code __ec, const string& __what) 19959: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 19959: 19959: system_error(error_code __ec, const char* __what) 19959: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 19959: 19959: system_error(int __v, const error_category& __ecat, const char* __what) 19959: : system_error(error_code(__v, __ecat), __what) { } 19959: 19959: system_error(int __v, const error_category& __ecat) 19959: : runtime_error(error_code(__v, __ecat).message()), 19959: _M_code(__v, __ecat) { } 19959: 19959: system_error(int __v, const error_category& __ecat, const string& __what) 19959: : runtime_error(__what + (": " + error_code(__v, __ecat).message())), 19959: _M_code(__v, __ecat) { } 19959: 19959: 19959: system_error (const system_error &) = default; 19959: system_error &operator= (const system_error &) = default; 19959: 19959: 19959: virtual ~system_error() noexcept; 19959: 19959: const error_code& 19959: code() const noexcept { return _M_code; } 19959: }; 19959: 19959: 19959: } 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: template<> 19959: struct hash 19959: : public __hash_base 19959: { 19959: size_t 19959: operator()(const error_code& __e) const noexcept 19959: { 19959: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 19959: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template<> 19959: struct hash 19959: : public __hash_base 19959: { 19959: size_t 19959: operator()(const error_condition& __e) const noexcept 19959: { 19959: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 19959: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 19959: } 19959: }; 19959: 19959: 19959: 19959: } 19959: # 47 "/usr/include/c++/13/bits/ios_base.h" 2 3 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: enum _Ios_Fmtflags 19959: { 19959: _S_boolalpha = 1L << 0, 19959: _S_dec = 1L << 1, 19959: _S_fixed = 1L << 2, 19959: _S_hex = 1L << 3, 19959: _S_internal = 1L << 4, 19959: _S_left = 1L << 5, 19959: _S_oct = 1L << 6, 19959: _S_right = 1L << 7, 19959: _S_scientific = 1L << 8, 19959: _S_showbase = 1L << 9, 19959: _S_showpoint = 1L << 10, 19959: _S_showpos = 1L << 11, 19959: _S_skipws = 1L << 12, 19959: _S_unitbuf = 1L << 13, 19959: _S_uppercase = 1L << 14, 19959: _S_adjustfield = _S_left | _S_right | _S_internal, 19959: _S_basefield = _S_dec | _S_oct | _S_hex, 19959: _S_floatfield = _S_scientific | _S_fixed, 19959: _S_ios_fmtflags_end = 1L << 16, 19959: _S_ios_fmtflags_max = 0x7fffffff, 19959: _S_ios_fmtflags_min = ~0x7fffffff 19959: }; 19959: 19959: inline constexpr _Ios_Fmtflags 19959: operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 19959: { return _Ios_Fmtflags(static_cast(__a) & static_cast(__b)); } 19959: 19959: inline constexpr _Ios_Fmtflags 19959: operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 19959: { return _Ios_Fmtflags(static_cast(__a) | static_cast(__b)); } 19959: 19959: inline constexpr _Ios_Fmtflags 19959: operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 19959: { return _Ios_Fmtflags(static_cast(__a) ^ static_cast(__b)); } 19959: 19959: inline constexpr _Ios_Fmtflags 19959: operator~(_Ios_Fmtflags __a) 19959: { return _Ios_Fmtflags(~static_cast(__a)); } 19959: 19959: inline const _Ios_Fmtflags& 19959: operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 19959: { return __a = __a | __b; } 19959: 19959: inline const _Ios_Fmtflags& 19959: operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 19959: { return __a = __a & __b; } 19959: 19959: inline const _Ios_Fmtflags& 19959: operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 19959: { return __a = __a ^ __b; } 19959: 19959: 19959: enum _Ios_Openmode 19959: { 19959: _S_app = 1L << 0, 19959: _S_ate = 1L << 1, 19959: _S_bin = 1L << 2, 19959: _S_in = 1L << 3, 19959: _S_out = 1L << 4, 19959: _S_trunc = 1L << 5, 19959: _S_noreplace = 1L << 6, 19959: _S_ios_openmode_end = 1L << 16, 19959: _S_ios_openmode_max = 0x7fffffff, 19959: _S_ios_openmode_min = ~0x7fffffff 19959: }; 19959: 19959: inline constexpr _Ios_Openmode 19959: operator&(_Ios_Openmode __a, _Ios_Openmode __b) 19959: { return _Ios_Openmode(static_cast(__a) & static_cast(__b)); } 19959: 19959: inline constexpr _Ios_Openmode 19959: operator|(_Ios_Openmode __a, _Ios_Openmode __b) 19959: { return _Ios_Openmode(static_cast(__a) | static_cast(__b)); } 19959: 19959: inline constexpr _Ios_Openmode 19959: operator^(_Ios_Openmode __a, _Ios_Openmode __b) 19959: { return _Ios_Openmode(static_cast(__a) ^ static_cast(__b)); } 19959: 19959: inline constexpr _Ios_Openmode 19959: operator~(_Ios_Openmode __a) 19959: { return _Ios_Openmode(~static_cast(__a)); } 19959: 19959: inline const _Ios_Openmode& 19959: operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) 19959: { return __a = __a | __b; } 19959: 19959: inline const _Ios_Openmode& 19959: operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) 19959: { return __a = __a & __b; } 19959: 19959: inline const _Ios_Openmode& 19959: operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) 19959: { return __a = __a ^ __b; } 19959: 19959: 19959: enum _Ios_Iostate 19959: { 19959: _S_goodbit = 0, 19959: _S_badbit = 1L << 0, 19959: _S_eofbit = 1L << 1, 19959: _S_failbit = 1L << 2, 19959: _S_ios_iostate_end = 1L << 16, 19959: _S_ios_iostate_max = 0x7fffffff, 19959: _S_ios_iostate_min = ~0x7fffffff 19959: }; 19959: 19959: inline constexpr _Ios_Iostate 19959: operator&(_Ios_Iostate __a, _Ios_Iostate __b) 19959: { return _Ios_Iostate(static_cast(__a) & static_cast(__b)); } 19959: 19959: inline constexpr _Ios_Iostate 19959: operator|(_Ios_Iostate __a, _Ios_Iostate __b) 19959: { return _Ios_Iostate(static_cast(__a) | static_cast(__b)); } 19959: 19959: inline constexpr _Ios_Iostate 19959: operator^(_Ios_Iostate __a, _Ios_Iostate __b) 19959: { return _Ios_Iostate(static_cast(__a) ^ static_cast(__b)); } 19959: 19959: inline constexpr _Ios_Iostate 19959: operator~(_Ios_Iostate __a) 19959: { return _Ios_Iostate(~static_cast(__a)); } 19959: 19959: inline const _Ios_Iostate& 19959: operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) 19959: { return __a = __a | __b; } 19959: 19959: inline const _Ios_Iostate& 19959: operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) 19959: { return __a = __a & __b; } 19959: 19959: inline const _Ios_Iostate& 19959: operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) 19959: { return __a = __a ^ __b; } 19959: 19959: 19959: enum _Ios_Seekdir 19959: { 19959: _S_beg = 0, 19959: _S_cur = 1, 19959: _S_end = 2, 19959: _S_ios_seekdir_end = 1L << 16 19959: }; 19959: 19959: 19959: 19959: enum class io_errc { stream = 1 }; 19959: 19959: template <> struct is_error_code_enum : public true_type { }; 19959: 19959: [[__nodiscard__, __gnu__::__const__]] 19959: const error_category& 19959: iostream_category() noexcept; 19959: 19959: [[__nodiscard__]] 19959: inline error_code 19959: make_error_code(io_errc __e) noexcept 19959: { return error_code(static_cast(__e), iostream_category()); } 19959: 19959: [[__nodiscard__]] 19959: inline error_condition 19959: make_error_condition(io_errc __e) noexcept 19959: { return error_condition(static_cast(__e), iostream_category()); } 19959: # 233 "/usr/include/c++/13/bits/ios_base.h" 3 19959: class ios_base 19959: { 19959: # 251 "/usr/include/c++/13/bits/ios_base.h" 3 19959: public: 19959: # 260 "/usr/include/c++/13/bits/ios_base.h" 3 19959: class __attribute ((__abi_tag__ ("cxx11"))) failure : public system_error 19959: { 19959: public: 19959: explicit 19959: failure(const string& __str); 19959: 19959: 19959: explicit 19959: failure(const string&, const error_code&); 19959: 19959: explicit 19959: failure(const char*, const error_code& = io_errc::stream); 19959: 19959: 19959: virtual 19959: ~failure() throw(); 19959: 19959: virtual const char* 19959: what() const throw(); 19959: }; 19959: # 346 "/usr/include/c++/13/bits/ios_base.h" 3 19959: typedef _Ios_Fmtflags fmtflags; 19959: 19959: 19959: static const fmtflags boolalpha = _S_boolalpha; 19959: 19959: 19959: static const fmtflags dec = _S_dec; 19959: 19959: 19959: static const fmtflags fixed = _S_fixed; 19959: 19959: 19959: static const fmtflags hex = _S_hex; 19959: 19959: 19959: 19959: 19959: static const fmtflags internal = _S_internal; 19959: 19959: 19959: 19959: static const fmtflags left = _S_left; 19959: 19959: 19959: static const fmtflags oct = _S_oct; 19959: 19959: 19959: 19959: static const fmtflags right = _S_right; 19959: 19959: 19959: static const fmtflags scientific = _S_scientific; 19959: 19959: 19959: 19959: static const fmtflags showbase = _S_showbase; 19959: 19959: 19959: 19959: static const fmtflags showpoint = _S_showpoint; 19959: 19959: 19959: static const fmtflags showpos = _S_showpos; 19959: 19959: 19959: static const fmtflags skipws = _S_skipws; 19959: 19959: 19959: static const fmtflags unitbuf = _S_unitbuf; 19959: 19959: 19959: 19959: static const fmtflags uppercase = _S_uppercase; 19959: 19959: 19959: static const fmtflags adjustfield = _S_adjustfield; 19959: 19959: 19959: static const fmtflags basefield = _S_basefield; 19959: 19959: 19959: static const fmtflags floatfield = _S_floatfield; 19959: # 421 "/usr/include/c++/13/bits/ios_base.h" 3 19959: typedef _Ios_Iostate iostate; 19959: 19959: 19959: 19959: static const iostate badbit = _S_badbit; 19959: 19959: 19959: static const iostate eofbit = _S_eofbit; 19959: 19959: 19959: 19959: 19959: static const iostate failbit = _S_failbit; 19959: 19959: 19959: static const iostate goodbit = _S_goodbit; 19959: # 452 "/usr/include/c++/13/bits/ios_base.h" 3 19959: typedef _Ios_Openmode openmode; 19959: 19959: 19959: static const openmode app = _S_app; 19959: 19959: 19959: static const openmode ate = _S_ate; 19959: 19959: 19959: 19959: 19959: static const openmode binary = _S_bin; 19959: 19959: 19959: static const openmode in = _S_in; 19959: 19959: 19959: static const openmode out = _S_out; 19959: 19959: 19959: static const openmode trunc = _S_trunc; 19959: 19959: static const openmode __noreplace = _S_noreplace; 19959: # 492 "/usr/include/c++/13/bits/ios_base.h" 3 19959: typedef _Ios_Seekdir seekdir; 19959: 19959: 19959: static const seekdir beg = _S_beg; 19959: 19959: 19959: static const seekdir cur = _S_cur; 19959: 19959: 19959: static const seekdir end = _S_end; 19959: # 525 "/usr/include/c++/13/bits/ios_base.h" 3 19959: enum event 19959: { 19959: erase_event, 19959: imbue_event, 19959: copyfmt_event 19959: }; 19959: # 542 "/usr/include/c++/13/bits/ios_base.h" 3 19959: typedef void (*event_callback) (event __e, ios_base& __b, int __i); 19959: # 554 "/usr/include/c++/13/bits/ios_base.h" 3 19959: void 19959: register_callback(event_callback __fn, int __index); 19959: 19959: protected: 19959: streamsize _M_precision; 19959: streamsize _M_width; 19959: fmtflags _M_flags; 19959: iostate _M_exception; 19959: iostate _M_streambuf_state; 19959: 19959: 19959: 19959: struct _Callback_list 19959: { 19959: 19959: _Callback_list* _M_next; 19959: ios_base::event_callback _M_fn; 19959: int _M_index; 19959: _Atomic_word _M_refcount; 19959: 19959: _Callback_list(ios_base::event_callback __fn, int __index, 19959: _Callback_list* __cb) 19959: : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } 19959: 19959: void 19959: _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 19959: 19959: 19959: int 19959: _M_remove_reference() 19959: { 19959: 19959: ; 19959: int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); 19959: if (__res == 0) 19959: { 19959: ; 19959: } 19959: return __res; 19959: } 19959: }; 19959: 19959: _Callback_list* _M_callbacks; 19959: 19959: void 19959: _M_call_callbacks(event __ev) throw(); 19959: 19959: void 19959: _M_dispose_callbacks(void) throw(); 19959: 19959: 19959: struct _Words 19959: { 19959: void* _M_pword; 19959: long _M_iword; 19959: _Words() : _M_pword(0), _M_iword(0) { } 19959: }; 19959: 19959: 19959: _Words _M_word_zero; 19959: 19959: 19959: 19959: enum { _S_local_word_size = 8 }; 19959: _Words _M_local_word[_S_local_word_size]; 19959: 19959: 19959: int _M_word_size; 19959: _Words* _M_word; 19959: 19959: _Words& 19959: _M_grow_words(int __index, bool __iword); 19959: 19959: 19959: locale _M_ios_locale; 19959: 19959: void 19959: _M_init() throw(); 19959: 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: class Init 19959: { 19959: friend class ios_base; 19959: public: 19959: Init(); 19959: ~Init(); 19959: 19959: 19959: Init(const Init&) = default; 19959: Init& operator=(const Init&) = default; 19959: 19959: 19959: private: 19959: static _Atomic_word _S_refcount; 19959: static bool _S_synced_with_stdio; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: fmtflags 19959: flags() const 19959: { return _M_flags; } 19959: # 672 "/usr/include/c++/13/bits/ios_base.h" 3 19959: fmtflags 19959: flags(fmtflags __fmtfl) 19959: { 19959: fmtflags __old = _M_flags; 19959: _M_flags = __fmtfl; 19959: return __old; 19959: } 19959: # 688 "/usr/include/c++/13/bits/ios_base.h" 3 19959: fmtflags 19959: setf(fmtflags __fmtfl) 19959: { 19959: fmtflags __old = _M_flags; 19959: _M_flags |= __fmtfl; 19959: return __old; 19959: } 19959: # 705 "/usr/include/c++/13/bits/ios_base.h" 3 19959: fmtflags 19959: setf(fmtflags __fmtfl, fmtflags __mask) 19959: { 19959: fmtflags __old = _M_flags; 19959: _M_flags &= ~__mask; 19959: _M_flags |= (__fmtfl & __mask); 19959: return __old; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: unsetf(fmtflags __mask) 19959: { _M_flags &= ~__mask; } 19959: # 731 "/usr/include/c++/13/bits/ios_base.h" 3 19959: streamsize 19959: precision() const 19959: { return _M_precision; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: streamsize 19959: precision(streamsize __prec) 19959: { 19959: streamsize __old = _M_precision; 19959: _M_precision = __prec; 19959: return __old; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: streamsize 19959: width() const 19959: { return _M_width; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: streamsize 19959: width(streamsize __wide) 19959: { 19959: streamsize __old = _M_width; 19959: _M_width = __wide; 19959: return __old; 19959: } 19959: # 782 "/usr/include/c++/13/bits/ios_base.h" 3 19959: static bool 19959: sync_with_stdio(bool __sync = true); 19959: # 794 "/usr/include/c++/13/bits/ios_base.h" 3 19959: locale 19959: imbue(const locale& __loc) throw(); 19959: # 805 "/usr/include/c++/13/bits/ios_base.h" 3 19959: locale 19959: getloc() const 19959: { return _M_ios_locale; } 19959: # 816 "/usr/include/c++/13/bits/ios_base.h" 3 19959: const locale& 19959: _M_getloc() const 19959: { return _M_ios_locale; } 19959: # 835 "/usr/include/c++/13/bits/ios_base.h" 3 19959: static int 19959: xalloc() throw(); 19959: # 851 "/usr/include/c++/13/bits/ios_base.h" 3 19959: long& 19959: iword(int __ix) 19959: { 19959: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 19959: ? _M_word[__ix] : _M_grow_words(__ix, true); 19959: return __word._M_iword; 19959: } 19959: # 872 "/usr/include/c++/13/bits/ios_base.h" 3 19959: void*& 19959: pword(int __ix) 19959: { 19959: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 19959: ? _M_word[__ix] : _M_grow_words(__ix, false); 19959: return __word._M_pword; 19959: } 19959: # 889 "/usr/include/c++/13/bits/ios_base.h" 3 19959: virtual ~ios_base(); 19959: 19959: protected: 19959: ios_base() throw (); 19959: # 903 "/usr/include/c++/13/bits/ios_base.h" 3 19959: public: 19959: ios_base(const ios_base&) = delete; 19959: 19959: ios_base& 19959: operator=(const ios_base&) = delete; 19959: 19959: protected: 19959: void 19959: _M_move(ios_base&) noexcept; 19959: 19959: void 19959: _M_swap(ios_base& __rhs) noexcept; 19959: 19959: }; 19959: 19959: 19959: 19959: inline ios_base& 19959: boolalpha(ios_base& __base) 19959: { 19959: __base.setf(ios_base::boolalpha); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: noboolalpha(ios_base& __base) 19959: { 19959: __base.unsetf(ios_base::boolalpha); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: showbase(ios_base& __base) 19959: { 19959: __base.setf(ios_base::showbase); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: noshowbase(ios_base& __base) 19959: { 19959: __base.unsetf(ios_base::showbase); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: showpoint(ios_base& __base) 19959: { 19959: __base.setf(ios_base::showpoint); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: noshowpoint(ios_base& __base) 19959: { 19959: __base.unsetf(ios_base::showpoint); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: showpos(ios_base& __base) 19959: { 19959: __base.setf(ios_base::showpos); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: noshowpos(ios_base& __base) 19959: { 19959: __base.unsetf(ios_base::showpos); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: skipws(ios_base& __base) 19959: { 19959: __base.setf(ios_base::skipws); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: noskipws(ios_base& __base) 19959: { 19959: __base.unsetf(ios_base::skipws); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: uppercase(ios_base& __base) 19959: { 19959: __base.setf(ios_base::uppercase); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: nouppercase(ios_base& __base) 19959: { 19959: __base.unsetf(ios_base::uppercase); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: unitbuf(ios_base& __base) 19959: { 19959: __base.setf(ios_base::unitbuf); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: nounitbuf(ios_base& __base) 19959: { 19959: __base.unsetf(ios_base::unitbuf); 19959: return __base; 19959: } 19959: 19959: 19959: 19959: inline ios_base& 19959: internal(ios_base& __base) 19959: { 19959: __base.setf(ios_base::internal, ios_base::adjustfield); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: left(ios_base& __base) 19959: { 19959: __base.setf(ios_base::left, ios_base::adjustfield); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: right(ios_base& __base) 19959: { 19959: __base.setf(ios_base::right, ios_base::adjustfield); 19959: return __base; 19959: } 19959: 19959: 19959: 19959: inline ios_base& 19959: dec(ios_base& __base) 19959: { 19959: __base.setf(ios_base::dec, ios_base::basefield); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: hex(ios_base& __base) 19959: { 19959: __base.setf(ios_base::hex, ios_base::basefield); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: oct(ios_base& __base) 19959: { 19959: __base.setf(ios_base::oct, ios_base::basefield); 19959: return __base; 19959: } 19959: 19959: 19959: 19959: inline ios_base& 19959: fixed(ios_base& __base) 19959: { 19959: __base.setf(ios_base::fixed, ios_base::floatfield); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: scientific(ios_base& __base) 19959: { 19959: __base.setf(ios_base::scientific, ios_base::floatfield); 19959: return __base; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline ios_base& 19959: hexfloat(ios_base& __base) 19959: { 19959: __base.setf(ios_base::fixed | ios_base::scientific, ios_base::floatfield); 19959: return __base; 19959: } 19959: 19959: 19959: inline ios_base& 19959: defaultfloat(ios_base& __base) 19959: { 19959: __base.unsetf(ios_base::floatfield); 19959: return __base; 19959: } 19959: 19959: 19959: 19959: } 19959: # 45 "/usr/include/c++/13/ios" 2 3 19959: # 1 "/usr/include/c++/13/streambuf" 1 3 19959: # 36 "/usr/include/c++/13/streambuf" 3 19959: 19959: # 37 "/usr/include/c++/13/streambuf" 3 19959: # 47 "/usr/include/c++/13/streambuf" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: template 19959: streamsize 19959: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, 19959: basic_streambuf<_CharT, _Traits>*, bool&); 19959: # 123 "/usr/include/c++/13/streambuf" 3 19959: template 19959: class basic_streambuf 19959: { 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef _CharT char_type; 19959: typedef _Traits traits_type; 19959: typedef typename traits_type::int_type int_type; 19959: typedef typename traits_type::pos_type pos_type; 19959: typedef typename traits_type::off_type off_type; 19959: 19959: 19959: 19959: 19959: typedef basic_streambuf __streambuf_type; 19959: 19959: 19959: friend class basic_ios; 19959: friend class basic_istream; 19959: friend class basic_ostream; 19959: friend class istreambuf_iterator; 19959: friend class ostreambuf_iterator; 19959: 19959: friend streamsize 19959: __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); 19959: 19959: template 19959: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 19959: _CharT2*>::__type 19959: __copy_move_a2(istreambuf_iterator<_CharT2>, 19959: istreambuf_iterator<_CharT2>, _CharT2*); 19959: 19959: template 19959: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 19959: istreambuf_iterator<_CharT2> >::__type 19959: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 19959: const _CharT2&); 19959: 19959: template 19959: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 19959: void>::__type 19959: advance(istreambuf_iterator<_CharT2>&, _Distance); 19959: 19959: friend void __istream_extract(istream&, char*, streamsize); 19959: 19959: template 19959: friend basic_istream<_CharT2, _Traits2>& 19959: operator>>(basic_istream<_CharT2, _Traits2>&, 19959: basic_string<_CharT2, _Traits2, _Alloc>&); 19959: 19959: template 19959: friend basic_istream<_CharT2, _Traits2>& 19959: getline(basic_istream<_CharT2, _Traits2>&, 19959: basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); 19959: 19959: protected: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: char_type* _M_in_beg; 19959: char_type* _M_in_cur; 19959: char_type* _M_in_end; 19959: char_type* _M_out_beg; 19959: char_type* _M_out_cur; 19959: char_type* _M_out_end; 19959: 19959: 19959: locale _M_buf_locale; 19959: 19959: public: 19959: 19959: virtual 19959: ~basic_streambuf() 19959: { } 19959: # 215 "/usr/include/c++/13/streambuf" 3 19959: locale 19959: pubimbue(const locale& __loc) 19959: { 19959: locale __tmp(this->getloc()); 19959: this->imbue(__loc); 19959: _M_buf_locale = __loc; 19959: return __tmp; 19959: } 19959: # 232 "/usr/include/c++/13/streambuf" 3 19959: locale 19959: getloc() const 19959: { return _M_buf_locale; } 19959: # 245 "/usr/include/c++/13/streambuf" 3 19959: basic_streambuf* 19959: pubsetbuf(char_type* __s, streamsize __n) 19959: { return this->setbuf(__s, __n); } 19959: # 257 "/usr/include/c++/13/streambuf" 3 19959: pos_type 19959: pubseekoff(off_type __off, ios_base::seekdir __way, 19959: ios_base::openmode __mode = ios_base::in | ios_base::out) 19959: { return this->seekoff(__off, __way, __mode); } 19959: # 269 "/usr/include/c++/13/streambuf" 3 19959: pos_type 19959: pubseekpos(pos_type __sp, 19959: ios_base::openmode __mode = ios_base::in | ios_base::out) 19959: { return this->seekpos(__sp, __mode); } 19959: 19959: 19959: 19959: 19959: int 19959: pubsync() { return this->sync(); } 19959: # 290 "/usr/include/c++/13/streambuf" 3 19959: streamsize 19959: in_avail() 19959: { 19959: const streamsize __ret = this->egptr() - this->gptr(); 19959: return __ret ? __ret : this->showmanyc(); 19959: } 19959: # 304 "/usr/include/c++/13/streambuf" 3 19959: int_type 19959: snextc() 19959: { 19959: int_type __ret = traits_type::eof(); 19959: if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), 19959: __ret), true)) 19959: __ret = this->sgetc(); 19959: return __ret; 19959: } 19959: # 322 "/usr/include/c++/13/streambuf" 3 19959: int_type 19959: sbumpc() 19959: { 19959: int_type __ret; 19959: if (__builtin_expect(this->gptr() < this->egptr(), true)) 19959: { 19959: __ret = traits_type::to_int_type(*this->gptr()); 19959: this->gbump(1); 19959: } 19959: else 19959: __ret = this->uflow(); 19959: return __ret; 19959: } 19959: # 344 "/usr/include/c++/13/streambuf" 3 19959: int_type 19959: sgetc() 19959: { 19959: int_type __ret; 19959: if (__builtin_expect(this->gptr() < this->egptr(), true)) 19959: __ret = traits_type::to_int_type(*this->gptr()); 19959: else 19959: __ret = this->underflow(); 19959: return __ret; 19959: } 19959: # 363 "/usr/include/c++/13/streambuf" 3 19959: streamsize 19959: sgetn(char_type* __s, streamsize __n) 19959: { return this->xsgetn(__s, __n); } 19959: # 378 "/usr/include/c++/13/streambuf" 3 19959: int_type 19959: sputbackc(char_type __c) 19959: { 19959: int_type __ret; 19959: const bool __testpos = this->eback() < this->gptr(); 19959: if (__builtin_expect(!__testpos || 19959: !traits_type::eq(__c, this->gptr()[-1]), false)) 19959: __ret = this->pbackfail(traits_type::to_int_type(__c)); 19959: else 19959: { 19959: this->gbump(-1); 19959: __ret = traits_type::to_int_type(*this->gptr()); 19959: } 19959: return __ret; 19959: } 19959: # 403 "/usr/include/c++/13/streambuf" 3 19959: int_type 19959: sungetc() 19959: { 19959: int_type __ret; 19959: if (__builtin_expect(this->eback() < this->gptr(), true)) 19959: { 19959: this->gbump(-1); 19959: __ret = traits_type::to_int_type(*this->gptr()); 19959: } 19959: else 19959: __ret = this->pbackfail(); 19959: return __ret; 19959: } 19959: # 430 "/usr/include/c++/13/streambuf" 3 19959: int_type 19959: sputc(char_type __c) 19959: { 19959: int_type __ret; 19959: if (__builtin_expect(this->pptr() < this->epptr(), true)) 19959: { 19959: *this->pptr() = __c; 19959: this->pbump(1); 19959: __ret = traits_type::to_int_type(__c); 19959: } 19959: else 19959: __ret = this->overflow(traits_type::to_int_type(__c)); 19959: return __ret; 19959: } 19959: # 456 "/usr/include/c++/13/streambuf" 3 19959: streamsize 19959: sputn(const char_type* __s, streamsize __n) 19959: { return this->xsputn(__s, __n); } 19959: 19959: protected: 19959: # 470 "/usr/include/c++/13/streambuf" 3 19959: basic_streambuf() 19959: : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), 19959: _M_out_beg(0), _M_out_cur(0), _M_out_end(0), 19959: _M_buf_locale(locale()) 19959: { } 19959: # 488 "/usr/include/c++/13/streambuf" 3 19959: char_type* 19959: eback() const { return _M_in_beg; } 19959: 19959: char_type* 19959: gptr() const { return _M_in_cur; } 19959: 19959: char_type* 19959: egptr() const { return _M_in_end; } 19959: # 504 "/usr/include/c++/13/streambuf" 3 19959: void 19959: gbump(int __n) { _M_in_cur += __n; } 19959: # 515 "/usr/include/c++/13/streambuf" 3 19959: void 19959: setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) 19959: { 19959: _M_in_beg = __gbeg; 19959: _M_in_cur = __gnext; 19959: _M_in_end = __gend; 19959: } 19959: # 535 "/usr/include/c++/13/streambuf" 3 19959: char_type* 19959: pbase() const { return _M_out_beg; } 19959: 19959: char_type* 19959: pptr() const { return _M_out_cur; } 19959: 19959: char_type* 19959: epptr() const { return _M_out_end; } 19959: # 551 "/usr/include/c++/13/streambuf" 3 19959: void 19959: pbump(int __n) { _M_out_cur += __n; } 19959: # 561 "/usr/include/c++/13/streambuf" 3 19959: void 19959: setp(char_type* __pbeg, char_type* __pend) 19959: { 19959: _M_out_beg = _M_out_cur = __pbeg; 19959: _M_out_end = __pend; 19959: } 19959: # 582 "/usr/include/c++/13/streambuf" 3 19959: virtual void 19959: imbue(const locale& __loc __attribute__ ((__unused__))) 19959: { } 19959: # 597 "/usr/include/c++/13/streambuf" 3 19959: virtual basic_streambuf* 19959: setbuf(char_type*, streamsize) 19959: { return this; } 19959: # 608 "/usr/include/c++/13/streambuf" 3 19959: virtual pos_type 19959: seekoff(off_type, ios_base::seekdir, 19959: ios_base::openmode = ios_base::in | ios_base::out) 19959: { return pos_type(off_type(-1)); } 19959: # 620 "/usr/include/c++/13/streambuf" 3 19959: virtual pos_type 19959: seekpos(pos_type, 19959: ios_base::openmode = ios_base::in | ios_base::out) 19959: { return pos_type(off_type(-1)); } 19959: # 633 "/usr/include/c++/13/streambuf" 3 19959: virtual int 19959: sync() { return 0; } 19959: # 655 "/usr/include/c++/13/streambuf" 3 19959: virtual streamsize 19959: showmanyc() { return 0; } 19959: # 671 "/usr/include/c++/13/streambuf" 3 19959: virtual streamsize 19959: xsgetn(char_type* __s, streamsize __n); 19959: # 693 "/usr/include/c++/13/streambuf" 3 19959: virtual int_type 19959: underflow() 19959: { return traits_type::eof(); } 19959: # 706 "/usr/include/c++/13/streambuf" 3 19959: virtual int_type 19959: uflow() 19959: { 19959: int_type __ret = traits_type::eof(); 19959: const bool __testeof = traits_type::eq_int_type(this->underflow(), 19959: __ret); 19959: if (!__testeof) 19959: { 19959: __ret = traits_type::to_int_type(*this->gptr()); 19959: this->gbump(1); 19959: } 19959: return __ret; 19959: } 19959: # 730 "/usr/include/c++/13/streambuf" 3 19959: virtual int_type 19959: pbackfail(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 19959: { return traits_type::eof(); } 19959: # 748 "/usr/include/c++/13/streambuf" 3 19959: virtual streamsize 19959: xsputn(const char_type* __s, streamsize __n); 19959: # 774 "/usr/include/c++/13/streambuf" 3 19959: virtual int_type 19959: overflow(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 19959: { return traits_type::eof(); } 19959: # 801 "/usr/include/c++/13/streambuf" 3 19959: void 19959: __safe_gbump(streamsize __n) { _M_in_cur += __n; } 19959: 19959: void 19959: __safe_pbump(streamsize __n) { _M_out_cur += __n; } 19959: 19959: 19959: 19959: 19959: protected: 19959: 19959: basic_streambuf(const basic_streambuf&); 19959: 19959: basic_streambuf& 19959: operator=(const basic_streambuf&); 19959: 19959: 19959: void 19959: swap(basic_streambuf& __sb) 19959: { 19959: std::swap(_M_in_beg, __sb._M_in_beg); 19959: std::swap(_M_in_cur, __sb._M_in_cur); 19959: std::swap(_M_in_end, __sb._M_in_end); 19959: std::swap(_M_out_beg, __sb._M_out_beg); 19959: std::swap(_M_out_cur, __sb._M_out_cur); 19959: std::swap(_M_out_end, __sb._M_out_end); 19959: std::swap(_M_buf_locale, __sb._M_buf_locale); 19959: } 19959: 19959: }; 19959: 19959: 19959: template 19959: std::basic_streambuf<_CharT, _Traits>:: 19959: basic_streambuf(const basic_streambuf&) = default; 19959: 19959: template 19959: std::basic_streambuf<_CharT, _Traits>& 19959: std::basic_streambuf<_CharT, _Traits>:: 19959: operator=(const basic_streambuf&) = default; 19959: 19959: 19959: 19959: template<> 19959: streamsize 19959: __copy_streambufs_eof(basic_streambuf* __sbin, 19959: basic_streambuf* __sbout, bool& __ineof); 19959: 19959: template<> 19959: streamsize 19959: __copy_streambufs_eof(basic_streambuf* __sbin, 19959: basic_streambuf* __sbout, bool& __ineof); 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: # 1 "/usr/include/c++/13/bits/streambuf.tcc" 1 3 19959: # 37 "/usr/include/c++/13/bits/streambuf.tcc" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/streambuf.tcc" 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template 19959: streamsize 19959: basic_streambuf<_CharT, _Traits>:: 19959: xsgetn(char_type* __s, streamsize __n) 19959: { 19959: streamsize __ret = 0; 19959: while (__ret < __n) 19959: { 19959: const streamsize __buf_len = this->egptr() - this->gptr(); 19959: if (__buf_len) 19959: { 19959: const streamsize __remaining = __n - __ret; 19959: const streamsize __len = std::min(__buf_len, __remaining); 19959: traits_type::copy(__s, this->gptr(), __len); 19959: __ret += __len; 19959: __s += __len; 19959: this->__safe_gbump(__len); 19959: } 19959: 19959: if (__ret < __n) 19959: { 19959: const int_type __c = this->uflow(); 19959: if (!traits_type::eq_int_type(__c, traits_type::eof())) 19959: { 19959: traits_type::assign(*__s++, traits_type::to_char_type(__c)); 19959: ++__ret; 19959: } 19959: else 19959: break; 19959: } 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: streamsize 19959: basic_streambuf<_CharT, _Traits>:: 19959: xsputn(const char_type* __s, streamsize __n) 19959: { 19959: streamsize __ret = 0; 19959: while (__ret < __n) 19959: { 19959: const streamsize __buf_len = this->epptr() - this->pptr(); 19959: if (__buf_len) 19959: { 19959: const streamsize __remaining = __n - __ret; 19959: const streamsize __len = std::min(__buf_len, __remaining); 19959: traits_type::copy(this->pptr(), __s, __len); 19959: __ret += __len; 19959: __s += __len; 19959: this->__safe_pbump(__len); 19959: } 19959: 19959: if (__ret < __n) 19959: { 19959: int_type __c = this->overflow(traits_type::to_int_type(*__s)); 19959: if (!traits_type::eq_int_type(__c, traits_type::eof())) 19959: { 19959: ++__ret; 19959: ++__s; 19959: } 19959: else 19959: break; 19959: } 19959: } 19959: return __ret; 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: streamsize 19959: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, 19959: basic_streambuf<_CharT, _Traits>* __sbout, 19959: bool& __ineof) 19959: { 19959: streamsize __ret = 0; 19959: __ineof = true; 19959: typename _Traits::int_type __c = __sbin->sgetc(); 19959: while (!_Traits::eq_int_type(__c, _Traits::eof())) 19959: { 19959: __c = __sbout->sputc(_Traits::to_char_type(__c)); 19959: if (_Traits::eq_int_type(__c, _Traits::eof())) 19959: { 19959: __ineof = false; 19959: break; 19959: } 19959: ++__ret; 19959: __c = __sbin->snextc(); 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: inline streamsize 19959: __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, 19959: basic_streambuf<_CharT, _Traits>* __sbout) 19959: { 19959: bool __ineof; 19959: return __copy_streambufs_eof(__sbin, __sbout, __ineof); 19959: } 19959: 19959: 19959: 19959: 19959: extern template class basic_streambuf; 19959: 19959: extern template 19959: streamsize 19959: __copy_streambufs(basic_streambuf*, 19959: basic_streambuf*); 19959: 19959: 19959: extern template class basic_streambuf; 19959: 19959: extern template 19959: streamsize 19959: __copy_streambufs(basic_streambuf*, 19959: basic_streambuf*); 19959: 19959: 19959: 19959: 19959: } 19959: # 861 "/usr/include/c++/13/streambuf" 2 3 19959: # 46 "/usr/include/c++/13/ios" 2 3 19959: # 1 "/usr/include/c++/13/bits/basic_ios.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/locale_facets.h" 1 3 19959: # 37 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: 19959: # 1 "/usr/include/c++/13/cwctype" 1 3 19959: # 39 "/usr/include/c++/13/cwctype" 3 19959: 19959: # 40 "/usr/include/c++/13/cwctype" 3 19959: # 50 "/usr/include/c++/13/cwctype" 3 19959: # 1 "/usr/include/wctype.h" 1 3 4 19959: # 38 "/usr/include/wctype.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 1 3 4 19959: # 38 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 19959: typedef unsigned long int wctype_t; 19959: # 56 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 19959: enum 19959: { 19959: __ISwupper = 0, 19959: __ISwlower = 1, 19959: __ISwalpha = 2, 19959: __ISwdigit = 3, 19959: __ISwxdigit = 4, 19959: __ISwspace = 5, 19959: __ISwprint = 6, 19959: __ISwgraph = 7, 19959: __ISwblank = 8, 19959: __ISwcntrl = 9, 19959: __ISwpunct = 10, 19959: __ISwalnum = 11, 19959: 19959: _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), 19959: _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), 19959: _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), 19959: _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), 19959: _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), 19959: _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), 19959: _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), 19959: _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), 19959: _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), 19959: _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), 19959: _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), 19959: _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) 19959: }; 19959: 19959: 19959: 19959: extern "C" { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int iswalnum (wint_t __wc) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern int iswalpha (wint_t __wc) noexcept (true); 19959: 19959: 19959: extern int iswcntrl (wint_t __wc) noexcept (true); 19959: 19959: 19959: 19959: extern int iswdigit (wint_t __wc) noexcept (true); 19959: 19959: 19959: 19959: extern int iswgraph (wint_t __wc) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int iswlower (wint_t __wc) noexcept (true); 19959: 19959: 19959: extern int iswprint (wint_t __wc) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int iswpunct (wint_t __wc) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int iswspace (wint_t __wc) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int iswupper (wint_t __wc) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int iswxdigit (wint_t __wc) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern int iswblank (wint_t __wc) noexcept (true); 19959: # 155 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 19959: extern wctype_t wctype (const char *__property) noexcept (true); 19959: 19959: 19959: 19959: extern int iswctype (wint_t __wc, wctype_t __desc) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern wint_t towlower (wint_t __wc) noexcept (true); 19959: 19959: 19959: extern wint_t towupper (wint_t __wc) noexcept (true); 19959: 19959: } 19959: # 39 "/usr/include/wctype.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: extern "C" { 19959: 19959: 19959: 19959: typedef const __int32_t *wctrans_t; 19959: 19959: 19959: 19959: extern wctrans_t wctrans (const char *__property) noexcept (true); 19959: 19959: 19959: extern wint_t towctrans (wint_t __wc, wctrans_t __desc) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int iswalnum_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern int iswalpha_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: extern int iswcntrl_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: 19959: extern int iswdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: 19959: extern int iswgraph_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int iswlower_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: extern int iswprint_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int iswpunct_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int iswspace_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int iswupper_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int iswxdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int iswblank_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: 19959: extern wctype_t wctype_l (const char *__property, locale_t __locale) 19959: noexcept (true); 19959: 19959: 19959: 19959: extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale) 19959: noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern wint_t towlower_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: extern wint_t towupper_l (wint_t __wc, locale_t __locale) noexcept (true); 19959: 19959: 19959: 19959: extern wctrans_t wctrans_l (const char *__property, locale_t __locale) 19959: noexcept (true); 19959: 19959: 19959: extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, 19959: locale_t __locale) noexcept (true); 19959: 19959: 19959: 19959: } 19959: # 51 "/usr/include/c++/13/cwctype" 2 3 19959: # 80 "/usr/include/c++/13/cwctype" 3 19959: namespace std 19959: { 19959: using ::wctrans_t; 19959: using ::wctype_t; 19959: using ::wint_t; 19959: 19959: using ::iswalnum; 19959: using ::iswalpha; 19959: 19959: using ::iswblank; 19959: 19959: using ::iswcntrl; 19959: using ::iswctype; 19959: using ::iswdigit; 19959: using ::iswgraph; 19959: using ::iswlower; 19959: using ::iswprint; 19959: using ::iswpunct; 19959: using ::iswspace; 19959: using ::iswupper; 19959: using ::iswxdigit; 19959: using ::towctrans; 19959: using ::towlower; 19959: using ::towupper; 19959: using ::wctrans; 19959: using ::wctype; 19959: } 19959: # 40 "/usr/include/c++/13/bits/locale_facets.h" 2 3 19959: # 1 "/usr/include/c++/13/cctype" 1 3 19959: # 39 "/usr/include/c++/13/cctype" 3 19959: 19959: # 40 "/usr/include/c++/13/cctype" 3 19959: # 41 "/usr/include/c++/13/bits/locale_facets.h" 2 3 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/ctype_base.h" 1 3 19959: # 36 "/usr/include/arm-linux-gnueabihf/c++/13/bits/ctype_base.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: struct ctype_base 19959: { 19959: 19959: typedef const int* __to_type; 19959: 19959: 19959: 19959: typedef unsigned short mask; 19959: static const mask upper = _ISupper; 19959: static const mask lower = _ISlower; 19959: static const mask alpha = _ISalpha; 19959: static const mask digit = _ISdigit; 19959: static const mask xdigit = _ISxdigit; 19959: static const mask space = _ISspace; 19959: static const mask print = _ISprint; 19959: static const mask graph = _ISalpha | _ISdigit | _ISpunct; 19959: static const mask cntrl = _IScntrl; 19959: static const mask punct = _ISpunct; 19959: static const mask alnum = _ISalpha | _ISdigit; 19959: 19959: static const mask blank = _ISblank; 19959: 19959: }; 19959: 19959: 19959: } 19959: # 42 "/usr/include/c++/13/bits/locale_facets.h" 2 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/streambuf_iterator.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 19959: 19959: 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 49 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: 19959: template 19959: class istreambuf_iterator 19959: : public iterator 19959: { 19959: public: 19959: # 70 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 19959: typedef _CharT char_type; 19959: typedef _Traits traits_type; 19959: typedef typename _Traits::int_type int_type; 19959: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 19959: typedef basic_istream<_CharT, _Traits> istream_type; 19959: 19959: 19959: template 19959: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 19959: ostreambuf_iterator<_CharT2> >::__type 19959: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 19959: ostreambuf_iterator<_CharT2>); 19959: 19959: template 19959: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 19959: _CharT2*>::__type 19959: __copy_move_a2(istreambuf_iterator<_CharT2>, 19959: istreambuf_iterator<_CharT2>, _CharT2*); 19959: 19959: template 19959: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 19959: _CharT2*>::__type 19959: __copy_n_a(istreambuf_iterator<_CharT2>, _Size, _CharT2*, bool); 19959: 19959: template 19959: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 19959: istreambuf_iterator<_CharT2> >::__type 19959: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 19959: const _CharT2&); 19959: 19959: template 19959: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 19959: void>::__type 19959: advance(istreambuf_iterator<_CharT2>&, _Distance); 19959: 19959: private: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: mutable streambuf_type* _M_sbuf; 19959: int_type _M_c; 19959: 19959: public: 19959: 19959: constexpr istreambuf_iterator() noexcept 19959: : _M_sbuf(0), _M_c(traits_type::eof()) { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: istreambuf_iterator(const istreambuf_iterator&) noexcept = default; 19959: 19959: ~istreambuf_iterator() = default; 19959: 19959: 19959: 19959: istreambuf_iterator(istream_type& __s) noexcept 19959: : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } 19959: 19959: 19959: istreambuf_iterator(streambuf_type* __s) noexcept 19959: : _M_sbuf(__s), _M_c(traits_type::eof()) { } 19959: 19959: 19959: istreambuf_iterator& 19959: operator=(const istreambuf_iterator&) noexcept = default; 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: char_type 19959: operator*() const 19959: { 19959: int_type __c = _M_get(); 19959: # 161 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 19959: return traits_type::to_char_type(__c); 19959: } 19959: 19959: 19959: istreambuf_iterator& 19959: operator++() 19959: { 19959: 19959: 19959: 19959: ; 19959: 19959: _M_sbuf->sbumpc(); 19959: _M_c = traits_type::eof(); 19959: return *this; 19959: } 19959: 19959: 19959: istreambuf_iterator 19959: operator++(int) 19959: { 19959: 19959: 19959: 19959: ; 19959: 19959: istreambuf_iterator __old = *this; 19959: __old._M_c = _M_sbuf->sbumpc(); 19959: _M_c = traits_type::eof(); 19959: return __old; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: bool 19959: equal(const istreambuf_iterator& __b) const 19959: { return _M_at_eof() == __b._M_at_eof(); } 19959: 19959: private: 19959: int_type 19959: _M_get() const 19959: { 19959: int_type __ret = _M_c; 19959: if (_M_sbuf && _S_is_eof(__ret) && _S_is_eof(__ret = _M_sbuf->sgetc())) 19959: _M_sbuf = 0; 19959: return __ret; 19959: } 19959: 19959: bool 19959: _M_at_eof() const 19959: { return _S_is_eof(_M_get()); } 19959: 19959: static bool 19959: _S_is_eof(int_type __c) 19959: { 19959: const int_type __eof = traits_type::eof(); 19959: return traits_type::eq_int_type(__c, __eof); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: }; 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator==(const istreambuf_iterator<_CharT, _Traits>& __a, 19959: const istreambuf_iterator<_CharT, _Traits>& __b) 19959: { return __a.equal(__b); } 19959: 19959: 19959: template 19959: [[__nodiscard__]] 19959: inline bool 19959: operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, 19959: const istreambuf_iterator<_CharT, _Traits>& __b) 19959: { return !__a.equal(__b); } 19959: 19959: 19959: 19959: template 19959: class ostreambuf_iterator 19959: : public iterator 19959: { 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef _CharT char_type; 19959: typedef _Traits traits_type; 19959: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 19959: typedef basic_ostream<_CharT, _Traits> ostream_type; 19959: 19959: 19959: template 19959: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 19959: ostreambuf_iterator<_CharT2> >::__type 19959: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 19959: ostreambuf_iterator<_CharT2>); 19959: 19959: private: 19959: streambuf_type* _M_sbuf; 19959: bool _M_failed; 19959: 19959: public: 19959: # 284 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 19959: ostreambuf_iterator(ostream_type& __s) noexcept 19959: : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } 19959: 19959: 19959: ostreambuf_iterator(streambuf_type* __s) noexcept 19959: : _M_sbuf(__s), _M_failed(!_M_sbuf) { } 19959: 19959: 19959: ostreambuf_iterator& 19959: operator=(_CharT __c) 19959: { 19959: if (!_M_failed && 19959: _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) 19959: _M_failed = true; 19959: return *this; 19959: } 19959: 19959: 19959: [[__nodiscard__]] 19959: ostreambuf_iterator& 19959: operator*() 19959: { return *this; } 19959: 19959: 19959: ostreambuf_iterator& 19959: operator++(int) 19959: { return *this; } 19959: 19959: 19959: ostreambuf_iterator& 19959: operator++() 19959: { return *this; } 19959: 19959: 19959: [[__nodiscard__]] 19959: bool 19959: failed() const noexcept 19959: { return _M_failed; } 19959: 19959: ostreambuf_iterator& 19959: _M_put(const _CharT* __ws, streamsize __len) 19959: { 19959: if (__builtin_expect(!_M_failed, true) 19959: && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, 19959: false)) 19959: _M_failed = true; 19959: return *this; 19959: } 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: template 19959: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 19959: ostreambuf_iterator<_CharT> >::__type 19959: copy(istreambuf_iterator<_CharT> __first, 19959: istreambuf_iterator<_CharT> __last, 19959: ostreambuf_iterator<_CharT> __result) 19959: { 19959: if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) 19959: { 19959: bool __ineof; 19959: __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); 19959: if (!__ineof) 19959: __result._M_failed = true; 19959: } 19959: return __result; 19959: } 19959: 19959: template 19959: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 19959: ostreambuf_iterator<_CharT> >::__type 19959: __copy_move_a2(_CharT* __first, _CharT* __last, 19959: ostreambuf_iterator<_CharT> __result) 19959: { 19959: const streamsize __num = __last - __first; 19959: if (__num > 0) 19959: __result._M_put(__first, __num); 19959: return __result; 19959: } 19959: 19959: template 19959: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 19959: ostreambuf_iterator<_CharT> >::__type 19959: __copy_move_a2(const _CharT* __first, const _CharT* __last, 19959: ostreambuf_iterator<_CharT> __result) 19959: { 19959: const streamsize __num = __last - __first; 19959: if (__num > 0) 19959: __result._M_put(__first, __num); 19959: return __result; 19959: } 19959: 19959: template 19959: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 19959: _CharT*>::__type 19959: __copy_move_a2(istreambuf_iterator<_CharT> __first, 19959: istreambuf_iterator<_CharT> __last, _CharT* __result) 19959: { 19959: typedef istreambuf_iterator<_CharT> __is_iterator_type; 19959: typedef typename __is_iterator_type::traits_type traits_type; 19959: typedef typename __is_iterator_type::streambuf_type streambuf_type; 19959: typedef typename traits_type::int_type int_type; 19959: 19959: if (__first._M_sbuf && !__last._M_sbuf) 19959: { 19959: streambuf_type* __sb = __first._M_sbuf; 19959: int_type __c = __sb->sgetc(); 19959: while (!traits_type::eq_int_type(__c, traits_type::eof())) 19959: { 19959: const streamsize __n = __sb->egptr() - __sb->gptr(); 19959: if (__n > 1) 19959: { 19959: traits_type::copy(__result, __sb->gptr(), __n); 19959: __sb->__safe_gbump(__n); 19959: __result += __n; 19959: __c = __sb->underflow(); 19959: } 19959: else 19959: { 19959: *__result++ = traits_type::to_char_type(__c); 19959: __c = __sb->snextc(); 19959: } 19959: } 19959: } 19959: return __result; 19959: } 19959: 19959: template 19959: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 19959: _CharT*>::__type 19959: __copy_n_a(istreambuf_iterator<_CharT> __it, _Size __n, _CharT* __result, 19959: bool __strict __attribute__((__unused__))) 19959: { 19959: if (__n == 0) 19959: return __result; 19959: 19959: 19959: 19959: ; 19959: _CharT* __beg = __result; 19959: __result += __it._M_sbuf->sgetn(__beg, __n); 19959: 19959: 19959: ; 19959: return __result; 19959: } 19959: 19959: template 19959: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 19959: istreambuf_iterator<_CharT> >::__type 19959: find(istreambuf_iterator<_CharT> __first, 19959: istreambuf_iterator<_CharT> __last, const _CharT& __val) 19959: { 19959: typedef istreambuf_iterator<_CharT> __is_iterator_type; 19959: typedef typename __is_iterator_type::traits_type traits_type; 19959: typedef typename __is_iterator_type::streambuf_type streambuf_type; 19959: typedef typename traits_type::int_type int_type; 19959: const int_type __eof = traits_type::eof(); 19959: 19959: if (__first._M_sbuf && !__last._M_sbuf) 19959: { 19959: const int_type __ival = traits_type::to_int_type(__val); 19959: streambuf_type* __sb = __first._M_sbuf; 19959: int_type __c = __sb->sgetc(); 19959: while (!traits_type::eq_int_type(__c, __eof) 19959: && !traits_type::eq_int_type(__c, __ival)) 19959: { 19959: streamsize __n = __sb->egptr() - __sb->gptr(); 19959: if (__n > 1) 19959: { 19959: const _CharT* __p = traits_type::find(__sb->gptr(), 19959: __n, __val); 19959: if (__p) 19959: __n = __p - __sb->gptr(); 19959: __sb->__safe_gbump(__n); 19959: __c = __sb->sgetc(); 19959: } 19959: else 19959: __c = __sb->snextc(); 19959: } 19959: 19959: __first._M_c = __eof; 19959: } 19959: 19959: return __first; 19959: } 19959: 19959: template 19959: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 19959: void>::__type 19959: advance(istreambuf_iterator<_CharT>& __i, _Distance __n) 19959: { 19959: if (__n == 0) 19959: return; 19959: 19959: do { if (std::__is_constant_evaluated() && !bool(__n > 0)) __builtin_unreachable(); } while (false); 19959: 19959: 19959: ; 19959: 19959: typedef istreambuf_iterator<_CharT> __is_iterator_type; 19959: typedef typename __is_iterator_type::traits_type traits_type; 19959: typedef typename __is_iterator_type::streambuf_type streambuf_type; 19959: typedef typename traits_type::int_type int_type; 19959: const int_type __eof = traits_type::eof(); 19959: 19959: streambuf_type* __sb = __i._M_sbuf; 19959: while (__n > 0) 19959: { 19959: streamsize __size = __sb->egptr() - __sb->gptr(); 19959: if (__size > __n) 19959: { 19959: __sb->__safe_gbump(__n); 19959: break; 19959: } 19959: 19959: __sb->__safe_gbump(__size); 19959: __n -= __size; 19959: if (traits_type::eq_int_type(__sb->underflow(), __eof)) 19959: { 19959: 19959: 19959: ; 19959: break; 19959: } 19959: } 19959: 19959: __i._M_c = __eof; 19959: } 19959: 19959: 19959: 19959: 19959: } 19959: # 49 "/usr/include/c++/13/bits/locale_facets.h" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 74 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: template 19959: void 19959: __convert_to_v(const char*, _Tp&, ios_base::iostate&, 19959: const __c_locale&) throw(); 19959: 19959: 19959: template<> 19959: void 19959: __convert_to_v(const char*, float&, ios_base::iostate&, 19959: const __c_locale&) throw(); 19959: 19959: template<> 19959: void 19959: __convert_to_v(const char*, double&, ios_base::iostate&, 19959: const __c_locale&) throw(); 19959: 19959: template<> 19959: void 19959: __convert_to_v(const char*, long double&, ios_base::iostate&, 19959: const __c_locale&) throw(); 19959: 19959: 19959: 19959: template 19959: struct __pad 19959: { 19959: static void 19959: _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, 19959: const _CharT* __olds, streamsize __newlen, streamsize __oldlen); 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: _CharT* 19959: __add_grouping(_CharT* __s, _CharT __sep, 19959: const char* __gbeg, size_t __gsize, 19959: const _CharT* __first, const _CharT* __last); 19959: 19959: 19959: 19959: 19959: template 19959: inline 19959: ostreambuf_iterator<_CharT> 19959: __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) 19959: { 19959: __s._M_put(__ws, __len); 19959: return __s; 19959: } 19959: 19959: 19959: template 19959: inline 19959: _OutIter 19959: __write(_OutIter __s, const _CharT* __ws, int __len) 19959: { 19959: for (int __j = 0; __j < __len; __j++, ++__s) 19959: *__s = __ws[__j]; 19959: return __s; 19959: } 19959: # 152 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: template 19959: class __ctype_abstract_base : public locale::facet, public ctype_base 19959: { 19959: public: 19959: 19959: 19959: typedef _CharT char_type; 19959: # 171 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: bool 19959: is(mask __m, char_type __c) const 19959: { return this->do_is(__m, __c); } 19959: # 188 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: const char_type* 19959: is(const char_type *__lo, const char_type *__hi, mask *__vec) const 19959: { return this->do_is(__lo, __hi, __vec); } 19959: # 204 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: const char_type* 19959: scan_is(mask __m, const char_type* __lo, const char_type* __hi) const 19959: { return this->do_scan_is(__m, __lo, __hi); } 19959: # 220 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: const char_type* 19959: scan_not(mask __m, const char_type* __lo, const char_type* __hi) const 19959: { return this->do_scan_not(__m, __lo, __hi); } 19959: # 234 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: char_type 19959: toupper(char_type __c) const 19959: { return this->do_toupper(__c); } 19959: # 249 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: const char_type* 19959: toupper(char_type *__lo, const char_type* __hi) const 19959: { return this->do_toupper(__lo, __hi); } 19959: # 263 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: char_type 19959: tolower(char_type __c) const 19959: { return this->do_tolower(__c); } 19959: # 278 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: const char_type* 19959: tolower(char_type* __lo, const char_type* __hi) const 19959: { return this->do_tolower(__lo, __hi); } 19959: # 295 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: char_type 19959: widen(char __c) const 19959: { return this->do_widen(__c); } 19959: # 314 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: const char* 19959: widen(const char* __lo, const char* __hi, char_type* __to) const 19959: { return this->do_widen(__lo, __hi, __to); } 19959: # 333 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: char 19959: narrow(char_type __c, char __dfault) const 19959: { return this->do_narrow(__c, __dfault); } 19959: # 355 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: const char_type* 19959: narrow(const char_type* __lo, const char_type* __hi, 19959: char __dfault, char* __to) const 19959: { return this->do_narrow(__lo, __hi, __dfault, __to); } 19959: 19959: protected: 19959: explicit 19959: __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } 19959: 19959: virtual 19959: ~__ctype_abstract_base() { } 19959: # 380 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual bool 19959: do_is(mask __m, char_type __c) const = 0; 19959: # 399 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_is(const char_type* __lo, const char_type* __hi, 19959: mask* __vec) const = 0; 19959: # 418 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_scan_is(mask __m, const char_type* __lo, 19959: const char_type* __hi) const = 0; 19959: # 437 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_scan_not(mask __m, const char_type* __lo, 19959: const char_type* __hi) const = 0; 19959: # 455 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char_type 19959: do_toupper(char_type __c) const = 0; 19959: # 472 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_toupper(char_type* __lo, const char_type* __hi) const = 0; 19959: # 488 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char_type 19959: do_tolower(char_type __c) const = 0; 19959: # 505 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_tolower(char_type* __lo, const char_type* __hi) const = 0; 19959: # 524 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char_type 19959: do_widen(char __c) const = 0; 19959: # 545 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char* 19959: do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; 19959: # 566 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char 19959: do_narrow(char_type __c, char __dfault) const = 0; 19959: # 591 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_narrow(const char_type* __lo, const char_type* __hi, 19959: char __dfault, char* __to) const = 0; 19959: }; 19959: # 614 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: template 19959: class ctype : public __ctype_abstract_base<_CharT> 19959: { 19959: public: 19959: 19959: typedef _CharT char_type; 19959: typedef typename __ctype_abstract_base<_CharT>::mask mask; 19959: 19959: 19959: static locale::id id; 19959: 19959: explicit 19959: ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } 19959: 19959: protected: 19959: virtual 19959: ~ctype(); 19959: 19959: virtual bool 19959: do_is(mask __m, char_type __c) const; 19959: 19959: virtual const char_type* 19959: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 19959: 19959: virtual const char_type* 19959: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 19959: 19959: virtual const char_type* 19959: do_scan_not(mask __m, const char_type* __lo, 19959: const char_type* __hi) const; 19959: 19959: virtual char_type 19959: do_toupper(char_type __c) const; 19959: 19959: virtual const char_type* 19959: do_toupper(char_type* __lo, const char_type* __hi) const; 19959: 19959: virtual char_type 19959: do_tolower(char_type __c) const; 19959: 19959: virtual const char_type* 19959: do_tolower(char_type* __lo, const char_type* __hi) const; 19959: 19959: virtual char_type 19959: do_widen(char __c) const; 19959: 19959: virtual const char* 19959: do_widen(const char* __lo, const char* __hi, char_type* __dest) const; 19959: 19959: virtual char 19959: do_narrow(char_type, char __dfault) const; 19959: 19959: virtual const char_type* 19959: do_narrow(const char_type* __lo, const char_type* __hi, 19959: char __dfault, char* __to) const; 19959: }; 19959: 19959: template 19959: locale::id ctype<_CharT>::id; 19959: 19959: 19959: 19959: template 19959: class ctype >; 19959: # 688 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: template<> 19959: class ctype : public locale::facet, public ctype_base 19959: { 19959: public: 19959: 19959: 19959: typedef char char_type; 19959: 19959: protected: 19959: 19959: __c_locale _M_c_locale_ctype; 19959: bool _M_del; 19959: __to_type _M_toupper; 19959: __to_type _M_tolower; 19959: const mask* _M_table; 19959: mutable char _M_widen_ok; 19959: mutable char _M_widen[1 + static_cast(-1)]; 19959: mutable char _M_narrow[1 + static_cast(-1)]; 19959: mutable char _M_narrow_ok; 19959: 19959: 19959: public: 19959: 19959: static locale::id id; 19959: 19959: static const size_t table_size = 1 + static_cast(-1); 19959: # 725 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: explicit 19959: ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); 19959: # 738 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: explicit 19959: ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, 19959: size_t __refs = 0); 19959: # 751 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: inline bool 19959: is(mask __m, char __c) const; 19959: # 766 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: inline const char* 19959: is(const char* __lo, const char* __hi, mask* __vec) const; 19959: # 780 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: inline const char* 19959: scan_is(mask __m, const char* __lo, const char* __hi) const; 19959: # 794 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: inline const char* 19959: scan_not(mask __m, const char* __lo, const char* __hi) const; 19959: # 809 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: char_type 19959: toupper(char_type __c) const 19959: { return this->do_toupper(__c); } 19959: # 826 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: const char_type* 19959: toupper(char_type *__lo, const char_type* __hi) const 19959: { return this->do_toupper(__lo, __hi); } 19959: # 842 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: char_type 19959: tolower(char_type __c) const 19959: { return this->do_tolower(__c); } 19959: # 859 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: const char_type* 19959: tolower(char_type* __lo, const char_type* __hi) const 19959: { return this->do_tolower(__lo, __hi); } 19959: # 879 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: char_type 19959: widen(char __c) const 19959: { 19959: if (_M_widen_ok) 19959: return _M_widen[static_cast(__c)]; 19959: this->_M_widen_init(); 19959: return this->do_widen(__c); 19959: } 19959: # 906 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: const char* 19959: widen(const char* __lo, const char* __hi, char_type* __to) const 19959: { 19959: if (_M_widen_ok == 1) 19959: { 19959: if (__builtin_expect(__hi != __lo, true)) 19959: __builtin_memcpy(__to, __lo, __hi - __lo); 19959: return __hi; 19959: } 19959: if (!_M_widen_ok) 19959: _M_widen_init(); 19959: return this->do_widen(__lo, __hi, __to); 19959: } 19959: # 938 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: char 19959: narrow(char_type __c, char __dfault) const 19959: { 19959: if (_M_narrow[static_cast(__c)]) 19959: return _M_narrow[static_cast(__c)]; 19959: const char __t = do_narrow(__c, __dfault); 19959: if (__t != __dfault) 19959: _M_narrow[static_cast(__c)] = __t; 19959: return __t; 19959: } 19959: # 971 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: const char_type* 19959: narrow(const char_type* __lo, const char_type* __hi, 19959: char __dfault, char* __to) const 19959: { 19959: if (__builtin_expect(_M_narrow_ok == 1, true)) 19959: { 19959: if (__builtin_expect(__hi != __lo, true)) 19959: __builtin_memcpy(__to, __lo, __hi - __lo); 19959: return __hi; 19959: } 19959: if (!_M_narrow_ok) 19959: _M_narrow_init(); 19959: return this->do_narrow(__lo, __hi, __dfault, __to); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: const mask* 19959: table() const throw() 19959: { return _M_table; } 19959: 19959: 19959: static const mask* 19959: classic_table() throw(); 19959: protected: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual 19959: ~ctype(); 19959: # 1021 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char_type 19959: do_toupper(char_type __c) const; 19959: # 1038 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_toupper(char_type* __lo, const char_type* __hi) const; 19959: # 1054 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char_type 19959: do_tolower(char_type __c) const; 19959: # 1071 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_tolower(char_type* __lo, const char_type* __hi) const; 19959: # 1091 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char_type 19959: do_widen(char __c) const 19959: { return __c; } 19959: # 1114 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char* 19959: do_widen(const char* __lo, const char* __hi, char_type* __to) const 19959: { 19959: if (__builtin_expect(__hi != __lo, true)) 19959: __builtin_memcpy(__to, __lo, __hi - __lo); 19959: return __hi; 19959: } 19959: # 1141 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char 19959: do_narrow(char_type __c, char __dfault __attribute__((__unused__))) const 19959: { return __c; } 19959: # 1167 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_narrow(const char_type* __lo, const char_type* __hi, 19959: char __dfault __attribute__((__unused__)), char* __to) const 19959: { 19959: if (__builtin_expect(__hi != __lo, true)) 19959: __builtin_memcpy(__to, __lo, __hi - __lo); 19959: return __hi; 19959: } 19959: 19959: private: 19959: void _M_narrow_init() const; 19959: void _M_widen_init() const; 19959: }; 19959: # 1193 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: template<> 19959: class ctype : public __ctype_abstract_base 19959: { 19959: public: 19959: 19959: 19959: typedef wchar_t char_type; 19959: typedef wctype_t __wmask_type; 19959: 19959: protected: 19959: __c_locale _M_c_locale_ctype; 19959: 19959: 19959: bool _M_narrow_ok; 19959: char _M_narrow[128]; 19959: wint_t _M_widen[1 + static_cast(-1)]; 19959: 19959: 19959: mask _M_bit[16]; 19959: __wmask_type _M_wmask[16]; 19959: 19959: public: 19959: 19959: 19959: static locale::id id; 19959: # 1226 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: explicit 19959: ctype(size_t __refs = 0); 19959: # 1237 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: explicit 19959: ctype(__c_locale __cloc, size_t __refs = 0); 19959: 19959: protected: 19959: __wmask_type 19959: _M_convert_to_wmask(const mask __m) const throw(); 19959: 19959: 19959: virtual 19959: ~ctype(); 19959: # 1261 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual bool 19959: do_is(mask __m, char_type __c) const; 19959: # 1280 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 19959: # 1298 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 19959: # 1316 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_scan_not(mask __m, const char_type* __lo, 19959: const char_type* __hi) const; 19959: # 1333 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char_type 19959: do_toupper(char_type __c) const; 19959: # 1350 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_toupper(char_type* __lo, const char_type* __hi) const; 19959: # 1366 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char_type 19959: do_tolower(char_type __c) const; 19959: # 1383 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_tolower(char_type* __lo, const char_type* __hi) const; 19959: # 1403 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char_type 19959: do_widen(char __c) const; 19959: # 1425 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char* 19959: do_widen(const char* __lo, const char* __hi, char_type* __to) const; 19959: # 1448 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char 19959: do_narrow(char_type __c, char __dfault) const; 19959: # 1474 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual const char_type* 19959: do_narrow(const char_type* __lo, const char_type* __hi, 19959: char __dfault, char* __to) const; 19959: 19959: 19959: void 19959: _M_initialize_ctype() throw(); 19959: }; 19959: 19959: 19959: 19959: template 19959: class ctype_byname : public ctype<_CharT> 19959: { 19959: public: 19959: typedef typename ctype<_CharT>::mask mask; 19959: 19959: explicit 19959: ctype_byname(const char* __s, size_t __refs = 0); 19959: 19959: 19959: explicit 19959: ctype_byname(const string& __s, size_t __refs = 0) 19959: : ctype_byname(__s.c_str(), __refs) { } 19959: 19959: 19959: protected: 19959: virtual 19959: ~ctype_byname() { } 19959: }; 19959: 19959: 19959: template<> 19959: class ctype_byname : public ctype 19959: { 19959: public: 19959: explicit 19959: ctype_byname(const char* __s, size_t __refs = 0); 19959: 19959: 19959: explicit 19959: ctype_byname(const string& __s, size_t __refs = 0); 19959: 19959: 19959: protected: 19959: virtual 19959: ~ctype_byname(); 19959: }; 19959: 19959: 19959: template<> 19959: class ctype_byname : public ctype 19959: { 19959: public: 19959: explicit 19959: ctype_byname(const char* __s, size_t __refs = 0); 19959: 19959: 19959: explicit 19959: ctype_byname(const string& __s, size_t __refs = 0); 19959: 19959: 19959: protected: 19959: virtual 19959: ~ctype_byname(); 19959: }; 19959: 19959: 19959: 19959: } 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/ctype_inline.h" 1 3 19959: # 37 "/usr/include/arm-linux-gnueabihf/c++/13/bits/ctype_inline.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: bool 19959: ctype:: 19959: is(mask __m, char __c) const 19959: { return _M_table[static_cast(__c)] & __m; } 19959: 19959: const char* 19959: ctype:: 19959: is(const char* __low, const char* __high, mask* __vec) const 19959: { 19959: while (__low < __high) 19959: *__vec++ = _M_table[static_cast(*__low++)]; 19959: return __high; 19959: } 19959: 19959: const char* 19959: ctype:: 19959: scan_is(mask __m, const char* __low, const char* __high) const 19959: { 19959: while (__low < __high 19959: && !(_M_table[static_cast(*__low)] & __m)) 19959: ++__low; 19959: return __low; 19959: } 19959: 19959: const char* 19959: ctype:: 19959: scan_not(mask __m, const char* __low, const char* __high) const 19959: { 19959: while (__low < __high 19959: && (_M_table[static_cast(*__low)] & __m) != 0) 19959: ++__low; 19959: return __low; 19959: } 19959: 19959: 19959: } 19959: # 1547 "/usr/include/c++/13/bits/locale_facets.h" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: class __num_base 19959: { 19959: public: 19959: 19959: 19959: enum 19959: { 19959: _S_ominus, 19959: _S_oplus, 19959: _S_ox, 19959: _S_oX, 19959: _S_odigits, 19959: _S_odigits_end = _S_odigits + 16, 19959: _S_oudigits = _S_odigits_end, 19959: _S_oudigits_end = _S_oudigits + 16, 19959: _S_oe = _S_odigits + 14, 19959: _S_oE = _S_oudigits + 14, 19959: _S_oend = _S_oudigits_end 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: static const char* _S_atoms_out; 19959: 19959: 19959: 19959: static const char* _S_atoms_in; 19959: 19959: enum 19959: { 19959: _S_iminus, 19959: _S_iplus, 19959: _S_ix, 19959: _S_iX, 19959: _S_izero, 19959: _S_ie = _S_izero + 14, 19959: _S_iE = _S_izero + 20, 19959: _S_iend = 26 19959: }; 19959: 19959: 19959: 19959: static void 19959: _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); 19959: }; 19959: 19959: template 19959: struct __numpunct_cache : public locale::facet 19959: { 19959: const char* _M_grouping; 19959: size_t _M_grouping_size; 19959: bool _M_use_grouping; 19959: const _CharT* _M_truename; 19959: size_t _M_truename_size; 19959: const _CharT* _M_falsename; 19959: size_t _M_falsename_size; 19959: _CharT _M_decimal_point; 19959: _CharT _M_thousands_sep; 19959: 19959: 19959: 19959: 19959: 19959: _CharT _M_atoms_out[__num_base::_S_oend]; 19959: 19959: 19959: 19959: 19959: 19959: _CharT _M_atoms_in[__num_base::_S_iend]; 19959: 19959: bool _M_allocated; 19959: 19959: __numpunct_cache(size_t __refs = 0) 19959: : facet(__refs), _M_grouping(0), _M_grouping_size(0), 19959: _M_use_grouping(false), 19959: _M_truename(0), _M_truename_size(0), _M_falsename(0), 19959: _M_falsename_size(0), _M_decimal_point(_CharT()), 19959: _M_thousands_sep(_CharT()), _M_allocated(false) 19959: { } 19959: 19959: ~__numpunct_cache(); 19959: 19959: void 19959: _M_cache(const locale& __loc); 19959: 19959: private: 19959: __numpunct_cache& 19959: operator=(const __numpunct_cache&); 19959: 19959: explicit 19959: __numpunct_cache(const __numpunct_cache&); 19959: }; 19959: 19959: template 19959: __numpunct_cache<_CharT>::~__numpunct_cache() 19959: { 19959: if (_M_allocated) 19959: { 19959: delete [] _M_grouping; 19959: delete [] _M_truename; 19959: delete [] _M_falsename; 19959: } 19959: } 19959: 19959: namespace __cxx11 { 19959: # 1677 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: template 19959: class numpunct : public locale::facet 19959: { 19959: public: 19959: 19959: 19959: 19959: typedef _CharT char_type; 19959: typedef basic_string<_CharT> string_type; 19959: 19959: typedef __numpunct_cache<_CharT> __cache_type; 19959: 19959: protected: 19959: __cache_type* _M_data; 19959: 19959: public: 19959: 19959: static locale::id id; 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: numpunct(size_t __refs = 0) 19959: : facet(__refs), _M_data(0) 19959: { _M_initialize_numpunct(); } 19959: # 1715 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: explicit 19959: numpunct(__cache_type* __cache, size_t __refs = 0) 19959: : facet(__refs), _M_data(__cache) 19959: { _M_initialize_numpunct(); } 19959: # 1729 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: explicit 19959: numpunct(__c_locale __cloc, size_t __refs = 0) 19959: : facet(__refs), _M_data(0) 19959: { _M_initialize_numpunct(__cloc); } 19959: # 1743 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: char_type 19959: decimal_point() const 19959: { return this->do_decimal_point(); } 19959: # 1756 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: char_type 19959: thousands_sep() const 19959: { return this->do_thousands_sep(); } 19959: # 1787 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: string 19959: grouping() const 19959: { return this->do_grouping(); } 19959: # 1800 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: string_type 19959: truename() const 19959: { return this->do_truename(); } 19959: # 1813 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: string_type 19959: falsename() const 19959: { return this->do_falsename(); } 19959: 19959: protected: 19959: 19959: virtual 19959: ~numpunct(); 19959: # 1830 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char_type 19959: do_decimal_point() const 19959: { return _M_data->_M_decimal_point; } 19959: # 1842 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual char_type 19959: do_thousands_sep() const 19959: { return _M_data->_M_thousands_sep; } 19959: # 1855 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual string 19959: do_grouping() const 19959: { return _M_data->_M_grouping; } 19959: # 1868 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual string_type 19959: do_truename() const 19959: { return _M_data->_M_truename; } 19959: # 1881 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual string_type 19959: do_falsename() const 19959: { return _M_data->_M_falsename; } 19959: 19959: 19959: void 19959: _M_initialize_numpunct(__c_locale __cloc = 0); 19959: }; 19959: 19959: template 19959: locale::id numpunct<_CharT>::id; 19959: 19959: template<> 19959: numpunct::~numpunct(); 19959: 19959: template<> 19959: void 19959: numpunct::_M_initialize_numpunct(__c_locale __cloc); 19959: 19959: 19959: template<> 19959: numpunct::~numpunct(); 19959: 19959: template<> 19959: void 19959: numpunct::_M_initialize_numpunct(__c_locale __cloc); 19959: 19959: 19959: 19959: template 19959: class numpunct_byname : public numpunct<_CharT> 19959: { 19959: public: 19959: typedef _CharT char_type; 19959: typedef basic_string<_CharT> string_type; 19959: 19959: explicit 19959: numpunct_byname(const char* __s, size_t __refs = 0) 19959: : numpunct<_CharT>(__refs) 19959: { 19959: if (__builtin_strcmp(__s, "C") != 0 19959: && __builtin_strcmp(__s, "POSIX") != 0) 19959: { 19959: __c_locale __tmp; 19959: this->_S_create_c_locale(__tmp, __s); 19959: this->_M_initialize_numpunct(__tmp); 19959: this->_S_destroy_c_locale(__tmp); 19959: } 19959: } 19959: 19959: 19959: explicit 19959: numpunct_byname(const string& __s, size_t __refs = 0) 19959: : numpunct_byname(__s.c_str(), __refs) { } 19959: 19959: 19959: protected: 19959: virtual 19959: ~numpunct_byname() { } 19959: }; 19959: 19959: } 19959: 19959: 19959: # 1959 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: template 19959: class num_get : public locale::facet 19959: { 19959: public: 19959: 19959: 19959: 19959: typedef _CharT char_type; 19959: typedef _InIter iter_type; 19959: 19959: 19959: 19959: static locale::id id; 19959: # 1980 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: explicit 19959: num_get(size_t __refs = 0) : facet(__refs) { } 19959: # 2006 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: iter_type 19959: get(iter_type __in, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, bool& __v) const 19959: { return this->do_get(__in, __end, __io, __err, __v); } 19959: # 2043 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: iter_type 19959: get(iter_type __in, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, long& __v) const 19959: { return this->do_get(__in, __end, __io, __err, __v); } 19959: 19959: iter_type 19959: get(iter_type __in, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, unsigned short& __v) const 19959: { return this->do_get(__in, __end, __io, __err, __v); } 19959: 19959: iter_type 19959: get(iter_type __in, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, unsigned int& __v) const 19959: { return this->do_get(__in, __end, __io, __err, __v); } 19959: 19959: iter_type 19959: get(iter_type __in, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, unsigned long& __v) const 19959: { return this->do_get(__in, __end, __io, __err, __v); } 19959: 19959: 19959: iter_type 19959: get(iter_type __in, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, long long& __v) const 19959: { return this->do_get(__in, __end, __io, __err, __v); } 19959: 19959: iter_type 19959: get(iter_type __in, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, unsigned long long& __v) const 19959: { return this->do_get(__in, __end, __io, __err, __v); } 19959: # 2103 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: iter_type 19959: get(iter_type __in, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, float& __v) const 19959: { return this->do_get(__in, __end, __io, __err, __v); } 19959: 19959: iter_type 19959: get(iter_type __in, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, double& __v) const 19959: { return this->do_get(__in, __end, __io, __err, __v); } 19959: 19959: iter_type 19959: get(iter_type __in, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, long double& __v) const 19959: { return this->do_get(__in, __end, __io, __err, __v); } 19959: # 2146 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: iter_type 19959: get(iter_type __in, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, void*& __v) const 19959: { return this->do_get(__in, __end, __io, __err, __v); } 19959: 19959: protected: 19959: 19959: virtual ~num_get() { } 19959: 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: iter_type 19959: _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, 19959: string&) const; 19959: 19959: template 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: iter_type 19959: _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, 19959: _ValueT&) const; 19959: 19959: template 19959: typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type 19959: _M_find(const _CharT2*, size_t __len, _CharT2 __c) const 19959: { 19959: int __ret = -1; 19959: if (__len <= 10) 19959: { 19959: if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) 19959: __ret = __c - _CharT2('0'); 19959: } 19959: else 19959: { 19959: if (__c >= _CharT2('0') && __c <= _CharT2('9')) 19959: __ret = __c - _CharT2('0'); 19959: else if (__c >= _CharT2('a') && __c <= _CharT2('f')) 19959: __ret = 10 + (__c - _CharT2('a')); 19959: else if (__c >= _CharT2('A') && __c <= _CharT2('F')) 19959: __ret = 10 + (__c - _CharT2('A')); 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: typename __gnu_cxx::__enable_if::__value, 19959: int>::__type 19959: _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const 19959: { 19959: int __ret = -1; 19959: const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); 19959: if (__q) 19959: { 19959: __ret = __q - __zero; 19959: if (__ret > 15) 19959: __ret -= 6; 19959: } 19959: return __ret; 19959: } 19959: # 2219 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual iter_type 19959: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; 19959: 19959: virtual iter_type 19959: do_get(iter_type __beg, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, long& __v) const 19959: { return _M_extract_int(__beg, __end, __io, __err, __v); } 19959: 19959: virtual iter_type 19959: do_get(iter_type __beg, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, unsigned short& __v) const 19959: { return _M_extract_int(__beg, __end, __io, __err, __v); } 19959: 19959: virtual iter_type 19959: do_get(iter_type __beg, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, unsigned int& __v) const 19959: { return _M_extract_int(__beg, __end, __io, __err, __v); } 19959: 19959: virtual iter_type 19959: do_get(iter_type __beg, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, unsigned long& __v) const 19959: { return _M_extract_int(__beg, __end, __io, __err, __v); } 19959: 19959: 19959: virtual iter_type 19959: do_get(iter_type __beg, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, long long& __v) const 19959: { return _M_extract_int(__beg, __end, __io, __err, __v); } 19959: 19959: virtual iter_type 19959: do_get(iter_type __beg, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, unsigned long long& __v) const 19959: { return _M_extract_int(__beg, __end, __io, __err, __v); } 19959: 19959: 19959: virtual iter_type 19959: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; 19959: 19959: virtual iter_type 19959: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 19959: double&) const; 19959: # 2271 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual iter_type 19959: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 19959: long double&) const; 19959: 19959: 19959: virtual iter_type 19959: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; 19959: # 2299 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: }; 19959: 19959: template 19959: locale::id num_get<_CharT, _InIter>::id; 19959: # 2317 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: template 19959: class num_put : public locale::facet 19959: { 19959: public: 19959: 19959: 19959: 19959: typedef _CharT char_type; 19959: typedef _OutIter iter_type; 19959: 19959: 19959: 19959: static locale::id id; 19959: # 2338 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: explicit 19959: num_put(size_t __refs = 0) : facet(__refs) { } 19959: # 2356 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: iter_type 19959: put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 19959: { return this->do_put(__s, __io, __fill, __v); } 19959: # 2398 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: iter_type 19959: put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 19959: { return this->do_put(__s, __io, __fill, __v); } 19959: 19959: iter_type 19959: put(iter_type __s, ios_base& __io, char_type __fill, 19959: unsigned long __v) const 19959: { return this->do_put(__s, __io, __fill, __v); } 19959: 19959: 19959: iter_type 19959: put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const 19959: { return this->do_put(__s, __io, __fill, __v); } 19959: 19959: iter_type 19959: put(iter_type __s, ios_base& __io, char_type __fill, 19959: unsigned long long __v) const 19959: { return this->do_put(__s, __io, __fill, __v); } 19959: # 2461 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: iter_type 19959: put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 19959: { return this->do_put(__s, __io, __fill, __v); } 19959: 19959: iter_type 19959: put(iter_type __s, ios_base& __io, char_type __fill, 19959: long double __v) const 19959: { return this->do_put(__s, __io, __fill, __v); } 19959: # 2486 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: iter_type 19959: put(iter_type __s, ios_base& __io, char_type __fill, 19959: const void* __v) const 19959: { return this->do_put(__s, __io, __fill, __v); } 19959: 19959: protected: 19959: template 19959: iter_type 19959: _M_insert_float(iter_type, ios_base& __io, char_type __fill, 19959: char __mod, _ValueT __v) const; 19959: 19959: void 19959: _M_group_float(const char* __grouping, size_t __grouping_size, 19959: char_type __sep, const char_type* __p, char_type* __new, 19959: char_type* __cs, int& __len) const; 19959: 19959: template 19959: iter_type 19959: _M_insert_int(iter_type, ios_base& __io, char_type __fill, 19959: _ValueT __v) const; 19959: 19959: void 19959: _M_group_int(const char* __grouping, size_t __grouping_size, 19959: char_type __sep, ios_base& __io, char_type* __new, 19959: char_type* __cs, int& __len) const; 19959: 19959: void 19959: _M_pad(char_type __fill, streamsize __w, ios_base& __io, 19959: char_type* __new, const char_type* __cs, int& __len) const; 19959: 19959: 19959: virtual 19959: ~num_put() { } 19959: # 2534 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: virtual iter_type 19959: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; 19959: 19959: virtual iter_type 19959: do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 19959: { return _M_insert_int(__s, __io, __fill, __v); } 19959: 19959: virtual iter_type 19959: do_put(iter_type __s, ios_base& __io, char_type __fill, 19959: unsigned long __v) const 19959: { return _M_insert_int(__s, __io, __fill, __v); } 19959: 19959: 19959: virtual iter_type 19959: do_put(iter_type __s, ios_base& __io, char_type __fill, 19959: long long __v) const 19959: { return _M_insert_int(__s, __io, __fill, __v); } 19959: 19959: virtual iter_type 19959: do_put(iter_type __s, ios_base& __io, char_type __fill, 19959: unsigned long long __v) const 19959: { return _M_insert_int(__s, __io, __fill, __v); } 19959: 19959: 19959: virtual iter_type 19959: do_put(iter_type, ios_base&, char_type, double) const; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual iter_type 19959: do_put(iter_type, ios_base&, char_type, long double) const; 19959: 19959: 19959: virtual iter_type 19959: do_put(iter_type, ios_base&, char_type, const void*) const; 19959: # 2586 "/usr/include/c++/13/bits/locale_facets.h" 3 19959: }; 19959: 19959: template 19959: locale::id num_put<_CharT, _OutIter>::id; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline bool 19959: isspace(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).is(ctype_base::space, __c); } 19959: 19959: 19959: template 19959: inline bool 19959: isprint(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).is(ctype_base::print, __c); } 19959: 19959: 19959: template 19959: inline bool 19959: iscntrl(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).is(ctype_base::cntrl, __c); } 19959: 19959: 19959: template 19959: inline bool 19959: isupper(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).is(ctype_base::upper, __c); } 19959: 19959: 19959: template 19959: inline bool 19959: islower(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).is(ctype_base::lower, __c); } 19959: 19959: 19959: template 19959: inline bool 19959: isalpha(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).is(ctype_base::alpha, __c); } 19959: 19959: 19959: template 19959: inline bool 19959: isdigit(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).is(ctype_base::digit, __c); } 19959: 19959: 19959: template 19959: inline bool 19959: ispunct(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).is(ctype_base::punct, __c); } 19959: 19959: 19959: template 19959: inline bool 19959: isxdigit(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).is(ctype_base::xdigit, __c); } 19959: 19959: 19959: template 19959: inline bool 19959: isalnum(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).is(ctype_base::alnum, __c); } 19959: 19959: 19959: template 19959: inline bool 19959: isgraph(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).is(ctype_base::graph, __c); } 19959: 19959: 19959: 19959: template 19959: inline bool 19959: isblank(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).is(ctype_base::blank, __c); } 19959: 19959: 19959: 19959: template 19959: inline _CharT 19959: toupper(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).toupper(__c); } 19959: 19959: 19959: template 19959: inline _CharT 19959: tolower(_CharT __c, const locale& __loc) 19959: { return use_facet >(__loc).tolower(__c); } 19959: 19959: 19959: } 19959: 19959: # 1 "/usr/include/c++/13/bits/locale_facets.tcc" 1 3 19959: # 33 "/usr/include/c++/13/bits/locale_facets.tcc" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/locale_facets.tcc" 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: template 19959: struct __use_cache 19959: { 19959: const _Facet* 19959: operator() (const locale& __loc) const; 19959: }; 19959: 19959: 19959: template 19959: struct __use_cache<__numpunct_cache<_CharT> > 19959: { 19959: const __numpunct_cache<_CharT>* 19959: operator() (const locale& __loc) const 19959: { 19959: const size_t __i = numpunct<_CharT>::id._M_id(); 19959: const locale::facet** __caches = __loc._M_impl->_M_caches; 19959: if (!__caches[__i]) 19959: { 19959: __numpunct_cache<_CharT>* __tmp = 0; 19959: try 19959: { 19959: __tmp = new __numpunct_cache<_CharT>; 19959: __tmp->_M_cache(__loc); 19959: } 19959: catch(...) 19959: { 19959: delete __tmp; 19959: throw; 19959: } 19959: __loc._M_impl->_M_install_cache(__tmp, __i); 19959: } 19959: return static_cast*>(__caches[__i]); 19959: } 19959: }; 19959: 19959: template 19959: void 19959: __numpunct_cache<_CharT>::_M_cache(const locale& __loc) 19959: { 19959: const numpunct<_CharT>& __np = use_facet >(__loc); 19959: 19959: char* __grouping = 0; 19959: _CharT* __truename = 0; 19959: _CharT* __falsename = 0; 19959: try 19959: { 19959: const string& __g = __np.grouping(); 19959: _M_grouping_size = __g.size(); 19959: __grouping = new char[_M_grouping_size]; 19959: __g.copy(__grouping, _M_grouping_size); 19959: _M_use_grouping = (_M_grouping_size 19959: && static_cast(__grouping[0]) > 0 19959: && (__grouping[0] 19959: != __gnu_cxx::__numeric_traits::__max)); 19959: 19959: const basic_string<_CharT>& __tn = __np.truename(); 19959: _M_truename_size = __tn.size(); 19959: __truename = new _CharT[_M_truename_size]; 19959: __tn.copy(__truename, _M_truename_size); 19959: 19959: const basic_string<_CharT>& __fn = __np.falsename(); 19959: _M_falsename_size = __fn.size(); 19959: __falsename = new _CharT[_M_falsename_size]; 19959: __fn.copy(__falsename, _M_falsename_size); 19959: 19959: _M_decimal_point = __np.decimal_point(); 19959: _M_thousands_sep = __np.thousands_sep(); 19959: 19959: const ctype<_CharT>& __ct = use_facet >(__loc); 19959: __ct.widen(__num_base::_S_atoms_out, 19959: __num_base::_S_atoms_out 19959: + __num_base::_S_oend, _M_atoms_out); 19959: __ct.widen(__num_base::_S_atoms_in, 19959: __num_base::_S_atoms_in 19959: + __num_base::_S_iend, _M_atoms_in); 19959: 19959: _M_grouping = __grouping; 19959: _M_truename = __truename; 19959: _M_falsename = __falsename; 19959: _M_allocated = true; 19959: } 19959: catch(...) 19959: { 19959: delete [] __grouping; 19959: delete [] __truename; 19959: delete [] __falsename; 19959: throw; 19959: } 19959: } 19959: # 139 "/usr/include/c++/13/bits/locale_facets.tcc" 3 19959: __attribute__ ((__pure__)) bool 19959: __verify_grouping(const char* __grouping, size_t __grouping_size, 19959: const string& __grouping_tmp) throw (); 19959: 19959: 19959: 19959: template 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: _InIter 19959: num_get<_CharT, _InIter>:: 19959: _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, 19959: ios_base::iostate& __err, string& __xtrc) const 19959: { 19959: typedef char_traits<_CharT> __traits_type; 19959: typedef __numpunct_cache<_CharT> __cache_type; 19959: __use_cache<__cache_type> __uc; 19959: const locale& __loc = __io._M_getloc(); 19959: const __cache_type* __lc = __uc(__loc); 19959: const _CharT* __lit = __lc->_M_atoms_in; 19959: char_type __c = char_type(); 19959: 19959: 19959: bool __testeof = __beg == __end; 19959: 19959: 19959: if (!__testeof) 19959: { 19959: __c = *__beg; 19959: const bool __plus = __c == __lit[__num_base::_S_iplus]; 19959: if ((__plus || __c == __lit[__num_base::_S_iminus]) 19959: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 19959: && !(__c == __lc->_M_decimal_point)) 19959: { 19959: __xtrc += __plus ? '+' : '-'; 19959: if (++__beg != __end) 19959: __c = *__beg; 19959: else 19959: __testeof = true; 19959: } 19959: } 19959: 19959: 19959: bool __found_mantissa = false; 19959: int __sep_pos = 0; 19959: while (!__testeof) 19959: { 19959: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 19959: || __c == __lc->_M_decimal_point) 19959: break; 19959: else if (__c == __lit[__num_base::_S_izero]) 19959: { 19959: if (!__found_mantissa) 19959: { 19959: __xtrc += '0'; 19959: __found_mantissa = true; 19959: } 19959: ++__sep_pos; 19959: 19959: if (++__beg != __end) 19959: __c = *__beg; 19959: else 19959: __testeof = true; 19959: } 19959: else 19959: break; 19959: } 19959: 19959: 19959: bool __found_dec = false; 19959: bool __found_sci = false; 19959: string __found_grouping; 19959: if (__lc->_M_use_grouping) 19959: __found_grouping.reserve(32); 19959: const char_type* __lit_zero = __lit + __num_base::_S_izero; 19959: 19959: if (!__lc->_M_allocated) 19959: 19959: while (!__testeof) 19959: { 19959: const int __digit = _M_find(__lit_zero, 10, __c); 19959: if (__digit != -1) 19959: { 19959: __xtrc += '0' + __digit; 19959: __found_mantissa = true; 19959: } 19959: else if (__c == __lc->_M_decimal_point 19959: && !__found_dec && !__found_sci) 19959: { 19959: __xtrc += '.'; 19959: __found_dec = true; 19959: } 19959: else if ((__c == __lit[__num_base::_S_ie] 19959: || __c == __lit[__num_base::_S_iE]) 19959: && !__found_sci && __found_mantissa) 19959: { 19959: 19959: __xtrc += 'e'; 19959: __found_sci = true; 19959: 19959: 19959: if (++__beg != __end) 19959: { 19959: __c = *__beg; 19959: const bool __plus = __c == __lit[__num_base::_S_iplus]; 19959: if (__plus || __c == __lit[__num_base::_S_iminus]) 19959: __xtrc += __plus ? '+' : '-'; 19959: else 19959: continue; 19959: } 19959: else 19959: { 19959: __testeof = true; 19959: break; 19959: } 19959: } 19959: else 19959: break; 19959: 19959: if (++__beg != __end) 19959: __c = *__beg; 19959: else 19959: __testeof = true; 19959: } 19959: else 19959: while (!__testeof) 19959: { 19959: 19959: 19959: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 19959: { 19959: if (!__found_dec && !__found_sci) 19959: { 19959: 19959: 19959: if (__sep_pos) 19959: { 19959: __found_grouping += static_cast(__sep_pos); 19959: __sep_pos = 0; 19959: } 19959: else 19959: { 19959: 19959: 19959: __xtrc.clear(); 19959: break; 19959: } 19959: } 19959: else 19959: break; 19959: } 19959: else if (__c == __lc->_M_decimal_point) 19959: { 19959: if (!__found_dec && !__found_sci) 19959: { 19959: 19959: 19959: 19959: if (__found_grouping.size()) 19959: __found_grouping += static_cast(__sep_pos); 19959: __xtrc += '.'; 19959: __found_dec = true; 19959: } 19959: else 19959: break; 19959: } 19959: else 19959: { 19959: const char_type* __q = 19959: __traits_type::find(__lit_zero, 10, __c); 19959: if (__q) 19959: { 19959: __xtrc += '0' + (__q - __lit_zero); 19959: __found_mantissa = true; 19959: ++__sep_pos; 19959: } 19959: else if ((__c == __lit[__num_base::_S_ie] 19959: || __c == __lit[__num_base::_S_iE]) 19959: && !__found_sci && __found_mantissa) 19959: { 19959: 19959: if (__found_grouping.size() && !__found_dec) 19959: __found_grouping += static_cast(__sep_pos); 19959: __xtrc += 'e'; 19959: __found_sci = true; 19959: 19959: 19959: if (++__beg != __end) 19959: { 19959: __c = *__beg; 19959: const bool __plus = __c == __lit[__num_base::_S_iplus]; 19959: if ((__plus || __c == __lit[__num_base::_S_iminus]) 19959: && !(__lc->_M_use_grouping 19959: && __c == __lc->_M_thousands_sep) 19959: && !(__c == __lc->_M_decimal_point)) 19959: __xtrc += __plus ? '+' : '-'; 19959: else 19959: continue; 19959: } 19959: else 19959: { 19959: __testeof = true; 19959: break; 19959: } 19959: } 19959: else 19959: break; 19959: } 19959: 19959: if (++__beg != __end) 19959: __c = *__beg; 19959: else 19959: __testeof = true; 19959: } 19959: 19959: 19959: 19959: if (__found_grouping.size()) 19959: { 19959: 19959: if (!__found_dec && !__found_sci) 19959: __found_grouping += static_cast(__sep_pos); 19959: 19959: if (!std::__verify_grouping(__lc->_M_grouping, 19959: __lc->_M_grouping_size, 19959: __found_grouping)) 19959: __err = ios_base::failbit; 19959: } 19959: 19959: return __beg; 19959: } 19959: 19959: template 19959: template 19959: __attribute ((__abi_tag__ ("cxx11"))) 19959: _InIter 19959: num_get<_CharT, _InIter>:: 19959: _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, 19959: ios_base::iostate& __err, _ValueT& __v) const 19959: { 19959: typedef char_traits<_CharT> __traits_type; 19959: using __gnu_cxx::__add_unsigned; 19959: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 19959: typedef __numpunct_cache<_CharT> __cache_type; 19959: __use_cache<__cache_type> __uc; 19959: const locale& __loc = __io._M_getloc(); 19959: const __cache_type* __lc = __uc(__loc); 19959: const _CharT* __lit = __lc->_M_atoms_in; 19959: char_type __c = char_type(); 19959: 19959: 19959: const ios_base::fmtflags __basefield = __io.flags() 19959: & ios_base::basefield; 19959: const bool __oct = __basefield == ios_base::oct; 19959: int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); 19959: 19959: 19959: bool __testeof = __beg == __end; 19959: 19959: 19959: bool __negative = false; 19959: if (!__testeof) 19959: { 19959: __c = *__beg; 19959: __negative = __c == __lit[__num_base::_S_iminus]; 19959: if ((__negative || __c == __lit[__num_base::_S_iplus]) 19959: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 19959: && !(__c == __lc->_M_decimal_point)) 19959: { 19959: if (++__beg != __end) 19959: __c = *__beg; 19959: else 19959: __testeof = true; 19959: } 19959: } 19959: 19959: 19959: 19959: bool __found_zero = false; 19959: int __sep_pos = 0; 19959: while (!__testeof) 19959: { 19959: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 19959: || __c == __lc->_M_decimal_point) 19959: break; 19959: else if (__c == __lit[__num_base::_S_izero] 19959: && (!__found_zero || __base == 10)) 19959: { 19959: __found_zero = true; 19959: ++__sep_pos; 19959: if (__basefield == 0) 19959: __base = 8; 19959: if (__base == 8) 19959: __sep_pos = 0; 19959: } 19959: else if (__found_zero 19959: && (__c == __lit[__num_base::_S_ix] 19959: || __c == __lit[__num_base::_S_iX])) 19959: { 19959: if (__basefield == 0) 19959: __base = 16; 19959: if (__base == 16) 19959: { 19959: __found_zero = false; 19959: __sep_pos = 0; 19959: } 19959: else 19959: break; 19959: } 19959: else 19959: break; 19959: 19959: if (++__beg != __end) 19959: { 19959: __c = *__beg; 19959: if (!__found_zero) 19959: break; 19959: } 19959: else 19959: __testeof = true; 19959: } 19959: 19959: 19959: 19959: const size_t __len = (__base == 16 ? __num_base::_S_iend 19959: - __num_base::_S_izero : __base); 19959: 19959: 19959: typedef __gnu_cxx::__numeric_traits<_ValueT> __num_traits; 19959: string __found_grouping; 19959: if (__lc->_M_use_grouping) 19959: __found_grouping.reserve(32); 19959: bool __testfail = false; 19959: bool __testoverflow = false; 19959: const __unsigned_type __max = 19959: (__negative && __num_traits::__is_signed) 19959: ? -static_cast<__unsigned_type>(__num_traits::__min) 19959: : __num_traits::__max; 19959: const __unsigned_type __smax = __max / __base; 19959: __unsigned_type __result = 0; 19959: int __digit = 0; 19959: const char_type* __lit_zero = __lit + __num_base::_S_izero; 19959: 19959: if (!__lc->_M_allocated) 19959: 19959: while (!__testeof) 19959: { 19959: __digit = _M_find(__lit_zero, __len, __c); 19959: if (__digit == -1) 19959: break; 19959: 19959: if (__result > __smax) 19959: __testoverflow = true; 19959: else 19959: { 19959: __result *= __base; 19959: __testoverflow |= __result > __max - __digit; 19959: __result += __digit; 19959: ++__sep_pos; 19959: } 19959: 19959: if (++__beg != __end) 19959: __c = *__beg; 19959: else 19959: __testeof = true; 19959: } 19959: else 19959: while (!__testeof) 19959: { 19959: 19959: 19959: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 19959: { 19959: 19959: 19959: if (__sep_pos) 19959: { 19959: __found_grouping += static_cast(__sep_pos); 19959: __sep_pos = 0; 19959: } 19959: else 19959: { 19959: __testfail = true; 19959: break; 19959: } 19959: } 19959: else if (__c == __lc->_M_decimal_point) 19959: break; 19959: else 19959: { 19959: const char_type* __q = 19959: __traits_type::find(__lit_zero, __len, __c); 19959: if (!__q) 19959: break; 19959: 19959: __digit = __q - __lit_zero; 19959: if (__digit > 15) 19959: __digit -= 6; 19959: if (__result > __smax) 19959: __testoverflow = true; 19959: else 19959: { 19959: __result *= __base; 19959: __testoverflow |= __result > __max - __digit; 19959: __result += __digit; 19959: ++__sep_pos; 19959: } 19959: } 19959: 19959: if (++__beg != __end) 19959: __c = *__beg; 19959: 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-8.9.1/include/rocksdb/utilities/options_type.h:1125:29: /usr/include/c++/13/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)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ else 19959: __testeof = true; 19959: } 19959: 19959: 19959: 19959: if (__found_grouping.size()) 19959: { 19959: 19959: __found_grouping += static_cast(__sep_pos); 19959: 19959: if (!std::__verify_grouping(__lc->_M_grouping, 19959: __lc->_M_grouping_size, 19959: __found_grouping)) 19959: __err = ios_base::failbit; 19959: } 19959: 19959: 19959: 19959: if ((!__sep_pos && !__found_zero && !__found_grouping.size()) 19959: || __testfail) 19959: { 19959: __v = 0; 19959: __err = ios_base::failbit; 19959: } 19959: else if (__testoverflow) 19959: { 19959: if (__negative && __num_traits::__is_signed) 19959: __v = __num_traits::__min; 19959: else 19959: __v = __num_traits::__max; 19959: __err = ios_base::failbit; 19959: } 19959: else 19959: __v = __negative ? -__result : __result; 19959: 19959: if (__testeof) 19959: __err |= ios_base::eofbit; 19959: return __beg; 19959: } 19959: 19959: 19959: 19959: template 19959: _InIter 19959: num_get<_CharT, _InIter>:: 19959: do_get(iter_type __beg, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, bool& __v) const 19959: { 19959: if (!(__io.flags() & ios_base::boolalpha)) 19959: { 19959: 19959: 19959: 19959: long __l = -1; 19959: __beg = _M_extract_int(__beg, __end, __io, __err, __l); 19959: if (__l == 0 || __l == 1) 19959: __v = bool(__l); 19959: else 19959: { 19959: 19959: 19959: __v = true; 19959: __err = ios_base::failbit; 19959: if (__beg == __end) 19959: __err |= ios_base::eofbit; 19959: } 19959: } 19959: else 19959: { 19959: 19959: typedef __numpunct_cache<_CharT> __cache_type; 19959: __use_cache<__cache_type> __uc; 19959: const locale& __loc = __io._M_getloc(); 19959: const __cache_type* __lc = __uc(__loc); 19959: 19959: bool __testf = true; 19959: bool __testt = true; 19959: bool __donef = __lc->_M_falsename_size == 0; 19959: bool __donet = __lc->_M_truename_size == 0; 19959: bool __testeof = false; 19959: size_t __n = 0; 19959: while (!__donef || !__donet) 19959: { 19959: if (__beg == __end) 19959: { 19959: __testeof = true; 19959: break; 19959: } 19959: 19959: const char_type __c = *__beg; 19959: 19959: if (!__donef) 19959: __testf = __c == __lc->_M_falsename[__n]; 19959: 19959: if (!__testf && __donet) 19959: break; 19959: 19959: if (!__donet) 19959: __testt = __c == __lc->_M_truename[__n]; 19959: 19959: if (!__testt && __donef) 19959: break; 19959: 19959: if (!__testt && !__testf) 19959: break; 19959: 19959: ++__n; 19959: ++__beg; 19959: 19959: __donef = !__testf || __n >= __lc->_M_falsename_size; 19959: __donet = !__testt || __n >= __lc->_M_truename_size; 19959: } 19959: if (__testf && __n == __lc->_M_falsename_size && __n) 19959: { 19959: __v = false; 19959: if (__testt && __n == __lc->_M_truename_size) 19959: __err = ios_base::failbit; 19959: else 19959: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 19959: } 19959: else if (__testt && __n == __lc->_M_truename_size && __n) 19959: { 19959: __v = true; 19959: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 19959: } 19959: else 19959: { 19959: 19959: 19959: __v = false; 19959: __err = ios_base::failbit; 19959: if (__testeof) 19959: __err |= ios_base::eofbit; 19959: } 19959: } 19959: return __beg; 19959: } 19959: 19959: template 19959: _InIter 19959: num_get<_CharT, _InIter>:: 19959: do_get(iter_type __beg, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, float& __v) const 19959: { 19959: string __xtrc; 19959: __xtrc.reserve(32); 19959: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 19959: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 19959: if (__beg == __end) 19959: __err |= ios_base::eofbit; 19959: return __beg; 19959: } 19959: 19959: template 19959: _InIter 19959: num_get<_CharT, _InIter>:: 19959: do_get(iter_type __beg, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, double& __v) const 19959: { 19959: string __xtrc; 19959: __xtrc.reserve(32); 19959: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 19959: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 19959: if (__beg == __end) 19959: __err |= ios_base::eofbit; 19959: return __beg; 19959: } 19959: # 735 "/usr/include/c++/13/bits/locale_facets.tcc" 3 19959: template 19959: _InIter 19959: num_get<_CharT, _InIter>:: 19959: do_get(iter_type __beg, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, long double& __v) const 19959: { 19959: string __xtrc; 19959: __xtrc.reserve(32); 19959: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 19959: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 19959: if (__beg == __end) 19959: __err |= ios_base::eofbit; 19959: return __beg; 19959: } 19959: 19959: template 19959: _InIter 19959: num_get<_CharT, _InIter>:: 19959: do_get(iter_type __beg, iter_type __end, ios_base& __io, 19959: ios_base::iostate& __err, void*& __v) const 19959: { 19959: 19959: typedef ios_base::fmtflags fmtflags; 19959: const fmtflags __fmt = __io.flags(); 19959: __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); 19959: 19959: typedef __gnu_cxx::__conditional_type<(sizeof(void*) 19959: <= sizeof(unsigned long)), 19959: unsigned long, unsigned long long>::__type _UIntPtrType; 19959: 19959: _UIntPtrType __ul; 19959: __beg = _M_extract_int(__beg, __end, __io, __err, __ul); 19959: 19959: 19959: __io.flags(__fmt); 19959: 19959: __v = reinterpret_cast(__ul); 19959: return __beg; 19959: } 19959: # 795 "/usr/include/c++/13/bits/locale_facets.tcc" 3 19959: template 19959: void 19959: num_put<_CharT, _OutIter>:: 19959: _M_pad(_CharT __fill, streamsize __w, ios_base& __io, 19959: _CharT* __new, const _CharT* __cs, int& __len) const 19959: { 19959: 19959: 19959: __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, 19959: __cs, __w, __len); 19959: __len = static_cast(__w); 19959: } 19959: 19959: 19959: 19959: template 19959: int 19959: __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, 19959: ios_base::fmtflags __flags, bool __dec) 19959: { 19959: _CharT* __buf = __bufend; 19959: if (__builtin_expect(__dec, true)) 19959: { 19959: 19959: do 19959: { 19959: *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; 19959: __v /= 10; 19959: } 19959: while (__v != 0); 19959: } 19959: else if ((__flags & ios_base::basefield) == ios_base::oct) 19959: { 19959: 19959: do 19959: { 19959: *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; 19959: __v >>= 3; 19959: } 19959: while (__v != 0); 19959: } 19959: else 19959: { 19959: 19959: const bool __uppercase = __flags & ios_base::uppercase; 19959: const int __case_offset = __uppercase ? __num_base::_S_oudigits 19959: : __num_base::_S_odigits; 19959: do 19959: { 19959: *--__buf = __lit[(__v & 0xf) + __case_offset]; 19959: __v >>= 4; 19959: } 19959: while (__v != 0); 19959: } 19959: return __bufend - __buf; 19959: } 19959: 19959: 19959: 19959: template 19959: void 19959: num_put<_CharT, _OutIter>:: 19959: _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, 19959: ios_base&, _CharT* __new, _CharT* __cs, int& __len) const 19959: { 19959: _CharT* __p = std::__add_grouping(__new, __sep, __grouping, 19959: __grouping_size, __cs, __cs + __len); 19959: __len = __p - __new; 19959: } 19959: 19959: template 19959: template 19959: _OutIter 19959: num_put<_CharT, _OutIter>:: 19959: _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, 19959: _ValueT __v) const 19959: { 19959: using __gnu_cxx::__add_unsigned; 19959: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 19959: typedef __numpunct_cache<_CharT> __cache_type; 19959: __use_cache<__cache_type> __uc; 19959: const locale& __loc = __io._M_getloc(); 19959: const __cache_type* __lc = __uc(__loc); 19959: const _CharT* __lit = __lc->_M_atoms_out; 19959: const ios_base::fmtflags __flags = __io.flags(); 19959: 19959: 19959: const int __ilen = 5 * sizeof(_ValueT); 19959: _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 19959: * __ilen)); 19959: 19959: 19959: 19959: const ios_base::fmtflags __basefield = __flags & ios_base::basefield; 19959: const bool __dec = (__basefield != ios_base::oct 19959: && __basefield != ios_base::hex); 19959: const __unsigned_type __u = ((__v > 0 || !__dec) 19959: ? __unsigned_type(__v) 19959: : -__unsigned_type(__v)); 19959: int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); 19959: __cs += __ilen - __len; 19959: 19959: 19959: if (__lc->_M_use_grouping) 19959: { 19959: 19959: 19959: _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 19959: * (__len + 1) 19959: * 2)); 19959: _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, 19959: __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); 19959: __cs = __cs2 + 2; 19959: } 19959: 19959: 19959: if (__builtin_expect(__dec, true)) 19959: { 19959: 19959: if (__v >= 0) 19959: { 19959: if (bool(__flags & ios_base::showpos) 19959: && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) 19959: *--__cs = __lit[__num_base::_S_oplus], ++__len; 19959: } 19959: else 19959: *--__cs = __lit[__num_base::_S_ominus], ++__len; 19959: } 19959: else if (bool(__flags & ios_base::showbase) && __v) 19959: { 19959: if (__basefield == ios_base::oct) 19959: *--__cs = __lit[__num_base::_S_odigits], ++__len; 19959: else 19959: { 19959: 19959: const bool __uppercase = __flags & ios_base::uppercase; 19959: *--__cs = __lit[__num_base::_S_ox + __uppercase]; 19959: 19959: *--__cs = __lit[__num_base::_S_odigits]; 19959: __len += 2; 19959: } 19959: } 19959: 19959: 19959: const streamsize __w = __io.width(); 19959: if (__w > static_cast(__len)) 19959: { 19959: _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 19959: * __w)); 19959: _M_pad(__fill, __w, __io, __cs3, __cs, __len); 19959: __cs = __cs3; 19959: } 19959: __io.width(0); 19959: 19959: 19959: 19959: return std::__write(__s, __cs, __len); 19959: } 19959: 19959: template 19959: void 19959: num_put<_CharT, _OutIter>:: 19959: _M_group_float(const char* __grouping, size_t __grouping_size, 19959: _CharT __sep, const _CharT* __p, _CharT* __new, 19959: _CharT* __cs, int& __len) const 19959: { 19959: 19959: 19959: 19959: const int __declen = __p ? __p - __cs : __len; 19959: _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, 19959: __grouping_size, 19959: __cs, __cs + __declen); 19959: 19959: 19959: int __newlen = __p2 - __new; 19959: if (__p) 19959: { 19959: char_traits<_CharT>::copy(__p2, __p, __len - __declen); 19959: __newlen += __len - __declen; 19959: } 19959: __len = __newlen; 19959: } 19959: # 989 "/usr/include/c++/13/bits/locale_facets.tcc" 3 19959: template 19959: template 19959: _OutIter 19959: num_put<_CharT, _OutIter>:: 19959: _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, 19959: _ValueT __v) const 19959: { 19959: typedef __numpunct_cache<_CharT> __cache_type; 19959: __use_cache<__cache_type> __uc; 19959: const locale& __loc = __io._M_getloc(); 19959: const __cache_type* __lc = __uc(__loc); 19959: 19959: 19959: const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); 19959: 19959: const int __max_digits = 19959: __gnu_cxx::__numeric_traits<_ValueT>::__digits10; 19959: 19959: 19959: int __len; 19959: 19959: char __fbuf[16]; 19959: __num_base::_S_format_float(__io, __fbuf, __mod); 19959: 19959: 19959: 19959: const bool __use_prec = 19959: (__io.flags() & ios_base::floatfield) != ios_base::floatfield; 19959: 19959: 19959: 19959: int __cs_size = __max_digits * 3; 19959: char* __cs = static_cast(__builtin_alloca(__cs_size)); 19959: if (__use_prec) 19959: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 19959: __fbuf, __prec, __v); 19959: else 19959: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 19959: __fbuf, __v); 19959: 19959: 19959: if (__len >= __cs_size) 19959: { 19959: __cs_size = __len + 1; 19959: __cs = static_cast(__builtin_alloca(__cs_size)); 19959: if (__use_prec) 19959: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 19959: __fbuf, __prec, __v); 19959: else 19959: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 19959: __fbuf, __v); 19959: } 19959: # 1062 "/usr/include/c++/13/bits/locale_facets.tcc" 3 19959: const ctype<_CharT>& __ctype = use_facet >(__loc); 19959: 19959: _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 19959: * __len)); 19959: __ctype.widen(__cs, __cs + __len, __ws); 19959: 19959: 19959: _CharT* __wp = 0; 19959: const char* __p = char_traits::find(__cs, __len, '.'); 19959: if (__p) 19959: { 19959: __wp = __ws + (__p - __cs); 19959: *__wp = __lc->_M_decimal_point; 19959: } 19959: 19959: 19959: 19959: 19959: if (__lc->_M_use_grouping 19959: && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' 19959: && __cs[1] >= '0' && __cs[2] >= '0'))) 19959: { 19959: 19959: 19959: _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 19959: * __len * 2)); 19959: 19959: streamsize __off = 0; 19959: if (__cs[0] == '-' || __cs[0] == '+') 19959: { 19959: __off = 1; 19959: __ws2[0] = __ws[0]; 19959: __len -= 1; 19959: } 19959: 19959: _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, 19959: __lc->_M_thousands_sep, __wp, __ws2 + __off, 19959: __ws + __off, __len); 19959: __len += __off; 19959: 19959: __ws = __ws2; 19959: } 19959: 19959: 19959: const streamsize __w = __io.width(); 19959: if (__w > static_cast(__len)) 19959: { 19959: _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 19959: * __w)); 19959: _M_pad(__fill, __w, __io, __ws3, __ws, __len); 19959: __ws = __ws3; 19959: } 19959: __io.width(0); 19959: 19959: 19959: 19959: return std::__write(__s, __ws, __len); 19959: } 19959: 19959: template 19959: _OutIter 19959: num_put<_CharT, _OutIter>:: 19959: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 19959: { 19959: const ios_base::fmtflags __flags = __io.flags(); 19959: if ((__flags & ios_base::boolalpha) == 0) 19959: { 19959: const long __l = __v; 19959: __s = _M_insert_int(__s, __io, __fill, __l); 19959: } 19959: else 19959: { 19959: typedef __numpunct_cache<_CharT> __cache_type; 19959: __use_cache<__cache_type> __uc; 19959: const locale& __loc = __io._M_getloc(); 19959: const __cache_type* __lc = __uc(__loc); 19959: 19959: const _CharT* __name = __v ? __lc->_M_truename 19959: : __lc->_M_falsename; 19959: int __len = __v ? __lc->_M_truename_size 19959: : __lc->_M_falsename_size; 19959: 19959: const streamsize __w = __io.width(); 19959: if (__w > static_cast(__len)) 19959: { 19959: const streamsize __plen = __w - __len; 19959: _CharT* __ps 19959: = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 19959: * __plen)); 19959: 19959: char_traits<_CharT>::assign(__ps, __plen, __fill); 19959: __io.width(0); 19959: 19959: if ((__flags & ios_base::adjustfield) == ios_base::left) 19959: { 19959: __s = std::__write(__s, __name, __len); 19959: __s = std::__write(__s, __ps, __plen); 19959: } 19959: else 19959: { 19959: __s = std::__write(__s, __ps, __plen); 19959: __s = std::__write(__s, __name, __len); 19959: } 19959: return __s; 19959: } 19959: __io.width(0); 19959: __s = std::__write(__s, __name, __len); 19959: } 19959: return __s; 19959: } 19959: 19959: template 19959: _OutIter 19959: num_put<_CharT, _OutIter>:: 19959: do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 19959: { return _M_insert_float(__s, __io, __fill, char(), __v); } 19959: # 1187 "/usr/include/c++/13/bits/locale_facets.tcc" 3 19959: template 19959: _OutIter 19959: num_put<_CharT, _OutIter>:: 19959: do_put(iter_type __s, ios_base& __io, char_type __fill, 19959: long double __v) const 19959: { return _M_insert_float(__s, __io, __fill, 'L', __v); } 19959: 19959: template 19959: _OutIter 19959: num_put<_CharT, _OutIter>:: 19959: do_put(iter_type __s, ios_base& __io, char_type __fill, 19959: const void* __v) const 19959: { 19959: const ios_base::fmtflags __flags = __io.flags(); 19959: const ios_base::fmtflags __fmt = ~(ios_base::basefield 19959: | ios_base::uppercase); 19959: __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); 19959: 19959: typedef __gnu_cxx::__conditional_type<(sizeof(const void*) 19959: <= sizeof(unsigned long)), 19959: unsigned long, unsigned long long>::__type _UIntPtrType; 19959: 19959: __s = _M_insert_int(__s, __io, __fill, 19959: reinterpret_cast<_UIntPtrType>(__v)); 19959: __io.flags(__flags); 19959: return __s; 19959: } 19959: # 1224 "/usr/include/c++/13/bits/locale_facets.tcc" 3 19959: 19959: # 1233 "/usr/include/c++/13/bits/locale_facets.tcc" 3 19959: template 19959: void 19959: __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, 19959: _CharT* __news, const _CharT* __olds, 19959: streamsize __newlen, streamsize __oldlen) 19959: { 19959: const size_t __plen = static_cast(__newlen - __oldlen); 19959: const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; 19959: 19959: 19959: if (__adjust == ios_base::left) 19959: { 19959: _Traits::copy(__news, __olds, __oldlen); 19959: _Traits::assign(__news + __oldlen, __plen, __fill); 19959: return; 19959: } 19959: 19959: size_t __mod = 0; 19959: if (__adjust == ios_base::internal) 19959: { 19959: 19959: 19959: 19959: const locale& __loc = __io._M_getloc(); 19959: const ctype<_CharT>& __ctype = use_facet >(__loc); 19959: 19959: if (__ctype.widen('-') == __olds[0] 19959: || __ctype.widen('+') == __olds[0]) 19959: { 19959: __news[0] = __olds[0]; 19959: __mod = 1; 19959: ++__news; 19959: } 19959: else if (__ctype.widen('0') == __olds[0] 19959: && __oldlen > 1 19959: && (__ctype.widen('x') == __olds[1] 19959: || __ctype.widen('X') == __olds[1])) 19959: { 19959: __news[0] = __olds[0]; 19959: __news[1] = __olds[1]; 19959: __mod = 2; 19959: __news += 2; 19959: } 19959: 19959: } 19959: _Traits::assign(__news, __plen, __fill); 19959: _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); 19959: } 19959: 19959: template 19959: _CharT* 19959: __add_grouping(_CharT* __s, _CharT __sep, 19959: const char* __gbeg, size_t __gsize, 19959: const _CharT* __first, const _CharT* __last) 19959: { 19959: size_t __idx = 0; 19959: size_t __ctr = 0; 19959: 19959: while (__last - __first > __gbeg[__idx] 19959: && static_cast(__gbeg[__idx]) > 0 19959: && __gbeg[__idx] != __gnu_cxx::__numeric_traits::__max) 19959: { 19959: __last -= __gbeg[__idx]; 19959: __idx < __gsize - 1 ? ++__idx : ++__ctr; 19959: } 19959: 19959: while (__first != __last) 19959: *__s++ = *__first++; 19959: 19959: while (__ctr--) 19959: { 19959: *__s++ = __sep; 19959: for (char __i = __gbeg[__idx]; __i > 0; --__i) 19959: *__s++ = *__first++; 19959: } 19959: 19959: while (__idx--) 19959: { 19959: *__s++ = __sep; 19959: for (char __i = __gbeg[__idx]; __i > 0; --__i) 19959: *__s++ = *__first++; 19959: } 19959: 19959: return __s; 19959: } 19959: 19959: 19959: 19959: 19959: extern template class __cxx11:: numpunct; 19959: extern template class __cxx11:: numpunct_byname; 19959: extern template class num_get; 19959: extern template class num_put; 19959: extern template class ctype_byname; 19959: 19959: extern template 19959: const ctype* 19959: __try_use_facet >(const locale&) noexcept; 19959: 19959: extern template 19959: const numpunct* 19959: __try_use_facet >(const locale&) noexcept; 19959: 19959: extern template 19959: const num_put* 19959: __try_use_facet >(const locale&) noexcept; 19959: 19959: extern template 19959: const num_get* 19959: __try_use_facet >(const locale&) noexcept; 19959: 19959: extern template 19959: const ctype& 19959: use_facet >(const locale&); 19959: 19959: extern template 19959: const numpunct& 19959: use_facet >(const locale&); 19959: 19959: extern template 19959: const num_put& 19959: use_facet >(const locale&); 19959: 19959: extern template 19959: const num_get& 19959: use_facet >(const locale&); 19959: 19959: extern template 19959: bool 19959: has_facet >(const locale&); 19959: 19959: extern template 19959: bool 19959: has_facet >(const locale&); 19959: 19959: extern template 19959: bool 19959: has_facet >(const locale&); 19959: 19959: extern template 19959: bool 19959: has_facet >(const locale&); 19959: 19959: 19959: extern template class __cxx11:: numpunct; 19959: extern template class __cxx11:: numpunct_byname; 19959: extern template class num_get; 19959: extern template class num_put; 19959: extern template class ctype_byname; 19959: 19959: extern template 19959: const ctype* 19959: __try_use_facet >(const locale&) noexcept; 19959: 19959: extern template 19959: const numpunct* 19959: __try_use_facet >(const locale&) noexcept; 19959: 19959: extern template 19959: const num_put* 19959: __try_use_facet >(const locale&) noexcept; 19959: 19959: extern template 19959: const num_get* 19959: __try_use_facet >(const locale&) noexcept; 19959: 19959: extern template 19959: const ctype& 19959: use_facet >(const locale&); 19959: 19959: extern template 19959: const numpunct& 19959: use_facet >(const locale&); 19959: 19959: extern template 19959: const num_put& 19959: use_facet >(const locale&); 19959: 19959: extern template 19959: const num_get& 19959: use_facet >(const locale&); 19959: 19959: extern template 19959: bool 19959: has_facet >(const locale&); 19959: 19959: extern template 19959: bool 19959: has_facet >(const locale&); 19959: 19959: extern template 19959: bool 19959: has_facet >(const locale&); 19959: 19959: extern template 19959: bool 19959: has_facet >(const locale&); 19959: 19959: 19959: 19959: 19959: } 19959: # 2688 "/usr/include/c++/13/bits/locale_facets.h" 2 3 19959: # 38 "/usr/include/c++/13/bits/basic_ios.h" 2 3 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template 19959: inline const _Facet& 19959: __check_facet(const _Facet* __f) 19959: { 19959: if (!__f) 19959: __throw_bad_cast(); 19959: return *__f; 19959: } 19959: # 66 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: template 19959: class basic_ios : public ios_base 19959: { 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef _CharT char_type; 19959: typedef typename _Traits::int_type int_type; 19959: typedef typename _Traits::pos_type pos_type; 19959: typedef typename _Traits::off_type off_type; 19959: typedef _Traits traits_type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef ctype<_CharT> __ctype_type; 19959: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 19959: __num_put_type; 19959: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 19959: __num_get_type; 19959: 19959: 19959: 19959: protected: 19959: basic_ostream<_CharT, _Traits>* _M_tie; 19959: mutable char_type _M_fill; 19959: mutable bool _M_fill_init; 19959: basic_streambuf<_CharT, _Traits>* _M_streambuf; 19959: 19959: 19959: const __ctype_type* _M_ctype; 19959: 19959: const __num_put_type* _M_num_put; 19959: 19959: const __num_get_type* _M_num_get; 19959: 19959: public: 19959: # 117 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: explicit operator bool() const 19959: { return !this->fail(); } 19959: 19959: 19959: 19959: 19959: 19959: bool 19959: operator!() const 19959: { return this->fail(); } 19959: # 136 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: iostate 19959: rdstate() const 19959: { return _M_streambuf_state; } 19959: # 147 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: void 19959: clear(iostate __state = goodbit); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: setstate(iostate __state) 19959: { this->clear(this->rdstate() | __state); } 19959: 19959: 19959: 19959: 19959: void 19959: _M_setstate(iostate __state) 19959: { 19959: 19959: 19959: _M_streambuf_state |= __state; 19959: if (this->exceptions() & __state) 19959: throw; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool 19959: good() const 19959: { return this->rdstate() == 0; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool 19959: eof() const 19959: { return (this->rdstate() & eofbit) != 0; } 19959: # 200 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: bool 19959: fail() const 19959: { return (this->rdstate() & (badbit | failbit)) != 0; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool 19959: bad() const 19959: { return (this->rdstate() & badbit) != 0; } 19959: # 221 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: iostate 19959: exceptions() const 19959: { return _M_exception; } 19959: # 256 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: void 19959: exceptions(iostate __except) 19959: { 19959: _M_exception = __except; 19959: this->clear(_M_streambuf_state); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: basic_ios(basic_streambuf<_CharT, _Traits>* __sb) 19959: : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), 19959: _M_ctype(0), _M_num_put(0), _M_num_get(0) 19959: { this->init(__sb); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual 19959: ~basic_ios() { } 19959: # 294 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: basic_ostream<_CharT, _Traits>* 19959: tie() const 19959: { return _M_tie; } 19959: # 306 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: basic_ostream<_CharT, _Traits>* 19959: tie(basic_ostream<_CharT, _Traits>* __tiestr) 19959: { 19959: basic_ostream<_CharT, _Traits>* __old = _M_tie; 19959: _M_tie = __tiestr; 19959: return __old; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_streambuf<_CharT, _Traits>* 19959: rdbuf() const 19959: { return _M_streambuf; } 19959: # 346 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: basic_streambuf<_CharT, _Traits>* 19959: rdbuf(basic_streambuf<_CharT, _Traits>* __sb); 19959: # 360 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: basic_ios& 19959: copyfmt(const basic_ios& __rhs); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: char_type 19959: fill() const 19959: { 19959: if (!_M_fill_init) 19959: { 19959: _M_fill = this->widen(' '); 19959: _M_fill_init = true; 19959: } 19959: return _M_fill; 19959: } 19959: # 389 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: char_type 19959: fill(char_type __ch) 19959: { 19959: char_type __old = this->fill(); 19959: _M_fill = __ch; 19959: return __old; 19959: } 19959: # 409 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: locale 19959: imbue(const locale& __loc); 19959: # 429 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: char 19959: narrow(char_type __c, char __dfault) const 19959: { return __check_facet(_M_ctype).narrow(__c, __dfault); } 19959: # 448 "/usr/include/c++/13/bits/basic_ios.h" 3 19959: char_type 19959: widen(char __c) const 19959: { return __check_facet(_M_ctype).widen(__c); } 19959: 19959: protected: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_ios() 19959: : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), 19959: _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) 19959: { } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: init(basic_streambuf<_CharT, _Traits>* __sb); 19959: 19959: 19959: basic_ios(const basic_ios&) = delete; 19959: basic_ios& operator=(const basic_ios&) = delete; 19959: 19959: void 19959: move(basic_ios& __rhs) 19959: { 19959: ios_base::_M_move(__rhs); 19959: _M_cache_locale(_M_ios_locale); 19959: this->tie(__rhs.tie(nullptr)); 19959: _M_fill = __rhs._M_fill; 19959: _M_fill_init = __rhs._M_fill_init; 19959: _M_streambuf = nullptr; 19959: } 19959: 19959: void 19959: move(basic_ios&& __rhs) 19959: { this->move(__rhs); } 19959: 19959: void 19959: swap(basic_ios& __rhs) noexcept 19959: { 19959: ios_base::_M_swap(__rhs); 19959: _M_cache_locale(_M_ios_locale); 19959: __rhs._M_cache_locale(__rhs._M_ios_locale); 19959: std::swap(_M_tie, __rhs._M_tie); 19959: std::swap(_M_fill, __rhs._M_fill); 19959: std::swap(_M_fill_init, __rhs._M_fill_init); 19959: } 19959: 19959: void 19959: set_rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 19959: { _M_streambuf = __sb; } 19959: 19959: 19959: void 19959: _M_cache_locale(const locale& __loc); 19959: }; 19959: 19959: 19959: } 19959: 19959: # 1 "/usr/include/c++/13/bits/basic_ios.tcc" 1 3 19959: # 33 "/usr/include/c++/13/bits/basic_ios.tcc" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/basic_ios.tcc" 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template 19959: void 19959: basic_ios<_CharT, _Traits>::clear(iostate __state) 19959: { 19959: if (this->rdbuf()) 19959: _M_streambuf_state = __state; 19959: else 19959: _M_streambuf_state = __state | badbit; 19959: if (this->exceptions() & this->rdstate()) 19959: __throw_ios_failure(("basic_ios::clear")); 19959: } 19959: 19959: template 19959: basic_streambuf<_CharT, _Traits>* 19959: basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 19959: { 19959: basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; 19959: _M_streambuf = __sb; 19959: this->clear(); 19959: return __old; 19959: } 19959: 19959: template 19959: basic_ios<_CharT, _Traits>& 19959: basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) 19959: { 19959: 19959: 19959: if (this != std::__addressof(__rhs)) 19959: { 19959: 19959: 19959: 19959: 19959: _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? 19959: _M_local_word : new _Words[__rhs._M_word_size]; 19959: 19959: 19959: _Callback_list* __cb = __rhs._M_callbacks; 19959: if (__cb) 19959: __cb->_M_add_reference(); 19959: _M_call_callbacks(erase_event); 19959: if (_M_word != _M_local_word) 19959: { 19959: delete [] _M_word; 19959: _M_word = 0; 19959: } 19959: _M_dispose_callbacks(); 19959: 19959: 19959: _M_callbacks = __cb; 19959: for (int __i = 0; __i < __rhs._M_word_size; ++__i) 19959: __words[__i] = __rhs._M_word[__i]; 19959: _M_word = __words; 19959: _M_word_size = __rhs._M_word_size; 19959: 19959: this->flags(__rhs.flags()); 19959: this->width(__rhs.width()); 19959: this->precision(__rhs.precision()); 19959: this->tie(__rhs.tie()); 19959: this->fill(__rhs.fill()); 19959: _M_ios_locale = __rhs.getloc(); 19959: _M_cache_locale(_M_ios_locale); 19959: 19959: _M_call_callbacks(copyfmt_event); 19959: 19959: 19959: this->exceptions(__rhs.exceptions()); 19959: } 19959: return *this; 19959: } 19959: 19959: 19959: template 19959: locale 19959: basic_ios<_CharT, _Traits>::imbue(const locale& __loc) 19959: { 19959: locale __old(this->getloc()); 19959: ios_base::imbue(__loc); 19959: _M_cache_locale(__loc); 19959: if (this->rdbuf() != 0) 19959: this->rdbuf()->pubimbue(__loc); 19959: return __old; 19959: } 19959: 19959: template 19959: void 19959: basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) 19959: { 19959: 19959: ios_base::_M_init(); 19959: 19959: 19959: _M_cache_locale(_M_ios_locale); 19959: # 146 "/usr/include/c++/13/bits/basic_ios.tcc" 3 19959: _M_fill = _CharT(); 19959: _M_fill_init = false; 19959: 19959: _M_tie = 0; 19959: _M_exception = goodbit; 19959: _M_streambuf = __sb; 19959: _M_streambuf_state = __sb ? goodbit : badbit; 19959: } 19959: 19959: template 19959: void 19959: basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) 19959: { 19959: _M_ctype = std::__try_use_facet<__ctype_type>(__loc); 19959: _M_num_put = std::__try_use_facet<__num_put_type>(__loc); 19959: _M_num_get = std::__try_use_facet<__num_get_type>(__loc); 19959: } 19959: 19959: 19959: 19959: 19959: extern template class basic_ios; 19959: 19959: 19959: extern template class basic_ios; 19959: 19959: 19959: 19959: 19959: } 19959: # 517 "/usr/include/c++/13/bits/basic_ios.h" 2 3 19959: # 47 "/usr/include/c++/13/ios" 2 3 19959: # 41 "/usr/include/c++/13/ostream" 2 3 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 59 "/usr/include/c++/13/ostream" 3 19959: template 19959: class basic_ostream : virtual public basic_ios<_CharT, _Traits> 19959: { 19959: public: 19959: 19959: typedef _CharT char_type; 19959: typedef typename _Traits::int_type int_type; 19959: typedef typename _Traits::pos_type pos_type; 19959: typedef typename _Traits::off_type off_type; 19959: typedef _Traits traits_type; 19959: 19959: 19959: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 19959: typedef basic_ios<_CharT, _Traits> __ios_type; 19959: typedef basic_ostream<_CharT, _Traits> __ostream_type; 19959: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 19959: __num_put_type; 19959: typedef ctype<_CharT> __ctype_type; 19959: # 85 "/usr/include/c++/13/ostream" 3 19959: explicit 19959: basic_ostream(__streambuf_type* __sb) 19959: { this->init(__sb); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual 19959: ~basic_ostream() { } 19959: 19959: 19959: class sentry; 19959: friend class sentry; 19959: # 109 "/usr/include/c++/13/ostream" 3 19959: __ostream_type& 19959: operator<<(__ostream_type& (*__pf)(__ostream_type&)) 19959: { 19959: 19959: 19959: 19959: return __pf(*this); 19959: } 19959: 19959: __ostream_type& 19959: operator<<(__ios_type& (*__pf)(__ios_type&)) 19959: { 19959: 19959: 19959: 19959: __pf(*this); 19959: return *this; 19959: } 19959: 19959: __ostream_type& 19959: operator<<(ios_base& (*__pf) (ios_base&)) 19959: { 19959: 19959: 19959: 19959: __pf(*this); 19959: return *this; 19959: } 19959: # 167 "/usr/include/c++/13/ostream" 3 19959: __ostream_type& 19959: operator<<(long __n) 19959: { return _M_insert(__n); } 19959: 19959: __ostream_type& 19959: operator<<(unsigned long __n) 19959: { return _M_insert(__n); } 19959: 19959: __ostream_type& 19959: operator<<(bool __n) 19959: { return _M_insert(__n); } 19959: 19959: __ostream_type& 19959: operator<<(short __n); 19959: 19959: __ostream_type& 19959: operator<<(unsigned short __n) 19959: { 19959: 19959: 19959: return _M_insert(static_cast(__n)); 19959: } 19959: 19959: __ostream_type& 19959: operator<<(int __n); 19959: 19959: __ostream_type& 19959: operator<<(unsigned int __n) 19959: { 19959: 19959: 19959: return _M_insert(static_cast(__n)); 19959: } 19959: 19959: 19959: __ostream_type& 19959: operator<<(long long __n) 19959: { return _M_insert(__n); } 19959: 19959: __ostream_type& 19959: operator<<(unsigned long long __n) 19959: { return _M_insert(__n); } 19959: # 221 "/usr/include/c++/13/ostream" 3 19959: __ostream_type& 19959: operator<<(double __f) 19959: { return _M_insert(__f); } 19959: 19959: __ostream_type& 19959: operator<<(float __f) 19959: { 19959: 19959: 19959: return _M_insert(static_cast(__f)); 19959: } 19959: 19959: __ostream_type& 19959: operator<<(long double __f) 19959: { return _M_insert(__f); } 19959: # 291 "/usr/include/c++/13/ostream" 3 19959: __ostream_type& 19959: operator<<(const void* __p) 19959: { return _M_insert(__p); } 19959: 19959: 19959: __ostream_type& 19959: operator<<(nullptr_t) 19959: { return *this << "nullptr"; } 19959: # 329 "/usr/include/c++/13/ostream" 3 19959: __ostream_type& 19959: operator<<(__streambuf_type* __sb); 19959: # 362 "/usr/include/c++/13/ostream" 3 19959: __ostream_type& 19959: put(char_type __c); 19959: # 381 "/usr/include/c++/13/ostream" 3 19959: __ostream_type& 19959: write(const char_type* __s, streamsize __n); 19959: # 394 "/usr/include/c++/13/ostream" 3 19959: __ostream_type& 19959: flush(); 19959: # 404 "/usr/include/c++/13/ostream" 3 19959: pos_type 19959: tellp(); 19959: # 415 "/usr/include/c++/13/ostream" 3 19959: __ostream_type& 19959: seekp(pos_type); 19959: # 427 "/usr/include/c++/13/ostream" 3 19959: __ostream_type& 19959: seekp(off_type, ios_base::seekdir); 19959: 19959: protected: 19959: basic_ostream() 19959: { this->init(0); } 19959: 19959: 19959: 19959: basic_ostream(basic_iostream<_CharT, _Traits>&) { } 19959: 19959: basic_ostream(const basic_ostream&) = delete; 19959: 19959: basic_ostream(basic_ostream&& __rhs) 19959: : __ios_type() 19959: { __ios_type::move(__rhs); } 19959: 19959: 19959: 19959: basic_ostream& operator=(const basic_ostream&) = delete; 19959: 19959: basic_ostream& 19959: operator=(basic_ostream&& __rhs) 19959: { 19959: swap(__rhs); 19959: return *this; 19959: } 19959: 19959: void 19959: swap(basic_ostream& __rhs) 19959: { __ios_type::swap(__rhs); } 19959: 19959: 19959: template 19959: __ostream_type& 19959: _M_insert(_ValueT __v); 19959: 19959: private: 19959: 19959: void 19959: _M_write(const char_type* __s, streamsize __n) 19959: { std::__ostream_insert(*this, __s, __n); } 19959: 19959: }; 19959: # 479 "/usr/include/c++/13/ostream" 3 19959: template 19959: class basic_ostream<_CharT, _Traits>::sentry 19959: { 19959: 19959: bool _M_ok; 19959: basic_ostream<_CharT, _Traits>& _M_os; 19959: 19959: public: 19959: # 498 "/usr/include/c++/13/ostream" 3 19959: explicit 19959: sentry(basic_ostream<_CharT, _Traits>& __os); 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ~sentry() 19959: { 19959: 19959: if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) 19959: { 19959: 19959: if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) 19959: _M_os.setstate(ios_base::badbit); 19959: } 19959: } 19959: #pragma GCC diagnostic pop 19959: # 530 "/usr/include/c++/13/ostream" 3 19959: explicit 19959: 19959: operator bool() const 19959: { return _M_ok; } 19959: }; 19959: # 552 "/usr/include/c++/13/ostream" 3 19959: template 19959: inline basic_ostream<_CharT, _Traits>& 19959: operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) 19959: { 19959: if (__out.width() != 0) 19959: return __ostream_insert(__out, &__c, 1); 19959: __out.put(__c); 19959: return __out; 19959: } 19959: 19959: template 19959: inline basic_ostream<_CharT, _Traits>& 19959: operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) 19959: { return (__out << __out.widen(__c)); } 19959: 19959: 19959: template 19959: inline basic_ostream& 19959: operator<<(basic_ostream& __out, char __c) 19959: { 19959: if (__out.width() != 0) 19959: return __ostream_insert(__out, &__c, 1); 19959: __out.put(__c); 19959: return __out; 19959: } 19959: 19959: 19959: template 19959: inline basic_ostream& 19959: operator<<(basic_ostream& __out, signed char __c) 19959: { return (__out << static_cast(__c)); } 19959: 19959: template 19959: inline basic_ostream& 19959: operator<<(basic_ostream& __out, unsigned char __c) 19959: { return (__out << static_cast(__c)); } 19959: # 643 "/usr/include/c++/13/ostream" 3 19959: template 19959: inline basic_ostream<_CharT, _Traits>& 19959: operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) 19959: { 19959: if (!__s) 19959: __out.setstate(ios_base::badbit); 19959: else 19959: __ostream_insert(__out, __s, 19959: static_cast(_Traits::length(__s))); 19959: return __out; 19959: } 19959: 19959: template 19959: basic_ostream<_CharT, _Traits> & 19959: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); 19959: 19959: 19959: template 19959: inline basic_ostream& 19959: operator<<(basic_ostream& __out, const char* __s) 19959: { 19959: if (!__s) 19959: __out.setstate(ios_base::badbit); 19959: else 19959: __ostream_insert(__out, __s, 19959: static_cast(_Traits::length(__s))); 19959: return __out; 19959: } 19959: 19959: 19959: template 19959: inline basic_ostream& 19959: operator<<(basic_ostream& __out, const signed char* __s) 19959: { return (__out << reinterpret_cast(__s)); } 19959: 19959: template 19959: inline basic_ostream & 19959: operator<<(basic_ostream& __out, const unsigned char* __s) 19959: { return (__out << reinterpret_cast(__s)); } 19959: # 733 "/usr/include/c++/13/ostream" 3 19959: template 19959: inline basic_ostream<_CharT, _Traits>& 19959: endl(basic_ostream<_CharT, _Traits>& __os) 19959: { return flush(__os.put(__os.widen('\n'))); } 19959: # 745 "/usr/include/c++/13/ostream" 3 19959: template 19959: inline basic_ostream<_CharT, _Traits>& 19959: ends(basic_ostream<_CharT, _Traits>& __os) 19959: { return __os.put(_CharT()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: inline basic_ostream<_CharT, _Traits>& 19959: flush(basic_ostream<_CharT, _Traits>& __os) 19959: { return __os.flush(); } 19959: # 777 "/usr/include/c++/13/ostream" 3 19959: template 19959: using _Require_derived_from_ios_base 19959: = _Require, __not_>, 19959: is_convertible::type, ios_base*>>; 19959: 19959: template, 19959: typename 19959: = decltype(std::declval<_Os&>() << std::declval())> 19959: using __rvalue_stream_insertion_t = _Os&&; 19959: # 799 "/usr/include/c++/13/ostream" 3 19959: template 19959: inline __rvalue_stream_insertion_t<_Ostream, _Tp> 19959: operator<<(_Ostream&& __os, const _Tp& __x) 19959: { 19959: __os << __x; 19959: return std::move(__os); 19959: } 19959: # 877 "/usr/include/c++/13/ostream" 3 19959: 19959: } 19959: 19959: # 1 "/usr/include/c++/13/bits/ostream.tcc" 1 3 19959: # 37 "/usr/include/c++/13/bits/ostream.tcc" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/ostream.tcc" 3 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template 19959: basic_ostream<_CharT, _Traits>::sentry:: 19959: sentry(basic_ostream<_CharT, _Traits>& __os) 19959: : _M_ok(false), _M_os(__os) 19959: { 19959: 19959: if (__os.tie() && __os.good()) 19959: __os.tie()->flush(); 19959: 19959: if (__os.good()) 19959: _M_ok = true; 19959: else if (__os.bad()) 19959: __os.setstate(ios_base::failbit); 19959: } 19959: 19959: template 19959: template 19959: basic_ostream<_CharT, _Traits>& 19959: basic_ostream<_CharT, _Traits>:: 19959: _M_insert(_ValueT __v) 19959: { 19959: sentry __cerb(*this); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: 19959: const __num_put_type& __np = __check_facet(this->_M_num_put); 19959: 19959: 19959: 19959: 19959: if (__np.put(*this, *this, this->fill(), __v).failed()) 19959: __err |= ios_base::badbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: basic_ostream<_CharT, _Traits>& 19959: basic_ostream<_CharT, _Traits>:: 19959: operator<<(short __n) 19959: { 19959: 19959: 19959: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 19959: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 19959: return _M_insert(static_cast(static_cast(__n))); 19959: else 19959: return _M_insert(static_cast(__n)); 19959: } 19959: 19959: template 19959: basic_ostream<_CharT, _Traits>& 19959: basic_ostream<_CharT, _Traits>:: 19959: operator<<(int __n) 19959: { 19959: 19959: 19959: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 19959: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 19959: return _M_insert(static_cast(static_cast(__n))); 19959: else 19959: return _M_insert(static_cast(__n)); 19959: } 19959: 19959: template 19959: basic_ostream<_CharT, _Traits>& 19959: basic_ostream<_CharT, _Traits>:: 19959: operator<<(__streambuf_type* __sbin) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: sentry __cerb(*this); 19959: if (__cerb && __sbin) 19959: { 19959: try 19959: { 19959: if (!__copy_streambufs(__sbin, this->rdbuf())) 19959: __err |= ios_base::failbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::failbit); } 19959: } 19959: else if (!__sbin) 19959: __err |= ios_base::badbit; 19959: if (__err) 19959: this->setstate(__err); 19959: return *this; 19959: } 19959: 19959: template 19959: basic_ostream<_CharT, _Traits>& 19959: basic_ostream<_CharT, _Traits>:: 19959: put(char_type __c) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: sentry __cerb(*this); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: const int_type __put = this->rdbuf()->sputc(__c); 19959: if (traits_type::eq_int_type(__put, traits_type::eof())) 19959: __err |= ios_base::badbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: basic_ostream<_CharT, _Traits>& 19959: basic_ostream<_CharT, _Traits>:: 19959: write(const _CharT* __s, streamsize __n) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: sentry __cerb(*this); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: if (this->rdbuf()->sputn(__s, __n) != __n) 19959: __err = ios_base::badbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(ios_base::badbit); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: basic_ostream<_CharT, _Traits>& 19959: basic_ostream<_CharT, _Traits>:: 19959: flush() 19959: { 19959: 19959: 19959: 19959: 19959: 19959: if (__streambuf_type* __buf = this->rdbuf()) 19959: { 19959: sentry __cerb(*this); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: if (this->rdbuf()->pubsync() == -1) 19959: __err |= ios_base::badbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: typename basic_ostream<_CharT, _Traits>::pos_type 19959: basic_ostream<_CharT, _Traits>:: 19959: tellp() 19959: { 19959: sentry __cerb(*this); 19959: pos_type __ret = pos_type(-1); 19959: if (!this->fail()) 19959: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); 19959: return __ret; 19959: } 19959: 19959: template 19959: basic_ostream<_CharT, _Traits>& 19959: basic_ostream<_CharT, _Traits>:: 19959: seekp(pos_type __pos) 19959: { 19959: sentry __cerb(*this); 19959: if (!this->fail()) 19959: { 19959: 19959: 19959: const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::out); 19959: 19959: 19959: if (__p == pos_type(off_type(-1))) 19959: this->setstate(ios_base::failbit); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: basic_ostream<_CharT, _Traits>& 19959: basic_ostream<_CharT, _Traits>:: 19959: seekp(off_type __off, ios_base::seekdir __dir) 19959: { 19959: sentry __cerb(*this); 19959: if (!this->fail()) 19959: { 19959: 19959: 19959: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 19959: ios_base::out); 19959: 19959: 19959: if (__p == pos_type(off_type(-1))) 19959: this->setstate(ios_base::failbit); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: basic_ostream<_CharT, _Traits>& 19959: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) 19959: { 19959: if (!__s) 19959: __out.setstate(ios_base::badbit); 19959: else 19959: { 19959: 19959: 19959: const size_t __clen = char_traits::length(__s); 19959: try 19959: { 19959: struct __ptr_guard 19959: { 19959: _CharT *__p; 19959: __ptr_guard (_CharT *__ip): __p(__ip) { } 19959: ~__ptr_guard() { delete[] __p; } 19959: _CharT* __get() { return __p; } 19959: } __pg (new _CharT[__clen]); 19959: 19959: _CharT *__ws = __pg.__get(); 19959: for (size_t __i = 0; __i < __clen; ++__i) 19959: __ws[__i] = __out.widen(__s[__i]); 19959: __ostream_insert(__out, __ws, __clen); 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: __out._M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { __out._M_setstate(ios_base::badbit); } 19959: } 19959: return __out; 19959: } 19959: 19959: 19959: 19959: 19959: extern template class basic_ostream; 19959: extern template ostream& endl(ostream&); 19959: extern template ostream& ends(ostream&); 19959: extern template ostream& flush(ostream&); 19959: extern template ostream& operator<<(ostream&, char); 19959: extern template ostream& operator<<(ostream&, unsigned char); 19959: extern template ostream& operator<<(ostream&, signed char); 19959: extern template ostream& operator<<(ostream&, const char*); 19959: extern template ostream& operator<<(ostream&, const unsigned char*); 19959: extern template ostream& operator<<(ostream&, const signed char*); 19959: 19959: extern template ostream& ostream::_M_insert(long); 19959: extern template ostream& ostream::_M_insert(unsigned long); 19959: extern template ostream& ostream::_M_insert(bool); 19959: 19959: extern template ostream& ostream::_M_insert(long long); 19959: extern template ostream& ostream::_M_insert(unsigned long long); 19959: 19959: extern template ostream& ostream::_M_insert(double); 19959: extern template ostream& ostream::_M_insert(long double); 19959: extern template ostream& ostream::_M_insert(const void*); 19959: 19959: 19959: extern template class basic_ostream; 19959: extern template wostream& endl(wostream&); 19959: extern template wostream& ends(wostream&); 19959: extern template wostream& flush(wostream&); 19959: extern template wostream& operator<<(wostream&, wchar_t); 19959: extern template wostream& operator<<(wostream&, char); 19959: extern template wostream& operator<<(wostream&, const wchar_t*); 19959: extern template wostream& operator<<(wostream&, const char*); 19959: 19959: extern template wostream& wostream::_M_insert(long); 19959: extern template wostream& wostream::_M_insert(unsigned long); 19959: extern template wostream& wostream::_M_insert(bool); 19959: 19959: extern template wostream& wostream::_M_insert(long long); 19959: extern template wostream& wostream::_M_insert(unsigned long long); 19959: 19959: extern template wostream& wostream::_M_insert(double); 19959: extern template wostream& wostream::_M_insert(long double); 19959: extern template wostream& wostream::_M_insert(const void*); 19959: 19959: 19959: 19959: 19959: } 19959: # 881 "/usr/include/c++/13/ostream" 2 3 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 2 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 19959: 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 19959: namespace rocksdb { 19959: 19959: class ColumnFamilyHandle; 19959: 19959: 19959: 19959: class WideColumn { 19959: public: 19959: WideColumn() = default; 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 19959: template 19959: WideColumn(N&& name, V&& value) 19959: : name_(std::forward(name)), value_(std::forward(value)) {} 19959: # 49 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 19959: template 19959: WideColumn(std::piecewise_construct_t, NTuple&& name_tuple, 19959: VTuple&& value_tuple) 19959: : name_(std::make_from_tuple(std::forward(name_tuple))), 19959: value_(std::make_from_tuple(std::forward(value_tuple))) { 19959: } 19959: 19959: const Slice& name() const { return name_; } 19959: const Slice& value() const { return value_; } 19959: 19959: Slice& name() { return name_; } 19959: Slice& value() { return value_; } 19959: 19959: private: 19959: Slice name_; 19959: Slice value_; 19959: }; 19959: 19959: 19959: inline bool operator==(const WideColumn& lhs, const WideColumn& rhs) { 19959: return lhs.name() == rhs.name() && lhs.value() == rhs.value(); 19959: } 19959: 19959: inline bool operator!=(const WideColumn& lhs, const WideColumn& rhs) { 19959: return !(lhs == rhs); 19959: } 19959: 19959: inline std::ostream& operator<<(std::ostream& os, const WideColumn& column) { 19959: const bool hex = 19959: (os.flags() & std::ios_base::basefield) == std::ios_base::hex; 19959: if (!column.name().empty()) { 19959: if (hex) { 19959: os << "0x"; 19959: } 19959: os << column.name().ToString(hex); 19959: } 19959: os << ':'; 19959: if (!column.value().empty()) { 19959: if (hex) { 19959: os << "0x"; 19959: } 19959: os << column.value().ToString(hex); 19959: } 19959: return os; 19959: } 19959: 19959: 19959: using WideColumns = std::vector; 19959: 19959: 19959: extern const Slice kDefaultWideColumnName; 19959: 19959: 19959: extern const WideColumns kNoWideColumns; 19959: 19959: 19959: 19959: class PinnableWideColumns { 19959: public: 19959: const WideColumns& columns() const { return columns_; } 19959: size_t serialized_size() const { return value_.size(); } 19959: 19959: void SetPlainValue(const Slice& value); 19959: void SetPlainValue(const Slice& value, Cleanable* cleanable); 19959: void SetPlainValue(PinnableSlice&& value); 19959: void SetPlainValue(std::string&& value); 19959: 19959: Status SetWideColumnValue(const Slice& value); 19959: Status SetWideColumnValue(const Slice& value, Cleanable* cleanable); 19959: Status SetWideColumnValue(PinnableSlice&& value); 19959: Status SetWideColumnValue(std::string&& value); 19959: 19959: void Reset(); 19959: 19959: private: 19959: void CopyValue(const Slice& value); 19959: void PinOrCopyValue(const Slice& value, Cleanable* cleanable); 19959: void MoveValue(PinnableSlice&& value); 19959: void MoveValue(std::string&& value); 19959: 19959: void CreateIndexForPlainValue(); 19959: Status CreateIndexForWideColumns(); 19959: 19959: PinnableSlice value_; 19959: WideColumns columns_; 19959: }; 19959: 19959: inline void PinnableWideColumns::CopyValue(const Slice& value) { 19959: value_.PinSelf(value); 19959: } 19959: 19959: inline void PinnableWideColumns::PinOrCopyValue(const Slice& value, 19959: Cleanable* cleanable) { 19959: if (!cleanable) { 19959: CopyValue(value); 19959: return; 19959: } 19959: 19959: value_.PinSlice(value, cleanable); 19959: } 19959: 19959: inline void PinnableWideColumns::MoveValue(PinnableSlice&& value) { 19959: value_ = std::move(value); 19959: } 19959: 19959: inline void PinnableWideColumns::MoveValue(std::string&& value) { 19959: std::string* const buf = value_.GetSelf(); 19959: 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 3 4 19959: (static_cast ( 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 19959: buf 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 19959: "buf" 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 3 4 19959: , "./include/rocksdb/wide_columns.h", 156, __extension__ __PRETTY_FUNCTION__)) 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 19959: ; 19959: 19959: *buf = std::move(value); 19959: value_.PinSelf(); 19959: } 19959: 19959: inline void PinnableWideColumns::CreateIndexForPlainValue() { 19959: columns_ = WideColumns{{kDefaultWideColumnName, value_}}; 19959: } 19959: 19959: inline void PinnableWideColumns::SetPlainValue(const Slice& value) { 19959: CopyValue(value); 19959: CreateIndexForPlainValue(); 19959: } 19959: 19959: inline void PinnableWideColumns::SetPlainValue(const Slice& value, 19959: Cleanable* cleanable) { 19959: PinOrCopyValue(value, cleanable); 19959: CreateIndexForPlainValue(); 19959: } 19959: 19959: inline void PinnableWideColumns::SetPlainValue(PinnableSlice&& value) { 19959: MoveValue(std::move(value)); 19959: CreateIndexForPlainValue(); 19959: } 19959: 19959: inline void PinnableWideColumns::SetPlainValue(std::string&& value) { 19959: MoveValue(std::move(value)); 19959: CreateIndexForPlainValue(); 19959: } 19959: 19959: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value) { 19959: CopyValue(value); 19959: return CreateIndexForWideColumns(); 19959: } 19959: 19959: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value, 19959: Cleanable* cleanable) { 19959: PinOrCopyValue(value, cleanable); 19959: return CreateIndexForWideColumns(); 19959: } 19959: 19959: inline Status PinnableWideColumns::SetWideColumnValue(PinnableSlice&& value) { 19959: MoveValue(std::move(value)); 19959: return CreateIndexForWideColumns(); 19959: } 19959: 19959: inline Status PinnableWideColumns::SetWideColumnValue(std::string&& value) { 19959: MoveValue(std::move(value)); 19959: return CreateIndexForWideColumns(); 19959: } 19959: 19959: inline void PinnableWideColumns::Reset() { 19959: value_.Reset(); 19959: columns_.clear(); 19959: } 19959: 19959: inline bool operator==(const PinnableWideColumns& lhs, 19959: const PinnableWideColumns& rhs) { 19959: return lhs.columns() == rhs.columns(); 19959: } 19959: 19959: inline bool operator!=(const PinnableWideColumns& lhs, 19959: const PinnableWideColumns& rhs) { 19959: return !(lhs == rhs); 19959: } 19959: 19959: 19959: 19959: 19959: class AttributeGroup { 19959: public: 19959: ColumnFamilyHandle* column_family() const { return column_family_; } 19959: const WideColumns& columns() const { return columns_; } 19959: WideColumns& columns() { return columns_; } 19959: 19959: explicit AttributeGroup(ColumnFamilyHandle* column_family, 19959: const WideColumns& columns) 19959: : column_family_(column_family), columns_(columns) {} 19959: 19959: private: 19959: ColumnFamilyHandle* column_family_; 19959: WideColumns columns_; 19959: }; 19959: 19959: 19959: using AttributeGroups = std::vector; 19959: 19959: 19959: class PinnableAttributeGroup { 19959: public: 19959: ColumnFamilyHandle* column_family() const { return column_family_; } 19959: const Status& status() const { return status_; } 19959: const WideColumns& columns() const { return columns_.columns(); } 19959: 19959: explicit PinnableAttributeGroup(ColumnFamilyHandle* column_family) 19959: : column_family_(column_family), status_(Status::OK()) {} 19959: 19959: void SetStatus(const Status& status); 19959: void SetColumns(PinnableWideColumns&& columns); 19959: 19959: void Reset(); 19959: 19959: private: 19959: ColumnFamilyHandle* column_family_; 19959: Status status_; 19959: PinnableWideColumns columns_; 19959: }; 19959: 19959: inline void PinnableAttributeGroup::SetStatus(const Status& status) { 19959: status_ = status; 19959: } 19959: inline void PinnableAttributeGroup::SetColumns(PinnableWideColumns&& columns) { 19959: columns_ = std::move(columns); 19959: } 19959: 19959: inline void PinnableAttributeGroup::Reset() { 19959: SetStatus(Status::OK()); 19959: columns_.Reset(); 19959: } 19959: 19959: 19959: using PinnableAttributeGroups = std::vector; 19959: 19959: } 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: class Iterator : public Cleanable { 19959: public: 19959: Iterator() {} 19959: 19959: Iterator(const Iterator&) = delete; 19959: void operator=(const Iterator&) = delete; 19959: 19959: virtual ~Iterator() {} 19959: 19959: 19959: 19959: 19959: virtual bool Valid() const = 0; 19959: 19959: 19959: 19959: virtual void SeekToFirst() = 0; 19959: 19959: 19959: 19959: virtual void SeekToLast() = 0; 19959: # 59 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 19959: virtual void Seek(const Slice& target) = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual void SeekForPrev(const Slice& target) = 0; 19959: 19959: 19959: 19959: 19959: virtual void Next() = 0; 19959: 19959: 19959: 19959: 19959: virtual void Prev() = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Slice key() const = 0; 19959: # 91 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 19959: virtual Slice value() const = 0; 19959: # 100 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 19959: virtual const WideColumns& columns() const { 19959: 19959: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 3 4 19959: (static_cast ( 19959: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 19959: false 19959: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 19959: "false" 19959: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 3 4 19959: , "./include/rocksdb/iterator.h", 101, __extension__ __PRETTY_FUNCTION__)) 19959: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 19959: ; 19959: return kNoWideColumns; 19959: } 19959: 19959: 19959: 19959: 19959: virtual Status status() const = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Refresh() { return Refresh(nullptr); } 19959: 19959: 19959: 19959: virtual Status Refresh(const class Snapshot*) { 19959: return Status::NotSupported("Refresh() is not supported"); 19959: } 19959: # 146 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 19959: virtual Status GetProperty(std::string prop_name, std::string* prop); 19959: 19959: virtual Slice timestamp() const { 19959: 19959: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 3 4 19959: (static_cast ( 19959: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 19959: false 19959: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 19959: "false" 19959: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 3 4 19959: , "./include/rocksdb/iterator.h", 149, __extension__ __PRETTY_FUNCTION__)) 19959: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 19959: ; 19959: return Slice(); 19959: } 19959: }; 19959: 19959: 19959: extern Iterator* NewEmptyIterator(); 19959: 19959: 19959: extern Iterator* NewErrorIterator(const Status& status); 19959: 19959: } 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/sstream" 1 3 19959: # 36 "/usr/include/c++/13/sstream" 3 19959: 19959: # 37 "/usr/include/c++/13/sstream" 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/istream" 1 3 19959: # 36 "/usr/include/c++/13/istream" 3 19959: 19959: # 37 "/usr/include/c++/13/istream" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 43 "/usr/include/c++/13/istream" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 59 "/usr/include/c++/13/istream" 3 19959: template 19959: class basic_istream : virtual public basic_ios<_CharT, _Traits> 19959: { 19959: public: 19959: 19959: typedef _CharT char_type; 19959: typedef typename _Traits::int_type int_type; 19959: typedef typename _Traits::pos_type pos_type; 19959: typedef typename _Traits::off_type off_type; 19959: typedef _Traits traits_type; 19959: 19959: 19959: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 19959: typedef basic_ios<_CharT, _Traits> __ios_type; 19959: typedef basic_istream<_CharT, _Traits> __istream_type; 19959: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 19959: __num_get_type; 19959: typedef ctype<_CharT> __ctype_type; 19959: 19959: protected: 19959: 19959: 19959: 19959: 19959: 19959: streamsize _M_gcount; 19959: 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: basic_istream(__streambuf_type* __sb) 19959: : _M_gcount(streamsize(0)) 19959: { this->init(__sb); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual 19959: ~basic_istream() 19959: { _M_gcount = streamsize(0); } 19959: 19959: 19959: class sentry; 19959: friend class sentry; 19959: # 121 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: operator>>(__istream_type& (*__pf)(__istream_type&)) 19959: { return __pf(*this); } 19959: 19959: __istream_type& 19959: operator>>(__ios_type& (*__pf)(__ios_type&)) 19959: { 19959: __pf(*this); 19959: return *this; 19959: } 19959: 19959: __istream_type& 19959: operator>>(ios_base& (*__pf)(ios_base&)) 19959: { 19959: __pf(*this); 19959: return *this; 19959: } 19959: # 169 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: operator>>(bool& __n) 19959: { return _M_extract(__n); } 19959: 19959: __istream_type& 19959: operator>>(short& __n); 19959: 19959: __istream_type& 19959: operator>>(unsigned short& __n) 19959: { return _M_extract(__n); } 19959: 19959: __istream_type& 19959: operator>>(int& __n); 19959: 19959: __istream_type& 19959: operator>>(unsigned int& __n) 19959: { return _M_extract(__n); } 19959: 19959: __istream_type& 19959: operator>>(long& __n) 19959: { return _M_extract(__n); } 19959: 19959: __istream_type& 19959: operator>>(unsigned long& __n) 19959: { return _M_extract(__n); } 19959: 19959: 19959: __istream_type& 19959: operator>>(long long& __n) 19959: { return _M_extract(__n); } 19959: 19959: __istream_type& 19959: operator>>(unsigned long long& __n) 19959: { return _M_extract(__n); } 19959: # 215 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: operator>>(float& __f) 19959: { return _M_extract(__f); } 19959: 19959: __istream_type& 19959: operator>>(double& __f) 19959: { return _M_extract(__f); } 19959: 19959: __istream_type& 19959: operator>>(long double& __f) 19959: { return _M_extract(__f); } 19959: # 324 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: operator>>(void*& __p) 19959: { return _M_extract(__p); } 19959: # 348 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: operator>>(__streambuf_type* __sb); 19959: # 358 "/usr/include/c++/13/istream" 3 19959: streamsize 19959: gcount() const 19959: { return _M_gcount; } 19959: # 391 "/usr/include/c++/13/istream" 3 19959: int_type 19959: get(); 19959: # 405 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: get(char_type& __c); 19959: # 432 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: get(char_type* __s, streamsize __n, char_type __delim); 19959: # 443 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: get(char_type* __s, streamsize __n) 19959: { return this->get(__s, __n, this->widen('\n')); } 19959: # 466 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: get(__streambuf_type& __sb, char_type __delim); 19959: # 476 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: get(__streambuf_type& __sb) 19959: { return this->get(__sb, this->widen('\n')); } 19959: # 505 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: getline(char_type* __s, streamsize __n, char_type __delim); 19959: # 516 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: getline(char_type* __s, streamsize __n) 19959: { return this->getline(__s, __n, this->widen('\n')); } 19959: # 540 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: ignore(streamsize __n, int_type __delim); 19959: 19959: __istream_type& 19959: ignore(streamsize __n); 19959: 19959: __istream_type& 19959: ignore(); 19959: # 557 "/usr/include/c++/13/istream" 3 19959: int_type 19959: peek(); 19959: # 575 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: read(char_type* __s, streamsize __n); 19959: # 594 "/usr/include/c++/13/istream" 3 19959: streamsize 19959: readsome(char_type* __s, streamsize __n); 19959: # 611 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: putback(char_type __c); 19959: # 627 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: unget(); 19959: # 645 "/usr/include/c++/13/istream" 3 19959: int 19959: sync(); 19959: # 660 "/usr/include/c++/13/istream" 3 19959: pos_type 19959: tellg(); 19959: # 675 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: seekg(pos_type); 19959: # 691 "/usr/include/c++/13/istream" 3 19959: __istream_type& 19959: seekg(off_type, ios_base::seekdir); 19959: 19959: 19959: protected: 19959: basic_istream() 19959: : _M_gcount(streamsize(0)) 19959: { this->init(0); } 19959: 19959: 19959: basic_istream(const basic_istream&) = delete; 19959: 19959: basic_istream(basic_istream&& __rhs) 19959: : __ios_type(), _M_gcount(__rhs._M_gcount) 19959: { 19959: __ios_type::move(__rhs); 19959: __rhs._M_gcount = 0; 19959: } 19959: 19959: 19959: 19959: basic_istream& operator=(const basic_istream&) = delete; 19959: 19959: basic_istream& 19959: operator=(basic_istream&& __rhs) 19959: { 19959: swap(__rhs); 19959: return *this; 19959: } 19959: 19959: void 19959: swap(basic_istream& __rhs) 19959: { 19959: __ios_type::swap(__rhs); 19959: std::swap(_M_gcount, __rhs._M_gcount); 19959: } 19959: 19959: 19959: template 19959: __istream_type& 19959: _M_extract(_ValueT& __v); 19959: }; 19959: 19959: 19959: template<> 19959: basic_istream& 19959: basic_istream:: 19959: getline(char_type* __s, streamsize __n, char_type __delim); 19959: 19959: template<> 19959: basic_istream& 19959: basic_istream:: 19959: ignore(streamsize __n); 19959: 19959: template<> 19959: basic_istream& 19959: basic_istream:: 19959: ignore(streamsize __n, int_type __delim); 19959: 19959: 19959: template<> 19959: basic_istream& 19959: basic_istream:: 19959: getline(char_type* __s, streamsize __n, char_type __delim); 19959: 19959: template<> 19959: basic_istream& 19959: basic_istream:: 19959: ignore(streamsize __n); 19959: 19959: template<> 19959: basic_istream& 19959: basic_istream:: 19959: ignore(streamsize __n, int_type __delim); 19959: # 775 "/usr/include/c++/13/istream" 3 19959: template 19959: class basic_istream<_CharT, _Traits>::sentry 19959: { 19959: 19959: bool _M_ok; 19959: 19959: public: 19959: 19959: typedef _Traits traits_type; 19959: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 19959: typedef basic_istream<_CharT, _Traits> __istream_type; 19959: typedef typename __istream_type::__ctype_type __ctype_type; 19959: typedef typename _Traits::int_type __int_type; 19959: # 811 "/usr/include/c++/13/istream" 3 19959: explicit 19959: sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); 19959: # 822 "/usr/include/c++/13/istream" 3 19959: explicit 19959: 19959: operator bool() const 19959: { return _M_ok; } 19959: }; 19959: # 840 "/usr/include/c++/13/istream" 3 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); 19959: 19959: template 19959: inline basic_istream& 19959: operator>>(basic_istream& __in, unsigned char& __c) 19959: { return (__in >> reinterpret_cast(__c)); } 19959: 19959: template 19959: inline basic_istream& 19959: operator>>(basic_istream& __in, signed char& __c) 19959: { return (__in >> reinterpret_cast(__c)); } 19959: 19959: 19959: 19959: template 19959: void 19959: __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize); 19959: 19959: void __istream_extract(istream&, char*, streamsize); 19959: # 890 "/usr/include/c++/13/istream" 3 19959: template 19959: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 19959: inline basic_istream<_CharT, _Traits>& 19959: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) 19959: { 19959: 19959: 19959: 19959: size_t __n = __builtin_object_size(__s, 0); 19959: if (__n < sizeof(_CharT)) 19959: { 19959: 19959: do { if (std::__is_constant_evaluated() && !bool(__n >= sizeof(_CharT))) __builtin_unreachable(); } while (false); 19959: 19959: __in.width(0); 19959: __in.setstate(ios_base::failbit); 19959: } 19959: else if (__n != (size_t)-1) 19959: { 19959: __n /= sizeof(_CharT); 19959: streamsize __w = __in.width(); 19959: std::__istream_extract(__in, __s, __n); 19959: if (__in.good() && (__w <= 0 || __n < __w)) 19959: { 19959: 19959: 19959: const typename _Traits::int_type __c = __in.rdbuf()->sgetc(); 19959: const bool __eof = _Traits::eq_int_type(__c, _Traits::eof()); 19959: if (__builtin_expect(__eof, true)) 19959: __in.setstate(ios_base::eofbit); 19959: } 19959: } 19959: else 19959: 19959: { 19959: 19959: streamsize __n = __gnu_cxx::__numeric_traits::__max; 19959: __n /= sizeof(_CharT); 19959: std::__istream_extract(__in, __s, __n); 19959: } 19959: return __in; 19959: } 19959: 19959: template 19959: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 19959: inline basic_istream& 19959: operator>>(basic_istream& __in, unsigned char* __s) 19959: { return __in >> reinterpret_cast(__s); } 19959: 19959: template 19959: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 19959: inline basic_istream& 19959: operator>>(basic_istream& __in, signed char* __s) 19959: { return __in >> reinterpret_cast(__s); } 19959: # 979 "/usr/include/c++/13/istream" 3 19959: template 19959: class basic_iostream 19959: : public basic_istream<_CharT, _Traits>, 19959: public basic_ostream<_CharT, _Traits> 19959: { 19959: public: 19959: 19959: 19959: 19959: typedef _CharT char_type; 19959: typedef typename _Traits::int_type int_type; 19959: typedef typename _Traits::pos_type pos_type; 19959: typedef typename _Traits::off_type off_type; 19959: typedef _Traits traits_type; 19959: 19959: 19959: typedef basic_istream<_CharT, _Traits> __istream_type; 19959: typedef basic_ostream<_CharT, _Traits> __ostream_type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) 19959: : __istream_type(__sb), __ostream_type(__sb) { } 19959: 19959: 19959: 19959: 19959: virtual 19959: ~basic_iostream() { } 19959: 19959: protected: 19959: basic_iostream() 19959: : __istream_type(), __ostream_type() { } 19959: 19959: 19959: basic_iostream(const basic_iostream&) = delete; 19959: 19959: basic_iostream(basic_iostream&& __rhs) 19959: : __istream_type(std::move(__rhs)), __ostream_type(*this) 19959: { } 19959: 19959: 19959: 19959: basic_iostream& operator=(const basic_iostream&) = delete; 19959: 19959: basic_iostream& 19959: operator=(basic_iostream&& __rhs) 19959: { 19959: swap(__rhs); 19959: return *this; 19959: } 19959: 19959: void 19959: swap(basic_iostream& __rhs) 19959: { __istream_type::swap(__rhs); } 19959: 19959: }; 19959: # 1062 "/usr/include/c++/13/istream" 3 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: ws(basic_istream<_CharT, _Traits>& __is); 19959: # 1078 "/usr/include/c++/13/istream" 3 19959: template, 19959: typename = decltype(std::declval<_Is&>() >> std::declval<_Tp>())> 19959: using __rvalue_stream_extraction_t = _Is&&; 19959: # 1094 "/usr/include/c++/13/istream" 3 19959: template 19959: inline __rvalue_stream_extraction_t<_Istream, _Tp> 19959: operator>>(_Istream&& __is, _Tp&& __x) 19959: { 19959: __is >> std::forward<_Tp>(__x); 19959: return std::move(__is); 19959: } 19959: 19959: 19959: 19959: } 19959: 19959: # 1 "/usr/include/c++/13/bits/istream.tcc" 1 3 19959: # 37 "/usr/include/c++/13/bits/istream.tcc" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/istream.tcc" 3 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template 19959: basic_istream<_CharT, _Traits>::sentry:: 19959: sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: if (__in.good()) 19959: { 19959: try 19959: { 19959: if (__in.tie()) 19959: __in.tie()->flush(); 19959: if (!__noskip && bool(__in.flags() & ios_base::skipws)) 19959: { 19959: const __int_type __eof = traits_type::eof(); 19959: __streambuf_type* __sb = __in.rdbuf(); 19959: __int_type __c = __sb->sgetc(); 19959: 19959: const __ctype_type& __ct = __check_facet(__in._M_ctype); 19959: while (!traits_type::eq_int_type(__c, __eof) 19959: && __ct.is(ctype_base::space, 19959: traits_type::to_char_type(__c))) 19959: __c = __sb->snextc(); 19959: 19959: 19959: 19959: 19959: if (traits_type::eq_int_type(__c, __eof)) 19959: __err |= ios_base::eofbit; 19959: } 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: __in._M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { __in._M_setstate(ios_base::badbit); } 19959: } 19959: 19959: if (__in.good() && __err == ios_base::goodbit) 19959: _M_ok = true; 19959: else 19959: { 19959: __err |= ios_base::failbit; 19959: __in.setstate(__err); 19959: } 19959: } 19959: 19959: template 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: _M_extract(_ValueT& __v) 19959: { 19959: sentry __cerb(*this, false); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: 19959: const __num_get_type& __ng = __check_facet(this->_M_num_get); 19959: 19959: 19959: 19959: 19959: __ng.get(*this, 0, *this, __err, __v); 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: operator>>(short& __n) 19959: { 19959: 19959: 19959: sentry __cerb(*this, false); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: long __l; 19959: 19959: const __num_get_type& __ng = __check_facet(this->_M_num_get); 19959: 19959: 19959: 19959: 19959: __ng.get(*this, 0, *this, __err, __l); 19959: 19959: 19959: 19959: if (__l < __gnu_cxx::__numeric_traits::__min) 19959: { 19959: __err |= ios_base::failbit; 19959: __n = __gnu_cxx::__numeric_traits::__min; 19959: } 19959: else if (__l > __gnu_cxx::__numeric_traits::__max) 19959: { 19959: __err |= ios_base::failbit; 19959: __n = __gnu_cxx::__numeric_traits::__max; 19959: } 19959: else 19959: __n = short(__l); 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: operator>>(int& __n) 19959: { 19959: 19959: 19959: sentry __cerb(*this, false); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: long __l; 19959: 19959: const __num_get_type& __ng = __check_facet(this->_M_num_get); 19959: 19959: 19959: 19959: 19959: __ng.get(*this, 0, *this, __err, __l); 19959: 19959: 19959: 19959: if (__l < __gnu_cxx::__numeric_traits::__min) 19959: { 19959: __err |= ios_base::failbit; 19959: __n = __gnu_cxx::__numeric_traits::__min; 19959: } 19959: else if (__l > __gnu_cxx::__numeric_traits::__max) 19959: { 19959: __err |= ios_base::failbit; 19959: __n = __gnu_cxx::__numeric_traits::__max; 19959: } 19959: else 19959: __n = int(__l); 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: operator>>(__streambuf_type* __sbout) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: sentry __cerb(*this, false); 19959: if (__cerb && __sbout) 19959: { 19959: try 19959: { 19959: bool __ineof; 19959: if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) 19959: __err |= ios_base::failbit; 19959: if (__ineof) 19959: __err |= ios_base::eofbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::failbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::failbit); } 19959: } 19959: else if (!__sbout) 19959: __err |= ios_base::failbit; 19959: if (__err) 19959: this->setstate(__err); 19959: return *this; 19959: } 19959: 19959: template 19959: typename basic_istream<_CharT, _Traits>::int_type 19959: basic_istream<_CharT, _Traits>:: 19959: get(void) 19959: { 19959: const int_type __eof = traits_type::eof(); 19959: int_type __c = __eof; 19959: _M_gcount = 0; 19959: ios_base::iostate __err = ios_base::goodbit; 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: try 19959: { 19959: __c = this->rdbuf()->sbumpc(); 19959: 19959: if (!traits_type::eq_int_type(__c, __eof)) 19959: _M_gcount = 1; 19959: else 19959: __err |= ios_base::eofbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: } 19959: if (!_M_gcount) 19959: __err |= ios_base::failbit; 19959: if (__err) 19959: this->setstate(__err); 19959: return __c; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: get(char_type& __c) 19959: { 19959: _M_gcount = 0; 19959: ios_base::iostate __err = ios_base::goodbit; 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: try 19959: { 19959: const int_type __cb = this->rdbuf()->sbumpc(); 19959: 19959: if (!traits_type::eq_int_type(__cb, traits_type::eof())) 19959: { 19959: _M_gcount = 1; 19959: __c = traits_type::to_char_type(__cb); 19959: } 19959: else 19959: __err |= ios_base::eofbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: } 19959: if (!_M_gcount) 19959: __err |= ios_base::failbit; 19959: if (__err) 19959: this->setstate(__err); 19959: return *this; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: get(char_type* __s, streamsize __n, char_type __delim) 19959: { 19959: _M_gcount = 0; 19959: ios_base::iostate __err = ios_base::goodbit; 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: try 19959: { 19959: const int_type __idelim = traits_type::to_int_type(__delim); 19959: const int_type __eof = traits_type::eof(); 19959: __streambuf_type* __sb = this->rdbuf(); 19959: int_type __c = __sb->sgetc(); 19959: 19959: while (_M_gcount + 1 < __n 19959: && !traits_type::eq_int_type(__c, __eof) 19959: && !traits_type::eq_int_type(__c, __idelim)) 19959: { 19959: *__s++ = traits_type::to_char_type(__c); 19959: ++_M_gcount; 19959: __c = __sb->snextc(); 19959: } 19959: if (traits_type::eq_int_type(__c, __eof)) 19959: __err |= ios_base::eofbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: } 19959: 19959: 19959: if (__n > 0) 19959: *__s = char_type(); 19959: if (!_M_gcount) 19959: __err |= ios_base::failbit; 19959: if (__err) 19959: this->setstate(__err); 19959: return *this; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: get(__streambuf_type& __sb, char_type __delim) 19959: { 19959: _M_gcount = 0; 19959: ios_base::iostate __err = ios_base::goodbit; 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: try 19959: { 19959: const int_type __idelim = traits_type::to_int_type(__delim); 19959: const int_type __eof = traits_type::eof(); 19959: __streambuf_type* __this_sb = this->rdbuf(); 19959: int_type __c = __this_sb->sgetc(); 19959: char_type __c2 = traits_type::to_char_type(__c); 19959: unsigned long long __gcount = 0; 19959: 19959: while (!traits_type::eq_int_type(__c, __eof) 19959: && !traits_type::eq_int_type(__c, __idelim) 19959: && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) 19959: { 19959: ++__gcount; 19959: __c = __this_sb->snextc(); 19959: __c2 = traits_type::to_char_type(__c); 19959: } 19959: if (traits_type::eq_int_type(__c, __eof)) 19959: __err |= ios_base::eofbit; 19959: 19959: 19959: if (__gcount <= __gnu_cxx::__numeric_traits::__max) 19959: _M_gcount = __gcount; 19959: else 19959: _M_gcount = __gnu_cxx::__numeric_traits::__max; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: } 19959: if (!_M_gcount) 19959: __err |= ios_base::failbit; 19959: if (__err) 19959: this->setstate(__err); 19959: return *this; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: getline(char_type* __s, streamsize __n, char_type __delim) 19959: { 19959: _M_gcount = 0; 19959: ios_base::iostate __err = ios_base::goodbit; 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: try 19959: { 19959: const int_type __idelim = traits_type::to_int_type(__delim); 19959: const int_type __eof = traits_type::eof(); 19959: __streambuf_type* __sb = this->rdbuf(); 19959: int_type __c = __sb->sgetc(); 19959: 19959: while (_M_gcount + 1 < __n 19959: && !traits_type::eq_int_type(__c, __eof) 19959: && !traits_type::eq_int_type(__c, __idelim)) 19959: { 19959: *__s++ = traits_type::to_char_type(__c); 19959: __c = __sb->snextc(); 19959: ++_M_gcount; 19959: } 19959: if (traits_type::eq_int_type(__c, __eof)) 19959: __err |= ios_base::eofbit; 19959: else 19959: { 19959: if (traits_type::eq_int_type(__c, __idelim)) 19959: { 19959: __sb->sbumpc(); 19959: ++_M_gcount; 19959: } 19959: else 19959: __err |= ios_base::failbit; 19959: } 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: } 19959: 19959: 19959: if (__n > 0) 19959: *__s = char_type(); 19959: if (!_M_gcount) 19959: __err |= ios_base::failbit; 19959: if (__err) 19959: this->setstate(__err); 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: ignore(void) 19959: { 19959: _M_gcount = 0; 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: const int_type __eof = traits_type::eof(); 19959: __streambuf_type* __sb = this->rdbuf(); 19959: 19959: if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) 19959: __err |= ios_base::eofbit; 19959: else 19959: _M_gcount = 1; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: ignore(streamsize __n) 19959: { 19959: _M_gcount = 0; 19959: sentry __cerb(*this, true); 19959: if (__cerb && __n > 0) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: const int_type __eof = traits_type::eof(); 19959: __streambuf_type* __sb = this->rdbuf(); 19959: int_type __c = __sb->sgetc(); 19959: # 545 "/usr/include/c++/13/bits/istream.tcc" 3 19959: bool __large_ignore = false; 19959: while (true) 19959: { 19959: while (_M_gcount < __n 19959: && !traits_type::eq_int_type(__c, __eof)) 19959: { 19959: ++_M_gcount; 19959: __c = __sb->snextc(); 19959: } 19959: if (__n == __gnu_cxx::__numeric_traits::__max 19959: && !traits_type::eq_int_type(__c, __eof)) 19959: { 19959: _M_gcount = 19959: __gnu_cxx::__numeric_traits::__min; 19959: __large_ignore = true; 19959: } 19959: else 19959: break; 19959: } 19959: 19959: if (__n == __gnu_cxx::__numeric_traits::__max) 19959: { 19959: if (__large_ignore) 19959: _M_gcount = __gnu_cxx::__numeric_traits::__max; 19959: 19959: if (traits_type::eq_int_type(__c, __eof)) 19959: __err |= ios_base::eofbit; 19959: } 19959: else if (_M_gcount < __n) 19959: { 19959: if (traits_type::eq_int_type(__c, __eof)) 19959: __err |= ios_base::eofbit; 19959: } 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: ignore(streamsize __n, int_type __delim) 19959: { 19959: _M_gcount = 0; 19959: sentry __cerb(*this, true); 19959: if (__cerb && __n > 0) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: const int_type __eof = traits_type::eof(); 19959: __streambuf_type* __sb = this->rdbuf(); 19959: int_type __c = __sb->sgetc(); 19959: 19959: 19959: bool __large_ignore = false; 19959: while (true) 19959: { 19959: while (_M_gcount < __n 19959: && !traits_type::eq_int_type(__c, __eof) 19959: && !traits_type::eq_int_type(__c, __delim)) 19959: { 19959: ++_M_gcount; 19959: __c = __sb->snextc(); 19959: } 19959: if (__n == __gnu_cxx::__numeric_traits::__max 19959: && !traits_type::eq_int_type(__c, __eof) 19959: && !traits_type::eq_int_type(__c, __delim)) 19959: { 19959: _M_gcount = 19959: __gnu_cxx::__numeric_traits::__min; 19959: __large_ignore = true; 19959: } 19959: else 19959: break; 19959: } 19959: 19959: if (__n == __gnu_cxx::__numeric_traits::__max) 19959: { 19959: if (__large_ignore) 19959: _M_gcount = __gnu_cxx::__numeric_traits::__max; 19959: 19959: if (traits_type::eq_int_type(__c, __eof)) 19959: __err |= ios_base::eofbit; 19959: else 19959: { 19959: if (_M_gcount != __n) 19959: ++_M_gcount; 19959: __sb->sbumpc(); 19959: } 19959: } 19959: else if (_M_gcount < __n) 19959: { 19959: if (traits_type::eq_int_type(__c, __eof)) 19959: __err |= ios_base::eofbit; 19959: else 19959: { 19959: ++_M_gcount; 19959: __sb->sbumpc(); 19959: } 19959: } 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: typename basic_istream<_CharT, _Traits>::int_type 19959: basic_istream<_CharT, _Traits>:: 19959: peek(void) 19959: { 19959: int_type __c = traits_type::eof(); 19959: _M_gcount = 0; 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: __c = this->rdbuf()->sgetc(); 19959: if (traits_type::eq_int_type(__c, traits_type::eof())) 19959: __err |= ios_base::eofbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return __c; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: read(char_type* __s, streamsize __n) 19959: { 19959: _M_gcount = 0; 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: _M_gcount = this->rdbuf()->sgetn(__s, __n); 19959: if (_M_gcount != __n) 19959: __err |= (ios_base::eofbit | ios_base::failbit); 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: streamsize 19959: basic_istream<_CharT, _Traits>:: 19959: readsome(char_type* __s, streamsize __n) 19959: { 19959: _M_gcount = 0; 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: 19959: const streamsize __num = this->rdbuf()->in_avail(); 19959: if (__num > 0) 19959: _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); 19959: else if (__num == -1) 19959: __err |= ios_base::eofbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return _M_gcount; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: putback(char_type __c) 19959: { 19959: 19959: 19959: _M_gcount = 0; 19959: 19959: this->clear(this->rdstate() & ~ios_base::eofbit); 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: const int_type __eof = traits_type::eof(); 19959: __streambuf_type* __sb = this->rdbuf(); 19959: if (!__sb 19959: || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) 19959: __err |= ios_base::badbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: unget(void) 19959: { 19959: 19959: 19959: _M_gcount = 0; 19959: 19959: this->clear(this->rdstate() & ~ios_base::eofbit); 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: const int_type __eof = traits_type::eof(); 19959: __streambuf_type* __sb = this->rdbuf(); 19959: if (!__sb 19959: || traits_type::eq_int_type(__sb->sungetc(), __eof)) 19959: __err |= ios_base::badbit; 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: int 19959: basic_istream<_CharT, _Traits>:: 19959: sync(void) 19959: { 19959: 19959: 19959: int __ret = -1; 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: __streambuf_type* __sb = this->rdbuf(); 19959: if (__sb) 19959: { 19959: if (__sb->pubsync() == -1) 19959: __err |= ios_base::badbit; 19959: else 19959: __ret = 0; 19959: } 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: typename basic_istream<_CharT, _Traits>::pos_type 19959: basic_istream<_CharT, _Traits>:: 19959: tellg(void) 19959: { 19959: 19959: 19959: pos_type __ret = pos_type(-1); 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: try 19959: { 19959: if (!this->fail()) 19959: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, 19959: ios_base::in); 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: seekg(pos_type __pos) 19959: { 19959: 19959: 19959: 19959: this->clear(this->rdstate() & ~ios_base::eofbit); 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: if (!this->fail()) 19959: { 19959: 19959: const pos_type __p = this->rdbuf()->pubseekpos(__pos, 19959: ios_base::in); 19959: 19959: 19959: if (__p == pos_type(off_type(-1))) 19959: __err |= ios_base::failbit; 19959: } 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: basic_istream<_CharT, _Traits>:: 19959: seekg(off_type __off, ios_base::seekdir __dir) 19959: { 19959: 19959: 19959: 19959: this->clear(this->rdstate() & ~ios_base::eofbit); 19959: sentry __cerb(*this, true); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: if (!this->fail()) 19959: { 19959: 19959: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 19959: ios_base::in); 19959: 19959: 19959: if (__p == pos_type(off_type(-1))) 19959: __err |= ios_base::failbit; 19959: } 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: this->_M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { this->_M_setstate(ios_base::badbit); } 19959: if (__err) 19959: this->setstate(__err); 19959: } 19959: return *this; 19959: } 19959: 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) 19959: { 19959: typedef basic_istream<_CharT, _Traits> __istream_type; 19959: typedef typename __istream_type::int_type __int_type; 19959: 19959: typename __istream_type::sentry __cerb(__in, false); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: const __int_type __cb = __in.rdbuf()->sbumpc(); 19959: if (!_Traits::eq_int_type(__cb, _Traits::eof())) 19959: __c = _Traits::to_char_type(__cb); 19959: else 19959: __err |= (ios_base::eofbit | ios_base::failbit); 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: __in._M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { __in._M_setstate(ios_base::badbit); } 19959: if (__err) 19959: __in.setstate(__err); 19959: } 19959: return __in; 19959: } 19959: 19959: template 19959: void 19959: __istream_extract(basic_istream<_CharT, _Traits>& __in, _CharT* __s, 19959: streamsize __num) 19959: { 19959: typedef basic_istream<_CharT, _Traits> __istream_type; 19959: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 19959: typedef typename _Traits::int_type int_type; 19959: typedef _CharT char_type; 19959: typedef ctype<_CharT> __ctype_type; 19959: 19959: streamsize __extracted = 0; 19959: ios_base::iostate __err = ios_base::goodbit; 19959: typename __istream_type::sentry __cerb(__in, false); 19959: if (__cerb) 19959: { 19959: try 19959: { 19959: 19959: streamsize __width = __in.width(); 19959: if (0 < __width && __width < __num) 19959: __num = __width; 19959: 19959: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 19959: 19959: const int_type __eof = _Traits::eof(); 19959: __streambuf_type* __sb = __in.rdbuf(); 19959: int_type __c = __sb->sgetc(); 19959: 19959: while (__extracted < __num - 1 19959: && !_Traits::eq_int_type(__c, __eof) 19959: && !__ct.is(ctype_base::space, 19959: _Traits::to_char_type(__c))) 19959: { 19959: *__s++ = _Traits::to_char_type(__c); 19959: ++__extracted; 19959: __c = __sb->snextc(); 19959: } 19959: 19959: if (__extracted < __num - 1 19959: && _Traits::eq_int_type(__c, __eof)) 19959: __err |= ios_base::eofbit; 19959: 19959: 19959: 19959: *__s = char_type(); 19959: __in.width(0); 19959: } 19959: catch(__cxxabiv1::__forced_unwind&) 19959: { 19959: __in._M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { __in._M_setstate(ios_base::badbit); } 19959: } 19959: if (!__extracted) 19959: __err |= ios_base::failbit; 19959: if (__err) 19959: __in.setstate(__err); 19959: } 19959: 19959: 19959: template 19959: basic_istream<_CharT, _Traits>& 19959: ws(basic_istream<_CharT, _Traits>& __in) 19959: { 19959: typedef basic_istream<_CharT, _Traits> __istream_type; 19959: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 19959: typedef typename __istream_type::int_type __int_type; 19959: typedef ctype<_CharT> __ctype_type; 19959: 19959: 19959: 19959: typename __istream_type::sentry __cerb(__in, true); 19959: if (__cerb) 19959: { 19959: ios_base::iostate __err = ios_base::goodbit; 19959: try 19959: { 19959: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 19959: const __int_type __eof = _Traits::eof(); 19959: __streambuf_type* __sb = __in.rdbuf(); 19959: __int_type __c = __sb->sgetc(); 19959: 19959: while (true) 19959: { 19959: if (_Traits::eq_int_type(__c, __eof)) 19959: { 19959: __err = ios_base::eofbit; 19959: break; 19959: } 19959: if (!__ct.is(ctype_base::space, _Traits::to_char_type(__c))) 19959: break; 19959: __c = __sb->snextc(); 19959: } 19959: } 19959: catch(const __cxxabiv1::__forced_unwind&) 19959: { 19959: __in._M_setstate(ios_base::badbit); 19959: throw; 19959: } 19959: catch(...) 19959: { 19959: __in._M_setstate(ios_base::badbit); 19959: } 19959: if (__err) 19959: __in.setstate(__err); 19959: } 19959: return __in; 19959: } 19959: 19959: 19959: 19959: 19959: extern template class basic_istream; 19959: extern template istream& ws(istream&); 19959: extern template istream& operator>>(istream&, char&); 19959: extern template istream& operator>>(istream&, unsigned char&); 19959: extern template istream& operator>>(istream&, signed char&); 19959: 19959: extern template istream& istream::_M_extract(unsigned short&); 19959: extern template istream& istream::_M_extract(unsigned int&); 19959: extern template istream& istream::_M_extract(long&); 19959: extern template istream& istream::_M_extract(unsigned long&); 19959: extern template istream& istream::_M_extract(bool&); 19959: 19959: extern template istream& istream::_M_extract(long long&); 19959: extern template istream& istream::_M_extract(unsigned long long&); 19959: 19959: extern template istream& istream::_M_extract(float&); 19959: extern template istream& istream::_M_extract(double&); 19959: extern template istream& istream::_M_extract(long double&); 19959: extern template istream& istream::_M_extract(void*&); 19959: 19959: extern template class basic_iostream; 19959: 19959: 19959: extern template class basic_istream; 19959: extern template wistream& ws(wistream&); 19959: extern template wistream& operator>>(wistream&, wchar_t&); 19959: extern template void __istream_extract(wistream&, wchar_t*, streamsize); 19959: 19959: extern template wistream& wistream::_M_extract(unsigned short&); 19959: extern template wistream& wistream::_M_extract(unsigned int&); 19959: extern template wistream& wistream::_M_extract(long&); 19959: extern template wistream& wistream::_M_extract(unsigned long&); 19959: extern template wistream& wistream::_M_extract(bool&); 19959: 19959: extern template wistream& wistream::_M_extract(long long&); 19959: extern template wistream& wistream::_M_extract(unsigned long long&); 19959: 19959: extern template wistream& wistream::_M_extract(float&); 19959: extern template wistream& wistream::_M_extract(double&); 19959: extern template wistream& wistream::_M_extract(long double&); 19959: extern template wistream& wistream::_M_extract(void*&); 19959: 19959: extern template class basic_iostream; 19959: 19959: 19959: 19959: 19959: } 19959: # 1107 "/usr/include/c++/13/istream" 2 3 19959: # 41 "/usr/include/c++/13/sstream" 2 3 19959: # 55 "/usr/include/c++/13/sstream" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: namespace __cxx11 { 19959: # 78 "/usr/include/c++/13/sstream" 3 19959: template 19959: class basic_stringbuf : public basic_streambuf<_CharT, _Traits> 19959: { 19959: struct __xfer_bufptrs; 19959: 19959: 19959: using allocator_traits = std::allocator_traits<_Alloc>; 19959: using _Noexcept_swap 19959: = __or_; 19959: 19959: 19959: public: 19959: 19959: typedef _CharT char_type; 19959: typedef _Traits traits_type; 19959: 19959: 19959: typedef _Alloc allocator_type; 19959: typedef typename traits_type::int_type int_type; 19959: typedef typename traits_type::pos_type pos_type; 19959: typedef typename traits_type::off_type off_type; 19959: 19959: typedef basic_streambuf __streambuf_type; 19959: typedef basic_string __string_type; 19959: typedef typename __string_type::size_type __size_type; 19959: 19959: protected: 19959: 19959: ios_base::openmode _M_mode; 19959: 19959: 19959: __string_type _M_string; 19959: 19959: public: 19959: # 121 "/usr/include/c++/13/sstream" 3 19959: basic_stringbuf() 19959: : __streambuf_type(), _M_mode(ios_base::in | ios_base::out), _M_string() 19959: { } 19959: # 132 "/usr/include/c++/13/sstream" 3 19959: explicit 19959: basic_stringbuf(ios_base::openmode __mode) 19959: : __streambuf_type(), _M_mode(__mode), _M_string() 19959: { } 19959: # 145 "/usr/include/c++/13/sstream" 3 19959: explicit 19959: basic_stringbuf(const __string_type& __str, 19959: ios_base::openmode __mode = ios_base::in | ios_base::out) 19959: : __streambuf_type(), _M_mode(), 19959: _M_string(__str.data(), __str.size(), __str.get_allocator()) 19959: { _M_stringbuf_init(__mode); } 19959: 19959: 19959: basic_stringbuf(const basic_stringbuf&) = delete; 19959: 19959: basic_stringbuf(basic_stringbuf&& __rhs) 19959: : basic_stringbuf(std::move(__rhs), __xfer_bufptrs(__rhs, this)) 19959: { __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); } 19959: # 209 "/usr/include/c++/13/sstream" 3 19959: basic_stringbuf& 19959: operator=(const basic_stringbuf&) = delete; 19959: 19959: basic_stringbuf& 19959: operator=(basic_stringbuf&& __rhs) 19959: { 19959: __xfer_bufptrs __st{__rhs, this}; 19959: const __streambuf_type& __base = __rhs; 19959: __streambuf_type::operator=(__base); 19959: this->pubimbue(__rhs.getloc()); 19959: _M_mode = __rhs._M_mode; 19959: _M_string = std::move(__rhs._M_string); 19959: __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); 19959: return *this; 19959: } 19959: 19959: void 19959: swap(basic_stringbuf& __rhs) noexcept(_Noexcept_swap::value) 19959: { 19959: __xfer_bufptrs __l_st{*this, std::__addressof(__rhs)}; 19959: __xfer_bufptrs __r_st{__rhs, this}; 19959: __streambuf_type& __base = __rhs; 19959: __streambuf_type::swap(__base); 19959: __rhs.pubimbue(this->pubimbue(__rhs.getloc())); 19959: std::swap(_M_mode, __rhs._M_mode); 19959: std::swap(_M_string, __rhs._M_string); 19959: } 19959: # 248 "/usr/include/c++/13/sstream" 3 19959: __string_type 19959: str() const 19959: { 19959: __string_type __ret(_M_string.get_allocator()); 19959: if (char_type* __hi = _M_high_mark()) 19959: __ret.assign(this->pbase(), __hi); 19959: else 19959: __ret = _M_string; 19959: return __ret; 19959: } 19959: # 304 "/usr/include/c++/13/sstream" 3 19959: void 19959: str(const __string_type& __s) 19959: { 19959: 19959: 19959: _M_string.assign(__s.data(), __s.size()); 19959: _M_stringbuf_init(_M_mode); 19959: } 19959: # 333 "/usr/include/c++/13/sstream" 3 19959: protected: 19959: 19959: void 19959: _M_stringbuf_init(ios_base::openmode __mode) 19959: { 19959: _M_mode = __mode; 19959: __size_type __len = 0; 19959: if (_M_mode & (ios_base::ate | ios_base::app)) 19959: __len = _M_string.size(); 19959: _M_sync(const_cast(_M_string.data()), 0, __len); 19959: } 19959: 19959: virtual streamsize 19959: showmanyc() 19959: { 19959: streamsize __ret = -1; 19959: if (_M_mode & ios_base::in) 19959: { 19959: _M_update_egptr(); 19959: __ret = this->egptr() - this->gptr(); 19959: } 19959: return __ret; 19959: } 19959: 19959: virtual int_type 19959: underflow(); 19959: 19959: virtual int_type 19959: pbackfail(int_type __c = traits_type::eof()); 19959: 19959: virtual int_type 19959: overflow(int_type __c = traits_type::eof()); 19959: # 377 "/usr/include/c++/13/sstream" 3 19959: virtual __streambuf_type* 19959: setbuf(char_type* __s, streamsize __n) 19959: { 19959: if (__s && __n >= 0) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: _M_string.clear(); 19959: 19959: 19959: _M_sync(__s, __n, 0); 19959: } 19959: return this; 19959: } 19959: 19959: virtual pos_type 19959: seekoff(off_type __off, ios_base::seekdir __way, 19959: ios_base::openmode __mode = ios_base::in | ios_base::out); 19959: 19959: virtual pos_type 19959: seekpos(pos_type __sp, 19959: ios_base::openmode __mode = ios_base::in | ios_base::out); 19959: 19959: 19959: 19959: 19959: void 19959: _M_sync(char_type* __base, __size_type __i, __size_type __o); 19959: 19959: 19959: 19959: void 19959: _M_update_egptr() 19959: { 19959: if (char_type* __pptr = this->pptr()) 19959: { 19959: char_type* __egptr = this->egptr(); 19959: if (!__egptr || __pptr > __egptr) 19959: { 19959: if (_M_mode & ios_base::in) 19959: this->setg(this->eback(), this->gptr(), __pptr); 19959: else 19959: this->setg(__pptr, __pptr, __pptr); 19959: } 19959: } 19959: } 19959: 19959: 19959: 19959: void 19959: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); 19959: 19959: private: 19959: 19959: 19959: 19959: 19959: __attribute__((__always_inline__)) 19959: char_type* 19959: _M_high_mark() const noexcept 19959: { 19959: if (char_type* __pptr = this->pptr()) 19959: { 19959: char_type* __egptr = this->egptr(); 19959: if (!__egptr || __pptr > __egptr) 19959: return __pptr; 19959: else 19959: return __egptr; 19959: } 19959: return 0; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: struct __xfer_bufptrs 19959: { 19959: __xfer_bufptrs(const basic_stringbuf& __from, basic_stringbuf* __to) 19959: : _M_to{__to}, _M_goff{-1, -1, -1}, _M_poff{-1, -1, -1} 19959: { 19959: const _CharT* const __str = __from._M_string.data(); 19959: const _CharT* __end = nullptr; 19959: if (__from.eback()) 19959: { 19959: _M_goff[0] = __from.eback() - __str; 19959: _M_goff[1] = __from.gptr() - __str; 19959: _M_goff[2] = __from.egptr() - __str; 19959: __end = __from.egptr(); 19959: } 19959: if (__from.pbase()) 19959: { 19959: _M_poff[0] = __from.pbase() - __str; 19959: _M_poff[1] = __from.pptr() - __from.pbase(); 19959: _M_poff[2] = __from.epptr() - __str; 19959: if (!__end || __from.pptr() > __end) 19959: __end = __from.pptr(); 19959: } 19959: 19959: 19959: if (__end) 19959: { 19959: 19959: 19959: auto& __mut_from = const_cast(__from); 19959: __mut_from._M_string._M_length(__end - __str); 19959: } 19959: } 19959: 19959: ~__xfer_bufptrs() 19959: { 19959: char_type* __str = const_cast(_M_to->_M_string.data()); 19959: if (_M_goff[0] != -1) 19959: _M_to->setg(__str+_M_goff[0], __str+_M_goff[1], __str+_M_goff[2]); 19959: if (_M_poff[0] != -1) 19959: _M_to->_M_pbump(__str+_M_poff[0], __str+_M_poff[2], _M_poff[1]); 19959: } 19959: 19959: basic_stringbuf* _M_to; 19959: off_type _M_goff[3]; 19959: off_type _M_poff[3]; 19959: }; 19959: # 513 "/usr/include/c++/13/sstream" 3 19959: basic_stringbuf(basic_stringbuf&& __rhs, __xfer_bufptrs&&) 19959: : __streambuf_type(static_cast(__rhs)), 19959: _M_mode(__rhs._M_mode), _M_string(std::move(__rhs._M_string)) 19959: { } 19959: # 528 "/usr/include/c++/13/sstream" 3 19959: }; 19959: # 546 "/usr/include/c++/13/sstream" 3 19959: template 19959: class basic_istringstream : public basic_istream<_CharT, _Traits> 19959: { 19959: public: 19959: 19959: typedef _CharT char_type; 19959: typedef _Traits traits_type; 19959: 19959: 19959: typedef _Alloc allocator_type; 19959: typedef typename traits_type::int_type int_type; 19959: typedef typename traits_type::pos_type pos_type; 19959: typedef typename traits_type::off_type off_type; 19959: 19959: 19959: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 19959: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 19959: typedef basic_istream __istream_type; 19959: 19959: private: 19959: __stringbuf_type _M_stringbuf; 19959: 19959: public: 19959: # 580 "/usr/include/c++/13/sstream" 3 19959: basic_istringstream() 19959: : __istream_type(), _M_stringbuf(ios_base::in) 19959: { this->init(&_M_stringbuf); } 19959: # 596 "/usr/include/c++/13/sstream" 3 19959: explicit 19959: basic_istringstream(ios_base::openmode __mode) 19959: : __istream_type(), _M_stringbuf(__mode | ios_base::in) 19959: { this->init(&_M_stringbuf); } 19959: # 614 "/usr/include/c++/13/sstream" 3 19959: explicit 19959: basic_istringstream(const __string_type& __str, 19959: ios_base::openmode __mode = ios_base::in) 19959: : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) 19959: { this->init(&_M_stringbuf); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ~basic_istringstream() 19959: { } 19959: 19959: 19959: basic_istringstream(const basic_istringstream&) = delete; 19959: 19959: basic_istringstream(basic_istringstream&& __rhs) 19959: : __istream_type(std::move(__rhs)), 19959: _M_stringbuf(std::move(__rhs._M_stringbuf)) 19959: { __istream_type::set_rdbuf(&_M_stringbuf); } 19959: # 671 "/usr/include/c++/13/sstream" 3 19959: basic_istringstream& 19959: operator=(const basic_istringstream&) = delete; 19959: 19959: basic_istringstream& 19959: operator=(basic_istringstream&& __rhs) 19959: { 19959: __istream_type::operator=(std::move(__rhs)); 19959: _M_stringbuf = std::move(__rhs._M_stringbuf); 19959: return *this; 19959: } 19959: 19959: void 19959: swap(basic_istringstream& __rhs) 19959: { 19959: __istream_type::swap(__rhs); 19959: _M_stringbuf.swap(__rhs._M_stringbuf); 19959: } 19959: # 697 "/usr/include/c++/13/sstream" 3 19959: __stringbuf_type* 19959: rdbuf() const 19959: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 19959: 19959: 19959: 19959: 19959: 19959: __string_type 19959: str() const 19959: { return _M_stringbuf.str(); } 19959: # 735 "/usr/include/c++/13/sstream" 3 19959: void 19959: str(const __string_type& __s) 19959: { _M_stringbuf.str(__s); } 19959: # 752 "/usr/include/c++/13/sstream" 3 19959: }; 19959: # 770 "/usr/include/c++/13/sstream" 3 19959: template 19959: class basic_ostringstream : public basic_ostream<_CharT, _Traits> 19959: { 19959: public: 19959: 19959: typedef _CharT char_type; 19959: typedef _Traits traits_type; 19959: 19959: 19959: typedef _Alloc allocator_type; 19959: typedef typename traits_type::int_type int_type; 19959: typedef typename traits_type::pos_type pos_type; 19959: typedef typename traits_type::off_type off_type; 19959: 19959: 19959: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 19959: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 19959: typedef basic_ostream __ostream_type; 19959: 19959: private: 19959: __stringbuf_type _M_stringbuf; 19959: 19959: public: 19959: # 804 "/usr/include/c++/13/sstream" 3 19959: basic_ostringstream() 19959: : __ostream_type(), _M_stringbuf(ios_base::out) 19959: { this->init(&_M_stringbuf); } 19959: # 820 "/usr/include/c++/13/sstream" 3 19959: explicit 19959: basic_ostringstream(ios_base::openmode __mode) 19959: : __ostream_type(), _M_stringbuf(__mode | ios_base::out) 19959: { this->init(&_M_stringbuf); } 19959: # 838 "/usr/include/c++/13/sstream" 3 19959: explicit 19959: basic_ostringstream(const __string_type& __str, 19959: ios_base::openmode __mode = ios_base::out) 19959: : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) 19959: { this->init(&_M_stringbuf); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ~basic_ostringstream() 19959: { } 19959: 19959: 19959: basic_ostringstream(const basic_ostringstream&) = delete; 19959: 19959: basic_ostringstream(basic_ostringstream&& __rhs) 19959: : __ostream_type(std::move(__rhs)), 19959: _M_stringbuf(std::move(__rhs._M_stringbuf)) 19959: { __ostream_type::set_rdbuf(&_M_stringbuf); } 19959: # 895 "/usr/include/c++/13/sstream" 3 19959: basic_ostringstream& 19959: operator=(const basic_ostringstream&) = delete; 19959: 19959: basic_ostringstream& 19959: operator=(basic_ostringstream&& __rhs) 19959: { 19959: __ostream_type::operator=(std::move(__rhs)); 19959: _M_stringbuf = std::move(__rhs._M_stringbuf); 19959: return *this; 19959: } 19959: 19959: void 19959: swap(basic_ostringstream& __rhs) 19959: { 19959: __ostream_type::swap(__rhs); 19959: _M_stringbuf.swap(__rhs._M_stringbuf); 19959: } 19959: # 921 "/usr/include/c++/13/sstream" 3 19959: __stringbuf_type* 19959: rdbuf() const 19959: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 19959: 19959: 19959: 19959: 19959: 19959: __string_type 19959: str() const 19959: { return _M_stringbuf.str(); } 19959: # 959 "/usr/include/c++/13/sstream" 3 19959: void 19959: str(const __string_type& __s) 19959: { _M_stringbuf.str(__s); } 19959: # 976 "/usr/include/c++/13/sstream" 3 19959: }; 19959: # 994 "/usr/include/c++/13/sstream" 3 19959: template 19959: class basic_stringstream : public basic_iostream<_CharT, _Traits> 19959: { 19959: public: 19959: 19959: typedef _CharT char_type; 19959: typedef _Traits traits_type; 19959: 19959: 19959: typedef _Alloc allocator_type; 19959: typedef typename traits_type::int_type int_type; 19959: typedef typename traits_type::pos_type pos_type; 19959: typedef typename traits_type::off_type off_type; 19959: 19959: 19959: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 19959: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 19959: typedef basic_iostream __iostream_type; 19959: 19959: private: 19959: __stringbuf_type _M_stringbuf; 19959: 19959: public: 19959: # 1028 "/usr/include/c++/13/sstream" 3 19959: basic_stringstream() 19959: : __iostream_type(), _M_stringbuf(ios_base::out | ios_base::in) 19959: { this->init(&_M_stringbuf); } 19959: # 1042 "/usr/include/c++/13/sstream" 3 19959: explicit 19959: basic_stringstream(ios_base::openmode __m) 19959: : __iostream_type(), _M_stringbuf(__m) 19959: { this->init(&_M_stringbuf); } 19959: # 1058 "/usr/include/c++/13/sstream" 3 19959: explicit 19959: basic_stringstream(const __string_type& __str, 19959: ios_base::openmode __m = ios_base::out | ios_base::in) 19959: : __iostream_type(), _M_stringbuf(__str, __m) 19959: { this->init(&_M_stringbuf); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ~basic_stringstream() 19959: { } 19959: 19959: 19959: basic_stringstream(const basic_stringstream&) = delete; 19959: 19959: basic_stringstream(basic_stringstream&& __rhs) 19959: : __iostream_type(std::move(__rhs)), 19959: _M_stringbuf(std::move(__rhs._M_stringbuf)) 19959: { __iostream_type::set_rdbuf(&_M_stringbuf); } 19959: # 1117 "/usr/include/c++/13/sstream" 3 19959: basic_stringstream& 19959: operator=(const basic_stringstream&) = delete; 19959: 19959: basic_stringstream& 19959: operator=(basic_stringstream&& __rhs) 19959: { 19959: __iostream_type::operator=(std::move(__rhs)); 19959: _M_stringbuf = std::move(__rhs._M_stringbuf); 19959: return *this; 19959: } 19959: 19959: void 19959: swap(basic_stringstream& __rhs) 19959: { 19959: __iostream_type::swap(__rhs); 19959: _M_stringbuf.swap(__rhs._M_stringbuf); 19959: } 19959: # 1143 "/usr/include/c++/13/sstream" 3 19959: __stringbuf_type* 19959: rdbuf() const 19959: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 19959: 19959: 19959: 19959: 19959: 19959: __string_type 19959: str() const 19959: { return _M_stringbuf.str(); } 19959: # 1181 "/usr/include/c++/13/sstream" 3 19959: void 19959: str(const __string_type& __s) 19959: { _M_stringbuf.str(__s); } 19959: # 1198 "/usr/include/c++/13/sstream" 3 19959: }; 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, 19959: basic_stringbuf<_CharT, _Traits, _Allocator>& __y) 19959: noexcept(noexcept(__x.swap(__y))) 19959: { __x.swap(__y); } 19959: 19959: 19959: template 19959: inline void 19959: swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, 19959: basic_istringstream<_CharT, _Traits, _Allocator>& __y) 19959: { __x.swap(__y); } 19959: 19959: 19959: template 19959: inline void 19959: swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, 19959: basic_ostringstream<_CharT, _Traits, _Allocator>& __y) 19959: { __x.swap(__y); } 19959: 19959: 19959: template 19959: inline void 19959: swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, 19959: basic_stringstream<_CharT, _Traits, _Allocator>& __y) 19959: { __x.swap(__y); } 19959: 19959: 19959: } 19959: 19959: } 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/sstream.tcc" 1 3 19959: # 37 "/usr/include/c++/13/bits/sstream.tcc" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/sstream.tcc" 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template 19959: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 19959: basic_stringbuf<_CharT, _Traits, _Alloc>:: 19959: pbackfail(int_type __c) 19959: { 19959: int_type __ret = traits_type::eof(); 19959: if (this->eback() < this->gptr()) 19959: { 19959: 19959: 19959: const bool __testeof = traits_type::eq_int_type(__c, __ret); 19959: if (!__testeof) 19959: { 19959: const bool __testeq = traits_type::eq(traits_type:: 19959: to_char_type(__c), 19959: this->gptr()[-1]); 19959: const bool __testout = this->_M_mode & ios_base::out; 19959: if (__testeq || __testout) 19959: { 19959: this->gbump(-1); 19959: if (!__testeq) 19959: *this->gptr() = traits_type::to_char_type(__c); 19959: __ret = __c; 19959: } 19959: } 19959: else 19959: { 19959: this->gbump(-1); 19959: __ret = traits_type::not_eof(__c); 19959: } 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 19959: basic_stringbuf<_CharT, _Traits, _Alloc>:: 19959: overflow(int_type __c) 19959: { 19959: const bool __testout = this->_M_mode & ios_base::out; 19959: if (__builtin_expect(!__testout, false)) 19959: return traits_type::eof(); 19959: 19959: const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); 19959: if (__builtin_expect(__testeof, false)) 19959: return traits_type::not_eof(__c); 19959: 19959: const __size_type __capacity = _M_string.capacity(); 19959: 19959: 19959: if (size_t(this->epptr() - this->pbase()) < __capacity) 19959: { 19959: 19959: char_type* __base = const_cast(_M_string.data()); 19959: _M_pbump(__base, __base + __capacity, this->pptr() - this->pbase()); 19959: if (_M_mode & ios_base::in) 19959: { 19959: const __size_type __nget = this->gptr() - this->eback(); 19959: const __size_type __eget = this->egptr() - this->eback(); 19959: this->setg(__base, __base + __nget, __base + __eget + 1); 19959: } 19959: *this->pptr() = traits_type::to_char_type(__c); 19959: this->pbump(1); 19959: return __c; 19959: } 19959: 19959: 19959: const __size_type __max_size = _M_string.max_size(); 19959: const bool __testput = this->pptr() < this->epptr(); 19959: if (__builtin_expect(!__testput && __capacity == __max_size, false)) 19959: return traits_type::eof(); 19959: 19959: 19959: 19959: const char_type __conv = traits_type::to_char_type(__c); 19959: if (!__testput) 19959: { 19959: # 129 "/usr/include/c++/13/bits/sstream.tcc" 3 19959: const __size_type __opt_len = std::max(__size_type(2 * __capacity), 19959: __size_type(512)); 19959: const __size_type __len = std::min(__opt_len, __max_size); 19959: __string_type __tmp(_M_string.get_allocator()); 19959: __tmp.reserve(__len); 19959: if (this->pbase()) 19959: __tmp.assign(this->pbase(), this->epptr() - this->pbase()); 19959: __tmp.push_back(__conv); 19959: _M_string.swap(__tmp); 19959: _M_sync(const_cast(_M_string.data()), 19959: this->gptr() - this->eback(), this->pptr() - this->pbase()); 19959: } 19959: else 19959: *this->pptr() = __conv; 19959: this->pbump(1); 19959: return __c; 19959: } 19959: 19959: template 19959: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 19959: basic_stringbuf<_CharT, _Traits, _Alloc>:: 19959: underflow() 19959: { 19959: int_type __ret = traits_type::eof(); 19959: const bool __testin = this->_M_mode & ios_base::in; 19959: if (__testin) 19959: { 19959: 19959: _M_update_egptr(); 19959: 19959: if (this->gptr() < this->egptr()) 19959: __ret = traits_type::to_int_type(*this->gptr()); 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 19959: basic_stringbuf<_CharT, _Traits, _Alloc>:: 19959: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) 19959: { 19959: pos_type __ret = pos_type(off_type(-1)); 19959: bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 19959: bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 19959: const bool __testboth = __testin && __testout && __way != ios_base::cur; 19959: __testin &= !(__mode & ios_base::out); 19959: __testout &= !(__mode & ios_base::in); 19959: 19959: 19959: 19959: const char_type* __beg = __testin ? this->eback() : this->pbase(); 19959: if ((__beg || !__off) && (__testin || __testout || __testboth)) 19959: { 19959: _M_update_egptr(); 19959: 19959: off_type __newoffi = __off; 19959: off_type __newoffo = __newoffi; 19959: if (__way == ios_base::cur) 19959: { 19959: __newoffi += this->gptr() - __beg; 19959: __newoffo += this->pptr() - __beg; 19959: } 19959: else if (__way == ios_base::end) 19959: __newoffo = __newoffi += this->egptr() - __beg; 19959: 19959: if ((__testin || __testboth) 19959: && __newoffi >= 0 19959: && this->egptr() - __beg >= __newoffi) 19959: { 19959: this->setg(this->eback(), this->eback() + __newoffi, 19959: this->egptr()); 19959: __ret = pos_type(__newoffi); 19959: } 19959: if ((__testout || __testboth) 19959: && __newoffo >= 0 19959: && this->egptr() - __beg >= __newoffo) 19959: { 19959: _M_pbump(this->pbase(), this->epptr(), __newoffo); 19959: __ret = pos_type(__newoffo); 19959: } 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 19959: basic_stringbuf<_CharT, _Traits, _Alloc>:: 19959: seekpos(pos_type __sp, ios_base::openmode __mode) 19959: { 19959: pos_type __ret = pos_type(off_type(-1)); 19959: const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 19959: const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 19959: 19959: const char_type* __beg = __testin ? this->eback() : this->pbase(); 19959: if ((__beg || !off_type(__sp)) && (__testin || __testout)) 19959: { 19959: _M_update_egptr(); 19959: 19959: const off_type __pos(__sp); 19959: const bool __testpos = (0 <= __pos 19959: && __pos <= this->egptr() - __beg); 19959: if (__testpos) 19959: { 19959: if (__testin) 19959: this->setg(this->eback(), this->eback() + __pos, 19959: this->egptr()); 19959: if (__testout) 19959: _M_pbump(this->pbase(), this->epptr(), __pos); 19959: __ret = __sp; 19959: } 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: void 19959: basic_stringbuf<_CharT, _Traits, _Alloc>:: 19959: _M_sync(char_type* __base, __size_type __i, __size_type __o) 19959: { 19959: const bool __testin = _M_mode & ios_base::in; 19959: const bool __testout = _M_mode & ios_base::out; 19959: char_type* __endg = __base + _M_string.size(); 19959: char_type* __endp = __base + _M_string.capacity(); 19959: 19959: if (__base != _M_string.data()) 19959: { 19959: 19959: __endg += __i; 19959: __i = 0; 19959: __endp = __endg; 19959: } 19959: 19959: if (__testin) 19959: this->setg(__base, __base + __i, __endg); 19959: if (__testout) 19959: { 19959: _M_pbump(__base, __endp, __o); 19959: 19959: 19959: 19959: if (!__testin) 19959: this->setg(__endg, __endg, __endg); 19959: } 19959: } 19959: 19959: template 19959: void 19959: basic_stringbuf<_CharT, _Traits, _Alloc>:: 19959: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) 19959: { 19959: this->setp(__pbeg, __pend); 19959: while (__off > __gnu_cxx::__numeric_traits::__max) 19959: { 19959: this->pbump(__gnu_cxx::__numeric_traits::__max); 19959: __off -= __gnu_cxx::__numeric_traits::__max; 19959: } 19959: this->pbump(__off); 19959: } 19959: 19959: 19959: 19959: 19959: extern template class basic_stringbuf; 19959: extern template class basic_istringstream; 19959: extern template class basic_ostringstream; 19959: extern template class basic_stringstream; 19959: 19959: 19959: extern template class basic_stringbuf; 19959: extern template class basic_istringstream; 19959: extern template class basic_ostringstream; 19959: extern template class basic_stringstream; 19959: 19959: 19959: 19959: 19959: } 19959: # 1239 "/usr/include/c++/13/sstream" 2 3 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 2 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 1 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/cstdarg" 1 3 19959: # 39 "/usr/include/c++/13/cstdarg" 3 19959: 19959: # 40 "/usr/include/c++/13/cstdarg" 3 19959: 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdarg.h" 1 3 4 19959: # 44 "/usr/include/c++/13/cstdarg" 2 3 19959: # 53 "/usr/include/c++/13/cstdarg" 3 19959: namespace std 19959: { 19959: using ::va_list; 19959: } 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 2 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/functor_wrapper.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/functor_wrapper.h" 19959: namespace rocksdb { 19959: 19959: namespace detail { 19959: template 19959: struct IndexSequence {}; 19959: 19959: template 19959: struct IndexSequenceHelper 19959: : public IndexSequenceHelper {}; 19959: 19959: template 19959: struct IndexSequenceHelper<0U, Next...> { 19959: using type = IndexSequence; 19959: }; 19959: 19959: template 19959: using make_index_sequence = typename IndexSequenceHelper::type; 19959: 19959: template 19959: void call(Function f, Tuple t, IndexSequence) { 19959: f(std::get(t)...); 19959: } 19959: 19959: template 19959: void call(Function f, Tuple t) { 19959: static constexpr auto size = std::tuple_size::value; 19959: call(f, t, make_index_sequence{}); 19959: } 19959: } 19959: 19959: template 19959: class FunctorWrapper { 19959: public: 19959: explicit FunctorWrapper(std::function functor, Args &&...args) 19959: : functor_(std::move(functor)), args_(std::forward(args)...) {} 19959: 19959: void invoke() { detail::call(functor_, args_); } 19959: 19959: private: 19959: std::function functor_; 19959: std::tuple args_; 19959: }; 19959: } 19959: # 30 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 2 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/thread_status.h" 1 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/thread_status.h" 19959: 19959: # 29 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/thread_status.h" 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: template 19959: struct constexpr_max { 19959: static const int result = (A > B) ? A : B; 19959: }; 19959: 19959: 19959: 19959: 19959: struct ThreadStatus { 19959: 19959: enum ThreadType : int { 19959: HIGH_PRIORITY = 0, 19959: LOW_PRIORITY, 19959: USER, 19959: BOTTOM_PRIORITY, 19959: NUM_THREAD_TYPES 19959: }; 19959: 19959: 19959: 19959: 19959: enum OperationType : int { 19959: OP_UNKNOWN = 0, 19959: OP_COMPACTION, 19959: OP_FLUSH, 19959: OP_DBOPEN, 19959: OP_GET, 19959: OP_MULTIGET, 19959: OP_DBITERATOR, 19959: OP_VERIFY_DB_CHECKSUM, 19959: OP_VERIFY_FILE_CHECKSUMS, 19959: OP_GETENTITY, 19959: OP_MULTIGETENTITY, 19959: NUM_OP_TYPES 19959: }; 19959: 19959: enum OperationStage : int { 19959: STAGE_UNKNOWN = 0, 19959: STAGE_FLUSH_RUN, 19959: STAGE_FLUSH_WRITE_L0, 19959: STAGE_COMPACTION_PREPARE, 19959: STAGE_COMPACTION_RUN, 19959: STAGE_COMPACTION_PROCESS_KV, 19959: STAGE_COMPACTION_INSTALL, 19959: STAGE_COMPACTION_SYNC_FILE, 19959: STAGE_PICK_MEMTABLES_TO_FLUSH, 19959: STAGE_MEMTABLE_ROLLBACK, 19959: STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 19959: NUM_OP_STAGES 19959: }; 19959: 19959: enum CompactionPropertyType : int { 19959: COMPACTION_JOB_ID = 0, 19959: COMPACTION_INPUT_OUTPUT_LEVEL, 19959: COMPACTION_PROP_FLAGS, 19959: COMPACTION_TOTAL_INPUT_BYTES, 19959: COMPACTION_BYTES_READ, 19959: COMPACTION_BYTES_WRITTEN, 19959: NUM_COMPACTION_PROPERTIES 19959: }; 19959: 19959: enum FlushPropertyType : int { 19959: FLUSH_JOB_ID = 0, 19959: FLUSH_BYTES_MEMTABLES, 19959: FLUSH_BYTES_WRITTEN, 19959: NUM_FLUSH_PROPERTIES 19959: }; 19959: 19959: 19959: 19959: static const int kNumOperationProperties = 19959: constexpr_max::result; 19959: 19959: 19959: 19959: 19959: enum StateType : int { 19959: STATE_UNKNOWN = 0, 19959: STATE_MUTEX_WAIT = 1, 19959: NUM_STATE_TYPES 19959: }; 19959: 19959: ThreadStatus(const uint64_t _id, const ThreadType _thread_type, 19959: const std::string& _db_name, const std::string& _cf_name, 19959: const OperationType _operation_type, 19959: const uint64_t _op_elapsed_micros, 19959: const OperationStage _operation_stage, 19959: const uint64_t _op_props[], const StateType _state_type) 19959: : thread_id(_id), 19959: thread_type(_thread_type), 19959: db_name(_db_name), 19959: cf_name(_cf_name), 19959: operation_type(_operation_type), 19959: op_elapsed_micros(_op_elapsed_micros), 19959: operation_stage(_operation_stage), 19959: state_type(_state_type) { 19959: for (int i = 0; i < kNumOperationProperties; ++i) { 19959: op_properties[i] = _op_props[i]; 19959: } 19959: } 19959: 19959: 19959: const uint64_t thread_id; 19959: 19959: 19959: 19959: const ThreadType thread_type; 19959: 19959: 19959: 19959: 19959: const std::string db_name; 19959: 19959: 19959: 19959: 19959: const std::string cf_name; 19959: 19959: 19959: const OperationType operation_type; 19959: 19959: 19959: const uint64_t op_elapsed_micros; 19959: 19959: 19959: 19959: const OperationStage operation_stage; 19959: 19959: 19959: 19959: 19959: uint64_t op_properties[kNumOperationProperties]; 19959: 19959: 19959: const StateType state_type; 19959: 19959: 19959: 19959: 19959: static std::string GetThreadTypeName(ThreadType thread_type); 19959: 19959: 19959: static const std::string& GetOperationName(OperationType op_type); 19959: 19959: static const std::string MicrosToString(uint64_t op_elapsed_time); 19959: 19959: 19959: static const std::string& GetOperationStageName(OperationStage stage); 19959: 19959: 19959: 19959: static const std::string& GetOperationPropertyName(OperationType op_type, 19959: int i); 19959: 19959: 19959: 19959: static std::map InterpretOperationProperties( 19959: OperationType op_type, const uint64_t* op_properties); 19959: 19959: 19959: static const std::string& GetStateName(StateType state_type); 19959: }; 19959: 19959: } 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 2 19959: # 48 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: namespace rocksdb { 19959: 19959: class DynamicLibrary; 19959: class FileLock; 19959: class Logger; 19959: class RandomAccessFile; 19959: class SequentialFile; 19959: class Slice; 19959: struct DataVerificationInfo; 19959: class WritableFile; 19959: class RandomRWFile; 19959: class MemoryMappedFileBuffer; 19959: class Directory; 19959: struct DBOptions; 19959: struct ImmutableDBOptions; 19959: struct MutableDBOptions; 19959: class RateLimiter; 19959: class ThreadStatusUpdater; 19959: struct ThreadStatus; 19959: class FileSystem; 19959: class SystemClock; 19959: struct ConfigOptions; 19959: 19959: const size_t kDefaultPageSize = 4 * 1024; 19959: 19959: 19959: struct EnvOptions { 19959: 19959: EnvOptions(); 19959: 19959: 19959: explicit EnvOptions(const DBOptions& options); 19959: 19959: 19959: 19959: bool use_mmap_reads = false; 19959: 19959: 19959: bool use_mmap_writes = true; 19959: 19959: 19959: bool use_direct_reads = false; 19959: 19959: 19959: bool use_direct_writes = false; 19959: 19959: 19959: bool allow_fallocate = true; 19959: 19959: 19959: bool set_fd_cloexec = true; 19959: 19959: 19959: 19959: 19959: 19959: uint64_t bytes_per_sync = 0; 19959: # 121 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: bool strict_bytes_per_sync = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool fallocate_with_keep_size = true; 19959: 19959: 19959: size_t compaction_readahead_size = 0; 19959: 19959: 19959: size_t random_access_max_buffer_size = 0; 19959: 19959: 19959: size_t writable_file_max_buffer_size = 1024 * 1024; 19959: 19959: 19959: RateLimiter* rate_limiter = nullptr; 19959: }; 19959: 19959: 19959: 19959: 19959: class Env : public Customizable { 19959: public: 19959: static const char* kDefaultName() { return "DefaultEnv"; } 19959: struct FileAttributes { 19959: 19959: std::string name; 19959: 19959: 19959: uint64_t size_bytes; 19959: }; 19959: 19959: Env(); 19959: 19959: 19959: explicit Env(const std::shared_ptr& fs); 19959: Env(const std::shared_ptr& fs, 19959: const std::shared_ptr& clock); 19959: 19959: Env(const Env&) = delete; 19959: void operator=(const Env&) = delete; 19959: 19959: ~Env() override; 19959: 19959: static const char* Type() { return "Environment"; } 19959: 19959: 19959: 19959: const char* Name() const override { return ""; } 19959: # 189 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: static Status CreateFromString(const ConfigOptions& config_options, 19959: const std::string& value, Env** result); 19959: static Status CreateFromString(const ConfigOptions& config_options, 19959: const std::string& value, Env** result, 19959: std::shared_ptr* guard); 19959: 19959: 19959: 19959: 19959: 19959: static Status CreateFromUri(const ConfigOptions& options, 19959: const std::string& env_uri, 19959: const std::string& fs_uri, Env** result, 19959: std::shared_ptr* guard); 19959: 19959: 19959: 19959: 19959: 19959: 19959: static Env* Default(); 19959: 19959: 19959: virtual Status RegisterDbPaths(const std::vector& ) { 19959: return Status::OK(); 19959: } 19959: 19959: virtual Status UnregisterDbPaths(const std::vector& ) { 19959: return Status::OK(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status NewSequentialFile(const std::string& fname, 19959: std::unique_ptr* result, 19959: const EnvOptions& options) = 0; 19959: # 237 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status NewRandomAccessFile(const std::string& fname, 19959: std::unique_ptr* result, 19959: const EnvOptions& options) = 0; 19959: 19959: 19959: enum WriteLifeTimeHint { 19959: WLTH_NOT_SET = 0, 19959: WLTH_NONE, 19959: WLTH_SHORT, 19959: WLTH_MEDIUM, 19959: WLTH_LONG, 19959: WLTH_EXTREME, 19959: }; 19959: # 258 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status NewWritableFile(const std::string& fname, 19959: std::unique_ptr* result, 19959: const EnvOptions& options) = 0; 19959: # 270 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status ReopenWritableFile(const std::string& , 19959: std::unique_ptr* , 19959: const EnvOptions& ) { 19959: return Status::NotSupported("Env::ReopenWritableFile() not supported."); 19959: } 19959: 19959: 19959: virtual Status ReuseWritableFile(const std::string& fname, 19959: const std::string& old_fname, 19959: std::unique_ptr* result, 19959: const EnvOptions& options); 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status NewRandomRWFile(const std::string& , 19959: std::unique_ptr* , 19959: const EnvOptions& ) { 19959: return Status::NotSupported("RandomRWFile is not implemented in this Env"); 19959: } 19959: 19959: 19959: 19959: 19959: virtual Status NewMemoryMappedFileBuffer( 19959: const std::string& , 19959: std::unique_ptr* ) { 19959: return Status::NotSupported( 19959: "MemoryMappedFileBuffer is not implemented in this Env"); 19959: } 19959: # 310 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status NewDirectory(const std::string& name, 19959: std::unique_ptr* result) = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status FileExists(const std::string& fname) = 0; 19959: # 328 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status GetChildren(const std::string& dir, 19959: std::vector* result) = 0; 19959: # 342 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status GetChildrenFileAttributes(const std::string& dir, 19959: std::vector* result); 19959: 19959: 19959: virtual Status DeleteFile(const std::string& fname) = 0; 19959: 19959: 19959: virtual Status Truncate(const std::string& , size_t ) { 19959: return Status::NotSupported("Truncate is not supported for this Env"); 19959: } 19959: 19959: 19959: virtual Status CreateDir(const std::string& dirname) = 0; 19959: 19959: 19959: 19959: virtual Status CreateDirIfMissing(const std::string& dirname) = 0; 19959: 19959: 19959: 19959: 19959: virtual Status DeleteDir(const std::string& dirname) = 0; 19959: 19959: 19959: virtual Status GetFileSize(const std::string& fname, uint64_t* file_size) = 0; 19959: 19959: 19959: virtual Status GetFileModificationTime(const std::string& fname, 19959: uint64_t* file_mtime) = 0; 19959: 19959: virtual Status RenameFile(const std::string& src, 19959: const std::string& target) = 0; 19959: 19959: 19959: virtual Status LinkFile(const std::string& , 19959: const std::string& ) { 19959: return Status::NotSupported("LinkFile is not supported for this Env"); 19959: } 19959: 19959: virtual Status NumFileLinks(const std::string& , 19959: uint64_t* ) { 19959: return Status::NotSupported( 19959: "Getting number of file links is not supported for this Env"); 19959: } 19959: 19959: virtual Status AreFilesSame(const std::string& , 19959: const std::string& , bool* ) { 19959: return Status::NotSupported("AreFilesSame is not supported for this Env"); 19959: } 19959: # 406 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status LockFile(const std::string& fname, FileLock** lock) = 0; 19959: 19959: 19959: 19959: 19959: virtual Status UnlockFile(FileLock* lock) = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status LoadLibrary(const std::string& , 19959: const std::string& , 19959: std::shared_ptr* ) { 19959: return Status::NotSupported("LoadLibrary is not implemented in this Env"); 19959: } 19959: 19959: 19959: enum Priority { BOTTOM, LOW, HIGH, USER, TOTAL }; 19959: 19959: static std::string PriorityToString(Priority priority); 19959: 19959: 19959: enum IOPriority { 19959: IO_LOW = 0, 19959: IO_MID = 1, 19959: IO_HIGH = 2, 19959: IO_USER = 3, 19959: IO_TOTAL = 4 19959: }; 19959: 19959: 19959: enum class IOActivity : uint8_t { 19959: kFlush = 0, 19959: kCompaction = 1, 19959: kDBOpen = 2, 19959: kGet = 3, 19959: kMultiGet = 4, 19959: kDBIterator = 5, 19959: kVerifyDBChecksum = 6, 19959: kVerifyFileChecksums = 7, 19959: kGetEntity = 8, 19959: kMultiGetEntity = 9, 19959: kUnknown, 19959: }; 19959: # 464 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual void Schedule(void (*function)(void* arg), void* arg, 19959: Priority pri = LOW, void* tag = nullptr, 19959: void (*unschedFunction)(void* arg) = nullptr) = 0; 19959: 19959: 19959: 19959: virtual int UnSchedule(void* , Priority ) { return 0; } 19959: 19959: 19959: 19959: virtual void StartThread(void (*function)(void* arg), void* arg) = 0; 19959: 19959: 19959: 19959: template 19959: void StartThreadTyped(FunctionT function, Args&&... args) { 19959: using FWType = FunctorWrapper; 19959: StartThread( 19959: [](void* arg) { 19959: auto* functor = static_cast(arg); 19959: functor->invoke(); 19959: delete functor; 19959: }, 19959: new FWType(std::function(function), 19959: std::forward(args)...)); 19959: } 19959: 19959: 19959: virtual void WaitForJoin() {} 19959: 19959: 19959: virtual int ReserveThreads(int , Priority ) { 19959: return 0; 19959: } 19959: 19959: 19959: 19959: virtual int ReleaseThreads(int , Priority ) { 19959: return 0; 19959: } 19959: 19959: 19959: virtual unsigned int GetThreadPoolQueueLen(Priority = LOW) const { 19959: return 0; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual Status GetTestDirectory(std::string* path) = 0; 19959: 19959: 19959: 19959: 19959: virtual Status NewLogger(const std::string& fname, 19959: std::shared_ptr* result); 19959: 19959: 19959: 19959: 19959: virtual uint64_t NowMicros() = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 19959: 19959: 19959: virtual uint64_t NowCPUNanos() { return 0; } 19959: 19959: 19959: virtual void SleepForMicroseconds(int micros) = 0; 19959: 19959: 19959: 19959: virtual Status GetHostName(char* name, uint64_t len) = 0; 19959: 19959: 19959: 19959: 19959: virtual Status GetHostNameString(std::string* result); 19959: 19959: 19959: 19959: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 19959: 19959: 19959: virtual Status GetAbsolutePath(const std::string& db_path, 19959: std::string* output_path) = 0; 19959: 19959: 19959: 19959: 19959: virtual void SetBackgroundThreads(int number, Priority pri = LOW) = 0; 19959: virtual int GetBackgroundThreads(Priority pri = LOW) = 0; 19959: 19959: virtual Status SetAllowNonOwnerAccess(bool ) { 19959: return Status::NotSupported("Env::SetAllowNonOwnerAccess() not supported."); 19959: } 19959: 19959: 19959: 19959: 19959: virtual void IncBackgroundThreadsIfNeeded(int number, Priority pri) = 0; 19959: 19959: 19959: virtual void LowerThreadPoolIOPriority(Priority = LOW) {} 19959: 19959: 19959: virtual Status LowerThreadPoolCPUPriority(Priority , 19959: CpuPriority ) { 19959: return Status::NotSupported( 19959: "Env::LowerThreadPoolCPUPriority(Priority, CpuPriority) not supported"); 19959: } 19959: 19959: 19959: virtual void LowerThreadPoolCPUPriority(Priority = LOW) {} 19959: 19959: 19959: virtual std::string TimeToString(uint64_t time) = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual std::string GenerateUniqueId(); 19959: 19959: 19959: 19959: virtual EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const; 19959: 19959: 19959: 19959: 19959: virtual EnvOptions OptimizeForManifestRead( 19959: const EnvOptions& env_options) const; 19959: 19959: 19959: 19959: 19959: virtual EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 19959: const DBOptions& db_options) const; 19959: 19959: 19959: 19959: virtual EnvOptions OptimizeForManifestWrite( 19959: const EnvOptions& env_options) const; 19959: 19959: 19959: 19959: 19959: virtual EnvOptions OptimizeForCompactionTableWrite( 19959: const EnvOptions& env_options, 19959: const ImmutableDBOptions& immutable_ops) const; 19959: 19959: 19959: 19959: 19959: virtual EnvOptions OptimizeForCompactionTableRead( 19959: const EnvOptions& env_options, 19959: const ImmutableDBOptions& db_options) const; 19959: 19959: 19959: 19959: 19959: virtual EnvOptions OptimizeForBlobFileRead( 19959: const EnvOptions& env_options, 19959: const ImmutableDBOptions& db_options) const; 19959: 19959: 19959: virtual Status GetThreadList(std::vector* ) { 19959: return Status::NotSupported("Env::GetThreadList() not supported."); 19959: } 19959: 19959: 19959: 19959: 19959: virtual ThreadStatusUpdater* GetThreadStatusUpdater() const { 19959: return thread_status_updater_; 19959: } 19959: 19959: 19959: virtual uint64_t GetThreadID() const; 19959: 19959: 19959: 19959: 19959: 19959: virtual Status GetFreeSpace(const std::string& , 19959: uint64_t* ) { 19959: return Status::NotSupported("Env::GetFreeSpace() not supported."); 19959: } 19959: 19959: 19959: virtual Status IsDirectory(const std::string& , bool* ) { 19959: return Status::NotSupported("Env::IsDirectory() not supported."); 19959: } 19959: 19959: virtual void SanitizeEnvOptions(EnvOptions* ) const {} 19959: 19959: 19959: 19959: const std::shared_ptr& GetFileSystem() const; 19959: 19959: 19959: 19959: const std::shared_ptr& GetSystemClock() const; 19959: 19959: 19959: 19959: protected: 19959: 19959: 19959: ThreadStatusUpdater* thread_status_updater_; 19959: 19959: 19959: std::shared_ptr file_system_; 19959: 19959: 19959: std::shared_ptr system_clock_; 19959: 19959: private: 19959: static const size_t kMaxHostNameLen = 256; 19959: }; 19959: 19959: 19959: 19959: 19959: ThreadStatusUpdater* CreateThreadStatusUpdater(); 19959: 19959: 19959: class SequentialFile { 19959: public: 19959: SequentialFile() {} 19959: virtual ~SequentialFile(); 19959: # 715 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status Read(size_t n, Slice* result, char* scratch) = 0; 19959: # 724 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status Skip(uint64_t n) = 0; 19959: 19959: 19959: 19959: virtual bool use_direct_io() const { return false; } 19959: 19959: 19959: 19959: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 19959: 19959: 19959: 19959: 19959: virtual Status InvalidateCache(size_t , size_t ) { 19959: return Status::NotSupported( 19959: "SequentialFile::InvalidateCache not supported."); 19959: } 19959: 19959: 19959: 19959: virtual Status PositionedRead(uint64_t , size_t , 19959: Slice* , char* ) { 19959: return Status::NotSupported( 19959: "SequentialFile::PositionedRead() not supported."); 19959: } 19959: 19959: 19959: 19959: }; 19959: 19959: 19959: struct ReadRequest { 19959: 19959: uint64_t offset; 19959: 19959: 19959: 19959: size_t len; 19959: 19959: 19959: 19959: char* scratch; 19959: 19959: 19959: 19959: Slice result; 19959: 19959: 19959: Status status; 19959: }; 19959: 19959: 19959: class RandomAccessFile { 19959: public: 19959: RandomAccessFile() {} 19959: virtual ~RandomAccessFile(); 19959: # 795 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status Read(uint64_t offset, size_t n, Slice* result, 19959: char* scratch) const = 0; 19959: 19959: 19959: virtual Status Prefetch(uint64_t , size_t ) { 19959: return Status::OK(); 19959: } 19959: # 810 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status MultiRead(ReadRequest* reqs, size_t num_reqs) { 19959: 19959: # 811 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 19959: (static_cast ( 19959: # 811 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: reqs != nullptr 19959: # 811 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 811 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: "reqs != nullptr" 19959: # 811 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 19959: , "./include/rocksdb/env.h", 811, __extension__ __PRETTY_FUNCTION__)) 19959: # 811 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: ; 19959: for (size_t i = 0; i < num_reqs; ++i) { 19959: ReadRequest& req = reqs[i]; 19959: req.status = Read(req.offset, req.len, &req.result, req.scratch); 19959: } 19959: return Status::OK(); 19959: } 19959: # 834 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual size_t GetUniqueId(char* , size_t ) const { 19959: return 0; 19959: 19959: } 19959: 19959: enum AccessPattern { NORMAL, RANDOM, SEQUENTIAL, WILLNEED, DONTNEED }; 19959: 19959: virtual void Hint(AccessPattern ) {} 19959: 19959: 19959: 19959: virtual bool use_direct_io() const { return false; } 19959: 19959: 19959: 19959: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 19959: 19959: 19959: 19959: 19959: virtual Status InvalidateCache(size_t , size_t ) { 19959: return Status::NotSupported( 19959: "RandomAccessFile::InvalidateCache not supported."); 19959: } 19959: 19959: 19959: 19959: }; 19959: 19959: 19959: 19959: 19959: class WritableFile { 19959: public: 19959: WritableFile() 19959: : last_preallocated_block_(0), 19959: preallocation_block_size_(0), 19959: io_priority_(Env::IO_TOTAL), 19959: write_hint_(Env::WLTH_NOT_SET), 19959: strict_bytes_per_sync_(false) {} 19959: 19959: explicit WritableFile(const EnvOptions& options) 19959: : last_preallocated_block_(0), 19959: preallocation_block_size_(0), 19959: io_priority_(Env::IO_TOTAL), 19959: write_hint_(Env::WLTH_NOT_SET), 19959: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 19959: 19959: WritableFile(const WritableFile&) = delete; 19959: void operator=(const WritableFile&) = delete; 19959: 19959: 19959: 19959: 19959: virtual ~WritableFile(); 19959: 19959: 19959: 19959: 19959: virtual Status Append(const Slice& data) = 0; 19959: # 902 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status Append(const Slice& data, 19959: const DataVerificationInfo& ) { 19959: return Append(data); 19959: } 19959: # 927 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status PositionedAppend(const Slice& , 19959: uint64_t ) { 19959: return Status::NotSupported( 19959: "WritableFile::PositionedAppend() not supported."); 19959: } 19959: # 940 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status PositionedAppend( 19959: const Slice& , uint64_t , 19959: const DataVerificationInfo& ) { 19959: return Status::NotSupported("PositionedAppend"); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Truncate(uint64_t ) { return Status::OK(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Close() = 0; 19959: virtual Status Flush() = 0; 19959: virtual Status Sync() = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Fsync() { return Sync(); } 19959: 19959: 19959: 19959: virtual bool IsSyncThreadSafe() const { return false; } 19959: 19959: 19959: 19959: virtual bool use_direct_io() const { return false; } 19959: 19959: 19959: 19959: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 19959: # 992 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 19959: 19959: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 19959: 19959: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 19959: write_hint_ = hint; 19959: } 19959: 19959: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 19959: 19959: 19959: 19959: virtual uint64_t GetFileSize() { return 0; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void SetPreallocationBlockSize(size_t size) { 19959: preallocation_block_size_ = size; 19959: } 19959: 19959: virtual void GetPreallocationStatus(size_t* block_size, 19959: size_t* last_allocated_block) { 19959: *last_allocated_block = last_preallocated_block_; 19959: *block_size = preallocation_block_size_; 19959: } 19959: 19959: 19959: virtual size_t GetUniqueId(char* , size_t ) const { 19959: return 0; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual Status InvalidateCache(size_t , size_t ) { 19959: return Status::NotSupported("WritableFile::InvalidateCache not supported."); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status RangeSync(uint64_t , uint64_t ) { 19959: if (strict_bytes_per_sync_) { 19959: return Sync(); 19959: } 19959: return Status::OK(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void PrepareWrite(size_t offset, size_t len) { 19959: if (preallocation_block_size_ == 0) { 19959: return; 19959: } 19959: 19959: 19959: 19959: const auto block_size = preallocation_block_size_; 19959: size_t new_last_preallocated_block = 19959: (offset + len + block_size - 1) / block_size; 19959: if (new_last_preallocated_block > last_preallocated_block_) { 19959: size_t num_spanned_blocks = 19959: new_last_preallocated_block - last_preallocated_block_; 19959: 19959: Allocate(block_size * last_preallocated_block_, 19959: block_size * num_spanned_blocks) 19959: .PermitUncheckedError(); 19959: last_preallocated_block_ = new_last_preallocated_block; 19959: } 19959: } 19959: 19959: 19959: virtual Status Allocate(uint64_t , uint64_t ) { 19959: return Status::OK(); 19959: } 19959: 19959: 19959: 19959: 19959: protected: 19959: size_t preallocation_block_size() { return preallocation_block_size_; } 19959: 19959: private: 19959: size_t last_preallocated_block_; 19959: size_t preallocation_block_size_; 19959: 19959: protected: 19959: Env::IOPriority io_priority_; 19959: Env::WriteLifeTimeHint write_hint_; 19959: const bool strict_bytes_per_sync_; 19959: }; 19959: 19959: 19959: class RandomRWFile { 19959: public: 19959: RandomRWFile() {} 19959: 19959: RandomRWFile(const RandomRWFile&) = delete; 19959: RandomRWFile& operator=(const RandomRWFile&) = delete; 19959: 19959: 19959: 19959: 19959: virtual ~RandomRWFile() {} 19959: 19959: 19959: 19959: virtual bool use_direct_io() const { return false; } 19959: 19959: 19959: 19959: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 19959: 19959: 19959: 19959: virtual Status Write(uint64_t offset, const Slice& data) = 0; 19959: # 1128 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: virtual Status Read(uint64_t offset, size_t n, Slice* result, 19959: char* scratch) const = 0; 19959: 19959: virtual Status Flush() = 0; 19959: 19959: virtual Status Sync() = 0; 19959: 19959: virtual Status Fsync() { return Sync(); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Close() = 0; 19959: 19959: 19959: 19959: }; 19959: 19959: 19959: 19959: class MemoryMappedFileBuffer { 19959: public: 19959: MemoryMappedFileBuffer(void* _base, size_t _length) 19959: : base_(_base), length_(_length) {} 19959: 19959: virtual ~MemoryMappedFileBuffer() = 0; 19959: 19959: 19959: 19959: MemoryMappedFileBuffer(const MemoryMappedFileBuffer&) = delete; 19959: MemoryMappedFileBuffer& operator=(const MemoryMappedFileBuffer&) = delete; 19959: 19959: void* GetBase() const { return base_; } 19959: size_t GetLen() const { return length_; } 19959: 19959: protected: 19959: void* base_; 19959: const size_t length_; 19959: }; 19959: 19959: 19959: 19959: class Directory { 19959: public: 19959: 19959: 19959: virtual ~Directory() {} 19959: 19959: virtual Status Fsync() = 0; 19959: 19959: 19959: 19959: virtual Status Close() { return Status::NotSupported("Close"); } 19959: 19959: virtual size_t GetUniqueId(char* , size_t ) const { 19959: return 0; 19959: } 19959: 19959: 19959: 19959: }; 19959: 19959: enum InfoLogLevel : unsigned char { 19959: DEBUG_LEVEL = 0, 19959: INFO_LEVEL, 19959: WARN_LEVEL, 19959: ERROR_LEVEL, 19959: FATAL_LEVEL, 19959: HEADER_LEVEL, 19959: NUM_INFO_LOG_LEVELS, 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class Logger { 19959: public: 19959: size_t kDoNotSupportGetLogFileSize = (std::numeric_limits::max)(); 19959: 19959: explicit Logger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL) 19959: : closed_(false), log_level_(log_level) {} 19959: 19959: Logger(const Logger&) = delete; 19959: void operator=(const Logger&) = delete; 19959: 19959: virtual ~Logger(); 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Close(); 19959: 19959: 19959: 19959: 19959: virtual void LogHeader(const char* format, va_list ap) { 19959: 19959: 19959: Logv(InfoLogLevel::INFO_LEVEL, format, ap); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void Logv(const char* , va_list ) { 19959: 19959: # 1241 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 19959: (static_cast ( 19959: # 1241 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: false 19959: # 1241 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1241 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: "false" 19959: # 1241 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 19959: , "./include/rocksdb/env.h", 1241, __extension__ __PRETTY_FUNCTION__)) 19959: # 1241 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: ; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual void Logv(const InfoLogLevel log_level, const char* format, 19959: va_list ap); 19959: 19959: virtual size_t GetLogFileSize() const { return kDoNotSupportGetLogFileSize; } 19959: 19959: virtual void Flush() {} 19959: virtual InfoLogLevel GetInfoLogLevel() const { return log_level_; } 19959: virtual void SetInfoLogLevel(const InfoLogLevel log_level) { 19959: log_level_ = log_level; 19959: } 19959: 19959: 19959: 19959: protected: 19959: virtual Status CloseImpl(); 19959: bool closed_; 19959: 19959: private: 19959: InfoLogLevel log_level_; 19959: }; 19959: 19959: 19959: 19959: 19959: class FileLock { 19959: public: 19959: FileLock() {} 19959: virtual ~FileLock(); 19959: 19959: private: 19959: 19959: FileLock(const FileLock&) = delete; 19959: void operator=(const FileLock&) = delete; 19959: }; 19959: 19959: class DynamicLibrary { 19959: public: 19959: virtual ~DynamicLibrary() {} 19959: 19959: 19959: virtual const char* Name() const = 0; 19959: 19959: 19959: 19959: template 19959: Status LoadFunction(const std::string& sym_name, std::function* function) { 19959: 19959: # 1294 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 19959: (static_cast ( 19959: # 1294 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: nullptr != function 19959: # 1294 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1294 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: "nullptr != function" 19959: # 1294 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 19959: , "./include/rocksdb/env.h", 1294, __extension__ __PRETTY_FUNCTION__)) 19959: # 1294 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: ; 19959: void* ptr = nullptr; 19959: Status s = LoadSymbol(sym_name, &ptr); 19959: *function = reinterpret_cast(ptr); 19959: return s; 19959: } 19959: 19959: virtual Status LoadSymbol(const std::string& sym_name, void** func) = 0; 19959: }; 19959: 19959: extern void LogFlush(const std::shared_ptr& info_log); 19959: 19959: extern void Log(const InfoLogLevel log_level, 19959: const std::shared_ptr& info_log, const char* format, 19959: ...) __attribute__((__format__(__printf__, 3, 4))); 19959: 19959: 19959: extern void Header(const std::shared_ptr& info_log, const char* format, 19959: ...) __attribute__((__format__(__printf__, 2, 3))); 19959: extern void Debug(const std::shared_ptr& info_log, const char* format, 19959: ...) __attribute__((__format__(__printf__, 2, 3))); 19959: extern void Info(const std::shared_ptr& info_log, const char* format, 19959: ...) __attribute__((__format__(__printf__, 2, 3))); 19959: extern void Warn(const std::shared_ptr& info_log, const char* format, 19959: ...) __attribute__((__format__(__printf__, 2, 3))); 19959: extern void Error(const std::shared_ptr& info_log, const char* format, 19959: ...) __attribute__((__format__(__printf__, 2, 3))); 19959: extern void Fatal(const std::shared_ptr& info_log, const char* format, 19959: ...) __attribute__((__format__(__printf__, 2, 3))); 19959: 19959: 19959: 19959: extern void Log(const std::shared_ptr& info_log, const char* format, 19959: ...) __attribute__((__format__(__printf__, 2, 3))); 19959: 19959: extern void LogFlush(Logger* info_log); 19959: 19959: extern void Log(const InfoLogLevel log_level, Logger* info_log, 19959: const char* format, ...) __attribute__((__format__(__printf__, 3, 4))); 19959: 19959: 19959: extern void Log(Logger* info_log, const char* format, ...) 19959: __attribute__((__format__(__printf__, 2, 3))); 19959: 19959: 19959: extern void Header(Logger* info_log, const char* format, ...) 19959: __attribute__((__format__(__printf__, 2, 3))); 19959: extern void Debug(Logger* info_log, const char* format, ...) 19959: __attribute__((__format__(__printf__, 2, 3))); 19959: extern void Info(Logger* info_log, const char* format, ...) 19959: __attribute__((__format__(__printf__, 2, 3))); 19959: extern void Warn(Logger* info_log, const char* format, ...) 19959: __attribute__((__format__(__printf__, 2, 3))); 19959: extern void Error(Logger* info_log, const char* format, ...) 19959: __attribute__((__format__(__printf__, 2, 3))); 19959: extern void Fatal(Logger* info_log, const char* format, ...) 19959: __attribute__((__format__(__printf__, 2, 3))); 19959: 19959: 19959: extern Status WriteStringToFile(Env* env, const Slice& data, 19959: const std::string& fname, 19959: bool should_sync = false); 19959: 19959: 19959: extern Status ReadFileToString(Env* env, const std::string& fname, 19959: std::string* data); 19959: # 1389 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 19959: class EnvWrapper : public Env { 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: struct Target { 19959: Env* env; 19959: std::shared_ptr guard; 19959: 19959: 19959: explicit Target(Env* t) : env(t) {} 19959: 19959: 19959: explicit Target(std::unique_ptr&& t) : guard(t.release()) { 19959: env = guard.get(); 19959: } 19959: 19959: 19959: explicit Target(const std::shared_ptr& t) : guard(t) { 19959: env = guard.get(); 19959: } 19959: 19959: 19959: void Prepare() { 19959: if (guard.get() != nullptr) { 19959: env = guard.get(); 19959: } else if (env == nullptr) { 19959: env = Env::Default(); 19959: } 19959: } 19959: }; 19959: 19959: 19959: explicit EnvWrapper(Env* t); 19959: explicit EnvWrapper(std::unique_ptr&& t); 19959: explicit EnvWrapper(const std::shared_ptr& t); 19959: ~EnvWrapper() override; 19959: 19959: 19959: Env* target() const { return target_.env; } 19959: 19959: 19959: 19959: const char* Name() const override { return target_.env->Name(); } 19959: 19959: 19959: Status RegisterDbPaths(const std::vector& paths) override { 19959: return target_.env->RegisterDbPaths(paths); 19959: } 19959: 19959: Status UnregisterDbPaths(const std::vector& paths) override { 19959: return target_.env->UnregisterDbPaths(paths); 19959: } 19959: 19959: Status NewSequentialFile(const std::string& f, 19959: std::unique_ptr* r, 19959: const EnvOptions& options) override { 19959: return target_.env->NewSequentialFile(f, r, options); 19959: } 19959: Status NewRandomAccessFile(const std::string& f, 19959: std::unique_ptr* r, 19959: const EnvOptions& options) override { 19959: return target_.env->NewRandomAccessFile(f, r, options); 19959: } 19959: Status NewWritableFile(const std::string& f, std::unique_ptr* r, 19959: const EnvOptions& options) override { 19959: return target_.env->NewWritableFile(f, r, options); 19959: } 19959: Status ReopenWritableFile(const std::string& fname, 19959: std::unique_ptr* result, 19959: const EnvOptions& options) override { 19959: return target_.env->ReopenWritableFile(fname, result, options); 19959: } 19959: Status ReuseWritableFile(const std::string& fname, 19959: const std::string& old_fname, 19959: std::unique_ptr* r, 19959: const EnvOptions& options) override { 19959: return target_.env->ReuseWritableFile(fname, old_fname, r, options); 19959: } 19959: Status NewRandomRWFile(const std::string& fname, 19959: std::unique_ptr* result, 19959: const EnvOptions& options) override { 19959: return target_.env->NewRandomRWFile(fname, result, options); 19959: } 19959: Status NewMemoryMappedFileBuffer( 19959: const std::string& fname, 19959: std::unique_ptr* result) override { 19959: return target_.env->NewMemoryMappedFileBuffer(fname, result); 19959: } 19959: Status NewDirectory(const std::string& name, 19959: std::unique_ptr* result) override { 19959: return target_.env->NewDirectory(name, result); 19959: } 19959: Status FileExists(const std::string& f) override { 19959: return target_.env->FileExists(f); 19959: } 19959: Status GetChildren(const std::string& dir, 19959: std::vector* r) override { 19959: return target_.env->GetChildren(dir, r); 19959: } 19959: Status GetChildrenFileAttributes( 19959: const std::string& dir, std::vector* result) override { 19959: return target_.env->GetChildrenFileAttributes(dir, result); 19959: } 19959: Status DeleteFile(const std::string& f) override { 19959: return target_.env->DeleteFile(f); 19959: } 19959: Status Truncate(const std::string& fname, size_t size) override { 19959: return target_.env->Truncate(fname, size); 19959: } 19959: Status CreateDir(const std::string& d) override { 19959: return target_.env->CreateDir(d); 19959: } 19959: Status CreateDirIfMissing(const std::string& d) override { 19959: return target_.env->CreateDirIfMissing(d); 19959: } 19959: Status DeleteDir(const std::string& d) override { 19959: return target_.env->DeleteDir(d); 19959: } 19959: Status GetFileSize(const std::string& f, uint64_t* s) override { 19959: return target_.env->GetFileSize(f, s); 19959: } 19959: 19959: Status GetFileModificationTime(const std::string& fname, 19959: uint64_t* file_mtime) override { 19959: return target_.env->GetFileModificationTime(fname, file_mtime); 19959: } 19959: 19959: Status RenameFile(const std::string& s, const std::string& t) override { 19959: return target_.env->RenameFile(s, t); 19959: } 19959: 19959: Status LinkFile(const std::string& s, const std::string& t) override { 19959: return target_.env->LinkFile(s, t); 19959: } 19959: 19959: Status NumFileLinks(const std::string& fname, uint64_t* count) override { 19959: return target_.env->NumFileLinks(fname, count); 19959: } 19959: 19959: Status AreFilesSame(const std::string& first, const std::string& second, 19959: bool* res) override { 19959: return target_.env->AreFilesSame(first, second, res); 19959: } 19959: 19959: Status LockFile(const std::string& f, FileLock** l) override { 19959: return target_.env->LockFile(f, l); 19959: } 19959: 19959: Status UnlockFile(FileLock* l) override { return target_.env->UnlockFile(l); } 19959: 19959: Status IsDirectory(const std::string& path, bool* is_dir) override { 19959: return target_.env->IsDirectory(path, is_dir); 19959: } 19959: 19959: Status LoadLibrary(const std::string& lib_name, 19959: const std::string& search_path, 19959: std::shared_ptr* result) override { 19959: return target_.env->LoadLibrary(lib_name, search_path, result); 19959: } 19959: 19959: void Schedule(void (*f)(void* arg), void* a, Priority pri, 19959: void* tag = nullptr, void (*u)(void* arg) = nullptr) override { 19959: return target_.env->Schedule(f, a, pri, tag, u); 19959: } 19959: 19959: int UnSchedule(void* tag, Priority pri) override { 19959: return target_.env->UnSchedule(tag, pri); 19959: } 19959: 19959: void StartThread(void (*f)(void*), void* a) override { 19959: return target_.env->StartThread(f, a); 19959: } 19959: void WaitForJoin() override { return target_.env->WaitForJoin(); } 19959: unsigned int GetThreadPoolQueueLen(Priority pri = LOW) const override { 19959: return target_.env->GetThreadPoolQueueLen(pri); 19959: } 19959: 19959: int ReserveThreads(int threads_to_be_reserved, Priority pri) override { 19959: return target_.env->ReserveThreads(threads_to_be_reserved, pri); 19959: } 19959: 19959: int ReleaseThreads(int threads_to_be_released, Priority pri) override { 19959: return target_.env->ReleaseThreads(threads_to_be_released, pri); 19959: } 19959: 19959: Status GetTestDirectory(std::string* path) override { 19959: return target_.env->GetTestDirectory(path); 19959: } 19959: Status NewLogger(const std::string& fname, 19959: std::shared_ptr* result) override { 19959: return target_.env->NewLogger(fname, result); 19959: } 19959: uint64_t NowMicros() override { return target_.env->NowMicros(); } 19959: uint64_t NowNanos() override { return target_.env->NowNanos(); } 19959: uint64_t NowCPUNanos() override { return target_.env->NowCPUNanos(); } 19959: 19959: void SleepForMicroseconds(int micros) override { 19959: target_.env->SleepForMicroseconds(micros); 19959: } 19959: Status GetHostName(char* name, uint64_t len) override { 19959: return target_.env->GetHostName(name, len); 19959: } 19959: Status GetCurrentTime(int64_t* unix_time) override { 19959: return target_.env->GetCurrentTime(unix_time); 19959: } 19959: Status GetAbsolutePath(const std::string& db_path, 19959: std::string* output_path) override { 19959: return target_.env->GetAbsolutePath(db_path, output_path); 19959: } 19959: void SetBackgroundThreads(int num, Priority pri) override { 19959: return target_.env->SetBackgroundThreads(num, pri); 19959: } 19959: int GetBackgroundThreads(Priority pri) override { 19959: return target_.env->GetBackgroundThreads(pri); 19959: } 19959: 19959: Status SetAllowNonOwnerAccess(bool allow_non_owner_access) override { 19959: return target_.env->SetAllowNonOwnerAccess(allow_non_owner_access); 19959: } 19959: 19959: void IncBackgroundThreadsIfNeeded(int num, Priority pri) override { 19959: return target_.env->IncBackgroundThreadsIfNeeded(num, pri); 19959: } 19959: 19959: void LowerThreadPoolIOPriority(Priority pool) override { 19959: target_.env->LowerThreadPoolIOPriority(pool); 19959: } 19959: 19959: void LowerThreadPoolCPUPriority(Priority pool) override { 19959: target_.env->LowerThreadPoolCPUPriority(pool); 19959: } 19959: 19959: Status LowerThreadPoolCPUPriority(Priority pool, CpuPriority pri) override { 19959: return target_.env->LowerThreadPoolCPUPriority(pool, pri); 19959: } 19959: 19959: std::string TimeToString(uint64_t time) override { 19959: return target_.env->TimeToString(time); 19959: } 19959: 19959: Status GetThreadList(std::vector* thread_list) override { 19959: return target_.env->GetThreadList(thread_list); 19959: } 19959: 19959: ThreadStatusUpdater* GetThreadStatusUpdater() const override { 19959: return target_.env->GetThreadStatusUpdater(); 19959: } 19959: 19959: uint64_t GetThreadID() const override { return target_.env->GetThreadID(); } 19959: 19959: std::string GenerateUniqueId() override { 19959: return target_.env->GenerateUniqueId(); 19959: } 19959: 19959: EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const override { 19959: return target_.env->OptimizeForLogRead(env_options); 19959: } 19959: EnvOptions OptimizeForManifestRead( 19959: const EnvOptions& env_options) const override { 19959: return target_.env->OptimizeForManifestRead(env_options); 19959: } 19959: EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 19959: const DBOptions& db_options) const override { 19959: return target_.env->OptimizeForLogWrite(env_options, db_options); 19959: } 19959: EnvOptions OptimizeForManifestWrite( 19959: const EnvOptions& env_options) const override { 19959: return target_.env->OptimizeForManifestWrite(env_options); 19959: } 19959: EnvOptions OptimizeForCompactionTableWrite( 19959: const EnvOptions& env_options, 19959: const ImmutableDBOptions& immutable_ops) const override { 19959: return target_.env->OptimizeForCompactionTableWrite(env_options, 19959: immutable_ops); 19959: } 19959: EnvOptions OptimizeForCompactionTableRead( 19959: const EnvOptions& env_options, 19959: const ImmutableDBOptions& db_options) const override { 19959: return target_.env->OptimizeForCompactionTableRead(env_options, db_options); 19959: } 19959: EnvOptions OptimizeForBlobFileRead( 19959: const EnvOptions& env_options, 19959: const ImmutableDBOptions& db_options) const override { 19959: return target_.env->OptimizeForBlobFileRead(env_options, db_options); 19959: } 19959: Status GetFreeSpace(const std::string& path, uint64_t* diskfree) override { 19959: return target_.env->GetFreeSpace(path, diskfree); 19959: } 19959: void SanitizeEnvOptions(EnvOptions* env_opts) const override { 19959: target_.env->SanitizeEnvOptions(env_opts); 19959: } 19959: Status PrepareOptions(const ConfigOptions& options) override; 19959: std::string SerializeOptions(const ConfigOptions& config_options, 19959: const std::string& header) const override; 19959: 19959: private: 19959: Target target_; 19959: }; 19959: 19959: class SequentialFileWrapper : public SequentialFile { 19959: public: 19959: explicit SequentialFileWrapper(SequentialFile* target) : target_(target) {} 19959: 19959: Status Read(size_t n, Slice* result, char* scratch) override { 19959: return target_->Read(n, result, scratch); 19959: } 19959: Status Skip(uint64_t n) override { return target_->Skip(n); } 19959: bool use_direct_io() const override { return target_->use_direct_io(); } 19959: size_t GetRequiredBufferAlignment() const override { 19959: return target_->GetRequiredBufferAlignment(); 19959: } 19959: Status InvalidateCache(size_t offset, size_t length) override { 19959: return target_->InvalidateCache(offset, length); 19959: } 19959: Status PositionedRead(uint64_t offset, size_t n, Slice* result, 19959: char* scratch) override { 19959: return target_->PositionedRead(offset, n, result, scratch); 19959: } 19959: 19959: private: 19959: SequentialFile* target_; 19959: }; 19959: 19959: class RandomAccessFileWrapper : public RandomAccessFile { 19959: public: 19959: explicit RandomAccessFileWrapper(RandomAccessFile* target) 19959: : target_(target) {} 19959: 19959: Status Read(uint64_t offset, size_t n, Slice* result, 19959: char* scratch) const override { 19959: return target_->Read(offset, n, result, scratch); 19959: } 19959: Status MultiRead(ReadRequest* reqs, size_t num_reqs) override { 19959: return target_->MultiRead(reqs, num_reqs); 19959: } 19959: Status Prefetch(uint64_t offset, size_t n) override { 19959: return target_->Prefetch(offset, n); 19959: } 19959: size_t GetUniqueId(char* id, size_t max_size) const override { 19959: return target_->GetUniqueId(id, max_size); 19959: } 19959: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 19959: bool use_direct_io() const override { return target_->use_direct_io(); } 19959: size_t GetRequiredBufferAlignment() const override { 19959: return target_->GetRequiredBufferAlignment(); 19959: } 19959: Status InvalidateCache(size_t offset, size_t length) override { 19959: return target_->InvalidateCache(offset, length); 19959: } 19959: 19959: private: 19959: RandomAccessFile* target_; 19959: }; 19959: 19959: class WritableFileWrapper : public WritableFile { 19959: public: 19959: explicit WritableFileWrapper(WritableFile* t) : target_(t) {} 19959: 19959: Status Append(const Slice& data) override { return target_->Append(data); } 19959: Status Append(const Slice& data, 19959: const DataVerificationInfo& verification_info) override { 19959: return target_->Append(data, verification_info); 19959: } 19959: Status PositionedAppend(const Slice& data, uint64_t offset) override { 19959: return target_->PositionedAppend(data, offset); 19959: } 19959: Status PositionedAppend( 19959: const Slice& data, uint64_t offset, 19959: const DataVerificationInfo& verification_info) override { 19959: return target_->PositionedAppend(data, offset, verification_info); 19959: } 19959: Status Truncate(uint64_t size) override { return target_->Truncate(size); } 19959: Status Close() override { return target_->Close(); } 19959: Status Flush() override { return target_->Flush(); } 19959: Status Sync() override { return target_->Sync(); } 19959: Status Fsync() override { return target_->Fsync(); } 19959: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 19959: 19959: bool use_direct_io() const override { return target_->use_direct_io(); } 19959: 19959: size_t GetRequiredBufferAlignment() const override { 19959: return target_->GetRequiredBufferAlignment(); 19959: } 19959: 19959: void SetIOPriority(Env::IOPriority pri) override { 19959: target_->SetIOPriority(pri); 19959: } 19959: 19959: Env::IOPriority GetIOPriority() override { return target_->GetIOPriority(); } 19959: 19959: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 19959: target_->SetWriteLifeTimeHint(hint); 19959: } 19959: 19959: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 19959: return target_->GetWriteLifeTimeHint(); 19959: } 19959: 19959: uint64_t GetFileSize() override { return target_->GetFileSize(); } 19959: 19959: void SetPreallocationBlockSize(size_t size) override { 19959: target_->SetPreallocationBlockSize(size); 19959: } 19959: 19959: void GetPreallocationStatus(size_t* block_size, 19959: size_t* last_allocated_block) override { 19959: target_->GetPreallocationStatus(block_size, last_allocated_block); 19959: } 19959: 19959: size_t GetUniqueId(char* id, size_t max_size) const override { 19959: return target_->GetUniqueId(id, max_size); 19959: } 19959: 19959: Status InvalidateCache(size_t offset, size_t length) override { 19959: return target_->InvalidateCache(offset, length); 19959: } 19959: 19959: Status RangeSync(uint64_t offset, uint64_t nbytes) override { 19959: return target_->RangeSync(offset, nbytes); 19959: } 19959: 19959: void PrepareWrite(size_t offset, size_t len) override { 19959: target_->PrepareWrite(offset, len); 19959: } 19959: 19959: Status Allocate(uint64_t offset, uint64_t len) override { 19959: return target_->Allocate(offset, len); 19959: } 19959: 19959: private: 19959: WritableFile* target_; 19959: }; 19959: 19959: class RandomRWFileWrapper : public RandomRWFile { 19959: public: 19959: explicit RandomRWFileWrapper(RandomRWFile* target) : target_(target) {} 19959: 19959: bool use_direct_io() const override { return target_->use_direct_io(); } 19959: size_t GetRequiredBufferAlignment() const override { 19959: return target_->GetRequiredBufferAlignment(); 19959: } 19959: Status Write(uint64_t offset, const Slice& data) override { 19959: return target_->Write(offset, data); 19959: } 19959: Status Read(uint64_t offset, size_t n, Slice* result, 19959: char* scratch) const override { 19959: return target_->Read(offset, n, result, scratch); 19959: } 19959: Status Flush() override { return target_->Flush(); } 19959: Status Sync() override { return target_->Sync(); } 19959: Status Fsync() override { return target_->Fsync(); } 19959: Status Close() override { return target_->Close(); } 19959: 19959: private: 19959: RandomRWFile* target_; 19959: }; 19959: 19959: class DirectoryWrapper : public Directory { 19959: public: 19959: explicit DirectoryWrapper(Directory* target) : target_(target) {} 19959: 19959: Status Fsync() override { return target_->Fsync(); } 19959: Status Close() override { return target_->Close(); } 19959: size_t GetUniqueId(char* id, size_t max_size) const override { 19959: return target_->GetUniqueId(id, max_size); 19959: } 19959: 19959: private: 19959: Directory* target_; 19959: }; 19959: 19959: class LoggerWrapper : public Logger { 19959: public: 19959: explicit LoggerWrapper(Logger* target) : target_(target) {} 19959: 19959: Status Close() override { return target_->Close(); } 19959: void LogHeader(const char* format, va_list ap) override { 19959: return target_->LogHeader(format, ap); 19959: } 19959: void Logv(const char* format, va_list ap) override { 19959: return target_->Logv(format, ap); 19959: } 19959: void Logv(const InfoLogLevel log_level, const char* format, 19959: va_list ap) override { 19959: return target_->Logv(log_level, format, ap); 19959: } 19959: size_t GetLogFileSize() const override { return target_->GetLogFileSize(); } 19959: void Flush() override { return target_->Flush(); } 19959: InfoLogLevel GetInfoLogLevel() const override { 19959: return target_->GetInfoLogLevel(); 19959: } 19959: void SetInfoLogLevel(const InfoLogLevel log_level) override { 19959: return target_->SetInfoLogLevel(log_level); 19959: } 19959: 19959: private: 19959: Logger* target_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: Env* NewMemEnv(Env* base_env); 19959: 19959: 19959: 19959: 19959: Env* NewTimedEnv(Env* base_env); 19959: 19959: 19959: 19959: 19959: Status NewEnvLogger(const std::string& fname, Env* env, 19959: std::shared_ptr* result); 19959: 19959: 19959: 19959: std::unique_ptr NewCompositeEnv(const std::shared_ptr& fs); 19959: 19959: } 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 1 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/cstdarg" 1 3 19959: # 39 "/usr/include/c++/13/cstdarg" 3 19959: 19959: # 40 "/usr/include/c++/13/cstdarg" 3 19959: # 23 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 2 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 1 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/cstring" 1 3 19959: # 39 "/usr/include/c++/13/cstring" 3 19959: 19959: # 40 "/usr/include/c++/13/cstring" 3 19959: # 23 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 2 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class IOStatus : public Status { 19959: public: 19959: using Code = Status::Code; 19959: using SubCode = Status::SubCode; 19959: 19959: enum IOErrorScope : unsigned char { 19959: kIOErrorScopeFileSystem, 19959: kIOErrorScopeFile, 19959: kIOErrorScopeRange, 19959: kIOErrorScopeMax, 19959: }; 19959: 19959: 19959: IOStatus() : IOStatus(kOk, kNone) {} 19959: ~IOStatus() {} 19959: 19959: 19959: IOStatus(const IOStatus& s); 19959: IOStatus& operator=(const IOStatus& s); 19959: IOStatus(IOStatus&& s) noexcept; 19959: IOStatus& operator=(IOStatus&& s) noexcept; 19959: bool operator==(const IOStatus& rhs) const; 19959: bool operator!=(const IOStatus& rhs) const; 19959: 19959: void SetRetryable(bool retryable) { retryable_ = retryable; } 19959: void SetDataLoss(bool data_loss) { data_loss_ = data_loss; } 19959: void SetScope(IOErrorScope scope) { 19959: scope_ = static_cast(scope); 19959: } 19959: 19959: bool GetRetryable() const { return retryable_; } 19959: bool GetDataLoss() const { return data_loss_; } 19959: IOErrorScope GetScope() const { return static_cast(scope_); } 19959: 19959: 19959: static IOStatus OK() { return IOStatus(); } 19959: 19959: static IOStatus NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return IOStatus(kNotSupported, msg, msg2); 19959: } 19959: static IOStatus NotSupported(SubCode msg = kNone) { 19959: return IOStatus(kNotSupported, msg); 19959: } 19959: 19959: 19959: static IOStatus NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return IOStatus(kNotFound, msg, msg2); 19959: } 19959: 19959: static IOStatus NotFound(SubCode msg = kNone) { 19959: return IOStatus(kNotFound, msg); 19959: } 19959: 19959: static IOStatus Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return IOStatus(kCorruption, msg, msg2); 19959: } 19959: static IOStatus Corruption(SubCode msg = kNone) { 19959: return IOStatus(kCorruption, msg); 19959: } 19959: 19959: static IOStatus InvalidArgument(const Slice& msg, 19959: const Slice& msg2 = Slice()) { 19959: return IOStatus(kInvalidArgument, msg, msg2); 19959: } 19959: static IOStatus InvalidArgument(SubCode msg = kNone) { 19959: return IOStatus(kInvalidArgument, msg); 19959: } 19959: 19959: static IOStatus IOError(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return IOStatus(kIOError, msg, msg2); 19959: } 19959: static IOStatus IOError(SubCode msg = kNone) { 19959: return IOStatus(kIOError, msg); 19959: } 19959: 19959: static IOStatus Busy(SubCode msg = kNone) { return IOStatus(kBusy, msg); } 19959: static IOStatus Busy(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return IOStatus(kBusy, msg, msg2); 19959: } 19959: 19959: static IOStatus TimedOut(SubCode msg = kNone) { 19959: return IOStatus(kTimedOut, msg); 19959: } 19959: static IOStatus TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return IOStatus(kTimedOut, msg, msg2); 19959: } 19959: 19959: static IOStatus NoSpace() { return IOStatus(kIOError, kNoSpace); } 19959: static IOStatus NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return IOStatus(kIOError, kNoSpace, msg, msg2); 19959: } 19959: 19959: static IOStatus PathNotFound() { return IOStatus(kIOError, kPathNotFound); } 19959: static IOStatus PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return IOStatus(kIOError, kPathNotFound, msg, msg2); 19959: } 19959: 19959: static IOStatus IOFenced() { return IOStatus(kIOError, kIOFenced); } 19959: static IOStatus IOFenced(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return IOStatus(kIOError, kIOFenced, msg, msg2); 19959: } 19959: 19959: static IOStatus Aborted(SubCode msg = kNone) { 19959: return IOStatus(kAborted, msg); 19959: } 19959: static IOStatus Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 19959: return IOStatus(kAborted, msg, msg2); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: private: 19959: friend IOStatus status_to_io_status(Status&&); 19959: 19959: explicit IOStatus(Code _code, SubCode _subcode = kNone) 19959: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) {} 19959: 19959: IOStatus(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2); 19959: IOStatus(Code _code, const Slice& msg, const Slice& msg2) 19959: : IOStatus(_code, kNone, msg, msg2) {} 19959: }; 19959: 19959: inline IOStatus::IOStatus(Code _code, SubCode _subcode, const Slice& msg, 19959: const Slice& msg2) 19959: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) { 19959: 19959: # 155 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 3 4 19959: (static_cast ( 19959: # 155 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 19959: code_ != kOk 19959: # 155 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 155 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 19959: "code_ != kOk" 19959: # 155 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 3 4 19959: , "./include/rocksdb/io_status.h", 155, __extension__ __PRETTY_FUNCTION__)) 19959: # 155 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 19959: ; 19959: 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 3 4 19959: (static_cast ( 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 19959: subcode_ != kMaxSubCode 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 19959: "subcode_ != kMaxSubCode" 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 3 4 19959: , "./include/rocksdb/io_status.h", 156, __extension__ __PRETTY_FUNCTION__)) 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 19959: ; 19959: const size_t len1 = msg.size(); 19959: const size_t len2 = msg2.size(); 19959: const size_t size = len1 + (len2 ? (2 + len2) : 0); 19959: char* const result = new char[size + 1]; 19959: memcpy(result, msg.data(), len1); 19959: if (len2) { 19959: result[len1] = ':'; 19959: result[len1 + 1] = ' '; 19959: memcpy(result + len1 + 2, msg2.data(), len2); 19959: } 19959: result[size] = '\0'; 19959: state_.reset(result); 19959: } 19959: 19959: inline IOStatus::IOStatus(const IOStatus& s) : Status(s.code_, s.subcode_) { 19959: 19959: 19959: 19959: retryable_ = s.retryable_; 19959: data_loss_ = s.data_loss_; 19959: scope_ = s.scope_; 19959: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 19959: } 19959: inline IOStatus& IOStatus::operator=(const IOStatus& s) { 19959: 19959: 19959: if (this != &s) { 19959: 19959: 19959: 19959: 19959: code_ = s.code_; 19959: subcode_ = s.subcode_; 19959: retryable_ = s.retryable_; 19959: data_loss_ = s.data_loss_; 19959: scope_ = s.scope_; 19959: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 19959: } 19959: return *this; 19959: } 19959: 19959: inline IOStatus::IOStatus(IOStatus&& s) noexcept : IOStatus() { 19959: *this = std::move(s); 19959: } 19959: 19959: inline IOStatus& IOStatus::operator=(IOStatus&& s) noexcept { 19959: if (this != &s) { 19959: 19959: 19959: 19959: 19959: code_ = std::move(s.code_); 19959: s.code_ = kOk; 19959: subcode_ = std::move(s.subcode_); 19959: s.subcode_ = kNone; 19959: retryable_ = s.retryable_; 19959: data_loss_ = s.data_loss_; 19959: scope_ = s.scope_; 19959: s.scope_ = kIOErrorScopeFileSystem; 19959: state_ = std::move(s.state_); 19959: } 19959: return *this; 19959: } 19959: 19959: inline bool IOStatus::operator==(const IOStatus& rhs) const { 19959: 19959: 19959: 19959: 19959: return (code_ == rhs.code_); 19959: } 19959: 19959: inline bool IOStatus::operator!=(const IOStatus& rhs) const { 19959: 19959: 19959: 19959: 19959: return !(*this == rhs); 19959: } 19959: 19959: inline IOStatus status_to_io_status(Status&& status) { 19959: IOStatus io_s; 19959: Status& s = io_s; 19959: s = std::move(status); 19959: return io_s; 19959: } 19959: 19959: } 19959: # 34 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/optional" 1 3 19959: # 33 "/usr/include/c++/13/optional" 3 19959: 19959: # 34 "/usr/include/c++/13/optional" 3 19959: # 54 "/usr/include/c++/13/optional" 3 19959: 19959: # 54 "/usr/include/c++/13/optional" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 71 "/usr/include/c++/13/optional" 3 19959: template 19959: class optional; 19959: 19959: 19959: struct nullopt_t 19959: { 19959: 19959: 19959: 19959: 19959: 19959: enum class _Construct { _Token }; 19959: 19959: 19959: explicit constexpr nullopt_t(_Construct) noexcept { } 19959: }; 19959: 19959: 19959: inline constexpr nullopt_t nullopt { nullopt_t::_Construct::_Token }; 19959: 19959: template struct _Optional_func { _Fn& _M_f; }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class bad_optional_access : public exception 19959: { 19959: public: 19959: bad_optional_access() = default; 19959: virtual ~bad_optional_access() = default; 19959: 19959: const char* what() const noexcept override 19959: { return "bad optional access"; } 19959: }; 19959: 19959: 19959: [[__noreturn__]] inline void 19959: __throw_bad_optional_access() 19959: { (throw (bad_optional_access())); } 19959: 19959: 19959: 19959: template 19959: struct _Optional_payload_base 19959: { 19959: using _Stored_type = remove_const_t<_Tp>; 19959: 19959: _Optional_payload_base() = default; 19959: ~_Optional_payload_base() = default; 19959: 19959: template 19959: constexpr 19959: _Optional_payload_base(in_place_t __tag, _Args&&... __args) 19959: : _M_payload(__tag, std::forward<_Args>(__args)...), 19959: _M_engaged(true) 19959: { } 19959: 19959: template 19959: constexpr 19959: _Optional_payload_base(std::initializer_list<_Up> __il, 19959: _Args&&... __args) 19959: : _M_payload(__il, std::forward<_Args>(__args)...), 19959: _M_engaged(true) 19959: { } 19959: 19959: 19959: 19959: constexpr 19959: _Optional_payload_base(bool , 19959: const _Optional_payload_base& __other) 19959: { 19959: if (__other._M_engaged) 19959: this->_M_construct(__other._M_get()); 19959: } 19959: 19959: 19959: 19959: constexpr 19959: _Optional_payload_base(bool , 19959: _Optional_payload_base&& __other) 19959: { 19959: if (__other._M_engaged) 19959: this->_M_construct(std::move(__other._M_get())); 19959: } 19959: 19959: 19959: 19959: _Optional_payload_base(const _Optional_payload_base&) = default; 19959: 19959: 19959: 19959: _Optional_payload_base(_Optional_payload_base&&) = default; 19959: 19959: _Optional_payload_base& 19959: operator=(const _Optional_payload_base&) = default; 19959: 19959: _Optional_payload_base& 19959: operator=(_Optional_payload_base&&) = default; 19959: 19959: 19959: constexpr void 19959: _M_copy_assign(const _Optional_payload_base& __other) 19959: { 19959: if (this->_M_engaged && __other._M_engaged) 19959: this->_M_get() = __other._M_get(); 19959: else 19959: { 19959: if (__other._M_engaged) 19959: this->_M_construct(__other._M_get()); 19959: else 19959: this->_M_reset(); 19959: } 19959: } 19959: 19959: 19959: constexpr void 19959: _M_move_assign(_Optional_payload_base&& __other) 19959: noexcept(__and_v, 19959: is_nothrow_move_assignable<_Tp>>) 19959: { 19959: if (this->_M_engaged && __other._M_engaged) 19959: this->_M_get() = std::move(__other._M_get()); 19959: else 19959: { 19959: if (__other._M_engaged) 19959: this->_M_construct(std::move(__other._M_get())); 19959: else 19959: this->_M_reset(); 19959: } 19959: } 19959: 19959: struct _Empty_byte { }; 19959: 19959: template> 19959: union _Storage 19959: { 19959: constexpr _Storage() noexcept : _M_empty() { } 19959: 19959: template 19959: constexpr 19959: _Storage(in_place_t, _Args&&... __args) 19959: : _M_value(std::forward<_Args>(__args)...) 19959: { } 19959: 19959: template 19959: constexpr 19959: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 19959: : _M_value(__il, std::forward<_Args>(__args)...) 19959: { } 19959: # 232 "/usr/include/c++/13/optional" 3 19959: _Empty_byte _M_empty; 19959: _Up _M_value; 19959: }; 19959: 19959: template 19959: union _Storage<_Up, false> 19959: { 19959: constexpr _Storage() noexcept : _M_empty() { } 19959: 19959: template 19959: constexpr 19959: _Storage(in_place_t, _Args&&... __args) 19959: : _M_value(std::forward<_Args>(__args)...) 19959: { } 19959: 19959: template 19959: constexpr 19959: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 19959: : _M_value(__il, std::forward<_Args>(__args)...) 19959: { } 19959: # 263 "/usr/include/c++/13/optional" 3 19959: ~_Storage() { } 19959: 19959: _Empty_byte _M_empty; 19959: _Up _M_value; 19959: }; 19959: 19959: _Storage<_Stored_type> _M_payload; 19959: 19959: bool _M_engaged = false; 19959: 19959: template 19959: constexpr void 19959: _M_construct(_Args&&... __args) 19959: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 19959: { 19959: std::_Construct(std::__addressof(this->_M_payload._M_value), 19959: std::forward<_Args>(__args)...); 19959: this->_M_engaged = true; 19959: } 19959: 19959: constexpr void 19959: _M_destroy() noexcept 19959: { 19959: _M_engaged = false; 19959: _M_payload._M_value.~_Stored_type(); 19959: } 19959: # 305 "/usr/include/c++/13/optional" 3 19959: constexpr _Tp& 19959: _M_get() noexcept 19959: { return this->_M_payload._M_value; } 19959: 19959: constexpr const _Tp& 19959: _M_get() const noexcept 19959: { return this->_M_payload._M_value; } 19959: 19959: 19959: constexpr void 19959: _M_reset() noexcept 19959: { 19959: if (this->_M_engaged) 19959: _M_destroy(); 19959: else 19959: this->_M_engaged = false; 19959: } 19959: }; 19959: 19959: 19959: template , 19959: bool = 19959: is_trivially_copy_assignable_v<_Tp> 19959: && is_trivially_copy_constructible_v<_Tp>, 19959: bool = 19959: is_trivially_move_assignable_v<_Tp> 19959: && is_trivially_move_constructible_v<_Tp>> 19959: struct _Optional_payload; 19959: 19959: 19959: template 19959: struct _Optional_payload<_Tp, true, true, true> 19959: : _Optional_payload_base<_Tp> 19959: { 19959: using _Optional_payload_base<_Tp>::_Optional_payload_base; 19959: 19959: _Optional_payload() = default; 19959: }; 19959: 19959: 19959: template 19959: struct _Optional_payload<_Tp, true, false, true> 19959: : _Optional_payload_base<_Tp> 19959: { 19959: using _Optional_payload_base<_Tp>::_Optional_payload_base; 19959: 19959: _Optional_payload() = default; 19959: ~_Optional_payload() = default; 19959: _Optional_payload(const _Optional_payload&) = default; 19959: _Optional_payload(_Optional_payload&&) = default; 19959: _Optional_payload& operator=(_Optional_payload&&) = default; 19959: 19959: 19959: constexpr 19959: _Optional_payload& 19959: operator=(const _Optional_payload& __other) 19959: { 19959: this->_M_copy_assign(__other); 19959: return *this; 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct _Optional_payload<_Tp, true, true, false> 19959: : _Optional_payload_base<_Tp> 19959: { 19959: using _Optional_payload_base<_Tp>::_Optional_payload_base; 19959: 19959: _Optional_payload() = default; 19959: ~_Optional_payload() = default; 19959: _Optional_payload(const _Optional_payload&) = default; 19959: _Optional_payload(_Optional_payload&&) = default; 19959: _Optional_payload& operator=(const _Optional_payload&) = default; 19959: 19959: 19959: constexpr 19959: _Optional_payload& 19959: operator=(_Optional_payload&& __other) 19959: noexcept(__and_v, 19959: is_nothrow_move_assignable<_Tp>>) 19959: { 19959: this->_M_move_assign(std::move(__other)); 19959: return *this; 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct _Optional_payload<_Tp, true, false, false> 19959: : _Optional_payload_base<_Tp> 19959: { 19959: using _Optional_payload_base<_Tp>::_Optional_payload_base; 19959: 19959: _Optional_payload() = default; 19959: ~_Optional_payload() = default; 19959: _Optional_payload(const _Optional_payload&) = default; 19959: _Optional_payload(_Optional_payload&&) = default; 19959: 19959: 19959: constexpr 19959: _Optional_payload& 19959: operator=(const _Optional_payload& __other) 19959: { 19959: this->_M_copy_assign(__other); 19959: return *this; 19959: } 19959: 19959: 19959: constexpr 19959: _Optional_payload& 19959: operator=(_Optional_payload&& __other) 19959: noexcept(__and_v, 19959: is_nothrow_move_assignable<_Tp>>) 19959: { 19959: this->_M_move_assign(std::move(__other)); 19959: return *this; 19959: } 19959: }; 19959: 19959: 19959: template 19959: struct _Optional_payload<_Tp, false, _Copy, _Move> 19959: : _Optional_payload<_Tp, true, false, false> 19959: { 19959: 19959: using _Optional_payload<_Tp, true, false, false>::_Optional_payload; 19959: _Optional_payload() = default; 19959: _Optional_payload(const _Optional_payload&) = default; 19959: _Optional_payload(_Optional_payload&&) = default; 19959: _Optional_payload& operator=(const _Optional_payload&) = default; 19959: _Optional_payload& operator=(_Optional_payload&&) = default; 19959: 19959: 19959: ~_Optional_payload() { this->_M_reset(); } 19959: }; 19959: 19959: 19959: 19959: template 19959: class _Optional_base_impl 19959: { 19959: protected: 19959: using _Stored_type = remove_const_t<_Tp>; 19959: 19959: 19959: 19959: template 19959: constexpr void 19959: _M_construct(_Args&&... __args) 19959: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 19959: { 19959: static_cast<_Dp*>(this)->_M_payload._M_construct( 19959: std::forward<_Args>(__args)...); 19959: } 19959: 19959: constexpr void 19959: _M_destruct() noexcept 19959: { static_cast<_Dp*>(this)->_M_payload._M_destroy(); } 19959: 19959: 19959: constexpr void 19959: _M_reset() noexcept 19959: { static_cast<_Dp*>(this)->_M_payload._M_reset(); } 19959: 19959: constexpr bool _M_is_engaged() const noexcept 19959: { return static_cast(this)->_M_payload._M_engaged; } 19959: 19959: 19959: constexpr _Tp& 19959: _M_get() noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) __builtin_unreachable(); } while (false); 19959: return static_cast<_Dp*>(this)->_M_payload._M_get(); 19959: } 19959: 19959: constexpr const _Tp& 19959: _M_get() const noexcept 19959: { 19959: do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) __builtin_unreachable(); } while (false); 19959: return static_cast(this)->_M_payload._M_get(); 19959: } 19959: }; 19959: # 509 "/usr/include/c++/13/optional" 3 19959: template, 19959: bool = is_trivially_move_constructible_v<_Tp>> 19959: struct _Optional_base 19959: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 19959: { 19959: 19959: constexpr _Optional_base() = default; 19959: 19959: 19959: template, bool> = false> 19959: constexpr explicit 19959: _Optional_base(in_place_t, _Args&&... __args) 19959: : _M_payload(in_place, std::forward<_Args>(__args)...) 19959: { } 19959: 19959: template&, 19959: _Args...>, bool> = false> 19959: constexpr explicit 19959: _Optional_base(in_place_t, 19959: initializer_list<_Up> __il, 19959: _Args&&... __args) 19959: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 19959: { } 19959: 19959: 19959: constexpr 19959: _Optional_base(const _Optional_base& __other) 19959: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 19959: { } 19959: 19959: constexpr 19959: _Optional_base(_Optional_base&& __other) 19959: noexcept(is_nothrow_move_constructible_v<_Tp>) 19959: : _M_payload(__other._M_payload._M_engaged, 19959: std::move(__other._M_payload)) 19959: { } 19959: 19959: 19959: _Optional_base& operator=(const _Optional_base&) = default; 19959: _Optional_base& operator=(_Optional_base&&) = default; 19959: 19959: _Optional_payload<_Tp> _M_payload; 19959: }; 19959: 19959: template 19959: struct _Optional_base<_Tp, false, true> 19959: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 19959: { 19959: 19959: constexpr _Optional_base() = default; 19959: 19959: 19959: template, bool> = false> 19959: constexpr explicit 19959: _Optional_base(in_place_t, _Args&&... __args) 19959: : _M_payload(in_place, std::forward<_Args>(__args)...) 19959: { } 19959: 19959: template&, 19959: _Args...>, bool> = false> 19959: constexpr explicit 19959: _Optional_base(in_place_t, 19959: initializer_list<_Up> __il, 19959: _Args... __args) 19959: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 19959: { } 19959: 19959: 19959: constexpr _Optional_base(const _Optional_base& __other) 19959: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 19959: { } 19959: 19959: constexpr _Optional_base(_Optional_base&& __other) = default; 19959: 19959: 19959: _Optional_base& operator=(const _Optional_base&) = default; 19959: _Optional_base& operator=(_Optional_base&&) = default; 19959: 19959: _Optional_payload<_Tp> _M_payload; 19959: }; 19959: 19959: template 19959: struct _Optional_base<_Tp, true, false> 19959: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 19959: { 19959: 19959: constexpr _Optional_base() = default; 19959: 19959: 19959: template, bool> = false> 19959: constexpr explicit 19959: _Optional_base(in_place_t, _Args&&... __args) 19959: : _M_payload(in_place, std::forward<_Args>(__args)...) 19959: { } 19959: 19959: template&, 19959: _Args...>, bool> = false> 19959: constexpr explicit 19959: _Optional_base(in_place_t, 19959: initializer_list<_Up> __il, 19959: _Args&&... __args) 19959: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 19959: { } 19959: 19959: 19959: constexpr _Optional_base(const _Optional_base& __other) = default; 19959: 19959: constexpr 19959: _Optional_base(_Optional_base&& __other) 19959: noexcept(is_nothrow_move_constructible_v<_Tp>) 19959: : _M_payload(__other._M_payload._M_engaged, 19959: std::move(__other._M_payload)) 19959: { } 19959: 19959: 19959: _Optional_base& operator=(const _Optional_base&) = default; 19959: _Optional_base& operator=(_Optional_base&&) = default; 19959: 19959: _Optional_payload<_Tp> _M_payload; 19959: }; 19959: 19959: template 19959: struct _Optional_base<_Tp, true, true> 19959: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 19959: { 19959: 19959: constexpr _Optional_base() = default; 19959: 19959: 19959: template, bool> = false> 19959: constexpr explicit 19959: _Optional_base(in_place_t, _Args&&... __args) 19959: : _M_payload(in_place, std::forward<_Args>(__args)...) 19959: { } 19959: 19959: template&, 19959: _Args...>, bool> = false> 19959: constexpr explicit 19959: _Optional_base(in_place_t, 19959: initializer_list<_Up> __il, 19959: _Args&&... __args) 19959: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 19959: { } 19959: 19959: 19959: constexpr _Optional_base(const _Optional_base& __other) = default; 19959: constexpr _Optional_base(_Optional_base&& __other) = default; 19959: 19959: 19959: _Optional_base& operator=(const _Optional_base&) = default; 19959: _Optional_base& operator=(_Optional_base&&) = default; 19959: 19959: _Optional_payload<_Tp> _M_payload; 19959: }; 19959: 19959: template 19959: class optional; 19959: 19959: template 19959: inline constexpr bool __is_optional_v = false; 19959: template 19959: inline constexpr bool __is_optional_v> = true; 19959: 19959: template 19959: using __converts_from_optional = 19959: __or_&>, 19959: is_constructible<_Tp, optional<_Up>&>, 19959: is_constructible<_Tp, const optional<_Up>&&>, 19959: is_constructible<_Tp, optional<_Up>&&>, 19959: is_convertible&, _Tp>, 19959: is_convertible&, _Tp>, 19959: is_convertible&&, _Tp>, 19959: is_convertible&&, _Tp>>; 19959: 19959: template 19959: using __assigns_from_optional = 19959: __or_&>, 19959: is_assignable<_Tp&, optional<_Up>&>, 19959: is_assignable<_Tp&, const optional<_Up>&&>, 19959: is_assignable<_Tp&, optional<_Up>&&>>; 19959: 19959: 19959: 19959: 19959: template 19959: class optional 19959: : private _Optional_base<_Tp>, 19959: private _Enable_copy_move< 19959: 19959: is_copy_constructible_v<_Tp>, 19959: 19959: __and_v, is_copy_assignable<_Tp>>, 19959: 19959: is_move_constructible_v<_Tp>, 19959: 19959: __and_v, is_move_assignable<_Tp>>, 19959: 19959: optional<_Tp>> 19959: { 19959: static_assert(!is_same_v, nullopt_t>); 19959: static_assert(!is_same_v, in_place_t>); 19959: static_assert(is_object_v<_Tp> && !is_array_v<_Tp>); 19959: 19959: private: 19959: using _Base = _Optional_base<_Tp>; 19959: 19959: 19959: template 19959: using __not_self = __not_>>; 19959: template 19959: using __not_tag = __not_>>; 19959: template 19959: using _Requires = enable_if_t<__and_v<_Cond...>, bool>; 19959: 19959: public: 19959: using value_type = _Tp; 19959: 19959: constexpr optional() noexcept { } 19959: 19959: constexpr optional(nullopt_t) noexcept { } 19959: 19959: 19959: template, __not_tag<_Up>, 19959: is_constructible<_Tp, _Up>, 19959: is_convertible<_Up, _Tp>> = true> 19959: constexpr 19959: optional(_Up&& __t) 19959: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 19959: : _Base(std::in_place, std::forward<_Up>(__t)) { } 19959: 19959: template, __not_tag<_Up>, 19959: is_constructible<_Tp, _Up>, 19959: __not_>> = false> 19959: explicit constexpr 19959: optional(_Up&& __t) 19959: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 19959: : _Base(std::in_place, std::forward<_Up>(__t)) { } 19959: 19959: template>, 19959: is_constructible<_Tp, const _Up&>, 19959: is_convertible, 19959: __not_<__converts_from_optional<_Tp, _Up>>> = true> 19959: constexpr 19959: optional(const optional<_Up>& __t) 19959: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 19959: { 19959: if (__t) 19959: emplace(*__t); 19959: } 19959: 19959: template>, 19959: is_constructible<_Tp, const _Up&>, 19959: __not_>, 19959: __not_<__converts_from_optional<_Tp, _Up>>> = false> 19959: explicit constexpr 19959: optional(const optional<_Up>& __t) 19959: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 19959: { 19959: if (__t) 19959: emplace(*__t); 19959: } 19959: 19959: template>, 19959: is_constructible<_Tp, _Up>, 19959: is_convertible<_Up, _Tp>, 19959: __not_<__converts_from_optional<_Tp, _Up>>> = true> 19959: constexpr 19959: optional(optional<_Up>&& __t) 19959: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 19959: { 19959: if (__t) 19959: emplace(std::move(*__t)); 19959: } 19959: 19959: template>, 19959: is_constructible<_Tp, _Up>, 19959: __not_>, 19959: __not_<__converts_from_optional<_Tp, _Up>>> = false> 19959: explicit constexpr 19959: optional(optional<_Up>&& __t) 19959: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 19959: { 19959: if (__t) 19959: emplace(std::move(*__t)); 19959: } 19959: 19959: template> = false> 19959: explicit constexpr 19959: optional(in_place_t, _Args&&... __args) 19959: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 19959: : _Base(std::in_place, std::forward<_Args>(__args)...) { } 19959: 19959: template&, 19959: _Args...>> = false> 19959: explicit constexpr 19959: optional(in_place_t, initializer_list<_Up> __il, _Args&&... __args) 19959: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 19959: _Args...>) 19959: : _Base(std::in_place, __il, std::forward<_Args>(__args)...) { } 19959: 19959: 19959: 19959: optional& 19959: operator=(nullopt_t) noexcept 19959: { 19959: this->_M_reset(); 19959: return *this; 19959: } 19959: 19959: template 19959: 19959: enable_if_t<__and_v<__not_self<_Up>, 19959: __not_<__and_, 19959: is_same<_Tp, decay_t<_Up>>>>, 19959: is_constructible<_Tp, _Up>, 19959: is_assignable<_Tp&, _Up>>, 19959: optional&> 19959: operator=(_Up&& __u) 19959: noexcept(__and_v, 19959: is_nothrow_assignable<_Tp&, _Up>>) 19959: { 19959: if (this->_M_is_engaged()) 19959: this->_M_get() = std::forward<_Up>(__u); 19959: else 19959: this->_M_construct(std::forward<_Up>(__u)); 19959: 19959: return *this; 19959: } 19959: 19959: template 19959: 19959: enable_if_t<__and_v<__not_>, 19959: is_constructible<_Tp, const _Up&>, 19959: is_assignable<_Tp&, const _Up&>, 19959: __not_<__converts_from_optional<_Tp, _Up>>, 19959: __not_<__assigns_from_optional<_Tp, _Up>>>, 19959: optional&> 19959: operator=(const optional<_Up>& __u) 19959: noexcept(__and_v, 19959: is_nothrow_assignable<_Tp&, const _Up&>>) 19959: { 19959: if (__u) 19959: { 19959: if (this->_M_is_engaged()) 19959: this->_M_get() = *__u; 19959: else 19959: this->_M_construct(*__u); 19959: } 19959: else 19959: { 19959: this->_M_reset(); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: 19959: enable_if_t<__and_v<__not_>, 19959: is_constructible<_Tp, _Up>, 19959: is_assignable<_Tp&, _Up>, 19959: __not_<__converts_from_optional<_Tp, _Up>>, 19959: __not_<__assigns_from_optional<_Tp, _Up>>>, 19959: optional&> 19959: operator=(optional<_Up>&& __u) 19959: noexcept(__and_v, 19959: is_nothrow_assignable<_Tp&, _Up>>) 19959: { 19959: if (__u) 19959: { 19959: if (this->_M_is_engaged()) 19959: this->_M_get() = std::move(*__u); 19959: else 19959: this->_M_construct(std::move(*__u)); 19959: } 19959: else 19959: { 19959: this->_M_reset(); 19959: } 19959: 19959: return *this; 19959: } 19959: 19959: template 19959: 19959: enable_if_t, _Tp&> 19959: emplace(_Args&&... __args) 19959: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 19959: { 19959: this->_M_reset(); 19959: this->_M_construct(std::forward<_Args>(__args)...); 19959: return this->_M_get(); 19959: } 19959: 19959: template 19959: 19959: enable_if_t&, _Args...>, 19959: _Tp&> 19959: emplace(initializer_list<_Up> __il, _Args&&... __args) 19959: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 19959: _Args...>) 19959: { 19959: this->_M_reset(); 19959: this->_M_construct(__il, std::forward<_Args>(__args)...); 19959: return this->_M_get(); 19959: } 19959: 19959: 19959: 19959: 19959: void 19959: swap(optional& __other) 19959: noexcept(is_nothrow_move_constructible_v<_Tp> 19959: && is_nothrow_swappable_v<_Tp>) 19959: { 19959: using std::swap; 19959: 19959: if (this->_M_is_engaged() && __other._M_is_engaged()) 19959: swap(this->_M_get(), __other._M_get()); 19959: else if (this->_M_is_engaged()) 19959: { 19959: __other._M_construct(std::move(this->_M_get())); 19959: this->_M_destruct(); 19959: } 19959: else if (__other._M_is_engaged()) 19959: { 19959: this->_M_construct(std::move(__other._M_get())); 19959: __other._M_destruct(); 19959: } 19959: } 19959: 19959: 19959: constexpr const _Tp* 19959: operator->() const noexcept 19959: { return std::__addressof(this->_M_get()); } 19959: 19959: constexpr _Tp* 19959: operator->() noexcept 19959: { return std::__addressof(this->_M_get()); } 19959: 19959: constexpr const _Tp& 19959: operator*() const& noexcept 19959: { return this->_M_get(); } 19959: 19959: constexpr _Tp& 19959: operator*()& noexcept 19959: { return this->_M_get(); } 19959: 19959: constexpr _Tp&& 19959: operator*()&& noexcept 19959: { return std::move(this->_M_get()); } 19959: 19959: constexpr const _Tp&& 19959: operator*() const&& noexcept 19959: { return std::move(this->_M_get()); } 19959: 19959: constexpr explicit operator bool() const noexcept 19959: { return this->_M_is_engaged(); } 19959: 19959: constexpr bool has_value() const noexcept 19959: { return this->_M_is_engaged(); } 19959: 19959: constexpr const _Tp& 19959: value() const& 19959: { 19959: if (this->_M_is_engaged()) 19959: return this->_M_get(); 19959: __throw_bad_optional_access(); 19959: } 19959: 19959: constexpr _Tp& 19959: value()& 19959: { 19959: if (this->_M_is_engaged()) 19959: return this->_M_get(); 19959: __throw_bad_optional_access(); 19959: } 19959: 19959: constexpr _Tp&& 19959: value()&& 19959: { 19959: if (this->_M_is_engaged()) 19959: return std::move(this->_M_get()); 19959: __throw_bad_optional_access(); 19959: } 19959: 19959: constexpr const _Tp&& 19959: value() const&& 19959: { 19959: if (this->_M_is_engaged()) 19959: return std::move(this->_M_get()); 19959: __throw_bad_optional_access(); 19959: } 19959: 19959: template 19959: constexpr _Tp 19959: value_or(_Up&& __u) const& 19959: { 19959: static_assert(is_copy_constructible_v<_Tp>); 19959: static_assert(is_convertible_v<_Up&&, _Tp>); 19959: 19959: if (this->_M_is_engaged()) 19959: return this->_M_get(); 19959: else 19959: return static_cast<_Tp>(std::forward<_Up>(__u)); 19959: } 19959: 19959: template 19959: constexpr _Tp 19959: value_or(_Up&& __u) && 19959: { 19959: static_assert(is_move_constructible_v<_Tp>); 19959: static_assert(is_convertible_v<_Up&&, _Tp>); 19959: 19959: if (this->_M_is_engaged()) 19959: return std::move(this->_M_get()); 19959: else 19959: return static_cast<_Tp>(std::forward<_Up>(__u)); 19959: } 19959: # 1184 "/usr/include/c++/13/optional" 3 19959: void reset() noexcept { this->_M_reset(); } 19959: 19959: private: 19959: # 1197 "/usr/include/c++/13/optional" 3 19959: }; 19959: 19959: template 19959: using __optional_relop_t = 19959: enable_if_t::value, bool>; 19959: 19959: template 19959: using __optional_eq_t = __optional_relop_t< 19959: decltype(std::declval() == std::declval()) 19959: >; 19959: 19959: template 19959: using __optional_ne_t = __optional_relop_t< 19959: decltype(std::declval() != std::declval()) 19959: >; 19959: 19959: template 19959: using __optional_lt_t = __optional_relop_t< 19959: decltype(std::declval() < std::declval()) 19959: >; 19959: 19959: template 19959: using __optional_gt_t = __optional_relop_t< 19959: decltype(std::declval() > std::declval()) 19959: >; 19959: 19959: template 19959: using __optional_le_t = __optional_relop_t< 19959: decltype(std::declval() <= std::declval()) 19959: >; 19959: 19959: template 19959: using __optional_ge_t = __optional_relop_t< 19959: decltype(std::declval() >= std::declval()) 19959: >; 19959: 19959: 19959: template 19959: constexpr auto 19959: operator==(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 19959: -> __optional_eq_t<_Tp, _Up> 19959: { 19959: return static_cast(__lhs) == static_cast(__rhs) 19959: && (!__lhs || *__lhs == *__rhs); 19959: } 19959: 19959: template 19959: constexpr auto 19959: operator!=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 19959: -> __optional_ne_t<_Tp, _Up> 19959: { 19959: return static_cast(__lhs) != static_cast(__rhs) 19959: || (static_cast(__lhs) && *__lhs != *__rhs); 19959: } 19959: 19959: template 19959: constexpr auto 19959: operator<(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 19959: -> __optional_lt_t<_Tp, _Up> 19959: { 19959: return static_cast(__rhs) && (!__lhs || *__lhs < *__rhs); 19959: } 19959: 19959: template 19959: constexpr auto 19959: operator>(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 19959: -> __optional_gt_t<_Tp, _Up> 19959: { 19959: return static_cast(__lhs) && (!__rhs || *__lhs > *__rhs); 19959: } 19959: 19959: template 19959: constexpr auto 19959: operator<=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 19959: -> __optional_le_t<_Tp, _Up> 19959: { 19959: return !__lhs || (static_cast(__rhs) && *__lhs <= *__rhs); 19959: } 19959: 19959: template 19959: constexpr auto 19959: operator>=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 19959: -> __optional_ge_t<_Tp, _Up> 19959: { 19959: return !__rhs || (static_cast(__lhs) && *__lhs >= *__rhs); 19959: } 19959: # 1294 "/usr/include/c++/13/optional" 3 19959: template 19959: constexpr bool 19959: operator==(const optional<_Tp>& __lhs, nullopt_t) noexcept 19959: { return !__lhs; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: constexpr bool 19959: operator==(nullopt_t, const optional<_Tp>& __rhs) noexcept 19959: { return !__rhs; } 19959: 19959: template 19959: constexpr bool 19959: operator!=(const optional<_Tp>& __lhs, nullopt_t) noexcept 19959: { return static_cast(__lhs); } 19959: 19959: template 19959: constexpr bool 19959: operator!=(nullopt_t, const optional<_Tp>& __rhs) noexcept 19959: { return static_cast(__rhs); } 19959: 19959: template 19959: constexpr bool 19959: operator<(const optional<_Tp>& , nullopt_t) noexcept 19959: { return false; } 19959: 19959: template 19959: constexpr bool 19959: operator<(nullopt_t, const optional<_Tp>& __rhs) noexcept 19959: { return static_cast(__rhs); } 19959: 19959: template 19959: constexpr bool 19959: operator>(const optional<_Tp>& __lhs, nullopt_t) noexcept 19959: { return static_cast(__lhs); } 19959: 19959: template 19959: constexpr bool 19959: operator>(nullopt_t, const optional<_Tp>& ) noexcept 19959: { return false; } 19959: 19959: template 19959: constexpr bool 19959: operator<=(const optional<_Tp>& __lhs, nullopt_t) noexcept 19959: { return !__lhs; } 19959: 19959: template 19959: constexpr bool 19959: operator<=(nullopt_t, const optional<_Tp>& ) noexcept 19959: { return true; } 19959: 19959: template 19959: constexpr bool 19959: operator>=(const optional<_Tp>& , nullopt_t) noexcept 19959: { return true; } 19959: 19959: template 19959: constexpr bool 19959: operator>=(nullopt_t, const optional<_Tp>& __rhs) noexcept 19959: { return !__rhs; } 19959: 19959: 19959: 19959: template 19959: constexpr auto 19959: operator==(const optional<_Tp>& __lhs, const _Up& __rhs) 19959: -> __optional_eq_t<_Tp, _Up> 19959: { return __lhs && *__lhs == __rhs; } 19959: 19959: template 19959: constexpr auto 19959: operator==(const _Up& __lhs, const optional<_Tp>& __rhs) 19959: -> __optional_eq_t<_Up, _Tp> 19959: { return __rhs && __lhs == *__rhs; } 19959: 19959: template 19959: constexpr auto 19959: operator!=(const optional<_Tp>& __lhs, const _Up& __rhs) 19959: -> __optional_ne_t<_Tp, _Up> 19959: { return !__lhs || *__lhs != __rhs; } 19959: 19959: template 19959: constexpr auto 19959: operator!=(const _Up& __lhs, const optional<_Tp>& __rhs) 19959: -> __optional_ne_t<_Up, _Tp> 19959: { return !__rhs || __lhs != *__rhs; } 19959: 19959: template 19959: constexpr auto 19959: operator<(const optional<_Tp>& __lhs, const _Up& __rhs) 19959: -> __optional_lt_t<_Tp, _Up> 19959: { return !__lhs || *__lhs < __rhs; } 19959: 19959: template 19959: constexpr auto 19959: operator<(const _Up& __lhs, const optional<_Tp>& __rhs) 19959: -> __optional_lt_t<_Up, _Tp> 19959: { return __rhs && __lhs < *__rhs; } 19959: 19959: template 19959: constexpr auto 19959: operator>(const optional<_Tp>& __lhs, const _Up& __rhs) 19959: -> __optional_gt_t<_Tp, _Up> 19959: { return __lhs && *__lhs > __rhs; } 19959: 19959: template 19959: constexpr auto 19959: operator>(const _Up& __lhs, const optional<_Tp>& __rhs) 19959: -> __optional_gt_t<_Up, _Tp> 19959: { return !__rhs || __lhs > *__rhs; } 19959: 19959: template 19959: constexpr auto 19959: operator<=(const optional<_Tp>& __lhs, const _Up& __rhs) 19959: -> __optional_le_t<_Tp, _Up> 19959: { return !__lhs || *__lhs <= __rhs; } 19959: 19959: template 19959: constexpr auto 19959: operator<=(const _Up& __lhs, const optional<_Tp>& __rhs) 19959: -> __optional_le_t<_Up, _Tp> 19959: { return __rhs && __lhs <= *__rhs; } 19959: 19959: template 19959: constexpr auto 19959: operator>=(const optional<_Tp>& __lhs, const _Up& __rhs) 19959: -> __optional_ge_t<_Tp, _Up> 19959: { return __lhs && *__lhs >= __rhs; } 19959: 19959: template 19959: constexpr auto 19959: operator>=(const _Up& __lhs, const optional<_Tp>& __rhs) 19959: -> __optional_ge_t<_Up, _Tp> 19959: { return !__rhs || __lhs >= *__rhs; } 19959: # 1447 "/usr/include/c++/13/optional" 3 19959: template 19959: 19959: inline enable_if_t && is_swappable_v<_Tp>> 19959: swap(optional<_Tp>& __lhs, optional<_Tp>& __rhs) 19959: noexcept(noexcept(__lhs.swap(__rhs))) 19959: { __lhs.swap(__rhs); } 19959: 19959: template 19959: enable_if_t && is_swappable_v<_Tp>)> 19959: swap(optional<_Tp>&, optional<_Tp>&) = delete; 19959: 19959: template 19959: constexpr 19959: enable_if_t, _Tp>, 19959: optional>> 19959: make_optional(_Tp&& __t) 19959: noexcept(is_nothrow_constructible_v>, _Tp>) 19959: { return optional>{ std::forward<_Tp>(__t) }; } 19959: 19959: template 19959: constexpr 19959: enable_if_t, 19959: optional<_Tp>> 19959: make_optional(_Args&&... __args) 19959: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 19959: { return optional<_Tp>{ in_place, std::forward<_Args>(__args)... }; } 19959: 19959: template 19959: constexpr 19959: enable_if_t&, _Args...>, 19959: optional<_Tp>> 19959: make_optional(initializer_list<_Up> __il, _Args&&... __args) 19959: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, _Args...>) 19959: { return optional<_Tp>{ in_place, __il, std::forward<_Args>(__args)... }; } 19959: 19959: 19959: 19959: template, 19959: bool = __poison_hash<_Up>::__enable_hash_call> 19959: struct __optional_hash_call_base 19959: { 19959: size_t 19959: operator()(const optional<_Tp>& __t) const 19959: noexcept(noexcept(hash<_Up>{}(*__t))) 19959: { 19959: 19959: 19959: constexpr size_t __magic_disengaged_hash = static_cast(-3333); 19959: return __t ? hash<_Up>{}(*__t) : __magic_disengaged_hash; 19959: } 19959: }; 19959: 19959: template 19959: struct __optional_hash_call_base<_Tp, _Up, false> {}; 19959: 19959: template 19959: struct hash> 19959: : private __poison_hash>, 19959: public __optional_hash_call_base<_Tp> 19959: { 19959: using result_type [[__deprecated__]] = size_t; 19959: using argument_type [[__deprecated__]] = optional<_Tp>; 19959: }; 19959: 19959: template 19959: struct __is_fast_hash>> : __is_fast_hash> 19959: { }; 19959: 19959: 19959: 19959: 19959: template optional(_Tp) -> optional<_Tp>; 19959: 19959: 19959: 19959: } 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 1 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compression_type.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compression_type.h" 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: 19959: enum CompressionType : unsigned char { 19959: 19959: 19959: kNoCompression = 0x0, 19959: kSnappyCompression = 0x1, 19959: kZlibCompression = 0x2, 19959: kBZip2Compression = 0x3, 19959: kLZ4Compression = 0x4, 19959: kLZ4HCCompression = 0x5, 19959: kXpressCompression = 0x6, 19959: kZSTD = 0x7, 19959: 19959: 19959: 19959: 19959: 19959: 19959: kZSTDNotFinalCompression = 0x40, 19959: 19959: 19959: kDisableCompressionOption = 0xff, 19959: }; 19959: 19959: } 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/assert.h" 1 3 4 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 2 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: namespace detail { 19959: int CountTrailingZeroBitsForSmallEnumSet(uint64_t); 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: class SmallEnumSet { 19959: private: 19959: using StateT = uint64_t; 19959: static constexpr int kStateBits = sizeof(StateT) * 8; 19959: static constexpr int kMaxMax = kStateBits - 1; 19959: static constexpr int kMaxValue = static_cast(MAX_ENUMERATOR); 19959: static_assert(kMaxValue >= 0); 19959: static_assert(kMaxValue <= kMaxMax); 19959: 19959: public: 19959: 19959: SmallEnumSet() : state_(0) {} 19959: 19959: template 19959: constexpr SmallEnumSet(const ENUM_TYPE e, TRest... rest) { 19959: *this = SmallEnumSet(rest...).With(e); 19959: } 19959: 19959: 19959: 19959: static constexpr SmallEnumSet All() { 19959: StateT tmp = StateT{1} << kMaxValue; 19959: return SmallEnumSet(RawStateMarker(), tmp | (tmp - 1)); 19959: } 19959: 19959: 19959: bool operator==(const SmallEnumSet& that) const { 19959: return this->state_ == that.state_; 19959: } 19959: bool operator!=(const SmallEnumSet& that) const { return !(*this == that); } 19959: 19959: 19959: 19959: 19959: bool Contains(const ENUM_TYPE e) const { 19959: int value = static_cast(e); 19959: 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: (static_cast ( 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: value >= 0 && value <= kMaxValue 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: "value >= 0 && value <= kMaxValue" 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: , "./include/rocksdb/data_structure.h", 62, __extension__ __PRETTY_FUNCTION__)) 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: ; 19959: StateT tmp = 1; 19959: return state_ & (tmp << value); 19959: } 19959: 19959: bool empty() const { return state_ == 0; } 19959: 19959: 19959: class const_iterator { 19959: public: 19959: 19959: const_iterator(const const_iterator& that) = default; 19959: const_iterator& operator=(const const_iterator& that) = default; 19959: 19959: 19959: const_iterator(const_iterator&& that) noexcept = default; 19959: const_iterator& operator=(const_iterator&& that) noexcept = default; 19959: 19959: 19959: bool operator==(const const_iterator& that) const { 19959: 19959: # 82 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: (static_cast ( 19959: # 82 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: set_ == that.set_ 19959: # 82 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 82 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: "set_ == that.set_" 19959: # 82 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: , "./include/rocksdb/data_structure.h", 82, __extension__ __PRETTY_FUNCTION__)) 19959: # 82 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: ; 19959: return this->pos_ == that.pos_; 19959: } 19959: 19959: bool operator!=(const const_iterator& that) const { 19959: return !(*this == that); 19959: } 19959: 19959: 19959: const_iterator& operator++() { 19959: if (pos_ < kMaxValue) { 19959: pos_ = set_->SkipUnset(pos_ + 1); 19959: } else { 19959: pos_ = kStateBits; 19959: } 19959: return *this; 19959: } 19959: 19959: 19959: const_iterator operator++(int) { 19959: auto old = *this; 19959: ++*this; 19959: return old; 19959: } 19959: 19959: ENUM_TYPE operator*() const { 19959: 19959: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: (static_cast ( 19959: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: pos_ <= kMaxValue 19959: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: "pos_ <= kMaxValue" 19959: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: , "./include/rocksdb/data_structure.h", 108, __extension__ __PRETTY_FUNCTION__)) 19959: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: ; 19959: return static_cast(pos_); 19959: } 19959: 19959: private: 19959: friend class SmallEnumSet; 19959: const_iterator(const SmallEnumSet* set, int pos) : set_(set), pos_(pos) {} 19959: const SmallEnumSet* set_; 19959: int pos_; 19959: }; 19959: 19959: const_iterator begin() const { return const_iterator(this, SkipUnset(0)); } 19959: 19959: const_iterator end() const { return const_iterator(this, kStateBits); } 19959: 19959: 19959: 19959: 19959: 19959: bool Add(const ENUM_TYPE e) { 19959: int value = static_cast(e); 19959: 19959: # 129 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: (static_cast ( 19959: # 129 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: value >= 0 && value <= kMaxValue 19959: # 129 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 129 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: "value >= 0 && value <= kMaxValue" 19959: # 129 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: , "./include/rocksdb/data_structure.h", 129, __extension__ __PRETTY_FUNCTION__)) 19959: # 129 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: ; 19959: StateT old_state = state_; 19959: state_ |= (StateT{1} << value); 19959: return old_state != state_; 19959: } 19959: 19959: 19959: 19959: bool Remove(const ENUM_TYPE e) { 19959: int value = static_cast(e); 19959: 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: (static_cast ( 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: value >= 0 && value <= kMaxValue 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: "value >= 0 && value <= kMaxValue" 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: , "./include/rocksdb/data_structure.h", 139, __extension__ __PRETTY_FUNCTION__)) 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: ; 19959: StateT old_state = state_; 19959: state_ &= ~(StateT{1} << value); 19959: return old_state != state_; 19959: } 19959: 19959: 19959: 19959: 19959: constexpr SmallEnumSet With(const ENUM_TYPE e) const { 19959: int value = static_cast(e); 19959: 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: (static_cast ( 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: value >= 0 && value <= kMaxValue 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: "value >= 0 && value <= kMaxValue" 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: , "./include/rocksdb/data_structure.h", 150, __extension__ __PRETTY_FUNCTION__)) 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: ; 19959: return SmallEnumSet(RawStateMarker(), state_ | (StateT{1} << value)); 19959: } 19959: template 19959: constexpr SmallEnumSet With(const ENUM_TYPE e1, const ENUM_TYPE e2, 19959: TRest... rest) const { 19959: return With(e1).With(e2, rest...); 19959: } 19959: 19959: 19959: constexpr SmallEnumSet Without(const ENUM_TYPE e) const { 19959: int value = static_cast(e); 19959: 19959: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: (static_cast ( 19959: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: value >= 0 && value <= kMaxValue 19959: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: "value >= 0 && value <= kMaxValue" 19959: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 19959: , "./include/rocksdb/data_structure.h", 162, __extension__ __PRETTY_FUNCTION__)) 19959: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 19959: ; 19959: return SmallEnumSet(RawStateMarker(), state_ & ~(StateT{1} << value)); 19959: } 19959: template 19959: constexpr SmallEnumSet Without(const ENUM_TYPE e1, const ENUM_TYPE e2, 19959: TRest... rest) const { 19959: return Without(e1).Without(e2, rest...); 19959: } 19959: 19959: private: 19959: int SkipUnset(int pos) const { 19959: StateT tmp = state_ >> pos; 19959: if (tmp == 0) { 19959: return kStateBits; 19959: } else { 19959: return pos + detail::CountTrailingZeroBitsForSmallEnumSet(tmp); 19959: } 19959: } 19959: struct RawStateMarker {}; 19959: explicit SmallEnumSet(RawStateMarker, StateT state) : state_(state) {} 19959: 19959: StateT state_; 19959: }; 19959: 19959: } 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memory_allocator.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: class MemoryAllocator : public Customizable { 19959: public: 19959: static const char* Type() { return "MemoryAllocator"; } 19959: static Status CreateFromString(const ConfigOptions& options, 19959: const std::string& value, 19959: std::shared_ptr* result); 19959: 19959: 19959: virtual void* Allocate(size_t size) = 0; 19959: 19959: 19959: virtual void Deallocate(void* p) = 0; 19959: 19959: 19959: 19959: virtual size_t UsableSize(void* , size_t allocation_size) const { 19959: 19959: return allocation_size; 19959: } 19959: 19959: std::string GetId() const override { return GenerateIndividualId(); } 19959: }; 19959: 19959: struct JemallocAllocatorOptions { 19959: static const char* kName() { return "JemallocAllocatorOptions"; } 19959: 19959: 19959: 19959: 19959: 19959: bool limit_tcache_size = false; 19959: 19959: 19959: 19959: size_t tcache_size_lower_bound = 1024; 19959: 19959: 19959: 19959: size_t tcache_size_upper_bound = 16 * 1024; 19959: 19959: 19959: 19959: 19959: size_t num_arenas = 1; 19959: }; 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memory_allocator.h" 19959: extern Status NewJemallocNodumpAllocator( 19959: const JemallocAllocatorOptions& options, 19959: std::shared_ptr* memory_allocator); 19959: 19959: } 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: class Cache; 19959: struct ConfigOptions; 19959: class SecondaryCache; 19959: # 46 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 19959: using BlockCache = Cache; 19959: using RowCache = Cache; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: enum class CacheEntryRole { 19959: 19959: kDataBlock, 19959: 19959: kFilterBlock, 19959: 19959: kFilterMetaBlock, 19959: 19959: kDeprecatedFilterBlock, 19959: 19959: kIndexBlock, 19959: 19959: kOtherBlock, 19959: 19959: kWriteBuffer, 19959: 19959: 19959: kCompressionDictionaryBuildingBuffer, 19959: 19959: 19959: kFilterConstruction, 19959: 19959: kBlockBasedTableReader, 19959: 19959: kFileMetadata, 19959: 19959: kBlobValue, 19959: 19959: 19959: kBlobCache, 19959: 19959: 19959: kMisc, 19959: }; 19959: constexpr uint32_t kNumCacheEntryRoles = 19959: static_cast(CacheEntryRole::kMisc) + 1; 19959: 19959: 19959: const std::string& GetCacheEntryRoleName(CacheEntryRole); 19959: 19959: 19959: using CacheEntryRoleSet = SmallEnumSet; 19959: 19959: 19959: 19959: 19959: struct BlockCacheEntryStatsMapKeys { 19959: static const std::string& CacheId(); 19959: static const std::string& CacheCapacityBytes(); 19959: static const std::string& LastCollectionDurationSeconds(); 19959: static const std::string& LastCollectionAgeSeconds(); 19959: 19959: static std::string EntryCount(CacheEntryRole); 19959: static std::string UsedBytes(CacheEntryRole); 19959: static std::string UsedPercent(CacheEntryRole); 19959: }; 19959: 19959: extern const bool kDefaultToAdaptiveMutex; 19959: 19959: enum CacheMetadataChargePolicy { 19959: 19959: 19959: kDontChargeCacheMetadata, 19959: 19959: 19959: 19959: kFullChargeCacheMetadata 19959: }; 19959: const CacheMetadataChargePolicy kDefaultCacheMetadataChargePolicy = 19959: kFullChargeCacheMetadata; 19959: 19959: 19959: 19959: struct ShardedCacheOptions { 19959: 19959: 19959: 19959: size_t capacity = 0; 19959: 19959: 19959: 19959: 19959: 19959: int num_shard_bits = -1; 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool strict_capacity_limit = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: std::shared_ptr memory_allocator; 19959: 19959: 19959: CacheMetadataChargePolicy metadata_charge_policy = 19959: kDefaultCacheMetadataChargePolicy; 19959: 19959: 19959: 19959: std::shared_ptr secondary_cache; 19959: 19959: 19959: static constexpr int32_t kQuasiRandomHashSeed = -1; 19959: static constexpr int32_t kHostHashSeed = -2; 19959: # 190 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 19959: int32_t hash_seed = kHostHashSeed; 19959: 19959: ShardedCacheOptions() {} 19959: ShardedCacheOptions( 19959: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 19959: std::shared_ptr _memory_allocator = nullptr, 19959: CacheMetadataChargePolicy _metadata_charge_policy = 19959: kDefaultCacheMetadataChargePolicy) 19959: : capacity(_capacity), 19959: num_shard_bits(_num_shard_bits), 19959: strict_capacity_limit(_strict_capacity_limit), 19959: memory_allocator(std::move(_memory_allocator)), 19959: metadata_charge_policy(_metadata_charge_policy) {} 19959: 19959: virtual ~ShardedCacheOptions() = default; 19959: }; 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 19959: struct LRUCacheOptions : public ShardedCacheOptions { 19959: # 237 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 19959: double high_pri_pool_ratio = 0.5; 19959: double low_pri_pool_ratio = 0.0; 19959: 19959: 19959: 19959: 19959: 19959: bool use_adaptive_mutex = kDefaultToAdaptiveMutex; 19959: 19959: LRUCacheOptions() {} 19959: LRUCacheOptions(size_t _capacity, int _num_shard_bits, 19959: bool _strict_capacity_limit, double _high_pri_pool_ratio, 19959: std::shared_ptr _memory_allocator = nullptr, 19959: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 19959: CacheMetadataChargePolicy _metadata_charge_policy = 19959: kDefaultCacheMetadataChargePolicy, 19959: double _low_pri_pool_ratio = 0.0) 19959: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 19959: std::move(_memory_allocator), 19959: _metadata_charge_policy), 19959: high_pri_pool_ratio(_high_pri_pool_ratio), 19959: low_pri_pool_ratio(_low_pri_pool_ratio), 19959: use_adaptive_mutex(_use_adaptive_mutex) {} 19959: 19959: 19959: std::shared_ptr MakeSharedCache() const; 19959: 19959: 19959: 19959: std::shared_ptr MakeSharedRowCache() const; 19959: }; 19959: 19959: 19959: inline std::shared_ptr NewLRUCache( 19959: size_t capacity, int num_shard_bits = -1, 19959: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 19959: std::shared_ptr memory_allocator = nullptr, 19959: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 19959: CacheMetadataChargePolicy metadata_charge_policy = 19959: kDefaultCacheMetadataChargePolicy, 19959: double low_pri_pool_ratio = 0.0) { 19959: return LRUCacheOptions(capacity, num_shard_bits, strict_capacity_limit, 19959: high_pri_pool_ratio, memory_allocator, 19959: use_adaptive_mutex, metadata_charge_policy, 19959: low_pri_pool_ratio) 19959: .MakeSharedCache(); 19959: } 19959: 19959: 19959: inline std::shared_ptr NewLRUCache(const LRUCacheOptions& cache_opts) { 19959: return cache_opts.MakeSharedCache(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: struct CompressedSecondaryCacheOptions : LRUCacheOptions { 19959: 19959: CompressionType compression_type = CompressionType::kLZ4Compression; 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint32_t compress_format_version = 2; 19959: 19959: 19959: 19959: bool enable_custom_split_merge = false; 19959: 19959: 19959: 19959: CacheEntryRoleSet do_not_compress_roles = {CacheEntryRole::kFilterBlock}; 19959: 19959: CompressedSecondaryCacheOptions() {} 19959: CompressedSecondaryCacheOptions( 19959: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 19959: double _high_pri_pool_ratio, double _low_pri_pool_ratio = 0.0, 19959: std::shared_ptr _memory_allocator = nullptr, 19959: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 19959: CacheMetadataChargePolicy _metadata_charge_policy = 19959: kDefaultCacheMetadataChargePolicy, 19959: CompressionType _compression_type = CompressionType::kLZ4Compression, 19959: uint32_t _compress_format_version = 2, 19959: bool _enable_custom_split_merge = false, 19959: const CacheEntryRoleSet& _do_not_compress_roles = 19959: {CacheEntryRole::kFilterBlock}) 19959: : LRUCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 19959: _high_pri_pool_ratio, std::move(_memory_allocator), 19959: _use_adaptive_mutex, _metadata_charge_policy, 19959: _low_pri_pool_ratio), 19959: compression_type(_compression_type), 19959: compress_format_version(_compress_format_version), 19959: enable_custom_split_merge(_enable_custom_split_merge), 19959: do_not_compress_roles(_do_not_compress_roles) {} 19959: 19959: 19959: std::shared_ptr MakeSharedSecondaryCache() const; 19959: 19959: 19959: std::shared_ptr MakeSharedCache() const = delete; 19959: }; 19959: 19959: 19959: inline std::shared_ptr NewCompressedSecondaryCache( 19959: size_t capacity, int num_shard_bits = -1, 19959: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 19959: double low_pri_pool_ratio = 0.0, 19959: std::shared_ptr memory_allocator = nullptr, 19959: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 19959: CacheMetadataChargePolicy metadata_charge_policy = 19959: kDefaultCacheMetadataChargePolicy, 19959: CompressionType compression_type = CompressionType::kLZ4Compression, 19959: uint32_t compress_format_version = 2, 19959: bool enable_custom_split_merge = false, 19959: const CacheEntryRoleSet& _do_not_compress_roles = { 19959: CacheEntryRole::kFilterBlock}) { 19959: return CompressedSecondaryCacheOptions( 19959: capacity, num_shard_bits, strict_capacity_limit, 19959: high_pri_pool_ratio, low_pri_pool_ratio, memory_allocator, 19959: use_adaptive_mutex, metadata_charge_policy, compression_type, 19959: compress_format_version, enable_custom_split_merge, 19959: _do_not_compress_roles) 19959: .MakeSharedSecondaryCache(); 19959: } 19959: 19959: 19959: inline std::shared_ptr NewCompressedSecondaryCache( 19959: const CompressedSecondaryCacheOptions& opts) { 19959: return opts.MakeSharedSecondaryCache(); 19959: } 19959: # 388 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 19959: struct HyperClockCacheOptions : public ShardedCacheOptions { 19959: # 425 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 19959: size_t estimated_entry_charge; 19959: # 442 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 19959: size_t min_avg_entry_charge = 450; 19959: 19959: HyperClockCacheOptions( 19959: size_t _capacity, size_t _estimated_entry_charge, 19959: int _num_shard_bits = -1, bool _strict_capacity_limit = false, 19959: std::shared_ptr _memory_allocator = nullptr, 19959: CacheMetadataChargePolicy _metadata_charge_policy = 19959: kDefaultCacheMetadataChargePolicy) 19959: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 19959: std::move(_memory_allocator), 19959: _metadata_charge_policy), 19959: estimated_entry_charge(_estimated_entry_charge) {} 19959: 19959: 19959: std::shared_ptr MakeSharedCache() const; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: extern std::shared_ptr NewClockCache( 19959: size_t capacity, int num_shard_bits = -1, 19959: bool strict_capacity_limit = false, 19959: CacheMetadataChargePolicy metadata_charge_policy = 19959: kDefaultCacheMetadataChargePolicy); 19959: 19959: enum PrimaryCacheType { 19959: kCacheTypeLRU, 19959: kCacheTypeHCC, 19959: kCacheTypeMax, 19959: }; 19959: 19959: enum TieredAdmissionPolicy { 19959: 19959: kAdmPolicyAuto, 19959: 19959: 19959: 19959: kAdmPolicyPlaceholder, 19959: 19959: 19959: kAdmPolicyAllowCacheHits, 19959: 19959: 19959: 19959: kAdmPolicyThreeQueue, 19959: kAdmPolicyMax, 19959: }; 19959: # 501 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 19959: struct TieredCacheOptions { 19959: ShardedCacheOptions* cache_opts = nullptr; 19959: PrimaryCacheType cache_type = PrimaryCacheType::kCacheTypeLRU; 19959: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyAuto; 19959: CompressedSecondaryCacheOptions comp_cache_opts; 19959: 19959: 19959: 19959: 19959: size_t total_capacity = 0; 19959: double compressed_secondary_ratio = 0.0; 19959: 19959: 19959: 19959: std::shared_ptr nvm_sec_cache; 19959: }; 19959: 19959: extern std::shared_ptr NewTieredCache( 19959: const TieredCacheOptions& cache_opts); 19959: # 530 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 19959: extern Status UpdateTieredCache( 19959: const std::shared_ptr& cache, int64_t total_capacity = -1, 19959: double compressed_secondary_ratio = std::numeric_limits::max(), 19959: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyMax); 19959: } 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 1 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/stdlib.h" 1 3 19959: # 36 "/usr/include/c++/13/stdlib.h" 3 19959: # 1 "/usr/include/c++/13/cstdlib" 1 3 19959: # 39 "/usr/include/c++/13/cstdlib" 3 19959: 19959: # 40 "/usr/include/c++/13/cstdlib" 3 19959: # 37 "/usr/include/c++/13/stdlib.h" 2 3 19959: 19959: 19959: # 38 "/usr/include/c++/13/stdlib.h" 3 19959: using std::abort; 19959: using std::atexit; 19959: using std::exit; 19959: 19959: 19959: using std::at_quick_exit; 19959: 19959: 19959: using std::quick_exit; 19959: 19959: 19959: using std::_Exit; 19959: 19959: 19959: 19959: 19959: using std::div_t; 19959: using std::ldiv_t; 19959: 19959: using std::abs; 19959: using std::atof; 19959: using std::atoi; 19959: using std::atol; 19959: using std::bsearch; 19959: using std::calloc; 19959: using std::div; 19959: using std::free; 19959: using std::getenv; 19959: using std::labs; 19959: using std::ldiv; 19959: using std::malloc; 19959: 19959: using std::mblen; 19959: using std::mbstowcs; 19959: using std::mbtowc; 19959: 19959: using std::qsort; 19959: using std::rand; 19959: using std::realloc; 19959: using std::srand; 19959: using std::strtod; 19959: using std::strtol; 19959: using std::strtoul; 19959: using std::system; 19959: 19959: using std::wcstombs; 19959: using std::wctomb; 19959: # 40 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 2 19959: # 48 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 19959: 19959: # 48 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 19959: namespace rocksdb { 19959: 19959: class Arena; 19959: class Allocator; 19959: class LookupKey; 19959: class SliceTransform; 19959: class Logger; 19959: struct DBOptions; 19959: 19959: using KeyHandle = void*; 19959: 19959: extern Slice GetLengthPrefixedSlice(const char* data); 19959: 19959: class MemTableRep { 19959: public: 19959: 19959: 19959: class KeyComparator { 19959: public: 19959: using DecodedType = rocksdb::Slice; 19959: 19959: virtual DecodedType decode_key(const char* key) const { 19959: 19959: 19959: return GetLengthPrefixedSlice(key); 19959: } 19959: 19959: 19959: 19959: virtual int operator()(const char* prefix_len_key1, 19959: const char* prefix_len_key2) const = 0; 19959: 19959: virtual int operator()(const char* prefix_len_key, 19959: const Slice& key) const = 0; 19959: 19959: virtual ~KeyComparator() {} 19959: }; 19959: 19959: explicit MemTableRep(Allocator* allocator) : allocator_(allocator) {} 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual KeyHandle Allocate(const size_t len, char** buf); 19959: 19959: 19959: 19959: 19959: 19959: virtual void Insert(KeyHandle handle) = 0; 19959: 19959: 19959: 19959: 19959: virtual bool InsertKey(KeyHandle handle) { 19959: Insert(handle); 19959: return true; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void InsertWithHint(KeyHandle handle, void** ) { 19959: 19959: Insert(handle); 19959: } 19959: 19959: 19959: 19959: 19959: virtual bool InsertKeyWithHint(KeyHandle handle, void** hint) { 19959: InsertWithHint(handle, hint); 19959: return true; 19959: } 19959: # 137 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 19959: virtual void InsertWithHintConcurrently(KeyHandle handle, void** ) { 19959: 19959: InsertConcurrently(handle); 19959: } 19959: 19959: 19959: 19959: 19959: virtual bool InsertKeyWithHintConcurrently(KeyHandle handle, void** hint) { 19959: InsertWithHintConcurrently(handle, hint); 19959: return true; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void InsertConcurrently(KeyHandle handle); 19959: 19959: 19959: 19959: 19959: virtual bool InsertKeyConcurrently(KeyHandle handle) { 19959: InsertConcurrently(handle); 19959: return true; 19959: } 19959: 19959: 19959: virtual bool Contains(const char* key) const = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual void MarkReadOnly() {} 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void MarkFlushed() {} 19959: # 194 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 19959: virtual void Get(const LookupKey& k, void* callback_args, 19959: bool (*callback_func)(void* arg, const char* entry)); 19959: 19959: virtual uint64_t ApproximateNumEntries(const Slice& , 19959: const Slice& ) { 19959: return 0; 19959: } 19959: 19959: 19959: 19959: virtual void UniqueRandomSample(const uint64_t num_entries, 19959: const uint64_t target_sample_size, 19959: std::unordered_set* entries) { 19959: (void)num_entries; 19959: (void)target_sample_size; 19959: (void)entries; 19959: 19959: # 210 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 3 4 19959: (static_cast ( 19959: # 210 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 19959: false 19959: # 210 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 210 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 19959: "false" 19959: # 210 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 3 4 19959: , "./include/rocksdb/memtablerep.h", 210, __extension__ __PRETTY_FUNCTION__)) 19959: # 210 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 19959: ; 19959: } 19959: 19959: 19959: 19959: virtual size_t ApproximateMemoryUsage() = 0; 19959: 19959: virtual ~MemTableRep() {} 19959: 19959: 19959: class Iterator { 19959: public: 19959: 19959: 19959: 19959: virtual ~Iterator() {} 19959: 19959: 19959: virtual bool Valid() const = 0; 19959: 19959: 19959: 19959: virtual const char* key() const = 0; 19959: 19959: 19959: 19959: virtual void Next() = 0; 19959: 19959: 19959: 19959: virtual void Prev() = 0; 19959: 19959: 19959: virtual void Seek(const Slice& internal_key, const char* memtable_key) = 0; 19959: 19959: 19959: virtual void SeekForPrev(const Slice& internal_key, 19959: const char* memtable_key) = 0; 19959: 19959: virtual void RandomSeek() {} 19959: 19959: 19959: 19959: virtual void SeekToFirst() = 0; 19959: 19959: 19959: 19959: virtual void SeekToLast() = 0; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Iterator* GetIterator(Arena* arena = nullptr) = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Iterator* GetDynamicPrefixIterator(Arena* arena = nullptr) { 19959: return GetIterator(arena); 19959: } 19959: 19959: 19959: 19959: virtual bool IsMergeOperatorSupported() const { return true; } 19959: 19959: 19959: 19959: virtual bool IsSnapshotSupported() const { return true; } 19959: 19959: protected: 19959: 19959: 19959: virtual Slice UserKey(const char* key) const; 19959: 19959: Allocator* allocator_; 19959: }; 19959: 19959: 19959: 19959: class MemTableRepFactory : public Customizable { 19959: public: 19959: ~MemTableRepFactory() override {} 19959: 19959: static const char* Type() { return "MemTableRepFactory"; } 19959: static Status CreateFromString(const ConfigOptions& config_options, 19959: const std::string& id, 19959: std::unique_ptr* factory); 19959: static Status CreateFromString(const ConfigOptions& config_options, 19959: const std::string& id, 19959: std::shared_ptr* factory); 19959: 19959: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 19959: Allocator*, const SliceTransform*, 19959: Logger* logger) = 0; 19959: virtual MemTableRep* CreateMemTableRep( 19959: const MemTableRep::KeyComparator& key_cmp, Allocator* allocator, 19959: const SliceTransform* slice_transform, Logger* logger, 19959: uint32_t ) { 19959: return CreateMemTableRep(key_cmp, allocator, slice_transform, logger); 19959: } 19959: 19959: const char* Name() const override = 0; 19959: 19959: 19959: 19959: virtual bool IsInsertConcurrentlySupported() const { return false; } 19959: 19959: 19959: 19959: 19959: 19959: virtual bool CanHandleDuplicatedKey() const { return false; } 19959: }; 19959: # 337 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 19959: class SkipListFactory : public MemTableRepFactory { 19959: public: 19959: explicit SkipListFactory(size_t lookahead = 0); 19959: 19959: 19959: static const char* kClassName() { return "SkipListFactory"; } 19959: static const char* kNickName() { return "skip_list"; } 19959: virtual const char* Name() const override { return kClassName(); } 19959: virtual const char* NickName() const override { return kNickName(); } 19959: std::string GetId() const override; 19959: 19959: 19959: using MemTableRepFactory::CreateMemTableRep; 19959: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 19959: Allocator*, const SliceTransform*, 19959: Logger* logger) override; 19959: 19959: bool IsInsertConcurrentlySupported() const override { return true; } 19959: 19959: bool CanHandleDuplicatedKey() const override { return true; } 19959: 19959: private: 19959: size_t lookahead_; 19959: }; 19959: # 370 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 19959: class VectorRepFactory : public MemTableRepFactory { 19959: size_t count_; 19959: 19959: public: 19959: explicit VectorRepFactory(size_t count = 0); 19959: 19959: 19959: static const char* kClassName() { return "VectorRepFactory"; } 19959: static const char* kNickName() { return "vector"; } 19959: const char* Name() const override { return kClassName(); } 19959: const char* NickName() const override { return kNickName(); } 19959: 19959: 19959: using MemTableRepFactory::CreateMemTableRep; 19959: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 19959: Allocator*, const SliceTransform*, 19959: Logger* logger) override; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern MemTableRepFactory* NewHashSkipListRepFactory( 19959: size_t bucket_count = 1000000, int32_t skiplist_height = 4, 19959: int32_t skiplist_branching_factor = 4); 19959: # 415 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 19959: extern MemTableRepFactory* NewHashLinkListRepFactory( 19959: size_t bucket_count = 50000, size_t huge_page_tlb_size = 0, 19959: int bucket_entries_logging_threshold = 4096, 19959: bool if_log_bucket_dist_when_flash = true, 19959: uint32_t threshold_use_skiplist = 256); 19959: 19959: } 19959: # 16 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/universal_compaction.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/climits" 1 3 19959: # 39 "/usr/include/c++/13/climits" 3 19959: 19959: # 40 "/usr/include/c++/13/climits" 3 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 1 3 4 19959: # 34 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 3 4 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/syslimits.h" 1 3 4 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 1 3 4 19959: # 205 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 3 4 19959: # 1 "/usr/include/limits.h" 1 3 4 19959: # 26 "/usr/include/limits.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 19959: # 27 "/usr/include/limits.h" 2 3 4 19959: # 195 "/usr/include/limits.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 1 3 4 19959: # 27 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 19959: # 28 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 19959: # 161 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 1 3 4 19959: # 38 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 3 4 19959: # 1 "/usr/include/linux/limits.h" 1 3 4 19959: # 39 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 2 3 4 19959: # 162 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 19959: # 196 "/usr/include/limits.h" 2 3 4 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix2_lim.h" 1 3 4 19959: # 200 "/usr/include/limits.h" 2 3 4 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 1 3 4 19959: # 64 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio_lim.h" 1 3 4 19959: # 65 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 2 3 4 19959: # 204 "/usr/include/limits.h" 2 3 4 19959: # 206 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 2 3 4 19959: # 8 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/syslimits.h" 2 3 4 19959: # 35 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 2 3 4 19959: # 43 "/usr/include/c++/13/climits" 2 3 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/universal_compaction.h" 2 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: enum CompactionStopStyle { 19959: kCompactionStopStyleSimilarSize, 19959: kCompactionStopStyleTotalSize 19959: }; 19959: 19959: class CompactionOptionsUniversal { 19959: public: 19959: 19959: 19959: 19959: unsigned int size_ratio; 19959: 19959: 19959: unsigned int min_merge_width; 19959: 19959: 19959: unsigned int max_merge_width; 19959: # 48 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/universal_compaction.h" 19959: unsigned int max_size_amplification_percent; 19959: # 66 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/universal_compaction.h" 19959: int compression_size_percent; 19959: 19959: 19959: 19959: CompactionStopStyle stop_style; 19959: 19959: 19959: 19959: 19959: bool allow_trivial_move; 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool incremental; 19959: 19959: 19959: CompactionOptionsUniversal() 19959: : size_ratio(1), 19959: min_merge_width(2), 19959: max_merge_width( 19959: # 88 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/universal_compaction.h" 3 4 19959: (0x7fffffff * 2U + 1U) 19959: # 88 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/universal_compaction.h" 19959: ), 19959: max_size_amplification_percent(200), 19959: compression_size_percent(-1), 19959: stop_style(kCompactionStopStyleTotalSize), 19959: allow_trivial_move(false), 19959: incremental(false) {} 19959: }; 19959: 19959: } 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: class Slice; 19959: class SliceTransform; 19959: class TablePropertiesCollectorFactory; 19959: class TableFactory; 19959: struct Options; 19959: 19959: enum CompactionStyle : char { 19959: 19959: kCompactionStyleLevel = 0x0, 19959: 19959: kCompactionStyleUniversal = 0x1, 19959: 19959: kCompactionStyleFIFO = 0x2, 19959: 19959: 19959: kCompactionStyleNone = 0x3, 19959: }; 19959: 19959: 19959: 19959: 19959: enum CompactionPri : char { 19959: 19959: kByCompensatedSize = 0x0, 19959: 19959: 19959: kOldestLargestSeqFirst = 0x1, 19959: 19959: 19959: 19959: kOldestSmallestSeqFirst = 0x2, 19959: 19959: 19959: 19959: kMinOverlappingRatio = 0x3, 19959: 19959: 19959: 19959: 19959: kRoundRobin = 0x4, 19959: }; 19959: 19959: 19959: struct CompressionOptions { 19959: # 74 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: static constexpr int kDefaultCompressionLevel = 32767; 19959: 19959: 19959: int window_bits = -14; 19959: # 89 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: int level = kDefaultCompressionLevel; 19959: 19959: 19959: int strategy = 0; 19959: # 114 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint32_t max_dict_bytes = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint32_t zstd_max_train_bytes = 0; 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint32_t parallel_threads = 1; 19959: # 143 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: bool enabled = false; 19959: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint64_t max_dict_buffer_bytes = 0; 19959: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: bool use_zstd_dict_trainer = true; 19959: # 189 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: int max_compressed_bytes_per_kb = 1024 * 7 / 8; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool checksum = false; 19959: 19959: 19959: 19959: 19959: void SetMinRatio(double min_ratio) { 19959: max_compressed_bytes_per_kb = static_cast(1024.0 / min_ratio + 0.5); 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: enum class Temperature : uint8_t { 19959: kUnknown = 0, 19959: kHot = 0x04, 19959: kWarm = 0x08, 19959: kCold = 0x0C, 19959: kLastTemperature, 19959: }; 19959: 19959: struct FileTemperatureAge { 19959: Temperature temperature = Temperature::kUnknown; 19959: uint64_t age = 0; 19959: }; 19959: 19959: struct CompactionOptionsFIFO { 19959: 19959: 19959: 19959: uint64_t max_table_files_size; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool allow_compaction = false; 19959: 19959: 19959: 19959: 19959: uint64_t age_for_warm = 0; 19959: # 265 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: std::vector file_temperature_age_thresholds{}; 19959: 19959: CompactionOptionsFIFO() : max_table_files_size(1 * 1024 * 1024 * 1024) {} 19959: CompactionOptionsFIFO(uint64_t _max_table_files_size, bool _allow_compaction) 19959: : max_table_files_size(_max_table_files_size), 19959: allow_compaction(_allow_compaction) {} 19959: }; 19959: 19959: 19959: 19959: 19959: enum class CacheTier : uint8_t { 19959: kVolatileTier = 0, 19959: kVolatileCompressedTier = 0x01, 19959: kNonVolatileBlockTier = 0x02, 19959: }; 19959: 19959: enum UpdateStatus { 19959: UPDATE_FAILED = 0, 19959: UPDATED_INPLACE = 1, 19959: UPDATED = 2, 19959: }; 19959: 19959: enum class PrepopulateBlobCache : uint8_t { 19959: kDisable = 0x0, 19959: kFlushOnly = 0x1, 19959: }; 19959: 19959: struct AdvancedColumnFamilyOptions { 19959: # 305 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: int max_write_buffer_number = 2; 19959: # 317 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: int min_write_buffer_number_to_merge = 1; 19959: # 326 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: int max_write_buffer_number_to_maintain = 0; 19959: # 373 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: int64_t max_write_buffer_size_to_maintain = 0; 19959: # 387 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: bool inplace_update_support = false; 19959: 19959: 19959: 19959: 19959: 19959: size_t inplace_update_num_locks = 10000; 19959: # 410 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: double experimental_mempurge_threshold = 0.0; 19959: # 453 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: UpdateStatus (*inplace_callback)(char* existing_value, 19959: uint32_t* existing_value_size, 19959: Slice delta_value, 19959: std::string* merged_value) = nullptr; 19959: # 472 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: double memtable_prefix_bloom_size_ratio = 0.0; 19959: # 481 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: bool memtable_whole_key_filtering = false; 19959: # 493 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: size_t memtable_huge_page_size = 0; 19959: # 514 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: std::shared_ptr 19959: memtable_insert_with_hint_prefix_extractor = nullptr; 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint32_t bloom_locality = 0; 19959: # 540 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: size_t arena_block_size = 0; 19959: # 571 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: std::vector compression_per_level; 19959: 19959: 19959: int num_levels = 7; 19959: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: int level0_slowdown_writes_trigger = 20; 19959: 19959: 19959: 19959: 19959: 19959: 19959: int level0_stop_writes_trigger = 36; 19959: # 604 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint64_t target_file_size_base = 64 * 1048576; 19959: 19959: 19959: 19959: 19959: 19959: int target_file_size_multiplier = 1; 19959: # 691 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: bool level_compaction_dynamic_level_bytes = true; 19959: # 700 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: bool level_compaction_dynamic_file_size = true; 19959: 19959: 19959: 19959: 19959: double max_bytes_for_level_multiplier = 10; 19959: # 716 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: std::vector max_bytes_for_level_multiplier_additional = 19959: std::vector(static_cast(num_levels), 1); 19959: # 726 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint64_t max_compaction_bytes = 0; 19959: # 737 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: bool ignore_max_compaction_bytes_for_input = true; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint64_t soft_pending_compaction_bytes_limit = 64 * 1073741824ull; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint64_t hard_pending_compaction_bytes_limit = 256 * 1073741824ull; 19959: 19959: 19959: CompactionStyle compaction_style = kCompactionStyleLevel; 19959: 19959: 19959: 19959: 19959: CompactionPri compaction_pri = kMinOverlappingRatio; 19959: 19959: 19959: 19959: 19959: 19959: 19959: CompactionOptionsUniversal compaction_options_universal; 19959: 19959: 19959: 19959: 19959: 19959: 19959: CompactionOptionsFIFO compaction_options_fifo; 19959: # 785 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint64_t max_sequential_skip_in_iterations = 8; 19959: 19959: 19959: 19959: 19959: std::shared_ptr memtable_factory = 19959: std::shared_ptr(new SkipListFactory); 19959: # 810 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: using TablePropertiesCollectorFactories = 19959: std::vector>; 19959: TablePropertiesCollectorFactories table_properties_collector_factories; 19959: # 825 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: size_t max_successive_merges = 0; 19959: # 841 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: bool optimize_filters_for_hits = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool check_flush_compaction_key_order = true; 19959: # 858 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: bool paranoid_file_checks = false; 19959: # 868 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: bool force_consistency_checks = true; 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool report_bg_io_stats = false; 19959: # 909 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint64_t ttl = 0xfffffffffffffffe; 19959: # 955 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint64_t periodic_compaction_seconds = 0xfffffffffffffffe; 19959: 19959: 19959: 19959: 19959: 19959: uint64_t sample_for_compression = 0; 19959: # 976 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: Temperature bottommost_temperature = Temperature::kUnknown; 19959: Temperature last_level_temperature = Temperature::kUnknown; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: Temperature default_temperature = Temperature::kUnknown; 19959: # 1002 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint64_t preclude_last_level_data_seconds = 0; 19959: # 1025 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint64_t preserve_internal_time_seconds = 0; 19959: # 1039 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: bool enable_blob_files = false; 19959: # 1051 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint64_t min_blob_size = 0; 19959: # 1060 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint64_t blob_file_size = 1ULL << 28; 19959: # 1069 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: CompressionType blob_compression_type = kNoCompression; 19959: # 1081 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: bool enable_blob_garbage_collection = false; 19959: # 1092 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: double blob_garbage_collection_age_cutoff = 0.25; 19959: # 1105 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: double blob_garbage_collection_force_threshold = 1.0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint64_t blob_compaction_readahead_size = 0; 19959: # 1127 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: int blob_file_starting_level = 0; 19959: # 1137 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: std::shared_ptr blob_cache = nullptr; 19959: # 1148 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: PrepopulateBlobCache prepopulate_blob_cache = PrepopulateBlobCache::kDisable; 19959: # 1164 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint32_t memtable_protection_bytes_per_key = 0; 19959: # 1212 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: bool persist_user_defined_timestamps = true; 19959: # 1227 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint8_t block_protection_bytes_per_key = 0; 19959: # 1239 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 19959: uint32_t bottommost_file_compaction_delay = 0; 19959: 19959: 19959: AdvancedColumnFamilyOptions(); 19959: 19959: explicit AdvancedColumnFamilyOptions(const Options& options); 19959: 19959: 19959: }; 19959: 19959: } 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 19959: 19959: 19959: # 1 "/usr/include/c++/13/cassert" 1 3 19959: # 41 "/usr/include/c++/13/cassert" 3 19959: 19959: # 42 "/usr/include/c++/13/cassert" 3 19959: 19959: 19959: # 1 "/usr/include/assert.h" 1 3 4 19959: # 45 "/usr/include/c++/13/cassert" 2 3 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 2 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 19959: namespace rocksdb { 19959: 19959: 19959: constexpr char kUnknownFileChecksum[] = ""; 19959: 19959: constexpr char kUnknownFileChecksumFuncName[] = "Unknown"; 19959: 19959: 19959: 19959: constexpr char kStandardDbFileChecksumFuncName[] = "FileChecksumCrc32c"; 19959: 19959: struct FileChecksumGenContext { 19959: std::string file_name; 19959: 19959: 19959: 19959: 19959: std::string requested_checksum_func_name; 19959: }; 19959: # 50 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 19959: class FileChecksumGenerator { 19959: public: 19959: virtual ~FileChecksumGenerator() {} 19959: 19959: 19959: 19959: 19959: virtual void Update(const char* data, size_t n) = 0; 19959: 19959: 19959: virtual void Finalize() = 0; 19959: 19959: 19959: 19959: virtual std::string GetChecksum() const = 0; 19959: 19959: 19959: virtual const char* Name() const = 0; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class FileChecksumGenFactory : public Customizable { 19959: public: 19959: ~FileChecksumGenFactory() override {} 19959: static const char* Type() { return "FileChecksumGenFactory"; } 19959: static Status CreateFromString( 19959: const ConfigOptions& options, const std::string& value, 19959: std::shared_ptr* result); 19959: 19959: 19959: virtual std::unique_ptr CreateFileChecksumGenerator( 19959: const FileChecksumGenContext& context) = 0; 19959: 19959: 19959: const char* Name() const override = 0; 19959: }; 19959: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 19959: class FileChecksumList { 19959: public: 19959: virtual ~FileChecksumList() {} 19959: 19959: 19959: virtual void reset() = 0; 19959: 19959: 19959: virtual size_t size() const = 0; 19959: 19959: 19959: 19959: 19959: virtual Status GetAllFileChecksums( 19959: std::vector* file_numbers, std::vector* checksums, 19959: std::vector* checksum_func_names) = 0; 19959: 19959: 19959: 19959: virtual Status SearchOneFileChecksum(uint64_t file_number, 19959: std::string* checksum, 19959: std::string* checksum_func_name) = 0; 19959: 19959: 19959: virtual Status InsertOneFileChecksum( 19959: uint64_t file_number, const std::string& checksum, 19959: const std::string& checksum_func_name) = 0; 19959: 19959: 19959: virtual Status RemoveOneFileChecksum(uint64_t file_number) = 0; 19959: }; 19959: 19959: 19959: extern FileChecksumList* NewFileChecksumList(); 19959: # 143 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 19959: extern std::shared_ptr 19959: GetFileChecksumGenCrc32cFactory(); 19959: 19959: } 19959: # 28 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 16 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_job_stats.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 8 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_job_stats.h" 2 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: struct CompactionJobStats { 19959: CompactionJobStats() { Reset(); } 19959: void Reset(); 19959: 19959: void Add(const CompactionJobStats& stats); 19959: 19959: 19959: uint64_t elapsed_micros; 19959: 19959: 19959: uint64_t cpu_micros; 19959: 19959: 19959: 19959: bool has_num_input_records; 19959: 19959: uint64_t num_input_records; 19959: 19959: uint64_t num_blobs_read; 19959: 19959: size_t num_input_files; 19959: 19959: size_t num_input_files_at_output_level; 19959: 19959: 19959: uint64_t num_output_records; 19959: 19959: size_t num_output_files; 19959: 19959: size_t num_output_files_blob; 19959: 19959: 19959: bool is_full_compaction; 19959: 19959: bool is_manual_compaction; 19959: 19959: 19959: uint64_t total_input_bytes; 19959: 19959: uint64_t total_blob_bytes_read; 19959: 19959: uint64_t total_output_bytes; 19959: 19959: uint64_t total_output_bytes_blob; 19959: 19959: 19959: 19959: 19959: uint64_t num_records_replaced; 19959: 19959: 19959: uint64_t total_input_raw_key_bytes; 19959: 19959: uint64_t total_input_raw_value_bytes; 19959: 19959: 19959: 19959: uint64_t num_input_deletion_records; 19959: 19959: 19959: 19959: uint64_t num_expired_deletion_records; 19959: 19959: 19959: 19959: uint64_t num_corrupt_keys; 19959: 19959: 19959: 19959: 19959: 19959: uint64_t file_write_nanos; 19959: 19959: 19959: uint64_t file_range_sync_nanos; 19959: 19959: 19959: uint64_t file_fsync_nanos; 19959: 19959: 19959: uint64_t file_prepare_write_nanos; 19959: 19959: 19959: 19959: static const size_t kMaxPrefixLength = 8; 19959: 19959: std::string smallest_output_key_prefix; 19959: std::string largest_output_key_prefix; 19959: 19959: 19959: uint64_t num_single_del_fallthru; 19959: 19959: 19959: uint64_t num_single_del_mismatch; 19959: 19959: 19959: }; 19959: } 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 2 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h" 1 19959: 19959: 19959: 19959: 19959: 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h" 19959: namespace rocksdb { 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h" 19959: using UserCollectedProperties = std::map; 19959: 19959: 19959: struct TablePropertiesNames { 19959: static const std::string kDbId; 19959: static const std::string kDbSessionId; 19959: static const std::string kDbHostId; 19959: static const std::string kOriginalFileNumber; 19959: static const std::string kDataSize; 19959: static const std::string kIndexSize; 19959: static const std::string kIndexPartitions; 19959: static const std::string kTopLevelIndexSize; 19959: static const std::string kIndexKeyIsUserKey; 19959: static const std::string kIndexValueIsDeltaEncoded; 19959: static const std::string kFilterSize; 19959: static const std::string kRawKeySize; 19959: static const std::string kRawValueSize; 19959: static const std::string kNumDataBlocks; 19959: static const std::string kNumEntries; 19959: static const std::string kNumFilterEntries; 19959: static const std::string kDeletedKeys; 19959: static const std::string kMergeOperands; 19959: static const std::string kNumRangeDeletions; 19959: static const std::string kFormatVersion; 19959: static const std::string kFixedKeyLen; 19959: static const std::string kFilterPolicy; 19959: static const std::string kColumnFamilyName; 19959: static const std::string kColumnFamilyId; 19959: static const std::string kComparator; 19959: static const std::string kMergeOperator; 19959: static const std::string kPrefixExtractorName; 19959: static const std::string kPropertyCollectors; 19959: static const std::string kCompression; 19959: static const std::string kCompressionOptions; 19959: static const std::string kCreationTime; 19959: static const std::string kOldestKeyTime; 19959: static const std::string kFileCreationTime; 19959: static const std::string kSlowCompressionEstimatedDataSize; 19959: static const std::string kFastCompressionEstimatedDataSize; 19959: static const std::string kSequenceNumberTimeMapping; 19959: static const std::string kTailStartOffset; 19959: static const std::string kUserDefinedTimestampsPersisted; 19959: }; 19959: # 90 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h" 19959: class TablePropertiesCollector { 19959: public: 19959: virtual ~TablePropertiesCollector() {} 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Add(const Slice& , const Slice& ) { 19959: return Status::InvalidArgument( 19959: "TablePropertiesCollector::Add() deprecated."); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual Status AddUserKey(const Slice& key, const Slice& value, 19959: EntryType , SequenceNumber , 19959: uint64_t ) { 19959: 19959: return Add(key, value); 19959: } 19959: 19959: 19959: virtual void BlockAdd(uint64_t , 19959: uint64_t , 19959: uint64_t ) { 19959: 19959: return; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Finish(UserCollectedProperties* properties) = 0; 19959: 19959: 19959: 19959: 19959: virtual UserCollectedProperties GetReadableProperties() const = 0; 19959: 19959: 19959: virtual const char* Name() const = 0; 19959: 19959: 19959: virtual bool NeedCompact() const { return false; } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class TablePropertiesCollectorFactory : public Customizable { 19959: public: 19959: struct Context { 19959: uint32_t column_family_id; 19959: 19959: 19959: int level_at_creation = kUnknownLevelAtCreation; 19959: static const uint32_t kUnknownColumnFamily; 19959: static const int kUnknownLevelAtCreation = -1; 19959: }; 19959: 19959: ~TablePropertiesCollectorFactory() override {} 19959: static const char* Type() { return "TablePropertiesCollectorFactory"; } 19959: static Status CreateFromString( 19959: const ConfigOptions& options, const std::string& value, 19959: std::shared_ptr* result); 19959: 19959: 19959: virtual TablePropertiesCollector* CreateTablePropertiesCollector( 19959: TablePropertiesCollectorFactory::Context context) = 0; 19959: 19959: 19959: const char* Name() const override = 0; 19959: 19959: 19959: 19959: 19959: virtual std::string ToString() const { return Name(); } 19959: }; 19959: 19959: 19959: 19959: struct TableProperties { 19959: public: 19959: 19959: 19959: uint64_t orig_file_number = 0; 19959: 19959: uint64_t data_size = 0; 19959: 19959: uint64_t index_size = 0; 19959: 19959: uint64_t index_partitions = 0; 19959: 19959: uint64_t top_level_index_size = 0; 19959: 19959: 19959: uint64_t index_key_is_user_key = 0; 19959: 19959: uint64_t index_value_is_delta_encoded = 0; 19959: 19959: uint64_t filter_size = 0; 19959: 19959: uint64_t raw_key_size = 0; 19959: 19959: uint64_t raw_value_size = 0; 19959: 19959: uint64_t num_data_blocks = 0; 19959: 19959: uint64_t num_entries = 0; 19959: 19959: uint64_t num_filter_entries = 0; 19959: 19959: uint64_t num_deletions = 0; 19959: 19959: uint64_t num_merge_operands = 0; 19959: 19959: uint64_t num_range_deletions = 0; 19959: 19959: uint64_t format_version = 0; 19959: 19959: uint64_t fixed_key_len = 0; 19959: 19959: 19959: uint64_t column_family_id = rocksdb:: 19959: TablePropertiesCollectorFactory::Context::kUnknownColumnFamily; 19959: # 239 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h" 19959: uint64_t creation_time = 0; 19959: 19959: 19959: uint64_t oldest_key_time = 0; 19959: 19959: uint64_t file_creation_time = 0; 19959: 19959: 19959: 19959: uint64_t slow_compression_estimated_data_size = 0; 19959: 19959: 19959: 19959: uint64_t fast_compression_estimated_data_size = 0; 19959: 19959: 19959: 19959: uint64_t external_sst_file_global_seqno_offset = 0; 19959: 19959: 19959: 19959: uint64_t tail_start_offset = 0; 19959: 19959: 19959: 19959: 19959: uint64_t user_defined_timestamps_persisted = 1; 19959: 19959: 19959: 19959: 19959: std::string db_id; 19959: 19959: 19959: 19959: 19959: 19959: std::string db_session_id; 19959: 19959: 19959: 19959: 19959: 19959: std::string db_host_id; 19959: 19959: 19959: 19959: std::string column_family_name; 19959: 19959: 19959: 19959: std::string filter_policy_name; 19959: 19959: 19959: std::string comparator_name; 19959: 19959: 19959: 19959: std::string merge_operator_name; 19959: 19959: 19959: 19959: std::string prefix_extractor_name; 19959: 19959: 19959: 19959: 19959: std::string property_collectors_names; 19959: 19959: 19959: std::string compression_name; 19959: 19959: 19959: std::string compression_options; 19959: 19959: 19959: std::string seqno_to_time_mapping; 19959: 19959: 19959: UserCollectedProperties user_collected_properties; 19959: UserCollectedProperties readable_properties; 19959: 19959: 19959: 19959: std::string ToString(const std::string& prop_delim = "; ", 19959: const std::string& kv_delim = "=") const; 19959: 19959: 19959: 19959: void Add(const TableProperties& tp); 19959: 19959: 19959: 19959: 19959: std::map GetAggregatablePropertiesAsMap() const; 19959: 19959: 19959: 19959: std::size_t ApproximateMemoryUsage() const; 19959: }; 19959: # 348 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h" 19959: extern uint64_t GetDeletedKeys(const UserCollectedProperties& props); 19959: extern uint64_t GetMergeOperands(const UserCollectedProperties& props, 19959: bool* property_present); 19959: 19959: } 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 2 19959: 19959: 19959: namespace rocksdb { 19959: 19959: using TablePropertiesCollection = 19959: std::unordered_map>; 19959: 19959: class DB; 19959: class ColumnFamilyHandle; 19959: class Status; 19959: struct CompactionJobStats; 19959: 19959: struct FileCreationBriefInfo { 19959: FileCreationBriefInfo() = default; 19959: FileCreationBriefInfo(const std::string& _db_name, 19959: const std::string& _cf_name, 19959: const std::string& _file_path, int _job_id) 19959: : db_name(_db_name), 19959: cf_name(_cf_name), 19959: file_path(_file_path), 19959: job_id(_job_id) {} 19959: 19959: std::string db_name; 19959: 19959: std::string cf_name; 19959: 19959: std::string file_path; 19959: 19959: 19959: int job_id = 0; 19959: }; 19959: 19959: struct TableFileCreationBriefInfo : public FileCreationBriefInfo { 19959: 19959: TableFileCreationReason reason; 19959: }; 19959: 19959: struct TableFileCreationInfo : public TableFileCreationBriefInfo { 19959: TableFileCreationInfo() = default; 19959: explicit TableFileCreationInfo(TableProperties&& prop) 19959: : table_properties(prop) {} 19959: 19959: uint64_t file_size; 19959: 19959: TableProperties table_properties; 19959: 19959: Status status; 19959: 19959: std::string file_checksum; 19959: 19959: std::string file_checksum_func_name; 19959: }; 19959: 19959: struct BlobFileCreationBriefInfo : public FileCreationBriefInfo { 19959: BlobFileCreationBriefInfo(const std::string& _db_name, 19959: const std::string& _cf_name, 19959: const std::string& _file_path, int _job_id, 19959: BlobFileCreationReason _reason) 19959: : FileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id), 19959: reason(_reason) {} 19959: 19959: BlobFileCreationReason reason; 19959: }; 19959: 19959: struct BlobFileCreationInfo : public BlobFileCreationBriefInfo { 19959: BlobFileCreationInfo(const std::string& _db_name, const std::string& _cf_name, 19959: const std::string& _file_path, int _job_id, 19959: BlobFileCreationReason _reason, 19959: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 19959: Status _status, const std::string& _file_checksum, 19959: const std::string& _file_checksum_func_name) 19959: : BlobFileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id, 19959: _reason), 19959: total_blob_count(_total_blob_count), 19959: total_blob_bytes(_total_blob_bytes), 19959: status(_status), 19959: file_checksum(_file_checksum), 19959: file_checksum_func_name(_file_checksum_func_name) {} 19959: 19959: 19959: uint64_t total_blob_count; 19959: 19959: uint64_t total_blob_bytes; 19959: 19959: Status status; 19959: 19959: std::string file_checksum; 19959: 19959: std::string file_checksum_func_name; 19959: }; 19959: 19959: enum class CompactionReason : int { 19959: kUnknown = 0, 19959: 19959: kLevelL0FilesNum, 19959: 19959: kLevelMaxLevelSize, 19959: 19959: kUniversalSizeAmplification, 19959: 19959: kUniversalSizeRatio, 19959: 19959: kUniversalSortedRunNum, 19959: 19959: kFIFOMaxSize, 19959: 19959: kFIFOReduceNumFiles, 19959: 19959: kFIFOTtl, 19959: 19959: kManualCompaction, 19959: 19959: kFilesMarkedForCompaction, 19959: 19959: 19959: kBottommostFiles, 19959: 19959: kTtl, 19959: 19959: 19959: kFlush, 19959: 19959: 19959: 19959: 19959: kExternalSstIngestion, 19959: 19959: kPeriodicCompaction, 19959: 19959: kChangeTemperature, 19959: 19959: kForcedBlobGC, 19959: 19959: 19959: kRoundRobinTtl, 19959: 19959: 19959: kRefitLevel, 19959: 19959: kNumOfReasons, 19959: }; 19959: 19959: const char* GetCompactionReasonString(CompactionReason compaction_reason); 19959: 19959: 19959: enum class FlushReason : int { 19959: kOthers = 0x00, 19959: kGetLiveFiles = 0x01, 19959: kShutDown = 0x02, 19959: kExternalFileIngestion = 0x03, 19959: kManualCompaction = 0x04, 19959: kWriteBufferManager = 0x05, 19959: kWriteBufferFull = 0x06, 19959: kTest = 0x07, 19959: kDeleteFiles = 0x08, 19959: kAutoCompaction = 0x09, 19959: kManualFlush = 0x0a, 19959: kErrorRecovery = 0xb, 19959: 19959: 19959: kErrorRecoveryRetryFlush = 0xc, 19959: kWalFull = 0xd, 19959: 19959: kCatchUpAfterErrorRecovery = 0xe, 19959: }; 19959: 19959: const char* GetFlushReasonString(FlushReason flush_reason); 19959: 19959: 19959: 19959: 19959: 19959: enum class BackgroundErrorReason { 19959: kFlush, 19959: kCompaction, 19959: kWriteCallback, 19959: kMemTable, 19959: kManifestWrite, 19959: kFlushNoWAL, 19959: kManifestWriteNoWAL, 19959: }; 19959: 19959: struct WriteStallInfo { 19959: 19959: std::string cf_name; 19959: 19959: struct { 19959: WriteStallCondition cur; 19959: WriteStallCondition prev; 19959: } condition; 19959: }; 19959: 19959: 19959: struct FileDeletionInfo { 19959: FileDeletionInfo() = default; 19959: 19959: FileDeletionInfo(const std::string& _db_name, const std::string& _file_path, 19959: int _job_id, Status _status) 19959: : db_name(_db_name), 19959: file_path(_file_path), 19959: job_id(_job_id), 19959: status(_status) {} 19959: 19959: std::string db_name; 19959: 19959: std::string file_path; 19959: 19959: int job_id = 0; 19959: 19959: Status status; 19959: }; 19959: 19959: struct TableFileDeletionInfo : public FileDeletionInfo {}; 19959: 19959: struct BlobFileDeletionInfo : public FileDeletionInfo { 19959: BlobFileDeletionInfo(const std::string& _db_name, 19959: const std::string& _file_path, int _job_id, 19959: Status _status) 19959: : FileDeletionInfo(_db_name, _file_path, _job_id, _status) {} 19959: }; 19959: 19959: enum class FileOperationType { 19959: kRead, 19959: kWrite, 19959: kTruncate, 19959: kClose, 19959: kFlush, 19959: kSync, 19959: kFsync, 19959: kRangeSync, 19959: kAppend, 19959: kPositionedAppend, 19959: kOpen 19959: }; 19959: 19959: struct FileOperationInfo { 19959: using Duration = std::chrono::nanoseconds; 19959: using SteadyTimePoint = 19959: std::chrono::time_point; 19959: using SystemTimePoint = 19959: std::chrono::time_point; 19959: using StartTimePoint = std::pair; 19959: using FinishTimePoint = SteadyTimePoint; 19959: 19959: FileOperationType type; 19959: const std::string& path; 19959: 19959: 19959: Temperature temperature; 19959: uint64_t offset; 19959: size_t length; 19959: const Duration duration; 19959: const SystemTimePoint& start_ts; 19959: Status status; 19959: 19959: FileOperationInfo(const FileOperationType _type, const std::string& _path, 19959: const StartTimePoint& _start_ts, 19959: const FinishTimePoint& _finish_ts, const Status& _status, 19959: const Temperature _temperature = Temperature::kUnknown) 19959: : type(_type), 19959: path(_path), 19959: temperature(_temperature), 19959: duration(std::chrono::duration_cast( 19959: _finish_ts - _start_ts.second)), 19959: start_ts(_start_ts.first), 19959: status(_status) {} 19959: static StartTimePoint StartNow() { 19959: return std::make_pair( 19959: std::chrono::system_clock::now(), std::chrono::steady_clock::now()); 19959: } 19959: static FinishTimePoint FinishNow() { 19959: return std::chrono::steady_clock::now(); 19959: } 19959: }; 19959: 19959: struct BlobFileInfo { 19959: BlobFileInfo(const std::string& _blob_file_path, 19959: const uint64_t _blob_file_number) 19959: : blob_file_path(_blob_file_path), blob_file_number(_blob_file_number) {} 19959: 19959: std::string blob_file_path; 19959: uint64_t blob_file_number; 19959: }; 19959: 19959: struct BlobFileAdditionInfo : public BlobFileInfo { 19959: BlobFileAdditionInfo(const std::string& _blob_file_path, 19959: const uint64_t _blob_file_number, 19959: const uint64_t _total_blob_count, 19959: const uint64_t _total_blob_bytes) 19959: : BlobFileInfo(_blob_file_path, _blob_file_number), 19959: total_blob_count(_total_blob_count), 19959: total_blob_bytes(_total_blob_bytes) {} 19959: uint64_t total_blob_count; 19959: uint64_t total_blob_bytes; 19959: }; 19959: 19959: struct BlobFileGarbageInfo : public BlobFileInfo { 19959: BlobFileGarbageInfo(const std::string& _blob_file_path, 19959: const uint64_t _blob_file_number, 19959: const uint64_t _garbage_blob_count, 19959: const uint64_t _garbage_blob_bytes) 19959: : BlobFileInfo(_blob_file_path, _blob_file_number), 19959: garbage_blob_count(_garbage_blob_count), 19959: garbage_blob_bytes(_garbage_blob_bytes) {} 19959: uint64_t garbage_blob_count; 19959: uint64_t garbage_blob_bytes; 19959: }; 19959: 19959: struct FlushJobInfo { 19959: 19959: uint32_t cf_id; 19959: 19959: std::string cf_name; 19959: 19959: std::string file_path; 19959: 19959: uint64_t file_number; 19959: 19959: uint64_t oldest_blob_file_number; 19959: 19959: uint64_t thread_id; 19959: 19959: int job_id; 19959: 19959: 19959: 19959: 19959: bool triggered_writes_slowdown; 19959: 19959: 19959: 19959: 19959: bool triggered_writes_stop; 19959: 19959: SequenceNumber smallest_seqno; 19959: 19959: SequenceNumber largest_seqno; 19959: 19959: TableProperties table_properties; 19959: 19959: FlushReason flush_reason; 19959: 19959: 19959: CompressionType blob_compression_type; 19959: 19959: 19959: std::vector blob_file_addition_infos; 19959: }; 19959: 19959: struct CompactionFileInfo { 19959: 19959: int level; 19959: 19959: 19959: uint64_t file_number; 19959: 19959: 19959: uint64_t oldest_blob_file_number; 19959: }; 19959: 19959: struct SubcompactionJobInfo { 19959: ~SubcompactionJobInfo() { status.PermitUncheckedError(); } 19959: 19959: uint32_t cf_id; 19959: 19959: std::string cf_name; 19959: 19959: Status status; 19959: 19959: uint64_t thread_id; 19959: 19959: int job_id; 19959: 19959: 19959: 19959: 19959: 19959: int subcompaction_job_id; 19959: 19959: int base_input_level; 19959: 19959: int output_level; 19959: 19959: 19959: CompactionReason compaction_reason; 19959: 19959: 19959: CompressionType compression; 19959: 19959: 19959: CompactionJobStats stats; 19959: 19959: 19959: CompressionType blob_compression_type; 19959: }; 19959: 19959: struct CompactionJobInfo { 19959: ~CompactionJobInfo() { status.PermitUncheckedError(); } 19959: 19959: uint32_t cf_id; 19959: 19959: std::string cf_name; 19959: 19959: Status status; 19959: 19959: uint64_t thread_id; 19959: 19959: int job_id; 19959: 19959: 19959: int base_input_level; 19959: 19959: int output_level; 19959: # 443 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: std::vector input_files; 19959: 19959: 19959: std::vector input_file_infos; 19959: 19959: 19959: std::vector output_files; 19959: 19959: 19959: std::vector output_file_infos; 19959: 19959: 19959: 19959: TablePropertiesCollection table_properties; 19959: 19959: 19959: CompactionReason compaction_reason; 19959: 19959: 19959: CompressionType compression; 19959: 19959: 19959: CompactionJobStats stats; 19959: 19959: 19959: CompressionType blob_compression_type; 19959: 19959: 19959: 19959: std::vector blob_file_addition_infos; 19959: 19959: 19959: 19959: std::vector blob_file_garbage_infos; 19959: }; 19959: 19959: struct MemTableInfo { 19959: 19959: std::string cf_name; 19959: 19959: 19959: SequenceNumber first_seqno; 19959: 19959: 19959: 19959: 19959: SequenceNumber earliest_seqno; 19959: 19959: uint64_t num_entries; 19959: 19959: uint64_t num_deletes; 19959: }; 19959: 19959: struct ExternalFileIngestionInfo { 19959: 19959: std::string cf_name; 19959: 19959: std::string external_file_path; 19959: 19959: std::string internal_file_path; 19959: 19959: SequenceNumber global_seqno; 19959: 19959: TableProperties table_properties; 19959: }; 19959: 19959: 19959: struct BackgroundErrorRecoveryInfo { 19959: 19959: Status old_bg_error; 19959: 19959: 19959: 19959: Status new_bg_error; 19959: }; 19959: 19959: struct IOErrorInfo { 19959: IOErrorInfo(const IOStatus& _io_status, FileOperationType _operation, 19959: const std::string& _file_path, size_t _length, uint64_t _offset) 19959: : io_status(_io_status), 19959: operation(_operation), 19959: file_path(_file_path), 19959: length(_length), 19959: offset(_offset) {} 19959: 19959: IOStatus io_status; 19959: FileOperationType operation; 19959: std::string file_path; 19959: size_t length; 19959: uint64_t offset; 19959: }; 19959: # 566 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: class EventListener : public Customizable { 19959: public: 19959: static const char* Type() { return "EventListener"; } 19959: static Status CreateFromString(const ConfigOptions& options, 19959: const std::string& id, 19959: std::shared_ptr* result); 19959: const char* Name() const override { 19959: 19959: 19959: return ""; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void OnFlushCompleted(DB* , 19959: const FlushJobInfo& ) {} 19959: # 594 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: virtual void OnFlushBegin(DB* , 19959: const FlushJobInfo& ) {} 19959: # 608 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: virtual void OnTableFileDeleted(const TableFileDeletionInfo& ) {} 19959: # 617 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: virtual void OnCompactionBegin(DB* , const CompactionJobInfo& ) {} 19959: # 632 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: virtual void OnCompactionCompleted(DB* , 19959: const CompactionJobInfo& ) {} 19959: # 652 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: virtual void OnSubcompactionBegin(const SubcompactionJobInfo& ) {} 19959: # 670 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: virtual void OnSubcompactionCompleted(const SubcompactionJobInfo& ) {} 19959: # 687 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: virtual void OnTableFileCreated(const TableFileCreationInfo& ) {} 19959: # 696 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: virtual void OnTableFileCreationStarted( 19959: const TableFileCreationBriefInfo& ) {} 19959: # 709 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: virtual void OnMemTableSealed(const MemTableInfo& ) {} 19959: # 719 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: virtual void OnColumnFamilyHandleDeletionStarted( 19959: ColumnFamilyHandle* ) {} 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void OnExternalFileIngested( 19959: DB* , const ExternalFileIngestionInfo& ) {} 19959: # 742 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: virtual void OnBackgroundError(BackgroundErrorReason , 19959: Status* ) {} 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void OnStallConditionsChanged(const WriteStallInfo& ) {} 19959: 19959: 19959: 19959: virtual void OnFileReadFinish(const FileOperationInfo& ) {} 19959: 19959: 19959: 19959: virtual void OnFileWriteFinish(const FileOperationInfo& ) {} 19959: 19959: 19959: 19959: virtual void OnFileFlushFinish(const FileOperationInfo& ) {} 19959: 19959: 19959: 19959: virtual void OnFileSyncFinish(const FileOperationInfo& ) {} 19959: 19959: 19959: 19959: virtual void OnFileRangeSyncFinish(const FileOperationInfo& ) {} 19959: 19959: 19959: 19959: virtual void OnFileTruncateFinish(const FileOperationInfo& ) {} 19959: 19959: 19959: 19959: virtual void OnFileCloseFinish(const FileOperationInfo& ) {} 19959: 19959: 19959: 19959: virtual bool ShouldBeNotifiedOnFileIO() { return false; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void OnErrorRecoveryBegin(BackgroundErrorReason , 19959: Status , 19959: bool* ) {} 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void OnErrorRecoveryCompleted(Status old_bg_error) { 19959: old_bg_error.PermitUncheckedError(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void OnErrorRecoveryEnd(const BackgroundErrorRecoveryInfo& ) { 19959: } 19959: # 818 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: virtual void OnBlobFileCreationStarted( 19959: const BlobFileCreationBriefInfo& ) {} 19959: # 829 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 19959: virtual void OnBlobFileCreated(const BlobFileCreationInfo& ) {} 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void OnBlobFileDeleted(const BlobFileDeletionInfo& ) {} 19959: 19959: 19959: 19959: virtual void OnIOError(const IOErrorInfo& ) {} 19959: 19959: ~EventListener() override {} 19959: }; 19959: 19959: 19959: } 19959: # 29 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_partitioner.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 16 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_partitioner.h" 19959: namespace rocksdb { 19959: 19959: class Slice; 19959: 19959: enum PartitionerResult : char { 19959: 19959: kNotRequired = 0x0, 19959: 19959: kRequired = 0x1 19959: 19959: }; 19959: 19959: struct PartitionerRequest { 19959: PartitionerRequest(const Slice& prev_user_key_, 19959: const Slice& current_user_key_, 19959: uint64_t current_output_file_size_) 19959: : prev_user_key(&prev_user_key_), 19959: current_user_key(¤t_user_key_), 19959: current_output_file_size(current_output_file_size_) {} 19959: const Slice* prev_user_key; 19959: const Slice* current_user_key; 19959: uint64_t current_output_file_size; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class SstPartitioner { 19959: public: 19959: virtual ~SstPartitioner() {} 19959: 19959: 19959: virtual const char* Name() const = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual PartitionerResult ShouldPartition( 19959: const PartitionerRequest& request) = 0; 19959: 19959: 19959: 19959: virtual bool CanDoTrivialMove(const Slice& smallest_user_key, 19959: const Slice& largest_user_key) = 0; 19959: 19959: 19959: struct Context { 19959: 19959: bool is_full_compaction; 19959: 19959: 19959: bool is_manual_compaction; 19959: 19959: int output_level; 19959: 19959: Slice smallest_user_key; 19959: 19959: Slice largest_user_key; 19959: }; 19959: }; 19959: 19959: 19959: 19959: 19959: class SstPartitionerFactory : public Customizable { 19959: public: 19959: ~SstPartitionerFactory() override {} 19959: static const char* Type() { return "SstPartitionerFactory"; } 19959: static Status CreateFromString( 19959: const ConfigOptions& options, const std::string& value, 19959: std::shared_ptr* result); 19959: 19959: virtual std::unique_ptr CreatePartitioner( 19959: const SstPartitioner::Context& context) const = 0; 19959: 19959: 19959: const char* Name() const override = 0; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: class SstPartitionerFixedPrefix : public SstPartitioner { 19959: public: 19959: explicit SstPartitionerFixedPrefix(size_t len) : len_(len) {} 19959: 19959: virtual ~SstPartitionerFixedPrefix() override {} 19959: 19959: const char* Name() const override { return "SstPartitionerFixedPrefix"; } 19959: 19959: PartitionerResult ShouldPartition(const PartitionerRequest& request) override; 19959: 19959: bool CanDoTrivialMove(const Slice& smallest_user_key, 19959: const Slice& largest_user_key) override; 19959: 19959: private: 19959: size_t len_; 19959: }; 19959: 19959: 19959: 19959: 19959: class SstPartitionerFixedPrefixFactory : public SstPartitionerFactory { 19959: public: 19959: explicit SstPartitionerFixedPrefixFactory(size_t len); 19959: 19959: ~SstPartitionerFixedPrefixFactory() override {} 19959: 19959: static const char* kClassName() { return "SstPartitionerFixedPrefixFactory"; } 19959: const char* Name() const override { return kClassName(); } 19959: 19959: std::unique_ptr CreatePartitioner( 19959: const SstPartitioner::Context& ) const override; 19959: 19959: private: 19959: size_t len_; 19959: }; 19959: 19959: extern std::shared_ptr 19959: NewSstPartitionerFixedPrefixFactory(size_t prefix_len); 19959: 19959: } 19959: # 30 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/version.h" 1 19959: 19959: 19959: 19959: 19959: 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/version.h" 19959: namespace rocksdb { 19959: 19959: 19959: const std::unordered_map& GetRocksBuildProperties(); 19959: 19959: 19959: 19959: 19959: std::string GetRocksVersionAsString(bool with_patch = true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: std::string GetRocksBuildInfoAsString(const std::string& program, 19959: bool verbose = false); 19959: } 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 1 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/condition_variable" 1 3 19959: # 32 "/usr/include/c++/13/condition_variable" 3 19959: 19959: # 33 "/usr/include/c++/13/condition_variable" 3 19959: # 54 "/usr/include/c++/13/condition_variable" 3 19959: 19959: # 54 "/usr/include/c++/13/condition_variable" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: # 67 "/usr/include/c++/13/condition_variable" 3 19959: enum class cv_status { no_timeout, timeout }; 19959: 19959: 19959: class condition_variable 19959: { 19959: using steady_clock = chrono::steady_clock; 19959: using system_clock = chrono::system_clock; 19959: 19959: using __clock_t = steady_clock; 19959: 19959: 19959: 19959: 19959: __condvar _M_cond; 19959: 19959: public: 19959: typedef __gthread_cond_t* native_handle_type; 19959: 19959: condition_variable() noexcept; 19959: ~condition_variable() noexcept; 19959: 19959: condition_variable(const condition_variable&) = delete; 19959: condition_variable& operator=(const condition_variable&) = delete; 19959: 19959: void 19959: notify_one() noexcept; 19959: 19959: void 19959: notify_all() noexcept; 19959: 19959: void 19959: wait(unique_lock& __lock); 19959: 19959: template 19959: void 19959: wait(unique_lock& __lock, _Predicate __p) 19959: { 19959: while (!__p()) 19959: wait(__lock); 19959: } 19959: 19959: 19959: template 19959: cv_status 19959: wait_until(unique_lock& __lock, 19959: const chrono::time_point& __atime) 19959: { return __wait_until_impl(__lock, __atime); } 19959: 19959: 19959: template 19959: cv_status 19959: wait_until(unique_lock& __lock, 19959: const chrono::time_point& __atime) 19959: { return __wait_until_impl(__lock, __atime); } 19959: 19959: template 19959: cv_status 19959: wait_until(unique_lock& __lock, 19959: const chrono::time_point<_Clock, _Duration>& __atime) 19959: { 19959: 19959: 19959: 19959: using __s_dur = typename __clock_t::duration; 19959: const typename _Clock::time_point __c_entry = _Clock::now(); 19959: const __clock_t::time_point __s_entry = __clock_t::now(); 19959: const auto __delta = __atime - __c_entry; 19959: const auto __s_atime = __s_entry + 19959: chrono::__detail::ceil<__s_dur>(__delta); 19959: 19959: if (__wait_until_impl(__lock, __s_atime) == cv_status::no_timeout) 19959: return cv_status::no_timeout; 19959: 19959: 19959: 19959: if (_Clock::now() < __atime) 19959: return cv_status::no_timeout; 19959: return cv_status::timeout; 19959: } 19959: 19959: template 19959: bool 19959: wait_until(unique_lock& __lock, 19959: const chrono::time_point<_Clock, _Duration>& __atime, 19959: _Predicate __p) 19959: { 19959: while (!__p()) 19959: if (wait_until(__lock, __atime) == cv_status::timeout) 19959: return __p(); 19959: return true; 19959: } 19959: 19959: template 19959: cv_status 19959: wait_for(unique_lock& __lock, 19959: const chrono::duration<_Rep, _Period>& __rtime) 19959: { 19959: using __dur = typename steady_clock::duration; 19959: return wait_until(__lock, 19959: steady_clock::now() + 19959: chrono::__detail::ceil<__dur>(__rtime)); 19959: } 19959: 19959: template 19959: bool 19959: wait_for(unique_lock& __lock, 19959: const chrono::duration<_Rep, _Period>& __rtime, 19959: _Predicate __p) 19959: { 19959: using __dur = typename steady_clock::duration; 19959: return wait_until(__lock, 19959: steady_clock::now() + 19959: chrono::__detail::ceil<__dur>(__rtime), 19959: std::move(__p)); 19959: } 19959: 19959: native_handle_type 19959: native_handle() 19959: { return _M_cond.native_handle(); } 19959: 19959: private: 19959: 19959: template 19959: cv_status 19959: __wait_until_impl(unique_lock& __lock, 19959: const chrono::time_point& __atime) 19959: { 19959: auto __s = chrono::time_point_cast(__atime); 19959: auto __ns = chrono::duration_cast(__atime - __s); 19959: 19959: __gthread_time_t __ts = 19959: { 19959: static_cast(__s.time_since_epoch().count()), 19959: static_cast(__ns.count()) 19959: }; 19959: 19959: _M_cond.wait_until(*__lock.mutex(), 1, __ts); 19959: 19959: return (steady_clock::now() < __atime 19959: ? cv_status::no_timeout : cv_status::timeout); 19959: } 19959: 19959: 19959: template 19959: cv_status 19959: __wait_until_impl(unique_lock& __lock, 19959: const chrono::time_point& __atime) 19959: { 19959: auto __s = chrono::time_point_cast(__atime); 19959: auto __ns = chrono::duration_cast(__atime - __s); 19959: 19959: __gthread_time_t __ts = 19959: { 19959: static_cast(__s.time_since_epoch().count()), 19959: static_cast(__ns.count()) 19959: }; 19959: 19959: _M_cond.wait_until(*__lock.mutex(), __ts); 19959: 19959: return (system_clock::now() < __atime 19959: ? cv_status::no_timeout : cv_status::timeout); 19959: } 19959: }; 19959: 19959: void 19959: notify_all_at_thread_exit(condition_variable&, unique_lock); 19959: 19959: struct __at_thread_exit_elt 19959: { 19959: __at_thread_exit_elt* _M_next; 19959: void (*_M_cb)(void*); 19959: }; 19959: 19959: inline namespace _V2 { 19959: 19959: 19959: 19959: class condition_variable_any 19959: { 19959: 19959: using __clock_t = chrono::steady_clock; 19959: 19959: 19959: 19959: condition_variable _M_cond; 19959: shared_ptr _M_mutex; 19959: 19959: 19959: template 19959: struct _Unlock 19959: { 19959: explicit _Unlock(_Lock& __lk) : _M_lock(__lk) { __lk.unlock(); } 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: ~_Unlock() noexcept(false) 19959: { 19959: if (uncaught_exception()) 19959: { 19959: try 19959: { _M_lock.lock(); } 19959: catch(const __cxxabiv1::__forced_unwind&) 19959: { throw; } 19959: catch(...) 19959: { } 19959: } 19959: else 19959: _M_lock.lock(); 19959: } 19959: #pragma GCC diagnostic pop 19959: 19959: _Unlock(const _Unlock&) = delete; 19959: _Unlock& operator=(const _Unlock&) = delete; 19959: 19959: _Lock& _M_lock; 19959: }; 19959: 19959: public: 19959: condition_variable_any() : _M_mutex(std::make_shared()) { } 19959: ~condition_variable_any() = default; 19959: 19959: condition_variable_any(const condition_variable_any&) = delete; 19959: condition_variable_any& operator=(const condition_variable_any&) = delete; 19959: 19959: void 19959: notify_one() noexcept 19959: { 19959: lock_guard __lock(*_M_mutex); 19959: _M_cond.notify_one(); 19959: } 19959: 19959: void 19959: notify_all() noexcept 19959: { 19959: lock_guard __lock(*_M_mutex); 19959: _M_cond.notify_all(); 19959: } 19959: 19959: template 19959: void 19959: wait(_Lock& __lock) 19959: { 19959: shared_ptr __mutex = _M_mutex; 19959: unique_lock __my_lock(*__mutex); 19959: _Unlock<_Lock> __unlock(__lock); 19959: 19959: 19959: unique_lock __my_lock2(std::move(__my_lock)); 19959: _M_cond.wait(__my_lock2); 19959: } 19959: 19959: 19959: template 19959: void 19959: wait(_Lock& __lock, _Predicate __p) 19959: { 19959: while (!__p()) 19959: wait(__lock); 19959: } 19959: 19959: template 19959: cv_status 19959: wait_until(_Lock& __lock, 19959: const chrono::time_point<_Clock, _Duration>& __atime) 19959: { 19959: shared_ptr __mutex = _M_mutex; 19959: unique_lock __my_lock(*__mutex); 19959: _Unlock<_Lock> __unlock(__lock); 19959: 19959: 19959: unique_lock __my_lock2(std::move(__my_lock)); 19959: return _M_cond.wait_until(__my_lock2, __atime); 19959: } 19959: 19959: template 19959: bool 19959: wait_until(_Lock& __lock, 19959: const chrono::time_point<_Clock, _Duration>& __atime, 19959: _Predicate __p) 19959: { 19959: while (!__p()) 19959: if (wait_until(__lock, __atime) == cv_status::timeout) 19959: return __p(); 19959: return true; 19959: } 19959: 19959: template 19959: cv_status 19959: wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime) 19959: { return wait_until(__lock, __clock_t::now() + __rtime); } 19959: 19959: template 19959: bool 19959: wait_for(_Lock& __lock, 19959: const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) 19959: { return wait_until(__lock, __clock_t::now() + __rtime, std::move(__p)); } 19959: # 443 "/usr/include/c++/13/condition_variable" 3 19959: }; 19959: 19959: } 19959: 19959: 19959: 19959: } 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 2 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 23 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 19959: namespace rocksdb { 19959: class CacheReservationManager; 19959: 19959: 19959: 19959: class StallInterface { 19959: public: 19959: virtual ~StallInterface() {} 19959: 19959: virtual void Block() = 0; 19959: 19959: virtual void Signal() = 0; 19959: }; 19959: 19959: class WriteBufferManager final { 19959: public: 19959: # 50 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 19959: explicit WriteBufferManager(size_t _buffer_size, 19959: std::shared_ptr cache = {}, 19959: bool allow_stall = false); 19959: 19959: WriteBufferManager(const WriteBufferManager&) = delete; 19959: WriteBufferManager& operator=(const WriteBufferManager&) = delete; 19959: 19959: ~WriteBufferManager(); 19959: 19959: 19959: 19959: bool enabled() const { return buffer_size() > 0; } 19959: 19959: 19959: bool cost_to_cache() const { return cache_res_mgr_ != nullptr; } 19959: 19959: 19959: 19959: size_t memory_usage() const { 19959: return memory_used_.load(std::memory_order_relaxed); 19959: } 19959: 19959: 19959: size_t mutable_memtable_memory_usage() const { 19959: return memory_active_.load(std::memory_order_relaxed); 19959: } 19959: 19959: size_t dummy_entries_in_cache_usage() const; 19959: 19959: 19959: size_t buffer_size() const { 19959: return buffer_size_.load(std::memory_order_relaxed); 19959: } 19959: 19959: 19959: void SetBufferSize(size_t new_size) { 19959: 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 3 4 19959: (static_cast ( 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 19959: new_size > 0 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 19959: "new_size > 0" 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 3 4 19959: , "./include/rocksdb/write_buffer_manager.h", 86, __extension__ __PRETTY_FUNCTION__)) 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 19959: ; 19959: buffer_size_.store(new_size, std::memory_order_relaxed); 19959: mutable_limit_.store(new_size * 7 / 8, std::memory_order_relaxed); 19959: 19959: MaybeEndWriteStall(); 19959: } 19959: 19959: void SetAllowStall(bool new_allow_stall) { 19959: allow_stall_.store(new_allow_stall, std::memory_order_relaxed); 19959: MaybeEndWriteStall(); 19959: } 19959: 19959: 19959: 19959: 19959: bool ShouldFlush() const { 19959: if (enabled()) { 19959: if (mutable_memtable_memory_usage() > 19959: mutable_limit_.load(std::memory_order_relaxed)) { 19959: return true; 19959: } 19959: size_t local_size = buffer_size(); 19959: if (memory_usage() >= local_size && 19959: mutable_memtable_memory_usage() >= local_size / 2) { 19959: 19959: 19959: 19959: return true; 19959: } 19959: } 19959: return false; 19959: } 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 19959: bool ShouldStall() const { 19959: if (!allow_stall_.load(std::memory_order_relaxed) || !enabled()) { 19959: return false; 19959: } 19959: 19959: return IsStallActive() || IsStallThresholdExceeded(); 19959: } 19959: 19959: 19959: bool IsStallActive() const { 19959: return stall_active_.load(std::memory_order_relaxed); 19959: } 19959: 19959: 19959: bool IsStallThresholdExceeded() const { 19959: return memory_usage() >= buffer_size_; 19959: } 19959: 19959: void ReserveMem(size_t mem); 19959: 19959: 19959: 19959: void ScheduleFreeMem(size_t mem); 19959: 19959: void FreeMem(size_t mem); 19959: 19959: 19959: 19959: void BeginWriteStall(StallInterface* wbm_stall); 19959: 19959: 19959: 19959: void MaybeEndWriteStall(); 19959: 19959: void RemoveDBFromQueue(StallInterface* wbm_stall); 19959: 19959: private: 19959: std::atomic buffer_size_; 19959: std::atomic mutable_limit_; 19959: std::atomic memory_used_; 19959: 19959: std::atomic memory_active_; 19959: std::shared_ptr cache_res_mgr_; 19959: 19959: std::mutex cache_res_mgr_mu_; 19959: 19959: std::list queue_; 19959: 19959: std::mutex mu_; 19959: std::atomic allow_stall_; 19959: 19959: 19959: std::atomic stall_active_; 19959: 19959: void ReserveMemWithCache(size_t mem); 19959: void FreeMemWithCache(size_t mem); 19959: }; 19959: } 19959: # 34 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class Cache; 19959: class CompactionFilter; 19959: class CompactionFilterFactory; 19959: class Comparator; 19959: class ConcurrentTaskLimiter; 19959: class Env; 19959: enum InfoLogLevel : unsigned char; 19959: class SstFileManager; 19959: class FilterPolicy; 19959: class Logger; 19959: class MergeOperator; 19959: class Snapshot; 19959: class MemTableRepFactory; 19959: class RateLimiter; 19959: class Slice; 19959: class Statistics; 19959: class InternalKeyComparator; 19959: class WalFilter; 19959: class FileSystem; 19959: 19959: struct Options; 19959: struct DbPath; 19959: 19959: using FileTypeSet = SmallEnumSet; 19959: 19959: struct ColumnFamilyOptions : public AdvancedColumnFamilyOptions { 19959: 19959: 19959: 19959: 19959: 19959: 19959: ColumnFamilyOptions* OldDefaults(int rocksdb_major_version = 4, 19959: int rocksdb_minor_version = 6); 19959: 19959: 19959: 19959: 19959: 19959: ColumnFamilyOptions* OptimizeForSmallDb( 19959: std::shared_ptr* cache = nullptr); 19959: 19959: 19959: 19959: 19959: ColumnFamilyOptions* OptimizeForPointLookup(uint64_t block_cache_size_mb); 19959: # 102 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: ColumnFamilyOptions* OptimizeLevelStyleCompaction( 19959: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 19959: ColumnFamilyOptions* OptimizeUniversalStyleCompaction( 19959: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 19959: # 116 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: const Comparator* comparator = BytewiseComparator(); 19959: # 128 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::shared_ptr merge_operator = nullptr; 19959: # 146 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: const CompactionFilter* compaction_filter = nullptr; 19959: # 165 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::shared_ptr compaction_filter_factory = nullptr; 19959: # 186 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: size_t write_buffer_size = 64 << 20; 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: CompressionType compression; 19959: # 223 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: CompressionType bottommost_compression = kDisableCompressionOption; 19959: 19959: 19959: 19959: 19959: 19959: CompressionOptions bottommost_compression_opts; 19959: 19959: 19959: CompressionOptions compression_opts; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: int level0_file_num_compaction_trigger = 4; 19959: # 274 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::shared_ptr prefix_extractor = nullptr; 19959: # 288 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: uint64_t max_bytes_for_level_base = 256 * 1048576; 19959: 19959: 19959: uint64_t snap_refresh_nanos = 0; 19959: 19959: 19959: 19959: 19959: 19959: bool disable_auto_compactions = false; 19959: 19959: 19959: 19959: 19959: 19959: std::shared_ptr table_factory; 19959: # 317 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::vector cf_paths; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: std::shared_ptr compaction_thread_limiter = nullptr; 19959: # 334 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::shared_ptr sst_partitioner_factory = nullptr; 19959: # 345 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: uint32_t memtable_max_range_deletions = 0; 19959: 19959: 19959: ColumnFamilyOptions(); 19959: 19959: explicit ColumnFamilyOptions(const Options& options); 19959: 19959: void Dump(Logger* log) const; 19959: }; 19959: 19959: enum class WALRecoveryMode : char { 19959: # 375 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: kTolerateCorruptedTailRecords = 0x00, 19959: 19959: 19959: 19959: 19959: kAbsoluteConsistency = 0x01, 19959: 19959: 19959: 19959: 19959: kPointInTimeRecovery = 0x02, 19959: 19959: 19959: 19959: 19959: 19959: kSkipAnyCorruptedRecords = 0x03, 19959: }; 19959: 19959: struct DbPath { 19959: std::string path; 19959: uint64_t target_size; 19959: 19959: DbPath() : target_size(0) {} 19959: DbPath(const std::string& p, uint64_t t) : path(p), target_size(t) {} 19959: }; 19959: 19959: extern const char* kHostnameForDbHostId; 19959: 19959: enum class CompactionServiceJobStatus : char { 19959: kSuccess, 19959: kFailure, 19959: kUseLocal, 19959: }; 19959: 19959: struct CompactionServiceJobInfo { 19959: std::string db_name; 19959: std::string db_id; 19959: std::string db_session_id; 19959: uint64_t job_id; 19959: 19959: 19959: 19959: 19959: Env::Priority priority; 19959: 19959: CompactionServiceJobInfo(std::string db_name_, std::string db_id_, 19959: std::string db_session_id_, uint64_t job_id_, 19959: Env::Priority priority_) 19959: : db_name(std::move(db_name_)), 19959: db_id(std::move(db_id_)), 19959: db_session_id(std::move(db_session_id_)), 19959: job_id(job_id_), 19959: priority(priority_) {} 19959: }; 19959: 19959: 19959: 19959: 19959: class CompactionService : public Customizable { 19959: public: 19959: static const char* Type() { return "CompactionService"; } 19959: 19959: 19959: const char* Name() const override = 0; 19959: 19959: 19959: 19959: 19959: virtual CompactionServiceJobStatus StartV2( 19959: const CompactionServiceJobInfo& , 19959: const std::string& ) { 19959: return CompactionServiceJobStatus::kUseLocal; 19959: } 19959: 19959: 19959: virtual CompactionServiceJobStatus WaitForCompleteV2( 19959: const CompactionServiceJobInfo& , 19959: std::string* ) { 19959: return CompactionServiceJobStatus::kUseLocal; 19959: } 19959: 19959: ~CompactionService() override = default; 19959: }; 19959: 19959: struct DBOptions { 19959: 19959: 19959: 19959: 19959: 19959: DBOptions* OldDefaults(int rocksdb_major_version = 4, 19959: int rocksdb_minor_version = 6); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: DBOptions* OptimizeForSmallDb(std::shared_ptr* cache = nullptr); 19959: 19959: 19959: 19959: 19959: 19959: 19959: DBOptions* IncreaseParallelism(int total_threads = 16); 19959: 19959: 19959: 19959: bool create_if_missing = false; 19959: 19959: 19959: 19959: 19959: bool create_missing_column_families = false; 19959: 19959: 19959: 19959: bool error_if_exists = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool paranoid_checks = true; 19959: # 513 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool flush_verify_memtable_count = true; 19959: # 528 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool compaction_verify_record_count = true; 19959: # 544 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool track_and_verify_wals_in_manifest = false; 19959: # 564 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool verify_sst_unique_id_in_manifest = true; 19959: 19959: 19959: 19959: 19959: 19959: 19959: Env* env = Env::Default(); 19959: # 589 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::shared_ptr rate_limiter = nullptr; 19959: # 605 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::shared_ptr sst_file_manager = nullptr; 19959: 19959: 19959: 19959: 19959: 19959: std::shared_ptr info_log = nullptr; 19959: 19959: 19959: 19959: 19959: InfoLogLevel info_log_level = DEBUG_LEVEL; 19959: # 632 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: int max_open_files = -1; 19959: 19959: 19959: 19959: 19959: int max_file_opening_threads = 16; 19959: # 660 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: uint64_t max_total_wal_size = 0; 19959: 19959: 19959: std::shared_ptr statistics = nullptr; 19959: # 673 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool use_fsync = false; 19959: # 699 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::vector db_paths; 19959: 19959: 19959: 19959: 19959: 19959: 19959: std::string db_log_dir = ""; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: std::string wal_dir = ""; 19959: # 724 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: uint64_t delete_obsolete_files_period_micros = 6ULL * 60 * 60 * 1000000; 19959: 19959: 19959: 19959: 19959: 19959: 19959: int max_background_jobs = 2; 19959: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: int max_background_compactions = -1; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint32_t max_subcompactions = 1; 19959: # 779 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: int max_background_flushes = -1; 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t max_log_file_size = 0; 19959: 19959: 19959: 19959: 19959: 19959: size_t log_file_time_to_roll = 0; 19959: 19959: 19959: 19959: size_t keep_log_file_num = 1000; 19959: # 806 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: size_t recycle_log_file_num = 0; 19959: 19959: 19959: 19959: 19959: 19959: uint64_t max_manifest_file_size = 1024 * 1024 * 1024; 19959: 19959: 19959: int table_cache_numshardbits = 6; 19959: # 834 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: uint64_t WAL_ttl_seconds = 0; 19959: uint64_t WAL_size_limit_MB = 0; 19959: 19959: 19959: 19959: 19959: 19959: size_t manifest_preallocation_size = 4 * 1024 * 1024; 19959: # 854 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool allow_mmap_reads = false; 19959: 19959: 19959: 19959: 19959: bool allow_mmap_writes = false; 19959: # 871 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool use_direct_reads = false; 19959: 19959: 19959: 19959: bool use_direct_io_for_flush_and_compaction = false; 19959: # 886 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool allow_fallocate = true; 19959: 19959: 19959: bool is_fd_close_on_exec = true; 19959: 19959: 19959: 19959: 19959: 19959: 19959: unsigned int stats_dump_period_sec = 600; 19959: 19959: 19959: 19959: unsigned int stats_persist_period_sec = 600; 19959: # 912 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool persist_stats_to_disk = false; 19959: 19959: 19959: 19959: 19959: size_t stats_history_buffer_size = 1024 * 1024; 19959: 19959: 19959: 19959: 19959: bool advise_random_on_open = true; 19959: # 934 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: size_t db_write_buffer_size = 0; 19959: # 951 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::shared_ptr write_buffer_manager = nullptr; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: enum AccessHint { NONE, NORMAL, SEQUENTIAL, WILLNEED }; 19959: AccessHint access_hint_on_compaction_start = NORMAL; 19959: # 969 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: size_t compaction_readahead_size = 2 * 1024 * 1024; 19959: # 986 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: size_t random_access_max_buffer_size = 1024 * 1024; 19959: # 997 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: size_t writable_file_max_buffer_size = 1024 * 1024; 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool use_adaptive_mutex = false; 19959: 19959: 19959: DBOptions(); 19959: 19959: explicit DBOptions(const Options& options); 19959: 19959: void Dump(Logger* log) const; 19959: # 1029 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: uint64_t bytes_per_sync = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint64_t wal_bytes_per_sync = 0; 19959: # 1057 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool strict_bytes_per_sync = false; 19959: 19959: 19959: 19959: std::vector> listeners; 19959: 19959: 19959: 19959: 19959: 19959: bool enable_thread_tracking = false; 19959: # 1085 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: uint64_t delayed_write_rate = 0; 19959: # 1100 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool enable_pipelined_write = false; 19959: # 1126 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool unordered_write = false; 19959: # 1136 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool allow_concurrent_memtable_write = true; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool enable_write_thread_adaptive_yield = true; 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint64_t max_write_batch_group_size_bytes = 1 << 20; 19959: # 1160 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: uint64_t write_thread_max_yield_usec = 100; 19959: # 1170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: uint64_t write_thread_slow_yield_usec = 3; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool skip_stats_update_on_db_open = false; 19959: # 1188 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool skip_checking_sst_file_sizes_on_db_open = false; 19959: 19959: 19959: 19959: WALRecoveryMode wal_recovery_mode = WALRecoveryMode::kPointInTimeRecovery; 19959: 19959: 19959: 19959: bool allow_2pc = false; 19959: 19959: 19959: 19959: std::shared_ptr row_cache = nullptr; 19959: 19959: 19959: 19959: 19959: 19959: 19959: WalFilter* wal_filter = nullptr; 19959: 19959: 19959: 19959: 19959: 19959: bool fail_if_options_file_error = true; 19959: 19959: 19959: 19959: 19959: bool dump_malloc_stats = false; 19959: # 1227 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool avoid_flush_during_recovery = false; 19959: # 1236 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool avoid_flush_during_shutdown = false; 19959: # 1251 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool allow_ingest_behind = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool two_write_queues = false; 19959: 19959: 19959: 19959: 19959: bool manual_wal_flush = false; 19959: 19959: 19959: 19959: 19959: 19959: CompressionType wal_compression = kNoCompression; 19959: # 1283 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool atomic_flush = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool avoid_unnecessary_blocking_io = false; 19959: # 1302 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool write_dbid_to_manifest = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t log_readahead_size = 0; 19959: # 1318 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::shared_ptr file_checksum_gen_factory = nullptr; 19959: # 1352 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool best_efforts_recovery = false; 19959: # 1362 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: int max_bgerror_resume_count = 0x7fffffff 19959: # 1362 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: ; 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint64_t bgerror_resume_retry_interval = 1000000; 19959: # 1378 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool allow_data_in_errors = false; 19959: # 1391 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::string db_host_id = kHostnameForDbHostId; 19959: # 1401 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: FileTypeSet checksum_handoff_file_types; 19959: # 1410 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::shared_ptr compaction_service = nullptr; 19959: # 1422 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: CacheTier lowest_used_cache_tier = CacheTier::kNonVolatileBlockTier; 19959: # 1435 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool enforce_single_del_contracts = true; 19959: # 1453 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::string daily_offpeak_time_utc = ""; 19959: }; 19959: 19959: 19959: struct Options : public DBOptions, public ColumnFamilyOptions { 19959: 19959: Options() : DBOptions(), ColumnFamilyOptions() {} 19959: 19959: Options(const DBOptions& db_options, 19959: const ColumnFamilyOptions& column_family_options) 19959: : DBOptions(db_options), ColumnFamilyOptions(column_family_options) {} 19959: 19959: 19959: 19959: 19959: 19959: 19959: Options* OldDefaults(int rocksdb_major_version = 4, 19959: int rocksdb_minor_version = 6); 19959: 19959: void Dump(Logger* log) const; 19959: 19959: void DumpCFOptions(Logger* log) const; 19959: # 1487 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: Options* PrepareForBulkLoad(); 19959: 19959: 19959: 19959: Options* OptimizeForSmallDb(); 19959: 19959: 19959: 19959: 19959: 19959: Options* DisableExtraChecks(); 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: enum ReadTier { 19959: kReadAllTier = 0x0, 19959: kBlockCacheTier = 0x1, 19959: kPersistedTier = 0x2, 19959: 19959: 19959: 19959: kMemtableTier = 0x3 19959: }; 19959: 19959: 19959: struct ReadOptions { 19959: 19959: 19959: 19959: 19959: 19959: 19959: const Snapshot* snapshot = nullptr; 19959: # 1536 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: const Slice* timestamp = nullptr; 19959: const Slice* iter_start_ts = nullptr; 19959: # 1548 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: std::chrono::microseconds deadline = std::chrono::microseconds::zero(); 19959: 19959: 19959: 19959: 19959: 19959: std::chrono::microseconds io_timeout = std::chrono::microseconds::zero(); 19959: 19959: 19959: 19959: 19959: ReadTier read_tier = kReadAllTier; 19959: # 1573 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 19959: 19959: 19959: 19959: 19959: uint64_t value_size_soft_limit = std::numeric_limits::max(); 19959: 19959: 19959: 19959: 19959: 19959: std::optional merge_operand_count_threshold; 19959: 19959: 19959: 19959: bool verify_checksums = true; 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool fill_cache = true; 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool ignore_range_deletions = false; 19959: 19959: 19959: 19959: 19959: bool async_io = false; 19959: # 1616 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool optimize_multiget_for_io = true; 19959: # 1629 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: size_t readahead_size = 0; 19959: 19959: 19959: 19959: 19959: uint64_t max_skippable_internal_keys = 0; 19959: # 1647 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: const Slice* iterate_lower_bound = nullptr; 19959: # 1667 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: const Slice* iterate_upper_bound = nullptr; 19959: 19959: 19959: 19959: 19959: 19959: bool tailing = false; 19959: 19959: 19959: 19959: bool managed = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool total_order_seek = false; 19959: # 1700 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool auto_prefix_mode = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool prefix_same_as_start = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool pin_data = false; 19959: # 1725 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool adaptive_readahead = false; 19959: 19959: 19959: 19959: 19959: bool background_purge_on_iterator_cleanup = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: std::function table_filter; 19959: # 1756 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool auto_readahead_size = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 19959: 19959: 19959: 19959: ReadOptions() {} 19959: ReadOptions(bool _verify_checksums, bool _fill_cache); 19959: explicit ReadOptions(Env::IOActivity _io_activity); 19959: }; 19959: 19959: 19959: struct WriteOptions { 19959: # 1790 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool sync; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool disableWAL; 19959: 19959: 19959: 19959: 19959: 19959: bool ignore_missing_column_families; 19959: 19959: 19959: 19959: 19959: bool no_slowdown; 19959: # 1818 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool low_pri; 19959: # 1827 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool memtable_insert_hint_per_batch; 19959: # 1842 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: Env::IOPriority rate_limiter_priority; 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t protection_bytes_per_key; 19959: 19959: WriteOptions() 19959: : sync(false), 19959: disableWAL(false), 19959: ignore_missing_column_families(false), 19959: no_slowdown(false), 19959: low_pri(false), 19959: memtable_insert_hint_per_batch(false), 19959: rate_limiter_priority(Env::IO_TOTAL), 19959: protection_bytes_per_key(0) {} 19959: }; 19959: 19959: 19959: struct FlushOptions { 19959: 19959: 19959: bool wait; 19959: 19959: 19959: 19959: 19959: 19959: bool allow_write_stall; 19959: FlushOptions() : wait(true), allow_write_stall(false) {} 19959: }; 19959: 19959: 19959: extern Status CreateLoggerFromOptions(const std::string& dbname, 19959: const DBOptions& options, 19959: std::shared_ptr* logger); 19959: 19959: 19959: struct CompactionOptions { 19959: 19959: 19959: 19959: 19959: 19959: CompressionType compression; 19959: 19959: 19959: uint64_t output_file_size_limit; 19959: 19959: uint32_t max_subcompactions; 19959: 19959: CompactionOptions() 19959: : compression(kSnappyCompression), 19959: output_file_size_limit(std::numeric_limits::max()), 19959: max_subcompactions(0) {} 19959: }; 19959: 19959: 19959: 19959: enum class BottommostLevelCompaction { 19959: 19959: kSkip, 19959: 19959: 19959: 19959: 19959: 19959: kIfHaveCompactionFilter, 19959: 19959: kForce, 19959: 19959: 19959: kForceOptimized, 19959: }; 19959: 19959: 19959: 19959: enum class BlobGarbageCollectionPolicy { 19959: 19959: kForce, 19959: 19959: kDisable, 19959: 19959: kUseDefault, 19959: }; 19959: 19959: 19959: struct CompactRangeOptions { 19959: 19959: 19959: 19959: 19959: bool exclusive_manual_compaction = false; 19959: 19959: 19959: 19959: bool change_level = false; 19959: 19959: 19959: int target_level = -1; 19959: 19959: 19959: uint32_t target_path_id = 0; 19959: 19959: 19959: BottommostLevelCompaction bottommost_level_compaction = 19959: BottommostLevelCompaction::kIfHaveCompactionFilter; 19959: 19959: 19959: bool allow_write_stall = false; 19959: 19959: uint32_t max_subcompactions = 0; 19959: 19959: 19959: const Slice* full_history_ts_low = nullptr; 19959: 19959: 19959: 19959: 19959: 19959: std::atomic* canceled = nullptr; 19959: # 1977 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: BlobGarbageCollectionPolicy blob_garbage_collection_policy = 19959: BlobGarbageCollectionPolicy::kUseDefault; 19959: 19959: 19959: 19959: 19959: 19959: double blob_garbage_collection_age_cutoff = -1; 19959: }; 19959: 19959: 19959: struct IngestExternalFileOptions { 19959: 19959: bool move_files = false; 19959: 19959: bool failed_move_fall_back_to_copy = true; 19959: 19959: 19959: bool snapshot_consistency = true; 19959: 19959: 19959: 19959: 19959: bool allow_global_seqno = true; 19959: 19959: 19959: bool allow_blocking_flush = true; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool ingest_behind = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool write_global_seqno = false; 19959: 19959: 19959: 19959: 19959: bool verify_checksums_before_ingest = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t verify_checksums_readahead_size = 0; 19959: # 2051 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: bool verify_file_checksum = true; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool fail_if_not_bottommost_level = false; 19959: }; 19959: 19959: enum TraceFilterType : uint64_t { 19959: 19959: kTraceFilterNone = 0x0, 19959: 19959: kTraceFilterGet = 0x1 << 0, 19959: 19959: kTraceFilterWrite = 0x1 << 1, 19959: 19959: kTraceFilterIteratorSeek = 0x1 << 2, 19959: 19959: kTraceFilterIteratorSeekForPrev = 0x1 << 3, 19959: 19959: kTraceFilterMultiGet = 0x1 << 4, 19959: }; 19959: 19959: 19959: struct TraceOptions { 19959: 19959: 19959: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 19959: 19959: 19959: uint64_t sampling_frequency = 1; 19959: 19959: uint64_t filter = kTraceFilterNone; 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool preserve_write_order = false; 19959: }; 19959: 19959: 19959: struct ImportColumnFamilyOptions { 19959: 19959: bool move_files = false; 19959: }; 19959: 19959: 19959: struct SizeApproximationOptions { 19959: 19959: 19959: bool include_memtables = false; 19959: 19959: 19959: bool include_files = true; 19959: # 2119 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 19959: double files_size_error_margin = -1.0; 19959: }; 19959: 19959: struct CompactionServiceOptionsOverride { 19959: 19959: 19959: 19959: Env* env = Env::Default(); 19959: std::shared_ptr file_checksum_gen_factory = nullptr; 19959: 19959: const Comparator* comparator = BytewiseComparator(); 19959: std::shared_ptr merge_operator = nullptr; 19959: const CompactionFilter* compaction_filter = nullptr; 19959: std::shared_ptr compaction_filter_factory = nullptr; 19959: std::shared_ptr prefix_extractor = nullptr; 19959: std::shared_ptr table_factory; 19959: std::shared_ptr sst_partitioner_factory = nullptr; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: std::vector> listeners; 19959: 19959: 19959: 19959: 19959: std::shared_ptr statistics = nullptr; 19959: 19959: 19959: 19959: std::vector> 19959: table_properties_collector_factories; 19959: }; 19959: 19959: struct OpenAndCompactOptions { 19959: 19959: std::atomic* canceled = nullptr; 19959: }; 19959: 19959: struct LiveFilesStorageInfoOptions { 19959: 19959: bool include_checksum_info = false; 19959: 19959: 19959: 19959: uint64_t wal_size_for_flush = 0; 19959: }; 19959: 19959: struct WaitForCompactOptions { 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool abort_on_pause = false; 19959: 19959: 19959: bool flush = false; 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool close_db = false; 19959: 19959: 19959: 19959: 19959: 19959: std::chrono::microseconds timeout = std::chrono::microseconds::zero(); 19959: }; 19959: 19959: } 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 1 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: 19959: # 31 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: namespace rocksdb { 19959: 19959: 19959: class Cache; 19959: class FilterPolicy; 19959: class FlushBlockPolicyFactory; 19959: class PersistentCache; 19959: class RandomAccessFile; 19959: struct TableReaderOptions; 19959: struct TableBuilderOptions; 19959: class TableBuilder; 19959: class TableFactory; 19959: class TableReader; 19959: class WritableFileWriter; 19959: struct ConfigOptions; 19959: struct EnvOptions; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: enum ChecksumType : char { 19959: kNoChecksum = 0x0, 19959: kCRC32c = 0x1, 19959: kxxHash = 0x2, 19959: kxxHash64 = 0x3, 19959: kXXH3 = 0x4, 19959: }; 19959: 19959: 19959: 19959: 19959: enum class PinningTier { 19959: 19959: 19959: 19959: 19959: kFallback, 19959: 19959: 19959: kNone, 19959: 19959: 19959: 19959: 19959: 19959: 19959: kFlushedAndSimilar, 19959: 19959: 19959: kAll, 19959: }; 19959: 19959: 19959: 19959: struct MetadataCacheOptions { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: PinningTier top_level_index_pinning = PinningTier::kFallback; 19959: 19959: 19959: 19959: PinningTier partition_pinning = PinningTier::kFallback; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: PinningTier unpartitioned_pinning = PinningTier::kFallback; 19959: }; 19959: 19959: struct CacheEntryRoleOptions { 19959: enum class Decision { 19959: kEnabled, 19959: kDisabled, 19959: kFallback, 19959: }; 19959: Decision charged = Decision::kFallback; 19959: bool operator==(const CacheEntryRoleOptions& other) const { 19959: return charged == other.charged; 19959: } 19959: }; 19959: 19959: struct CacheUsageOptions { 19959: CacheEntryRoleOptions options; 19959: std::map options_overrides; 19959: }; 19959: 19959: 19959: struct BlockBasedTableOptions { 19959: static const char* kName() { return "BlockTableOptions"; }; 19959: 19959: 19959: 19959: 19959: 19959: std::shared_ptr flush_block_policy_factory; 19959: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: bool cache_index_and_filter_blocks = false; 19959: 19959: 19959: 19959: 19959: 19959: bool cache_index_and_filter_blocks_with_high_priority = true; 19959: # 178 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: bool pin_l0_filter_and_index_blocks_in_cache = false; 19959: # 200 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: bool pin_top_level_index_and_filter = true; 19959: 19959: 19959: 19959: 19959: 19959: MetadataCacheOptions metadata_cache_options; 19959: 19959: 19959: enum IndexType : char { 19959: 19959: 19959: kBinarySearch = 0x00, 19959: 19959: 19959: 19959: kHashSearch = 0x01, 19959: 19959: 19959: 19959: 19959: kTwoLevelIndexSearch = 0x02, 19959: # 234 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: kBinarySearchWithFirstKey = 0x03, 19959: }; 19959: 19959: IndexType index_type = kBinarySearch; 19959: 19959: 19959: enum DataBlockIndexType : char { 19959: kDataBlockBinarySearch = 0, 19959: kDataBlockBinaryAndHash = 1, 19959: }; 19959: 19959: DataBlockIndexType data_block_index_type = kDataBlockBinarySearch; 19959: 19959: 19959: 19959: double data_block_hash_table_util_ratio = 0.75; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ChecksumType checksum = kXXH3; 19959: 19959: 19959: 19959: 19959: bool no_block_cache = false; 19959: 19959: 19959: 19959: std::shared_ptr block_cache = nullptr; 19959: 19959: 19959: 19959: std::shared_ptr persistent_cache = nullptr; 19959: 19959: 19959: 19959: 19959: 19959: uint64_t block_size = 4 * 1024; 19959: 19959: 19959: 19959: 19959: 19959: 19959: int block_size_deviation = 10; 19959: 19959: 19959: 19959: 19959: 19959: int block_restart_interval = 16; 19959: 19959: 19959: int index_block_restart_interval = 1; 19959: # 303 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: uint64_t metadata_block_size = 4096; 19959: # 391 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: CacheUsageOptions cache_usage_options; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool partition_filters = false; 19959: # 434 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: bool optimize_filters_for_memory = false; 19959: 19959: 19959: 19959: 19959: 19959: bool use_delta_encoding = true; 19959: 19959: 19959: 19959: 19959: std::shared_ptr filter_policy = nullptr; 19959: 19959: 19959: 19959: bool whole_key_filtering = true; 19959: # 463 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: bool detect_filter_construct_corruption = false; 19959: 19959: 19959: 19959: 19959: bool verify_compression = false; 19959: # 491 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: uint32_t read_amp_bytes_per_bit = 0; 19959: # 521 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: uint32_t format_version = 5; 19959: 19959: 19959: 19959: 19959: bool enable_index_compression = true; 19959: 19959: 19959: bool block_align = false; 19959: # 553 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: enum class IndexShorteningMode : char { 19959: 19959: kNoShortening, 19959: 19959: 19959: kShortenSeparators, 19959: 19959: kShortenSeparatorsAndSuccessor, 19959: }; 19959: 19959: IndexShorteningMode index_shortening = 19959: IndexShorteningMode::kShortenSeparators; 19959: # 592 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: size_t max_auto_readahead_size = 256 * 1024; 19959: # 606 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: enum class PrepopulateBlockCache : char { 19959: 19959: kDisable, 19959: 19959: kFlushOnly, 19959: }; 19959: 19959: PrepopulateBlockCache prepopulate_block_cache = 19959: PrepopulateBlockCache::kDisable; 19959: # 643 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: size_t initial_auto_readahead_size = 8 * 1024; 19959: # 663 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: uint64_t num_file_reads_for_auto_readahead = 2; 19959: }; 19959: 19959: 19959: struct BlockBasedTablePropertyNames { 19959: 19959: static const std::string kIndexType; 19959: 19959: static const std::string kWholeKeyFiltering; 19959: 19959: static const std::string kPrefixFiltering; 19959: }; 19959: 19959: 19959: extern TableFactory* NewBlockBasedTableFactory( 19959: const BlockBasedTableOptions& table_options = BlockBasedTableOptions()); 19959: 19959: 19959: enum EncodingType : char { 19959: 19959: kPlain, 19959: # 695 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: kPrefix, 19959: }; 19959: 19959: 19959: struct PlainTablePropertyNames { 19959: static const std::string kEncodingType; 19959: static const std::string kBloomVersion; 19959: static const std::string kNumBloomBlocks; 19959: }; 19959: 19959: const uint32_t kPlainTableVariableLength = 0; 19959: 19959: struct PlainTableOptions { 19959: static const char* kName() { return "PlainTableOptions"; }; 19959: 19959: 19959: 19959: 19959: uint32_t user_key_len = kPlainTableVariableLength; 19959: 19959: 19959: 19959: int bloom_bits_per_key = 10; 19959: 19959: 19959: 19959: 19959: 19959: double hash_table_ratio = 0.75; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t index_sparseness = 16; 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t huge_page_tlb_size = 0; 19959: # 748 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: EncodingType encoding_type = kPlain; 19959: 19959: 19959: 19959: bool full_scan_mode = false; 19959: 19959: 19959: 19959: 19959: bool store_index_in_file = false; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern TableFactory* NewPlainTableFactory( 19959: const PlainTableOptions& options = PlainTableOptions()); 19959: 19959: struct CuckooTablePropertyNames { 19959: 19959: static const std::string kEmptyKey; 19959: 19959: static const std::string kValueLength; 19959: 19959: static const std::string kNumHashFunc; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kCuckooBlockSize; 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kHashTableSize; 19959: 19959: 19959: static const std::string kIsLastLevel; 19959: 19959: static const std::string kIdentityAsFirstHash; 19959: 19959: static const std::string kUseModuleHash; 19959: 19959: static const std::string kUserKeyLength; 19959: }; 19959: 19959: struct CuckooTableOptions { 19959: static const char* kName() { return "CuckooTableOptions"; }; 19959: 19959: 19959: 19959: double hash_table_ratio = 0.9; 19959: 19959: 19959: 19959: 19959: 19959: uint32_t max_search_depth = 100; 19959: 19959: 19959: 19959: 19959: 19959: uint32_t cuckoo_block_size = 5; 19959: 19959: 19959: 19959: 19959: bool identity_as_first_hash = false; 19959: 19959: 19959: 19959: 19959: 19959: bool use_module_hash = true; 19959: }; 19959: 19959: 19959: extern TableFactory* NewCuckooTableFactory( 19959: const CuckooTableOptions& table_options = CuckooTableOptions()); 19959: 19959: 19959: class RandomAccessFileReader; 19959: 19959: 19959: class TableFactory : public Customizable { 19959: public: 19959: virtual ~TableFactory() override {} 19959: 19959: static const char* kBlockCacheOpts() { return "BlockCache"; }; 19959: static const char* kBlockBasedTableName() { return "BlockBasedTable"; }; 19959: static const char* kPlainTableName() { return "PlainTable"; } 19959: static const char* kCuckooTableName() { return "CuckooTable"; }; 19959: 19959: 19959: static Status CreateFromString(const ConfigOptions& config_options, 19959: const std::string& id, 19959: std::shared_ptr* factory); 19959: 19959: static const char* Type() { return "TableFactory"; } 19959: # 873 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: virtual Status NewTableReader( 19959: const TableReaderOptions& table_reader_options, 19959: std::unique_ptr&& file, uint64_t file_size, 19959: std::unique_ptr* table_reader, 19959: bool prefetch_index_and_filter_in_cache = true) const { 19959: ReadOptions ro; 19959: return NewTableReader(ro, table_reader_options, std::move(file), file_size, 19959: table_reader, prefetch_index_and_filter_in_cache); 19959: } 19959: 19959: 19959: 19959: virtual Status NewTableReader( 19959: const ReadOptions& ro, const TableReaderOptions& table_reader_options, 19959: std::unique_ptr&& file, uint64_t file_size, 19959: std::unique_ptr* table_reader, 19959: bool prefetch_index_and_filter_in_cache) const = 0; 19959: # 909 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: virtual TableBuilder* NewTableBuilder( 19959: const TableBuilderOptions& table_builder_options, 19959: WritableFileWriter* file) const = 0; 19959: 19959: 19959: virtual bool IsDeleteRangeSupported() const { return false; } 19959: }; 19959: # 926 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 19959: extern TableFactory* NewAdaptiveTableFactory( 19959: std::shared_ptr table_factory_to_write = nullptr, 19959: std::shared_ptr block_based_table_factory = nullptr, 19959: std::shared_ptr plain_table_factory = nullptr, 19959: std::shared_ptr cuckoo_table_factory = nullptr); 19959: 19959: 19959: } 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 2 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class FileLock; 19959: class FSDirectory; 19959: class FSRandomAccessFile; 19959: class FSRandomRWFile; 19959: class FSSequentialFile; 19959: class FSWritableFile; 19959: class Logger; 19959: class Slice; 19959: struct ImmutableDBOptions; 19959: struct MutableDBOptions; 19959: class RateLimiter; 19959: struct ConfigOptions; 19959: 19959: using AccessPattern = RandomAccessFile::AccessPattern; 19959: using FileAttributes = Env::FileAttributes; 19959: 19959: 19959: 19959: 19959: 19959: 19959: enum class IOPriority : uint8_t { 19959: kIOLow, 19959: kIOHigh, 19959: kIOTotal, 19959: }; 19959: 19959: 19959: 19959: 19959: enum class IOType : uint8_t { 19959: kData, 19959: kFilter, 19959: kIndex, 19959: kMetadata, 19959: kWAL, 19959: kManifest, 19959: kLog, 19959: kUnknown, 19959: kInvalid, 19959: }; 19959: 19959: 19959: 19959: enum FSSupportedOps { kAsyncIO, kFSBuffer }; 19959: 19959: 19959: 19959: 19959: 19959: struct IOOptions { 19959: 19959: std::chrono::microseconds timeout; 19959: 19959: 19959: 19959: IOPriority prio; 19959: 19959: 19959: 19959: 19959: 19959: Env::IOPriority rate_limiter_priority; 19959: 19959: 19959: IOType type; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: std::unordered_map property_bag; 19959: 19959: 19959: 19959: bool force_dir_fsync; 19959: 19959: 19959: 19959: bool do_not_recurse; 19959: 19959: 19959: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 19959: 19959: IOOptions() : IOOptions(false) {} 19959: 19959: explicit IOOptions(bool force_dir_fsync_) 19959: : timeout(std::chrono::microseconds::zero()), 19959: prio(IOPriority::kIOLow), 19959: rate_limiter_priority(Env::IO_TOTAL), 19959: type(IOType::kUnknown), 19959: force_dir_fsync(force_dir_fsync_), 19959: do_not_recurse(false) {} 19959: }; 19959: 19959: struct DirFsyncOptions { 19959: enum FsyncReason : uint8_t { 19959: kNewFileSynced, 19959: kFileRenamed, 19959: kDirRenamed, 19959: kFileDeleted, 19959: kDefault, 19959: } reason; 19959: 19959: std::string renamed_new_name; 19959: 19959: 19959: DirFsyncOptions(); 19959: 19959: explicit DirFsyncOptions(std::string file_renamed_new_name); 19959: 19959: explicit DirFsyncOptions(FsyncReason fsync_reason); 19959: }; 19959: 19959: 19959: 19959: 19959: struct FileOptions : EnvOptions { 19959: 19959: 19959: IOOptions io_options; 19959: 19959: 19959: 19959: 19959: 19959: 19959: Temperature temperature = Temperature::kUnknown; 19959: 19959: 19959: 19959: ChecksumType handoff_checksum_type; 19959: 19959: FileOptions() : EnvOptions(), handoff_checksum_type(ChecksumType::kCRC32c) {} 19959: 19959: FileOptions(const DBOptions& opts) 19959: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 19959: 19959: FileOptions(const EnvOptions& opts) 19959: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 19959: 19959: FileOptions(const FileOptions& opts) 19959: : EnvOptions(opts), 19959: io_options(opts.io_options), 19959: temperature(opts.temperature), 19959: handoff_checksum_type(opts.handoff_checksum_type) {} 19959: 19959: FileOptions& operator=(const FileOptions&) = default; 19959: }; 19959: 19959: 19959: 19959: struct IODebugContext { 19959: 19959: std::string file_path; 19959: 19959: 19959: std::map counters; 19959: 19959: 19959: std::string msg; 19959: 19959: 19959: std::string request_id; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: enum TraceData : char { 19959: 19959: 19959: 19959: kRequestID = 0, 19959: }; 19959: uint64_t trace_data = 0; 19959: 19959: IODebugContext() {} 19959: 19959: void AddCounter(std::string& name, uint64_t value) { 19959: counters.emplace(name, value); 19959: } 19959: 19959: 19959: 19959: void SetRequestId(const std::string& _request_id) { 19959: request_id = _request_id; 19959: trace_data |= (1 << TraceData::kRequestID); 19959: } 19959: 19959: std::string ToString() { 19959: std::ostringstream ss; 19959: ss << file_path << ", "; 19959: for (auto counter : counters) { 19959: ss << counter.first << " = " << counter.second << ","; 19959: } 19959: ss << msg; 19959: return ss.str(); 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: using IOHandleDeleter = std::function; 19959: # 270 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: class FileSystem : public Customizable { 19959: public: 19959: FileSystem(); 19959: 19959: 19959: FileSystem(const FileSystem&) = delete; 19959: 19959: virtual ~FileSystem(); 19959: 19959: static const char* Type() { return "FileSystem"; } 19959: static const char* kDefaultName() { return "DefaultFileSystem"; } 19959: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: static Status CreateFromString(const ConfigOptions& options, 19959: const std::string& value, 19959: std::shared_ptr* result); 19959: 19959: 19959: 19959: static std::shared_ptr Default(); 19959: # 314 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual Status RegisterDbPaths(const std::vector& ) { 19959: return Status::OK(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status UnregisterDbPaths(const std::vector& ) { 19959: return Status::OK(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual IOStatus NewSequentialFile(const std::string& fname, 19959: const FileOptions& file_opts, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg) = 0; 19959: # 346 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus NewRandomAccessFile( 19959: const std::string& fname, const FileOptions& file_opts, 19959: std::unique_ptr* result, IODebugContext* dbg) = 0; 19959: 19959: 19959: enum WriteLifeTimeHint { 19959: kWLTHNotSet = 0, 19959: kWLTHNone, 19959: kWLTHShort, 19959: kWLTHMedium, 19959: kWLTHLong, 19959: kWLTHExtreme, 19959: }; 19959: # 367 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus NewWritableFile(const std::string& fname, 19959: const FileOptions& file_opts, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg) = 0; 19959: # 380 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus ReopenWritableFile( 19959: const std::string& , const FileOptions& , 19959: std::unique_ptr* , IODebugContext* ) { 19959: return IOStatus::NotSupported("ReopenWritableFile"); 19959: } 19959: 19959: 19959: virtual IOStatus ReuseWritableFile(const std::string& fname, 19959: const std::string& old_fname, 19959: const FileOptions& file_opts, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg); 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual IOStatus NewRandomRWFile(const std::string& , 19959: const FileOptions& , 19959: std::unique_ptr* , 19959: IODebugContext* ) { 19959: return IOStatus::NotSupported( 19959: "RandomRWFile is not implemented in this FileSystem"); 19959: } 19959: 19959: 19959: 19959: 19959: virtual IOStatus NewMemoryMappedFileBuffer( 19959: const std::string& , 19959: std::unique_ptr* ) { 19959: return IOStatus::NotSupported( 19959: "MemoryMappedFileBuffer is not implemented in this FileSystem"); 19959: } 19959: # 423 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus NewDirectory(const std::string& name, 19959: const IOOptions& io_opts, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg) = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual IOStatus FileExists(const std::string& fname, 19959: const IOOptions& options, 19959: IODebugContext* dbg) = 0; 19959: # 444 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus GetChildren(const std::string& dir, const IOOptions& options, 19959: std::vector* result, 19959: IODebugContext* dbg) = 0; 19959: # 458 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus GetChildrenFileAttributes( 19959: const std::string& dir, const IOOptions& options, 19959: std::vector* result, IODebugContext* dbg) { 19959: 19959: # 461 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 3 4 19959: (static_cast ( 19959: # 461 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: result != nullptr 19959: # 461 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 461 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: "result != nullptr" 19959: # 461 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 3 4 19959: , "./include/rocksdb/file_system.h", 461, __extension__ __PRETTY_FUNCTION__)) 19959: # 461 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: ; 19959: std::vector child_fnames; 19959: IOStatus s = GetChildren(dir, options, &child_fnames, dbg); 19959: if (!s.ok()) { 19959: return s; 19959: } 19959: result->resize(child_fnames.size()); 19959: size_t result_size = 0; 19959: for (size_t i = 0; i < child_fnames.size(); ++i) { 19959: const std::string path = dir + "/" + child_fnames[i]; 19959: if (!(s = GetFileSize(path, options, &(*result)[result_size].size_bytes, 19959: dbg)) 19959: .ok()) { 19959: if (FileExists(path, options, dbg).IsNotFound()) { 19959: 19959: continue; 19959: } 19959: return s; 19959: } 19959: (*result)[result_size].name = std::move(child_fnames[i]); 19959: result_size++; 19959: } 19959: result->resize(result_size); 19959: return IOStatus::OK(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual IOStatus DeleteFile(const std::string& fname, 19959: const IOOptions& options, 19959: IODebugContext* dbg) = 0; 19959: 19959: 19959: virtual IOStatus Truncate(const std::string& , size_t , 19959: const IOOptions& , 19959: IODebugContext* ) { 19959: return IOStatus::NotSupported( 19959: "Truncate is not supported for this FileSystem"); 19959: } 19959: 19959: 19959: virtual IOStatus CreateDir(const std::string& dirname, 19959: const IOOptions& options, IODebugContext* dbg) = 0; 19959: 19959: 19959: 19959: virtual IOStatus CreateDirIfMissing(const std::string& dirname, 19959: const IOOptions& options, 19959: IODebugContext* dbg) = 0; 19959: 19959: 19959: virtual IOStatus DeleteDir(const std::string& dirname, 19959: const IOOptions& options, IODebugContext* dbg) = 0; 19959: 19959: 19959: virtual IOStatus GetFileSize(const std::string& fname, 19959: const IOOptions& options, uint64_t* file_size, 19959: IODebugContext* dbg) = 0; 19959: 19959: 19959: virtual IOStatus GetFileModificationTime(const std::string& fname, 19959: const IOOptions& options, 19959: uint64_t* file_mtime, 19959: IODebugContext* dbg) = 0; 19959: 19959: virtual IOStatus RenameFile(const std::string& src, const std::string& target, 19959: const IOOptions& options, 19959: IODebugContext* dbg) = 0; 19959: 19959: 19959: virtual IOStatus LinkFile(const std::string& , 19959: const std::string& , 19959: const IOOptions& , 19959: IODebugContext* ) { 19959: return IOStatus::NotSupported( 19959: "LinkFile is not supported for this FileSystem"); 19959: } 19959: 19959: virtual IOStatus NumFileLinks(const std::string& , 19959: const IOOptions& , 19959: uint64_t* , IODebugContext* ) { 19959: return IOStatus::NotSupported( 19959: "Getting number of file links is not supported for this FileSystem"); 19959: } 19959: 19959: virtual IOStatus AreFilesSame(const std::string& , 19959: const std::string& , 19959: const IOOptions& , bool* , 19959: IODebugContext* ) { 19959: return IOStatus::NotSupported( 19959: "AreFilesSame is not supported for this FileSystem"); 19959: } 19959: # 571 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus LockFile(const std::string& fname, const IOOptions& options, 19959: FileLock** lock, IODebugContext* dbg) = 0; 19959: 19959: 19959: 19959: 19959: virtual IOStatus UnlockFile(FileLock* lock, const IOOptions& options, 19959: IODebugContext* dbg) = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 19959: IODebugContext* dbg) = 0; 19959: 19959: 19959: 19959: 19959: virtual IOStatus NewLogger(const std::string& fname, const IOOptions& io_opts, 19959: std::shared_ptr* result, 19959: IODebugContext* dbg); 19959: 19959: 19959: virtual IOStatus GetAbsolutePath(const std::string& db_path, 19959: const IOOptions& options, 19959: std::string* output_path, 19959: IODebugContext* dbg) = 0; 19959: 19959: 19959: 19959: virtual void SanitizeFileOptions(FileOptions* ) const {} 19959: 19959: 19959: 19959: virtual FileOptions OptimizeForLogRead(const FileOptions& file_options) const; 19959: 19959: 19959: 19959: 19959: virtual FileOptions OptimizeForManifestRead( 19959: const FileOptions& file_options) const; 19959: 19959: 19959: 19959: 19959: virtual FileOptions OptimizeForLogWrite(const FileOptions& file_options, 19959: const DBOptions& db_options) const; 19959: 19959: 19959: 19959: 19959: 19959: virtual FileOptions OptimizeForManifestWrite( 19959: const FileOptions& file_options) const; 19959: 19959: 19959: 19959: 19959: virtual FileOptions OptimizeForCompactionTableWrite( 19959: const FileOptions& file_options, 19959: const ImmutableDBOptions& immutable_ops) const; 19959: 19959: 19959: 19959: 19959: virtual FileOptions OptimizeForCompactionTableRead( 19959: const FileOptions& file_options, 19959: const ImmutableDBOptions& db_options) const; 19959: 19959: 19959: 19959: 19959: virtual FileOptions OptimizeForBlobFileRead( 19959: const FileOptions& file_options, 19959: const ImmutableDBOptions& db_options) const; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual IOStatus GetFreeSpace(const std::string& , 19959: const IOOptions& , 19959: uint64_t* , 19959: IODebugContext* ) { 19959: return IOStatus::NotSupported("GetFreeSpace"); 19959: } 19959: 19959: virtual IOStatus IsDirectory(const std::string& , 19959: const IOOptions& options, bool* is_dir, 19959: IODebugContext* ) = 0; 19959: # 672 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus Poll(std::vector& , 19959: size_t ) { 19959: return IOStatus::OK(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual IOStatus AbortIO(std::vector& ) { 19959: return IOStatus::OK(); 19959: } 19959: # 695 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual void SupportedOps(int64_t& supported_ops) { 19959: supported_ops = 0; 19959: supported_ops |= (1 << FSSupportedOps::kAsyncIO); 19959: } 19959: 19959: 19959: 19959: private: 19959: void operator=(const FileSystem&); 19959: }; 19959: 19959: 19959: class FSSequentialFile { 19959: public: 19959: FSSequentialFile() {} 19959: 19959: virtual ~FSSequentialFile() {} 19959: # 725 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus Read(size_t n, const IOOptions& options, Slice* result, 19959: char* scratch, IODebugContext* dbg) = 0; 19959: # 735 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus Skip(uint64_t n) = 0; 19959: 19959: 19959: 19959: virtual bool use_direct_io() const { return false; } 19959: 19959: 19959: 19959: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 19959: 19959: 19959: 19959: 19959: virtual IOStatus InvalidateCache(size_t , size_t ) { 19959: return IOStatus::NotSupported("InvalidateCache not supported."); 19959: } 19959: 19959: 19959: 19959: virtual IOStatus PositionedRead(uint64_t , size_t , 19959: const IOOptions& , 19959: Slice* , char* , 19959: IODebugContext* ) { 19959: return IOStatus::NotSupported("PositionedRead"); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 19959: 19959: 19959: 19959: }; 19959: 19959: 19959: struct FSReadRequest { 19959: 19959: uint64_t offset; 19959: 19959: 19959: 19959: size_t len; 19959: # 788 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: char* scratch; 19959: # 798 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: Slice result; 19959: 19959: 19959: 19959: IOStatus status; 19959: # 838 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: std::unique_ptr> fs_scratch; 19959: }; 19959: 19959: 19959: class FSRandomAccessFile { 19959: public: 19959: FSRandomAccessFile() {} 19959: 19959: virtual ~FSRandomAccessFile() {} 19959: # 862 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 19959: Slice* result, char* scratch, 19959: IODebugContext* dbg) const = 0; 19959: 19959: 19959: 19959: 19959: virtual IOStatus Prefetch(uint64_t , size_t , 19959: const IOOptions& , 19959: IODebugContext* ) { 19959: return IOStatus::NotSupported("Prefetch"); 19959: } 19959: # 883 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 19959: const IOOptions& options, IODebugContext* dbg) { 19959: 19959: # 885 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 3 4 19959: (static_cast ( 19959: # 885 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: reqs != nullptr 19959: # 885 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 885 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: "reqs != nullptr" 19959: # 885 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 3 4 19959: , "./include/rocksdb/file_system.h", 885, __extension__ __PRETTY_FUNCTION__)) 19959: # 885 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: ; 19959: for (size_t i = 0; i < num_reqs; ++i) { 19959: FSReadRequest& req = reqs[i]; 19959: req.status = 19959: Read(req.offset, req.len, options, &req.result, req.scratch, dbg); 19959: } 19959: return IOStatus::OK(); 19959: } 19959: # 909 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual size_t GetUniqueId(char* , size_t ) const { 19959: return 0; 19959: 19959: }; 19959: 19959: enum AccessPattern { kNormal, kRandom, kSequential, kWillNeed, kWontNeed }; 19959: 19959: virtual void Hint(AccessPattern ) {} 19959: 19959: 19959: 19959: virtual bool use_direct_io() const { return false; } 19959: 19959: 19959: 19959: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 19959: 19959: 19959: 19959: 19959: virtual IOStatus InvalidateCache(size_t , size_t ) { 19959: return IOStatus::NotSupported("InvalidateCache not supported."); 19959: } 19959: # 965 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus ReadAsync( 19959: FSReadRequest& req, const IOOptions& opts, 19959: std::function cb, void* cb_arg, 19959: void** , IOHandleDeleter* , IODebugContext* dbg) { 19959: req.status = 19959: Read(req.offset, req.len, opts, &(req.result), req.scratch, dbg); 19959: cb(req, cb_arg); 19959: return IOStatus::OK(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 19959: 19959: 19959: 19959: }; 19959: 19959: 19959: 19959: struct DataVerificationInfo { 19959: 19959: Slice checksum; 19959: }; 19959: 19959: 19959: 19959: 19959: class FSWritableFile { 19959: public: 19959: FSWritableFile() 19959: : last_preallocated_block_(0), 19959: preallocation_block_size_(0), 19959: io_priority_(Env::IO_TOTAL), 19959: write_hint_(Env::WLTH_NOT_SET), 19959: strict_bytes_per_sync_(false) {} 19959: 19959: explicit FSWritableFile(const FileOptions& options) 19959: : last_preallocated_block_(0), 19959: preallocation_block_size_(0), 19959: io_priority_(Env::IO_TOTAL), 19959: write_hint_(Env::WLTH_NOT_SET), 19959: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 19959: 19959: 19959: 19959: 19959: virtual ~FSWritableFile() {} 19959: 19959: 19959: 19959: 19959: virtual IOStatus Append(const Slice& data, const IOOptions& options, 19959: IODebugContext* dbg) = 0; 19959: # 1031 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus Append(const Slice& data, const IOOptions& options, 19959: const DataVerificationInfo& , 19959: IODebugContext* dbg) { 19959: return Append(data, options, dbg); 19959: } 19959: # 1057 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus PositionedAppend(const Slice& , 19959: uint64_t , 19959: const IOOptions& , 19959: IODebugContext* ) { 19959: return IOStatus::NotSupported("PositionedAppend"); 19959: } 19959: # 1072 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus PositionedAppend( 19959: const Slice& , uint64_t , 19959: const IOOptions& , 19959: const DataVerificationInfo& , 19959: IODebugContext* ) { 19959: return IOStatus::NotSupported("PositionedAppend"); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual IOStatus Truncate(uint64_t , const IOOptions& , 19959: IODebugContext* ) { 19959: return IOStatus::OK(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual IOStatus Close(const IOOptions& , 19959: IODebugContext* ) = 0; 19959: 19959: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 19959: virtual IOStatus Sync(const IOOptions& options, 19959: IODebugContext* dbg) = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 19959: return Sync(options, dbg); 19959: } 19959: 19959: 19959: 19959: virtual bool IsSyncThreadSafe() const { return false; } 19959: 19959: 19959: 19959: virtual bool use_direct_io() const { return false; } 19959: 19959: 19959: 19959: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 19959: 19959: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 19959: write_hint_ = hint; 19959: } 19959: # 1138 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 19959: 19959: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 19959: 19959: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 19959: 19959: 19959: 19959: virtual uint64_t GetFileSize(const IOOptions& , 19959: IODebugContext* ) { 19959: return 0; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void SetPreallocationBlockSize(size_t size) { 19959: preallocation_block_size_ = size; 19959: } 19959: 19959: virtual void GetPreallocationStatus(size_t* block_size, 19959: size_t* last_allocated_block) { 19959: *last_allocated_block = last_preallocated_block_; 19959: *block_size = preallocation_block_size_; 19959: } 19959: 19959: 19959: virtual size_t GetUniqueId(char* , size_t ) const { 19959: return 0; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual IOStatus InvalidateCache(size_t , size_t ) { 19959: return IOStatus::NotSupported("InvalidateCache not supported."); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual IOStatus RangeSync(uint64_t , uint64_t , 19959: const IOOptions& options, IODebugContext* dbg) { 19959: if (strict_bytes_per_sync_) { 19959: return Sync(options, dbg); 19959: } 19959: return IOStatus::OK(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 19959: IODebugContext* dbg) { 19959: if (preallocation_block_size_ == 0) { 19959: return; 19959: } 19959: 19959: 19959: 19959: const auto block_size = preallocation_block_size_; 19959: size_t new_last_preallocated_block = 19959: (offset + len + block_size - 1) / block_size; 19959: if (new_last_preallocated_block > last_preallocated_block_) { 19959: size_t num_spanned_blocks = 19959: new_last_preallocated_block - last_preallocated_block_; 19959: Allocate(block_size * last_preallocated_block_, 19959: block_size * num_spanned_blocks, options, dbg) 19959: .PermitUncheckedError(); 19959: last_preallocated_block_ = new_last_preallocated_block; 19959: } 19959: } 19959: 19959: 19959: virtual IOStatus Allocate(uint64_t , uint64_t , 19959: const IOOptions& , 19959: IODebugContext* ) { 19959: return IOStatus::OK(); 19959: } 19959: 19959: 19959: 19959: 19959: protected: 19959: size_t preallocation_block_size() { return preallocation_block_size_; } 19959: 19959: private: 19959: size_t last_preallocated_block_; 19959: size_t preallocation_block_size_; 19959: 19959: FSWritableFile(const FSWritableFile&); 19959: void operator=(const FSWritableFile&); 19959: 19959: protected: 19959: Env::IOPriority io_priority_; 19959: Env::WriteLifeTimeHint write_hint_; 19959: const bool strict_bytes_per_sync_; 19959: }; 19959: 19959: 19959: class FSRandomRWFile { 19959: public: 19959: FSRandomRWFile() {} 19959: 19959: 19959: 19959: 19959: virtual ~FSRandomRWFile() {} 19959: 19959: 19959: 19959: virtual bool use_direct_io() const { return false; } 19959: 19959: 19959: 19959: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 19959: 19959: 19959: 19959: virtual IOStatus Write(uint64_t offset, const Slice& data, 19959: const IOOptions& options, IODebugContext* dbg) = 0; 19959: # 1277 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 19959: Slice* result, char* scratch, 19959: IODebugContext* dbg) const = 0; 19959: 19959: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 19959: 19959: virtual IOStatus Sync(const IOOptions& options, IODebugContext* dbg) = 0; 19959: 19959: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 19959: return Sync(options, dbg); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual IOStatus Close(const IOOptions& options, IODebugContext* dbg) = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 19959: 19959: 19959: 19959: 19959: 19959: FSRandomRWFile(const RandomRWFile&) = delete; 19959: FSRandomRWFile& operator=(const RandomRWFile&) = delete; 19959: }; 19959: 19959: 19959: 19959: class FSMemoryMappedFileBuffer { 19959: public: 19959: FSMemoryMappedFileBuffer(void* _base, size_t _length) 19959: : base_(_base), length_(_length) {} 19959: 19959: virtual ~FSMemoryMappedFileBuffer() = 0; 19959: 19959: 19959: 19959: FSMemoryMappedFileBuffer(const FSMemoryMappedFileBuffer&) = delete; 19959: FSMemoryMappedFileBuffer& operator=(const FSMemoryMappedFileBuffer&) = delete; 19959: 19959: void* GetBase() const { return base_; } 19959: size_t GetLen() const { return length_; } 19959: 19959: protected: 19959: void* base_; 19959: const size_t length_; 19959: }; 19959: 19959: 19959: 19959: class FSDirectory { 19959: public: 19959: 19959: 19959: 19959: virtual ~FSDirectory() {} 19959: 19959: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) = 0; 19959: 19959: 19959: 19959: 19959: virtual IOStatus FsyncWithDirOptions( 19959: const IOOptions& options, IODebugContext* dbg, 19959: const DirFsyncOptions& ) { 19959: return Fsync(options, dbg); 19959: } 19959: 19959: 19959: 19959: 19959: virtual IOStatus Close(const IOOptions& , 19959: IODebugContext* ) { 19959: return IOStatus::NotSupported("Close"); 19959: } 19959: 19959: virtual size_t GetUniqueId(char* , size_t ) const { 19959: return 0; 19959: } 19959: 19959: 19959: 19959: }; 19959: # 1399 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 19959: class FileSystemWrapper : public FileSystem { 19959: public: 19959: 19959: explicit FileSystemWrapper(const std::shared_ptr& t); 19959: ~FileSystemWrapper() override {} 19959: 19959: 19959: FileSystem* target() const { return target_.get(); } 19959: 19959: 19959: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 19959: std::unique_ptr* r, 19959: IODebugContext* dbg) override { 19959: return target_->NewSequentialFile(f, file_opts, r, dbg); 19959: } 19959: IOStatus NewRandomAccessFile(const std::string& f, 19959: const FileOptions& file_opts, 19959: std::unique_ptr* r, 19959: IODebugContext* dbg) override { 19959: return target_->NewRandomAccessFile(f, file_opts, r, dbg); 19959: } 19959: IOStatus NewWritableFile(const std::string& f, const FileOptions& file_opts, 19959: std::unique_ptr* r, 19959: IODebugContext* dbg) override { 19959: return target_->NewWritableFile(f, file_opts, r, dbg); 19959: } 19959: IOStatus ReopenWritableFile(const std::string& fname, 19959: const FileOptions& file_opts, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg) override { 19959: return target_->ReopenWritableFile(fname, file_opts, result, dbg); 19959: } 19959: IOStatus ReuseWritableFile(const std::string& fname, 19959: const std::string& old_fname, 19959: const FileOptions& file_opts, 19959: std::unique_ptr* r, 19959: IODebugContext* dbg) override { 19959: return target_->ReuseWritableFile(fname, old_fname, file_opts, r, dbg); 19959: } 19959: IOStatus NewRandomRWFile(const std::string& fname, 19959: const FileOptions& file_opts, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg) override { 19959: return target_->NewRandomRWFile(fname, file_opts, result, dbg); 19959: } 19959: IOStatus NewMemoryMappedFileBuffer( 19959: const std::string& fname, 19959: std::unique_ptr* result) override { 19959: return target_->NewMemoryMappedFileBuffer(fname, result); 19959: } 19959: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg) override { 19959: return target_->NewDirectory(name, io_opts, result, dbg); 19959: } 19959: IOStatus FileExists(const std::string& f, const IOOptions& io_opts, 19959: IODebugContext* dbg) override { 19959: return target_->FileExists(f, io_opts, dbg); 19959: } 19959: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 19959: std::vector* r, 19959: IODebugContext* dbg) override { 19959: return target_->GetChildren(dir, io_opts, r, dbg); 19959: } 19959: IOStatus GetChildrenFileAttributes(const std::string& dir, 19959: const IOOptions& options, 19959: std::vector* result, 19959: IODebugContext* dbg) override { 19959: return target_->GetChildrenFileAttributes(dir, options, result, dbg); 19959: } 19959: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 19959: IODebugContext* dbg) override { 19959: return target_->DeleteFile(f, options, dbg); 19959: } 19959: IOStatus Truncate(const std::string& fname, size_t size, 19959: const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->Truncate(fname, size, options, dbg); 19959: } 19959: IOStatus CreateDir(const std::string& d, const IOOptions& options, 19959: IODebugContext* dbg) override { 19959: return target_->CreateDir(d, options, dbg); 19959: } 19959: IOStatus CreateDirIfMissing(const std::string& d, const IOOptions& options, 19959: IODebugContext* dbg) override { 19959: return target_->CreateDirIfMissing(d, options, dbg); 19959: } 19959: IOStatus DeleteDir(const std::string& d, const IOOptions& options, 19959: IODebugContext* dbg) override { 19959: return target_->DeleteDir(d, options, dbg); 19959: } 19959: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 19959: uint64_t* s, IODebugContext* dbg) override { 19959: return target_->GetFileSize(f, options, s, dbg); 19959: } 19959: 19959: IOStatus GetFileModificationTime(const std::string& fname, 19959: const IOOptions& options, 19959: uint64_t* file_mtime, 19959: IODebugContext* dbg) override { 19959: return target_->GetFileModificationTime(fname, options, file_mtime, dbg); 19959: } 19959: 19959: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 19959: std::string* output_path, 19959: IODebugContext* dbg) override { 19959: return target_->GetAbsolutePath(db_path, options, output_path, dbg); 19959: } 19959: 19959: IOStatus RenameFile(const std::string& s, const std::string& t, 19959: const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->RenameFile(s, t, options, dbg); 19959: } 19959: 19959: IOStatus LinkFile(const std::string& s, const std::string& t, 19959: const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->LinkFile(s, t, options, dbg); 19959: } 19959: 19959: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 19959: uint64_t* count, IODebugContext* dbg) override { 19959: return target_->NumFileLinks(fname, options, count, dbg); 19959: } 19959: 19959: IOStatus AreFilesSame(const std::string& first, const std::string& second, 19959: const IOOptions& options, bool* res, 19959: IODebugContext* dbg) override { 19959: return target_->AreFilesSame(first, second, options, res, dbg); 19959: } 19959: 19959: IOStatus LockFile(const std::string& f, const IOOptions& options, 19959: FileLock** l, IODebugContext* dbg) override { 19959: return target_->LockFile(f, options, l, dbg); 19959: } 19959: 19959: IOStatus UnlockFile(FileLock* l, const IOOptions& options, 19959: IODebugContext* dbg) override { 19959: return target_->UnlockFile(l, options, dbg); 19959: } 19959: 19959: IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 19959: IODebugContext* dbg) override { 19959: return target_->GetTestDirectory(options, path, dbg); 19959: } 19959: IOStatus NewLogger(const std::string& fname, const IOOptions& options, 19959: std::shared_ptr* result, 19959: IODebugContext* dbg) override { 19959: return target_->NewLogger(fname, options, result, dbg); 19959: } 19959: 19959: void SanitizeFileOptions(FileOptions* opts) const override { 19959: target_->SanitizeFileOptions(opts); 19959: } 19959: 19959: FileOptions OptimizeForLogRead( 19959: const FileOptions& file_options) const override { 19959: return target_->OptimizeForLogRead(file_options); 19959: } 19959: FileOptions OptimizeForManifestRead( 19959: const FileOptions& file_options) const override { 19959: return target_->OptimizeForManifestRead(file_options); 19959: } 19959: FileOptions OptimizeForLogWrite(const FileOptions& file_options, 19959: const DBOptions& db_options) const override { 19959: return target_->OptimizeForLogWrite(file_options, db_options); 19959: } 19959: FileOptions OptimizeForManifestWrite( 19959: const FileOptions& file_options) const override { 19959: return target_->OptimizeForManifestWrite(file_options); 19959: } 19959: FileOptions OptimizeForCompactionTableWrite( 19959: const FileOptions& file_options, 19959: const ImmutableDBOptions& immutable_ops) const override { 19959: return target_->OptimizeForCompactionTableWrite(file_options, 19959: immutable_ops); 19959: } 19959: FileOptions OptimizeForCompactionTableRead( 19959: const FileOptions& file_options, 19959: const ImmutableDBOptions& db_options) const override { 19959: return target_->OptimizeForCompactionTableRead(file_options, db_options); 19959: } 19959: FileOptions OptimizeForBlobFileRead( 19959: const FileOptions& file_options, 19959: const ImmutableDBOptions& db_options) const override { 19959: return target_->OptimizeForBlobFileRead(file_options, db_options); 19959: } 19959: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 19959: uint64_t* diskfree, IODebugContext* dbg) override { 19959: return target_->GetFreeSpace(path, options, diskfree, dbg); 19959: } 19959: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 19959: bool* is_dir, IODebugContext* dbg) override { 19959: return target_->IsDirectory(path, options, is_dir, dbg); 19959: } 19959: 19959: const Customizable* Inner() const override { return target_.get(); } 19959: Status PrepareOptions(const ConfigOptions& options) override; 19959: std::string SerializeOptions(const ConfigOptions& config_options, 19959: const std::string& header) const override; 19959: 19959: virtual IOStatus Poll(std::vector& io_handles, 19959: size_t min_completions) override { 19959: return target_->Poll(io_handles, min_completions); 19959: } 19959: 19959: virtual IOStatus AbortIO(std::vector& io_handles) override { 19959: return target_->AbortIO(io_handles); 19959: } 19959: 19959: virtual void SupportedOps(int64_t& supported_ops) override { 19959: return target_->SupportedOps(supported_ops); 19959: } 19959: 19959: protected: 19959: std::shared_ptr target_; 19959: }; 19959: 19959: class FSSequentialFileWrapper : public FSSequentialFile { 19959: public: 19959: 19959: 19959: explicit FSSequentialFileWrapper(FSSequentialFile* t) : target_(t) {} 19959: 19959: FSSequentialFile* target() const { return target_; } 19959: 19959: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 19959: char* scratch, IODebugContext* dbg) override { 19959: return target_->Read(n, options, result, scratch, dbg); 19959: } 19959: IOStatus Skip(uint64_t n) override { return target_->Skip(n); } 19959: bool use_direct_io() const override { return target_->use_direct_io(); } 19959: size_t GetRequiredBufferAlignment() const override { 19959: return target_->GetRequiredBufferAlignment(); 19959: } 19959: IOStatus InvalidateCache(size_t offset, size_t length) override { 19959: return target_->InvalidateCache(offset, length); 19959: } 19959: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 19959: Slice* result, char* scratch, 19959: IODebugContext* dbg) override { 19959: return target_->PositionedRead(offset, n, options, result, scratch, dbg); 19959: } 19959: Temperature GetTemperature() const override { 19959: return target_->GetTemperature(); 19959: } 19959: 19959: private: 19959: FSSequentialFile* target_; 19959: }; 19959: 19959: class FSSequentialFileOwnerWrapper : public FSSequentialFileWrapper { 19959: public: 19959: 19959: 19959: explicit FSSequentialFileOwnerWrapper(std::unique_ptr&& t) 19959: : FSSequentialFileWrapper(t.get()), guard_(std::move(t)) {} 19959: 19959: private: 19959: std::unique_ptr guard_; 19959: }; 19959: 19959: class FSRandomAccessFileWrapper : public FSRandomAccessFile { 19959: public: 19959: 19959: 19959: explicit FSRandomAccessFileWrapper(FSRandomAccessFile* t) : target_(t) {} 19959: 19959: FSRandomAccessFile* target() const { return target_; } 19959: 19959: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 19959: Slice* result, char* scratch, 19959: IODebugContext* dbg) const override { 19959: return target_->Read(offset, n, options, result, scratch, dbg); 19959: } 19959: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 19959: const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->MultiRead(reqs, num_reqs, options, dbg); 19959: } 19959: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 19959: IODebugContext* dbg) override { 19959: return target_->Prefetch(offset, n, options, dbg); 19959: } 19959: size_t GetUniqueId(char* id, size_t max_size) const override { 19959: return target_->GetUniqueId(id, max_size); 19959: }; 19959: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 19959: bool use_direct_io() const override { return target_->use_direct_io(); } 19959: size_t GetRequiredBufferAlignment() const override { 19959: return target_->GetRequiredBufferAlignment(); 19959: } 19959: IOStatus InvalidateCache(size_t offset, size_t length) override { 19959: return target_->InvalidateCache(offset, length); 19959: } 19959: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 19959: std::function cb, 19959: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 19959: IODebugContext* dbg) override { 19959: return target()->ReadAsync(req, opts, cb, cb_arg, io_handle, del_fn, dbg); 19959: } 19959: Temperature GetTemperature() const override { 19959: return target_->GetTemperature(); 19959: } 19959: 19959: private: 19959: std::unique_ptr guard_; 19959: FSRandomAccessFile* target_; 19959: }; 19959: 19959: class FSRandomAccessFileOwnerWrapper : public FSRandomAccessFileWrapper { 19959: public: 19959: 19959: 19959: explicit FSRandomAccessFileOwnerWrapper( 19959: std::unique_ptr&& t) 19959: : FSRandomAccessFileWrapper(t.get()), guard_(std::move(t)) {} 19959: 19959: private: 19959: std::unique_ptr guard_; 19959: }; 19959: 19959: class FSWritableFileWrapper : public FSWritableFile { 19959: public: 19959: 19959: 19959: explicit FSWritableFileWrapper(FSWritableFile* t) : target_(t) {} 19959: 19959: FSWritableFile* target() const { return target_; } 19959: 19959: IOStatus Append(const Slice& data, const IOOptions& options, 19959: IODebugContext* dbg) override { 19959: return target_->Append(data, options, dbg); 19959: } 19959: IOStatus Append(const Slice& data, const IOOptions& options, 19959: const DataVerificationInfo& verification_info, 19959: IODebugContext* dbg) override { 19959: return target_->Append(data, options, verification_info, dbg); 19959: } 19959: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 19959: const IOOptions& options, 19959: IODebugContext* dbg) override { 19959: return target_->PositionedAppend(data, offset, options, dbg); 19959: } 19959: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 19959: const IOOptions& options, 19959: const DataVerificationInfo& verification_info, 19959: IODebugContext* dbg) override { 19959: return target_->PositionedAppend(data, offset, options, verification_info, 19959: dbg); 19959: } 19959: IOStatus Truncate(uint64_t size, const IOOptions& options, 19959: IODebugContext* dbg) override { 19959: return target_->Truncate(size, options, dbg); 19959: } 19959: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->Close(options, dbg); 19959: } 19959: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->Flush(options, dbg); 19959: } 19959: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->Sync(options, dbg); 19959: } 19959: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->Fsync(options, dbg); 19959: } 19959: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 19959: 19959: bool use_direct_io() const override { return target_->use_direct_io(); } 19959: 19959: size_t GetRequiredBufferAlignment() const override { 19959: return target_->GetRequiredBufferAlignment(); 19959: } 19959: 19959: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 19959: target_->SetWriteLifeTimeHint(hint); 19959: } 19959: 19959: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 19959: return target_->GetWriteLifeTimeHint(); 19959: } 19959: 19959: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->GetFileSize(options, dbg); 19959: } 19959: 19959: void SetPreallocationBlockSize(size_t size) override { 19959: target_->SetPreallocationBlockSize(size); 19959: } 19959: 19959: void GetPreallocationStatus(size_t* block_size, 19959: size_t* last_allocated_block) override { 19959: target_->GetPreallocationStatus(block_size, last_allocated_block); 19959: } 19959: 19959: size_t GetUniqueId(char* id, size_t max_size) const override { 19959: return target_->GetUniqueId(id, max_size); 19959: } 19959: 19959: IOStatus InvalidateCache(size_t offset, size_t length) override { 19959: return target_->InvalidateCache(offset, length); 19959: } 19959: 19959: IOStatus RangeSync(uint64_t offset, uint64_t nbytes, const IOOptions& options, 19959: IODebugContext* dbg) override { 19959: return target_->RangeSync(offset, nbytes, options, dbg); 19959: } 19959: 19959: void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 19959: IODebugContext* dbg) override { 19959: target_->PrepareWrite(offset, len, options, dbg); 19959: } 19959: 19959: IOStatus Allocate(uint64_t offset, uint64_t len, const IOOptions& options, 19959: IODebugContext* dbg) override { 19959: return target_->Allocate(offset, len, options, dbg); 19959: } 19959: 19959: private: 19959: FSWritableFile* target_; 19959: }; 19959: 19959: class FSWritableFileOwnerWrapper : public FSWritableFileWrapper { 19959: public: 19959: 19959: 19959: explicit FSWritableFileOwnerWrapper(std::unique_ptr&& t) 19959: : FSWritableFileWrapper(t.get()), guard_(std::move(t)) {} 19959: 19959: private: 19959: std::unique_ptr guard_; 19959: }; 19959: 19959: class FSRandomRWFileWrapper : public FSRandomRWFile { 19959: public: 19959: 19959: 19959: explicit FSRandomRWFileWrapper(FSRandomRWFile* t) : target_(t) {} 19959: 19959: FSRandomRWFile* target() const { return target_; } 19959: 19959: bool use_direct_io() const override { return target_->use_direct_io(); } 19959: size_t GetRequiredBufferAlignment() const override { 19959: return target_->GetRequiredBufferAlignment(); 19959: } 19959: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 19959: IODebugContext* dbg) override { 19959: return target_->Write(offset, data, options, dbg); 19959: } 19959: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 19959: Slice* result, char* scratch, 19959: IODebugContext* dbg) const override { 19959: return target_->Read(offset, n, options, result, scratch, dbg); 19959: } 19959: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->Flush(options, dbg); 19959: } 19959: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->Sync(options, dbg); 19959: } 19959: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->Fsync(options, dbg); 19959: } 19959: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->Close(options, dbg); 19959: } 19959: Temperature GetTemperature() const override { 19959: return target_->GetTemperature(); 19959: } 19959: 19959: private: 19959: FSRandomRWFile* target_; 19959: }; 19959: 19959: class FSRandomRWFileOwnerWrapper : public FSRandomRWFileWrapper { 19959: public: 19959: 19959: 19959: explicit FSRandomRWFileOwnerWrapper(std::unique_ptr&& t) 19959: : FSRandomRWFileWrapper(t.get()), guard_(std::move(t)) {} 19959: 19959: private: 19959: std::unique_ptr guard_; 19959: }; 19959: 19959: class FSDirectoryWrapper : public FSDirectory { 19959: public: 19959: 19959: 19959: explicit FSDirectoryWrapper(std::unique_ptr&& t) 19959: : guard_(std::move(t)) { 19959: target_ = guard_.get(); 19959: } 19959: 19959: 19959: 19959: explicit FSDirectoryWrapper(FSDirectory* t) : target_(t) {} 19959: 19959: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->Fsync(options, dbg); 19959: } 19959: 19959: IOStatus FsyncWithDirOptions( 19959: const IOOptions& options, IODebugContext* dbg, 19959: const DirFsyncOptions& dir_fsync_options) override { 19959: return target_->FsyncWithDirOptions(options, dbg, dir_fsync_options); 19959: } 19959: 19959: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 19959: return target_->Close(options, dbg); 19959: } 19959: 19959: size_t GetUniqueId(char* id, size_t max_size) const override { 19959: return target_->GetUniqueId(id, max_size); 19959: } 19959: 19959: private: 19959: std::unique_ptr guard_; 19959: FSDirectory* target_; 19959: }; 19959: 19959: 19959: extern IOStatus WriteStringToFile(FileSystem* fs, const Slice& data, 19959: const std::string& fname, 19959: bool should_sync = false); 19959: 19959: 19959: extern IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 19959: std::string* data); 19959: 19959: } 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/cassert" 1 3 19959: # 41 "/usr/include/c++/13/cassert" 3 19959: 19959: # 42 "/usr/include/c++/13/cassert" 3 19959: 19959: 19959: # 1 "/usr/include/assert.h" 1 3 4 19959: # 45 "/usr/include/c++/13/cassert" 2 3 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 2 19959: 19959: 19959: 19959: namespace rocksdb { 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: inline size_t TruncateToPageBoundary(size_t page_size, size_t s) { 19959: s -= (s & (page_size - 1)); 19959: 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: (static_cast ( 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: (s % page_size) == 0 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: "(s % page_size) == 0" 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: , "./util/aligned_buffer.h", 27, __extension__ __PRETTY_FUNCTION__)) 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: ; 19959: return s; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: inline size_t Roundup(size_t x, size_t y) { return ((x + y - 1) / y) * y; } 19959: 19959: 19959: 19959: 19959: 19959: inline size_t Rounddown(size_t x, size_t y) { return (x / y) * y; } 19959: # 57 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: class AlignedBuffer { 19959: size_t alignment_; 19959: std::unique_ptr buf_; 19959: size_t capacity_; 19959: size_t cursize_; 19959: char* bufstart_; 19959: 19959: public: 19959: AlignedBuffer() 19959: : alignment_(), capacity_(0), cursize_(0), bufstart_(nullptr) {} 19959: 19959: AlignedBuffer(AlignedBuffer&& o) noexcept { *this = std::move(o); } 19959: 19959: AlignedBuffer& operator=(AlignedBuffer&& o) noexcept { 19959: alignment_ = std::move(o.alignment_); 19959: buf_ = std::move(o.buf_); 19959: capacity_ = std::move(o.capacity_); 19959: cursize_ = std::move(o.cursize_); 19959: bufstart_ = std::move(o.bufstart_); 19959: return *this; 19959: } 19959: 19959: AlignedBuffer(const AlignedBuffer&) = delete; 19959: 19959: AlignedBuffer& operator=(const AlignedBuffer&) = delete; 19959: 19959: static bool isAligned(const void* ptr, size_t alignment) { 19959: return reinterpret_cast(ptr) % alignment == 0; 19959: } 19959: 19959: static bool isAligned(size_t n, size_t alignment) { 19959: return n % alignment == 0; 19959: } 19959: 19959: size_t Alignment() const { return alignment_; } 19959: 19959: size_t Capacity() const { return capacity_; } 19959: 19959: size_t CurrentSize() const { return cursize_; } 19959: 19959: const char* BufferStart() const { return bufstart_; } 19959: 19959: char* BufferStart() { return bufstart_; } 19959: 19959: void Clear() { cursize_ = 0; } 19959: 19959: char* Release() { 19959: cursize_ = 0; 19959: capacity_ = 0; 19959: bufstart_ = nullptr; 19959: return buf_.release(); 19959: } 19959: 19959: void Alignment(size_t alignment) { 19959: 19959: # 111 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: (static_cast ( 19959: # 111 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: alignment > 0 19959: # 111 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 111 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: "alignment > 0" 19959: # 111 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: , "./util/aligned_buffer.h", 111, __extension__ __PRETTY_FUNCTION__)) 19959: # 111 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: ; 19959: 19959: # 112 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: (static_cast ( 19959: # 112 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: (alignment & (alignment - 1)) == 0 19959: # 112 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 112 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: "(alignment & (alignment - 1)) == 0" 19959: # 112 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: , "./util/aligned_buffer.h", 112, __extension__ __PRETTY_FUNCTION__)) 19959: # 112 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: ; 19959: alignment_ = alignment; 19959: } 19959: # 131 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: void AllocateNewBuffer(size_t requested_capacity, bool copy_data = false, 19959: uint64_t copy_offset = 0, size_t copy_len = 0) { 19959: 19959: # 133 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: (static_cast ( 19959: # 133 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: alignment_ > 0 19959: # 133 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 133 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: "alignment_ > 0" 19959: # 133 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: , "./util/aligned_buffer.h", 133, __extension__ __PRETTY_FUNCTION__)) 19959: # 133 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: ; 19959: 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: (static_cast ( 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: (alignment_ & (alignment_ - 1)) == 0 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: "(alignment_ & (alignment_ - 1)) == 0" 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: , "./util/aligned_buffer.h", 134, __extension__ __PRETTY_FUNCTION__)) 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: ; 19959: 19959: copy_len = copy_len > 0 ? copy_len : cursize_; 19959: if (copy_data && requested_capacity < copy_len) { 19959: 19959: 19959: return; 19959: } 19959: 19959: size_t new_capacity = Roundup(requested_capacity, alignment_); 19959: char* new_buf = new char[new_capacity + alignment_]; 19959: char* new_bufstart = reinterpret_cast( 19959: (reinterpret_cast(new_buf) + (alignment_ - 1)) & 19959: ~static_cast(alignment_ - 1)); 19959: 19959: if (copy_data) { 19959: 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: (static_cast ( 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_ 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: "bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_" 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: , "./util/aligned_buffer.h", 150, __extension__ __PRETTY_FUNCTION__)) 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: ; 19959: memcpy(new_bufstart, bufstart_ + copy_offset, copy_len); 19959: cursize_ = copy_len; 19959: } else { 19959: cursize_ = 0; 19959: } 19959: 19959: bufstart_ = new_bufstart; 19959: capacity_ = new_capacity; 19959: buf_.reset(new_buf); 19959: } 19959: # 170 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: size_t Append(const char* src, size_t append_size) { 19959: size_t buffer_remaining = capacity_ - cursize_; 19959: size_t to_copy = std::min(append_size, buffer_remaining); 19959: 19959: if (to_copy > 0) { 19959: memcpy(bufstart_ + cursize_, src, to_copy); 19959: cursize_ += to_copy; 19959: } 19959: return to_copy; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t Read(char* dest, size_t offset, size_t read_size) const { 19959: 19959: # 188 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: (static_cast ( 19959: # 188 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: offset < cursize_ 19959: # 188 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 188 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: "offset < cursize_" 19959: # 188 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: , "./util/aligned_buffer.h", 188, __extension__ __PRETTY_FUNCTION__)) 19959: # 188 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: ; 19959: 19959: size_t to_read = 0; 19959: if (offset < cursize_) { 19959: to_read = std::min(cursize_ - offset, read_size); 19959: } 19959: if (to_read > 0) { 19959: memcpy(dest, bufstart_ + offset, to_read); 19959: } 19959: return to_read; 19959: } 19959: 19959: 19959: void PadToAlignmentWith(int padding) { 19959: size_t total_size = Roundup(cursize_, alignment_); 19959: size_t pad_size = total_size - cursize_; 19959: 19959: if (pad_size > 0) { 19959: 19959: # 206 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: (static_cast ( 19959: # 206 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: (pad_size + cursize_) <= capacity_ 19959: # 206 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 206 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: "(pad_size + cursize_) <= capacity_" 19959: # 206 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: , "./util/aligned_buffer.h", 206, __extension__ __PRETTY_FUNCTION__)) 19959: # 206 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: ; 19959: memset(bufstart_ + cursize_, padding, pad_size); 19959: cursize_ += pad_size; 19959: } 19959: } 19959: 19959: void PadWith(size_t pad_size, int padding) { 19959: 19959: # 213 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: (static_cast ( 19959: # 213 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: (pad_size + cursize_) <= capacity_ 19959: # 213 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 213 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: "(pad_size + cursize_) <= capacity_" 19959: # 213 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 19959: , "./util/aligned_buffer.h", 213, __extension__ __PRETTY_FUNCTION__)) 19959: # 213 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 19959: ; 19959: memset(bufstart_ + cursize_, padding, pad_size); 19959: cursize_ += pad_size; 19959: } 19959: 19959: 19959: void RefitTail(size_t tail_offset, size_t tail_size) { 19959: if (tail_size > 0) { 19959: memmove(bufstart_, bufstart_ + tail_offset, tail_size); 19959: } 19959: cursize_ = tail_size; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: char* Destination() { return bufstart_ + cursize_; } 19959: 19959: void Size(size_t cursize) { cursize_ = cursize; } 19959: }; 19959: } 19959: # 24 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/cassert" 1 3 19959: # 41 "/usr/include/c++/13/cassert" 3 19959: 19959: # 42 "/usr/include/c++/13/cassert" 3 19959: 19959: 19959: # 1 "/usr/include/assert.h" 1 3 4 19959: # 45 "/usr/include/c++/13/cassert" 2 3 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 2 19959: 19959: # 1 "/usr/include/c++/13/iterator" 1 3 19959: # 58 "/usr/include/c++/13/iterator" 3 19959: 19959: # 59 "/usr/include/c++/13/iterator" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/stream_iterator.h" 1 3 19959: # 33 "/usr/include/c++/13/bits/stream_iterator.h" 3 19959: 19959: # 34 "/usr/include/c++/13/bits/stream_iterator.h" 3 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 40 "/usr/include/c++/13/bits/stream_iterator.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 50 "/usr/include/c++/13/bits/stream_iterator.h" 3 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 19959: 19959: 19959: template, typename _Dist = ptrdiff_t> 19959: class istream_iterator 19959: : public iterator 19959: { 19959: public: 19959: typedef _CharT char_type; 19959: typedef _Traits traits_type; 19959: typedef basic_istream<_CharT, _Traits> istream_type; 19959: 19959: private: 19959: istream_type* _M_stream; 19959: _Tp _M_value; 19959: 19959: 19959: 19959: bool _M_ok; 19959: 19959: public: 19959: 19959: constexpr istream_iterator() 19959: noexcept(is_nothrow_default_constructible<_Tp>::value) 19959: : _M_stream(0), _M_value(), _M_ok(false) {} 19959: 19959: 19959: istream_iterator(istream_type& __s) 19959: : _M_stream(std::__addressof(__s)), _M_ok(true) 19959: { _M_read(); } 19959: 19959: constexpr 19959: istream_iterator(const istream_iterator& __obj) 19959: noexcept(is_nothrow_copy_constructible<_Tp>::value) 19959: : _M_stream(__obj._M_stream), _M_value(__obj._M_value), 19959: _M_ok(__obj._M_ok) 19959: { } 19959: # 98 "/usr/include/c++/13/bits/stream_iterator.h" 3 19959: istream_iterator& operator=(const istream_iterator&) = default; 19959: ~istream_iterator() = default; 19959: 19959: 19959: [[__nodiscard__]] 19959: const _Tp& 19959: operator*() const noexcept 19959: { 19959: 19959: 19959: ; 19959: return _M_value; 19959: } 19959: 19959: [[__nodiscard__]] 19959: const _Tp* 19959: operator->() const noexcept 19959: { return std::__addressof((operator*())); } 19959: 19959: istream_iterator& 19959: operator++() 19959: { 19959: 19959: 19959: ; 19959: _M_read(); 19959: return *this; 19959: } 19959: 19959: istream_iterator 19959: operator++(int) 19959: { 19959: 19959: 19959: ; 19959: istream_iterator __tmp = *this; 19959: _M_read(); 19959: return __tmp; 19959: } 19959: 19959: private: 19959: bool 19959: _M_equal(const istream_iterator& __x) const noexcept 19959: { 19959: 19959: 19959: return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); 19959: } 19959: 19959: void 19959: _M_read() 19959: { 19959: if (_M_stream && !(*_M_stream >> _M_value)) 19959: { 19959: _M_stream = 0; 19959: _M_ok = false; 19959: } 19959: } 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator==(const istream_iterator& __x, const istream_iterator& __y) 19959: noexcept 19959: { return __x._M_equal(__y); } 19959: 19959: 19959: 19959: 19959: [[__nodiscard__]] 19959: friend bool 19959: operator!=(const istream_iterator& __x, const istream_iterator& __y) 19959: noexcept 19959: { return !__x._M_equal(__y); } 19959: # 181 "/usr/include/c++/13/bits/stream_iterator.h" 3 19959: }; 19959: # 194 "/usr/include/c++/13/bits/stream_iterator.h" 3 19959: template > 19959: class ostream_iterator 19959: : public iterator 19959: { 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: typedef _CharT char_type; 19959: typedef _Traits traits_type; 19959: typedef basic_ostream<_CharT, _Traits> ostream_type; 19959: 19959: 19959: private: 19959: ostream_type* _M_stream; 19959: const _CharT* _M_string; 19959: 19959: public: 19959: 19959: ostream_iterator(ostream_type& __s) noexcept 19959: : _M_stream(std::__addressof(__s)), _M_string(0) {} 19959: # 229 "/usr/include/c++/13/bits/stream_iterator.h" 3 19959: ostream_iterator(ostream_type& __s, const _CharT* __c) noexcept 19959: : _M_stream(std::__addressof(__s)), _M_string(__c) { } 19959: 19959: 19959: ostream_iterator(const ostream_iterator& __obj) noexcept 19959: : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { } 19959: 19959: 19959: ostream_iterator& operator=(const ostream_iterator&) = default; 19959: 19959: 19959: 19959: 19959: ostream_iterator& 19959: operator=(const _Tp& __value) 19959: { 19959: 19959: 19959: ; 19959: *_M_stream << __value; 19959: if (_M_string) 19959: *_M_stream << _M_string; 19959: return *this; 19959: } 19959: 19959: [[__nodiscard__]] 19959: ostream_iterator& 19959: operator*() noexcept 19959: { return *this; } 19959: 19959: ostream_iterator& 19959: operator++() noexcept 19959: { return *this; } 19959: 19959: ostream_iterator& 19959: operator++(int) noexcept 19959: { return *this; } 19959: }; 19959: #pragma GCC diagnostic pop 19959: 19959: 19959: 19959: 19959: } 19959: # 66 "/usr/include/c++/13/iterator" 2 3 19959: # 11 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 2 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: namespace rocksdb { 19959: # 39 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: template 19959: class autovector { 19959: public: 19959: 19959: using value_type = T; 19959: using difference_type = typename std::vector::difference_type; 19959: using size_type = typename std::vector::size_type; 19959: using reference = value_type&; 19959: using const_reference = const value_type&; 19959: using pointer = value_type*; 19959: using const_pointer = const value_type*; 19959: 19959: 19959: template 19959: class iterator_impl { 19959: public: 19959: 19959: using self_type = iterator_impl; 19959: using value_type = TValueType; 19959: using reference = TValueType&; 19959: using pointer = TValueType*; 19959: using difference_type = typename TAutoVector::difference_type; 19959: using iterator_category = std::random_access_iterator_tag; 19959: 19959: iterator_impl(TAutoVector* vect, size_t index) 19959: : vect_(vect), index_(index){}; 19959: iterator_impl(const iterator_impl&) = default; 19959: ~iterator_impl() {} 19959: iterator_impl& operator=(const iterator_impl&) = default; 19959: 19959: 19959: 19959: self_type& operator++() { 19959: ++index_; 19959: return *this; 19959: } 19959: 19959: 19959: self_type operator++(int) { 19959: auto old = *this; 19959: ++index_; 19959: return old; 19959: } 19959: 19959: 19959: self_type& operator--() { 19959: --index_; 19959: return *this; 19959: } 19959: 19959: 19959: self_type operator--(int) { 19959: auto old = *this; 19959: --index_; 19959: return old; 19959: } 19959: 19959: self_type operator-(difference_type len) const { 19959: return self_type(vect_, index_ - len); 19959: } 19959: 19959: difference_type operator-(const self_type& other) const { 19959: 19959: # 101 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 101 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: vect_ == other.vect_ 19959: # 101 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 101 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "vect_ == other.vect_" 19959: # 101 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 101, __extension__ __PRETTY_FUNCTION__)) 19959: # 101 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return index_ - other.index_; 19959: } 19959: 19959: self_type operator+(difference_type len) const { 19959: return self_type(vect_, index_ + len); 19959: } 19959: 19959: self_type& operator+=(difference_type len) { 19959: index_ += len; 19959: return *this; 19959: } 19959: 19959: self_type& operator-=(difference_type len) { 19959: index_ -= len; 19959: return *this; 19959: } 19959: 19959: 19959: reference operator*() const { 19959: 19959: # 121 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 121 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: vect_->size() >= index_ 19959: # 121 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 121 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "vect_->size() >= index_" 19959: # 121 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 121, __extension__ __PRETTY_FUNCTION__)) 19959: # 121 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return (*vect_)[index_]; 19959: } 19959: 19959: pointer operator->() const { 19959: 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: vect_->size() >= index_ 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "vect_->size() >= index_" 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 126, __extension__ __PRETTY_FUNCTION__)) 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return &(*vect_)[index_]; 19959: } 19959: 19959: reference operator[](difference_type len) const { return *(*this + len); } 19959: 19959: 19959: bool operator==(const self_type& other) const { 19959: 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: vect_ == other.vect_ 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "vect_ == other.vect_" 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 134, __extension__ __PRETTY_FUNCTION__)) 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return index_ == other.index_; 19959: } 19959: 19959: bool operator!=(const self_type& other) const { return !(*this == other); } 19959: 19959: bool operator>(const self_type& other) const { 19959: 19959: # 141 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 141 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: vect_ == other.vect_ 19959: # 141 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 141 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "vect_ == other.vect_" 19959: # 141 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 141, __extension__ __PRETTY_FUNCTION__)) 19959: # 141 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return index_ > other.index_; 19959: } 19959: 19959: bool operator<(const self_type& other) const { 19959: 19959: # 146 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 146 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: vect_ == other.vect_ 19959: # 146 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 146 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "vect_ == other.vect_" 19959: # 146 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 146, __extension__ __PRETTY_FUNCTION__)) 19959: # 146 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return index_ < other.index_; 19959: } 19959: 19959: bool operator>=(const self_type& other) const { 19959: 19959: # 151 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 151 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: vect_ == other.vect_ 19959: # 151 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 151 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "vect_ == other.vect_" 19959: # 151 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 151, __extension__ __PRETTY_FUNCTION__)) 19959: # 151 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return index_ >= other.index_; 19959: } 19959: 19959: bool operator<=(const self_type& other) const { 19959: 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: vect_ == other.vect_ 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "vect_ == other.vect_" 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 156, __extension__ __PRETTY_FUNCTION__)) 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return index_ <= other.index_; 19959: } 19959: 19959: private: 19959: TAutoVector* vect_ = nullptr; 19959: size_t index_ = 0; 19959: }; 19959: 19959: using iterator = iterator_impl; 19959: using const_iterator = iterator_impl; 19959: using reverse_iterator = std::reverse_iterator; 19959: using const_reverse_iterator = std::reverse_iterator; 19959: 19959: autovector() : values_(reinterpret_cast(buf_)) {} 19959: 19959: autovector(std::initializer_list init_list) 19959: : values_(reinterpret_cast(buf_)) { 19959: for (const T& item : init_list) { 19959: push_back(item); 19959: } 19959: } 19959: 19959: ~autovector() { clear(); } 19959: 19959: 19959: 19959: bool only_in_stack() const { 19959: 19959: return vect_.capacity() == 0; 19959: } 19959: 19959: size_type size() const { return num_stack_items_ + vect_.size(); } 19959: 19959: 19959: 19959: void resize(size_type n) { 19959: if (n > kSize) { 19959: vect_.resize(n - kSize); 19959: while (num_stack_items_ < kSize) { 19959: new ((void*)(&values_[num_stack_items_++])) value_type(); 19959: } 19959: num_stack_items_ = kSize; 19959: } else { 19959: vect_.clear(); 19959: while (num_stack_items_ < n) { 19959: new ((void*)(&values_[num_stack_items_++])) value_type(); 19959: } 19959: while (num_stack_items_ > n) { 19959: values_[--num_stack_items_].~value_type(); 19959: } 19959: } 19959: } 19959: 19959: bool empty() const { return size() == 0; } 19959: 19959: size_type capacity() const { return kSize + vect_.capacity(); } 19959: 19959: void reserve(size_t cap) { 19959: if (cap > kSize) { 19959: vect_.reserve(cap - kSize); 19959: } 19959: 19959: 19959: # 219 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 219 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: cap <= capacity() 19959: # 219 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 219 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "cap <= capacity()" 19959: # 219 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 219, __extension__ __PRETTY_FUNCTION__)) 19959: # 219 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: } 19959: 19959: const_reference operator[](size_type n) const { 19959: 19959: # 223 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 223 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: n < size() 19959: # 223 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 223 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "n < size()" 19959: # 223 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 223, __extension__ __PRETTY_FUNCTION__)) 19959: # 223 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: if (n < kSize) { 19959: return values_[n]; 19959: } 19959: return vect_[n - kSize]; 19959: } 19959: 19959: reference operator[](size_type n) { 19959: 19959: # 231 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 231 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: n < size() 19959: # 231 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 231 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "n < size()" 19959: # 231 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 231, __extension__ __PRETTY_FUNCTION__)) 19959: # 231 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: if (n < kSize) { 19959: return values_[n]; 19959: } 19959: return vect_[n - kSize]; 19959: } 19959: 19959: const_reference at(size_type n) const { 19959: 19959: # 239 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 239 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: n < size() 19959: # 239 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 239 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "n < size()" 19959: # 239 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 239, __extension__ __PRETTY_FUNCTION__)) 19959: # 239 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return (*this)[n]; 19959: } 19959: 19959: reference at(size_type n) { 19959: 19959: # 244 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 244 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: n < size() 19959: # 244 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 244 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "n < size()" 19959: # 244 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 244, __extension__ __PRETTY_FUNCTION__)) 19959: # 244 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return (*this)[n]; 19959: } 19959: 19959: reference front() { 19959: 19959: # 249 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 249 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: !empty() 19959: # 249 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 249 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "!empty()" 19959: # 249 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 249, __extension__ __PRETTY_FUNCTION__)) 19959: # 249 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return *begin(); 19959: } 19959: 19959: const_reference front() const { 19959: 19959: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: !empty() 19959: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "!empty()" 19959: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 254, __extension__ __PRETTY_FUNCTION__)) 19959: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return *begin(); 19959: } 19959: 19959: reference back() { 19959: 19959: # 259 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 259 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: !empty() 19959: # 259 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 259 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "!empty()" 19959: # 259 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 259, __extension__ __PRETTY_FUNCTION__)) 19959: # 259 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return *(end() - 1); 19959: } 19959: 19959: const_reference back() const { 19959: 19959: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: !empty() 19959: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "!empty()" 19959: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 264, __extension__ __PRETTY_FUNCTION__)) 19959: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: return *(end() - 1); 19959: } 19959: 19959: 19959: void push_back(T&& item) { 19959: if (num_stack_items_ < kSize) { 19959: new ((void*)(&values_[num_stack_items_])) value_type(); 19959: values_[num_stack_items_++] = std::move(item); 19959: } else { 19959: vect_.push_back(item); 19959: } 19959: } 19959: 19959: void push_back(const T& item) { 19959: if (num_stack_items_ < kSize) { 19959: new ((void*)(&values_[num_stack_items_])) value_type(); 19959: values_[num_stack_items_++] = item; 19959: } else { 19959: vect_.push_back(item); 19959: } 19959: } 19959: 19959: template 19959: # 298 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: void emplace_back(Args&&... args) { 19959: if (num_stack_items_ < kSize) { 19959: new ((void*)(&values_[num_stack_items_++])) 19959: value_type(std::forward(args)...); 19959: } else { 19959: vect_.emplace_back(std::forward(args)...); 19959: } 19959: } 19959: 19959: 19959: void pop_back() { 19959: 19959: # 309 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: (static_cast ( 19959: # 309 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: !empty() 19959: # 309 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 309 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: "!empty()" 19959: # 309 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 19959: , "./util/autovector.h", 309, __extension__ __PRETTY_FUNCTION__)) 19959: # 309 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 19959: ; 19959: if (!vect_.empty()) { 19959: vect_.pop_back(); 19959: } else { 19959: values_[--num_stack_items_].~value_type(); 19959: } 19959: } 19959: 19959: void clear() { 19959: while (num_stack_items_ > 0) { 19959: values_[--num_stack_items_].~value_type(); 19959: } 19959: vect_.clear(); 19959: } 19959: 19959: 19959: autovector& assign(const autovector& other); 19959: 19959: autovector(const autovector& other) { assign(other); } 19959: 19959: autovector& operator=(const autovector& other) { return assign(other); } 19959: 19959: autovector(autovector&& other) noexcept { *this = std::move(other); } 19959: autovector& operator=(autovector&& other); 19959: 19959: 19959: iterator begin() { return iterator(this, 0); } 19959: 19959: const_iterator begin() const { return const_iterator(this, 0); } 19959: 19959: iterator end() { return iterator(this, this->size()); } 19959: 19959: const_iterator end() const { return const_iterator(this, this->size()); } 19959: 19959: reverse_iterator rbegin() { return reverse_iterator(end()); } 19959: 19959: const_reverse_iterator rbegin() const { 19959: return const_reverse_iterator(end()); 19959: } 19959: 19959: reverse_iterator rend() { return reverse_iterator(begin()); } 19959: 19959: const_reverse_iterator rend() const { 19959: return const_reverse_iterator(begin()); 19959: } 19959: 19959: private: 19959: size_type num_stack_items_ = 0; 19959: alignas(alignof( 19959: value_type)) char buf_[kSize * 19959: sizeof(value_type)]; 19959: pointer values_; 19959: 19959: std::vector vect_; 19959: }; 19959: 19959: template 19959: autovector& autovector::assign( 19959: const autovector& other) { 19959: values_ = reinterpret_cast(buf_); 19959: 19959: vect_.assign(other.vect_.begin(), other.vect_.end()); 19959: 19959: 19959: num_stack_items_ = other.num_stack_items_; 19959: std::copy(other.values_, other.values_ + num_stack_items_, values_); 19959: 19959: return *this; 19959: } 19959: 19959: template 19959: autovector& autovector::operator=( 19959: autovector&& other) { 19959: values_ = reinterpret_cast(buf_); 19959: vect_ = std::move(other.vect_); 19959: size_t n = other.num_stack_items_; 19959: num_stack_items_ = n; 19959: other.num_stack_items_ = 0; 19959: for (size_t i = 0; i < n; ++i) { 19959: values_[i] = std::move(other.values_[i]); 19959: } 19959: return *this; 19959: } 19959: 19959: } 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 2 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: struct IOOptions; 19959: class RandomAccessFileReader; 19959: 19959: struct BufferInfo { 19959: AlignedBuffer buffer_; 19959: 19959: uint64_t offset_ = 0; 19959: 19959: 19959: 19959: size_t async_req_len_ = 0; 19959: 19959: 19959: 19959: bool async_read_in_progress_ = false; 19959: 19959: 19959: 19959: void* io_handle_ = nullptr; 19959: 19959: IOHandleDeleter del_fn_ = nullptr; 19959: 19959: 19959: uint32_t pos_ = 0; 19959: }; 19959: 19959: enum class FilePrefetchBufferUsage { 19959: kTableOpenPrefetchTail, 19959: kUserScanPrefetch, 19959: kUnknown, 19959: }; 19959: 19959: 19959: class FilePrefetchBuffer { 19959: public: 19959: # 87 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: FilePrefetchBuffer( 19959: size_t readahead_size = 0, size_t max_readahead_size = 0, 19959: bool enable = true, bool track_min_offset = false, 19959: bool implicit_auto_readahead = false, uint64_t num_file_reads = 0, 19959: uint64_t num_file_reads_for_auto_readahead = 0, 19959: uint64_t upper_bound_offset = 0, FileSystem* fs = nullptr, 19959: SystemClock* clock = nullptr, Statistics* stats = nullptr, 19959: const std::function& cb = nullptr, 19959: FilePrefetchBufferUsage usage = FilePrefetchBufferUsage::kUnknown) 19959: : curr_(0), 19959: readahead_size_(readahead_size), 19959: initial_auto_readahead_size_(readahead_size), 19959: max_readahead_size_(max_readahead_size), 19959: min_offset_read_(std::numeric_limits::max()), 19959: enable_(enable), 19959: track_min_offset_(track_min_offset), 19959: implicit_auto_readahead_(implicit_auto_readahead), 19959: prev_offset_(0), 19959: prev_len_(0), 19959: num_file_reads_for_auto_readahead_(num_file_reads_for_auto_readahead), 19959: num_file_reads_(num_file_reads), 19959: explicit_prefetch_submitted_(false), 19959: fs_(fs), 19959: clock_(clock), 19959: stats_(stats), 19959: usage_(usage), 19959: upper_bound_offset_(upper_bound_offset), 19959: readaheadsize_cb_(cb) { 19959: 19959: # 115 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 19959: (static_cast ( 19959: # 115 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: (num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0) 19959: # 115 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 115 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: "(num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0)" 19959: # 115 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 19959: , "./file/file_prefetch_buffer.h", 115, __extension__ __PRETTY_FUNCTION__)) 19959: 19959: # 116 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: ; 19959: 19959: 19959: 19959: bufs_.resize(3); 19959: for (uint32_t i = 0; i < 2; i++) { 19959: bufs_[i].pos_ = i; 19959: } 19959: } 19959: 19959: ~FilePrefetchBuffer() { 19959: 19959: if (fs_ != nullptr) { 19959: std::vector handles; 19959: for (uint32_t i = 0; i < 2; i++) { 19959: if (bufs_[i].async_read_in_progress_ && 19959: bufs_[i].io_handle_ != nullptr) { 19959: handles.emplace_back(bufs_[i].io_handle_); 19959: } 19959: } 19959: if (!handles.empty()) { 19959: StopWatch sw(clock_, stats_, ASYNC_PREFETCH_ABORT_MICROS); 19959: Status s = fs_->AbortIO(handles); 19959: 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 19959: (static_cast ( 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: s.ok() 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: "s.ok()" 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 19959: , "./file/file_prefetch_buffer.h", 139, __extension__ __PRETTY_FUNCTION__)) 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: ; 19959: } 19959: } 19959: 19959: 19959: uint64_t bytes_discarded = 0; 19959: 19959: for (int i = 0; i < 2; i++) { 19959: int first = i; 19959: int second = i ^ 1; 19959: 19959: if (DoesBufferContainData(first)) { 19959: 19959: 19959: if (prev_offset_ >= bufs_[first].offset_ && 19959: prev_offset_ + prev_len_ < 19959: bufs_[first].offset_ + bufs_[first].buffer_.CurrentSize()) { 19959: bytes_discarded += bufs_[first].buffer_.CurrentSize() - 19959: (prev_offset_ + prev_len_ - bufs_[first].offset_); 19959: } 19959: 19959: 19959: else if (prev_offset_ < bufs_[first].offset_ && 19959: !DoesBufferContainData(second)) { 19959: 19959: 19959: if (prev_offset_ + prev_len_ <= bufs_[first].offset_) { 19959: bytes_discarded += bufs_[first].buffer_.CurrentSize(); 19959: } 19959: 19959: 19959: else if (prev_offset_ + prev_len_ > bufs_[first].offset_ && 19959: bufs_[first].offset_ + bufs_[first].buffer_.CurrentSize() == 19959: bufs_[second].offset_) { 19959: bytes_discarded += bufs_[first].buffer_.CurrentSize() - 19959: ( prev_len_ - 19959: (bufs_[first].offset_ - prev_offset_)); 19959: } 19959: } 19959: } 19959: } 19959: 19959: for (uint32_t i = 0; i < 2; i++) { 19959: 19959: DestroyAndClearIOHandle(i); 19959: } 19959: RecordInHistogram(stats_, PREFETCHED_BYTES_DISCARDED, bytes_discarded); 19959: } 19959: 19959: bool Enabled() const { return enable_; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: Status Prefetch(const IOOptions& opts, RandomAccessFileReader* reader, 19959: uint64_t offset, size_t n); 19959: # 208 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: Status PrefetchAsync(const IOOptions& opts, RandomAccessFileReader* reader, 19959: uint64_t offset, size_t n, Slice* result); 19959: # 224 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: bool TryReadFromCache(const IOOptions& opts, RandomAccessFileReader* reader, 19959: uint64_t offset, size_t n, Slice* result, Status* s, 19959: bool for_compaction = false); 19959: 19959: bool TryReadFromCacheAsync(const IOOptions& opts, 19959: RandomAccessFileReader* reader, uint64_t offset, 19959: size_t n, Slice* result, Status* status); 19959: 19959: 19959: 19959: size_t min_offset_read() const { return min_offset_read_; } 19959: 19959: size_t GetPrefetchOffset() const { return bufs_[curr_].offset_; } 19959: 19959: 19959: void UpdateReadPattern(const uint64_t& offset, const size_t& len, 19959: bool decrease_readaheadsize) { 19959: if (decrease_readaheadsize) { 19959: 19959: 19959: 19959: DecreaseReadAheadIfEligible(offset, len); 19959: } 19959: prev_offset_ = offset; 19959: prev_len_ = len; 19959: explicit_prefetch_submitted_ = false; 19959: } 19959: 19959: void GetReadaheadState(ReadaheadFileInfo::ReadaheadInfo* readahead_info) { 19959: readahead_info->readahead_size = readahead_size_; 19959: readahead_info->num_file_reads = num_file_reads_; 19959: } 19959: 19959: void DecreaseReadAheadIfEligible(uint64_t offset, size_t size, 19959: size_t value = 8 * 1024) { 19959: # 268 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: size_t curr_size = bufs_[curr_].async_read_in_progress_ 19959: ? bufs_[curr_].async_req_len_ 19959: : bufs_[curr_].buffer_.CurrentSize(); 19959: if (implicit_auto_readahead_ && readahead_size_ > 0) { 19959: if ((offset + size > bufs_[curr_].offset_ + curr_size) && 19959: IsBlockSequential(offset) && 19959: (num_file_reads_ + 1 > num_file_reads_for_auto_readahead_)) { 19959: readahead_size_ = 19959: std::max(initial_auto_readahead_size_, 19959: (readahead_size_ >= value ? readahead_size_ - value : 0)); 19959: } 19959: } 19959: } 19959: 19959: 19959: void PrefetchAsyncCallback(const FSReadRequest& req, void* cb_arg); 19959: 19959: void ResetUpperBoundOffset(uint64_t upper_bound_offset) { 19959: upper_bound_offset_ = upper_bound_offset; 19959: readahead_size_ = initial_auto_readahead_size_; 19959: } 19959: 19959: private: 19959: 19959: 19959: 19959: void CalculateOffsetAndLen(size_t alignment, uint64_t offset, 19959: size_t roundup_len, uint32_t index, 19959: bool refit_tail, uint64_t& chunk_len); 19959: 19959: void AbortIOIfNeeded(uint64_t offset); 19959: 19959: void AbortAllIOs(); 19959: 19959: void UpdateBuffersIfNeeded(uint64_t offset); 19959: 19959: 19959: 19959: 19959: void PollAndUpdateBuffersIfNeeded(uint64_t offset); 19959: 19959: Status PrefetchAsyncInternal(const IOOptions& opts, 19959: RandomAccessFileReader* reader, uint64_t offset, 19959: size_t length, size_t readahead_size, 19959: bool& copy_to_third_buffer); 19959: 19959: Status Read(const IOOptions& opts, RandomAccessFileReader* reader, 19959: uint64_t read_len, uint64_t chunk_len, uint64_t rounddown_start, 19959: uint32_t index); 19959: 19959: Status ReadAsync(const IOOptions& opts, RandomAccessFileReader* reader, 19959: uint64_t read_len, uint64_t rounddown_start, uint32_t index); 19959: 19959: 19959: void CopyDataToBuffer(uint32_t src, uint64_t& offset, size_t& length); 19959: 19959: bool IsBlockSequential(const size_t& offset) { 19959: return (prev_len_ == 0 || (prev_offset_ + prev_len_ == offset)); 19959: } 19959: 19959: 19959: void ResetValues() { 19959: num_file_reads_ = 1; 19959: readahead_size_ = initial_auto_readahead_size_; 19959: } 19959: 19959: 19959: bool IsEligibleForPrefetch(uint64_t offset, size_t n) { 19959: 19959: 19959: if (!IsBlockSequential(offset)) { 19959: UpdateReadPattern(offset, n, false ); 19959: ResetValues(); 19959: return false; 19959: } 19959: num_file_reads_++; 19959: 19959: 19959: 19959: 19959: if (explicit_prefetch_submitted_) { 19959: return true; 19959: } 19959: if (num_file_reads_ <= num_file_reads_for_auto_readahead_) { 19959: UpdateReadPattern(offset, n, false ); 19959: return false; 19959: } 19959: return true; 19959: } 19959: 19959: 19959: bool IsDataBlockInBuffer(uint64_t offset, size_t length, uint32_t index) { 19959: return (offset >= bufs_[index].offset_ && 19959: offset + length <= 19959: bufs_[index].offset_ + bufs_[index].buffer_.CurrentSize()); 19959: } 19959: bool IsOffsetInBuffer(uint64_t offset, uint32_t index) { 19959: return (offset >= bufs_[index].offset_ && 19959: offset < bufs_[index].offset_ + bufs_[index].buffer_.CurrentSize()); 19959: } 19959: bool DoesBufferContainData(uint32_t index) { 19959: return bufs_[index].buffer_.CurrentSize() > 0; 19959: } 19959: bool IsBufferOutdated(uint64_t offset, uint32_t index) { 19959: return ( 19959: !bufs_[index].async_read_in_progress_ && DoesBufferContainData(index) && 19959: offset >= bufs_[index].offset_ + bufs_[index].buffer_.CurrentSize()); 19959: } 19959: bool IsBufferOutdatedWithAsyncProgress(uint64_t offset, uint32_t index) { 19959: return (bufs_[index].async_read_in_progress_ && 19959: bufs_[index].io_handle_ != nullptr && 19959: offset >= bufs_[index].offset_ + bufs_[index].async_req_len_); 19959: } 19959: bool IsOffsetInBufferWithAsyncProgress(uint64_t offset, uint32_t index) { 19959: return (bufs_[index].async_read_in_progress_ && 19959: offset >= bufs_[index].offset_ && 19959: offset < bufs_[index].offset_ + bufs_[index].async_req_len_); 19959: } 19959: 19959: bool IsSecondBuffEligibleForPrefetching() { 19959: uint32_t second = curr_ ^ 1; 19959: if (bufs_[second].async_read_in_progress_) { 19959: return false; 19959: } 19959: 19959: # 392 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 19959: (static_cast ( 19959: # 392 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: !bufs_[curr_].async_read_in_progress_ 19959: # 392 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 392 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: "!bufs_[curr_].async_read_in_progress_" 19959: # 392 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 19959: , "./file/file_prefetch_buffer.h", 392, __extension__ __PRETTY_FUNCTION__)) 19959: # 392 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 19959: ; 19959: 19959: if (DoesBufferContainData(curr_) && DoesBufferContainData(second) && 19959: (bufs_[curr_].offset_ + bufs_[curr_].buffer_.CurrentSize() == 19959: bufs_[second].offset_)) { 19959: return false; 19959: } 19959: 19959: 19959: if (readahead_size_ == 0) { 19959: return false; 19959: } 19959: 19959: bufs_[second].buffer_.Clear(); 19959: return true; 19959: } 19959: 19959: void DestroyAndClearIOHandle(uint32_t index) { 19959: if (bufs_[index].io_handle_ != nullptr && bufs_[index].del_fn_ != nullptr) { 19959: bufs_[index].del_fn_(bufs_[index].io_handle_); 19959: bufs_[index].io_handle_ = nullptr; 19959: bufs_[index].del_fn_ = nullptr; 19959: } 19959: bufs_[index].async_read_in_progress_ = false; 19959: } 19959: 19959: Status HandleOverlappingData(const IOOptions& opts, 19959: RandomAccessFileReader* reader, uint64_t offset, 19959: size_t length, size_t readahead_size, 19959: bool& copy_to_third_buffer, uint64_t& tmp_offset, 19959: size_t& tmp_length); 19959: 19959: bool TryReadFromCacheUntracked(const IOOptions& opts, 19959: RandomAccessFileReader* reader, 19959: uint64_t offset, size_t n, Slice* result, 19959: Status* s, 19959: bool for_compaction = false); 19959: 19959: bool TryReadFromCacheAsyncUntracked(const IOOptions& opts, 19959: RandomAccessFileReader* reader, 19959: uint64_t offset, size_t n, Slice* result, 19959: Status* status); 19959: 19959: void UpdateReadAheadSizeForUpperBound(uint64_t offset, size_t n) { 19959: 19959: 19959: if (readahead_size_ > 0 && upper_bound_offset_ > 0 && 19959: upper_bound_offset_ > offset) { 19959: if (upper_bound_offset_ < offset + n + readahead_size_) { 19959: readahead_size_ = (upper_bound_offset_ - offset) - n; 19959: RecordTick(stats_, READAHEAD_TRIMMED); 19959: } 19959: } 19959: } 19959: 19959: inline bool IsOffsetOutOfBound(uint64_t offset) { 19959: if (upper_bound_offset_ > 0) { 19959: return (offset >= upper_bound_offset_); 19959: } 19959: return false; 19959: } 19959: 19959: 19959: size_t ReadAheadSizeTuning(uint64_t offset, size_t n) { 19959: UpdateReadAheadSizeForUpperBound(offset, n); 19959: 19959: if (readaheadsize_cb_ != nullptr && readahead_size_ > 0) { 19959: size_t updated_readahead_size = 0; 19959: readaheadsize_cb_(offset, readahead_size_, updated_readahead_size); 19959: if (readahead_size_ != updated_readahead_size) { 19959: RecordTick(stats_, READAHEAD_TRIMMED); 19959: } 19959: return updated_readahead_size; 19959: } 19959: return readahead_size_; 19959: } 19959: 19959: std::vector bufs_; 19959: 19959: 19959: uint32_t curr_; 19959: 19959: size_t readahead_size_; 19959: size_t initial_auto_readahead_size_; 19959: 19959: 19959: size_t max_readahead_size_; 19959: 19959: 19959: size_t min_offset_read_; 19959: 19959: 19959: bool enable_; 19959: 19959: 19959: bool track_min_offset_; 19959: 19959: 19959: 19959: bool implicit_auto_readahead_; 19959: uint64_t prev_offset_; 19959: size_t prev_len_; 19959: 19959: 19959: uint64_t num_file_reads_for_auto_readahead_; 19959: uint64_t num_file_reads_; 19959: 19959: 19959: 19959: 19959: 19959: bool explicit_prefetch_submitted_; 19959: 19959: FileSystem* fs_; 19959: SystemClock* clock_; 19959: Statistics* stats_; 19959: 19959: FilePrefetchBufferUsage usage_; 19959: 19959: 19959: 19959: 19959: uint64_t upper_bound_offset_ = 0; 19959: std::function readaheadsize_cb_; 19959: }; 19959: } 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/file/random_access_file_reader.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/file/random_access_file_reader.h" 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/env/file_system_tracer.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/fstream" 1 3 19959: # 36 "/usr/include/c++/13/fstream" 3 19959: 19959: # 37 "/usr/include/c++/13/fstream" 3 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/bits/codecvt.h" 1 3 19959: # 39 "/usr/include/c++/13/bits/codecvt.h" 3 19959: 19959: # 40 "/usr/include/c++/13/bits/codecvt.h" 3 19959: 19959: 19959: 19959: 19959: 19959: # 44 "/usr/include/c++/13/bits/codecvt.h" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: class codecvt_base 19959: { 19959: public: 19959: enum result 19959: { 19959: ok, 19959: partial, 19959: error, 19959: noconv 19959: }; 19959: }; 19959: # 70 "/usr/include/c++/13/bits/codecvt.h" 3 19959: template 19959: class __codecvt_abstract_base 19959: : public locale::facet, public codecvt_base 19959: { 19959: public: 19959: 19959: typedef codecvt_base::result result; 19959: typedef _InternT intern_type; 19959: typedef _ExternT extern_type; 19959: typedef _StateT state_type; 19959: # 118 "/usr/include/c++/13/bits/codecvt.h" 3 19959: result 19959: out(state_type& __state, const intern_type* __from, 19959: const intern_type* __from_end, const intern_type*& __from_next, 19959: extern_type* __to, extern_type* __to_end, 19959: extern_type*& __to_next) const 19959: { 19959: return this->do_out(__state, __from, __from_end, __from_next, 19959: __to, __to_end, __to_next); 19959: } 19959: # 157 "/usr/include/c++/13/bits/codecvt.h" 3 19959: result 19959: unshift(state_type& __state, extern_type* __to, extern_type* __to_end, 19959: extern_type*& __to_next) const 19959: { return this->do_unshift(__state, __to,__to_end,__to_next); } 19959: # 198 "/usr/include/c++/13/bits/codecvt.h" 3 19959: result 19959: in(state_type& __state, const extern_type* __from, 19959: const extern_type* __from_end, const extern_type*& __from_next, 19959: intern_type* __to, intern_type* __to_end, 19959: intern_type*& __to_next) const 19959: { 19959: return this->do_in(__state, __from, __from_end, __from_next, 19959: __to, __to_end, __to_next); 19959: } 19959: 19959: int 19959: encoding() const throw() 19959: { return this->do_encoding(); } 19959: 19959: bool 19959: always_noconv() const throw() 19959: { return this->do_always_noconv(); } 19959: 19959: int 19959: length(state_type& __state, const extern_type* __from, 19959: const extern_type* __end, size_t __max) const 19959: { return this->do_length(__state, __from, __end, __max); } 19959: 19959: int 19959: max_length() const throw() 19959: { return this->do_max_length(); } 19959: 19959: protected: 19959: explicit 19959: __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { } 19959: 19959: virtual 19959: ~__codecvt_abstract_base() { } 19959: # 239 "/usr/include/c++/13/bits/codecvt.h" 3 19959: virtual result 19959: do_out(state_type& __state, const intern_type* __from, 19959: const intern_type* __from_end, const intern_type*& __from_next, 19959: extern_type* __to, extern_type* __to_end, 19959: extern_type*& __to_next) const = 0; 19959: 19959: virtual result 19959: do_unshift(state_type& __state, extern_type* __to, 19959: extern_type* __to_end, extern_type*& __to_next) const = 0; 19959: 19959: virtual result 19959: do_in(state_type& __state, const extern_type* __from, 19959: const extern_type* __from_end, const extern_type*& __from_next, 19959: intern_type* __to, intern_type* __to_end, 19959: intern_type*& __to_next) const = 0; 19959: 19959: virtual int 19959: do_encoding() const throw() = 0; 19959: 19959: virtual bool 19959: do_always_noconv() const throw() = 0; 19959: 19959: virtual int 19959: do_length(state_type&, const extern_type* __from, 19959: const extern_type* __end, size_t __max) const = 0; 19959: 19959: virtual int 19959: do_max_length() const throw() = 0; 19959: }; 19959: # 276 "/usr/include/c++/13/bits/codecvt.h" 3 19959: template 19959: class codecvt 19959: : public __codecvt_abstract_base<_InternT, _ExternT, _StateT> 19959: { 19959: public: 19959: 19959: typedef codecvt_base::result result; 19959: typedef _InternT intern_type; 19959: typedef _ExternT extern_type; 19959: typedef _StateT state_type; 19959: 19959: protected: 19959: __c_locale _M_c_locale_codecvt; 19959: 19959: public: 19959: static locale::id id; 19959: 19959: explicit 19959: codecvt(size_t __refs = 0) 19959: : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs), 19959: _M_c_locale_codecvt(0) 19959: { } 19959: 19959: explicit 19959: codecvt(__c_locale __cloc, size_t __refs = 0); 19959: 19959: protected: 19959: virtual 19959: ~codecvt() { } 19959: 19959: virtual result 19959: do_out(state_type& __state, const intern_type* __from, 19959: const intern_type* __from_end, const intern_type*& __from_next, 19959: extern_type* __to, extern_type* __to_end, 19959: extern_type*& __to_next) const; 19959: 19959: virtual result 19959: do_unshift(state_type& __state, extern_type* __to, 19959: extern_type* __to_end, extern_type*& __to_next) const; 19959: 19959: virtual result 19959: do_in(state_type& __state, const extern_type* __from, 19959: const extern_type* __from_end, const extern_type*& __from_next, 19959: intern_type* __to, intern_type* __to_end, 19959: intern_type*& __to_next) const; 19959: 19959: virtual int 19959: do_encoding() const throw(); 19959: 19959: virtual bool 19959: do_always_noconv() const throw(); 19959: 19959: virtual int 19959: do_length(state_type&, const extern_type* __from, 19959: const extern_type* __end, size_t __max) const; 19959: 19959: virtual int 19959: do_max_length() const throw(); 19959: }; 19959: 19959: template 19959: locale::id codecvt<_InternT, _ExternT, _StateT>::id; 19959: 19959: 19959: template<> 19959: class codecvt 19959: : public __codecvt_abstract_base 19959: { 19959: friend class messages; 19959: 19959: public: 19959: 19959: typedef char intern_type; 19959: typedef char extern_type; 19959: typedef mbstate_t state_type; 19959: 19959: protected: 19959: __c_locale _M_c_locale_codecvt; 19959: 19959: public: 19959: static locale::id id; 19959: 19959: explicit 19959: codecvt(size_t __refs = 0); 19959: 19959: explicit 19959: codecvt(__c_locale __cloc, size_t __refs = 0); 19959: 19959: protected: 19959: virtual 19959: ~codecvt(); 19959: 19959: virtual result 19959: do_out(state_type& __state, const intern_type* __from, 19959: const intern_type* __from_end, const intern_type*& __from_next, 19959: extern_type* __to, extern_type* __to_end, 19959: extern_type*& __to_next) const; 19959: 19959: virtual result 19959: do_unshift(state_type& __state, extern_type* __to, 19959: extern_type* __to_end, extern_type*& __to_next) const; 19959: 19959: virtual result 19959: do_in(state_type& __state, const extern_type* __from, 19959: const extern_type* __from_end, const extern_type*& __from_next, 19959: intern_type* __to, intern_type* __to_end, 19959: intern_type*& __to_next) const; 19959: 19959: virtual int 19959: do_encoding() const throw(); 19959: 19959: virtual bool 19959: do_always_noconv() const throw(); 19959: 19959: virtual int 19959: do_length(state_type&, const extern_type* __from, 19959: const extern_type* __end, size_t __max) const; 19959: 19959: virtual int 19959: do_max_length() const throw(); 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template<> 19959: class codecvt 19959: : public __codecvt_abstract_base 19959: { 19959: friend class messages; 19959: 19959: public: 19959: 19959: typedef wchar_t intern_type; 19959: typedef char extern_type; 19959: typedef mbstate_t state_type; 19959: 19959: protected: 19959: __c_locale _M_c_locale_codecvt; 19959: 19959: public: 19959: static locale::id id; 19959: 19959: explicit 19959: codecvt(size_t __refs = 0); 19959: 19959: explicit 19959: codecvt(__c_locale __cloc, size_t __refs = 0); 19959: 19959: protected: 19959: virtual 19959: ~codecvt(); 19959: 19959: virtual result 19959: do_out(state_type& __state, const intern_type* __from, 19959: const intern_type* __from_end, const intern_type*& __from_next, 19959: extern_type* __to, extern_type* __to_end, 19959: extern_type*& __to_next) const; 19959: 19959: virtual result 19959: do_unshift(state_type& __state, 19959: extern_type* __to, extern_type* __to_end, 19959: extern_type*& __to_next) const; 19959: 19959: virtual result 19959: do_in(state_type& __state, 19959: const extern_type* __from, const extern_type* __from_end, 19959: const extern_type*& __from_next, 19959: intern_type* __to, intern_type* __to_end, 19959: intern_type*& __to_next) const; 19959: 19959: virtual 19959: int do_encoding() const throw(); 19959: 19959: virtual 19959: bool do_always_noconv() const throw(); 19959: 19959: virtual 19959: int do_length(state_type&, const extern_type* __from, 19959: const extern_type* __end, size_t __max) const; 19959: 19959: virtual int 19959: do_max_length() const throw(); 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template<> 19959: class codecvt 19959: : public __codecvt_abstract_base 19959: { 19959: public: 19959: 19959: typedef char16_t intern_type; 19959: typedef char extern_type; 19959: typedef mbstate_t state_type; 19959: 19959: public: 19959: static locale::id id; 19959: 19959: explicit 19959: codecvt(size_t __refs = 0) 19959: : __codecvt_abstract_base(__refs) { } 19959: 19959: protected: 19959: virtual 19959: ~codecvt(); 19959: 19959: virtual result 19959: do_out(state_type& __state, const intern_type* __from, 19959: const intern_type* __from_end, const intern_type*& __from_next, 19959: extern_type* __to, extern_type* __to_end, 19959: extern_type*& __to_next) const; 19959: 19959: virtual result 19959: do_unshift(state_type& __state, 19959: extern_type* __to, extern_type* __to_end, 19959: extern_type*& __to_next) const; 19959: 19959: virtual result 19959: do_in(state_type& __state, 19959: const extern_type* __from, const extern_type* __from_end, 19959: const extern_type*& __from_next, 19959: intern_type* __to, intern_type* __to_end, 19959: intern_type*& __to_next) const; 19959: 19959: virtual 19959: int do_encoding() const throw(); 19959: 19959: virtual 19959: bool do_always_noconv() const throw(); 19959: 19959: virtual 19959: int do_length(state_type&, const extern_type* __from, 19959: const extern_type* __end, size_t __max) const; 19959: 19959: virtual int 19959: do_max_length() const throw(); 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: template<> 19959: class codecvt 19959: : public __codecvt_abstract_base 19959: { 19959: public: 19959: 19959: typedef char32_t intern_type; 19959: typedef char extern_type; 19959: typedef mbstate_t state_type; 19959: 19959: public: 19959: static locale::id id; 19959: 19959: explicit 19959: codecvt(size_t __refs = 0) 19959: : __codecvt_abstract_base(__refs) { } 19959: 19959: protected: 19959: virtual 19959: ~codecvt(); 19959: 19959: virtual result 19959: do_out(state_type& __state, const intern_type* __from, 19959: const intern_type* __from_end, const intern_type*& __from_next, 19959: extern_type* __to, extern_type* __to_end, 19959: extern_type*& __to_next) const; 19959: 19959: virtual result 19959: do_unshift(state_type& __state, 19959: extern_type* __to, extern_type* __to_end, 19959: extern_type*& __to_next) const; 19959: 19959: virtual result 19959: do_in(state_type& __state, 19959: const extern_type* __from, const extern_type* __from_end, 19959: const extern_type*& __from_next, 19959: intern_type* __to, intern_type* __to_end, 19959: intern_type*& __to_next) const; 19959: 19959: virtual 19959: int do_encoding() const throw(); 19959: 19959: virtual 19959: bool do_always_noconv() const throw(); 19959: 19959: virtual 19959: int do_length(state_type&, const extern_type* __from, 19959: const extern_type* __end, size_t __max) const; 19959: 19959: virtual int 19959: do_max_length() const throw(); 19959: }; 19959: # 698 "/usr/include/c++/13/bits/codecvt.h" 3 19959: template 19959: class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT> 19959: { 19959: public: 19959: explicit 19959: codecvt_byname(const char* __s, size_t __refs = 0) 19959: : codecvt<_InternT, _ExternT, _StateT>(__refs) 19959: { 19959: if (__builtin_strcmp(__s, "C") != 0 19959: && __builtin_strcmp(__s, "POSIX") != 0) 19959: { 19959: this->_S_destroy_c_locale(this->_M_c_locale_codecvt); 19959: this->_S_create_c_locale(this->_M_c_locale_codecvt, __s); 19959: } 19959: } 19959: 19959: 19959: explicit 19959: codecvt_byname(const string& __s, size_t __refs = 0) 19959: : codecvt_byname(__s.c_str(), __refs) { } 19959: 19959: 19959: protected: 19959: virtual 19959: ~codecvt_byname() { } 19959: }; 19959: 19959: 19959: template<> 19959: class codecvt_byname 19959: : public codecvt 19959: { 19959: public: 19959: explicit 19959: codecvt_byname(const char*, size_t __refs = 0) 19959: : codecvt(__refs) { } 19959: 19959: explicit 19959: codecvt_byname(const string& __s, size_t __refs = 0) 19959: : codecvt_byname(__s.c_str(), __refs) { } 19959: 19959: protected: 19959: virtual 19959: ~codecvt_byname() { } 19959: }; 19959: 19959: template<> 19959: class codecvt_byname 19959: : public codecvt 19959: { 19959: public: 19959: explicit 19959: codecvt_byname(const char*, size_t __refs = 0) 19959: : codecvt(__refs) { } 19959: 19959: explicit 19959: codecvt_byname(const string& __s, size_t __refs = 0) 19959: : codecvt_byname(__s.c_str(), __refs) { } 19959: 19959: protected: 19959: virtual 19959: ~codecvt_byname() { } 19959: }; 19959: # 805 "/usr/include/c++/13/bits/codecvt.h" 3 19959: extern template class codecvt_byname; 19959: 19959: extern template 19959: const codecvt& 19959: use_facet >(const locale&); 19959: 19959: extern template 19959: bool 19959: has_facet >(const locale&); 19959: 19959: 19959: extern template class codecvt_byname; 19959: 19959: extern template 19959: const codecvt& 19959: use_facet >(const locale&); 19959: 19959: extern template 19959: bool 19959: has_facet >(const locale&); 19959: 19959: 19959: 19959: extern template class codecvt_byname; 19959: extern template class codecvt_byname; 19959: # 840 "/usr/include/c++/13/bits/codecvt.h" 3 19959: 19959: } 19959: # 43 "/usr/include/c++/13/fstream" 2 3 19959: # 1 "/usr/include/c++/13/cstdio" 1 3 19959: # 39 "/usr/include/c++/13/cstdio" 3 19959: 19959: # 40 "/usr/include/c++/13/cstdio" 3 19959: # 44 "/usr/include/c++/13/fstream" 2 3 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/basic_file.h" 1 3 19959: # 37 "/usr/include/arm-linux-gnueabihf/c++/13/bits/basic_file.h" 3 19959: 19959: # 38 "/usr/include/arm-linux-gnueabihf/c++/13/bits/basic_file.h" 3 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++io.h" 1 3 19959: # 35 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++io.h" 3 19959: # 1 "/usr/include/c++/13/cstdio" 1 3 19959: # 39 "/usr/include/c++/13/cstdio" 3 19959: 19959: # 40 "/usr/include/c++/13/cstdio" 3 19959: # 36 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++io.h" 2 3 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef __gthread_mutex_t __c_lock; 19959: 19959: 19959: 19959: typedef FILE __c_file; 19959: 19959: 19959: } 19959: # 41 "/usr/include/arm-linux-gnueabihf/c++/13/bits/basic_file.h" 2 3 19959: 19959: 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: template 19959: class __basic_file; 19959: 19959: 19959: template<> 19959: class __basic_file 19959: { 19959: 19959: __c_file* _M_cfile; 19959: 19959: 19959: bool _M_cfile_created; 19959: 19959: public: 19959: __basic_file(__c_lock* __lock = 0) throw (); 19959: 19959: 19959: __basic_file(__basic_file&& __rv, __c_lock* = 0) noexcept 19959: : _M_cfile(__rv._M_cfile), _M_cfile_created(__rv._M_cfile_created) 19959: { 19959: __rv._M_cfile = nullptr; 19959: __rv._M_cfile_created = false; 19959: } 19959: 19959: __basic_file& operator=(const __basic_file&) = delete; 19959: __basic_file& operator=(__basic_file&&) = delete; 19959: 19959: void 19959: swap(__basic_file& __f) noexcept 19959: { 19959: std::swap(_M_cfile, __f._M_cfile); 19959: std::swap(_M_cfile_created, __f._M_cfile_created); 19959: } 19959: 19959: 19959: __basic_file* 19959: open(const char* __name, ios_base::openmode __mode, int __prot = 0664); 19959: 19959: 19959: 19959: 19959: 19959: 19959: __basic_file* 19959: sys_open(__c_file* __file, ios_base::openmode); 19959: 19959: __basic_file* 19959: sys_open(int __fd, ios_base::openmode __mode) throw (); 19959: 19959: __basic_file* 19959: close(); 19959: 19959: __attribute__ ((__pure__)) bool 19959: is_open() const throw (); 19959: 19959: __attribute__ ((__pure__)) int 19959: fd() throw (); 19959: 19959: __attribute__ ((__pure__)) __c_file* 19959: file() throw (); 19959: 19959: ~__basic_file(); 19959: 19959: streamsize 19959: xsputn(const char* __s, streamsize __n); 19959: 19959: streamsize 19959: xsputn_2(const char* __s1, streamsize __n1, 19959: const char* __s2, streamsize __n2); 19959: 19959: streamsize 19959: xsgetn(char* __s, streamsize __n); 19959: 19959: streamoff 19959: seekoff(streamoff __off, ios_base::seekdir __way) throw (); 19959: 19959: int 19959: sync(); 19959: 19959: streamsize 19959: showmanyc(); 19959: }; 19959: 19959: 19959: } 19959: # 45 "/usr/include/c++/13/fstream" 2 3 19959: # 54 "/usr/include/c++/13/fstream" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: 19959: 19959: template().make_preferred().filename())> 19959: using _If_fs_path = enable_if_t, _Result>; 19959: # 86 "/usr/include/c++/13/fstream" 3 19959: template 19959: class basic_filebuf : public basic_streambuf<_CharT, _Traits> 19959: { 19959: 19959: template 19959: using __chk_state = __and_, 19959: is_copy_constructible<_Tp>, 19959: is_default_constructible<_Tp>>; 19959: 19959: static_assert(__chk_state::value, 19959: "state_type must be CopyAssignable, CopyConstructible" 19959: " and DefaultConstructible"); 19959: 19959: static_assert(is_same>::value, 19959: "pos_type must be fpos"); 19959: 19959: public: 19959: 19959: typedef _CharT char_type; 19959: typedef _Traits traits_type; 19959: typedef typename traits_type::int_type int_type; 19959: typedef typename traits_type::pos_type pos_type; 19959: typedef typename traits_type::off_type off_type; 19959: 19959: typedef basic_streambuf __streambuf_type; 19959: typedef basic_filebuf __filebuf_type; 19959: typedef __basic_file __file_type; 19959: typedef typename traits_type::state_type __state_type; 19959: typedef codecvt __codecvt_type; 19959: 19959: friend class ios_base; 19959: 19959: protected: 19959: 19959: 19959: __c_lock _M_lock; 19959: 19959: 19959: __file_type _M_file; 19959: 19959: 19959: ios_base::openmode _M_mode; 19959: 19959: 19959: __state_type _M_state_beg; 19959: 19959: 19959: 19959: 19959: __state_type _M_state_cur; 19959: 19959: 19959: 19959: __state_type _M_state_last; 19959: 19959: 19959: char_type* _M_buf; 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t _M_buf_size; 19959: 19959: 19959: bool _M_buf_allocated; 19959: # 162 "/usr/include/c++/13/fstream" 3 19959: bool _M_reading; 19959: bool _M_writing; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: char_type _M_pback; 19959: char_type* _M_pback_cur_save; 19959: char_type* _M_pback_end_save; 19959: bool _M_pback_init; 19959: 19959: 19959: 19959: const __codecvt_type* _M_codecvt; 19959: 19959: 19959: 19959: 19959: 19959: 19959: char* _M_ext_buf; 19959: 19959: 19959: 19959: 19959: streamsize _M_ext_buf_size; 19959: 19959: 19959: 19959: 19959: 19959: 19959: const char* _M_ext_next; 19959: char* _M_ext_end; 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: _M_create_pback() 19959: { 19959: if (!_M_pback_init) 19959: { 19959: _M_pback_cur_save = this->gptr(); 19959: _M_pback_end_save = this->egptr(); 19959: this->setg(&_M_pback, &_M_pback, &_M_pback + 1); 19959: _M_pback_init = true; 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: void 19959: _M_destroy_pback() throw() 19959: { 19959: if (_M_pback_init) 19959: { 19959: 19959: _M_pback_cur_save += this->gptr() != this->eback(); 19959: this->setg(_M_buf, _M_pback_cur_save, _M_pback_end_save); 19959: _M_pback_init = false; 19959: } 19959: } 19959: 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: basic_filebuf(); 19959: 19959: 19959: basic_filebuf(const basic_filebuf&) = delete; 19959: basic_filebuf(basic_filebuf&&); 19959: 19959: 19959: 19959: 19959: 19959: virtual 19959: ~basic_filebuf() 19959: { 19959: try 19959: { this->close(); } 19959: catch(...) 19959: { } 19959: } 19959: 19959: 19959: basic_filebuf& operator=(const basic_filebuf&) = delete; 19959: basic_filebuf& operator=(basic_filebuf&&); 19959: void swap(basic_filebuf&); 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool 19959: is_open() const throw() 19959: { return _M_file.is_open(); } 19959: # 316 "/usr/include/c++/13/fstream" 3 19959: __filebuf_type* 19959: open(const char* __s, ios_base::openmode __mode); 19959: # 337 "/usr/include/c++/13/fstream" 3 19959: __filebuf_type* 19959: open(const std::string& __s, ios_base::openmode __mode) 19959: { return open(__s.c_str(), __mode); } 19959: # 348 "/usr/include/c++/13/fstream" 3 19959: template 19959: _If_fs_path<_Path, __filebuf_type*> 19959: open(const _Path& __s, ios_base::openmode __mode) 19959: { return open(__s.c_str(), __mode); } 19959: # 367 "/usr/include/c++/13/fstream" 3 19959: __filebuf_type* 19959: close(); 19959: 19959: protected: 19959: void 19959: _M_allocate_internal_buffer(); 19959: 19959: void 19959: _M_destroy_internal_buffer() throw(); 19959: 19959: 19959: virtual streamsize 19959: showmanyc(); 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual int_type 19959: underflow(); 19959: 19959: virtual int_type 19959: pbackfail(int_type __c = _Traits::eof()); 19959: # 399 "/usr/include/c++/13/fstream" 3 19959: virtual int_type 19959: overflow(int_type __c = _Traits::eof()); 19959: 19959: 19959: 19959: bool 19959: _M_convert_to_external(char_type*, streamsize); 19959: # 419 "/usr/include/c++/13/fstream" 3 19959: virtual __streambuf_type* 19959: setbuf(char_type* __s, streamsize __n); 19959: 19959: virtual pos_type 19959: seekoff(off_type __off, ios_base::seekdir __way, 19959: ios_base::openmode __mode = ios_base::in | ios_base::out); 19959: 19959: virtual pos_type 19959: seekpos(pos_type __pos, 19959: ios_base::openmode __mode = ios_base::in | ios_base::out); 19959: 19959: 19959: pos_type 19959: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state); 19959: 19959: int 19959: _M_get_ext_pos(__state_type &__state); 19959: 19959: virtual int 19959: sync(); 19959: 19959: virtual void 19959: imbue(const locale& __loc); 19959: 19959: virtual streamsize 19959: xsgetn(char_type* __s, streamsize __n); 19959: 19959: virtual streamsize 19959: xsputn(const char_type* __s, streamsize __n); 19959: 19959: 19959: bool 19959: _M_terminate_output(); 19959: # 465 "/usr/include/c++/13/fstream" 3 19959: void 19959: _M_set_buffer(streamsize __off) 19959: { 19959: const bool __testin = _M_mode & ios_base::in; 19959: const bool __testout = (_M_mode & ios_base::out 19959: || _M_mode & ios_base::app); 19959: 19959: if (__testin && __off > 0) 19959: this->setg(_M_buf, _M_buf, _M_buf + __off); 19959: else 19959: this->setg(_M_buf, _M_buf, _M_buf); 19959: 19959: if (__testout && __off == 0 && _M_buf_size > 1 ) 19959: this->setp(_M_buf, _M_buf + _M_buf_size - 1); 19959: else 19959: this->setp(0, 0); 19959: } 19959: }; 19959: # 498 "/usr/include/c++/13/fstream" 3 19959: template 19959: class basic_ifstream : public basic_istream<_CharT, _Traits> 19959: { 19959: public: 19959: 19959: typedef _CharT char_type; 19959: typedef _Traits traits_type; 19959: typedef typename traits_type::int_type int_type; 19959: typedef typename traits_type::pos_type pos_type; 19959: typedef typename traits_type::off_type off_type; 19959: 19959: 19959: typedef basic_filebuf __filebuf_type; 19959: typedef basic_istream __istream_type; 19959: 19959: private: 19959: __filebuf_type _M_filebuf; 19959: 19959: public: 19959: # 525 "/usr/include/c++/13/fstream" 3 19959: basic_ifstream() : __istream_type(), _M_filebuf() 19959: { this->init(&_M_filebuf); } 19959: # 535 "/usr/include/c++/13/fstream" 3 19959: explicit 19959: basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) 19959: : __istream_type(), _M_filebuf() 19959: { 19959: this->init(&_M_filebuf); 19959: this->open(__s, __mode); 19959: } 19959: # 568 "/usr/include/c++/13/fstream" 3 19959: explicit 19959: basic_ifstream(const std::string& __s, 19959: ios_base::openmode __mode = ios_base::in) 19959: : __istream_type(), _M_filebuf() 19959: { 19959: this->init(&_M_filebuf); 19959: this->open(__s, __mode); 19959: } 19959: # 585 "/usr/include/c++/13/fstream" 3 19959: template> 19959: basic_ifstream(const _Path& __s, 19959: ios_base::openmode __mode = ios_base::in) 19959: : basic_ifstream(__s.c_str(), __mode) 19959: { } 19959: 19959: 19959: basic_ifstream(const basic_ifstream&) = delete; 19959: 19959: basic_ifstream(basic_ifstream&& __rhs) 19959: : __istream_type(std::move(__rhs)), 19959: _M_filebuf(std::move(__rhs._M_filebuf)) 19959: { __istream_type::set_rdbuf(&_M_filebuf); } 19959: # 606 "/usr/include/c++/13/fstream" 3 19959: ~basic_ifstream() 19959: { } 19959: 19959: 19959: 19959: 19959: basic_ifstream& 19959: operator=(const basic_ifstream&) = delete; 19959: 19959: basic_ifstream& 19959: operator=(basic_ifstream&& __rhs) 19959: { 19959: __istream_type::operator=(std::move(__rhs)); 19959: _M_filebuf = std::move(__rhs._M_filebuf); 19959: return *this; 19959: } 19959: 19959: void 19959: swap(basic_ifstream& __rhs) 19959: { 19959: __istream_type::swap(__rhs); 19959: _M_filebuf.swap(__rhs._M_filebuf); 19959: } 19959: # 638 "/usr/include/c++/13/fstream" 3 19959: __filebuf_type* 19959: rdbuf() const 19959: { return const_cast<__filebuf_type*>(&_M_filebuf); } 19959: 19959: 19959: 19959: 19959: 19959: bool 19959: is_open() 19959: { return _M_filebuf.is_open(); } 19959: 19959: 19959: 19959: bool 19959: is_open() const 19959: { return _M_filebuf.is_open(); } 19959: # 664 "/usr/include/c++/13/fstream" 3 19959: void 19959: open(const char* __s, ios_base::openmode __mode = ios_base::in) 19959: { 19959: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 19959: this->setstate(ios_base::failbit); 19959: else 19959: 19959: 19959: this->clear(); 19959: } 19959: # 703 "/usr/include/c++/13/fstream" 3 19959: void 19959: open(const std::string& __s, ios_base::openmode __mode = ios_base::in) 19959: { 19959: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 19959: this->setstate(ios_base::failbit); 19959: else 19959: 19959: 19959: this->clear(); 19959: } 19959: # 723 "/usr/include/c++/13/fstream" 3 19959: template 19959: _If_fs_path<_Path, void> 19959: open(const _Path& __s, ios_base::openmode __mode = ios_base::in) 19959: { open(__s.c_str(), __mode); } 19959: # 736 "/usr/include/c++/13/fstream" 3 19959: void 19959: close() 19959: { 19959: if (!_M_filebuf.close()) 19959: this->setstate(ios_base::failbit); 19959: } 19959: }; 19959: # 759 "/usr/include/c++/13/fstream" 3 19959: template 19959: class basic_ofstream : public basic_ostream<_CharT,_Traits> 19959: { 19959: public: 19959: 19959: typedef _CharT char_type; 19959: typedef _Traits traits_type; 19959: typedef typename traits_type::int_type int_type; 19959: typedef typename traits_type::pos_type pos_type; 19959: typedef typename traits_type::off_type off_type; 19959: 19959: 19959: typedef basic_filebuf __filebuf_type; 19959: typedef basic_ostream __ostream_type; 19959: 19959: private: 19959: __filebuf_type _M_filebuf; 19959: 19959: public: 19959: # 786 "/usr/include/c++/13/fstream" 3 19959: basic_ofstream(): __ostream_type(), _M_filebuf() 19959: { this->init(&_M_filebuf); } 19959: # 796 "/usr/include/c++/13/fstream" 3 19959: explicit 19959: basic_ofstream(const char* __s, 19959: ios_base::openmode __mode = ios_base::out) 19959: : __ostream_type(), _M_filebuf() 19959: { 19959: this->init(&_M_filebuf); 19959: this->open(__s, __mode); 19959: } 19959: # 831 "/usr/include/c++/13/fstream" 3 19959: explicit 19959: basic_ofstream(const std::string& __s, 19959: ios_base::openmode __mode = ios_base::out) 19959: : __ostream_type(), _M_filebuf() 19959: { 19959: this->init(&_M_filebuf); 19959: this->open(__s, __mode); 19959: } 19959: # 848 "/usr/include/c++/13/fstream" 3 19959: template> 19959: basic_ofstream(const _Path& __s, 19959: ios_base::openmode __mode = ios_base::out) 19959: : basic_ofstream(__s.c_str(), __mode) 19959: { } 19959: 19959: 19959: basic_ofstream(const basic_ofstream&) = delete; 19959: 19959: basic_ofstream(basic_ofstream&& __rhs) 19959: : __ostream_type(std::move(__rhs)), 19959: _M_filebuf(std::move(__rhs._M_filebuf)) 19959: { __ostream_type::set_rdbuf(&_M_filebuf); } 19959: # 869 "/usr/include/c++/13/fstream" 3 19959: ~basic_ofstream() 19959: { } 19959: 19959: 19959: 19959: 19959: basic_ofstream& 19959: operator=(const basic_ofstream&) = delete; 19959: 19959: basic_ofstream& 19959: operator=(basic_ofstream&& __rhs) 19959: { 19959: __ostream_type::operator=(std::move(__rhs)); 19959: _M_filebuf = std::move(__rhs._M_filebuf); 19959: return *this; 19959: } 19959: 19959: void 19959: swap(basic_ofstream& __rhs) 19959: { 19959: __ostream_type::swap(__rhs); 19959: _M_filebuf.swap(__rhs._M_filebuf); 19959: } 19959: # 901 "/usr/include/c++/13/fstream" 3 19959: __filebuf_type* 19959: rdbuf() const 19959: { return const_cast<__filebuf_type*>(&_M_filebuf); } 19959: 19959: 19959: 19959: 19959: 19959: bool 19959: is_open() 19959: { return _M_filebuf.is_open(); } 19959: 19959: 19959: 19959: bool 19959: is_open() const 19959: { return _M_filebuf.is_open(); } 19959: # 927 "/usr/include/c++/13/fstream" 3 19959: void 19959: open(const char* __s, ios_base::openmode __mode = ios_base::out) 19959: { 19959: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 19959: this->setstate(ios_base::failbit); 19959: else 19959: 19959: 19959: this->clear(); 19959: } 19959: # 966 "/usr/include/c++/13/fstream" 3 19959: void 19959: open(const std::string& __s, ios_base::openmode __mode = ios_base::out) 19959: { 19959: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 19959: this->setstate(ios_base::failbit); 19959: else 19959: 19959: 19959: this->clear(); 19959: } 19959: # 986 "/usr/include/c++/13/fstream" 3 19959: template 19959: _If_fs_path<_Path, void> 19959: open(const _Path& __s, ios_base::openmode __mode = ios_base::out) 19959: { open(__s.c_str(), __mode); } 19959: # 999 "/usr/include/c++/13/fstream" 3 19959: void 19959: close() 19959: { 19959: if (!_M_filebuf.close()) 19959: this->setstate(ios_base::failbit); 19959: } 19959: }; 19959: # 1022 "/usr/include/c++/13/fstream" 3 19959: template 19959: class basic_fstream : public basic_iostream<_CharT, _Traits> 19959: { 19959: public: 19959: 19959: typedef _CharT char_type; 19959: typedef _Traits traits_type; 19959: typedef typename traits_type::int_type int_type; 19959: typedef typename traits_type::pos_type pos_type; 19959: typedef typename traits_type::off_type off_type; 19959: 19959: 19959: typedef basic_filebuf __filebuf_type; 19959: typedef basic_ios __ios_type; 19959: typedef basic_iostream __iostream_type; 19959: 19959: private: 19959: __filebuf_type _M_filebuf; 19959: 19959: public: 19959: # 1050 "/usr/include/c++/13/fstream" 3 19959: basic_fstream() 19959: : __iostream_type(), _M_filebuf() 19959: { this->init(&_M_filebuf); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: explicit 19959: basic_fstream(const char* __s, 19959: ios_base::openmode __mode = ios_base::in | ios_base::out) 19959: : __iostream_type(0), _M_filebuf() 19959: { 19959: this->init(&_M_filebuf); 19959: this->open(__s, __mode); 19959: } 19959: # 1089 "/usr/include/c++/13/fstream" 3 19959: explicit 19959: basic_fstream(const std::string& __s, 19959: ios_base::openmode __mode = ios_base::in | ios_base::out) 19959: : __iostream_type(0), _M_filebuf() 19959: { 19959: this->init(&_M_filebuf); 19959: this->open(__s, __mode); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: basic_fstream(const _Path& __s, 19959: ios_base::openmode __mode = ios_base::in | ios_base::out) 19959: : basic_fstream(__s.c_str(), __mode) 19959: { } 19959: 19959: 19959: basic_fstream(const basic_fstream&) = delete; 19959: 19959: basic_fstream(basic_fstream&& __rhs) 19959: : __iostream_type(std::move(__rhs)), 19959: _M_filebuf(std::move(__rhs._M_filebuf)) 19959: { __iostream_type::set_rdbuf(&_M_filebuf); } 19959: # 1125 "/usr/include/c++/13/fstream" 3 19959: ~basic_fstream() 19959: { } 19959: 19959: 19959: 19959: 19959: basic_fstream& 19959: operator=(const basic_fstream&) = delete; 19959: 19959: basic_fstream& 19959: operator=(basic_fstream&& __rhs) 19959: { 19959: __iostream_type::operator=(std::move(__rhs)); 19959: _M_filebuf = std::move(__rhs._M_filebuf); 19959: return *this; 19959: } 19959: 19959: void 19959: swap(basic_fstream& __rhs) 19959: { 19959: __iostream_type::swap(__rhs); 19959: _M_filebuf.swap(__rhs._M_filebuf); 19959: } 19959: # 1157 "/usr/include/c++/13/fstream" 3 19959: __filebuf_type* 19959: rdbuf() const 19959: { return const_cast<__filebuf_type*>(&_M_filebuf); } 19959: 19959: 19959: 19959: 19959: 19959: bool 19959: is_open() 19959: { return _M_filebuf.is_open(); } 19959: 19959: 19959: 19959: bool 19959: is_open() const 19959: { return _M_filebuf.is_open(); } 19959: # 1183 "/usr/include/c++/13/fstream" 3 19959: void 19959: open(const char* __s, 19959: ios_base::openmode __mode = ios_base::in | ios_base::out) 19959: { 19959: if (!_M_filebuf.open(__s, __mode)) 19959: this->setstate(ios_base::failbit); 19959: else 19959: 19959: 19959: this->clear(); 19959: } 19959: # 1224 "/usr/include/c++/13/fstream" 3 19959: void 19959: open(const std::string& __s, 19959: ios_base::openmode __mode = ios_base::in | ios_base::out) 19959: { 19959: if (!_M_filebuf.open(__s, __mode)) 19959: this->setstate(ios_base::failbit); 19959: else 19959: 19959: 19959: this->clear(); 19959: } 19959: # 1245 "/usr/include/c++/13/fstream" 3 19959: template 19959: _If_fs_path<_Path, void> 19959: open(const _Path& __s, 19959: ios_base::openmode __mode = ios_base::in | ios_base::out) 19959: { open(__s.c_str(), __mode); } 19959: # 1259 "/usr/include/c++/13/fstream" 3 19959: void 19959: close() 19959: { 19959: if (!_M_filebuf.close()) 19959: this->setstate(ios_base::failbit); 19959: } 19959: }; 19959: 19959: 19959: 19959: template 19959: inline void 19959: swap(basic_filebuf<_CharT, _Traits>& __x, 19959: basic_filebuf<_CharT, _Traits>& __y) 19959: { __x.swap(__y); } 19959: 19959: 19959: template 19959: inline void 19959: swap(basic_ifstream<_CharT, _Traits>& __x, 19959: basic_ifstream<_CharT, _Traits>& __y) 19959: { __x.swap(__y); } 19959: 19959: 19959: template 19959: inline void 19959: swap(basic_ofstream<_CharT, _Traits>& __x, 19959: basic_ofstream<_CharT, _Traits>& __y) 19959: { __x.swap(__y); } 19959: 19959: 19959: template 19959: inline void 19959: swap(basic_fstream<_CharT, _Traits>& __x, 19959: basic_fstream<_CharT, _Traits>& __y) 19959: { __x.swap(__y); } 19959: 19959: 19959: 19959: } 19959: 19959: # 1 "/usr/include/c++/13/bits/fstream.tcc" 1 3 19959: # 37 "/usr/include/c++/13/bits/fstream.tcc" 3 19959: 19959: # 38 "/usr/include/c++/13/bits/fstream.tcc" 3 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/cerrno" 1 3 19959: # 39 "/usr/include/c++/13/cerrno" 3 19959: 19959: # 40 "/usr/include/c++/13/cerrno" 3 19959: # 42 "/usr/include/c++/13/bits/fstream.tcc" 2 3 19959: 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template 19959: void 19959: basic_filebuf<_CharT, _Traits>:: 19959: _M_allocate_internal_buffer() 19959: { 19959: 19959: 19959: if (!_M_buf_allocated && !_M_buf) 19959: { 19959: _M_buf = new char_type[_M_buf_size]; 19959: _M_buf_allocated = true; 19959: } 19959: } 19959: 19959: template 19959: void 19959: basic_filebuf<_CharT, _Traits>:: 19959: _M_destroy_internal_buffer() throw() 19959: { 19959: if (_M_buf_allocated) 19959: { 19959: delete [] _M_buf; 19959: _M_buf = 0; 19959: _M_buf_allocated = false; 19959: } 19959: delete [] _M_ext_buf; 19959: _M_ext_buf = 0; 19959: _M_ext_buf_size = 0; 19959: _M_ext_next = 0; 19959: _M_ext_end = 0; 19959: } 19959: 19959: template 19959: basic_filebuf<_CharT, _Traits>:: 19959: basic_filebuf() : __streambuf_type(), _M_lock(), _M_file(&_M_lock), 19959: _M_mode(ios_base::openmode(0)), _M_state_beg(), _M_state_cur(), 19959: _M_state_last(), _M_buf(0), _M_buf_size(8192), 19959: _M_buf_allocated(false), _M_reading(false), _M_writing(false), _M_pback(), 19959: _M_pback_cur_save(0), _M_pback_end_save(0), _M_pback_init(false), 19959: _M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0), 19959: _M_ext_end(0) 19959: { 19959: _M_codecvt = std::__try_use_facet<__codecvt_type>(this->_M_buf_locale); 19959: } 19959: 19959: 19959: template 19959: basic_filebuf<_CharT, _Traits>:: 19959: basic_filebuf(basic_filebuf&& __rhs) 19959: : __streambuf_type(__rhs), 19959: _M_lock(), _M_file(std::move(__rhs._M_file), &_M_lock), 19959: _M_mode(std::__exchange(__rhs._M_mode, ios_base::openmode(0))), 19959: _M_state_beg(std::move(__rhs._M_state_beg)), 19959: _M_state_cur(std::move(__rhs._M_state_cur)), 19959: _M_state_last(std::move(__rhs._M_state_last)), 19959: _M_buf(std::__exchange(__rhs._M_buf, nullptr)), 19959: _M_buf_size(std::__exchange(__rhs._M_buf_size, 1)), 19959: _M_buf_allocated(std::__exchange(__rhs._M_buf_allocated, false)), 19959: _M_reading(std::__exchange(__rhs._M_reading, false)), 19959: _M_writing(std::__exchange(__rhs._M_writing, false)), 19959: _M_pback(__rhs._M_pback), 19959: _M_pback_cur_save(std::__exchange(__rhs._M_pback_cur_save, nullptr)), 19959: _M_pback_end_save(std::__exchange(__rhs._M_pback_end_save, nullptr)), 19959: _M_pback_init(std::__exchange(__rhs._M_pback_init, false)), 19959: _M_codecvt(__rhs._M_codecvt), 19959: _M_ext_buf(std::__exchange(__rhs._M_ext_buf, nullptr)), 19959: _M_ext_buf_size(std::__exchange(__rhs._M_ext_buf_size, 0)), 19959: _M_ext_next(std::__exchange(__rhs._M_ext_next, nullptr)), 19959: _M_ext_end(std::__exchange(__rhs._M_ext_end, nullptr)) 19959: { 19959: __rhs._M_set_buffer(-1); 19959: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 19959: } 19959: 19959: template 19959: basic_filebuf<_CharT, _Traits>& 19959: basic_filebuf<_CharT, _Traits>:: 19959: operator=(basic_filebuf&& __rhs) 19959: { 19959: this->close(); 19959: __streambuf_type::operator=(__rhs); 19959: _M_file.swap(__rhs._M_file); 19959: _M_mode = std::__exchange(__rhs._M_mode, ios_base::openmode(0)); 19959: _M_state_beg = std::move(__rhs._M_state_beg); 19959: _M_state_cur = std::move(__rhs._M_state_cur); 19959: _M_state_last = std::move(__rhs._M_state_last); 19959: _M_buf = std::__exchange(__rhs._M_buf, nullptr); 19959: _M_buf_size = std::__exchange(__rhs._M_buf_size, 1); 19959: _M_buf_allocated = std::__exchange(__rhs._M_buf_allocated, false); 19959: _M_ext_buf = std::__exchange(__rhs._M_ext_buf, nullptr); 19959: _M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0); 19959: _M_ext_next = std::__exchange(__rhs._M_ext_next, nullptr); 19959: _M_ext_end = std::__exchange(__rhs._M_ext_end, nullptr); 19959: _M_reading = std::__exchange(__rhs._M_reading, false); 19959: _M_writing = std::__exchange(__rhs._M_writing, false); 19959: _M_pback_cur_save = std::__exchange(__rhs._M_pback_cur_save, nullptr); 19959: _M_pback_end_save = std::__exchange(__rhs._M_pback_end_save, nullptr); 19959: _M_pback_init = std::__exchange(__rhs._M_pback_init, false); 19959: __rhs._M_set_buffer(-1); 19959: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 19959: return *this; 19959: } 19959: 19959: template 19959: void 19959: basic_filebuf<_CharT, _Traits>:: 19959: swap(basic_filebuf& __rhs) 19959: { 19959: __streambuf_type::swap(__rhs); 19959: _M_file.swap(__rhs._M_file); 19959: std::swap(_M_mode, __rhs._M_mode); 19959: std::swap(_M_state_beg, __rhs._M_state_beg); 19959: std::swap(_M_state_cur, __rhs._M_state_cur); 19959: std::swap(_M_state_last, __rhs._M_state_last); 19959: std::swap(_M_buf, __rhs._M_buf); 19959: std::swap(_M_buf_size, __rhs._M_buf_size); 19959: std::swap(_M_buf_allocated, __rhs._M_buf_allocated); 19959: std::swap(_M_ext_buf, __rhs._M_ext_buf); 19959: std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size); 19959: std::swap(_M_ext_next, __rhs._M_ext_next); 19959: std::swap(_M_ext_end, __rhs._M_ext_end); 19959: std::swap(_M_reading, __rhs._M_reading); 19959: std::swap(_M_writing, __rhs._M_writing); 19959: std::swap(_M_pback_cur_save, __rhs._M_pback_cur_save); 19959: std::swap(_M_pback_end_save, __rhs._M_pback_end_save); 19959: std::swap(_M_pback_init, __rhs._M_pback_init); 19959: } 19959: 19959: 19959: template 19959: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 19959: basic_filebuf<_CharT, _Traits>:: 19959: open(const char* __s, ios_base::openmode __mode) 19959: { 19959: __filebuf_type *__ret = 0; 19959: if (!this->is_open()) 19959: { 19959: _M_file.open(__s, __mode); 19959: if (this->is_open()) 19959: { 19959: _M_allocate_internal_buffer(); 19959: _M_mode = __mode; 19959: 19959: 19959: _M_reading = false; 19959: _M_writing = false; 19959: _M_set_buffer(-1); 19959: 19959: 19959: _M_state_last = _M_state_cur = _M_state_beg; 19959: 19959: 19959: if ((__mode & ios_base::ate) 19959: && this->seekoff(0, ios_base::end, __mode) 19959: == pos_type(off_type(-1))) 19959: this->close(); 19959: else 19959: __ret = this; 19959: } 19959: } 19959: return __ret; 19959: } 19959: # 246 "/usr/include/c++/13/bits/fstream.tcc" 3 19959: template 19959: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 19959: basic_filebuf<_CharT, _Traits>:: 19959: close() 19959: { 19959: if (!this->is_open()) 19959: return 0; 19959: 19959: bool __testfail = false; 19959: { 19959: 19959: struct __close_sentry 19959: { 19959: basic_filebuf *__fb; 19959: __close_sentry (basic_filebuf *__fbi): __fb(__fbi) { } 19959: ~__close_sentry () 19959: { 19959: __fb->_M_mode = ios_base::openmode(0); 19959: __fb->_M_pback_init = false; 19959: __fb->_M_destroy_internal_buffer(); 19959: __fb->_M_reading = false; 19959: __fb->_M_writing = false; 19959: __fb->_M_set_buffer(-1); 19959: __fb->_M_state_last = __fb->_M_state_cur = __fb->_M_state_beg; 19959: } 19959: } __cs (this); 19959: 19959: try 19959: { 19959: if (!_M_terminate_output()) 19959: __testfail = true; 19959: } 19959: catch(...) 19959: { 19959: _M_file.close(); 19959: throw; 19959: } 19959: } 19959: 19959: if (!_M_file.close()) 19959: __testfail = true; 19959: 19959: if (__testfail) 19959: return 0; 19959: else 19959: return this; 19959: } 19959: 19959: template 19959: streamsize 19959: basic_filebuf<_CharT, _Traits>:: 19959: showmanyc() 19959: { 19959: streamsize __ret = -1; 19959: const bool __testin = _M_mode & ios_base::in; 19959: if (__testin && this->is_open()) 19959: { 19959: 19959: 19959: __ret = this->egptr() - this->gptr(); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: if (__check_facet(_M_codecvt).encoding() >= 0) 19959: 19959: __ret += _M_file.showmanyc() / _M_codecvt->max_length(); 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: typename basic_filebuf<_CharT, _Traits>::int_type 19959: basic_filebuf<_CharT, _Traits>:: 19959: underflow() 19959: { 19959: int_type __ret = traits_type::eof(); 19959: const bool __testin = _M_mode & ios_base::in; 19959: if (__testin) 19959: { 19959: if (_M_writing) 19959: { 19959: if (overflow() == traits_type::eof()) 19959: return __ret; 19959: _M_set_buffer(-1); 19959: _M_writing = false; 19959: } 19959: 19959: 19959: 19959: _M_destroy_pback(); 19959: 19959: if (this->gptr() < this->egptr()) 19959: return traits_type::to_int_type(*this->gptr()); 19959: 19959: 19959: const size_t __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 19959: 19959: 19959: bool __got_eof = false; 19959: 19959: streamsize __ilen = 0; 19959: codecvt_base::result __r = codecvt_base::ok; 19959: if (__check_facet(_M_codecvt).always_noconv()) 19959: { 19959: __ilen = _M_file.xsgetn(reinterpret_cast(this->eback()), 19959: __buflen); 19959: if (__ilen == 0) 19959: __got_eof = true; 19959: } 19959: else 19959: { 19959: 19959: 19959: const int __enc = _M_codecvt->encoding(); 19959: streamsize __blen; 19959: streamsize __rlen; 19959: if (__enc > 0) 19959: __blen = __rlen = __buflen * __enc; 19959: else 19959: { 19959: __blen = __buflen + _M_codecvt->max_length() - 1; 19959: __rlen = __buflen; 19959: } 19959: const streamsize __remainder = _M_ext_end - _M_ext_next; 19959: __rlen = __rlen > __remainder ? __rlen - __remainder : 0; 19959: 19959: 19959: 19959: if (_M_reading && this->egptr() == this->eback() && __remainder) 19959: __rlen = 0; 19959: 19959: 19959: 19959: if (_M_ext_buf_size < __blen) 19959: { 19959: char* __buf = new char[__blen]; 19959: if (__remainder) 19959: __builtin_memcpy(__buf, _M_ext_next, __remainder); 19959: 19959: delete [] _M_ext_buf; 19959: _M_ext_buf = __buf; 19959: _M_ext_buf_size = __blen; 19959: } 19959: else if (__remainder) 19959: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 19959: 19959: _M_ext_next = _M_ext_buf; 19959: _M_ext_end = _M_ext_buf + __remainder; 19959: _M_state_last = _M_state_cur; 19959: 19959: do 19959: { 19959: if (__rlen > 0) 19959: { 19959: 19959: 19959: 19959: if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size) 19959: { 19959: __throw_ios_failure(("basic_filebuf::underflow " "codecvt::max_length() " "is not valid") 19959: 19959: ); 19959: } 19959: streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen); 19959: if (__elen == 0) 19959: __got_eof = true; 19959: else if (__elen == -1) 19959: break; 19959: _M_ext_end += __elen; 19959: } 19959: 19959: char_type* __iend = this->eback(); 19959: if (_M_ext_next < _M_ext_end) 19959: __r = _M_codecvt->in(_M_state_cur, _M_ext_next, 19959: _M_ext_end, _M_ext_next, 19959: this->eback(), 19959: this->eback() + __buflen, __iend); 19959: if (__r == codecvt_base::noconv) 19959: { 19959: size_t __avail = _M_ext_end - _M_ext_buf; 19959: __ilen = std::min(__avail, __buflen); 19959: traits_type::copy(this->eback(), 19959: reinterpret_cast 19959: (_M_ext_buf), __ilen); 19959: _M_ext_next = _M_ext_buf + __ilen; 19959: } 19959: else 19959: __ilen = __iend - this->eback(); 19959: 19959: 19959: 19959: 19959: if (__r == codecvt_base::error) 19959: break; 19959: 19959: __rlen = 1; 19959: } 19959: while (__ilen == 0 && !__got_eof); 19959: } 19959: 19959: if (__ilen > 0) 19959: { 19959: _M_set_buffer(__ilen); 19959: _M_reading = true; 19959: __ret = traits_type::to_int_type(*this->gptr()); 19959: } 19959: else if (__got_eof) 19959: { 19959: 19959: 19959: 19959: _M_set_buffer(-1); 19959: _M_reading = false; 19959: 19959: 19959: if (__r == codecvt_base::partial) 19959: __throw_ios_failure(("basic_filebuf::underflow " "incomplete character in file") 19959: ); 19959: } 19959: else if (__r == codecvt_base::error) 19959: __throw_ios_failure(("basic_filebuf::underflow " "invalid byte sequence in file") 19959: ); 19959: else 19959: __throw_ios_failure(("basic_filebuf::underflow " "error reading the file") 19959: , (*__errno_location ())); 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: typename basic_filebuf<_CharT, _Traits>::int_type 19959: basic_filebuf<_CharT, _Traits>:: 19959: pbackfail(int_type __i) 19959: { 19959: int_type __ret = traits_type::eof(); 19959: const bool __testin = _M_mode & ios_base::in; 19959: if (__testin) 19959: { 19959: if (_M_writing) 19959: { 19959: if (overflow() == traits_type::eof()) 19959: return __ret; 19959: _M_set_buffer(-1); 19959: _M_writing = false; 19959: } 19959: 19959: 19959: const bool __testpb = _M_pback_init; 19959: const bool __testeof = traits_type::eq_int_type(__i, __ret); 19959: int_type __tmp; 19959: if (this->eback() < this->gptr()) 19959: { 19959: this->gbump(-1); 19959: __tmp = traits_type::to_int_type(*this->gptr()); 19959: } 19959: else if (this->seekoff(-1, ios_base::cur) != pos_type(off_type(-1))) 19959: { 19959: __tmp = this->underflow(); 19959: if (traits_type::eq_int_type(__tmp, __ret)) 19959: return __ret; 19959: } 19959: else 19959: { 19959: 19959: 19959: 19959: 19959: 19959: return __ret; 19959: } 19959: 19959: 19959: 19959: if (!__testeof && traits_type::eq_int_type(__i, __tmp)) 19959: __ret = __i; 19959: else if (__testeof) 19959: __ret = traits_type::not_eof(__i); 19959: else if (!__testpb) 19959: { 19959: _M_create_pback(); 19959: _M_reading = true; 19959: *this->gptr() = traits_type::to_char_type(__i); 19959: __ret = __i; 19959: } 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: typename basic_filebuf<_CharT, _Traits>::int_type 19959: basic_filebuf<_CharT, _Traits>:: 19959: overflow(int_type __c) 19959: { 19959: int_type __ret = traits_type::eof(); 19959: const bool __testeof = traits_type::eq_int_type(__c, __ret); 19959: const bool __testout = (_M_mode & ios_base::out 19959: || _M_mode & ios_base::app); 19959: if (__testout) 19959: { 19959: if (_M_reading) 19959: { 19959: _M_destroy_pback(); 19959: const int __gptr_off = _M_get_ext_pos(_M_state_last); 19959: if (_M_seek(__gptr_off, ios_base::cur, _M_state_last) 19959: == pos_type(off_type(-1))) 19959: return __ret; 19959: } 19959: if (this->pbase() < this->pptr()) 19959: { 19959: 19959: if (!__testeof) 19959: { 19959: *this->pptr() = traits_type::to_char_type(__c); 19959: this->pbump(1); 19959: } 19959: 19959: 19959: 19959: if (_M_convert_to_external(this->pbase(), 19959: this->pptr() - this->pbase())) 19959: { 19959: _M_set_buffer(0); 19959: __ret = traits_type::not_eof(__c); 19959: } 19959: } 19959: else if (_M_buf_size > 1) 19959: { 19959: 19959: 19959: 19959: _M_set_buffer(0); 19959: _M_writing = true; 19959: if (!__testeof) 19959: { 19959: *this->pptr() = traits_type::to_char_type(__c); 19959: this->pbump(1); 19959: } 19959: __ret = traits_type::not_eof(__c); 19959: } 19959: else 19959: { 19959: 19959: char_type __conv = traits_type::to_char_type(__c); 19959: if (__testeof || _M_convert_to_external(&__conv, 1)) 19959: { 19959: _M_writing = true; 19959: __ret = traits_type::not_eof(__c); 19959: } 19959: } 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: bool 19959: basic_filebuf<_CharT, _Traits>:: 19959: _M_convert_to_external(_CharT* __ibuf, streamsize __ilen) 19959: { 19959: 19959: streamsize __elen; 19959: streamsize __plen; 19959: if (__check_facet(_M_codecvt).always_noconv()) 19959: { 19959: __elen = _M_file.xsputn(reinterpret_cast(__ibuf), __ilen); 19959: __plen = __ilen; 19959: } 19959: else 19959: { 19959: 19959: 19959: streamsize __blen = __ilen * _M_codecvt->max_length(); 19959: char* __buf = static_cast(__builtin_alloca(__blen)); 19959: 19959: char* __bend; 19959: const char_type* __iend; 19959: codecvt_base::result __r; 19959: __r = _M_codecvt->out(_M_state_cur, __ibuf, __ibuf + __ilen, 19959: __iend, __buf, __buf + __blen, __bend); 19959: 19959: if (__r == codecvt_base::ok || __r == codecvt_base::partial) 19959: __blen = __bend - __buf; 19959: else if (__r == codecvt_base::noconv) 19959: { 19959: 19959: __buf = reinterpret_cast(__ibuf); 19959: __blen = __ilen; 19959: } 19959: else 19959: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 19959: ); 19959: 19959: __elen = _M_file.xsputn(__buf, __blen); 19959: __plen = __blen; 19959: 19959: 19959: if (__r == codecvt_base::partial && __elen == __plen) 19959: { 19959: const char_type* __iresume = __iend; 19959: streamsize __rlen = this->pptr() - __iend; 19959: __r = _M_codecvt->out(_M_state_cur, __iresume, 19959: __iresume + __rlen, __iend, __buf, 19959: __buf + __blen, __bend); 19959: if (__r != codecvt_base::error) 19959: { 19959: __rlen = __bend - __buf; 19959: __elen = _M_file.xsputn(__buf, __rlen); 19959: __plen = __rlen; 19959: } 19959: else 19959: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 19959: ); 19959: } 19959: } 19959: return __elen == __plen; 19959: } 19959: 19959: template 19959: streamsize 19959: basic_filebuf<_CharT, _Traits>:: 19959: xsgetn(_CharT* __s, streamsize __n) 19959: { 19959: 19959: streamsize __ret = 0; 19959: if (_M_pback_init) 19959: { 19959: if (__n > 0 && this->gptr() == this->eback()) 19959: { 19959: *__s++ = *this->gptr(); 19959: this->gbump(1); 19959: __ret = 1; 19959: --__n; 19959: } 19959: _M_destroy_pback(); 19959: } 19959: else if (_M_writing) 19959: { 19959: if (overflow() == traits_type::eof()) 19959: return __ret; 19959: _M_set_buffer(-1); 19959: _M_writing = false; 19959: } 19959: 19959: 19959: 19959: 19959: const bool __testin = _M_mode & ios_base::in; 19959: const streamsize __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 19959: 19959: if (__n > __buflen && __check_facet(_M_codecvt).always_noconv() 19959: && __testin) 19959: { 19959: 19959: const streamsize __avail = this->egptr() - this->gptr(); 19959: if (__avail != 0) 19959: { 19959: traits_type::copy(__s, this->gptr(), __avail); 19959: __s += __avail; 19959: this->setg(this->eback(), this->gptr() + __avail, this->egptr()); 19959: __ret += __avail; 19959: __n -= __avail; 19959: } 19959: 19959: 19959: 19959: streamsize __len; 19959: for (;;) 19959: { 19959: __len = _M_file.xsgetn(reinterpret_cast(__s), __n); 19959: if (__len == -1) 19959: __throw_ios_failure(("basic_filebuf::xsgetn " "error reading the file") 19959: , (*__errno_location ())); 19959: if (__len == 0) 19959: break; 19959: 19959: __n -= __len; 19959: __ret += __len; 19959: if (__n == 0) 19959: break; 19959: 19959: __s += __len; 19959: } 19959: 19959: if (__n == 0) 19959: { 19959: 19959: _M_reading = true; 19959: } 19959: else if (__len == 0) 19959: { 19959: 19959: 19959: 19959: _M_set_buffer(-1); 19959: _M_reading = false; 19959: } 19959: } 19959: else 19959: __ret += __streambuf_type::xsgetn(__s, __n); 19959: 19959: return __ret; 19959: } 19959: 19959: template 19959: streamsize 19959: basic_filebuf<_CharT, _Traits>:: 19959: xsputn(const _CharT* __s, streamsize __n) 19959: { 19959: streamsize __ret = 0; 19959: 19959: 19959: 19959: const bool __testout = (_M_mode & ios_base::out 19959: || _M_mode & ios_base::app); 19959: if (__check_facet(_M_codecvt).always_noconv() 19959: && __testout && !_M_reading) 19959: { 19959: streamsize __bufavail = this->epptr() - this->pptr(); 19959: 19959: 19959: if (!_M_writing && _M_buf_size > 1) 19959: __bufavail = _M_buf_size - 1; 19959: 19959: if (__n >= __bufavail) 19959: { 19959: const streamsize __buffill = this->pptr() - this->pbase(); 19959: const char* __buf = reinterpret_cast(this->pbase()); 19959: __ret = _M_file.xsputn_2(__buf, __buffill, 19959: reinterpret_cast(__s), 19959: __n); 19959: if (__ret == __buffill + __n) 19959: { 19959: _M_set_buffer(0); 19959: _M_writing = true; 19959: } 19959: if (__ret > __buffill) 19959: __ret -= __buffill; 19959: else 19959: __ret = 0; 19959: } 19959: else 19959: __ret = __streambuf_type::xsputn(__s, __n); 19959: } 19959: else 19959: __ret = __streambuf_type::xsputn(__s, __n); 19959: return __ret; 19959: } 19959: 19959: template 19959: typename basic_filebuf<_CharT, _Traits>::__streambuf_type* 19959: basic_filebuf<_CharT, _Traits>:: 19959: setbuf(char_type* __s, streamsize __n) 19959: { 19959: if (!this->is_open()) 19959: { 19959: if (__s == 0 && __n == 0) 19959: _M_buf_size = 1; 19959: else if (__s && __n > 0) 19959: { 19959: # 816 "/usr/include/c++/13/bits/fstream.tcc" 3 19959: _M_buf = __s; 19959: _M_buf_size = __n; 19959: } 19959: } 19959: return this; 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: typename basic_filebuf<_CharT, _Traits>::pos_type 19959: basic_filebuf<_CharT, _Traits>:: 19959: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode) 19959: { 19959: int __width = 0; 19959: if (_M_codecvt) 19959: __width = _M_codecvt->encoding(); 19959: if (__width < 0) 19959: __width = 0; 19959: 19959: pos_type __ret = pos_type(off_type(-1)); 19959: const bool __testfail = __off != 0 && __width <= 0; 19959: if (this->is_open() && !__testfail) 19959: { 19959: 19959: 19959: 19959: 19959: bool __no_movement = __way == ios_base::cur && __off == 0 19959: && (!_M_writing || _M_codecvt->always_noconv()); 19959: 19959: 19959: if (!__no_movement) 19959: _M_destroy_pback(); 19959: 19959: 19959: 19959: 19959: 19959: 19959: __state_type __state = _M_state_beg; 19959: off_type __computed_off = __off * __width; 19959: if (_M_reading && __way == ios_base::cur) 19959: { 19959: __state = _M_state_last; 19959: __computed_off += _M_get_ext_pos(__state); 19959: } 19959: if (!__no_movement) 19959: __ret = _M_seek(__computed_off, __way, __state); 19959: else 19959: { 19959: if (_M_writing) 19959: __computed_off = this->pptr() - this->pbase(); 19959: 19959: off_type __file_off = _M_file.seekoff(0, ios_base::cur); 19959: if (__file_off != off_type(-1)) 19959: { 19959: __ret = __file_off + __computed_off; 19959: __ret.state(__state); 19959: } 19959: } 19959: } 19959: return __ret; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: template 19959: typename basic_filebuf<_CharT, _Traits>::pos_type 19959: basic_filebuf<_CharT, _Traits>:: 19959: seekpos(pos_type __pos, ios_base::openmode) 19959: { 19959: pos_type __ret = pos_type(off_type(-1)); 19959: if (this->is_open()) 19959: { 19959: 19959: _M_destroy_pback(); 19959: __ret = _M_seek(off_type(__pos), ios_base::beg, __pos.state()); 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: typename basic_filebuf<_CharT, _Traits>::pos_type 19959: basic_filebuf<_CharT, _Traits>:: 19959: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state) 19959: { 19959: pos_type __ret = pos_type(off_type(-1)); 19959: if (_M_terminate_output()) 19959: { 19959: off_type __file_off = _M_file.seekoff(__off, __way); 19959: if (__file_off != off_type(-1)) 19959: { 19959: _M_reading = false; 19959: _M_writing = false; 19959: _M_ext_next = _M_ext_end = _M_ext_buf; 19959: _M_set_buffer(-1); 19959: _M_state_cur = __state; 19959: __ret = __file_off; 19959: __ret.state(_M_state_cur); 19959: } 19959: } 19959: return __ret; 19959: } 19959: 19959: 19959: 19959: 19959: template 19959: int basic_filebuf<_CharT, _Traits>:: 19959: _M_get_ext_pos(__state_type& __state) 19959: { 19959: if (_M_codecvt->always_noconv()) 19959: return this->gptr() - this->egptr(); 19959: else 19959: { 19959: 19959: 19959: 19959: const int __gptr_off = 19959: _M_codecvt->length(__state, _M_ext_buf, _M_ext_next, 19959: this->gptr() - this->eback()); 19959: return _M_ext_buf + __gptr_off - _M_ext_end; 19959: } 19959: } 19959: 19959: template 19959: bool 19959: basic_filebuf<_CharT, _Traits>:: 19959: _M_terminate_output() 19959: { 19959: 19959: bool __testvalid = true; 19959: if (this->pbase() < this->pptr()) 19959: { 19959: const int_type __tmp = this->overflow(); 19959: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 19959: __testvalid = false; 19959: } 19959: 19959: 19959: if (_M_writing && !__check_facet(_M_codecvt).always_noconv() 19959: && __testvalid) 19959: { 19959: 19959: 19959: 19959: const size_t __blen = 128; 19959: char __buf[__blen]; 19959: codecvt_base::result __r; 19959: streamsize __ilen = 0; 19959: 19959: do 19959: { 19959: char* __next; 19959: __r = _M_codecvt->unshift(_M_state_cur, __buf, 19959: __buf + __blen, __next); 19959: if (__r == codecvt_base::error) 19959: __testvalid = false; 19959: else if (__r == codecvt_base::ok || 19959: __r == codecvt_base::partial) 19959: { 19959: __ilen = __next - __buf; 19959: if (__ilen > 0) 19959: { 19959: const streamsize __elen = _M_file.xsputn(__buf, __ilen); 19959: if (__elen != __ilen) 19959: __testvalid = false; 19959: } 19959: } 19959: } 19959: while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); 19959: 19959: if (__testvalid) 19959: { 19959: 19959: 19959: 19959: 19959: const int_type __tmp = this->overflow(); 19959: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 19959: __testvalid = false; 19959: } 19959: } 19959: return __testvalid; 19959: } 19959: 19959: template 19959: int 19959: basic_filebuf<_CharT, _Traits>:: 19959: sync() 19959: { 19959: 19959: 19959: int __ret = 0; 19959: if (this->pbase() < this->pptr()) 19959: { 19959: const int_type __tmp = this->overflow(); 19959: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 19959: __ret = -1; 19959: } 19959: return __ret; 19959: } 19959: 19959: template 19959: void 19959: basic_filebuf<_CharT, _Traits>:: 19959: imbue(const locale& __loc) 19959: { 19959: bool __testvalid = true; 19959: 19959: const __codecvt_type* const _M_codecvt_tmp 19959: = __try_use_facet<__codecvt_type>(__loc); 19959: 19959: if (this->is_open()) 19959: { 19959: 19959: if ((_M_reading || _M_writing) 19959: && __check_facet(_M_codecvt).encoding() == -1) 19959: __testvalid = false; 19959: else 19959: { 19959: if (_M_reading) 19959: { 19959: if (__check_facet(_M_codecvt).always_noconv()) 19959: { 19959: if (_M_codecvt_tmp 19959: && !__check_facet(_M_codecvt_tmp).always_noconv()) 19959: __testvalid = this->seekoff(0, ios_base::cur, _M_mode) 19959: != pos_type(off_type(-1)); 19959: } 19959: else 19959: { 19959: 19959: _M_ext_next = _M_ext_buf 19959: + _M_codecvt->length(_M_state_last, _M_ext_buf, 19959: _M_ext_next, 19959: this->gptr() - this->eback()); 19959: const streamsize __remainder = _M_ext_end - _M_ext_next; 19959: if (__remainder) 19959: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 19959: 19959: _M_ext_next = _M_ext_buf; 19959: _M_ext_end = _M_ext_buf + __remainder; 19959: _M_set_buffer(-1); 19959: _M_state_last = _M_state_cur = _M_state_beg; 19959: } 19959: } 19959: else if (_M_writing && (__testvalid = _M_terminate_output())) 19959: _M_set_buffer(-1); 19959: } 19959: } 19959: 19959: if (__testvalid) 19959: _M_codecvt = _M_codecvt_tmp; 19959: else 19959: _M_codecvt = 0; 19959: } 19959: 19959: 19959: 19959: 19959: extern template class basic_filebuf; 19959: extern template class basic_ifstream; 19959: extern template class basic_ofstream; 19959: extern template class basic_fstream; 19959: 19959: 19959: extern template class basic_filebuf; 19959: extern template class basic_ifstream; 19959: extern template class basic_ofstream; 19959: extern template class basic_fstream; 19959: 19959: 19959: 19959: 19959: } 19959: # 1301 "/usr/include/c++/13/fstream" 2 3 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/monitoring/instrumented_mutex.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/monitoring/instrumented_mutex.h" 19959: 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/monitoring/instrumented_mutex.h" 19959: namespace rocksdb { 19959: class InstrumentedCondVar; 19959: 19959: 19959: 19959: class InstrumentedMutex { 19959: public: 19959: explicit InstrumentedMutex(bool adaptive = false) 19959: : mutex_(adaptive), stats_(nullptr), clock_(nullptr), stats_code_(0) {} 19959: 19959: explicit InstrumentedMutex(SystemClock* clock, bool adaptive = false) 19959: : mutex_(adaptive), stats_(nullptr), clock_(clock), stats_code_(0) {} 19959: 19959: InstrumentedMutex(Statistics* stats, SystemClock* clock, int stats_code, 19959: bool adaptive = false) 19959: : mutex_(adaptive), 19959: stats_(stats), 19959: clock_(clock), 19959: stats_code_(stats_code) {} 19959: # 45 "/build/reproducible-path/rocksdb-8.9.1/monitoring/instrumented_mutex.h" 19959: void Lock(); 19959: 19959: void Unlock() { mutex_.Unlock(); } 19959: 19959: void AssertHeld() const { mutex_.AssertHeld(); } 19959: 19959: private: 19959: void LockInternal(); 19959: friend class InstrumentedCondVar; 19959: port::Mutex mutex_; 19959: Statistics* stats_; 19959: SystemClock* clock_; 19959: int stats_code_; 19959: 19959: 19959: 19959: }; 19959: 19959: class alignas(64U) CacheAlignedInstrumentedMutex 19959: : public InstrumentedMutex { 19959: using InstrumentedMutex::InstrumentedMutex; 19959: }; 19959: static_assert(alignof(CacheAlignedInstrumentedMutex) != 64U || 19959: sizeof(CacheAlignedInstrumentedMutex) % 64U == 0); 19959: 19959: 19959: class InstrumentedMutexLock { 19959: public: 19959: explicit InstrumentedMutexLock(InstrumentedMutex* mutex) : mutex_(mutex) { 19959: mutex_->Lock(); 19959: } 19959: 19959: ~InstrumentedMutexLock() { mutex_->Unlock(); } 19959: 19959: private: 19959: InstrumentedMutex* const mutex_; 19959: InstrumentedMutexLock(const InstrumentedMutexLock&) = delete; 19959: void operator=(const InstrumentedMutexLock&) = delete; 19959: }; 19959: 19959: 19959: 19959: class InstrumentedMutexUnlock { 19959: public: 19959: explicit InstrumentedMutexUnlock(InstrumentedMutex* mutex) : mutex_(mutex) { 19959: mutex_->Unlock(); 19959: } 19959: 19959: ~InstrumentedMutexUnlock() { mutex_->Lock(); } 19959: 19959: private: 19959: InstrumentedMutex* const mutex_; 19959: InstrumentedMutexUnlock(const InstrumentedMutexUnlock&) = delete; 19959: void operator=(const InstrumentedMutexUnlock&) = delete; 19959: }; 19959: 19959: class InstrumentedCondVar { 19959: public: 19959: explicit InstrumentedCondVar(InstrumentedMutex* instrumented_mutex) 19959: : cond_(&(instrumented_mutex->mutex_)), 19959: stats_(instrumented_mutex->stats_), 19959: clock_(instrumented_mutex->clock_), 19959: stats_code_(instrumented_mutex->stats_code_) {} 19959: 19959: void Wait(); 19959: 19959: bool TimedWait(uint64_t abs_time_us); 19959: 19959: void Signal() { cond_.Signal(); } 19959: 19959: void SignalAll() { cond_.SignalAll(); } 19959: 19959: private: 19959: void WaitInternal(); 19959: bool TimedWaitInternal(uint64_t abs_time_us); 19959: port::CondVar cond_; 19959: Statistics* stats_; 19959: SystemClock* clock_; 19959: int stats_code_; 19959: }; 19959: 19959: } 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 2 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/trace_record.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 16 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/trace_record.h" 19959: namespace rocksdb { 19959: 19959: class ColumnFamilyHandle; 19959: class DB; 19959: 19959: 19959: enum TraceType : char { 19959: kTraceNone = 0, 19959: kTraceBegin = 1, 19959: kTraceEnd = 2, 19959: 19959: kTraceWrite = 3, 19959: kTraceGet = 4, 19959: kTraceIteratorSeek = 5, 19959: kTraceIteratorSeekForPrev = 6, 19959: 19959: kBlockTraceIndexBlock = 7, 19959: 19959: kBlockTraceFilterBlock = 8, 19959: kBlockTraceDataBlock = 9, 19959: kBlockTraceUncompressionDictBlock = 10, 19959: kBlockTraceRangeDeletionBlock = 11, 19959: 19959: kIOTracer = 12, 19959: 19959: kTraceMultiGet = 13, 19959: 19959: kTraceMax, 19959: }; 19959: 19959: class GetQueryTraceRecord; 19959: class IteratorSeekQueryTraceRecord; 19959: class MultiGetQueryTraceRecord; 19959: class TraceRecordResult; 19959: class WriteQueryTraceRecord; 19959: 19959: 19959: class TraceRecord { 19959: public: 19959: explicit TraceRecord(uint64_t timestamp); 19959: 19959: virtual ~TraceRecord() = default; 19959: 19959: 19959: virtual TraceType GetTraceType() const = 0; 19959: 19959: 19959: virtual uint64_t GetTimestamp() const; 19959: 19959: class Handler { 19959: public: 19959: virtual ~Handler() = default; 19959: 19959: virtual Status Handle(const WriteQueryTraceRecord& record, 19959: std::unique_ptr* result) = 0; 19959: 19959: virtual Status Handle(const GetQueryTraceRecord& record, 19959: std::unique_ptr* result) = 0; 19959: 19959: virtual Status Handle(const IteratorSeekQueryTraceRecord& record, 19959: std::unique_ptr* result) = 0; 19959: 19959: virtual Status Handle(const MultiGetQueryTraceRecord& record, 19959: std::unique_ptr* result) = 0; 19959: }; 19959: 19959: 19959: virtual Status Accept(Handler* handler, 19959: std::unique_ptr* result) = 0; 19959: 19959: 19959: static Handler* NewExecutionHandler( 19959: DB* db, const std::vector& handles); 19959: 19959: private: 19959: uint64_t timestamp_; 19959: }; 19959: 19959: 19959: class QueryTraceRecord : public TraceRecord { 19959: public: 19959: explicit QueryTraceRecord(uint64_t timestamp); 19959: }; 19959: 19959: 19959: class WriteQueryTraceRecord : public QueryTraceRecord { 19959: public: 19959: WriteQueryTraceRecord(PinnableSlice&& write_batch_rep, uint64_t timestamp); 19959: 19959: WriteQueryTraceRecord(const std::string& write_batch_rep, uint64_t timestamp); 19959: 19959: virtual ~WriteQueryTraceRecord() override; 19959: 19959: TraceType GetTraceType() const override { return kTraceWrite; } 19959: 19959: 19959: virtual Slice GetWriteBatchRep() const; 19959: 19959: Status Accept(Handler* handler, 19959: std::unique_ptr* result) override; 19959: 19959: private: 19959: PinnableSlice rep_; 19959: }; 19959: 19959: 19959: class GetQueryTraceRecord : public QueryTraceRecord { 19959: public: 19959: GetQueryTraceRecord(uint32_t column_family_id, PinnableSlice&& key, 19959: uint64_t timestamp); 19959: 19959: GetQueryTraceRecord(uint32_t column_family_id, const std::string& key, 19959: uint64_t timestamp); 19959: 19959: virtual ~GetQueryTraceRecord() override; 19959: 19959: TraceType GetTraceType() const override { return kTraceGet; } 19959: 19959: 19959: virtual uint32_t GetColumnFamilyID() const; 19959: 19959: 19959: virtual Slice GetKey() const; 19959: 19959: Status Accept(Handler* handler, 19959: std::unique_ptr* result) override; 19959: 19959: private: 19959: uint32_t cf_id_; 19959: PinnableSlice key_; 19959: }; 19959: 19959: 19959: class IteratorQueryTraceRecord : public QueryTraceRecord { 19959: public: 19959: explicit IteratorQueryTraceRecord(uint64_t timestamp); 19959: 19959: IteratorQueryTraceRecord(PinnableSlice&& lower_bound, 19959: PinnableSlice&& upper_bound, uint64_t timestamp); 19959: 19959: IteratorQueryTraceRecord(const std::string& lower_bound, 19959: const std::string& upper_bound, uint64_t timestamp); 19959: 19959: virtual ~IteratorQueryTraceRecord() override; 19959: 19959: 19959: 19959: virtual Slice GetLowerBound() const; 19959: virtual Slice GetUpperBound() const; 19959: 19959: private: 19959: PinnableSlice lower_; 19959: PinnableSlice upper_; 19959: }; 19959: 19959: 19959: class IteratorSeekQueryTraceRecord : public IteratorQueryTraceRecord { 19959: public: 19959: 19959: enum SeekType { 19959: kSeek = kTraceIteratorSeek, 19959: kSeekForPrev = kTraceIteratorSeekForPrev 19959: }; 19959: 19959: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 19959: PinnableSlice&& key, uint64_t timestamp); 19959: 19959: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 19959: const std::string& key, uint64_t timestamp); 19959: 19959: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 19959: PinnableSlice&& key, PinnableSlice&& lower_bound, 19959: PinnableSlice&& upper_bound, uint64_t timestamp); 19959: 19959: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 19959: const std::string& key, 19959: const std::string& lower_bound, 19959: const std::string& upper_bound, 19959: uint64_t timestamp); 19959: 19959: virtual ~IteratorSeekQueryTraceRecord() override; 19959: 19959: 19959: TraceType GetTraceType() const override; 19959: 19959: 19959: virtual SeekType GetSeekType() const; 19959: 19959: 19959: virtual uint32_t GetColumnFamilyID() const; 19959: 19959: 19959: virtual Slice GetKey() const; 19959: 19959: Status Accept(Handler* handler, 19959: std::unique_ptr* result) override; 19959: 19959: private: 19959: SeekType type_; 19959: uint32_t cf_id_; 19959: PinnableSlice key_; 19959: }; 19959: 19959: 19959: class MultiGetQueryTraceRecord : public QueryTraceRecord { 19959: public: 19959: MultiGetQueryTraceRecord(std::vector column_family_ids, 19959: std::vector&& keys, 19959: uint64_t timestamp); 19959: 19959: MultiGetQueryTraceRecord(std::vector column_family_ids, 19959: const std::vector& keys, 19959: uint64_t timestamp); 19959: 19959: virtual ~MultiGetQueryTraceRecord() override; 19959: 19959: TraceType GetTraceType() const override { return kTraceMultiGet; } 19959: 19959: 19959: virtual std::vector GetColumnFamilyIDs() const; 19959: 19959: 19959: virtual std::vector GetKeys() const; 19959: 19959: Status Accept(Handler* handler, 19959: std::unique_ptr* result) override; 19959: 19959: private: 19959: std::vector cf_ids_; 19959: std::vector keys_; 19959: }; 19959: 19959: } 19959: # 16 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/trace_replay.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 18 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/trace_replay.h" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/utilities/replayer.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class TraceRecord; 19959: class TraceRecordResult; 19959: 19959: struct ReplayOptions { 19959: 19959: 19959: uint32_t num_threads; 19959: 19959: 19959: 19959: 19959: 19959: 19959: double fast_forward; 19959: 19959: ReplayOptions() : num_threads(1), fast_forward(1.0) {} 19959: 19959: ReplayOptions(uint32_t num_of_threads, double fast_forward_ratio) 19959: : num_threads(num_of_threads), fast_forward(fast_forward_ratio) {} 19959: }; 19959: 19959: 19959: 19959: 19959: class Replayer { 19959: public: 19959: virtual ~Replayer() = default; 19959: 19959: 19959: 19959: virtual Status Prepare() = 0; 19959: 19959: 19959: virtual uint64_t GetHeaderTimestamp() const = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Next(std::unique_ptr* record) = 0; 19959: # 71 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/utilities/replayer.h" 19959: virtual Status Execute(const std::unique_ptr& record, 19959: std::unique_ptr* result) = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Replay( 19959: const ReplayOptions& options, 19959: const std::function&&)>& 19959: result_callback) = 0; 19959: }; 19959: 19959: } 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/trace_replay.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: class ColumnFamilyHandle; 19959: class ColumnFamilyData; 19959: class DB; 19959: class DBImpl; 19959: class Env; 19959: class Slice; 19959: class SystemClock; 19959: class TraceReader; 19959: class TraceWriter; 19959: class WriteBatch; 19959: 19959: struct ReadOptions; 19959: struct TraceOptions; 19959: struct WriteOptions; 19959: 19959: extern const std::string kTraceMagic; 19959: const unsigned int kTraceTimestampSize = 8; 19959: const unsigned int kTraceTypeSize = 1; 19959: const unsigned int kTracePayloadLengthSize = 4; 19959: const unsigned int kTraceMetadataSize = 19959: kTraceTimestampSize + kTraceTypeSize + kTracePayloadLengthSize; 19959: 19959: static const int kTraceFileMajorVersion = 0; 19959: static const int kTraceFileMinorVersion = 2; 19959: 19959: 19959: struct Trace { 19959: uint64_t ts; 19959: TraceType type; 19959: 19959: 19959: 19959: 19959: uint64_t payload_map = 0; 19959: 19959: 19959: std::string payload; 19959: 19959: void reset() { 19959: ts = 0; 19959: type = kTraceMax; 19959: payload_map = 0; 19959: payload.clear(); 19959: } 19959: }; 19959: 19959: enum TracePayloadType : char { 19959: 19959: 19959: kEmptyPayload = 0, 19959: kWriteBatchData = 1, 19959: kGetCFID = 2, 19959: kGetKey = 3, 19959: kIterCFID = 4, 19959: kIterKey = 5, 19959: kIterLowerBound = 6, 19959: kIterUpperBound = 7, 19959: kMultiGetSize = 8, 19959: kMultiGetCFIDs = 9, 19959: kMultiGetKeys = 10, 19959: }; 19959: 19959: class TracerHelper { 19959: public: 19959: 19959: static Status ParseVersionStr(std::string& v_string, int* v_num); 19959: 19959: 19959: static Status ParseTraceHeader(const Trace& header, int* trace_version, 19959: int* db_version); 19959: 19959: 19959: static void EncodeTrace(const Trace& trace, std::string* encoded_trace); 19959: 19959: 19959: static Status DecodeTrace(const std::string& encoded_trace, Trace* trace); 19959: 19959: 19959: static Status DecodeHeader(const std::string& encoded_trace, Trace* header); 19959: 19959: 19959: static bool SetPayloadMap(uint64_t& payload_map, 19959: const TracePayloadType payload_type); 19959: 19959: 19959: 19959: 19959: 19959: static Status DecodeTraceRecord(Trace* trace, int trace_file_version, 19959: std::unique_ptr* record); 19959: }; 19959: 19959: 19959: 19959: 19959: class Tracer { 19959: public: 19959: Tracer(SystemClock* clock, const TraceOptions& trace_options, 19959: std::unique_ptr&& trace_writer); 19959: ~Tracer(); 19959: 19959: 19959: Status Write(WriteBatch* write_batch); 19959: 19959: 19959: Status Get(ColumnFamilyHandle* cfname, const Slice& key); 19959: 19959: 19959: Status IteratorSeek(const uint32_t& cf_id, const Slice& key, 19959: const Slice& lower_bound, const Slice upper_bound); 19959: Status IteratorSeekForPrev(const uint32_t& cf_id, const Slice& key, 19959: const Slice& lower_bound, const Slice upper_bound); 19959: 19959: 19959: 19959: Status MultiGet(const size_t num_keys, ColumnFamilyHandle** column_families, 19959: const Slice* keys); 19959: 19959: Status MultiGet(const size_t num_keys, ColumnFamilyHandle* column_family, 19959: const Slice* keys); 19959: 19959: Status MultiGet(const std::vector& column_family, 19959: const std::vector& keys); 19959: 19959: 19959: 19959: bool IsTraceFileOverMax(); 19959: 19959: 19959: 19959: bool IsWriteOrderPreserved() { return trace_options_.preserve_write_order; } 19959: 19959: 19959: Status Close(); 19959: 19959: private: 19959: 19959: 19959: 19959: Status WriteHeader(); 19959: 19959: 19959: Status WriteFooter(); 19959: 19959: 19959: 19959: Status WriteTrace(const Trace& trace); 19959: 19959: 19959: 19959: bool ShouldSkipTrace(const TraceType& type); 19959: 19959: SystemClock* clock_; 19959: TraceOptions trace_options_; 19959: std::unique_ptr trace_writer_; 19959: uint64_t trace_request_count_; 19959: Status trace_write_status_; 19959: }; 19959: 19959: } 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 2 19959: 19959: namespace rocksdb { 19959: class SystemClock; 19959: class TraceReader; 19959: class TraceWriter; 19959: # 32 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 19959: enum IOTraceOp : char { 19959: 19959: 19959: kIOFileSize = 0, 19959: kIOLen = 1, 19959: kIOOffset = 2, 19959: }; 19959: 19959: struct IOTraceRecord { 19959: 19959: uint64_t access_timestamp = 0; 19959: TraceType trace_type = TraceType::kTraceMax; 19959: 19959: 19959: 19959: uint64_t io_op_data = 0; 19959: std::string file_operation; 19959: uint64_t latency = 0; 19959: std::string io_status; 19959: 19959: std::string file_name; 19959: 19959: 19959: uint64_t len = 0; 19959: uint64_t offset = 0; 19959: uint64_t file_size = 0; 19959: 19959: 19959: uint64_t trace_data = 0; 19959: std::string request_id; 19959: 19959: IOTraceRecord() {} 19959: 19959: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 19959: const uint64_t& _io_op_data, const std::string& _file_operation, 19959: const uint64_t& _latency, const std::string& _io_status, 19959: const std::string& _file_name, const uint64_t& _file_size = 0) 19959: : access_timestamp(_access_timestamp), 19959: trace_type(_trace_type), 19959: io_op_data(_io_op_data), 19959: file_operation(_file_operation), 19959: latency(_latency), 19959: io_status(_io_status), 19959: file_name(_file_name), 19959: file_size(_file_size) {} 19959: 19959: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 19959: const uint64_t& _io_op_data, const std::string& _file_operation, 19959: const uint64_t& _latency, const std::string& _io_status, 19959: const std::string& _file_name, const uint64_t& _len, 19959: const uint64_t& _offset) 19959: : access_timestamp(_access_timestamp), 19959: trace_type(_trace_type), 19959: io_op_data(_io_op_data), 19959: file_operation(_file_operation), 19959: latency(_latency), 19959: io_status(_io_status), 19959: file_name(_file_name), 19959: len(_len), 19959: offset(_offset) {} 19959: }; 19959: 19959: struct IOTraceHeader { 19959: uint64_t start_time; 19959: uint32_t rocksdb_major_version; 19959: uint32_t rocksdb_minor_version; 19959: }; 19959: 19959: 19959: 19959: class IOTraceWriter { 19959: public: 19959: IOTraceWriter(SystemClock* clock, const TraceOptions& trace_options, 19959: std::unique_ptr&& trace_writer); 19959: ~IOTraceWriter() = default; 19959: 19959: IOTraceWriter(const IOTraceWriter&) = delete; 19959: IOTraceWriter& operator=(const IOTraceWriter&) = delete; 19959: IOTraceWriter(IOTraceWriter&&) = delete; 19959: IOTraceWriter& operator=(IOTraceWriter&&) = delete; 19959: 19959: Status WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 19959: 19959: 19959: 19959: Status WriteHeader(); 19959: 19959: private: 19959: SystemClock* clock_; 19959: TraceOptions trace_options_; 19959: std::unique_ptr trace_writer_; 19959: }; 19959: 19959: 19959: class IOTraceReader { 19959: public: 19959: explicit IOTraceReader(std::unique_ptr&& reader); 19959: ~IOTraceReader() = default; 19959: 19959: IOTraceReader(const IOTraceReader&) = delete; 19959: IOTraceReader& operator=(const IOTraceReader&) = delete; 19959: IOTraceReader(IOTraceReader&&) = delete; 19959: IOTraceReader& operator=(IOTraceReader&&) = delete; 19959: 19959: Status ReadHeader(IOTraceHeader* header); 19959: 19959: Status ReadIOOp(IOTraceRecord* record); 19959: 19959: private: 19959: std::unique_ptr trace_reader_; 19959: }; 19959: 19959: 19959: 19959: class IOTracer { 19959: public: 19959: IOTracer(); 19959: ~IOTracer(); 19959: 19959: IOTracer(const IOTracer&) = delete; 19959: IOTracer& operator=(const IOTracer&) = delete; 19959: IOTracer(IOTracer&&) = delete; 19959: IOTracer& operator=(IOTracer&&) = delete; 19959: # 163 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 19959: Status 19959: StartIOTrace(SystemClock* clock, const TraceOptions& trace_options, 19959: std::unique_ptr&& trace_writer); 19959: 19959: 19959: void EndIOTrace(); 19959: 19959: bool is_tracing_enabled() const { return tracing_enabled; } 19959: 19959: void WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 19959: 19959: private: 19959: TraceOptions trace_options_; 19959: 19959: InstrumentedMutex trace_writer_mutex_; 19959: std::atomic writer_; 19959: 19959: 19959: 19959: bool tracing_enabled; 19959: }; 19959: 19959: } 19959: # 11 "/build/reproducible-path/rocksdb-8.9.1/env/file_system_tracer.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class FileSystemTracingWrapper : public FileSystemWrapper { 19959: public: 19959: FileSystemTracingWrapper(const std::shared_ptr& t, 19959: const std::shared_ptr& io_tracer) 19959: : FileSystemWrapper(t), 19959: io_tracer_(io_tracer), 19959: clock_(SystemClock::Default().get()) {} 19959: 19959: ~FileSystemTracingWrapper() override {} 19959: 19959: static const char* kClassName() { return "FileSystemTracing"; } 19959: const char* Name() const override { return kClassName(); } 19959: 19959: IOStatus NewSequentialFile(const std::string& fname, 19959: const FileOptions& file_opts, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus NewRandomAccessFile(const std::string& fname, 19959: const FileOptions& file_opts, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus NewWritableFile(const std::string& fname, 19959: const FileOptions& file_opts, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus ReopenWritableFile(const std::string& fname, 19959: const FileOptions& file_opts, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus ReuseWritableFile(const std::string& fname, 19959: const std::string& old_fname, 19959: const FileOptions& file_opts, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus NewRandomRWFile(const std::string& fname, const FileOptions& options, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 19959: std::unique_ptr* result, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 19959: std::vector* r, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus DeleteFile(const std::string& fname, const IOOptions& options, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus CreateDir(const std::string& dirname, const IOOptions& options, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus CreateDirIfMissing(const std::string& dirname, 19959: const IOOptions& options, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus DeleteDir(const std::string& dirname, const IOOptions& options, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus GetFileSize(const std::string& fname, const IOOptions& options, 19959: uint64_t* file_size, IODebugContext* dbg) override; 19959: 19959: IOStatus Truncate(const std::string& fname, size_t size, 19959: const IOOptions& options, IODebugContext* dbg) override; 19959: 19959: private: 19959: std::shared_ptr io_tracer_; 19959: SystemClock* clock_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class FileSystemPtr { 19959: public: 19959: FileSystemPtr(std::shared_ptr fs, 19959: const std::shared_ptr& io_tracer) 19959: : fs_(fs), io_tracer_(io_tracer) { 19959: fs_tracer_ = std::make_shared(fs_, io_tracer_); 19959: } 19959: 19959: std::shared_ptr operator->() const { 19959: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 19959: return fs_tracer_; 19959: } else { 19959: return fs_; 19959: } 19959: } 19959: 19959: 19959: FileSystem* get() const { 19959: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 19959: return fs_tracer_.get(); 19959: } else { 19959: return fs_.get(); 19959: } 19959: } 19959: 19959: private: 19959: std::shared_ptr fs_; 19959: std::shared_ptr io_tracer_; 19959: std::shared_ptr fs_tracer_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class FSSequentialFileTracingWrapper : public FSSequentialFileOwnerWrapper { 19959: public: 19959: FSSequentialFileTracingWrapper(std::unique_ptr&& t, 19959: std::shared_ptr io_tracer, 19959: const std::string& file_name) 19959: : FSSequentialFileOwnerWrapper(std::move(t)), 19959: io_tracer_(io_tracer), 19959: clock_(SystemClock::Default().get()), 19959: file_name_(file_name) {} 19959: 19959: ~FSSequentialFileTracingWrapper() override {} 19959: 19959: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 19959: char* scratch, IODebugContext* dbg) override; 19959: 19959: IOStatus InvalidateCache(size_t offset, size_t length) override; 19959: 19959: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 19959: Slice* result, char* scratch, 19959: IODebugContext* dbg) override; 19959: 19959: private: 19959: std::shared_ptr io_tracer_; 19959: SystemClock* clock_; 19959: std::string file_name_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class FSSequentialFilePtr { 19959: public: 19959: FSSequentialFilePtr() = delete; 19959: FSSequentialFilePtr(std::unique_ptr&& fs, 19959: const std::shared_ptr& io_tracer, 19959: const std::string& file_name) 19959: : io_tracer_(io_tracer), 19959: fs_tracer_(std::move(fs), io_tracer_, 19959: file_name.substr(file_name.find_last_of("/\\") + 19959: 1) ) {} 19959: 19959: FSSequentialFile* operator->() const { 19959: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 19959: return const_cast(&fs_tracer_); 19959: } else { 19959: return fs_tracer_.target(); 19959: } 19959: } 19959: 19959: FSSequentialFile* get() const { 19959: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 19959: return const_cast(&fs_tracer_); 19959: } else { 19959: return fs_tracer_.target(); 19959: } 19959: } 19959: 19959: private: 19959: std::shared_ptr io_tracer_; 19959: FSSequentialFileTracingWrapper fs_tracer_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class FSRandomAccessFileTracingWrapper : public FSRandomAccessFileOwnerWrapper { 19959: public: 19959: FSRandomAccessFileTracingWrapper(std::unique_ptr&& t, 19959: std::shared_ptr io_tracer, 19959: const std::string& file_name) 19959: : FSRandomAccessFileOwnerWrapper(std::move(t)), 19959: io_tracer_(io_tracer), 19959: clock_(SystemClock::Default().get()), 19959: file_name_(file_name) {} 19959: 19959: ~FSRandomAccessFileTracingWrapper() override {} 19959: 19959: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 19959: Slice* result, char* scratch, 19959: IODebugContext* dbg) const override; 19959: 19959: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 19959: const IOOptions& options, IODebugContext* dbg) override; 19959: 19959: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus InvalidateCache(size_t offset, size_t length) override; 19959: 19959: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 19959: std::function cb, 19959: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 19959: IODebugContext* dbg) override; 19959: 19959: void ReadAsyncCallback(const FSReadRequest& req, void* cb_arg); 19959: 19959: private: 19959: std::shared_ptr io_tracer_; 19959: SystemClock* clock_; 19959: 19959: std::string file_name_; 19959: 19959: struct ReadAsyncCallbackInfo { 19959: uint64_t start_time_; 19959: std::function cb_; 19959: void* cb_arg_; 19959: std::string file_op_; 19959: }; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class FSRandomAccessFilePtr { 19959: public: 19959: FSRandomAccessFilePtr(std::unique_ptr&& fs, 19959: const std::shared_ptr& io_tracer, 19959: const std::string& file_name) 19959: : io_tracer_(io_tracer), 19959: fs_tracer_(std::move(fs), io_tracer_, 19959: file_name.substr(file_name.find_last_of("/\\") + 19959: 1) ) {} 19959: 19959: FSRandomAccessFile* operator->() const { 19959: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 19959: return const_cast(&fs_tracer_); 19959: } else { 19959: return fs_tracer_.target(); 19959: } 19959: } 19959: 19959: FSRandomAccessFile* get() const { 19959: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 19959: return const_cast(&fs_tracer_); 19959: } else { 19959: return fs_tracer_.target(); 19959: } 19959: } 19959: 19959: private: 19959: std::shared_ptr io_tracer_; 19959: FSRandomAccessFileTracingWrapper fs_tracer_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class FSWritableFileTracingWrapper : public FSWritableFileOwnerWrapper { 19959: public: 19959: FSWritableFileTracingWrapper(std::unique_ptr&& t, 19959: std::shared_ptr io_tracer, 19959: const std::string& file_name) 19959: : FSWritableFileOwnerWrapper(std::move(t)), 19959: io_tracer_(io_tracer), 19959: clock_(SystemClock::Default().get()), 19959: file_name_(file_name) {} 19959: 19959: ~FSWritableFileTracingWrapper() override {} 19959: 19959: IOStatus Append(const Slice& data, const IOOptions& options, 19959: IODebugContext* dbg) override; 19959: IOStatus Append(const Slice& data, const IOOptions& options, 19959: const DataVerificationInfo& , 19959: IODebugContext* dbg) override { 19959: return Append(data, options, dbg); 19959: } 19959: 19959: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 19959: const IOOptions& options, 19959: IODebugContext* dbg) override; 19959: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 19959: const IOOptions& options, 19959: const DataVerificationInfo& , 19959: IODebugContext* dbg) override { 19959: return PositionedAppend(data, offset, options, dbg); 19959: } 19959: 19959: IOStatus Truncate(uint64_t size, const IOOptions& options, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 19959: 19959: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override; 19959: 19959: IOStatus InvalidateCache(size_t offset, size_t length) override; 19959: 19959: private: 19959: std::shared_ptr io_tracer_; 19959: SystemClock* clock_; 19959: 19959: std::string file_name_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class FSWritableFilePtr { 19959: public: 19959: FSWritableFilePtr(std::unique_ptr&& fs, 19959: const std::shared_ptr& io_tracer, 19959: const std::string& file_name) 19959: : io_tracer_(io_tracer) { 19959: fs_tracer_.reset(new FSWritableFileTracingWrapper( 19959: std::move(fs), io_tracer_, 19959: file_name.substr(file_name.find_last_of("/\\") + 19959: 1) )); 19959: } 19959: 19959: FSWritableFile* operator->() const { 19959: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 19959: return fs_tracer_.get(); 19959: } else { 19959: return fs_tracer_->target(); 19959: } 19959: } 19959: 19959: FSWritableFile* get() const { 19959: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 19959: return fs_tracer_.get(); 19959: } else if (fs_tracer_) { 19959: return fs_tracer_->target(); 19959: } else { 19959: return nullptr; 19959: } 19959: } 19959: 19959: void reset() { 19959: fs_tracer_.reset(); 19959: io_tracer_ = nullptr; 19959: } 19959: 19959: private: 19959: std::shared_ptr io_tracer_; 19959: std::unique_ptr fs_tracer_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class FSRandomRWFileTracingWrapper : public FSRandomRWFileOwnerWrapper { 19959: public: 19959: FSRandomRWFileTracingWrapper(std::unique_ptr&& t, 19959: std::shared_ptr io_tracer, 19959: const std::string& file_name) 19959: : FSRandomRWFileOwnerWrapper(std::move(t)), 19959: io_tracer_(io_tracer), 19959: clock_(SystemClock::Default().get()), 19959: file_name_(file_name) {} 19959: 19959: ~FSRandomRWFileTracingWrapper() override {} 19959: 19959: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 19959: IODebugContext* dbg) override; 19959: 19959: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 19959: Slice* result, char* scratch, 19959: IODebugContext* dbg) const override; 19959: 19959: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 19959: 19959: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 19959: 19959: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 19959: 19959: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 19959: 19959: private: 19959: std::shared_ptr io_tracer_; 19959: SystemClock* clock_; 19959: 19959: std::string file_name_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class FSRandomRWFilePtr { 19959: public: 19959: FSRandomRWFilePtr(std::unique_ptr&& fs, 19959: std::shared_ptr io_tracer, 19959: const std::string& file_name) 19959: : io_tracer_(io_tracer), 19959: fs_tracer_(std::move(fs), io_tracer_, 19959: file_name.substr(file_name.find_last_of("/\\") + 19959: 1) ) {} 19959: 19959: FSRandomRWFile* operator->() const { 19959: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 19959: return const_cast(&fs_tracer_); 19959: } else { 19959: return fs_tracer_.target(); 19959: } 19959: } 19959: 19959: FSRandomRWFile* get() const { 19959: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 19959: return const_cast(&fs_tracer_); 19959: } else { 19959: return fs_tracer_.target(); 19959: } 19959: } 19959: 19959: private: 19959: std::shared_ptr io_tracer_; 19959: FSRandomRWFileTracingWrapper fs_tracer_; 19959: }; 19959: 19959: } 19959: # 16 "/build/reproducible-path/rocksdb-8.9.1/file/random_access_file_reader.h" 2 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: class RateLimiter { 19959: public: 19959: enum class OpType { 19959: kRead, 19959: kWrite, 19959: }; 19959: 19959: enum class Mode { 19959: kReadsOnly, 19959: kWritesOnly, 19959: kAllIo, 19959: }; 19959: 19959: 19959: explicit RateLimiter(Mode mode = Mode::kWritesOnly) : mode_(mode) {} 19959: 19959: virtual ~RateLimiter() {} 19959: 19959: 19959: 19959: virtual void SetBytesPerSecond(int64_t bytes_per_second) = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status SetSingleBurstBytes(int64_t ) { 19959: return Status::NotSupported(); 19959: } 19959: # 61 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 19959: virtual void Request(const int64_t , const Env::IOPriority ) { 19959: 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 3 4 19959: (static_cast ( 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 19959: false 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 19959: "false" 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 3 4 19959: , "./include/rocksdb/rate_limiter.h", 62, __extension__ __PRETTY_FUNCTION__)) 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 19959: ; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 19959: Statistics* ) { 19959: 19959: 19959: Request(bytes, pri); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 19959: Statistics* stats, OpType op_type) { 19959: if (IsRateLimited(op_type)) { 19959: Request(bytes, pri, stats); 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual size_t RequestToken(size_t bytes, size_t alignment, 19959: Env::IOPriority io_priority, Statistics* stats, 19959: RateLimiter::OpType op_type); 19959: 19959: 19959: virtual int64_t GetSingleBurstBytes() const = 0; 19959: 19959: 19959: virtual int64_t GetTotalBytesThrough( 19959: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 19959: 19959: 19959: virtual int64_t GetTotalRequests( 19959: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status GetTotalPendingRequests( 19959: int64_t* total_pending_requests, 19959: const Env::IOPriority pri = Env::IO_TOTAL) const { 19959: 19959: # 115 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 3 4 19959: (static_cast ( 19959: # 115 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 19959: total_pending_requests != nullptr 19959: # 115 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 115 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 19959: "total_pending_requests != nullptr" 19959: # 115 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 3 4 19959: , "./include/rocksdb/rate_limiter.h", 115, __extension__ __PRETTY_FUNCTION__)) 19959: # 115 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 19959: ; 19959: (void)total_pending_requests; 19959: (void)pri; 19959: return Status::NotSupported(); 19959: } 19959: 19959: virtual int64_t GetBytesPerSecond() const = 0; 19959: 19959: virtual bool IsRateLimited(OpType op_type) { 19959: if ((mode_ == RateLimiter::Mode::kWritesOnly && 19959: op_type == RateLimiter::OpType::kRead) || 19959: (mode_ == RateLimiter::Mode::kReadsOnly && 19959: op_type == RateLimiter::OpType::kWrite)) { 19959: return false; 19959: } 19959: return true; 19959: } 19959: 19959: protected: 19959: Mode GetMode() { return mode_; } 19959: 19959: private: 19959: const Mode mode_; 19959: }; 19959: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 19959: extern RateLimiter* NewGenericRateLimiter( 19959: int64_t rate_bytes_per_sec, int64_t refill_period_us = 100 * 1000, 19959: int32_t fairness = 10, 19959: RateLimiter::Mode mode = RateLimiter::Mode::kWritesOnly, 19959: bool auto_tuned = false); 19959: 19959: } 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/file/random_access_file_reader.h" 2 19959: 19959: 19959: namespace rocksdb { 19959: class Statistics; 19959: class HistogramImpl; 19959: class SystemClock; 19959: 19959: using AlignedBuf = std::unique_ptr; 19959: 19959: 19959: FSReadRequest Align(const FSReadRequest& r, size_t alignment); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool TryMerge(FSReadRequest* dest, const FSReadRequest& src); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class RandomAccessFileReader { 19959: private: 19959: void NotifyOnFileReadFinish( 19959: uint64_t offset, size_t length, 19959: const FileOperationInfo::StartTimePoint& start_ts, 19959: const FileOperationInfo::FinishTimePoint& finish_ts, 19959: const Status& status) const { 19959: FileOperationInfo info(FileOperationType::kRead, file_name_, start_ts, 19959: finish_ts, status, file_temperature_); 19959: info.offset = offset; 19959: info.length = length; 19959: 19959: for (auto& listener : listeners_) { 19959: listener->OnFileReadFinish(info); 19959: } 19959: info.status.PermitUncheckedError(); 19959: } 19959: 19959: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 19959: const std::string& file_path, size_t length, 19959: uint64_t offset) const { 19959: if (listeners_.empty()) { 19959: return; 19959: } 19959: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 19959: 19959: for (auto& listener : listeners_) { 19959: listener->OnIOError(io_error_info); 19959: } 19959: io_status.PermitUncheckedError(); 19959: } 19959: 19959: 19959: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 19959: 19959: FSRandomAccessFilePtr file_; 19959: std::string file_name_; 19959: SystemClock* clock_; 19959: Statistics* stats_; 19959: uint32_t hist_type_; 19959: HistogramImpl* file_read_hist_; 19959: RateLimiter* rate_limiter_; 19959: std::vector> listeners_; 19959: const Temperature file_temperature_; 19959: const bool is_last_level_; 19959: 19959: struct ReadAsyncInfo { 19959: ReadAsyncInfo(std::function cb, 19959: void* cb_arg, uint64_t start_time) 19959: : cb_(cb), 19959: cb_arg_(cb_arg), 19959: start_time_(start_time), 19959: user_scratch_(nullptr), 19959: user_aligned_buf_(nullptr), 19959: user_offset_(0), 19959: user_len_(0), 19959: is_aligned_(false) {} 19959: 19959: std::function cb_; 19959: void* cb_arg_; 19959: uint64_t start_time_; 19959: FileOperationInfo::StartTimePoint fs_start_ts_; 19959: 19959: char* user_scratch_; 19959: AlignedBuf* user_aligned_buf_; 19959: uint64_t user_offset_; 19959: size_t user_len_; 19959: Slice user_result_; 19959: 19959: AlignedBuffer buf_; 19959: bool is_aligned_; 19959: }; 19959: 19959: public: 19959: explicit RandomAccessFileReader( 19959: std::unique_ptr&& raf, const std::string& _file_name, 19959: SystemClock* clock = nullptr, 19959: const std::shared_ptr& io_tracer = nullptr, 19959: Statistics* stats = nullptr, 19959: uint32_t hist_type = Histograms::HISTOGRAM_ENUM_MAX, 19959: HistogramImpl* file_read_hist = nullptr, 19959: RateLimiter* rate_limiter = nullptr, 19959: const std::vector>& listeners = {}, 19959: Temperature file_temperature = Temperature::kUnknown, 19959: bool is_last_level = false) 19959: : file_(std::move(raf), io_tracer, _file_name), 19959: file_name_(std::move(_file_name)), 19959: clock_(clock), 19959: stats_(stats), 19959: hist_type_(hist_type), 19959: file_read_hist_(file_read_hist), 19959: rate_limiter_(rate_limiter), 19959: listeners_(), 19959: file_temperature_(file_temperature), 19959: is_last_level_(is_last_level) { 19959: std::for_each(listeners.begin(), listeners.end(), 19959: [this](const std::shared_ptr& e) { 19959: if (e->ShouldBeNotifiedOnFileIO()) { 19959: listeners_.emplace_back(e); 19959: } 19959: }); 19959: } 19959: 19959: static IOStatus Create(const std::shared_ptr& fs, 19959: const std::string& fname, const FileOptions& file_opts, 19959: std::unique_ptr* reader, 19959: IODebugContext* dbg); 19959: RandomAccessFileReader(const RandomAccessFileReader&) = delete; 19959: RandomAccessFileReader& operator=(const RandomAccessFileReader&) = delete; 19959: # 167 "/build/reproducible-path/rocksdb-8.9.1/file/random_access_file_reader.h" 19959: IOStatus Read(const IOOptions& opts, uint64_t offset, size_t n, Slice* result, 19959: char* scratch, AlignedBuf* aligned_buf) const; 19959: 19959: 19959: 19959: 19959: 19959: 19959: IOStatus MultiRead(const IOOptions& opts, FSReadRequest* reqs, 19959: size_t num_reqs, AlignedBuf* aligned_buf) const; 19959: 19959: IOStatus Prefetch(const IOOptions& opts, uint64_t offset, size_t n) const { 19959: return file_->Prefetch(offset, n, opts, nullptr); 19959: } 19959: 19959: FSRandomAccessFile* file() { return file_.get(); } 19959: 19959: const std::string& file_name() const { return file_name_; } 19959: 19959: bool use_direct_io() const { return file_->use_direct_io(); } 19959: 19959: IOStatus PrepareIOOptions(const ReadOptions& ro, IOOptions& opts) const; 19959: 19959: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 19959: std::function cb, 19959: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 19959: AlignedBuf* aligned_buf); 19959: 19959: void ReadAsyncCallback(const FSReadRequest& req, void* cb_arg); 19959: }; 19959: } 19959: # 18 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/memory/memory_allocator_impl.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: struct CustomDeleter { 19959: CustomDeleter(MemoryAllocator* a = nullptr) : allocator(a) {} 19959: 19959: void operator()(char* ptr) const { 19959: if (allocator) { 19959: allocator->Deallocate(reinterpret_cast(ptr)); 19959: } else { 19959: delete[] ptr; 19959: } 19959: } 19959: 19959: MemoryAllocator* allocator; 19959: }; 19959: 19959: using CacheAllocationPtr = std::unique_ptr; 19959: 19959: inline CacheAllocationPtr AllocateBlock(size_t size, 19959: MemoryAllocator* allocator) { 19959: if (allocator) { 19959: auto block = reinterpret_cast(allocator->Allocate(size)); 19959: return CacheAllocationPtr(block, allocator); 19959: } 19959: return CacheAllocationPtr(new char[size]); 19959: } 19959: 19959: inline CacheAllocationPtr AllocateAndCopyBlock(const Slice& data, 19959: MemoryAllocator* allocator) { 19959: CacheAllocationPtr cap = AllocateBlock(data.size(), allocator); 19959: std::copy_n(data.data(), data.size(), cap.get()); 19959: return cap; 19959: } 19959: 19959: } 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/options/cf_options.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/options/db_options.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: class SystemClock; 19959: 19959: struct ImmutableDBOptions { 19959: static const char* kName() { return "ImmutableDBOptions"; } 19959: ImmutableDBOptions(); 19959: explicit ImmutableDBOptions(const DBOptions& options); 19959: 19959: void Dump(Logger* log) const; 19959: 19959: bool create_if_missing; 19959: bool create_missing_column_families; 19959: bool error_if_exists; 19959: bool paranoid_checks; 19959: bool flush_verify_memtable_count; 19959: bool compaction_verify_record_count; 19959: bool track_and_verify_wals_in_manifest; 19959: bool verify_sst_unique_id_in_manifest; 19959: Env* env; 19959: std::shared_ptr rate_limiter; 19959: std::shared_ptr sst_file_manager; 19959: std::shared_ptr info_log; 19959: InfoLogLevel info_log_level; 19959: int max_file_opening_threads; 19959: std::shared_ptr statistics; 19959: bool use_fsync; 19959: std::vector db_paths; 19959: std::string db_log_dir; 19959: 19959: 19959: 19959: std::string wal_dir; 19959: size_t max_log_file_size; 19959: size_t log_file_time_to_roll; 19959: size_t keep_log_file_num; 19959: size_t recycle_log_file_num; 19959: uint64_t max_manifest_file_size; 19959: int table_cache_numshardbits; 19959: uint64_t WAL_ttl_seconds; 19959: uint64_t WAL_size_limit_MB; 19959: uint64_t max_write_batch_group_size_bytes; 19959: size_t manifest_preallocation_size; 19959: bool allow_mmap_reads; 19959: bool allow_mmap_writes; 19959: bool use_direct_reads; 19959: bool use_direct_io_for_flush_and_compaction; 19959: bool allow_fallocate; 19959: bool is_fd_close_on_exec; 19959: bool advise_random_on_open; 19959: size_t db_write_buffer_size; 19959: std::shared_ptr write_buffer_manager; 19959: DBOptions::AccessHint access_hint_on_compaction_start; 19959: size_t random_access_max_buffer_size; 19959: bool use_adaptive_mutex; 19959: std::vector> listeners; 19959: bool enable_thread_tracking; 19959: bool enable_pipelined_write; 19959: bool unordered_write; 19959: bool allow_concurrent_memtable_write; 19959: bool enable_write_thread_adaptive_yield; 19959: uint64_t write_thread_max_yield_usec; 19959: uint64_t write_thread_slow_yield_usec; 19959: bool skip_stats_update_on_db_open; 19959: bool skip_checking_sst_file_sizes_on_db_open; 19959: WALRecoveryMode wal_recovery_mode; 19959: bool allow_2pc; 19959: std::shared_ptr row_cache; 19959: WalFilter* wal_filter; 19959: bool fail_if_options_file_error; 19959: bool dump_malloc_stats; 19959: bool avoid_flush_during_recovery; 19959: bool allow_ingest_behind; 19959: bool two_write_queues; 19959: bool manual_wal_flush; 19959: CompressionType wal_compression; 19959: bool atomic_flush; 19959: bool avoid_unnecessary_blocking_io; 19959: bool persist_stats_to_disk; 19959: bool write_dbid_to_manifest; 19959: size_t log_readahead_size; 19959: std::shared_ptr file_checksum_gen_factory; 19959: bool best_efforts_recovery; 19959: int max_bgerror_resume_count; 19959: uint64_t bgerror_resume_retry_interval; 19959: bool allow_data_in_errors; 19959: std::string db_host_id; 19959: FileTypeSet checksum_handoff_file_types; 19959: CacheTier lowest_used_cache_tier; 19959: 19959: std::shared_ptr fs; 19959: SystemClock* clock; 19959: Statistics* stats; 19959: Logger* logger; 19959: std::shared_ptr compaction_service; 19959: bool enforce_single_del_contracts; 19959: 19959: bool IsWalDirSameAsDBPath() const; 19959: bool IsWalDirSameAsDBPath(const std::string& path) const; 19959: const std::string& GetWalDir() const; 19959: const std::string& GetWalDir(const std::string& path) const; 19959: }; 19959: 19959: struct MutableDBOptions { 19959: static const char* kName() { return "MutableDBOptions"; } 19959: MutableDBOptions(); 19959: explicit MutableDBOptions(const DBOptions& options); 19959: 19959: void Dump(Logger* log) const; 19959: 19959: int max_background_jobs; 19959: int max_background_compactions; 19959: uint32_t max_subcompactions; 19959: bool avoid_flush_during_shutdown; 19959: size_t writable_file_max_buffer_size; 19959: uint64_t delayed_write_rate; 19959: uint64_t max_total_wal_size; 19959: uint64_t delete_obsolete_files_period_micros; 19959: unsigned int stats_dump_period_sec; 19959: unsigned int stats_persist_period_sec; 19959: size_t stats_history_buffer_size; 19959: int max_open_files; 19959: uint64_t bytes_per_sync; 19959: uint64_t wal_bytes_per_sync; 19959: bool strict_bytes_per_sync; 19959: size_t compaction_readahead_size; 19959: int max_background_flushes; 19959: std::string daily_offpeak_time_utc; 19959: }; 19959: 19959: Status GetStringFromMutableDBOptions(const ConfigOptions& config_options, 19959: const MutableDBOptions& mutable_opts, 19959: std::string* opt_string); 19959: 19959: Status GetMutableDBOptionsFromStrings( 19959: const MutableDBOptions& base_options, 19959: const std::unordered_map& options_map, 19959: MutableDBOptions* new_options); 19959: 19959: bool MutableDBOptionsAreEqual(const MutableDBOptions& this_options, 19959: const MutableDBOptions& that_options); 19959: 19959: } 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/options/cf_options.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/malloc.h" 1 3 4 19959: # 24 "/usr/include/malloc.h" 3 4 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 25 "/usr/include/malloc.h" 2 3 4 19959: # 36 "/usr/include/malloc.h" 3 4 19959: 19959: # 36 "/usr/include/malloc.h" 3 4 19959: extern "C" { 19959: 19959: 19959: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 19959: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: extern void *calloc (size_t __nmemb, size_t __size) 19959: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern void *realloc (void *__ptr, size_t __size) 19959: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 19959: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2, 3))) 19959: __attribute__ ((__malloc__ (__builtin_free, 1))); 19959: 19959: 19959: extern void free (void *__ptr) noexcept (true); 19959: 19959: 19959: extern void *memalign (size_t __alignment, size_t __size) 19959: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 19959: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 19959: 19959: 19959: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 19959: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 19959: 19959: 19959: 19959: extern void *pvalloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 19959: 19959: 19959: 19959: struct mallinfo 19959: { 19959: int arena; 19959: int ordblks; 19959: int smblks; 19959: int hblks; 19959: int hblkhd; 19959: int usmblks; 19959: int fsmblks; 19959: int uordblks; 19959: int fordblks; 19959: int keepcost; 19959: }; 19959: 19959: 19959: 19959: 19959: struct mallinfo2 19959: { 19959: size_t arena; 19959: size_t ordblks; 19959: size_t smblks; 19959: size_t hblks; 19959: size_t hblkhd; 19959: size_t usmblks; 19959: size_t fsmblks; 19959: size_t uordblks; 19959: size_t fordblks; 19959: size_t keepcost; 19959: }; 19959: 19959: 19959: extern struct mallinfo mallinfo (void) noexcept (true) __attribute__ ((__deprecated__)); 19959: 19959: 19959: extern struct mallinfo2 mallinfo2 (void) noexcept (true); 19959: # 144 "/usr/include/malloc.h" 3 4 19959: extern int mallopt (int __param, int __val) noexcept (true); 19959: 19959: 19959: 19959: extern int malloc_trim (size_t __pad) noexcept (true); 19959: 19959: 19959: 19959: extern size_t malloc_usable_size (void *__ptr) noexcept (true); 19959: 19959: 19959: extern void malloc_stats (void) noexcept (true); 19959: 19959: 19959: extern int malloc_info (int __options, FILE *__fp) noexcept (true); 19959: 19959: } 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/block_based/block_type.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/table/block_based/block_type.h" 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: 19959: enum class BlockType : uint8_t { 19959: kData, 19959: kFilter, 19959: kFilterPartitionIndex, 19959: kProperties, 19959: kCompressionDictionary, 19959: kRangeDeletion, 19959: kHashIndexPrefixes, 19959: kHashIndexMetadata, 19959: kMetaIndex, 19959: kIndex, 19959: 19959: kInvalid 19959: }; 19959: 19959: } 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/assert.h" 1 3 4 19959: # 8 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 2 19959: # 24 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct KillPoint { 19959: public: 19959: 19959: 19959: int rocksdb_kill_odds = 0; 19959: 19959: std::vector rocksdb_kill_exclude_prefixes; 19959: 19959: void TestKillRandom(std::string kill_point, int odds, 19959: const std::string& srcfile, int srcline); 19959: 19959: static KillPoint* GetInstance(); 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 63 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 19959: namespace rocksdb { 19959: # 74 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 19959: class SyncPoint { 19959: public: 19959: static SyncPoint* GetInstance(); 19959: 19959: SyncPoint(const SyncPoint&) = delete; 19959: SyncPoint& operator=(const SyncPoint&) = delete; 19959: ~SyncPoint(); 19959: 19959: struct SyncPointPair { 19959: std::string predecessor; 19959: std::string successor; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: void LoadDependency(const std::vector& dependencies); 19959: 19959: 19959: 19959: 19959: 19959: void LoadDependencyAndMarkers(const std::vector& dependencies, 19959: const std::vector& markers); 19959: 19959: 19959: 19959: 19959: void SetCallBack(const std::string& point, 19959: const std::function& callback); 19959: 19959: 19959: void ClearCallBack(const std::string& point); 19959: 19959: 19959: void ClearAllCallBacks(); 19959: 19959: 19959: void EnableProcessing(); 19959: 19959: 19959: void DisableProcessing(); 19959: 19959: 19959: void ClearTrace(); 19959: 19959: 19959: 19959: 19959: void Process(const Slice& point, void* cb_arg = nullptr); 19959: 19959: 19959: 19959: template 19959: void Process(const char (&point)[kLen], void* cb_arg = nullptr) { 19959: static_assert(kLen > 0, "Must not be empty"); 19959: 19959: # 131 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 3 4 19959: (static_cast ( 19959: # 131 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 19959: point[kLen - 1] == '\0' 19959: # 131 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 131 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 19959: "point[kLen - 1] == '\\0'" 19959: # 131 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 3 4 19959: , "./test_util/sync_point.h", 131, __extension__ __PRETTY_FUNCTION__)) 19959: # 131 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 19959: ; 19959: Process(Slice(point, kLen - 1), cb_arg); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct Data; 19959: 19959: private: 19959: 19959: SyncPoint(); 19959: Data* impl_; 19959: }; 19959: 19959: 19959: 19959: void SetupSyncPointsToMockDirectIO(); 19959: } 19959: # 28 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/compression_context_cache.h" 1 19959: # 18 "/build/reproducible-path/rocksdb-8.9.1/util/compression_context_cache.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: class ZSTDUncompressCachedData; 19959: 19959: class CompressionContextCache { 19959: public: 19959: 19959: static CompressionContextCache* Instance(); 19959: static void InitSingleton(); 19959: CompressionContextCache(const CompressionContextCache&) = delete; 19959: CompressionContextCache& operator=(const CompressionContextCache&) = delete; 19959: 19959: ZSTDUncompressCachedData GetCachedZSTDUncompressData(); 19959: void ReturnCachedZSTDUncompressData(int64_t idx); 19959: 19959: private: 19959: 19959: CompressionContextCache(); 19959: ~CompressionContextCache(); 19959: 19959: class Rep; 19959: Rep* rep_; 19959: }; 19959: 19959: } 19959: # 30 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/string_util.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/util/string_util.h" 19959: namespace rocksdb { 19959: 19959: class Slice; 19959: 19959: extern std::vector StringSplit(const std::string& arg, char delim); 19959: 19959: 19959: extern void AppendNumberTo(std::string* str, uint64_t num); 19959: 19959: 19959: 19959: extern void AppendEscapedStringTo(std::string* str, const Slice& value); 19959: 19959: 19959: 19959: template 19959: inline void PutBaseChars(char** buf, size_t n, uint64_t v, bool uppercase) { 19959: const char* digitChars = uppercase ? "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" 19959: : "0123456789abcdefghijklmnopqrstuvwxyz"; 19959: for (size_t i = n; i > 0; --i) { 19959: (*buf)[i - 1] = digitChars[static_cast(v % kBase)]; 19959: v /= kBase; 19959: } 19959: *buf += n; 19959: } 19959: # 52 "/build/reproducible-path/rocksdb-8.9.1/util/string_util.h" 19959: template 19959: inline bool ParseBaseChars(const char** buf, size_t n, uint64_t* v) { 19959: while (n) { 19959: char c = **buf; 19959: *v *= static_cast(kBase); 19959: if (c >= '0' && (kBase >= 10 ? c <= '9' : c < '0' + kBase)) { 19959: *v += static_cast(c - '0'); 19959: } else if (kBase > 10 && c >= 'A' && c < 'A' + kBase - 10) { 19959: *v += static_cast(c - 'A' + 10); 19959: } else if (kBase > 10 && c >= 'a' && c < 'a' + kBase - 10) { 19959: *v += static_cast(c - 'a' + 10); 19959: } else { 19959: return false; 19959: } 19959: --n; 19959: ++*buf; 19959: } 19959: return true; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: extern std::string NumberToHumanString(int64_t num); 19959: 19959: 19959: 19959: extern std::string BytesToHumanString(uint64_t bytes); 19959: 19959: 19959: 19959: extern std::string TimeToHumanString(int unixtime); 19959: 19959: 19959: int AppendHumanMicros(uint64_t micros, char* output, int len, 19959: bool fixed_format); 19959: 19959: 19959: int AppendHumanBytes(uint64_t bytes, char* output, int len); 19959: 19959: 19959: 19959: extern std::string EscapeString(const Slice& value); 19959: 19959: 19959: 19959: 19959: 19959: extern bool ConsumeDecimalNumber(Slice* in, uint64_t* val); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool isSpecialChar(const char c); 19959: 19959: 19959: 19959: 19959: char UnescapeChar(const char c); 19959: 19959: 19959: 19959: 19959: char EscapeChar(const char c); 19959: # 130 "/build/reproducible-path/rocksdb-8.9.1/util/string_util.h" 19959: std::string EscapeOptionString(const std::string& raw_string); 19959: 19959: 19959: 19959: 19959: 19959: 19959: std::string UnescapeOptionString(const std::string& escaped_string); 19959: 19959: std::string trim(const std::string& str); 19959: 19959: 19959: bool EndsWith(const std::string& string, const std::string& pattern); 19959: 19959: 19959: bool StartsWith(const std::string& string, const std::string& pattern); 19959: 19959: bool ParseBoolean(const std::string& type, const std::string& value); 19959: 19959: uint8_t ParseUint8(const std::string& value); 19959: 19959: uint32_t ParseUint32(const std::string& value); 19959: 19959: int32_t ParseInt32(const std::string& value); 19959: 19959: uint64_t ParseUint64(const std::string& value); 19959: 19959: int ParseInt(const std::string& value); 19959: 19959: int64_t ParseInt64(const std::string& value); 19959: 19959: double ParseDouble(const std::string& value); 19959: 19959: size_t ParseSizeT(const std::string& value); 19959: 19959: std::vector ParseVectorInt(const std::string& value); 19959: 19959: bool SerializeIntVector(const std::vector& vec, std::string* value); 19959: 19959: 19959: 19959: int ParseTimeStringToSeconds(const std::string& value); 19959: 19959: 19959: 19959: 19959: bool TryParseTimeRangeString(const std::string& value, int& start_time, 19959: int& end_time); 19959: 19959: extern const std::string kNullptrString; 19959: 19959: 19959: 19959: extern std::string errnoStr(int err); 19959: 19959: } 19959: # 31 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 19959: 19959: 19959: # 1 "/usr/include/snappy.h" 1 3 4 19959: # 42 "/usr/include/snappy.h" 3 4 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 43 "/usr/include/snappy.h" 2 3 4 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/snappy-stubs-public.h" 1 3 4 19959: # 41 "/usr/include/snappy-stubs-public.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 1 3 4 19959: # 23 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 1 3 4 19959: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 2 3 4 19959: 19959: 19959: 19959: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 19959: struct iovec 19959: { 19959: void *iov_base; 19959: size_t iov_len; 19959: }; 19959: # 24 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern "C" { 19959: # 41 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 19959: extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 19959: # 52 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 19959: extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 19959: # 67 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 19959: extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, 19959: __off_t __offset) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 19959: # 80 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 19959: extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, 19959: __off_t __offset) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 19959: # 110 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 19959: extern ssize_t preadv64 (int __fd, const struct iovec *__iovec, int __count, 19959: __off64_t __offset) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 19959: # 123 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 19959: extern ssize_t pwritev64 (int __fd, const struct iovec *__iovec, int __count, 19959: __off64_t __offset) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern ssize_t preadv2 (int __fp, const struct iovec *__iovec, int __count, 19959: __off_t __offset, int ___flags) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 19959: 19959: 19959: extern ssize_t pwritev2 (int __fd, const struct iovec *__iodev, int __count, 19959: __off_t __offset, int __flags) __attribute__ ((__warn_unused_result__)); 19959: # 161 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 19959: extern ssize_t preadv64v2 (int __fp, const struct iovec *__iovec, 19959: int __count, __off64_t __offset, 19959: int ___flags) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 19959: 19959: 19959: extern ssize_t pwritev64v2 (int __fd, const struct iovec *__iodev, 19959: int __count, __off64_t __offset, 19959: int __flags) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 1 3 4 19959: # 26 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 19959: extern "C" { 19959: 19959: 19959: extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, 19959: unsigned long int __liovcnt, 19959: const struct iovec *__rvec, 19959: unsigned long int __riovcnt, 19959: unsigned long int __flags) 19959: noexcept (true); 19959: 19959: 19959: extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, 19959: unsigned long int __liovcnt, 19959: const struct iovec *__rvec, 19959: unsigned long int __riovcnt, 19959: unsigned long int __flags) 19959: noexcept (true); 19959: # 51 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 19959: } 19959: # 180 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 19959: # 42 "/usr/include/snappy-stubs-public.h" 2 3 4 19959: # 50 "/usr/include/snappy-stubs-public.h" 3 4 19959: namespace snappy { 19959: # 61 "/usr/include/snappy-stubs-public.h" 3 4 19959: } 19959: # 48 "/usr/include/snappy.h" 2 3 4 19959: 19959: namespace snappy { 19959: class Source; 19959: class Sink; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t Compress(Source* source, Sink* sink); 19959: # 68 "/usr/include/snappy.h" 3 4 19959: bool GetUncompressedLength(Source* source, uint32_t* result); 19959: # 78 "/usr/include/snappy.h" 3 4 19959: size_t Compress(const char* input, size_t input_length, 19959: std::string* compressed); 19959: 19959: 19959: 19959: 19959: 19959: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 19959: std::string* compressed); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool Uncompress(const char* compressed, size_t compressed_length, 19959: std::string* uncompressed); 19959: 19959: 19959: 19959: 19959: bool Uncompress(Source* compressed, Sink* uncompressed); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t UncompressAsMuchAsPossible(Source* compressed, Sink* uncompressed); 19959: # 129 "/usr/include/snappy.h" 3 4 19959: void RawCompress(const char* input, 19959: size_t input_length, 19959: char* compressed, 19959: size_t* compressed_length); 19959: 19959: 19959: 19959: 19959: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 19959: char* compressed, size_t* compressed_length); 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool RawUncompress(const char* compressed, size_t compressed_length, 19959: char* uncompressed); 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool RawUncompress(Source* compressed, char* uncompressed); 19959: # 163 "/usr/include/snappy.h" 3 4 19959: bool RawUncompressToIOVec(const char* compressed, size_t compressed_length, 19959: const struct iovec* iov, size_t iov_cnt); 19959: # 174 "/usr/include/snappy.h" 3 4 19959: bool RawUncompressToIOVec(Source* compressed, const struct iovec* iov, 19959: size_t iov_cnt); 19959: 19959: 19959: 19959: size_t MaxCompressedLength(size_t source_bytes); 19959: 19959: 19959: 19959: 19959: 19959: bool GetUncompressedLength(const char* compressed, size_t compressed_length, 19959: size_t* result); 19959: 19959: 19959: 19959: 19959: 19959: bool IsValidCompressedBuffer(const char* compressed, 19959: size_t compressed_length); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool IsValidCompressed(Source* compressed); 19959: # 212 "/usr/include/snappy.h" 3 4 19959: static constexpr int kBlockLog = 16; 19959: static constexpr size_t kBlockSize = 1 << kBlockLog; 19959: 19959: static constexpr int kMinHashTableBits = 8; 19959: static constexpr size_t kMinHashTableSize = 1 << kMinHashTableBits; 19959: 19959: static constexpr int kMaxHashTableBits = 14; 19959: static constexpr size_t kMaxHashTableSize = 1 << kMaxHashTableBits; 19959: } 19959: # 34 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 19959: 19959: 19959: 19959: # 1 "/usr/include/zlib.h" 1 3 4 19959: # 34 "/usr/include/zlib.h" 3 4 19959: # 1 "/usr/include/zconf.h" 1 3 4 19959: # 254 "/usr/include/zconf.h" 3 4 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 255 "/usr/include/zconf.h" 2 3 4 19959: typedef size_t z_size_t; 19959: # 401 "/usr/include/zconf.h" 3 4 19959: typedef unsigned char Byte; 19959: 19959: typedef unsigned int uInt; 19959: typedef unsigned long uLong; 19959: 19959: 19959: 19959: 19959: 19959: typedef Byte Bytef; 19959: 19959: typedef char charf; 19959: typedef int intf; 19959: typedef uInt uIntf; 19959: typedef uLong uLongf; 19959: 19959: 19959: typedef void const *voidpc; 19959: typedef void *voidpf; 19959: typedef void *voidp; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 1 3 4 19959: # 429 "/usr/include/zconf.h" 2 3 4 19959: # 439 "/usr/include/zconf.h" 3 4 19959: typedef unsigned z_crc_t; 19959: # 492 "/usr/include/zconf.h" 3 4 19959: # 1 "/usr/include/unistd.h" 1 3 4 19959: # 27 "/usr/include/unistd.h" 3 4 19959: extern "C" { 19959: # 202 "/usr/include/unistd.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix_opt.h" 1 3 4 19959: # 203 "/usr/include/unistd.h" 2 3 4 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 1 3 4 19959: # 22 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 19959: # 23 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 2 3 4 19959: # 207 "/usr/include/unistd.h" 2 3 4 19959: # 226 "/usr/include/unistd.h" 3 4 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 227 "/usr/include/unistd.h" 2 3 4 19959: # 274 "/usr/include/unistd.h" 3 4 19959: typedef __socklen_t socklen_t; 19959: # 287 "/usr/include/unistd.h" 3 4 19959: extern int access (const char *__name, int __type) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: extern int euidaccess (const char *__name, int __type) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int eaccess (const char *__name, int __type) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int execveat (int __fd, const char *__path, char *const __argv[], 19959: char *const __envp[], int __flags) 19959: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int faccessat (int __fd, const char *__file, int __type, int __flag) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 19959: # 339 "/usr/include/unistd.h" 3 4 19959: extern __off_t lseek (int __fd, __off_t __offset, int __whence) noexcept (true); 19959: # 350 "/usr/include/unistd.h" 3 4 19959: extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) 19959: noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int close (int __fd); 19959: 19959: 19959: 19959: 19959: extern void closefrom (int __lowfd) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: 19959: 19959: 19959: 19959: 19959: extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__read_only__, 2, 3))); 19959: # 389 "/usr/include/unistd.h" 3 4 19959: extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, 19959: __off_t __offset) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern ssize_t pwrite (int __fd, const void *__buf, size_t __n, 19959: __off_t __offset) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__read_only__, 2, 3))); 19959: # 422 "/usr/include/unistd.h" 3 4 19959: extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, 19959: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: 19959: 19959: extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, 19959: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__read_only__, 2, 3))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int pipe (int __pipedes[2]) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern int pipe2 (int __pipedes[2], int __flags) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: # 452 "/usr/include/unistd.h" 3 4 19959: extern unsigned int alarm (unsigned int __seconds) noexcept (true); 19959: # 464 "/usr/include/unistd.h" 3 4 19959: extern unsigned int sleep (unsigned int __seconds); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) 19959: noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int usleep (__useconds_t __useconds); 19959: # 489 "/usr/include/unistd.h" 3 4 19959: extern int pause (void); 19959: 19959: 19959: 19959: extern int chown (const char *__file, __uid_t __owner, __gid_t __group) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: extern int fchown (int __fd, __uid_t __owner, __gid_t __group) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int fchownat (int __fd, const char *__file, __uid_t __owner, 19959: __gid_t __group, int __flag) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: extern int chdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: extern int fchdir (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: # 531 "/usr/include/unistd.h" 3 4 19959: extern char *getcwd (char *__buf, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: extern char *get_current_dir_name (void) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern char *getwd (char *__buf) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__write_only__, 1))); 19959: 19959: 19959: 19959: 19959: extern int dup (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: extern int dup2 (int __fd, int __fd2) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int dup3 (int __fd, int __fd2, int __flags) noexcept (true); 19959: 19959: 19959: 19959: extern char **__environ; 19959: 19959: extern char **environ; 19959: 19959: 19959: 19959: 19959: 19959: extern int execve (const char *__path, char *const __argv[], 19959: char *const __envp[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: 19959: extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: 19959: 19959: extern int execv (const char *__path, char *const __argv[]) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: extern int execle (const char *__path, const char *__arg, ...) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: extern int execl (const char *__path, const char *__arg, ...) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: extern int execvp (const char *__file, char *const __argv[]) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: 19959: extern int execlp (const char *__file, const char *__arg, ...) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: 19959: extern int execvpe (const char *__file, char *const __argv[], 19959: char *const __envp[]) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: 19959: 19959: extern int nice (int __inc) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern void _exit (int __status) __attribute__ ((__noreturn__)); 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 3 4 19959: enum 19959: { 19959: _PC_LINK_MAX, 19959: 19959: _PC_MAX_CANON, 19959: 19959: _PC_MAX_INPUT, 19959: 19959: _PC_NAME_MAX, 19959: 19959: _PC_PATH_MAX, 19959: 19959: _PC_PIPE_BUF, 19959: 19959: _PC_CHOWN_RESTRICTED, 19959: 19959: _PC_NO_TRUNC, 19959: 19959: _PC_VDISABLE, 19959: 19959: _PC_SYNC_IO, 19959: 19959: _PC_ASYNC_IO, 19959: 19959: _PC_PRIO_IO, 19959: 19959: _PC_SOCK_MAXBUF, 19959: 19959: _PC_FILESIZEBITS, 19959: 19959: _PC_REC_INCR_XFER_SIZE, 19959: 19959: _PC_REC_MAX_XFER_SIZE, 19959: 19959: _PC_REC_MIN_XFER_SIZE, 19959: 19959: _PC_REC_XFER_ALIGN, 19959: 19959: _PC_ALLOC_SIZE_MIN, 19959: 19959: _PC_SYMLINK_MAX, 19959: 19959: _PC_2_SYMLINKS 19959: 19959: }; 19959: 19959: 19959: enum 19959: { 19959: _SC_ARG_MAX, 19959: 19959: _SC_CHILD_MAX, 19959: 19959: _SC_CLK_TCK, 19959: 19959: _SC_NGROUPS_MAX, 19959: 19959: _SC_OPEN_MAX, 19959: 19959: _SC_STREAM_MAX, 19959: 19959: _SC_TZNAME_MAX, 19959: 19959: _SC_JOB_CONTROL, 19959: 19959: _SC_SAVED_IDS, 19959: 19959: _SC_REALTIME_SIGNALS, 19959: 19959: _SC_PRIORITY_SCHEDULING, 19959: 19959: _SC_TIMERS, 19959: 19959: _SC_ASYNCHRONOUS_IO, 19959: 19959: _SC_PRIORITIZED_IO, 19959: 19959: _SC_SYNCHRONIZED_IO, 19959: 19959: _SC_FSYNC, 19959: 19959: _SC_MAPPED_FILES, 19959: 19959: _SC_MEMLOCK, 19959: 19959: _SC_MEMLOCK_RANGE, 19959: 19959: _SC_MEMORY_PROTECTION, 19959: 19959: _SC_MESSAGE_PASSING, 19959: 19959: _SC_SEMAPHORES, 19959: 19959: _SC_SHARED_MEMORY_OBJECTS, 19959: 19959: _SC_AIO_LISTIO_MAX, 19959: 19959: _SC_AIO_MAX, 19959: 19959: _SC_AIO_PRIO_DELTA_MAX, 19959: 19959: _SC_DELAYTIMER_MAX, 19959: 19959: _SC_MQ_OPEN_MAX, 19959: 19959: _SC_MQ_PRIO_MAX, 19959: 19959: _SC_VERSION, 19959: 19959: _SC_PAGESIZE, 19959: 19959: 19959: _SC_RTSIG_MAX, 19959: 19959: _SC_SEM_NSEMS_MAX, 19959: 19959: _SC_SEM_VALUE_MAX, 19959: 19959: _SC_SIGQUEUE_MAX, 19959: 19959: _SC_TIMER_MAX, 19959: 19959: 19959: 19959: 19959: _SC_BC_BASE_MAX, 19959: 19959: _SC_BC_DIM_MAX, 19959: 19959: _SC_BC_SCALE_MAX, 19959: 19959: _SC_BC_STRING_MAX, 19959: 19959: _SC_COLL_WEIGHTS_MAX, 19959: 19959: _SC_EQUIV_CLASS_MAX, 19959: 19959: _SC_EXPR_NEST_MAX, 19959: 19959: _SC_LINE_MAX, 19959: 19959: _SC_RE_DUP_MAX, 19959: 19959: _SC_CHARCLASS_NAME_MAX, 19959: 19959: 19959: _SC_2_VERSION, 19959: 19959: _SC_2_C_BIND, 19959: 19959: _SC_2_C_DEV, 19959: 19959: _SC_2_FORT_DEV, 19959: 19959: _SC_2_FORT_RUN, 19959: 19959: _SC_2_SW_DEV, 19959: 19959: _SC_2_LOCALEDEF, 19959: 19959: 19959: _SC_PII, 19959: 19959: _SC_PII_XTI, 19959: 19959: _SC_PII_SOCKET, 19959: 19959: _SC_PII_INTERNET, 19959: 19959: _SC_PII_OSI, 19959: 19959: _SC_POLL, 19959: 19959: _SC_SELECT, 19959: 19959: _SC_UIO_MAXIOV, 19959: 19959: _SC_IOV_MAX = _SC_UIO_MAXIOV, 19959: 19959: _SC_PII_INTERNET_STREAM, 19959: 19959: _SC_PII_INTERNET_DGRAM, 19959: 19959: _SC_PII_OSI_COTS, 19959: 19959: _SC_PII_OSI_CLTS, 19959: 19959: _SC_PII_OSI_M, 19959: 19959: _SC_T_IOV_MAX, 19959: 19959: 19959: 19959: _SC_THREADS, 19959: 19959: _SC_THREAD_SAFE_FUNCTIONS, 19959: 19959: _SC_GETGR_R_SIZE_MAX, 19959: 19959: _SC_GETPW_R_SIZE_MAX, 19959: 19959: _SC_LOGIN_NAME_MAX, 19959: 19959: _SC_TTY_NAME_MAX, 19959: 19959: _SC_THREAD_DESTRUCTOR_ITERATIONS, 19959: 19959: _SC_THREAD_KEYS_MAX, 19959: 19959: _SC_THREAD_STACK_MIN, 19959: 19959: _SC_THREAD_THREADS_MAX, 19959: 19959: _SC_THREAD_ATTR_STACKADDR, 19959: 19959: _SC_THREAD_ATTR_STACKSIZE, 19959: 19959: _SC_THREAD_PRIORITY_SCHEDULING, 19959: 19959: _SC_THREAD_PRIO_INHERIT, 19959: 19959: _SC_THREAD_PRIO_PROTECT, 19959: 19959: _SC_THREAD_PROCESS_SHARED, 19959: 19959: 19959: _SC_NPROCESSORS_CONF, 19959: 19959: _SC_NPROCESSORS_ONLN, 19959: 19959: _SC_PHYS_PAGES, 19959: 19959: _SC_AVPHYS_PAGES, 19959: 19959: _SC_ATEXIT_MAX, 19959: 19959: _SC_PASS_MAX, 19959: 19959: 19959: _SC_XOPEN_VERSION, 19959: 19959: _SC_XOPEN_XCU_VERSION, 19959: 19959: _SC_XOPEN_UNIX, 19959: 19959: _SC_XOPEN_CRYPT, 19959: 19959: _SC_XOPEN_ENH_I18N, 19959: 19959: _SC_XOPEN_SHM, 19959: 19959: 19959: _SC_2_CHAR_TERM, 19959: 19959: _SC_2_C_VERSION, 19959: 19959: _SC_2_UPE, 19959: 19959: 19959: _SC_XOPEN_XPG2, 19959: 19959: _SC_XOPEN_XPG3, 19959: 19959: _SC_XOPEN_XPG4, 19959: 19959: 19959: _SC_CHAR_BIT, 19959: 19959: _SC_CHAR_MAX, 19959: 19959: _SC_CHAR_MIN, 19959: 19959: _SC_INT_MAX, 19959: 19959: _SC_INT_MIN, 19959: 19959: _SC_LONG_BIT, 19959: 19959: _SC_WORD_BIT, 19959: 19959: _SC_MB_LEN_MAX, 19959: 19959: _SC_NZERO, 19959: 19959: _SC_SSIZE_MAX, 19959: 19959: _SC_SCHAR_MAX, 19959: 19959: _SC_SCHAR_MIN, 19959: 19959: _SC_SHRT_MAX, 19959: 19959: _SC_SHRT_MIN, 19959: 19959: _SC_UCHAR_MAX, 19959: 19959: _SC_UINT_MAX, 19959: 19959: _SC_ULONG_MAX, 19959: 19959: _SC_USHRT_MAX, 19959: 19959: 19959: _SC_NL_ARGMAX, 19959: 19959: _SC_NL_LANGMAX, 19959: 19959: _SC_NL_MSGMAX, 19959: 19959: _SC_NL_NMAX, 19959: 19959: _SC_NL_SETMAX, 19959: 19959: _SC_NL_TEXTMAX, 19959: 19959: 19959: _SC_XBS5_ILP32_OFF32, 19959: 19959: _SC_XBS5_ILP32_OFFBIG, 19959: 19959: _SC_XBS5_LP64_OFF64, 19959: 19959: _SC_XBS5_LPBIG_OFFBIG, 19959: 19959: 19959: _SC_XOPEN_LEGACY, 19959: 19959: _SC_XOPEN_REALTIME, 19959: 19959: _SC_XOPEN_REALTIME_THREADS, 19959: 19959: 19959: _SC_ADVISORY_INFO, 19959: 19959: _SC_BARRIERS, 19959: 19959: _SC_BASE, 19959: 19959: _SC_C_LANG_SUPPORT, 19959: 19959: _SC_C_LANG_SUPPORT_R, 19959: 19959: _SC_CLOCK_SELECTION, 19959: 19959: _SC_CPUTIME, 19959: 19959: _SC_THREAD_CPUTIME, 19959: 19959: _SC_DEVICE_IO, 19959: 19959: _SC_DEVICE_SPECIFIC, 19959: 19959: _SC_DEVICE_SPECIFIC_R, 19959: 19959: _SC_FD_MGMT, 19959: 19959: _SC_FIFO, 19959: 19959: _SC_PIPE, 19959: 19959: _SC_FILE_ATTRIBUTES, 19959: 19959: _SC_FILE_LOCKING, 19959: 19959: _SC_FILE_SYSTEM, 19959: 19959: _SC_MONOTONIC_CLOCK, 19959: 19959: _SC_MULTI_PROCESS, 19959: 19959: _SC_SINGLE_PROCESS, 19959: 19959: _SC_NETWORKING, 19959: 19959: _SC_READER_WRITER_LOCKS, 19959: 19959: _SC_SPIN_LOCKS, 19959: 19959: _SC_REGEXP, 19959: 19959: _SC_REGEX_VERSION, 19959: 19959: _SC_SHELL, 19959: 19959: _SC_SIGNALS, 19959: 19959: _SC_SPAWN, 19959: 19959: _SC_SPORADIC_SERVER, 19959: 19959: _SC_THREAD_SPORADIC_SERVER, 19959: 19959: _SC_SYSTEM_DATABASE, 19959: 19959: _SC_SYSTEM_DATABASE_R, 19959: 19959: _SC_TIMEOUTS, 19959: 19959: _SC_TYPED_MEMORY_OBJECTS, 19959: 19959: _SC_USER_GROUPS, 19959: 19959: _SC_USER_GROUPS_R, 19959: 19959: _SC_2_PBS, 19959: 19959: _SC_2_PBS_ACCOUNTING, 19959: 19959: _SC_2_PBS_LOCATE, 19959: 19959: _SC_2_PBS_MESSAGE, 19959: 19959: _SC_2_PBS_TRACK, 19959: 19959: _SC_SYMLOOP_MAX, 19959: 19959: _SC_STREAMS, 19959: 19959: _SC_2_PBS_CHECKPOINT, 19959: 19959: 19959: _SC_V6_ILP32_OFF32, 19959: 19959: _SC_V6_ILP32_OFFBIG, 19959: 19959: _SC_V6_LP64_OFF64, 19959: 19959: _SC_V6_LPBIG_OFFBIG, 19959: 19959: 19959: _SC_HOST_NAME_MAX, 19959: 19959: _SC_TRACE, 19959: 19959: _SC_TRACE_EVENT_FILTER, 19959: 19959: _SC_TRACE_INHERIT, 19959: 19959: _SC_TRACE_LOG, 19959: 19959: 19959: _SC_LEVEL1_ICACHE_SIZE, 19959: 19959: _SC_LEVEL1_ICACHE_ASSOC, 19959: 19959: _SC_LEVEL1_ICACHE_LINESIZE, 19959: 19959: _SC_LEVEL1_DCACHE_SIZE, 19959: 19959: _SC_LEVEL1_DCACHE_ASSOC, 19959: 19959: _SC_LEVEL1_DCACHE_LINESIZE, 19959: 19959: _SC_LEVEL2_CACHE_SIZE, 19959: 19959: _SC_LEVEL2_CACHE_ASSOC, 19959: 19959: _SC_LEVEL2_CACHE_LINESIZE, 19959: 19959: _SC_LEVEL3_CACHE_SIZE, 19959: 19959: _SC_LEVEL3_CACHE_ASSOC, 19959: 19959: _SC_LEVEL3_CACHE_LINESIZE, 19959: 19959: _SC_LEVEL4_CACHE_SIZE, 19959: 19959: _SC_LEVEL4_CACHE_ASSOC, 19959: 19959: _SC_LEVEL4_CACHE_LINESIZE, 19959: 19959: 19959: 19959: _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, 19959: 19959: _SC_RAW_SOCKETS, 19959: 19959: 19959: _SC_V7_ILP32_OFF32, 19959: 19959: _SC_V7_ILP32_OFFBIG, 19959: 19959: _SC_V7_LP64_OFF64, 19959: 19959: _SC_V7_LPBIG_OFFBIG, 19959: 19959: 19959: _SC_SS_REPL_MAX, 19959: 19959: 19959: _SC_TRACE_EVENT_NAME_MAX, 19959: 19959: _SC_TRACE_NAME_MAX, 19959: 19959: _SC_TRACE_SYS_MAX, 19959: 19959: _SC_TRACE_USER_EVENT_MAX, 19959: 19959: 19959: _SC_XOPEN_STREAMS, 19959: 19959: 19959: _SC_THREAD_ROBUST_PRIO_INHERIT, 19959: 19959: _SC_THREAD_ROBUST_PRIO_PROTECT, 19959: 19959: 19959: _SC_MINSIGSTKSZ, 19959: 19959: 19959: _SC_SIGSTKSZ 19959: 19959: }; 19959: 19959: 19959: enum 19959: { 19959: _CS_PATH, 19959: 19959: 19959: _CS_V6_WIDTH_RESTRICTED_ENVS, 19959: 19959: 19959: 19959: _CS_GNU_LIBC_VERSION, 19959: 19959: _CS_GNU_LIBPTHREAD_VERSION, 19959: 19959: 19959: _CS_V5_WIDTH_RESTRICTED_ENVS, 19959: 19959: 19959: 19959: _CS_V7_WIDTH_RESTRICTED_ENVS, 19959: 19959: 19959: 19959: _CS_LFS_CFLAGS = 1000, 19959: 19959: _CS_LFS_LDFLAGS, 19959: 19959: _CS_LFS_LIBS, 19959: 19959: _CS_LFS_LINTFLAGS, 19959: 19959: _CS_LFS64_CFLAGS, 19959: 19959: _CS_LFS64_LDFLAGS, 19959: 19959: _CS_LFS64_LIBS, 19959: 19959: _CS_LFS64_LINTFLAGS, 19959: 19959: 19959: _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, 19959: 19959: _CS_XBS5_ILP32_OFF32_LDFLAGS, 19959: 19959: _CS_XBS5_ILP32_OFF32_LIBS, 19959: 19959: _CS_XBS5_ILP32_OFF32_LINTFLAGS, 19959: 19959: _CS_XBS5_ILP32_OFFBIG_CFLAGS, 19959: 19959: _CS_XBS5_ILP32_OFFBIG_LDFLAGS, 19959: 19959: _CS_XBS5_ILP32_OFFBIG_LIBS, 19959: 19959: _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, 19959: 19959: _CS_XBS5_LP64_OFF64_CFLAGS, 19959: 19959: _CS_XBS5_LP64_OFF64_LDFLAGS, 19959: 19959: _CS_XBS5_LP64_OFF64_LIBS, 19959: 19959: _CS_XBS5_LP64_OFF64_LINTFLAGS, 19959: 19959: _CS_XBS5_LPBIG_OFFBIG_CFLAGS, 19959: 19959: _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, 19959: 19959: _CS_XBS5_LPBIG_OFFBIG_LIBS, 19959: 19959: _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, 19959: 19959: 19959: _CS_POSIX_V6_ILP32_OFF32_CFLAGS, 19959: 19959: _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, 19959: 19959: _CS_POSIX_V6_ILP32_OFF32_LIBS, 19959: 19959: _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, 19959: 19959: _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, 19959: 19959: _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, 19959: 19959: _CS_POSIX_V6_ILP32_OFFBIG_LIBS, 19959: 19959: _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, 19959: 19959: _CS_POSIX_V6_LP64_OFF64_CFLAGS, 19959: 19959: _CS_POSIX_V6_LP64_OFF64_LDFLAGS, 19959: 19959: _CS_POSIX_V6_LP64_OFF64_LIBS, 19959: 19959: _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, 19959: 19959: _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, 19959: 19959: _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, 19959: 19959: _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, 19959: 19959: _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, 19959: 19959: 19959: _CS_POSIX_V7_ILP32_OFF32_CFLAGS, 19959: 19959: _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, 19959: 19959: _CS_POSIX_V7_ILP32_OFF32_LIBS, 19959: 19959: _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, 19959: 19959: _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, 19959: 19959: _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, 19959: 19959: _CS_POSIX_V7_ILP32_OFFBIG_LIBS, 19959: 19959: _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, 19959: 19959: _CS_POSIX_V7_LP64_OFF64_CFLAGS, 19959: 19959: _CS_POSIX_V7_LP64_OFF64_LDFLAGS, 19959: 19959: _CS_POSIX_V7_LP64_OFF64_LIBS, 19959: 19959: _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, 19959: 19959: _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, 19959: 19959: _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, 19959: 19959: _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, 19959: 19959: _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, 19959: 19959: 19959: _CS_V6_ENV, 19959: 19959: _CS_V7_ENV 19959: 19959: }; 19959: # 631 "/usr/include/unistd.h" 2 3 4 19959: 19959: 19959: extern long int pathconf (const char *__path, int __name) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern long int fpathconf (int __fd, int __name) noexcept (true); 19959: 19959: 19959: extern long int sysconf (int __name) noexcept (true); 19959: 19959: 19959: 19959: extern size_t confstr (int __name, char *__buf, size_t __len) noexcept (true) 19959: __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: 19959: 19959: 19959: 19959: extern __pid_t getpid (void) noexcept (true); 19959: 19959: 19959: extern __pid_t getppid (void) noexcept (true); 19959: 19959: 19959: extern __pid_t getpgrp (void) noexcept (true); 19959: 19959: 19959: extern __pid_t __getpgid (__pid_t __pid) noexcept (true); 19959: 19959: extern __pid_t getpgid (__pid_t __pid) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int setpgid (__pid_t __pid, __pid_t __pgid) noexcept (true); 19959: # 682 "/usr/include/unistd.h" 3 4 19959: extern int setpgrp (void) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern __pid_t setsid (void) noexcept (true); 19959: 19959: 19959: 19959: extern __pid_t getsid (__pid_t __pid) noexcept (true); 19959: 19959: 19959: 19959: extern __uid_t getuid (void) noexcept (true); 19959: 19959: 19959: extern __uid_t geteuid (void) noexcept (true); 19959: 19959: 19959: extern __gid_t getgid (void) noexcept (true); 19959: 19959: 19959: extern __gid_t getegid (void) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int getgroups (int __size, __gid_t __list[]) noexcept (true) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__write_only__, 2, 1))); 19959: 19959: 19959: extern int group_member (__gid_t __gid) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int setuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern int setreuid (__uid_t __ruid, __uid_t __euid) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern int seteuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int setgid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern int setregid (__gid_t __rgid, __gid_t __egid) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern int setegid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) 19959: noexcept (true); 19959: 19959: 19959: 19959: extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) 19959: noexcept (true); 19959: 19959: 19959: 19959: extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) 19959: noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) 19959: noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern __pid_t fork (void) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern __pid_t vfork (void) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern __pid_t _Fork (void) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern char *ttyname (int __fd) noexcept (true); 19959: 19959: 19959: 19959: extern int ttyname_r (int __fd, char *__buf, size_t __buflen) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: 19959: 19959: 19959: extern int isatty (int __fd) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int ttyslot (void) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int link (const char *__from, const char *__to) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern int linkat (int __fromfd, const char *__from, int __tofd, 19959: const char *__to, int __flags) 19959: noexcept (true) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern int symlink (const char *__from, const char *__to) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: extern ssize_t readlink (const char *__restrict __path, 19959: char *__restrict __buf, size_t __len) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: 19959: 19959: 19959: 19959: 19959: extern int symlinkat (const char *__from, int __tofd, 19959: const char *__to) noexcept (true) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: extern ssize_t readlinkat (int __fd, const char *__restrict __path, 19959: char *__restrict __buf, size_t __len) 19959: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__write_only__, 3, 4))); 19959: 19959: 19959: 19959: extern int unlink (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern int unlinkat (int __fd, const char *__name, int __flag) 19959: noexcept (true) __attribute__ ((__nonnull__ (2))); 19959: 19959: 19959: 19959: extern int rmdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: extern __pid_t tcgetpgrp (int __fd) noexcept (true); 19959: 19959: 19959: extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern char *getlogin (void); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))) 19959: __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: 19959: 19959: 19959: 19959: extern int setlogin (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 1 3 4 19959: # 27 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 1 3 4 19959: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 19959: extern "C" { 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern char *optarg; 19959: # 50 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 19959: extern int optind; 19959: 19959: 19959: 19959: 19959: extern int opterr; 19959: 19959: 19959: 19959: extern int optopt; 19959: # 91 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 19959: extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) 19959: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 19959: 19959: } 19959: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 2 3 4 19959: 19959: extern "C" { 19959: # 49 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 19959: } 19959: # 904 "/usr/include/unistd.h" 2 3 4 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int gethostname (char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) 19959: __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int sethostname (const char *__name, size_t __len) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 19959: 19959: 19959: 19959: extern int sethostid (long int __id) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: extern int getdomainname (char *__name, size_t __len) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: extern int setdomainname (const char *__name, size_t __len) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 19959: 19959: 19959: 19959: 19959: extern int vhangup (void) noexcept (true); 19959: 19959: 19959: extern int revoke (const char *__file) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int profil (unsigned short int *__sample_buffer, size_t __size, 19959: size_t __offset, unsigned int __scale) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: extern int acct (const char *__name) noexcept (true); 19959: 19959: 19959: 19959: extern char *getusershell (void) noexcept (true); 19959: extern void endusershell (void) noexcept (true); 19959: extern void setusershell (void) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern int daemon (int __nochdir, int __noclose) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int chroot (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int fsync (int __fd); 19959: 19959: 19959: 19959: 19959: 19959: extern int syncfs (int __fd) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern long int gethostid (void); 19959: 19959: 19959: extern void sync (void) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern int getpagesize (void) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: 19959: 19959: extern int getdtablesize (void) noexcept (true); 19959: # 1026 "/usr/include/unistd.h" 3 4 19959: extern int truncate (const char *__file, __off_t __length) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: # 1038 "/usr/include/unistd.h" 3 4 19959: extern int truncate64 (const char *__file, __off64_t __length) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 19959: # 1049 "/usr/include/unistd.h" 3 4 19959: extern int ftruncate (int __fd, __off_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: # 1059 "/usr/include/unistd.h" 3 4 19959: extern int ftruncate64 (int __fd, __off64_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: # 1070 "/usr/include/unistd.h" 3 4 19959: extern int brk (void *__addr) noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: 19959: 19959: 19959: 19959: 19959: extern void *sbrk (intptr_t __delta) noexcept (true); 19959: # 1091 "/usr/include/unistd.h" 3 4 19959: extern long int syscall (long int __sysno, ...) noexcept (true); 19959: # 1114 "/usr/include/unistd.h" 3 4 19959: extern int lockf (int __fd, int __cmd, __off_t __len) __attribute__ ((__warn_unused_result__)); 19959: # 1124 "/usr/include/unistd.h" 3 4 19959: extern int lockf64 (int __fd, int __cmd, __off64_t __len) __attribute__ ((__warn_unused_result__)); 19959: # 1142 "/usr/include/unistd.h" 3 4 19959: ssize_t copy_file_range (int __infd, __off64_t *__pinoff, 19959: int __outfd, __off64_t *__poutoff, 19959: size_t __length, unsigned int __flags); 19959: 19959: 19959: 19959: 19959: 19959: extern int fdatasync (int __fildes); 19959: # 1159 "/usr/include/unistd.h" 3 4 19959: extern char *crypt (const char *__key, const char *__salt) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern void swab (const void *__restrict __from, void *__restrict __to, 19959: ssize_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) 19959: __attribute__ ((__access__ (__read_only__, 1, 3))) 19959: __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: # 1198 "/usr/include/unistd.h" 3 4 19959: int getentropy (void *__buffer, size_t __length) __attribute__ ((__warn_unused_result__)) 19959: __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: # 1208 "/usr/include/unistd.h" 3 4 19959: extern int close_range (unsigned int __fd, unsigned int __max_fd, 19959: int __flags) noexcept (true); 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 1 3 4 19959: # 23 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 19959: extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, 19959: size_t __buflen) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: extern ssize_t __read_alias (int __fd, void *__buf, size_t __nbytes) __asm__ ("" "read") 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: extern ssize_t __read_chk_warn (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __asm__ ("" "__read_chk") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 19959: read (int __fd, void *__buf, size_t __nbytes) 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: 19959: 19959: extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes, 19959: __off_t __offset, size_t __bufsize) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, 19959: __off64_t __offset, size_t __bufsize) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: extern ssize_t __pread_alias (int __fd, void *__buf, size_t __nbytes, __off_t __offset) __asm__ ("" "pread") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: extern ssize_t __pread64_alias (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: extern ssize_t __pread_chk_warn (int __fd, void *__buf, size_t __nbytes, __off_t __offset, size_t __bufsize) __asm__ ("" "__pread_chk") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread called with bigger length than size of " "the destination buffer"))) 19959: ; 19959: extern ssize_t __pread64_chk_warn (int __fd, void *__buf, size_t __nbytes, __off64_t __offset, size_t __bufsize) __asm__ ("" "__pread64_chk") 19959: 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread64 called with bigger length than size of " "the destination buffer"))) 19959: ; 19959: 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 19959: pread (int __fd, void *__buf, size_t __nbytes, __off_t __offset) 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: # 89 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 19959: pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: 19959: 19959: 19959: 19959: extern ssize_t __readlink_chk (const char *__restrict __path, 19959: char *__restrict __buf, size_t __len, 19959: size_t __buflen) 19959: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: extern ssize_t __readlink_alias (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlink") 19959: 19959: 19959: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: extern ssize_t __readlink_chk_warn (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlink_chk") 19959: 19959: 19959: 19959: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) ssize_t 19959: __attribute__ ((__leaf__)) readlink (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) 19959: 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: 19959: 19959: 19959: extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, 19959: char *__restrict __buf, size_t __len, 19959: size_t __buflen) 19959: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 19959: extern ssize_t __readlinkat_alias (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlinkat") 19959: 19959: 19959: 19959: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 19959: 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") 19959: 19959: 19959: 19959: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer"))) 19959: 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) ssize_t 19959: __attribute__ ((__leaf__)) readlinkat (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) 19959: 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: 19959: 19959: extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) 19959: noexcept (true) __attribute__ ((__warn_unused_result__)); 19959: extern char *__getcwd_alias (char *__buf, size_t __size) noexcept (true) __asm__ ("" "getcwd") 19959: __attribute__ ((__warn_unused_result__)); 19959: extern char *__getcwd_chk_warn (char *__buf, size_t __size, size_t __buflen) noexcept (true) __asm__ ("" "__getcwd_chk") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 19959: __attribute__ ((__leaf__)) getcwd (char *__buf, size_t __size) noexcept (true) 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: 19959: 19959: extern char *__getwd_chk (char *__buf, size_t buflen) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: extern char *__getwd_warn (char *__buf) noexcept (true) __asm__ ("" "getwd") 19959: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use getcwd instead, as getwd " "doesn't specify buffer size"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) char * 19959: __attribute__ ((__leaf__)) getwd (char *__buf) noexcept (true) 19959: { 19959: if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) 19959: return __getwd_chk (__buf, __builtin_object_size (__buf, 2 > 1)); 19959: return __getwd_warn (__buf); 19959: } 19959: 19959: 19959: extern size_t __confstr_chk (int __name, char *__buf, size_t __len, 19959: size_t __buflen) noexcept (true) 19959: __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: extern size_t __confstr_alias (int __name, char *__buf, size_t __len) noexcept (true) __asm__ ("" "confstr") 19959: 19959: __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__confstr_chk") 19959: 19959: 19959: __attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 19959: __attribute__ ((__leaf__)) confstr (int __name, char *__buf, size_t __len) noexcept (true) 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: 19959: 19959: extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) 19959: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 19959: extern int __getgroups_alias (int __size, __gid_t __list[]) noexcept (true) __asm__ ("" "getgroups") 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 19959: extern int __getgroups_chk_warn (int __size, __gid_t __list[], size_t __listlen) noexcept (true) __asm__ ("" "__getgroups_chk") 19959: 19959: 19959: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) getgroups (int __size, __gid_t __list[]) noexcept (true) 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: 19959: 19959: extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, 19959: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 19959: __attribute__ ((__access__ (__write_only__, 2, 3))); 19959: extern int __ttyname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ttyname_r") 19959: 19959: __attribute__ ((__nonnull__ (2))); 19959: extern int __ttyname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ttyname_r_chk") 19959: 19959: 19959: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) ttyname_r (int __fd, char *__buf, size_t __buflen) noexcept (true) 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: 19959: 19959: 19959: extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) 19959: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: extern int __getlogin_r_alias (char *__buf, size_t __buflen) __asm__ ("" "getlogin_r") 19959: __attribute__ ((__nonnull__ (1))); 19959: extern int __getlogin_r_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getlogin_r_chk") 19959: 19959: 19959: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: getlogin_r (char *__buf, size_t __buflen) 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: 19959: 19959: 19959: 19959: extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: extern int __gethostname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "gethostname") 19959: 19959: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: extern int __gethostname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__gethostname_chk") 19959: 19959: 19959: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer"))) 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) gethostname (char *__buf, size_t __buflen) noexcept (true) 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: 19959: 19959: 19959: 19959: extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: extern int __getdomainname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "getdomainname") 19959: 19959: __attribute__ ((__nonnull__ (1))) 19959: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 19959: extern int __getdomainname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__getdomainname_chk") 19959: 19959: 19959: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer"))) 19959: 19959: ; 19959: 19959: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 19959: __attribute__ ((__leaf__)) getdomainname (char *__buf, size_t __buflen) noexcept (true) 19959: { 19959: 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)))) 19959: 19959: ; 19959: } 19959: # 1215 "/usr/include/unistd.h" 2 3 4 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 1 3 4 19959: # 34 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 3 4 19959: extern __pid_t gettid (void) noexcept (true); 19959: 19959: 19959: 19959: # 1 "/usr/include/linux/close_range.h" 1 3 4 19959: # 39 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 2 3 4 19959: # 1219 "/usr/include/unistd.h" 2 3 4 19959: 19959: } 19959: # 493 "/usr/include/zconf.h" 2 3 4 19959: # 35 "/usr/include/zlib.h" 2 3 4 19959: 19959: 19959: extern "C" { 19959: # 81 "/usr/include/zlib.h" 3 4 19959: typedef voidpf (*alloc_func)(voidpf opaque, uInt items, uInt size); 19959: typedef void (*free_func)(voidpf opaque, voidpf address); 19959: 19959: struct internal_state; 19959: 19959: typedef struct z_stream_s { 19959: Bytef *next_in; 19959: uInt avail_in; 19959: uLong total_in; 19959: 19959: Bytef *next_out; 19959: uInt avail_out; 19959: uLong total_out; 19959: 19959: char *msg; 19959: struct internal_state *state; 19959: 19959: alloc_func zalloc; 19959: free_func zfree; 19959: voidpf opaque; 19959: 19959: int data_type; 19959: 19959: uLong adler; 19959: uLong reserved; 19959: } z_stream; 19959: 19959: typedef z_stream *z_streamp; 19959: 19959: 19959: 19959: 19959: 19959: typedef struct gz_header_s { 19959: int text; 19959: uLong time; 19959: int xflags; 19959: int os; 19959: Bytef *extra; 19959: uInt extra_len; 19959: uInt extra_max; 19959: Bytef *name; 19959: uInt name_max; 19959: Bytef *comment; 19959: uInt comm_max; 19959: int hcrc; 19959: int done; 19959: 19959: } gz_header; 19959: 19959: typedef gz_header *gz_headerp; 19959: # 220 "/usr/include/zlib.h" 3 4 19959: extern const char * zlibVersion(void); 19959: # 250 "/usr/include/zlib.h" 3 4 19959: extern int deflate(z_streamp strm, int flush); 19959: # 363 "/usr/include/zlib.h" 3 4 19959: extern int deflateEnd(z_streamp strm); 19959: # 401 "/usr/include/zlib.h" 3 4 19959: extern int inflate(z_streamp strm, int flush); 19959: # 521 "/usr/include/zlib.h" 3 4 19959: extern int inflateEnd(z_streamp strm); 19959: # 611 "/usr/include/zlib.h" 3 4 19959: extern int deflateSetDictionary(z_streamp strm, 19959: const Bytef *dictionary, 19959: uInt dictLength); 19959: # 655 "/usr/include/zlib.h" 3 4 19959: extern int deflateGetDictionary(z_streamp strm, 19959: Bytef *dictionary, 19959: uInt *dictLength); 19959: # 677 "/usr/include/zlib.h" 3 4 19959: extern int deflateCopy(z_streamp dest, 19959: z_streamp source); 19959: # 695 "/usr/include/zlib.h" 3 4 19959: extern int deflateReset(z_streamp strm); 19959: # 706 "/usr/include/zlib.h" 3 4 19959: extern int deflateParams(z_streamp strm, 19959: int level, 19959: int strategy); 19959: # 744 "/usr/include/zlib.h" 3 4 19959: extern int deflateTune(z_streamp strm, 19959: int good_length, 19959: int max_lazy, 19959: int nice_length, 19959: int max_chain); 19959: # 761 "/usr/include/zlib.h" 3 4 19959: extern uLong deflateBound(z_streamp strm, 19959: uLong sourceLen); 19959: # 776 "/usr/include/zlib.h" 3 4 19959: extern int deflatePending(z_streamp strm, 19959: unsigned *pending, 19959: int *bits); 19959: # 791 "/usr/include/zlib.h" 3 4 19959: extern int deflatePrime(z_streamp strm, 19959: int bits, 19959: int value); 19959: # 808 "/usr/include/zlib.h" 3 4 19959: extern int deflateSetHeader(z_streamp strm, 19959: gz_headerp head); 19959: # 888 "/usr/include/zlib.h" 3 4 19959: extern int inflateSetDictionary(z_streamp strm, 19959: const Bytef *dictionary, 19959: uInt dictLength); 19959: # 911 "/usr/include/zlib.h" 3 4 19959: extern int inflateGetDictionary(z_streamp strm, 19959: Bytef *dictionary, 19959: uInt *dictLength); 19959: # 926 "/usr/include/zlib.h" 3 4 19959: extern int inflateSync(z_streamp strm); 19959: # 945 "/usr/include/zlib.h" 3 4 19959: extern int inflateCopy(z_streamp dest, 19959: z_streamp source); 19959: # 961 "/usr/include/zlib.h" 3 4 19959: extern int inflateReset(z_streamp strm); 19959: # 972 "/usr/include/zlib.h" 3 4 19959: extern int inflateReset2(z_streamp strm, 19959: int windowBits); 19959: # 986 "/usr/include/zlib.h" 3 4 19959: extern int inflatePrime(z_streamp strm, 19959: int bits, 19959: int value); 19959: # 1007 "/usr/include/zlib.h" 3 4 19959: extern long inflateMark(z_streamp strm); 19959: # 1035 "/usr/include/zlib.h" 3 4 19959: extern int inflateGetHeader(z_streamp strm, 19959: gz_headerp head); 19959: # 1097 "/usr/include/zlib.h" 3 4 19959: typedef unsigned (*in_func)(void *, 19959: unsigned char * *); 19959: typedef int (*out_func)(void *, unsigned char *, unsigned); 19959: 19959: extern int inflateBack(z_streamp strm, 19959: in_func in, void *in_desc, 19959: out_func out, void *out_desc); 19959: # 1171 "/usr/include/zlib.h" 3 4 19959: extern int inflateBackEnd(z_streamp strm); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern uLong zlibCompileFlags(void); 19959: # 1232 "/usr/include/zlib.h" 3 4 19959: extern int compress(Bytef *dest, uLongf *destLen, 19959: const Bytef *source, uLong sourceLen); 19959: # 1247 "/usr/include/zlib.h" 3 4 19959: extern int compress2(Bytef *dest, uLongf *destLen, 19959: const Bytef *source, uLong sourceLen, 19959: int level); 19959: # 1263 "/usr/include/zlib.h" 3 4 19959: extern uLong compressBound(uLong sourceLen); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int uncompress(Bytef *dest, uLongf *destLen, 19959: const Bytef *source, uLong sourceLen); 19959: # 1288 "/usr/include/zlib.h" 3 4 19959: extern int uncompress2(Bytef *dest, uLongf *destLen, 19959: const Bytef *source, uLong *sourceLen); 19959: # 1305 "/usr/include/zlib.h" 3 4 19959: typedef struct gzFile_s *gzFile; 19959: # 1345 "/usr/include/zlib.h" 3 4 19959: extern gzFile gzdopen(int fd, const char *mode); 19959: # 1368 "/usr/include/zlib.h" 3 4 19959: extern int gzbuffer(gzFile file, unsigned size); 19959: # 1384 "/usr/include/zlib.h" 3 4 19959: extern int gzsetparams(gzFile file, int level, int strategy); 19959: # 1395 "/usr/include/zlib.h" 3 4 19959: extern int gzread(gzFile file, voidp buf, unsigned len); 19959: # 1425 "/usr/include/zlib.h" 3 4 19959: extern z_size_t gzfread(voidp buf, z_size_t size, z_size_t nitems, 19959: gzFile file); 19959: # 1451 "/usr/include/zlib.h" 3 4 19959: extern int gzwrite(gzFile file, voidpc buf, unsigned len); 19959: 19959: 19959: 19959: 19959: 19959: extern z_size_t gzfwrite(voidpc buf, z_size_t size, 19959: z_size_t nitems, gzFile file); 19959: # 1471 "/usr/include/zlib.h" 3 4 19959: extern int gzprintf(gzFile file, const char *format, ...); 19959: # 1486 "/usr/include/zlib.h" 3 4 19959: extern int gzputs(gzFile file, const char *s); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern char * gzgets(gzFile file, char *buf, int len); 19959: # 1508 "/usr/include/zlib.h" 3 4 19959: extern int gzputc(gzFile file, int c); 19959: 19959: 19959: 19959: 19959: 19959: extern int gzgetc(gzFile file); 19959: # 1523 "/usr/include/zlib.h" 3 4 19959: extern int gzungetc(int c, gzFile file); 19959: # 1535 "/usr/include/zlib.h" 3 4 19959: extern int gzflush(gzFile file, int flush); 19959: # 1570 "/usr/include/zlib.h" 3 4 19959: extern int gzrewind(gzFile file); 19959: # 1598 "/usr/include/zlib.h" 3 4 19959: extern int gzeof(gzFile file); 19959: # 1613 "/usr/include/zlib.h" 3 4 19959: extern int gzdirect(gzFile file); 19959: # 1634 "/usr/include/zlib.h" 3 4 19959: extern int gzclose(gzFile file); 19959: # 1647 "/usr/include/zlib.h" 3 4 19959: extern int gzclose_r(gzFile file); 19959: extern int gzclose_w(gzFile file); 19959: # 1659 "/usr/include/zlib.h" 3 4 19959: extern const char * gzerror(gzFile file, int *errnum); 19959: # 1675 "/usr/include/zlib.h" 3 4 19959: extern void gzclearerr(gzFile file); 19959: # 1692 "/usr/include/zlib.h" 3 4 19959: extern uLong adler32(uLong adler, const Bytef *buf, uInt len); 19959: # 1712 "/usr/include/zlib.h" 3 4 19959: extern uLong adler32_z(uLong adler, const Bytef *buf, 19959: z_size_t len); 19959: # 1730 "/usr/include/zlib.h" 3 4 19959: extern uLong crc32(uLong crc, const Bytef *buf, uInt len); 19959: # 1748 "/usr/include/zlib.h" 3 4 19959: extern uLong crc32_z(uLong crc, const Bytef *buf, 19959: z_size_t len); 19959: # 1771 "/usr/include/zlib.h" 3 4 19959: extern uLong crc32_combine_op(uLong crc1, uLong crc2, uLong op); 19959: # 1784 "/usr/include/zlib.h" 3 4 19959: extern int deflateInit_(z_streamp strm, int level, 19959: const char *version, int stream_size); 19959: extern int inflateInit_(z_streamp strm, 19959: const char *version, int stream_size); 19959: extern int deflateInit2_(z_streamp strm, int level, int method, 19959: int windowBits, int memLevel, 19959: int strategy, const char *version, 19959: int stream_size); 19959: extern int inflateInit2_(z_streamp strm, int windowBits, 19959: const char *version, int stream_size); 19959: extern int inflateBackInit_(z_streamp strm, int windowBits, 19959: unsigned char *window, 19959: const char *version, 19959: int stream_size); 19959: # 1837 "/usr/include/zlib.h" 3 4 19959: struct gzFile_s { 19959: unsigned have; 19959: unsigned char *next; 19959: off64_t pos; 19959: }; 19959: extern int gzgetc_(gzFile file); 19959: # 1859 "/usr/include/zlib.h" 3 4 19959: extern gzFile gzopen64(const char *, const char *); 19959: extern off64_t gzseek64(gzFile, off64_t, int); 19959: extern off64_t gztell64(gzFile); 19959: extern off64_t gzoffset64(gzFile); 19959: extern uLong adler32_combine64(uLong, uLong, off64_t); 19959: extern uLong crc32_combine64(uLong, uLong, off64_t); 19959: extern uLong crc32_combine_gen64(off64_t); 19959: # 1896 "/usr/include/zlib.h" 3 4 19959: extern gzFile gzopen(const char *, const char *); 19959: extern off_t gzseek(gzFile, off_t, int); 19959: extern off_t gztell(gzFile); 19959: extern off_t gzoffset(gzFile); 19959: extern uLong adler32_combine(uLong, uLong, off_t); 19959: extern uLong crc32_combine(uLong, uLong, off_t); 19959: extern uLong crc32_combine_gen(off_t); 19959: # 1914 "/usr/include/zlib.h" 3 4 19959: extern const char * zError(int); 19959: extern int inflateSyncPoint(z_streamp); 19959: extern const z_crc_t * get_crc_table(void); 19959: extern int inflateUndermine(z_streamp, int); 19959: extern int inflateValidate(z_streamp, int); 19959: extern unsigned long inflateCodesUsed(z_streamp); 19959: extern int inflateResetKeep(z_streamp); 19959: extern int deflateResetKeep(z_streamp); 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int gzvprintf(gzFile file, 19959: const char *format, 19959: va_list va); 19959: 19959: 19959: 19959: 19959: } 19959: # 38 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 19959: 19959: 19959: 19959: # 1 "/usr/include/bzlib.h" 1 3 4 19959: # 26 "/usr/include/bzlib.h" 3 4 19959: extern "C" { 19959: # 48 "/usr/include/bzlib.h" 3 4 19959: typedef 19959: struct { 19959: char *next_in; 19959: unsigned int avail_in; 19959: unsigned int total_in_lo32; 19959: unsigned int total_in_hi32; 19959: 19959: char *next_out; 19959: unsigned int avail_out; 19959: unsigned int total_out_lo32; 19959: unsigned int total_out_hi32; 19959: 19959: void *state; 19959: 19959: void *(*bzalloc)(void *,int,int); 19959: void (*bzfree)(void *,void *); 19959: void *opaque; 19959: } 19959: bz_stream; 19959: # 100 "/usr/include/bzlib.h" 3 4 19959: extern int BZ2_bzCompressInit ( 19959: bz_stream* strm, 19959: int blockSize100k, 19959: int verbosity, 19959: int workFactor 19959: ); 19959: 19959: extern int BZ2_bzCompress ( 19959: bz_stream* strm, 19959: int action 19959: ); 19959: 19959: extern int BZ2_bzCompressEnd ( 19959: bz_stream* strm 19959: ); 19959: 19959: extern int BZ2_bzDecompressInit ( 19959: bz_stream *strm, 19959: int verbosity, 19959: int small 19959: ); 19959: 19959: extern int BZ2_bzDecompress ( 19959: bz_stream* strm 19959: ); 19959: 19959: extern int BZ2_bzDecompressEnd ( 19959: bz_stream *strm 19959: ); 19959: # 137 "/usr/include/bzlib.h" 3 4 19959: typedef void BZFILE; 19959: 19959: extern BZFILE* BZ2_bzReadOpen ( 19959: int* bzerror, 19959: FILE* f, 19959: int verbosity, 19959: int small, 19959: void* unused, 19959: int nUnused 19959: ); 19959: 19959: extern void BZ2_bzReadClose ( 19959: int* bzerror, 19959: BZFILE* b 19959: ); 19959: 19959: extern void BZ2_bzReadGetUnused ( 19959: int* bzerror, 19959: BZFILE* b, 19959: void** unused, 19959: int* nUnused 19959: ); 19959: 19959: extern int BZ2_bzRead ( 19959: int* bzerror, 19959: BZFILE* b, 19959: void* buf, 19959: int len 19959: ); 19959: 19959: extern BZFILE* BZ2_bzWriteOpen ( 19959: int* bzerror, 19959: FILE* f, 19959: int blockSize100k, 19959: int verbosity, 19959: int workFactor 19959: ); 19959: 19959: extern void BZ2_bzWrite ( 19959: int* bzerror, 19959: BZFILE* b, 19959: void* buf, 19959: int len 19959: ); 19959: 19959: extern void BZ2_bzWriteClose ( 19959: int* bzerror, 19959: BZFILE* b, 19959: int abandon, 19959: unsigned int* nbytes_in, 19959: unsigned int* nbytes_out 19959: ); 19959: 19959: extern void BZ2_bzWriteClose64 ( 19959: int* bzerror, 19959: BZFILE* b, 19959: int abandon, 19959: unsigned int* nbytes_in_lo32, 19959: unsigned int* nbytes_in_hi32, 19959: unsigned int* nbytes_out_lo32, 19959: unsigned int* nbytes_out_hi32 19959: ); 19959: 19959: 19959: 19959: 19959: 19959: extern int BZ2_bzBuffToBuffCompress ( 19959: char* dest, 19959: unsigned int* destLen, 19959: char* source, 19959: unsigned int sourceLen, 19959: int blockSize100k, 19959: int verbosity, 19959: int workFactor 19959: ); 19959: 19959: extern int BZ2_bzBuffToBuffDecompress ( 19959: char* dest, 19959: unsigned int* destLen, 19959: char* source, 19959: unsigned int sourceLen, 19959: int small, 19959: int verbosity 19959: ); 19959: # 233 "/usr/include/bzlib.h" 3 4 19959: extern const char * BZ2_bzlibVersion ( 19959: void 19959: ); 19959: 19959: 19959: extern BZFILE * BZ2_bzopen ( 19959: const char *path, 19959: const char *mode 19959: ); 19959: 19959: extern BZFILE * BZ2_bzdopen ( 19959: int fd, 19959: const char *mode 19959: ); 19959: 19959: extern int BZ2_bzread ( 19959: BZFILE* b, 19959: void* buf, 19959: int len 19959: ); 19959: 19959: extern int BZ2_bzwrite ( 19959: BZFILE* b, 19959: void* buf, 19959: int len 19959: ); 19959: 19959: extern int BZ2_bzflush ( 19959: BZFILE* b 19959: ); 19959: 19959: extern void BZ2_bzclose ( 19959: BZFILE* b 19959: ); 19959: 19959: extern const char * BZ2_bzerror ( 19959: BZFILE *b, 19959: int *errnum 19959: ); 19959: 19959: 19959: 19959: } 19959: # 42 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 19959: 19959: 19959: 19959: # 1 "/usr/include/lz4.h" 1 3 4 19959: # 36 "/usr/include/lz4.h" 3 4 19959: extern "C" { 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 44 "/usr/include/lz4.h" 2 3 4 19959: # 142 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_versionNumber (void); 19959: __attribute__ ((visibility ("default"))) const char* LZ4_versionString (void); 19959: # 189 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity); 19959: # 205 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity); 19959: # 223 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_compressBound(int inputSize); 19959: # 233 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 19959: # 242 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_sizeofState(void); 19959: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_extState (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 19959: # 269 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_compress_destSize (const char* src, char* dst, int* srcSizePtr, int targetDstSize); 19959: # 306 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_partial (const char* src, char* dst, int srcSize, int targetOutputSize, int dstCapacity); 19959: 19959: 19959: 19959: 19959: 19959: typedef union LZ4_stream_u LZ4_stream_t; 19959: # 329 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_createStream(void); 19959: __attribute__ ((visibility ("default"))) int LZ4_freeStream (LZ4_stream_t* streamPtr); 19959: # 356 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) void LZ4_resetStream_fast (LZ4_stream_t* streamPtr); 19959: # 369 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 19959: # 394 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_continue (LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 19959: # 403 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_saveDict (LZ4_stream_t* streamPtr, char* safeBuffer, int maxDictSize); 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef union LZ4_streamDecode_u LZ4_streamDecode_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) LZ4_streamDecode_t* LZ4_createStreamDecode(void); 19959: __attribute__ ((visibility ("default"))) int LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream); 19959: # 430 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize); 19959: # 443 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_decoderRingBufferSize(int maxBlockSize); 19959: # 471 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int 19959: LZ4_decompress_safe_continue (LZ4_streamDecode_t* LZ4_streamDecode, 19959: const char* src, char* dst, 19959: int srcSize, int dstCapacity); 19959: # 485 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) int 19959: LZ4_decompress_safe_usingDict(const char* src, char* dst, 19959: int srcSize, int dstCapacity, 19959: const char* dictStart, int dictSize); 19959: 19959: __attribute__ ((visibility ("default"))) int 19959: LZ4_decompress_safe_partial_usingDict(const char* src, char* dst, 19959: int compressedSize, 19959: int targetOutputSize, int maxOutputSize, 19959: const char* dictStart, int dictSize); 19959: # 660 "/usr/include/lz4.h" 3 4 19959: typedef int8_t LZ4_i8; 19959: typedef uint8_t LZ4_byte; 19959: typedef uint16_t LZ4_u16; 19959: typedef uint32_t LZ4_u32; 19959: # 677 "/usr/include/lz4.h" 3 4 19959: typedef struct LZ4_stream_t_internal LZ4_stream_t_internal; 19959: struct LZ4_stream_t_internal { 19959: LZ4_u32 hashTable[(1 << (14 -2))]; 19959: const LZ4_byte* dictionary; 19959: const LZ4_stream_t_internal* dictCtx; 19959: LZ4_u32 currentOffset; 19959: LZ4_u32 tableType; 19959: LZ4_u32 dictSize; 19959: 19959: }; 19959: 19959: 19959: union LZ4_stream_u { 19959: char minStateSize[((1UL << 14) + 32)]; 19959: LZ4_stream_t_internal internal_donotuse; 19959: }; 19959: # 709 "/usr/include/lz4.h" 3 4 19959: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_initStream (void* buffer, size_t size); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef struct { 19959: const LZ4_byte* externalDict; 19959: const LZ4_byte* prefixEnd; 19959: size_t extDictSize; 19959: size_t prefixSize; 19959: } LZ4_streamDecode_t_internal; 19959: 19959: 19959: union LZ4_streamDecode_u { 19959: char minStateSize[32]; 19959: LZ4_streamDecode_t_internal internal_donotuse; 19959: } ; 19959: # 765 "/usr/include/lz4.h" 3 4 19959: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress (const char* src, char* dest, int srcSize); 19959: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput (const char* src, char* dest, int srcSize, int maxOutputSize); 19959: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_withState (void* state, const char* source, char* dest, int inputSize); 19959: [[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); 19959: [[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); 19959: [[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); 19959: 19959: 19959: [[deprecated("use LZ4_decompress_fast() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress (const char* source, char* dest, int outputSize); 19959: [[deprecated("use LZ4_decompress_safe() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize); 19959: # 786 "/usr/include/lz4.h" 3 4 19959: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_create (char* inputBuffer); 19959: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamState(void); 19959: [[deprecated("Use LZ4_resetStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamState(void* state, char* inputBuffer); 19959: [[deprecated("Use LZ4_saveDict() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBuffer (void* state); 19959: 19959: 19959: [[deprecated("use LZ4_decompress_safe_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_withPrefix64k (const char* src, char* dst, int compressedSize, int maxDstSize); 19959: [[deprecated("use LZ4_decompress_fast_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_withPrefix64k (const char* src, char* dst, int originalSize); 19959: # 821 "/usr/include/lz4.h" 3 4 19959: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe() instead")]] 19959: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast (const char* src, char* dst, int originalSize); 19959: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_continue() instead")]] 19959: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* src, char* dst, int originalSize); 19959: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_usingDict() instead")]] 19959: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_usingDict (const char* src, char* dst, int originalSize, const char* dictStart, int dictSize); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) void LZ4_resetStream (LZ4_stream_t* streamPtr); 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: # 46 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 19959: # 1 "/usr/include/lz4hc.h" 1 3 4 19959: # 38 "/usr/include/lz4hc.h" 3 4 19959: extern "C" { 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/lz4.h" 1 3 4 19959: # 36 "/usr/include/lz4.h" 3 4 19959: extern "C" { 19959: # 841 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ "/usr/include/lz4.h" 3 4 19959: } 19959: # 44 "/usr/include/lz4hc.h" 2 3 4 19959: # 66 "/usr/include/lz4hc.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel); 19959: # 79 "/usr/include/lz4hc.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_sizeofStateHC(void); 19959: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_extStateHC(void* stateHC, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel); 19959: # 91 "/usr/include/lz4hc.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_destSize(void* stateHC, 19959: const char* src, char* dst, 19959: int* srcSizePtr, int targetDstSize, 19959: int compressionLevel); 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef union LZ4_streamHC_u LZ4_streamHC_t; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_createStreamHC(void); 19959: __attribute__ ((visibility ("default"))) int LZ4_freeStreamHC (LZ4_streamHC_t* streamHCPtr); 19959: # 155 "/usr/include/lz4hc.h" 3 4 19959: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC_fast(LZ4_streamHC_t* streamHCPtr, int compressionLevel); 19959: __attribute__ ((visibility ("default"))) int LZ4_loadDictHC (LZ4_streamHC_t* streamHCPtr, const char* dictionary, int dictSize); 19959: 19959: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue (LZ4_streamHC_t* streamHCPtr, 19959: const char* src, char* dst, 19959: int srcSize, int maxDstSize); 19959: # 172 "/usr/include/lz4hc.h" 3 4 19959: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue_destSize(LZ4_streamHC_t* LZ4_streamHCPtr, 19959: const char* src, char* dst, 19959: int* srcSizePtr, int targetDstSize); 19959: 19959: __attribute__ ((visibility ("default"))) int LZ4_saveDictHC (LZ4_streamHC_t* streamHCPtr, char* safeBuffer, int maxDictSize); 19959: # 204 "/usr/include/lz4hc.h" 3 4 19959: typedef struct LZ4HC_CCtx_internal LZ4HC_CCtx_internal; 19959: struct LZ4HC_CCtx_internal 19959: { 19959: LZ4_u32 hashTable[(1 << 15)]; 19959: LZ4_u16 chainTable[(1<<16)]; 19959: const LZ4_byte* end; 19959: const LZ4_byte* prefixStart; 19959: const LZ4_byte* dictStart; 19959: LZ4_u32 dictLimit; 19959: LZ4_u32 lowLimit; 19959: LZ4_u32 nextToUpdate; 19959: short compressionLevel; 19959: LZ4_i8 favorDecSpeed; 19959: 19959: LZ4_i8 dirty; 19959: const LZ4HC_CCtx_internal* dictCtx; 19959: }; 19959: 19959: 19959: union LZ4_streamHC_u { 19959: char minStateSize[262200]; 19959: LZ4HC_CCtx_internal internal_donotuse; 19959: }; 19959: # 245 "/usr/include/lz4hc.h" 3 4 19959: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_initStreamHC(void* buffer, size_t size); 19959: # 254 "/usr/include/lz4hc.h" 3 4 19959: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC (const char* source, char* dest, int inputSize); 19959: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize); 19959: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2 (const char* source, char* dest, int inputSize, int compressionLevel); 19959: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput(const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 19959: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_withStateHC (void* state, const char* source, char* dest, int inputSize); 19959: [[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); 19959: [[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); 19959: [[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); 19959: [[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); 19959: [[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); 19959: # 274 "/usr/include/lz4hc.h" 3 4 19959: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_createHC (const char* inputBuffer); 19959: [[deprecated("use LZ4_freeStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_freeHC (void* LZ4HC_Data); 19959: 19959: [[deprecated("use LZ4_saveDictHC() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBufferHC (void* LZ4HC_Data); 19959: [[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); 19959: [[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); 19959: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamStateHC(void); 19959: [[deprecated("use LZ4_initStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamStateHC(void* state, char* inputBuffer); 19959: # 292 "/usr/include/lz4hc.h" 3 4 19959: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC (LZ4_streamHC_t* streamHCPtr, int compressionLevel); 19959: 19959: 19959: 19959: } 19959: # 47 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 19959: 19959: 19959: 19959: # 1 "/usr/include/zstd.h" 1 3 4 19959: # 11 "/usr/include/zstd.h" 3 4 19959: extern "C" { 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 1 3 4 19959: # 19 "/usr/include/zstd.h" 2 3 4 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 20 "/usr/include/zstd.h" 2 3 4 19959: # 114 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) unsigned ZSTD_versionNumber(void); 19959: # 123 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) const char* ZSTD_versionString(void); 19959: # 155 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_compress( void* dst, size_t dstCapacity, 19959: const void* src, size_t srcSize, 19959: int compressionLevel); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress( void* dst, size_t dstCapacity, 19959: const void* src, size_t compressedSize); 19959: # 193 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: [[deprecated("Replaced by ZSTD_getFrameContentSize")]] 19959: __attribute__ ((visibility ("default"))) 19959: unsigned long long ZSTD_getDecompressedSize(const void* src, size_t srcSize); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_findFrameCompressedSize(const void* src, size_t srcSize); 19959: # 233 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_compressBound(size_t srcSize); 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) unsigned ZSTD_isError(size_t code); 19959: __attribute__ ((visibility ("default"))) const char* ZSTD_getErrorName(size_t code); 19959: __attribute__ ((visibility ("default"))) int ZSTD_minCLevel(void); 19959: __attribute__ ((visibility ("default"))) int ZSTD_maxCLevel(void); 19959: __attribute__ ((visibility ("default"))) int ZSTD_defaultCLevel(void); 19959: # 259 "/usr/include/zstd.h" 3 4 19959: typedef struct ZSTD_CCtx_s ZSTD_CCtx; 19959: __attribute__ ((visibility ("default"))) ZSTD_CCtx* ZSTD_createCCtx(void); 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); 19959: # 271 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, 19959: void* dst, size_t dstCapacity, 19959: const void* src, size_t srcSize, 19959: int compressionLevel); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef struct ZSTD_DCtx_s ZSTD_DCtx; 19959: __attribute__ ((visibility ("default"))) ZSTD_DCtx* ZSTD_createDCtx(void); 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx, 19959: void* dst, size_t dstCapacity, 19959: const void* src, size_t srcSize); 19959: # 315 "/usr/include/zstd.h" 3 4 19959: typedef enum { ZSTD_fast=1, 19959: ZSTD_dfast=2, 19959: ZSTD_greedy=3, 19959: ZSTD_lazy=4, 19959: ZSTD_lazy2=5, 19959: ZSTD_btlazy2=6, 19959: ZSTD_btopt=7, 19959: ZSTD_btultra=8, 19959: ZSTD_btultra2=9 19959: 19959: 19959: } ZSTD_strategy; 19959: 19959: typedef enum { 19959: 19959: 19959: 19959: 19959: 19959: ZSTD_c_compressionLevel=100, 19959: # 347 "/usr/include/zstd.h" 3 4 19959: ZSTD_c_windowLog=101, 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ZSTD_c_hashLog=102, 19959: 19959: 19959: 19959: 19959: 19959: ZSTD_c_chainLog=103, 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ZSTD_c_searchLog=104, 19959: 19959: 19959: 19959: ZSTD_c_minMatch=105, 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ZSTD_c_targetLength=106, 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ZSTD_c_strategy=107, 19959: 19959: 19959: 19959: 19959: ZSTD_c_enableLongDistanceMatching=160, 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ZSTD_c_ldmHashLog=161, 19959: 19959: 19959: 19959: 19959: 19959: ZSTD_c_ldmMinMatch=162, 19959: 19959: 19959: 19959: ZSTD_c_ldmBucketSizeLog=163, 19959: 19959: 19959: 19959: ZSTD_c_ldmHashRateLog=164, 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ZSTD_c_contentSizeFlag=200, 19959: 19959: 19959: 19959: ZSTD_c_checksumFlag=201, 19959: ZSTD_c_dictIDFlag=202, 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: ZSTD_c_nbWorkers=400, 19959: # 446 "/usr/include/zstd.h" 3 4 19959: ZSTD_c_jobSize=401, 19959: 19959: 19959: 19959: 19959: ZSTD_c_overlapLog=402, 19959: # 488 "/usr/include/zstd.h" 3 4 19959: ZSTD_c_experimentalParam1=500, 19959: ZSTD_c_experimentalParam2=10, 19959: ZSTD_c_experimentalParam3=1000, 19959: ZSTD_c_experimentalParam4=1001, 19959: ZSTD_c_experimentalParam5=1002, 19959: ZSTD_c_experimentalParam6=1003, 19959: ZSTD_c_experimentalParam7=1004, 19959: ZSTD_c_experimentalParam8=1005, 19959: ZSTD_c_experimentalParam9=1006, 19959: ZSTD_c_experimentalParam10=1007, 19959: ZSTD_c_experimentalParam11=1008, 19959: ZSTD_c_experimentalParam12=1009, 19959: ZSTD_c_experimentalParam13=1010, 19959: ZSTD_c_experimentalParam14=1011, 19959: ZSTD_c_experimentalParam15=1012, 19959: ZSTD_c_experimentalParam16=1013, 19959: ZSTD_c_experimentalParam17=1014, 19959: ZSTD_c_experimentalParam18=1015, 19959: ZSTD_c_experimentalParam19=1016 19959: } ZSTD_cParameter; 19959: 19959: typedef struct { 19959: size_t error; 19959: int lowerBound; 19959: int upperBound; 19959: } ZSTD_bounds; 19959: # 522 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam); 19959: # 535 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value); 19959: # 552 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize); 19959: 19959: typedef enum { 19959: ZSTD_reset_session_only = 1, 19959: ZSTD_reset_parameters = 2, 19959: ZSTD_reset_session_and_parameters = 3 19959: } ZSTD_ResetDirective; 19959: # 574 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset); 19959: # 587 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_compress2( ZSTD_CCtx* cctx, 19959: void* dst, size_t dstCapacity, 19959: const void* src, size_t srcSize); 19959: # 604 "/usr/include/zstd.h" 3 4 19959: typedef enum { 19959: 19959: ZSTD_d_windowLogMax=100, 19959: # 624 "/usr/include/zstd.h" 3 4 19959: ZSTD_d_experimentalParam1=1000, 19959: ZSTD_d_experimentalParam2=1001, 19959: ZSTD_d_experimentalParam3=1002, 19959: ZSTD_d_experimentalParam4=1003, 19959: ZSTD_d_experimentalParam5=1004 19959: 19959: } ZSTD_dParameter; 19959: # 639 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam); 19959: # 648 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int value); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset); 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef struct ZSTD_inBuffer_s { 19959: const void* src; 19959: size_t size; 19959: size_t pos; 19959: } ZSTD_inBuffer; 19959: 19959: typedef struct ZSTD_outBuffer_s { 19959: void* dst; 19959: size_t size; 19959: size_t pos; 19959: } ZSTD_outBuffer; 19959: # 738 "/usr/include/zstd.h" 3 4 19959: typedef ZSTD_CCtx ZSTD_CStream; 19959: 19959: 19959: __attribute__ ((visibility ("default"))) ZSTD_CStream* ZSTD_createCStream(void); 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCStream(ZSTD_CStream* zcs); 19959: 19959: 19959: typedef enum { 19959: ZSTD_e_continue=0, 19959: ZSTD_e_flush=1, 19959: 19959: 19959: 19959: ZSTD_e_end=2 19959: 19959: 19959: 19959: 19959: } ZSTD_EndDirective; 19959: # 780 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, 19959: ZSTD_outBuffer* output, 19959: ZSTD_inBuffer* input, 19959: ZSTD_EndDirective endOp); 19959: # 799 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamInSize(void); 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamOutSize(void); 19959: # 819 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel); 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 19959: # 860 "/usr/include/zstd.h" 3 4 19959: typedef ZSTD_DCtx ZSTD_DStream; 19959: 19959: 19959: __attribute__ ((visibility ("default"))) ZSTD_DStream* ZSTD_createDStream(void); 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDStream(ZSTD_DStream* zds); 19959: # 876 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_initDStream(ZSTD_DStream* zds); 19959: # 893 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamInSize(void); 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamOutSize(void); 19959: # 909 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingDict(ZSTD_CCtx* ctx, 19959: void* dst, size_t dstCapacity, 19959: const void* src, size_t srcSize, 19959: const void* dict,size_t dictSize, 19959: int compressionLevel); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx, 19959: void* dst, size_t dstCapacity, 19959: const void* src, size_t srcSize, 19959: const void* dict,size_t dictSize); 19959: 19959: 19959: 19959: 19959: 19959: typedef struct ZSTD_CDict_s ZSTD_CDict; 19959: # 944 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, 19959: int compressionLevel); 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCDict(ZSTD_CDict* CDict); 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, 19959: void* dst, size_t dstCapacity, 19959: const void* src, size_t srcSize, 19959: const ZSTD_CDict* cdict); 19959: 19959: 19959: typedef struct ZSTD_DDict_s ZSTD_DDict; 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) ZSTD_DDict* ZSTD_createDDict(const void* dictBuffer, size_t dictSize); 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDDict(ZSTD_DDict* ddict); 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, 19959: void* dst, size_t dstCapacity, 19959: const void* src, size_t srcSize, 19959: const ZSTD_DDict* ddict); 19959: # 992 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize); 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict* cdict); 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict* ddict); 19959: # 1016 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromFrame(const void* src, size_t srcSize); 19959: # 1053 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize); 19959: # 1067 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); 19959: # 1088 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, 19959: const void* prefix, size_t prefixSize); 19959: # 1106 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); 19959: # 1125 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); 19959: # 1143 "/usr/include/zstd.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx, 19959: const void* prefix, size_t prefixSize); 19959: 19959: 19959: 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx); 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CStream(const ZSTD_CStream* zcs); 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DStream(const ZSTD_DStream* zds); 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict); 19959: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DDict(const ZSTD_DDict* ddict); 19959: # 3019 "/usr/include/zstd.h" 3 4 19959: } 19959: # 51 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 19959: 19959: 19959: # 1 "/usr/include/zdict.h" 1 3 4 19959: # 12 "/usr/include/zdict.h" 3 4 19959: extern "C" { 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 20 "/usr/include/zdict.h" 2 3 4 19959: # 210 "/usr/include/zdict.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZDICT_trainFromBuffer(void* dictBuffer, size_t dictBufferCapacity, 19959: const void* samplesBuffer, 19959: const size_t* samplesSizes, unsigned nbSamples); 19959: 19959: typedef struct { 19959: int compressionLevel; 19959: unsigned notificationLevel; 19959: unsigned dictID; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } ZDICT_params_t; 19959: # 262 "/usr/include/zdict.h" 3 4 19959: __attribute__ ((visibility ("default"))) size_t ZDICT_finalizeDictionary(void* dstDictBuffer, size_t maxDictSize, 19959: const void* dictContent, size_t dictContentSize, 19959: const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, 19959: ZDICT_params_t parameters); 19959: 19959: 19959: 19959: __attribute__ ((visibility ("default"))) unsigned ZDICT_getDictID(const void* dictBuffer, size_t dictSize); 19959: __attribute__ ((visibility ("default"))) size_t ZDICT_getDictHeaderSize(const void* dictBuffer, size_t dictSize); 19959: __attribute__ ((visibility ("default"))) unsigned ZDICT_isError(size_t errorCode); 19959: __attribute__ ((visibility ("default"))) const char* ZDICT_getErrorName(size_t errorCode); 19959: # 473 "/usr/include/zdict.h" 3 4 19959: } 19959: # 54 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: namespace rocksdb { 19959: # 88 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: class ZSTDUncompressCachedData { 19959: public: 19959: using ZSTDNativeContext = ZSTD_DCtx*; 19959: ZSTDUncompressCachedData() {} 19959: 19959: ZSTDUncompressCachedData(const ZSTDUncompressCachedData& o) = delete; 19959: ZSTDUncompressCachedData& operator=(const ZSTDUncompressCachedData&) = delete; 19959: ZSTDUncompressCachedData(ZSTDUncompressCachedData&& o) noexcept 19959: : ZSTDUncompressCachedData() { 19959: *this = std::move(o); 19959: } 19959: ZSTDUncompressCachedData& operator=(ZSTDUncompressCachedData&& o) noexcept { 19959: 19959: # 100 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 100 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: zstd_ctx_ == nullptr 19959: # 100 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 100 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "zstd_ctx_ == nullptr" 19959: # 100 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 100, __extension__ __PRETTY_FUNCTION__)) 19959: # 100 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: std::swap(zstd_ctx_, o.zstd_ctx_); 19959: std::swap(cache_idx_, o.cache_idx_); 19959: return *this; 19959: } 19959: ZSTDNativeContext Get() const { return zstd_ctx_; } 19959: int64_t GetCacheIndex() const { return cache_idx_; } 19959: void CreateIfNeeded() { 19959: if (zstd_ctx_ == nullptr) { 19959: 19959: 19959: 19959: 19959: zstd_ctx_ = ZSTD_createDCtx(); 19959: 19959: cache_idx_ = -1; 19959: } 19959: } 19959: void InitFromCache(const ZSTDUncompressCachedData& o, int64_t idx) { 19959: zstd_ctx_ = o.zstd_ctx_; 19959: cache_idx_ = idx; 19959: } 19959: ~ZSTDUncompressCachedData() { 19959: if (zstd_ctx_ != nullptr && cache_idx_ == -1) { 19959: ZSTD_freeDCtx(zstd_ctx_); 19959: } 19959: } 19959: 19959: private: 19959: ZSTDNativeContext zstd_ctx_ = nullptr; 19959: int64_t cache_idx_ = -1; 19959: }; 19959: 19959: } 19959: # 163 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: namespace rocksdb { 19959: 19959: 19959: 19959: struct CompressionDict { 19959: 19959: ZSTD_CDict* zstd_cdict_ = nullptr; 19959: 19959: std::string dict_; 19959: 19959: public: 19959: 19959: CompressionDict(std::string dict, CompressionType type, int level) { 19959: 19959: 19959: 19959: dict_ = std::move(dict); 19959: 19959: zstd_cdict_ = nullptr; 19959: if (!dict_.empty() && (type == kZSTD || type == kZSTDNotFinalCompression)) { 19959: if (level == CompressionOptions::kDefaultCompressionLevel) { 19959: 19959: 19959: 19959: 19959: 19959: level = 3; 19959: } 19959: 19959: 19959: zstd_cdict_ = ZSTD_createCDict(dict_.data(), dict_.size(), level); 19959: 19959: # 194 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 194 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: zstd_cdict_ != nullptr 19959: # 194 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 194 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "zstd_cdict_ != nullptr" 19959: # 194 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 194, __extension__ __PRETTY_FUNCTION__)) 19959: # 194 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: } 19959: 19959: } 19959: 19959: ~CompressionDict() { 19959: 19959: size_t res = 0; 19959: if (zstd_cdict_ != nullptr) { 19959: res = ZSTD_freeCDict(zstd_cdict_); 19959: } 19959: 19959: # 205 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 205 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: res == 0 19959: # 205 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 205 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "res == 0" 19959: # 205 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 205, __extension__ __PRETTY_FUNCTION__)) 19959: # 205 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: (void)res; 19959: 19959: } 19959: 19959: 19959: const ZSTD_CDict* GetDigestedZstdCDict() const { return zstd_cdict_; } 19959: 19959: 19959: Slice GetRawDict() const { return dict_; } 19959: 19959: static const CompressionDict& GetEmptyDict() { 19959: static CompressionDict empty_dict{}; 19959: return empty_dict; 19959: } 19959: 19959: CompressionDict() = default; 19959: 19959: CompressionDict(const CompressionDict&) = delete; 19959: CompressionDict& operator=(const CompressionDict&) = delete; 19959: CompressionDict(CompressionDict&&) = delete; 19959: CompressionDict& operator=(CompressionDict&&) = delete; 19959: }; 19959: 19959: 19959: 19959: struct UncompressionDict { 19959: 19959: 19959: std::string dict_; 19959: 19959: 19959: 19959: 19959: CacheAllocationPtr allocation_; 19959: 19959: 19959: 19959: 19959: Slice slice_; 19959: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: UncompressionDict(std::string dict, bool ) 19959: 19959: : dict_(std::move(dict)), slice_(dict_) { 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: UncompressionDict(Slice slice, CacheAllocationPtr&& allocation, 19959: bool ) 19959: 19959: : allocation_(std::move(allocation)), slice_(std::move(slice)) { 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: UncompressionDict(UncompressionDict&& rhs) 19959: : dict_(std::move(rhs.dict_)), 19959: allocation_(std::move(rhs.allocation_)), 19959: slice_(std::move(rhs.slice_)) 19959: 19959: 19959: 19959: 19959: { 19959: 19959: 19959: 19959: } 19959: 19959: ~UncompressionDict() { 19959: # 304 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: } 19959: 19959: UncompressionDict& operator=(UncompressionDict&& rhs) { 19959: if (this == &rhs) { 19959: return *this; 19959: } 19959: 19959: dict_ = std::move(rhs.dict_); 19959: allocation_ = std::move(rhs.allocation_); 19959: slice_ = std::move(rhs.slice_); 19959: 19959: 19959: 19959: 19959: 19959: 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: bool own_bytes() const { return !dict_.empty() || allocation_; } 19959: 19959: const Slice& GetRawDict() const { return slice_; } 19959: 19959: 19959: const Slice& ContentSlice() const { return slice_; } 19959: static constexpr CacheEntryRole kCacheEntryRole = CacheEntryRole::kOtherBlock; 19959: static constexpr BlockType kBlockType = BlockType::kCompressionDictionary; 19959: 19959: 19959: 19959: 19959: 19959: static const UncompressionDict& GetEmptyDict() { 19959: static UncompressionDict empty_dict{}; 19959: return empty_dict; 19959: } 19959: 19959: size_t ApproximateMemoryUsage() const { 19959: size_t usage = sizeof(struct UncompressionDict); 19959: usage += dict_.size(); 19959: if (allocation_) { 19959: auto allocator = allocation_.get_deleter().allocator; 19959: if (allocator) { 19959: usage += allocator->UsableSize(allocation_.get(), slice_.size()); 19959: } else { 19959: usage += slice_.size(); 19959: } 19959: } 19959: 19959: 19959: 19959: return usage; 19959: } 19959: 19959: UncompressionDict() = default; 19959: 19959: UncompressionDict(const CompressionDict&) = delete; 19959: UncompressionDict& operator=(const CompressionDict&) = delete; 19959: }; 19959: 19959: class CompressionContext { 19959: private: 19959: 19959: ZSTD_CCtx* zstd_ctx_ = nullptr; 19959: 19959: ZSTD_CCtx* CreateZSTDContext() { 19959: 19959: 19959: 19959: return ZSTD_createCCtx(); 19959: 19959: } 19959: 19959: void CreateNativeContext(CompressionType type, int level, bool checksum) { 19959: if (type == kZSTD || type == kZSTDNotFinalCompression) { 19959: zstd_ctx_ = CreateZSTDContext(); 19959: 19959: if (level == CompressionOptions::kDefaultCompressionLevel) { 19959: 19959: 19959: level = 3; 19959: } 19959: size_t err = 19959: ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_compressionLevel, level); 19959: if (ZSTD_isError(err)) { 19959: 19959: # 393 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 393 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: false 19959: # 393 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 393 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "false" 19959: # 393 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 393, __extension__ __PRETTY_FUNCTION__)) 19959: # 393 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: ZSTD_freeCCtx(zstd_ctx_); 19959: zstd_ctx_ = CreateZSTDContext(); 19959: } 19959: if (checksum) { 19959: err = ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_checksumFlag, 1); 19959: if (ZSTD_isError(err)) { 19959: 19959: # 400 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 400 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: false 19959: # 400 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 400 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "false" 19959: # 400 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 400, __extension__ __PRETTY_FUNCTION__)) 19959: # 400 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: ZSTD_freeCCtx(zstd_ctx_); 19959: zstd_ctx_ = CreateZSTDContext(); 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: } 19959: } 19959: void DestroyNativeContext() { 19959: if (zstd_ctx_ != nullptr) { 19959: ZSTD_freeCCtx(zstd_ctx_); 19959: } 19959: } 19959: 19959: public: 19959: 19959: ZSTD_CCtx* ZSTDPreallocCtx() const { 19959: 19959: # 420 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 420 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: zstd_ctx_ != nullptr 19959: # 420 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 420 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "zstd_ctx_ != nullptr" 19959: # 420 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 420, __extension__ __PRETTY_FUNCTION__)) 19959: # 420 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: return zstd_ctx_; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: public: 19959: explicit CompressionContext(CompressionType type, 19959: const CompressionOptions& options) { 19959: CreateNativeContext(type, options.level, options.checksum); 19959: } 19959: ~CompressionContext() { DestroyNativeContext(); } 19959: CompressionContext(const CompressionContext&) = delete; 19959: CompressionContext& operator=(const CompressionContext&) = delete; 19959: }; 19959: 19959: class CompressionInfo { 19959: const CompressionOptions& opts_; 19959: const CompressionContext& context_; 19959: const CompressionDict& dict_; 19959: const CompressionType type_; 19959: const uint64_t sample_for_compression_; 19959: 19959: public: 19959: CompressionInfo(const CompressionOptions& _opts, 19959: const CompressionContext& _context, 19959: const CompressionDict& _dict, CompressionType _type, 19959: uint64_t _sample_for_compression) 19959: : opts_(_opts), 19959: context_(_context), 19959: dict_(_dict), 19959: type_(_type), 19959: sample_for_compression_(_sample_for_compression) {} 19959: 19959: const CompressionOptions& options() const { return opts_; } 19959: const CompressionContext& context() const { return context_; } 19959: const CompressionDict& dict() const { return dict_; } 19959: CompressionType type() const { return type_; } 19959: uint64_t SampleForCompression() const { return sample_for_compression_; } 19959: }; 19959: 19959: class UncompressionContext { 19959: private: 19959: CompressionContextCache* ctx_cache_ = nullptr; 19959: ZSTDUncompressCachedData uncomp_cached_data_; 19959: 19959: public: 19959: explicit UncompressionContext(CompressionType type) { 19959: if (type == kZSTD || type == kZSTDNotFinalCompression) { 19959: ctx_cache_ = CompressionContextCache::Instance(); 19959: uncomp_cached_data_ = ctx_cache_->GetCachedZSTDUncompressData(); 19959: } 19959: } 19959: ~UncompressionContext() { 19959: if (uncomp_cached_data_.GetCacheIndex() != -1) { 19959: 19959: # 479 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 479 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ctx_cache_ != nullptr 19959: # 479 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 479 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "ctx_cache_ != nullptr" 19959: # 479 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 479, __extension__ __PRETTY_FUNCTION__)) 19959: # 479 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: ctx_cache_->ReturnCachedZSTDUncompressData( 19959: uncomp_cached_data_.GetCacheIndex()); 19959: } 19959: } 19959: UncompressionContext(const UncompressionContext&) = delete; 19959: UncompressionContext& operator=(const UncompressionContext&) = delete; 19959: 19959: ZSTDUncompressCachedData::ZSTDNativeContext GetZSTDContext() const { 19959: return uncomp_cached_data_.Get(); 19959: } 19959: }; 19959: 19959: class UncompressionInfo { 19959: const UncompressionContext& context_; 19959: const UncompressionDict& dict_; 19959: const CompressionType type_; 19959: 19959: public: 19959: UncompressionInfo(const UncompressionContext& _context, 19959: const UncompressionDict& _dict, CompressionType _type) 19959: : context_(_context), dict_(_dict), type_(_type) {} 19959: 19959: const UncompressionContext& context() const { return context_; } 19959: const UncompressionDict& dict() const { return dict_; } 19959: CompressionType type() const { return type_; } 19959: }; 19959: 19959: inline bool Snappy_Supported() { 19959: 19959: return true; 19959: 19959: 19959: 19959: } 19959: 19959: inline bool Zlib_Supported() { 19959: 19959: return true; 19959: 19959: 19959: 19959: } 19959: 19959: inline bool BZip2_Supported() { 19959: 19959: return true; 19959: 19959: 19959: 19959: } 19959: 19959: inline bool LZ4_Supported() { 19959: 19959: return true; 19959: 19959: 19959: 19959: } 19959: 19959: inline bool XPRESS_Supported() { 19959: 19959: 19959: 19959: return false; 19959: 19959: } 19959: 19959: inline bool ZSTD_Supported() { 19959: 19959: 19959: return (ZSTD_versionNumber() >= 800); 19959: 19959: 19959: 19959: } 19959: 19959: inline bool ZSTDNotFinal_Supported() { 19959: 19959: return true; 19959: 19959: 19959: 19959: } 19959: 19959: inline bool ZSTD_Streaming_Supported() { 19959: 19959: return true; 19959: 19959: 19959: 19959: } 19959: 19959: inline bool StreamingCompressionTypeSupported( 19959: CompressionType compression_type) { 19959: switch (compression_type) { 19959: case kNoCompression: 19959: return true; 19959: case kZSTD: 19959: return ZSTD_Streaming_Supported(); 19959: default: 19959: return false; 19959: } 19959: } 19959: 19959: inline bool CompressionTypeSupported(CompressionType compression_type) { 19959: switch (compression_type) { 19959: case kNoCompression: 19959: return true; 19959: case kSnappyCompression: 19959: return Snappy_Supported(); 19959: case kZlibCompression: 19959: return Zlib_Supported(); 19959: case kBZip2Compression: 19959: return BZip2_Supported(); 19959: case kLZ4Compression: 19959: return LZ4_Supported(); 19959: case kLZ4HCCompression: 19959: return LZ4_Supported(); 19959: case kXpressCompression: 19959: return XPRESS_Supported(); 19959: case kZSTDNotFinalCompression: 19959: return ZSTDNotFinal_Supported(); 19959: case kZSTD: 19959: return ZSTD_Supported(); 19959: default: 19959: 19959: # 605 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 605 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: false 19959: # 605 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 605 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "false" 19959: # 605 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 605, __extension__ __PRETTY_FUNCTION__)) 19959: # 605 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: return false; 19959: } 19959: } 19959: 19959: inline bool DictCompressionTypeSupported(CompressionType compression_type) { 19959: switch (compression_type) { 19959: case kNoCompression: 19959: return false; 19959: case kSnappyCompression: 19959: return false; 19959: case kZlibCompression: 19959: return Zlib_Supported(); 19959: case kBZip2Compression: 19959: return false; 19959: case kLZ4Compression: 19959: case kLZ4HCCompression: 19959: 19959: return LZ4_Supported(); 19959: 19959: 19959: 19959: case kXpressCompression: 19959: return false; 19959: case kZSTDNotFinalCompression: 19959: 19959: return ZSTDNotFinal_Supported(); 19959: 19959: 19959: 19959: case kZSTD: 19959: 19959: return ZSTD_Supported(); 19959: 19959: 19959: 19959: default: 19959: 19959: # 642 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 642 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: false 19959: # 642 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 642 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "false" 19959: # 642 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 642, __extension__ __PRETTY_FUNCTION__)) 19959: # 642 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: return false; 19959: } 19959: } 19959: 19959: inline std::string CompressionTypeToString(CompressionType compression_type) { 19959: switch (compression_type) { 19959: case kNoCompression: 19959: return "NoCompression"; 19959: case kSnappyCompression: 19959: return "Snappy"; 19959: case kZlibCompression: 19959: return "Zlib"; 19959: case kBZip2Compression: 19959: return "BZip2"; 19959: case kLZ4Compression: 19959: return "LZ4"; 19959: case kLZ4HCCompression: 19959: return "LZ4HC"; 19959: case kXpressCompression: 19959: return "Xpress"; 19959: case kZSTD: 19959: return "ZSTD"; 19959: case kZSTDNotFinalCompression: 19959: return "ZSTDNotFinal"; 19959: case kDisableCompressionOption: 19959: return "DisableOption"; 19959: default: 19959: 19959: # 670 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 670 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: false 19959: # 670 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 670 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "false" 19959: # 670 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 670, __extension__ __PRETTY_FUNCTION__)) 19959: # 670 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: return ""; 19959: } 19959: } 19959: 19959: inline std::string CompressionOptionsToString( 19959: CompressionOptions& compression_options) { 19959: std::string result; 19959: result.reserve(512); 19959: result.append("window_bits=") 19959: .append(std::to_string(compression_options.window_bits)) 19959: .append("; "); 19959: result.append("level=") 19959: .append(std::to_string(compression_options.level)) 19959: .append("; "); 19959: result.append("strategy=") 19959: .append(std::to_string(compression_options.strategy)) 19959: .append("; "); 19959: result.append("max_dict_bytes=") 19959: .append(std::to_string(compression_options.max_dict_bytes)) 19959: .append("; "); 19959: result.append("zstd_max_train_bytes=") 19959: .append(std::to_string(compression_options.zstd_max_train_bytes)) 19959: .append("; "); 19959: result.append("enabled=") 19959: .append(std::to_string(compression_options.enabled)) 19959: .append("; "); 19959: result.append("max_dict_buffer_bytes=") 19959: .append(std::to_string(compression_options.max_dict_buffer_bytes)) 19959: .append("; "); 19959: result.append("use_zstd_dict_trainer=") 19959: .append(std::to_string(compression_options.use_zstd_dict_trainer)) 19959: .append("; "); 19959: return result; 19959: } 19959: # 713 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: inline bool Snappy_Compress(const CompressionInfo& , const char* input, 19959: size_t length, ::std::string* output) { 19959: 19959: output->resize(snappy::MaxCompressedLength(length)); 19959: size_t outlen; 19959: snappy::RawCompress(input, length, &(*output)[0], &outlen); 19959: output->resize(outlen); 19959: return true; 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: inline CacheAllocationPtr Snappy_Uncompress( 19959: const char* input, size_t length, size_t* uncompressed_size, 19959: MemoryAllocator* allocator = nullptr) { 19959: 19959: size_t uncompressed_length = 0; 19959: if (!snappy::GetUncompressedLength(input, length, &uncompressed_length)) { 19959: return nullptr; 19959: } 19959: 19959: CacheAllocationPtr output = AllocateBlock(uncompressed_length, allocator); 19959: 19959: if (!snappy::RawUncompress(input, length, output.get())) { 19959: return nullptr; 19959: } 19959: 19959: *uncompressed_size = uncompressed_length; 19959: 19959: return output; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: namespace compression { 19959: 19959: inline size_t PutDecompressedSizeInfo(std::string* output, uint32_t length) { 19959: PutVarint32(output, length); 19959: return output->size(); 19959: } 19959: 19959: inline bool GetDecompressedSizeInfo(const char** input_data, 19959: size_t* input_length, 19959: uint32_t* output_len) { 19959: auto new_input_data = 19959: GetVarint32Ptr(*input_data, *input_data + *input_length, output_len); 19959: if (new_input_data == nullptr) { 19959: return false; 19959: } 19959: *input_length -= (new_input_data - *input_data); 19959: *input_data = new_input_data; 19959: return true; 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline bool Zlib_Compress(const CompressionInfo& info, 19959: uint32_t compress_format_version, const char* input, 19959: size_t length, ::std::string* output) { 19959: 19959: if (length > std::numeric_limits::max()) { 19959: 19959: return false; 19959: } 19959: 19959: size_t output_header_len = 0; 19959: if (compress_format_version == 2) { 19959: output_header_len = compression::PutDecompressedSizeInfo( 19959: output, static_cast(length)); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: static const int memLevel = 8; 19959: int level; 19959: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 19959: level = 19959: # 806 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (-1) 19959: # 806 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: } else { 19959: level = info.options().level; 19959: } 19959: z_stream _stream; 19959: memset(&_stream, 0, sizeof(z_stream)); 19959: int st = 19959: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: deflateInit2_(( 19959: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: &_stream 19959: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ),( 19959: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: level 19959: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ),(8),( 19959: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: info.options().window_bits 19959: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ),( 19959: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: memLevel 19959: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ), ( 19959: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: info.options().strategy 19959: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ), "1.3", (int)sizeof(z_stream)) 19959: 19959: # 813 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: if (st != 19959: # 814 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 0 19959: # 814 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ) { 19959: return false; 19959: } 19959: 19959: Slice compression_dict = info.dict().GetRawDict(); 19959: if (compression_dict.size()) { 19959: 19959: st = deflateSetDictionary( 19959: &_stream, reinterpret_cast(compression_dict.data()), 19959: static_cast(compression_dict.size())); 19959: if (st != 19959: # 824 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 0 19959: # 824 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ) { 19959: deflateEnd(&_stream); 19959: return false; 19959: } 19959: } 19959: 19959: 19959: size_t upper_bound = 19959: deflateBound(&_stream, static_cast(length)); 19959: output->resize(output_header_len + upper_bound); 19959: 19959: 19959: _stream.next_in = (Bytef*)input; 19959: _stream.avail_in = static_cast(length); 19959: 19959: 19959: _stream.avail_out = static_cast(upper_bound); 19959: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 19959: 19959: bool compressed = false; 19959: st = deflate(&_stream, 19959: # 844 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 4 19959: # 844 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ); 19959: if (st == 19959: # 845 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 1 19959: # 845 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ) { 19959: compressed = true; 19959: output->resize(output->size() - _stream.avail_out); 19959: } 19959: 19959: 19959: 19959: 19959: deflateEnd(&_stream); 19959: return compressed; 19959: # 863 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline CacheAllocationPtr Zlib_Uncompress( 19959: const UncompressionInfo& info, const char* input_data, size_t input_length, 19959: size_t* uncompressed_size, uint32_t compress_format_version, 19959: MemoryAllocator* allocator = nullptr, int windowBits = -14) { 19959: 19959: uint32_t output_len = 0; 19959: if (compress_format_version == 2) { 19959: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 19959: &output_len)) { 19959: return nullptr; 19959: } 19959: } else { 19959: 19959: 19959: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 19959: output_len = static_cast( 19959: std::min(proposed_output_len, 19959: static_cast(std::numeric_limits::max()))); 19959: } 19959: 19959: z_stream _stream; 19959: memset(&_stream, 0, sizeof(z_stream)); 19959: 19959: 19959: 19959: 19959: int st = 19959: 19959: # 898 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: inflateInit2_(( 19959: # 898 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: &_stream 19959: # 898 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ), ( 19959: # 898 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: windowBits > 0 ? windowBits + 32 : windowBits 19959: # 898 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ), "1.3", (int)sizeof(z_stream)) 19959: # 898 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: if (st != 19959: # 899 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 0 19959: # 899 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ) { 19959: return nullptr; 19959: } 19959: 19959: const Slice& compression_dict = info.dict().GetRawDict(); 19959: if (compression_dict.size()) { 19959: 19959: st = inflateSetDictionary( 19959: &_stream, reinterpret_cast(compression_dict.data()), 19959: static_cast(compression_dict.size())); 19959: if (st != 19959: # 909 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 0 19959: # 909 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ) { 19959: return nullptr; 19959: } 19959: } 19959: 19959: _stream.next_in = (Bytef*)input_data; 19959: _stream.avail_in = static_cast(input_length); 19959: 19959: auto output = AllocateBlock(output_len, allocator); 19959: 19959: _stream.next_out = (Bytef*)output.get(); 19959: _stream.avail_out = static_cast(output_len); 19959: 19959: bool done = false; 19959: while (!done) { 19959: st = inflate(&_stream, 19959: # 924 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 2 19959: # 924 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ); 19959: switch (st) { 19959: case 19959: # 926 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 1 19959: # 926 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: : 19959: done = true; 19959: break; 19959: case 19959: # 929 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 0 19959: # 929 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: : { 19959: 19959: 19959: 19959: 19959: # 933 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 933 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: compress_format_version != 2 19959: # 933 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 933 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "compress_format_version != 2" 19959: # 933 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 933, __extension__ __PRETTY_FUNCTION__)) 19959: # 933 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: size_t old_sz = output_len; 19959: uint32_t output_len_delta = output_len / 5; 19959: output_len += output_len_delta < 10 ? 10 : output_len_delta; 19959: auto tmp = AllocateBlock(output_len, allocator); 19959: memcpy(tmp.get(), output.get(), old_sz); 19959: output = std::move(tmp); 19959: 19959: 19959: _stream.next_out = (Bytef*)(output.get() + old_sz); 19959: _stream.avail_out = static_cast(output_len - old_sz); 19959: break; 19959: } 19959: case 19959: # 946 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (-5) 19959: # 946 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: : 19959: default: 19959: inflateEnd(&_stream); 19959: return nullptr; 19959: } 19959: } 19959: 19959: 19959: 19959: # 954 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 954 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: compress_format_version != 2 || _stream.avail_out == 0 19959: # 954 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 954 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "compress_format_version != 2 || _stream.avail_out == 0" 19959: # 954 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 954, __extension__ __PRETTY_FUNCTION__)) 19959: # 954 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: 19959: # 955 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 955 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: output_len >= _stream.avail_out 19959: # 955 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 955 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "output_len >= _stream.avail_out" 19959: # 955 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 955, __extension__ __PRETTY_FUNCTION__)) 19959: # 955 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: *uncompressed_size = output_len - _stream.avail_out; 19959: inflateEnd(&_stream); 19959: return output; 19959: # 969 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: } 19959: 19959: 19959: 19959: 19959: 19959: inline bool BZip2_Compress(const CompressionInfo& , 19959: uint32_t compress_format_version, const char* input, 19959: size_t length, ::std::string* output) { 19959: 19959: if (length > std::numeric_limits::max()) { 19959: 19959: return false; 19959: } 19959: size_t output_header_len = 0; 19959: if (compress_format_version == 2) { 19959: output_header_len = compression::PutDecompressedSizeInfo( 19959: output, static_cast(length)); 19959: } 19959: 19959: 19959: output->resize(output_header_len + length); 19959: 19959: bz_stream _stream; 19959: memset(&_stream, 0, sizeof(bz_stream)); 19959: 19959: 19959: 19959: 19959: int st = BZ2_bzCompressInit(&_stream, 1, 0, 30); 19959: if (st != 19959: # 999 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 0 19959: # 999 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ) { 19959: return false; 19959: } 19959: 19959: 19959: _stream.next_in = (char*)input; 19959: _stream.avail_in = static_cast(length); 19959: 19959: 19959: _stream.avail_out = static_cast(length); 19959: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 19959: 19959: bool compressed = false; 19959: st = BZ2_bzCompress(&_stream, 19959: # 1012 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 2 19959: # 1012 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ); 19959: if (st == 19959: # 1013 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 4 19959: # 1013 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ) { 19959: compressed = true; 19959: output->resize(output->size() - _stream.avail_out); 19959: } 19959: 19959: 19959: 19959: 19959: BZ2_bzCompressEnd(&_stream); 19959: return compressed; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: inline CacheAllocationPtr BZip2_Uncompress( 19959: const char* input_data, size_t input_length, size_t* uncompressed_size, 19959: uint32_t compress_format_version, MemoryAllocator* allocator = nullptr) { 19959: 19959: uint32_t output_len = 0; 19959: if (compress_format_version == 2) { 19959: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 19959: &output_len)) { 19959: return nullptr; 19959: } 19959: } else { 19959: 19959: 19959: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 19959: output_len = static_cast( 19959: std::min(proposed_output_len, 19959: static_cast(std::numeric_limits::max()))); 19959: } 19959: 19959: bz_stream _stream; 19959: memset(&_stream, 0, sizeof(bz_stream)); 19959: 19959: int st = BZ2_bzDecompressInit(&_stream, 0, 0); 19959: if (st != 19959: # 1059 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 0 19959: # 1059 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ) { 19959: return nullptr; 19959: } 19959: 19959: _stream.next_in = (char*)input_data; 19959: _stream.avail_in = static_cast(input_length); 19959: 19959: auto output = AllocateBlock(output_len, allocator); 19959: 19959: _stream.next_out = (char*)output.get(); 19959: _stream.avail_out = static_cast(output_len); 19959: 19959: bool done = false; 19959: while (!done) { 19959: st = BZ2_bzDecompress(&_stream); 19959: switch (st) { 19959: case 19959: # 1075 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 4 19959: # 1075 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: : 19959: done = true; 19959: break; 19959: case 19959: # 1078 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: 0 19959: # 1078 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: : { 19959: 19959: 19959: 19959: 19959: # 1082 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 1082 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: compress_format_version != 2 19959: # 1082 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1082 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "compress_format_version != 2" 19959: # 1082 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 1082, __extension__ __PRETTY_FUNCTION__)) 19959: # 1082 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: uint32_t old_sz = output_len; 19959: output_len = output_len * 1.2; 19959: auto tmp = AllocateBlock(output_len, allocator); 19959: memcpy(tmp.get(), output.get(), old_sz); 19959: output = std::move(tmp); 19959: 19959: 19959: _stream.next_out = (char*)(output.get() + old_sz); 19959: _stream.avail_out = static_cast(output_len - old_sz); 19959: break; 19959: } 19959: default: 19959: BZ2_bzDecompressEnd(&_stream); 19959: return nullptr; 19959: } 19959: } 19959: 19959: 19959: 19959: # 1101 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 1101 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: compress_format_version != 2 || _stream.avail_out == 0 19959: # 1101 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1101 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "compress_format_version != 2 || _stream.avail_out == 0" 19959: # 1101 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 1101, __extension__ __PRETTY_FUNCTION__)) 19959: # 1101 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: 19959: # 1102 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 1102 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: output_len >= _stream.avail_out 19959: # 1102 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1102 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "output_len >= _stream.avail_out" 19959: # 1102 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 1102, __extension__ __PRETTY_FUNCTION__)) 19959: # 1102 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: *uncompressed_size = output_len - _stream.avail_out; 19959: BZ2_bzDecompressEnd(&_stream); 19959: return output; 19959: # 1114 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline bool LZ4_Compress(const CompressionInfo& info, 19959: uint32_t compress_format_version, const char* input, 19959: size_t length, ::std::string* output) { 19959: 19959: if (length > std::numeric_limits::max()) { 19959: 19959: return false; 19959: } 19959: 19959: size_t output_header_len = 0; 19959: if (compress_format_version == 2) { 19959: 19959: output_header_len = compression::PutDecompressedSizeInfo( 19959: output, static_cast(length)); 19959: } else { 19959: 19959: 19959: output_header_len = 8; 19959: output->resize(output_header_len); 19959: char* p = const_cast(output->c_str()); 19959: memcpy(p, &length, sizeof(length)); 19959: } 19959: int compress_bound = LZ4_compressBound(static_cast(length)); 19959: output->resize(static_cast(output_header_len + compress_bound)); 19959: 19959: int outlen; 19959: 19959: LZ4_stream_t* stream = LZ4_createStream(); 19959: Slice compression_dict = info.dict().GetRawDict(); 19959: if (compression_dict.size()) { 19959: LZ4_loadDict(stream, compression_dict.data(), 19959: static_cast(compression_dict.size())); 19959: } 19959: 19959: int acceleration; 19959: if (info.options().level < 0) { 19959: acceleration = -info.options().level; 19959: } else { 19959: acceleration = 1; 19959: } 19959: outlen = LZ4_compress_fast_continue( 19959: stream, input, &(*output)[output_header_len], static_cast(length), 19959: compress_bound, acceleration); 19959: 19959: 19959: 19959: 19959: 19959: LZ4_freeStream(stream); 19959: 19959: 19959: 19959: 19959: 19959: if (outlen == 0) { 19959: return false; 19959: } 19959: output->resize(static_cast(output_header_len + outlen)); 19959: return true; 19959: # 1189 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline CacheAllocationPtr LZ4_Uncompress(const UncompressionInfo& info, 19959: const char* input_data, 19959: size_t input_length, 19959: size_t* uncompressed_size, 19959: uint32_t compress_format_version, 19959: MemoryAllocator* allocator = nullptr) { 19959: 19959: uint32_t output_len = 0; 19959: if (compress_format_version == 2) { 19959: 19959: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 19959: &output_len)) { 19959: return nullptr; 19959: } 19959: } else { 19959: 19959: 19959: if (input_length < 8) { 19959: return nullptr; 19959: } 19959: if (port::kLittleEndian) { 19959: memcpy(&output_len, input_data, sizeof(output_len)); 19959: } else { 19959: memcpy(&output_len, input_data + 4, sizeof(output_len)); 19959: } 19959: input_length -= 8; 19959: input_data += 8; 19959: } 19959: 19959: auto output = AllocateBlock(output_len, allocator); 19959: 19959: int decompress_bytes = 0; 19959: 19959: 19959: LZ4_streamDecode_t* stream = LZ4_createStreamDecode(); 19959: const Slice& compression_dict = info.dict().GetRawDict(); 19959: if (compression_dict.size()) { 19959: LZ4_setStreamDecode(stream, compression_dict.data(), 19959: static_cast(compression_dict.size())); 19959: } 19959: decompress_bytes = LZ4_decompress_safe_continue( 19959: stream, input_data, output.get(), static_cast(input_length), 19959: static_cast(output_len)); 19959: LZ4_freeStreamDecode(stream); 19959: 19959: 19959: 19959: 19959: 19959: 19959: if (decompress_bytes < 0) { 19959: return nullptr; 19959: } 19959: 19959: # 1250 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 1250 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: decompress_bytes == static_cast(output_len) 19959: # 1250 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1250 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "decompress_bytes == static_cast(output_len)" 19959: # 1250 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 1250, __extension__ __PRETTY_FUNCTION__)) 19959: # 1250 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: *uncompressed_size = decompress_bytes; 19959: return output; 19959: # 1262 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline bool LZ4HC_Compress(const CompressionInfo& info, 19959: uint32_t compress_format_version, const char* input, 19959: size_t length, ::std::string* output) { 19959: 19959: if (length > std::numeric_limits::max()) { 19959: 19959: return false; 19959: } 19959: 19959: size_t output_header_len = 0; 19959: if (compress_format_version == 2) { 19959: 19959: output_header_len = compression::PutDecompressedSizeInfo( 19959: output, static_cast(length)); 19959: } else { 19959: 19959: 19959: output_header_len = 8; 19959: output->resize(output_header_len); 19959: char* p = const_cast(output->c_str()); 19959: memcpy(p, &length, sizeof(length)); 19959: } 19959: int compress_bound = LZ4_compressBound(static_cast(length)); 19959: output->resize(static_cast(output_header_len + compress_bound)); 19959: 19959: int outlen; 19959: int level; 19959: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 19959: level = 0; 19959: } else { 19959: level = info.options().level; 19959: } 19959: 19959: LZ4_streamHC_t* stream = LZ4_createStreamHC(); 19959: LZ4_resetStreamHC(stream, level); 19959: Slice compression_dict = info.dict().GetRawDict(); 19959: const char* compression_dict_data = 19959: compression_dict.size() > 0 ? compression_dict.data() : nullptr; 19959: size_t compression_dict_size = compression_dict.size(); 19959: if (compression_dict_data != nullptr) { 19959: LZ4_loadDictHC(stream, compression_dict_data, 19959: static_cast(compression_dict_size)); 19959: } 19959: 19959: 19959: outlen = 19959: LZ4_compress_HC_continue(stream, input, &(*output)[output_header_len], 19959: static_cast(length), compress_bound); 19959: 19959: 19959: 19959: 19959: 19959: LZ4_freeStreamHC(stream); 19959: # 1335 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: if (outlen == 0) { 19959: return false; 19959: } 19959: output->resize(static_cast(output_header_len + outlen)); 19959: return true; 19959: # 1348 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline bool XPRESS_Compress(const char* , size_t , 19959: std::string* ) { 19959: return false; 19959: } 19959: # 1368 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: inline char* XPRESS_Uncompress(const char* , 19959: size_t , 19959: size_t* ) { 19959: return nullptr; 19959: } 19959: 19959: 19959: inline bool ZSTD_Compress(const CompressionInfo& info, const char* input, 19959: size_t length, ::std::string* output) { 19959: 19959: if (length > std::numeric_limits::max()) { 19959: 19959: return false; 19959: } 19959: 19959: size_t output_header_len = compression::PutDecompressedSizeInfo( 19959: output, static_cast(length)); 19959: 19959: size_t compressBound = ZSTD_compressBound(length); 19959: output->resize(static_cast(output_header_len + compressBound)); 19959: size_t outlen = 0; 19959: 19959: ZSTD_CCtx* context = info.context().ZSTDPreallocCtx(); 19959: 19959: # 1391 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 1391 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: context != nullptr 19959: # 1391 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1391 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "context != nullptr" 19959: # 1391 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 1391, __extension__ __PRETTY_FUNCTION__)) 19959: # 1391 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: 19959: if (info.dict().GetDigestedZstdCDict() != nullptr) { 19959: ZSTD_CCtx_refCDict(context, info.dict().GetDigestedZstdCDict()); 19959: } else { 19959: ZSTD_CCtx_loadDictionary(context, info.dict().GetRawDict().data(), 19959: info.dict().GetRawDict().size()); 19959: } 19959: 19959: 19959: outlen = ZSTD_compress2(context, &(*output)[output_header_len], compressBound, 19959: input, length); 19959: # 1431 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: if (outlen == 0) { 19959: return false; 19959: } 19959: output->resize(output_header_len + outlen); 19959: return true; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline CacheAllocationPtr ZSTD_Uncompress( 19959: const UncompressionInfo& info, const char* input_data, size_t input_length, 19959: size_t* uncompressed_size, MemoryAllocator* allocator = nullptr, 19959: const char** error_message = nullptr) { 19959: 19959: static const char* const kErrorDecodeOutputSize = 19959: "Cannot decode output size."; 19959: static const char* const kErrorOutputLenMismatch = 19959: "Decompressed size does not match header."; 19959: uint32_t output_len = 0; 19959: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 19959: &output_len)) { 19959: if (error_message) { 19959: *error_message = kErrorDecodeOutputSize; 19959: } 19959: return nullptr; 19959: } 19959: 19959: CacheAllocationPtr output = AllocateBlock(output_len, allocator); 19959: size_t actual_output_length = 0; 19959: 19959: ZSTD_DCtx* context = info.context().GetZSTDContext(); 19959: 19959: # 1472 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 1472 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: context != nullptr 19959: # 1472 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1472 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "context != nullptr" 19959: # 1472 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 1472, __extension__ __PRETTY_FUNCTION__)) 19959: # 1472 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: actual_output_length = ZSTD_decompress_usingDict( 19959: context, output.get(), output_len, input_data, input_length, 19959: info.dict().GetRawDict().data(), info.dict().GetRawDict().size()); 19959: # 1491 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: if (ZSTD_isError(actual_output_length)) { 19959: if (error_message) { 19959: *error_message = ZSTD_getErrorName(actual_output_length); 19959: } 19959: return nullptr; 19959: } else if (actual_output_length != output_len) { 19959: if (error_message) { 19959: *error_message = kErrorOutputLenMismatch; 19959: } 19959: return nullptr; 19959: } 19959: 19959: *uncompressed_size = actual_output_length; 19959: return output; 19959: # 1514 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: } 19959: 19959: inline bool ZSTD_TrainDictionarySupported() { 19959: 19959: 19959: 19959: 19959: return (ZSTD_versionNumber() >= 10103); 19959: 19959: 19959: 19959: } 19959: 19959: inline std::string ZSTD_TrainDictionary(const std::string& samples, 19959: const std::vector& sample_lens, 19959: size_t max_dict_bytes) { 19959: 19959: 19959: 19959: 19959: 19959: # 1534 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 1534 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: samples.empty() == sample_lens.empty() 19959: # 1534 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1534 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "samples.empty() == sample_lens.empty()" 19959: # 1534 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 1534, __extension__ __PRETTY_FUNCTION__)) 19959: # 1534 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: if (samples.empty()) { 19959: return ""; 19959: } 19959: std::string dict_data(max_dict_bytes, '\0'); 19959: size_t dict_len = ZDICT_trainFromBuffer( 19959: &dict_data[0], max_dict_bytes, &samples[0], &sample_lens[0], 19959: static_cast(sample_lens.size())); 19959: if (ZDICT_isError(dict_len)) { 19959: return ""; 19959: } 19959: 19959: # 1545 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 1545 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: dict_len <= max_dict_bytes 19959: # 1545 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1545 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "dict_len <= max_dict_bytes" 19959: # 1545 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 1545, __extension__ __PRETTY_FUNCTION__)) 19959: # 1545 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: dict_data.resize(dict_len); 19959: return dict_data; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: inline std::string ZSTD_TrainDictionary(const std::string& samples, 19959: size_t sample_len_shift, 19959: size_t max_dict_bytes) { 19959: 19959: 19959: 19959: 19959: size_t num_samples = samples.size() >> sample_len_shift; 19959: std::vector sample_lens(num_samples, size_t(1) << sample_len_shift); 19959: return ZSTD_TrainDictionary(samples, sample_lens, max_dict_bytes); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: } 19959: 19959: inline bool ZSTD_FinalizeDictionarySupported() { 19959: 19959: 19959: return (ZSTD_versionNumber() >= 10405); 19959: 19959: 19959: 19959: } 19959: 19959: inline std::string ZSTD_FinalizeDictionary( 19959: const std::string& samples, const std::vector& sample_lens, 19959: size_t max_dict_bytes, int level) { 19959: 19959: 19959: 19959: # 1590 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 1590 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: samples.empty() == sample_lens.empty() 19959: # 1590 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1590 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "samples.empty() == sample_lens.empty()" 19959: # 1590 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 1590, __extension__ __PRETTY_FUNCTION__)) 19959: # 1590 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: if (samples.empty()) { 19959: return ""; 19959: } 19959: if (level == CompressionOptions::kDefaultCompressionLevel) { 19959: 19959: 19959: level = 3; 19959: } 19959: std::string dict_data(max_dict_bytes, '\0'); 19959: size_t dict_len = ZDICT_finalizeDictionary( 19959: dict_data.data(), max_dict_bytes, samples.data(), 19959: std::min(static_cast(samples.size()), max_dict_bytes), 19959: samples.data(), sample_lens.data(), 19959: static_cast(sample_lens.size()), 19959: {level, 0 , 0 }); 19959: if (ZDICT_isError(dict_len)) { 19959: return ""; 19959: } else { 19959: 19959: # 1609 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 1609 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: dict_len <= max_dict_bytes 19959: # 1609 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1609 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "dict_len <= max_dict_bytes" 19959: # 1609 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 1609, __extension__ __PRETTY_FUNCTION__)) 19959: # 1609 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: dict_data.resize(dict_len); 19959: return dict_data; 19959: } 19959: # 1621 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: } 19959: 19959: inline bool CompressData(const Slice& raw, 19959: const CompressionInfo& compression_info, 19959: uint32_t compress_format_version, 19959: std::string* compressed_output) { 19959: bool ret = false; 19959: 19959: 19959: 19959: switch (compression_info.type()) { 19959: case kSnappyCompression: 19959: ret = Snappy_Compress(compression_info, raw.data(), raw.size(), 19959: compressed_output); 19959: break; 19959: case kZlibCompression: 19959: ret = Zlib_Compress(compression_info, compress_format_version, raw.data(), 19959: raw.size(), compressed_output); 19959: break; 19959: case kBZip2Compression: 19959: ret = BZip2_Compress(compression_info, compress_format_version, 19959: raw.data(), raw.size(), compressed_output); 19959: break; 19959: case kLZ4Compression: 19959: ret = LZ4_Compress(compression_info, compress_format_version, raw.data(), 19959: raw.size(), compressed_output); 19959: break; 19959: case kLZ4HCCompression: 19959: ret = LZ4HC_Compress(compression_info, compress_format_version, 19959: raw.data(), raw.size(), compressed_output); 19959: break; 19959: case kXpressCompression: 19959: ret = XPRESS_Compress(raw.data(), raw.size(), compressed_output); 19959: break; 19959: case kZSTD: 19959: case kZSTDNotFinalCompression: 19959: ret = ZSTD_Compress(compression_info, raw.data(), raw.size(), 19959: compressed_output); 19959: break; 19959: default: 19959: 19959: break; 19959: } 19959: 19959: rocksdb::SyncPoint::GetInstance()->Process("CompressData:TamperWithReturnValue", static_cast(&ret)) 19959: ; 19959: 19959: return ret; 19959: } 19959: 19959: inline CacheAllocationPtr UncompressData( 19959: const UncompressionInfo& uncompression_info, const char* data, size_t n, 19959: size_t* uncompressed_size, uint32_t compress_format_version, 19959: MemoryAllocator* allocator = nullptr, 19959: const char** error_message = nullptr) { 19959: switch (uncompression_info.type()) { 19959: case kSnappyCompression: 19959: return Snappy_Uncompress(data, n, uncompressed_size, allocator); 19959: case kZlibCompression: 19959: return Zlib_Uncompress(uncompression_info, data, n, uncompressed_size, 19959: compress_format_version, allocator); 19959: case kBZip2Compression: 19959: return BZip2_Uncompress(data, n, uncompressed_size, 19959: compress_format_version, allocator); 19959: case kLZ4Compression: 19959: case kLZ4HCCompression: 19959: return LZ4_Uncompress(uncompression_info, data, n, uncompressed_size, 19959: compress_format_version, allocator); 19959: case kXpressCompression: 19959: 19959: 19959: return CacheAllocationPtr(XPRESS_Uncompress(data, n, uncompressed_size)); 19959: case kZSTD: 19959: case kZSTDNotFinalCompression: 19959: 19959: return ZSTD_Uncompress(uncompression_info, data, n, uncompressed_size, 19959: allocator, error_message); 19959: default: 19959: return CacheAllocationPtr(); 19959: } 19959: } 19959: 19959: 19959: class CompressionTypeRecord { 19959: public: 19959: explicit CompressionTypeRecord(CompressionType compression_type) 19959: : compression_type_(compression_type) {} 19959: 19959: CompressionType GetCompressionType() const { return compression_type_; } 19959: 19959: inline void EncodeTo(std::string* dst) const { 19959: 19959: # 1712 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 1712 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: dst != nullptr 19959: # 1712 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1712 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "dst != nullptr" 19959: # 1712 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 1712, __extension__ __PRETTY_FUNCTION__)) 19959: # 1712 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: PutFixed32(dst, compression_type_); 19959: } 19959: 19959: inline Status DecodeFrom(Slice* src) { 19959: constexpr char class_name[] = "CompressionTypeRecord"; 19959: 19959: uint32_t val; 19959: if (!GetFixed32(src, &val)) { 19959: return Status::Corruption(class_name, 19959: "Error decoding WAL compression type"); 19959: } 19959: CompressionType compression_type = static_cast(val); 19959: if (!StreamingCompressionTypeSupported(compression_type)) { 19959: return Status::Corruption(class_name, 19959: "WAL compression type not supported"); 19959: } 19959: compression_type_ = compression_type; 19959: return Status::OK(); 19959: } 19959: 19959: inline std::string DebugString() const { 19959: return "compression_type: " + CompressionTypeToString(compression_type_); 19959: } 19959: 19959: private: 19959: CompressionType compression_type_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class StreamingCompress { 19959: public: 19959: StreamingCompress(CompressionType compression_type, 19959: const CompressionOptions& opts, 19959: uint32_t compress_format_version, size_t max_output_len) 19959: : compression_type_(compression_type), 19959: opts_(opts), 19959: compress_format_version_(compress_format_version), 19959: max_output_len_(max_output_len) {} 19959: virtual ~StreamingCompress() = default; 19959: # 1767 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: virtual int Compress(const char* input, size_t input_size, char* output, 19959: size_t* output_pos) = 0; 19959: 19959: 19959: static StreamingCompress* Create(CompressionType compression_type, 19959: const CompressionOptions& opts, 19959: uint32_t compress_format_version, 19959: size_t max_output_len); 19959: virtual void Reset() = 0; 19959: 19959: protected: 19959: const CompressionType compression_type_; 19959: const CompressionOptions opts_; 19959: const uint32_t compress_format_version_; 19959: const size_t max_output_len_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class StreamingUncompress { 19959: public: 19959: StreamingUncompress(CompressionType compression_type, 19959: uint32_t compress_format_version, size_t max_output_len) 19959: : compression_type_(compression_type), 19959: compress_format_version_(compress_format_version), 19959: max_output_len_(max_output_len) {} 19959: virtual ~StreamingUncompress() = default; 19959: # 1810 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: virtual int Uncompress(const char* input, size_t input_size, char* output, 19959: size_t* output_pos) = 0; 19959: static StreamingUncompress* Create(CompressionType compression_type, 19959: uint32_t compress_format_version, 19959: size_t max_output_len); 19959: virtual void Reset() = 0; 19959: 19959: protected: 19959: CompressionType compression_type_; 19959: uint32_t compress_format_version_; 19959: size_t max_output_len_; 19959: }; 19959: 19959: class ZSTDStreamingCompress final : public StreamingCompress { 19959: public: 19959: explicit ZSTDStreamingCompress(const CompressionOptions& opts, 19959: uint32_t compress_format_version, 19959: size_t max_output_len) 19959: : StreamingCompress(kZSTD, opts, compress_format_version, 19959: max_output_len) { 19959: 19959: cctx_ = ZSTD_createCCtx(); 19959: 19959: ZSTD_CCtx_setParameter(cctx_, ZSTD_c_checksumFlag, 1); 19959: 19959: # 1834 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 1834 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: cctx_ != nullptr 19959: # 1834 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1834 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "cctx_ != nullptr" 19959: # 1834 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 1834, __extension__ __PRETTY_FUNCTION__)) 19959: # 1834 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: input_buffer_ = { nullptr, 0, 0}; 19959: 19959: } 19959: ~ZSTDStreamingCompress() override { 19959: 19959: ZSTD_freeCCtx(cctx_); 19959: 19959: } 19959: int Compress(const char* input, size_t input_size, char* output, 19959: size_t* output_pos) override; 19959: void Reset() override; 19959: 19959: ZSTD_CCtx* cctx_; 19959: ZSTD_inBuffer input_buffer_; 19959: 19959: }; 19959: 19959: class ZSTDStreamingUncompress final : public StreamingUncompress { 19959: public: 19959: explicit ZSTDStreamingUncompress(uint32_t compress_format_version, 19959: size_t max_output_len) 19959: : StreamingUncompress(kZSTD, compress_format_version, max_output_len) { 19959: 19959: dctx_ = ZSTD_createDCtx(); 19959: 19959: # 1859 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: (static_cast ( 19959: # 1859 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: dctx_ != nullptr 19959: # 1859 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1859 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: "dctx_ != nullptr" 19959: # 1859 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 19959: , "./util/compression.h", 1859, __extension__ __PRETTY_FUNCTION__)) 19959: # 1859 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 19959: ; 19959: input_buffer_ = { nullptr, 0, 0}; 19959: 19959: } 19959: ~ZSTDStreamingUncompress() override { 19959: 19959: ZSTD_freeDCtx(dctx_); 19959: 19959: } 19959: int Uncompress(const char* input, size_t input_size, char* output, 19959: size_t* output_size) override; 19959: void Reset() override; 19959: 19959: private: 19959: 19959: ZSTD_DCtx* dctx_; 19959: ZSTD_inBuffer input_buffer_; 19959: 19959: }; 19959: 19959: } 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/options/cf_options.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: struct ImmutableCFOptions { 19959: public: 19959: static const char* kName() { return "ImmutableCFOptions"; } 19959: explicit ImmutableCFOptions(); 19959: explicit ImmutableCFOptions(const ColumnFamilyOptions& cf_options); 19959: 19959: CompactionStyle compaction_style; 19959: 19959: CompactionPri compaction_pri; 19959: 19959: const Comparator* user_comparator; 19959: InternalKeyComparator internal_comparator; 19959: 19959: std::shared_ptr merge_operator; 19959: 19959: const CompactionFilter* compaction_filter; 19959: 19959: std::shared_ptr compaction_filter_factory; 19959: 19959: int min_write_buffer_number_to_merge; 19959: 19959: int max_write_buffer_number_to_maintain; 19959: 19959: int64_t max_write_buffer_size_to_maintain; 19959: 19959: bool inplace_update_support; 19959: 19959: UpdateStatus (*inplace_callback)(char* existing_value, 19959: uint32_t* existing_value_size, 19959: Slice delta_value, 19959: std::string* merged_value); 19959: 19959: std::shared_ptr memtable_factory; 19959: 19959: std::shared_ptr table_factory; 19959: 19959: Options::TablePropertiesCollectorFactories 19959: table_properties_collector_factories; 19959: 19959: 19959: 19959: uint32_t bloom_locality; 19959: 19959: bool level_compaction_dynamic_level_bytes; 19959: 19959: bool level_compaction_dynamic_file_size; 19959: 19959: int num_levels; 19959: 19959: bool optimize_filters_for_hits; 19959: 19959: bool force_consistency_checks; 19959: 19959: Temperature default_temperature; 19959: 19959: uint64_t preclude_last_level_data_seconds; 19959: 19959: uint64_t preserve_internal_time_seconds; 19959: 19959: std::shared_ptr 19959: memtable_insert_with_hint_prefix_extractor; 19959: 19959: std::vector cf_paths; 19959: 19959: std::shared_ptr compaction_thread_limiter; 19959: 19959: std::shared_ptr sst_partitioner_factory; 19959: 19959: std::shared_ptr blob_cache; 19959: 19959: bool persist_user_defined_timestamps; 19959: }; 19959: 19959: struct ImmutableOptions : public ImmutableDBOptions, public ImmutableCFOptions { 19959: explicit ImmutableOptions(); 19959: explicit ImmutableOptions(const Options& options); 19959: 19959: ImmutableOptions(const DBOptions& db_options, 19959: const ColumnFamilyOptions& cf_options); 19959: 19959: ImmutableOptions(const ImmutableDBOptions& db_options, 19959: const ImmutableCFOptions& cf_options); 19959: 19959: ImmutableOptions(const DBOptions& db_options, 19959: const ImmutableCFOptions& cf_options); 19959: 19959: ImmutableOptions(const ImmutableDBOptions& db_options, 19959: const ColumnFamilyOptions& cf_options); 19959: }; 19959: 19959: struct MutableCFOptions { 19959: static const char* kName() { return "MutableCFOptions"; } 19959: explicit MutableCFOptions(const ColumnFamilyOptions& options) 19959: : write_buffer_size(options.write_buffer_size), 19959: max_write_buffer_number(options.max_write_buffer_number), 19959: arena_block_size(options.arena_block_size), 19959: memtable_prefix_bloom_size_ratio( 19959: options.memtable_prefix_bloom_size_ratio), 19959: memtable_whole_key_filtering(options.memtable_whole_key_filtering), 19959: memtable_huge_page_size(options.memtable_huge_page_size), 19959: max_successive_merges(options.max_successive_merges), 19959: inplace_update_num_locks(options.inplace_update_num_locks), 19959: prefix_extractor(options.prefix_extractor), 19959: experimental_mempurge_threshold( 19959: options.experimental_mempurge_threshold), 19959: disable_auto_compactions(options.disable_auto_compactions), 19959: soft_pending_compaction_bytes_limit( 19959: options.soft_pending_compaction_bytes_limit), 19959: hard_pending_compaction_bytes_limit( 19959: options.hard_pending_compaction_bytes_limit), 19959: level0_file_num_compaction_trigger( 19959: options.level0_file_num_compaction_trigger), 19959: level0_slowdown_writes_trigger(options.level0_slowdown_writes_trigger), 19959: level0_stop_writes_trigger(options.level0_stop_writes_trigger), 19959: max_compaction_bytes(options.max_compaction_bytes), 19959: ignore_max_compaction_bytes_for_input( 19959: options.ignore_max_compaction_bytes_for_input), 19959: target_file_size_base(options.target_file_size_base), 19959: target_file_size_multiplier(options.target_file_size_multiplier), 19959: max_bytes_for_level_base(options.max_bytes_for_level_base), 19959: max_bytes_for_level_multiplier(options.max_bytes_for_level_multiplier), 19959: ttl(options.ttl), 19959: periodic_compaction_seconds(options.periodic_compaction_seconds), 19959: max_bytes_for_level_multiplier_additional( 19959: options.max_bytes_for_level_multiplier_additional), 19959: compaction_options_fifo(options.compaction_options_fifo), 19959: compaction_options_universal(options.compaction_options_universal), 19959: enable_blob_files(options.enable_blob_files), 19959: min_blob_size(options.min_blob_size), 19959: blob_file_size(options.blob_file_size), 19959: blob_compression_type(options.blob_compression_type), 19959: enable_blob_garbage_collection(options.enable_blob_garbage_collection), 19959: blob_garbage_collection_age_cutoff( 19959: options.blob_garbage_collection_age_cutoff), 19959: blob_garbage_collection_force_threshold( 19959: options.blob_garbage_collection_force_threshold), 19959: blob_compaction_readahead_size(options.blob_compaction_readahead_size), 19959: blob_file_starting_level(options.blob_file_starting_level), 19959: prepopulate_blob_cache(options.prepopulate_blob_cache), 19959: max_sequential_skip_in_iterations( 19959: options.max_sequential_skip_in_iterations), 19959: check_flush_compaction_key_order( 19959: options.check_flush_compaction_key_order), 19959: paranoid_file_checks(options.paranoid_file_checks), 19959: report_bg_io_stats(options.report_bg_io_stats), 19959: compression(options.compression), 19959: bottommost_compression(options.bottommost_compression), 19959: compression_opts(options.compression_opts), 19959: bottommost_compression_opts(options.bottommost_compression_opts), 19959: last_level_temperature(options.last_level_temperature == 19959: Temperature::kUnknown 19959: ? options.bottommost_temperature 19959: : options.last_level_temperature), 19959: memtable_protection_bytes_per_key( 19959: options.memtable_protection_bytes_per_key), 19959: block_protection_bytes_per_key(options.block_protection_bytes_per_key), 19959: sample_for_compression( 19959: options.sample_for_compression), 19959: compression_per_level(options.compression_per_level), 19959: memtable_max_range_deletions(options.memtable_max_range_deletions), 19959: bottommost_file_compaction_delay( 19959: options.bottommost_file_compaction_delay) { 19959: RefreshDerivedOptions(options.num_levels, options.compaction_style); 19959: } 19959: 19959: MutableCFOptions() 19959: : write_buffer_size(0), 19959: max_write_buffer_number(0), 19959: arena_block_size(0), 19959: memtable_prefix_bloom_size_ratio(0), 19959: memtable_whole_key_filtering(false), 19959: memtable_huge_page_size(0), 19959: max_successive_merges(0), 19959: inplace_update_num_locks(0), 19959: prefix_extractor(nullptr), 19959: experimental_mempurge_threshold(0.0), 19959: disable_auto_compactions(false), 19959: soft_pending_compaction_bytes_limit(0), 19959: hard_pending_compaction_bytes_limit(0), 19959: level0_file_num_compaction_trigger(0), 19959: level0_slowdown_writes_trigger(0), 19959: level0_stop_writes_trigger(0), 19959: max_compaction_bytes(0), 19959: ignore_max_compaction_bytes_for_input(true), 19959: target_file_size_base(0), 19959: target_file_size_multiplier(0), 19959: max_bytes_for_level_base(0), 19959: max_bytes_for_level_multiplier(0), 19959: ttl(0), 19959: periodic_compaction_seconds(0), 19959: compaction_options_fifo(), 19959: enable_blob_files(false), 19959: min_blob_size(0), 19959: blob_file_size(0), 19959: blob_compression_type(kNoCompression), 19959: enable_blob_garbage_collection(false), 19959: blob_garbage_collection_age_cutoff(0.0), 19959: blob_garbage_collection_force_threshold(0.0), 19959: blob_compaction_readahead_size(0), 19959: blob_file_starting_level(0), 19959: prepopulate_blob_cache(PrepopulateBlobCache::kDisable), 19959: max_sequential_skip_in_iterations(0), 19959: check_flush_compaction_key_order(true), 19959: paranoid_file_checks(false), 19959: report_bg_io_stats(false), 19959: compression(Snappy_Supported() ? kSnappyCompression : kNoCompression), 19959: bottommost_compression(kDisableCompressionOption), 19959: last_level_temperature(Temperature::kUnknown), 19959: memtable_protection_bytes_per_key(0), 19959: block_protection_bytes_per_key(0), 19959: sample_for_compression(0), 19959: memtable_max_range_deletions(0) {} 19959: 19959: explicit MutableCFOptions(const Options& options); 19959: 19959: 19959: void RefreshDerivedOptions(int num_levels, CompactionStyle compaction_style); 19959: 19959: void RefreshDerivedOptions(const ImmutableCFOptions& ioptions) { 19959: RefreshDerivedOptions(ioptions.num_levels, ioptions.compaction_style); 19959: } 19959: 19959: int MaxBytesMultiplerAdditional(int level) const { 19959: if (level >= 19959: static_cast(max_bytes_for_level_multiplier_additional.size())) { 19959: return 1; 19959: } 19959: return max_bytes_for_level_multiplier_additional[level]; 19959: } 19959: 19959: void Dump(Logger* log) const; 19959: 19959: 19959: size_t write_buffer_size; 19959: int max_write_buffer_number; 19959: size_t arena_block_size; 19959: double memtable_prefix_bloom_size_ratio; 19959: bool memtable_whole_key_filtering; 19959: size_t memtable_huge_page_size; 19959: size_t max_successive_merges; 19959: size_t inplace_update_num_locks; 19959: std::shared_ptr prefix_extractor; 19959: # 279 "/build/reproducible-path/rocksdb-8.9.1/options/cf_options.h" 19959: double experimental_mempurge_threshold; 19959: 19959: 19959: bool disable_auto_compactions; 19959: uint64_t soft_pending_compaction_bytes_limit; 19959: uint64_t hard_pending_compaction_bytes_limit; 19959: int level0_file_num_compaction_trigger; 19959: int level0_slowdown_writes_trigger; 19959: int level0_stop_writes_trigger; 19959: uint64_t max_compaction_bytes; 19959: bool ignore_max_compaction_bytes_for_input; 19959: uint64_t target_file_size_base; 19959: int target_file_size_multiplier; 19959: uint64_t max_bytes_for_level_base; 19959: double max_bytes_for_level_multiplier; 19959: uint64_t ttl; 19959: uint64_t periodic_compaction_seconds; 19959: std::vector max_bytes_for_level_multiplier_additional; 19959: CompactionOptionsFIFO compaction_options_fifo; 19959: CompactionOptionsUniversal compaction_options_universal; 19959: 19959: 19959: bool enable_blob_files; 19959: uint64_t min_blob_size; 19959: uint64_t blob_file_size; 19959: CompressionType blob_compression_type; 19959: bool enable_blob_garbage_collection; 19959: double blob_garbage_collection_age_cutoff; 19959: double blob_garbage_collection_force_threshold; 19959: uint64_t blob_compaction_readahead_size; 19959: int blob_file_starting_level; 19959: PrepopulateBlobCache prepopulate_blob_cache; 19959: 19959: 19959: uint64_t max_sequential_skip_in_iterations; 19959: bool check_flush_compaction_key_order; 19959: bool paranoid_file_checks; 19959: bool report_bg_io_stats; 19959: CompressionType compression; 19959: CompressionType bottommost_compression; 19959: CompressionOptions compression_opts; 19959: CompressionOptions bottommost_compression_opts; 19959: Temperature last_level_temperature; 19959: uint32_t memtable_protection_bytes_per_key; 19959: uint8_t block_protection_bytes_per_key; 19959: 19959: uint64_t sample_for_compression; 19959: std::vector compression_per_level; 19959: uint32_t memtable_max_range_deletions; 19959: uint32_t bottommost_file_compaction_delay; 19959: 19959: 19959: 19959: std::vector max_file_size; 19959: }; 19959: 19959: uint64_t MultiplyCheckOverflow(uint64_t op1, double op2); 19959: 19959: 19959: uint64_t MaxFileSizeForLevel(const MutableCFOptions& cf_options, 19959: int level, CompactionStyle compaction_style, int base_level = 1, 19959: bool level_compaction_dynamic_level_bytes = false); 19959: 19959: 19959: 19959: size_t MaxFileSizeForL0MetaPin(const MutableCFOptions& cf_options); 19959: 19959: Status GetStringFromMutableCFOptions(const ConfigOptions& config_options, 19959: const MutableCFOptions& mutable_opts, 19959: std::string* opt_string); 19959: 19959: Status GetMutableOptionsFromStrings( 19959: const MutableCFOptions& base_options, 19959: const std::unordered_map& options_map, 19959: Logger* info_log, MutableCFOptions* new_options); 19959: 19959: } 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/malloc.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/port/malloc.h" 19959: 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 2 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class RandomAccessFile; 19959: struct ReadOptions; 19959: 19959: bool ShouldReportDetailedTime(Env* env, Statistics* stats); 19959: 19959: 19959: constexpr uint32_t kMagicNumberLengthByte = 8; 19959: 19959: 19959: 19959: class BlockHandle { 19959: public: 19959: 19959: 19959: BlockHandle(); 19959: BlockHandle(uint64_t offset, uint64_t size); 19959: 19959: 19959: uint64_t offset() const { return offset_; } 19959: void set_offset(uint64_t _offset) { offset_ = _offset; } 19959: 19959: 19959: uint64_t size() const { return size_; } 19959: void set_size(uint64_t _size) { size_ = _size; } 19959: 19959: void EncodeTo(std::string* dst) const; 19959: char* EncodeTo(char* dst) const; 19959: Status DecodeFrom(Slice* input); 19959: Status DecodeSizeFrom(uint64_t offset, Slice* input); 19959: 19959: 19959: std::string ToString(bool hex = true) const; 19959: 19959: 19959: 19959: bool IsNull() const { return offset_ == 0 && size_ == 0; } 19959: 19959: static const BlockHandle& NullBlockHandle() { return kNullBlockHandle; } 19959: 19959: 19959: static constexpr uint32_t kMaxEncodedLength = 2 * kMaxVarint64Length; 19959: 19959: inline bool operator==(const BlockHandle& rhs) const { 19959: return offset_ == rhs.offset_ && size_ == rhs.size_; 19959: } 19959: inline bool operator!=(const BlockHandle& rhs) const { 19959: return !(*this == rhs); 19959: } 19959: 19959: private: 19959: uint64_t offset_; 19959: uint64_t size_; 19959: 19959: static const BlockHandle kNullBlockHandle; 19959: }; 19959: # 92 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 19959: struct IndexValue { 19959: BlockHandle handle; 19959: 19959: Slice first_internal_key; 19959: 19959: IndexValue() = default; 19959: IndexValue(BlockHandle _handle, Slice _first_internal_key) 19959: : handle(_handle), first_internal_key(_first_internal_key) {} 19959: 19959: 19959: 19959: 19959: 19959: 19959: void EncodeTo(std::string* dst, bool have_first_key, 19959: const BlockHandle* previous_handle) const; 19959: Status DecodeFrom(Slice* input, bool have_first_key, 19959: const BlockHandle* previous_handle); 19959: 19959: std::string ToString(bool hex, bool have_first_key) const; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline uint32_t ChecksumModifierForContext(uint32_t base_context_checksum, 19959: uint64_t offset) { 19959: 19959: 19959: 19959: 19959: 19959: uint32_t all_or_nothing = uint32_t{0} - (base_context_checksum != 0); 19959: # 142 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 19959: uint32_t modifier = 19959: base_context_checksum ^ (Lower32of64(offset) + Upper32of64(offset)); 19959: 19959: return modifier & all_or_nothing; 19959: } 19959: 19959: inline uint32_t GetCompressFormatForVersion(uint32_t format_version) { 19959: 19959: 19959: 19959: return format_version >= 2 ? 2 : 1; 19959: } 19959: 19959: constexpr uint32_t kLatestFormatVersion = 6; 19959: 19959: inline bool IsSupportedFormatVersion(uint32_t version) { 19959: return version <= kLatestFormatVersion; 19959: } 19959: 19959: 19959: inline bool FormatVersionUsesContextChecksum(uint32_t version) { 19959: return version >= 6; 19959: } 19959: 19959: inline bool FormatVersionUsesIndexHandleInFooter(uint32_t version) { 19959: return version < 6; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class Footer { 19959: public: 19959: 19959: Footer() {} 19959: 19959: 19959: 19959: 19959: 19959: 19959: Status DecodeFrom(Slice input, uint64_t input_offset, 19959: uint64_t enforce_table_magic_number = 0); 19959: 19959: 19959: 19959: uint64_t table_magic_number() const { return table_magic_number_; } 19959: 19959: 19959: 19959: 19959: uint32_t format_version() const { return format_version_; } 19959: 19959: 19959: uint32_t base_context_checksum() const { return base_context_checksum_; } 19959: 19959: 19959: const BlockHandle& metaindex_handle() const { return metaindex_handle_; } 19959: 19959: 19959: 19959: const BlockHandle& index_handle() const { return index_handle_; } 19959: 19959: 19959: ChecksumType checksum_type() const { 19959: return static_cast(checksum_type_); 19959: } 19959: 19959: 19959: 19959: 19959: inline size_t GetBlockTrailerSize() const { return block_trailer_size_; } 19959: 19959: 19959: std::string ToString() const; 19959: 19959: 19959: 19959: 19959: 19959: 19959: static constexpr uint32_t kVersion0EncodedLength = 19959: 2 * BlockHandle::kMaxEncodedLength + kMagicNumberLengthByte; 19959: static constexpr uint32_t kMinEncodedLength = kVersion0EncodedLength; 19959: 19959: 19959: 19959: 19959: 19959: static constexpr uint32_t kNewVersionsEncodedLength = 19959: 1 + 2 * BlockHandle::kMaxEncodedLength + 4 + kMagicNumberLengthByte; 19959: static constexpr uint32_t kMaxEncodedLength = kNewVersionsEncodedLength; 19959: 19959: static constexpr uint64_t kNullTableMagicNumber = 0; 19959: 19959: static constexpr uint32_t kInvalidFormatVersion = 0xffffffffU; 19959: 19959: private: 19959: static constexpr int kInvalidChecksumType = 19959: (1 << (sizeof(ChecksumType) * 8)) | kNoChecksum; 19959: 19959: uint64_t table_magic_number_ = kNullTableMagicNumber; 19959: uint32_t format_version_ = kInvalidFormatVersion; 19959: uint32_t base_context_checksum_ = 0; 19959: BlockHandle metaindex_handle_; 19959: BlockHandle index_handle_; 19959: int checksum_type_ = kInvalidChecksumType; 19959: uint8_t block_trailer_size_ = 0; 19959: }; 19959: 19959: 19959: class FooterBuilder { 19959: public: 19959: # 275 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 19959: Status Build(uint64_t table_magic_number, uint32_t format_version, 19959: uint64_t footer_offset, ChecksumType checksum_type, 19959: const BlockHandle& metaindex_handle, 19959: const BlockHandle& index_handle = BlockHandle::NullBlockHandle(), 19959: uint32_t base_context_checksum = 0); 19959: 19959: 19959: 19959: const Slice& GetSlice() const { 19959: 19959: # 284 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 3 4 19959: (static_cast ( 19959: # 284 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 19959: slice_.size() 19959: # 284 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 284 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 19959: "slice_.size()" 19959: # 284 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 3 4 19959: , "./table/format.h", 284, __extension__ __PRETTY_FUNCTION__)) 19959: # 284 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 19959: ; 19959: return slice_; 19959: } 19959: 19959: private: 19959: Slice slice_; 19959: std::array data_; 19959: }; 19959: 19959: 19959: 19959: 19959: Status ReadFooterFromFile(const IOOptions& opts, RandomAccessFileReader* file, 19959: FileSystem& fs, FilePrefetchBuffer* prefetch_buffer, 19959: uint64_t file_size, Footer* footer, 19959: uint64_t enforce_table_magic_number = 0); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint32_t ComputeBuiltinChecksum(ChecksumType type, const char* data, 19959: size_t size); 19959: uint32_t ComputeBuiltinChecksumWithLastByte(ChecksumType type, const char* data, 19959: size_t size, char last_byte); 19959: # 335 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 19959: struct BlockContents { 19959: 19959: Slice data; 19959: CacheAllocationPtr allocation; 19959: 19959: 19959: 19959: 19959: bool has_trailer = false; 19959: 19959: 19959: BlockContents() {} 19959: 19959: 19959: BlockContents(const Slice& _data) : data(_data) {} 19959: 19959: 19959: BlockContents(CacheAllocationPtr&& _data, size_t _size) 19959: : data(_data.get(), _size), allocation(std::move(_data)) {} 19959: 19959: 19959: BlockContents(std::unique_ptr&& _data, size_t _size) 19959: : data(_data.get(), _size) { 19959: allocation.reset(_data.release()); 19959: } 19959: 19959: 19959: bool own_bytes() const { return allocation.get() != nullptr; } 19959: 19959: 19959: size_t usable_size() const { 19959: if (allocation.get() != nullptr) { 19959: auto allocator = allocation.get_deleter().allocator; 19959: if (allocator) { 19959: return allocator->UsableSize(allocation.get(), data.size()); 19959: } 19959: 19959: return malloc_usable_size(allocation.get()); 19959: 19959: 19959: 19959: } else { 19959: return 0; 19959: } 19959: } 19959: 19959: size_t ApproximateMemoryUsage() const { 19959: return usable_size() + sizeof(*this); 19959: } 19959: 19959: BlockContents(BlockContents&& other) noexcept { *this = std::move(other); } 19959: 19959: BlockContents& operator=(BlockContents&& other) { 19959: data = std::move(other.data); 19959: allocation = std::move(other.allocation); 19959: 19959: has_trailer = other.has_trailer; 19959: 19959: return *this; 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: Status UncompressSerializedBlock(const UncompressionInfo& info, 19959: const char* data, size_t size, 19959: BlockContents* out_contents, 19959: uint32_t format_version, 19959: const ImmutableOptions& ioptions, 19959: MemoryAllocator* allocator = nullptr); 19959: 19959: 19959: 19959: Status UncompressBlockData(const UncompressionInfo& info, const char* data, 19959: size_t size, BlockContents* out_contents, 19959: uint32_t format_version, 19959: const ImmutableOptions& ioptions, 19959: MemoryAllocator* allocator = nullptr); 19959: 19959: 19959: Status ReifyDbHostIdProperty(Env* env, std::string* db_host_id); 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline BlockHandle::BlockHandle() : BlockHandle(~uint64_t{0}, ~uint64_t{0}) {} 19959: 19959: inline BlockHandle::BlockHandle(uint64_t _offset, uint64_t _size) 19959: : offset_(_offset), size_(_size) {} 19959: 19959: } 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: class PinnedIteratorsManager; 19959: 19959: enum class IterBoundCheck : char { 19959: kUnknown = 0, 19959: kOutOfBound, 19959: kInbound, 19959: }; 19959: 19959: struct IterateResult { 19959: Slice key; 19959: IterBoundCheck bound_check_result = IterBoundCheck::kUnknown; 19959: 19959: bool value_prepared = true; 19959: }; 19959: 19959: template 19959: class InternalIteratorBase : public Cleanable { 19959: public: 19959: InternalIteratorBase() {} 19959: 19959: 19959: InternalIteratorBase(const InternalIteratorBase&) = delete; 19959: InternalIteratorBase& operator=(const InternalIteratorBase&) = delete; 19959: 19959: virtual ~InternalIteratorBase() {} 19959: # 55 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 19959: virtual void SetRangeDelReadSeqno(SequenceNumber ) {} 19959: 19959: 19959: 19959: 19959: virtual bool Valid() const = 0; 19959: 19959: 19959: 19959: virtual void SeekToFirst() = 0; 19959: 19959: 19959: 19959: virtual void SeekToLast() = 0; 19959: # 77 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 19959: virtual void Seek(const Slice& target) = 0; 19959: 19959: 19959: 19959: 19959: virtual void SeekForPrev(const Slice& target) = 0; 19959: 19959: 19959: 19959: 19959: virtual void Next() = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual bool NextAndGetResult(IterateResult* result) { 19959: Next(); 19959: bool is_valid = Valid(); 19959: if (is_valid) { 19959: result->key = key(); 19959: 19959: 19959: 19959: result->bound_check_result = IterBoundCheck::kUnknown; 19959: result->value_prepared = false; 19959: 19959: # 103 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 3 4 19959: (static_cast ( 19959: # 103 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 19959: UpperBoundCheckResult() != IterBoundCheck::kOutOfBound 19959: # 103 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 103 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 19959: "UpperBoundCheckResult() != IterBoundCheck::kOutOfBound" 19959: # 103 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 3 4 19959: , "./table/internal_iterator.h", 103, __extension__ __PRETTY_FUNCTION__)) 19959: # 103 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 19959: ; 19959: } 19959: return is_valid; 19959: } 19959: 19959: 19959: 19959: 19959: virtual void Prev() = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual Slice key() const = 0; 19959: 19959: 19959: 19959: virtual Slice user_key() const { return ExtractUserKey(key()); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual TValue value() const = 0; 19959: 19959: 19959: 19959: 19959: virtual Status status() const = 0; 19959: # 146 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 19959: virtual bool PrepareValue() { return true; } 19959: 19959: 19959: virtual bool MayBeOutOfLowerBound() { return true; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual IterBoundCheck UpperBoundCheckResult() { 19959: return IterBoundCheck::kUnknown; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void SetPinnedItersMgr(PinnedIteratorsManager* ) { 19959: } 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 19959: virtual bool IsKeyPinned() const { return false; } 19959: 19959: 19959: 19959: 19959: 19959: virtual bool IsValuePinned() const { return false; } 19959: 19959: virtual Status GetProperty(std::string , std::string* ) { 19959: return Status::NotSupported(""); 19959: } 19959: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 19959: virtual void GetReadaheadState(ReadaheadFileInfo* ) {} 19959: 19959: 19959: virtual void SetReadaheadState(ReadaheadFileInfo* ) {} 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual bool IsDeleteRangeSentinelKey() const { return false; } 19959: 19959: protected: 19959: void SeekForPrevImpl(const Slice& target, const CompareInterface* cmp) { 19959: Seek(target); 19959: if (!Valid()) { 19959: SeekToLast(); 19959: } 19959: while (Valid() && cmp->Compare(target, key()) < 0) { 19959: Prev(); 19959: } 19959: } 19959: }; 19959: 19959: using InternalIterator = InternalIteratorBase; 19959: 19959: 19959: template 19959: extern InternalIteratorBase* NewEmptyInternalIterator(); 19959: 19959: 19959: template 19959: extern InternalIteratorBase* NewErrorInternalIterator( 19959: const Status& status); 19959: 19959: 19959: template 19959: extern InternalIteratorBase* NewErrorInternalIterator( 19959: const Status& status, Arena* arena); 19959: 19959: } 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: class PinnedIteratorsManager : public Cleanable { 19959: public: 19959: PinnedIteratorsManager() : pinning_enabled(false) {} 19959: ~PinnedIteratorsManager() { 19959: if (pinning_enabled) { 19959: ReleasePinnedData(); 19959: } 19959: } 19959: 19959: 19959: PinnedIteratorsManager(PinnedIteratorsManager&& other) noexcept = default; 19959: PinnedIteratorsManager& operator=(PinnedIteratorsManager&& other) noexcept = 19959: default; 19959: 19959: 19959: void StartPinning() { 19959: 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 19959: (static_cast ( 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 19959: pinning_enabled == false 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 19959: "pinning_enabled == false" 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 19959: , "./db/pinned_iterators_manager.h", 35, __extension__ __PRETTY_FUNCTION__)) 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 19959: ; 19959: pinning_enabled = true; 19959: } 19959: 19959: 19959: bool PinningEnabled() { return pinning_enabled; } 19959: 19959: 19959: void PinIterator(InternalIterator* iter, bool arena = false) { 19959: if (arena) { 19959: PinPtr(iter, &PinnedIteratorsManager::ReleaseArenaInternalIterator); 19959: } else { 19959: PinPtr(iter, &PinnedIteratorsManager::ReleaseInternalIterator); 19959: } 19959: } 19959: 19959: using ReleaseFunction = void (*)(void* arg1); 19959: void PinPtr(void* ptr, ReleaseFunction release_func) { 19959: 19959: # 53 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 19959: (static_cast ( 19959: # 53 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 19959: pinning_enabled 19959: # 53 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 53 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 19959: "pinning_enabled" 19959: # 53 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 19959: , "./db/pinned_iterators_manager.h", 53, __extension__ __PRETTY_FUNCTION__)) 19959: # 53 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 19959: ; 19959: if (ptr == nullptr) { 19959: return; 19959: } 19959: pinned_ptrs_.emplace_back(ptr, release_func); 19959: } 19959: 19959: 19959: inline void ReleasePinnedData() { 19959: 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 19959: (static_cast ( 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 19959: pinning_enabled == true 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 19959: "pinning_enabled == true" 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 19959: , "./db/pinned_iterators_manager.h", 62, __extension__ __PRETTY_FUNCTION__)) 19959: # 62 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 19959: ; 19959: pinning_enabled = false; 19959: 19959: 19959: std::sort(pinned_ptrs_.begin(), pinned_ptrs_.end()); 19959: auto unique_end = std::unique(pinned_ptrs_.begin(), pinned_ptrs_.end()); 19959: 19959: for (auto i = pinned_ptrs_.begin(); i != unique_end; ++i) { 19959: void* ptr = i->first; 19959: ReleaseFunction release_func = i->second; 19959: release_func(ptr); 19959: } 19959: pinned_ptrs_.clear(); 19959: 19959: Cleanable::Reset(); 19959: } 19959: 19959: private: 19959: static void ReleaseInternalIterator(void* ptr) { 19959: delete reinterpret_cast(ptr); 19959: } 19959: 19959: static void ReleaseArenaInternalIterator(void* ptr) { 19959: reinterpret_cast(ptr)->~InternalIterator(); 19959: } 19959: 19959: bool pinning_enabled; 19959: std::vector> pinned_ptrs_; 19959: }; 19959: 19959: } 19959: # 16 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 2 19959: 19959: 19959: 19959: namespace rocksdb { 19959: struct FragmentedRangeTombstoneList; 19959: 19959: struct FragmentedRangeTombstoneListCache { 19959: 19959: std::mutex reader_mutex; 19959: std::unique_ptr tombstones = nullptr; 19959: 19959: std::atomic initialized = false; 19959: }; 19959: 19959: struct FragmentedRangeTombstoneList { 19959: public: 19959: # 40 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 19959: struct RangeTombstoneStack { 19959: RangeTombstoneStack(const Slice& start, const Slice& end, size_t start_idx, 19959: size_t end_idx) 19959: : start_key(start), 19959: end_key(end), 19959: seq_start_idx(start_idx), 19959: seq_end_idx(end_idx) {} 19959: Slice start_key; 19959: Slice end_key; 19959: size_t seq_start_idx; 19959: size_t seq_end_idx; 19959: }; 19959: 19959: 19959: FragmentedRangeTombstoneList( 19959: std::unique_ptr unfragmented_tombstones, 19959: const InternalKeyComparator& icmp, bool for_compaction = false, 19959: const std::vector& snapshots = {}); 19959: 19959: std::vector::const_iterator begin() const { 19959: return tombstones_.begin(); 19959: } 19959: 19959: std::vector::const_iterator end() const { 19959: return tombstones_.end(); 19959: } 19959: 19959: std::vector::const_iterator seq_iter(size_t idx) const { 19959: return std::next(tombstone_seqs_.begin(), idx); 19959: } 19959: 19959: std::vector::const_iterator ts_iter(size_t idx) const { 19959: return std::next(tombstone_timestamps_.begin(), idx); 19959: } 19959: 19959: std::vector::const_iterator seq_begin() const { 19959: return tombstone_seqs_.begin(); 19959: } 19959: 19959: std::vector::const_iterator seq_end() const { 19959: return tombstone_seqs_.end(); 19959: } 19959: 19959: bool empty() const { return tombstones_.empty(); } 19959: 19959: 19959: 19959: 19959: 19959: bool ContainsRange(SequenceNumber lower, SequenceNumber upper); 19959: 19959: uint64_t num_unfragmented_tombstones() const { 19959: return num_unfragmented_tombstones_; 19959: } 19959: 19959: uint64_t total_tombstone_payload_bytes() const { 19959: return total_tombstone_payload_bytes_; 19959: } 19959: 19959: private: 19959: # 110 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 19959: void FragmentTombstones( 19959: std::unique_ptr unfragmented_tombstones, 19959: const InternalKeyComparator& icmp, bool for_compaction, 19959: const std::vector& snapshots); 19959: 19959: std::vector tombstones_; 19959: std::vector tombstone_seqs_; 19959: std::vector tombstone_timestamps_; 19959: std::once_flag seq_set_init_once_flag_; 19959: std::set seq_set_; 19959: std::list pinned_slices_; 19959: PinnedIteratorsManager pinned_iters_mgr_; 19959: uint64_t num_unfragmented_tombstones_; 19959: uint64_t total_tombstone_payload_bytes_; 19959: }; 19959: # 135 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 19959: class FragmentedRangeTombstoneIterator : public InternalIterator { 19959: public: 19959: FragmentedRangeTombstoneIterator(FragmentedRangeTombstoneList* tombstones, 19959: const InternalKeyComparator& icmp, 19959: SequenceNumber upper_bound, 19959: const Slice* ts_upper_bound = nullptr, 19959: SequenceNumber lower_bound = 0); 19959: FragmentedRangeTombstoneIterator( 19959: const std::shared_ptr& tombstones, 19959: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 19959: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 19959: FragmentedRangeTombstoneIterator( 19959: const std::shared_ptr& tombstones, 19959: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 19959: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 19959: 19959: void SetRangeDelReadSeqno(SequenceNumber read_seqno) override { 19959: upper_bound_ = read_seqno; 19959: } 19959: 19959: void SeekToFirst() override; 19959: void SeekToLast() override; 19959: 19959: void SeekToTopFirst(); 19959: void SeekToTopLast(); 19959: # 169 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 19959: void Seek(const Slice& target) override; 19959: 19959: 19959: 19959: void SeekForPrev(const Slice& target) override; 19959: 19959: void Next() override; 19959: void Prev() override; 19959: 19959: void TopNext(); 19959: void TopPrev(); 19959: 19959: bool Valid() const override; 19959: 19959: 19959: Slice key() const override { 19959: MaybePinKey(); 19959: return current_start_key_.Encode(); 19959: } 19959: Slice value() const override { return pos_->end_key; } 19959: bool IsKeyPinned() const override { return false; } 19959: bool IsValuePinned() const override { return true; } 19959: Status status() const override { return Status::OK(); } 19959: 19959: bool empty() const { return tombstones_->empty(); } 19959: void Invalidate() { 19959: pos_ = tombstones_->end(); 19959: seq_pos_ = tombstones_->seq_end(); 19959: pinned_pos_ = tombstones_->end(); 19959: pinned_seq_pos_ = tombstones_->seq_end(); 19959: } 19959: 19959: RangeTombstone Tombstone() const { 19959: 19959: # 202 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 3 4 19959: (static_cast ( 19959: # 202 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 19959: Valid() 19959: # 202 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 202 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 19959: "Valid()" 19959: # 202 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 3 4 19959: , "./db/range_tombstone_fragmenter.h", 202, __extension__ __PRETTY_FUNCTION__)) 19959: # 202 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 19959: ; 19959: if (icmp_->user_comparator()->timestamp_size()) { 19959: return RangeTombstone(start_key(), end_key(), seq(), timestamp()); 19959: } 19959: return RangeTombstone(start_key(), end_key(), seq()); 19959: } 19959: 19959: 19959: 19959: Slice start_key() const { return pos_->start_key; } 19959: Slice end_key() const { return pos_->end_key; } 19959: SequenceNumber seq() const { return *seq_pos_; } 19959: Slice timestamp() const { 19959: 19959: return *tombstones_->ts_iter(seq_pos_ - tombstones_->seq_begin()); 19959: } 19959: 19959: 19959: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 19959: ts_upper_bound_ = ts_upper_bound; 19959: } 19959: 19959: ParsedInternalKey parsed_start_key() const { 19959: return ParsedInternalKey(pos_->start_key, seq(), kTypeRangeDeletion); 19959: } 19959: ParsedInternalKey parsed_end_key() const { 19959: return ParsedInternalKey(pos_->end_key, kMaxSequenceNumber, 19959: kTypeRangeDeletion); 19959: } 19959: 19959: 19959: 19959: 19959: SequenceNumber MaxCoveringTombstoneSeqnum(const Slice& user_key); 19959: # 246 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 19959: std::map> 19959: SplitBySnapshot(const std::vector& snapshots); 19959: 19959: SequenceNumber upper_bound() const { return upper_bound_; } 19959: SequenceNumber lower_bound() const { return lower_bound_; } 19959: 19959: uint64_t num_unfragmented_tombstones() const { 19959: return tombstones_->num_unfragmented_tombstones(); 19959: } 19959: uint64_t total_tombstone_payload_bytes() const { 19959: return tombstones_->total_tombstone_payload_bytes(); 19959: } 19959: 19959: private: 19959: using RangeTombstoneStack = FragmentedRangeTombstoneList::RangeTombstoneStack; 19959: 19959: struct RangeTombstoneStackStartComparator { 19959: explicit RangeTombstoneStackStartComparator(const Comparator* c) : cmp(c) {} 19959: 19959: bool operator()(const RangeTombstoneStack& a, 19959: const RangeTombstoneStack& b) const { 19959: return cmp->CompareWithoutTimestamp(a.start_key, b.start_key) < 0; 19959: } 19959: 19959: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 19959: return cmp->CompareWithoutTimestamp(a.start_key, b) < 0; 19959: } 19959: 19959: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 19959: return cmp->CompareWithoutTimestamp(a, b.start_key) < 0; 19959: } 19959: 19959: const Comparator* cmp; 19959: }; 19959: 19959: struct RangeTombstoneStackEndComparator { 19959: explicit RangeTombstoneStackEndComparator(const Comparator* c) : cmp(c) {} 19959: 19959: bool operator()(const RangeTombstoneStack& a, 19959: const RangeTombstoneStack& b) const { 19959: return cmp->CompareWithoutTimestamp(a.end_key, b.end_key) < 0; 19959: } 19959: 19959: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 19959: return cmp->CompareWithoutTimestamp(a.end_key, b) < 0; 19959: } 19959: 19959: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 19959: return cmp->CompareWithoutTimestamp(a, b.end_key) < 0; 19959: } 19959: 19959: const Comparator* cmp; 19959: }; 19959: 19959: void MaybePinKey() const { 19959: if (pos_ != tombstones_->end() && seq_pos_ != tombstones_->seq_end() && 19959: (pinned_pos_ != pos_ || pinned_seq_pos_ != seq_pos_)) { 19959: current_start_key_.Set(pos_->start_key, *seq_pos_, kTypeRangeDeletion); 19959: pinned_pos_ = pos_; 19959: pinned_seq_pos_ = seq_pos_; 19959: } 19959: } 19959: 19959: void SeekToCoveringTombstone(const Slice& key); 19959: void SeekForPrevToCoveringTombstone(const Slice& key); 19959: void ScanForwardToVisibleTombstone(); 19959: void ScanBackwardToVisibleTombstone(); 19959: bool ValidPos() const { 19959: return Valid() && seq_pos_ != tombstones_->seq_iter(pos_->seq_end_idx); 19959: } 19959: 19959: const RangeTombstoneStackStartComparator tombstone_start_cmp_; 19959: const RangeTombstoneStackEndComparator tombstone_end_cmp_; 19959: const InternalKeyComparator* icmp_; 19959: const Comparator* ucmp_; 19959: std::shared_ptr tombstones_ref_; 19959: std::shared_ptr tombstones_cache_ref_; 19959: FragmentedRangeTombstoneList* tombstones_; 19959: SequenceNumber upper_bound_; 19959: SequenceNumber lower_bound_; 19959: 19959: const Slice* ts_upper_bound_; 19959: std::vector::const_iterator pos_; 19959: std::vector::const_iterator seq_pos_; 19959: mutable std::vector::const_iterator pinned_pos_; 19959: mutable std::vector::const_iterator pinned_seq_pos_; 19959: mutable InternalKey current_start_key_; 19959: 19959: 19959: 19959: 19959: 19959: void SetMaxVisibleSeqAndTimestamp() { 19959: seq_pos_ = std::lower_bound(tombstones_->seq_iter(pos_->seq_start_idx), 19959: tombstones_->seq_iter(pos_->seq_end_idx), 19959: upper_bound_, std::greater()); 19959: if (ts_upper_bound_ && !ts_upper_bound_->empty()) { 19959: auto ts_pos = std::lower_bound( 19959: tombstones_->ts_iter(pos_->seq_start_idx), 19959: tombstones_->ts_iter(pos_->seq_end_idx), *ts_upper_bound_, 19959: [this](const Slice& s1, const Slice& s2) { 19959: return ucmp_->CompareTimestamp(s1, s2) > 0; 19959: }); 19959: auto ts_idx = ts_pos - tombstones_->ts_iter(pos_->seq_start_idx); 19959: auto seq_idx = seq_pos_ - tombstones_->seq_iter(pos_->seq_start_idx); 19959: if (seq_idx < ts_idx) { 19959: 19959: 19959: seq_pos_ = tombstones_->seq_iter(pos_->seq_start_idx + ts_idx); 19959: } 19959: } 19959: } 19959: }; 19959: 19959: } 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class ReadCallback { 19959: public: 19959: explicit ReadCallback(SequenceNumber last_visible_seq) 19959: : max_visible_seq_(last_visible_seq) {} 19959: ReadCallback(SequenceNumber last_visible_seq, SequenceNumber min_uncommitted) 19959: : max_visible_seq_(last_visible_seq), min_uncommitted_(min_uncommitted) {} 19959: 19959: virtual ~ReadCallback() {} 19959: 19959: 19959: 19959: virtual bool IsVisibleFullCheck(SequenceNumber seq) = 0; 19959: 19959: inline bool IsVisible(SequenceNumber seq) { 19959: 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: (static_cast ( 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: min_uncommitted_ > 0 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: "min_uncommitted_ > 0" 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: , "./db/read_callback.h", 27, __extension__ __PRETTY_FUNCTION__)) 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: ; 19959: 19959: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: (static_cast ( 19959: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: min_uncommitted_ >= kMinUnCommittedSeq 19959: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: "min_uncommitted_ >= kMinUnCommittedSeq" 19959: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: , "./db/read_callback.h", 28, __extension__ __PRETTY_FUNCTION__)) 19959: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: ; 19959: if (seq < min_uncommitted_) { 19959: 19959: # 30 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: (static_cast ( 19959: # 30 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: seq <= max_visible_seq_ 19959: # 30 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 30 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: "seq <= max_visible_seq_" 19959: # 30 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: , "./db/read_callback.h", 30, __extension__ __PRETTY_FUNCTION__)) 19959: # 30 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: ; 19959: return true; 19959: } else if (max_visible_seq_ < seq) { 19959: 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: (static_cast ( 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: seq != 0 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: "seq != 0" 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: , "./db/read_callback.h", 33, __extension__ __PRETTY_FUNCTION__)) 19959: # 33 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: ; 19959: return false; 19959: } else { 19959: 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: (static_cast ( 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: seq != 0 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: "seq != 0" 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 19959: , "./db/read_callback.h", 36, __extension__ __PRETTY_FUNCTION__)) 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 19959: ; 19959: return IsVisibleFullCheck(seq); 19959: } 19959: } 19959: 19959: inline SequenceNumber max_visible_seq() { return max_visible_seq_; } 19959: 19959: 19959: virtual void Refresh(SequenceNumber seq) { max_visible_seq_ = seq; } 19959: 19959: protected: 19959: 19959: 19959: SequenceNumber max_visible_seq_ = kMaxSequenceNumber; 19959: 19959: const SequenceNumber min_uncommitted_ = kMinUnCommittedSeq; 19959: }; 19959: 19959: } 19959: # 23 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/cassert" 1 3 19959: # 41 "/usr/include/c++/13/cassert" 3 19959: 19959: # 42 "/usr/include/c++/13/cassert" 3 19959: 19959: 19959: # 1 "/usr/include/assert.h" 1 3 4 19959: # 45 "/usr/include/c++/13/cassert" 2 3 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 2 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_constants.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: constexpr uint64_t kInvalidBlobFileNumber = 0; 19959: 19959: } 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 2 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class JSONWriter; 19959: class Slice; 19959: class Status; 19959: 19959: class BlobFileAddition { 19959: public: 19959: BlobFileAddition() = default; 19959: 19959: BlobFileAddition(uint64_t blob_file_number, uint64_t total_blob_count, 19959: uint64_t total_blob_bytes, std::string checksum_method, 19959: std::string checksum_value) 19959: : blob_file_number_(blob_file_number), 19959: total_blob_count_(total_blob_count), 19959: total_blob_bytes_(total_blob_bytes), 19959: checksum_method_(std::move(checksum_method)), 19959: checksum_value_(std::move(checksum_value)) { 19959: 19959: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 3 4 19959: (static_cast ( 19959: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 19959: checksum_method_.empty() == checksum_value_.empty() 19959: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 19959: "checksum_method_.empty() == checksum_value_.empty()" 19959: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 3 4 19959: , "./db/blob/blob_file_addition.h", 34, __extension__ __PRETTY_FUNCTION__)) 19959: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 19959: ; 19959: } 19959: 19959: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 19959: uint64_t GetTotalBlobCount() const { return total_blob_count_; } 19959: uint64_t GetTotalBlobBytes() const { return total_blob_bytes_; } 19959: const std::string& GetChecksumMethod() const { return checksum_method_; } 19959: const std::string& GetChecksumValue() const { return checksum_value_; } 19959: 19959: void EncodeTo(std::string* output) const; 19959: Status DecodeFrom(Slice* input); 19959: 19959: std::string DebugString() const; 19959: std::string DebugJSON() const; 19959: 19959: private: 19959: enum CustomFieldTags : uint32_t; 19959: 19959: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 19959: uint64_t total_blob_count_ = 0; 19959: uint64_t total_blob_bytes_ = 0; 19959: std::string checksum_method_; 19959: std::string checksum_value_; 19959: }; 19959: 19959: bool operator==(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 19959: bool operator!=(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 19959: 19959: std::ostream& operator<<(std::ostream& os, 19959: const BlobFileAddition& blob_file_addition); 19959: JSONWriter& operator<<(JSONWriter& jw, 19959: const BlobFileAddition& blob_file_addition); 19959: 19959: } 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_garbage.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_garbage.h" 19959: namespace rocksdb { 19959: 19959: class JSONWriter; 19959: class Slice; 19959: class Status; 19959: 19959: class BlobFileGarbage { 19959: public: 19959: BlobFileGarbage() = default; 19959: 19959: BlobFileGarbage(uint64_t blob_file_number, uint64_t garbage_blob_count, 19959: uint64_t garbage_blob_bytes) 19959: : blob_file_number_(blob_file_number), 19959: garbage_blob_count_(garbage_blob_count), 19959: garbage_blob_bytes_(garbage_blob_bytes) {} 19959: 19959: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 19959: uint64_t GetGarbageBlobCount() const { return garbage_blob_count_; } 19959: uint64_t GetGarbageBlobBytes() const { return garbage_blob_bytes_; } 19959: 19959: void EncodeTo(std::string* output) const; 19959: Status DecodeFrom(Slice* input); 19959: 19959: std::string DebugString() const; 19959: std::string DebugJSON() const; 19959: 19959: private: 19959: enum CustomFieldTags : uint32_t; 19959: 19959: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 19959: uint64_t garbage_blob_count_ = 0; 19959: uint64_t garbage_blob_bytes_ = 0; 19959: }; 19959: 19959: bool operator==(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 19959: bool operator!=(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 19959: 19959: std::ostream& operator<<(std::ostream& os, 19959: const BlobFileGarbage& blob_file_garbage); 19959: JSONWriter& operator<<(JSONWriter& jw, 19959: const BlobFileGarbage& blob_file_garbage); 19959: 19959: } 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/wal_edit.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/db/wal_edit.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/logging/log_buffer.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/ctime" 1 3 19959: # 39 "/usr/include/c++/13/ctime" 3 19959: 19959: # 40 "/usr/include/c++/13/ctime" 3 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/logging/log_buffer.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 1 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/memory/allocator.h" 1 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/memory/allocator.h" 19959: 19959: # 1 "/usr/include/c++/13/cerrno" 1 3 19959: # 39 "/usr/include/c++/13/cerrno" 3 19959: 19959: # 40 "/usr/include/c++/13/cerrno" 3 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/memory/allocator.h" 2 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class Logger; 19959: 19959: class Allocator { 19959: public: 19959: virtual ~Allocator() {} 19959: 19959: virtual char* Allocate(size_t bytes) = 0; 19959: virtual char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 19959: Logger* logger = nullptr) = 0; 19959: 19959: virtual size_t BlockSize() const = 0; 19959: }; 19959: 19959: class AllocTracker { 19959: public: 19959: explicit AllocTracker(WriteBufferManager* write_buffer_manager); 19959: 19959: AllocTracker(const AllocTracker&) = delete; 19959: void operator=(const AllocTracker&) = delete; 19959: 19959: ~AllocTracker(); 19959: void Allocate(size_t bytes); 19959: 19959: 19959: void DoneAllocating(); 19959: 19959: void FreeMem(); 19959: 19959: bool is_freed() const { return write_buffer_manager_ == nullptr || freed_; } 19959: 19959: private: 19959: WriteBufferManager* write_buffer_manager_; 19959: std::atomic bytes_allocated_; 19959: bool done_allocating_; 19959: bool freed_; 19959: }; 19959: 19959: } 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/mmap.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 1 3 4 19959: # 25 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 19959: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 19959: # 26 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 19959: # 41 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 1 3 4 19959: # 29 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-map-flags-generic.h" 1 3 4 19959: # 30 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 1 3 4 19959: # 116 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 3 4 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 1 3 4 19959: # 47 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 19959: 19959: # 47 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 19959: extern "C" { 19959: 19959: 19959: 19959: int memfd_create (const char *__name, unsigned int __flags) noexcept (true); 19959: 19959: 19959: 19959: int mlock2 (const void *__addr, size_t __length, unsigned int __flags) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: int pkey_alloc (unsigned int __flags, unsigned int __access_rights) noexcept (true); 19959: 19959: 19959: 19959: int pkey_set (int __key, unsigned int __access_rights) noexcept (true); 19959: 19959: 19959: 19959: int pkey_get (int __key) noexcept (true); 19959: 19959: 19959: 19959: int pkey_free (int __key) noexcept (true); 19959: 19959: 19959: 19959: int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) noexcept (true); 19959: 19959: } 19959: # 117 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 2 3 4 19959: # 33 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 19959: # 42 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 19959: 19959: 19959: 19959: 19959: extern "C" { 19959: # 57 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 19959: extern void *mmap (void *__addr, size_t __len, int __prot, 19959: int __flags, int __fd, __off_t __offset) noexcept (true); 19959: # 70 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 19959: extern void *mmap64 (void *__addr, size_t __len, int __prot, 19959: int __flags, int __fd, __off64_t __offset) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int munmap (void *__addr, size_t __len) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int mprotect (void *__addr, size_t __len, int __prot) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int msync (void *__addr, size_t __len, int __flags); 19959: 19959: 19959: 19959: 19959: extern int madvise (void *__addr, size_t __len, int __advice) noexcept (true); 19959: 19959: 19959: 19959: extern int posix_madvise (void *__addr, size_t __len, int __advice) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int mlock (const void *__addr, size_t __len) noexcept (true); 19959: 19959: 19959: extern int munlock (const void *__addr, size_t __len) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int mlockall (int __flags) noexcept (true); 19959: 19959: 19959: 19959: extern int munlockall (void) noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: extern int mincore (void *__start, size_t __len, unsigned char *__vec) 19959: noexcept (true); 19959: # 133 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 19959: extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, 19959: int __flags, ...) noexcept (true); 19959: 19959: 19959: 19959: extern int remap_file_pages (void *__start, size_t __size, int __prot, 19959: size_t __pgoff, int __flags) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int shm_open (const char *__name, int __oflag, mode_t __mode); 19959: 19959: 19959: extern int shm_unlink (const char *__name); 19959: 19959: 19959: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 1 3 4 19959: # 24 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 3 4 19959: struct iovec; 19959: extern __ssize_t process_madvise (int __pid_fd, const struct iovec *__iov, 19959: size_t __count, int __advice, 19959: unsigned __flags) 19959: noexcept (true); 19959: 19959: extern int process_mrelease (int pidfd, unsigned int flags) noexcept (true); 19959: # 151 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 19959: 19959: } 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/port/mmap.h" 2 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/port/mmap.h" 19959: namespace rocksdb { 19959: 19959: 19959: class MemMapping { 19959: public: 19959: static constexpr bool kHugePageSupported = 19959: 19959: true; 19959: 19959: 19959: 19959: 19959: 19959: static MemMapping AllocateHuge(size_t length); 19959: 19959: 19959: 19959: 19959: 19959: 19959: static MemMapping AllocateLazyZeroed(size_t length); 19959: 19959: 19959: MemMapping(const MemMapping&) = delete; 19959: MemMapping& operator=(const MemMapping&) = delete; 19959: 19959: MemMapping(MemMapping&&) noexcept; 19959: MemMapping& operator=(MemMapping&&) noexcept; 19959: 19959: 19959: ~MemMapping(); 19959: 19959: inline void* Get() const { return addr_; } 19959: inline size_t Length() const { return length_; } 19959: 19959: private: 19959: MemMapping() {} 19959: 19959: 19959: void* addr_ = nullptr; 19959: 19959: size_t length_ = 0; 19959: 19959: 19959: 19959: 19959: 19959: static MemMapping AllocateAnonymous(size_t length, bool huge); 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: class TypedMemMapping : public MemMapping { 19959: public: 19959: TypedMemMapping(MemMapping&& v) noexcept 19959: : MemMapping(std::move(v)) {} 19959: TypedMemMapping& operator=(MemMapping&& v) noexcept { 19959: MemMapping& base = *this; 19959: base = std::move(v); 19959: } 19959: 19959: inline T* Get() const { return static_cast(MemMapping::Get()); } 19959: inline size_t Count() const { return MemMapping::Length() / sizeof(T); } 19959: 19959: inline T& operator[](size_t index) const { return Get()[index]; } 19959: }; 19959: 19959: } 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 2 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class Arena : public Allocator { 19959: public: 19959: 19959: Arena(const Arena&) = delete; 19959: void operator=(const Arena&) = delete; 19959: 19959: static constexpr size_t kInlineSize = 2048; 19959: static constexpr size_t kMinBlockSize = 4096; 19959: static constexpr size_t kMaxBlockSize = 2u << 30; 19959: 19959: static constexpr unsigned kAlignUnit = alignof(std::max_align_t); 19959: static_assert((kAlignUnit & (kAlignUnit - 1)) == 0, 19959: "Pointer size should be power of 2"); 19959: 19959: 19959: 19959: 19959: explicit Arena(size_t block_size = kMinBlockSize, 19959: AllocTracker* tracker = nullptr, size_t huge_page_size = 0); 19959: ~Arena(); 19959: 19959: char* Allocate(size_t bytes) override; 19959: # 60 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 19959: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 19959: Logger* logger = nullptr) override; 19959: 19959: 19959: 19959: 19959: size_t ApproximateMemoryUsage() const { 19959: return blocks_memory_ + blocks_.size() * sizeof(char*) - 19959: alloc_bytes_remaining_; 19959: } 19959: 19959: size_t MemoryAllocatedBytes() const { return blocks_memory_; } 19959: 19959: size_t AllocatedAndUnused() const { return alloc_bytes_remaining_; } 19959: 19959: 19959: 19959: size_t IrregularBlockNum() const { return irregular_block_num; } 19959: 19959: size_t BlockSize() const override { return kBlockSize; } 19959: 19959: bool IsInInlineBlock() const { 19959: return blocks_.empty() && huge_blocks_.empty(); 19959: } 19959: 19959: 19959: 19959: 19959: static size_t OptimizeBlockSize(size_t block_size); 19959: 19959: private: 19959: alignas(std::max_align_t) char inline_block_[kInlineSize]; 19959: 19959: const size_t kBlockSize; 19959: 19959: std::deque> blocks_; 19959: 19959: std::deque huge_blocks_; 19959: size_t irregular_block_num = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: char* unaligned_alloc_ptr_ = nullptr; 19959: char* aligned_alloc_ptr_ = nullptr; 19959: 19959: size_t alloc_bytes_remaining_ = 0; 19959: 19959: size_t hugetlb_size_ = 0; 19959: 19959: char* AllocateFromHugePage(size_t bytes); 19959: char* AllocateFallback(size_t bytes, bool aligned); 19959: char* AllocateNewBlock(size_t block_bytes); 19959: 19959: 19959: size_t blocks_memory_ = 0; 19959: 19959: AllocTracker* tracker_; 19959: }; 19959: 19959: inline char* Arena::Allocate(size_t bytes) { 19959: 19959: 19959: 19959: 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 3 4 19959: (static_cast ( 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 19959: bytes > 0 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 19959: "bytes > 0" 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 3 4 19959: , "./memory/arena.h", 126, __extension__ __PRETTY_FUNCTION__)) 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 19959: ; 19959: if (bytes <= alloc_bytes_remaining_) { 19959: unaligned_alloc_ptr_ -= bytes; 19959: alloc_bytes_remaining_ -= bytes; 19959: return unaligned_alloc_ptr_; 19959: } 19959: return AllocateFallback(bytes, false ); 19959: } 19959: 19959: } 19959: # 11 "/build/reproducible-path/rocksdb-8.9.1/logging/log_buffer.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/sys_time.h" 1 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/port/sys_time.h" 19959: 19959: # 42 "/build/reproducible-path/rocksdb-8.9.1/port/sys_time.h" 19959: # 1 "/usr/include/arm-linux-gnueabihf/sys/time.h" 1 3 4 19959: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 19959: 19959: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 19959: extern "C" { 19959: # 52 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 19959: struct timezone 19959: { 19959: int tz_minuteswest; 19959: int tz_dsttime; 19959: }; 19959: # 67 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 19959: extern int gettimeofday (struct timeval *__restrict __tv, 19959: void *__restrict __tz) noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: # 86 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 19959: extern int settimeofday (const struct timeval *__tv, 19959: const struct timezone *__tz) 19959: noexcept (true); 19959: 19959: 19959: 19959: 19959: 19959: extern int adjtime (const struct timeval *__delta, 19959: struct timeval *__olddelta) noexcept (true); 19959: # 114 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 19959: enum __itimer_which 19959: { 19959: 19959: ITIMER_REAL = 0, 19959: 19959: 19959: ITIMER_VIRTUAL = 1, 19959: 19959: 19959: 19959: ITIMER_PROF = 2 19959: 19959: }; 19959: 19959: 19959: 19959: struct itimerval 19959: { 19959: 19959: struct timeval it_interval; 19959: 19959: struct timeval it_value; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: typedef int __itimer_which_t; 19959: 19959: 19959: 19959: 19959: 19959: extern int getitimer (__itimer_which_t __which, 19959: struct itimerval *__value) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int setitimer (__itimer_which_t __which, 19959: const struct itimerval *__restrict __new, 19959: struct itimerval *__restrict __old) noexcept (true); 19959: 19959: 19959: 19959: 19959: extern int utimes (const char *__file, const struct timeval __tvp[2]) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: # 189 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 19959: extern int lutimes (const char *__file, const struct timeval __tvp[2]) 19959: noexcept (true) __attribute__ ((__nonnull__ (1))); 19959: 19959: 19959: extern int futimes (int __fd, const struct timeval __tvp[2]) noexcept (true); 19959: # 214 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 19959: extern int futimesat (int __fd, const char *__file, 19959: const struct timeval __tvp[2]) noexcept (true); 19959: # 258 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 19959: } 19959: # 43 "/build/reproducible-path/rocksdb-8.9.1/port/sys_time.h" 2 19959: 19959: 19959: 19959: # 45 "/build/reproducible-path/rocksdb-8.9.1/port/sys_time.h" 19959: namespace rocksdb { 19959: 19959: namespace port { 19959: 19959: using TimeVal = struct timeval; 19959: 19959: inline void GetTimeOfDay(TimeVal* tv, struct timezone* tz) { 19959: gettimeofday(tv, tz); 19959: } 19959: 19959: inline struct tm* LocalTimeR(const time_t* timep, struct tm* result) { 19959: return localtime_r(timep, result); 19959: } 19959: 19959: } 19959: 19959: } 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/logging/log_buffer.h" 2 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class Logger; 19959: 19959: 19959: class LogBuffer { 19959: public: 19959: 19959: 19959: LogBuffer(const InfoLogLevel log_level, Logger* info_log); 19959: 19959: 19959: 19959: void AddLogToBuffer(size_t max_log_size, const char* format, va_list ap); 19959: 19959: size_t IsEmpty() const { return logs_.empty(); } 19959: 19959: 19959: void FlushBufferToLog(); 19959: static const size_t kDefaultMaxLogSize = 512; 19959: 19959: private: 19959: 19959: struct BufferedLog { 19959: port::TimeVal now_tv; 19959: char message[1]; 19959: }; 19959: 19959: const InfoLogLevel log_level_; 19959: Logger* info_log_; 19959: Arena arena_; 19959: autovector logs_; 19959: }; 19959: 19959: 19959: 19959: 19959: extern void LogToBuffer(LogBuffer* log_buffer, size_t max_log_size, 19959: const char* format, ...); 19959: 19959: extern void LogToBuffer(LogBuffer* log_buffer, const char* format, ...); 19959: 19959: } 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 2 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class JSONWriter { 19959: public: 19959: JSONWriter() : state_(kExpectKey), first_element_(true), in_array_(false) { 19959: stream_ << "{"; 19959: } 19959: 19959: void AddKey(const std::string& key) { 19959: 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: (static_cast ( 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: state_ == kExpectKey 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: "state_ == kExpectKey" 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: , "./logging/event_logger.h", 25, __extension__ __PRETTY_FUNCTION__)) 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: ; 19959: if (!first_element_) { 19959: stream_ << ", "; 19959: } 19959: stream_ << "\"" << key << "\": "; 19959: state_ = kExpectValue; 19959: first_element_ = false; 19959: } 19959: 19959: void AddValue(const char* value) { 19959: 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: (static_cast ( 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: state_ == kExpectValue || state_ == kInArray 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: "state_ == kExpectValue || state_ == kInArray" 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: , "./logging/event_logger.h", 35, __extension__ __PRETTY_FUNCTION__)) 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: ; 19959: if (state_ == kInArray && !first_element_) { 19959: stream_ << ", "; 19959: } 19959: stream_ << "\"" << value << "\""; 19959: if (state_ != kInArray) { 19959: state_ = kExpectKey; 19959: } 19959: first_element_ = false; 19959: } 19959: 19959: template 19959: void AddValue(const T& value) { 19959: 19959: # 48 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: (static_cast ( 19959: # 48 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: state_ == kExpectValue || state_ == kInArray 19959: # 48 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 48 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: "state_ == kExpectValue || state_ == kInArray" 19959: # 48 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: , "./logging/event_logger.h", 48, __extension__ __PRETTY_FUNCTION__)) 19959: # 48 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: ; 19959: if (state_ == kInArray && !first_element_) { 19959: stream_ << ", "; 19959: } 19959: stream_ << value; 19959: if (state_ != kInArray) { 19959: state_ = kExpectKey; 19959: } 19959: first_element_ = false; 19959: } 19959: 19959: void StartArray() { 19959: 19959: # 60 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: (static_cast ( 19959: # 60 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: state_ == kExpectValue 19959: # 60 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 60 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: "state_ == kExpectValue" 19959: # 60 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: , "./logging/event_logger.h", 60, __extension__ __PRETTY_FUNCTION__)) 19959: # 60 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: ; 19959: state_ = kInArray; 19959: in_array_ = true; 19959: stream_ << "["; 19959: first_element_ = true; 19959: } 19959: 19959: void EndArray() { 19959: 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: (static_cast ( 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: state_ == kInArray 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: "state_ == kInArray" 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: , "./logging/event_logger.h", 68, __extension__ __PRETTY_FUNCTION__)) 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: ; 19959: state_ = kExpectKey; 19959: in_array_ = false; 19959: stream_ << "]"; 19959: first_element_ = false; 19959: } 19959: 19959: void StartObject() { 19959: 19959: # 76 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: (static_cast ( 19959: # 76 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: state_ == kExpectValue 19959: # 76 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 76 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: "state_ == kExpectValue" 19959: # 76 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: , "./logging/event_logger.h", 76, __extension__ __PRETTY_FUNCTION__)) 19959: # 76 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: ; 19959: state_ = kExpectKey; 19959: stream_ << "{"; 19959: first_element_ = true; 19959: } 19959: 19959: void EndObject() { 19959: 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: (static_cast ( 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: state_ == kExpectKey 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: "state_ == kExpectKey" 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: , "./logging/event_logger.h", 83, __extension__ __PRETTY_FUNCTION__)) 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: ; 19959: stream_ << "}"; 19959: first_element_ = false; 19959: } 19959: 19959: void StartArrayedObject() { 19959: 19959: # 89 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: (static_cast ( 19959: # 89 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: state_ == kInArray && in_array_ 19959: # 89 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 89 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: "state_ == kInArray && in_array_" 19959: # 89 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: , "./logging/event_logger.h", 89, __extension__ __PRETTY_FUNCTION__)) 19959: # 89 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: ; 19959: state_ = kExpectValue; 19959: if (!first_element_) { 19959: stream_ << ", "; 19959: } 19959: StartObject(); 19959: } 19959: 19959: void EndArrayedObject() { 19959: 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: (static_cast ( 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: in_array_ 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: "in_array_" 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: , "./logging/event_logger.h", 98, __extension__ __PRETTY_FUNCTION__)) 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: ; 19959: EndObject(); 19959: state_ = kInArray; 19959: } 19959: 19959: std::string Get() const { return stream_.str(); } 19959: 19959: JSONWriter& operator<<(const char* val) { 19959: if (state_ == kExpectKey) { 19959: AddKey(val); 19959: } else { 19959: AddValue(val); 19959: } 19959: return *this; 19959: } 19959: 19959: JSONWriter& operator<<(const std::string& val) { 19959: return *this << val.c_str(); 19959: } 19959: 19959: template 19959: JSONWriter& operator<<(const T& val) { 19959: 19959: # 120 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: (static_cast ( 19959: # 120 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: state_ != kExpectKey 19959: # 120 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 120 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: "state_ != kExpectKey" 19959: # 120 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 19959: , "./logging/event_logger.h", 120, __extension__ __PRETTY_FUNCTION__)) 19959: # 120 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 19959: ; 19959: AddValue(val); 19959: return *this; 19959: } 19959: 19959: private: 19959: enum JSONWriterState { 19959: kExpectKey, 19959: kExpectValue, 19959: kInArray, 19959: kInArrayedObject, 19959: }; 19959: JSONWriterState state_; 19959: bool first_element_; 19959: bool in_array_; 19959: std::ostringstream stream_; 19959: }; 19959: 19959: class EventLoggerStream { 19959: public: 19959: template 19959: EventLoggerStream& operator<<(const T& val) { 19959: MakeStream(); 19959: *json_writer_ << val; 19959: return *this; 19959: } 19959: 19959: void StartArray() { json_writer_->StartArray(); } 19959: void EndArray() { json_writer_->EndArray(); } 19959: void StartObject() { json_writer_->StartObject(); } 19959: void EndObject() { json_writer_->EndObject(); } 19959: 19959: ~EventLoggerStream(); 19959: 19959: private: 19959: void MakeStream() { 19959: if (!json_writer_) { 19959: json_writer_ = new JSONWriter(); 19959: *this << "time_micros" 19959: << std::chrono::duration_cast( 19959: std::chrono::system_clock::now().time_since_epoch()) 19959: .count(); 19959: } 19959: } 19959: friend class EventLogger; 19959: explicit EventLoggerStream(Logger* logger); 19959: explicit EventLoggerStream(LogBuffer* log_buffer, const size_t max_log_size); 19959: 19959: Logger* const logger_; 19959: LogBuffer* const log_buffer_; 19959: const size_t max_log_size_; 19959: 19959: JSONWriter* json_writer_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: class EventLogger { 19959: public: 19959: static const char* Prefix() { return "EVENT_LOG_v1"; } 19959: 19959: explicit EventLogger(Logger* logger) : logger_(logger) {} 19959: EventLoggerStream Log() { return EventLoggerStream(logger_); } 19959: EventLoggerStream LogToBuffer(LogBuffer* log_buffer) { 19959: return EventLoggerStream(log_buffer, LogBuffer::kDefaultMaxLogSize); 19959: } 19959: EventLoggerStream LogToBuffer(LogBuffer* log_buffer, 19959: const size_t max_log_size) { 19959: return EventLoggerStream(log_buffer, max_log_size); 19959: } 19959: void Log(const JSONWriter& jwriter); 19959: static void Log(Logger* logger, const JSONWriter& jwriter); 19959: static void LogToBuffer( 19959: LogBuffer* log_buffer, const JSONWriter& jwriter, 19959: const size_t max_log_size = LogBuffer::kDefaultMaxLogSize); 19959: 19959: private: 19959: Logger* logger_; 19959: }; 19959: 19959: } 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/db/wal_edit.h" 2 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class JSONWriter; 19959: class Slice; 19959: class Status; 19959: 19959: using WalNumber = uint64_t; 19959: 19959: 19959: class WalMetadata { 19959: public: 19959: WalMetadata() = default; 19959: 19959: explicit WalMetadata(uint64_t synced_size_bytes) 19959: : synced_size_bytes_(synced_size_bytes) {} 19959: 19959: bool HasSyncedSize() const { return synced_size_bytes_ != kUnknownWalSize; } 19959: 19959: void SetSyncedSizeInBytes(uint64_t bytes) { synced_size_bytes_ = bytes; } 19959: 19959: uint64_t GetSyncedSizeInBytes() const { return synced_size_bytes_; } 19959: 19959: private: 19959: friend bool operator==(const WalMetadata& lhs, const WalMetadata& rhs); 19959: friend bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs); 19959: 19959: 19959: constexpr static uint64_t kUnknownWalSize = 19959: std::numeric_limits::max(); 19959: 19959: 19959: uint64_t synced_size_bytes_ = kUnknownWalSize; 19959: }; 19959: 19959: inline bool operator==(const WalMetadata& lhs, const WalMetadata& rhs) { 19959: return lhs.synced_size_bytes_ == rhs.synced_size_bytes_; 19959: } 19959: 19959: inline bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs) { 19959: return !(lhs == rhs); 19959: } 19959: 19959: 19959: enum class WalAdditionTag : uint32_t { 19959: 19959: kTerminate = 1, 19959: 19959: kSyncedSize = 2, 19959: 19959: }; 19959: 19959: 19959: class WalAddition { 19959: public: 19959: WalAddition() : number_(0), metadata_() {} 19959: 19959: explicit WalAddition(WalNumber number) : number_(number), metadata_() {} 19959: 19959: WalAddition(WalNumber number, WalMetadata meta) 19959: : number_(number), metadata_(std::move(meta)) {} 19959: 19959: WalNumber GetLogNumber() const { return number_; } 19959: 19959: const WalMetadata& GetMetadata() const { return metadata_; } 19959: 19959: void EncodeTo(std::string* dst) const; 19959: 19959: Status DecodeFrom(Slice* src); 19959: 19959: std::string DebugString() const; 19959: 19959: private: 19959: WalNumber number_; 19959: WalMetadata metadata_; 19959: }; 19959: 19959: std::ostream& operator<<(std::ostream& os, const WalAddition& wal); 19959: JSONWriter& operator<<(JSONWriter& jw, const WalAddition& wal); 19959: 19959: using WalAdditions = std::vector; 19959: 19959: 19959: class WalDeletion { 19959: public: 19959: WalDeletion() : number_(kEmpty) {} 19959: 19959: explicit WalDeletion(WalNumber number) : number_(number) {} 19959: 19959: WalNumber GetLogNumber() const { return number_; } 19959: 19959: void EncodeTo(std::string* dst) const; 19959: 19959: Status DecodeFrom(Slice* src); 19959: 19959: std::string DebugString() const; 19959: 19959: bool IsEmpty() const { return number_ == kEmpty; } 19959: 19959: void Reset() { number_ = kEmpty; } 19959: 19959: private: 19959: static constexpr WalNumber kEmpty = 0; 19959: 19959: WalNumber number_; 19959: }; 19959: 19959: std::ostream& operator<<(std::ostream& os, const WalDeletion& wal); 19959: JSONWriter& operator<<(JSONWriter& jw, const WalDeletion& wal); 19959: # 138 "/build/reproducible-path/rocksdb-8.9.1/db/wal_edit.h" 19959: class WalSet { 19959: public: 19959: 19959: 19959: 19959: 19959: 19959: Status AddWal(const WalAddition& wal); 19959: Status AddWals(const WalAdditions& wals); 19959: 19959: 19959: 19959: Status DeleteWalsBefore(WalNumber wal); 19959: 19959: 19959: void Reset(); 19959: 19959: 19959: WalNumber GetMinWalNumberToKeep() const { return min_wal_number_to_keep_; } 19959: 19959: const std::map& GetWals() const { return wals_; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: Status CheckWals( 19959: Env* env, 19959: const std::unordered_map& logs_on_disk) const; 19959: 19959: private: 19959: std::map wals_; 19959: 19959: 19959: WalNumber min_wal_number_to_keep_ = 0; 19959: }; 19959: 19959: } 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 2 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: namespace rocksdb { 19959: 19959: class Logger; 19959: class SecondaryCacheResultHandle; 19959: class Statistics; 19959: # 44 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: class Cache { 19959: public: 19959: 19959: struct Handle {}; 19959: 19959: public: 19959: 19959: 19959: using ObjectPtr = void*; 19959: 19959: 19959: 19959: struct CreateContext {}; 19959: 19959: public: 19959: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: enum class Priority { HIGH, LOW, BOTTOM }; 19959: # 97 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: using SizeCallback = size_t (*)(ObjectPtr obj); 19959: 19959: 19959: 19959: 19959: 19959: using SaveToCallback = Status (*)(ObjectPtr from_obj, size_t from_offset, 19959: size_t length, char* out_buf); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: using DeleterFn = void (*)(ObjectPtr obj, MemoryAllocator* allocator); 19959: # 124 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: using CreateCallback = Status (*)(const Slice& data, CompressionType type, 19959: CacheTier source, CreateContext* context, 19959: MemoryAllocator* allocator, 19959: ObjectPtr* out_obj, size_t* out_charge); 19959: 19959: 19959: 19959: 19959: struct CacheItemHelper { 19959: 19959: 19959: 19959: DeleterFn del_cb; 19959: 19959: 19959: 19959: SizeCallback size_cb; 19959: SaveToCallback saveto_cb; 19959: CreateCallback create_cb; 19959: 19959: CacheEntryRole role; 19959: 19959: 19959: 19959: 19959: const CacheItemHelper* without_secondary_compat; 19959: 19959: CacheItemHelper() : CacheItemHelper(CacheEntryRole::kMisc) {} 19959: 19959: 19959: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb = nullptr) 19959: : CacheItemHelper(_role, _del_cb, nullptr, nullptr, nullptr, this) {} 19959: 19959: 19959: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb, 19959: SizeCallback _size_cb, SaveToCallback _saveto_cb, 19959: CreateCallback _create_cb, 19959: const CacheItemHelper* _without_secondary_compat) 19959: : del_cb(_del_cb), 19959: size_cb(_size_cb), 19959: saveto_cb(_saveto_cb), 19959: create_cb(_create_cb), 19959: role(_role), 19959: without_secondary_compat(_without_secondary_compat) { 19959: 19959: 19959: 19959: # 170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: (static_cast ( 19959: # 170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: (size_cb != nullptr) == (saveto_cb != nullptr) 19959: # 170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: "(size_cb != nullptr) == (saveto_cb != nullptr)" 19959: # 170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: , "./include/rocksdb/advanced_cache.h", 170, __extension__ __PRETTY_FUNCTION__)) 19959: # 170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: ; 19959: 19959: # 171 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: (static_cast ( 19959: # 171 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: (size_cb != nullptr) == (create_cb != nullptr) 19959: # 171 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 171 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: "(size_cb != nullptr) == (create_cb != nullptr)" 19959: # 171 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: , "./include/rocksdb/advanced_cache.h", 171, __extension__ __PRETTY_FUNCTION__)) 19959: # 171 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: ; 19959: 19959: 19959: 19959: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: (static_cast ( 19959: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: role == without_secondary_compat->role 19959: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: "role == without_secondary_compat->role" 19959: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: , "./include/rocksdb/advanced_cache.h", 174, __extension__ __PRETTY_FUNCTION__)) 19959: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: ; 19959: 19959: # 175 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: (static_cast ( 19959: # 175 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: del_cb == without_secondary_compat->del_cb 19959: # 175 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 175 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: "del_cb == without_secondary_compat->del_cb" 19959: # 175 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: , "./include/rocksdb/advanced_cache.h", 175, __extension__ __PRETTY_FUNCTION__)) 19959: # 175 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: ; 19959: 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: (static_cast ( 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: !without_secondary_compat->IsSecondaryCacheCompatible() 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: "!without_secondary_compat->IsSecondaryCacheCompatible()" 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: , "./include/rocksdb/advanced_cache.h", 176, __extension__ __PRETTY_FUNCTION__)) 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: ; 19959: } 19959: inline bool IsSecondaryCacheCompatible() const { 19959: return size_cb != nullptr; 19959: } 19959: }; 19959: 19959: public: 19959: Cache(std::shared_ptr allocator = nullptr) 19959: : memory_allocator_(std::move(allocator)) {} 19959: 19959: Cache(const Cache&) = delete; 19959: Cache& operator=(const Cache&) = delete; 19959: 19959: 19959: virtual ~Cache() {} 19959: # 204 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: static Status CreateFromString(const ConfigOptions& config_options, 19959: const std::string& value, 19959: std::shared_ptr* result); 19959: 19959: public: 19959: 19959: virtual const char* Name() const = 0; 19959: # 260 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: virtual Status Insert( 19959: const Slice& key, ObjectPtr obj, const CacheItemHelper* helper, 19959: size_t charge, Handle** handle = nullptr, 19959: Priority priority = Priority::LOW, const Slice& compressed = Slice(), 19959: CompressionType type = CompressionType::kNoCompression) = 0; 19959: # 275 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: virtual Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 19959: const CacheItemHelper* helper, size_t charge, 19959: bool allow_uncharged) = 0; 19959: # 289 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: virtual Handle* Lookup(const Slice& key, 19959: const CacheItemHelper* helper = nullptr, 19959: CreateContext* create_context = nullptr, 19959: Priority priority = Priority::LOW, 19959: Statistics* stats = nullptr) = 0; 19959: 19959: 19959: inline Handle* BasicLookup(const Slice& key, Statistics* stats) { 19959: return Lookup(key, nullptr, nullptr, Priority::LOW, stats); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual bool Ref(Handle* handle) = 0; 19959: # 317 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: virtual bool Release(Handle* handle, bool erase_if_last_ref = false) = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual ObjectPtr Value(Handle* handle) = 0; 19959: 19959: 19959: 19959: 19959: virtual void Erase(const Slice& key) = 0; 19959: 19959: 19959: 19959: 19959: virtual uint64_t NewId() = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual void SetCapacity(size_t capacity) = 0; 19959: 19959: 19959: 19959: virtual void SetStrictCapacityLimit(bool strict_capacity_limit) = 0; 19959: 19959: 19959: 19959: virtual bool HasStrictCapacityLimit() const = 0; 19959: 19959: 19959: virtual size_t GetCapacity() const = 0; 19959: 19959: 19959: virtual size_t GetUsage() const = 0; 19959: 19959: 19959: 19959: 19959: virtual size_t GetOccupancyCount() const { return 19959: # 359 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: (4294967295U) 19959: # 359 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: ; } 19959: 19959: 19959: 19959: 19959: virtual size_t GetTableAddressCount() const { return 0; } 19959: 19959: 19959: virtual size_t GetUsage(Handle* handle) const = 0; 19959: 19959: 19959: virtual size_t GetPinnedUsage() const = 0; 19959: 19959: 19959: virtual size_t GetCharge(Handle* handle) const = 0; 19959: 19959: 19959: virtual const CacheItemHelper* GetCacheItemHelper(Handle* handle) const = 0; 19959: 19959: virtual Status GetSecondaryCacheCapacity(size_t& ) const { 19959: return Status::NotSupported(); 19959: } 19959: 19959: virtual Status GetSecondaryCachePinnedUsage(size_t& ) const { 19959: return Status::NotSupported(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void DisownData() { 19959: 19959: } 19959: 19959: struct ApplyToAllEntriesOptions { 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t average_entries_per_lock = 256; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: virtual void ApplyToAllEntries( 19959: const std::function& callback, 19959: const ApplyToAllEntriesOptions& opts) = 0; 19959: 19959: 19959: 19959: virtual void EraseUnRefEntries() = 0; 19959: 19959: virtual std::string GetPrintableOptions() const { return ""; } 19959: 19959: 19959: 19959: 19959: 19959: virtual void ReportProblems( 19959: const std::shared_ptr& ) const {} 19959: 19959: MemoryAllocator* memory_allocator() const { return memory_allocator_.get(); } 19959: 19959: 19959: virtual uint32_t GetHashSeed() const { return 0; } 19959: # 440 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: virtual bool Release(Handle* handle, bool , 19959: bool erase_if_last_ref) { 19959: return Release(handle, erase_if_last_ref); 19959: } 19959: 19959: 19959: 19959: 19959: struct AsyncLookupHandle { 19959: 19959: 19959: 19959: Slice key; 19959: const CacheItemHelper* helper = nullptr; 19959: CreateContext* create_context = nullptr; 19959: Priority priority = Priority::LOW; 19959: Statistics* stats = nullptr; 19959: 19959: AsyncLookupHandle() {} 19959: AsyncLookupHandle(const Slice& _key, const CacheItemHelper* _helper, 19959: CreateContext* _create_context, 19959: Priority _priority = Priority::LOW, 19959: Statistics* _stats = nullptr) 19959: : key(_key), 19959: helper(_helper), 19959: create_context(_create_context), 19959: priority(_priority), 19959: stats(_stats) {} 19959: 19959: 19959: ~AsyncLookupHandle() { 19959: # 470 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: (static_cast ( 19959: # 470 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: !IsPending() 19959: # 470 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 470 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: "!IsPending()" 19959: # 470 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 19959: , "./include/rocksdb/advanced_cache.h", 470, __extension__ __PRETTY_FUNCTION__)) 19959: # 470 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: ; } 19959: 19959: 19959: AsyncLookupHandle(const AsyncLookupHandle&) = delete; 19959: AsyncLookupHandle operator=(const AsyncLookupHandle&) = delete; 19959: AsyncLookupHandle(AsyncLookupHandle&&) = delete; 19959: AsyncLookupHandle operator=(AsyncLookupHandle&&) = delete; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool IsReady(); 19959: 19959: 19959: bool IsPending(); 19959: 19959: 19959: 19959: 19959: 19959: Handle* Result(); 19959: 19959: 19959: Handle* result_handle = nullptr; 19959: SecondaryCacheResultHandle* pending_handle = nullptr; 19959: SecondaryCache* pending_cache = nullptr; 19959: bool found_dummy_entry = false; 19959: bool kept_in_sec_cache = false; 19959: }; 19959: # 521 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 19959: virtual void StartAsyncLookup(AsyncLookupHandle& async_handle); 19959: 19959: 19959: 19959: Handle* Wait(AsyncLookupHandle& async_handle); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual void WaitAll(AsyncLookupHandle* , size_t ); 19959: 19959: 19959: 19959: 19959: 19959: using EvictionCallback = 19959: std::function; 19959: 19959: 19959: 19959: void SetEvictionCallback(EvictionCallback&& fn); 19959: 19959: protected: 19959: std::shared_ptr memory_allocator_; 19959: EvictionCallback eviction_callback_; 19959: }; 19959: 19959: 19959: 19959: class CacheWrapper : public Cache { 19959: public: 19959: explicit CacheWrapper(std::shared_ptr target) 19959: : target_(std::move(target)) {} 19959: 19959: 19959: 19959: 19959: Status Insert( 19959: const Slice& key, ObjectPtr value, const CacheItemHelper* helper, 19959: size_t charge, Handle** handle = nullptr, 19959: Priority priority = Priority::LOW, 19959: const Slice& compressed_value = Slice(), 19959: CompressionType type = CompressionType::kNoCompression) override { 19959: return target_->Insert(key, value, helper, charge, handle, priority, 19959: compressed_value, type); 19959: } 19959: 19959: Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 19959: const CacheItemHelper* helper, size_t charge, 19959: bool allow_uncharged) override { 19959: return target_->CreateStandalone(key, obj, helper, charge, allow_uncharged); 19959: } 19959: 19959: Handle* Lookup(const Slice& key, const CacheItemHelper* helper, 19959: CreateContext* create_context, 19959: Priority priority = Priority::LOW, 19959: Statistics* stats = nullptr) override { 19959: return target_->Lookup(key, helper, create_context, priority, stats); 19959: } 19959: 19959: bool Ref(Handle* handle) override { return target_->Ref(handle); } 19959: 19959: using Cache::Release; 19959: bool Release(Handle* handle, bool erase_if_last_ref = false) override { 19959: return target_->Release(handle, erase_if_last_ref); 19959: } 19959: 19959: ObjectPtr Value(Handle* handle) override { return target_->Value(handle); } 19959: 19959: void Erase(const Slice& key) override { target_->Erase(key); } 19959: uint64_t NewId() override { return target_->NewId(); } 19959: 19959: void SetCapacity(size_t capacity) override { target_->SetCapacity(capacity); } 19959: 19959: void SetStrictCapacityLimit(bool strict_capacity_limit) override { 19959: target_->SetStrictCapacityLimit(strict_capacity_limit); 19959: } 19959: 19959: bool HasStrictCapacityLimit() const override { 19959: return target_->HasStrictCapacityLimit(); 19959: } 19959: 19959: size_t GetOccupancyCount() const override { 19959: return target_->GetOccupancyCount(); 19959: } 19959: 19959: size_t GetTableAddressCount() const override { 19959: return target_->GetTableAddressCount(); 19959: } 19959: 19959: size_t GetCapacity() const override { return target_->GetCapacity(); } 19959: 19959: size_t GetUsage() const override { return target_->GetUsage(); } 19959: 19959: size_t GetUsage(Handle* handle) const override { 19959: return target_->GetUsage(handle); 19959: } 19959: 19959: size_t GetPinnedUsage() const override { return target_->GetPinnedUsage(); } 19959: 19959: size_t GetCharge(Handle* handle) const override { 19959: return target_->GetCharge(handle); 19959: } 19959: 19959: const CacheItemHelper* GetCacheItemHelper(Handle* handle) const override { 19959: return target_->GetCacheItemHelper(handle); 19959: } 19959: 19959: void ApplyToAllEntries( 19959: const std::function& callback, 19959: const ApplyToAllEntriesOptions& opts) override { 19959: target_->ApplyToAllEntries(callback, opts); 19959: } 19959: 19959: void EraseUnRefEntries() override { target_->EraseUnRefEntries(); } 19959: 19959: void StartAsyncLookup(AsyncLookupHandle& async_handle) override { 19959: target_->StartAsyncLookup(async_handle); 19959: } 19959: 19959: void WaitAll(AsyncLookupHandle* async_handles, size_t count) override { 19959: target_->WaitAll(async_handles, count); 19959: } 19959: 19959: uint32_t GetHashSeed() const override { return target_->GetHashSeed(); } 19959: 19959: void ReportProblems(const std::shared_ptr& info_log) const override { 19959: target_->ReportProblems(info_log); 19959: } 19959: 19959: const std::shared_ptr& GetTarget() { return target_; } 19959: 19959: protected: 19959: std::shared_ptr target_; 19959: }; 19959: 19959: 19959: 19959: extern const Cache::CacheItemHelper kNoopCacheItemHelper; 19959: 19959: } 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 19959: 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_reader_caller.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: enum TableReaderCaller : char { 19959: kUserGet = 1, 19959: kUserMultiGet = 2, 19959: kUserIterator = 3, 19959: kUserApproximateSize = 4, 19959: kUserVerifyChecksum = 5, 19959: kSSTDumpTool = 6, 19959: kExternalSSTIngestion = 7, 19959: kRepair = 8, 19959: kPrefetch = 9, 19959: kCompaction = 10, 19959: 19959: 19959: kCompactionRefill = 11, 19959: 19959: 19959: kFlush = 12, 19959: 19959: kSSTFileReader = 13, 19959: 19959: 19959: kUncategorized = 14, 19959: 19959: kMaxBlockCacheLookupCaller 19959: }; 19959: } 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: class BlobFetcher; 19959: class Comparator; 19959: class Logger; 19959: class MergeContext; 19959: class MergeOperator; 19959: class PinnableWideColumns; 19959: class PinnedIteratorsManager; 19959: class Statistics; 19959: class SystemClock; 19959: struct ParsedInternalKey; 19959: 19959: 19959: 19959: 19959: struct GetContextStats { 19959: uint64_t num_cache_hit = 0; 19959: uint64_t num_cache_index_hit = 0; 19959: uint64_t num_cache_data_hit = 0; 19959: uint64_t num_cache_filter_hit = 0; 19959: uint64_t num_cache_compression_dict_hit = 0; 19959: uint64_t num_cache_index_miss = 0; 19959: uint64_t num_cache_filter_miss = 0; 19959: uint64_t num_cache_data_miss = 0; 19959: uint64_t num_cache_compression_dict_miss = 0; 19959: uint64_t num_cache_bytes_read = 0; 19959: uint64_t num_cache_miss = 0; 19959: uint64_t num_cache_add = 0; 19959: uint64_t num_cache_add_redundant = 0; 19959: uint64_t num_cache_bytes_write = 0; 19959: uint64_t num_cache_index_add = 0; 19959: uint64_t num_cache_index_add_redundant = 0; 19959: uint64_t num_cache_index_bytes_insert = 0; 19959: uint64_t num_cache_data_add = 0; 19959: uint64_t num_cache_data_add_redundant = 0; 19959: uint64_t num_cache_data_bytes_insert = 0; 19959: uint64_t num_cache_filter_add = 0; 19959: uint64_t num_cache_filter_add_redundant = 0; 19959: uint64_t num_cache_filter_bytes_insert = 0; 19959: uint64_t num_cache_compression_dict_add = 0; 19959: uint64_t num_cache_compression_dict_add_redundant = 0; 19959: uint64_t num_cache_compression_dict_bytes_insert = 0; 19959: 19959: uint64_t num_filter_read = 0; 19959: uint64_t num_index_read = 0; 19959: uint64_t num_sst_read = 0; 19959: }; 19959: # 67 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 19959: class GetContext { 19959: public: 19959: 19959: 19959: enum GetState { 19959: kNotFound, 19959: kFound, 19959: kDeleted, 19959: kCorrupt, 19959: kMerge, 19959: kUnexpectedBlobIndex, 19959: kMergeOperatorFailed, 19959: }; 19959: GetContextStats get_context_stats_; 19959: # 102 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 19959: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 19959: Logger* logger, Statistics* statistics, GetState init_state, 19959: const Slice& user_key, PinnableSlice* value, 19959: PinnableWideColumns* columns, bool* value_found, 19959: MergeContext* merge_context, bool do_merge, 19959: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 19959: SequenceNumber* seq = nullptr, 19959: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 19959: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 19959: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 19959: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 19959: Logger* logger, Statistics* statistics, GetState init_state, 19959: const Slice& user_key, PinnableSlice* value, 19959: PinnableWideColumns* columns, std::string* timestamp, 19959: bool* value_found, MergeContext* merge_context, bool do_merge, 19959: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 19959: SequenceNumber* seq = nullptr, 19959: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 19959: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 19959: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 19959: 19959: GetContext() = delete; 19959: 19959: 19959: 19959: void MarkKeyMayExist(); 19959: # 137 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 19959: bool SaveValue(const ParsedInternalKey& parsed_key, const Slice& value, 19959: bool* matched, Cleanable* value_pinner = nullptr); 19959: 19959: 19959: 19959: void SaveValue(const Slice& value, SequenceNumber seq); 19959: 19959: GetState State() const { return state_; } 19959: 19959: SequenceNumber* max_covering_tombstone_seq() { 19959: return max_covering_tombstone_seq_; 19959: } 19959: 19959: bool NeedTimestamp() { return timestamp_ != nullptr; } 19959: 19959: void SetTimestampFromRangeTombstone(const Slice& timestamp) { 19959: 19959: # 153 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 3 4 19959: (static_cast ( 19959: # 153 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 19959: timestamp_ 19959: # 153 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 153 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 19959: "timestamp_" 19959: # 153 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 3 4 19959: , "./table/get_context.h", 153, __extension__ __PRETTY_FUNCTION__)) 19959: # 153 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 19959: ; 19959: timestamp_->assign(timestamp.data(), timestamp.size()); 19959: ts_from_rangetombstone_ = true; 19959: } 19959: 19959: PinnedIteratorsManager* pinned_iters_mgr() { return pinned_iters_mgr_; } 19959: 19959: 19959: 19959: 19959: void SetReplayLog(std::string* replay_log) { replay_log_ = replay_log; } 19959: 19959: 19959: bool NeedToReadSequence() const { return (seq_ != nullptr); } 19959: 19959: bool sample() const { return sample_; } 19959: 19959: bool CheckCallback(SequenceNumber seq) { 19959: if (callback_) { 19959: return callback_->IsVisible(seq); 19959: } 19959: return true; 19959: } 19959: 19959: void ReportCounters(); 19959: 19959: bool has_callback() const { return callback_ != nullptr; } 19959: 19959: const Slice& ukey_to_get_blob_value() const { 19959: if (!ukey_with_ts_found_.empty()) { 19959: return ukey_with_ts_found_; 19959: } else { 19959: return user_key_; 19959: } 19959: } 19959: 19959: uint64_t get_tracing_get_id() const { return tracing_get_id_; } 19959: 19959: void push_operand(const Slice& value, Cleanable* value_pinner); 19959: 19959: private: 19959: 19959: 19959: void PostprocessMerge(const Status& merge_status); 19959: 19959: 19959: 19959: void MergeWithNoBaseValue(); 19959: void MergeWithPlainBaseValue(const Slice& value); 19959: void MergeWithWideColumnBaseValue(const Slice& entity); 19959: 19959: bool GetBlobValue(const Slice& user_key, const Slice& blob_index, 19959: PinnableSlice* blob_value); 19959: 19959: const Comparator* ucmp_; 19959: const MergeOperator* merge_operator_; 19959: 19959: Logger* logger_; 19959: Statistics* statistics_; 19959: 19959: GetState state_; 19959: Slice user_key_; 19959: 19959: 19959: 19959: PinnableSlice ukey_with_ts_found_; 19959: PinnableSlice* pinnable_val_; 19959: PinnableWideColumns* columns_; 19959: std::string* timestamp_; 19959: bool ts_from_rangetombstone_{false}; 19959: bool* value_found_; 19959: MergeContext* merge_context_; 19959: SequenceNumber* max_covering_tombstone_seq_; 19959: SystemClock* clock_; 19959: 19959: 19959: SequenceNumber* seq_; 19959: std::string* replay_log_; 19959: 19959: PinnedIteratorsManager* pinned_iters_mgr_; 19959: ReadCallback* callback_; 19959: bool sample_; 19959: 19959: 19959: 19959: bool do_merge_; 19959: bool* is_blob_index_; 19959: 19959: 19959: const uint64_t tracing_get_id_; 19959: BlobFetcher* blob_fetcher_; 19959: }; 19959: 19959: 19959: 19959: 19959: void replayGetContextLog(const Slice& replay_log, const Slice& user_key, 19959: GetContext* get_context, 19959: Cleanable* value_pinner = nullptr, 19959: SequenceNumber seq_no = kMaxSequenceNumber); 19959: 19959: } 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/lookup_key.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/db/lookup_key.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: class LookupKey { 19959: public: 19959: 19959: 19959: LookupKey(const Slice& _user_key, SequenceNumber sequence, 19959: const Slice* ts = nullptr); 19959: 19959: ~LookupKey(); 19959: 19959: 19959: Slice memtable_key() const { 19959: return Slice(start_, static_cast(end_ - start_)); 19959: } 19959: 19959: 19959: Slice internal_key() const { 19959: return Slice(kstart_, static_cast(end_ - kstart_)); 19959: } 19959: 19959: 19959: 19959: 19959: Slice user_key() const { 19959: return Slice(kstart_, static_cast(end_ - kstart_ - 8)); 19959: } 19959: 19959: private: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: const char* start_; 19959: const char* kstart_; 19959: const char* end_; 19959: char space_[200]; 19959: 19959: 19959: LookupKey(const LookupKey&); 19959: void operator=(const LookupKey&); 19959: }; 19959: 19959: inline LookupKey::~LookupKey() { 19959: if (start_ != space_) delete[] start_; 19959: } 19959: 19959: } 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: const std::vector empty_operand_list; 19959: 19959: 19959: 19959: 19959: 19959: class MergeContext { 19959: public: 19959: 19959: void Clear() { 19959: if (operand_list_) { 19959: operand_list_->clear(); 19959: copied_operands_->clear(); 19959: } 19959: } 19959: 19959: 19959: void PushOperand(const Slice& operand_slice, bool operand_pinned = false) { 19959: Initialize(); 19959: SetDirectionBackward(); 19959: 19959: if (operand_pinned) { 19959: operand_list_->push_back(operand_slice); 19959: } else { 19959: 19959: copied_operands_->emplace_back( 19959: new std::string(operand_slice.data(), operand_slice.size())); 19959: operand_list_->push_back(*copied_operands_->back()); 19959: } 19959: } 19959: 19959: 19959: void PushOperandBack(const Slice& operand_slice, 19959: bool operand_pinned = false) { 19959: Initialize(); 19959: SetDirectionForward(); 19959: 19959: if (operand_pinned) { 19959: operand_list_->push_back(operand_slice); 19959: } else { 19959: 19959: copied_operands_->emplace_back( 19959: new std::string(operand_slice.data(), operand_slice.size())); 19959: operand_list_->push_back(*copied_operands_->back()); 19959: } 19959: } 19959: 19959: 19959: size_t GetNumOperands() const { 19959: if (!operand_list_) { 19959: return 0; 19959: } 19959: return operand_list_->size(); 19959: } 19959: 19959: 19959: Slice GetOperand(int index) const { 19959: 19959: # 73 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 3 4 19959: (static_cast ( 19959: # 73 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 19959: operand_list_ 19959: # 73 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 73 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 19959: "operand_list_" 19959: # 73 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 3 4 19959: , "./db/merge_context.h", 73, __extension__ __PRETTY_FUNCTION__)) 19959: # 73 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 19959: ; 19959: 19959: SetDirectionForward(); 19959: return (*operand_list_)[index]; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: const std::vector& GetOperands() const { 19959: return GetOperandsDirectionForward(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: const std::vector& GetOperandsDirectionForward() const { 19959: if (!operand_list_) { 19959: return empty_operand_list; 19959: } 19959: 19959: SetDirectionForward(); 19959: return *operand_list_; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: const std::vector& GetOperandsDirectionBackward() const { 19959: if (!operand_list_) { 19959: return empty_operand_list; 19959: } 19959: 19959: SetDirectionBackward(); 19959: return *operand_list_; 19959: } 19959: 19959: private: 19959: void Initialize() { 19959: if (!operand_list_) { 19959: operand_list_.reset(new std::vector()); 19959: copied_operands_.reset(new std::vector>()); 19959: } 19959: } 19959: 19959: void SetDirectionForward() const { 19959: if (operands_reversed_ == true) { 19959: std::reverse(operand_list_->begin(), operand_list_->end()); 19959: operands_reversed_ = false; 19959: } 19959: } 19959: 19959: void SetDirectionBackward() const { 19959: if (operands_reversed_ == false) { 19959: std::reverse(operand_list_->begin(), operand_list_->end()); 19959: operands_reversed_ = true; 19959: } 19959: } 19959: 19959: 19959: mutable std::unique_ptr> operand_list_; 19959: 19959: std::unique_ptr>> copied_operands_; 19959: mutable bool operands_reversed_ = true; 19959: }; 19959: 19959: } 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 2 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/async_file_reader.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 2 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/single_thread_executor.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 2 19959: 19959: namespace rocksdb { 19959: class GetContext; 19959: class PinnableWideColumns; 19959: 19959: struct KeyContext { 19959: const Slice* key; 19959: LookupKey* lkey; 19959: Slice ukey_with_ts; 19959: Slice ukey_without_ts; 19959: Slice ikey; 19959: ColumnFamilyHandle* column_family; 19959: Status* s; 19959: MergeContext merge_context; 19959: SequenceNumber max_covering_tombstone_seq; 19959: bool key_exists; 19959: bool is_blob_index; 19959: void* cb_arg; 19959: PinnableSlice* value; 19959: PinnableWideColumns* columns; 19959: std::string* timestamp; 19959: GetContext* get_context; 19959: 19959: KeyContext(ColumnFamilyHandle* col_family, const Slice& user_key, 19959: PinnableSlice* val, PinnableWideColumns* cols, std::string* ts, 19959: Status* stat) 19959: : key(&user_key), 19959: lkey(nullptr), 19959: column_family(col_family), 19959: s(stat), 19959: max_covering_tombstone_seq(0), 19959: key_exists(false), 19959: is_blob_index(false), 19959: cb_arg(nullptr), 19959: value(val), 19959: columns(cols), 19959: timestamp(ts), 19959: get_context(nullptr) {} 19959: }; 19959: # 97 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: class MultiGetContext { 19959: public: 19959: 19959: 19959: 19959: 19959: static const int MAX_BATCH_SIZE = 32; 19959: 19959: 19959: 19959: using Mask = uint64_t; 19959: static_assert(MAX_BATCH_SIZE < sizeof(Mask) * 8); 19959: 19959: MultiGetContext(autovector* sorted_keys, 19959: size_t begin, size_t num_keys, SequenceNumber snapshot, 19959: const ReadOptions& read_opts, FileSystem* fs, 19959: Statistics* stats) 19959: : num_keys_(num_keys), 19959: value_mask_(0), 19959: value_size_(0), 19959: lookup_key_ptr_(reinterpret_cast(lookup_key_stack_buf)) 19959: 19959: 19959: 19959: 19959: 19959: { 19959: (void)fs; 19959: (void)stats; 19959: 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: num_keys <= MAX_BATCH_SIZE 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "num_keys <= MAX_BATCH_SIZE" 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 126, __extension__ __PRETTY_FUNCTION__)) 19959: # 126 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: if (num_keys > MAX_LOOKUP_KEYS_ON_STACK) { 19959: lookup_key_heap_buf.reset(new char[sizeof(LookupKey) * num_keys]); 19959: lookup_key_ptr_ = reinterpret_cast(lookup_key_heap_buf.get()); 19959: } 19959: 19959: for (size_t iter = 0; iter != num_keys_; ++iter) { 19959: 19959: sorted_keys_[iter] = (*sorted_keys)[begin + iter]; 19959: sorted_keys_[iter]->lkey = new (&lookup_key_ptr_[iter]) 19959: LookupKey(*sorted_keys_[iter]->key, snapshot, read_opts.timestamp); 19959: sorted_keys_[iter]->ukey_with_ts = sorted_keys_[iter]->lkey->user_key(); 19959: sorted_keys_[iter]->ukey_without_ts = StripTimestampFromUserKey( 19959: sorted_keys_[iter]->lkey->user_key(), 19959: read_opts.timestamp == nullptr ? 0 : read_opts.timestamp->size()); 19959: sorted_keys_[iter]->ikey = sorted_keys_[iter]->lkey->internal_key(); 19959: sorted_keys_[iter]->timestamp = (*sorted_keys)[begin + iter]->timestamp; 19959: sorted_keys_[iter]->get_context = 19959: (*sorted_keys)[begin + iter]->get_context; 19959: } 19959: } 19959: 19959: ~MultiGetContext() { 19959: for (size_t i = 0; i < num_keys_; ++i) { 19959: lookup_key_ptr_[i].~LookupKey(); 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: private: 19959: static const int MAX_LOOKUP_KEYS_ON_STACK = 16; 19959: alignas( 19959: alignof(LookupKey)) char lookup_key_stack_buf[sizeof(LookupKey) * 19959: MAX_LOOKUP_KEYS_ON_STACK]; 19959: std::array sorted_keys_; 19959: size_t num_keys_; 19959: Mask value_mask_; 19959: uint64_t value_size_; 19959: std::unique_ptr lookup_key_heap_buf; 19959: LookupKey* lookup_key_ptr_; 19959: 19959: 19959: 19959: 19959: 19959: public: 19959: # 186 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: class Range { 19959: public: 19959: 19959: 19959: 19959: class Iterator { 19959: public: 19959: 19959: using self_type = Iterator; 19959: using value_type = KeyContext; 19959: using reference = KeyContext&; 19959: using pointer = KeyContext*; 19959: using difference_type = int; 19959: using iterator_category = std::forward_iterator_tag; 19959: 19959: Iterator(const Range* range, size_t idx) 19959: : range_(range), ctx_(range->ctx_), index_(idx) { 19959: while (index_ < range_->end_ && 19959: (Mask{1} << index_) & 19959: (range_->ctx_->value_mask_ | range_->skip_mask_ | 19959: range_->invalid_mask_)) 19959: index_++; 19959: } 19959: 19959: Iterator(const Iterator&) = default; 19959: 19959: Iterator(const Iterator& other, const Range* range) 19959: : range_(range), ctx_(other.ctx_), index_(other.index_) { 19959: 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: range->ctx_ == other.ctx_ 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "range->ctx_ == other.ctx_" 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 214, __extension__ __PRETTY_FUNCTION__)) 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: } 19959: Iterator& operator=(const Iterator&) = default; 19959: 19959: Iterator& operator++() { 19959: while (++index_ < range_->end_ && 19959: (Mask{1} << index_) & 19959: (range_->ctx_->value_mask_ | range_->skip_mask_ | 19959: range_->invalid_mask_)) 19959: ; 19959: return *this; 19959: } 19959: 19959: bool operator==(Iterator other) const { 19959: 19959: # 228 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 228 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: range_->ctx_ == other.range_->ctx_ 19959: # 228 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 228 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "range_->ctx_ == other.range_->ctx_" 19959: # 228 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 228, __extension__ __PRETTY_FUNCTION__)) 19959: # 228 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: return index_ == other.index_; 19959: } 19959: 19959: bool operator!=(Iterator other) const { 19959: 19959: # 233 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 233 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: range_->ctx_ == other.range_->ctx_ 19959: # 233 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 233 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "range_->ctx_ == other.range_->ctx_" 19959: # 233 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 233, __extension__ __PRETTY_FUNCTION__)) 19959: # 233 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: return index_ != other.index_; 19959: } 19959: 19959: KeyContext& operator*() { 19959: 19959: # 238 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 238 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: index_ < range_->end_ && index_ >= range_->start_ 19959: # 238 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 238 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "index_ < range_->end_ && index_ >= range_->start_" 19959: # 238 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 238, __extension__ __PRETTY_FUNCTION__)) 19959: # 238 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: return *(ctx_->sorted_keys_[index_]); 19959: } 19959: 19959: KeyContext* operator->() { 19959: 19959: # 243 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 243 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: index_ < range_->end_ && index_ >= range_->start_ 19959: # 243 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 243 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "index_ < range_->end_ && index_ >= range_->start_" 19959: # 243 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 243, __extension__ __PRETTY_FUNCTION__)) 19959: # 243 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: return ctx_->sorted_keys_[index_]; 19959: } 19959: 19959: size_t index() { return index_; } 19959: 19959: private: 19959: friend Range; 19959: const Range* range_; 19959: const MultiGetContext* ctx_; 19959: size_t index_; 19959: }; 19959: 19959: Range(const Range& mget_range, const Iterator& first, 19959: const Iterator& last) { 19959: ctx_ = mget_range.ctx_; 19959: if (first == last) { 19959: 19959: 19959: start_ = mget_range.start_; 19959: end_ = start_; 19959: } else { 19959: start_ = first.index_; 19959: end_ = last.index_; 19959: } 19959: skip_mask_ = mget_range.skip_mask_; 19959: invalid_mask_ = mget_range.invalid_mask_; 19959: 19959: # 270 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 270 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: start_ < 64 19959: # 270 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 270 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "start_ < 64" 19959: # 270 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 270, __extension__ __PRETTY_FUNCTION__)) 19959: # 270 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: 19959: # 271 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 271 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: end_ < 64 19959: # 271 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 271 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "end_ < 64" 19959: # 271 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 271, __extension__ __PRETTY_FUNCTION__)) 19959: # 271 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: } 19959: 19959: Range() = default; 19959: 19959: Iterator begin() const { return Iterator(this, start_); } 19959: 19959: Iterator end() const { return Iterator(this, end_); } 19959: 19959: bool empty() const { return RemainingMask() == 0; } 19959: 19959: void SkipIndex(size_t index) { skip_mask_ |= Mask{1} << index; } 19959: 19959: void SkipKey(const Iterator& iter) { SkipIndex(iter.index_); } 19959: 19959: bool IsKeySkipped(const Iterator& iter) const { 19959: return skip_mask_ & (Mask{1} << iter.index_); 19959: } 19959: 19959: 19959: 19959: void MarkKeyDone(Iterator& iter) { 19959: ctx_->value_mask_ |= (Mask{1} << iter.index_); 19959: } 19959: 19959: bool CheckKeyDone(Iterator& iter) const { 19959: return ctx_->value_mask_ & (Mask{1} << iter.index_); 19959: } 19959: 19959: uint64_t KeysLeft() const { return BitsSetToOne(RemainingMask()); } 19959: 19959: void AddSkipsFrom(const Range& other) { 19959: 19959: # 303 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 303 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ctx_ == other.ctx_ 19959: # 303 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 303 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "ctx_ == other.ctx_" 19959: # 303 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 303, __extension__ __PRETTY_FUNCTION__)) 19959: # 303 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: skip_mask_ |= other.skip_mask_; 19959: } 19959: 19959: uint64_t GetValueSize() { return ctx_->value_size_; } 19959: 19959: void AddValueSize(uint64_t value_size) { ctx_->value_size_ += value_size; } 19959: 19959: MultiGetContext* context() const { return ctx_; } 19959: 19959: Range Suffix(const Range& other) const { 19959: size_t other_last = other.FindLastRemaining(); 19959: size_t my_last = FindLastRemaining(); 19959: 19959: if (my_last > other_last) { 19959: return Range(*this, Iterator(this, other_last), 19959: Iterator(this, my_last)); 19959: } else { 19959: return Range(*this, begin(), begin()); 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: Range& operator+=(const Range& rhs) { 19959: 19959: # 330 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 330 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: rhs.start_ >= end_ 19959: # 330 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 330 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "rhs.start_ >= end_" 19959: # 330 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 330, __extension__ __PRETTY_FUNCTION__)) 19959: # 330 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: 19959: if (end_ < rhs.start_) { 19959: invalid_mask_ |= RangeMask(end_, rhs.start_); 19959: skip_mask_ |= RangeMask(end_, rhs.start_); 19959: } 19959: start_ = std::min(start_, rhs.start_); 19959: end_ = std::max(end_, rhs.end_); 19959: skip_mask_ |= rhs.skip_mask_ & RangeMask(rhs.start_, rhs.end_); 19959: invalid_mask_ |= (rhs.invalid_mask_ | rhs.skip_mask_) & 19959: RangeMask(rhs.start_, rhs.end_); 19959: 19959: # 341 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 341 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: start_ < 64 19959: # 341 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 341 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "start_ < 64" 19959: # 341 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 341, __extension__ __PRETTY_FUNCTION__)) 19959: # 341 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: 19959: # 342 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 342 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: end_ < 64 19959: # 342 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 342 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "end_ < 64" 19959: # 342 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 342, __extension__ __PRETTY_FUNCTION__)) 19959: # 342 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: return *this; 19959: } 19959: 19959: 19959: 19959: 19959: Range& operator-=(const Range& rhs) { 19959: 19959: # 350 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 350 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: start_ <= rhs.start_ && end_ >= rhs.end_ 19959: # 350 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 350 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "start_ <= rhs.start_ && end_ >= rhs.end_" 19959: # 350 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 350, __extension__ __PRETTY_FUNCTION__)) 19959: # 350 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: skip_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 19959: RangeMask(rhs.start_, rhs.end_); 19959: invalid_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 19959: RangeMask(rhs.start_, rhs.end_); 19959: return *this; 19959: } 19959: 19959: 19959: Range operator~() { 19959: Range res = *this; 19959: res.skip_mask_ = ~skip_mask_ & RangeMask(start_, end_); 19959: return res; 19959: } 19959: 19959: private: 19959: friend MultiGetContext; 19959: MultiGetContext* ctx_; 19959: size_t start_; 19959: size_t end_; 19959: Mask skip_mask_; 19959: Mask invalid_mask_; 19959: 19959: Range(MultiGetContext* ctx, size_t num_keys) 19959: : ctx_(ctx), 19959: start_(0), 19959: end_(num_keys), 19959: skip_mask_(0), 19959: invalid_mask_(0) { 19959: 19959: # 379 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: (static_cast ( 19959: # 379 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: num_keys < 64 19959: # 379 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 379 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: "num_keys < 64" 19959: # 379 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 19959: , "./table/multiget_context.h", 379, __extension__ __PRETTY_FUNCTION__)) 19959: # 379 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 19959: ; 19959: } 19959: 19959: static Mask RangeMask(size_t start, size_t end) { 19959: return (((Mask{1} << (end - start)) - 1) << start); 19959: } 19959: 19959: Mask RemainingMask() const { 19959: return (((Mask{1} << end_) - 1) & ~((Mask{1} << start_) - 1) & 19959: ~(ctx_->value_mask_ | skip_mask_)); 19959: } 19959: 19959: size_t FindLastRemaining() const { 19959: Mask mask = RemainingMask(); 19959: size_t index = (mask >>= start_) ? start_ : 0; 19959: while (mask >>= 1) { 19959: index++; 19959: } 19959: return index; 19959: } 19959: }; 19959: 19959: 19959: Range GetMultiGetRange() { return Range(this, num_keys_); } 19959: }; 19959: 19959: } 19959: # 23 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: class Iterator; 19959: struct ParsedInternalKey; 19959: class Slice; 19959: class Arena; 19959: struct ReadOptions; 19959: struct TableProperties; 19959: class GetContext; 19959: class MultiGetContext; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class TableReader { 19959: public: 19959: virtual ~TableReader() {} 19959: # 57 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 19959: virtual InternalIterator* NewIterator( 19959: const ReadOptions& read_options, const SliceTransform* prefix_extractor, 19959: Arena* arena, bool skip_filters, TableReaderCaller caller, 19959: size_t compaction_readahead_size = 0, 19959: bool allow_unprepared_value = false) = 0; 19959: 19959: 19959: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 19959: const ReadOptions& ) { 19959: return nullptr; 19959: } 19959: 19959: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 19959: SequenceNumber , const Slice* ) { 19959: return nullptr; 19959: } 19959: # 85 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 19959: virtual uint64_t ApproximateOffsetOf(const ReadOptions& read_options, 19959: const Slice& key, 19959: TableReaderCaller caller) = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual uint64_t ApproximateSize(const ReadOptions& read_options, 19959: const Slice& start, const Slice& end, 19959: TableReaderCaller caller) = 0; 19959: 19959: struct Anchor { 19959: Anchor(const Slice& _user_key, size_t _range_size) 19959: : user_key(_user_key.ToStringView()), range_size(_range_size) {} 19959: std::string user_key; 19959: size_t range_size; 19959: }; 19959: 19959: 19959: 19959: virtual Status ApproximateKeyAnchors(const ReadOptions& , 19959: std::vector& ) { 19959: return Status::NotSupported("ApproximateKeyAnchors() not supported."); 19959: } 19959: 19959: 19959: 19959: virtual void SetupForCompaction() = 0; 19959: 19959: virtual std::shared_ptr GetTableProperties() const = 0; 19959: 19959: 19959: virtual void Prepare(const Slice& ) {} 19959: 19959: 19959: virtual size_t ApproximateMemoryUsage() const = 0; 19959: # 135 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 19959: virtual Status Get(const ReadOptions& readOptions, const Slice& key, 19959: GetContext* get_context, 19959: const SliceTransform* prefix_extractor, 19959: bool skip_filters = false) = 0; 19959: 19959: 19959: 19959: 19959: virtual Status MultiGetFilter(const ReadOptions& , 19959: const SliceTransform* , 19959: MultiGetContext::Range* ) { 19959: return Status::NotSupported(); 19959: } 19959: 19959: virtual void MultiGet(const ReadOptions& readOptions, 19959: const MultiGetContext::Range* mget_range, 19959: const SliceTransform* prefix_extractor, 19959: bool skip_filters = false) { 19959: for (auto iter = mget_range->begin(); iter != mget_range->end(); ++iter) { 19959: *iter->s = Get(readOptions, iter->ikey, iter->get_context, 19959: prefix_extractor, skip_filters); 19959: } 19959: } 19959: # 171 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 19959: virtual Status Prefetch(const ReadOptions& , 19959: const Slice* begin = nullptr, 19959: const Slice* end = nullptr) { 19959: (void)begin; 19959: (void)end; 19959: 19959: 19959: return Status::OK(); 19959: } 19959: 19959: 19959: virtual Status DumpTable(WritableFile* ) { 19959: return Status::NotSupported("DumpTable() not supported"); 19959: } 19959: 19959: 19959: virtual Status VerifyChecksum(const ReadOptions& , 19959: TableReaderCaller ) { 19959: return Status::NotSupported("VerifyChecksum() not supported"); 19959: } 19959: }; 19959: 19959: } 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/unique_id_impl.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/unique_id.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/unique_id.h" 19959: Status GetUniqueIdFromTableProperties(const TableProperties &props, 19959: std::string *out_id); 19959: # 47 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/unique_id.h" 19959: Status GetExtendedUniqueIdFromTableProperties(const TableProperties &props, 19959: std::string *out_id); 19959: 19959: 19959: 19959: 19959: std::string UniqueIdToHumanString(const std::string &id); 19959: 19959: } 19959: # 11 "/build/reproducible-path/rocksdb-8.9.1/table/unique_id_impl.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: 19959: using UniqueId64x2 = std::array; 19959: 19959: 19959: constexpr UniqueId64x2 kNullUniqueId64x2 = {}; 19959: 19959: 19959: 19959: using UniqueId64x3 = std::array; 19959: 19959: 19959: constexpr UniqueId64x3 kNullUniqueId64x3 = {}; 19959: 19959: 19959: struct UniqueIdPtr { 19959: uint64_t *ptr = nullptr; 19959: bool extended = false; 19959: 19959: UniqueIdPtr(UniqueId64x2 *id) { 19959: ptr = (*id).data(); 19959: extended = false; 19959: } 19959: UniqueIdPtr(UniqueId64x3 *id) { 19959: ptr = (*id).data(); 19959: extended = true; 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: Status GetSstInternalUniqueId(const std::string &db_id, 19959: const std::string &db_session_id, 19959: uint64_t file_number, UniqueIdPtr out, 19959: bool force = false); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: void InternalUniqueIdToExternal(UniqueIdPtr in_out); 19959: 19959: 19959: 19959: void ExternalUniqueIdToInternal(UniqueIdPtr in_out); 19959: 19959: 19959: std::string EncodeUniqueIdBytes(UniqueIdPtr in); 19959: 19959: 19959: Status DecodeUniqueIdBytes(const std::string &unique_id, UniqueIdPtr out); 19959: 19959: 19959: 19959: std::string InternalUniqueIdToHumanString(UniqueIdPtr in); 19959: # 85 "/build/reproducible-path/rocksdb-8.9.1/table/unique_id_impl.h" 19959: std::string EncodeSessionId(uint64_t upper, uint64_t lower); 19959: 19959: 19959: 19959: 19959: Status DecodeSessionId(const std::string &db_session_id, uint64_t *upper, 19959: uint64_t *lower); 19959: 19959: } 19959: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 2 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: enum Tag : uint32_t { 19959: kComparator = 1, 19959: kLogNumber = 2, 19959: kNextFileNumber = 3, 19959: kLastSequence = 4, 19959: kCompactCursor = 5, 19959: kDeletedFile = 6, 19959: kNewFile = 7, 19959: 19959: kPrevLogNumber = 9, 19959: kMinLogNumberToKeep = 10, 19959: 19959: 19959: kNewFile2 = 100, 19959: kNewFile3 = 102, 19959: kNewFile4 = 103, 19959: kColumnFamily = 200, 19959: kColumnFamilyAdd = 201, 19959: kColumnFamilyDrop = 202, 19959: kMaxColumnFamily = 203, 19959: 19959: kInAtomicGroup = 300, 19959: 19959: kBlobFileAddition = 400, 19959: kBlobFileGarbage, 19959: 19959: 19959: kTagSafeIgnoreMask = 1 << 13, 19959: 19959: 19959: kDbId, 19959: kBlobFileAddition_DEPRECATED, 19959: kBlobFileGarbage_DEPRECATED, 19959: kWalAddition, 19959: kWalDeletion, 19959: kFullHistoryTsLow, 19959: kWalAddition2, 19959: kWalDeletion2, 19959: kPersistUserDefinedTimestamps, 19959: }; 19959: 19959: enum NewFileCustomTag : uint32_t { 19959: kTerminate = 1, 19959: kNeedCompaction = 2, 19959: 19959: 19959: 19959: kMinLogNumberToKeepHack = 3, 19959: kOldestBlobFileNumber = 4, 19959: kOldestAncesterTime = 5, 19959: kFileCreationTime = 6, 19959: kFileChecksum = 7, 19959: kFileChecksumFuncName = 8, 19959: kTemperature = 9, 19959: kMinTimestamp = 10, 19959: kMaxTimestamp = 11, 19959: kUniqueId = 12, 19959: kEpochNumber = 13, 19959: kCompensatedRangeDeletionSize = 14, 19959: kTailSize = 15, 19959: kUserDefinedTimestampsPersisted = 16, 19959: 19959: 19959: 19959: kCustomTagNonSafeIgnoreMask = 1 << 6, 19959: 19959: 19959: kPathId, 19959: }; 19959: 19959: class VersionSet; 19959: 19959: constexpr uint64_t kFileNumberMask = 0x3FFFFFFFFFFFFFFF; 19959: constexpr uint64_t kUnknownOldestAncesterTime = 0; 19959: constexpr uint64_t kUnknownFileCreationTime = 0; 19959: constexpr uint64_t kUnknownEpochNumber = 0; 19959: 19959: 19959: constexpr uint64_t kReservedEpochNumberForFileIngestedBehind = 1; 19959: 19959: extern uint64_t PackFileNumberAndPathId(uint64_t number, uint64_t path_id); 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct FileDescriptor { 19959: 19959: TableReader* table_reader; 19959: uint64_t packed_number_and_path_id; 19959: uint64_t file_size; 19959: SequenceNumber smallest_seqno; 19959: SequenceNumber largest_seqno; 19959: 19959: FileDescriptor() : FileDescriptor(0, 0, 0) {} 19959: 19959: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size) 19959: : FileDescriptor(number, path_id, _file_size, kMaxSequenceNumber, 0) {} 19959: 19959: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size, 19959: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno) 19959: : table_reader(nullptr), 19959: packed_number_and_path_id(PackFileNumberAndPathId(number, path_id)), 19959: file_size(_file_size), 19959: smallest_seqno(_smallest_seqno), 19959: largest_seqno(_largest_seqno) {} 19959: 19959: FileDescriptor(const FileDescriptor& fd) { *this = fd; } 19959: 19959: FileDescriptor& operator=(const FileDescriptor& fd) { 19959: table_reader = fd.table_reader; 19959: packed_number_and_path_id = fd.packed_number_and_path_id; 19959: file_size = fd.file_size; 19959: smallest_seqno = fd.smallest_seqno; 19959: largest_seqno = fd.largest_seqno; 19959: return *this; 19959: } 19959: 19959: uint64_t GetNumber() const { 19959: return packed_number_and_path_id & kFileNumberMask; 19959: } 19959: uint32_t GetPathId() const { 19959: return static_cast(packed_number_and_path_id / 19959: (kFileNumberMask + 1)); 19959: } 19959: uint64_t GetFileSize() const { return file_size; } 19959: }; 19959: 19959: struct FileSampledStats { 19959: FileSampledStats() : num_reads_sampled(0) {} 19959: FileSampledStats(const FileSampledStats& other) { *this = other; } 19959: FileSampledStats& operator=(const FileSampledStats& other) { 19959: num_reads_sampled = other.num_reads_sampled.load(); 19959: return *this; 19959: } 19959: 19959: 19959: mutable std::atomic num_reads_sampled; 19959: }; 19959: 19959: struct FileMetaData { 19959: FileDescriptor fd; 19959: InternalKey smallest; 19959: InternalKey largest; 19959: 19959: 19959: Cache::Handle* table_reader_handle = nullptr; 19959: 19959: FileSampledStats stats; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint64_t compensated_file_size = 0; 19959: 19959: 19959: uint64_t num_entries = 19959: 0; 19959: 19959: uint64_t num_deletions = 0; 19959: uint64_t raw_key_size = 0; 19959: uint64_t raw_value_size = 0; 19959: uint64_t num_range_deletions = 0; 19959: 19959: 19959: 19959: uint64_t compensated_range_deletion_size = 0; 19959: 19959: int refs = 0; 19959: 19959: bool being_compacted = false; 19959: bool init_stats_from_file = false; 19959: 19959: 19959: bool marked_for_compaction = false; 19959: 19959: Temperature temperature = Temperature::kUnknown; 19959: 19959: 19959: 19959: uint64_t oldest_blob_file_number = kInvalidBlobFileNumber; 19959: # 232 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: uint64_t oldest_ancester_time = kUnknownOldestAncesterTime; 19959: 19959: 19959: uint64_t file_creation_time = kUnknownFileCreationTime; 19959: 19959: 19959: 19959: 19959: 19959: uint64_t epoch_number = kUnknownEpochNumber; 19959: 19959: 19959: std::string file_checksum = kUnknownFileChecksum; 19959: 19959: 19959: std::string file_checksum_func_name = kUnknownFileChecksumFuncName; 19959: 19959: 19959: UniqueId64x2 unique_id{}; 19959: 19959: 19959: 19959: uint64_t tail_size = 0; 19959: 19959: 19959: 19959: 19959: bool user_defined_timestamps_persisted = true; 19959: 19959: FileMetaData() = default; 19959: 19959: FileMetaData(uint64_t file, uint32_t file_path_id, uint64_t file_size, 19959: const InternalKey& smallest_key, const InternalKey& largest_key, 19959: const SequenceNumber& smallest_seq, 19959: const SequenceNumber& largest_seq, bool marked_for_compact, 19959: Temperature _temperature, uint64_t oldest_blob_file, 19959: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 19959: uint64_t _epoch_number, const std::string& _file_checksum, 19959: const std::string& _file_checksum_func_name, 19959: UniqueId64x2 _unique_id, 19959: const uint64_t _compensated_range_deletion_size, 19959: uint64_t _tail_size, bool _user_defined_timestamps_persisted) 19959: : fd(file, file_path_id, file_size, smallest_seq, largest_seq), 19959: smallest(smallest_key), 19959: largest(largest_key), 19959: compensated_range_deletion_size(_compensated_range_deletion_size), 19959: marked_for_compaction(marked_for_compact), 19959: temperature(_temperature), 19959: oldest_blob_file_number(oldest_blob_file), 19959: oldest_ancester_time(_oldest_ancester_time), 19959: file_creation_time(_file_creation_time), 19959: epoch_number(_epoch_number), 19959: file_checksum(_file_checksum), 19959: file_checksum_func_name(_file_checksum_func_name), 19959: unique_id(std::move(_unique_id)), 19959: tail_size(_tail_size), 19959: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) { 19959: rocksdb::SyncPoint::GetInstance()->Process("FileMetaData::FileMetaData", this); 19959: } 19959: 19959: 19959: 19959: Status UpdateBoundaries(const Slice& key, const Slice& value, 19959: SequenceNumber seqno, ValueType value_type); 19959: 19959: 19959: 19959: void UpdateBoundariesForRange(const InternalKey& start, 19959: const InternalKey& end, SequenceNumber seqno, 19959: const InternalKeyComparator& icmp) { 19959: if (smallest.size() == 0 || icmp.Compare(start, smallest) < 0) { 19959: smallest = start; 19959: } 19959: if (largest.size() == 0 || icmp.Compare(largest, end) < 0) { 19959: largest = end; 19959: } 19959: 19959: # 308 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 308 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: icmp.Compare(smallest, largest) <= 0 19959: # 308 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 308 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "icmp.Compare(smallest, largest) <= 0" 19959: # 308 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 308, __extension__ __PRETTY_FUNCTION__)) 19959: # 308 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: fd.smallest_seqno = std::min(fd.smallest_seqno, seqno); 19959: fd.largest_seqno = std::max(fd.largest_seqno, seqno); 19959: } 19959: 19959: 19959: 19959: 19959: uint64_t TryGetOldestAncesterTime() { 19959: if (oldest_ancester_time != kUnknownOldestAncesterTime) { 19959: return oldest_ancester_time; 19959: } else if (fd.table_reader != nullptr && 19959: fd.table_reader->GetTableProperties() != nullptr) { 19959: return fd.table_reader->GetTableProperties()->creation_time; 19959: } 19959: return kUnknownOldestAncesterTime; 19959: } 19959: 19959: uint64_t TryGetFileCreationTime() { 19959: if (file_creation_time != kUnknownFileCreationTime) { 19959: return file_creation_time; 19959: } else if (fd.table_reader != nullptr && 19959: fd.table_reader->GetTableProperties() != nullptr) { 19959: return fd.table_reader->GetTableProperties()->file_creation_time; 19959: } 19959: return kUnknownFileCreationTime; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t ApproximateMemoryUsage() const { 19959: size_t usage = 0; 19959: 19959: usage += malloc_usable_size(const_cast(this)); 19959: 19959: 19959: 19959: usage += smallest.size() + largest.size() + file_checksum.size() + 19959: file_checksum_func_name.size(); 19959: return usage; 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: struct FdWithKeyRange { 19959: FileDescriptor fd; 19959: FileMetaData* file_metadata; 19959: Slice smallest_key; 19959: Slice largest_key; 19959: 19959: FdWithKeyRange() 19959: : fd(), file_metadata(nullptr), smallest_key(), largest_key() {} 19959: 19959: FdWithKeyRange(FileDescriptor _fd, Slice _smallest_key, Slice _largest_key, 19959: FileMetaData* _file_metadata) 19959: : fd(_fd), 19959: file_metadata(_file_metadata), 19959: smallest_key(_smallest_key), 19959: largest_key(_largest_key) {} 19959: }; 19959: 19959: 19959: 19959: struct LevelFilesBrief { 19959: size_t num_files; 19959: FdWithKeyRange* files; 19959: LevelFilesBrief() { 19959: num_files = 0; 19959: files = nullptr; 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: class VersionEdit { 19959: public: 19959: void Clear(); 19959: 19959: void SetDBId(const std::string& db_id) { 19959: has_db_id_ = true; 19959: db_id_ = db_id; 19959: } 19959: bool HasDbId() const { return has_db_id_; } 19959: const std::string& GetDbId() const { return db_id_; } 19959: 19959: void SetComparatorName(const Slice& name) { 19959: has_comparator_ = true; 19959: comparator_ = name.ToString(); 19959: } 19959: bool HasComparatorName() const { return has_comparator_; } 19959: const std::string& GetComparatorName() const { return comparator_; } 19959: 19959: void SetPersistUserDefinedTimestamps(bool persist_user_defined_timestamps) { 19959: has_persist_user_defined_timestamps_ = true; 19959: persist_user_defined_timestamps_ = persist_user_defined_timestamps; 19959: } 19959: bool HasPersistUserDefinedTimestamps() const { 19959: return has_persist_user_defined_timestamps_; 19959: } 19959: bool GetPersistUserDefinedTimestamps() const { 19959: return persist_user_defined_timestamps_; 19959: } 19959: 19959: void SetLogNumber(uint64_t num) { 19959: has_log_number_ = true; 19959: log_number_ = num; 19959: } 19959: bool HasLogNumber() const { return has_log_number_; } 19959: uint64_t GetLogNumber() const { return log_number_; } 19959: 19959: void SetPrevLogNumber(uint64_t num) { 19959: has_prev_log_number_ = true; 19959: prev_log_number_ = num; 19959: } 19959: bool HasPrevLogNumber() const { return has_prev_log_number_; } 19959: uint64_t GetPrevLogNumber() const { return prev_log_number_; } 19959: 19959: void SetNextFile(uint64_t num) { 19959: has_next_file_number_ = true; 19959: next_file_number_ = num; 19959: } 19959: bool HasNextFile() const { return has_next_file_number_; } 19959: uint64_t GetNextFile() const { return next_file_number_; } 19959: 19959: void SetMaxColumnFamily(uint32_t max_column_family) { 19959: has_max_column_family_ = true; 19959: max_column_family_ = max_column_family; 19959: } 19959: bool HasMaxColumnFamily() const { return has_max_column_family_; } 19959: uint32_t GetMaxColumnFamily() const { return max_column_family_; } 19959: 19959: void SetMinLogNumberToKeep(uint64_t num) { 19959: has_min_log_number_to_keep_ = true; 19959: min_log_number_to_keep_ = num; 19959: } 19959: bool HasMinLogNumberToKeep() const { return has_min_log_number_to_keep_; } 19959: uint64_t GetMinLogNumberToKeep() const { return min_log_number_to_keep_; } 19959: 19959: void SetLastSequence(SequenceNumber seq) { 19959: has_last_sequence_ = true; 19959: last_sequence_ = seq; 19959: } 19959: bool HasLastSequence() const { return has_last_sequence_; } 19959: SequenceNumber GetLastSequence() const { return last_sequence_; } 19959: 19959: 19959: void DeleteFile(int level, uint64_t file) { 19959: deleted_files_.emplace(level, file); 19959: } 19959: 19959: 19959: using DeletedFiles = std::set>; 19959: const DeletedFiles& GetDeletedFiles() const { return deleted_files_; } 19959: 19959: 19959: 19959: 19959: 19959: void AddFile(int level, uint64_t file, uint32_t file_path_id, 19959: uint64_t file_size, const InternalKey& smallest, 19959: const InternalKey& largest, const SequenceNumber& smallest_seqno, 19959: const SequenceNumber& largest_seqno, bool marked_for_compaction, 19959: Temperature temperature, uint64_t oldest_blob_file_number, 19959: uint64_t oldest_ancester_time, uint64_t file_creation_time, 19959: uint64_t epoch_number, const std::string& file_checksum, 19959: const std::string& file_checksum_func_name, 19959: const UniqueId64x2& unique_id, 19959: const uint64_t compensated_range_deletion_size, 19959: uint64_t tail_size, bool user_defined_timestamps_persisted) { 19959: 19959: # 485 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 485 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: smallest_seqno <= largest_seqno 19959: # 485 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 485 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "smallest_seqno <= largest_seqno" 19959: # 485 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 485, __extension__ __PRETTY_FUNCTION__)) 19959: # 485 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: new_files_.emplace_back( 19959: level, 19959: FileMetaData(file, file_path_id, file_size, smallest, largest, 19959: smallest_seqno, largest_seqno, marked_for_compaction, 19959: temperature, oldest_blob_file_number, oldest_ancester_time, 19959: file_creation_time, epoch_number, file_checksum, 19959: file_checksum_func_name, unique_id, 19959: compensated_range_deletion_size, tail_size, 19959: user_defined_timestamps_persisted)); 19959: files_to_quarantine_.push_back(file); 19959: if (!HasLastSequence() || largest_seqno > GetLastSequence()) { 19959: SetLastSequence(largest_seqno); 19959: } 19959: } 19959: 19959: void AddFile(int level, const FileMetaData& f) { 19959: 19959: # 502 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 502 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: f.fd.smallest_seqno <= f.fd.largest_seqno 19959: # 502 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 502 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "f.fd.smallest_seqno <= f.fd.largest_seqno" 19959: # 502 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 502, __extension__ __PRETTY_FUNCTION__)) 19959: # 502 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: new_files_.emplace_back(level, f); 19959: files_to_quarantine_.push_back(f.fd.GetNumber()); 19959: if (!HasLastSequence() || f.fd.largest_seqno > GetLastSequence()) { 19959: SetLastSequence(f.fd.largest_seqno); 19959: } 19959: } 19959: 19959: 19959: using NewFiles = std::vector>; 19959: const NewFiles& GetNewFiles() const { return new_files_; } 19959: 19959: NewFiles& GetMutableNewFiles() { return new_files_; } 19959: 19959: 19959: using CompactCursors = std::vector>; 19959: const CompactCursors& GetCompactCursors() const { return compact_cursors_; } 19959: void AddCompactCursor(int level, const InternalKey& cursor) { 19959: compact_cursors_.push_back(std::make_pair(level, cursor)); 19959: } 19959: void SetCompactCursors( 19959: const std::vector& compact_cursors_by_level) { 19959: compact_cursors_.clear(); 19959: compact_cursors_.reserve(compact_cursors_by_level.size()); 19959: for (int i = 0; i < (int)compact_cursors_by_level.size(); i++) { 19959: if (compact_cursors_by_level[i].Valid()) { 19959: compact_cursors_.push_back( 19959: std::make_pair(i, compact_cursors_by_level[i])); 19959: } 19959: } 19959: } 19959: 19959: 19959: void AddBlobFile(uint64_t blob_file_number, uint64_t total_blob_count, 19959: uint64_t total_blob_bytes, std::string checksum_method, 19959: std::string checksum_value) { 19959: blob_file_additions_.emplace_back( 19959: blob_file_number, total_blob_count, total_blob_bytes, 19959: std::move(checksum_method), std::move(checksum_value)); 19959: files_to_quarantine_.push_back(blob_file_number); 19959: } 19959: 19959: void AddBlobFile(BlobFileAddition blob_file_addition) { 19959: blob_file_additions_.emplace_back(std::move(blob_file_addition)); 19959: files_to_quarantine_.push_back( 19959: blob_file_additions_.back().GetBlobFileNumber()); 19959: } 19959: 19959: 19959: using BlobFileAdditions = std::vector; 19959: const BlobFileAdditions& GetBlobFileAdditions() const { 19959: return blob_file_additions_; 19959: } 19959: 19959: void SetBlobFileAdditions(BlobFileAdditions blob_file_additions) { 19959: 19959: # 557 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 557 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: blob_file_additions_.empty() 19959: # 557 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 557 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "blob_file_additions_.empty()" 19959: # 557 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 557, __extension__ __PRETTY_FUNCTION__)) 19959: # 557 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: blob_file_additions_ = std::move(blob_file_additions); 19959: std::for_each( 19959: blob_file_additions_.begin(), blob_file_additions_.end(), 19959: [&](const BlobFileAddition& blob_file) { 19959: files_to_quarantine_.push_back(blob_file.GetBlobFileNumber()); 19959: }); 19959: } 19959: 19959: 19959: 19959: void AddBlobFileGarbage(uint64_t blob_file_number, 19959: uint64_t garbage_blob_count, 19959: uint64_t garbage_blob_bytes) { 19959: blob_file_garbages_.emplace_back(blob_file_number, garbage_blob_count, 19959: garbage_blob_bytes); 19959: } 19959: 19959: void AddBlobFileGarbage(BlobFileGarbage blob_file_garbage) { 19959: blob_file_garbages_.emplace_back(std::move(blob_file_garbage)); 19959: } 19959: 19959: 19959: using BlobFileGarbages = std::vector; 19959: const BlobFileGarbages& GetBlobFileGarbages() const { 19959: return blob_file_garbages_; 19959: } 19959: 19959: void SetBlobFileGarbages(BlobFileGarbages blob_file_garbages) { 19959: 19959: # 586 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 586 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: blob_file_garbages_.empty() 19959: # 586 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 586 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "blob_file_garbages_.empty()" 19959: # 586 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 586, __extension__ __PRETTY_FUNCTION__)) 19959: # 586 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: blob_file_garbages_ = std::move(blob_file_garbages); 19959: } 19959: 19959: 19959: 19959: void AddWal(WalNumber number, WalMetadata metadata = WalMetadata()) { 19959: 19959: # 593 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 593 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: NumEntries() == wal_additions_.size() 19959: # 593 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 593 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "NumEntries() == wal_additions_.size()" 19959: # 593 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 593, __extension__ __PRETTY_FUNCTION__)) 19959: # 593 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: wal_additions_.emplace_back(number, std::move(metadata)); 19959: } 19959: 19959: 19959: const WalAdditions& GetWalAdditions() const { return wal_additions_; } 19959: 19959: bool IsWalAddition() const { return !wal_additions_.empty(); } 19959: 19959: 19959: 19959: void DeleteWalsBefore(WalNumber number) { 19959: 19959: # 605 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 605 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: (NumEntries() == 1) == !wal_deletion_.IsEmpty() 19959: # 605 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 605 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "(NumEntries() == 1) == !wal_deletion_.IsEmpty()" 19959: # 605 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 605, __extension__ __PRETTY_FUNCTION__)) 19959: # 605 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: wal_deletion_ = WalDeletion(number); 19959: } 19959: 19959: const WalDeletion& GetWalDeletion() const { return wal_deletion_; } 19959: 19959: bool IsWalDeletion() const { return !wal_deletion_.IsEmpty(); } 19959: 19959: bool IsWalManipulation() const { 19959: size_t entries = NumEntries(); 19959: return (entries > 0) && ((entries == wal_additions_.size()) || 19959: (entries == !wal_deletion_.IsEmpty())); 19959: } 19959: 19959: 19959: size_t NumEntries() const { 19959: return new_files_.size() + deleted_files_.size() + 19959: blob_file_additions_.size() + blob_file_garbages_.size() + 19959: wal_additions_.size() + !wal_deletion_.IsEmpty(); 19959: } 19959: 19959: void SetColumnFamily(uint32_t column_family_id) { 19959: column_family_ = column_family_id; 19959: } 19959: uint32_t GetColumnFamily() const { return column_family_; } 19959: 19959: const std::string& GetColumnFamilyName() const { return column_family_name_; } 19959: 19959: 19959: void AddColumnFamily(const std::string& name) { 19959: 19959: # 635 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 635 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: !is_column_family_drop_ 19959: # 635 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 635 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "!is_column_family_drop_" 19959: # 635 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 635, __extension__ __PRETTY_FUNCTION__)) 19959: # 635 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: 19959: # 636 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 636 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: !is_column_family_add_ 19959: # 636 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 636 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "!is_column_family_add_" 19959: # 636 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 636, __extension__ __PRETTY_FUNCTION__)) 19959: # 636 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: 19959: # 637 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 637 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: NumEntries() == 0 19959: # 637 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 637 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "NumEntries() == 0" 19959: # 637 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 637, __extension__ __PRETTY_FUNCTION__)) 19959: # 637 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: is_column_family_add_ = true; 19959: column_family_name_ = name; 19959: } 19959: 19959: 19959: void DropColumnFamily() { 19959: 19959: # 644 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 644 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: !is_column_family_drop_ 19959: # 644 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 644 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "!is_column_family_drop_" 19959: # 644 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 644, __extension__ __PRETTY_FUNCTION__)) 19959: # 644 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: 19959: # 645 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 645 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: !is_column_family_add_ 19959: # 645 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 645 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "!is_column_family_add_" 19959: # 645 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 645, __extension__ __PRETTY_FUNCTION__)) 19959: # 645 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: 19959: # 646 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 646 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: NumEntries() == 0 19959: # 646 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 646 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "NumEntries() == 0" 19959: # 646 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 646, __extension__ __PRETTY_FUNCTION__)) 19959: # 646 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: is_column_family_drop_ = true; 19959: } 19959: 19959: bool IsColumnFamilyManipulation() const { 19959: return is_column_family_add_ || is_column_family_drop_; 19959: } 19959: 19959: bool IsColumnFamilyAdd() const { return is_column_family_add_; } 19959: 19959: bool IsColumnFamilyDrop() const { return is_column_family_drop_; } 19959: 19959: void MarkAtomicGroup(uint32_t remaining_entries) { 19959: is_in_atomic_group_ = true; 19959: remaining_entries_ = remaining_entries; 19959: } 19959: bool IsInAtomicGroup() const { return is_in_atomic_group_; } 19959: void SetRemainingEntries(uint32_t remaining_entries) { 19959: remaining_entries_ = remaining_entries; 19959: } 19959: uint32_t GetRemainingEntries() const { return remaining_entries_; } 19959: 19959: bool HasFullHistoryTsLow() const { return !full_history_ts_low_.empty(); } 19959: const std::string& GetFullHistoryTsLow() const { 19959: 19959: # 670 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 670 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: HasFullHistoryTsLow() 19959: # 670 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 670 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "HasFullHistoryTsLow()" 19959: # 670 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 670, __extension__ __PRETTY_FUNCTION__)) 19959: # 670 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: return full_history_ts_low_; 19959: } 19959: void SetFullHistoryTsLow(std::string full_history_ts_low) { 19959: 19959: # 674 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: (static_cast ( 19959: # 674 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: !full_history_ts_low.empty() 19959: # 674 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 674 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: "!full_history_ts_low.empty()" 19959: # 674 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 19959: , "./db/version_edit.h", 674, __extension__ __PRETTY_FUNCTION__)) 19959: # 674 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: ; 19959: full_history_ts_low_ = std::move(full_history_ts_low); 19959: } 19959: # 688 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: bool EncodeTo(std::string* dst, 19959: std::optional ts_sz = std::nullopt) const; 19959: Status DecodeFrom(const Slice& src); 19959: 19959: const autovector* GetFilesToQuarantineIfCommitFail() const { 19959: return &files_to_quarantine_; 19959: } 19959: 19959: std::string DebugString(bool hex_key = false) const; 19959: std::string DebugJSON(int edit_num, bool hex_key = false) const; 19959: 19959: private: 19959: bool GetLevel(Slice* input, int* level, const char** msg); 19959: 19959: const char* DecodeNewFile4From(Slice* input); 19959: 19959: 19959: 19959: 19959: void EncodeFileBoundaries(std::string* dst, const FileMetaData& meta, 19959: size_t ts_sz) const; 19959: 19959: int max_level_ = 0; 19959: std::string db_id_; 19959: std::string comparator_; 19959: uint64_t log_number_ = 0; 19959: uint64_t prev_log_number_ = 0; 19959: uint64_t next_file_number_ = 0; 19959: uint32_t max_column_family_ = 0; 19959: 19959: uint64_t min_log_number_to_keep_ = 0; 19959: SequenceNumber last_sequence_ = 0; 19959: bool has_db_id_ = false; 19959: bool has_comparator_ = false; 19959: bool has_log_number_ = false; 19959: bool has_prev_log_number_ = false; 19959: bool has_next_file_number_ = false; 19959: bool has_max_column_family_ = false; 19959: bool has_min_log_number_to_keep_ = false; 19959: bool has_last_sequence_ = false; 19959: bool has_persist_user_defined_timestamps_ = false; 19959: 19959: 19959: CompactCursors compact_cursors_; 19959: 19959: DeletedFiles deleted_files_; 19959: NewFiles new_files_; 19959: 19959: BlobFileAdditions blob_file_additions_; 19959: BlobFileGarbages blob_file_garbages_; 19959: 19959: WalAdditions wal_additions_; 19959: WalDeletion wal_deletion_; 19959: 19959: 19959: 19959: uint32_t column_family_ = 0; 19959: 19959: 19959: 19959: bool is_column_family_drop_ = false; 19959: bool is_column_family_add_ = false; 19959: std::string column_family_name_; 19959: 19959: bool is_in_atomic_group_ = false; 19959: uint32_t remaining_entries_ = 0; 19959: 19959: std::string full_history_ts_low_; 19959: bool persist_user_defined_timestamps_ = true; 19959: # 766 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 19959: autovector files_to_quarantine_; 19959: }; 19959: 19959: } 19959: # 24 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 19959: 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/thread_local.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/util/thread_local.h" 19959: 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/util/thread_local.h" 19959: namespace rocksdb { 19959: # 34 "/build/reproducible-path/rocksdb-8.9.1/util/thread_local.h" 19959: using UnrefHandler = void (*)(void* ptr); 19959: # 44 "/build/reproducible-path/rocksdb-8.9.1/util/thread_local.h" 19959: class ThreadLocalPtr { 19959: public: 19959: explicit ThreadLocalPtr(UnrefHandler handler = nullptr); 19959: 19959: ThreadLocalPtr(const ThreadLocalPtr&) = delete; 19959: ThreadLocalPtr& operator=(const ThreadLocalPtr&) = delete; 19959: 19959: ~ThreadLocalPtr(); 19959: 19959: 19959: void* Get() const; 19959: 19959: 19959: void Reset(void* ptr); 19959: 19959: 19959: void* Swap(void* ptr); 19959: 19959: 19959: 19959: 19959: 19959: bool CompareAndSwap(void* ptr, void*& expected); 19959: 19959: 19959: 19959: void Scrape(autovector* ptrs, void* const replacement); 19959: 19959: using FoldFunc = std::function; 19959: 19959: 19959: 19959: 19959: void Fold(FoldFunc func, void* res); 19959: 19959: 19959: 19959: static uint32_t TEST_PeekId(); 19959: # 90 "/build/reproducible-path/rocksdb-8.9.1/util/thread_local.h" 19959: static void InitSingletons(); 19959: 19959: class StaticMeta; 19959: 19959: private: 19959: static StaticMeta* Instance(); 19959: 19959: const uint32_t id_; 19959: }; 19959: 19959: } 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 2 19959: # 31 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 19959: namespace rocksdb { 19959: 19959: class Logger; 19959: # 42 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 19959: class ConcurrentArena : public Allocator { 19959: public: 19959: 19959: 19959: 19959: 19959: explicit ConcurrentArena(size_t block_size = Arena::kMinBlockSize, 19959: AllocTracker* tracker = nullptr, 19959: size_t huge_page_size = 0); 19959: 19959: char* Allocate(size_t bytes) override { 19959: return AllocateImpl(bytes, false , 19959: [this, bytes]() { return arena_.Allocate(bytes); }); 19959: } 19959: 19959: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 19959: Logger* logger = nullptr) override { 19959: size_t rounded_up = ((bytes - 1) | (sizeof(void*) - 1)) + 1; 19959: 19959: # 60 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 3 4 19959: (static_cast ( 19959: # 60 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 19959: rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0 19959: # 60 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 60 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 19959: "rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0" 19959: # 60 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 3 4 19959: , "./memory/concurrent_arena.h", 60, __extension__ __PRETTY_FUNCTION__)) 19959: 19959: # 61 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 19959: ; 19959: 19959: return AllocateImpl(rounded_up, huge_page_size != 0 , 19959: [this, rounded_up, huge_page_size, logger]() { 19959: return arena_.AllocateAligned(rounded_up, 19959: huge_page_size, logger); 19959: }); 19959: } 19959: 19959: size_t ApproximateMemoryUsage() const { 19959: std::unique_lock lock(arena_mutex_, std::defer_lock); 19959: lock.lock(); 19959: return arena_.ApproximateMemoryUsage() - ShardAllocatedAndUnused(); 19959: } 19959: 19959: size_t MemoryAllocatedBytes() const { 19959: return memory_allocated_bytes_.load(std::memory_order_relaxed); 19959: } 19959: 19959: size_t AllocatedAndUnused() const { 19959: return arena_allocated_and_unused_.load(std::memory_order_relaxed) + 19959: ShardAllocatedAndUnused(); 19959: } 19959: 19959: size_t IrregularBlockNum() const { 19959: return irregular_block_num_.load(std::memory_order_relaxed); 19959: } 19959: 19959: size_t BlockSize() const override { return arena_.BlockSize(); } 19959: 19959: private: 19959: struct Shard { 19959: char padding[40] ; 19959: mutable SpinMutex mutex; 19959: char* free_begin_; 19959: std::atomic allocated_and_unused_; 19959: 19959: Shard() : free_begin_(nullptr), allocated_and_unused_(0) {} 19959: }; 19959: 19959: static thread_local size_t tls_cpuid; 19959: 19959: char padding0[56] ; 19959: 19959: size_t shard_block_size_; 19959: 19959: CoreLocalArray shards_; 19959: 19959: Arena arena_; 19959: mutable SpinMutex arena_mutex_; 19959: std::atomic arena_allocated_and_unused_; 19959: std::atomic memory_allocated_bytes_; 19959: std::atomic irregular_block_num_; 19959: 19959: char padding1[56] ; 19959: 19959: Shard* Repick(); 19959: 19959: size_t ShardAllocatedAndUnused() const { 19959: size_t total = 0; 19959: for (size_t i = 0; i < shards_.Size(); ++i) { 19959: total += shards_.AccessAtCore(i)->allocated_and_unused_.load( 19959: std::memory_order_relaxed); 19959: } 19959: return total; 19959: } 19959: 19959: template 19959: char* AllocateImpl(size_t bytes, bool force_arena, const Func& func) { 19959: size_t cpu; 19959: 19959: 19959: 19959: 19959: 19959: std::unique_lock arena_lock(arena_mutex_, std::defer_lock); 19959: if (bytes > shard_block_size_ / 4 || force_arena || 19959: ((cpu = tls_cpuid) == 0 && 19959: !shards_.AccessAtCore(0)->allocated_and_unused_.load( 19959: std::memory_order_relaxed) && 19959: arena_lock.try_lock())) { 19959: if (!arena_lock.owns_lock()) { 19959: arena_lock.lock(); 19959: } 19959: auto rv = func(); 19959: Fixup(); 19959: return rv; 19959: } 19959: 19959: 19959: Shard* s = shards_.AccessAtCore(cpu & (shards_.Size() - 1)); 19959: if (!s->mutex.try_lock()) { 19959: s = Repick(); 19959: s->mutex.lock(); 19959: } 19959: std::unique_lock lock(s->mutex, std::adopt_lock); 19959: 19959: size_t avail = s->allocated_and_unused_.load(std::memory_order_relaxed); 19959: if (avail < bytes) { 19959: 19959: std::lock_guard reload_lock(arena_mutex_); 19959: 19959: 19959: 19959: auto exact = arena_allocated_and_unused_.load(std::memory_order_relaxed); 19959: 19959: # 166 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 3 4 19959: (static_cast ( 19959: # 166 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 19959: exact == arena_.AllocatedAndUnused() 19959: # 166 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 166 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 19959: "exact == arena_.AllocatedAndUnused()" 19959: # 166 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 3 4 19959: , "./memory/concurrent_arena.h", 166, __extension__ __PRETTY_FUNCTION__)) 19959: # 166 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 19959: ; 19959: 19959: if (exact >= bytes && arena_.IsInInlineBlock()) { 19959: # 177 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 19959: auto rv = func(); 19959: Fixup(); 19959: return rv; 19959: } 19959: 19959: avail = exact >= shard_block_size_ / 2 && exact < shard_block_size_ * 2 19959: ? exact 19959: : shard_block_size_; 19959: s->free_begin_ = arena_.AllocateAligned(avail); 19959: Fixup(); 19959: } 19959: s->allocated_and_unused_.store(avail - bytes, std::memory_order_relaxed); 19959: 19959: char* rv; 19959: if ((bytes % sizeof(void*)) == 0) { 19959: 19959: rv = s->free_begin_; 19959: s->free_begin_ += bytes; 19959: } else { 19959: 19959: rv = s->free_begin_ + avail - bytes; 19959: } 19959: return rv; 19959: } 19959: 19959: void Fixup() { 19959: arena_allocated_and_unused_.store(arena_.AllocatedAndUnused(), 19959: std::memory_order_relaxed); 19959: memory_allocated_bytes_.store(arena_.MemoryAllocatedBytes(), 19959: std::memory_order_relaxed); 19959: irregular_block_num_.store(arena_.IrregularBlockNum(), 19959: std::memory_order_relaxed); 19959: } 19959: 19959: ConcurrentArena(const ConcurrentArena&) = delete; 19959: ConcurrentArena& operator=(const ConcurrentArena&) = delete; 19959: }; 19959: 19959: } 19959: # 26 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/block_cache_trace_writer.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/trace_reader_writer.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/trace_reader_writer.h" 19959: class TraceWriter { 19959: public: 19959: virtual ~TraceWriter() = default; 19959: 19959: virtual Status Write(const Slice& data) = 0; 19959: virtual Status Close() = 0; 19959: virtual uint64_t GetFileSize() = 0; 19959: }; 19959: 19959: 19959: 19959: class TraceReader { 19959: public: 19959: virtual ~TraceReader() = default; 19959: 19959: virtual Status Read(std::string* data) = 0; 19959: virtual Status Close() = 0; 19959: 19959: 19959: 19959: virtual Status Reset() = 0; 19959: }; 19959: 19959: 19959: 19959: Status NewFileTraceWriter(Env* env, const EnvOptions& env_options, 19959: const std::string& trace_filename, 19959: std::unique_ptr* trace_writer); 19959: Status NewFileTraceReader(Env* env, const EnvOptions& env_options, 19959: const std::string& trace_filename, 19959: std::unique_ptr* trace_reader); 19959: 19959: } 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/block_cache_trace_writer.h" 2 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: struct BlockCacheTraceRecord { 19959: 19959: uint64_t access_timestamp = 0; 19959: 19959: 19959: 19959: 19959: std::string block_key; 19959: 19959: 19959: TraceType block_type = TraceType::kTraceMax; 19959: 19959: 19959: uint64_t block_size = 0; 19959: 19959: 19959: 19959: 19959: uint64_t cf_id = 0; 19959: 19959: 19959: std::string cf_name; 19959: 19959: 19959: uint32_t level = 0; 19959: 19959: 19959: uint64_t sst_fd_number = 0; 19959: 19959: 19959: 19959: 19959: TableReaderCaller caller = TableReaderCaller::kMaxBlockCacheLookupCaller; 19959: 19959: 19959: bool is_cache_hit = false; 19959: 19959: 19959: bool no_insert = false; 19959: 19959: 19959: 19959: 19959: uint64_t get_id = kReservedGetId; 19959: 19959: 19959: bool get_from_user_specified_snapshot = false; 19959: 19959: 19959: std::string referenced_key; 19959: 19959: 19959: 19959: 19959: uint64_t referenced_data_size = 0; 19959: 19959: 19959: uint64_t num_keys_in_block = 0; 19959: 19959: 19959: bool referenced_key_exist_in_block = false; 19959: 19959: static const uint64_t kReservedGetId; 19959: 19959: BlockCacheTraceRecord() {} 19959: 19959: BlockCacheTraceRecord(uint64_t _access_timestamp, std::string _block_key, 19959: TraceType _block_type, uint64_t _block_size, 19959: uint64_t _cf_id, std::string _cf_name, uint32_t _level, 19959: uint64_t _sst_fd_number, TableReaderCaller _caller, 19959: bool _is_cache_hit, bool _no_insert, uint64_t _get_id, 19959: bool _get_from_user_specified_snapshot = false, 19959: std::string _referenced_key = "", 19959: uint64_t _referenced_data_size = 0, 19959: uint64_t _num_keys_in_block = 0, 19959: bool _referenced_key_exist_in_block = false) 19959: : access_timestamp(_access_timestamp), 19959: block_key(_block_key), 19959: block_type(_block_type), 19959: block_size(_block_size), 19959: cf_id(_cf_id), 19959: cf_name(_cf_name), 19959: level(_level), 19959: sst_fd_number(_sst_fd_number), 19959: caller(_caller), 19959: is_cache_hit(_is_cache_hit), 19959: no_insert(_no_insert), 19959: get_id(_get_id), 19959: get_from_user_specified_snapshot(_get_from_user_specified_snapshot), 19959: referenced_key(_referenced_key), 19959: referenced_data_size(_referenced_data_size), 19959: num_keys_in_block(_num_keys_in_block), 19959: referenced_key_exist_in_block(_referenced_key_exist_in_block) {} 19959: }; 19959: 19959: 19959: struct BlockCacheTraceOptions { 19959: 19959: 19959: uint64_t sampling_frequency = 1; 19959: }; 19959: 19959: 19959: struct BlockCacheTraceWriterOptions { 19959: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 19959: }; 19959: 19959: 19959: 19959: 19959: class BlockCacheTraceWriter { 19959: public: 19959: virtual ~BlockCacheTraceWriter() {} 19959: 19959: 19959: virtual Status WriteBlockAccess(const BlockCacheTraceRecord& record, 19959: const Slice& block_key, const Slice& cf_name, 19959: const Slice& referenced_key) = 0; 19959: 19959: 19959: 19959: virtual Status WriteHeader() = 0; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: std::unique_ptr NewBlockCacheTraceWriter( 19959: SystemClock* clock, const BlockCacheTraceWriterOptions& trace_options, 19959: std::unique_ptr&& trace_writer); 19959: 19959: } 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 2 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct FileStorageInfo { 19959: 19959: std::string relative_filename; 19959: 19959: 19959: std::string directory; 19959: 19959: 19959: 19959: uint64_t file_number = 0; 19959: 19959: FileType file_type = kTempFile; 19959: 19959: 19959: uint64_t size = 0; 19959: 19959: 19959: Temperature temperature = Temperature::kUnknown; 19959: 19959: 19959: 19959: 19959: 19959: std::string file_checksum; 19959: 19959: 19959: 19959: 19959: 19959: std::string file_checksum_func_name; 19959: }; 19959: 19959: 19959: 19959: struct LiveFileStorageInfo : public FileStorageInfo { 19959: 19959: 19959: 19959: 19959: 19959: std::string replacement_contents; 19959: 19959: 19959: 19959: 19959: bool trim_to_size = false; 19959: }; 19959: 19959: 19959: 19959: struct SstFileMetaData : public FileStorageInfo { 19959: SstFileMetaData() { file_type = kTableFile; } 19959: 19959: SstFileMetaData(const std::string& _file_name, uint64_t _file_number, 19959: const std::string& _directory, uint64_t _size, 19959: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno, 19959: const std::string& _smallestkey, 19959: const std::string& _largestkey, uint64_t _num_reads_sampled, 19959: bool _being_compacted, Temperature _temperature, 19959: uint64_t _oldest_blob_file_number, 19959: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 19959: uint64_t _epoch_number, std::string& _file_checksum, 19959: std::string& _file_checksum_func_name) 19959: : smallest_seqno(_smallest_seqno), 19959: largest_seqno(_largest_seqno), 19959: smallestkey(_smallestkey), 19959: largestkey(_largestkey), 19959: num_reads_sampled(_num_reads_sampled), 19959: being_compacted(_being_compacted), 19959: num_entries(0), 19959: num_deletions(0), 19959: oldest_blob_file_number(_oldest_blob_file_number), 19959: oldest_ancester_time(_oldest_ancester_time), 19959: file_creation_time(_file_creation_time), 19959: epoch_number(_epoch_number) { 19959: if (!_file_name.empty()) { 19959: if (_file_name[0] == '/') { 19959: relative_filename = _file_name.substr(1); 19959: name = _file_name; 19959: } else { 19959: relative_filename = _file_name; 19959: name = std::string("/") + _file_name; 19959: } 19959: 19959: # 107 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 19959: (static_cast ( 19959: # 107 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 19959: relative_filename.size() + 1 == name.size() 19959: # 107 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 107 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 19959: "relative_filename.size() + 1 == name.size()" 19959: # 107 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 19959: , "./include/rocksdb/metadata.h", 107, __extension__ __PRETTY_FUNCTION__)) 19959: # 107 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 19959: ; 19959: 19959: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 19959: (static_cast ( 19959: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 19959: relative_filename[0] != '/' 19959: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 19959: "relative_filename[0] != '/'" 19959: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 19959: , "./include/rocksdb/metadata.h", 108, __extension__ __PRETTY_FUNCTION__)) 19959: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 19959: ; 19959: 19959: # 109 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 19959: (static_cast ( 19959: # 109 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 19959: name[0] == '/' 19959: # 109 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 109 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 19959: "name[0] == '/'" 19959: # 109 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 19959: , "./include/rocksdb/metadata.h", 109, __extension__ __PRETTY_FUNCTION__)) 19959: # 109 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 19959: ; 19959: } 19959: directory = _directory; 19959: db_path = _directory; 19959: file_number = _file_number; 19959: file_type = kTableFile; 19959: size = _size; 19959: temperature = _temperature; 19959: file_checksum = _file_checksum; 19959: file_checksum_func_name = _file_checksum_func_name; 19959: } 19959: 19959: SequenceNumber smallest_seqno = 0; 19959: SequenceNumber largest_seqno = 0; 19959: std::string smallestkey; 19959: std::string largestkey; 19959: uint64_t num_reads_sampled = 0; 19959: bool being_compacted = 19959: false; 19959: 19959: uint64_t num_entries = 0; 19959: uint64_t num_deletions = 0; 19959: 19959: uint64_t oldest_blob_file_number = 0; 19959: # 141 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 19959: uint64_t oldest_ancester_time = 0; 19959: 19959: 19959: uint64_t file_creation_time = 0; 19959: 19959: 19959: 19959: 19959: 19959: uint64_t epoch_number = 0; 19959: 19959: 19959: 19959: 19959: std::string smallest{}; 19959: std::string largest{}; 19959: 19959: 19959: 19959: 19959: std::string name; 19959: 19959: 19959: std::string db_path; 19959: }; 19959: 19959: 19959: struct LiveFileMetaData : SstFileMetaData { 19959: std::string column_family_name; 19959: int level; 19959: LiveFileMetaData() : column_family_name(), level(0) {} 19959: }; 19959: 19959: 19959: struct BlobMetaData { 19959: BlobMetaData() 19959: : blob_file_number(0), 19959: blob_file_size(0), 19959: total_blob_count(0), 19959: total_blob_bytes(0), 19959: garbage_blob_count(0), 19959: garbage_blob_bytes(0) {} 19959: 19959: BlobMetaData(uint64_t _file_number, const std::string& _file_name, 19959: const std::string& _file_path, uint64_t _file_size, 19959: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 19959: uint64_t _garbage_blob_count, uint64_t _garbage_blob_bytes, 19959: const std::string& _file_checksum, 19959: const std::string& _file_checksum_func_name) 19959: : blob_file_number(_file_number), 19959: blob_file_name(_file_name), 19959: blob_file_path(_file_path), 19959: blob_file_size(_file_size), 19959: total_blob_count(_total_blob_count), 19959: total_blob_bytes(_total_blob_bytes), 19959: garbage_blob_count(_garbage_blob_count), 19959: garbage_blob_bytes(_garbage_blob_bytes), 19959: checksum_method(_file_checksum), 19959: checksum_value(_file_checksum_func_name) {} 19959: uint64_t blob_file_number; 19959: std::string blob_file_name; 19959: std::string blob_file_path; 19959: uint64_t blob_file_size; 19959: uint64_t total_blob_count; 19959: uint64_t total_blob_bytes; 19959: uint64_t garbage_blob_count; 19959: uint64_t garbage_blob_bytes; 19959: std::string checksum_method; 19959: std::string checksum_value; 19959: }; 19959: 19959: 19959: struct LevelMetaData { 19959: LevelMetaData(int _level, uint64_t _size, 19959: const std::vector&& _files) 19959: : level(_level), size(_size), files(_files) {} 19959: 19959: 19959: const int level; 19959: 19959: 19959: const uint64_t size; 19959: 19959: const std::vector files; 19959: }; 19959: 19959: 19959: struct ColumnFamilyMetaData { 19959: ColumnFamilyMetaData() : size(0), file_count(0), name("") {} 19959: ColumnFamilyMetaData(const std::string& _name, uint64_t _size, 19959: const std::vector&& _levels) 19959: : size(_size), name(_name), levels(_levels) {} 19959: 19959: 19959: 19959: uint64_t size; 19959: 19959: size_t file_count; 19959: 19959: std::string name; 19959: 19959: std::vector levels; 19959: 19959: 19959: uint64_t blob_file_size = 0; 19959: 19959: size_t blob_file_count = 0; 19959: 19959: std::vector blob_files; 19959: }; 19959: 19959: 19959: 19959: struct ExportImportFilesMetaData { 19959: std::string db_comparator_name; 19959: std::vector files; 19959: }; 19959: } 19959: # 24 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/snapshot.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class DB; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: class Snapshot { 19959: public: 19959: virtual SequenceNumber GetSequenceNumber() const = 0; 19959: 19959: 19959: 19959: virtual int64_t GetUnixTime() const = 0; 19959: 19959: virtual uint64_t GetTimestamp() const = 0; 19959: 19959: protected: 19959: virtual ~Snapshot(); 19959: }; 19959: 19959: 19959: 19959: 19959: class ManagedSnapshot { 19959: public: 19959: explicit ManagedSnapshot(DB* db); 19959: 19959: 19959: ManagedSnapshot(DB* db, const Snapshot* _snapshot); 19959: 19959: ~ManagedSnapshot(); 19959: 19959: const Snapshot* snapshot(); 19959: 19959: private: 19959: DB* db_; 19959: const Snapshot* snapshot_; 19959: }; 19959: 19959: } 19959: # 26 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_file_writer.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 24 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_file_writer.h" 19959: namespace rocksdb { 19959: 19959: class Comparator; 19959: 19959: 19959: 19959: struct ExternalSstFileInfo { 19959: ExternalSstFileInfo() 19959: : file_path(""), 19959: smallest_key(""), 19959: largest_key(""), 19959: smallest_range_del_key(""), 19959: largest_range_del_key(""), 19959: file_checksum(""), 19959: file_checksum_func_name(""), 19959: sequence_number(0), 19959: file_size(0), 19959: num_entries(0), 19959: num_range_del_entries(0), 19959: version(0) {} 19959: 19959: ExternalSstFileInfo(const std::string& _file_path, 19959: const std::string& _smallest_key, 19959: const std::string& _largest_key, 19959: SequenceNumber _sequence_number, uint64_t _file_size, 19959: uint64_t _num_entries, int32_t _version) 19959: : file_path(_file_path), 19959: smallest_key(_smallest_key), 19959: largest_key(_largest_key), 19959: smallest_range_del_key(""), 19959: largest_range_del_key(""), 19959: file_checksum(""), 19959: file_checksum_func_name(""), 19959: sequence_number(_sequence_number), 19959: file_size(_file_size), 19959: num_entries(_num_entries), 19959: num_range_del_entries(0), 19959: version(_version) {} 19959: 19959: std::string file_path; 19959: std::string smallest_key; 19959: std::string largest_key; 19959: std::string 19959: smallest_range_del_key; 19959: std::string largest_range_del_key; 19959: std::string file_checksum; 19959: std::string file_checksum_func_name; 19959: SequenceNumber sequence_number; 19959: uint64_t file_size; 19959: uint64_t num_entries; 19959: uint64_t num_range_del_entries; 19959: int32_t version; 19959: }; 19959: 19959: 19959: 19959: class SstFileWriter { 19959: public: 19959: # 92 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_file_writer.h" 19959: SstFileWriter(const EnvOptions& env_options, const Options& options, 19959: ColumnFamilyHandle* column_family = nullptr, 19959: bool invalidate_page_cache = true, 19959: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 19959: bool skip_filters = false) 19959: : SstFileWriter(env_options, options, options.comparator, column_family, 19959: invalidate_page_cache, io_priority, skip_filters) {} 19959: 19959: 19959: SstFileWriter(const EnvOptions& env_options, const Options& options, 19959: const Comparator* user_comparator, 19959: ColumnFamilyHandle* column_family = nullptr, 19959: bool invalidate_page_cache = true, 19959: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 19959: bool skip_filters = false); 19959: 19959: ~SstFileWriter(); 19959: 19959: 19959: Status Open(const std::string& file_path); 19959: 19959: 19959: 19959: 19959: 19959: __attribute__((__deprecated__)) Status Add(const Slice& user_key, const Slice& value); 19959: 19959: 19959: 19959: 19959: 19959: Status Put(const Slice& user_key, const Slice& value); 19959: 19959: 19959: 19959: 19959: 19959: Status Put(const Slice& user_key, const Slice& timestamp, const Slice& value); 19959: 19959: 19959: 19959: Status PutEntity(const Slice& user_key, const WideColumns& columns); 19959: 19959: 19959: 19959: 19959: 19959: Status Merge(const Slice& user_key, const Slice& value); 19959: 19959: 19959: 19959: 19959: 19959: Status Delete(const Slice& user_key); 19959: 19959: 19959: 19959: 19959: 19959: Status Delete(const Slice& user_key, const Slice& timestamp); 19959: # 163 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_file_writer.h" 19959: Status DeleteRange(const Slice& begin_key, const Slice& end_key); 19959: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_file_writer.h" 19959: Status DeleteRange(const Slice& begin_key, const Slice& end_key, 19959: const Slice& timestamp); 19959: 19959: 19959: 19959: 19959: 19959: Status Finish(ExternalSstFileInfo* file_info = nullptr); 19959: 19959: 19959: uint64_t FileSize(); 19959: 19959: private: 19959: void InvalidatePageCache(bool closing); 19959: struct Rep; 19959: std::unique_ptr rep_; 19959: }; 19959: } 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/transaction_log.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 1 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 19959: 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch_base.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch_base.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class Slice; 19959: class Status; 19959: class ColumnFamilyHandle; 19959: class WriteBatch; 19959: struct SliceParts; 19959: 19959: 19959: 19959: 19959: class WriteBatchBase { 19959: public: 19959: virtual ~WriteBatchBase() {} 19959: 19959: 19959: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& value) = 0; 19959: virtual Status Put(const Slice& key, const Slice& value) = 0; 19959: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& ts, const Slice& value) = 0; 19959: 19959: 19959: 19959: 19959: virtual Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 19959: const SliceParts& value); 19959: virtual Status Put(const SliceParts& key, const SliceParts& value); 19959: # 58 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch_base.h" 19959: virtual Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& value, uint64_t write_unix_time) = 0; 19959: 19959: 19959: 19959: virtual Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 19959: const WideColumns& columns) = 0; 19959: 19959: 19959: 19959: virtual Status PutEntity(const Slice& key, 19959: const AttributeGroups& attribute_groups) = 0; 19959: 19959: 19959: 19959: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& value) = 0; 19959: virtual Status Merge(const Slice& key, const Slice& value) = 0; 19959: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& ts, const Slice& value) = 0; 19959: 19959: 19959: virtual Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 19959: const SliceParts& value); 19959: virtual Status Merge(const SliceParts& key, const SliceParts& value); 19959: 19959: 19959: virtual Status Delete(ColumnFamilyHandle* column_family, 19959: const Slice& key) = 0; 19959: virtual Status Delete(const Slice& key) = 0; 19959: virtual Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& ts) = 0; 19959: 19959: 19959: virtual Status Delete(ColumnFamilyHandle* column_family, 19959: const SliceParts& key); 19959: virtual Status Delete(const SliceParts& key); 19959: 19959: 19959: 19959: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 19959: const Slice& key) = 0; 19959: virtual Status SingleDelete(const Slice& key) = 0; 19959: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 19959: const Slice& key, const Slice& ts) = 0; 19959: 19959: 19959: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 19959: const SliceParts& key); 19959: virtual Status SingleDelete(const SliceParts& key); 19959: 19959: 19959: 19959: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 19959: const Slice& begin_key, const Slice& end_key) = 0; 19959: virtual Status DeleteRange(const Slice& begin_key, const Slice& end_key) = 0; 19959: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 19959: const Slice& begin_key, const Slice& end_key, 19959: const Slice& ts) = 0; 19959: 19959: 19959: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 19959: const SliceParts& begin_key, 19959: const SliceParts& end_key); 19959: virtual Status DeleteRange(const SliceParts& begin_key, 19959: const SliceParts& end_key); 19959: # 135 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch_base.h" 19959: virtual Status PutLogData(const Slice& blob) = 0; 19959: 19959: 19959: virtual void Clear() = 0; 19959: 19959: 19959: 19959: 19959: virtual WriteBatch* GetWriteBatch() = 0; 19959: 19959: 19959: 19959: virtual void SetSavePoint() = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual Status RollbackToSavePoint() = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual Status PopSavePoint() = 0; 19959: 19959: 19959: virtual void SetMaxBytes(size_t max_bytes) = 0; 19959: }; 19959: 19959: } 19959: # 37 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: class Slice; 19959: class ColumnFamilyHandle; 19959: struct SavePoints; 19959: struct SliceParts; 19959: 19959: struct SavePoint { 19959: size_t size; 19959: uint32_t count; 19959: uint32_t content_flags; 19959: 19959: SavePoint() : size(0), count(0), content_flags(0) {} 19959: 19959: SavePoint(size_t _size, uint32_t _count, uint32_t _flags) 19959: : size(_size), count(_count), content_flags(_flags) {} 19959: 19959: void clear() { 19959: size = 0; 19959: count = 0; 19959: content_flags = 0; 19959: } 19959: 19959: bool is_cleared() const { return (size | count | content_flags) == 0; } 19959: }; 19959: 19959: class WriteBatch : public WriteBatchBase { 19959: public: 19959: explicit WriteBatch(size_t reserved_bytes = 0, size_t max_bytes = 0) 19959: : WriteBatch(reserved_bytes, max_bytes, 0, 0) {} 19959: 19959: 19959: 19959: 19959: explicit WriteBatch(size_t reserved_bytes, size_t max_bytes, 19959: size_t protection_bytes_per_key, size_t default_cf_ts_sz); 19959: ~WriteBatch() override; 19959: 19959: using WriteBatchBase::Put; 19959: 19959: 19959: 19959: 19959: 19959: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& value) override; 19959: Status Put(const Slice& key, const Slice& value) override { 19959: return Put(nullptr, key, value); 19959: } 19959: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& ts, const Slice& value) override; 19959: # 97 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 19959: Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 19959: const SliceParts& value) override; 19959: Status Put(const SliceParts& key, const SliceParts& value) override { 19959: return Put(nullptr, key, value); 19959: } 19959: 19959: using WriteBatchBase::TimedPut; 19959: 19959: 19959: 19959: Status TimedPut(ColumnFamilyHandle* , 19959: const Slice& , const Slice& , 19959: uint64_t ) override { 19959: 19959: return Status::NotSupported("TimedPut is under construction"); 19959: } 19959: 19959: 19959: 19959: using WriteBatchBase::PutEntity; 19959: Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 19959: const WideColumns& columns) override; 19959: 19959: 19959: 19959: Status PutEntity(const Slice& key, 19959: const AttributeGroups& attribute_groups) override; 19959: 19959: using WriteBatchBase::Delete; 19959: 19959: 19959: 19959: 19959: 19959: Status Delete(ColumnFamilyHandle* column_family, const Slice& key) override; 19959: Status Delete(const Slice& key) override { return Delete(nullptr, key); } 19959: Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& ts) override; 19959: 19959: 19959: 19959: 19959: 19959: 19959: Status Delete(ColumnFamilyHandle* column_family, 19959: const SliceParts& key) override; 19959: Status Delete(const SliceParts& key) override { return Delete(nullptr, key); } 19959: 19959: using WriteBatchBase::SingleDelete; 19959: 19959: Status SingleDelete(ColumnFamilyHandle* column_family, 19959: const Slice& key) override; 19959: Status SingleDelete(const Slice& key) override { 19959: return SingleDelete(nullptr, key); 19959: } 19959: Status SingleDelete(ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& ts) override; 19959: 19959: 19959: Status SingleDelete(ColumnFamilyHandle* column_family, 19959: const SliceParts& key) override; 19959: Status SingleDelete(const SliceParts& key) override { 19959: return SingleDelete(nullptr, key); 19959: } 19959: 19959: using WriteBatchBase::DeleteRange; 19959: 19959: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 19959: const Slice& end_key) override; 19959: Status DeleteRange(const Slice& begin_key, const Slice& end_key) override { 19959: return DeleteRange(nullptr, begin_key, end_key); 19959: } 19959: 19959: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 19959: const Slice& end_key, const Slice& ts) override; 19959: 19959: 19959: Status DeleteRange(ColumnFamilyHandle* column_family, 19959: const SliceParts& begin_key, 19959: const SliceParts& end_key) override; 19959: Status DeleteRange(const SliceParts& begin_key, 19959: const SliceParts& end_key) override { 19959: return DeleteRange(nullptr, begin_key, end_key); 19959: } 19959: 19959: using WriteBatchBase::Merge; 19959: 19959: 19959: Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& value) override; 19959: Status Merge(const Slice& key, const Slice& value) override { 19959: return Merge(nullptr, key, value); 19959: } 19959: Status Merge(ColumnFamilyHandle* , const Slice& , 19959: const Slice& , const Slice& ) override; 19959: 19959: 19959: Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 19959: const SliceParts& value) override; 19959: Status Merge(const SliceParts& key, const SliceParts& value) override { 19959: return Merge(nullptr, key, value); 19959: } 19959: 19959: using WriteBatchBase::PutLogData; 19959: # 211 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 19959: Status PutLogData(const Slice& blob) override; 19959: 19959: using WriteBatchBase::Clear; 19959: 19959: void Clear() override; 19959: 19959: 19959: 19959: void SetSavePoint() override; 19959: 19959: 19959: 19959: 19959: 19959: 19959: Status RollbackToSavePoint() override; 19959: 19959: 19959: 19959: 19959: 19959: Status PopSavePoint() override; 19959: 19959: 19959: 19959: class Handler { 19959: public: 19959: virtual ~Handler(); 19959: # 247 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 19959: virtual Status PutCF(uint32_t column_family_id, const Slice& key, 19959: const Slice& value) { 19959: if (column_family_id == 0) { 19959: 19959: 19959: 19959: Put(key, value); 19959: return Status::OK(); 19959: } 19959: return Status::InvalidArgument( 19959: "non-default column family and PutCF not implemented"); 19959: } 19959: 19959: virtual void Put(const Slice& , const Slice& ) {} 19959: 19959: 19959: virtual Status PutEntityCF(uint32_t , 19959: const Slice& , 19959: const Slice& ) { 19959: return Status::NotSupported("PutEntityCF not implemented"); 19959: } 19959: 19959: 19959: virtual Status DeleteCF(uint32_t column_family_id, const Slice& key) { 19959: if (column_family_id == 0) { 19959: Delete(key); 19959: return Status::OK(); 19959: } 19959: return Status::InvalidArgument( 19959: "non-default column family and DeleteCF not implemented"); 19959: } 19959: 19959: virtual void Delete(const Slice& ) {} 19959: 19959: 19959: virtual Status SingleDeleteCF(uint32_t column_family_id, const Slice& key) { 19959: if (column_family_id == 0) { 19959: SingleDelete(key); 19959: return Status::OK(); 19959: } 19959: return Status::InvalidArgument( 19959: "non-default column family and SingleDeleteCF not implemented"); 19959: } 19959: 19959: virtual void SingleDelete(const Slice& ) {} 19959: 19959: 19959: 19959: virtual Status DeleteRangeCF(uint32_t , 19959: const Slice& , 19959: const Slice& ) { 19959: return Status::InvalidArgument("DeleteRangeCF not implemented"); 19959: } 19959: 19959: 19959: virtual Status MergeCF(uint32_t column_family_id, const Slice& key, 19959: const Slice& value) { 19959: if (column_family_id == 0) { 19959: Merge(key, value); 19959: return Status::OK(); 19959: } 19959: return Status::InvalidArgument( 19959: "non-default column family and MergeCF not implemented"); 19959: } 19959: 19959: virtual void Merge(const Slice& , const Slice& ) {} 19959: 19959: 19959: virtual Status PutBlobIndexCF(uint32_t , 19959: const Slice& , 19959: const Slice& ) { 19959: return Status::InvalidArgument("PutBlobIndexCF not implemented"); 19959: } 19959: 19959: 19959: virtual void LogData(const Slice& blob); 19959: 19959: virtual Status MarkBeginPrepare(bool = false) { 19959: return Status::InvalidArgument("MarkBeginPrepare() handler not defined."); 19959: } 19959: 19959: virtual Status MarkEndPrepare(const Slice& ) { 19959: return Status::InvalidArgument("MarkEndPrepare() handler not defined."); 19959: } 19959: 19959: virtual Status MarkNoop(bool ) { 19959: return Status::InvalidArgument("MarkNoop() handler not defined."); 19959: } 19959: 19959: virtual Status MarkRollback(const Slice& ) { 19959: return Status::InvalidArgument( 19959: "MarkRollbackPrepare() handler not defined."); 19959: } 19959: 19959: virtual Status MarkCommit(const Slice& ) { 19959: return Status::InvalidArgument("MarkCommit() handler not defined."); 19959: } 19959: 19959: virtual Status MarkCommitWithTimestamp(const Slice& , 19959: const Slice& ) { 19959: return Status::InvalidArgument( 19959: "MarkCommitWithTimestamp() handler not defined."); 19959: } 19959: 19959: 19959: 19959: 19959: virtual bool Continue(); 19959: 19959: protected: 19959: friend class WriteBatchInternal; 19959: enum class OptionState { 19959: kUnknown, 19959: kDisabled, 19959: kEnabled, 19959: }; 19959: virtual OptionState WriteAfterCommit() const { 19959: return OptionState::kUnknown; 19959: } 19959: virtual OptionState WriteBeforePrepare() const { 19959: return OptionState::kUnknown; 19959: } 19959: }; 19959: Status Iterate(Handler* handler) const; 19959: 19959: 19959: const std::string& Data() const { return rep_; } 19959: 19959: 19959: std::string Release(); 19959: 19959: 19959: size_t GetDataSize() const { return rep_.size(); } 19959: 19959: 19959: uint32_t Count() const; 19959: 19959: 19959: bool HasPut() const; 19959: 19959: 19959: bool HasPutEntity() const; 19959: 19959: 19959: bool HasDelete() const; 19959: 19959: 19959: bool HasSingleDelete() const; 19959: 19959: 19959: bool HasDeleteRange() const; 19959: 19959: 19959: bool HasMerge() const; 19959: 19959: 19959: bool HasBeginPrepare() const; 19959: 19959: 19959: bool HasEndPrepare() const; 19959: 19959: 19959: bool HasCommit() const; 19959: 19959: 19959: bool HasRollback() const; 19959: # 430 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 19959: Status UpdateTimestamps(const Slice& ts, 19959: std::function ts_sz_func); 19959: 19959: 19959: 19959: 19959: 19959: Status VerifyChecksum() const; 19959: 19959: using WriteBatchBase::GetWriteBatch; 19959: WriteBatch* GetWriteBatch() override { return this; } 19959: 19959: 19959: explicit WriteBatch(const std::string& rep); 19959: explicit WriteBatch(std::string&& rep); 19959: 19959: WriteBatch(const WriteBatch& src); 19959: WriteBatch(WriteBatch&& src) noexcept; 19959: WriteBatch& operator=(const WriteBatch& src); 19959: WriteBatch& operator=(WriteBatch&& src); 19959: 19959: 19959: 19959: void MarkWalTerminationPoint(); 19959: const SavePoint& GetWalTerminationPoint() const { return wal_term_point_; } 19959: 19959: void SetMaxBytes(size_t max_bytes) override { max_bytes_ = max_bytes; } 19959: 19959: struct ProtectionInfo; 19959: size_t GetProtectionBytesPerKey() const; 19959: 19959: private: 19959: friend class WriteBatchInternal; 19959: friend class LocalSavePoint; 19959: 19959: 19959: 19959: friend class WriteBatchWithIndex; 19959: std::unique_ptr save_points_; 19959: 19959: 19959: 19959: 19959: SavePoint wal_term_point_; 19959: 19959: 19959: 19959: 19959: 19959: bool is_latest_persistent_state_ = false; 19959: # 488 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 19959: bool needs_in_place_update_ts_ = false; 19959: 19959: 19959: 19959: bool has_key_with_ts_ = false; 19959: 19959: 19959: mutable std::atomic content_flags_; 19959: 19959: 19959: uint32_t ComputeContentFlags() const; 19959: 19959: 19959: size_t max_bytes_; 19959: 19959: std::unique_ptr prot_info_; 19959: 19959: size_t default_cf_ts_sz_ = 0; 19959: 19959: protected: 19959: std::string rep_; 19959: }; 19959: 19959: } 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/transaction_log.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: class LogFile; 19959: using VectorLogPtr = std::vector>; 19959: 19959: enum WalFileType { 19959: 19959: 19959: 19959: 19959: 19959: 19959: kArchivedLogFile = 0, 19959: 19959: 19959: kAliveLogFile = 1 19959: }; 19959: 19959: class LogFile { 19959: public: 19959: LogFile() {} 19959: virtual ~LogFile() {} 19959: 19959: 19959: 19959: 19959: virtual std::string PathName() const = 0; 19959: 19959: 19959: 19959: virtual uint64_t LogNumber() const = 0; 19959: 19959: 19959: virtual WalFileType Type() const = 0; 19959: 19959: 19959: virtual SequenceNumber StartSequence() const = 0; 19959: 19959: 19959: virtual uint64_t SizeFileBytes() const = 0; 19959: }; 19959: 19959: struct BatchResult { 19959: SequenceNumber sequence = 0; 19959: std::unique_ptr writeBatchPtr; 19959: 19959: 19959: 19959: 19959: BatchResult() {} 19959: 19959: ~BatchResult() {} 19959: 19959: BatchResult(const BatchResult&) = delete; 19959: 19959: BatchResult& operator=(const BatchResult&) = delete; 19959: 19959: BatchResult(BatchResult&& bResult) 19959: : sequence(std::move(bResult.sequence)), 19959: writeBatchPtr(std::move(bResult.writeBatchPtr)) {} 19959: 19959: BatchResult& operator=(BatchResult&& bResult) { 19959: sequence = std::move(bResult.sequence); 19959: writeBatchPtr = std::move(bResult.writeBatchPtr); 19959: return *this; 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: class TransactionLogIterator { 19959: public: 19959: TransactionLogIterator() {} 19959: virtual ~TransactionLogIterator() {} 19959: 19959: 19959: 19959: 19959: virtual bool Valid() = 0; 19959: 19959: 19959: 19959: virtual void Next() = 0; 19959: 19959: 19959: 19959: virtual Status status() = 0; 19959: 19959: 19959: 19959: 19959: virtual BatchResult GetBatch() = 0; 19959: 19959: 19959: struct ReadOptions { 19959: 19959: 19959: 19959: bool verify_checksums_; 19959: 19959: ReadOptions() : verify_checksums_(true) {} 19959: 19959: explicit ReadOptions(bool verify_checksums) 19959: : verify_checksums_(verify_checksums) {} 19959: }; 19959: }; 19959: } 19959: # 29 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 2 19959: # 44 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: namespace rocksdb { 19959: 19959: struct ColumnFamilyOptions; 19959: struct CompactionOptions; 19959: struct CompactRangeOptions; 19959: struct DBOptions; 19959: struct ExternalSstFileInfo; 19959: struct FlushOptions; 19959: struct Options; 19959: struct ReadOptions; 19959: struct TableProperties; 19959: struct WriteOptions; 19959: struct WaitForCompactOptions; 19959: class Env; 19959: class EventListener; 19959: class FileSystem; 19959: class Replayer; 19959: class StatsHistoryIterator; 19959: class TraceReader; 19959: class TraceWriter; 19959: class WriteBatch; 19959: 19959: extern const std::string kDefaultColumnFamilyName; 19959: extern const std::string kPersistentStatsColumnFamilyName; 19959: struct ColumnFamilyDescriptor { 19959: std::string name; 19959: ColumnFamilyOptions options; 19959: ColumnFamilyDescriptor() 19959: : name(kDefaultColumnFamilyName), options(ColumnFamilyOptions()) {} 19959: ColumnFamilyDescriptor(const std::string& _name, 19959: const ColumnFamilyOptions& _options) 19959: : name(_name), options(_options) {} 19959: }; 19959: 19959: class ColumnFamilyHandle { 19959: public: 19959: virtual ~ColumnFamilyHandle() {} 19959: 19959: virtual const std::string& GetName() const = 0; 19959: 19959: virtual uint32_t GetID() const = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status GetDescriptor(ColumnFamilyDescriptor* desc) = 0; 19959: 19959: 19959: virtual const Comparator* GetComparator() const = 0; 19959: }; 19959: 19959: static const int kMajorVersion = 8; 19959: static const int kMinorVersion = 9; 19959: 19959: 19959: struct Range { 19959: 19959: 19959: Slice start; 19959: Slice limit; 19959: 19959: Range() {} 19959: Range(const Slice& s, const Slice& l) : start(s), limit(l) {} 19959: }; 19959: 19959: struct RangePtr { 19959: 19959: 19959: const Slice* start; 19959: const Slice* limit; 19959: 19959: RangePtr() : start(nullptr), limit(nullptr) {} 19959: RangePtr(const Slice* s, const Slice* l) : start(s), limit(l) {} 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct IngestExternalFileArg { 19959: ColumnFamilyHandle* column_family = nullptr; 19959: std::vector external_files; 19959: IngestExternalFileOptions options; 19959: std::vector files_checksums; 19959: std::vector files_checksum_func_names; 19959: Temperature file_temperature = Temperature::kUnknown; 19959: }; 19959: 19959: struct GetMergeOperandsOptions { 19959: 19959: 19959: 19959: 19959: 19959: int expected_max_number_of_operands = 0; 19959: }; 19959: 19959: 19959: 19959: 19959: using TablePropertiesCollection = 19959: std::unordered_map>; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class DB { 19959: public: 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: static Status Open(const Options& options, const std::string& name, 19959: DB** dbptr); 19959: # 185 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: static Status Open(const DBOptions& db_options, const std::string& name, 19959: const std::vector& column_families, 19959: std::vector* handles, DB** dbptr); 19959: # 203 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: static Status OpenForReadOnly(const Options& options, const std::string& name, 19959: DB** dbptr, 19959: bool error_if_wal_file_exists = false); 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: static Status OpenForReadOnly( 19959: const DBOptions& db_options, const std::string& name, 19959: const std::vector& column_families, 19959: std::vector* handles, DB** dbptr, 19959: bool error_if_wal_file_exists = false); 19959: # 244 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: static Status OpenAsSecondary(const Options& options, const std::string& name, 19959: const std::string& secondary_path, DB** dbptr); 19959: # 279 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: static Status OpenAsSecondary( 19959: const DBOptions& db_options, const std::string& name, 19959: const std::string& secondary_path, 19959: const std::vector& column_families, 19959: std::vector* handles, DB** dbptr); 19959: 19959: 19959: 19959: 19959: 19959: 19959: static Status OpenAndCompact( 19959: const std::string& name, const std::string& output_directory, 19959: const std::string& input, std::string* output, 19959: const CompactionServiceOptionsOverride& override_options); 19959: 19959: static Status OpenAndCompact( 19959: const OpenAndCompactOptions& options, const std::string& name, 19959: const std::string& output_directory, const std::string& input, 19959: std::string* output, 19959: const CompactionServiceOptionsOverride& override_options); 19959: # 308 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: static Status OpenAndTrimHistory( 19959: const DBOptions& db_options, const std::string& dbname, 19959: const std::vector& column_families, 19959: std::vector* handles, DB** dbptr, 19959: std::string trim_ts); 19959: # 326 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status Resume() { return Status::NotSupported(); } 19959: # 345 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status Close() { return Status::NotSupported(); } 19959: 19959: 19959: 19959: 19959: 19959: static Status ListColumnFamilies(const DBOptions& db_options, 19959: const std::string& name, 19959: std::vector* column_families); 19959: 19959: 19959: DB() {} 19959: 19959: DB(const DB&) = delete; 19959: void operator=(const DB&) = delete; 19959: 19959: virtual ~DB(); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status CreateColumnFamily(const ColumnFamilyOptions& options, 19959: const std::string& column_family_name, 19959: ColumnFamilyHandle** handle); 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status CreateColumnFamilies( 19959: const ColumnFamilyOptions& options, 19959: const std::vector& column_family_names, 19959: std::vector* handles); 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status CreateColumnFamilies( 19959: const std::vector& column_families, 19959: std::vector* handles); 19959: 19959: 19959: 19959: 19959: virtual Status DropColumnFamily(ColumnFamilyHandle* column_family); 19959: 19959: 19959: 19959: 19959: 19959: virtual Status DropColumnFamilies( 19959: const std::vector& column_families); 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status DestroyColumnFamilyHandle(ColumnFamilyHandle* column_family); 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Put(const WriteOptions& options, 19959: ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& value) = 0; 19959: virtual Status Put(const WriteOptions& options, 19959: ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& ts, const Slice& value) = 0; 19959: virtual Status Put(const WriteOptions& options, const Slice& key, 19959: const Slice& value) { 19959: return Put(options, DefaultColumnFamily(), key, value); 19959: } 19959: virtual Status Put(const WriteOptions& options, const Slice& key, 19959: const Slice& ts, const Slice& value) { 19959: return Put(options, DefaultColumnFamily(), key, ts, value); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status PutEntity(const WriteOptions& options, 19959: ColumnFamilyHandle* column_family, const Slice& key, 19959: const WideColumns& columns); 19959: 19959: 19959: virtual Status PutEntity(const WriteOptions& options, const Slice& key, 19959: const AttributeGroups& attribute_groups); 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Delete(const WriteOptions& options, 19959: ColumnFamilyHandle* column_family, 19959: const Slice& key) = 0; 19959: virtual Status Delete(const WriteOptions& options, 19959: ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& ts) = 0; 19959: virtual Status Delete(const WriteOptions& options, const Slice& key) { 19959: return Delete(options, DefaultColumnFamily(), key); 19959: } 19959: virtual Status Delete(const WriteOptions& options, const Slice& key, 19959: const Slice& ts) { 19959: return Delete(options, DefaultColumnFamily(), key, ts); 19959: } 19959: # 477 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status SingleDelete(const WriteOptions& options, 19959: ColumnFamilyHandle* column_family, 19959: const Slice& key) = 0; 19959: virtual Status SingleDelete(const WriteOptions& options, 19959: ColumnFamilyHandle* column_family, 19959: const Slice& key, const Slice& ts) = 0; 19959: virtual Status SingleDelete(const WriteOptions& options, const Slice& key) { 19959: return SingleDelete(options, DefaultColumnFamily(), key); 19959: } 19959: virtual Status SingleDelete(const WriteOptions& options, const Slice& key, 19959: const Slice& ts) { 19959: return SingleDelete(options, DefaultColumnFamily(), key, ts); 19959: } 19959: # 505 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status DeleteRange(const WriteOptions& options, 19959: ColumnFamilyHandle* column_family, 19959: const Slice& begin_key, const Slice& end_key); 19959: virtual Status DeleteRange(const WriteOptions& options, 19959: ColumnFamilyHandle* column_family, 19959: const Slice& begin_key, const Slice& end_key, 19959: const Slice& ts); 19959: virtual Status DeleteRange(const WriteOptions& options, 19959: const Slice& begin_key, const Slice& end_key) { 19959: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key); 19959: } 19959: virtual Status DeleteRange(const WriteOptions& options, 19959: const Slice& begin_key, const Slice& end_key, 19959: const Slice& ts) { 19959: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key, ts); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Merge(const WriteOptions& options, 19959: ColumnFamilyHandle* column_family, const Slice& key, 19959: const Slice& value) = 0; 19959: virtual Status Merge(const WriteOptions& options, const Slice& key, 19959: const Slice& value) { 19959: return Merge(options, DefaultColumnFamily(), key, value); 19959: } 19959: virtual Status Merge(const WriteOptions& , 19959: ColumnFamilyHandle* , 19959: const Slice& , const Slice& , 19959: const Slice& ); 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status Write(const WriteOptions& options, WriteBatch* updates) = 0; 19959: # 556 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual inline Status Get(const ReadOptions& options, 19959: ColumnFamilyHandle* column_family, const Slice& key, 19959: std::string* value) { 19959: 19959: # 559 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 19959: (static_cast ( 19959: # 559 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: value != nullptr 19959: # 559 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 559 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: "value != nullptr" 19959: # 559 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 19959: , "./include/rocksdb/db.h", 559, __extension__ __PRETTY_FUNCTION__)) 19959: # 559 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: ; 19959: PinnableSlice pinnable_val(value); 19959: 19959: # 561 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 19959: (static_cast ( 19959: # 561 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: !pinnable_val.IsPinned() 19959: # 561 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 561 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: "!pinnable_val.IsPinned()" 19959: # 561 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 19959: , "./include/rocksdb/db.h", 561, __extension__ __PRETTY_FUNCTION__)) 19959: # 561 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: ; 19959: auto s = Get(options, column_family, key, &pinnable_val); 19959: if (s.ok() && pinnable_val.IsPinned()) { 19959: value->assign(pinnable_val.data(), pinnable_val.size()); 19959: } 19959: return s; 19959: } 19959: virtual Status Get(const ReadOptions& options, 19959: ColumnFamilyHandle* column_family, const Slice& key, 19959: PinnableSlice* value) = 0; 19959: virtual Status Get(const ReadOptions& options, const Slice& key, 19959: std::string* value) { 19959: return Get(options, DefaultColumnFamily(), key, value); 19959: } 19959: 19959: 19959: 19959: virtual inline Status Get(const ReadOptions& options, 19959: ColumnFamilyHandle* column_family, const Slice& key, 19959: std::string* value, std::string* timestamp) { 19959: 19959: # 581 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 19959: (static_cast ( 19959: # 581 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: value != nullptr 19959: # 581 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 581 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: "value != nullptr" 19959: # 581 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 19959: , "./include/rocksdb/db.h", 581, __extension__ __PRETTY_FUNCTION__)) 19959: # 581 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: ; 19959: PinnableSlice pinnable_val(value); 19959: 19959: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 19959: (static_cast ( 19959: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: !pinnable_val.IsPinned() 19959: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: "!pinnable_val.IsPinned()" 19959: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 19959: , "./include/rocksdb/db.h", 583, __extension__ __PRETTY_FUNCTION__)) 19959: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: ; 19959: auto s = Get(options, column_family, key, &pinnable_val, timestamp); 19959: if (s.ok() && pinnable_val.IsPinned()) { 19959: value->assign(pinnable_val.data(), pinnable_val.size()); 19959: } 19959: return s; 19959: } 19959: virtual Status Get(const ReadOptions& , 19959: ColumnFamilyHandle* , 19959: const Slice& , PinnableSlice* , 19959: std::string* ) { 19959: return Status::NotSupported( 19959: "Get() that returns timestamp is not implemented."); 19959: } 19959: virtual Status Get(const ReadOptions& options, const Slice& key, 19959: std::string* value, std::string* timestamp) { 19959: return Get(options, DefaultColumnFamily(), key, value, timestamp); 19959: } 19959: # 611 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status GetEntity(const ReadOptions& , 19959: ColumnFamilyHandle* , 19959: const Slice& , 19959: PinnableWideColumns* ) { 19959: return Status::NotSupported("GetEntity not supported"); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual Status GetEntity(const ReadOptions& , 19959: const Slice& , 19959: PinnableAttributeGroups* ) { 19959: return Status::NotSupported("GetEntity not supported"); 19959: } 19959: # 646 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status GetMergeOperands( 19959: const ReadOptions& options, ColumnFamilyHandle* column_family, 19959: const Slice& key, PinnableSlice* merge_operands, 19959: GetMergeOperandsOptions* get_merge_operands_options, 19959: int* number_of_operands) = 0; 19959: # 667 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual std::vector MultiGet( 19959: const ReadOptions& options, 19959: const std::vector& column_family, 19959: const std::vector& keys, std::vector* values) = 0; 19959: virtual std::vector MultiGet(const ReadOptions& options, 19959: const std::vector& keys, 19959: std::vector* values) { 19959: return MultiGet( 19959: options, 19959: std::vector(keys.size(), DefaultColumnFamily()), 19959: keys, values); 19959: } 19959: 19959: virtual std::vector MultiGet( 19959: const ReadOptions& , 19959: const std::vector& , 19959: const std::vector& keys, std::vector* , 19959: std::vector* ) { 19959: return std::vector( 19959: keys.size(), Status::NotSupported( 19959: "MultiGet() returning timestamps not implemented.")); 19959: } 19959: virtual std::vector MultiGet(const ReadOptions& options, 19959: const std::vector& keys, 19959: std::vector* values, 19959: std::vector* timestamps) { 19959: return MultiGet( 19959: options, 19959: std::vector(keys.size(), DefaultColumnFamily()), 19959: keys, values, timestamps); 19959: } 19959: # 718 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual void MultiGet(const ReadOptions& options, 19959: ColumnFamilyHandle* column_family, 19959: const size_t num_keys, const Slice* keys, 19959: PinnableSlice* values, Status* statuses, 19959: const bool = false) { 19959: std::vector cf; 19959: std::vector user_keys; 19959: std::vector status; 19959: std::vector vals; 19959: 19959: for (size_t i = 0; i < num_keys; ++i) { 19959: cf.emplace_back(column_family); 19959: user_keys.emplace_back(keys[i]); 19959: } 19959: status = MultiGet(options, cf, user_keys, &vals); 19959: std::copy(status.begin(), status.end(), statuses); 19959: for (auto& value : vals) { 19959: values->PinSelf(value); 19959: values++; 19959: } 19959: } 19959: 19959: virtual void MultiGet(const ReadOptions& options, 19959: ColumnFamilyHandle* column_family, 19959: const size_t num_keys, const Slice* keys, 19959: PinnableSlice* values, std::string* timestamps, 19959: Status* statuses, const bool = false) { 19959: std::vector cf; 19959: std::vector user_keys; 19959: std::vector status; 19959: std::vector vals; 19959: std::vector tss; 19959: 19959: for (size_t i = 0; i < num_keys; ++i) { 19959: cf.emplace_back(column_family); 19959: user_keys.emplace_back(keys[i]); 19959: } 19959: status = MultiGet(options, cf, user_keys, &vals, &tss); 19959: std::copy(status.begin(), status.end(), statuses); 19959: std::copy(tss.begin(), tss.end(), timestamps); 19959: for (auto& value : vals) { 19959: values->PinSelf(value); 19959: values++; 19959: } 19959: } 19959: # 783 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 19959: ColumnFamilyHandle** column_families, const Slice* keys, 19959: PinnableSlice* values, Status* statuses, 19959: const bool = false) { 19959: std::vector cf; 19959: std::vector user_keys; 19959: std::vector status; 19959: std::vector vals; 19959: 19959: for (size_t i = 0; i < num_keys; ++i) { 19959: cf.emplace_back(column_families[i]); 19959: user_keys.emplace_back(keys[i]); 19959: } 19959: status = MultiGet(options, cf, user_keys, &vals); 19959: std::copy(status.begin(), status.end(), statuses); 19959: for (auto& value : vals) { 19959: values->PinSelf(value); 19959: values++; 19959: } 19959: } 19959: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 19959: ColumnFamilyHandle** column_families, const Slice* keys, 19959: PinnableSlice* values, std::string* timestamps, 19959: Status* statuses, const bool = false) { 19959: std::vector cf; 19959: std::vector user_keys; 19959: std::vector status; 19959: std::vector vals; 19959: std::vector tss; 19959: 19959: for (size_t i = 0; i < num_keys; ++i) { 19959: cf.emplace_back(column_families[i]); 19959: user_keys.emplace_back(keys[i]); 19959: } 19959: status = MultiGet(options, cf, user_keys, &vals, &tss); 19959: std::copy(status.begin(), status.end(), statuses); 19959: std::copy(tss.begin(), tss.end(), timestamps); 19959: for (auto& value : vals) { 19959: values->PinSelf(value); 19959: values++; 19959: } 19959: } 19959: # 845 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual void MultiGetEntity(const ReadOptions& , 19959: ColumnFamilyHandle* , 19959: size_t num_keys, const Slice* , 19959: PinnableWideColumns* , 19959: Status* statuses, 19959: bool = false) { 19959: for (size_t i = 0; i < num_keys; ++i) { 19959: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 19959: } 19959: } 19959: # 877 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 19959: ColumnFamilyHandle** , 19959: const Slice* , 19959: PinnableWideColumns* , 19959: Status* statuses, 19959: bool = false) { 19959: for (size_t i = 0; i < num_keys; ++i) { 19959: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 19959: } 19959: } 19959: # 905 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 19959: const Slice* , 19959: PinnableAttributeGroups* results) { 19959: for (size_t i = 0; i < num_keys; ++i) { 19959: for (size_t j = 0; j < results[i].size(); ++j) { 19959: results[i][j].SetStatus( 19959: Status::NotSupported("MultiGetEntity not supported")); 19959: } 19959: } 19959: } 19959: # 923 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual bool KeyMayExist(const ReadOptions& , 19959: ColumnFamilyHandle* , 19959: const Slice& , std::string* , 19959: std::string* , 19959: bool* value_found = nullptr) { 19959: if (value_found != nullptr) { 19959: *value_found = false; 19959: } 19959: return true; 19959: } 19959: 19959: virtual bool KeyMayExist(const ReadOptions& options, 19959: ColumnFamilyHandle* column_family, const Slice& key, 19959: std::string* value, bool* value_found = nullptr) { 19959: return KeyMayExist(options, column_family, key, value, 19959: nullptr, value_found); 19959: } 19959: 19959: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 19959: std::string* value, bool* value_found = nullptr) { 19959: return KeyMayExist(options, DefaultColumnFamily(), key, value, value_found); 19959: } 19959: 19959: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 19959: std::string* value, std::string* timestamp, 19959: bool* value_found = nullptr) { 19959: return KeyMayExist(options, DefaultColumnFamily(), key, value, timestamp, 19959: value_found); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Iterator* NewIterator(const ReadOptions& options, 19959: ColumnFamilyHandle* column_family) = 0; 19959: virtual Iterator* NewIterator(const ReadOptions& options) { 19959: return NewIterator(options, DefaultColumnFamily()); 19959: } 19959: 19959: 19959: 19959: virtual Status NewIterators( 19959: const ReadOptions& options, 19959: const std::vector& column_families, 19959: std::vector* iterators) = 0; 19959: # 979 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual const Snapshot* GetSnapshot() = 0; 19959: 19959: 19959: 19959: virtual void ReleaseSnapshot(const Snapshot* snapshot) = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: struct Properties { 19959: 19959: 19959: 19959: static const std::string kNumFilesAtLevelPrefix; 19959: 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kCompressionRatioAtLevelPrefix; 19959: 19959: 19959: 19959: static const std::string kStats; 19959: 19959: 19959: 19959: static const std::string kSSTables; 19959: 19959: 19959: 19959: static const std::string kCFStats; 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kCFStatsNoFileHistogram; 19959: 19959: 19959: 19959: static const std::string kCFFileHistogram; 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kCFWriteStallStats; 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kDBWriteStallStats; 19959: 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kDBStats; 19959: 19959: 19959: 19959: static const std::string kLevelStats; 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kBlockCacheEntryStats; 19959: 19959: 19959: 19959: static const std::string kFastBlockCacheEntryStats; 19959: 19959: 19959: 19959: static const std::string kNumImmutableMemTable; 19959: 19959: 19959: 19959: static const std::string kNumImmutableMemTableFlushed; 19959: 19959: 19959: 19959: static const std::string kMemTableFlushPending; 19959: 19959: 19959: 19959: static const std::string kNumRunningFlushes; 19959: 19959: 19959: 19959: static const std::string kCompactionPending; 19959: 19959: 19959: 19959: static const std::string kNumRunningCompactions; 19959: 19959: 19959: 19959: static const std::string kBackgroundErrors; 19959: 19959: 19959: 19959: static const std::string kCurSizeActiveMemTable; 19959: 19959: 19959: 19959: static const std::string kCurSizeAllMemTables; 19959: 19959: 19959: 19959: static const std::string kSizeAllMemTables; 19959: 19959: 19959: 19959: static const std::string kNumEntriesActiveMemTable; 19959: 19959: 19959: 19959: static const std::string kNumEntriesImmMemTables; 19959: 19959: 19959: 19959: static const std::string kNumDeletesActiveMemTable; 19959: 19959: 19959: 19959: static const std::string kNumDeletesImmMemTables; 19959: 19959: 19959: 19959: static const std::string kEstimateNumKeys; 19959: 19959: 19959: 19959: 19959: static const std::string kEstimateTableReadersMem; 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kIsFileDeletionsEnabled; 19959: 19959: 19959: 19959: static const std::string kNumSnapshots; 19959: 19959: 19959: 19959: static const std::string kOldestSnapshotTime; 19959: 19959: 19959: 19959: static const std::string kOldestSnapshotSequence; 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kNumLiveVersions; 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kCurrentSuperVersionNumber; 19959: 19959: 19959: 19959: 19959: static const std::string kEstimateLiveDataSize; 19959: 19959: 19959: 19959: static const std::string kMinLogNumberToKeep; 19959: 19959: 19959: 19959: 19959: static const std::string kMinObsoleteSstNumberToKeep; 19959: 19959: 19959: 19959: 19959: static const std::string kTotalSstFilesSize; 19959: 19959: 19959: 19959: static const std::string kLiveSstFilesSize; 19959: # 1184 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: static const std::string kObsoleteSstFilesSize; 19959: 19959: 19959: 19959: static const std::string kLiveSstFilesSizeAtTemperature; 19959: 19959: 19959: 19959: static const std::string kBaseLevel; 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kEstimatePendingCompactionBytes; 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kAggregatedTableProperties; 19959: 19959: 19959: 19959: 19959: static const std::string kAggregatedTablePropertiesAtLevel; 19959: 19959: 19959: 19959: static const std::string kActualDelayedWriteRate; 19959: 19959: 19959: static const std::string kIsWriteStopped; 19959: 19959: 19959: 19959: 19959: 19959: static const std::string kEstimateOldestKeyTime; 19959: 19959: 19959: static const std::string kBlockCacheCapacity; 19959: 19959: 19959: 19959: static const std::string kBlockCacheUsage; 19959: 19959: 19959: 19959: static const std::string kBlockCachePinnedUsage; 19959: 19959: 19959: 19959: static const std::string kOptionsStatistics; 19959: 19959: 19959: 19959: static const std::string kNumBlobFiles; 19959: 19959: 19959: 19959: 19959: static const std::string kBlobStats; 19959: 19959: 19959: 19959: static const std::string kTotalBlobFileSize; 19959: 19959: 19959: 19959: static const std::string kLiveBlobFileSize; 19959: 19959: 19959: 19959: static const std::string kLiveBlobFileGarbageSize; 19959: 19959: 19959: static const std::string kBlobCacheCapacity; 19959: 19959: 19959: 19959: static const std::string kBlobCacheUsage; 19959: 19959: 19959: 19959: static const std::string kBlobCachePinnedUsage; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual bool GetProperty(ColumnFamilyHandle* column_family, 19959: const Slice& property, std::string* value) = 0; 19959: virtual bool GetProperty(const Slice& property, std::string* value) { 19959: return GetProperty(DefaultColumnFamily(), property, value); 19959: } 19959: 19959: 19959: 19959: virtual bool GetMapProperty(ColumnFamilyHandle* column_family, 19959: const Slice& property, 19959: std::map* value) = 0; 19959: virtual bool GetMapProperty(const Slice& property, 19959: std::map* value) { 19959: return GetMapProperty(DefaultColumnFamily(), property, value); 19959: } 19959: # 1338 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual bool GetIntProperty(ColumnFamilyHandle* column_family, 19959: const Slice& property, uint64_t* value) = 0; 19959: virtual bool GetIntProperty(const Slice& property, uint64_t* value) { 19959: return GetIntProperty(DefaultColumnFamily(), property, value); 19959: } 19959: 19959: 19959: 19959: 19959: virtual Status ResetStats() { 19959: return Status::NotSupported("Not implemented"); 19959: } 19959: 19959: 19959: 19959: virtual bool GetAggregatedIntProperty(const Slice& property, 19959: uint64_t* value) = 0; 19959: 19959: 19959: 19959: enum class SizeApproximationFlags : uint8_t { 19959: NONE = 0, 19959: INCLUDE_MEMTABLES = 1 << 0, 19959: INCLUDE_FILES = 1 << 1 19959: }; 19959: # 1371 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status GetApproximateSizes(const SizeApproximationOptions& options, 19959: ColumnFamilyHandle* column_family, 19959: const Range* ranges, int n, 19959: uint64_t* sizes) = 0; 19959: 19959: 19959: 19959: 19959: virtual Status GetApproximateSizes(ColumnFamilyHandle* column_family, 19959: const Range* ranges, int n, 19959: uint64_t* sizes, 19959: SizeApproximationFlags include_flags = 19959: SizeApproximationFlags::INCLUDE_FILES); 19959: 19959: virtual Status GetApproximateSizes( 19959: const Range* ranges, int n, uint64_t* sizes, 19959: SizeApproximationFlags include_flags = 19959: SizeApproximationFlags::INCLUDE_FILES) { 19959: return GetApproximateSizes(DefaultColumnFamily(), ranges, n, sizes, 19959: include_flags); 19959: } 19959: 19959: 19959: 19959: virtual void GetApproximateMemTableStats(ColumnFamilyHandle* column_family, 19959: const Range& range, 19959: uint64_t* const count, 19959: uint64_t* const size) = 0; 19959: virtual void GetApproximateMemTableStats(const Range& range, 19959: uint64_t* const count, 19959: uint64_t* const size) { 19959: GetApproximateMemTableStats(DefaultColumnFamily(), range, count, size); 19959: } 19959: # 1427 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status CompactRange(const CompactRangeOptions& options, 19959: ColumnFamilyHandle* column_family, 19959: const Slice* begin, const Slice* end) = 0; 19959: virtual Status CompactRange(const CompactRangeOptions& options, 19959: const Slice* begin, const Slice* end) { 19959: return CompactRange(options, DefaultColumnFamily(), begin, end); 19959: } 19959: # 1453 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status SetOptions( 19959: ColumnFamilyHandle* , 19959: const std::unordered_map& ) { 19959: return Status::NotSupported("Not implemented"); 19959: } 19959: 19959: virtual Status SetOptions( 19959: const std::unordered_map& new_options) { 19959: return SetOptions(DefaultColumnFamily(), new_options); 19959: } 19959: # 1473 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status SetDBOptions( 19959: const std::unordered_map& new_options) = 0; 19959: # 1483 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status CompactFiles( 19959: const CompactionOptions& compact_options, 19959: ColumnFamilyHandle* column_family, 19959: const std::vector& input_file_names, const int output_level, 19959: const int output_path_id = -1, 19959: std::vector* const output_file_names = nullptr, 19959: CompactionJobInfo* compaction_job_info = nullptr) = 0; 19959: 19959: virtual Status CompactFiles( 19959: const CompactionOptions& compact_options, 19959: const std::vector& input_file_names, const int output_level, 19959: const int output_path_id = -1, 19959: std::vector* const output_file_names = nullptr, 19959: CompactionJobInfo* compaction_job_info = nullptr) { 19959: return CompactFiles(compact_options, DefaultColumnFamily(), 19959: input_file_names, output_level, output_path_id, 19959: output_file_names, compaction_job_info); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: virtual Status PauseBackgroundWork() = 0; 19959: virtual Status ContinueBackgroundWork() = 0; 19959: # 1518 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status EnableAutoCompaction( 19959: const std::vector& column_family_handles) = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual void DisableManualCompaction() = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual void EnableManualCompaction() = 0; 19959: # 1542 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status WaitForCompact( 19959: const WaitForCompactOptions& ) = 0; 19959: 19959: 19959: virtual int NumberLevels(ColumnFamilyHandle* column_family) = 0; 19959: virtual int NumberLevels() { return NumberLevels(DefaultColumnFamily()); } 19959: 19959: 19959: 19959: virtual int MaxMemCompactionLevel(ColumnFamilyHandle* column_family) = 0; 19959: virtual int MaxMemCompactionLevel() { 19959: return MaxMemCompactionLevel(DefaultColumnFamily()); 19959: } 19959: 19959: 19959: virtual int Level0StopWriteTrigger(ColumnFamilyHandle* column_family) = 0; 19959: virtual int Level0StopWriteTrigger() { 19959: return Level0StopWriteTrigger(DefaultColumnFamily()); 19959: } 19959: 19959: 19959: 19959: virtual const std::string& GetName() const = 0; 19959: 19959: 19959: virtual Env* GetEnv() const = 0; 19959: 19959: 19959: 19959: virtual FileSystem* GetFileSystem() const; 19959: 19959: 19959: 19959: 19959: 19959: virtual Options GetOptions(ColumnFamilyHandle* column_family) const = 0; 19959: virtual Options GetOptions() const { 19959: return GetOptions(DefaultColumnFamily()); 19959: } 19959: 19959: virtual DBOptions GetDBOptions() const = 0; 19959: 19959: 19959: 19959: 19959: virtual Status Flush(const FlushOptions& options, 19959: ColumnFamilyHandle* column_family) = 0; 19959: virtual Status Flush(const FlushOptions& options) { 19959: return Flush(options, DefaultColumnFamily()); 19959: } 19959: # 1600 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status Flush( 19959: const FlushOptions& options, 19959: const std::vector& column_families) = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual Status FlushWAL(bool ) { 19959: return Status::NotSupported("FlushWAL not implemented"); 19959: } 19959: # 1621 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status SyncWAL() = 0; 19959: # 1632 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status LockWAL() { 19959: return Status::NotSupported("LockWAL not implemented"); 19959: } 19959: 19959: 19959: 19959: 19959: virtual Status UnlockWAL() { 19959: return Status::NotSupported("UnlockWAL not implemented"); 19959: } 19959: 19959: 19959: virtual SequenceNumber GetLatestSequenceNumber() const = 0; 19959: 19959: 19959: 19959: 19959: virtual Status DisableFileDeletions() = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual Status IncreaseFullHistoryTsLow(ColumnFamilyHandle* column_family, 19959: std::string ts_low) = 0; 19959: 19959: 19959: virtual Status GetFullHistoryTsLow(ColumnFamilyHandle* column_family, 19959: std::string* ts_low) = 0; 19959: # 1681 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status EnableFileDeletions(bool force) = 0; 19959: # 1693 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status GetCreationTimeOfOldestFile(uint64_t* creation_time) = 0; 19959: # 1707 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status GetUpdatesSince( 19959: SequenceNumber seq_number, std::unique_ptr* iter, 19959: const TransactionLogIterator::ReadOptions& read_options = 19959: TransactionLogIterator::ReadOptions()) = 0; 19959: # 1725 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status DeleteFile(std::string name) = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual void GetLiveFilesMetaData( 19959: std::vector* ) {} 19959: 19959: 19959: 19959: 19959: 19959: virtual Status GetLiveFilesChecksumInfo(FileChecksumList* checksum_list) = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status GetLiveFilesStorageInfo( 19959: const LiveFilesStorageInfoOptions& opts, 19959: std::vector* files) = 0; 19959: 19959: 19959: 19959: virtual void GetColumnFamilyMetaData(ColumnFamilyHandle* , 19959: ColumnFamilyMetaData* ) {} 19959: 19959: 19959: void GetColumnFamilyMetaData(ColumnFamilyMetaData* metadata) { 19959: GetColumnFamilyMetaData(DefaultColumnFamily(), metadata); 19959: } 19959: 19959: 19959: 19959: virtual void GetAllColumnFamilyMetaData( 19959: std::vector* ) {} 19959: # 1780 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status GetLiveFiles(std::vector&, 19959: uint64_t* manifest_file_size, 19959: bool flush_memtable = true) = 0; 19959: 19959: 19959: virtual Status GetSortedWalFiles(VectorLogPtr& files) = 0; 19959: # 1794 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status GetCurrentWalFile( 19959: std::unique_ptr* current_log_file) = 0; 19959: # 1819 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status IngestExternalFile( 19959: ColumnFamilyHandle* column_family, 19959: const std::vector& external_files, 19959: const IngestExternalFileOptions& options) = 0; 19959: 19959: virtual Status IngestExternalFile( 19959: const std::vector& external_files, 19959: const IngestExternalFileOptions& options) { 19959: return IngestExternalFile(DefaultColumnFamily(), external_files, options); 19959: } 19959: # 1845 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status IngestExternalFiles( 19959: const std::vector& args) = 0; 19959: # 1865 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status CreateColumnFamilyWithImport( 19959: const ColumnFamilyOptions& options, const std::string& column_family_name, 19959: const ImportColumnFamilyOptions& import_options, 19959: const ExportImportFilesMetaData& metadata, ColumnFamilyHandle** handle) { 19959: const std::vector& metadatas{&metadata}; 19959: return CreateColumnFamilyWithImport(options, column_family_name, 19959: import_options, metadatas, handle); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status CreateColumnFamilyWithImport( 19959: const ColumnFamilyOptions& options, const std::string& column_family_name, 19959: const ImportColumnFamilyOptions& import_options, 19959: const std::vector& metadatas, 19959: ColumnFamilyHandle** handle) = 0; 19959: # 1898 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status ClipColumnFamily(ColumnFamilyHandle* column_family, 19959: const Slice& begin_key, 19959: const Slice& end_key) = 0; 19959: 19959: 19959: 19959: virtual Status VerifyFileChecksums(const ReadOptions& ) { 19959: return Status::NotSupported("File verification not supported"); 19959: } 19959: 19959: 19959: 19959: virtual Status VerifyChecksum(const ReadOptions& read_options) = 0; 19959: 19959: virtual Status VerifyChecksum() { return VerifyChecksum(ReadOptions()); } 19959: 19959: 19959: 19959: 19959: virtual Status GetDbIdentity(std::string& identity) const = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual Status GetDbSessionId(std::string& session_id) const = 0; 19959: 19959: 19959: virtual ColumnFamilyHandle* DefaultColumnFamily() const = 0; 19959: 19959: virtual Status GetPropertiesOfAllTables(ColumnFamilyHandle* column_family, 19959: TablePropertiesCollection* props) = 0; 19959: virtual Status GetPropertiesOfAllTables(TablePropertiesCollection* props) { 19959: return GetPropertiesOfAllTables(DefaultColumnFamily(), props); 19959: } 19959: virtual Status GetPropertiesOfTablesInRange( 19959: ColumnFamilyHandle* column_family, const Range* range, std::size_t n, 19959: TablePropertiesCollection* props) = 0; 19959: 19959: virtual Status SuggestCompactRange(ColumnFamilyHandle* , 19959: const Slice* , 19959: const Slice* ) { 19959: return Status::NotSupported("SuggestCompactRange() is not implemented."); 19959: } 19959: 19959: virtual Status PromoteL0(ColumnFamilyHandle* , 19959: int ) { 19959: return Status::NotSupported("PromoteL0() is not implemented."); 19959: } 19959: 19959: 19959: virtual Status StartTrace(const TraceOptions& , 19959: std::unique_ptr&& ) { 19959: return Status::NotSupported("StartTrace() is not implemented."); 19959: } 19959: 19959: virtual Status EndTrace() { 19959: return Status::NotSupported("EndTrace() is not implemented."); 19959: } 19959: 19959: 19959: virtual Status StartIOTrace(const TraceOptions& , 19959: std::unique_ptr&& ) { 19959: return Status::NotSupported("StartIOTrace() is not implemented."); 19959: } 19959: 19959: virtual Status EndIOTrace() { 19959: return Status::NotSupported("EndIOTrace() is not implemented."); 19959: } 19959: 19959: 19959: virtual Status StartBlockCacheTrace( 19959: const TraceOptions& , 19959: std::unique_ptr&& ) { 19959: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 19959: } 19959: 19959: virtual Status StartBlockCacheTrace( 19959: const BlockCacheTraceOptions& , 19959: std::unique_ptr&& ) { 19959: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 19959: } 19959: 19959: virtual Status EndBlockCacheTrace() { 19959: return Status::NotSupported("EndBlockCacheTrace() is not implemented."); 19959: } 19959: 19959: 19959: virtual Status NewDefaultReplayer( 19959: const std::vector& , 19959: std::unique_ptr&& , 19959: std::unique_ptr* ) { 19959: return Status::NotSupported("NewDefaultReplayer() is not implemented."); 19959: } 19959: 19959: 19959: virtual DB* GetRootDB() { return this; } 19959: 19959: 19959: 19959: 19959: virtual Status GetStatsHistory( 19959: uint64_t , uint64_t , 19959: std::unique_ptr* ) { 19959: return Status::NotSupported("GetStatsHistory() is not implemented."); 19959: } 19959: # 2016 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: virtual Status TryCatchUpWithPrimary() { 19959: return Status::NotSupported("Supported only by secondary instance"); 19959: } 19959: }; 19959: 19959: struct WriteStallStatsMapKeys { 19959: static const std::string& TotalStops(); 19959: static const std::string& TotalDelays(); 19959: 19959: static const std::string& CFL0FileCountLimitDelaysWithOngoingCompaction(); 19959: static const std::string& CFL0FileCountLimitStopsWithOngoingCompaction(); 19959: # 2035 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: static std::string CauseConditionCount(WriteStallCause cause, 19959: WriteStallCondition condition); 19959: }; 19959: 19959: 19959: inline DB::SizeApproximationFlags operator&(DB::SizeApproximationFlags lhs, 19959: DB::SizeApproximationFlags rhs) { 19959: return static_cast(static_cast(lhs) & 19959: static_cast(rhs)); 19959: } 19959: inline DB::SizeApproximationFlags operator|(DB::SizeApproximationFlags lhs, 19959: DB::SizeApproximationFlags rhs) { 19959: return static_cast(static_cast(lhs) | 19959: static_cast(rhs)); 19959: } 19959: 19959: inline Status DB::GetApproximateSizes(ColumnFamilyHandle* column_family, 19959: const Range* ranges, int n, 19959: uint64_t* sizes, 19959: SizeApproximationFlags include_flags) { 19959: SizeApproximationOptions options; 19959: options.include_memtables = 19959: ((include_flags & SizeApproximationFlags::INCLUDE_MEMTABLES) != 19959: SizeApproximationFlags::NONE); 19959: options.include_files = 19959: ((include_flags & SizeApproximationFlags::INCLUDE_FILES) != 19959: SizeApproximationFlags::NONE); 19959: return GetApproximateSizes(options, column_family, ranges, n, sizes); 19959: } 19959: 19959: 19959: 19959: Status DestroyDB(const std::string& name, const Options& options, 19959: const std::vector& column_families = 19959: std::vector()); 19959: # 2080 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 19959: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 19959: const std::vector& column_families); 19959: 19959: 19959: 19959: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 19959: const std::vector& column_families, 19959: const ColumnFamilyOptions& unknown_cf_opts); 19959: 19959: 19959: 19959: Status RepairDB(const std::string& dbname, const Options& options); 19959: 19959: } 19959: # 29 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/dynamic_bloom.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 18 "/build/reproducible-path/rocksdb-8.9.1/util/dynamic_bloom.h" 19959: namespace rocksdb { 19959: 19959: class Slice; 19959: class Allocator; 19959: class Logger; 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/util/dynamic_bloom.h" 19959: class DynamicBloom { 19959: public: 19959: # 47 "/build/reproducible-path/rocksdb-8.9.1/util/dynamic_bloom.h" 19959: explicit DynamicBloom(Allocator* allocator, uint32_t total_bits, 19959: uint32_t num_probes = 6, size_t huge_page_tlb_size = 0, 19959: Logger* logger = nullptr); 19959: 19959: ~DynamicBloom() {} 19959: 19959: 19959: void Add(const Slice& key); 19959: 19959: 19959: void AddConcurrently(const Slice& key); 19959: 19959: 19959: void AddHash(uint32_t hash); 19959: 19959: 19959: void AddHashConcurrently(uint32_t hash); 19959: 19959: 19959: bool MayContain(const Slice& key) const; 19959: 19959: void MayContain(int num_keys, Slice* keys, bool* may_match) const; 19959: 19959: 19959: bool MayContainHash(uint32_t hash) const; 19959: 19959: void Prefetch(uint32_t h); 19959: 19959: private: 19959: 19959: 19959: uint32_t kLen; 19959: 19959: 19959: const uint32_t kNumDoubleProbes; 19959: 19959: std::atomic* data_; 19959: 19959: 19959: 19959: template 19959: void AddHash(uint32_t hash, const OrFunc& or_func); 19959: 19959: bool DoubleProbe(uint32_t h32, size_t a) const; 19959: }; 19959: 19959: inline void DynamicBloom::Add(const Slice& key) { AddHash(BloomHash(key)); } 19959: 19959: inline void DynamicBloom::AddConcurrently(const Slice& key) { 19959: AddHashConcurrently(BloomHash(key)); 19959: } 19959: 19959: inline void DynamicBloom::AddHash(uint32_t hash) { 19959: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 19959: ptr->store(ptr->load(std::memory_order_relaxed) | mask, 19959: std::memory_order_relaxed); 19959: }); 19959: } 19959: 19959: inline void DynamicBloom::AddHashConcurrently(uint32_t hash) { 19959: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 19959: 19959: 19959: 19959: 19959: 19959: if ((mask & ptr->load(std::memory_order_relaxed)) != mask) { 19959: ptr->fetch_or(mask, std::memory_order_relaxed); 19959: } 19959: }); 19959: } 19959: 19959: inline bool DynamicBloom::MayContain(const Slice& key) const { 19959: return (MayContainHash(BloomHash(key))); 19959: } 19959: 19959: inline void DynamicBloom::MayContain(int num_keys, Slice* keys, 19959: bool* may_match) const { 19959: std::array hashes; 19959: std::array byte_offsets; 19959: for (int i = 0; i < num_keys; ++i) { 19959: hashes[i] = BloomHash(keys[i]); 19959: size_t a = FastRange32(hashes[i], kLen); 19959: __builtin_prefetch(data_ + a, 0, 3); 19959: byte_offsets[i] = a; 19959: } 19959: 19959: for (int i = 0; i < num_keys; i++) { 19959: may_match[i] = DoubleProbe(hashes[i], byte_offsets[i]); 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline void DynamicBloom::Prefetch(uint32_t h32) { 19959: size_t a = FastRange32(h32, kLen); 19959: __builtin_prefetch(data_ + a, 0, 3); 19959: } 19959: # 173 "/build/reproducible-path/rocksdb-8.9.1/util/dynamic_bloom.h" 19959: inline bool DynamicBloom::MayContainHash(uint32_t h32) const { 19959: size_t a = FastRange32(h32, kLen); 19959: __builtin_prefetch(data_ + a, 0, 3); 19959: return DoubleProbe(h32, a); 19959: } 19959: 19959: inline bool DynamicBloom::DoubleProbe(uint32_t h32, size_t byte_offset) const { 19959: 19959: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 19959: for (unsigned i = 0;; ++i) { 19959: 19959: uint64_t mask = 19959: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 19959: uint64_t val = data_[byte_offset ^ i].load(std::memory_order_relaxed); 19959: if (i + 1 >= kNumDoubleProbes) { 19959: return (val & mask) == mask; 19959: } else if ((val & mask) != mask) { 19959: return false; 19959: } 19959: h = (h >> 12) | (h << 52); 19959: } 19959: } 19959: 19959: template 19959: inline void DynamicBloom::AddHash(uint32_t h32, const OrFunc& or_func) { 19959: size_t a = FastRange32(h32, kLen); 19959: __builtin_prefetch(data_ + a, 0, 3); 19959: 19959: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 19959: for (unsigned i = 0;; ++i) { 19959: 19959: uint64_t mask = 19959: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 19959: or_func(&data_[a ^ i], mask); 19959: if (i + 1 >= kNumDoubleProbes) { 19959: return; 19959: } 19959: h = (h >> 12) | (h << 52); 19959: } 19959: } 19959: 19959: } 19959: # 32 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/hash_containers.h" 1 19959: # 11 "/build/reproducible-path/rocksdb-8.9.1/util/hash_containers.h" 19959: 19959: # 38 "/build/reproducible-path/rocksdb-8.9.1/util/hash_containers.h" 19959: namespace rocksdb { 19959: 19959: template 19959: using UnorderedMap = std::unordered_map; 19959: 19959: template 19959: using UnorderedMapH = std::unordered_map; 19959: 19959: template 19959: using UnorderedSet = std::unordered_set; 19959: 19959: } 19959: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: struct FlushJobInfo; 19959: class Mutex; 19959: class MemTableIterator; 19959: class MergeContext; 19959: class SystemClock; 19959: 19959: struct ImmutableMemTableOptions { 19959: explicit ImmutableMemTableOptions(const ImmutableOptions& ioptions, 19959: const MutableCFOptions& mutable_cf_options); 19959: size_t arena_block_size; 19959: uint32_t memtable_prefix_bloom_bits; 19959: size_t memtable_huge_page_size; 19959: bool memtable_whole_key_filtering; 19959: bool inplace_update_support; 19959: size_t inplace_update_num_locks; 19959: UpdateStatus (*inplace_callback)(char* existing_value, 19959: uint32_t* existing_value_size, 19959: Slice delta_value, 19959: std::string* merged_value); 19959: size_t max_successive_merges; 19959: Statistics* statistics; 19959: MergeOperator* merge_operator; 19959: Logger* info_log; 19959: bool allow_data_in_errors; 19959: uint32_t protection_bytes_per_key; 19959: }; 19959: 19959: 19959: 19959: 19959: struct MemTablePostProcessInfo { 19959: uint64_t data_size = 0; 19959: uint64_t num_entries = 0; 19959: uint64_t num_deletes = 0; 19959: uint64_t num_range_deletes = 0; 19959: }; 19959: 19959: using MultiGetRange = MultiGetContext::Range; 19959: # 88 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: class MemTable { 19959: public: 19959: struct KeyComparator : public MemTableRep::KeyComparator { 19959: const InternalKeyComparator comparator; 19959: explicit KeyComparator(const InternalKeyComparator& c) : comparator(c) {} 19959: virtual int operator()(const char* prefix_len_key1, 19959: const char* prefix_len_key2) const override; 19959: virtual int operator()(const char* prefix_len_key, 19959: const DecodedType& key) const override; 19959: }; 19959: # 108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: explicit MemTable(const InternalKeyComparator& comparator, 19959: const ImmutableOptions& ioptions, 19959: const MutableCFOptions& mutable_cf_options, 19959: WriteBufferManager* write_buffer_manager, 19959: SequenceNumber earliest_seq, uint32_t column_family_id); 19959: 19959: MemTable(const MemTable&) = delete; 19959: MemTable& operator=(const MemTable&) = delete; 19959: 19959: 19959: ~MemTable(); 19959: 19959: 19959: 19959: 19959: void Ref() { ++refs_; } 19959: 19959: 19959: 19959: 19959: 19959: MemTable* Unref() { 19959: --refs_; 19959: 19959: # 131 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 3 4 19959: (static_cast ( 19959: # 131 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: refs_ >= 0 19959: # 131 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 131 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: "refs_ >= 0" 19959: # 131 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 3 4 19959: , "./db/memtable.h", 131, __extension__ __PRETTY_FUNCTION__)) 19959: # 131 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: ; 19959: if (refs_ <= 0) { 19959: return this; 19959: } 19959: return nullptr; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: size_t ApproximateMemoryUsage(); 19959: 19959: 19959: 19959: size_t ApproximateMemoryUsageFast() const { 19959: return approximate_memory_usage_.load(std::memory_order_relaxed); 19959: } 19959: 19959: 19959: size_t MemoryAllocatedBytes() const { 19959: return table_->ApproximateMemoryUsage() + 19959: range_del_table_->ApproximateMemoryUsage() + 19959: arena_.MemoryAllocatedBytes(); 19959: } 19959: # 171 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: void UniqueRandomSample(const uint64_t& target_sample_size, 19959: std::unordered_set* entries) { 19959: 19959: 19959: table_->UniqueRandomSample(num_entries(), target_sample_size, entries); 19959: } 19959: 19959: 19959: 19959: bool ShouldScheduleFlush() const { 19959: return flush_state_.load(std::memory_order_relaxed) == FLUSH_REQUESTED; 19959: } 19959: 19959: 19959: 19959: bool MarkFlushScheduled() { 19959: auto before = FLUSH_REQUESTED; 19959: return flush_state_.compare_exchange_strong(before, FLUSH_SCHEDULED, 19959: std::memory_order_relaxed, 19959: std::memory_order_relaxed); 19959: } 19959: # 205 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: InternalIterator* NewIterator(const ReadOptions& read_options, Arena* arena); 19959: # 217 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 19959: const ReadOptions& read_options, SequenceNumber read_seq, 19959: bool immutable_memtable); 19959: 19959: Status VerifyEncodedEntry(Slice encoded, 19959: const ProtectionInfoKVOS64& kv_prot_info); 19959: # 234 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: Status Add(SequenceNumber seq, ValueType type, const Slice& key, 19959: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info, 19959: bool allow_concurrent = false, 19959: MemTablePostProcessInfo* post_process_info = nullptr, 19959: void** hint = nullptr); 19959: # 263 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: bool Get(const LookupKey& key, std::string* value, 19959: PinnableWideColumns* columns, std::string* timestamp, Status* s, 19959: MergeContext* merge_context, 19959: SequenceNumber* max_covering_tombstone_seq, SequenceNumber* seq, 19959: const ReadOptions& read_opts, bool immutable_memtable, 19959: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 19959: bool do_merge = true); 19959: 19959: bool Get(const LookupKey& key, std::string* value, 19959: PinnableWideColumns* columns, std::string* timestamp, Status* s, 19959: MergeContext* merge_context, 19959: SequenceNumber* max_covering_tombstone_seq, 19959: const ReadOptions& read_opts, bool immutable_memtable, 19959: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 19959: bool do_merge = true) { 19959: SequenceNumber seq; 19959: return Get(key, value, columns, timestamp, s, merge_context, 19959: max_covering_tombstone_seq, &seq, read_opts, immutable_memtable, 19959: callback, is_blob_index, do_merge); 19959: } 19959: 19959: 19959: 19959: 19959: void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 19959: ReadCallback* callback, bool immutable_memtable); 19959: # 300 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: Status Update(SequenceNumber seq, ValueType value_type, const Slice& key, 19959: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info); 19959: # 317 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: Status UpdateCallback(SequenceNumber seq, const Slice& key, 19959: const Slice& delta, 19959: const ProtectionInfoKVOS64* kv_prot_info); 19959: 19959: 19959: 19959: 19959: size_t CountSuccessiveMergeEntries(const LookupKey& key); 19959: 19959: 19959: 19959: void BatchPostProcess(const MemTablePostProcessInfo& update_counters) { 19959: num_entries_.fetch_add(update_counters.num_entries, 19959: std::memory_order_relaxed); 19959: data_size_.fetch_add(update_counters.data_size, std::memory_order_relaxed); 19959: if (update_counters.num_deletes != 0) { 19959: num_deletes_.fetch_add(update_counters.num_deletes, 19959: std::memory_order_relaxed); 19959: } 19959: if (update_counters.num_range_deletes > 0) { 19959: num_range_deletes_.fetch_add(update_counters.num_range_deletes, 19959: std::memory_order_relaxed); 19959: } 19959: UpdateFlushState(); 19959: } 19959: 19959: 19959: 19959: 19959: uint64_t num_entries() const { 19959: return num_entries_.load(std::memory_order_relaxed); 19959: } 19959: 19959: 19959: 19959: 19959: uint64_t num_deletes() const { 19959: return num_deletes_.load(std::memory_order_relaxed); 19959: } 19959: 19959: 19959: 19959: 19959: uint64_t num_range_deletes() const { 19959: return num_range_deletes_.load(std::memory_order_relaxed); 19959: } 19959: 19959: uint64_t get_data_size() const { 19959: return data_size_.load(std::memory_order_relaxed); 19959: } 19959: 19959: size_t write_buffer_size() const { 19959: return write_buffer_size_.load(std::memory_order_relaxed); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: void UpdateWriteBufferSize(size_t new_write_buffer_size) { 19959: if (bloom_filter_ == nullptr || 19959: new_write_buffer_size < write_buffer_size_) { 19959: write_buffer_size_.store(new_write_buffer_size, 19959: std::memory_order_relaxed); 19959: } 19959: } 19959: 19959: 19959: VersionEdit* GetEdits() { return &edit_; } 19959: 19959: 19959: 19959: 19959: bool IsEmpty() const { return first_seqno_ == 0; } 19959: 19959: 19959: 19959: 19959: 19959: SequenceNumber GetFirstSequenceNumber() { 19959: return first_seqno_.load(std::memory_order_relaxed); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: void SetFirstSequenceNumber(SequenceNumber first_seqno) { 19959: return first_seqno_.store(first_seqno, std::memory_order_relaxed); 19959: } 19959: # 415 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 19959: SequenceNumber GetEarliestSequenceNumber() { 19959: return earliest_seqno_.load(std::memory_order_relaxed); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: void SetEarliestSequenceNumber(SequenceNumber earliest_seqno) { 19959: return earliest_seqno_.store(earliest_seqno, std::memory_order_relaxed); 19959: } 19959: 19959: 19959: 19959: SequenceNumber GetCreationSeq() const { return creation_seq_; } 19959: 19959: void SetCreationSeq(SequenceNumber sn) { creation_seq_ = sn; } 19959: 19959: 19959: 19959: 19959: 19959: uint64_t GetNextLogNumber() { return mem_next_logfile_number_; } 19959: 19959: 19959: 19959: 19959: 19959: void SetNextLogNumber(uint64_t num) { mem_next_logfile_number_ = num; } 19959: 19959: 19959: 19959: 19959: 19959: void RefLogContainingPrepSection(uint64_t log); 19959: uint64_t GetMinLogContainingPrepSection(); 19959: 19959: 19959: 19959: 19959: 19959: 19959: void MarkImmutable() { 19959: table_->MarkReadOnly(); 19959: mem_tracker_.DoneAllocating(); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: void MarkFlushed() { table_->MarkFlushed(); } 19959: 19959: 19959: bool IsMergeOperatorSupported() const { 19959: return table_->IsMergeOperatorSupported(); 19959: } 19959: 19959: 19959: 19959: bool IsSnapshotSupported() const { 19959: return table_->IsSnapshotSupported() && !moptions_.inplace_update_support; 19959: } 19959: 19959: struct MemTableStats { 19959: uint64_t size; 19959: uint64_t count; 19959: }; 19959: 19959: MemTableStats ApproximateStats(const Slice& start_ikey, 19959: const Slice& end_ikey); 19959: 19959: 19959: port::RWMutex* GetLock(const Slice& key); 19959: 19959: const InternalKeyComparator& GetInternalKeyComparator() const { 19959: return comparator_.comparator; 19959: } 19959: 19959: const ImmutableMemTableOptions* GetImmutableMemTableOptions() const { 19959: return &moptions_; 19959: } 19959: 19959: uint64_t ApproximateOldestKeyTime() const { 19959: return oldest_key_time_.load(std::memory_order_relaxed); 19959: } 19959: 19959: 19959: void SetID(uint64_t id) { id_ = id; } 19959: 19959: uint64_t GetID() const { return id_; } 19959: 19959: void SetFlushCompleted(bool completed) { flush_completed_ = completed; } 19959: 19959: uint64_t GetFileNumber() const { return file_number_; } 19959: 19959: void SetFileNumber(uint64_t file_num) { file_number_ = file_num; } 19959: 19959: void SetFlushInProgress(bool in_progress) { 19959: flush_in_progress_ = in_progress; 19959: } 19959: 19959: void SetFlushJobInfo(std::unique_ptr&& info) { 19959: flush_job_info_ = std::move(info); 19959: } 19959: 19959: std::unique_ptr ReleaseFlushJobInfo() { 19959: return std::move(flush_job_info_); 19959: } 19959: 19959: 19959: bool ShouldFlushNow(); 19959: 19959: void ConstructFragmentedRangeTombstones(); 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: bool IsFragmentedRangeTombstonesConstructed(bool allow_empty = true) const { 19959: if (allow_empty) { 19959: return fragmented_range_tombstone_list_.get() != nullptr || 19959: is_range_del_table_empty_; 19959: } else { 19959: return fragmented_range_tombstone_list_.get() != nullptr; 19959: } 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: const Slice& GetNewestUDT() const; 19959: 19959: 19959: static Status VerifyEntryChecksum(const char* entry, 19959: uint32_t protection_bytes_per_key, 19959: bool allow_data_in_errors = false); 19959: 19959: private: 19959: enum FlushStateEnum { FLUSH_NOT_REQUESTED, FLUSH_REQUESTED, FLUSH_SCHEDULED }; 19959: 19959: friend class MemTableIterator; 19959: friend class MemTableBackwardIterator; 19959: friend class MemTableList; 19959: 19959: KeyComparator comparator_; 19959: const ImmutableMemTableOptions moptions_; 19959: int refs_; 19959: const size_t kArenaBlockSize; 19959: AllocTracker mem_tracker_; 19959: ConcurrentArena arena_; 19959: std::unique_ptr table_; 19959: std::unique_ptr range_del_table_; 19959: std::atomic_bool is_range_del_table_empty_; 19959: 19959: 19959: std::atomic data_size_; 19959: std::atomic num_entries_; 19959: std::atomic num_deletes_; 19959: std::atomic num_range_deletes_; 19959: 19959: 19959: std::atomic write_buffer_size_; 19959: 19959: 19959: bool flush_in_progress_; 19959: bool flush_completed_; 19959: uint64_t file_number_; 19959: 19959: 19959: 19959: VersionEdit edit_; 19959: 19959: 19959: std::atomic first_seqno_; 19959: 19959: 19959: 19959: std::atomic earliest_seqno_; 19959: 19959: SequenceNumber creation_seq_; 19959: 19959: 19959: uint64_t mem_next_logfile_number_; 19959: 19959: 19959: 19959: std::atomic min_prep_log_referenced_; 19959: 19959: 19959: std::vector locks_; 19959: 19959: const SliceTransform* const prefix_extractor_; 19959: std::unique_ptr bloom_filter_; 19959: 19959: std::atomic flush_state_; 19959: 19959: SystemClock* clock_; 19959: 19959: 19959: const SliceTransform* insert_with_hint_prefix_extractor_; 19959: 19959: 19959: UnorderedMapH insert_hints_; 19959: 19959: 19959: std::atomic oldest_key_time_; 19959: 19959: 19959: uint64_t id_ = 0; 19959: 19959: 19959: 19959: 19959: 19959: SequenceNumber atomic_flush_seqno_; 19959: 19959: 19959: 19959: std::atomic approximate_memory_usage_; 19959: 19959: 19959: 19959: uint32_t memtable_max_range_deletions_ = 0; 19959: 19959: 19959: std::unique_ptr flush_job_info_; 19959: 19959: 19959: size_t ts_sz_; 19959: 19959: 19959: bool persist_user_defined_timestamps_; 19959: 19959: 19959: 19959: 19959: 19959: 19959: Slice newest_udt_; 19959: 19959: 19959: void UpdateFlushState(); 19959: 19959: void UpdateOldestKeyTime(); 19959: 19959: void GetFromTable(const LookupKey& key, 19959: SequenceNumber max_covering_tombstone_seq, bool do_merge, 19959: ReadCallback* callback, bool* is_blob_index, 19959: std::string* value, PinnableWideColumns* columns, 19959: std::string* timestamp, Status* s, 19959: MergeContext* merge_context, SequenceNumber* seq, 19959: bool* found_final_value, bool* merge_in_progress); 19959: 19959: 19959: 19959: 19959: 19959: 19959: FragmentedRangeTombstoneIterator* NewRangeTombstoneIteratorInternal( 19959: const ReadOptions& read_options, SequenceNumber read_seq, 19959: bool immutable_memtable); 19959: 19959: 19959: 19959: 19959: std::unique_ptr 19959: fragmented_range_tombstone_list_; 19959: 19959: 19959: std::mutex range_del_mutex_; 19959: CoreLocalArray> 19959: cached_range_tombstone_; 19959: 19959: void UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 19959: const Slice& key, const Slice& value, ValueType type, 19959: SequenceNumber s, char* checksum_ptr); 19959: 19959: void MaybeUpdateNewestUDT(const Slice& user_key); 19959: }; 19959: 19959: extern const char* EncodeKey(std::string* scratch, const Slice& target); 19959: 19959: } 19959: # 11 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 16 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_iteration_stats.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: struct CompactionIterationStats { 19959: 19959: 19959: 19959: 19959: int64_t num_record_drop_user = 0; 19959: 19959: int64_t num_record_drop_hidden = 0; 19959: int64_t num_record_drop_obsolete = 0; 19959: int64_t num_record_drop_range_del = 0; 19959: int64_t num_range_del_drop_obsolete = 0; 19959: 19959: int64_t num_optimized_del_drop_obsolete = 0; 19959: uint64_t total_filter_time = 0; 19959: 19959: 19959: 19959: 19959: uint64_t num_input_records = 0; 19959: uint64_t num_input_deletion_records = 0; 19959: uint64_t num_input_corrupt_records = 0; 19959: uint64_t total_input_raw_key_bytes = 0; 19959: uint64_t total_input_raw_value_bytes = 0; 19959: 19959: 19959: uint64_t num_single_del_fallthru = 0; 19959: uint64_t num_single_del_mismatch = 0; 19959: 19959: 19959: uint64_t num_blobs_read = 0; 19959: uint64_t total_blob_bytes_read = 0; 19959: uint64_t num_blobs_relocated = 0; 19959: uint64_t total_blob_bytes_relocated = 0; 19959: }; 19959: 19959: } 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 2 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: class ScopedArenaIterator { 19959: void reset(InternalIterator* iter) noexcept { 19959: if (iter_ != nullptr) { 19959: iter_->~InternalIterator(); 19959: } 19959: iter_ = iter; 19959: } 19959: 19959: public: 19959: explicit ScopedArenaIterator(InternalIterator* iter = nullptr) 19959: : iter_(iter) {} 19959: 19959: ScopedArenaIterator(const ScopedArenaIterator&) = delete; 19959: ScopedArenaIterator& operator=(const ScopedArenaIterator&) = delete; 19959: 19959: ScopedArenaIterator(ScopedArenaIterator&& o) noexcept { 19959: iter_ = o.iter_; 19959: o.iter_ = nullptr; 19959: } 19959: 19959: ScopedArenaIterator& operator=(ScopedArenaIterator&& o) noexcept { 19959: reset(o.iter_); 19959: o.iter_ = nullptr; 19959: return *this; 19959: } 19959: 19959: InternalIterator* operator->() { return iter_; } 19959: InternalIterator* get() { return iter_; } 19959: 19959: void set(InternalIterator* iter) { reset(iter); } 19959: 19959: InternalIterator* release() { 19959: 19959: # 46 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 3 4 19959: (static_cast ( 19959: # 46 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 19959: iter_ != nullptr 19959: # 46 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 46 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 19959: "iter_ != nullptr" 19959: # 46 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 3 4 19959: , "./table/scoped_arena_iterator.h", 46, __extension__ __PRETTY_FUNCTION__)) 19959: # 46 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 19959: ; 19959: auto* res = iter_; 19959: iter_ = nullptr; 19959: return res; 19959: } 19959: 19959: ~ScopedArenaIterator() { reset(nullptr); } 19959: 19959: private: 19959: InternalIterator* iter_; 19959: }; 19959: } 19959: # 26 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 19959: 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/cinttypes" 1 3 19959: # 32 "/usr/include/c++/13/cinttypes" 3 19959: 19959: # 33 "/usr/include/c++/13/cinttypes" 3 19959: # 46 "/usr/include/c++/13/cinttypes" 3 19959: # 1 "/usr/include/inttypes.h" 1 3 4 19959: # 266 "/usr/include/inttypes.h" 3 4 19959: 19959: # 266 "/usr/include/inttypes.h" 3 4 19959: extern "C" { 19959: # 280 "/usr/include/inttypes.h" 3 4 19959: typedef struct 19959: { 19959: __extension__ long long int quot; 19959: __extension__ long long int rem; 19959: } imaxdiv_t; 19959: 19959: 19959: 19959: 19959: 19959: extern intmax_t imaxabs (intmax_t __n) noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) 19959: noexcept (true) __attribute__ ((__const__)); 19959: 19959: 19959: extern intmax_t strtoimax (const char *__restrict __nptr, 19959: char **__restrict __endptr, int __base) noexcept (true); 19959: 19959: 19959: extern uintmax_t strtoumax (const char *__restrict __nptr, 19959: char ** __restrict __endptr, int __base) noexcept (true); 19959: 19959: 19959: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, 19959: wchar_t **__restrict __endptr, int __base) 19959: noexcept (true); 19959: 19959: 19959: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, 19959: wchar_t ** __restrict __endptr, int __base) 19959: noexcept (true); 19959: 19959: } 19959: # 47 "/usr/include/c++/13/cinttypes" 2 3 19959: # 55 "/usr/include/c++/13/cinttypes" 3 19959: namespace std 19959: { 19959: 19959: using ::imaxdiv_t; 19959: 19959: 19959: using ::imaxabs; 19959: using ::imaxdiv; 19959: 19959: 19959: 19959: 19959: 19959: using ::strtoimax; 19959: using ::strtoumax; 19959: 19959: 19959: using ::wcstoimax; 19959: using ::wcstoumax; 19959: 19959: } 19959: # 11 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 2 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 19959: 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 19959: namespace rocksdb { 19959: 19959: constexpr uint64_t kUnknownTimeBeforeAll = 0; 19959: constexpr SequenceNumber kUnknownSeqnoBeforeAll = 0; 19959: # 47 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 19959: class SeqnoToTimeMapping { 19959: public: 19959: 19959: 19959: static constexpr uint64_t kMaxSeqnoTimePairsPerSST = 100; 19959: # 61 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 19959: static constexpr uint64_t kMaxSeqnoTimePairsPerCF = 100; 19959: 19959: 19959: struct SeqnoTimePair { 19959: SequenceNumber seqno = 0; 19959: uint64_t time = 0; 19959: 19959: SeqnoTimePair() = default; 19959: SeqnoTimePair(SequenceNumber _seqno, uint64_t _time) 19959: : seqno(_seqno), time(_time) {} 19959: 19959: 19959: void Encode(std::string& dest) const; 19959: 19959: 19959: Status Decode(Slice& input); 19959: 19959: 19959: SeqnoTimePair ComputeDelta(const SeqnoTimePair& base) const { 19959: return {seqno - base.seqno, time - base.time}; 19959: } 19959: 19959: 19959: void ApplyDelta(const SeqnoTimePair& delta_or_base) { 19959: seqno += delta_or_base.seqno; 19959: time += delta_or_base.time; 19959: } 19959: 19959: 19959: bool operator<(const SeqnoTimePair& other) const { 19959: return std::tie(seqno, time) < std::tie(other.seqno, other.time); 19959: } 19959: 19959: bool operator==(const SeqnoTimePair& other) const { 19959: return std::tie(seqno, time) == std::tie(other.seqno, other.time); 19959: } 19959: 19959: static bool SeqnoLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 19959: return a.seqno < b.seqno; 19959: } 19959: 19959: static bool TimeLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 19959: return a.time < b.time; 19959: } 19959: }; 19959: # 115 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 19959: explicit SeqnoToTimeMapping(uint64_t max_time_duration = 0, 19959: uint64_t max_capacity = 0) 19959: : max_time_duration_(max_time_duration), max_capacity_(max_capacity) {} 19959: 19959: 19959: 19959: bool PrePopulate(SequenceNumber from_seqno, SequenceNumber to_seqno, 19959: uint64_t from_time, uint64_t to_time); 19959: 19959: 19959: 19959: bool Append(SequenceNumber seqno, uint64_t time); 19959: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 19959: uint64_t GetProximalTimeBeforeSeqno(SequenceNumber seqno) const; 19959: 19959: 19959: 19959: void TruncateOldEntries(uint64_t now); 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 19959: SequenceNumber GetProximalSeqnoBeforeTime(uint64_t time); 19959: 19959: 19959: void Encode(std::string& des, SequenceNumber start, SequenceNumber end, 19959: uint64_t now, 19959: uint64_t output_size = kMaxSeqnoTimePairsPerSST) const; 19959: 19959: 19959: 19959: void Add(SequenceNumber seqno, uint64_t time); 19959: 19959: 19959: Status Add(const std::string& pairs_str); 19959: 19959: 19959: size_t Size() const { return pairs_.size(); } 19959: 19959: 19959: bool Resize(uint64_t min_time_duration, uint64_t max_time_duration); 19959: 19959: 19959: void SetMaxTimeDuration(uint64_t max_time_duration) { 19959: max_time_duration_ = max_time_duration; 19959: } 19959: 19959: uint64_t GetCapacity() const { return max_capacity_; } 19959: 19959: 19959: 19959: Status Sort(); 19959: 19959: 19959: SeqnoToTimeMapping Copy(SequenceNumber smallest_seqno) const; 19959: 19959: 19959: bool Empty() const { return pairs_.empty(); } 19959: 19959: 19959: void Clear() { pairs_.clear(); } 19959: 19959: 19959: 19959: std::string ToHumanString() const; 19959: 19959: 19959: const std::deque& TEST_GetInternalMapping() const { 19959: return pairs_; 19959: } 19959: 19959: 19959: private: 19959: static constexpr uint64_t kMaxSeqnoToTimeEntries = 19959: kMaxSeqnoTimePairsPerCF * 10; 19959: 19959: uint64_t max_time_duration_; 19959: uint64_t max_capacity_; 19959: 19959: std::deque pairs_; 19959: 19959: bool is_sorted_ = true; 19959: 19959: static uint64_t CalculateMaxCapacity(uint64_t min_time_duration, 19959: uint64_t max_time_duration); 19959: 19959: SeqnoTimePair& Last() { 19959: 19959: # 215 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 3 4 19959: (static_cast ( 19959: # 215 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 19959: !Empty() 19959: # 215 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 215 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 19959: "!Empty()" 19959: # 215 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 3 4 19959: , "./db/seqno_to_time_mapping.h", 215, __extension__ __PRETTY_FUNCTION__)) 19959: # 215 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 19959: ; 19959: return pairs_.back(); 19959: } 19959: 19959: using pair_const_iterator = 19959: std::deque::const_iterator; 19959: pair_const_iterator FindGreaterTime(uint64_t time) const; 19959: pair_const_iterator FindGreaterSeqno(SequenceNumber seqno) const; 19959: pair_const_iterator FindGreaterEqSeqno(SequenceNumber seqno) const; 19959: }; 19959: 19959: } 19959: # 20 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 17 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 19959: namespace rocksdb { 19959: 19959: 19959: class IntTblPropCollector { 19959: public: 19959: virtual ~IntTblPropCollector() {} 19959: virtual Status Finish(UserCollectedProperties* properties) = 0; 19959: 19959: virtual const char* Name() const = 0; 19959: 19959: 19959: 19959: virtual Status InternalAdd(const Slice& key, const Slice& value, 19959: uint64_t file_size) = 0; 19959: 19959: virtual void BlockAdd(uint64_t block_uncomp_bytes, 19959: uint64_t block_compressed_bytes_fast, 19959: uint64_t block_compressed_bytes_slow) = 0; 19959: 19959: virtual UserCollectedProperties GetReadableProperties() const = 0; 19959: 19959: virtual bool NeedCompact() const { return false; } 19959: }; 19959: 19959: 19959: class IntTblPropCollectorFactory { 19959: public: 19959: virtual ~IntTblPropCollectorFactory() {} 19959: 19959: virtual IntTblPropCollector* CreateIntTblPropCollector( 19959: uint32_t column_family_id, int level_at_creation) = 0; 19959: 19959: 19959: virtual const char* Name() const = 0; 19959: }; 19959: 19959: using IntTblPropCollectorFactories = 19959: std::vector>; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class UserKeyTablePropertiesCollector : public IntTblPropCollector { 19959: public: 19959: 19959: explicit UserKeyTablePropertiesCollector(TablePropertiesCollector* collector) 19959: : collector_(collector) {} 19959: 19959: virtual ~UserKeyTablePropertiesCollector() {} 19959: 19959: virtual Status InternalAdd(const Slice& key, const Slice& value, 19959: uint64_t file_size) override; 19959: 19959: virtual void BlockAdd(uint64_t block_uncomp_bytes, 19959: uint64_t block_compressed_bytes_fast, 19959: uint64_t block_compressed_bytes_slow) override; 19959: 19959: virtual Status Finish(UserCollectedProperties* properties) override; 19959: 19959: virtual const char* Name() const override { return collector_->Name(); } 19959: 19959: UserCollectedProperties GetReadableProperties() const override; 19959: 19959: virtual bool NeedCompact() const override { 19959: return collector_->NeedCompact(); 19959: } 19959: 19959: protected: 19959: std::unique_ptr collector_; 19959: }; 19959: 19959: class UserKeyTablePropertiesCollectorFactory 19959: : public IntTblPropCollectorFactory { 19959: public: 19959: explicit UserKeyTablePropertiesCollectorFactory( 19959: std::shared_ptr user_collector_factory) 19959: : user_collector_factory_(user_collector_factory) {} 19959: virtual IntTblPropCollector* CreateIntTblPropCollector( 19959: uint32_t column_family_id, int level_at_creation) override { 19959: TablePropertiesCollectorFactory::Context context; 19959: context.column_family_id = column_family_id; 19959: context.level_at_creation = level_at_creation; 19959: return new UserKeyTablePropertiesCollector( 19959: user_collector_factory_->CreateTablePropertiesCollector(context)); 19959: } 19959: 19959: virtual const char* Name() const override { 19959: return user_collector_factory_->Name(); 19959: } 19959: 19959: private: 19959: std::shared_ptr user_collector_factory_; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: class TimestampTablePropertiesCollector : public IntTblPropCollector { 19959: public: 19959: explicit TimestampTablePropertiesCollector(const Comparator* cmp) 19959: : cmp_(cmp), 19959: timestamp_min_(kDisableUserTimestamp), 19959: timestamp_max_(kDisableUserTimestamp) {} 19959: 19959: Status InternalAdd(const Slice& key, const Slice& , 19959: uint64_t ) override { 19959: auto user_key = ExtractUserKey(key); 19959: 19959: # 128 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 3 4 19959: (static_cast ( 19959: # 128 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 19959: cmp_ && cmp_->timestamp_size() > 0 19959: # 128 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 128 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 19959: "cmp_ && cmp_->timestamp_size() > 0" 19959: # 128 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 3 4 19959: , "./db/table_properties_collector.h", 128, __extension__ __PRETTY_FUNCTION__)) 19959: # 128 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 19959: ; 19959: if (user_key.size() < cmp_->timestamp_size()) { 19959: return Status::Corruption( 19959: "User key size mismatch when comparing to timestamp size."); 19959: } 19959: auto timestamp_in_key = 19959: ExtractTimestampFromUserKey(user_key, cmp_->timestamp_size()); 19959: if (timestamp_max_ == kDisableUserTimestamp || 19959: cmp_->CompareTimestamp(timestamp_in_key, timestamp_max_) > 0) { 19959: timestamp_max_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 19959: } 19959: if (timestamp_min_ == kDisableUserTimestamp || 19959: cmp_->CompareTimestamp(timestamp_min_, timestamp_in_key) > 0) { 19959: timestamp_min_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 19959: } 19959: return Status::OK(); 19959: } 19959: 19959: void BlockAdd(uint64_t , 19959: uint64_t , 19959: uint64_t ) override { 19959: return; 19959: } 19959: 19959: Status Finish(UserCollectedProperties* properties) override { 19959: 19959: 19959: # 154 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 3 4 19959: (static_cast ( 19959: # 154 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 19959: timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size()) 19959: # 154 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 154 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 19959: "timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size())" 19959: # 154 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 3 4 19959: , "./db/table_properties_collector.h", 154, __extension__ __PRETTY_FUNCTION__)) 19959: 19959: 19959: # 156 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 19959: ; 19959: properties->insert({"rocksdb.timestamp_min", timestamp_min_}); 19959: properties->insert({"rocksdb.timestamp_max", timestamp_max_}); 19959: return Status::OK(); 19959: } 19959: 19959: const char* Name() const override { 19959: return "TimestampTablePropertiesCollector"; 19959: } 19959: 19959: UserCollectedProperties GetReadableProperties() const override { 19959: return {{"rocksdb.timestamp_min", Slice(timestamp_min_).ToString(true)}, 19959: {"rocksdb.timestamp_max", Slice(timestamp_max_).ToString(true)}}; 19959: } 19959: 19959: protected: 19959: const Comparator* const cmp_; 19959: std::string timestamp_min_; 19959: std::string timestamp_max_; 19959: }; 19959: 19959: } 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 19959: 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 19959: namespace rocksdb { 19959: class Statistics; 19959: class SystemClock; 19959: # 36 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 19959: class WritableFileWriter { 19959: private: 19959: void NotifyOnFileWriteFinish( 19959: uint64_t offset, size_t length, 19959: const FileOperationInfo::StartTimePoint& start_ts, 19959: const FileOperationInfo::FinishTimePoint& finish_ts, 19959: const IOStatus& io_status) { 19959: FileOperationInfo info(FileOperationType::kWrite, file_name_, start_ts, 19959: finish_ts, io_status, temperature_); 19959: info.offset = offset; 19959: info.length = length; 19959: 19959: for (auto& listener : listeners_) { 19959: listener->OnFileWriteFinish(info); 19959: } 19959: info.status.PermitUncheckedError(); 19959: } 19959: void NotifyOnFileFlushFinish( 19959: const FileOperationInfo::StartTimePoint& start_ts, 19959: const FileOperationInfo::FinishTimePoint& finish_ts, 19959: const IOStatus& io_status) { 19959: FileOperationInfo info(FileOperationType::kFlush, file_name_, start_ts, 19959: finish_ts, io_status, temperature_); 19959: 19959: for (auto& listener : listeners_) { 19959: listener->OnFileFlushFinish(info); 19959: } 19959: info.status.PermitUncheckedError(); 19959: } 19959: void NotifyOnFileSyncFinish( 19959: const FileOperationInfo::StartTimePoint& start_ts, 19959: const FileOperationInfo::FinishTimePoint& finish_ts, 19959: const IOStatus& io_status, 19959: FileOperationType type = FileOperationType::kSync) { 19959: FileOperationInfo info(type, file_name_, start_ts, finish_ts, io_status, 19959: temperature_); 19959: 19959: for (auto& listener : listeners_) { 19959: listener->OnFileSyncFinish(info); 19959: } 19959: info.status.PermitUncheckedError(); 19959: } 19959: void NotifyOnFileRangeSyncFinish( 19959: uint64_t offset, size_t length, 19959: const FileOperationInfo::StartTimePoint& start_ts, 19959: const FileOperationInfo::FinishTimePoint& finish_ts, 19959: const IOStatus& io_status) { 19959: FileOperationInfo info(FileOperationType::kRangeSync, file_name_, start_ts, 19959: finish_ts, io_status, temperature_); 19959: info.offset = offset; 19959: info.length = length; 19959: 19959: for (auto& listener : listeners_) { 19959: listener->OnFileRangeSyncFinish(info); 19959: } 19959: info.status.PermitUncheckedError(); 19959: } 19959: void NotifyOnFileTruncateFinish( 19959: const FileOperationInfo::StartTimePoint& start_ts, 19959: const FileOperationInfo::FinishTimePoint& finish_ts, 19959: const IOStatus& io_status) { 19959: FileOperationInfo info(FileOperationType::kTruncate, file_name_, start_ts, 19959: finish_ts, io_status, temperature_); 19959: 19959: for (auto& listener : listeners_) { 19959: listener->OnFileTruncateFinish(info); 19959: } 19959: info.status.PermitUncheckedError(); 19959: } 19959: void NotifyOnFileCloseFinish( 19959: const FileOperationInfo::StartTimePoint& start_ts, 19959: const FileOperationInfo::FinishTimePoint& finish_ts, 19959: const IOStatus& io_status) { 19959: FileOperationInfo info(FileOperationType::kClose, file_name_, start_ts, 19959: finish_ts, io_status, temperature_); 19959: 19959: for (auto& listener : listeners_) { 19959: listener->OnFileCloseFinish(info); 19959: } 19959: info.status.PermitUncheckedError(); 19959: } 19959: 19959: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 19959: const std::string& file_path, size_t length = 0, 19959: uint64_t offset = 0) { 19959: if (listeners_.empty()) { 19959: return; 19959: } 19959: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 19959: for (auto& listener : listeners_) { 19959: listener->OnIOError(io_error_info); 19959: } 19959: io_error_info.io_status.PermitUncheckedError(); 19959: } 19959: 19959: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 19959: void UpdateFileChecksum(const Slice& data); 19959: void Crc32cHandoffChecksumCalculation(const char* data, size_t size, 19959: char* buf); 19959: 19959: std::string file_name_; 19959: FSWritableFilePtr writable_file_; 19959: SystemClock* clock_; 19959: AlignedBuffer buf_; 19959: size_t max_buffer_size_; 19959: 19959: 19959: std::atomic filesize_; 19959: std::atomic flushed_size_; 19959: 19959: 19959: 19959: uint64_t next_write_offset_; 19959: bool pending_sync_; 19959: std::atomic seen_error_; 19959: 19959: 19959: 19959: 19959: 19959: std::atomic sync_without_flush_called_ = false; 19959: 19959: uint64_t last_sync_size_; 19959: uint64_t bytes_per_sync_; 19959: RateLimiter* rate_limiter_; 19959: Statistics* stats_; 19959: std::vector> listeners_; 19959: std::unique_ptr checksum_generator_; 19959: bool checksum_finalized_; 19959: bool perform_data_verification_; 19959: uint32_t buffered_data_crc32c_checksum_; 19959: bool buffered_data_with_checksum_; 19959: Temperature temperature_; 19959: 19959: public: 19959: WritableFileWriter( 19959: std::unique_ptr&& file, const std::string& _file_name, 19959: const FileOptions& options, SystemClock* clock = nullptr, 19959: const std::shared_ptr& io_tracer = nullptr, 19959: Statistics* stats = nullptr, 19959: const std::vector>& listeners = {}, 19959: FileChecksumGenFactory* file_checksum_gen_factory = nullptr, 19959: bool perform_data_verification = false, 19959: bool buffered_data_with_checksum = false) 19959: : file_name_(_file_name), 19959: writable_file_(std::move(file), io_tracer, _file_name), 19959: clock_(clock), 19959: buf_(), 19959: max_buffer_size_(options.writable_file_max_buffer_size), 19959: filesize_(0), 19959: flushed_size_(0), 19959: next_write_offset_(0), 19959: pending_sync_(false), 19959: seen_error_(false), 19959: last_sync_size_(0), 19959: bytes_per_sync_(options.bytes_per_sync), 19959: rate_limiter_(options.rate_limiter), 19959: stats_(stats), 19959: listeners_(), 19959: checksum_generator_(nullptr), 19959: checksum_finalized_(false), 19959: perform_data_verification_(perform_data_verification), 19959: buffered_data_crc32c_checksum_(0), 19959: buffered_data_with_checksum_(buffered_data_with_checksum) { 19959: temperature_ = options.temperature; 19959: 19959: # 201 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 3 4 19959: (static_cast ( 19959: # 201 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 19959: !use_direct_io() || max_buffer_size_ > 0 19959: # 201 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 201 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 19959: "!use_direct_io() || max_buffer_size_ > 0" 19959: # 201 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 3 4 19959: , "./file/writable_file_writer.h", 201, __extension__ __PRETTY_FUNCTION__)) 19959: # 201 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 19959: ; 19959: rocksdb::SyncPoint::GetInstance()->Process("WritableFileWriter::WritableFileWriter:0", reinterpret_cast(max_buffer_size_)) 19959: ; 19959: buf_.Alignment(writable_file_->GetRequiredBufferAlignment()); 19959: buf_.AllocateNewBuffer(std::min((size_t)65536, max_buffer_size_)); 19959: std::for_each(listeners.begin(), listeners.end(), 19959: [this](const std::shared_ptr& e) { 19959: if (e->ShouldBeNotifiedOnFileIO()) { 19959: listeners_.emplace_back(e); 19959: } 19959: }); 19959: if (file_checksum_gen_factory != nullptr) { 19959: FileChecksumGenContext checksum_gen_context; 19959: checksum_gen_context.file_name = _file_name; 19959: checksum_generator_ = 19959: file_checksum_gen_factory->CreateFileChecksumGenerator( 19959: checksum_gen_context); 19959: } 19959: } 19959: 19959: static IOStatus Create(const std::shared_ptr& fs, 19959: const std::string& fname, const FileOptions& file_opts, 19959: std::unique_ptr* writer, 19959: IODebugContext* dbg); 19959: WritableFileWriter(const WritableFileWriter&) = delete; 19959: 19959: WritableFileWriter& operator=(const WritableFileWriter&) = delete; 19959: 19959: ~WritableFileWriter() { 19959: auto s = Close(); 19959: s.PermitUncheckedError(); 19959: } 19959: 19959: std::string file_name() const { return file_name_; } 19959: 19959: 19959: 19959: IOStatus Append(const Slice& data, uint32_t crc32c_checksum = 0, 19959: Env::IOPriority op_rate_limiter_priority = Env::IO_TOTAL); 19959: 19959: IOStatus Pad(const size_t pad_bytes, 19959: Env::IOPriority op_rate_limiter_priority = Env::IO_TOTAL); 19959: 19959: IOStatus Flush(Env::IOPriority op_rate_limiter_priority = Env::IO_TOTAL); 19959: 19959: IOStatus Close(); 19959: 19959: IOStatus Sync(bool use_fsync); 19959: 19959: 19959: 19959: 19959: IOStatus SyncWithoutFlush(bool use_fsync); 19959: 19959: uint64_t GetFileSize() const { 19959: return filesize_.load(std::memory_order_acquire); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: uint64_t GetFlushedSize() const { 19959: return flushed_size_.load(std::memory_order_acquire); 19959: } 19959: 19959: IOStatus InvalidateCache(size_t offset, size_t length) { 19959: return writable_file_->InvalidateCache(offset, length); 19959: } 19959: 19959: FSWritableFile* writable_file() const { return writable_file_.get(); } 19959: 19959: bool use_direct_io() { return writable_file_->use_direct_io(); } 19959: 19959: bool BufferIsEmpty() { return buf_.CurrentSize() == 0; } 19959: 19959: void TEST_SetFileChecksumGenerator( 19959: FileChecksumGenerator* checksum_generator) { 19959: checksum_generator_.reset(checksum_generator); 19959: } 19959: 19959: std::string GetFileChecksum(); 19959: 19959: const char* GetFileChecksumFuncName() const; 19959: 19959: bool seen_error() const { 19959: return seen_error_.load(std::memory_order_relaxed); 19959: } 19959: 19959: 19959: void reset_seen_error() { 19959: seen_error_.store(false, std::memory_order_relaxed); 19959: } 19959: void set_seen_error() { seen_error_.store(true, std::memory_order_relaxed); } 19959: 19959: IOStatus AssertFalseAndGetStatusForPrevError() { 19959: 19959: 19959: # 298 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 3 4 19959: (static_cast ( 19959: # 298 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 19959: sync_without_flush_called_ 19959: # 298 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 298 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 19959: "sync_without_flush_called_" 19959: # 298 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 3 4 19959: , "./file/writable_file_writer.h", 298, __extension__ __PRETTY_FUNCTION__)) 19959: # 298 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 19959: ; 19959: return IOStatus::IOError("Writer has previous error."); 19959: } 19959: 19959: private: 19959: 19959: static Env::IOPriority DecideRateLimiterPriority( 19959: Env::IOPriority writable_file_io_priority, 19959: Env::IOPriority op_rate_limiter_priority); 19959: 19959: 19959: 19959: IOStatus WriteDirect(Env::IOPriority op_rate_limiter_priority); 19959: IOStatus WriteDirectWithChecksum(Env::IOPriority op_rate_limiter_priority); 19959: 19959: IOStatus WriteBuffered(const char* data, size_t size, 19959: Env::IOPriority op_rate_limiter_priority); 19959: IOStatus WriteBufferedWithChecksum(const char* data, size_t size, 19959: Env::IOPriority op_rate_limiter_priority); 19959: IOStatus RangeSync(uint64_t offset, uint64_t nbytes); 19959: IOStatus SyncInternal(bool use_fsync); 19959: }; 19959: } 19959: # 22 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 2 19959: 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/block_cache_tracer.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 18 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/block_cache_tracer.h" 19959: namespace rocksdb { 19959: class Env; 19959: class SystemClock; 19959: 19959: extern const uint64_t kMicrosInSecond; 19959: extern const uint64_t kSecondInMinute; 19959: extern const uint64_t kSecondInHour; 19959: 19959: struct BlockCacheTraceRecord; 19959: 19959: class BlockCacheTraceHelper { 19959: public: 19959: static bool IsGetOrMultiGetOnDataBlock(TraceType block_type, 19959: TableReaderCaller caller); 19959: static bool IsGetOrMultiGet(TableReaderCaller caller); 19959: static bool IsUserAccess(TableReaderCaller caller); 19959: 19959: 19959: static std::string ComputeRowKey(const BlockCacheTraceRecord& access); 19959: 19959: 19959: static uint64_t GetTableId(const BlockCacheTraceRecord& access); 19959: 19959: 19959: static uint64_t GetSequenceNumber(const BlockCacheTraceRecord& access); 19959: 19959: static uint64_t GetBlockOffsetInFile(const BlockCacheTraceRecord& access); 19959: 19959: static const std::string kUnknownColumnFamilyName; 19959: static const uint64_t kReservedGetId; 19959: }; 19959: # 69 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/block_cache_tracer.h" 19959: struct BlockCacheLookupContext { 19959: BlockCacheLookupContext(const TableReaderCaller& _caller) : caller(_caller) {} 19959: BlockCacheLookupContext(const TableReaderCaller& _caller, uint64_t _get_id, 19959: bool _get_from_user_specified_snapshot) 19959: : caller(_caller), 19959: get_id(_get_id), 19959: get_from_user_specified_snapshot(_get_from_user_specified_snapshot) {} 19959: const TableReaderCaller caller; 19959: 19959: 19959: 19959: bool is_cache_hit = false; 19959: bool no_insert = false; 19959: TraceType block_type = TraceType::kTraceMax; 19959: uint64_t block_size = 0; 19959: std::string block_key; 19959: uint64_t num_keys_in_block = 0; 19959: 19959: 19959: 19959: uint64_t get_id = 0; 19959: std::string referenced_key; 19959: bool get_from_user_specified_snapshot = false; 19959: 19959: void FillLookupContext(bool _is_cache_hit, bool _no_insert, 19959: TraceType _block_type, uint64_t _block_size, 19959: const std::string& _block_key, 19959: uint64_t _num_keys_in_block) { 19959: is_cache_hit = _is_cache_hit; 19959: no_insert = _no_insert; 19959: block_type = _block_type; 19959: block_size = _block_size; 19959: block_key = _block_key; 19959: num_keys_in_block = _num_keys_in_block; 19959: } 19959: }; 19959: 19959: struct BlockCacheTraceHeader { 19959: uint64_t start_time; 19959: uint32_t rocksdb_major_version; 19959: uint32_t rocksdb_minor_version; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: class BlockCacheTraceWriterImpl : public BlockCacheTraceWriter { 19959: public: 19959: BlockCacheTraceWriterImpl(SystemClock* clock, 19959: const BlockCacheTraceWriterOptions& trace_options, 19959: std::unique_ptr&& trace_writer); 19959: ~BlockCacheTraceWriterImpl() = default; 19959: 19959: BlockCacheTraceWriterImpl(const BlockCacheTraceWriterImpl&) = delete; 19959: BlockCacheTraceWriterImpl& operator=(const BlockCacheTraceWriterImpl&) = 19959: delete; 19959: BlockCacheTraceWriterImpl(BlockCacheTraceWriterImpl&&) = delete; 19959: BlockCacheTraceWriterImpl& operator=(BlockCacheTraceWriterImpl&&) = delete; 19959: 19959: 19959: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 19959: const Slice& block_key, const Slice& cf_name, 19959: const Slice& referenced_key) override; 19959: 19959: 19959: 19959: Status WriteHeader() override; 19959: 19959: private: 19959: SystemClock* clock_; 19959: BlockCacheTraceWriterOptions trace_options_; 19959: std::unique_ptr trace_writer_; 19959: }; 19959: 19959: 19959: 19959: 19959: class BlockCacheHumanReadableTraceWriter { 19959: public: 19959: ~BlockCacheHumanReadableTraceWriter(); 19959: 19959: Status NewWritableFile(const std::string& human_readable_trace_file_path, 19959: rocksdb::Env* env); 19959: 19959: Status WriteHumanReadableTraceRecord(const BlockCacheTraceRecord& access, 19959: uint64_t block_id, uint64_t get_key_id); 19959: 19959: private: 19959: char trace_record_buffer_[1024 * 1024]; 19959: std::unique_ptr 19959: human_readable_trace_file_writer_; 19959: }; 19959: 19959: 19959: 19959: class BlockCacheTraceReader { 19959: public: 19959: BlockCacheTraceReader(std::unique_ptr&& reader); 19959: virtual ~BlockCacheTraceReader() = default; 19959: 19959: BlockCacheTraceReader(const BlockCacheTraceReader&) = delete; 19959: BlockCacheTraceReader& operator=(const BlockCacheTraceReader&) = delete; 19959: BlockCacheTraceReader(BlockCacheTraceReader&&) = delete; 19959: BlockCacheTraceReader& operator=(BlockCacheTraceReader&&) = delete; 19959: 19959: Status ReadHeader(BlockCacheTraceHeader* header); 19959: 19959: Status ReadAccess(BlockCacheTraceRecord* record); 19959: 19959: private: 19959: std::unique_ptr trace_reader_; 19959: }; 19959: 19959: 19959: 19959: 19959: class BlockCacheHumanReadableTraceReader : public BlockCacheTraceReader { 19959: public: 19959: BlockCacheHumanReadableTraceReader(const std::string& trace_file_path); 19959: 19959: ~BlockCacheHumanReadableTraceReader(); 19959: 19959: Status ReadHeader(BlockCacheTraceHeader* header); 19959: 19959: Status ReadAccess(BlockCacheTraceRecord* record); 19959: 19959: private: 19959: std::ifstream human_readable_trace_reader_; 19959: }; 19959: 19959: 19959: 19959: 19959: class BlockCacheTracer { 19959: public: 19959: BlockCacheTracer(); 19959: ~BlockCacheTracer(); 19959: 19959: BlockCacheTracer(const BlockCacheTracer&) = delete; 19959: BlockCacheTracer& operator=(const BlockCacheTracer&) = delete; 19959: BlockCacheTracer(BlockCacheTracer&&) = delete; 19959: BlockCacheTracer& operator=(BlockCacheTracer&&) = delete; 19959: 19959: 19959: Status StartTrace(const BlockCacheTraceOptions& trace_options, 19959: std::unique_ptr&& trace_writer); 19959: 19959: 19959: void EndTrace(); 19959: 19959: bool is_tracing_enabled() const { 19959: return writer_.load(std::memory_order_relaxed); 19959: } 19959: 19959: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 19959: const Slice& block_key, const Slice& cf_name, 19959: const Slice& referenced_key); 19959: 19959: 19959: uint64_t NextGetId(); 19959: 19959: private: 19959: BlockCacheTraceOptions trace_options_; 19959: 19959: InstrumentedMutex trace_writer_mutex_; 19959: std::atomic writer_; 19959: std::atomic get_id_counter_; 19959: }; 19959: 19959: } 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: class Slice; 19959: class Status; 19959: 19959: struct TableReaderOptions { 19959: 19959: TableReaderOptions( 19959: const ImmutableOptions& _ioptions, 19959: const std::shared_ptr& _prefix_extractor, 19959: const EnvOptions& _env_options, 19959: const InternalKeyComparator& _internal_comparator, 19959: uint8_t _block_protection_bytes_per_key, bool _skip_filters = false, 19959: bool _immortal = false, bool _force_direct_prefetch = false, 19959: int _level = -1, BlockCacheTracer* const _block_cache_tracer = nullptr, 19959: size_t _max_file_size_for_l0_meta_pin = 0, 19959: const std::string& _cur_db_session_id = "", uint64_t _cur_file_num = 0, 19959: UniqueId64x2 _unique_id = {}, SequenceNumber _largest_seqno = 0, 19959: uint64_t _tail_size = 0, bool _user_defined_timestamps_persisted = true) 19959: : ioptions(_ioptions), 19959: prefix_extractor(_prefix_extractor), 19959: env_options(_env_options), 19959: internal_comparator(_internal_comparator), 19959: skip_filters(_skip_filters), 19959: immortal(_immortal), 19959: force_direct_prefetch(_force_direct_prefetch), 19959: level(_level), 19959: largest_seqno(_largest_seqno), 19959: block_cache_tracer(_block_cache_tracer), 19959: max_file_size_for_l0_meta_pin(_max_file_size_for_l0_meta_pin), 19959: cur_db_session_id(_cur_db_session_id), 19959: cur_file_num(_cur_file_num), 19959: unique_id(_unique_id), 19959: block_protection_bytes_per_key(_block_protection_bytes_per_key), 19959: tail_size(_tail_size), 19959: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) {} 19959: 19959: const ImmutableOptions& ioptions; 19959: const std::shared_ptr& prefix_extractor; 19959: const EnvOptions& env_options; 19959: const InternalKeyComparator& internal_comparator; 19959: 19959: bool skip_filters; 19959: 19959: bool immortal; 19959: 19959: 19959: 19959: bool force_direct_prefetch; 19959: 19959: 19959: int level; 19959: 19959: SequenceNumber largest_seqno; 19959: BlockCacheTracer* const block_cache_tracer; 19959: 19959: 19959: const size_t max_file_size_for_l0_meta_pin; 19959: 19959: std::string cur_db_session_id; 19959: 19959: uint64_t cur_file_num; 19959: 19959: 19959: UniqueId64x2 unique_id; 19959: 19959: uint8_t block_protection_bytes_per_key; 19959: 19959: uint64_t tail_size; 19959: 19959: 19959: bool user_defined_timestamps_persisted; 19959: }; 19959: 19959: struct TableBuilderOptions { 19959: TableBuilderOptions( 19959: const ImmutableOptions& _ioptions, const MutableCFOptions& _moptions, 19959: const InternalKeyComparator& _internal_comparator, 19959: const IntTblPropCollectorFactories* _int_tbl_prop_collector_factories, 19959: CompressionType _compression_type, 19959: const CompressionOptions& _compression_opts, uint32_t _column_family_id, 19959: const std::string& _column_family_name, int _level, 19959: bool _is_bottommost = false, 19959: TableFileCreationReason _reason = TableFileCreationReason::kMisc, 19959: const int64_t _oldest_key_time = 0, 19959: const uint64_t _file_creation_time = 0, const std::string& _db_id = "", 19959: const std::string& _db_session_id = "", 19959: const uint64_t _target_file_size = 0, const uint64_t _cur_file_num = 0) 19959: : ioptions(_ioptions), 19959: moptions(_moptions), 19959: internal_comparator(_internal_comparator), 19959: int_tbl_prop_collector_factories(_int_tbl_prop_collector_factories), 19959: compression_type(_compression_type), 19959: compression_opts(_compression_opts), 19959: column_family_id(_column_family_id), 19959: column_family_name(_column_family_name), 19959: oldest_key_time(_oldest_key_time), 19959: target_file_size(_target_file_size), 19959: file_creation_time(_file_creation_time), 19959: db_id(_db_id), 19959: db_session_id(_db_session_id), 19959: level_at_creation(_level), 19959: is_bottommost(_is_bottommost), 19959: reason(_reason), 19959: cur_file_num(_cur_file_num) {} 19959: 19959: const ImmutableOptions& ioptions; 19959: const MutableCFOptions& moptions; 19959: const InternalKeyComparator& internal_comparator; 19959: const IntTblPropCollectorFactories* int_tbl_prop_collector_factories; 19959: const CompressionType compression_type; 19959: const CompressionOptions& compression_opts; 19959: const uint32_t column_family_id; 19959: const std::string& column_family_name; 19959: const int64_t oldest_key_time; 19959: const uint64_t target_file_size; 19959: const uint64_t file_creation_time; 19959: const std::string db_id; 19959: const std::string db_session_id; 19959: 19959: const int level_at_creation; 19959: const bool is_bottommost; 19959: const TableFileCreationReason reason; 19959: 19959: 19959: 19959: 19959: 19959: bool skip_filters = false; 19959: const uint64_t cur_file_num; 19959: }; 19959: # 167 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 19959: class TableBuilder { 19959: public: 19959: 19959: virtual ~TableBuilder() {} 19959: 19959: 19959: 19959: 19959: virtual void Add(const Slice& key, const Slice& value) = 0; 19959: 19959: 19959: virtual Status status() const = 0; 19959: 19959: 19959: virtual IOStatus io_status() const = 0; 19959: 19959: 19959: 19959: virtual Status Finish() = 0; 19959: 19959: 19959: 19959: 19959: 19959: virtual void Abandon() = 0; 19959: 19959: 19959: virtual uint64_t NumEntries() const = 0; 19959: 19959: 19959: 19959: virtual bool IsEmpty() const { 19959: return NumEntries() == 0 && GetTableProperties().num_range_deletions == 0; 19959: } 19959: 19959: 19959: 19959: virtual uint64_t FileSize() const = 0; 19959: 19959: 19959: 19959: 19959: virtual uint64_t EstimatedFileSize() const { return FileSize(); } 19959: 19959: virtual uint64_t GetTailSize() const { return 0; } 19959: 19959: 19959: 19959: virtual bool NeedCompact() const { return false; } 19959: 19959: 19959: virtual TableProperties GetTableProperties() const = 0; 19959: 19959: 19959: virtual std::string GetFileChecksum() const = 0; 19959: 19959: 19959: virtual const char* GetFileChecksumFuncName() const = 0; 19959: 19959: 19959: virtual void SetSeqnoTimeTableProperties( 19959: const std::string& , 19959: uint64_t ){}; 19959: }; 19959: 19959: } 19959: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: namespace rocksdb { 19959: # 41 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: template > 19959: class BinaryHeap { 19959: public: 19959: BinaryHeap() {} 19959: explicit BinaryHeap(Compare cmp) : cmp_(std::move(cmp)) {} 19959: 19959: void push(const T& value) { 19959: data_.push_back(value); 19959: upheap(data_.size() - 1); 19959: } 19959: 19959: void push(T&& value) { 19959: data_.push_back(std::move(value)); 19959: upheap(data_.size() - 1); 19959: } 19959: 19959: const T& top() const { 19959: 19959: # 58 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: (static_cast ( 19959: # 58 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: !empty() 19959: # 58 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 58 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: "!empty()" 19959: # 58 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: , "./util/heap.h", 58, __extension__ __PRETTY_FUNCTION__)) 19959: # 58 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: ; 19959: return data_.front(); 19959: } 19959: 19959: void replace_top(const T& value) { 19959: 19959: # 63 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: (static_cast ( 19959: # 63 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: !empty() 19959: # 63 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 63 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: "!empty()" 19959: # 63 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: , "./util/heap.h", 63, __extension__ __PRETTY_FUNCTION__)) 19959: # 63 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: ; 19959: data_.front() = value; 19959: downheap(get_root()); 19959: } 19959: 19959: void replace_top(T&& value) { 19959: 19959: # 69 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: (static_cast ( 19959: # 69 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: !empty() 19959: # 69 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 69 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: "!empty()" 19959: # 69 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: , "./util/heap.h", 69, __extension__ __PRETTY_FUNCTION__)) 19959: # 69 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: ; 19959: data_.front() = std::move(value); 19959: downheap(get_root()); 19959: } 19959: 19959: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-8.9.1/include/rocksdb/utilities/options_type.h:1125:29: /usr/include/c++/13/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)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ void pop() { 19959: 19959: # 75 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: (static_cast ( 19959: # 75 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: !empty() 19959: # 75 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 75 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: "!empty()" 19959: # 75 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: , "./util/heap.h", 75, __extension__ __PRETTY_FUNCTION__)) 19959: # 75 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: ; 19959: if (data_.size() > 1) { 19959: 19959: 19959: 19959: data_.front() = std::move(data_.back()); 19959: } 19959: data_.pop_back(); 19959: if (!empty()) { 19959: downheap(get_root()); 19959: } else { 19959: reset_root_cmp_cache(); 19959: } 19959: } 19959: 19959: void swap(BinaryHeap& other) { 19959: std::swap(cmp_, other.cmp_); 19959: data_.swap(other.data_); 19959: std::swap(root_cmp_cache_, other.root_cmp_cache_); 19959: } 19959: 19959: void clear() { 19959: data_.clear(); 19959: reset_root_cmp_cache(); 19959: } 19959: 19959: bool empty() const { return data_.empty(); } 19959: 19959: size_t size() const { return data_.size(); } 19959: 19959: void reset_root_cmp_cache() { 19959: root_cmp_cache_ = std::numeric_limits::max(); 19959: } 19959: 19959: private: 19959: static inline size_t get_root() { return 0; } 19959: static inline size_t get_parent(size_t index) { return (index - 1) / 2; } 19959: static inline size_t get_left(size_t index) { return 2 * index + 1; } 19959: static inline size_t get_right(size_t index) { return 2 * index + 2; } 19959: 19959: void upheap(size_t index) { 19959: T v = std::move(data_[index]); 19959: while (index > get_root()) { 19959: const size_t parent = get_parent(index); 19959: if (!cmp_(data_[parent], v)) { 19959: break; 19959: } 19959: data_[index] = std::move(data_[parent]); 19959: index = parent; 19959: } 19959: data_[index] = std::move(v); 19959: reset_root_cmp_cache(); 19959: } 19959: 19959: void downheap(size_t index) { 19959: T v = std::move(data_[index]); 19959: 19959: size_t picked_child = std::numeric_limits::max(); 19959: while (1) { 19959: const size_t left_child = get_left(index); 19959: if (get_left(index) >= data_.size()) { 19959: break; 19959: } 19959: const size_t right_child = left_child + 1; 19959: 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: (static_cast ( 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: right_child == get_right(index) 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: "right_child == get_right(index)" 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 19959: , "./util/heap.h", 139, __extension__ __PRETTY_FUNCTION__)) 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 19959: ; 19959: picked_child = left_child; 19959: if (index == 0 && root_cmp_cache_ < data_.size()) { 19959: picked_child = root_cmp_cache_; 19959: } else if (right_child < data_.size() && 19959: cmp_(data_[left_child], data_[right_child])) { 19959: picked_child = right_child; 19959: } 19959: if (!cmp_(v, data_[picked_child])) { 19959: break; 19959: } 19959: data_[index] = std::move(data_[picked_child]); 19959: index = picked_child; 19959: } 19959: 19959: if (index == 0) { 19959: 19959: 19959: 19959: 19959: root_cmp_cache_ = picked_child; 19959: } else { 19959: 19959: reset_root_cmp_cache(); 19959: } 19959: 19959: data_[index] = std::move(v); 19959: } 19959: 19959: Compare cmp_; 19959: autovector data_; 19959: 19959: size_t root_cmp_cache_ = std::numeric_limits::max(); 19959: }; 19959: 19959: } 19959: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/kv_map.h" 1 19959: 19959: 19959: 19959: 19959: 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/util/kv_map.h" 19959: namespace rocksdb { 19959: namespace stl_wrappers { 19959: 19959: struct LessOfComparator { 19959: explicit LessOfComparator(const Comparator* c = BytewiseComparator()) 19959: : cmp(c) {} 19959: 19959: bool operator()(const std::string& a, const std::string& b) const { 19959: return cmp->Compare(Slice(a), Slice(b)) < 0; 19959: } 19959: bool operator()(const Slice& a, const Slice& b) const { 19959: return cmp->Compare(a, b) < 0; 19959: } 19959: 19959: const Comparator* cmp; 19959: }; 19959: 19959: using KVMap = std::map; 19959: } 19959: } 19959: # 29 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 2 19959: 19959: namespace rocksdb { 19959: 19959: class TruncatedRangeDelIterator { 19959: public: 19959: TruncatedRangeDelIterator( 19959: std::unique_ptr iter, 19959: const InternalKeyComparator* icmp, const InternalKey* smallest, 19959: const InternalKey* largest); 19959: 19959: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 19959: iter_->SetRangeDelReadSeqno(read_seqno); 19959: } 19959: 19959: bool Valid() const; 19959: 19959: void Next() { iter_->TopNext(); } 19959: void Prev() { iter_->TopPrev(); } 19959: 19959: void InternalNext() { iter_->Next(); } 19959: 19959: 19959: 19959: 19959: 19959: void Seek(const Slice& target); 19959: 19959: 19959: void SeekInternalKey(const Slice& target); 19959: 19959: 19959: 19959: 19959: void SeekForPrev(const Slice& target); 19959: 19959: void SeekToFirst(); 19959: void SeekToLast(); 19959: 19959: ParsedInternalKey start_key() const { 19959: return (smallest_ == nullptr || 19959: icmp_->Compare(*smallest_, iter_->parsed_start_key()) <= 0) 19959: ? iter_->parsed_start_key() 19959: : *smallest_; 19959: } 19959: 19959: ParsedInternalKey end_key() const { 19959: return (largest_ == nullptr || 19959: icmp_->Compare(iter_->parsed_end_key(), *largest_) <= 0) 19959: ? iter_->parsed_end_key() 19959: : *largest_; 19959: } 19959: 19959: SequenceNumber seq() const { return iter_->seq(); } 19959: Slice timestamp() const { 19959: 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 19959: (static_cast ( 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: icmp_->user_comparator()->timestamp_size() 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: "icmp_->user_comparator()->timestamp_size()" 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 19959: , "./db/range_del_aggregator.h", 83, __extension__ __PRETTY_FUNCTION__)) 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: ; 19959: return iter_->timestamp(); 19959: } 19959: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 19959: iter_->SetTimestampUpperBound(ts_upper_bound); 19959: } 19959: 19959: std::map> 19959: SplitBySnapshot(const std::vector& snapshots); 19959: 19959: SequenceNumber upper_bound() const { return iter_->upper_bound(); } 19959: 19959: SequenceNumber lower_bound() const { return iter_->lower_bound(); } 19959: 19959: private: 19959: std::unique_ptr iter_; 19959: const InternalKeyComparator* icmp_; 19959: const ParsedInternalKey* smallest_ = nullptr; 19959: const ParsedInternalKey* largest_ = nullptr; 19959: std::list pinned_bounds_; 19959: 19959: const InternalKey* smallest_ikey_; 19959: const InternalKey* largest_ikey_; 19959: }; 19959: 19959: struct SeqMaxComparator { 19959: bool operator()(const TruncatedRangeDelIterator* a, 19959: const TruncatedRangeDelIterator* b) const { 19959: return a->seq() > b->seq(); 19959: } 19959: }; 19959: 19959: struct StartKeyMinComparator { 19959: explicit StartKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 19959: 19959: bool operator()(const TruncatedRangeDelIterator* a, 19959: const TruncatedRangeDelIterator* b) const { 19959: return icmp->Compare(a->start_key(), b->start_key()) > 0; 19959: } 19959: 19959: const InternalKeyComparator* icmp; 19959: }; 19959: 19959: class ForwardRangeDelIterator { 19959: public: 19959: explicit ForwardRangeDelIterator(const InternalKeyComparator* icmp); 19959: 19959: bool ShouldDelete(const ParsedInternalKey& parsed); 19959: void Invalidate(); 19959: 19959: void AddNewIter(TruncatedRangeDelIterator* iter, 19959: const ParsedInternalKey& parsed) { 19959: iter->Seek(parsed.user_key); 19959: PushIter(iter, parsed); 19959: 19959: # 137 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 19959: (static_cast ( 19959: # 137 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: active_iters_.size() == active_seqnums_.size() 19959: # 137 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 137 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: "active_iters_.size() == active_seqnums_.size()" 19959: # 137 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 19959: , "./db/range_del_aggregator.h", 137, __extension__ __PRETTY_FUNCTION__)) 19959: # 137 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: ; 19959: } 19959: 19959: size_t UnusedIdx() const { return unused_idx_; } 19959: void IncUnusedIdx() { unused_idx_++; } 19959: 19959: private: 19959: using ActiveSeqSet = 19959: std::multiset; 19959: 19959: struct EndKeyMinComparator { 19959: explicit EndKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 19959: 19959: bool operator()(const ActiveSeqSet::const_iterator& a, 19959: const ActiveSeqSet::const_iterator& b) const { 19959: return icmp->Compare((*a)->end_key(), (*b)->end_key()) > 0; 19959: } 19959: 19959: const InternalKeyComparator* icmp; 19959: }; 19959: 19959: void PushIter(TruncatedRangeDelIterator* iter, 19959: const ParsedInternalKey& parsed) { 19959: if (!iter->Valid()) { 19959: 19959: 19959: return; 19959: } 19959: int cmp = icmp_->Compare(parsed, iter->start_key()); 19959: if (cmp < 0) { 19959: PushInactiveIter(iter); 19959: } else { 19959: PushActiveIter(iter); 19959: } 19959: } 19959: 19959: void PushActiveIter(TruncatedRangeDelIterator* iter) { 19959: auto seq_pos = active_seqnums_.insert(iter); 19959: active_iters_.push(seq_pos); 19959: } 19959: 19959: TruncatedRangeDelIterator* PopActiveIter() { 19959: auto active_top = active_iters_.top(); 19959: auto iter = *active_top; 19959: active_iters_.pop(); 19959: active_seqnums_.erase(active_top); 19959: return iter; 19959: } 19959: 19959: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 19959: inactive_iters_.push(iter); 19959: } 19959: 19959: TruncatedRangeDelIterator* PopInactiveIter() { 19959: auto* iter = inactive_iters_.top(); 19959: inactive_iters_.pop(); 19959: return iter; 19959: } 19959: 19959: const InternalKeyComparator* icmp_; 19959: size_t unused_idx_; 19959: ActiveSeqSet active_seqnums_; 19959: BinaryHeap active_iters_; 19959: BinaryHeap inactive_iters_; 19959: }; 19959: 19959: class ReverseRangeDelIterator { 19959: public: 19959: explicit ReverseRangeDelIterator(const InternalKeyComparator* icmp); 19959: 19959: bool ShouldDelete(const ParsedInternalKey& parsed); 19959: void Invalidate(); 19959: 19959: void AddNewIter(TruncatedRangeDelIterator* iter, 19959: const ParsedInternalKey& parsed) { 19959: iter->SeekForPrev(parsed.user_key); 19959: PushIter(iter, parsed); 19959: 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 19959: (static_cast ( 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: active_iters_.size() == active_seqnums_.size() 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: "active_iters_.size() == active_seqnums_.size()" 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 19959: , "./db/range_del_aggregator.h", 214, __extension__ __PRETTY_FUNCTION__)) 19959: # 214 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: ; 19959: } 19959: 19959: size_t UnusedIdx() const { return unused_idx_; } 19959: void IncUnusedIdx() { unused_idx_++; } 19959: 19959: private: 19959: using ActiveSeqSet = 19959: std::multiset; 19959: 19959: struct EndKeyMaxComparator { 19959: explicit EndKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 19959: 19959: bool operator()(const TruncatedRangeDelIterator* a, 19959: const TruncatedRangeDelIterator* b) const { 19959: return icmp->Compare(a->end_key(), b->end_key()) < 0; 19959: } 19959: 19959: const InternalKeyComparator* icmp; 19959: }; 19959: struct StartKeyMaxComparator { 19959: explicit StartKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 19959: 19959: bool operator()(const ActiveSeqSet::const_iterator& a, 19959: const ActiveSeqSet::const_iterator& b) const { 19959: return icmp->Compare((*a)->start_key(), (*b)->start_key()) < 0; 19959: } 19959: 19959: const InternalKeyComparator* icmp; 19959: }; 19959: 19959: void PushIter(TruncatedRangeDelIterator* iter, 19959: const ParsedInternalKey& parsed) { 19959: if (!iter->Valid()) { 19959: 19959: 19959: } else if (icmp_->Compare(iter->end_key(), parsed) <= 0) { 19959: PushInactiveIter(iter); 19959: } else { 19959: PushActiveIter(iter); 19959: } 19959: } 19959: 19959: void PushActiveIter(TruncatedRangeDelIterator* iter) { 19959: auto seq_pos = active_seqnums_.insert(iter); 19959: active_iters_.push(seq_pos); 19959: } 19959: 19959: TruncatedRangeDelIterator* PopActiveIter() { 19959: auto active_top = active_iters_.top(); 19959: auto iter = *active_top; 19959: active_iters_.pop(); 19959: active_seqnums_.erase(active_top); 19959: return iter; 19959: } 19959: 19959: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 19959: inactive_iters_.push(iter); 19959: } 19959: 19959: TruncatedRangeDelIterator* PopInactiveIter() { 19959: auto* iter = inactive_iters_.top(); 19959: inactive_iters_.pop(); 19959: return iter; 19959: } 19959: 19959: const InternalKeyComparator* icmp_; 19959: size_t unused_idx_; 19959: ActiveSeqSet active_seqnums_; 19959: BinaryHeap active_iters_; 19959: BinaryHeap inactive_iters_; 19959: }; 19959: 19959: enum class RangeDelPositioningMode { kForwardTraversal, kBackwardTraversal }; 19959: class RangeDelAggregator { 19959: public: 19959: explicit RangeDelAggregator(const InternalKeyComparator* icmp) 19959: : icmp_(icmp) {} 19959: virtual ~RangeDelAggregator() {} 19959: 19959: virtual void AddTombstones( 19959: std::unique_ptr input_iter, 19959: const InternalKey* smallest = nullptr, 19959: const InternalKey* largest = nullptr) = 0; 19959: 19959: bool ShouldDelete(const Slice& ikey, RangeDelPositioningMode mode) { 19959: ParsedInternalKey parsed; 19959: 19959: Status pik_status = 19959: ParseInternalKey(ikey, &parsed, false ); 19959: 19959: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 19959: (static_cast ( 19959: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: pik_status.ok() 19959: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: "pik_status.ok()" 19959: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 19959: , "./db/range_del_aggregator.h", 304, __extension__ __PRETTY_FUNCTION__)) 19959: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: ; 19959: if (!pik_status.ok()) { 19959: return false; 19959: } 19959: 19959: return ShouldDelete(parsed, mode); 19959: } 19959: virtual bool ShouldDelete(const ParsedInternalKey& parsed, 19959: RangeDelPositioningMode mode) = 0; 19959: 19959: virtual void InvalidateRangeDelMapPositions() = 0; 19959: 19959: virtual bool IsEmpty() const = 0; 19959: 19959: bool AddFile(uint64_t file_number) { 19959: return files_seen_.insert(file_number).second; 19959: } 19959: 19959: protected: 19959: class StripeRep { 19959: public: 19959: StripeRep(const InternalKeyComparator* icmp, SequenceNumber upper_bound, 19959: SequenceNumber lower_bound) 19959: : icmp_(icmp), 19959: forward_iter_(icmp), 19959: reverse_iter_(icmp), 19959: upper_bound_(upper_bound), 19959: lower_bound_(lower_bound) {} 19959: 19959: void AddTombstones(std::unique_ptr input_iter) { 19959: iters_.push_back(std::move(input_iter)); 19959: } 19959: 19959: bool IsEmpty() const { return iters_.empty(); } 19959: 19959: bool ShouldDelete(const ParsedInternalKey& parsed, 19959: RangeDelPositioningMode mode); 19959: 19959: void Invalidate() { 19959: if (!IsEmpty()) { 19959: InvalidateForwardIter(); 19959: InvalidateReverseIter(); 19959: } 19959: } 19959: 19959: 19959: 19959: bool IsRangeOverlapped(const Slice& start, const Slice& end); 19959: 19959: private: 19959: bool InStripe(SequenceNumber seq) const { 19959: return lower_bound_ <= seq && seq <= upper_bound_; 19959: } 19959: 19959: void InvalidateForwardIter() { forward_iter_.Invalidate(); } 19959: 19959: void InvalidateReverseIter() { reverse_iter_.Invalidate(); } 19959: 19959: const InternalKeyComparator* icmp_; 19959: std::vector> iters_; 19959: ForwardRangeDelIterator forward_iter_; 19959: ReverseRangeDelIterator reverse_iter_; 19959: SequenceNumber upper_bound_; 19959: SequenceNumber lower_bound_; 19959: }; 19959: 19959: const InternalKeyComparator* icmp_; 19959: 19959: private: 19959: std::set files_seen_; 19959: }; 19959: 19959: class ReadRangeDelAggregator final : public RangeDelAggregator { 19959: public: 19959: ReadRangeDelAggregator(const InternalKeyComparator* icmp, 19959: SequenceNumber upper_bound) 19959: : RangeDelAggregator(icmp), 19959: rep_(icmp, upper_bound, 0 ) {} 19959: ~ReadRangeDelAggregator() override {} 19959: 19959: using RangeDelAggregator::ShouldDelete; 19959: void AddTombstones( 19959: std::unique_ptr input_iter, 19959: const InternalKey* smallest = nullptr, 19959: const InternalKey* largest = nullptr) override; 19959: 19959: bool ShouldDelete(const ParsedInternalKey& parsed, 19959: RangeDelPositioningMode mode) final override { 19959: if (rep_.IsEmpty()) { 19959: return false; 19959: } 19959: return ShouldDeleteImpl(parsed, mode); 19959: } 19959: 19959: bool IsRangeOverlapped(const Slice& start, const Slice& end); 19959: 19959: void InvalidateRangeDelMapPositions() override { rep_.Invalidate(); } 19959: 19959: bool IsEmpty() const override { return rep_.IsEmpty(); } 19959: 19959: private: 19959: StripeRep rep_; 19959: 19959: bool ShouldDeleteImpl(const ParsedInternalKey& parsed, 19959: RangeDelPositioningMode mode); 19959: }; 19959: 19959: class CompactionRangeDelAggregator : public RangeDelAggregator { 19959: public: 19959: CompactionRangeDelAggregator(const InternalKeyComparator* icmp, 19959: const std::vector& snapshots, 19959: const std::string* full_history_ts_low = nullptr, 19959: const std::string* trim_ts = nullptr) 19959: : RangeDelAggregator(icmp), snapshots_(&snapshots) { 19959: if (full_history_ts_low) { 19959: ts_upper_bound_ = *full_history_ts_low; 19959: } 19959: if (trim_ts) { 19959: trim_ts_ = *trim_ts; 19959: 19959: 19959: if (ts_upper_bound_.empty()) { 19959: ts_upper_bound_ = trim_ts_; 19959: } else if (!trim_ts_.empty() && icmp->user_comparator()->CompareTimestamp( 19959: trim_ts_, ts_upper_bound_) < 0) { 19959: ts_upper_bound_ = trim_ts_; 19959: } 19959: } 19959: } 19959: ~CompactionRangeDelAggregator() override {} 19959: 19959: void AddTombstones( 19959: std::unique_ptr input_iter, 19959: const InternalKey* smallest = nullptr, 19959: const InternalKey* largest = nullptr) override; 19959: 19959: using RangeDelAggregator::ShouldDelete; 19959: bool ShouldDelete(const ParsedInternalKey& parsed, 19959: RangeDelPositioningMode mode) override; 19959: 19959: bool IsRangeOverlapped(const Slice& start, const Slice& end); 19959: 19959: void InvalidateRangeDelMapPositions() override { 19959: for (auto& rep : reps_) { 19959: rep.second.Invalidate(); 19959: } 19959: } 19959: 19959: bool IsEmpty() const override { 19959: for (const auto& rep : reps_) { 19959: if (!rep.second.IsEmpty()) { 19959: return false; 19959: } 19959: } 19959: return true; 19959: } 19959: # 469 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 19959: std::unique_ptr NewIterator( 19959: const Slice* lower_bound = nullptr, const Slice* upper_bound = nullptr); 19959: 19959: private: 19959: std::vector> parent_iters_; 19959: std::map reps_; 19959: 19959: const std::vector* snapshots_; 19959: 19959: Slice ts_upper_bound_{}; 19959: Slice trim_ts_{}; 19959: }; 19959: 19959: } 19959: # 14 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/snapshot_checker.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: enum class SnapshotCheckerResult : int { 19959: kInSnapshot = 0, 19959: kNotInSnapshot = 1, 19959: 19959: 19959: kSnapshotReleased = 2, 19959: }; 19959: 19959: 19959: class SnapshotChecker { 19959: public: 19959: virtual ~SnapshotChecker() {} 19959: virtual SnapshotCheckerResult CheckInSnapshot( 19959: SequenceNumber sequence, SequenceNumber snapshot_sequence) const = 0; 19959: }; 19959: 19959: class DisableGCSnapshotChecker : public SnapshotChecker { 19959: public: 19959: virtual ~DisableGCSnapshotChecker() {} 19959: virtual SnapshotCheckerResult CheckInSnapshot( 19959: SequenceNumber , 19959: SequenceNumber ) const override { 19959: 19959: return SnapshotCheckerResult::kNotInSnapshot; 19959: } 19959: static DisableGCSnapshotChecker* Instance(); 19959: 19959: protected: 19959: explicit DisableGCSnapshotChecker() {} 19959: }; 19959: 19959: class WritePreparedTxnDB; 19959: 19959: 19959: 19959: class WritePreparedSnapshotChecker : public SnapshotChecker { 19959: public: 19959: explicit WritePreparedSnapshotChecker(WritePreparedTxnDB* txn_db); 19959: virtual ~WritePreparedSnapshotChecker() {} 19959: 19959: virtual SnapshotCheckerResult CheckInSnapshot( 19959: SequenceNumber sequence, SequenceNumber snapshot_sequence) const override; 19959: 19959: private: 19959: const WritePreparedTxnDB* const txn_db_; 19959: }; 19959: 19959: } 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 1 19959: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: 19959: 19959: # 1 "/usr/include/c++/13/cassert" 1 3 19959: # 41 "/usr/include/c++/13/cassert" 3 19959: 19959: # 42 "/usr/include/c++/13/cassert" 3 19959: 19959: 19959: # 1 "/usr/include/assert.h" 1 3 4 19959: # 45 "/usr/include/c++/13/cassert" 2 3 19959: # 12 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 2 19959: # 23 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: namespace rocksdb { 19959: 19959: class Slice; 19959: class SliceTransform; 19959: # 54 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: class CompactionFilter : public Customizable { 19959: public: 19959: 19959: 19959: enum ValueType { 19959: 19959: kValue, 19959: 19959: kMergeOperand, 19959: 19959: 19959: 19959: 19959: kBlobIndex, 19959: 19959: kWideColumnEntity, 19959: }; 19959: 19959: 19959: 19959: 19959: enum class Decision { 19959: 19959: kKeep, 19959: # 89 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: kRemove, 19959: 19959: 19959: 19959: 19959: 19959: kChangeValue, 19959: # 119 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: kRemoveAndSkipUntil, 19959: 19959: 19959: 19959: kChangeBlobIndex, 19959: 19959: 19959: 19959: kIOError, 19959: 19959: 19959: 19959: 19959: 19959: kPurge, 19959: 19959: 19959: 19959: 19959: 19959: 19959: kChangeWideColumnEntity, 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: kUndetermined, 19959: }; 19959: 19959: 19959: enum class BlobDecision { kKeep, kChangeValue, kCorruption, kIOError }; 19959: 19959: 19959: struct Context { 19959: 19959: 19959: bool is_full_compaction; 19959: 19959: 19959: bool is_manual_compaction; 19959: 19959: 19959: int input_start_level = kUnknownStartLevel; 19959: 19959: uint32_t column_family_id; 19959: 19959: TableFileCreationReason reason; 19959: 19959: 19959: 19959: 19959: TablePropertiesCollection input_table_properties; 19959: 19959: static const int kUnknownStartLevel = -1; 19959: }; 19959: 19959: virtual ~CompactionFilter() {} 19959: static const char* Type() { return "CompactionFilter"; } 19959: static Status CreateFromString(const ConfigOptions& config_options, 19959: const std::string& name, 19959: const CompactionFilter** result); 19959: # 201 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: virtual bool Filter(int , const Slice& , 19959: const Slice& , 19959: std::string* , 19959: bool* ) const { 19959: return false; 19959: } 19959: # 217 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: virtual bool FilterMergeOperand(int , const Slice& , 19959: const Slice& ) const { 19959: return false; 19959: } 19959: # 234 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: virtual Decision FilterV2(int level, const Slice& key, ValueType value_type, 19959: const Slice& existing_value, std::string* new_value, 19959: std::string* ) const { 19959: switch (value_type) { 19959: case ValueType::kValue: { 19959: bool value_changed = false; 19959: bool rv = Filter(level, key, existing_value, new_value, &value_changed); 19959: if (rv) { 19959: return Decision::kRemove; 19959: } 19959: return value_changed ? Decision::kChangeValue : Decision::kKeep; 19959: } 19959: 19959: case ValueType::kMergeOperand: { 19959: bool rv = FilterMergeOperand(level, key, existing_value); 19959: return rv ? Decision::kRemove : Decision::kKeep; 19959: } 19959: 19959: case ValueType::kBlobIndex: 19959: return Decision::kKeep; 19959: 19959: default: 19959: 19959: # 256 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 19959: (static_cast ( 19959: # 256 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: false 19959: # 256 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 256 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: "false" 19959: # 256 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 19959: , "./include/rocksdb/compaction_filter.h", 256, __extension__ __PRETTY_FUNCTION__)) 19959: # 256 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: ; 19959: return Decision::kKeep; 19959: } 19959: } 19959: # 281 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: virtual Decision FilterV3( 19959: int level, const Slice& key, ValueType value_type, 19959: const Slice* existing_value, const WideColumns* existing_columns, 19959: std::string* new_value, 19959: std::vector>* , 19959: std::string* skip_until) const { 19959: 19959: 19959: 19959: 19959: 19959: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 19959: (static_cast ( 19959: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: !existing_value || !existing_columns 19959: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: "!existing_value || !existing_columns" 19959: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 19959: , "./include/rocksdb/compaction_filter.h", 291, __extension__ __PRETTY_FUNCTION__)) 19959: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: ; 19959: 19959: # 292 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 19959: (static_cast ( 19959: # 292 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: value_type == ValueType::kWideColumnEntity || existing_value 19959: # 292 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 292 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: "value_type == ValueType::kWideColumnEntity || existing_value" 19959: # 292 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 19959: , "./include/rocksdb/compaction_filter.h", 292, __extension__ __PRETTY_FUNCTION__)) 19959: # 292 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: ; 19959: 19959: # 293 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 19959: (static_cast ( 19959: # 293 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: value_type != ValueType::kWideColumnEntity || existing_columns 19959: # 293 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 293 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: "value_type != ValueType::kWideColumnEntity || existing_columns" 19959: # 293 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 19959: , "./include/rocksdb/compaction_filter.h", 293, __extension__ __PRETTY_FUNCTION__)) 19959: # 293 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: ; 19959: 19959: if (value_type == ValueType::kWideColumnEntity) { 19959: return Decision::kKeep; 19959: } 19959: 19959: return FilterV2(level, key, value_type, *existing_value, new_value, 19959: skip_until); 19959: } 19959: 19959: 19959: virtual BlobDecision PrepareBlobOutput(const Slice& , 19959: const Slice& , 19959: std::string* ) const { 19959: return BlobDecision::kKeep; 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual bool IgnoreSnapshots() const { return true; } 19959: 19959: 19959: 19959: const char* Name() const override = 0; 19959: 19959: 19959: virtual bool IsStackedBlobDbInternalCompactionFilter() const { return false; } 19959: # 334 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: virtual Decision FilterBlobByKey(int , const Slice& , 19959: std::string* , 19959: std::string* ) const { 19959: return Decision::kUndetermined; 19959: } 19959: }; 19959: # 349 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 19959: class CompactionFilterFactory : public Customizable { 19959: public: 19959: virtual ~CompactionFilterFactory() {} 19959: static const char* Type() { return "CompactionFilterFactory"; } 19959: static Status CreateFromString( 19959: const ConfigOptions& config_options, const std::string& name, 19959: std::shared_ptr* result); 19959: 19959: 19959: 19959: 19959: virtual bool ShouldFilterTableFileCreation( 19959: TableFileCreationReason reason) const { 19959: 19959: 19959: return reason == TableFileCreationReason::kCompaction; 19959: } 19959: 19959: virtual std::unique_ptr CreateCompactionFilter( 19959: const CompactionFilter::Context& context) = 0; 19959: 19959: 19959: virtual const char* Name() const override = 0; 19959: }; 19959: 19959: } 19959: # 16 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 1 "/usr/include/c++/13/variant" 1 3 19959: # 32 "/usr/include/c++/13/variant" 3 19959: 19959: # 33 "/usr/include/c++/13/variant" 3 19959: # 58 "/usr/include/c++/13/variant" 3 19959: 19959: # 58 "/usr/include/c++/13/variant" 3 19959: namespace std __attribute__ ((__visibility__ ("default"))) 19959: { 19959: 19959: 19959: template class tuple; 19959: template class variant; 19959: template struct hash; 19959: 19959: template 19959: struct variant_size; 19959: 19959: template 19959: struct variant_size : variant_size<_Variant> {}; 19959: 19959: template 19959: struct variant_size : variant_size<_Variant> {}; 19959: 19959: template 19959: struct variant_size : variant_size<_Variant> {}; 19959: 19959: template 19959: struct variant_size> 19959: : std::integral_constant {}; 19959: 19959: template 19959: inline constexpr size_t variant_size_v = variant_size<_Variant>::value; 19959: 19959: template 19959: inline constexpr size_t 19959: variant_size_v> = sizeof...(_Types); 19959: 19959: template 19959: inline constexpr size_t 19959: variant_size_v> = sizeof...(_Types); 19959: 19959: template 19959: struct variant_alternative; 19959: 19959: template 19959: struct variant_alternative<_Np, variant<_Types...>> 19959: { 19959: static_assert(_Np < sizeof...(_Types)); 19959: 19959: using type = typename _Nth_type<_Np, _Types...>::type; 19959: }; 19959: 19959: template 19959: using variant_alternative_t = 19959: typename variant_alternative<_Np, _Variant>::type; 19959: 19959: template 19959: struct variant_alternative<_Np, const _Variant> 19959: { using type = const variant_alternative_t<_Np, _Variant>; }; 19959: 19959: template 19959: struct variant_alternative<_Np, volatile _Variant> 19959: { using type = volatile variant_alternative_t<_Np, _Variant>; }; 19959: 19959: template 19959: struct variant_alternative<_Np, const volatile _Variant> 19959: { using type = const volatile variant_alternative_t<_Np, _Variant>; }; 19959: 19959: inline constexpr size_t variant_npos = -1; 19959: 19959: template 19959: constexpr variant_alternative_t<_Np, variant<_Types...>>& 19959: get(variant<_Types...>&); 19959: 19959: template 19959: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 19959: get(variant<_Types...>&&); 19959: 19959: template 19959: constexpr variant_alternative_t<_Np, variant<_Types...>> const& 19959: get(const variant<_Types...>&); 19959: 19959: template 19959: constexpr variant_alternative_t<_Np, variant<_Types...>> const&& 19959: get(const variant<_Types...>&&); 19959: 19959: template 19959: constexpr decltype(auto) 19959: __do_visit(_Visitor&& __visitor, _Variants&&... __variants); 19959: 19959: template 19959: 19959: decltype(auto) 19959: __variant_cast(_Tp&& __rhs) 19959: { 19959: if constexpr (is_lvalue_reference_v<_Tp>) 19959: { 19959: if constexpr (is_const_v>) 19959: return static_cast&>(__rhs); 19959: else 19959: return static_cast&>(__rhs); 19959: } 19959: else 19959: return static_cast&&>(__rhs); 19959: } 19959: 19959: namespace __detail 19959: { 19959: namespace __variant 19959: { 19959: 19959: struct __variant_cookie {}; 19959: 19959: struct __variant_idx_cookie { using type = __variant_idx_cookie; }; 19959: 19959: template struct __deduce_visit_result { using type = _Tp; }; 19959: 19959: 19959: template 19959: constexpr void 19959: __raw_visit(_Visitor&& __visitor, _Variants&&... __variants) 19959: { 19959: std::__do_visit<__variant_cookie>(std::forward<_Visitor>(__visitor), 19959: std::forward<_Variants>(__variants)...); 19959: } 19959: 19959: 19959: template 19959: constexpr void 19959: __raw_idx_visit(_Visitor&& __visitor, _Variants&&... __variants) 19959: { 19959: std::__do_visit<__variant_idx_cookie>(std::forward<_Visitor>(__visitor), 19959: std::forward<_Variants>(__variants)...); 19959: } 19959: 19959: 19959: 19959: template 19959: constexpr std::variant<_Types...>& 19959: __as(std::variant<_Types...>& __v) noexcept 19959: { return __v; } 19959: 19959: template 19959: constexpr const std::variant<_Types...>& 19959: __as(const std::variant<_Types...>& __v) noexcept 19959: { return __v; } 19959: 19959: template 19959: constexpr std::variant<_Types...>&& 19959: __as(std::variant<_Types...>&& __v) noexcept 19959: { return std::move(__v); } 19959: 19959: template 19959: constexpr const std::variant<_Types...>&& 19959: __as(const std::variant<_Types...>&& __v) noexcept 19959: { return std::move(__v); } 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template> 19959: struct _Uninitialized; 19959: 19959: template 19959: struct _Uninitialized<_Type, true> 19959: { 19959: template 19959: constexpr 19959: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 19959: : _M_storage(std::forward<_Args>(__args)...) 19959: { } 19959: 19959: constexpr const _Type& _M_get() const & noexcept 19959: { return _M_storage; } 19959: 19959: constexpr _Type& _M_get() & noexcept 19959: { return _M_storage; } 19959: 19959: constexpr const _Type&& _M_get() const && noexcept 19959: { return std::move(_M_storage); } 19959: 19959: constexpr _Type&& _M_get() && noexcept 19959: { return std::move(_M_storage); } 19959: 19959: _Type _M_storage; 19959: }; 19959: 19959: template 19959: struct _Uninitialized<_Type, false> 19959: { 19959: # 278 "/usr/include/c++/13/variant" 3 19959: template 19959: constexpr 19959: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 19959: { 19959: ::new ((void*)std::addressof(_M_storage)) 19959: _Type(std::forward<_Args>(__args)...); 19959: } 19959: 19959: const _Type& _M_get() const & noexcept 19959: { return *_M_storage._M_ptr(); } 19959: 19959: _Type& _M_get() & noexcept 19959: { return *_M_storage._M_ptr(); } 19959: 19959: const _Type&& _M_get() const && noexcept 19959: { return std::move(*_M_storage._M_ptr()); } 19959: 19959: _Type&& _M_get() && noexcept 19959: { return std::move(*_M_storage._M_ptr()); } 19959: 19959: __gnu_cxx::__aligned_membuf<_Type> _M_storage; 19959: 19959: }; 19959: 19959: template 19959: constexpr decltype(auto) 19959: __get_n(_Union&& __u) noexcept 19959: { 19959: if constexpr (_Np == 0) 19959: return std::forward<_Union>(__u)._M_first._M_get(); 19959: else if constexpr (_Np == 1) 19959: return std::forward<_Union>(__u)._M_rest._M_first._M_get(); 19959: else if constexpr (_Np == 2) 19959: return std::forward<_Union>(__u)._M_rest._M_rest._M_first._M_get(); 19959: else 19959: return __variant::__get_n<_Np - 3>( 19959: std::forward<_Union>(__u)._M_rest._M_rest._M_rest); 19959: } 19959: 19959: 19959: template 19959: constexpr decltype(auto) 19959: __get(_Variant&& __v) noexcept 19959: { return __variant::__get_n<_Np>(std::forward<_Variant>(__v)._M_u); } 19959: 19959: 19959: template 19959: constexpr decltype(auto) 19959: __construct_n(_Union& __u) noexcept 19959: { 19959: if constexpr (_Np == 0) 19959: return &__u._M_first; 19959: else if constexpr (_Np == 1) 19959: { 19959: std::_Construct(&__u._M_rest); 19959: return &__u._M_rest._M_first; 19959: } 19959: else if constexpr (_Np == 2) 19959: { 19959: std::_Construct(&__u._M_rest); 19959: std::_Construct(&__u._M_rest._M_rest); 19959: return &__u._M_rest._M_rest._M_first; 19959: } 19959: else 19959: { 19959: std::_Construct(&__u._M_rest); 19959: std::_Construct(&__u._M_rest._M_rest); 19959: std::_Construct(&__u._M_rest._M_rest._M_rest); 19959: return __variant::__construct_n<_Np - 3>(__u._M_rest._M_rest._M_rest); 19959: } 19959: } 19959: 19959: template 19959: struct _Traits 19959: { 19959: static constexpr bool _S_default_ctor = 19959: is_default_constructible_v::type>; 19959: static constexpr bool _S_copy_ctor = 19959: (is_copy_constructible_v<_Types> && ...); 19959: static constexpr bool _S_move_ctor = 19959: (is_move_constructible_v<_Types> && ...); 19959: static constexpr bool _S_copy_assign = 19959: _S_copy_ctor 19959: && (is_copy_assignable_v<_Types> && ...); 19959: static constexpr bool _S_move_assign = 19959: _S_move_ctor 19959: && (is_move_assignable_v<_Types> && ...); 19959: 19959: static constexpr bool _S_trivial_dtor = 19959: (is_trivially_destructible_v<_Types> && ...); 19959: static constexpr bool _S_trivial_copy_ctor = 19959: (is_trivially_copy_constructible_v<_Types> && ...); 19959: static constexpr bool _S_trivial_move_ctor = 19959: (is_trivially_move_constructible_v<_Types> && ...); 19959: static constexpr bool _S_trivial_copy_assign = 19959: _S_trivial_dtor && _S_trivial_copy_ctor 19959: && (is_trivially_copy_assignable_v<_Types> && ...); 19959: static constexpr bool _S_trivial_move_assign = 19959: _S_trivial_dtor && _S_trivial_move_ctor 19959: && (is_trivially_move_assignable_v<_Types> && ...); 19959: 19959: 19959: 19959: static constexpr bool _S_nothrow_default_ctor = 19959: is_nothrow_default_constructible_v< 19959: typename _Nth_type<0, _Types...>::type>; 19959: static constexpr bool _S_nothrow_copy_ctor = false; 19959: static constexpr bool _S_nothrow_move_ctor = 19959: (is_nothrow_move_constructible_v<_Types> && ...); 19959: static constexpr bool _S_nothrow_copy_assign = false; 19959: static constexpr bool _S_nothrow_move_assign = 19959: _S_nothrow_move_ctor 19959: && (is_nothrow_move_assignable_v<_Types> && ...); 19959: }; 19959: 19959: 19959: template 19959: union _Variadic_union 19959: { 19959: _Variadic_union() = default; 19959: 19959: template 19959: _Variadic_union(in_place_index_t<_Np>, _Args&&...) = delete; 19959: }; 19959: 19959: template 19959: union _Variadic_union<_First, _Rest...> 19959: { 19959: constexpr _Variadic_union() : _M_rest() { } 19959: 19959: template 19959: constexpr 19959: _Variadic_union(in_place_index_t<0>, _Args&&... __args) 19959: : _M_first(in_place_index<0>, std::forward<_Args>(__args)...) 19959: { } 19959: 19959: template 19959: constexpr 19959: _Variadic_union(in_place_index_t<_Np>, _Args&&... __args) 19959: : _M_rest(in_place_index<_Np-1>, std::forward<_Args>(__args)...) 19959: { } 19959: # 434 "/usr/include/c++/13/variant" 3 19959: _Uninitialized<_First> _M_first; 19959: _Variadic_union<_Rest...> _M_rest; 19959: }; 19959: 19959: 19959: 19959: 19959: 19959: 19959: template 19959: struct _Never_valueless_alt 19959: : __and_, is_trivially_copyable<_Tp>> 19959: { }; 19959: # 458 "/usr/include/c++/13/variant" 3 19959: template 19959: constexpr bool __never_valueless() 19959: { 19959: return _Traits<_Types...>::_S_move_assign 19959: && (_Never_valueless_alt<_Types>::value && ...); 19959: } 19959: 19959: 19959: template 19959: struct _Variant_storage; 19959: 19959: template 19959: using __select_index = 19959: typename __select_int::_Select_int_base::type::value_type; 19959: 19959: template 19959: struct _Variant_storage 19959: { 19959: constexpr 19959: _Variant_storage() 19959: : _M_index(static_cast<__index_type>(variant_npos)) 19959: { } 19959: 19959: template 19959: constexpr 19959: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 19959: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 19959: _M_index{_Np} 19959: { } 19959: 19959: constexpr void 19959: _M_reset() 19959: { 19959: if (!_M_valid()) [[unlikely]] 19959: return; 19959: 19959: std::__do_visit([](auto&& __this_mem) mutable 19959: { 19959: std::_Destroy(std::__addressof(__this_mem)); 19959: }, __variant_cast<_Types...>(*this)); 19959: 19959: _M_index = static_cast<__index_type>(variant_npos); 19959: } 19959: 19959: 19959: ~_Variant_storage() 19959: { _M_reset(); } 19959: 19959: constexpr bool 19959: _M_valid() const noexcept 19959: { 19959: if constexpr (__variant::__never_valueless<_Types...>()) 19959: return true; 19959: return this->_M_index != __index_type(variant_npos); 19959: } 19959: 19959: _Variadic_union<_Types...> _M_u; 19959: using __index_type = __select_index<_Types...>; 19959: __index_type _M_index; 19959: }; 19959: 19959: template 19959: struct _Variant_storage 19959: { 19959: constexpr 19959: _Variant_storage() 19959: : _M_index(static_cast<__index_type>(variant_npos)) 19959: { } 19959: 19959: template 19959: constexpr 19959: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 19959: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 19959: _M_index{_Np} 19959: { } 19959: 19959: constexpr void 19959: _M_reset() noexcept 19959: { _M_index = static_cast<__index_type>(variant_npos); } 19959: 19959: constexpr bool 19959: _M_valid() const noexcept 19959: { 19959: if constexpr (__variant::__never_valueless<_Types...>()) 19959: return true; 19959: 19959: 19959: 19959: 19959: 19959: 19959: return this->_M_index != static_cast<__index_type>(variant_npos); 19959: } 19959: 19959: _Variadic_union<_Types...> _M_u; 19959: using __index_type = __select_index<_Types...>; 19959: __index_type _M_index; 19959: }; 19959: 19959: 19959: template 19959: 19959: inline void 19959: __emplace(_Variant_storage<_Triv, _Types...>& __v, _Args&&... __args) 19959: { 19959: __v._M_reset(); 19959: auto* __addr = __variant::__construct_n<_Np>(__v._M_u); 19959: std::_Construct(__addr, in_place_index<0>, 19959: std::forward<_Args>(__args)...); 19959: 19959: __v._M_index = _Np; 19959: } 19959: 19959: template 19959: using _Variant_storage_alias = 19959: _Variant_storage<_Traits<_Types...>::_S_trivial_dtor, _Types...>; 19959: 19959: 19959: 19959: 19959: template 19959: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 19959: { 19959: using _Base = _Variant_storage_alias<_Types...>; 19959: using _Base::_Base; 19959: 19959: 19959: _Copy_ctor_base(const _Copy_ctor_base& __rhs) 19959: noexcept(_Traits<_Types...>::_S_nothrow_copy_ctor) 19959: { 19959: __variant::__raw_idx_visit( 19959: [this](auto&& __rhs_mem, auto __rhs_index) mutable 19959: { 19959: constexpr size_t __j = __rhs_index; 19959: if constexpr (__j != variant_npos) 19959: std::_Construct(std::__addressof(this->_M_u), 19959: in_place_index<__j>, __rhs_mem); 19959: }, __variant_cast<_Types...>(__rhs)); 19959: this->_M_index = __rhs._M_index; 19959: } 19959: 19959: _Copy_ctor_base(_Copy_ctor_base&&) = default; 19959: _Copy_ctor_base& operator=(const _Copy_ctor_base&) = default; 19959: _Copy_ctor_base& operator=(_Copy_ctor_base&&) = default; 19959: }; 19959: 19959: template 19959: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 19959: { 19959: using _Base = _Variant_storage_alias<_Types...>; 19959: using _Base::_Base; 19959: }; 19959: 19959: template 19959: using _Copy_ctor_alias = 19959: _Copy_ctor_base<_Traits<_Types...>::_S_trivial_copy_ctor, _Types...>; 19959: 19959: template 19959: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 19959: { 19959: using _Base = _Copy_ctor_alias<_Types...>; 19959: using _Base::_Base; 19959: 19959: 19959: _Move_ctor_base(_Move_ctor_base&& __rhs) 19959: noexcept(_Traits<_Types...>::_S_nothrow_move_ctor) 19959: { 19959: __variant::__raw_idx_visit( 19959: [this](auto&& __rhs_mem, auto __rhs_index) mutable 19959: { 19959: constexpr size_t __j = __rhs_index; 19959: if constexpr (__j != variant_npos) 19959: std::_Construct(std::__addressof(this->_M_u), 19959: in_place_index<__j>, 19959: std::forward(__rhs_mem)); 19959: }, __variant_cast<_Types...>(std::move(__rhs))); 19959: this->_M_index = __rhs._M_index; 19959: } 19959: 19959: _Move_ctor_base(const _Move_ctor_base&) = default; 19959: _Move_ctor_base& operator=(const _Move_ctor_base&) = default; 19959: _Move_ctor_base& operator=(_Move_ctor_base&&) = default; 19959: }; 19959: 19959: template 19959: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 19959: { 19959: using _Base = _Copy_ctor_alias<_Types...>; 19959: using _Base::_Base; 19959: }; 19959: 19959: template 19959: using _Move_ctor_alias = 19959: _Move_ctor_base<_Traits<_Types...>::_S_trivial_move_ctor, _Types...>; 19959: 19959: template 19959: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 19959: { 19959: using _Base = _Move_ctor_alias<_Types...>; 19959: using _Base::_Base; 19959: 19959: 19959: _Copy_assign_base& 19959: operator=(const _Copy_assign_base& __rhs) 19959: noexcept(_Traits<_Types...>::_S_nothrow_copy_assign) 19959: { 19959: __variant::__raw_idx_visit( 19959: [this](auto&& __rhs_mem, auto __rhs_index) mutable 19959: { 19959: constexpr size_t __j = __rhs_index; 19959: if constexpr (__j == variant_npos) 19959: this->_M_reset(); 19959: else if (this->_M_index == __j) 19959: __variant::__get<__j>(*this) = __rhs_mem; 19959: else 19959: { 19959: using _Tj = typename _Nth_type<__j, _Types...>::type; 19959: if constexpr (is_nothrow_copy_constructible_v<_Tj> 19959: || !is_nothrow_move_constructible_v<_Tj>) 19959: __variant::__emplace<__j>(*this, __rhs_mem); 19959: else 19959: { 19959: using _Variant = variant<_Types...>; 19959: _Variant& __self = __variant_cast<_Types...>(*this); 19959: __self = _Variant(in_place_index<__j>, __rhs_mem); 19959: } 19959: } 19959: }, __variant_cast<_Types...>(__rhs)); 19959: return *this; 19959: } 19959: 19959: _Copy_assign_base(const _Copy_assign_base&) = default; 19959: _Copy_assign_base(_Copy_assign_base&&) = default; 19959: _Copy_assign_base& operator=(_Copy_assign_base&&) = default; 19959: }; 19959: 19959: template 19959: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 19959: { 19959: using _Base = _Move_ctor_alias<_Types...>; 19959: using _Base::_Base; 19959: }; 19959: 19959: template 19959: using _Copy_assign_alias = 19959: _Copy_assign_base<_Traits<_Types...>::_S_trivial_copy_assign, _Types...>; 19959: 19959: template 19959: struct _Move_assign_base : _Copy_assign_alias<_Types...> 19959: { 19959: using _Base = _Copy_assign_alias<_Types...>; 19959: using _Base::_Base; 19959: 19959: 19959: _Move_assign_base& 19959: operator=(_Move_assign_base&& __rhs) 19959: noexcept(_Traits<_Types...>::_S_nothrow_move_assign) 19959: { 19959: __variant::__raw_idx_visit( 19959: [this](auto&& __rhs_mem, auto __rhs_index) mutable 19959: { 19959: constexpr size_t __j = __rhs_index; 19959: if constexpr (__j != variant_npos) 19959: { 19959: if (this->_M_index == __j) 19959: __variant::__get<__j>(*this) = std::move(__rhs_mem); 19959: else 19959: { 19959: using _Tj = typename _Nth_type<__j, _Types...>::type; 19959: if constexpr (is_nothrow_move_constructible_v<_Tj>) 19959: __variant::__emplace<__j>(*this, std::move(__rhs_mem)); 19959: else 19959: { 19959: using _Variant = variant<_Types...>; 19959: _Variant& __self = __variant_cast<_Types...>(*this); 19959: __self.template emplace<__j>(std::move(__rhs_mem)); 19959: } 19959: } 19959: } 19959: else 19959: this->_M_reset(); 19959: }, __variant_cast<_Types...>(__rhs)); 19959: return *this; 19959: } 19959: 19959: _Move_assign_base(const _Move_assign_base&) = default; 19959: _Move_assign_base(_Move_assign_base&&) = default; 19959: _Move_assign_base& operator=(const _Move_assign_base&) = default; 19959: }; 19959: 19959: template 19959: struct _Move_assign_base : _Copy_assign_alias<_Types...> 19959: { 19959: using _Base = _Copy_assign_alias<_Types...>; 19959: using _Base::_Base; 19959: }; 19959: 19959: template 19959: using _Move_assign_alias = 19959: _Move_assign_base<_Traits<_Types...>::_S_trivial_move_assign, _Types...>; 19959: 19959: template 19959: struct _Variant_base : _Move_assign_alias<_Types...> 19959: { 19959: using _Base = _Move_assign_alias<_Types...>; 19959: 19959: constexpr 19959: _Variant_base() noexcept(_Traits<_Types...>::_S_nothrow_default_ctor) 19959: : _Variant_base(in_place_index<0>) { } 19959: 19959: template 19959: constexpr explicit 19959: _Variant_base(in_place_index_t<_Np> __i, _Args&&... __args) 19959: : _Base(__i, std::forward<_Args>(__args)...) 19959: { } 19959: 19959: _Variant_base(const _Variant_base&) = default; 19959: _Variant_base(_Variant_base&&) = default; 19959: _Variant_base& operator=(const _Variant_base&) = default; 19959: _Variant_base& operator=(_Variant_base&&) = default; 19959: }; 19959: 19959: template 19959: inline constexpr bool __exactly_once 19959: = std::__find_uniq_type_in_pack<_Tp, _Types...>() < sizeof...(_Types); 19959: 19959: 19959: template struct _Arr { _Ti _M_x[1]; }; 19959: 19959: 19959: template 19959: struct _Build_FUN 19959: { 19959: 19959: 19959: void _S_fun() = delete; 19959: }; 19959: 19959: 19959: template 19959: struct _Build_FUN<_Ind, _Tp, _Ti, 19959: void_t{{std::declval<_Tp>()}})>> 19959: { 19959: 19959: static integral_constant _S_fun(_Ti); 19959: }; 19959: 19959: template>> 19959: struct _Build_FUNs; 19959: 19959: template 19959: struct _Build_FUNs<_Tp, variant<_Ti...>, index_sequence<_Ind...>> 19959: : _Build_FUN<_Ind, _Tp, _Ti>... 19959: { 19959: using _Build_FUN<_Ind, _Tp, _Ti>::_S_fun...; 19959: }; 19959: 19959: 19959: 19959: template 19959: using _FUN_type 19959: = decltype(_Build_FUNs<_Tp, _Variant>::_S_fun(std::declval<_Tp>())); 19959: 19959: 19959: template 19959: inline constexpr size_t 19959: __accepted_index = variant_npos; 19959: 19959: template 19959: inline constexpr size_t 19959: __accepted_index<_Tp, _Variant, void_t<_FUN_type<_Tp, _Variant>>> 19959: = _FUN_type<_Tp, _Variant>::value; 19959: 19959: template> 19959: inline constexpr bool 19959: __extra_visit_slot_needed = false; 19959: 19959: template 19959: inline constexpr bool 19959: __extra_visit_slot_needed<__variant_cookie, _Var, variant<_Types...>> 19959: = !__variant::__never_valueless<_Types...>(); 19959: 19959: template 19959: inline constexpr bool 19959: __extra_visit_slot_needed<__variant_idx_cookie, _Var, variant<_Types...>> 19959: = !__variant::__never_valueless<_Types...>(); 19959: 19959: 19959: template 19959: struct _Multi_array; 19959: 19959: 19959: template 19959: struct _Multi_array<_Tp> 19959: { 19959: template 19959: struct __untag_result 19959: : false_type 19959: { using element_type = _Tp; }; 19959: 19959: #pragma GCC diagnostic push 19959: #pragma GCC diagnostic ignored "-Wignored-qualifiers" 19959: template 19959: struct __untag_result 19959: : false_type 19959: { using element_type = void(*)(_Args...); }; 19959: #pragma GCC diagnostic pop 19959: 19959: template 19959: struct __untag_result<__variant_cookie(*)(_Args...)> 19959: : false_type 19959: { using element_type = void(*)(_Args...); }; 19959: 19959: template 19959: struct __untag_result<__variant_idx_cookie(*)(_Args...)> 19959: : false_type 19959: { using element_type = void(*)(_Args...); }; 19959: 19959: template 19959: struct __untag_result<__deduce_visit_result<_Res>(*)(_Args...)> 19959: : true_type 19959: { using element_type = _Res(*)(_Args...); }; 19959: 19959: using __result_is_deduced = __untag_result<_Tp>; 19959: 19959: constexpr const typename __untag_result<_Tp>::element_type& 19959: _M_access() const 19959: { return _M_data; } 19959: 19959: typename __untag_result<_Tp>::element_type _M_data; 19959: }; 19959: 19959: 19959: template 19959: struct _Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...> 19959: { 19959: static constexpr size_t __index = 19959: sizeof...(_Variants) - sizeof...(__rest) - 1; 19959: 19959: using _Variant = typename _Nth_type<__index, _Variants...>::type; 19959: 19959: static constexpr int __do_cookie = 19959: __extra_visit_slot_needed<_Ret, _Variant> ? 1 : 0; 19959: 19959: using _Tp = _Ret(*)(_Visitor, _Variants...); 19959: 19959: template 19959: constexpr decltype(auto) 19959: _M_access(size_t __first_index, _Args... __rest_indices) const 19959: { 19959: return _M_arr[__first_index + __do_cookie] 19959: ._M_access(__rest_indices...); 19959: } 19959: 19959: _Multi_array<_Tp, __rest...> _M_arr[__first + __do_cookie]; 19959: }; 19959: # 949 "/usr/include/c++/13/variant" 3 19959: template 19959: struct __gen_vtable_impl; 19959: # 959 "/usr/include/c++/13/variant" 3 19959: template 19959: struct __gen_vtable_impl< 19959: _Multi_array<_Result_type (*)(_Visitor, _Variants...), __dimensions...>, 19959: std::index_sequence<__indices...>> 19959: { 19959: using _Next = 19959: remove_reference_t::type>; 19959: using _Array_type = 19959: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 19959: __dimensions...>; 19959: 19959: static constexpr _Array_type 19959: _S_apply() 19959: { 19959: _Array_type __vtable{}; 19959: _S_apply_all_alts( 19959: __vtable, make_index_sequence>()); 19959: return __vtable; 19959: } 19959: 19959: template 19959: static constexpr void 19959: _S_apply_all_alts(_Array_type& __vtable, 19959: std::index_sequence<__var_indices...>) 19959: { 19959: if constexpr (__extra_visit_slot_needed<_Result_type, _Next>) 19959: (_S_apply_single_alt( 19959: __vtable._M_arr[__var_indices + 1], 19959: &(__vtable._M_arr[0])), ...); 19959: else 19959: (_S_apply_single_alt( 19959: __vtable._M_arr[__var_indices]), ...); 19959: } 19959: 19959: template 19959: static constexpr void 19959: _S_apply_single_alt(_Tp& __element, _Tp* __cookie_element = nullptr) 19959: { 19959: if constexpr (__do_cookie) 19959: { 19959: __element = __gen_vtable_impl< 19959: _Tp, 19959: std::index_sequence<__indices..., __index>>::_S_apply(); 19959: *__cookie_element = __gen_vtable_impl< 19959: _Tp, 19959: std::index_sequence<__indices..., variant_npos>>::_S_apply(); 19959: } 19959: else 19959: { 19959: auto __tmp_element = __gen_vtable_impl< 19959: remove_reference_t, 19959: std::index_sequence<__indices..., __index>>::_S_apply(); 19959: static_assert(is_same_v<_Tp, decltype(__tmp_element)>, 19959: "std::visit requires the visitor to have the same " 19959: "return type for all alternatives of a variant"); 19959: __element = __tmp_element; 19959: } 19959: } 19959: }; 19959: 19959: 19959: 19959: 19959: template 19959: struct __gen_vtable_impl< 19959: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>, 19959: std::index_sequence<__indices...>> 19959: { 19959: using _Array_type = 19959: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>; 19959: 19959: template 19959: static constexpr decltype(auto) 19959: __element_by_index_or_cookie(_Variant&& __var) noexcept 19959: { 19959: if constexpr (__index != variant_npos) 19959: return __variant::__get<__index>(std::forward<_Variant>(__var)); 19959: else 19959: return __variant_cookie{}; 19959: } 19959: 19959: static constexpr decltype(auto) 19959: __visit_invoke(_Visitor&& __visitor, _Variants... __vars) 19959: { 19959: if constexpr (is_same_v<_Result_type, __variant_idx_cookie>) 19959: 19959: 19959: std::__invoke(std::forward<_Visitor>(__visitor), 19959: __element_by_index_or_cookie<__indices>( 19959: std::forward<_Variants>(__vars))..., 19959: integral_constant()...); 19959: else if constexpr (is_same_v<_Result_type, __variant_cookie>) 19959: 19959: std::__invoke(std::forward<_Visitor>(__visitor), 19959: __element_by_index_or_cookie<__indices>( 19959: std::forward<_Variants>(__vars))...); 19959: else if constexpr (_Array_type::__result_is_deduced::value) 19959: 19959: return std::__invoke(std::forward<_Visitor>(__visitor), 19959: __element_by_index_or_cookie<__indices>( 19959: std::forward<_Variants>(__vars))...); 19959: else 19959: return std::__invoke_r<_Result_type>( 19959: std::forward<_Visitor>(__visitor), 19959: __variant::__get<__indices>(std::forward<_Variants>(__vars))...); 19959: } 19959: 19959: static constexpr auto 19959: _S_apply() 19959: { 19959: if constexpr (_Array_type::__result_is_deduced::value) 19959: { 19959: constexpr bool __visit_ret_type_mismatch = 19959: !is_same_v(), 19959: std::declval<_Variants>()...))>; 19959: if constexpr (__visit_ret_type_mismatch) 19959: { 19959: struct __cannot_match {}; 19959: return __cannot_match{}; 19959: } 19959: else 19959: return _Array_type{&__visit_invoke}; 19959: } 19959: else 19959: return _Array_type{&__visit_invoke}; 19959: } 19959: }; 19959: 19959: template 19959: struct __gen_vtable 19959: { 19959: using _Array_type = 19959: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 19959: variant_size_v>...>; 19959: 19959: static constexpr _Array_type _S_vtable 19959: = __gen_vtable_impl<_Array_type, std::index_sequence<>>::_S_apply(); 19959: }; 19959: 19959: template 19959: struct _Base_dedup : public _Tp { }; 19959: 19959: template 19959: struct _Variant_hash_base; 19959: 19959: template 19959: struct _Variant_hash_base, 19959: std::index_sequence<__indices...>> 19959: : _Base_dedup<__indices, __poison_hash>>... { }; 19959: 19959: 19959: template())), 19959: typename _Tp = variant_alternative_t<_Np, remove_reference_t<_AsV>>> 19959: using __get_t 19959: = __conditional_t, _Tp&, _Tp&&>; 19959: 19959: 19959: template 19959: using __visit_result_t 19959: = invoke_result_t<_Visitor, __get_t<0, _Variants>...>; 19959: 19959: template 19959: constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...); 19959: 19959: template 19959: constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>) 19959: { 19959: return __same_types< 19959: invoke_result_t<_Visitor, __get_t<_Idxs, _Variant>>... 19959: >; 19959: } 19959: 19959: } 19959: } 19959: 19959: template 19959: constexpr bool 19959: holds_alternative(const variant<_Types...>& __v) noexcept 19959: { 19959: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 19959: "T must occur exactly once in alternatives"); 19959: return __v.index() == std::__find_uniq_type_in_pack<_Tp, _Types...>(); 19959: } 19959: 19959: template 19959: constexpr _Tp& 19959: get(variant<_Types...>& __v) 19959: { 19959: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 19959: "T must occur exactly once in alternatives"); 19959: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 19959: return std::get<__n>(__v); 19959: } 19959: 19959: template 19959: constexpr _Tp&& 19959: get(variant<_Types...>&& __v) 19959: { 19959: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 19959: "T must occur exactly once in alternatives"); 19959: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 19959: return std::get<__n>(std::move(__v)); 19959: } 19959: 19959: template 19959: constexpr const _Tp& 19959: get(const variant<_Types...>& __v) 19959: { 19959: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 19959: "T must occur exactly once in alternatives"); 19959: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 19959: return std::get<__n>(__v); 19959: } 19959: 19959: template 19959: constexpr const _Tp&& 19959: get(const variant<_Types...>&& __v) 19959: { 19959: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 19959: "T must occur exactly once in alternatives"); 19959: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 19959: return std::get<__n>(std::move(__v)); 19959: } 19959: 19959: template 19959: constexpr add_pointer_t>> 19959: get_if(variant<_Types...>* __ptr) noexcept 19959: { 19959: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 19959: static_assert(_Np < sizeof...(_Types), 19959: "The index must be in [0, number of alternatives)"); 19959: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 19959: if (__ptr && __ptr->index() == _Np) 19959: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 19959: return nullptr; 19959: } 19959: 19959: template 19959: constexpr 19959: add_pointer_t>> 19959: get_if(const variant<_Types...>* __ptr) noexcept 19959: { 19959: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 19959: static_assert(_Np < sizeof...(_Types), 19959: "The index must be in [0, number of alternatives)"); 19959: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 19959: if (__ptr && __ptr->index() == _Np) 19959: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 19959: return nullptr; 19959: } 19959: 19959: template 19959: constexpr add_pointer_t<_Tp> 19959: get_if(variant<_Types...>* __ptr) noexcept 19959: { 19959: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 19959: "T must occur exactly once in alternatives"); 19959: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 19959: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 19959: return std::get_if<__n>(__ptr); 19959: } 19959: 19959: template 19959: constexpr add_pointer_t 19959: get_if(const variant<_Types...>* __ptr) noexcept 19959: { 19959: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 19959: "T must occur exactly once in alternatives"); 19959: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 19959: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 19959: return std::get_if<__n>(__ptr); 19959: } 19959: 19959: struct monostate { }; 19959: # 1264 "/usr/include/c++/13/variant" 3 19959: template constexpr bool operator <(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem < __rhs_mem; } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); }, __rhs); return __ret; } 19959: template constexpr bool operator <=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem <= __rhs_mem; } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); }, __rhs); return __ret; } 19959: template constexpr bool operator ==(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem == __rhs_mem; } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); }, __rhs); return __ret; } 19959: template constexpr bool operator !=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem != __rhs_mem; } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); }, __rhs); return __ret; } 19959: template constexpr bool operator >=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem >= __rhs_mem; } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); }, __rhs); return __ret; } 19959: template constexpr bool operator >(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem > __rhs_mem; } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); }, __rhs); return __ret; } 19959: 19959: 19959: 19959: constexpr bool operator==(monostate, monostate) noexcept { return true; } 19959: # 1305 "/usr/include/c++/13/variant" 3 19959: constexpr bool operator!=(monostate, monostate) noexcept { return false; } 19959: constexpr bool operator<(monostate, monostate) noexcept { return false; } 19959: constexpr bool operator>(monostate, monostate) noexcept { return false; } 19959: constexpr bool operator<=(monostate, monostate) noexcept { return true; } 19959: constexpr bool operator>=(monostate, monostate) noexcept { return true; } 19959: 19959: 19959: template 19959: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 19959: visit(_Visitor&&, _Variants&&...); 19959: 19959: template 19959: 19959: inline enable_if_t<(is_move_constructible_v<_Types> && ...) 19959: && (is_swappable_v<_Types> && ...)> 19959: swap(variant<_Types...>& __lhs, variant<_Types...>& __rhs) 19959: noexcept(noexcept(__lhs.swap(__rhs))) 19959: { __lhs.swap(__rhs); } 19959: 19959: template 19959: enable_if_t && ...) 19959: && (is_swappable_v<_Types> && ...))> 19959: swap(variant<_Types...>&, variant<_Types...>&) = delete; 19959: 19959: class bad_variant_access : public exception 19959: { 19959: public: 19959: bad_variant_access() noexcept { } 19959: 19959: const char* what() const noexcept override 19959: { return _M_reason; } 19959: 19959: private: 19959: bad_variant_access(const char* __reason) noexcept : _M_reason(__reason) { } 19959: 19959: 19959: const char* _M_reason = "bad variant access"; 19959: 19959: friend void __throw_bad_variant_access(const char* __what); 19959: }; 19959: 19959: 19959: inline void 19959: __throw_bad_variant_access(const char* __what) 19959: { (throw (bad_variant_access(__what))); } 19959: 19959: inline void 19959: __throw_bad_variant_access(bool __valueless) 19959: { 19959: if (__valueless) [[__unlikely__]] 19959: __throw_bad_variant_access("std::get: variant is valueless"); 19959: else 19959: __throw_bad_variant_access("std::get: wrong index for variant"); 19959: } 19959: 19959: template 19959: class variant 19959: : private __detail::__variant::_Variant_base<_Types...>, 19959: private _Enable_default_constructor< 19959: __detail::__variant::_Traits<_Types...>::_S_default_ctor, 19959: variant<_Types...>>, 19959: private _Enable_copy_move< 19959: __detail::__variant::_Traits<_Types...>::_S_copy_ctor, 19959: __detail::__variant::_Traits<_Types...>::_S_copy_assign, 19959: __detail::__variant::_Traits<_Types...>::_S_move_ctor, 19959: __detail::__variant::_Traits<_Types...>::_S_move_assign, 19959: variant<_Types...>> 19959: { 19959: private: 19959: template 19959: friend decltype(auto) 19959: __variant_cast(_Tp&&); 19959: 19959: static_assert(sizeof...(_Types) > 0, 19959: "variant must have at least one alternative"); 19959: static_assert(!(std::is_reference_v<_Types> || ...), 19959: "variant must have no reference alternative"); 19959: static_assert(!(std::is_void_v<_Types> || ...), 19959: "variant must have no void alternative"); 19959: 19959: using _Base = __detail::__variant::_Variant_base<_Types...>; 19959: using _Default_ctor_enabler = 19959: _Enable_default_constructor< 19959: __detail::__variant::_Traits<_Types...>::_S_default_ctor, 19959: variant<_Types...>>; 19959: 19959: template 19959: static constexpr bool __not_self 19959: = !is_same_v<__remove_cvref_t<_Tp>, variant>; 19959: 19959: template 19959: static constexpr bool 19959: __exactly_once = __detail::__variant::__exactly_once<_Tp, _Types...>; 19959: 19959: template 19959: static constexpr size_t __accepted_index 19959: = __detail::__variant::__accepted_index<_Tp, variant>; 19959: 19959: template> 19959: using __to_type = typename _Nth_type<_Np, _Types...>::type; 19959: 19959: template>> 19959: using __accepted_type = __to_type<__accepted_index<_Tp>>; 19959: 19959: template 19959: static constexpr size_t __index_of 19959: = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 19959: 19959: using _Traits = __detail::__variant::_Traits<_Types...>; 19959: 19959: template 19959: struct __is_in_place_tag : false_type { }; 19959: template 19959: struct __is_in_place_tag> : true_type { }; 19959: template 19959: struct __is_in_place_tag> : true_type { }; 19959: 19959: template 19959: static constexpr bool __not_in_place_tag 19959: = !__is_in_place_tag<__remove_cvref_t<_Tp>>::value; 19959: 19959: public: 19959: variant() = default; 19959: variant(const variant& __rhs) = default; 19959: variant(variant&&) = default; 19959: variant& operator=(const variant&) = default; 19959: variant& operator=(variant&&) = default; 19959: ~variant() = default; 19959: 19959: template, 19959: typename = enable_if_t<__not_in_place_tag<_Tp>>, 19959: typename _Tj = __accepted_type<_Tp&&>, 19959: typename = enable_if_t<__exactly_once<_Tj> 19959: && is_constructible_v<_Tj, _Tp>>> 19959: constexpr 19959: variant(_Tp&& __t) 19959: noexcept(is_nothrow_constructible_v<_Tj, _Tp>) 19959: : variant(in_place_index<__accepted_index<_Tp>>, 19959: std::forward<_Tp>(__t)) 19959: { } 19959: 19959: template 19959: && is_constructible_v<_Tp, _Args...>>> 19959: constexpr explicit 19959: variant(in_place_type_t<_Tp>, _Args&&... __args) 19959: : variant(in_place_index<__index_of<_Tp>>, 19959: std::forward<_Args>(__args)...) 19959: { } 19959: 19959: template 19959: && is_constructible_v<_Tp, 19959: initializer_list<_Up>&, _Args...>>> 19959: constexpr explicit 19959: variant(in_place_type_t<_Tp>, initializer_list<_Up> __il, 19959: _Args&&... __args) 19959: : variant(in_place_index<__index_of<_Tp>>, __il, 19959: std::forward<_Args>(__args)...) 19959: { } 19959: 19959: template, 19959: typename = enable_if_t>> 19959: constexpr explicit 19959: variant(in_place_index_t<_Np>, _Args&&... __args) 19959: : _Base(in_place_index<_Np>, std::forward<_Args>(__args)...), 19959: _Default_ctor_enabler(_Enable_default_constructor_tag{}) 19959: { } 19959: 19959: template, 19959: typename = enable_if_t&, 19959: _Args...>>> 19959: constexpr explicit 19959: variant(in_place_index_t<_Np>, initializer_list<_Up> __il, 19959: _Args&&... __args) 19959: : _Base(in_place_index<_Np>, __il, std::forward<_Args>(__args)...), 19959: _Default_ctor_enabler(_Enable_default_constructor_tag{}) 19959: { } 19959: 19959: template 19959: 19959: enable_if_t<__exactly_once<__accepted_type<_Tp&&>> 19959: && is_constructible_v<__accepted_type<_Tp&&>, _Tp> 19959: && is_assignable_v<__accepted_type<_Tp&&>&, _Tp>, 19959: variant&> 19959: operator=(_Tp&& __rhs) 19959: noexcept(is_nothrow_assignable_v<__accepted_type<_Tp&&>&, _Tp> 19959: && is_nothrow_constructible_v<__accepted_type<_Tp&&>, _Tp>) 19959: { 19959: constexpr auto __index = __accepted_index<_Tp>; 19959: if (index() == __index) 19959: std::get<__index>(*this) = std::forward<_Tp>(__rhs); 19959: else 19959: { 19959: using _Tj = __accepted_type<_Tp&&>; 19959: if constexpr (is_nothrow_constructible_v<_Tj, _Tp> 19959: || !is_nothrow_move_constructible_v<_Tj>) 19959: this->emplace<__index>(std::forward<_Tp>(__rhs)); 19959: else 19959: 19959: 19959: this->emplace<__index>(_Tj(std::forward<_Tp>(__rhs))); 19959: } 19959: return *this; 19959: } 19959: 19959: template 19959: 19959: enable_if_t && __exactly_once<_Tp>, 19959: _Tp&> 19959: emplace(_Args&&... __args) 19959: { 19959: constexpr size_t __index = __index_of<_Tp>; 19959: return this->emplace<__index>(std::forward<_Args>(__args)...); 19959: } 19959: 19959: template 19959: 19959: enable_if_t&, _Args...> 19959: && __exactly_once<_Tp>, 19959: _Tp&> 19959: emplace(initializer_list<_Up> __il, _Args&&... __args) 19959: { 19959: constexpr size_t __index = __index_of<_Tp>; 19959: return this->emplace<__index>(__il, std::forward<_Args>(__args)...); 19959: } 19959: 19959: template 19959: 19959: enable_if_t, _Args...>, 19959: __to_type<_Np>&> 19959: emplace(_Args&&... __args) 19959: { 19959: namespace __variant = std::__detail::__variant; 19959: using type = typename _Nth_type<_Np, _Types...>::type; 19959: 19959: 19959: if constexpr (is_nothrow_constructible_v) 19959: { 19959: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 19959: } 19959: else if constexpr (is_scalar_v) 19959: { 19959: 19959: const type __tmp(std::forward<_Args>(__args)...); 19959: 19959: __variant::__emplace<_Np>(*this, __tmp); 19959: } 19959: else if constexpr (__variant::_Never_valueless_alt() 19959: && _Traits::_S_move_assign) 19959: { 19959: 19959: variant __tmp(in_place_index<_Np>, 19959: std::forward<_Args>(__args)...); 19959: 19959: *this = std::move(__tmp); 19959: } 19959: else 19959: { 19959: 19959: 19959: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 19959: } 19959: return std::get<_Np>(*this); 19959: } 19959: 19959: template 19959: 19959: enable_if_t, 19959: initializer_list<_Up>&, _Args...>, 19959: __to_type<_Np>&> 19959: emplace(initializer_list<_Up> __il, _Args&&... __args) 19959: { 19959: namespace __variant = std::__detail::__variant; 19959: using type = typename _Nth_type<_Np, _Types...>::type; 19959: 19959: 19959: if constexpr (is_nothrow_constructible_v&, 19959: _Args...>) 19959: { 19959: __variant::__emplace<_Np>(*this, __il, 19959: std::forward<_Args>(__args)...); 19959: } 19959: else if constexpr (__variant::_Never_valueless_alt() 19959: && _Traits::_S_move_assign) 19959: { 19959: 19959: variant __tmp(in_place_index<_Np>, __il, 19959: std::forward<_Args>(__args)...); 19959: 19959: *this = std::move(__tmp); 19959: } 19959: else 19959: { 19959: 19959: 19959: __variant::__emplace<_Np>(*this, __il, 19959: std::forward<_Args>(__args)...); 19959: } 19959: return std::get<_Np>(*this); 19959: } 19959: 19959: template 19959: enable_if_t emplace(_Args&&...) = delete; 19959: 19959: template 19959: enable_if_t> emplace(_Args&&...) = delete; 19959: 19959: constexpr bool valueless_by_exception() const noexcept 19959: { return !this->_M_valid(); } 19959: 19959: constexpr size_t index() const noexcept 19959: { 19959: using __index_type = typename _Base::__index_type; 19959: if constexpr (__detail::__variant::__never_valueless<_Types...>()) 19959: return this->_M_index; 19959: else if constexpr (sizeof...(_Types) <= __index_type(-1) / 2) 19959: return make_signed_t<__index_type>(this->_M_index); 19959: else 19959: return size_t(__index_type(this->_M_index + 1)) - 1; 19959: } 19959: 19959: 19959: void 19959: swap(variant& __rhs) 19959: noexcept((__is_nothrow_swappable<_Types>::value && ...) 19959: && is_nothrow_move_constructible_v) 19959: { 19959: static_assert((is_move_constructible_v<_Types> && ...)); 19959: 19959: 19959: if (__rhs.valueless_by_exception()) [[__unlikely__]] 19959: { 19959: if (!this->valueless_by_exception()) [[__likely__]] 19959: __rhs.swap(*this); 19959: return; 19959: } 19959: 19959: namespace __variant = __detail::__variant; 19959: 19959: __variant::__raw_idx_visit( 19959: [this, &__rhs](auto&& __rhs_mem, auto __rhs_index) mutable 19959: { 19959: constexpr size_t __j = __rhs_index; 19959: if constexpr (__j != variant_npos) 19959: { 19959: if (this->index() == __j) 19959: { 19959: using std::swap; 19959: swap(std::get<__j>(*this), __rhs_mem); 19959: } 19959: else 19959: { 19959: auto __tmp(std::move(__rhs_mem)); 19959: 19959: if constexpr (_Traits::_S_trivial_move_assign) 19959: __rhs = std::move(*this); 19959: else 19959: __variant::__raw_idx_visit( 19959: [&__rhs](auto&& __this_mem, auto __this_index) mutable 19959: { 19959: constexpr size_t __k = __this_index; 19959: if constexpr (__k != variant_npos) 19959: __variant::__emplace<__k>(__rhs, 19959: std::move(__this_mem)); 19959: }, *this); 19959: 19959: __variant::__emplace<__j>(*this, std::move(__tmp)); 19959: } 19959: } 19959: }, __rhs); 19959: } 19959: 19959: 19959: 19959: 19959: 19959: 19959: private: 19959: template 19959: friend constexpr decltype(auto) 19959: __detail::__variant::__get(_Vp&& __v) noexcept; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: template friend constexpr bool operator <(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 19959: template friend constexpr bool operator <=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 19959: template friend constexpr bool operator ==(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 19959: template friend constexpr bool operator !=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 19959: template friend constexpr bool operator >=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 19959: template friend constexpr bool operator >(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 19959: 19959: 19959: }; 19959: 19959: template 19959: constexpr variant_alternative_t<_Np, variant<_Types...>>& 19959: get(variant<_Types...>& __v) 19959: { 19959: static_assert(_Np < sizeof...(_Types), 19959: "The index must be in [0, number of alternatives)"); 19959: if (__v.index() != _Np) 19959: __throw_bad_variant_access(__v.valueless_by_exception()); 19959: return __detail::__variant::__get<_Np>(__v); 19959: } 19959: 19959: template 19959: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 19959: get(variant<_Types...>&& __v) 19959: { 19959: static_assert(_Np < sizeof...(_Types), 19959: "The index must be in [0, number of alternatives)"); 19959: if (__v.index() != _Np) 19959: __throw_bad_variant_access(__v.valueless_by_exception()); 19959: return __detail::__variant::__get<_Np>(std::move(__v)); 19959: } 19959: 19959: template 19959: constexpr const variant_alternative_t<_Np, variant<_Types...>>& 19959: get(const variant<_Types...>& __v) 19959: { 19959: static_assert(_Np < sizeof...(_Types), 19959: "The index must be in [0, number of alternatives)"); 19959: if (__v.index() != _Np) 19959: __throw_bad_variant_access(__v.valueless_by_exception()); 19959: return __detail::__variant::__get<_Np>(__v); 19959: } 19959: 19959: template 19959: constexpr const variant_alternative_t<_Np, variant<_Types...>>&& 19959: get(const variant<_Types...>&& __v) 19959: { 19959: static_assert(_Np < sizeof...(_Types), 19959: "The index must be in [0, number of alternatives)"); 19959: if (__v.index() != _Np) 19959: __throw_bad_variant_access(__v.valueless_by_exception()); 19959: return __detail::__variant::__get<_Np>(std::move(__v)); 19959: } 19959: 19959: 19959: template 19959: constexpr decltype(auto) 19959: __do_visit(_Visitor&& __visitor, _Variants&&... __variants) 19959: { 19959: 19959: if constexpr (sizeof...(_Variants) == 0) 19959: { 19959: if constexpr (is_void_v<_Result_type>) 19959: return (void) std::forward<_Visitor>(__visitor)(); 19959: else 19959: return std::forward<_Visitor>(__visitor)(); 19959: } 19959: else 19959: { 19959: constexpr size_t __max = 11; 19959: 19959: 19959: using _V0 = typename _Nth_type<0, _Variants...>::type; 19959: 19959: constexpr auto __n = variant_size_v>; 19959: 19959: if constexpr (sizeof...(_Variants) > 1 || __n > __max) 19959: { 19959: 19959: constexpr auto& __vtable = __detail::__variant::__gen_vtable< 19959: _Result_type, _Visitor&&, _Variants&&...>::_S_vtable; 19959: 19959: auto __func_ptr = __vtable._M_access(__variants.index()...); 19959: return (*__func_ptr)(std::forward<_Visitor>(__visitor), 19959: std::forward<_Variants>(__variants)...); 19959: } 19959: else 19959: { 19959: 19959: _V0& __v0 19959: = [](_V0& __v, ...) -> _V0& { return __v; }(__variants...); 19959: 19959: using __detail::__variant::_Multi_array; 19959: using __detail::__variant::__gen_vtable_impl; 19959: using _Ma = _Multi_array<_Result_type (*)(_Visitor&&, _V0&&)>; 19959: # 1813 "/usr/include/c++/13/variant" 3 19959: switch (__v0.index()) 19959: { 19959: case 0: { if constexpr (0 < __n) { return __gen_vtable_impl<_Ma, index_sequence<0>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 19959: case 1: { if constexpr (1 < __n) { return __gen_vtable_impl<_Ma, index_sequence<1>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 19959: case 2: { if constexpr (2 < __n) { return __gen_vtable_impl<_Ma, index_sequence<2>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 19959: case 3: { if constexpr (3 < __n) { return __gen_vtable_impl<_Ma, index_sequence<3>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 19959: case 4: { if constexpr (4 < __n) { return __gen_vtable_impl<_Ma, index_sequence<4>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 19959: case 5: { if constexpr (5 < __n) { return __gen_vtable_impl<_Ma, index_sequence<5>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 19959: case 6: { if constexpr (6 < __n) { return __gen_vtable_impl<_Ma, index_sequence<6>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 19959: case 7: { if constexpr (7 < __n) { return __gen_vtable_impl<_Ma, index_sequence<7>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 19959: case 8: { if constexpr (8 < __n) { return __gen_vtable_impl<_Ma, index_sequence<8>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 19959: case 9: { if constexpr (9 < __n) { return __gen_vtable_impl<_Ma, index_sequence<9>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 19959: case 10: { if constexpr (10 < __n) { return __gen_vtable_impl<_Ma, index_sequence<10>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 19959: case variant_npos: 19959: using __detail::__variant::__variant_idx_cookie; 19959: using __detail::__variant::__variant_cookie; 19959: if constexpr (is_same_v<_Result_type, __variant_idx_cookie> 19959: || is_same_v<_Result_type, __variant_cookie>) 19959: { 19959: using _Npos = index_sequence; 19959: return __gen_vtable_impl<_Ma, _Npos>:: 19959: __visit_invoke(std::forward<_Visitor>(__visitor), 19959: std::forward<_V0>(__v0)); 19959: } 19959: else 19959: __builtin_unreachable(); 19959: default: 19959: __builtin_unreachable(); 19959: } 19959: 19959: 19959: } 19959: } 19959: } 19959: 19959: 19959: template 19959: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 19959: visit(_Visitor&& __visitor, _Variants&&... __variants) 19959: { 19959: namespace __variant = std::__detail::__variant; 19959: 19959: if ((__variant::__as(__variants).valueless_by_exception() || ...)) 19959: __throw_bad_variant_access("std::visit: variant is valueless"); 19959: 19959: using _Result_type 19959: = __detail::__variant::__visit_result_t<_Visitor, _Variants...>; 19959: 19959: using _Tag = __detail::__variant::__deduce_visit_result<_Result_type>; 19959: 19959: if constexpr (sizeof...(_Variants) == 1) 19959: { 19959: using _Vp = decltype(__variant::__as(std::declval<_Variants>()...)); 19959: 19959: constexpr bool __visit_rettypes_match = __detail::__variant:: 19959: __check_visitor_results<_Visitor, _Vp>( 19959: make_index_sequence>>()); 19959: if constexpr (!__visit_rettypes_match) 19959: { 19959: static_assert(__visit_rettypes_match, 19959: "std::visit requires the visitor to have the same " 19959: "return type for all alternatives of a variant"); 19959: return; 19959: } 19959: else 19959: return std::__do_visit<_Tag>( 19959: std::forward<_Visitor>(__visitor), 19959: static_cast<_Vp>(__variants)...); 19959: } 19959: else 19959: return std::__do_visit<_Tag>( 19959: std::forward<_Visitor>(__visitor), 19959: __variant::__as(std::forward<_Variants>(__variants))...); 19959: } 19959: # 1904 "/usr/include/c++/13/variant" 3 19959: template 19959: struct __variant_hash_call_base_impl 19959: { 19959: size_t 19959: operator()(const variant<_Types...>& __t) const 19959: noexcept((is_nothrow_invocable_v>, _Types> && ...)) 19959: { 19959: size_t __ret; 19959: __detail::__variant::__raw_visit( 19959: [&__t, &__ret](auto&& __t_mem) mutable 19959: { 19959: using _Type = __remove_cvref_t; 19959: if constexpr (!is_same_v<_Type, 19959: __detail::__variant::__variant_cookie>) 19959: __ret = std::hash{}(__t.index()) 19959: + std::hash<_Type>{}(__t_mem); 19959: else 19959: __ret = std::hash{}(__t.index()); 19959: }, __t); 19959: return __ret; 19959: } 19959: }; 19959: 19959: template 19959: struct __variant_hash_call_base_impl {}; 19959: 19959: template 19959: using __variant_hash_call_base = 19959: __variant_hash_call_base_impl<(__poison_hash>:: 19959: __enable_hash_call &&...), _Types...>; 19959: 19959: 19959: template 19959: struct hash> 19959: : private __detail::__variant::_Variant_hash_base< 19959: variant<_Types...>, std::index_sequence_for<_Types...>>, 19959: public __variant_hash_call_base<_Types...> 19959: { 19959: using result_type [[__deprecated__]] = size_t; 19959: using argument_type [[__deprecated__]] = variant<_Types...>; 19959: }; 19959: 19959: template<> 19959: struct hash 19959: { 19959: using result_type [[__deprecated__]] = size_t; 19959: using argument_type [[__deprecated__]] = monostate; 19959: 19959: size_t 19959: operator()(const monostate&) const noexcept 19959: { 19959: constexpr size_t __magic_monostate_hash = -7777; 19959: return __magic_monostate_hash; 19959: } 19959: }; 19959: 19959: template 19959: struct __is_fast_hash>> 19959: : bool_constant<(__is_fast_hash<_Types>::value && ...)> 19959: { }; 19959: 19959: 19959: } 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 2 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 19959: namespace rocksdb { 19959: 19959: class Slice; 19959: class Logger; 19959: # 53 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 19959: class MergeOperator : public Customizable { 19959: public: 19959: virtual ~MergeOperator() {} 19959: static const char* Type() { return "MergeOperator"; } 19959: static Status CreateFromString(const ConfigOptions& opts, 19959: const std::string& id, 19959: std::shared_ptr* result); 19959: # 79 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 19959: virtual bool FullMerge(const Slice& , const Slice* , 19959: const std::deque& , 19959: std::string* , Logger* ) const { 19959: 19959: 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 3 4 19959: (static_cast ( 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 19959: false 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 19959: "false" 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 3 4 19959: , "./include/rocksdb/merge_operator.h", 83, __extension__ __PRETTY_FUNCTION__)) 19959: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 19959: ; 19959: return false; 19959: } 19959: 19959: struct MergeOperationInput { 19959: 19959: explicit MergeOperationInput(const Slice& _key, 19959: const Slice* _existing_value, 19959: const std::vector& _operand_list, 19959: Logger* _logger) 19959: : key(_key), 19959: existing_value(_existing_value), 19959: operand_list(_operand_list), 19959: logger(_logger) {} 19959: 19959: 19959: const Slice& key; 19959: 19959: 19959: const Slice* existing_value; 19959: 19959: const std::vector& operand_list; 19959: 19959: 19959: Logger* logger; 19959: }; 19959: 19959: enum class OpFailureScope { 19959: kDefault, 19959: kTryMerge, 19959: kMustMerge, 19959: kOpFailureScopeMax, 19959: }; 19959: 19959: struct MergeOperationOutput { 19959: explicit MergeOperationOutput(std::string& _new_value, 19959: Slice& _existing_operand) 19959: : new_value(_new_value), existing_operand(_existing_operand) {} 19959: 19959: 19959: std::string& new_value; 19959: 19959: 19959: 19959: Slice& existing_operand; 19959: # 141 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 19959: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 19959: }; 19959: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 19959: virtual bool FullMergeV2(const MergeOperationInput& merge_in, 19959: MergeOperationOutput* merge_out) const; 19959: 19959: struct MergeOperationInputV3 { 19959: using ExistingValue = std::variant; 19959: using OperandList = std::vector; 19959: 19959: explicit MergeOperationInputV3(const Slice& _key, 19959: ExistingValue&& _existing_value, 19959: const OperandList& _operand_list, 19959: Logger* _logger) 19959: : key(_key), 19959: existing_value(std::move(_existing_value)), 19959: operand_list(_operand_list), 19959: logger(_logger) {} 19959: 19959: 19959: const Slice& key; 19959: 19959: 19959: 19959: ExistingValue existing_value; 19959: 19959: const OperandList& operand_list; 19959: 19959: Logger* logger; 19959: }; 19959: 19959: struct MergeOperationOutputV3 { 19959: using NewColumns = std::vector>; 19959: using NewValue = std::variant; 19959: 19959: 19959: 19959: 19959: NewValue new_value; 19959: 19959: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 19959: }; 19959: # 209 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 19959: virtual bool FullMergeV3(const MergeOperationInputV3& merge_in, 19959: MergeOperationOutputV3* merge_out) const; 19959: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 19959: virtual bool PartialMerge(const Slice& , const Slice& , 19959: const Slice& , 19959: std::string* , 19959: Logger* ) const { 19959: return false; 19959: } 19959: # 271 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 19959: virtual bool PartialMergeMulti(const Slice& key, 19959: const std::deque& operand_list, 19959: std::string* new_value, Logger* logger) const; 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual const char* Name() const override = 0; 19959: 19959: 19959: 19959: 19959: 19959: 19959: virtual bool AllowSingleOperand() const { return false; } 19959: # 300 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 19959: virtual bool ShouldMerge(const std::vector& ) const { 19959: return false; 19959: } 19959: }; 19959: 19959: 19959: class AssociativeMergeOperator : public MergeOperator { 19959: public: 19959: ~AssociativeMergeOperator() override {} 19959: # 323 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 19959: virtual bool Merge(const Slice& key, const Slice* existing_value, 19959: const Slice& value, std::string* new_value, 19959: Logger* logger) const = 0; 19959: 19959: private: 19959: 19959: bool FullMergeV2(const MergeOperationInput& merge_in, 19959: MergeOperationOutput* merge_out) const override; 19959: 19959: bool PartialMerge(const Slice& key, const Slice& left_operand, 19959: const Slice& right_operand, std::string* new_value, 19959: Logger* logger) const override; 19959: }; 19959: 19959: } 19959: # 18 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 2 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class Comparator; 19959: class Iterator; 19959: class Logger; 19959: class MergeOperator; 19959: class Statistics; 19959: class SystemClock; 19959: class BlobFetcher; 19959: class PrefetchBufferCollection; 19959: struct CompactionIterationStats; 19959: 19959: class MergeHelper { 19959: public: 19959: MergeHelper(Env* env, const Comparator* user_comparator, 19959: const MergeOperator* user_merge_operator, 19959: const CompactionFilter* compaction_filter, Logger* logger, 19959: bool assert_valid_internal_key, SequenceNumber latest_snapshot, 19959: const SnapshotChecker* snapshot_checker = nullptr, int level = 0, 19959: Statistics* stats = nullptr, 19959: const std::atomic* shutting_down = nullptr); 19959: # 54 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 19959: struct NoBaseValueTag {}; 19959: static constexpr NoBaseValueTag kNoBaseValue{}; 19959: 19959: struct PlainBaseValueTag {}; 19959: static constexpr PlainBaseValueTag kPlainBaseValue{}; 19959: 19959: struct WideBaseValueTag {}; 19959: static constexpr WideBaseValueTag kWideBaseValue{}; 19959: 19959: 19959: 19959: static Status TimedFullMerge(const MergeOperator* merge_operator, 19959: const Slice& key, NoBaseValueTag, 19959: const std::vector& operands, 19959: Logger* logger, Statistics* statistics, 19959: SystemClock* clock, bool update_num_ops_stats, 19959: std::string* result, Slice* result_operand, 19959: ValueType* result_type, 19959: MergeOperator::OpFailureScope* op_failure_scope); 19959: 19959: static Status TimedFullMerge( 19959: const MergeOperator* merge_operator, const Slice& key, PlainBaseValueTag, 19959: const Slice& value, const std::vector& operands, Logger* logger, 19959: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 19959: std::string* result, Slice* result_operand, ValueType* result_type, 19959: MergeOperator::OpFailureScope* op_failure_scope); 19959: 19959: static Status TimedFullMerge( 19959: const MergeOperator* merge_operator, const Slice& key, WideBaseValueTag, 19959: const Slice& entity, const std::vector& operands, Logger* logger, 19959: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 19959: std::string* result, Slice* result_operand, ValueType* result_type, 19959: MergeOperator::OpFailureScope* op_failure_scope); 19959: 19959: static Status TimedFullMerge( 19959: const MergeOperator* merge_operator, const Slice& key, WideBaseValueTag, 19959: const WideColumns& columns, const std::vector& operands, 19959: Logger* logger, Statistics* statistics, SystemClock* clock, 19959: bool update_num_ops_stats, std::string* result, Slice* result_operand, 19959: ValueType* result_type, MergeOperator::OpFailureScope* op_failure_scope); 19959: 19959: 19959: 19959: 19959: 19959: static Status TimedFullMerge(const MergeOperator* merge_operator, 19959: const Slice& key, NoBaseValueTag, 19959: const std::vector& operands, 19959: Logger* logger, Statistics* statistics, 19959: SystemClock* clock, bool update_num_ops_stats, 19959: std::string* result_value, 19959: PinnableWideColumns* result_entity, 19959: MergeOperator::OpFailureScope* op_failure_scope); 19959: 19959: static Status TimedFullMerge( 19959: const MergeOperator* merge_operator, const Slice& key, PlainBaseValueTag, 19959: const Slice& value, const std::vector& operands, Logger* logger, 19959: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 19959: std::string* result_value, PinnableWideColumns* result_entity, 19959: MergeOperator::OpFailureScope* op_failure_scope); 19959: 19959: static Status TimedFullMerge( 19959: const MergeOperator* merge_operator, const Slice& key, WideBaseValueTag, 19959: const Slice& entity, const std::vector& operands, Logger* logger, 19959: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 19959: std::string* result_value, PinnableWideColumns* result_entity, 19959: MergeOperator::OpFailureScope* op_failure_scope); 19959: 19959: static Status TimedFullMerge(const MergeOperator* merge_operator, 19959: const Slice& key, WideBaseValueTag, 19959: const WideColumns& columns, 19959: const std::vector& operands, 19959: Logger* logger, Statistics* statistics, 19959: SystemClock* clock, bool update_num_ops_stats, 19959: std::string* result_value, 19959: PinnableWideColumns* result_entity, 19959: MergeOperator::OpFailureScope* op_failure_scope); 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 19959: Status MergeUntil(InternalIterator* iter, 19959: CompactionRangeDelAggregator* range_del_agg, 19959: const SequenceNumber stop_before, const bool at_bottom, 19959: const bool allow_data_in_errors, 19959: const BlobFetcher* blob_fetcher, 19959: const std::string* const full_history_ts_low, 19959: PrefetchBufferCollection* prefetch_buffers, 19959: CompactionIterationStats* c_iter_stats); 19959: 19959: 19959: 19959: 19959: 19959: 19959: CompactionFilter::Decision FilterMerge(const Slice& user_key, 19959: const Slice& value_slice); 19959: # 210 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 19959: const std::deque& keys() const { return keys_; } 19959: const std::vector& values() const { 19959: return merge_context_.GetOperands(); 19959: } 19959: uint64_t TotalFilterTime() const { return total_filter_time_; } 19959: bool HasOperator() const { return user_merge_operator_ != nullptr; } 19959: 19959: 19959: 19959: 19959: bool FilteredUntil(Slice* skip_until) const { 19959: if (!has_compaction_filter_skip_until_) { 19959: return false; 19959: } 19959: 19959: # 224 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 19959: (static_cast ( 19959: # 224 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 19959: compaction_filter_ != nullptr 19959: # 224 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 224 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 19959: "compaction_filter_ != nullptr" 19959: # 224 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 19959: , "./db/merge_helper.h", 224, __extension__ __PRETTY_FUNCTION__)) 19959: # 224 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 19959: ; 19959: 19959: # 225 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 19959: (static_cast ( 19959: # 225 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 19959: skip_until != nullptr 19959: # 225 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 225 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 19959: "skip_until != nullptr" 19959: # 225 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 19959: , "./db/merge_helper.h", 225, __extension__ __PRETTY_FUNCTION__)) 19959: # 225 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 19959: ; 19959: 19959: # 226 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 19959: (static_cast ( 19959: # 226 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 19959: compaction_filter_skip_until_.Valid() 19959: # 226 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 226 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 19959: "compaction_filter_skip_until_.Valid()" 19959: # 226 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 19959: , "./db/merge_helper.h", 226, __extension__ __PRETTY_FUNCTION__)) 19959: # 226 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 19959: ; 19959: *skip_until = compaction_filter_skip_until_.Encode(); 19959: return true; 19959: } 19959: 19959: private: 19959: Env* env_; 19959: SystemClock* clock_; 19959: const Comparator* user_comparator_; 19959: const MergeOperator* user_merge_operator_; 19959: const CompactionFilter* compaction_filter_; 19959: const std::atomic* shutting_down_; 19959: Logger* logger_; 19959: bool assert_valid_internal_key_; 19959: bool allow_single_operand_; 19959: SequenceNumber latest_snapshot_; 19959: const SnapshotChecker* const snapshot_checker_; 19959: int level_; 19959: 19959: 19959: 19959: 19959: 19959: std::deque keys_; 19959: 19959: mutable MergeContext merge_context_; 19959: 19959: StopWatchNano filter_timer_; 19959: uint64_t total_filter_time_; 19959: Statistics* stats_; 19959: 19959: bool has_compaction_filter_skip_until_ = false; 19959: std::string compaction_filter_value_; 19959: InternalKey compaction_filter_skip_until_; 19959: 19959: bool IsShuttingDown() { 19959: 19959: return shutting_down_ && shutting_down_->load(std::memory_order_relaxed); 19959: } 19959: 19959: template 19959: static Status TimedFullMergeCommonImpl( 19959: const MergeOperator* merge_operator, const Slice& key, 19959: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 19959: const std::vector& operands, Logger* logger, 19959: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 19959: MergeOperator::OpFailureScope* op_failure_scope, Visitor&& visitor); 19959: 19959: static Status TimedFullMergeImpl( 19959: const MergeOperator* merge_operator, const Slice& key, 19959: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 19959: const std::vector& operands, Logger* logger, 19959: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 19959: std::string* result, Slice* result_operand, ValueType* result_type, 19959: MergeOperator::OpFailureScope* op_failure_scope); 19959: 19959: static Status TimedFullMergeImpl( 19959: const MergeOperator* merge_operator, const Slice& key, 19959: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 19959: const std::vector& operands, Logger* logger, 19959: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 19959: std::string* result_value, PinnableWideColumns* result_entity, 19959: MergeOperator::OpFailureScope* op_failure_scope); 19959: }; 19959: 19959: 19959: class MergeOutputIterator { 19959: public: 19959: 19959: explicit MergeOutputIterator(const MergeHelper* merge_helper); 19959: 19959: 19959: void SeekToFirst(); 19959: 19959: void Next(); 19959: 19959: Slice key() { return Slice(*it_keys_); } 19959: Slice value() { return Slice(*it_values_); } 19959: bool Valid() { return it_keys_ != merge_helper_->keys().rend(); } 19959: 19959: private: 19959: const MergeHelper* merge_helper_; 19959: std::deque::const_reverse_iterator it_keys_; 19959: std::vector::const_reverse_iterator it_values_; 19959: }; 19959: 19959: } 19959: # 21 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 19959: 19959: 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/wide/wide_column_serialization.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 15 "/build/reproducible-path/rocksdb-8.9.1/db/wide/wide_column_serialization.h" 19959: namespace rocksdb { 19959: 19959: class Slice; 19959: # 44 "/build/reproducible-path/rocksdb-8.9.1/db/wide/wide_column_serialization.h" 19959: class WideColumnSerialization { 19959: public: 19959: static Status Serialize(const WideColumns& columns, std::string& output); 19959: 19959: static Status Deserialize(Slice& input, WideColumns& columns); 19959: 19959: static WideColumns::const_iterator Find(const WideColumns& columns, 19959: const Slice& column_name); 19959: static Status GetValueOfDefaultColumn(Slice& input, Slice& value); 19959: 19959: static constexpr uint32_t kCurrentVersion = 1; 19959: }; 19959: 19959: } 19959: # 25 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/logging/logging.h" 1 19959: # 13 "/build/reproducible-path/rocksdb-8.9.1/logging/logging.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: inline const char* RocksLogShorterFileName(const char* file) { 19959: 19959: 19959: return file + (sizeof("./logging/logging.h") > 18 ? sizeof("./logging/logging.h") - 18 : 0); 19959: } 19959: # 26 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 19959: 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/memory/memory_usage.h" 1 19959: 19959: 19959: 19959: 19959: 19959: 19959: # 16 "/build/reproducible-path/rocksdb-8.9.1/memory/memory_usage.h" 19959: namespace rocksdb { 19959: 19959: 19959: 19959: template 19959: size_t ApproximateMemoryUsage( 19959: const std::unordered_map& umap) { 19959: using Map = std::unordered_map; 19959: return sizeof(umap) + 19959: 19959: (sizeof(typename Map::value_type) + sizeof(void*)) * umap.size() + 19959: 19959: umap.bucket_count() * sizeof(void*); 19959: } 19959: # 38 "/build/reproducible-path/rocksdb-8.9.1/memory/memory_usage.h" 19959: } 19959: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 19959: # 40 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: 19959: 19959: 19959: 19959: template 19959: class IteratorWrapperBase { 19959: public: 19959: IteratorWrapperBase() : iter_(nullptr), valid_(false) {} 19959: explicit IteratorWrapperBase(InternalIteratorBase* _iter) 19959: : iter_(nullptr) { 19959: Set(_iter); 19959: } 19959: ~IteratorWrapperBase() {} 19959: InternalIteratorBase* iter() const { return iter_; } 19959: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 19959: if (iter_) { 19959: iter_->SetRangeDelReadSeqno(read_seqno); 19959: } 19959: } 19959: 19959: 19959: 19959: InternalIteratorBase* Set(InternalIteratorBase* _iter) { 19959: InternalIteratorBase* old_iter = iter_; 19959: 19959: iter_ = _iter; 19959: if (iter_ == nullptr) { 19959: valid_ = false; 19959: } else { 19959: Update(); 19959: } 19959: return old_iter; 19959: } 19959: 19959: void DeleteIter(bool is_arena_mode) { 19959: if (iter_) { 19959: # 66 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: if (!is_arena_mode) { 19959: delete iter_; 19959: } else { 19959: iter_->~InternalIteratorBase(); 19959: } 19959: } 19959: } 19959: 19959: 19959: bool Valid() const { 19959: 19959: 19959: 19959: return valid_; 19959: } 19959: Slice key() const { 19959: 19959: # 82 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 82 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: Valid() 19959: # 82 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 82 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "Valid()" 19959: # 82 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 82, __extension__ __PRETTY_FUNCTION__)) 19959: # 82 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: return result_.key; 19959: } 19959: TValue value() const { 19959: 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: Valid() 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "Valid()" 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 86, __extension__ __PRETTY_FUNCTION__)) 19959: # 86 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: return iter_->value(); 19959: } 19959: 19959: Status status() const { 19959: 19959: 19959: 19959: 19959: # 94 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 94 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: iter_ 19959: # 94 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 94 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "iter_" 19959: # 94 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 94, __extension__ __PRETTY_FUNCTION__)) 19959: # 94 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: return iter_->status(); 19959: } 19959: bool PrepareValue() { 19959: 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: Valid() 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "Valid()" 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 98, __extension__ __PRETTY_FUNCTION__)) 19959: # 98 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: if (result_.value_prepared) { 19959: return true; 19959: } 19959: if (iter_->PrepareValue()) { 19959: result_.value_prepared = true; 19959: return true; 19959: } 19959: 19959: 19959: # 107 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 107 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: !iter_->Valid() 19959: # 107 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 107 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "!iter_->Valid()" 19959: # 107 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 107, __extension__ __PRETTY_FUNCTION__)) 19959: # 107 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: valid_ = false; 19959: return false; 19959: } 19959: void Next() { 19959: 19959: # 112 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 112 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: iter_ 19959: # 112 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 112 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "iter_" 19959: # 112 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 112, __extension__ __PRETTY_FUNCTION__)) 19959: # 112 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: valid_ = iter_->NextAndGetResult(&result_); 19959: 19959: # 114 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 114 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: !valid_ || iter_->status().ok() 19959: # 114 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 114 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "!valid_ || iter_->status().ok()" 19959: # 114 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 114, __extension__ __PRETTY_FUNCTION__)) 19959: # 114 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: } 19959: bool NextAndGetResult(IterateResult* result) { 19959: 19959: # 117 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 117 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: iter_ 19959: # 117 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 117 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "iter_" 19959: # 117 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 117, __extension__ __PRETTY_FUNCTION__)) 19959: # 117 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: valid_ = iter_->NextAndGetResult(&result_); 19959: *result = result_; 19959: 19959: # 120 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 120 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: !valid_ || iter_->status().ok() 19959: # 120 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 120 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "!valid_ || iter_->status().ok()" 19959: # 120 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 120, __extension__ __PRETTY_FUNCTION__)) 19959: # 120 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: return valid_; 19959: } 19959: void Prev() { 19959: 19959: # 124 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 124 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: iter_ 19959: # 124 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 124 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "iter_" 19959: # 124 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 124, __extension__ __PRETTY_FUNCTION__)) 19959: # 124 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: iter_->Prev(); 19959: Update(); 19959: } 19959: void Seek(const Slice& k) { 19959: 19959: # 129 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 129 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: iter_ 19959: # 129 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 129 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "iter_" 19959: # 129 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 129, __extension__ __PRETTY_FUNCTION__)) 19959: # 129 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: iter_->Seek(k); 19959: Update(); 19959: } 19959: void SeekForPrev(const Slice& k) { 19959: 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: iter_ 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "iter_" 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 134, __extension__ __PRETTY_FUNCTION__)) 19959: # 134 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: iter_->SeekForPrev(k); 19959: Update(); 19959: } 19959: void SeekToFirst() { 19959: 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: iter_ 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "iter_" 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 139, __extension__ __PRETTY_FUNCTION__)) 19959: # 139 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: iter_->SeekToFirst(); 19959: Update(); 19959: } 19959: void SeekToLast() { 19959: 19959: # 144 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 144 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: iter_ 19959: # 144 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 144 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "iter_" 19959: # 144 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 144, __extension__ __PRETTY_FUNCTION__)) 19959: # 144 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: iter_->SeekToLast(); 19959: Update(); 19959: } 19959: 19959: bool MayBeOutOfLowerBound() { 19959: 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: Valid() 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "Valid()" 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 150, __extension__ __PRETTY_FUNCTION__)) 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: return iter_->MayBeOutOfLowerBound(); 19959: } 19959: 19959: IterBoundCheck UpperBoundCheckResult() { 19959: 19959: # 155 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 155 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: Valid() 19959: # 155 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 155 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "Valid()" 19959: # 155 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 155, __extension__ __PRETTY_FUNCTION__)) 19959: # 155 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: return result_.bound_check_result; 19959: } 19959: 19959: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) { 19959: 19959: # 160 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 160 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: iter_ 19959: # 160 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 160 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "iter_" 19959: # 160 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 160, __extension__ __PRETTY_FUNCTION__)) 19959: # 160 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: iter_->SetPinnedItersMgr(pinned_iters_mgr); 19959: } 19959: bool IsKeyPinned() const { 19959: 19959: # 164 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 164 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: Valid() 19959: # 164 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 164 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "Valid()" 19959: # 164 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 164, __extension__ __PRETTY_FUNCTION__)) 19959: # 164 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: return iter_->IsKeyPinned(); 19959: } 19959: bool IsValuePinned() const { 19959: 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: Valid() 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "Valid()" 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 168, __extension__ __PRETTY_FUNCTION__)) 19959: # 168 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: return iter_->IsValuePinned(); 19959: } 19959: 19959: bool IsValuePrepared() const { return result_.value_prepared; } 19959: 19959: Slice user_key() const { 19959: 19959: # 175 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 175 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: Valid() 19959: # 175 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 175 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "Valid()" 19959: # 175 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 175, __extension__ __PRETTY_FUNCTION__)) 19959: # 175 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: return iter_->user_key(); 19959: } 19959: 19959: void UpdateReadaheadState(InternalIteratorBase* old_iter) { 19959: if (old_iter && iter_) { 19959: ReadaheadFileInfo readahead_file_info; 19959: old_iter->GetReadaheadState(&readahead_file_info); 19959: iter_->SetReadaheadState(&readahead_file_info); 19959: } 19959: } 19959: 19959: bool IsDeleteRangeSentinelKey() const { 19959: return iter_->IsDeleteRangeSentinelKey(); 19959: } 19959: 19959: private: 19959: void Update() { 19959: valid_ = iter_->Valid(); 19959: if (valid_) { 19959: 19959: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: (static_cast ( 19959: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: iter_->status().ok() 19959: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: "iter_->status().ok()" 19959: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 19959: , "./table/iterator_wrapper.h", 195, __extension__ __PRETTY_FUNCTION__)) 19959: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 19959: ; 19959: result_.key = iter_->key(); 19959: result_.bound_check_result = IterBoundCheck::kUnknown; 19959: result_.value_prepared = false; 19959: } 19959: } 19959: 19959: InternalIteratorBase* iter_; 19959: IterateResult result_; 19959: bool valid_; 19959: 19959: 19959: 19959: 19959: }; 19959: 19959: using IteratorWrapper = IteratorWrapperBase; 19959: 19959: class Arena; 19959: 19959: template 19959: extern InternalIteratorBase* NewEmptyInternalIterator(Arena* arena); 19959: 19959: } 19959: # 41 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 19959: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/merging_iterator.h" 1 19959: # 10 "/build/reproducible-path/rocksdb-8.9.1/table/merging_iterator.h" 19959: 19959: 19959: 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: class Arena; 19959: class ArenaWrappedDBIter; 19959: class InternalKeyComparator; 19959: 19959: template 19959: class InternalIteratorBase; 19959: using InternalIterator = InternalIteratorBase; 19959: # 35 "/build/reproducible-path/rocksdb-8.9.1/table/merging_iterator.h" 19959: extern InternalIterator* NewMergingIterator( 19959: const InternalKeyComparator* comparator, InternalIterator** children, int n, 19959: Arena* arena = nullptr, bool prefix_seek_mode = false); 19959: 19959: 19959: 19959: 19959: class MergingIterator; 19959: 19959: 19959: 19959: 19959: 19959: class MergeIteratorBuilder { 19959: public: 19959: 19959: 19959: explicit MergeIteratorBuilder(const InternalKeyComparator* comparator, 19959: Arena* arena, bool prefix_seek_mode = false, 19959: const Slice* iterate_upper_bound = nullptr); 19959: ~MergeIteratorBuilder(); 19959: 19959: 19959: void AddIterator(InternalIterator* iter); 19959: # 71 "/build/reproducible-path/rocksdb-8.9.1/table/merging_iterator.h" 19959: void AddPointAndTombstoneIterator( 19959: InternalIterator* point_iter, TruncatedRangeDelIterator* tombstone_iter, 19959: TruncatedRangeDelIterator*** tombstone_iter_ptr = nullptr); 19959: 19959: 19959: 19959: Arena* GetArena() { return arena; } 19959: 19959: 19959: 19959: 19959: 19959: 19959: InternalIterator* Finish(ArenaWrappedDBIter* db_iter = nullptr); 19959: 19959: private: 19959: MergingIterator* merge_iter; 19959: InternalIterator* first_iter; 19959: bool use_merging_iter; 19959: Arena* arena; 19959: 19959: 19959: std::vector> 19959: range_del_iter_ptrs_; 19959: }; 19959: 19959: } 19959: # 42 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 19959: 19959: 19959: 19959: 19959: namespace rocksdb { 19959: 19959: ImmutableMemTableOptions::ImmutableMemTableOptions( 19959: const ImmutableOptions& ioptions, 19959: const MutableCFOptions& mutable_cf_options) 19959: : arena_block_size(mutable_cf_options.arena_block_size), 19959: memtable_prefix_bloom_bits( 19959: static_cast( 19959: static_cast(mutable_cf_options.write_buffer_size) * 19959: mutable_cf_options.memtable_prefix_bloom_size_ratio) * 19959: 8u), 19959: memtable_huge_page_size(mutable_cf_options.memtable_huge_page_size), 19959: memtable_whole_key_filtering( 19959: mutable_cf_options.memtable_whole_key_filtering), 19959: inplace_update_support(ioptions.inplace_update_support), 19959: inplace_update_num_locks(mutable_cf_options.inplace_update_num_locks), 19959: inplace_callback(ioptions.inplace_callback), 19959: max_successive_merges(mutable_cf_options.max_successive_merges), 19959: statistics(ioptions.stats), 19959: merge_operator(ioptions.merge_operator.get()), 19959: info_log(ioptions.logger), 19959: allow_data_in_errors(ioptions.allow_data_in_errors), 19959: protection_bytes_per_key( 19959: mutable_cf_options.memtable_protection_bytes_per_key) {} 19959: 19959: MemTable::MemTable(const InternalKeyComparator& cmp, 19959: const ImmutableOptions& ioptions, 19959: const MutableCFOptions& mutable_cf_options, 19959: WriteBufferManager* write_buffer_manager, 19959: SequenceNumber latest_seq, uint32_t column_family_id) 19959: : comparator_(cmp), 19959: moptions_(ioptions, mutable_cf_options), 19959: refs_(0), 19959: kArenaBlockSize(Arena::OptimizeBlockSize(moptions_.arena_block_size)), 19959: mem_tracker_(write_buffer_manager), 19959: arena_(moptions_.arena_block_size, 19959: (write_buffer_manager != nullptr && 19959: (write_buffer_manager->enabled() || 19959: write_buffer_manager->cost_to_cache())) 19959: ? &mem_tracker_ 19959: : nullptr, 19959: mutable_cf_options.memtable_huge_page_size), 19959: table_(ioptions.memtable_factory->CreateMemTableRep( 19959: comparator_, &arena_, mutable_cf_options.prefix_extractor.get(), 19959: ioptions.logger, column_family_id)), 19959: range_del_table_(SkipListFactory().CreateMemTableRep( 19959: comparator_, &arena_, nullptr , ioptions.logger, 19959: column_family_id)), 19959: is_range_del_table_empty_(true), 19959: data_size_(0), 19959: num_entries_(0), 19959: num_deletes_(0), 19959: num_range_deletes_(0), 19959: write_buffer_size_(mutable_cf_options.write_buffer_size), 19959: flush_in_progress_(false), 19959: flush_completed_(false), 19959: file_number_(0), 19959: first_seqno_(0), 19959: earliest_seqno_(latest_seq), 19959: creation_seq_(latest_seq), 19959: mem_next_logfile_number_(0), 19959: min_prep_log_referenced_(0), 19959: locks_(moptions_.inplace_update_support 19959: ? moptions_.inplace_update_num_locks 19959: : 0), 19959: prefix_extractor_(mutable_cf_options.prefix_extractor.get()), 19959: flush_state_(FLUSH_NOT_REQUESTED), 19959: clock_(ioptions.clock), 19959: insert_with_hint_prefix_extractor_( 19959: ioptions.memtable_insert_with_hint_prefix_extractor.get()), 19959: oldest_key_time_(std::numeric_limits::max()), 19959: atomic_flush_seqno_(kMaxSequenceNumber), 19959: approximate_memory_usage_(0), 19959: memtable_max_range_deletions_( 19959: mutable_cf_options.memtable_max_range_deletions) { 19959: UpdateFlushState(); 19959: 19959: 19959: # 123 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 123 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: !ShouldScheduleFlush() 19959: # 123 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 123 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "!ShouldScheduleFlush()" 19959: # 123 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 123, __extension__ __PRETTY_FUNCTION__)) 19959: # 123 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: 19959: 19959: if ((prefix_extractor_ || moptions_.memtable_whole_key_filtering) && 19959: moptions_.memtable_prefix_bloom_bits > 0) { 19959: bloom_filter_.reset( 19959: new DynamicBloom(&arena_, moptions_.memtable_prefix_bloom_bits, 19959: 6 , 19959: moptions_.memtable_huge_page_size, ioptions.logger)); 19959: } 19959: 19959: 19959: 19959: auto new_cache = std::make_shared(); 19959: size_t size = cached_range_tombstone_.Size(); 19959: for (size_t i = 0; i < size; ++i) { 19959: std::shared_ptr* local_cache_ref_ptr = 19959: cached_range_tombstone_.AccessAtCore(i); 19959: auto new_local_cache_ref = std::make_shared< 19959: const std::shared_ptr>(new_cache); 19959: std::atomic_store_explicit( 19959: local_cache_ref_ptr, 19959: std::shared_ptr(new_local_cache_ref, 19959: new_cache.get()), 19959: std::memory_order_relaxed); 19959: } 19959: const Comparator* ucmp = cmp.user_comparator(); 19959: 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ucmp 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "ucmp" 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 150, __extension__ __PRETTY_FUNCTION__)) 19959: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: ts_sz_ = ucmp->timestamp_size(); 19959: persist_user_defined_timestamps_ = ioptions.persist_user_defined_timestamps; 19959: } 19959: 19959: MemTable::~MemTable() { 19959: mem_tracker_.FreeMem(); 19959: 19959: # 157 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 157 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: refs_ == 0 19959: # 157 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 157 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "refs_ == 0" 19959: # 157 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 157, __extension__ __PRETTY_FUNCTION__)) 19959: # 157 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: } 19959: 19959: size_t MemTable::ApproximateMemoryUsage() { 19959: autovector usages = { 19959: arena_.ApproximateMemoryUsage(), table_->ApproximateMemoryUsage(), 19959: range_del_table_->ApproximateMemoryUsage(), 19959: rocksdb::ApproximateMemoryUsage(insert_hints_)}; 19959: size_t total_usage = 0; 19959: for (size_t usage : usages) { 19959: 19959: 19959: if (usage >= std::numeric_limits::max() - total_usage) { 19959: return std::numeric_limits::max(); 19959: } 19959: total_usage += usage; 19959: } 19959: approximate_memory_usage_.store(total_usage, std::memory_order_relaxed); 19959: 19959: return total_usage; 19959: } 19959: 19959: bool MemTable::ShouldFlushNow() { 19959: 19959: 19959: if (memtable_max_range_deletions_ > 0 && 19959: num_range_deletes_.load(std::memory_order_relaxed) >= 19959: static_cast(memtable_max_range_deletions_)) { 19959: return true; 19959: } 19959: 19959: size_t write_buffer_size = write_buffer_size_.load(std::memory_order_relaxed); 19959: 19959: 19959: 19959: 19959: 19959: 19959: const double kAllowOverAllocationRatio = 0.6; 19959: 19959: 19959: 19959: auto allocated_memory = table_->ApproximateMemoryUsage() + 19959: range_del_table_->ApproximateMemoryUsage() + 19959: arena_.MemoryAllocatedBytes(); 19959: 19959: approximate_memory_usage_.store(allocated_memory, std::memory_order_relaxed); 19959: 19959: 19959: 19959: if (allocated_memory + kArenaBlockSize < 19959: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 19959: return false; 19959: } 19959: 19959: 19959: 19959: if (allocated_memory > 19959: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 19959: return true; 19959: } 19959: # 244 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: return arena_.AllocatedAndUnused() < kArenaBlockSize / 4; 19959: } 19959: 19959: void MemTable::UpdateFlushState() { 19959: auto state = flush_state_.load(std::memory_order_relaxed); 19959: if (state == FLUSH_NOT_REQUESTED && ShouldFlushNow()) { 19959: 19959: 19959: flush_state_.compare_exchange_strong(state, FLUSH_REQUESTED, 19959: std::memory_order_relaxed, 19959: std::memory_order_relaxed); 19959: } 19959: } 19959: 19959: void MemTable::UpdateOldestKeyTime() { 19959: uint64_t oldest_key_time = oldest_key_time_.load(std::memory_order_relaxed); 19959: if (oldest_key_time == std::numeric_limits::max()) { 19959: int64_t current_time = 0; 19959: auto s = clock_->GetCurrentTime(¤t_time); 19959: if (s.ok()) { 19959: 19959: # 264 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 264 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: current_time >= 0 19959: # 264 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 264 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "current_time >= 0" 19959: # 264 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 264, __extension__ __PRETTY_FUNCTION__)) 19959: # 264 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: 19959: oldest_key_time_.compare_exchange_strong( 19959: oldest_key_time, static_cast(current_time), 19959: std::memory_order_relaxed, std::memory_order_relaxed); 19959: } 19959: } 19959: } 19959: 19959: Status MemTable::VerifyEntryChecksum(const char* entry, 19959: uint32_t protection_bytes_per_key, 19959: bool allow_data_in_errors) { 19959: if (protection_bytes_per_key == 0) { 19959: return Status::OK(); 19959: } 19959: uint32_t key_length; 19959: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 19959: if (key_ptr == nullptr) { 19959: return Status::Corruption("Unable to parse internal key length"); 19959: } 19959: if (key_length < 8) { 19959: return Status::Corruption("Memtable entry internal key length too short."); 19959: } 19959: Slice user_key = Slice(key_ptr, key_length - 8); 19959: 19959: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 19959: ValueType type; 19959: SequenceNumber seq; 19959: UnPackSequenceAndType(tag, &seq, &type); 19959: 19959: uint32_t value_length = 0; 19959: const char* value_ptr = GetVarint32Ptr( 19959: key_ptr + key_length, key_ptr + key_length + 5, &value_length); 19959: if (value_ptr == nullptr) { 19959: return Status::Corruption("Unable to parse internal key value"); 19959: } 19959: Slice value = Slice(value_ptr, value_length); 19959: 19959: const char* checksum_ptr = value_ptr + value_length; 19959: bool match = 19959: ProtectionInfo64() 19959: .ProtectKVO(user_key, value, type) 19959: .ProtectS(seq) 19959: .Verify(static_cast(protection_bytes_per_key), checksum_ptr); 19959: if (!match) { 19959: std::string msg( 19959: "Corrupted memtable entry, per key-value checksum verification " 19959: "failed."); 19959: if (allow_data_in_errors) { 19959: msg.append("Unrecognized value type: " + 19959: std::to_string(static_cast(type)) + ". "); 19959: msg.append("User key: " + user_key.ToString( true) + ". "); 19959: msg.append("seq: " + std::to_string(seq) + "."); 19959: } 19959: return Status::Corruption(msg.c_str()); 19959: } 19959: return Status::OK(); 19959: } 19959: 19959: int MemTable::KeyComparator::operator()(const char* prefix_len_key1, 19959: const char* prefix_len_key2) const { 19959: 19959: Slice k1 = GetLengthPrefixedSlice(prefix_len_key1); 19959: Slice k2 = GetLengthPrefixedSlice(prefix_len_key2); 19959: return comparator.CompareKeySeq(k1, k2); 19959: } 19959: 19959: int MemTable::KeyComparator::operator()( 19959: const char* prefix_len_key, const KeyComparator::DecodedType& key) const { 19959: 19959: Slice a = GetLengthPrefixedSlice(prefix_len_key); 19959: return comparator.CompareKeySeq(a, key); 19959: } 19959: 19959: void MemTableRep::InsertConcurrently(KeyHandle ) { 19959: throw std::runtime_error("concurrent insert not supported"); 19959: } 19959: 19959: Slice MemTableRep::UserKey(const char* key) const { 19959: Slice slice = GetLengthPrefixedSlice(key); 19959: return Slice(slice.data(), slice.size() - 8); 19959: } 19959: 19959: KeyHandle MemTableRep::Allocate(const size_t len, char** buf) { 19959: *buf = allocator_->Allocate(len); 19959: return static_cast(*buf); 19959: } 19959: 19959: 19959: 19959: 19959: const char* EncodeKey(std::string* scratch, const Slice& target) { 19959: scratch->clear(); 19959: PutVarint32(scratch, static_cast(target.size())); 19959: scratch->append(target.data(), target.size()); 19959: return scratch->data(); 19959: } 19959: 19959: class MemTableIterator : public InternalIterator { 19959: public: 19959: MemTableIterator(const MemTable& mem, const ReadOptions& read_options, 19959: Arena* arena, bool use_range_del_table = false) 19959: : bloom_(nullptr), 19959: prefix_extractor_(mem.prefix_extractor_), 19959: comparator_(mem.comparator_), 19959: valid_(false), 19959: arena_mode_(arena != nullptr), 19959: value_pinned_( 19959: !mem.GetImmutableMemTableOptions()->inplace_update_support), 19959: protection_bytes_per_key_(mem.moptions_.protection_bytes_per_key), 19959: status_(Status::OK()), 19959: logger_(mem.moptions_.info_log), 19959: ts_sz_(mem.ts_sz_) { 19959: if (use_range_del_table) { 19959: iter_ = mem.range_del_table_->GetIterator(arena); 19959: } else if (prefix_extractor_ != nullptr && !read_options.total_order_seek && 19959: !read_options.auto_prefix_mode) { 19959: 19959: bloom_ = mem.bloom_filter_.get(); 19959: iter_ = mem.table_->GetDynamicPrefixIterator(arena); 19959: } else { 19959: iter_ = mem.table_->GetIterator(arena); 19959: } 19959: status_.PermitUncheckedError(); 19959: } 19959: 19959: MemTableIterator(const MemTableIterator&) = delete; 19959: void operator=(const MemTableIterator&) = delete; 19959: 19959: ~MemTableIterator() override { 19959: 19959: 19959: 19959: 19959: # 397 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 397 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: !pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled() 19959: # 397 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 397 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "!pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled()" 19959: # 397 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 397, __extension__ __PRETTY_FUNCTION__)) 19959: # 397 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: 19959: if (arena_mode_) { 19959: iter_->~Iterator(); 19959: } else { 19959: delete iter_; 19959: } 19959: } 19959: 19959: 19959: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 19959: pinned_iters_mgr_ = pinned_iters_mgr; 19959: } 19959: PinnedIteratorsManager* pinned_iters_mgr_ = nullptr; 19959: 19959: 19959: bool Valid() const override { return valid_ && status_.ok(); } 19959: void Seek(const Slice& k) override { 19959: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; }; 19959: if (bloom_) { 19959: 19959: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 19959: if (prefix_extractor_->InDomain(user_k_without_ts)) { 19959: if (!bloom_->MayContain( 19959: prefix_extractor_->Transform(user_k_without_ts))) { 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 19959: valid_ = false; 19959: return; 19959: } else { 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 19959: } 19959: } 19959: } 19959: iter_->Seek(k, nullptr); 19959: valid_ = iter_->Valid(); 19959: VerifyEntryChecksum(); 19959: } 19959: void SeekForPrev(const Slice& k) override { 19959: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; }; 19959: if (bloom_) { 19959: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 19959: if (prefix_extractor_->InDomain(user_k_without_ts)) { 19959: if (!bloom_->MayContain( 19959: prefix_extractor_->Transform(user_k_without_ts))) { 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 19959: valid_ = false; 19959: return; 19959: } else { 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 19959: } 19959: } 19959: } 19959: iter_->Seek(k, nullptr); 19959: valid_ = iter_->Valid(); 19959: VerifyEntryChecksum(); 19959: if (!Valid() && status().ok()) { 19959: SeekToLast(); 19959: } 19959: while (Valid() && comparator_.comparator.Compare(k, key()) < 0) { 19959: Prev(); 19959: } 19959: } 19959: void SeekToFirst() override { 19959: iter_->SeekToFirst(); 19959: valid_ = iter_->Valid(); 19959: VerifyEntryChecksum(); 19959: } 19959: void SeekToLast() override { 19959: iter_->SeekToLast(); 19959: valid_ = iter_->Valid(); 19959: VerifyEntryChecksum(); 19959: } 19959: void Next() override { 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.next_on_memtable_count += 1; }; 19959: 19959: # 473 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 473 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: Valid() 19959: # 473 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 473 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "Valid()" 19959: # 473 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 473, __extension__ __PRETTY_FUNCTION__)) 19959: # 473 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: iter_->Next(); 19959: rocksdb::SyncPoint::GetInstance()->Process("MemTableIterator::Next:0", iter_); 19959: valid_ = iter_->Valid(); 19959: VerifyEntryChecksum(); 19959: } 19959: bool NextAndGetResult(IterateResult* result) override { 19959: Next(); 19959: bool is_valid = Valid(); 19959: if (is_valid) { 19959: result->key = key(); 19959: result->bound_check_result = IterBoundCheck::kUnknown; 19959: result->value_prepared = true; 19959: } 19959: return is_valid; 19959: } 19959: void Prev() override { 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.prev_on_memtable_count += 1; }; 19959: 19959: # 491 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 491 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: Valid() 19959: # 491 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 491 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "Valid()" 19959: # 491 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 491, __extension__ __PRETTY_FUNCTION__)) 19959: # 491 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: iter_->Prev(); 19959: valid_ = iter_->Valid(); 19959: VerifyEntryChecksum(); 19959: } 19959: Slice key() const override { 19959: 19959: # 497 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 497 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: Valid() 19959: # 497 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 497 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "Valid()" 19959: # 497 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 497, __extension__ __PRETTY_FUNCTION__)) 19959: # 497 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: return GetLengthPrefixedSlice(iter_->key()); 19959: } 19959: Slice value() const override { 19959: 19959: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: Valid() 19959: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "Valid()" 19959: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 501, __extension__ __PRETTY_FUNCTION__)) 19959: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: Slice key_slice = GetLengthPrefixedSlice(iter_->key()); 19959: return GetLengthPrefixedSlice(key_slice.data() + key_slice.size()); 19959: } 19959: 19959: Status status() const override { return status_; } 19959: 19959: bool IsKeyPinned() const override { 19959: 19959: return true; 19959: } 19959: 19959: bool IsValuePinned() const override { 19959: 19959: return value_pinned_; 19959: } 19959: 19959: private: 19959: DynamicBloom* bloom_; 19959: const SliceTransform* const prefix_extractor_; 19959: const MemTable::KeyComparator comparator_; 19959: MemTableRep::Iterator* iter_; 19959: bool valid_; 19959: bool arena_mode_; 19959: bool value_pinned_; 19959: uint32_t protection_bytes_per_key_; 19959: Status status_; 19959: Logger* logger_; 19959: size_t ts_sz_; 19959: 19959: void VerifyEntryChecksum() { 19959: if (protection_bytes_per_key_ > 0 && Valid()) { 19959: status_ = MemTable::VerifyEntryChecksum(iter_->key(), 19959: protection_bytes_per_key_); 19959: if (!status_.ok()) { 19959: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((logger_)), ("[%s:" "536" "] " "In MemtableIterator: %s"), RocksLogShorterFileName("./db/memtable.cc"), status_.getState()); 19959: } 19959: } 19959: } 19959: }; 19959: 19959: InternalIterator* MemTable::NewIterator(const ReadOptions& read_options, 19959: Arena* arena) { 19959: 19959: # 544 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 544 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: arena != nullptr 19959: # 544 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 544 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "arena != nullptr" 19959: # 544 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 544, __extension__ __PRETTY_FUNCTION__)) 19959: # 544 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: auto mem = arena->AllocateAligned(sizeof(MemTableIterator)); 19959: return new (mem) MemTableIterator(*this, read_options, arena); 19959: } 19959: 19959: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIterator( 19959: const ReadOptions& read_options, SequenceNumber read_seq, 19959: bool immutable_memtable) { 19959: if (read_options.ignore_range_deletions || 19959: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 19959: return nullptr; 19959: } 19959: return NewRangeTombstoneIteratorInternal(read_options, read_seq, 19959: immutable_memtable); 19959: } 19959: 19959: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIteratorInternal( 19959: const ReadOptions& read_options, SequenceNumber read_seq, 19959: bool immutable_memtable) { 19959: if (immutable_memtable) { 19959: 19959: 19959: 19959: # 566 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 566 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: IsFragmentedRangeTombstonesConstructed() 19959: # 566 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 566 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "IsFragmentedRangeTombstonesConstructed()" 19959: # 566 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 566, __extension__ __PRETTY_FUNCTION__)) 19959: # 566 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: return new FragmentedRangeTombstoneIterator( 19959: fragmented_range_tombstone_list_.get(), comparator_.comparator, 19959: read_seq, read_options.timestamp); 19959: } 19959: 19959: 19959: std::shared_ptr cache = 19959: std::atomic_load_explicit(cached_range_tombstone_.Access(), 19959: std::memory_order_relaxed); 19959: 19959: if (!cache->initialized.load(std::memory_order_acquire)) { 19959: cache->reader_mutex.lock(); 19959: if (!cache->tombstones) { 19959: auto* unfragmented_iter = 19959: new MemTableIterator(*this, read_options, nullptr , 19959: true ); 19959: cache->tombstones.reset(new FragmentedRangeTombstoneList( 19959: std::unique_ptr(unfragmented_iter), 19959: comparator_.comparator)); 19959: cache->initialized.store(true, std::memory_order_release); 19959: } 19959: cache->reader_mutex.unlock(); 19959: } 19959: 19959: auto* fragmented_iter = new FragmentedRangeTombstoneIterator( 19959: cache, comparator_.comparator, read_seq, read_options.timestamp); 19959: return fragmented_iter; 19959: } 19959: 19959: void MemTable::ConstructFragmentedRangeTombstones() { 19959: 19959: # 597 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 597 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: !IsFragmentedRangeTombstonesConstructed(false) 19959: # 597 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 597 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "!IsFragmentedRangeTombstonesConstructed(false)" 19959: # 597 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 597, __extension__ __PRETTY_FUNCTION__)) 19959: # 597 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: 19959: if (!is_range_del_table_empty_.load(std::memory_order_relaxed)) { 19959: 19959: auto* unfragmented_iter = 19959: new MemTableIterator(*this, ReadOptions(), nullptr , 19959: true ); 19959: 19959: fragmented_range_tombstone_list_ = 19959: std::make_unique( 19959: std::unique_ptr(unfragmented_iter), 19959: comparator_.comparator); 19959: } 19959: } 19959: 19959: port::RWMutex* MemTable::GetLock(const Slice& key) { 19959: return &locks_[GetSliceRangedNPHash(key, locks_.size())]; 19959: } 19959: 19959: MemTable::MemTableStats MemTable::ApproximateStats(const Slice& start_ikey, 19959: const Slice& end_ikey) { 19959: uint64_t entry_count = table_->ApproximateNumEntries(start_ikey, end_ikey); 19959: entry_count += range_del_table_->ApproximateNumEntries(start_ikey, end_ikey); 19959: if (entry_count == 0) { 19959: return {0, 0}; 19959: } 19959: uint64_t n = num_entries_.load(std::memory_order_relaxed); 19959: if (n == 0) { 19959: return {0, 0}; 19959: } 19959: if (entry_count > n) { 19959: 19959: 19959: 19959: entry_count = n; 19959: } 19959: uint64_t data_size = data_size_.load(std::memory_order_relaxed); 19959: return {entry_count * (data_size / n), entry_count}; 19959: } 19959: 19959: Status MemTable::VerifyEncodedEntry(Slice encoded, 19959: const ProtectionInfoKVOS64& kv_prot_info) { 19959: uint32_t ikey_len = 0; 19959: if (!GetVarint32(&encoded, &ikey_len)) { 19959: return Status::Corruption("Unable to parse internal key length"); 19959: } 19959: if (ikey_len < 8 + ts_sz_) { 19959: return Status::Corruption("Internal key length too short"); 19959: } 19959: if (ikey_len > encoded.size()) { 19959: return Status::Corruption("Internal key length too long"); 19959: } 19959: uint32_t value_len = 0; 19959: const size_t user_key_len = ikey_len - 8; 19959: Slice key(encoded.data(), user_key_len); 19959: encoded.remove_prefix(user_key_len); 19959: 19959: uint64_t packed = DecodeFixed64(encoded.data()); 19959: ValueType value_type = kMaxValue; 19959: SequenceNumber sequence_number = kMaxSequenceNumber; 19959: UnPackSequenceAndType(packed, &sequence_number, &value_type); 19959: encoded.remove_prefix(8); 19959: 19959: if (!GetVarint32(&encoded, &value_len)) { 19959: return Status::Corruption("Unable to parse value length"); 19959: } 19959: if (value_len < encoded.size()) { 19959: return Status::Corruption("Value length too short"); 19959: } 19959: if (value_len > encoded.size()) { 19959: return Status::Corruption("Value length too long"); 19959: } 19959: Slice value(encoded.data(), value_len); 19959: 19959: return kv_prot_info.StripS(sequence_number) 19959: .StripKVO(key, value, value_type) 19959: .GetStatus(); 19959: } 19959: 19959: void MemTable::UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 19959: const Slice& key, const Slice& value, 19959: ValueType type, SequenceNumber s, 19959: char* checksum_ptr) { 19959: if (moptions_.protection_bytes_per_key == 0) { 19959: return; 19959: } 19959: 19959: if (kv_prot_info == nullptr) { 19959: ProtectionInfo64() 19959: .ProtectKVO(key, value, type) 19959: .ProtectS(s) 19959: .Encode(static_cast(moptions_.protection_bytes_per_key), 19959: checksum_ptr); 19959: } else { 19959: kv_prot_info->Encode( 19959: static_cast(moptions_.protection_bytes_per_key), checksum_ptr); 19959: } 19959: } 19959: 19959: Status MemTable::Add(SequenceNumber s, ValueType type, 19959: const Slice& key, 19959: const Slice& value, 19959: const ProtectionInfoKVOS64* kv_prot_info, 19959: bool allow_concurrent, 19959: MemTablePostProcessInfo* post_process_info, void** hint) { 19959: 19959: 19959: 19959: 19959: 19959: 19959: uint32_t key_size = static_cast(key.size()); 19959: uint32_t val_size = static_cast(value.size()); 19959: uint32_t internal_key_size = key_size + 8; 19959: const uint32_t encoded_len = VarintLength(internal_key_size) + 19959: internal_key_size + VarintLength(val_size) + 19959: val_size + moptions_.protection_bytes_per_key; 19959: char* buf = nullptr; 19959: std::unique_ptr& table = 19959: type == kTypeRangeDeletion ? range_del_table_ : table_; 19959: KeyHandle handle = table->Allocate(encoded_len, &buf); 19959: 19959: char* p = EncodeVarint32(buf, internal_key_size); 19959: memcpy(p, key.data(), key_size); 19959: Slice key_slice(p, key_size); 19959: p += key_size; 19959: uint64_t packed = PackSequenceAndType(s, type); 19959: EncodeFixed64(p, packed); 19959: p += 8; 19959: p = EncodeVarint32(p, val_size); 19959: memcpy(p, value.data(), val_size); 19959: 19959: # 728 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 728 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: (unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len 19959: # 728 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 728 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "(unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len" 19959: # 728 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 728, __extension__ __PRETTY_FUNCTION__)) 19959: 19959: # 729 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: 19959: UpdateEntryChecksum(kv_prot_info, key, value, type, s, 19959: buf + encoded_len - moptions_.protection_bytes_per_key); 19959: Slice encoded(buf, encoded_len - moptions_.protection_bytes_per_key); 19959: if (kv_prot_info != nullptr) { 19959: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:Encoded", &encoded); 19959: Status status = VerifyEncodedEntry(encoded, *kv_prot_info); 19959: if (!status.ok()) { 19959: return status; 19959: } 19959: } 19959: 19959: Slice key_without_ts = StripTimestampFromUserKey(key, ts_sz_); 19959: 19959: if (!allow_concurrent) { 19959: 19959: if (insert_with_hint_prefix_extractor_ != nullptr && 19959: insert_with_hint_prefix_extractor_->InDomain(key_slice)) { 19959: Slice prefix = insert_with_hint_prefix_extractor_->Transform(key_slice); 19959: bool res = table->InsertKeyWithHint(handle, &insert_hints_[prefix]); 19959: if ((__builtin_expect((!res), 0))) { 19959: return Status::TryAgain("key+seq exists"); 19959: } 19959: } else { 19959: bool res = table->InsertKey(handle); 19959: if ((__builtin_expect((!res), 0))) { 19959: return Status::TryAgain("key+seq exists"); 19959: } 19959: } 19959: 19959: 19959: 19959: num_entries_.store(num_entries_.load(std::memory_order_relaxed) + 1, 19959: std::memory_order_relaxed); 19959: data_size_.store(data_size_.load(std::memory_order_relaxed) + encoded_len, 19959: std::memory_order_relaxed); 19959: if (type == kTypeDeletion || type == kTypeSingleDeletion || 19959: type == kTypeDeletionWithTimestamp) { 19959: num_deletes_.store(num_deletes_.load(std::memory_order_relaxed) + 1, 19959: std::memory_order_relaxed); 19959: } else if (type == kTypeRangeDeletion) { 19959: uint64_t val = num_range_deletes_.load(std::memory_order_relaxed) + 1; 19959: num_range_deletes_.store(val, std::memory_order_relaxed); 19959: } 19959: 19959: if (bloom_filter_ && prefix_extractor_ && 19959: prefix_extractor_->InDomain(key_without_ts)) { 19959: bloom_filter_->Add(prefix_extractor_->Transform(key_without_ts)); 19959: } 19959: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 19959: bloom_filter_->Add(key_without_ts); 19959: } 19959: 19959: 19959: 19959: # 784 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 784 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: first_seqno_ == 0 || s >= first_seqno_ 19959: # 784 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 784 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "first_seqno_ == 0 || s >= first_seqno_" 19959: # 784 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 784, __extension__ __PRETTY_FUNCTION__)) 19959: # 784 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: if (first_seqno_ == 0) { 19959: first_seqno_.store(s, std::memory_order_relaxed); 19959: 19959: if (earliest_seqno_ == kMaxSequenceNumber) { 19959: earliest_seqno_.store(GetFirstSequenceNumber(), 19959: std::memory_order_relaxed); 19959: } 19959: 19959: # 792 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 792 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: first_seqno_.load() >= earliest_seqno_.load() 19959: # 792 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 792 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "first_seqno_.load() >= earliest_seqno_.load()" 19959: # 792 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 792, __extension__ __PRETTY_FUNCTION__)) 19959: # 792 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: } 19959: 19959: # 794 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 794 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: post_process_info == nullptr 19959: # 794 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 794 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "post_process_info == nullptr" 19959: # 794 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 794, __extension__ __PRETTY_FUNCTION__)) 19959: # 794 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: 19959: 19959: MaybeUpdateNewestUDT(key_slice); 19959: UpdateFlushState(); 19959: } else { 19959: bool res = (hint == nullptr) 19959: ? table->InsertKeyConcurrently(handle) 19959: : table->InsertKeyWithHintConcurrently(handle, hint); 19959: if ((__builtin_expect((!res), 0))) { 19959: return Status::TryAgain("key+seq exists"); 19959: } 19959: 19959: 19959: # 807 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 807 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: post_process_info != nullptr 19959: # 807 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 807 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "post_process_info != nullptr" 19959: # 807 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 807, __extension__ __PRETTY_FUNCTION__)) 19959: # 807 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: post_process_info->num_entries++; 19959: post_process_info->data_size += encoded_len; 19959: if (type == kTypeDeletion) { 19959: post_process_info->num_deletes++; 19959: } 19959: 19959: if (bloom_filter_ && prefix_extractor_ && 19959: prefix_extractor_->InDomain(key_without_ts)) { 19959: bloom_filter_->AddConcurrently( 19959: prefix_extractor_->Transform(key_without_ts)); 19959: } 19959: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 19959: bloom_filter_->AddConcurrently(key_without_ts); 19959: } 19959: 19959: 19959: uint64_t cur_seq_num = first_seqno_.load(std::memory_order_relaxed); 19959: while ((cur_seq_num == 0 || s < cur_seq_num) && 19959: !first_seqno_.compare_exchange_weak(cur_seq_num, s)) { 19959: } 19959: uint64_t cur_earliest_seqno = 19959: earliest_seqno_.load(std::memory_order_relaxed); 19959: while ( 19959: (cur_earliest_seqno == kMaxSequenceNumber || s < cur_earliest_seqno) && 19959: !earliest_seqno_.compare_exchange_weak(cur_earliest_seqno, s)) { 19959: } 19959: } 19959: if (type == kTypeRangeDeletion) { 19959: auto new_cache = std::make_shared(); 19959: size_t size = cached_range_tombstone_.Size(); 19959: if (allow_concurrent) { 19959: post_process_info->num_range_deletes++; 19959: range_del_mutex_.lock(); 19959: } 19959: for (size_t i = 0; i < size; ++i) { 19959: std::shared_ptr* local_cache_ref_ptr = 19959: cached_range_tombstone_.AccessAtCore(i); 19959: auto new_local_cache_ref = std::make_shared< 19959: const std::shared_ptr>(new_cache); 19959: 19959: 19959: 19959: 19959: 19959: std::atomic_store_explicit( 19959: local_cache_ref_ptr, 19959: std::shared_ptr( 19959: new_local_cache_ref, new_cache.get()), 19959: std::memory_order_relaxed); 19959: } 19959: 19959: if (allow_concurrent) { 19959: range_del_mutex_.unlock(); 19959: } 19959: is_range_del_table_empty_.store(false, std::memory_order_relaxed); 19959: } 19959: UpdateOldestKeyTime(); 19959: 19959: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:BeforeReturn:Encoded", &encoded); 19959: return Status::OK(); 19959: } 19959: 19959: 19959: namespace { 19959: 19959: struct Saver { 19959: Status* status; 19959: const LookupKey* key; 19959: bool* found_final_value; 19959: bool* merge_in_progress; 19959: std::string* value; 19959: PinnableWideColumns* columns; 19959: SequenceNumber seq; 19959: std::string* timestamp; 19959: const MergeOperator* merge_operator; 19959: 19959: MergeContext* merge_context; 19959: SequenceNumber max_covering_tombstone_seq; 19959: MemTable* mem; 19959: Logger* logger; 19959: Statistics* statistics; 19959: bool inplace_update_support; 19959: bool do_merge; 19959: SystemClock* clock; 19959: 19959: ReadCallback* callback_; 19959: bool* is_blob_index; 19959: bool allow_data_in_errors; 19959: uint32_t protection_bytes_per_key; 19959: bool CheckCallback(SequenceNumber _seq) { 19959: if (callback_) { 19959: return callback_->IsVisible(_seq); 19959: } 19959: return true; 19959: } 19959: }; 19959: } 19959: 19959: static bool SaveValue(void* arg, const char* entry) { 19959: rocksdb::SyncPoint::GetInstance()->Process("Memtable::SaveValue:Begin:entry", &entry); 19959: Saver* s = reinterpret_cast(arg); 19959: 19959: # 909 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 909 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: s != nullptr 19959: # 909 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 909 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "s != nullptr" 19959: # 909 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 909, __extension__ __PRETTY_FUNCTION__)) 19959: # 909 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: 19959: # 910 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 910 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: !s->value || !s->columns 19959: # 910 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 910 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "!s->value || !s->columns" 19959: # 910 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 910, __extension__ __PRETTY_FUNCTION__)) 19959: # 910 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: 19959: if (s->protection_bytes_per_key > 0) { 19959: *(s->status) = MemTable::VerifyEntryChecksum( 19959: entry, s->protection_bytes_per_key, s->allow_data_in_errors); 19959: if (!s->status->ok()) { 19959: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "916" "] " "In SaveValue: %s"), RocksLogShorterFileName("./db/memtable.cc"), s->status->getState()); 19959: 19959: return false; 19959: } 19959: } 19959: 19959: MergeContext* merge_context = s->merge_context; 19959: SequenceNumber max_covering_tombstone_seq = s->max_covering_tombstone_seq; 19959: const MergeOperator* merge_operator = s->merge_operator; 19959: 19959: 19959: # 926 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 926 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: merge_context != nullptr 19959: # 926 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 926 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "merge_context != nullptr" 19959: # 926 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 926, __extension__ __PRETTY_FUNCTION__)) 19959: # 926 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: 19959: 19959: 19959: uint32_t key_length = 0; 19959: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 19959: 19959: # 932 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 932 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: key_length >= 8 19959: # 932 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 932 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "key_length >= 8" 19959: # 932 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 932, __extension__ __PRETTY_FUNCTION__)) 19959: # 932 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: Slice user_key_slice = Slice(key_ptr, key_length - 8); 19959: const Comparator* user_comparator = 19959: s->mem->GetInternalKeyComparator().user_comparator(); 19959: size_t ts_sz = user_comparator->timestamp_size(); 19959: if (ts_sz && s->timestamp && max_covering_tombstone_seq > 0) { 19959: 19959: 19959: # 939 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 939 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: s->timestamp->size() == ts_sz 19959: # 939 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 939 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "s->timestamp->size() == ts_sz" 19959: # 939 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 939, __extension__ __PRETTY_FUNCTION__)) 19959: # 939 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: } 19959: if (user_comparator->EqualWithoutTimestamp(user_key_slice, 19959: s->key->user_key())) { 19959: 19959: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 19959: ValueType type; 19959: SequenceNumber seq; 19959: UnPackSequenceAndType(tag, &seq, &type); 19959: 19959: if (!s->CheckCallback(seq)) { 19959: return true; 19959: } 19959: 19959: if (s->seq == kMaxSequenceNumber) { 19959: s->seq = seq; 19959: if (s->seq > max_covering_tombstone_seq) { 19959: if (ts_sz && s->timestamp != nullptr) { 19959: 19959: 19959: 19959: 19959: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 19959: s->timestamp->assign(ts.data(), ts_sz); 19959: } 19959: } else { 19959: s->seq = max_covering_tombstone_seq; 19959: } 19959: } 19959: 19959: if (ts_sz > 0 && s->timestamp != nullptr) { 19959: if (!s->timestamp->empty()) { 19959: 19959: # 971 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 971 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ts_sz == s->timestamp->size() 19959: # 971 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 971 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "ts_sz == s->timestamp->size()" 19959: # 971 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 971, __extension__ __PRETTY_FUNCTION__)) 19959: # 971 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: } 19959: 19959: const std::string kMaxTs(ts_sz, '\xff'); 19959: if (s->timestamp->empty() || 19959: user_comparator->CompareTimestamp(*(s->timestamp), kMaxTs) == 0) { 19959: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 19959: s->timestamp->assign(ts.data(), ts_sz); 19959: } 19959: } 19959: 19959: if ((type == kTypeValue || type == kTypeMerge || type == kTypeBlobIndex || 19959: type == kTypeWideColumnEntity || type == kTypeDeletion || 19959: type == kTypeSingleDeletion || type == kTypeDeletionWithTimestamp) && 19959: max_covering_tombstone_seq > seq) { 19959: type = kTypeRangeDeletion; 19959: } 19959: switch (type) { 19959: case kTypeBlobIndex: { 19959: if (!s->do_merge) { 19959: *(s->status) = Status::NotSupported( 19959: "GetMergeOperands not supported by stacked BlobDB"); 19959: *(s->found_final_value) = true; 19959: return false; 19959: } 19959: 19959: if (*(s->merge_in_progress)) { 19959: *(s->status) = Status::NotSupported( 19959: "Merge operator not supported by stacked BlobDB"); 19959: *(s->found_final_value) = true; 19959: return false; 19959: } 19959: 19959: if (s->is_blob_index == nullptr) { 19959: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1005" "] " "Encountered unexpected blob index."), RocksLogShorterFileName("./db/memtable.cc")); 19959: *(s->status) = Status::NotSupported( 19959: "Encountered unexpected blob index. Please open DB with " 19959: "ROCKSDB_NAMESPACE::blob_db::BlobDB."); 19959: *(s->found_final_value) = true; 19959: return false; 19959: } 19959: 19959: if (s->inplace_update_support) { 19959: s->mem->GetLock(s->key->user_key())->ReadLock(); 19959: } 19959: 19959: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 19959: 19959: *(s->status) = Status::OK(); 19959: 19959: if (s->value) { 19959: s->value->assign(v.data(), v.size()); 19959: } else if (s->columns) { 19959: s->columns->SetPlainValue(v); 19959: } 19959: 19959: if (s->inplace_update_support) { 19959: s->mem->GetLock(s->key->user_key())->ReadUnlock(); 19959: } 19959: 19959: *(s->found_final_value) = true; 19959: *(s->is_blob_index) = true; 19959: 19959: return false; 19959: } 19959: case kTypeValue: { 19959: if (s->inplace_update_support) { 19959: s->mem->GetLock(s->key->user_key())->ReadLock(); 19959: } 19959: 19959: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 19959: 19959: *(s->status) = Status::OK(); 19959: 19959: if (!s->do_merge) { 19959: 19959: 19959: 19959: 19959: 19959: merge_context->PushOperand( 19959: v, s->inplace_update_support == false ); 19959: } else if (*(s->merge_in_progress)) { 19959: 19959: # 1054 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 1054 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: s->do_merge 19959: # 1054 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1054 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "s->do_merge" 19959: # 1054 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 1054, __extension__ __PRETTY_FUNCTION__)) 19959: # 1054 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: 19959: if (s->value || s->columns) { 19959: 19959: 19959: 19959: *(s->status) = MergeHelper::TimedFullMerge( 19959: merge_operator, s->key->user_key(), 19959: MergeHelper::kPlainBaseValue, v, merge_context->GetOperands(), 19959: s->logger, s->statistics, s->clock, 19959: true, s->value, s->columns, 19959: nullptr); 19959: } 19959: } else if (s->value) { 19959: s->value->assign(v.data(), v.size()); 19959: } else if (s->columns) { 19959: s->columns->SetPlainValue(v); 19959: } 19959: 19959: if (s->inplace_update_support) { 19959: s->mem->GetLock(s->key->user_key())->ReadUnlock(); 19959: } 19959: 19959: *(s->found_final_value) = true; 19959: 19959: if (s->is_blob_index != nullptr) { 19959: *(s->is_blob_index) = false; 19959: } 19959: 19959: return false; 19959: } 19959: case kTypeWideColumnEntity: { 19959: if (s->inplace_update_support) { 19959: s->mem->GetLock(s->key->user_key())->ReadLock(); 19959: } 19959: 19959: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 19959: 19959: *(s->status) = Status::OK(); 19959: 19959: if (!s->do_merge) { 19959: 19959: 19959: 19959: Slice value_of_default; 19959: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 19959: v, value_of_default); 19959: 19959: if (s->status->ok()) { 19959: merge_context->PushOperand( 19959: value_of_default, 19959: s->inplace_update_support == false ); 19959: } 19959: } else if (*(s->merge_in_progress)) { 19959: 19959: # 1108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 1108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: s->do_merge 19959: # 1108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "s->do_merge" 19959: # 1108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 1108, __extension__ __PRETTY_FUNCTION__)) 19959: # 1108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: 19959: if (s->value || s->columns) { 19959: 19959: 19959: 19959: *(s->status) = MergeHelper::TimedFullMerge( 19959: merge_operator, s->key->user_key(), MergeHelper::kWideBaseValue, 19959: v, merge_context->GetOperands(), s->logger, s->statistics, 19959: s->clock, true, s->value, s->columns, 19959: nullptr); 19959: } 19959: } else if (s->value) { 19959: Slice value_of_default; 19959: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 19959: v, value_of_default); 19959: if (s->status->ok()) { 19959: s->value->assign(value_of_default.data(), value_of_default.size()); 19959: } 19959: } else if (s->columns) { 19959: *(s->status) = s->columns->SetWideColumnValue(v); 19959: } 19959: 19959: if (s->inplace_update_support) { 19959: s->mem->GetLock(s->key->user_key())->ReadUnlock(); 19959: } 19959: 19959: *(s->found_final_value) = true; 19959: 19959: if (s->is_blob_index != nullptr) { 19959: *(s->is_blob_index) = false; 19959: } 19959: 19959: return false; 19959: } 19959: case kTypeDeletion: 19959: case kTypeDeletionWithTimestamp: 19959: case kTypeSingleDeletion: 19959: case kTypeRangeDeletion: { 19959: if (*(s->merge_in_progress)) { 19959: if (s->value || s->columns) { 19959: 19959: 19959: 19959: *(s->status) = MergeHelper::TimedFullMerge( 19959: merge_operator, s->key->user_key(), MergeHelper::kNoBaseValue, 19959: merge_context->GetOperands(), s->logger, s->statistics, 19959: s->clock, true, s->value, s->columns, 19959: nullptr); 19959: } else { 19959: 19959: 19959: 19959: *(s->status) = Status::OK(); 19959: } 19959: } else { 19959: *(s->status) = Status::NotFound(); 19959: } 19959: *(s->found_final_value) = true; 19959: return false; 19959: } 19959: case kTypeMerge: { 19959: if (!merge_operator) { 19959: *(s->status) = Status::InvalidArgument( 19959: "merge_operator is not properly initialized."); 19959: 19959: 19959: 19959: 19959: *(s->found_final_value) = true; 19959: return false; 19959: } 19959: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 19959: *(s->merge_in_progress) = true; 19959: merge_context->PushOperand( 19959: v, s->inplace_update_support == false ); 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.internal_merge_point_lookup_count += 1; }; 19959: 19959: if (s->do_merge && merge_operator->ShouldMerge( 19959: merge_context->GetOperandsDirectionBackward())) { 19959: if (s->value || s->columns) { 19959: 19959: 19959: 19959: *(s->status) = MergeHelper::TimedFullMerge( 19959: merge_operator, s->key->user_key(), MergeHelper::kNoBaseValue, 19959: merge_context->GetOperands(), s->logger, s->statistics, 19959: s->clock, true, s->value, s->columns, 19959: nullptr); 19959: } 19959: 19959: *(s->found_final_value) = true; 19959: return false; 19959: } 19959: return true; 19959: } 19959: default: { 19959: std::string msg("Corrupted value not expected."); 19959: if (s->allow_data_in_errors) { 19959: msg.append("Unrecognized value type: " + 19959: std::to_string(static_cast(type)) + ". "); 19959: msg.append("User key: " + user_key_slice.ToString( true) + 19959: ". "); 19959: msg.append("seq: " + std::to_string(seq) + "."); 19959: } 19959: *(s->status) = Status::Corruption(msg.c_str()); 19959: return false; 19959: } 19959: } 19959: } 19959: 19959: 19959: return false; 19959: } 19959: 19959: bool MemTable::Get(const LookupKey& key, std::string* value, 19959: PinnableWideColumns* columns, std::string* timestamp, 19959: Status* s, MergeContext* merge_context, 19959: SequenceNumber* max_covering_tombstone_seq, 19959: SequenceNumber* seq, const ReadOptions& read_opts, 19959: bool immutable_memtable, ReadCallback* callback, 19959: bool* is_blob_index, bool do_merge) { 19959: 19959: if (IsEmpty()) { 19959: 19959: return false; 19959: } 19959: 19959: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 19959: 19959: std::unique_ptr range_del_iter( 19959: NewRangeTombstoneIterator(read_opts, 19959: GetInternalKeySeqno(key.internal_key()), 19959: immutable_memtable)); 19959: if (range_del_iter != nullptr) { 19959: SequenceNumber covering_seq = 19959: range_del_iter->MaxCoveringTombstoneSeqnum(key.user_key()); 19959: if (covering_seq > *max_covering_tombstone_seq) { 19959: *max_covering_tombstone_seq = covering_seq; 19959: if (timestamp) { 19959: 19959: 19959: timestamp->assign(range_del_iter->timestamp().data(), 19959: range_del_iter->timestamp().size()); 19959: } 19959: } 19959: } 19959: 19959: bool found_final_value = false; 19959: bool merge_in_progress = s->IsMergeInProgress(); 19959: bool may_contain = true; 19959: Slice user_key_without_ts = StripTimestampFromUserKey(key.user_key(), ts_sz_); 19959: bool bloom_checked = false; 19959: if (bloom_filter_) { 19959: 19959: 19959: if (moptions_.memtable_whole_key_filtering) { 19959: may_contain = bloom_filter_->MayContain(user_key_without_ts); 19959: bloom_checked = true; 19959: } else { 19959: 19959: # 1268 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 1268 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: prefix_extractor_ 19959: # 1268 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1268 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "prefix_extractor_" 19959: # 1268 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 1268, __extension__ __PRETTY_FUNCTION__)) 19959: # 1268 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: if (prefix_extractor_->InDomain(user_key_without_ts)) { 19959: may_contain = bloom_filter_->MayContain( 19959: prefix_extractor_->Transform(user_key_without_ts)); 19959: bloom_checked = true; 19959: } 19959: } 19959: } 19959: 19959: if (bloom_filter_ && !may_contain) { 19959: 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 19959: *seq = kMaxSequenceNumber; 19959: } else { 19959: if (bloom_checked) { 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 19959: } 19959: GetFromTable(key, *max_covering_tombstone_seq, do_merge, callback, 19959: is_blob_index, value, columns, timestamp, s, merge_context, 19959: seq, &found_final_value, &merge_in_progress); 19959: } 19959: 19959: 19959: 19959: if (!found_final_value && merge_in_progress && !s->IsCorruption()) { 19959: *s = Status::MergeInProgress(); 19959: } 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; }; 19959: return found_final_value; 19959: } 19959: 19959: void MemTable::GetFromTable(const LookupKey& key, 19959: SequenceNumber max_covering_tombstone_seq, 19959: bool do_merge, ReadCallback* callback, 19959: bool* is_blob_index, std::string* value, 19959: PinnableWideColumns* columns, 19959: std::string* timestamp, Status* s, 19959: MergeContext* merge_context, SequenceNumber* seq, 19959: bool* found_final_value, bool* merge_in_progress) { 19959: Saver saver; 19959: saver.status = s; 19959: saver.found_final_value = found_final_value; 19959: saver.merge_in_progress = merge_in_progress; 19959: saver.key = &key; 19959: saver.value = value; 19959: saver.columns = columns; 19959: saver.timestamp = timestamp; 19959: saver.seq = kMaxSequenceNumber; 19959: saver.mem = this; 19959: saver.merge_context = merge_context; 19959: saver.max_covering_tombstone_seq = max_covering_tombstone_seq; 19959: saver.merge_operator = moptions_.merge_operator; 19959: saver.logger = moptions_.info_log; 19959: saver.inplace_update_support = moptions_.inplace_update_support; 19959: saver.statistics = moptions_.statistics; 19959: saver.clock = clock_; 19959: saver.callback_ = callback; 19959: saver.is_blob_index = is_blob_index; 19959: saver.do_merge = do_merge; 19959: saver.allow_data_in_errors = moptions_.allow_data_in_errors; 19959: saver.protection_bytes_per_key = moptions_.protection_bytes_per_key; 19959: table_->Get(key, &saver, SaveValue); 19959: *seq = saver.seq; 19959: } 19959: 19959: void MemTable::MultiGet(const ReadOptions& read_options, MultiGetRange* range, 19959: ReadCallback* callback, bool immutable_memtable) { 19959: 19959: if (IsEmpty()) { 19959: 19959: return; 19959: } 19959: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 19959: 19959: 19959: 19959: 19959: bool no_range_del = read_options.ignore_range_deletions || 19959: is_range_del_table_empty_.load(std::memory_order_relaxed); 19959: MultiGetRange temp_range(*range, range->begin(), range->end()); 19959: if (bloom_filter_ && no_range_del) { 19959: bool whole_key = 19959: !prefix_extractor_ || moptions_.memtable_whole_key_filtering; 19959: std::array bloom_keys; 19959: std::array may_match; 19959: std::array range_indexes; 19959: int num_keys = 0; 19959: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 19959: if (whole_key) { 19959: bloom_keys[num_keys] = iter->ukey_without_ts; 19959: range_indexes[num_keys++] = iter.index(); 19959: } else if (prefix_extractor_->InDomain(iter->ukey_without_ts)) { 19959: bloom_keys[num_keys] = 19959: prefix_extractor_->Transform(iter->ukey_without_ts); 19959: range_indexes[num_keys++] = iter.index(); 19959: } 19959: } 19959: bloom_filter_->MayContain(num_keys, &bloom_keys[0], &may_match[0]); 19959: for (int i = 0; i < num_keys; ++i) { 19959: if (!may_match[i]) { 19959: temp_range.SkipIndex(range_indexes[i]); 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 19959: } else { 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 19959: } 19959: } 19959: } 19959: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 19959: bool found_final_value{false}; 19959: bool merge_in_progress = iter->s->IsMergeInProgress(); 19959: if (!no_range_del) { 19959: std::unique_ptr range_del_iter( 19959: NewRangeTombstoneIteratorInternal( 19959: read_options, GetInternalKeySeqno(iter->lkey->internal_key()), 19959: immutable_memtable)); 19959: SequenceNumber covering_seq = 19959: range_del_iter->MaxCoveringTombstoneSeqnum(iter->lkey->user_key()); 19959: if (covering_seq > iter->max_covering_tombstone_seq) { 19959: iter->max_covering_tombstone_seq = covering_seq; 19959: if (iter->timestamp) { 19959: 19959: 19959: iter->timestamp->assign(range_del_iter->timestamp().data(), 19959: range_del_iter->timestamp().size()); 19959: } 19959: } 19959: } 19959: SequenceNumber dummy_seq; 19959: GetFromTable(*(iter->lkey), iter->max_covering_tombstone_seq, true, 19959: callback, &iter->is_blob_index, 19959: iter->value ? iter->value->GetSelf() : nullptr, iter->columns, 19959: iter->timestamp, iter->s, &(iter->merge_context), &dummy_seq, 19959: &found_final_value, &merge_in_progress); 19959: 19959: if (!found_final_value && merge_in_progress) { 19959: *(iter->s) = Status::MergeInProgress(); 19959: } 19959: 19959: if (found_final_value) { 19959: if (iter->value) { 19959: iter->value->PinSelf(); 19959: range->AddValueSize(iter->value->size()); 19959: } else { 19959: 19959: # 1411 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 1411 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: iter->columns 19959: # 1411 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1411 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "iter->columns" 19959: # 1411 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 1411, __extension__ __PRETTY_FUNCTION__)) 19959: # 1411 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: range->AddValueSize(iter->columns->serialized_size()); 19959: } 19959: 19959: range->MarkKeyDone(iter); 19959: RecordTick(moptions_.statistics, MEMTABLE_HIT); 19959: if (range->GetValueSize() > read_options.value_size_soft_limit) { 19959: 19959: for (auto range_iter = range->begin(); range_iter != range->end(); 19959: ++range_iter) { 19959: range->MarkKeyDone(range_iter); 19959: *(range_iter->s) = Status::Aborted(); 19959: } 19959: break; 19959: } 19959: } 19959: } 19959: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; }; 19959: } 19959: 19959: Status MemTable::Update(SequenceNumber seq, ValueType value_type, 19959: const Slice& key, const Slice& value, 19959: const ProtectionInfoKVOS64* kv_prot_info) { 19959: LookupKey lkey(key, seq); 19959: Slice mem_key = lkey.memtable_key(); 19959: 19959: std::unique_ptr iter( 19959: table_->GetDynamicPrefixIterator()); 19959: iter->Seek(lkey.internal_key(), mem_key.data()); 19959: 19959: if (iter->Valid()) { 19959: 19959: 19959: 19959: 19959: const char* entry = iter->key(); 19959: uint32_t key_length = 0; 19959: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 19959: if (comparator_.comparator.user_comparator()->Equal( 19959: Slice(key_ptr, key_length - 8), lkey.user_key())) { 19959: 19959: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 19959: ValueType type; 19959: SequenceNumber existing_seq; 19959: UnPackSequenceAndType(tag, &existing_seq, &type); 19959: 19959: # 1456 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 1456 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: existing_seq != seq 19959: # 1456 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1456 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "existing_seq != seq" 19959: # 1456 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 1456, __extension__ __PRETTY_FUNCTION__)) 19959: # 1456 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: if (type == value_type) { 19959: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 19959: uint32_t prev_size = static_cast(prev_value.size()); 19959: uint32_t new_size = static_cast(value.size()); 19959: 19959: 19959: if (new_size <= prev_size) { 19959: char* p = 19959: EncodeVarint32(const_cast(key_ptr) + key_length, new_size); 19959: WriteLock wl(GetLock(lkey.user_key())); 19959: memcpy(p, value.data(), value.size()); 19959: 19959: # 1468 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 1468 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: (unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size()) 19959: # 1468 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1468 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "(unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size())" 19959: # 1468 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 1468, __extension__ __PRETTY_FUNCTION__)) 19959: 19959: 19959: # 1470 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 19959: if (kv_prot_info != nullptr) { 19959: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 19959: 19959: updated_kv_prot_info.UpdateS(seq, existing_seq); 19959: UpdateEntryChecksum(&updated_kv_prot_info, key, value, type, 19959: existing_seq, p + value.size()); 19959: Slice encoded(entry, p + value.size() - entry); 19959: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 19959: } else { 19959: UpdateEntryChecksum(nullptr, key, value, type, existing_seq, 19959: p + value.size()); 19959: } 19959: return Status::OK(); 19959: } 19959: } 19959: } 19959: } 19959: 19959: 19959: return Add(seq, value_type, key, value, kv_prot_info); 19959: } 19959: 19959: Status MemTable::UpdateCallback(SequenceNumber seq, const Slice& key, 19959: const Slice& delta, 19959: const ProtectionInfoKVOS64* kv_prot_info) { 19959: LookupKey lkey(key, seq); 19959: Slice memkey = lkey.memtable_key(); 19959: 19959: std::unique_ptr iter( 19959: table_->GetDynamicPrefixIterator()); 19959: iter->Seek(lkey.internal_key(), memkey.data()); 19959: 19959: if (iter->Valid()) { 19959: 19959: 19959: 19959: 19959: const char* entry = iter->key(); 19959: uint32_t key_length = 0; 19959: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 19959: if (comparator_.comparator.user_comparator()->Equal( 19959: Slice(key_ptr, key_length - 8), lkey.user_key())) { 19959: 19959: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 19959: ValueType type; 19959: uint64_t existing_seq; 19959: UnPackSequenceAndType(tag, &existing_seq, &type); 19959: if (type == kTypeValue) { 19959: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 19959: uint32_t prev_size = static_cast(prev_value.size()); 19959: 19959: char* prev_buffer = const_cast(prev_value.data()); 19959: uint32_t new_prev_size = prev_size; 19959: 19959: std::string str_value; 19959: WriteLock wl(GetLock(lkey.user_key())); 19959: auto status = moptions_.inplace_callback(prev_buffer, &new_prev_size, 19959: delta, &str_value); 19959: if (status == UpdateStatus::UPDATED_INPLACE) { 19959: 19959: 19959: # 1532 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 1532 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: new_prev_size <= prev_size 19959: # 1532 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1532 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "new_prev_size <= prev_size" 19959: # 1532 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 1532, __extension__ __PRETTY_FUNCTION__)) 19959: # 1532 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: if (new_prev_size < prev_size) { 19959: 19959: char* p = EncodeVarint32(const_cast(key_ptr) + key_length, 19959: new_prev_size); 19959: if (VarintLength(new_prev_size) < VarintLength(prev_size)) { 19959: 19959: memcpy(p, prev_buffer, new_prev_size); 19959: prev_buffer = p; 19959: } 19959: } 19959: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 19959: UpdateFlushState(); 19959: Slice new_value(prev_buffer, new_prev_size); 19959: if (kv_prot_info != nullptr) { 19959: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 19959: 19959: updated_kv_prot_info.UpdateS(seq, existing_seq); 19959: updated_kv_prot_info.UpdateV(delta, new_value); 19959: Slice encoded(entry, prev_buffer + new_prev_size - entry); 19959: UpdateEntryChecksum(&updated_kv_prot_info, key, new_value, type, 19959: existing_seq, prev_buffer + new_prev_size); 19959: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 19959: } else { 19959: UpdateEntryChecksum(nullptr, key, new_value, type, existing_seq, 19959: prev_buffer + new_prev_size); 19959: } 19959: return Status::OK(); 19959: } else if (status == UpdateStatus::UPDATED) { 19959: Status s; 19959: if (kv_prot_info != nullptr) { 19959: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 19959: updated_kv_prot_info.UpdateV(delta, str_value); 19959: s = Add(seq, kTypeValue, key, Slice(str_value), 19959: &updated_kv_prot_info); 19959: } else { 19959: s = Add(seq, kTypeValue, key, Slice(str_value), 19959: nullptr ); 19959: } 19959: RecordTick(moptions_.statistics, NUMBER_KEYS_WRITTEN); 19959: UpdateFlushState(); 19959: return s; 19959: } else if (status == UpdateStatus::UPDATE_FAILED) { 19959: 19959: 19959: UpdateFlushState(); 19959: return Status::OK(); 19959: } 19959: } 19959: } 19959: } 19959: 19959: return Status::NotFound(); 19959: } 19959: 19959: size_t MemTable::CountSuccessiveMergeEntries(const LookupKey& key) { 19959: Slice memkey = key.memtable_key(); 19959: 19959: 19959: 19959: 19959: std::unique_ptr iter( 19959: table_->GetDynamicPrefixIterator()); 19959: iter->Seek(key.internal_key(), memkey.data()); 19959: 19959: size_t num_successive_merges = 0; 19959: 19959: for (; iter->Valid(); iter->Next()) { 19959: const char* entry = iter->key(); 19959: uint32_t key_length = 0; 19959: const char* iter_key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 19959: if (!comparator_.comparator.user_comparator()->Equal( 19959: Slice(iter_key_ptr, key_length - 8), key.user_key())) { 19959: break; 19959: } 19959: 19959: const uint64_t tag = DecodeFixed64(iter_key_ptr + key_length - 8); 19959: ValueType type; 19959: uint64_t unused; 19959: UnPackSequenceAndType(tag, &unused, &type); 19959: if (type != kTypeMerge) { 19959: break; 19959: } 19959: 19959: ++num_successive_merges; 19959: } 19959: 19959: return num_successive_merges; 19959: } 19959: 19959: void MemTableRep::Get(const LookupKey& k, void* callback_args, 19959: bool (*callback_func)(void* arg, const char* entry)) { 19959: auto iter = GetDynamicPrefixIterator(); 19959: for (iter->Seek(k.internal_key(), k.memtable_key().data()); 19959: iter->Valid() && callback_func(callback_args, iter->key()); 19959: iter->Next()) { 19959: } 19959: } 19959: 19959: void MemTable::RefLogContainingPrepSection(uint64_t log) { 19959: 19959: # 1632 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 1632 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: log > 0 19959: # 1632 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1632 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "log > 0" 19959: # 1632 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 1632, __extension__ __PRETTY_FUNCTION__)) 19959: # 1632 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: auto cur = min_prep_log_referenced_.load(); 19959: while ((log < cur || cur == 0) && 19959: !min_prep_log_referenced_.compare_exchange_strong(cur, log)) { 19959: cur = min_prep_log_referenced_.load(); 19959: } 19959: } 19959: 19959: uint64_t MemTable::GetMinLogContainingPrepSection() { 19959: return min_prep_log_referenced_.load(); 19959: } 19959: 19959: void MemTable::MaybeUpdateNewestUDT(const Slice& user_key) { 19959: if (ts_sz_ == 0 || persist_user_defined_timestamps_) { 19959: return; 19959: } 19959: const Comparator* ucmp = GetInternalKeyComparator().user_comparator(); 19959: Slice udt = ExtractTimestampFromUserKey(user_key, ts_sz_); 19959: if (newest_udt_.empty() || ucmp->CompareTimestamp(udt, newest_udt_) > 0) { 19959: newest_udt_ = udt; 19959: } 19959: } 19959: 19959: const Slice& MemTable::GetNewestUDT() const { 19959: 19959: 19959: 19959: # 1658 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: (static_cast ( 19959: # 1658 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ts_sz_ > 0 && !persist_user_defined_timestamps_ 19959: # 1658 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: ) ? void (0) : __assert_fail ( 19959: # 1658 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: "ts_sz_ > 0 && !persist_user_defined_timestamps_" 19959: # 1658 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 19959: , "./db/memtable.cc", 1658, __extension__ __PRETTY_FUNCTION__)) 19959: # 1658 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 19959: ; 19959: return newest_udt_; 19959: } 19959: 19959: } === END GCC DUMP === make[3]: *** [CMakeFiles/rocksdb-shared.dir/build.make:1087: CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_state.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/compaction/compaction_state.cc /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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-8.9.1/db/compaction/compaction_outputs.h:54:26, inlined from 'rocksdb::CompactionServiceJobStatus rocksdb::CompactionJob::ProcessKeyValueCompactionWithCompactionService(rocksdb::SubcompactionState*)' at /build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_service_job.cc:197:37: /usr/include/c++/13/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)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_outputs.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/compaction/compaction_outputs.cc [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/sst_partitioner.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/compaction/sst_partitioner.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:16, from /build/reproducible-path/rocksdb-8.9.1/db/version_builder.h:14, from /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:62: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/memory:69, from /build/reproducible-path/rocksdb-8.9.1/db/version_builder.h:12: /usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:1619: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++/13/bits/vector.tcc:238:44: /usr/include/c++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::DBOptions::DBOptions(const rocksdb::DBOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:460:8: /usr/include/c++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:66:8: /usr/include/c++/13/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/subcompaction_state.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/compaction/subcompaction_state.cc /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from /usr/include/c++/13/vector:66: 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-8.9.1/db/repair.cc:492:31: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/convenience.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/convenience.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 'rocksdb::Status rocksdb::{anonymous}::Repairer::FindFiles()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:320:30, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:200:23: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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-8.9.1/db/repair.cc:322:38, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:200:23: /usr/include/c++/13/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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::AddTables()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:704:27, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:229:25: /usr/include/c++/13/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 '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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::AddTables()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:704:27, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:229:25: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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-8.9.1/db/version_edit.h:503:28, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::AddTables()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:735:25, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:229:25: /usr/include/c++/13/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 '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(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:504:35, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::AddTables()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:735:25, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:229:25: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ make[3]: Leaving directory '/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf' make[2]: *** [CMakeFiles/Makefile2:202: CMakeFiles/rocksdb-shared.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs.... [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/db_filesnapshot.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/db_filesnapshot.cc [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/compacted_db_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/db_impl/compacted_db_impl.cc [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/db_impl/db_impl.cc [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_write.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/db_impl/db_impl_write.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/db_filesnapshot.cc:12: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: 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-8.9.1/db/db_filesnapshot.cc:116:37: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/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.dir/db/db_impl/db_impl_compaction_flush.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/db_impl/db_impl_compaction_flush.cc In file included from /usr/include/c++/13/vector:65, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/compacted_db_impl.h:8, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/compacted_db_impl.cc:6: /usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:66:8: /usr/include/c++/13/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_files.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/db_impl/db_impl_files.cc [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_open.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/db_impl/db_impl_open.cc In file included from /usr/include/c++/13/vector:72, from /usr/include/c++/13/functional:64, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_files.cc:13: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/builder.h:11, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:12: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: 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-8.9.1/db/snapshot_impl.h:139:22, inlined from 'std::vector rocksdb::SnapshotList::GetAll(rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-8.9.1/db/snapshot_impl.h:114:11, inlined from 'void rocksdb::DBImpl::GetSnapshotContext(rocksdb::JobContext*, std::vector*, rocksdb::SequenceNumber*, rocksdb::SnapshotChecker**)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:4285:37: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: 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-8.9.1/db/db_impl/db_impl_files.cc:309:48: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from /usr/include/c++/13/deque:65, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:12: /usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:390:7: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445: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-8.9.1/util/autovector.h:303:25, inlined from 'void rocksdb::DBImpl::PurgeObsoleteFiles(rocksdb::JobContext&, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_files.cc:642:35: /usr/include/c++/13/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++/13/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyData* const&, const long long unsigned int&, rocksdb::SuperVersionContext*, rocksdb::FlushReason&}; _Tp = rocksdb::DBImpl::BGFlushArg; _Alloc = std::allocator]': /usr/include/c++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/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++/13/vector:72, from /usr/include/c++/13/functional:64, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.cc:9: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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 'void rocksdb::DBImpl::BuildCompactionJobInfo(const rocksdb::ColumnFamilyData*, rocksdb::Compaction*, const rocksdb::Status&, const rocksdb::CompactionJobStats&, int, rocksdb::CompactionJobInfo*) const' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:4164:63: /usr/include/c++/13/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, rocksdb::CompactionJobInfo*) const' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:4175:62: /usr/include/c++/13/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-8.9.1/util/autovector.h:303:25, inlined from 'rocksdb::Status rocksdb::DBImpl::FlushMemTable(rocksdb::ColumnFamilyData*, const rocksdb::FlushOptions&, rocksdb::FlushReason, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:2293:42: /usr/include/c++/13/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-8.9.1/util/autovector.h:303:25, inlined from 'rocksdb::Status rocksdb::DBImpl::FlushMemTable(rocksdb::ColumnFamilyData*, const rocksdb::FlushOptions&, rocksdb::FlushReason, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:2321:46: /usr/include/c++/13/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 'void rocksdb::autovector::push_back(const T&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:283:22, inlined from 'rocksdb::Status rocksdb::DBImpl::RetryFlushesForErrorRecovery(rocksdb::FlushReason, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:2550:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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 'void rocksdb::autovector::push_back(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'rocksdb::Status rocksdb::DBImpl::RetryFlushesForErrorRecovery(rocksdb::FlushReason, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:2554:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_debug.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/db_impl/db_impl_debug.cc In file included from /usr/include/c++/13/map:62, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:16: /usr/include/c++/13/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++/13/bits/stl_tree.h:2458: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 2458 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/map:63: /usr/include/c++/13/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++/13/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::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-8.9.1/db/db_impl/db_impl_compaction_flush.cc:516:40: /usr/include/c++/13/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++/13/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*&, rocksdb::PinnableWideColumns*&, std::__cxx11::basic_string, std::allocator >*, rocksdb::Status*}; _Tp = rocksdb::KeyContext; _Alloc = std::allocator]': /usr/include/c++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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*&, rocksdb::PinnableWideColumns*&, std::__cxx11::basic_string, std::allocator >*, rocksdb::Status*}; _Tp = rocksdb::KeyContext; _Alloc = std::allocator]': /usr/include/c++/13/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::ColumnFamilyData* const&, const long long unsigned int&, rocksdb::SuperVersionContext*, rocksdb::FlushReason&}; _Tp = rocksdb::DBImpl::BGFlushArg; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {rocksdb::ColumnFamilyData* const&, const long long unsigned int&, rocksdb::SuperVersionContext*, rocksdb::FlushReason&}; T = rocksdb::DBImpl::BGFlushArg; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:303:25, inlined from 'rocksdb::Status rocksdb::DBImpl::BackgroundFlush(bool*, rocksdb::JobContext*, rocksdb::LogBuffer*, rocksdb::FlushReason*, bool*, rocksdb::Env::Priority)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_compaction_flush.cc:3199:33: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28: /usr/include/c++/13/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 '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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/stl_algo.h:61, from /usr/include/c++/13/algorithm:61, from /build/reproducible-path/rocksdb-8.9.1/util/coding.h:19, from /build/reproducible-path/rocksdb-8.9.1/db/dbformat.h:21, from /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h:14, from /build/reproducible-path/rocksdb-8.9.1/db/builder.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:11: /usr/include/c++/13/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++/13/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, | ^~~~~~~~~~~~~ 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-8.9.1/db/db_impl/db_impl.cc:4953:29: /usr/include/c++/13/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++/13/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++/13/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1918 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/13/bits/stl_algo.h:1932:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1932 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1812 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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++/13/bits/stl_vector.h:1296:21, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteOptionsFile(bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.cc:5324:22: /usr/include/c++/13/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++/13/deque:65, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:12: /usr/include/c++/13/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++/13/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++/13/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 file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/builder.h:11: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::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*, 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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:390:7: /usr/include/c++/13/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 = {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-8.9.1/db/db_impl/db_impl_open.cc:124:33: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_experimental.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/db_impl/db_impl_experimental.cc /usr/include/c++/13/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++/13/bits/vector.tcc:445: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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28: /usr/include/c++/13/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++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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&, rocksdb::WalMetadata}; _Tp = rocksdb::WalAddition; _Alloc = std::allocator]', inlined from 'void rocksdb::VersionEdit::AddWal(rocksdb::WalNumber, rocksdb::WalMetadata)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:594:32, inlined from 'void rocksdb::DBImpl::MarkLogsSynced(uint64_t, bool, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.cc:1701:28: /usr/include/c++/13/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++/13/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*]': /usr/include/c++/13/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++/13/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*]' at /usr/include/c++/13/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*; _Tp = rocksdb::IngestedFileInfo]' at /usr/include/c++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator > >; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:1619:35, inlined from 'void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator > >; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/13/bits/vector.tcc:324:40, inlined from 'void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; = void; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:826:17, inlined from 'rocksdb::autovector& rocksdb::autovector::assign(const rocksdb::autovector&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:370:15, inlined from 'rocksdb::autovector::autovector(const rocksdb::autovector&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:327:47, inlined from 'rocksdb::ExternalSstFileIngestionJob::ExternalSstFileIngestionJob(const rocksdb::ExternalSstFileIngestionJob&)' at /build/reproducible-path/rocksdb-8.9.1/db/external_sst_file_ingestion_job.h:78:7, inlined from 'void std::_Construct(_Tp*, _Args&& ...) [with _Tp = rocksdb::ExternalSstFileIngestionJob; _Args = {const rocksdb::ExternalSstFileIngestionJob&}]' at /usr/include/c++/13/bits/stl_construct.h:119:7, inlined from '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const rocksdb::ExternalSstFileIngestionJob*; _ForwardIterator = rocksdb::ExternalSstFileIngestionJob*]' at /usr/include/c++/13/bits/stl_uninitialized.h:120:21: /usr/include/c++/13/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++/13/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::VersionSet*, rocksdb::ColumnFamilyData*&, const rocksdb::ImmutableDBOptions&, rocksdb::MutableDBOptions&, const rocksdb::FileOptions&, rocksdb::SnapshotList*, const rocksdb::IngestExternalFileOptions&, rocksdb::Directories*, rocksdb::EventLogger*, std::shared_ptr&}; _Tp = rocksdb::ExternalSstFileIngestionJob; _Alloc = std::allocator]': /usr/include/c++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::VersionSet*, rocksdb::ColumnFamilyData*&, const rocksdb::ImmutableDBOptions&, rocksdb::MutableDBOptions&, const rocksdb::FileOptions&, rocksdb::SnapshotList*, const rocksdb::IngestExternalFileOptions&, rocksdb::Directories*, rocksdb::EventLogger*, std::shared_ptr&}; _Tp = rocksdb::ExternalSstFileIngestionJob; _Alloc = std::allocator]', inlined from 'virtual rocksdb::Status rocksdb::DBImpl::IngestExternalFiles(const std::vector&)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.cc:5745:32: /usr/include/c++/13/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++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/column_family.h:15, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_debug.cc:12: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: 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-8.9.1/db/db_impl/db_impl_debug.cc:76:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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++/13/bits/stl_vector.h:1296:21, inlined from 'static rocksdb::Status rocksdb::DB::Open(const rocksdb::Options&, const std::string&, rocksdb::DB**)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:1788:28: /usr/include/c++/13/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++/13/bits/stl_vector.h:1296:21, inlined from 'static rocksdb::Status rocksdb::DB::Open(const rocksdb::Options&, const std::string&, rocksdb::DB**)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:1791:30: /usr/include/c++/13/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 'void rocksdb::SnapshotList::GetAll(std::vector*, rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-8.9.1/db/snapshot_impl.h:139:22, inlined from 'std::vector rocksdb::SnapshotList::GetAll(rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-8.9.1/db/snapshot_impl.h:114:11, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteLevel0TableForRecovery(int, rocksdb::ColumnFamilyData*, rocksdb::MemTable*, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:1650:62: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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-8.9.1/db/version_edit.h:545:38, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteLevel0TableForRecovery(int, rocksdb::ColumnFamilyData*, rocksdb::MemTable*, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:1741:24: /usr/include/c++/13/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 'void rocksdb::autovector::push_back(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddBlobFile(rocksdb::BlobFileAddition)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:546:35, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteLevel0TableForRecovery(int, rocksdb::ColumnFamilyData*, rocksdb::MemTable*, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:1741:24: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_readonly.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/db_impl/db_impl_readonly.cc In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]', inlined from 'void rocksdb::DBImpl::PersistStats()' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.cc:1015:74: /usr/include/c++/13/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]', inlined from 'void rocksdb::DBImpl::PersistStats()' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.cc:1015:33: /usr/include/c++/13/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function '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-8.9.1/db/db_impl/db_impl_open.cc:766:23: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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++/13/bits/stl_algo.h:4861:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, uint64_t*, RecoveryContext*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:768:16: /usr/include/c++/13/bits/stl_algo.h:1947:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1947 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1948 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1949 | __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++/13/bits/stl_algo.h:1950:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/13/bits/stl_algo.h:4861:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, uint64_t*, RecoveryContext*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_open.cc:768:16: /usr/include/c++/13/bits/stl_algo.h:1859:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1859 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1864:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1864 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_secondary.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/db_impl/db_impl_secondary.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/db_info_dumper.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/db_info_dumper.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_experimental.cc:11: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445: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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28: /usr/include/c++/13/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++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/db_iter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/db_iter.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/dbformat.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/dbformat.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_readonly.h:10, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_readonly.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:65: /usr/include/c++/13/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++/13/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++/13/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/error_handler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/error_handler.cc In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:66:8: /usr/include/c++/13/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 = {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++/13/bits/stl_vector.h:1296:21, inlined from 'static rocksdb::Status rocksdb::DB::OpenForReadOnly(const rocksdb::Options&, const std::string&, rocksdb::DB**, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_readonly.cc:298:28: /usr/include/c++/13/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)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/event_helpers.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/event_helpers.cc In file included from /usr/include/c++/13/bits/stl_algo.h:61, from /usr/include/c++/13/functional:67, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.h:12, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.cc:6: /usr/include/c++/13/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++/13/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++/13/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++/13/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1918 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/13/bits/stl_algo.h:1932:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1932 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1812 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.h:10: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: 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-8.9.1/db/db_impl/db_impl_secondary.cc:127:22: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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++/13/bits/stl_algo.h:4861:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.cc:132:14: /usr/include/c++/13/bits/stl_algo.h:1947:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1947 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1948 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1949 | __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++/13/bits/stl_algo.h:1950:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/13/bits/stl_algo.h:4861:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.cc:132:14: /usr/include/c++/13/bits/stl_algo.h:1859:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1859 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:1864:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1864 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/map:62, from /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl.h:16: /usr/include/c++/13/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++/13/bits/stl_tree.h:2489:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2489 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/stl_tree.h:2458:7: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2458 | _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++/13/bits/stl_map.h:1088:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.cc:145:25: /usr/include/c++/13/bits/stl_tree.h:1210:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1210 | _M_erase_aux(__position); | ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/13/map:63: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {std::pair > >}; _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::__enable_if_t, _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++/13/bits/stl_map.h:860:27, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.cc:174:24: /usr/include/c++/13/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map >::const_iterator' {aka 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/stl_tree.h:2503:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2503 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_tree.h:2503: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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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-8.9.1/db/db_impl/db_impl_secondary.cc:742:31: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h:10, from /build/reproducible-path/rocksdb-8.9.1/monitoring/instrumented_mutex.h:8, from /build/reproducible-path/rocksdb-8.9.1/db/error_handler.h:9, from /build/reproducible-path/rocksdb-8.9.1/db/error_handler.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, inlined from 'void rocksdb::ErrorHandler::AddFilesToQuarantine(rocksdb::autovector*>)' at /build/reproducible-path/rocksdb-8.9.1/db/error_handler.cc:507:37: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/13/bits/stl_map.h:1139:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::RecoverLogFiles(const std::vector&, rocksdb::SequenceNumber*, std::unordered_set*, rocksdb::JobContext*)' at /build/reproducible-path/rocksdb-8.9.1/db/db_impl/db_impl_secondary.cc:337:23: /usr/include/c++/13/bits/stl_tree.h:1239:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1239 | _M_erase_aux(__first, __last); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ [ 21%] Building CXX object CMakeFiles/rocksdb.dir/db/experimental.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/experimental.cc [ 21%] Building CXX object CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/external_sst_file_ingestion_job.cc 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-8.9.1/db/db_impl/db_impl_secondary.cc:974:28: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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-8.9.1/db/db_impl/db_impl_secondary.cc:979:33: /usr/include/c++/13/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)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 21%] Building CXX object CMakeFiles/rocksdb.dir/db/file_indexer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/file_indexer.cc [ 21%] Building CXX object CMakeFiles/rocksdb.dir/db/flush_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/flush_job.cc [ 21%] Building CXX object CMakeFiles/rocksdb.dir/db/flush_scheduler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/flush_scheduler.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h:18, from /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/experimental.h:8, from /build/reproducible-path/rocksdb-8.9.1/db/experimental.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445: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 >&, 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-8.9.1/db/version_util.h:68:31, inlined from 'rocksdb::OfflineManifestWriter::OfflineManifestWriter(const rocksdb::DBOptions&, const std::string&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_util.h:23:9: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28, inlined from 'rocksdb::Status rocksdb::experimental::UpdateManifestForFilesState(const rocksdb::DBOptions&, const std::string&, const std::vector&, const UpdateManifestForFilesStateOptions&)' at /build/reproducible-path/rocksdb-8.9.1/db/experimental.cc:98:27: /usr/include/c++/13/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++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35, inlined from 'rocksdb::Status rocksdb::experimental::UpdateManifestForFilesState(const rocksdb::DBOptions&, const std::string&, const std::vector&, const UpdateManifestForFilesStateOptions&)' at /build/reproducible-path/rocksdb-8.9.1/db/experimental.cc:98:27: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 21%] Building CXX object CMakeFiles/rocksdb.dir/db/forward_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/forward_iterator.cc [ 21%] Building CXX object CMakeFiles/rocksdb.dir/db/import_column_family_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/import_column_family_job.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/external_sst_file_ingestion_job.h:9, from /build/reproducible-path/rocksdb-8.9.1/db/external_sst_file_ingestion_job.cc:7: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/flush_job.h:18, from /build/reproducible-path/rocksdb-8.9.1/db/flush_job.cc:10: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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-8.9.1/util/autovector.h:303: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-8.9.1/db/external_sst_file_ingestion_job.cc:64:34: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445: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-8.9.1/db/version_edit.h:503:28, inlined from 'rocksdb::Status rocksdb::ExternalSstFileIngestionJob::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/external_sst_file_ingestion_job.cc:491:18: /usr/include/c++/13/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++/13/vector:66: 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(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:504:35, inlined from 'rocksdb::Status rocksdb::ExternalSstFileIngestionJob::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/external_sst_file_ingestion_job.cc:491:18: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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-8.9.1/db/flush_job.cc:1129:48: /usr/include/c++/13/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++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28: /usr/include/c++/13/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++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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 'void rocksdb::autovector::push_back(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'rocksdb::VersionEdit::SetBlobFileAdditions(BlobFileAdditions)::' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:562:41, inlined from '_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = __gnu_cxx::__normal_iterator >; _Funct = rocksdb::VersionEdit::SetBlobFileAdditions(BlobFileAdditions)::]' at /usr/include/c++/13/bits/stl_algo.h:3833:5, inlined from 'void rocksdb::VersionEdit::SetBlobFileAdditions(BlobFileAdditions)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:559:18, inlined from 'rocksdb::Status rocksdb::FlushJob::WriteLevel0Table()' at /build/reproducible-path/rocksdb-8.9.1/db/flush_job.cc:1050:32: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 22%] Building CXX object CMakeFiles/rocksdb.dir/db/internal_stats.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/internal_stats.cc [ 22%] Building CXX object CMakeFiles/rocksdb.dir/db/logs_with_prep_tracker.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/logs_with_prep_tracker.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/logs_with_prep_tracker.h:13, from /build/reproducible-path/rocksdb-8.9.1/db/logs_with_prep_tracker.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | 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++/13/bits/stl_vector.h:1391:30, inlined from 'void rocksdb::LogsWithPrepTracker::MarkLogAsContainingPrepSection(uint64_t)' at /build/reproducible-path/rocksdb-8.9.1/db/logs_with_prep_tracker.cc:39:27: /usr/include/c++/13/bits/vector.tcc:372:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 372 | _M_realloc_insert(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 22%] Building CXX object CMakeFiles/rocksdb.dir/db/log_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/log_reader.cc In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:16, from /build/reproducible-path/rocksdb-8.9.1/db/version_builder.h:14, from /build/reproducible-path/rocksdb-8.9.1/db/import_column_family_job.cc:7: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445: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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28, inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/import_column_family_job.cc:209:33: /usr/include/c++/13/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++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35, inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/import_column_family_job.cc:209:33: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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-8.9.1/db/version_edit.h:503:28, inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/import_column_family_job.cc:237:22: /usr/include/c++/13/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 '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(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:504:35, inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/import_column_family_job.cc:237:22: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Prepare(uint64_t, rocksdb::SuperVersion*)' at /build/reproducible-path/rocksdb-8.9.1/db/import_column_family_job.cc:60:39: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 22%] Building CXX object CMakeFiles/rocksdb.dir/db/log_writer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/log_writer.cc [ 22%] Building CXX object CMakeFiles/rocksdb.dir/db/malloc_stats.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/malloc_stats.cc [ 22%] Building CXX object CMakeFiles/rocksdb.dir/db/memtable.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/memtable.cc [ 22%] Building CXX object CMakeFiles/rocksdb.dir/db/memtable_list.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/memtable_list.cc [ 22%] Building CXX object CMakeFiles/rocksdb.dir/db/merge_helper.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/merge_helper.cc /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc:271:1: error: insn does not satisfy its constraints: 271 | } | ^ (insn 275 274 276 13 (set (reg:CC_DNE 100 cc) (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [164]) (const_int -1 [0xffffffffffffffff])) (ne:SI (reg:SI 1 r1 [+4 ]) (const_int -1 [0xffffffffffffffff]))) (const_int 0 [0]))) "/usr/include/c++/13/bits/atomic_base.h":577:36 343 {*cmp_ior} (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) (expr_list:REG_DEAD (reg:SI 0 r0 [164]) (nil)))) during RTL pass: cprop_hardreg /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc:271:1: internal compiler error: in extract_constrain_insn, at recog.cc:2692 0xea4edf internal_error(char const*, ...) ???:0 0x1fb1bd fancy_abort(char const*, int, char const*) ???:0 0x1f9e7b _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ???:0 0x1f9ead _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ???:0 0x6928e7 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. [ 23%] Building CXX object CMakeFiles/rocksdb.dir/db/merge_operator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/merge_operator.cc [ 23%] Building CXX object CMakeFiles/rocksdb.dir/db/output_validator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/output_validator.cc [ 23%] Building CXX object CMakeFiles/rocksdb.dir/db/periodic_task_scheduler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/periodic_task_scheduler.cc [ 23%] Building CXX object CMakeFiles/rocksdb.dir/db/range_del_aggregator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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-8.9.1/db/range_del_aggregator.cc [ 23%] Building CXX object CMakeFiles/rocksdb.dir/db/range_tombstone_fragmenter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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_tombstone_fragmenter.cc.o -MF CMakeFiles/rocksdb.dir/db/range_tombstone_fragmenter.cc.o.d -o CMakeFiles/rocksdb.dir/db/range_tombstone_fragmenter.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.cc [ 23%] Building CXX object CMakeFiles/rocksdb.dir/db/repair.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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/repair.cc.o -MF CMakeFiles/rocksdb.dir/db/repair.cc.o.d -o CMakeFiles/rocksdb.dir/db/repair.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/repair.cc In file included from /usr/include/c++/13/map:62, from /build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h:11, from /build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.cc:6: /usr/include/c++/13/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++/13/bits/stl_tree.h:2458:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 2458 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/map:63: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {const long long unsigned int&, rocksdb::RangeDelAggregator::StripeRep}; _Key = long long unsigned int; _Tp = rocksdb::RangeDelAggregator::StripeRep; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind >::other>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::emplace(_Args&& ...) [with _Args = {const long long unsigned int&, rocksdb::RangeDelAggregator::StripeRep}; _Key = long long unsigned int; _Tp = rocksdb::RangeDelAggregator::StripeRep; _Compare = std::less; _Alloc = std::allocator >]' at /usr/include/c++/13/bits/stl_map.h:601:22, inlined from 'virtual void rocksdb::CompactionRangeDelAggregator::AddTombstones(std::unique_ptr, const rocksdb::InternalKey*, const rocksdb::InternalKey*)' at /build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.cc:388:45: /usr/include/c++/13/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map::const_iterator' {aka 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h:12, from /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.cc:6: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/set:62, from /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h:10: /usr/include/c++/13/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++/13/bits/stl_tree.h:2458:7: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2458 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/map:63, from /build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h:8, from /build/reproducible-path/rocksdb-8.9.1/monitoring/perf_step_timer.h:8, from /build/reproducible-path/rocksdb-8.9.1/monitoring/perf_context_imp.h:7, from /build/reproducible-path/rocksdb-8.9.1/util/user_comparator_wrapper.h:11, from /build/reproducible-path/rocksdb-8.9.1/db/dbformat.h:22, from /build/reproducible-path/rocksdb-8.9.1/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++/13/bits/stl_map.h:601:22, inlined from 'std::map > rocksdb::FragmentedRangeTombstoneIterator::SplitBySnapshot(const std::vector&)' at /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.cc:493:21: /usr/include/c++/13/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map >::const_iterator' {aka 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66: 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-8.9.1/util/autovector.h:283:22, inlined from 'rocksdb::FragmentedRangeTombstoneList::FragmentTombstones(std::unique_ptr >, const rocksdb::InternalKeyComparator&, bool, const std::vector&)::' at /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.cc:129:35: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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::FragmentedRangeTombstoneList::FragmentTombstones(std::unique_ptr >, const rocksdb::InternalKeyComparator&, bool, const std::vector&)::' at /build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.cc:158:38: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 23%] Building CXX object CMakeFiles/rocksdb.dir/db/seqno_to_time_mapping.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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/seqno_to_time_mapping.cc.o -MF CMakeFiles/rocksdb.dir/db/seqno_to_time_mapping.cc.o.d -o CMakeFiles/rocksdb.dir/db/seqno_to_time_mapping.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.cc [ 24%] Building CXX object CMakeFiles/rocksdb.dir/db/snapshot_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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/snapshot_impl.cc.o -MF CMakeFiles/rocksdb.dir/db/snapshot_impl.cc.o.d -o CMakeFiles/rocksdb.dir/db/snapshot_impl.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/snapshot_impl.cc [ 24%] Building CXX object CMakeFiles/rocksdb.dir/db/table_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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/table_cache.cc.o -MF CMakeFiles/rocksdb.dir/db/table_cache.cc.o.d -o CMakeFiles/rocksdb.dir/db/table_cache.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/table_cache.cc [ 24%] Building CXX object CMakeFiles/rocksdb.dir/db/table_properties_collector.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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/table_properties_collector.cc.o -MF CMakeFiles/rocksdb.dir/db/table_properties_collector.cc.o.d -o CMakeFiles/rocksdb.dir/db/table_properties_collector.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.cc Preprocessed source stored into /tmp/ccvLvqxI.out file, please attach this to your bugreport. === BEGIN GCC DUMP === 24952: // Target: arm-linux-gnueabihf 24952: // Configured with: ../src/configure -v --with-pkgversion='Debian 13.2.0-13' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a+fp --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf 24952: // Thread model: posix 24952: // Supported LTO compression algorithms: zlib zstd 24952: // gcc version 13.2.0 (Debian 13.2.0-13) 24952: // 24952: // /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': 24952: // /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc:271:1: error: insn does not satisfy its constraints: 24952: // 271 | } 24952: // | ^ 24952: // (insn 275 274 276 13 (set (reg:CC_DNE 100 cc) 24952: // (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [164]) 24952: // (const_int -1 [0xffffffffffffffff])) 24952: // (ne:SI (reg:SI 1 r1 [+4 ]) 24952: // (const_int -1 [0xffffffffffffffff]))) 24952: // (const_int 0 [0]))) "/usr/include/c++/13/bits/atomic_base.h":577:36 343 {*cmp_ior} 24952: // (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) 24952: // (expr_list:REG_DEAD (reg:SI 0 r0 [164]) 24952: // (nil)))) 24952: // during RTL pass: cprop_hardreg 24952: // /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc:271:1: internal compiler error: in extract_constrain_insn, at recog.cc:2692 24952: // 0xea4edf internal_error(char const*, ...) 24952: // ???:0 24952: // 0x1fb1bd fancy_abort(char const*, int, char const*) 24952: // ???:0 24952: // 0x1f9e7b _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) 24952: // ???:0 24952: // 0x1f9ead _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) 24952: // ???:0 24952: // 0x6928e7 extract_constrain_insn(rtx_insn*) 24952: // ???:0 24952: // Please submit a full bug report, with preprocessed source (by using -freport-bug). 24952: // Please include the complete backtrace with any bug report. 24952: // See for instructions. 24952: 24952: // /usr/libexec/gcc/arm-linux-gnueabihf/13/cc1plus -quiet -I /build/reproducible-path/rocksdb-8.9.1 -I /build/reproducible-path/rocksdb-8.9.1/include -imultilib . -imultiarch arm-linux-gnueabihf -MD CMakeFiles/rocksdb.dir/db/memtable.cc.d -MF CMakeFiles/rocksdb.dir/db/memtable.cc.o.d -MT CMakeFiles/rocksdb.dir/db/memtable.cc.o -D_GNU_SOURCE -D_REENTRANT -D BZIP2 -D GFLAGS=1 -D GFLAGS_IS_A_DLL=0 -D LZ4 -D OS_LINUX -D ROCKSDB_AUXV_GETAUXVAL_PRESENT -D ROCKSDB_FALLOCATE_PRESENT -D ROCKSDB_LIB_IO_POSIX -D ROCKSDB_MALLOC_USABLE_SIZE -D ROCKSDB_NO_DYNAMIC_EXTENSION -D ROCKSDB_PLATFORM_POSIX -D ROCKSDB_PTHREAD_ADAPTIVE_MUTEX -D ROCKSDB_RANGESYNC_PRESENT -D ROCKSDB_SCHED_GETCPU_PRESENT -D SNAPPY -D ZLIB -D ZSTD -D _FORTIFY_SOURCE=2 -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src /build/reproducible-path/rocksdb-8.9.1/db/memtable.cc -quiet -dumpdir CMakeFiles/rocksdb.dir/db/ -dumpbase memtable.cc.cc -dumpbase-ext .cc -mfloat-abi=hard -mtls-dialect=gnu -mthumb -mlibarch=armv8-a+crc+crypto -march=armv8-a+crc+crypto -g -O2 -Wformat=1 -Werror=format-security -Wdate-time -Wextra -Wall -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual=2 -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -Wno-unused-function -std=gnu++17 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -fno-omit-frame-pointer -fno-builtin-memcmp -o - -frandom-seed=0 -fdump-noaddr 24952: 24952: # 0 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf//" 24952: # 0 "" 24952: # 0 "" 24952: # 1 "/usr/include/stdc-predef.h" 1 3 4 24952: # 0 "" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: 24952: # 1 "/usr/include/c++/13/atomic" 1 3 24952: # 35 "/usr/include/c++/13/atomic" 3 24952: 24952: # 36 "/usr/include/c++/13/atomic" 3 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/atomic_base.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/atomic_base.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/atomic_base.h" 3 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 1 3 24952: # 306 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 3 24952: 24952: # 306 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 3 24952: namespace std 24952: { 24952: typedef unsigned int size_t; 24952: typedef int ptrdiff_t; 24952: 24952: 24952: typedef decltype(nullptr) nullptr_t; 24952: 24952: 24952: #pragma GCC visibility push(default) 24952: 24952: 24952: extern "C++" __attribute__ ((__noreturn__, __always_inline__)) 24952: inline void __terminate() noexcept 24952: { 24952: void terminate() noexcept __attribute__ ((__noreturn__)); 24952: terminate(); 24952: } 24952: #pragma GCC visibility pop 24952: } 24952: # 339 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 3 24952: namespace std 24952: { 24952: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 24952: } 24952: namespace __gnu_cxx 24952: { 24952: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 24952: } 24952: # 532 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 3 24952: namespace std 24952: { 24952: #pragma GCC visibility push(default) 24952: 24952: 24952: 24952: 24952: constexpr inline bool 24952: __is_constant_evaluated() noexcept 24952: { 24952: 24952: 24952: 24952: 24952: 24952: return __builtin_is_constant_evaluated(); 24952: 24952: 24952: 24952: } 24952: #pragma GCC visibility pop 24952: } 24952: # 679 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 3 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/os_defines.h" 1 3 24952: # 39 "/usr/include/arm-linux-gnueabihf/c++/13/bits/os_defines.h" 3 24952: # 1 "/usr/include/features.h" 1 3 4 24952: # 393 "/usr/include/features.h" 3 4 24952: # 1 "/usr/include/features-time64.h" 1 3 4 24952: # 20 "/usr/include/features-time64.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 24952: # 21 "/usr/include/features-time64.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 24952: # 22 "/usr/include/features-time64.h" 2 3 4 24952: # 394 "/usr/include/features.h" 2 3 4 24952: # 490 "/usr/include/features.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 1 3 4 24952: # 561 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 24952: # 562 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 24952: # 563 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 24952: # 491 "/usr/include/features.h" 2 3 4 24952: # 514 "/usr/include/features.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 1 3 4 24952: # 10 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs-hard.h" 1 3 4 24952: # 11 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 2 3 4 24952: # 515 "/usr/include/features.h" 2 3 4 24952: # 40 "/usr/include/arm-linux-gnueabihf/c++/13/bits/os_defines.h" 2 3 24952: # 680 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 2 3 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/cpu_defines.h" 1 3 24952: # 683 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 2 3 24952: # 882 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 3 24952: # 1 "/usr/include/c++/13/pstl/pstl_config.h" 1 3 24952: # 883 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++config.h" 2 3 24952: # 36 "/usr/include/c++/13/bits/atomic_base.h" 2 3 24952: # 1 "/usr/include/c++/13/new" 1 3 24952: # 38 "/usr/include/c++/13/new" 3 24952: 24952: # 39 "/usr/include/c++/13/new" 3 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/exception.h" 1 3 24952: # 34 "/usr/include/c++/13/bits/exception.h" 3 24952: 24952: # 35 "/usr/include/c++/13/bits/exception.h" 3 24952: 24952: 24952: 24952: extern "C++" { 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: # 59 "/usr/include/c++/13/bits/exception.h" 3 24952: class exception 24952: { 24952: public: 24952: exception() noexcept { } 24952: virtual ~exception() noexcept; 24952: 24952: exception(const exception&) = default; 24952: exception& operator=(const exception&) = default; 24952: exception(exception&&) = default; 24952: exception& operator=(exception&&) = default; 24952: 24952: 24952: 24952: 24952: virtual const char* 24952: what() const noexcept; 24952: }; 24952: 24952: 24952: 24952: } 24952: 24952: } 24952: # 42 "/usr/include/c++/13/new" 2 3 24952: 24952: #pragma GCC visibility push(default) 24952: 24952: extern "C++" { 24952: 24952: namespace std 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: class bad_alloc : public exception 24952: { 24952: public: 24952: bad_alloc() throw() { } 24952: 24952: 24952: bad_alloc(const bad_alloc&) = default; 24952: bad_alloc& operator=(const bad_alloc&) = default; 24952: 24952: 24952: 24952: 24952: virtual ~bad_alloc() throw(); 24952: 24952: 24952: virtual const char* what() const throw(); 24952: }; 24952: 24952: 24952: class bad_array_new_length : public bad_alloc 24952: { 24952: public: 24952: bad_array_new_length() throw() { } 24952: 24952: 24952: 24952: virtual ~bad_array_new_length() throw(); 24952: 24952: 24952: virtual const char* what() const throw(); 24952: }; 24952: 24952: 24952: 24952: enum class align_val_t: size_t {}; 24952: 24952: 24952: struct nothrow_t 24952: { 24952: 24952: explicit nothrow_t() = default; 24952: 24952: }; 24952: 24952: extern const nothrow_t nothrow; 24952: 24952: 24952: 24952: typedef void (*new_handler)(); 24952: 24952: 24952: 24952: new_handler set_new_handler(new_handler) throw(); 24952: 24952: 24952: 24952: new_handler get_new_handler() noexcept; 24952: 24952: } 24952: # 126 "/usr/include/c++/13/new" 3 24952: [[__nodiscard__]] void* operator new(std::size_t) 24952: __attribute__((__externally_visible__)); 24952: [[__nodiscard__]] void* operator new[](std::size_t) 24952: __attribute__((__externally_visible__)); 24952: void operator delete(void*) noexcept 24952: __attribute__((__externally_visible__)); 24952: void operator delete[](void*) noexcept 24952: __attribute__((__externally_visible__)); 24952: 24952: void operator delete(void*, std::size_t) noexcept 24952: __attribute__((__externally_visible__)); 24952: void operator delete[](void*, std::size_t) noexcept 24952: __attribute__((__externally_visible__)); 24952: 24952: [[__nodiscard__]] void* operator new(std::size_t, const std::nothrow_t&) noexcept 24952: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 24952: [[__nodiscard__]] void* operator new[](std::size_t, const std::nothrow_t&) noexcept 24952: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 24952: void operator delete(void*, const std::nothrow_t&) noexcept 24952: __attribute__((__externally_visible__)); 24952: void operator delete[](void*, const std::nothrow_t&) noexcept 24952: __attribute__((__externally_visible__)); 24952: 24952: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t) 24952: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 24952: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) 24952: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 24952: void operator delete(void*, std::align_val_t) 24952: noexcept __attribute__((__externally_visible__)); 24952: void operator delete(void*, std::align_val_t, const std::nothrow_t&) 24952: noexcept __attribute__((__externally_visible__)); 24952: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t) 24952: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 24952: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) 24952: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 24952: void operator delete[](void*, std::align_val_t) 24952: noexcept __attribute__((__externally_visible__)); 24952: void operator delete[](void*, std::align_val_t, const std::nothrow_t&) 24952: noexcept __attribute__((__externally_visible__)); 24952: 24952: void operator delete(void*, std::size_t, std::align_val_t) 24952: noexcept __attribute__((__externally_visible__)); 24952: void operator delete[](void*, std::size_t, std::align_val_t) 24952: noexcept __attribute__((__externally_visible__)); 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] inline void* operator new(std::size_t, void* __p) noexcept 24952: { return __p; } 24952: [[__nodiscard__]] inline void* operator new[](std::size_t, void* __p) noexcept 24952: { return __p; } 24952: 24952: 24952: inline void operator delete (void*, void*) noexcept { } 24952: inline void operator delete[](void*, void*) noexcept { } 24952: 24952: } 24952: 24952: 24952: namespace std 24952: { 24952: 24952: 24952: 24952: template 24952: [[nodiscard]] constexpr _Tp* 24952: launder(_Tp* __p) noexcept 24952: { return __builtin_launder(__p); } 24952: 24952: 24952: 24952: 24952: template 24952: void launder(_Ret (*)(_Args...) noexcept (_NE)) = delete; 24952: template 24952: void launder(_Ret (*)(_Args......) noexcept (_NE)) = delete; 24952: 24952: void launder(void*) = delete; 24952: void launder(const void*) = delete; 24952: void launder(volatile void*) = delete; 24952: void launder(const volatile void*) = delete; 24952: 24952: 24952: 24952: 24952: inline constexpr size_t hardware_destructive_interference_size = 64; 24952: inline constexpr size_t hardware_constructive_interference_size = 64; 24952: 24952: } 24952: # 236 "/usr/include/c++/13/new" 3 24952: #pragma GCC visibility pop 24952: # 37 "/usr/include/c++/13/bits/atomic_base.h" 2 3 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h" 1 3 4 24952: # 9 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h" 3 4 24952: # 1 "/usr/include/stdint.h" 1 3 4 24952: # 26 "/usr/include/stdint.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 24952: # 27 "/usr/include/stdint.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types.h" 1 3 4 24952: # 27 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 24952: # 28 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 24952: # 29 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 24952: 24952: 24952: typedef unsigned char __u_char; 24952: typedef unsigned short int __u_short; 24952: typedef unsigned int __u_int; 24952: typedef unsigned long int __u_long; 24952: 24952: 24952: typedef signed char __int8_t; 24952: typedef unsigned char __uint8_t; 24952: typedef signed short int __int16_t; 24952: typedef unsigned short int __uint16_t; 24952: typedef signed int __int32_t; 24952: typedef unsigned int __uint32_t; 24952: 24952: 24952: 24952: 24952: __extension__ typedef signed long long int __int64_t; 24952: __extension__ typedef unsigned long long int __uint64_t; 24952: 24952: 24952: 24952: typedef __int8_t __int_least8_t; 24952: typedef __uint8_t __uint_least8_t; 24952: typedef __int16_t __int_least16_t; 24952: typedef __uint16_t __uint_least16_t; 24952: typedef __int32_t __int_least32_t; 24952: typedef __uint32_t __uint_least32_t; 24952: typedef __int64_t __int_least64_t; 24952: typedef __uint64_t __uint_least64_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: __extension__ typedef long long int __quad_t; 24952: __extension__ typedef unsigned long long int __u_quad_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __extension__ typedef long long int __intmax_t; 24952: __extension__ typedef unsigned long long int __uintmax_t; 24952: # 141 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/typesizes.h" 1 3 4 24952: # 142 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/time64.h" 1 3 4 24952: # 143 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 24952: 24952: 24952: __extension__ typedef __uint64_t __dev_t; 24952: __extension__ typedef unsigned int __uid_t; 24952: __extension__ typedef unsigned int __gid_t; 24952: __extension__ typedef unsigned long int __ino_t; 24952: __extension__ typedef __uint64_t __ino64_t; 24952: __extension__ typedef unsigned int __mode_t; 24952: __extension__ typedef unsigned int __nlink_t; 24952: __extension__ typedef long int __off_t; 24952: __extension__ typedef __int64_t __off64_t; 24952: __extension__ typedef int __pid_t; 24952: __extension__ typedef struct { int __val[2]; } __fsid_t; 24952: __extension__ typedef long int __clock_t; 24952: __extension__ typedef unsigned long int __rlim_t; 24952: __extension__ typedef __uint64_t __rlim64_t; 24952: __extension__ typedef unsigned int __id_t; 24952: __extension__ typedef long int __time_t; 24952: __extension__ typedef unsigned int __useconds_t; 24952: __extension__ typedef long int __suseconds_t; 24952: __extension__ typedef __int64_t __suseconds64_t; 24952: 24952: __extension__ typedef int __daddr_t; 24952: __extension__ typedef int __key_t; 24952: 24952: 24952: __extension__ typedef int __clockid_t; 24952: 24952: 24952: __extension__ typedef void * __timer_t; 24952: 24952: 24952: __extension__ typedef long int __blksize_t; 24952: 24952: 24952: 24952: 24952: __extension__ typedef long int __blkcnt_t; 24952: __extension__ typedef __int64_t __blkcnt64_t; 24952: 24952: 24952: __extension__ typedef unsigned long int __fsblkcnt_t; 24952: __extension__ typedef __uint64_t __fsblkcnt64_t; 24952: 24952: 24952: __extension__ typedef unsigned long int __fsfilcnt_t; 24952: __extension__ typedef __uint64_t __fsfilcnt64_t; 24952: 24952: 24952: __extension__ typedef int __fsword_t; 24952: 24952: __extension__ typedef int __ssize_t; 24952: 24952: 24952: __extension__ typedef long int __syscall_slong_t; 24952: 24952: __extension__ typedef unsigned long int __syscall_ulong_t; 24952: 24952: 24952: 24952: typedef __off64_t __loff_t; 24952: typedef char *__caddr_t; 24952: 24952: 24952: __extension__ typedef int __intptr_t; 24952: 24952: 24952: __extension__ typedef unsigned int __socklen_t; 24952: 24952: 24952: 24952: 24952: typedef int __sig_atomic_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __extension__ typedef __int64_t __time64_t; 24952: # 28 "/usr/include/stdint.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar.h" 1 3 4 24952: # 29 "/usr/include/stdint.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 24952: # 30 "/usr/include/stdint.h" 2 3 4 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 3 4 24952: typedef __int8_t int8_t; 24952: typedef __int16_t int16_t; 24952: typedef __int32_t int32_t; 24952: typedef __int64_t int64_t; 24952: # 35 "/usr/include/stdint.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 3 4 24952: typedef __uint8_t uint8_t; 24952: typedef __uint16_t uint16_t; 24952: typedef __uint32_t uint32_t; 24952: typedef __uint64_t uint64_t; 24952: # 38 "/usr/include/stdint.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: typedef __int_least8_t int_least8_t; 24952: typedef __int_least16_t int_least16_t; 24952: typedef __int_least32_t int_least32_t; 24952: typedef __int_least64_t int_least64_t; 24952: 24952: 24952: typedef __uint_least8_t uint_least8_t; 24952: typedef __uint_least16_t uint_least16_t; 24952: typedef __uint_least32_t uint_least32_t; 24952: typedef __uint_least64_t uint_least64_t; 24952: 24952: 24952: 24952: 24952: 24952: typedef signed char int_fast8_t; 24952: 24952: 24952: 24952: 24952: 24952: typedef int int_fast16_t; 24952: typedef int int_fast32_t; 24952: __extension__ 24952: typedef long long int int_fast64_t; 24952: 24952: 24952: 24952: typedef unsigned char uint_fast8_t; 24952: 24952: 24952: 24952: 24952: 24952: typedef unsigned int uint_fast16_t; 24952: typedef unsigned int uint_fast32_t; 24952: __extension__ 24952: typedef unsigned long long int uint_fast64_t; 24952: # 93 "/usr/include/stdint.h" 3 4 24952: typedef int intptr_t; 24952: 24952: 24952: typedef unsigned int uintptr_t; 24952: 24952: 24952: 24952: 24952: typedef __intmax_t intmax_t; 24952: typedef __uintmax_t uintmax_t; 24952: # 10 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h" 2 3 4 24952: # 38 "/usr/include/c++/13/bits/atomic_base.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/atomic_lockfree_defines.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/atomic_lockfree_defines.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/atomic_lockfree_defines.h" 3 24952: # 39 "/usr/include/c++/13/bits/atomic_base.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/move.h" 1 3 24952: # 37 "/usr/include/c++/13/bits/move.h" 3 24952: # 1 "/usr/include/c++/13/type_traits" 1 3 24952: # 32 "/usr/include/c++/13/type_traits" 3 24952: 24952: # 33 "/usr/include/c++/13/type_traits" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template 24952: class reference_wrapper; 24952: # 61 "/usr/include/c++/13/type_traits" 3 24952: template 24952: struct integral_constant 24952: { 24952: static constexpr _Tp value = __v; 24952: typedef _Tp value_type; 24952: typedef integral_constant<_Tp, __v> type; 24952: constexpr operator value_type() const noexcept { return value; } 24952: 24952: 24952: 24952: 24952: constexpr value_type operator()() const noexcept { return value; } 24952: 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: using true_type = integral_constant; 24952: 24952: 24952: using false_type = integral_constant; 24952: 24952: 24952: 24952: template 24952: using __bool_constant = integral_constant; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: using bool_constant = integral_constant; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct enable_if 24952: { }; 24952: 24952: 24952: template 24952: struct enable_if 24952: { typedef _Tp type; }; 24952: 24952: 24952: template 24952: using __enable_if_t = typename enable_if<_Cond, _Tp>::type; 24952: 24952: template 24952: struct __conditional 24952: { 24952: template 24952: using type = _Tp; 24952: }; 24952: 24952: template<> 24952: struct __conditional 24952: { 24952: template 24952: using type = _Up; 24952: }; 24952: 24952: 24952: template 24952: using __conditional_t 24952: = typename __conditional<_Cond>::template type<_If, _Else>; 24952: 24952: 24952: template 24952: struct __type_identity 24952: { using type = _Type; }; 24952: 24952: template 24952: using __type_identity_t = typename __type_identity<_Tp>::type; 24952: 24952: namespace __detail 24952: { 24952: 24952: template 24952: using __first_t = _Tp; 24952: 24952: 24952: template 24952: auto __or_fn(int) -> __first_t...>; 24952: 24952: template 24952: auto __or_fn(...) -> true_type; 24952: 24952: template 24952: auto __and_fn(int) -> __first_t...>; 24952: 24952: template 24952: auto __and_fn(...) -> false_type; 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: struct __or_ 24952: : decltype(__detail::__or_fn<_Bn...>(0)) 24952: { }; 24952: 24952: template 24952: struct __and_ 24952: : decltype(__detail::__and_fn<_Bn...>(0)) 24952: { }; 24952: 24952: template 24952: struct __not_ 24952: : __bool_constant 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline constexpr bool __or_v = __or_<_Bn...>::value; 24952: template 24952: inline constexpr bool __and_v = __and_<_Bn...>::value; 24952: 24952: namespace __detail 24952: { 24952: template 24952: struct __disjunction_impl 24952: { using type = _B1; }; 24952: 24952: template 24952: struct __disjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 24952: { using type = typename __disjunction_impl::type; }; 24952: 24952: template 24952: struct __conjunction_impl 24952: { using type = _B1; }; 24952: 24952: template 24952: struct __conjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 24952: { using type = typename __conjunction_impl::type; }; 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: struct conjunction 24952: : __detail::__conjunction_impl::type 24952: { }; 24952: 24952: template<> 24952: struct conjunction<> 24952: : true_type 24952: { }; 24952: 24952: template 24952: struct disjunction 24952: : __detail::__disjunction_impl::type 24952: { }; 24952: 24952: template<> 24952: struct disjunction<> 24952: : false_type 24952: { }; 24952: 24952: template 24952: struct negation 24952: : __not_<_Pp>::type 24952: { }; 24952: 24952: 24952: 24952: 24952: template 24952: inline constexpr bool conjunction_v = conjunction<_Bn...>::value; 24952: 24952: template 24952: inline constexpr bool disjunction_v = disjunction<_Bn...>::value; 24952: 24952: template 24952: inline constexpr bool negation_v = negation<_Pp>::value; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_reference; 24952: template 24952: struct is_function; 24952: template 24952: struct is_void; 24952: template 24952: struct remove_cv; 24952: template 24952: struct is_const; 24952: 24952: 24952: template 24952: struct __is_array_unknown_bounds; 24952: 24952: 24952: 24952: 24952: template 24952: constexpr true_type __is_complete_or_unbounded(__type_identity<_Tp>) 24952: { return {}; } 24952: 24952: template 24952: constexpr typename __or_< 24952: is_reference<_NestedType>, 24952: is_function<_NestedType>, 24952: is_void<_NestedType>, 24952: __is_array_unknown_bounds<_NestedType> 24952: >::type __is_complete_or_unbounded(_TypeIdentity) 24952: { return {}; } 24952: 24952: 24952: template 24952: using __remove_cv_t = typename remove_cv<_Tp>::type; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_void 24952: : public false_type { }; 24952: 24952: template<> 24952: struct is_void 24952: : public true_type { }; 24952: 24952: template<> 24952: struct is_void 24952: : public true_type { }; 24952: 24952: template<> 24952: struct is_void 24952: : public true_type { }; 24952: 24952: template<> 24952: struct is_void 24952: : public true_type { }; 24952: 24952: 24952: template 24952: struct __is_integral_helper 24952: : public false_type { }; 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: 24952: 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_integral_helper 24952: : public true_type { }; 24952: # 440 "/usr/include/c++/13/type_traits" 3 24952: template 24952: struct is_integral 24952: : public __is_integral_helper<__remove_cv_t<_Tp>>::type 24952: { }; 24952: 24952: 24952: template 24952: struct __is_floating_point_helper 24952: : public false_type { }; 24952: 24952: template<> 24952: struct __is_floating_point_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_floating_point_helper 24952: : public true_type { }; 24952: 24952: template<> 24952: struct __is_floating_point_helper 24952: : public true_type { }; 24952: # 500 "/usr/include/c++/13/type_traits" 3 24952: template 24952: struct is_floating_point 24952: : public __is_floating_point_helper<__remove_cv_t<_Tp>>::type 24952: { }; 24952: 24952: 24952: template 24952: struct is_array 24952: : public false_type { }; 24952: 24952: template 24952: struct is_array<_Tp[_Size]> 24952: : public true_type { }; 24952: 24952: template 24952: struct is_array<_Tp[]> 24952: : public true_type { }; 24952: 24952: template 24952: struct __is_pointer_helper 24952: : public false_type { }; 24952: 24952: template 24952: struct __is_pointer_helper<_Tp*> 24952: : public true_type { }; 24952: 24952: 24952: template 24952: struct is_pointer 24952: : public __is_pointer_helper<__remove_cv_t<_Tp>>::type 24952: { }; 24952: 24952: 24952: template 24952: struct is_lvalue_reference 24952: : public false_type { }; 24952: 24952: template 24952: struct is_lvalue_reference<_Tp&> 24952: : public true_type { }; 24952: 24952: 24952: template 24952: struct is_rvalue_reference 24952: : public false_type { }; 24952: 24952: template 24952: struct is_rvalue_reference<_Tp&&> 24952: : public true_type { }; 24952: 24952: template 24952: struct __is_member_object_pointer_helper 24952: : public false_type { }; 24952: 24952: template 24952: struct __is_member_object_pointer_helper<_Tp _Cp::*> 24952: : public __not_>::type { }; 24952: 24952: 24952: template 24952: struct is_member_object_pointer 24952: : public __is_member_object_pointer_helper<__remove_cv_t<_Tp>>::type 24952: { }; 24952: 24952: template 24952: struct __is_member_function_pointer_helper 24952: : public false_type { }; 24952: 24952: template 24952: struct __is_member_function_pointer_helper<_Tp _Cp::*> 24952: : public is_function<_Tp>::type { }; 24952: 24952: 24952: template 24952: struct is_member_function_pointer 24952: : public __is_member_function_pointer_helper<__remove_cv_t<_Tp>>::type 24952: { }; 24952: 24952: 24952: template 24952: struct is_enum 24952: : public integral_constant 24952: { }; 24952: 24952: 24952: template 24952: struct is_union 24952: : public integral_constant 24952: { }; 24952: 24952: 24952: template 24952: struct is_class 24952: : public integral_constant 24952: { }; 24952: 24952: 24952: template 24952: struct is_function 24952: : public __bool_constant::value> { }; 24952: 24952: template 24952: struct is_function<_Tp&> 24952: : public false_type { }; 24952: 24952: template 24952: struct is_function<_Tp&&> 24952: : public false_type { }; 24952: 24952: 24952: 24952: 24952: template 24952: struct is_null_pointer 24952: : public false_type { }; 24952: 24952: template<> 24952: struct is_null_pointer 24952: : public true_type { }; 24952: 24952: template<> 24952: struct is_null_pointer 24952: : public true_type { }; 24952: 24952: template<> 24952: struct is_null_pointer 24952: : public true_type { }; 24952: 24952: template<> 24952: struct is_null_pointer 24952: : public true_type { }; 24952: 24952: 24952: 24952: template 24952: struct __is_nullptr_t 24952: : public is_null_pointer<_Tp> 24952: { } __attribute__ ((__deprecated__ ("use '" "std::is_null_pointer" "' instead"))); 24952: 24952: 24952: 24952: 24952: template 24952: struct is_reference 24952: : public false_type 24952: { }; 24952: 24952: template 24952: struct is_reference<_Tp&> 24952: : public true_type 24952: { }; 24952: 24952: template 24952: struct is_reference<_Tp&&> 24952: : public true_type 24952: { }; 24952: 24952: 24952: template 24952: struct is_arithmetic 24952: : public __or_, is_floating_point<_Tp>>::type 24952: { }; 24952: 24952: 24952: template 24952: struct is_fundamental 24952: : public __or_, is_void<_Tp>, 24952: is_null_pointer<_Tp>>::type 24952: { }; 24952: 24952: 24952: template 24952: struct is_object 24952: : public __not_<__or_, is_reference<_Tp>, 24952: is_void<_Tp>>>::type 24952: { }; 24952: 24952: template 24952: struct is_member_pointer; 24952: 24952: 24952: template 24952: struct is_scalar 24952: : public __or_, is_enum<_Tp>, is_pointer<_Tp>, 24952: is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 24952: { }; 24952: 24952: 24952: template 24952: struct is_compound 24952: : public __not_>::type { }; 24952: 24952: 24952: template 24952: struct __is_member_pointer_helper 24952: : public false_type { }; 24952: 24952: template 24952: struct __is_member_pointer_helper<_Tp _Cp::*> 24952: : public true_type { }; 24952: 24952: 24952: 24952: template 24952: struct is_member_pointer 24952: : public __is_member_pointer_helper<__remove_cv_t<_Tp>>::type 24952: { }; 24952: 24952: template 24952: struct is_same; 24952: 24952: 24952: template 24952: using __is_one_of = __or_...>; 24952: 24952: 24952: __extension__ 24952: template 24952: using __is_signed_integer = __is_one_of<__remove_cv_t<_Tp>, 24952: signed char, signed short, signed int, signed long, 24952: signed long long 24952: # 733 "/usr/include/c++/13/type_traits" 3 24952: >; 24952: 24952: 24952: __extension__ 24952: template 24952: using __is_unsigned_integer = __is_one_of<__remove_cv_t<_Tp>, 24952: unsigned char, unsigned short, unsigned int, unsigned long, 24952: unsigned long long 24952: # 753 "/usr/include/c++/13/type_traits" 3 24952: >; 24952: 24952: 24952: template 24952: using __is_standard_integer 24952: = __or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>>; 24952: 24952: 24952: template using __void_t = void; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_const 24952: : public false_type { }; 24952: 24952: template 24952: struct is_const<_Tp const> 24952: : public true_type { }; 24952: 24952: 24952: template 24952: struct is_volatile 24952: : public false_type { }; 24952: 24952: template 24952: struct is_volatile<_Tp volatile> 24952: : public true_type { }; 24952: 24952: 24952: template 24952: struct is_trivial 24952: : public integral_constant 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_trivially_copyable 24952: : public integral_constant 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_standard_layout 24952: : public integral_constant 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct 24952: 24952: is_pod 24952: : public integral_constant 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct 24952: [[__deprecated__]] 24952: is_literal_type 24952: : public integral_constant 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_empty 24952: : public integral_constant 24952: { }; 24952: 24952: 24952: template 24952: struct is_polymorphic 24952: : public integral_constant 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_final 24952: : public integral_constant 24952: { }; 24952: 24952: 24952: 24952: template 24952: struct is_abstract 24952: : public integral_constant 24952: { }; 24952: 24952: 24952: template::value> 24952: struct __is_signed_helper 24952: : public false_type { }; 24952: 24952: template 24952: struct __is_signed_helper<_Tp, true> 24952: : public integral_constant 24952: { }; 24952: 24952: 24952: 24952: template 24952: struct is_signed 24952: : public __is_signed_helper<_Tp>::type 24952: { }; 24952: 24952: 24952: template 24952: struct is_unsigned 24952: : public __and_, __not_>>::type 24952: { }; 24952: 24952: 24952: template 24952: _Up 24952: __declval(int); 24952: 24952: template 24952: _Tp 24952: __declval(long); 24952: 24952: 24952: template 24952: auto declval() noexcept -> decltype(__declval<_Tp>(0)); 24952: 24952: template 24952: struct remove_all_extents; 24952: 24952: 24952: template 24952: struct __is_array_known_bounds 24952: : public false_type 24952: { }; 24952: 24952: template 24952: struct __is_array_known_bounds<_Tp[_Size]> 24952: : public true_type 24952: { }; 24952: 24952: template 24952: struct __is_array_unknown_bounds 24952: : public false_type 24952: { }; 24952: 24952: template 24952: struct __is_array_unknown_bounds<_Tp[]> 24952: : public true_type 24952: { }; 24952: # 936 "/usr/include/c++/13/type_traits" 3 24952: struct __do_is_destructible_impl 24952: { 24952: template().~_Tp())> 24952: static true_type __test(int); 24952: 24952: template 24952: static false_type __test(...); 24952: }; 24952: 24952: template 24952: struct __is_destructible_impl 24952: : public __do_is_destructible_impl 24952: { 24952: typedef decltype(__test<_Tp>(0)) type; 24952: }; 24952: 24952: template, 24952: __is_array_unknown_bounds<_Tp>, 24952: is_function<_Tp>>::value, 24952: bool = __or_, is_scalar<_Tp>>::value> 24952: struct __is_destructible_safe; 24952: 24952: template 24952: struct __is_destructible_safe<_Tp, false, false> 24952: : public __is_destructible_impl::type>::type 24952: { }; 24952: 24952: template 24952: struct __is_destructible_safe<_Tp, true, false> 24952: : public false_type { }; 24952: 24952: template 24952: struct __is_destructible_safe<_Tp, false, true> 24952: : public true_type { }; 24952: 24952: 24952: 24952: template 24952: struct is_destructible 24952: : public __is_destructible_safe<_Tp>::type 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct __do_is_nt_destructible_impl 24952: { 24952: template 24952: static __bool_constant().~_Tp())> 24952: __test(int); 24952: 24952: template 24952: static false_type __test(...); 24952: }; 24952: 24952: template 24952: struct __is_nt_destructible_impl 24952: : public __do_is_nt_destructible_impl 24952: { 24952: typedef decltype(__test<_Tp>(0)) type; 24952: }; 24952: 24952: template, 24952: __is_array_unknown_bounds<_Tp>, 24952: is_function<_Tp>>::value, 24952: bool = __or_, is_scalar<_Tp>>::value> 24952: struct __is_nt_destructible_safe; 24952: 24952: template 24952: struct __is_nt_destructible_safe<_Tp, false, false> 24952: : public __is_nt_destructible_impl::type>::type 24952: { }; 24952: 24952: template 24952: struct __is_nt_destructible_safe<_Tp, true, false> 24952: : public false_type { }; 24952: 24952: template 24952: struct __is_nt_destructible_safe<_Tp, false, true> 24952: : public true_type { }; 24952: 24952: 24952: 24952: template 24952: struct is_nothrow_destructible 24952: : public __is_nt_destructible_safe<_Tp>::type 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: using __is_constructible_impl 24952: = __bool_constant<__is_constructible(_Tp, _Args...)>; 24952: 24952: 24952: 24952: template 24952: struct is_constructible 24952: : public __is_constructible_impl<_Tp, _Args...> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_default_constructible 24952: : public __is_constructible_impl<_Tp> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct __add_lvalue_reference_helper 24952: { using type = _Tp; }; 24952: 24952: template 24952: struct __add_lvalue_reference_helper<_Tp, __void_t<_Tp&>> 24952: { using type = _Tp&; }; 24952: 24952: template 24952: using __add_lval_ref_t = typename __add_lvalue_reference_helper<_Tp>::type; 24952: 24952: 24952: 24952: template 24952: struct is_copy_constructible 24952: : public __is_constructible_impl<_Tp, __add_lval_ref_t> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct __add_rvalue_reference_helper 24952: { using type = _Tp; }; 24952: 24952: template 24952: struct __add_rvalue_reference_helper<_Tp, __void_t<_Tp&&>> 24952: { using type = _Tp&&; }; 24952: 24952: template 24952: using __add_rval_ref_t = typename __add_rvalue_reference_helper<_Tp>::type; 24952: 24952: 24952: 24952: template 24952: struct is_move_constructible 24952: : public __is_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: using __is_nothrow_constructible_impl 24952: = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; 24952: 24952: 24952: 24952: template 24952: struct is_nothrow_constructible 24952: : public __is_nothrow_constructible_impl<_Tp, _Args...> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_nothrow_default_constructible 24952: : public __is_nothrow_constructible_impl<_Tp> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_nothrow_copy_constructible 24952: : public __is_nothrow_constructible_impl<_Tp, __add_lval_ref_t> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_nothrow_move_constructible 24952: : public __is_nothrow_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: using __is_assignable_impl = __bool_constant<__is_assignable(_Tp, _Up)>; 24952: 24952: 24952: 24952: template 24952: struct is_assignable 24952: : public __is_assignable_impl<_Tp, _Up> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_copy_assignable 24952: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, 24952: __add_lval_ref_t> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_move_assignable 24952: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: using __is_nothrow_assignable_impl 24952: = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>; 24952: 24952: 24952: 24952: template 24952: struct is_nothrow_assignable 24952: : public __is_nothrow_assignable_impl<_Tp, _Up> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_nothrow_copy_assignable 24952: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 24952: __add_lval_ref_t> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_nothrow_move_assignable 24952: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 24952: __add_rval_ref_t<_Tp>> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: using __is_trivially_constructible_impl 24952: = __bool_constant<__is_trivially_constructible(_Tp, _Args...)>; 24952: 24952: 24952: 24952: template 24952: struct is_trivially_constructible 24952: : public __is_trivially_constructible_impl<_Tp, _Args...> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_trivially_default_constructible 24952: : public __is_trivially_constructible_impl<_Tp> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: struct __do_is_implicitly_default_constructible_impl 24952: { 24952: template 24952: static void __helper(const _Tp&); 24952: 24952: template 24952: static true_type __test(const _Tp&, 24952: decltype(__helper({}))* = 0); 24952: 24952: static false_type __test(...); 24952: }; 24952: 24952: template 24952: struct __is_implicitly_default_constructible_impl 24952: : public __do_is_implicitly_default_constructible_impl 24952: { 24952: typedef decltype(__test(declval<_Tp>())) type; 24952: }; 24952: 24952: template 24952: struct __is_implicitly_default_constructible_safe 24952: : public __is_implicitly_default_constructible_impl<_Tp>::type 24952: { }; 24952: 24952: template 24952: struct __is_implicitly_default_constructible 24952: : public __and_<__is_constructible_impl<_Tp>, 24952: __is_implicitly_default_constructible_safe<_Tp>>::type 24952: { }; 24952: 24952: 24952: template 24952: struct is_trivially_copy_constructible 24952: : public __is_trivially_constructible_impl<_Tp, __add_lval_ref_t> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_trivially_move_constructible 24952: : public __is_trivially_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: using __is_trivially_assignable_impl 24952: = __bool_constant<__is_trivially_assignable(_Tp, _Up)>; 24952: 24952: 24952: 24952: template 24952: struct is_trivially_assignable 24952: : public __is_trivially_assignable_impl<_Tp, _Up> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_trivially_copy_assignable 24952: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 24952: __add_lval_ref_t> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_trivially_move_assignable 24952: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 24952: __add_rval_ref_t<_Tp>> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_trivially_destructible 24952: : public __and_<__is_destructible_safe<_Tp>, 24952: __bool_constant<__has_trivial_destructor(_Tp)>>::type 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: 24952: template 24952: struct has_virtual_destructor 24952: : public integral_constant 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct alignment_of 24952: : public integral_constant 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct rank 24952: : public integral_constant { }; 24952: 24952: template 24952: struct rank<_Tp[_Size]> 24952: : public integral_constant::value> { }; 24952: 24952: template 24952: struct rank<_Tp[]> 24952: : public integral_constant::value> { }; 24952: 24952: 24952: template 24952: struct extent 24952: : public integral_constant { }; 24952: 24952: template 24952: struct extent<_Tp[_Size], 0> 24952: : public integral_constant { }; 24952: 24952: template 24952: struct extent<_Tp[_Size], _Uint> 24952: : public extent<_Tp, _Uint - 1>::type { }; 24952: 24952: template 24952: struct extent<_Tp[], 0> 24952: : public integral_constant { }; 24952: 24952: template 24952: struct extent<_Tp[], _Uint> 24952: : public extent<_Tp, _Uint - 1>::type { }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_same 24952: 24952: : public integral_constant 24952: 24952: 24952: 24952: { }; 24952: # 1409 "/usr/include/c++/13/type_traits" 3 24952: template 24952: struct is_base_of 24952: : public integral_constant 24952: { }; 24952: 24952: 24952: template 24952: struct is_convertible 24952: : public __bool_constant<__is_convertible(_From, _To)> 24952: { }; 24952: # 1458 "/usr/include/c++/13/type_traits" 3 24952: template 24952: using __is_array_convertible 24952: = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>; 24952: # 1522 "/usr/include/c++/13/type_traits" 3 24952: template 24952: struct remove_const 24952: { typedef _Tp type; }; 24952: 24952: template 24952: struct remove_const<_Tp const> 24952: { typedef _Tp type; }; 24952: 24952: 24952: template 24952: struct remove_volatile 24952: { typedef _Tp type; }; 24952: 24952: template 24952: struct remove_volatile<_Tp volatile> 24952: { typedef _Tp type; }; 24952: 24952: 24952: 24952: template 24952: struct remove_cv 24952: { using type = __remove_cv(_Tp); }; 24952: # 1563 "/usr/include/c++/13/type_traits" 3 24952: template 24952: struct add_const 24952: { using type = _Tp const; }; 24952: 24952: 24952: template 24952: struct add_volatile 24952: { using type = _Tp volatile; }; 24952: 24952: 24952: template 24952: struct add_cv 24952: { using type = _Tp const volatile; }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: using remove_const_t = typename remove_const<_Tp>::type; 24952: 24952: 24952: template 24952: using remove_volatile_t = typename remove_volatile<_Tp>::type; 24952: 24952: 24952: template 24952: using remove_cv_t = typename remove_cv<_Tp>::type; 24952: 24952: 24952: template 24952: using add_const_t = typename add_const<_Tp>::type; 24952: 24952: 24952: template 24952: using add_volatile_t = typename add_volatile<_Tp>::type; 24952: 24952: 24952: template 24952: using add_cv_t = typename add_cv<_Tp>::type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct remove_reference 24952: { using type = __remove_reference(_Tp); }; 24952: # 1628 "/usr/include/c++/13/type_traits" 3 24952: template 24952: struct add_lvalue_reference 24952: { using type = __add_lval_ref_t<_Tp>; }; 24952: 24952: 24952: template 24952: struct add_rvalue_reference 24952: { using type = __add_rval_ref_t<_Tp>; }; 24952: 24952: 24952: 24952: template 24952: using remove_reference_t = typename remove_reference<_Tp>::type; 24952: 24952: 24952: template 24952: using add_lvalue_reference_t = typename add_lvalue_reference<_Tp>::type; 24952: 24952: 24952: template 24952: using add_rvalue_reference_t = typename add_rvalue_reference<_Tp>::type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __cv_selector; 24952: 24952: template 24952: struct __cv_selector<_Unqualified, false, false> 24952: { typedef _Unqualified __type; }; 24952: 24952: template 24952: struct __cv_selector<_Unqualified, false, true> 24952: { typedef volatile _Unqualified __type; }; 24952: 24952: template 24952: struct __cv_selector<_Unqualified, true, false> 24952: { typedef const _Unqualified __type; }; 24952: 24952: template 24952: struct __cv_selector<_Unqualified, true, true> 24952: { typedef const volatile _Unqualified __type; }; 24952: 24952: template::value, 24952: bool _IsVol = is_volatile<_Qualified>::value> 24952: class __match_cv_qualifiers 24952: { 24952: typedef __cv_selector<_Unqualified, _IsConst, _IsVol> __match; 24952: 24952: public: 24952: typedef typename __match::__type __type; 24952: }; 24952: 24952: 24952: template 24952: struct __make_unsigned 24952: { typedef _Tp __type; }; 24952: 24952: template<> 24952: struct __make_unsigned 24952: { typedef unsigned char __type; }; 24952: 24952: template<> 24952: struct __make_unsigned 24952: { typedef unsigned char __type; }; 24952: 24952: template<> 24952: struct __make_unsigned 24952: { typedef unsigned short __type; }; 24952: 24952: template<> 24952: struct __make_unsigned 24952: { typedef unsigned int __type; }; 24952: 24952: template<> 24952: struct __make_unsigned 24952: { typedef unsigned long __type; }; 24952: 24952: template<> 24952: struct __make_unsigned 24952: { typedef unsigned long long __type; }; 24952: # 1741 "/usr/include/c++/13/type_traits" 3 24952: template::value, 24952: bool _IsEnum = is_enum<_Tp>::value> 24952: class __make_unsigned_selector; 24952: 24952: template 24952: class __make_unsigned_selector<_Tp, true, false> 24952: { 24952: using __unsigned_type 24952: = typename __make_unsigned<__remove_cv_t<_Tp>>::__type; 24952: 24952: public: 24952: using __type 24952: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 24952: }; 24952: 24952: class __make_unsigned_selector_base 24952: { 24952: protected: 24952: template struct _List { }; 24952: 24952: template 24952: struct _List<_Tp, _Up...> : _List<_Up...> 24952: { static constexpr size_t __size = sizeof(_Tp); }; 24952: 24952: template 24952: struct __select; 24952: 24952: template 24952: struct __select<_Sz, _List<_Uint, _UInts...>, true> 24952: { using __type = _Uint; }; 24952: 24952: template 24952: struct __select<_Sz, _List<_Uint, _UInts...>, false> 24952: : __select<_Sz, _List<_UInts...>> 24952: { }; 24952: }; 24952: 24952: 24952: template 24952: class __make_unsigned_selector<_Tp, false, true> 24952: : __make_unsigned_selector_base 24952: { 24952: 24952: using _UInts = _List; 24952: 24952: using __unsigned_type = typename __select::__type; 24952: 24952: public: 24952: using __type 24952: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template<> 24952: struct __make_unsigned 24952: { 24952: using __type 24952: = typename __make_unsigned_selector::__type; 24952: }; 24952: # 1815 "/usr/include/c++/13/type_traits" 3 24952: template<> 24952: struct __make_unsigned 24952: { 24952: using __type 24952: = typename __make_unsigned_selector::__type; 24952: }; 24952: 24952: template<> 24952: struct __make_unsigned 24952: { 24952: using __type 24952: = typename __make_unsigned_selector::__type; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct make_unsigned 24952: { typedef typename __make_unsigned_selector<_Tp>::__type type; }; 24952: 24952: 24952: template<> struct make_unsigned; 24952: template<> struct make_unsigned; 24952: template<> struct make_unsigned; 24952: template<> struct make_unsigned; 24952: 24952: 24952: 24952: 24952: template 24952: struct __make_signed 24952: { typedef _Tp __type; }; 24952: 24952: template<> 24952: struct __make_signed 24952: { typedef signed char __type; }; 24952: 24952: template<> 24952: struct __make_signed 24952: { typedef signed char __type; }; 24952: 24952: template<> 24952: struct __make_signed 24952: { typedef signed short __type; }; 24952: 24952: template<> 24952: struct __make_signed 24952: { typedef signed int __type; }; 24952: 24952: template<> 24952: struct __make_signed 24952: { typedef signed long __type; }; 24952: 24952: template<> 24952: struct __make_signed 24952: { typedef signed long long __type; }; 24952: # 1901 "/usr/include/c++/13/type_traits" 3 24952: template::value, 24952: bool _IsEnum = is_enum<_Tp>::value> 24952: class __make_signed_selector; 24952: 24952: template 24952: class __make_signed_selector<_Tp, true, false> 24952: { 24952: using __signed_type 24952: = typename __make_signed<__remove_cv_t<_Tp>>::__type; 24952: 24952: public: 24952: using __type 24952: = typename __match_cv_qualifiers<_Tp, __signed_type>::__type; 24952: }; 24952: 24952: 24952: template 24952: class __make_signed_selector<_Tp, false, true> 24952: { 24952: typedef typename __make_unsigned_selector<_Tp>::__type __unsigned_type; 24952: 24952: public: 24952: typedef typename __make_signed_selector<__unsigned_type>::__type __type; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template<> 24952: struct __make_signed 24952: { 24952: using __type 24952: = typename __make_signed_selector::__type; 24952: }; 24952: # 1947 "/usr/include/c++/13/type_traits" 3 24952: template<> 24952: struct __make_signed 24952: { 24952: using __type 24952: = typename __make_signed_selector::__type; 24952: }; 24952: 24952: template<> 24952: struct __make_signed 24952: { 24952: using __type 24952: = typename __make_signed_selector::__type; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct make_signed 24952: { typedef typename __make_signed_selector<_Tp>::__type type; }; 24952: 24952: 24952: template<> struct make_signed; 24952: template<> struct make_signed; 24952: template<> struct make_signed; 24952: template<> struct make_signed; 24952: 24952: 24952: 24952: template 24952: using make_signed_t = typename make_signed<_Tp>::type; 24952: 24952: 24952: template 24952: using make_unsigned_t = typename make_unsigned<_Tp>::type; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct remove_extent 24952: { typedef _Tp type; }; 24952: 24952: template 24952: struct remove_extent<_Tp[_Size]> 24952: { typedef _Tp type; }; 24952: 24952: template 24952: struct remove_extent<_Tp[]> 24952: { typedef _Tp type; }; 24952: 24952: 24952: template 24952: struct remove_all_extents 24952: { typedef _Tp type; }; 24952: 24952: template 24952: struct remove_all_extents<_Tp[_Size]> 24952: { typedef typename remove_all_extents<_Tp>::type type; }; 24952: 24952: template 24952: struct remove_all_extents<_Tp[]> 24952: { typedef typename remove_all_extents<_Tp>::type type; }; 24952: 24952: 24952: 24952: template 24952: using remove_extent_t = typename remove_extent<_Tp>::type; 24952: 24952: 24952: template 24952: using remove_all_extents_t = typename remove_all_extents<_Tp>::type; 24952: 24952: 24952: 24952: 24952: template 24952: struct __remove_pointer_helper 24952: { typedef _Tp type; }; 24952: 24952: template 24952: struct __remove_pointer_helper<_Tp, _Up*> 24952: { typedef _Up type; }; 24952: 24952: 24952: template 24952: struct remove_pointer 24952: : public __remove_pointer_helper<_Tp, __remove_cv_t<_Tp>> 24952: { }; 24952: 24952: template 24952: struct __add_pointer_helper 24952: { using type = _Tp; }; 24952: 24952: template 24952: struct __add_pointer_helper<_Tp, __void_t<_Tp*>> 24952: { using type = _Tp*; }; 24952: 24952: 24952: template 24952: struct add_pointer 24952: : public __add_pointer_helper<_Tp> 24952: { }; 24952: 24952: template 24952: struct add_pointer<_Tp&> 24952: { using type = _Tp*; }; 24952: 24952: template 24952: struct add_pointer<_Tp&&> 24952: { using type = _Tp*; }; 24952: 24952: 24952: 24952: template 24952: using remove_pointer_t = typename remove_pointer<_Tp>::type; 24952: 24952: 24952: template 24952: using add_pointer_t = typename add_pointer<_Tp>::type; 24952: 24952: 24952: template 24952: struct __aligned_storage_msa 24952: { 24952: union __type 24952: { 24952: unsigned char __data[_Len]; 24952: struct __attribute__((__aligned__)) { } __align; 24952: }; 24952: }; 24952: # 2095 "/usr/include/c++/13/type_traits" 3 24952: template::__type)> 24952: struct 24952: 24952: aligned_storage 24952: { 24952: union type 24952: { 24952: unsigned char __data[_Len]; 24952: struct __attribute__((__aligned__((_Align)))) { } __align; 24952: }; 24952: }; 24952: 24952: template 24952: struct __strictest_alignment 24952: { 24952: static const size_t _S_alignment = 0; 24952: static const size_t _S_size = 0; 24952: }; 24952: 24952: template 24952: struct __strictest_alignment<_Tp, _Types...> 24952: { 24952: static const size_t _S_alignment = 24952: alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment 24952: ? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; 24952: static const size_t _S_size = 24952: sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size 24952: ? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; 24952: }; 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: # 2141 "/usr/include/c++/13/type_traits" 3 24952: template 24952: struct 24952: 24952: aligned_union 24952: { 24952: private: 24952: static_assert(sizeof...(_Types) != 0, "At least one type is required"); 24952: 24952: using __strictest = __strictest_alignment<_Types...>; 24952: static const size_t _S_len = _Len > __strictest::_S_size 24952: ? _Len : __strictest::_S_size; 24952: public: 24952: 24952: static const size_t alignment_value = __strictest::_S_alignment; 24952: 24952: typedef typename aligned_storage<_S_len, alignment_value>::type type; 24952: }; 24952: 24952: template 24952: const size_t aligned_union<_Len, _Types...>::alignment_value; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __decay_selector 24952: : __conditional_t::value, 24952: remove_cv<_Up>, 24952: add_pointer<_Up>> 24952: { }; 24952: 24952: template 24952: struct __decay_selector<_Up[_Nm]> 24952: { using type = _Up*; }; 24952: 24952: template 24952: struct __decay_selector<_Up[]> 24952: { using type = _Up*; }; 24952: 24952: 24952: 24952: 24952: template 24952: struct decay 24952: { using type = typename __decay_selector<_Tp>::type; }; 24952: 24952: template 24952: struct decay<_Tp&> 24952: { using type = typename __decay_selector<_Tp>::type; }; 24952: 24952: template 24952: struct decay<_Tp&&> 24952: { using type = typename __decay_selector<_Tp>::type; }; 24952: 24952: 24952: 24952: 24952: template 24952: struct __strip_reference_wrapper 24952: { 24952: typedef _Tp __type; 24952: }; 24952: 24952: template 24952: struct __strip_reference_wrapper > 24952: { 24952: typedef _Tp& __type; 24952: }; 24952: 24952: 24952: template 24952: using __decay_t = typename decay<_Tp>::type; 24952: 24952: template 24952: using __decay_and_strip = __strip_reference_wrapper<__decay_t<_Tp>>; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: using _Require = __enable_if_t<__and_<_Cond...>::value>; 24952: 24952: 24952: template 24952: using __remove_cvref_t 24952: = typename remove_cv::type>::type; 24952: 24952: 24952: 24952: 24952: template 24952: struct conditional 24952: { typedef _Iftrue type; }; 24952: 24952: 24952: template 24952: struct conditional 24952: { typedef _Iffalse type; }; 24952: 24952: 24952: template 24952: struct common_type; 24952: # 2256 "/usr/include/c++/13/type_traits" 3 24952: template 24952: struct __success_type 24952: { typedef _Tp type; }; 24952: 24952: struct __failure_type 24952: { }; 24952: 24952: struct __do_common_type_impl 24952: { 24952: template 24952: using __cond_t 24952: = decltype(true ? std::declval<_Tp>() : std::declval<_Up>()); 24952: 24952: 24952: 24952: template 24952: static __success_type<__decay_t<__cond_t<_Tp, _Up>>> 24952: _S_test(int); 24952: # 2283 "/usr/include/c++/13/type_traits" 3 24952: template 24952: static __failure_type 24952: _S_test_2(...); 24952: 24952: template 24952: static decltype(_S_test_2<_Tp, _Up>(0)) 24952: _S_test(...); 24952: }; 24952: 24952: 24952: template<> 24952: struct common_type<> 24952: { }; 24952: 24952: 24952: template 24952: struct common_type<_Tp0> 24952: : public common_type<_Tp0, _Tp0> 24952: { }; 24952: 24952: 24952: template, typename _Dp2 = __decay_t<_Tp2>> 24952: struct __common_type_impl 24952: { 24952: 24952: 24952: using type = common_type<_Dp1, _Dp2>; 24952: }; 24952: 24952: template 24952: struct __common_type_impl<_Tp1, _Tp2, _Tp1, _Tp2> 24952: : private __do_common_type_impl 24952: { 24952: 24952: 24952: using type = decltype(_S_test<_Tp1, _Tp2>(0)); 24952: }; 24952: 24952: 24952: template 24952: struct common_type<_Tp1, _Tp2> 24952: : public __common_type_impl<_Tp1, _Tp2>::type 24952: { }; 24952: 24952: template 24952: struct __common_type_pack 24952: { }; 24952: 24952: template 24952: struct __common_type_fold; 24952: 24952: 24952: template 24952: struct common_type<_Tp1, _Tp2, _Rp...> 24952: : public __common_type_fold, 24952: __common_type_pack<_Rp...>> 24952: { }; 24952: 24952: 24952: 24952: 24952: template 24952: struct __common_type_fold<_CTp, __common_type_pack<_Rp...>, 24952: __void_t> 24952: : public common_type 24952: { }; 24952: 24952: 24952: template 24952: struct __common_type_fold<_CTp, _Rp, void> 24952: { }; 24952: 24952: template::value> 24952: struct __underlying_type_impl 24952: { 24952: using type = __underlying_type(_Tp); 24952: }; 24952: 24952: template 24952: struct __underlying_type_impl<_Tp, false> 24952: { }; 24952: 24952: 24952: 24952: template 24952: struct underlying_type 24952: : public __underlying_type_impl<_Tp> 24952: { }; 24952: 24952: 24952: template 24952: struct __declval_protector 24952: { 24952: static const bool __stop = false; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: auto declval() noexcept -> decltype(__declval<_Tp>(0)) 24952: { 24952: static_assert(__declval_protector<_Tp>::__stop, 24952: "declval() must not be used!"); 24952: return __declval<_Tp>(0); 24952: } 24952: 24952: 24952: template 24952: struct result_of; 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct __invoke_memfun_ref { }; 24952: struct __invoke_memfun_deref { }; 24952: struct __invoke_memobj_ref { }; 24952: struct __invoke_memobj_deref { }; 24952: struct __invoke_other { }; 24952: 24952: 24952: template 24952: struct __result_of_success : __success_type<_Tp> 24952: { using __invoke_type = _Tag; }; 24952: 24952: 24952: struct __result_of_memfun_ref_impl 24952: { 24952: template 24952: static __result_of_success().*std::declval<_Fp>())(std::declval<_Args>()...) 24952: ), __invoke_memfun_ref> _S_test(int); 24952: 24952: template 24952: static __failure_type _S_test(...); 24952: }; 24952: 24952: template 24952: struct __result_of_memfun_ref 24952: : private __result_of_memfun_ref_impl 24952: { 24952: typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type; 24952: }; 24952: 24952: 24952: struct __result_of_memfun_deref_impl 24952: { 24952: template 24952: static __result_of_success()).*std::declval<_Fp>())(std::declval<_Args>()...) 24952: ), __invoke_memfun_deref> _S_test(int); 24952: 24952: template 24952: static __failure_type _S_test(...); 24952: }; 24952: 24952: template 24952: struct __result_of_memfun_deref 24952: : private __result_of_memfun_deref_impl 24952: { 24952: typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type; 24952: }; 24952: 24952: 24952: struct __result_of_memobj_ref_impl 24952: { 24952: template 24952: static __result_of_success().*std::declval<_Fp>() 24952: ), __invoke_memobj_ref> _S_test(int); 24952: 24952: template 24952: static __failure_type _S_test(...); 24952: }; 24952: 24952: template 24952: struct __result_of_memobj_ref 24952: : private __result_of_memobj_ref_impl 24952: { 24952: typedef decltype(_S_test<_MemPtr, _Arg>(0)) type; 24952: }; 24952: 24952: 24952: struct __result_of_memobj_deref_impl 24952: { 24952: template 24952: static __result_of_success()).*std::declval<_Fp>() 24952: ), __invoke_memobj_deref> _S_test(int); 24952: 24952: template 24952: static __failure_type _S_test(...); 24952: }; 24952: 24952: template 24952: struct __result_of_memobj_deref 24952: : private __result_of_memobj_deref_impl 24952: { 24952: typedef decltype(_S_test<_MemPtr, _Arg>(0)) type; 24952: }; 24952: 24952: template 24952: struct __result_of_memobj; 24952: 24952: template 24952: struct __result_of_memobj<_Res _Class::*, _Arg> 24952: { 24952: typedef __remove_cvref_t<_Arg> _Argval; 24952: typedef _Res _Class::* _MemPtr; 24952: typedef typename __conditional_t<__or_, 24952: is_base_of<_Class, _Argval>>::value, 24952: __result_of_memobj_ref<_MemPtr, _Arg>, 24952: __result_of_memobj_deref<_MemPtr, _Arg> 24952: >::type type; 24952: }; 24952: 24952: template 24952: struct __result_of_memfun; 24952: 24952: template 24952: struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> 24952: { 24952: typedef typename remove_reference<_Arg>::type _Argval; 24952: typedef _Res _Class::* _MemPtr; 24952: typedef typename __conditional_t::value, 24952: __result_of_memfun_ref<_MemPtr, _Arg, _Args...>, 24952: __result_of_memfun_deref<_MemPtr, _Arg, _Args...> 24952: >::type type; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: struct __inv_unwrap 24952: { 24952: using type = _Tp; 24952: }; 24952: 24952: template 24952: struct __inv_unwrap<_Tp, reference_wrapper<_Up>> 24952: { 24952: using type = _Up&; 24952: }; 24952: 24952: template 24952: struct __result_of_impl 24952: { 24952: typedef __failure_type type; 24952: }; 24952: 24952: template 24952: struct __result_of_impl 24952: : public __result_of_memobj<__decay_t<_MemPtr>, 24952: typename __inv_unwrap<_Arg>::type> 24952: { }; 24952: 24952: template 24952: struct __result_of_impl 24952: : public __result_of_memfun<__decay_t<_MemPtr>, 24952: typename __inv_unwrap<_Arg>::type, _Args...> 24952: { }; 24952: 24952: 24952: struct __result_of_other_impl 24952: { 24952: template 24952: static __result_of_success()(std::declval<_Args>()...) 24952: ), __invoke_other> _S_test(int); 24952: 24952: template 24952: static __failure_type _S_test(...); 24952: }; 24952: 24952: template 24952: struct __result_of_impl 24952: : private __result_of_other_impl 24952: { 24952: typedef decltype(_S_test<_Functor, _ArgTypes...>(0)) type; 24952: }; 24952: 24952: 24952: template 24952: struct __invoke_result 24952: : public __result_of_impl< 24952: is_member_object_pointer< 24952: typename remove_reference<_Functor>::type 24952: >::value, 24952: is_member_function_pointer< 24952: typename remove_reference<_Functor>::type 24952: >::value, 24952: _Functor, _ArgTypes... 24952: >::type 24952: { }; 24952: 24952: 24952: template 24952: struct result_of<_Functor(_ArgTypes...)> 24952: : public __invoke_result<_Functor, _ArgTypes...> 24952: { } __attribute__ ((__deprecated__ ("use '" "std::invoke_result" "' instead"))); 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: template::__type)> 24952: using aligned_storage_t = typename aligned_storage<_Len, _Align>::type; 24952: 24952: template 24952: using aligned_union_t = typename aligned_union<_Len, _Types...>::type; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: template 24952: using decay_t = typename decay<_Tp>::type; 24952: 24952: 24952: template 24952: using enable_if_t = typename enable_if<_Cond, _Tp>::type; 24952: 24952: 24952: template 24952: using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; 24952: 24952: 24952: template 24952: using common_type_t = typename common_type<_Tp...>::type; 24952: 24952: 24952: template 24952: using underlying_type_t = typename underlying_type<_Tp>::type; 24952: 24952: 24952: template 24952: using result_of_t = typename result_of<_Tp>::type; 24952: 24952: 24952: 24952: 24952: 24952: template using void_t = void; 24952: # 2659 "/usr/include/c++/13/type_traits" 3 24952: template class _Op, typename... _Args> 24952: struct __detector 24952: { 24952: using type = _Default; 24952: using __is_detected = false_type; 24952: }; 24952: 24952: 24952: template class _Op, 24952: typename... _Args> 24952: struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...> 24952: { 24952: using type = _Op<_Args...>; 24952: using __is_detected = true_type; 24952: }; 24952: 24952: template class _Op, 24952: typename... _Args> 24952: using __detected_or = __detector<_Default, void, _Op, _Args...>; 24952: 24952: 24952: 24952: template class _Op, 24952: typename... _Args> 24952: using __detected_or_t 24952: = typename __detected_or<_Default, _Op, _Args...>::type; 24952: # 2701 "/usr/include/c++/13/type_traits" 3 24952: template 24952: struct __is_swappable; 24952: 24952: template 24952: struct __is_nothrow_swappable; 24952: 24952: template 24952: struct __is_tuple_like_impl : false_type 24952: { }; 24952: 24952: 24952: template 24952: struct __is_tuple_like 24952: : public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type 24952: { }; 24952: 24952: 24952: template 24952: 24952: inline 24952: _Require<__not_<__is_tuple_like<_Tp>>, 24952: is_move_constructible<_Tp>, 24952: is_move_assignable<_Tp>> 24952: swap(_Tp&, _Tp&) 24952: noexcept(__and_, 24952: is_nothrow_move_assignable<_Tp>>::value); 24952: 24952: template 24952: 24952: inline 24952: __enable_if_t<__is_swappable<_Tp>::value> 24952: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 24952: noexcept(__is_nothrow_swappable<_Tp>::value); 24952: 24952: 24952: namespace __swappable_details { 24952: using std::swap; 24952: 24952: struct __do_is_swappable_impl 24952: { 24952: template(), std::declval<_Tp&>()))> 24952: static true_type __test(int); 24952: 24952: template 24952: static false_type __test(...); 24952: }; 24952: 24952: struct __do_is_nothrow_swappable_impl 24952: { 24952: template 24952: static __bool_constant< 24952: noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) 24952: > __test(int); 24952: 24952: template 24952: static false_type __test(...); 24952: }; 24952: 24952: } 24952: 24952: template 24952: struct __is_swappable_impl 24952: : public __swappable_details::__do_is_swappable_impl 24952: { 24952: typedef decltype(__test<_Tp>(0)) type; 24952: }; 24952: 24952: template 24952: struct __is_nothrow_swappable_impl 24952: : public __swappable_details::__do_is_nothrow_swappable_impl 24952: { 24952: typedef decltype(__test<_Tp>(0)) type; 24952: }; 24952: 24952: template 24952: struct __is_swappable 24952: : public __is_swappable_impl<_Tp>::type 24952: { }; 24952: 24952: template 24952: struct __is_nothrow_swappable 24952: : public __is_nothrow_swappable_impl<_Tp>::type 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_swappable 24952: : public __is_swappable_impl<_Tp>::type 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_nothrow_swappable 24952: : public __is_nothrow_swappable_impl<_Tp>::type 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: 24952: template 24952: inline constexpr bool is_swappable_v = 24952: is_swappable<_Tp>::value; 24952: 24952: 24952: template 24952: inline constexpr bool is_nothrow_swappable_v = 24952: is_nothrow_swappable<_Tp>::value; 24952: 24952: 24952: 24952: namespace __swappable_with_details { 24952: using std::swap; 24952: 24952: struct __do_is_swappable_with_impl 24952: { 24952: template(), std::declval<_Up>())), 24952: typename 24952: = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))> 24952: static true_type __test(int); 24952: 24952: template 24952: static false_type __test(...); 24952: }; 24952: 24952: struct __do_is_nothrow_swappable_with_impl 24952: { 24952: template 24952: static __bool_constant< 24952: noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())) 24952: && 24952: noexcept(swap(std::declval<_Up>(), std::declval<_Tp>())) 24952: > __test(int); 24952: 24952: template 24952: static false_type __test(...); 24952: }; 24952: 24952: } 24952: 24952: template 24952: struct __is_swappable_with_impl 24952: : public __swappable_with_details::__do_is_swappable_with_impl 24952: { 24952: typedef decltype(__test<_Tp, _Up>(0)) type; 24952: }; 24952: 24952: 24952: template 24952: struct __is_swappable_with_impl<_Tp&, _Tp&> 24952: : public __swappable_details::__do_is_swappable_impl 24952: { 24952: typedef decltype(__test<_Tp&>(0)) type; 24952: }; 24952: 24952: template 24952: struct __is_nothrow_swappable_with_impl 24952: : public __swappable_with_details::__do_is_nothrow_swappable_with_impl 24952: { 24952: typedef decltype(__test<_Tp, _Up>(0)) type; 24952: }; 24952: 24952: 24952: template 24952: struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&> 24952: : public __swappable_details::__do_is_nothrow_swappable_impl 24952: { 24952: typedef decltype(__test<_Tp&>(0)) type; 24952: }; 24952: 24952: 24952: 24952: template 24952: struct is_swappable_with 24952: : public __is_swappable_with_impl<_Tp, _Up>::type 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "first template argument must be a complete class or an unbounded array"); 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 24952: "second template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_nothrow_swappable_with 24952: : public __is_nothrow_swappable_with_impl<_Tp, _Up>::type 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "first template argument must be a complete class or an unbounded array"); 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 24952: "second template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: 24952: template 24952: inline constexpr bool is_swappable_with_v = 24952: is_swappable_with<_Tp, _Up>::value; 24952: 24952: 24952: template 24952: inline constexpr bool is_nothrow_swappable_with_v = 24952: is_nothrow_swappable_with<_Tp, _Up>::value; 24952: # 2924 "/usr/include/c++/13/type_traits" 3 24952: template::value, typename = void> 24952: struct __is_invocable_impl 24952: : false_type 24952: { 24952: using __nothrow_conv = false_type; 24952: }; 24952: 24952: 24952: template 24952: struct __is_invocable_impl<_Result, _Ret, 24952: true, 24952: __void_t> 24952: : true_type 24952: { 24952: using __nothrow_conv = true_type; 24952: }; 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 24952: 24952: template 24952: struct __is_invocable_impl<_Result, _Ret, 24952: false, 24952: __void_t> 24952: { 24952: private: 24952: 24952: using _Res_t = typename _Result::type; 24952: 24952: 24952: 24952: static _Res_t _S_get() noexcept; 24952: 24952: 24952: template 24952: static void _S_conv(__type_identity_t<_Tp>) noexcept; 24952: 24952: 24952: template(_S_get())), 24952: typename = decltype(_S_conv<_Tp>(_S_get())), 24952: 24952: bool _Dangle = __reference_converts_from_temporary(_Tp, _Res_t) 24952: 24952: 24952: 24952: > 24952: static __bool_constant<_Nothrow && !_Dangle> 24952: _S_test(int); 24952: 24952: template 24952: static false_type 24952: _S_test(...); 24952: 24952: public: 24952: 24952: using type = decltype(_S_test<_Ret, true>(1)); 24952: 24952: 24952: using __nothrow_conv = decltype(_S_test<_Ret>(1)); 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: template 24952: struct __is_invocable 24952: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 24952: { }; 24952: 24952: template 24952: constexpr bool __call_is_nt(__invoke_memfun_ref) 24952: { 24952: using _Up = typename __inv_unwrap<_Tp>::type; 24952: return noexcept((std::declval<_Up>().*std::declval<_Fn>())( 24952: std::declval<_Args>()...)); 24952: } 24952: 24952: template 24952: constexpr bool __call_is_nt(__invoke_memfun_deref) 24952: { 24952: return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( 24952: std::declval<_Args>()...)); 24952: } 24952: 24952: template 24952: constexpr bool __call_is_nt(__invoke_memobj_ref) 24952: { 24952: using _Up = typename __inv_unwrap<_Tp>::type; 24952: return noexcept(std::declval<_Up>().*std::declval<_Fn>()); 24952: } 24952: 24952: template 24952: constexpr bool __call_is_nt(__invoke_memobj_deref) 24952: { 24952: return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); 24952: } 24952: 24952: template 24952: constexpr bool __call_is_nt(__invoke_other) 24952: { 24952: return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); 24952: } 24952: 24952: template 24952: struct __call_is_nothrow 24952: : __bool_constant< 24952: std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) 24952: > 24952: { }; 24952: 24952: template 24952: using __call_is_nothrow_ 24952: = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; 24952: 24952: 24952: template 24952: struct __is_nothrow_invocable 24952: : __and_<__is_invocable<_Fn, _Args...>, 24952: __call_is_nothrow_<_Fn, _Args...>>::type 24952: { }; 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 24952: struct __nonesuchbase {}; 24952: struct __nonesuch : private __nonesuchbase { 24952: ~__nonesuch() = delete; 24952: __nonesuch(__nonesuch const&) = delete; 24952: void operator=(__nonesuch const&) = delete; 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct invoke_result 24952: : public __invoke_result<_Functor, _ArgTypes...> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Functor>{}), 24952: "_Functor must be a complete class or an unbounded array"); 24952: static_assert((std::__is_complete_or_unbounded( 24952: __type_identity<_ArgTypes>{}) && ...), 24952: "each argument type must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: using invoke_result_t = typename invoke_result<_Fn, _Args...>::type; 24952: 24952: 24952: template 24952: struct is_invocable 24952: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 24952: "_Fn must be a complete class or an unbounded array"); 24952: static_assert((std::__is_complete_or_unbounded( 24952: __type_identity<_ArgTypes>{}) && ...), 24952: "each argument type must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_invocable_r 24952: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 24952: "_Fn must be a complete class or an unbounded array"); 24952: static_assert((std::__is_complete_or_unbounded( 24952: __type_identity<_ArgTypes>{}) && ...), 24952: "each argument type must be a complete class or an unbounded array"); 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 24952: "_Ret must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: struct is_nothrow_invocable 24952: : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>, 24952: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 24952: "_Fn must be a complete class or an unbounded array"); 24952: static_assert((std::__is_complete_or_unbounded( 24952: __type_identity<_ArgTypes>{}) && ...), 24952: "each argument type must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: using __is_nt_invocable_impl 24952: = typename __is_invocable_impl<_Result, _Ret>::__nothrow_conv; 24952: 24952: 24952: 24952: template 24952: struct is_nothrow_invocable_r 24952: : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>, 24952: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 24952: "_Fn must be a complete class or an unbounded array"); 24952: static_assert((std::__is_complete_or_unbounded( 24952: __type_identity<_ArgTypes>{}) && ...), 24952: "each argument type must be a complete class or an unbounded array"); 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 24952: "_Ret must be a complete class or an unbounded array"); 24952: }; 24952: # 3155 "/usr/include/c++/13/type_traits" 3 24952: template 24952: inline constexpr bool is_void_v = is_void<_Tp>::value; 24952: template 24952: inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value; 24952: template 24952: inline constexpr bool is_integral_v = is_integral<_Tp>::value; 24952: template 24952: inline constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; 24952: 24952: template 24952: inline constexpr bool is_array_v = false; 24952: template 24952: inline constexpr bool is_array_v<_Tp[]> = true; 24952: template 24952: inline constexpr bool is_array_v<_Tp[_Num]> = true; 24952: 24952: template 24952: inline constexpr bool is_pointer_v = is_pointer<_Tp>::value; 24952: template 24952: inline constexpr bool is_lvalue_reference_v = false; 24952: template 24952: inline constexpr bool is_lvalue_reference_v<_Tp&> = true; 24952: template 24952: inline constexpr bool is_rvalue_reference_v = false; 24952: template 24952: inline constexpr bool is_rvalue_reference_v<_Tp&&> = true; 24952: template 24952: inline constexpr bool is_member_object_pointer_v = 24952: is_member_object_pointer<_Tp>::value; 24952: template 24952: inline constexpr bool is_member_function_pointer_v = 24952: is_member_function_pointer<_Tp>::value; 24952: template 24952: inline constexpr bool is_enum_v = __is_enum(_Tp); 24952: template 24952: inline constexpr bool is_union_v = __is_union(_Tp); 24952: template 24952: inline constexpr bool is_class_v = __is_class(_Tp); 24952: template 24952: inline constexpr bool is_function_v = is_function<_Tp>::value; 24952: template 24952: inline constexpr bool is_reference_v = false; 24952: template 24952: inline constexpr bool is_reference_v<_Tp&> = true; 24952: template 24952: inline constexpr bool is_reference_v<_Tp&&> = true; 24952: template 24952: inline constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value; 24952: template 24952: inline constexpr bool is_fundamental_v = is_fundamental<_Tp>::value; 24952: template 24952: inline constexpr bool is_object_v = is_object<_Tp>::value; 24952: template 24952: inline constexpr bool is_scalar_v = is_scalar<_Tp>::value; 24952: template 24952: inline constexpr bool is_compound_v = is_compound<_Tp>::value; 24952: template 24952: inline constexpr bool is_member_pointer_v = is_member_pointer<_Tp>::value; 24952: template 24952: inline constexpr bool is_const_v = false; 24952: template 24952: inline constexpr bool is_const_v = true; 24952: template 24952: inline constexpr bool is_volatile_v = false; 24952: template 24952: inline constexpr bool is_volatile_v = true; 24952: 24952: template 24952: inline constexpr bool is_trivial_v = __is_trivial(_Tp); 24952: template 24952: inline constexpr bool is_trivially_copyable_v = __is_trivially_copyable(_Tp); 24952: template 24952: inline constexpr bool is_standard_layout_v = __is_standard_layout(_Tp); 24952: template 24952: 24952: inline constexpr bool is_pod_v = __is_pod(_Tp); 24952: template 24952: [[__deprecated__]] 24952: inline constexpr bool is_literal_type_v = __is_literal_type(_Tp); 24952: template 24952: inline constexpr bool is_empty_v = __is_empty(_Tp); 24952: template 24952: inline constexpr bool is_polymorphic_v = __is_polymorphic(_Tp); 24952: template 24952: inline constexpr bool is_abstract_v = __is_abstract(_Tp); 24952: template 24952: inline constexpr bool is_final_v = __is_final(_Tp); 24952: 24952: template 24952: inline constexpr bool is_signed_v = is_signed<_Tp>::value; 24952: template 24952: inline constexpr bool is_unsigned_v = is_unsigned<_Tp>::value; 24952: 24952: template 24952: inline constexpr bool is_constructible_v = __is_constructible(_Tp, _Args...); 24952: template 24952: inline constexpr bool is_default_constructible_v = __is_constructible(_Tp); 24952: template 24952: inline constexpr bool is_copy_constructible_v 24952: = __is_constructible(_Tp, __add_lval_ref_t); 24952: template 24952: inline constexpr bool is_move_constructible_v 24952: = __is_constructible(_Tp, __add_rval_ref_t<_Tp>); 24952: 24952: template 24952: inline constexpr bool is_assignable_v = __is_assignable(_Tp, _Up); 24952: template 24952: inline constexpr bool is_copy_assignable_v 24952: = __is_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t); 24952: template 24952: inline constexpr bool is_move_assignable_v 24952: = __is_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 24952: 24952: template 24952: inline constexpr bool is_destructible_v = is_destructible<_Tp>::value; 24952: 24952: template 24952: inline constexpr bool is_trivially_constructible_v 24952: = __is_trivially_constructible(_Tp, _Args...); 24952: template 24952: inline constexpr bool is_trivially_default_constructible_v 24952: = __is_trivially_constructible(_Tp); 24952: template 24952: inline constexpr bool is_trivially_copy_constructible_v 24952: = __is_trivially_constructible(_Tp, __add_lval_ref_t); 24952: template 24952: inline constexpr bool is_trivially_move_constructible_v 24952: = __is_trivially_constructible(_Tp, __add_rval_ref_t<_Tp>); 24952: 24952: template 24952: inline constexpr bool is_trivially_assignable_v 24952: = __is_trivially_assignable(_Tp, _Up); 24952: template 24952: inline constexpr bool is_trivially_copy_assignable_v 24952: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 24952: __add_lval_ref_t); 24952: template 24952: inline constexpr bool is_trivially_move_assignable_v 24952: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 24952: __add_rval_ref_t<_Tp>); 24952: template 24952: inline constexpr bool is_trivially_destructible_v = 24952: is_trivially_destructible<_Tp>::value; 24952: template 24952: inline constexpr bool is_nothrow_constructible_v 24952: = __is_nothrow_constructible(_Tp, _Args...); 24952: template 24952: inline constexpr bool is_nothrow_default_constructible_v 24952: = __is_nothrow_constructible(_Tp); 24952: template 24952: inline constexpr bool is_nothrow_copy_constructible_v 24952: = __is_nothrow_constructible(_Tp, __add_lval_ref_t); 24952: template 24952: inline constexpr bool is_nothrow_move_constructible_v 24952: = __is_nothrow_constructible(_Tp, __add_rval_ref_t<_Tp>); 24952: 24952: template 24952: inline constexpr bool is_nothrow_assignable_v 24952: = __is_nothrow_assignable(_Tp, _Up); 24952: template 24952: inline constexpr bool is_nothrow_copy_assignable_v 24952: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, 24952: __add_lval_ref_t); 24952: template 24952: inline constexpr bool is_nothrow_move_assignable_v 24952: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 24952: 24952: template 24952: inline constexpr bool is_nothrow_destructible_v = 24952: is_nothrow_destructible<_Tp>::value; 24952: 24952: template 24952: inline constexpr bool has_virtual_destructor_v 24952: = __has_virtual_destructor(_Tp); 24952: 24952: template 24952: inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value; 24952: 24952: template 24952: inline constexpr size_t rank_v = 0; 24952: template 24952: inline constexpr size_t rank_v<_Tp[_Size]> = 1 + rank_v<_Tp>; 24952: template 24952: inline constexpr size_t rank_v<_Tp[]> = 1 + rank_v<_Tp>; 24952: 24952: template 24952: inline constexpr size_t extent_v = 0; 24952: template 24952: inline constexpr size_t extent_v<_Tp[_Size], 0> = _Size; 24952: template 24952: inline constexpr size_t extent_v<_Tp[_Size], _Idx> = extent_v<_Tp, _Idx - 1>; 24952: template 24952: inline constexpr size_t extent_v<_Tp[], 0> = 0; 24952: template 24952: inline constexpr size_t extent_v<_Tp[], _Idx> = extent_v<_Tp, _Idx - 1>; 24952: 24952: 24952: template 24952: inline constexpr bool is_same_v = __is_same(_Tp, _Up); 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline constexpr bool is_base_of_v = __is_base_of(_Base, _Derived); 24952: 24952: template 24952: inline constexpr bool is_convertible_v = __is_convertible(_From, _To); 24952: 24952: 24952: 24952: 24952: template 24952: inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; 24952: template 24952: inline constexpr bool is_nothrow_invocable_v 24952: = is_nothrow_invocable<_Fn, _Args...>::value; 24952: template 24952: inline constexpr bool is_invocable_r_v 24952: = is_invocable_r<_Ret, _Fn, _Args...>::value; 24952: template 24952: inline constexpr bool is_nothrow_invocable_r_v 24952: = is_nothrow_invocable_r<_Ret, _Fn, _Args...>::value; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct has_unique_object_representations 24952: : bool_constant<__has_unique_object_representations( 24952: remove_cv_t> 24952: )> 24952: { 24952: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 24952: "template argument must be a complete class or an unbounded array"); 24952: }; 24952: 24952: 24952: template 24952: inline constexpr bool has_unique_object_representations_v 24952: = has_unique_object_representations<_Tp>::value; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_aggregate 24952: : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline constexpr bool is_aggregate_v = __is_aggregate(remove_cv_t<_Tp>); 24952: # 3833 "/usr/include/c++/13/type_traits" 3 24952: 24952: } 24952: # 38 "/usr/include/c++/13/bits/move.h" 2 3 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline constexpr _Tp* 24952: __addressof(_Tp& __r) noexcept 24952: { return __builtin_addressof(__r); } 24952: # 67 "/usr/include/c++/13/bits/move.h" 3 24952: template 24952: [[__nodiscard__]] 24952: constexpr _Tp&& 24952: forward(typename std::remove_reference<_Tp>::type& __t) noexcept 24952: { return static_cast<_Tp&&>(__t); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: constexpr _Tp&& 24952: forward(typename std::remove_reference<_Tp>::type&& __t) noexcept 24952: { 24952: static_assert(!std::is_lvalue_reference<_Tp>::value, 24952: "std::forward must not be used to convert an rvalue to an lvalue"); 24952: return static_cast<_Tp&&>(__t); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: constexpr typename std::remove_reference<_Tp>::type&& 24952: move(_Tp&& __t) noexcept 24952: { return static_cast::type&&>(__t); } 24952: 24952: 24952: template 24952: struct __move_if_noexcept_cond 24952: : public __and_<__not_>, 24952: is_copy_constructible<_Tp>>::type { }; 24952: # 114 "/usr/include/c++/13/bits/move.h" 3 24952: template 24952: [[__nodiscard__]] 24952: constexpr 24952: __conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&> 24952: move_if_noexcept(_Tp& __x) noexcept 24952: { return std::move(__x); } 24952: # 135 "/usr/include/c++/13/bits/move.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr _Tp* 24952: addressof(_Tp& __r) noexcept 24952: { return std::__addressof(__r); } 24952: 24952: 24952: 24952: template 24952: const _Tp* addressof(const _Tp&&) = delete; 24952: 24952: 24952: template 24952: 24952: inline _Tp 24952: __exchange(_Tp& __obj, _Up&& __new_val) 24952: { 24952: _Tp __old_val = std::move(__obj); 24952: __obj = std::forward<_Up>(__new_val); 24952: return __old_val; 24952: } 24952: # 179 "/usr/include/c++/13/bits/move.h" 3 24952: template 24952: 24952: inline 24952: 24952: typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, 24952: is_move_constructible<_Tp>, 24952: is_move_assignable<_Tp>>::value>::type 24952: 24952: 24952: 24952: swap(_Tp& __a, _Tp& __b) 24952: noexcept(__and_, is_nothrow_move_assignable<_Tp>>::value) 24952: 24952: { 24952: 24952: 24952: 24952: 24952: _Tp __tmp = std::move(__a); 24952: __a = std::move(__b); 24952: __b = std::move(__tmp); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: 24952: inline 24952: 24952: typename enable_if<__is_swappable<_Tp>::value>::type 24952: 24952: 24952: 24952: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 24952: noexcept(__is_nothrow_swappable<_Tp>::value) 24952: { 24952: for (size_t __n = 0; __n < _Nm; ++__n) 24952: swap(__a[__n], __b[__n]); 24952: } 24952: 24952: 24952: 24952: } 24952: # 40 "/usr/include/c++/13/bits/atomic_base.h" 2 3 24952: # 49 "/usr/include/c++/13/bits/atomic_base.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 79 "/usr/include/c++/13/bits/atomic_base.h" 3 24952: typedef enum memory_order 24952: { 24952: memory_order_relaxed, 24952: memory_order_consume, 24952: memory_order_acquire, 24952: memory_order_release, 24952: memory_order_acq_rel, 24952: memory_order_seq_cst 24952: } memory_order; 24952: 24952: 24952: 24952: enum __memory_order_modifier 24952: { 24952: __memory_order_mask = 0x0ffff, 24952: __memory_order_modifier_mask = 0xffff0000, 24952: __memory_order_hle_acquire = 0x10000, 24952: __memory_order_hle_release = 0x20000 24952: }; 24952: 24952: 24952: constexpr memory_order 24952: operator|(memory_order __m, __memory_order_modifier __mod) 24952: { 24952: return memory_order(int(__m) | int(__mod)); 24952: } 24952: 24952: constexpr memory_order 24952: operator&(memory_order __m, __memory_order_modifier __mod) 24952: { 24952: return memory_order(int(__m) & int(__mod)); 24952: } 24952: 24952: 24952: 24952: 24952: constexpr memory_order 24952: __cmpexch_failure_order2(memory_order __m) noexcept 24952: { 24952: return __m == memory_order_acq_rel ? memory_order_acquire 24952: : __m == memory_order_release ? memory_order_relaxed : __m; 24952: } 24952: 24952: constexpr memory_order 24952: __cmpexch_failure_order(memory_order __m) noexcept 24952: { 24952: return memory_order(__cmpexch_failure_order2(__m & __memory_order_mask) 24952: | __memory_order_modifier(__m & __memory_order_modifier_mask)); 24952: } 24952: 24952: constexpr bool 24952: __is_valid_cmpexch_failure_order(memory_order __m) noexcept 24952: { 24952: return (__m & __memory_order_mask) != memory_order_release 24952: && (__m & __memory_order_mask) != memory_order_acq_rel; 24952: } 24952: 24952: 24952: template 24952: struct __atomic_base; 24952: 24952: 24952: 24952: inline __attribute__((__always_inline__)) void 24952: atomic_thread_fence(memory_order __m) noexcept 24952: { __atomic_thread_fence(int(__m)); } 24952: 24952: inline __attribute__((__always_inline__)) void 24952: atomic_signal_fence(memory_order __m) noexcept 24952: { __atomic_signal_fence(int(__m)); } 24952: 24952: 24952: template 24952: inline _Tp 24952: kill_dependency(_Tp __y) noexcept 24952: { 24952: _Tp __ret(__y); 24952: return __ret; 24952: } 24952: # 173 "/usr/include/c++/13/bits/atomic_base.h" 3 24952: template 24952: struct atomic; 24952: 24952: template 24952: struct atomic<_Tp*>; 24952: 24952: 24952: 24952: typedef bool __atomic_flag_data_type; 24952: # 198 "/usr/include/c++/13/bits/atomic_base.h" 3 24952: extern "C" { 24952: 24952: struct __atomic_flag_base 24952: { 24952: __atomic_flag_data_type _M_i ; 24952: }; 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct atomic_flag : public __atomic_flag_base 24952: { 24952: atomic_flag() noexcept = default; 24952: ~atomic_flag() noexcept = default; 24952: atomic_flag(const atomic_flag&) = delete; 24952: atomic_flag& operator=(const atomic_flag&) = delete; 24952: atomic_flag& operator=(const atomic_flag&) volatile = delete; 24952: 24952: 24952: constexpr atomic_flag(bool __i) noexcept 24952: : __atomic_flag_base{ _S_init(__i) } 24952: { } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: test_and_set(memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: return __atomic_test_and_set (&_M_i, int(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: return __atomic_test_and_set (&_M_i, int(__m)); 24952: } 24952: # 284 "/usr/include/c++/13/bits/atomic_base.h" 3 24952: inline __attribute__((__always_inline__)) void 24952: clear(memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: memory_order __b __attribute__ ((__unused__)) 24952: = __m & __memory_order_mask; 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 24952: 24952: __atomic_clear (&_M_i, int(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) void 24952: clear(memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: memory_order __b __attribute__ ((__unused__)) 24952: = __m & __memory_order_mask; 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 24952: 24952: __atomic_clear (&_M_i, int(__m)); 24952: } 24952: 24952: private: 24952: static constexpr __atomic_flag_data_type 24952: _S_init(bool __i) 24952: { return __i ? 1 : 0; } 24952: }; 24952: # 340 "/usr/include/c++/13/bits/atomic_base.h" 3 24952: template 24952: struct __atomic_base 24952: { 24952: using value_type = _ITp; 24952: using difference_type = value_type; 24952: 24952: private: 24952: typedef _ITp __int_type; 24952: 24952: static constexpr int _S_alignment = 24952: sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp); 24952: 24952: alignas(_S_alignment) __int_type _M_i ; 24952: 24952: public: 24952: __atomic_base() noexcept = default; 24952: ~__atomic_base() noexcept = default; 24952: __atomic_base(const __atomic_base&) = delete; 24952: __atomic_base& operator=(const __atomic_base&) = delete; 24952: __atomic_base& operator=(const __atomic_base&) volatile = delete; 24952: 24952: 24952: constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } 24952: 24952: operator __int_type() const noexcept 24952: { return load(); } 24952: 24952: operator __int_type() const volatile noexcept 24952: { return load(); } 24952: 24952: __int_type 24952: operator=(__int_type __i) noexcept 24952: { 24952: store(__i); 24952: return __i; 24952: } 24952: 24952: __int_type 24952: operator=(__int_type __i) volatile noexcept 24952: { 24952: store(__i); 24952: return __i; 24952: } 24952: 24952: __int_type 24952: operator++(int) noexcept 24952: { return fetch_add(1); } 24952: 24952: __int_type 24952: operator++(int) volatile noexcept 24952: { return fetch_add(1); } 24952: 24952: __int_type 24952: operator--(int) noexcept 24952: { return fetch_sub(1); } 24952: 24952: __int_type 24952: operator--(int) volatile noexcept 24952: { return fetch_sub(1); } 24952: 24952: __int_type 24952: operator++() noexcept 24952: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 24952: 24952: __int_type 24952: operator++() volatile noexcept 24952: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 24952: 24952: __int_type 24952: operator--() noexcept 24952: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 24952: 24952: __int_type 24952: operator--() volatile noexcept 24952: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 24952: 24952: __int_type 24952: operator+=(__int_type __i) noexcept 24952: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 24952: 24952: __int_type 24952: operator+=(__int_type __i) volatile noexcept 24952: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 24952: 24952: __int_type 24952: operator-=(__int_type __i) noexcept 24952: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 24952: 24952: __int_type 24952: operator-=(__int_type __i) volatile noexcept 24952: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 24952: 24952: __int_type 24952: operator&=(__int_type __i) noexcept 24952: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 24952: 24952: __int_type 24952: operator&=(__int_type __i) volatile noexcept 24952: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 24952: 24952: __int_type 24952: operator|=(__int_type __i) noexcept 24952: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 24952: 24952: __int_type 24952: operator|=(__int_type __i) volatile noexcept 24952: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 24952: 24952: __int_type 24952: operator^=(__int_type __i) noexcept 24952: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 24952: 24952: __int_type 24952: operator^=(__int_type __i) volatile noexcept 24952: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 24952: 24952: bool 24952: is_lock_free() const noexcept 24952: { 24952: 24952: return __atomic_is_lock_free(sizeof(_M_i), 24952: reinterpret_cast(-_S_alignment)); 24952: } 24952: 24952: bool 24952: is_lock_free() const volatile noexcept 24952: { 24952: 24952: return __atomic_is_lock_free(sizeof(_M_i), 24952: reinterpret_cast(-_S_alignment)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) void 24952: store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: memory_order __b __attribute__ ((__unused__)) 24952: = __m & __memory_order_mask; 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 24952: 24952: __atomic_store_n(&_M_i, __i, int(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) void 24952: store(__int_type __i, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: memory_order __b __attribute__ ((__unused__)) 24952: = __m & __memory_order_mask; 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 24952: 24952: __atomic_store_n(&_M_i, __i, int(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) __int_type 24952: load(memory_order __m = memory_order_seq_cst) const noexcept 24952: { 24952: memory_order __b __attribute__ ((__unused__)) 24952: = __m & __memory_order_mask; 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 24952: 24952: return __atomic_load_n(&_M_i, int(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) __int_type 24952: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 24952: { 24952: memory_order __b __attribute__ ((__unused__)) 24952: = __m & __memory_order_mask; 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 24952: 24952: return __atomic_load_n(&_M_i, int(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) __int_type 24952: exchange(__int_type __i, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: return __atomic_exchange_n(&_M_i, __i, int(__m)); 24952: } 24952: 24952: 24952: inline __attribute__((__always_inline__)) __int_type 24952: exchange(__int_type __i, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: return __atomic_exchange_n(&_M_i, __i, int(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: compare_exchange_weak(__int_type& __i1, __int_type __i2, 24952: memory_order __m1, memory_order __m2) noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 24952: 24952: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 24952: int(__m1), int(__m2)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: compare_exchange_weak(__int_type& __i1, __int_type __i2, 24952: memory_order __m1, 24952: memory_order __m2) volatile noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 24952: 24952: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 24952: int(__m1), int(__m2)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: compare_exchange_weak(__int_type& __i1, __int_type __i2, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: return compare_exchange_weak(__i1, __i2, __m, 24952: __cmpexch_failure_order(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: compare_exchange_weak(__int_type& __i1, __int_type __i2, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: return compare_exchange_weak(__i1, __i2, __m, 24952: __cmpexch_failure_order(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: compare_exchange_strong(__int_type& __i1, __int_type __i2, 24952: memory_order __m1, memory_order __m2) noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 24952: 24952: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 24952: int(__m1), int(__m2)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: compare_exchange_strong(__int_type& __i1, __int_type __i2, 24952: memory_order __m1, 24952: memory_order __m2) volatile noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 24952: 24952: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 24952: int(__m1), int(__m2)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: compare_exchange_strong(__int_type& __i1, __int_type __i2, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: return compare_exchange_strong(__i1, __i2, __m, 24952: __cmpexch_failure_order(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: compare_exchange_strong(__int_type& __i1, __int_type __i2, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: return compare_exchange_strong(__i1, __i2, __m, 24952: __cmpexch_failure_order(__m)); 24952: } 24952: # 632 "/usr/include/c++/13/bits/atomic_base.h" 3 24952: inline __attribute__((__always_inline__)) __int_type 24952: fetch_add(__int_type __i, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 24952: 24952: inline __attribute__((__always_inline__)) __int_type 24952: fetch_add(__int_type __i, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 24952: 24952: inline __attribute__((__always_inline__)) __int_type 24952: fetch_sub(__int_type __i, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 24952: 24952: inline __attribute__((__always_inline__)) __int_type 24952: fetch_sub(__int_type __i, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 24952: 24952: inline __attribute__((__always_inline__)) __int_type 24952: fetch_and(__int_type __i, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 24952: 24952: inline __attribute__((__always_inline__)) __int_type 24952: fetch_and(__int_type __i, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 24952: 24952: inline __attribute__((__always_inline__)) __int_type 24952: fetch_or(__int_type __i, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 24952: 24952: inline __attribute__((__always_inline__)) __int_type 24952: fetch_or(__int_type __i, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 24952: 24952: inline __attribute__((__always_inline__)) __int_type 24952: fetch_xor(__int_type __i, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 24952: 24952: inline __attribute__((__always_inline__)) __int_type 24952: fetch_xor(__int_type __i, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 24952: }; 24952: 24952: 24952: 24952: template 24952: struct __atomic_base<_PTp*> 24952: { 24952: private: 24952: typedef _PTp* __pointer_type; 24952: 24952: __pointer_type _M_p ; 24952: 24952: 24952: constexpr ptrdiff_t 24952: _M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); } 24952: 24952: constexpr ptrdiff_t 24952: _M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); } 24952: 24952: public: 24952: __atomic_base() noexcept = default; 24952: ~__atomic_base() noexcept = default; 24952: __atomic_base(const __atomic_base&) = delete; 24952: __atomic_base& operator=(const __atomic_base&) = delete; 24952: __atomic_base& operator=(const __atomic_base&) volatile = delete; 24952: 24952: 24952: constexpr __atomic_base(__pointer_type __p) noexcept : _M_p (__p) { } 24952: 24952: operator __pointer_type() const noexcept 24952: { return load(); } 24952: 24952: operator __pointer_type() const volatile noexcept 24952: { return load(); } 24952: 24952: __pointer_type 24952: operator=(__pointer_type __p) noexcept 24952: { 24952: store(__p); 24952: return __p; 24952: } 24952: 24952: __pointer_type 24952: operator=(__pointer_type __p) volatile noexcept 24952: { 24952: store(__p); 24952: return __p; 24952: } 24952: 24952: __pointer_type 24952: operator++(int) noexcept 24952: { return fetch_add(1); } 24952: 24952: __pointer_type 24952: operator++(int) volatile noexcept 24952: { return fetch_add(1); } 24952: 24952: __pointer_type 24952: operator--(int) noexcept 24952: { return fetch_sub(1); } 24952: 24952: __pointer_type 24952: operator--(int) volatile noexcept 24952: { return fetch_sub(1); } 24952: 24952: __pointer_type 24952: operator++() noexcept 24952: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 24952: int(memory_order_seq_cst)); } 24952: 24952: __pointer_type 24952: operator++() volatile noexcept 24952: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 24952: int(memory_order_seq_cst)); } 24952: 24952: __pointer_type 24952: operator--() noexcept 24952: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 24952: int(memory_order_seq_cst)); } 24952: 24952: __pointer_type 24952: operator--() volatile noexcept 24952: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 24952: int(memory_order_seq_cst)); } 24952: 24952: __pointer_type 24952: operator+=(ptrdiff_t __d) noexcept 24952: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 24952: int(memory_order_seq_cst)); } 24952: 24952: __pointer_type 24952: operator+=(ptrdiff_t __d) volatile noexcept 24952: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 24952: int(memory_order_seq_cst)); } 24952: 24952: __pointer_type 24952: operator-=(ptrdiff_t __d) noexcept 24952: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 24952: int(memory_order_seq_cst)); } 24952: 24952: __pointer_type 24952: operator-=(ptrdiff_t __d) volatile noexcept 24952: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 24952: int(memory_order_seq_cst)); } 24952: 24952: bool 24952: is_lock_free() const noexcept 24952: { 24952: 24952: return __atomic_is_lock_free(sizeof(_M_p), 24952: reinterpret_cast(-__alignof(_M_p))); 24952: } 24952: 24952: bool 24952: is_lock_free() const volatile noexcept 24952: { 24952: 24952: return __atomic_is_lock_free(sizeof(_M_p), 24952: reinterpret_cast(-__alignof(_M_p))); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) void 24952: store(__pointer_type __p, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: memory_order __b __attribute__ ((__unused__)) 24952: = __m & __memory_order_mask; 24952: 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 24952: 24952: __atomic_store_n(&_M_p, __p, int(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) void 24952: store(__pointer_type __p, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: memory_order __b __attribute__ ((__unused__)) 24952: = __m & __memory_order_mask; 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 24952: 24952: __atomic_store_n(&_M_p, __p, int(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) __pointer_type 24952: load(memory_order __m = memory_order_seq_cst) const noexcept 24952: { 24952: memory_order __b __attribute__ ((__unused__)) 24952: = __m & __memory_order_mask; 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 24952: 24952: return __atomic_load_n(&_M_p, int(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) __pointer_type 24952: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 24952: { 24952: memory_order __b __attribute__ ((__unused__)) 24952: = __m & __memory_order_mask; 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 24952: 24952: return __atomic_load_n(&_M_p, int(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) __pointer_type 24952: exchange(__pointer_type __p, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: return __atomic_exchange_n(&_M_p, __p, int(__m)); 24952: } 24952: 24952: 24952: inline __attribute__((__always_inline__)) __pointer_type 24952: exchange(__pointer_type __p, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: return __atomic_exchange_n(&_M_p, __p, int(__m)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 24952: memory_order __m1, 24952: memory_order __m2) noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 24952: 24952: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 24952: int(__m1), int(__m2)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 24952: memory_order __m1, 24952: memory_order __m2) volatile noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 24952: 24952: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 24952: int(__m1), int(__m2)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 24952: memory_order __m1, 24952: memory_order __m2) noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 24952: 24952: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 24952: int(__m1), int(__m2)); 24952: } 24952: 24952: inline __attribute__((__always_inline__)) bool 24952: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 24952: memory_order __m1, 24952: memory_order __m2) volatile noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 24952: 24952: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 24952: int(__m1), int(__m2)); 24952: } 24952: # 935 "/usr/include/c++/13/bits/atomic_base.h" 3 24952: inline __attribute__((__always_inline__)) __pointer_type 24952: fetch_add(ptrdiff_t __d, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 24952: 24952: inline __attribute__((__always_inline__)) __pointer_type 24952: fetch_add(ptrdiff_t __d, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 24952: 24952: inline __attribute__((__always_inline__)) __pointer_type 24952: fetch_sub(ptrdiff_t __d, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 24952: 24952: inline __attribute__((__always_inline__)) __pointer_type 24952: fetch_sub(ptrdiff_t __d, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 24952: }; 24952: 24952: namespace __atomic_impl 24952: { 24952: 24952: 24952: template 24952: constexpr bool 24952: __maybe_has_padding() 24952: { 24952: 24952: 24952: 24952: return !__has_unique_object_representations(_Tp) 24952: && !is_same<_Tp, float>::value && !is_same<_Tp, double>::value; 24952: 24952: 24952: 24952: } 24952: 24952: template 24952: inline __attribute__((__always_inline__)) _Tp* 24952: __clear_padding(_Tp& __val) noexcept 24952: { 24952: auto* __ptr = std::__addressof(__val); 24952: 24952: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 24952: __builtin_clear_padding(__ptr); 24952: 24952: return __ptr; 24952: } 24952: 24952: 24952: template 24952: using _Val = typename remove_volatile<_Tp>::type; 24952: 24952: template 24952: inline __attribute__((__always_inline__)) bool 24952: __compare_exchange(_Tp& __val, _Val<_Tp>& __e, _Val<_Tp>& __i, 24952: bool __is_weak, 24952: memory_order __s, memory_order __f) noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) __builtin_unreachable(); } while (false); 24952: 24952: using _Vp = _Val<_Tp>; 24952: 24952: if constexpr (__atomic_impl::__maybe_has_padding<_Vp>()) 24952: { 24952: 24952: 24952: alignas(_Vp) unsigned char __buf[sizeof(_Vp)]; 24952: _Vp* __exp = ::new((void*)__buf) _Vp(__e); 24952: __atomic_impl::__clear_padding(*__exp); 24952: if (__atomic_compare_exchange(std::__addressof(__val), __exp, 24952: __atomic_impl::__clear_padding(__i), 24952: __is_weak, int(__s), int(__f))) 24952: return true; 24952: __builtin_memcpy(std::__addressof(__e), __exp, sizeof(_Vp)); 24952: return false; 24952: } 24952: else 24952: return __atomic_compare_exchange(std::__addressof(__val), 24952: std::__addressof(__e), 24952: std::__addressof(__i), 24952: __is_weak, int(__s), int(__f)); 24952: } 24952: } 24952: # 2020 "/usr/include/c++/13/bits/atomic_base.h" 3 24952: 24952: } 24952: # 42 "/usr/include/c++/13/atomic" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 56 "/usr/include/c++/13/atomic" 3 24952: template 24952: struct atomic; 24952: 24952: 24952: 24952: template<> 24952: struct atomic 24952: { 24952: using value_type = bool; 24952: 24952: private: 24952: __atomic_base _M_base; 24952: 24952: public: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(bool __i) noexcept : _M_base(__i) { } 24952: 24952: bool 24952: operator=(bool __i) noexcept 24952: { return _M_base.operator=(__i); } 24952: 24952: bool 24952: operator=(bool __i) volatile noexcept 24952: { return _M_base.operator=(__i); } 24952: 24952: operator bool() const noexcept 24952: { return _M_base.load(); } 24952: 24952: operator bool() const volatile noexcept 24952: { return _M_base.load(); } 24952: 24952: bool 24952: is_lock_free() const noexcept { return _M_base.is_lock_free(); } 24952: 24952: bool 24952: is_lock_free() const volatile noexcept { return _M_base.is_lock_free(); } 24952: 24952: 24952: static constexpr bool is_always_lock_free = 2 == 2; 24952: 24952: 24952: void 24952: store(bool __i, memory_order __m = memory_order_seq_cst) noexcept 24952: { _M_base.store(__i, __m); } 24952: 24952: void 24952: store(bool __i, memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { _M_base.store(__i, __m); } 24952: 24952: bool 24952: load(memory_order __m = memory_order_seq_cst) const noexcept 24952: { return _M_base.load(__m); } 24952: 24952: bool 24952: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 24952: { return _M_base.load(__m); } 24952: 24952: bool 24952: exchange(bool __i, memory_order __m = memory_order_seq_cst) noexcept 24952: { return _M_base.exchange(__i, __m); } 24952: 24952: bool 24952: exchange(bool __i, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return _M_base.exchange(__i, __m); } 24952: 24952: bool 24952: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 24952: memory_order __m2) noexcept 24952: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 24952: 24952: bool 24952: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 24952: memory_order __m2) volatile noexcept 24952: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 24952: 24952: bool 24952: compare_exchange_weak(bool& __i1, bool __i2, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 24952: 24952: bool 24952: compare_exchange_weak(bool& __i1, bool __i2, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 24952: 24952: bool 24952: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 24952: memory_order __m2) noexcept 24952: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 24952: 24952: bool 24952: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 24952: memory_order __m2) volatile noexcept 24952: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 24952: 24952: bool 24952: compare_exchange_strong(bool& __i1, bool __i2, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 24952: 24952: bool 24952: compare_exchange_strong(bool& __i1, bool __i2, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 24952: # 182 "/usr/include/c++/13/atomic" 3 24952: }; 24952: # 197 "/usr/include/c++/13/atomic" 3 24952: template 24952: struct atomic 24952: { 24952: using value_type = _Tp; 24952: 24952: private: 24952: 24952: static constexpr int _S_min_alignment 24952: = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 24952: ? 0 : sizeof(_Tp); 24952: 24952: static constexpr int _S_alignment 24952: = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); 24952: 24952: alignas(_S_alignment) _Tp _M_i ; 24952: 24952: static_assert(__is_trivially_copyable(_Tp), 24952: "std::atomic requires a trivially copyable type"); 24952: 24952: static_assert(sizeof(_Tp) > 0, 24952: "Incomplete or zero-sized types are not supported"); 24952: # 226 "/usr/include/c++/13/atomic" 3 24952: public: 24952: atomic() = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(_Tp __i) noexcept : _M_i(__i) 24952: { 24952: 24952: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 24952: __builtin_clear_padding(std::__addressof(_M_i)); 24952: 24952: } 24952: 24952: operator _Tp() const noexcept 24952: { return load(); } 24952: 24952: operator _Tp() const volatile noexcept 24952: { return load(); } 24952: 24952: _Tp 24952: operator=(_Tp __i) noexcept 24952: { store(__i); return __i; } 24952: 24952: _Tp 24952: operator=(_Tp __i) volatile noexcept 24952: { store(__i); return __i; } 24952: 24952: bool 24952: is_lock_free() const noexcept 24952: { 24952: 24952: return __atomic_is_lock_free(sizeof(_M_i), 24952: reinterpret_cast(-_S_alignment)); 24952: } 24952: 24952: bool 24952: is_lock_free() const volatile noexcept 24952: { 24952: 24952: return __atomic_is_lock_free(sizeof(_M_i), 24952: reinterpret_cast(-_S_alignment)); 24952: } 24952: 24952: 24952: static constexpr bool is_always_lock_free 24952: = __atomic_always_lock_free(sizeof(_M_i), 0); 24952: 24952: 24952: void 24952: store(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: __atomic_store(std::__addressof(_M_i), 24952: __atomic_impl::__clear_padding(__i), 24952: int(__m)); 24952: } 24952: 24952: void 24952: store(_Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: __atomic_store(std::__addressof(_M_i), 24952: __atomic_impl::__clear_padding(__i), 24952: int(__m)); 24952: } 24952: 24952: _Tp 24952: load(memory_order __m = memory_order_seq_cst) const noexcept 24952: { 24952: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 24952: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 24952: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 24952: return *__ptr; 24952: } 24952: 24952: _Tp 24952: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 24952: { 24952: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 24952: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 24952: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 24952: return *__ptr; 24952: } 24952: 24952: _Tp 24952: exchange(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 24952: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 24952: __atomic_exchange(std::__addressof(_M_i), 24952: __atomic_impl::__clear_padding(__i), 24952: __ptr, int(__m)); 24952: return *__ptr; 24952: } 24952: 24952: _Tp 24952: exchange(_Tp __i, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 24952: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 24952: __atomic_exchange(std::__addressof(_M_i), 24952: __atomic_impl::__clear_padding(__i), 24952: __ptr, int(__m)); 24952: return *__ptr; 24952: } 24952: 24952: bool 24952: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 24952: memory_order __f) noexcept 24952: { 24952: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 24952: __s, __f); 24952: } 24952: 24952: bool 24952: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 24952: memory_order __f) volatile noexcept 24952: { 24952: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 24952: __s, __f); 24952: } 24952: 24952: bool 24952: compare_exchange_weak(_Tp& __e, _Tp __i, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { return compare_exchange_weak(__e, __i, __m, 24952: __cmpexch_failure_order(__m)); } 24952: 24952: bool 24952: compare_exchange_weak(_Tp& __e, _Tp __i, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return compare_exchange_weak(__e, __i, __m, 24952: __cmpexch_failure_order(__m)); } 24952: 24952: bool 24952: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 24952: memory_order __f) noexcept 24952: { 24952: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 24952: __s, __f); 24952: } 24952: 24952: bool 24952: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 24952: memory_order __f) volatile noexcept 24952: { 24952: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 24952: __s, __f); 24952: } 24952: 24952: bool 24952: compare_exchange_strong(_Tp& __e, _Tp __i, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { return compare_exchange_strong(__e, __i, __m, 24952: __cmpexch_failure_order(__m)); } 24952: 24952: bool 24952: compare_exchange_strong(_Tp& __e, _Tp __i, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return compare_exchange_strong(__e, __i, __m, 24952: __cmpexch_failure_order(__m)); } 24952: # 408 "/usr/include/c++/13/atomic" 3 24952: }; 24952: 24952: 24952: 24952: template 24952: struct atomic<_Tp*> 24952: { 24952: using value_type = _Tp*; 24952: using difference_type = ptrdiff_t; 24952: 24952: typedef _Tp* __pointer_type; 24952: typedef __atomic_base<_Tp*> __base_type; 24952: __base_type _M_b; 24952: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__pointer_type __p) noexcept : _M_b(__p) { } 24952: 24952: operator __pointer_type() const noexcept 24952: { return __pointer_type(_M_b); } 24952: 24952: operator __pointer_type() const volatile noexcept 24952: { return __pointer_type(_M_b); } 24952: 24952: __pointer_type 24952: operator=(__pointer_type __p) noexcept 24952: { return _M_b.operator=(__p); } 24952: 24952: __pointer_type 24952: operator=(__pointer_type __p) volatile noexcept 24952: { return _M_b.operator=(__p); } 24952: 24952: __pointer_type 24952: operator++(int) noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return _M_b++; 24952: } 24952: 24952: __pointer_type 24952: operator++(int) volatile noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return _M_b++; 24952: } 24952: 24952: __pointer_type 24952: operator--(int) noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return _M_b--; 24952: } 24952: 24952: __pointer_type 24952: operator--(int) volatile noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return _M_b--; 24952: } 24952: 24952: __pointer_type 24952: operator++() noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return ++_M_b; 24952: } 24952: 24952: __pointer_type 24952: operator++() volatile noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return ++_M_b; 24952: } 24952: 24952: __pointer_type 24952: operator--() noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return --_M_b; 24952: } 24952: 24952: __pointer_type 24952: operator--() volatile noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return --_M_b; 24952: } 24952: 24952: __pointer_type 24952: operator+=(ptrdiff_t __d) noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return _M_b.operator+=(__d); 24952: } 24952: 24952: __pointer_type 24952: operator+=(ptrdiff_t __d) volatile noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return _M_b.operator+=(__d); 24952: } 24952: 24952: __pointer_type 24952: operator-=(ptrdiff_t __d) noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return _M_b.operator-=(__d); 24952: } 24952: 24952: __pointer_type 24952: operator-=(ptrdiff_t __d) volatile noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return _M_b.operator-=(__d); 24952: } 24952: 24952: bool 24952: is_lock_free() const noexcept 24952: { return _M_b.is_lock_free(); } 24952: 24952: bool 24952: is_lock_free() const volatile noexcept 24952: { return _M_b.is_lock_free(); } 24952: 24952: 24952: static constexpr bool is_always_lock_free 24952: = 2 == 2; 24952: 24952: 24952: void 24952: store(__pointer_type __p, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { return _M_b.store(__p, __m); } 24952: 24952: void 24952: store(__pointer_type __p, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return _M_b.store(__p, __m); } 24952: 24952: __pointer_type 24952: load(memory_order __m = memory_order_seq_cst) const noexcept 24952: { return _M_b.load(__m); } 24952: 24952: __pointer_type 24952: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 24952: { return _M_b.load(__m); } 24952: 24952: __pointer_type 24952: exchange(__pointer_type __p, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { return _M_b.exchange(__p, __m); } 24952: 24952: __pointer_type 24952: exchange(__pointer_type __p, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { return _M_b.exchange(__p, __m); } 24952: 24952: bool 24952: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 24952: memory_order __m1, memory_order __m2) noexcept 24952: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 24952: 24952: bool 24952: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 24952: memory_order __m1, 24952: memory_order __m2) volatile noexcept 24952: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 24952: 24952: bool 24952: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: return compare_exchange_weak(__p1, __p2, __m, 24952: __cmpexch_failure_order(__m)); 24952: } 24952: 24952: bool 24952: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: return compare_exchange_weak(__p1, __p2, __m, 24952: __cmpexch_failure_order(__m)); 24952: } 24952: 24952: bool 24952: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 24952: memory_order __m1, memory_order __m2) noexcept 24952: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 24952: 24952: bool 24952: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 24952: memory_order __m1, 24952: memory_order __m2) volatile noexcept 24952: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 24952: 24952: bool 24952: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: return _M_b.compare_exchange_strong(__p1, __p2, __m, 24952: __cmpexch_failure_order(__m)); 24952: } 24952: 24952: bool 24952: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: return _M_b.compare_exchange_strong(__p1, __p2, __m, 24952: __cmpexch_failure_order(__m)); 24952: } 24952: # 663 "/usr/include/c++/13/atomic" 3 24952: __pointer_type 24952: fetch_add(ptrdiff_t __d, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return _M_b.fetch_add(__d, __m); 24952: } 24952: 24952: __pointer_type 24952: fetch_add(ptrdiff_t __d, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return _M_b.fetch_add(__d, __m); 24952: } 24952: 24952: __pointer_type 24952: fetch_sub(ptrdiff_t __d, 24952: memory_order __m = memory_order_seq_cst) noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return _M_b.fetch_sub(__d, __m); 24952: } 24952: 24952: __pointer_type 24952: fetch_sub(ptrdiff_t __d, 24952: memory_order __m = memory_order_seq_cst) volatile noexcept 24952: { 24952: 24952: static_assert( is_object<_Tp>::value, "pointer to object type" ); 24952: 24952: return _M_b.fetch_sub(__d, __m); 24952: } 24952: }; 24952: 24952: 24952: 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef char __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free = 2 == 2; 24952: 24952: }; 24952: 24952: 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef signed char __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept= default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free = 2 == 2; 24952: 24952: }; 24952: 24952: 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef unsigned char __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept= default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free = 2 == 2; 24952: 24952: }; 24952: 24952: 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef short __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free = 2 == 2; 24952: 24952: }; 24952: 24952: 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef unsigned short __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free = 2 == 2; 24952: 24952: }; 24952: 24952: 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef int __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free = 2 == 2; 24952: 24952: }; 24952: 24952: 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef unsigned int __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free = 2 == 2; 24952: 24952: }; 24952: 24952: 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef long __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free = 2 == 2; 24952: 24952: }; 24952: 24952: 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef unsigned long __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free = 2 == 2; 24952: 24952: }; 24952: 24952: 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef long long __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free = 2 == 2; 24952: 24952: }; 24952: 24952: 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef unsigned long long __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free = 2 == 2; 24952: 24952: }; 24952: 24952: 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef wchar_t __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free = 2 == 2; 24952: 24952: }; 24952: # 1008 "/usr/include/c++/13/atomic" 3 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef char16_t __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free 24952: = 2 == 2; 24952: 24952: }; 24952: 24952: 24952: template<> 24952: struct atomic : __atomic_base 24952: { 24952: typedef char32_t __integral_type; 24952: typedef __atomic_base __base_type; 24952: 24952: atomic() noexcept = default; 24952: ~atomic() noexcept = default; 24952: atomic(const atomic&) = delete; 24952: atomic& operator=(const atomic&) = delete; 24952: atomic& operator=(const atomic&) volatile = delete; 24952: 24952: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 24952: 24952: using __base_type::operator __integral_type; 24952: using __base_type::operator=; 24952: 24952: 24952: static constexpr bool is_always_lock_free 24952: = 2 == 2; 24952: 24952: }; 24952: 24952: 24952: 24952: typedef atomic atomic_bool; 24952: 24952: 24952: typedef atomic atomic_char; 24952: 24952: 24952: typedef atomic atomic_schar; 24952: 24952: 24952: typedef atomic atomic_uchar; 24952: 24952: 24952: typedef atomic atomic_short; 24952: 24952: 24952: typedef atomic atomic_ushort; 24952: 24952: 24952: typedef atomic atomic_int; 24952: 24952: 24952: typedef atomic atomic_uint; 24952: 24952: 24952: typedef atomic atomic_long; 24952: 24952: 24952: typedef atomic atomic_ulong; 24952: 24952: 24952: typedef atomic atomic_llong; 24952: 24952: 24952: typedef atomic atomic_ullong; 24952: 24952: 24952: typedef atomic atomic_wchar_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef atomic atomic_char16_t; 24952: 24952: 24952: typedef atomic atomic_char32_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef atomic atomic_int8_t; 24952: 24952: 24952: typedef atomic atomic_uint8_t; 24952: 24952: 24952: typedef atomic atomic_int16_t; 24952: 24952: 24952: typedef atomic atomic_uint16_t; 24952: 24952: 24952: typedef atomic atomic_int32_t; 24952: 24952: 24952: typedef atomic atomic_uint32_t; 24952: 24952: 24952: typedef atomic atomic_int64_t; 24952: 24952: 24952: typedef atomic atomic_uint64_t; 24952: 24952: 24952: 24952: typedef atomic atomic_int_least8_t; 24952: 24952: 24952: typedef atomic atomic_uint_least8_t; 24952: 24952: 24952: typedef atomic atomic_int_least16_t; 24952: 24952: 24952: typedef atomic atomic_uint_least16_t; 24952: 24952: 24952: typedef atomic atomic_int_least32_t; 24952: 24952: 24952: typedef atomic atomic_uint_least32_t; 24952: 24952: 24952: typedef atomic atomic_int_least64_t; 24952: 24952: 24952: typedef atomic atomic_uint_least64_t; 24952: 24952: 24952: 24952: typedef atomic atomic_int_fast8_t; 24952: 24952: 24952: typedef atomic atomic_uint_fast8_t; 24952: 24952: 24952: typedef atomic atomic_int_fast16_t; 24952: 24952: 24952: typedef atomic atomic_uint_fast16_t; 24952: 24952: 24952: typedef atomic atomic_int_fast32_t; 24952: 24952: 24952: typedef atomic atomic_uint_fast32_t; 24952: 24952: 24952: typedef atomic atomic_int_fast64_t; 24952: 24952: 24952: typedef atomic atomic_uint_fast64_t; 24952: 24952: 24952: 24952: 24952: typedef atomic atomic_intptr_t; 24952: 24952: 24952: typedef atomic atomic_uintptr_t; 24952: 24952: 24952: typedef atomic atomic_size_t; 24952: 24952: 24952: typedef atomic atomic_ptrdiff_t; 24952: 24952: 24952: 24952: typedef atomic atomic_intmax_t; 24952: 24952: 24952: typedef atomic atomic_uintmax_t; 24952: 24952: 24952: 24952: inline bool 24952: atomic_flag_test_and_set_explicit(atomic_flag* __a, 24952: memory_order __m) noexcept 24952: { return __a->test_and_set(__m); } 24952: 24952: inline bool 24952: atomic_flag_test_and_set_explicit(volatile atomic_flag* __a, 24952: memory_order __m) noexcept 24952: { return __a->test_and_set(__m); } 24952: # 1237 "/usr/include/c++/13/atomic" 3 24952: inline void 24952: atomic_flag_clear_explicit(atomic_flag* __a, memory_order __m) noexcept 24952: { __a->clear(__m); } 24952: 24952: inline void 24952: atomic_flag_clear_explicit(volatile atomic_flag* __a, 24952: memory_order __m) noexcept 24952: { __a->clear(__m); } 24952: 24952: inline bool 24952: atomic_flag_test_and_set(atomic_flag* __a) noexcept 24952: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 24952: 24952: inline bool 24952: atomic_flag_test_and_set(volatile atomic_flag* __a) noexcept 24952: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 24952: 24952: inline void 24952: atomic_flag_clear(atomic_flag* __a) noexcept 24952: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 24952: 24952: inline void 24952: atomic_flag_clear(volatile atomic_flag* __a) noexcept 24952: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 24952: # 1284 "/usr/include/c++/13/atomic" 3 24952: template 24952: using __atomic_val_t = __type_identity_t<_Tp>; 24952: template 24952: using __atomic_diff_t = typename atomic<_Tp>::difference_type; 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: atomic_is_lock_free(const atomic<_ITp>* __a) noexcept 24952: { return __a->is_lock_free(); } 24952: 24952: template 24952: inline bool 24952: atomic_is_lock_free(const volatile atomic<_ITp>* __a) noexcept 24952: { return __a->is_lock_free(); } 24952: 24952: template 24952: inline void 24952: atomic_init(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 24952: { __a->store(__i, memory_order_relaxed); } 24952: 24952: template 24952: inline void 24952: atomic_init(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 24952: { __a->store(__i, memory_order_relaxed); } 24952: 24952: template 24952: inline void 24952: atomic_store_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { __a->store(__i, __m); } 24952: 24952: template 24952: inline void 24952: atomic_store_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { __a->store(__i, __m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_load_explicit(const atomic<_ITp>* __a, memory_order __m) noexcept 24952: { return __a->load(__m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_load_explicit(const volatile atomic<_ITp>* __a, 24952: memory_order __m) noexcept 24952: { return __a->load(__m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_exchange_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { return __a->exchange(__i, __m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_exchange_explicit(volatile atomic<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { return __a->exchange(__i, __m); } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_weak_explicit(atomic<_ITp>* __a, 24952: __atomic_val_t<_ITp>* __i1, 24952: __atomic_val_t<_ITp> __i2, 24952: memory_order __m1, 24952: memory_order __m2) noexcept 24952: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_weak_explicit(volatile atomic<_ITp>* __a, 24952: __atomic_val_t<_ITp>* __i1, 24952: __atomic_val_t<_ITp> __i2, 24952: memory_order __m1, 24952: memory_order __m2) noexcept 24952: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_strong_explicit(atomic<_ITp>* __a, 24952: __atomic_val_t<_ITp>* __i1, 24952: __atomic_val_t<_ITp> __i2, 24952: memory_order __m1, 24952: memory_order __m2) noexcept 24952: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_strong_explicit(volatile atomic<_ITp>* __a, 24952: __atomic_val_t<_ITp>* __i1, 24952: __atomic_val_t<_ITp> __i2, 24952: memory_order __m1, 24952: memory_order __m2) noexcept 24952: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 24952: 24952: 24952: template 24952: inline void 24952: atomic_store(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 24952: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 24952: 24952: template 24952: inline void 24952: atomic_store(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 24952: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 24952: 24952: template 24952: inline _ITp 24952: atomic_load(const atomic<_ITp>* __a) noexcept 24952: { return atomic_load_explicit(__a, memory_order_seq_cst); } 24952: 24952: template 24952: inline _ITp 24952: atomic_load(const volatile atomic<_ITp>* __a) noexcept 24952: { return atomic_load_explicit(__a, memory_order_seq_cst); } 24952: 24952: template 24952: inline _ITp 24952: atomic_exchange(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 24952: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 24952: 24952: template 24952: inline _ITp 24952: atomic_exchange(volatile atomic<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i) noexcept 24952: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_weak(atomic<_ITp>* __a, 24952: __atomic_val_t<_ITp>* __i1, 24952: __atomic_val_t<_ITp> __i2) noexcept 24952: { 24952: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 24952: memory_order_seq_cst, 24952: memory_order_seq_cst); 24952: } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_weak(volatile atomic<_ITp>* __a, 24952: __atomic_val_t<_ITp>* __i1, 24952: __atomic_val_t<_ITp> __i2) noexcept 24952: { 24952: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 24952: memory_order_seq_cst, 24952: memory_order_seq_cst); 24952: } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_strong(atomic<_ITp>* __a, 24952: __atomic_val_t<_ITp>* __i1, 24952: __atomic_val_t<_ITp> __i2) noexcept 24952: { 24952: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 24952: memory_order_seq_cst, 24952: memory_order_seq_cst); 24952: } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_strong(volatile atomic<_ITp>* __a, 24952: __atomic_val_t<_ITp>* __i1, 24952: __atomic_val_t<_ITp> __i2) noexcept 24952: { 24952: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 24952: memory_order_seq_cst, 24952: memory_order_seq_cst); 24952: } 24952: # 1490 "/usr/include/c++/13/atomic" 3 24952: template 24952: inline _ITp 24952: atomic_fetch_add_explicit(atomic<_ITp>* __a, 24952: __atomic_diff_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { return __a->fetch_add(__i, __m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_add_explicit(volatile atomic<_ITp>* __a, 24952: __atomic_diff_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { return __a->fetch_add(__i, __m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_sub_explicit(atomic<_ITp>* __a, 24952: __atomic_diff_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { return __a->fetch_sub(__i, __m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_sub_explicit(volatile atomic<_ITp>* __a, 24952: __atomic_diff_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { return __a->fetch_sub(__i, __m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_and_explicit(__atomic_base<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { return __a->fetch_and(__i, __m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_and_explicit(volatile __atomic_base<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { return __a->fetch_and(__i, __m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_or_explicit(__atomic_base<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { return __a->fetch_or(__i, __m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_or_explicit(volatile __atomic_base<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { return __a->fetch_or(__i, __m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_xor_explicit(__atomic_base<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { return __a->fetch_xor(__i, __m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_xor_explicit(volatile __atomic_base<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i, 24952: memory_order __m) noexcept 24952: { return __a->fetch_xor(__i, __m); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_add(atomic<_ITp>* __a, 24952: __atomic_diff_t<_ITp> __i) noexcept 24952: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_add(volatile atomic<_ITp>* __a, 24952: __atomic_diff_t<_ITp> __i) noexcept 24952: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_sub(atomic<_ITp>* __a, 24952: __atomic_diff_t<_ITp> __i) noexcept 24952: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_sub(volatile atomic<_ITp>* __a, 24952: __atomic_diff_t<_ITp> __i) noexcept 24952: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_and(__atomic_base<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i) noexcept 24952: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_and(volatile __atomic_base<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i) noexcept 24952: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_or(__atomic_base<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i) noexcept 24952: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_or(volatile __atomic_base<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i) noexcept 24952: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_xor(__atomic_base<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i) noexcept 24952: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 24952: 24952: template 24952: inline _ITp 24952: atomic_fetch_xor(volatile __atomic_base<_ITp>* __a, 24952: __atomic_val_t<_ITp> __i) noexcept 24952: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 24952: # 1790 "/usr/include/c++/13/atomic" 3 24952: 24952: } 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: # 1 "/usr/include/c++/13/deque" 1 3 24952: # 58 "/usr/include/c++/13/deque" 3 24952: 24952: # 59 "/usr/include/c++/13/deque" 3 24952: 24952: # 1 "/usr/include/c++/13/bits/requires_hosted.h" 1 3 24952: # 61 "/usr/include/c++/13/deque" 2 3 24952: 24952: # 1 "/usr/include/c++/13/bits/stl_algobase.h" 1 3 24952: # 60 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: # 1 "/usr/include/c++/13/bits/functexcept.h" 1 3 24952: # 40 "/usr/include/c++/13/bits/functexcept.h" 3 24952: # 1 "/usr/include/c++/13/bits/exception_defines.h" 1 3 24952: # 41 "/usr/include/c++/13/bits/functexcept.h" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: void 24952: __throw_bad_exception(void) __attribute__((__noreturn__)); 24952: 24952: 24952: void 24952: __throw_bad_alloc(void) __attribute__((__noreturn__)); 24952: 24952: void 24952: __throw_bad_array_new_length(void) __attribute__((__noreturn__)); 24952: 24952: 24952: void 24952: __throw_bad_cast(void) __attribute__((__noreturn__)); 24952: 24952: void 24952: __throw_bad_typeid(void) __attribute__((__noreturn__)); 24952: 24952: 24952: void 24952: __throw_logic_error(const char*) __attribute__((__noreturn__)); 24952: 24952: void 24952: __throw_domain_error(const char*) __attribute__((__noreturn__)); 24952: 24952: void 24952: __throw_invalid_argument(const char*) __attribute__((__noreturn__)); 24952: 24952: void 24952: __throw_length_error(const char*) __attribute__((__noreturn__)); 24952: 24952: void 24952: __throw_out_of_range(const char*) __attribute__((__noreturn__)); 24952: 24952: void 24952: __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__)) 24952: __attribute__((__format__(__gnu_printf__, 1, 2))); 24952: 24952: void 24952: __throw_runtime_error(const char*) __attribute__((__noreturn__)); 24952: 24952: void 24952: __throw_range_error(const char*) __attribute__((__noreturn__)); 24952: 24952: void 24952: __throw_overflow_error(const char*) __attribute__((__noreturn__)); 24952: 24952: void 24952: __throw_underflow_error(const char*) __attribute__((__noreturn__)); 24952: 24952: 24952: void 24952: __throw_ios_failure(const char*) __attribute__((__noreturn__)); 24952: 24952: void 24952: __throw_ios_failure(const char*, int) __attribute__((__noreturn__)); 24952: 24952: 24952: void 24952: __throw_system_error(int) __attribute__((__noreturn__)); 24952: 24952: 24952: void 24952: __throw_future_error(int) __attribute__((__noreturn__)); 24952: 24952: 24952: void 24952: __throw_bad_function_call() __attribute__((__noreturn__)); 24952: # 140 "/usr/include/c++/13/bits/functexcept.h" 3 24952: 24952: } 24952: # 61 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/cpp_type_traits.h" 1 3 24952: # 35 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 24952: 24952: # 36 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 24952: # 67 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 24952: extern "C++" { 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: struct __true_type { }; 24952: struct __false_type { }; 24952: 24952: template 24952: struct __truth_type 24952: { typedef __false_type __type; }; 24952: 24952: template<> 24952: struct __truth_type 24952: { typedef __true_type __type; }; 24952: 24952: 24952: 24952: template 24952: struct __traitor 24952: { 24952: enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; 24952: typedef typename __truth_type<__value>::__type __type; 24952: }; 24952: 24952: 24952: template 24952: struct __are_same 24952: { 24952: enum { __value = 0 }; 24952: typedef __false_type __type; 24952: }; 24952: 24952: template 24952: struct __are_same<_Tp, _Tp> 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: 24952: template 24952: struct __is_void 24952: { 24952: enum { __value = 0 }; 24952: typedef __false_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_void 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: struct __is_integer 24952: { 24952: enum { __value = 0 }; 24952: typedef __false_type __type; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: # 184 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_integer 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: # 289 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 24952: template 24952: struct __is_floating 24952: { 24952: enum { __value = 0 }; 24952: typedef __false_type __type; 24952: }; 24952: 24952: 24952: template<> 24952: struct __is_floating 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_floating 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_floating 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: # 366 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 24952: template 24952: struct __is_pointer 24952: { 24952: enum { __value = 0 }; 24952: typedef __false_type __type; 24952: }; 24952: 24952: template 24952: struct __is_pointer<_Tp*> 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: struct __is_arithmetic 24952: : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > 24952: { }; 24952: 24952: 24952: 24952: 24952: template 24952: struct __is_scalar 24952: : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > 24952: { }; 24952: 24952: 24952: 24952: 24952: template 24952: struct __is_char 24952: { 24952: enum { __value = 0 }; 24952: typedef __false_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_char 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: 24952: template<> 24952: struct __is_char 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: 24952: template 24952: struct __is_byte 24952: { 24952: enum { __value = 0 }; 24952: typedef __false_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_byte 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_byte 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template<> 24952: struct __is_byte 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: 24952: enum class byte : unsigned char; 24952: 24952: template<> 24952: struct __is_byte 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: # 470 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 24952: template struct iterator_traits; 24952: 24952: 24952: template 24952: struct __is_nonvolatile_trivially_copyable 24952: { 24952: enum { __value = __is_trivially_copyable(_Tp) }; 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: struct __is_nonvolatile_trivially_copyable 24952: { 24952: enum { __value = 0 }; 24952: }; 24952: 24952: 24952: template 24952: struct __memcpyable 24952: { 24952: enum { __value = 0 }; 24952: }; 24952: 24952: template 24952: struct __memcpyable<_Tp*, _Tp*> 24952: : __is_nonvolatile_trivially_copyable<_Tp> 24952: { }; 24952: 24952: template 24952: struct __memcpyable<_Tp*, const _Tp*> 24952: : __is_nonvolatile_trivially_copyable<_Tp> 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __memcmpable 24952: { 24952: enum { __value = 0 }; 24952: }; 24952: 24952: 24952: template 24952: struct __memcmpable<_Tp*, _Tp*> 24952: : __is_nonvolatile_trivially_copyable<_Tp> 24952: { }; 24952: 24952: template 24952: struct __memcmpable 24952: : __is_nonvolatile_trivially_copyable<_Tp> 24952: { }; 24952: 24952: template 24952: struct __memcmpable<_Tp*, const _Tp*> 24952: : __is_nonvolatile_trivially_copyable<_Tp> 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template::__value 24952: 24952: > 24952: struct __is_memcmp_ordered 24952: { 24952: static const bool __value = _Tp(-1) > _Tp(1); 24952: }; 24952: 24952: template 24952: struct __is_memcmp_ordered<_Tp, false> 24952: { 24952: static const bool __value = false; 24952: }; 24952: 24952: 24952: template 24952: struct __is_memcmp_ordered_with 24952: { 24952: static const bool __value = __is_memcmp_ordered<_Tp>::__value 24952: && __is_memcmp_ordered<_Up>::__value; 24952: }; 24952: 24952: template 24952: struct __is_memcmp_ordered_with<_Tp, _Up, false> 24952: { 24952: static const bool __value = false; 24952: }; 24952: # 579 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 24952: template<> 24952: struct __is_memcmp_ordered_with 24952: { static constexpr bool __value = true; }; 24952: 24952: template 24952: struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize> 24952: { static constexpr bool __value = false; }; 24952: 24952: template 24952: struct __is_memcmp_ordered_with 24952: { static constexpr bool __value = false; }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __is_move_iterator 24952: { 24952: enum { __value = 0 }; 24952: typedef __false_type __type; 24952: }; 24952: 24952: 24952: 24952: template 24952: 24952: inline _Iterator 24952: __miter_base(_Iterator __it) 24952: { return __it; } 24952: 24952: 24952: } 24952: } 24952: # 62 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 24952: # 1 "/usr/include/c++/13/ext/type_traits.h" 1 3 24952: # 32 "/usr/include/c++/13/ext/type_traits.h" 3 24952: 24952: # 33 "/usr/include/c++/13/ext/type_traits.h" 3 24952: 24952: 24952: 24952: 24952: extern "C++" { 24952: 24952: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: struct __enable_if 24952: { }; 24952: 24952: template 24952: struct __enable_if 24952: { typedef _Tp __type; }; 24952: 24952: 24952: 24952: template 24952: struct __conditional_type 24952: { typedef _Iftrue __type; }; 24952: 24952: template 24952: struct __conditional_type 24952: { typedef _Iffalse __type; }; 24952: 24952: 24952: 24952: template 24952: struct __add_unsigned 24952: { 24952: private: 24952: typedef __enable_if::__value, _Tp> __if_type; 24952: 24952: public: 24952: typedef typename __if_type::__type __type; 24952: }; 24952: 24952: template<> 24952: struct __add_unsigned 24952: { typedef unsigned char __type; }; 24952: 24952: template<> 24952: struct __add_unsigned 24952: { typedef unsigned char __type; }; 24952: 24952: template<> 24952: struct __add_unsigned 24952: { typedef unsigned short __type; }; 24952: 24952: template<> 24952: struct __add_unsigned 24952: { typedef unsigned int __type; }; 24952: 24952: template<> 24952: struct __add_unsigned 24952: { typedef unsigned long __type; }; 24952: 24952: template<> 24952: struct __add_unsigned 24952: { typedef unsigned long long __type; }; 24952: 24952: 24952: template<> 24952: struct __add_unsigned; 24952: 24952: template<> 24952: struct __add_unsigned; 24952: 24952: 24952: 24952: template 24952: struct __remove_unsigned 24952: { 24952: private: 24952: typedef __enable_if::__value, _Tp> __if_type; 24952: 24952: public: 24952: typedef typename __if_type::__type __type; 24952: }; 24952: 24952: template<> 24952: struct __remove_unsigned 24952: { typedef signed char __type; }; 24952: 24952: template<> 24952: struct __remove_unsigned 24952: { typedef signed char __type; }; 24952: 24952: template<> 24952: struct __remove_unsigned 24952: { typedef short __type; }; 24952: 24952: template<> 24952: struct __remove_unsigned 24952: { typedef int __type; }; 24952: 24952: template<> 24952: struct __remove_unsigned 24952: { typedef long __type; }; 24952: 24952: template<> 24952: struct __remove_unsigned 24952: { typedef long long __type; }; 24952: 24952: 24952: template<> 24952: struct __remove_unsigned; 24952: 24952: template<> 24952: struct __remove_unsigned; 24952: 24952: 24952: 24952: template 24952: constexpr 24952: inline bool 24952: __is_null_pointer(_Type* __ptr) 24952: { return __ptr == 0; } 24952: 24952: template 24952: constexpr 24952: inline bool 24952: __is_null_pointer(_Type) 24952: { return false; } 24952: 24952: 24952: constexpr bool 24952: __is_null_pointer(std::nullptr_t) 24952: { return true; } 24952: 24952: 24952: 24952: 24952: template::__value> 24952: struct __promote 24952: { typedef double __type; }; 24952: 24952: 24952: 24952: 24952: template 24952: struct __promote<_Tp, false> 24952: { }; 24952: 24952: template<> 24952: struct __promote 24952: { typedef long double __type; }; 24952: 24952: template<> 24952: struct __promote 24952: { typedef double __type; }; 24952: 24952: template<> 24952: struct __promote 24952: { typedef float __type; }; 24952: # 225 "/usr/include/c++/13/ext/type_traits.h" 3 24952: template 24952: using __promoted_t = decltype((typename __promote<_Tp>::__type(0) + ...)); 24952: 24952: 24952: 24952: template 24952: using __promote_2 = __promote<__promoted_t<_Tp, _Up>>; 24952: 24952: template 24952: using __promote_3 = __promote<__promoted_t<_Tp, _Up, _Vp>>; 24952: 24952: template 24952: using __promote_4 = __promote<__promoted_t<_Tp, _Up, _Vp, _Wp>>; 24952: # 269 "/usr/include/c++/13/ext/type_traits.h" 3 24952: 24952: } 24952: } 24952: # 63 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 24952: # 1 "/usr/include/c++/13/ext/numeric_traits.h" 1 3 24952: # 32 "/usr/include/c++/13/ext/numeric_traits.h" 3 24952: 24952: # 33 "/usr/include/c++/13/ext/numeric_traits.h" 3 24952: 24952: 24952: 24952: 24952: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 50 "/usr/include/c++/13/ext/numeric_traits.h" 3 24952: template 24952: struct __is_integer_nonstrict 24952: : public std::__is_integer<_Tp> 24952: { 24952: using std::__is_integer<_Tp>::__value; 24952: 24952: 24952: enum { __width = __value ? sizeof(_Tp) * 8 : 0 }; 24952: }; 24952: 24952: template 24952: struct __numeric_traits_integer 24952: { 24952: 24952: static_assert(__is_integer_nonstrict<_Value>::__value, 24952: "invalid specialization"); 24952: 24952: 24952: 24952: 24952: static const bool __is_signed = (_Value)(-1) < 0; 24952: static const int __digits 24952: = __is_integer_nonstrict<_Value>::__width - __is_signed; 24952: 24952: 24952: static const _Value __max = __is_signed 24952: ? (((((_Value)1 << (__digits - 1)) - 1) << 1) + 1) 24952: : ~(_Value)0; 24952: static const _Value __min = __is_signed ? -__max - 1 : (_Value)0; 24952: }; 24952: 24952: template 24952: const _Value __numeric_traits_integer<_Value>::__min; 24952: 24952: template 24952: const _Value __numeric_traits_integer<_Value>::__max; 24952: 24952: template 24952: const bool __numeric_traits_integer<_Value>::__is_signed; 24952: 24952: template 24952: const int __numeric_traits_integer<_Value>::__digits; 24952: # 137 "/usr/include/c++/13/ext/numeric_traits.h" 3 24952: template 24952: using __int_traits = __numeric_traits_integer<_Tp>; 24952: # 157 "/usr/include/c++/13/ext/numeric_traits.h" 3 24952: template 24952: struct __numeric_traits_floating 24952: { 24952: 24952: static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 53) * 643L / 2136); 24952: 24952: 24952: static const bool __is_signed = true; 24952: static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 15); 24952: static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 308); 24952: }; 24952: 24952: template 24952: const int __numeric_traits_floating<_Value>::__max_digits10; 24952: 24952: template 24952: const bool __numeric_traits_floating<_Value>::__is_signed; 24952: 24952: template 24952: const int __numeric_traits_floating<_Value>::__digits10; 24952: 24952: template 24952: const int __numeric_traits_floating<_Value>::__max_exponent10; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __numeric_traits 24952: : public __numeric_traits_integer<_Value> 24952: { }; 24952: 24952: template<> 24952: struct __numeric_traits 24952: : public __numeric_traits_floating 24952: { }; 24952: 24952: template<> 24952: struct __numeric_traits 24952: : public __numeric_traits_floating 24952: { }; 24952: 24952: template<> 24952: struct __numeric_traits 24952: : public __numeric_traits_floating 24952: { }; 24952: # 238 "/usr/include/c++/13/ext/numeric_traits.h" 3 24952: 24952: } 24952: # 64 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/stl_pair.h" 1 3 24952: # 62 "/usr/include/c++/13/bits/stl_pair.h" 3 24952: # 1 "/usr/include/c++/13/bits/utility.h" 1 3 24952: # 36 "/usr/include/c++/13/bits/utility.h" 3 24952: 24952: # 37 "/usr/include/c++/13/bits/utility.h" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: struct tuple_size; 24952: 24952: 24952: 24952: 24952: 24952: template::type, 24952: typename = typename enable_if::value>::type, 24952: size_t = tuple_size<_Tp>::value> 24952: using __enable_if_has_tuple_size = _Tp; 24952: 24952: template 24952: struct tuple_size> 24952: : public tuple_size<_Tp> { }; 24952: 24952: template 24952: struct tuple_size> 24952: : public tuple_size<_Tp> { }; 24952: 24952: template 24952: struct tuple_size> 24952: : public tuple_size<_Tp> { }; 24952: 24952: 24952: template 24952: inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value; 24952: 24952: 24952: 24952: template 24952: struct tuple_element; 24952: 24952: 24952: template 24952: using __tuple_element_t = typename tuple_element<__i, _Tp>::type; 24952: 24952: template 24952: struct tuple_element<__i, const _Tp> 24952: { 24952: using type = const __tuple_element_t<__i, _Tp>; 24952: }; 24952: 24952: template 24952: struct tuple_element<__i, volatile _Tp> 24952: { 24952: using type = volatile __tuple_element_t<__i, _Tp>; 24952: }; 24952: 24952: template 24952: struct tuple_element<__i, const volatile _Tp> 24952: { 24952: using type = const volatile __tuple_element_t<__i, _Tp>; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: constexpr size_t 24952: __find_uniq_type_in_pack() 24952: { 24952: constexpr size_t __sz = sizeof...(_Types); 24952: constexpr bool __found[__sz] = { __is_same(_Tp, _Types) ... }; 24952: size_t __n = __sz; 24952: for (size_t __i = 0; __i < __sz; ++__i) 24952: { 24952: if (__found[__i]) 24952: { 24952: if (__n < __sz) 24952: return __sz; 24952: __n = __i; 24952: } 24952: } 24952: return __n; 24952: } 24952: # 134 "/usr/include/c++/13/bits/utility.h" 3 24952: template 24952: using tuple_element_t = typename tuple_element<__i, _Tp>::type; 24952: 24952: 24952: 24952: 24952: template struct _Index_tuple { }; 24952: 24952: 24952: template 24952: struct _Build_index_tuple 24952: { 24952: # 154 "/usr/include/c++/13/bits/utility.h" 3 24952: using __type = _Index_tuple<__integer_pack(_Num)...>; 24952: 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct integer_sequence 24952: { 24952: 24952: 24952: 24952: typedef _Tp value_type; 24952: static constexpr size_t size() noexcept { return sizeof...(_Idx); } 24952: }; 24952: 24952: 24952: template 24952: using make_integer_sequence 24952: 24952: 24952: 24952: = integer_sequence<_Tp, __integer_pack(_Tp(_Num))...>; 24952: 24952: 24952: 24952: template 24952: using index_sequence = integer_sequence; 24952: 24952: 24952: template 24952: using make_index_sequence = make_integer_sequence; 24952: 24952: 24952: template 24952: using index_sequence_for = make_index_sequence; 24952: 24952: 24952: 24952: struct in_place_t { 24952: explicit in_place_t() = default; 24952: }; 24952: 24952: inline constexpr in_place_t in_place{}; 24952: 24952: template struct in_place_type_t 24952: { 24952: explicit in_place_type_t() = default; 24952: }; 24952: 24952: template 24952: inline constexpr in_place_type_t<_Tp> in_place_type{}; 24952: 24952: template struct in_place_index_t 24952: { 24952: explicit in_place_index_t() = default; 24952: }; 24952: 24952: template 24952: inline constexpr in_place_index_t<_Idx> in_place_index{}; 24952: 24952: template 24952: inline constexpr bool __is_in_place_type_v = false; 24952: 24952: template 24952: inline constexpr bool __is_in_place_type_v> = true; 24952: 24952: template 24952: using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; 24952: 24952: 24952: 24952: 24952: template 24952: struct _Nth_type 24952: { }; 24952: 24952: template 24952: struct _Nth_type<0, _Tp0, _Rest...> 24952: { using type = _Tp0; }; 24952: 24952: template 24952: struct _Nth_type<1, _Tp0, _Tp1, _Rest...> 24952: { using type = _Tp1; }; 24952: 24952: template 24952: struct _Nth_type<2, _Tp0, _Tp1, _Tp2, _Rest...> 24952: { using type = _Tp2; }; 24952: 24952: template 24952: 24952: 24952: 24952: struct _Nth_type<_Np, _Tp0, _Tp1, _Tp2, _Rest...> 24952: : _Nth_type<_Np - 3, _Rest...> 24952: { }; 24952: 24952: 24952: template 24952: struct _Nth_type<0, _Tp0, _Tp1, _Tp2, _Rest...> 24952: { using type = _Tp0; }; 24952: 24952: template 24952: struct _Nth_type<1, _Tp0, _Tp1, _Tp2, _Rest...> 24952: { using type = _Tp1; }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 63 "/usr/include/c++/13/bits/stl_pair.h" 2 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 80 "/usr/include/c++/13/bits/stl_pair.h" 3 24952: struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; 24952: 24952: 24952: inline constexpr piecewise_construct_t piecewise_construct = 24952: piecewise_construct_t(); 24952: 24952: 24952: 24952: 24952: template 24952: class tuple; 24952: 24952: template 24952: struct _Index_tuple; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _PCC 24952: { 24952: template 24952: static constexpr bool _ConstructiblePair() 24952: { 24952: return __and_, 24952: is_constructible<_T2, const _U2&>>::value; 24952: } 24952: 24952: template 24952: static constexpr bool _ImplicitlyConvertiblePair() 24952: { 24952: return __and_, 24952: is_convertible>::value; 24952: } 24952: 24952: template 24952: static constexpr bool _MoveConstructiblePair() 24952: { 24952: return __and_, 24952: is_constructible<_T2, _U2&&>>::value; 24952: } 24952: 24952: template 24952: static constexpr bool _ImplicitlyMoveConvertiblePair() 24952: { 24952: return __and_, 24952: is_convertible<_U2&&, _T2>>::value; 24952: } 24952: }; 24952: 24952: template 24952: struct _PCC 24952: { 24952: template 24952: static constexpr bool _ConstructiblePair() 24952: { 24952: return false; 24952: } 24952: 24952: template 24952: static constexpr bool _ImplicitlyConvertiblePair() 24952: { 24952: return false; 24952: } 24952: 24952: template 24952: static constexpr bool _MoveConstructiblePair() 24952: { 24952: return false; 24952: } 24952: 24952: template 24952: static constexpr bool _ImplicitlyMoveConvertiblePair() 24952: { 24952: return false; 24952: } 24952: }; 24952: 24952: 24952: 24952: template class __pair_base 24952: { 24952: 24952: template friend struct pair; 24952: __pair_base() = default; 24952: ~__pair_base() = default; 24952: __pair_base(const __pair_base&) = default; 24952: __pair_base& operator=(const __pair_base&) = delete; 24952: 24952: }; 24952: # 186 "/usr/include/c++/13/bits/stl_pair.h" 3 24952: template 24952: struct pair 24952: : public __pair_base<_T1, _T2> 24952: { 24952: typedef _T1 first_type; 24952: typedef _T2 second_type; 24952: 24952: _T1 first; 24952: _T2 second; 24952: 24952: 24952: constexpr pair(const pair&) = default; 24952: constexpr pair(pair&&) = default; 24952: 24952: template 24952: 24952: pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); 24952: 24952: 24952: void 24952: swap(pair& __p) 24952: noexcept(__and_<__is_nothrow_swappable<_T1>, 24952: __is_nothrow_swappable<_T2>>::value) 24952: { 24952: using std::swap; 24952: swap(first, __p.first); 24952: swap(second, __p.second); 24952: } 24952: # 234 "/usr/include/c++/13/bits/stl_pair.h" 3 24952: private: 24952: template 24952: 24952: pair(tuple<_Args1...>&, tuple<_Args2...>&, 24952: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); 24952: public: 24952: # 525 "/usr/include/c++/13/bits/stl_pair.h" 3 24952: template , 24952: __is_implicitly_default_constructible<_U2>> 24952: ::value, bool>::type = true> 24952: constexpr pair() 24952: : first(), second() { } 24952: 24952: template , 24952: is_default_constructible<_U2>, 24952: __not_< 24952: __and_<__is_implicitly_default_constructible<_U1>, 24952: __is_implicitly_default_constructible<_U2>>>> 24952: ::value, bool>::type = false> 24952: explicit constexpr pair() 24952: : first(), second() { } 24952: 24952: 24952: 24952: using _PCCP = _PCC; 24952: 24952: 24952: 24952: template() 24952: && _PCCP::template 24952: _ImplicitlyConvertiblePair<_U1, _U2>(), 24952: bool>::type=true> 24952: constexpr pair(const _T1& __a, const _T2& __b) 24952: : first(__a), second(__b) { } 24952: 24952: 24952: template() 24952: && !_PCCP::template 24952: _ImplicitlyConvertiblePair<_U1, _U2>(), 24952: bool>::type=false> 24952: explicit constexpr pair(const _T1& __a, const _T2& __b) 24952: : first(__a), second(__b) { } 24952: 24952: 24952: 24952: template 24952: using _PCCFP = _PCC::value 24952: || !is_same<_T2, _U2>::value, 24952: _T1, _T2>; 24952: 24952: 24952: template::template 24952: _ConstructiblePair<_U1, _U2>() 24952: && _PCCFP<_U1, _U2>::template 24952: _ImplicitlyConvertiblePair<_U1, _U2>(), 24952: bool>::type=true> 24952: constexpr pair(const pair<_U1, _U2>& __p) 24952: : first(__p.first), second(__p.second) 24952: { ; } 24952: 24952: template::template 24952: _ConstructiblePair<_U1, _U2>() 24952: && !_PCCFP<_U1, _U2>::template 24952: _ImplicitlyConvertiblePair<_U1, _U2>(), 24952: bool>::type=false> 24952: explicit constexpr pair(const pair<_U1, _U2>& __p) 24952: : first(__p.first), second(__p.second) 24952: { ; } 24952: # 609 "/usr/include/c++/13/bits/stl_pair.h" 3 24952: private: 24952: 24952: 24952: 24952: struct __zero_as_null_pointer_constant 24952: { 24952: __zero_as_null_pointer_constant(int __zero_as_null_pointer_constant::*) 24952: { } 24952: template::value>> 24952: __zero_as_null_pointer_constant(_Tp) = delete; 24952: }; 24952: 24952: public: 24952: 24952: 24952: 24952: 24952: template>, 24952: is_pointer<_T2>, 24952: is_constructible<_T1, _U1>, 24952: __not_>, 24952: is_convertible<_U1, _T1>>::value, 24952: bool> = true> 24952: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 24952: constexpr 24952: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 24952: : first(std::forward<_U1>(__x)), second(nullptr) 24952: { ; } 24952: 24952: template>, 24952: is_pointer<_T2>, 24952: is_constructible<_T1, _U1>, 24952: __not_>, 24952: __not_>>::value, 24952: bool> = false> 24952: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 24952: explicit constexpr 24952: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 24952: : first(std::forward<_U1>(__x)), second(nullptr) 24952: { ; } 24952: 24952: template, 24952: __not_>, 24952: is_constructible<_T2, _U2>, 24952: __not_>, 24952: is_convertible<_U2, _T2>>::value, 24952: bool> = true> 24952: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 24952: constexpr 24952: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 24952: : first(nullptr), second(std::forward<_U2>(__y)) 24952: { ; } 24952: 24952: template, 24952: __not_>, 24952: is_constructible<_T2, _U2>, 24952: __not_>, 24952: __not_>>::value, 24952: bool> = false> 24952: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 24952: explicit constexpr 24952: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 24952: : first(nullptr), second(std::forward<_U2>(__y)) 24952: { ; } 24952: 24952: 24952: 24952: template() 24952: && _PCCP::template 24952: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 24952: bool>::type=true> 24952: constexpr pair(_U1&& __x, _U2&& __y) 24952: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 24952: { ; } 24952: 24952: template() 24952: && !_PCCP::template 24952: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 24952: bool>::type=false> 24952: explicit constexpr pair(_U1&& __x, _U2&& __y) 24952: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 24952: { ; } 24952: 24952: 24952: template::template 24952: _MoveConstructiblePair<_U1, _U2>() 24952: && _PCCFP<_U1, _U2>::template 24952: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 24952: bool>::type=true> 24952: constexpr pair(pair<_U1, _U2>&& __p) 24952: : first(std::forward<_U1>(__p.first)), 24952: second(std::forward<_U2>(__p.second)) 24952: { ; } 24952: 24952: template::template 24952: _MoveConstructiblePair<_U1, _U2>() 24952: && !_PCCFP<_U1, _U2>::template 24952: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 24952: bool>::type=false> 24952: explicit constexpr pair(pair<_U1, _U2>&& __p) 24952: : first(std::forward<_U1>(__p.first)), 24952: second(std::forward<_U2>(__p.second)) 24952: { ; } 24952: 24952: 24952: 24952: pair& 24952: operator=(__conditional_t<__and_, 24952: is_copy_assignable<_T2>>::value, 24952: const pair&, const __nonesuch&> __p) 24952: { 24952: first = __p.first; 24952: second = __p.second; 24952: return *this; 24952: } 24952: 24952: pair& 24952: operator=(__conditional_t<__and_, 24952: is_move_assignable<_T2>>::value, 24952: pair&&, __nonesuch&&> __p) 24952: noexcept(__and_, 24952: is_nothrow_move_assignable<_T2>>::value) 24952: { 24952: first = std::forward(__p.first); 24952: second = std::forward(__p.second); 24952: return *this; 24952: } 24952: 24952: template 24952: typename enable_if<__and_, 24952: is_assignable<_T2&, const _U2&>>::value, 24952: pair&>::type 24952: operator=(const pair<_U1, _U2>& __p) 24952: { 24952: first = __p.first; 24952: second = __p.second; 24952: return *this; 24952: } 24952: 24952: template 24952: typename enable_if<__and_, 24952: is_assignable<_T2&, _U2&&>>::value, 24952: pair&>::type 24952: operator=(pair<_U1, _U2>&& __p) 24952: { 24952: first = std::forward<_U1>(__p.first); 24952: second = std::forward<_U2>(__p.second); 24952: return *this; 24952: } 24952: # 801 "/usr/include/c++/13/bits/stl_pair.h" 3 24952: }; 24952: 24952: 24952: 24952: 24952: template pair(_T1, _T2) -> pair<_T1, _T2>; 24952: 24952: 24952: 24952: template 24952: inline constexpr bool 24952: operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 24952: { return __x.first == __y.first && __x.second == __y.second; } 24952: # 833 "/usr/include/c++/13/bits/stl_pair.h" 3 24952: template 24952: inline constexpr bool 24952: operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 24952: { return __x.first < __y.first 24952: || (!(__y.first < __x.first) && __x.second < __y.second); } 24952: 24952: 24952: template 24952: inline constexpr bool 24952: operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 24952: { return !(__x == __y); } 24952: 24952: 24952: template 24952: inline constexpr bool 24952: operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 24952: { return __y < __x; } 24952: 24952: 24952: template 24952: inline constexpr bool 24952: operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 24952: { return !(__y < __x); } 24952: 24952: 24952: template 24952: inline constexpr bool 24952: operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 24952: { return !(__x < __y); } 24952: # 870 "/usr/include/c++/13/bits/stl_pair.h" 3 24952: template 24952: inline 24952: 24952: 24952: typename enable_if<__and_<__is_swappable<_T1>, 24952: __is_swappable<_T2>>::value>::type 24952: 24952: 24952: 24952: swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: # 893 "/usr/include/c++/13/bits/stl_pair.h" 3 24952: template 24952: typename enable_if, 24952: __is_swappable<_T2>>::value>::type 24952: swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; 24952: # 919 "/usr/include/c++/13/bits/stl_pair.h" 3 24952: template 24952: constexpr pair::__type, 24952: typename __decay_and_strip<_T2>::__type> 24952: make_pair(_T1&& __x, _T2&& __y) 24952: { 24952: typedef typename __decay_and_strip<_T1>::__type __ds_type1; 24952: typedef typename __decay_and_strip<_T2>::__type __ds_type2; 24952: typedef pair<__ds_type1, __ds_type2> __pair_type; 24952: return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); 24952: } 24952: # 942 "/usr/include/c++/13/bits/stl_pair.h" 3 24952: template 24952: struct __is_tuple_like_impl> : true_type 24952: { }; 24952: 24952: 24952: 24952: template 24952: struct tuple_size> 24952: : public integral_constant { }; 24952: 24952: 24952: template 24952: struct tuple_element<0, pair<_Tp1, _Tp2>> 24952: { typedef _Tp1 type; }; 24952: 24952: 24952: template 24952: struct tuple_element<1, pair<_Tp1, _Tp2>> 24952: { typedef _Tp2 type; }; 24952: 24952: 24952: template 24952: inline constexpr size_t tuple_size_v> = 2; 24952: 24952: template 24952: inline constexpr size_t tuple_size_v> = 2; 24952: 24952: template 24952: inline constexpr bool __is_pair = false; 24952: 24952: template 24952: inline constexpr bool __is_pair> = true; 24952: 24952: 24952: 24952: template 24952: struct __pair_get; 24952: 24952: template<> 24952: struct __pair_get<0> 24952: { 24952: template 24952: static constexpr _Tp1& 24952: __get(pair<_Tp1, _Tp2>& __pair) noexcept 24952: { return __pair.first; } 24952: 24952: template 24952: static constexpr _Tp1&& 24952: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 24952: { return std::forward<_Tp1>(__pair.first); } 24952: 24952: template 24952: static constexpr const _Tp1& 24952: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 24952: { return __pair.first; } 24952: 24952: template 24952: static constexpr const _Tp1&& 24952: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 24952: { return std::forward(__pair.first); } 24952: }; 24952: 24952: template<> 24952: struct __pair_get<1> 24952: { 24952: template 24952: static constexpr _Tp2& 24952: __get(pair<_Tp1, _Tp2>& __pair) noexcept 24952: { return __pair.second; } 24952: 24952: template 24952: static constexpr _Tp2&& 24952: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 24952: { return std::forward<_Tp2>(__pair.second); } 24952: 24952: template 24952: static constexpr const _Tp2& 24952: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 24952: { return __pair.second; } 24952: 24952: template 24952: static constexpr const _Tp2&& 24952: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 24952: { return std::forward(__pair.second); } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 24952: get(pair<_Tp1, _Tp2>& __in) noexcept 24952: { return __pair_get<_Int>::__get(__in); } 24952: 24952: template 24952: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 24952: get(pair<_Tp1, _Tp2>&& __in) noexcept 24952: { return __pair_get<_Int>::__move_get(std::move(__in)); } 24952: 24952: template 24952: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 24952: get(const pair<_Tp1, _Tp2>& __in) noexcept 24952: { return __pair_get<_Int>::__const_get(__in); } 24952: 24952: template 24952: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 24952: get(const pair<_Tp1, _Tp2>&& __in) noexcept 24952: { return __pair_get<_Int>::__const_move_get(std::move(__in)); } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: constexpr _Tp& 24952: get(pair<_Tp, _Up>& __p) noexcept 24952: { return __p.first; } 24952: 24952: template 24952: constexpr const _Tp& 24952: get(const pair<_Tp, _Up>& __p) noexcept 24952: { return __p.first; } 24952: 24952: template 24952: constexpr _Tp&& 24952: get(pair<_Tp, _Up>&& __p) noexcept 24952: { return std::move(__p.first); } 24952: 24952: template 24952: constexpr const _Tp&& 24952: get(const pair<_Tp, _Up>&& __p) noexcept 24952: { return std::move(__p.first); } 24952: 24952: template 24952: constexpr _Tp& 24952: get(pair<_Up, _Tp>& __p) noexcept 24952: { return __p.second; } 24952: 24952: template 24952: constexpr const _Tp& 24952: get(const pair<_Up, _Tp>& __p) noexcept 24952: { return __p.second; } 24952: 24952: template 24952: constexpr _Tp&& 24952: get(pair<_Up, _Tp>&& __p) noexcept 24952: { return std::move(__p.second); } 24952: 24952: template 24952: constexpr const _Tp&& 24952: get(const pair<_Up, _Tp>&& __p) noexcept 24952: { return std::move(__p.second); } 24952: # 1118 "/usr/include/c++/13/bits/stl_pair.h" 3 24952: 24952: } 24952: # 65 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 1 3 24952: # 62 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 24952: 24952: # 63 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 24952: # 74 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 93 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 24952: struct input_iterator_tag { }; 24952: 24952: 24952: struct output_iterator_tag { }; 24952: 24952: 24952: struct forward_iterator_tag : public input_iterator_tag { }; 24952: 24952: 24952: 24952: struct bidirectional_iterator_tag : public forward_iterator_tag { }; 24952: 24952: 24952: 24952: struct random_access_iterator_tag : public bidirectional_iterator_tag { }; 24952: # 125 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 24952: template 24952: struct [[__deprecated__]] iterator 24952: { 24952: 24952: typedef _Category iterator_category; 24952: 24952: typedef _Tp value_type; 24952: 24952: typedef _Distance difference_type; 24952: 24952: typedef _Pointer pointer; 24952: 24952: typedef _Reference reference; 24952: }; 24952: # 149 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 24952: template 24952: struct iterator_traits; 24952: 24952: 24952: 24952: 24952: template> 24952: struct __iterator_traits { }; 24952: 24952: 24952: 24952: template 24952: struct __iterator_traits<_Iterator, 24952: __void_t> 24952: { 24952: typedef typename _Iterator::iterator_category iterator_category; 24952: typedef typename _Iterator::value_type value_type; 24952: typedef typename _Iterator::difference_type difference_type; 24952: typedef typename _Iterator::pointer pointer; 24952: typedef typename _Iterator::reference reference; 24952: }; 24952: 24952: 24952: template 24952: struct iterator_traits 24952: : public __iterator_traits<_Iterator> { }; 24952: # 209 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 24952: template 24952: struct iterator_traits<_Tp*> 24952: { 24952: typedef random_access_iterator_tag iterator_category; 24952: typedef _Tp value_type; 24952: typedef ptrdiff_t difference_type; 24952: typedef _Tp* pointer; 24952: typedef _Tp& reference; 24952: }; 24952: 24952: 24952: template 24952: struct iterator_traits 24952: { 24952: typedef random_access_iterator_tag iterator_category; 24952: typedef _Tp value_type; 24952: typedef ptrdiff_t difference_type; 24952: typedef const _Tp* pointer; 24952: typedef const _Tp& reference; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: __attribute__((__always_inline__)) 24952: inline constexpr 24952: typename iterator_traits<_Iter>::iterator_category 24952: __iterator_category(const _Iter&) 24952: { return typename iterator_traits<_Iter>::iterator_category(); } 24952: 24952: 24952: 24952: 24952: template 24952: using __iter_category_t 24952: = typename iterator_traits<_Iter>::iterator_category; 24952: 24952: template 24952: using _RequireInputIter = 24952: __enable_if_t, 24952: input_iterator_tag>::value>; 24952: 24952: template> 24952: struct __is_random_access_iter 24952: : is_base_of 24952: { 24952: typedef is_base_of _Base; 24952: enum { __value = _Base::value }; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 66 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 1 3 24952: # 62 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 3 24952: 24952: # 63 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 3 24952: 24952: # 1 "/usr/include/c++/13/bits/concept_check.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/concept_check.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/concept_check.h" 3 24952: # 65 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 2 3 24952: # 1 "/usr/include/c++/13/debug/assertions.h" 1 3 24952: # 66 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 2 3 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: template struct _List_iterator; 24952: template struct _List_const_iterator; 24952: 24952: 24952: template 24952: inline constexpr 24952: typename iterator_traits<_InputIterator>::difference_type 24952: __distance(_InputIterator __first, _InputIterator __last, 24952: input_iterator_tag) 24952: { 24952: 24952: 24952: 24952: typename iterator_traits<_InputIterator>::difference_type __n = 0; 24952: while (__first != __last) 24952: { 24952: ++__first; 24952: ++__n; 24952: } 24952: return __n; 24952: } 24952: 24952: template 24952: __attribute__((__always_inline__)) 24952: inline constexpr 24952: typename iterator_traits<_RandomAccessIterator>::difference_type 24952: __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: random_access_iterator_tag) 24952: { 24952: 24952: 24952: 24952: return __last - __first; 24952: } 24952: 24952: 24952: 24952: template 24952: ptrdiff_t 24952: __distance(std::_List_iterator<_Tp>, 24952: std::_List_iterator<_Tp>, 24952: input_iterator_tag); 24952: 24952: template 24952: ptrdiff_t 24952: __distance(std::_List_const_iterator<_Tp>, 24952: std::_List_const_iterator<_Tp>, 24952: input_iterator_tag); 24952: 24952: 24952: 24952: 24952: template 24952: void 24952: __distance(_OutputIterator, _OutputIterator, output_iterator_tag) = delete; 24952: # 144 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 3 24952: template 24952: [[__nodiscard__]] __attribute__((__always_inline__)) 24952: inline constexpr 24952: typename iterator_traits<_InputIterator>::difference_type 24952: distance(_InputIterator __first, _InputIterator __last) 24952: { 24952: 24952: return std::__distance(__first, __last, 24952: std::__iterator_category(__first)); 24952: } 24952: 24952: template 24952: inline constexpr void 24952: __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) 24952: { 24952: 24952: 24952: do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) __builtin_unreachable(); } while (false); 24952: while (__n--) 24952: ++__i; 24952: } 24952: 24952: template 24952: inline constexpr void 24952: __advance(_BidirectionalIterator& __i, _Distance __n, 24952: bidirectional_iterator_tag) 24952: { 24952: 24952: 24952: 24952: if (__n > 0) 24952: while (__n--) 24952: ++__i; 24952: else 24952: while (__n++) 24952: --__i; 24952: } 24952: 24952: template 24952: inline constexpr void 24952: __advance(_RandomAccessIterator& __i, _Distance __n, 24952: random_access_iterator_tag) 24952: { 24952: 24952: 24952: 24952: if (__builtin_constant_p(__n) && __n == 1) 24952: ++__i; 24952: else if (__builtin_constant_p(__n) && __n == -1) 24952: --__i; 24952: else 24952: __i += __n; 24952: } 24952: 24952: 24952: 24952: template 24952: void 24952: __advance(_OutputIterator&, _Distance, output_iterator_tag) = delete; 24952: # 217 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 3 24952: template 24952: __attribute__((__always_inline__)) 24952: inline constexpr void 24952: advance(_InputIterator& __i, _Distance __n) 24952: { 24952: 24952: typename iterator_traits<_InputIterator>::difference_type __d = __n; 24952: std::__advance(__i, __d, std::__iterator_category(__i)); 24952: } 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] [[__gnu__::__always_inline__]] 24952: inline constexpr _InputIterator 24952: next(_InputIterator __x, typename 24952: iterator_traits<_InputIterator>::difference_type __n = 1) 24952: { 24952: 24952: 24952: std::advance(__x, __n); 24952: return __x; 24952: } 24952: 24952: template 24952: [[__nodiscard__]] [[__gnu__::__always_inline__]] 24952: inline constexpr _BidirectionalIterator 24952: prev(_BidirectionalIterator __x, typename 24952: iterator_traits<_BidirectionalIterator>::difference_type __n = 1) 24952: { 24952: 24952: 24952: 24952: std::advance(__x, -__n); 24952: return __x; 24952: } 24952: 24952: 24952: 24952: 24952: } 24952: # 67 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/stl_iterator.h" 1 3 24952: # 67 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: # 1 "/usr/include/c++/13/bits/ptr_traits.h" 1 3 24952: # 49 "/usr/include/c++/13/bits/ptr_traits.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: class __undefined; 24952: 24952: 24952: 24952: template 24952: struct __get_first_arg 24952: { using type = __undefined; }; 24952: 24952: template class _SomeTemplate, typename _Tp, 24952: typename... _Types> 24952: struct __get_first_arg<_SomeTemplate<_Tp, _Types...>> 24952: { using type = _Tp; }; 24952: 24952: 24952: 24952: template 24952: struct __replace_first_arg 24952: { }; 24952: 24952: template class _SomeTemplate, typename _Up, 24952: typename _Tp, typename... _Types> 24952: struct __replace_first_arg<_SomeTemplate<_Tp, _Types...>, _Up> 24952: { using type = _SomeTemplate<_Up, _Types...>; }; 24952: 24952: 24952: template 24952: struct __ptr_traits_elem : __get_first_arg<_Ptr> 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __ptr_traits_elem<_Ptr, __void_t> 24952: { using type = typename _Ptr::element_type; }; 24952: 24952: 24952: template 24952: using __ptr_traits_elem_t = typename __ptr_traits_elem<_Ptr>::type; 24952: 24952: 24952: 24952: 24952: template::value> 24952: struct __ptr_traits_ptr_to 24952: { 24952: using pointer = _Ptr; 24952: using element_type = _Elt; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: static pointer 24952: pointer_to(element_type& __r) 24952: 24952: 24952: 24952: 24952: 24952: { return pointer::pointer_to(__r); } 24952: }; 24952: 24952: 24952: template 24952: struct __ptr_traits_ptr_to<_Ptr, _Elt, true> 24952: { }; 24952: 24952: 24952: template 24952: struct __ptr_traits_ptr_to<_Tp*, _Tp, false> 24952: { 24952: using pointer = _Tp*; 24952: using element_type = _Tp; 24952: 24952: 24952: 24952: 24952: 24952: 24952: static pointer 24952: pointer_to(element_type& __r) noexcept 24952: { return std::addressof(__r); } 24952: }; 24952: 24952: template 24952: struct __ptr_traits_impl : __ptr_traits_ptr_to<_Ptr, _Elt> 24952: { 24952: private: 24952: template 24952: using __diff_t = typename _Tp::difference_type; 24952: 24952: template 24952: using __rebind = __type_identity>; 24952: 24952: public: 24952: 24952: using pointer = _Ptr; 24952: 24952: 24952: using element_type = _Elt; 24952: 24952: 24952: using difference_type = __detected_or_t; 24952: 24952: 24952: template 24952: using rebind = typename __detected_or_t<__replace_first_arg<_Ptr, _Up>, 24952: __rebind, _Ptr, _Up>::type; 24952: }; 24952: 24952: 24952: 24952: template 24952: struct __ptr_traits_impl<_Ptr, __undefined> 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct pointer_traits : __ptr_traits_impl<_Ptr, __ptr_traits_elem_t<_Ptr>> 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct pointer_traits<_Tp*> : __ptr_traits_ptr_to<_Tp*, _Tp> 24952: { 24952: 24952: typedef _Tp* pointer; 24952: 24952: typedef _Tp element_type; 24952: 24952: typedef ptrdiff_t difference_type; 24952: 24952: template using rebind = _Up*; 24952: }; 24952: 24952: 24952: template 24952: using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; 24952: 24952: template 24952: constexpr _Tp* 24952: __to_address(_Tp* __ptr) noexcept 24952: { 24952: static_assert(!std::is_function<_Tp>::value, "not a function pointer"); 24952: return __ptr; 24952: } 24952: 24952: 24952: template 24952: constexpr typename std::pointer_traits<_Ptr>::element_type* 24952: __to_address(const _Ptr& __ptr) 24952: { return std::__to_address(__ptr.operator->()); } 24952: # 266 "/usr/include/c++/13/bits/ptr_traits.h" 3 24952: 24952: } 24952: # 68 "/usr/include/c++/13/bits/stl_iterator.h" 2 3 24952: # 88 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 113 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: 24952: # 113 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: # 135 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: class reverse_iterator 24952: : public iterator::iterator_category, 24952: typename iterator_traits<_Iterator>::value_type, 24952: typename iterator_traits<_Iterator>::difference_type, 24952: typename iterator_traits<_Iterator>::pointer, 24952: typename iterator_traits<_Iterator>::reference> 24952: { 24952: template 24952: friend class reverse_iterator; 24952: # 154 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: protected: 24952: _Iterator current; 24952: 24952: typedef iterator_traits<_Iterator> __traits_type; 24952: 24952: public: 24952: typedef _Iterator iterator_type; 24952: typedef typename __traits_type::pointer pointer; 24952: 24952: typedef typename __traits_type::difference_type difference_type; 24952: typedef typename __traits_type::reference reference; 24952: # 185 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: constexpr 24952: reverse_iterator() 24952: noexcept(noexcept(_Iterator())) 24952: : current() 24952: { } 24952: 24952: 24952: 24952: 24952: explicit constexpr 24952: reverse_iterator(iterator_type __x) 24952: noexcept(noexcept(_Iterator(__x))) 24952: : current(__x) 24952: { } 24952: 24952: 24952: 24952: 24952: constexpr 24952: reverse_iterator(const reverse_iterator& __x) 24952: noexcept(noexcept(_Iterator(__x.current))) 24952: : current(__x.current) 24952: { } 24952: 24952: 24952: reverse_iterator& operator=(const reverse_iterator&) = default; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: 24952: 24952: constexpr 24952: reverse_iterator(const reverse_iterator<_Iter>& __x) 24952: noexcept(noexcept(_Iterator(__x.current))) 24952: : current(__x.current) 24952: { } 24952: 24952: 24952: template 24952: 24952: 24952: 24952: 24952: constexpr 24952: reverse_iterator& 24952: operator=(const reverse_iterator<_Iter>& __x) 24952: noexcept(noexcept(current = __x.current)) 24952: { 24952: current = __x.current; 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: constexpr iterator_type 24952: base() const 24952: noexcept(noexcept(_Iterator(current))) 24952: { return current; } 24952: # 262 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: [[__nodiscard__]] 24952: constexpr reference 24952: operator*() const 24952: { 24952: _Iterator __tmp = current; 24952: return *--__tmp; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: constexpr pointer 24952: operator->() const 24952: 24952: 24952: 24952: 24952: { 24952: 24952: 24952: _Iterator __tmp = current; 24952: --__tmp; 24952: return _S_to_pointer(__tmp); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: constexpr reverse_iterator& 24952: operator++() 24952: { 24952: --current; 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: constexpr reverse_iterator 24952: operator++(int) 24952: { 24952: reverse_iterator __tmp = *this; 24952: --current; 24952: return __tmp; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: constexpr reverse_iterator& 24952: operator--() 24952: { 24952: ++current; 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: constexpr reverse_iterator 24952: operator--(int) 24952: { 24952: reverse_iterator __tmp = *this; 24952: ++current; 24952: return __tmp; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: constexpr reverse_iterator 24952: operator+(difference_type __n) const 24952: { return reverse_iterator(current - __n); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: constexpr reverse_iterator& 24952: operator+=(difference_type __n) 24952: { 24952: current -= __n; 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: constexpr reverse_iterator 24952: operator-(difference_type __n) const 24952: { return reverse_iterator(current + __n); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: constexpr reverse_iterator& 24952: operator-=(difference_type __n) 24952: { 24952: current += __n; 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: constexpr reference 24952: operator[](difference_type __n) const 24952: { return *(*this + __n); } 24952: # 422 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: private: 24952: template 24952: static constexpr _Tp* 24952: _S_to_pointer(_Tp* __p) 24952: { return __p; } 24952: 24952: template 24952: static constexpr pointer 24952: _S_to_pointer(_Tp __t) 24952: { return __t.operator->(); } 24952: }; 24952: # 445 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator==(const reverse_iterator<_Iterator>& __x, 24952: const reverse_iterator<_Iterator>& __y) 24952: { return __x.base() == __y.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator<(const reverse_iterator<_Iterator>& __x, 24952: const reverse_iterator<_Iterator>& __y) 24952: { return __y.base() < __x.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator!=(const reverse_iterator<_Iterator>& __x, 24952: const reverse_iterator<_Iterator>& __y) 24952: { return !(__x == __y); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator>(const reverse_iterator<_Iterator>& __x, 24952: const reverse_iterator<_Iterator>& __y) 24952: { return __y < __x; } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator<=(const reverse_iterator<_Iterator>& __x, 24952: const reverse_iterator<_Iterator>& __y) 24952: { return !(__y < __x); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator>=(const reverse_iterator<_Iterator>& __x, 24952: const reverse_iterator<_Iterator>& __y) 24952: { return !(__x < __y); } 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator==(const reverse_iterator<_IteratorL>& __x, 24952: const reverse_iterator<_IteratorR>& __y) 24952: { return __x.base() == __y.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator<(const reverse_iterator<_IteratorL>& __x, 24952: const reverse_iterator<_IteratorR>& __y) 24952: { return __x.base() > __y.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator!=(const reverse_iterator<_IteratorL>& __x, 24952: const reverse_iterator<_IteratorR>& __y) 24952: { return __x.base() != __y.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator>(const reverse_iterator<_IteratorL>& __x, 24952: const reverse_iterator<_IteratorR>& __y) 24952: { return __x.base() < __y.base(); } 24952: 24952: template 24952: inline constexpr bool 24952: operator<=(const reverse_iterator<_IteratorL>& __x, 24952: const reverse_iterator<_IteratorR>& __y) 24952: { return __x.base() >= __y.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator>=(const reverse_iterator<_IteratorL>& __x, 24952: const reverse_iterator<_IteratorR>& __y) 24952: { return __x.base() <= __y.base(); } 24952: # 622 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr auto 24952: operator-(const reverse_iterator<_IteratorL>& __x, 24952: const reverse_iterator<_IteratorR>& __y) 24952: -> decltype(__y.base() - __x.base()) 24952: { return __y.base() - __x.base(); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr reverse_iterator<_Iterator> 24952: operator+(typename reverse_iterator<_Iterator>::difference_type __n, 24952: const reverse_iterator<_Iterator>& __x) 24952: { return reverse_iterator<_Iterator>(__x.base() - __n); } 24952: 24952: 24952: 24952: template 24952: inline constexpr reverse_iterator<_Iterator> 24952: __make_reverse_iterator(_Iterator __i) 24952: { return reverse_iterator<_Iterator>(__i); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr reverse_iterator<_Iterator> 24952: make_reverse_iterator(_Iterator __i) 24952: { return reverse_iterator<_Iterator>(__i); } 24952: # 666 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: 24952: auto 24952: __niter_base(reverse_iterator<_Iterator> __it) 24952: -> decltype(__make_reverse_iterator(__niter_base(__it.base()))) 24952: { return __make_reverse_iterator(__niter_base(__it.base())); } 24952: 24952: template 24952: struct __is_move_iterator > 24952: : __is_move_iterator<_Iterator> 24952: { }; 24952: 24952: template 24952: 24952: auto 24952: __miter_base(reverse_iterator<_Iterator> __it) 24952: -> decltype(__make_reverse_iterator(__miter_base(__it.base()))) 24952: { return __make_reverse_iterator(__miter_base(__it.base())); } 24952: # 697 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: class back_insert_iterator 24952: : public iterator 24952: { 24952: protected: 24952: _Container* container; 24952: 24952: public: 24952: 24952: typedef _Container container_type; 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: back_insert_iterator(_Container& __x) 24952: : container(std::__addressof(__x)) { } 24952: # 735 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: 24952: back_insert_iterator& 24952: operator=(const typename _Container::value_type& __value) 24952: { 24952: container->push_back(__value); 24952: return *this; 24952: } 24952: 24952: 24952: back_insert_iterator& 24952: operator=(typename _Container::value_type&& __value) 24952: { 24952: container->push_back(std::move(__value)); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: back_insert_iterator& 24952: operator*() 24952: { return *this; } 24952: 24952: 24952: 24952: back_insert_iterator& 24952: operator++() 24952: { return *this; } 24952: 24952: 24952: 24952: back_insert_iterator 24952: operator++(int) 24952: { return *this; } 24952: }; 24952: # 782 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline back_insert_iterator<_Container> 24952: back_inserter(_Container& __x) 24952: { return back_insert_iterator<_Container>(__x); } 24952: # 798 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: class front_insert_iterator 24952: : public iterator 24952: { 24952: protected: 24952: _Container* container; 24952: 24952: public: 24952: 24952: typedef _Container container_type; 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: front_insert_iterator(_Container& __x) 24952: : container(std::__addressof(__x)) { } 24952: # 836 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: 24952: front_insert_iterator& 24952: operator=(const typename _Container::value_type& __value) 24952: { 24952: container->push_front(__value); 24952: return *this; 24952: } 24952: 24952: 24952: front_insert_iterator& 24952: operator=(typename _Container::value_type&& __value) 24952: { 24952: container->push_front(std::move(__value)); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: front_insert_iterator& 24952: operator*() 24952: { return *this; } 24952: 24952: 24952: 24952: front_insert_iterator& 24952: operator++() 24952: { return *this; } 24952: 24952: 24952: 24952: front_insert_iterator 24952: operator++(int) 24952: { return *this; } 24952: }; 24952: # 883 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline front_insert_iterator<_Container> 24952: front_inserter(_Container& __x) 24952: { return front_insert_iterator<_Container>(__x); } 24952: # 903 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: class insert_iterator 24952: : public iterator 24952: { 24952: 24952: 24952: 24952: typedef typename _Container::iterator _Iter; 24952: 24952: protected: 24952: _Container* container; 24952: _Iter iter; 24952: 24952: public: 24952: 24952: typedef _Container container_type; 24952: # 928 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: 24952: insert_iterator(_Container& __x, _Iter __i) 24952: : container(std::__addressof(__x)), iter(__i) {} 24952: # 964 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: 24952: insert_iterator& 24952: operator=(const typename _Container::value_type& __value) 24952: { 24952: iter = container->insert(iter, __value); 24952: ++iter; 24952: return *this; 24952: } 24952: 24952: 24952: insert_iterator& 24952: operator=(typename _Container::value_type&& __value) 24952: { 24952: iter = container->insert(iter, std::move(__value)); 24952: ++iter; 24952: return *this; 24952: } 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: insert_iterator& 24952: operator*() 24952: { return *this; } 24952: 24952: 24952: 24952: insert_iterator& 24952: operator++() 24952: { return *this; } 24952: 24952: 24952: 24952: insert_iterator& 24952: operator++(int) 24952: { return *this; } 24952: }; 24952: 24952: #pragma GCC diagnostic pop 24952: # 1023 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline insert_iterator<_Container> 24952: inserter(_Container& __x, typename _Container::iterator __i) 24952: { return insert_iterator<_Container>(__x, __i); } 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 1046 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: class __normal_iterator 24952: { 24952: protected: 24952: _Iterator _M_current; 24952: 24952: typedef std::iterator_traits<_Iterator> __traits_type; 24952: 24952: 24952: template 24952: using __convertible_from 24952: = std::__enable_if_t::value>; 24952: 24952: 24952: public: 24952: typedef _Iterator iterator_type; 24952: typedef typename __traits_type::iterator_category iterator_category; 24952: typedef typename __traits_type::value_type value_type; 24952: typedef typename __traits_type::difference_type difference_type; 24952: typedef typename __traits_type::reference reference; 24952: typedef typename __traits_type::pointer pointer; 24952: 24952: 24952: 24952: 24952: 24952: constexpr __normal_iterator() noexcept 24952: : _M_current(_Iterator()) { } 24952: 24952: explicit 24952: __normal_iterator(const _Iterator& __i) noexcept 24952: : _M_current(__i) { } 24952: 24952: 24952: 24952: template> 24952: 24952: __normal_iterator(const __normal_iterator<_Iter, _Container>& __i) 24952: noexcept 24952: # 1094 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: : _M_current(__i.base()) { } 24952: 24952: 24952: 24952: reference 24952: operator*() const noexcept 24952: { return *_M_current; } 24952: 24952: 24952: pointer 24952: operator->() const noexcept 24952: { return _M_current; } 24952: 24952: 24952: __normal_iterator& 24952: operator++() noexcept 24952: { 24952: ++_M_current; 24952: return *this; 24952: } 24952: 24952: 24952: __normal_iterator 24952: operator++(int) noexcept 24952: { return __normal_iterator(_M_current++); } 24952: 24952: 24952: 24952: __normal_iterator& 24952: operator--() noexcept 24952: { 24952: --_M_current; 24952: return *this; 24952: } 24952: 24952: 24952: __normal_iterator 24952: operator--(int) noexcept 24952: { return __normal_iterator(_M_current--); } 24952: 24952: 24952: 24952: reference 24952: operator[](difference_type __n) const noexcept 24952: { return _M_current[__n]; } 24952: 24952: 24952: __normal_iterator& 24952: operator+=(difference_type __n) noexcept 24952: { _M_current += __n; return *this; } 24952: 24952: 24952: __normal_iterator 24952: operator+(difference_type __n) const noexcept 24952: { return __normal_iterator(_M_current + __n); } 24952: 24952: 24952: __normal_iterator& 24952: operator-=(difference_type __n) noexcept 24952: { _M_current -= __n; return *this; } 24952: 24952: 24952: __normal_iterator 24952: operator-(difference_type __n) const noexcept 24952: { return __normal_iterator(_M_current - __n); } 24952: 24952: 24952: const _Iterator& 24952: base() const noexcept 24952: { return _M_current; } 24952: }; 24952: # 1214 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, 24952: const __normal_iterator<_IteratorR, _Container>& __rhs) 24952: noexcept 24952: { return __lhs.base() == __rhs.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(const __normal_iterator<_Iterator, _Container>& __lhs, 24952: const __normal_iterator<_Iterator, _Container>& __rhs) 24952: noexcept 24952: { return __lhs.base() == __rhs.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, 24952: const __normal_iterator<_IteratorR, _Container>& __rhs) 24952: noexcept 24952: { return __lhs.base() != __rhs.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, 24952: const __normal_iterator<_Iterator, _Container>& __rhs) 24952: noexcept 24952: { return __lhs.base() != __rhs.base(); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, 24952: const __normal_iterator<_IteratorR, _Container>& __rhs) 24952: noexcept 24952: { return __lhs.base() < __rhs.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<(const __normal_iterator<_Iterator, _Container>& __lhs, 24952: const __normal_iterator<_Iterator, _Container>& __rhs) 24952: noexcept 24952: { return __lhs.base() < __rhs.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, 24952: const __normal_iterator<_IteratorR, _Container>& __rhs) 24952: noexcept 24952: { return __lhs.base() > __rhs.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>(const __normal_iterator<_Iterator, _Container>& __lhs, 24952: const __normal_iterator<_Iterator, _Container>& __rhs) 24952: noexcept 24952: { return __lhs.base() > __rhs.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, 24952: const __normal_iterator<_IteratorR, _Container>& __rhs) 24952: noexcept 24952: { return __lhs.base() <= __rhs.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, 24952: const __normal_iterator<_Iterator, _Container>& __rhs) 24952: noexcept 24952: { return __lhs.base() <= __rhs.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, 24952: const __normal_iterator<_IteratorR, _Container>& __rhs) 24952: noexcept 24952: { return __lhs.base() >= __rhs.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, 24952: const __normal_iterator<_Iterator, _Container>& __rhs) 24952: noexcept 24952: { return __lhs.base() >= __rhs.base(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: 24952: [[__nodiscard__]] 24952: inline auto 24952: operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, 24952: const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept 24952: -> decltype(__lhs.base() - __rhs.base()) 24952: 24952: 24952: 24952: 24952: 24952: { return __lhs.base() - __rhs.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline typename __normal_iterator<_Iterator, _Container>::difference_type 24952: operator-(const __normal_iterator<_Iterator, _Container>& __lhs, 24952: const __normal_iterator<_Iterator, _Container>& __rhs) 24952: noexcept 24952: { return __lhs.base() - __rhs.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline __normal_iterator<_Iterator, _Container> 24952: operator+(typename __normal_iterator<_Iterator, _Container>::difference_type 24952: __n, const __normal_iterator<_Iterator, _Container>& __i) 24952: noexcept 24952: { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } 24952: 24952: 24952: } 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template 24952: 24952: _Iterator 24952: __niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) 24952: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 24952: { return __it.base(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: constexpr auto 24952: __to_address(const __gnu_cxx::__normal_iterator<_Iterator, 24952: _Container>& __it) noexcept 24952: -> decltype(std::__to_address(__it.base())) 24952: { return std::__to_address(__it.base()); } 24952: # 1421 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: namespace __detail 24952: { 24952: # 1437 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: } 24952: # 1448 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: class move_iterator 24952: 24952: 24952: 24952: { 24952: _Iterator _M_current; 24952: 24952: using __traits_type = iterator_traits<_Iterator>; 24952: 24952: using __base_ref = typename __traits_type::reference; 24952: 24952: 24952: template 24952: friend class move_iterator; 24952: # 1487 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: public: 24952: using iterator_type = _Iterator; 24952: # 1501 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: typedef typename __traits_type::iterator_category iterator_category; 24952: typedef typename __traits_type::value_type value_type; 24952: typedef typename __traits_type::difference_type difference_type; 24952: 24952: typedef _Iterator pointer; 24952: 24952: 24952: using reference 24952: = __conditional_t::value, 24952: typename remove_reference<__base_ref>::type&&, 24952: __base_ref>; 24952: 24952: 24952: constexpr 24952: move_iterator() 24952: : _M_current() { } 24952: 24952: explicit constexpr 24952: move_iterator(iterator_type __i) 24952: : _M_current(std::move(__i)) { } 24952: 24952: template 24952: 24952: 24952: 24952: constexpr 24952: move_iterator(const move_iterator<_Iter>& __i) 24952: : _M_current(__i._M_current) { } 24952: 24952: template 24952: 24952: 24952: 24952: 24952: constexpr 24952: move_iterator& operator=(const move_iterator<_Iter>& __i) 24952: { 24952: _M_current = __i._M_current; 24952: return *this; 24952: } 24952: 24952: 24952: [[__nodiscard__]] 24952: constexpr iterator_type 24952: base() const 24952: { return _M_current; } 24952: # 1559 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: [[__nodiscard__]] 24952: constexpr reference 24952: operator*() const 24952: 24952: 24952: 24952: { return static_cast(*_M_current); } 24952: 24952: 24952: [[__nodiscard__]] 24952: constexpr pointer 24952: operator->() const 24952: { return _M_current; } 24952: 24952: constexpr move_iterator& 24952: operator++() 24952: { 24952: ++_M_current; 24952: return *this; 24952: } 24952: 24952: constexpr move_iterator 24952: operator++(int) 24952: { 24952: move_iterator __tmp = *this; 24952: ++_M_current; 24952: return __tmp; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: constexpr move_iterator& 24952: operator--() 24952: { 24952: --_M_current; 24952: return *this; 24952: } 24952: 24952: constexpr move_iterator 24952: operator--(int) 24952: { 24952: move_iterator __tmp = *this; 24952: --_M_current; 24952: return __tmp; 24952: } 24952: 24952: [[__nodiscard__]] 24952: constexpr move_iterator 24952: operator+(difference_type __n) const 24952: { return move_iterator(_M_current + __n); } 24952: 24952: constexpr move_iterator& 24952: operator+=(difference_type __n) 24952: { 24952: _M_current += __n; 24952: return *this; 24952: } 24952: 24952: [[__nodiscard__]] 24952: constexpr move_iterator 24952: operator-(difference_type __n) const 24952: { return move_iterator(_M_current - __n); } 24952: 24952: constexpr move_iterator& 24952: operator-=(difference_type __n) 24952: { 24952: _M_current -= __n; 24952: return *this; 24952: } 24952: 24952: [[__nodiscard__]] 24952: constexpr reference 24952: operator[](difference_type __n) const 24952: 24952: 24952: 24952: { return std::move(_M_current[__n]); } 24952: # 1673 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: }; 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator==(const move_iterator<_IteratorL>& __x, 24952: const move_iterator<_IteratorR>& __y) 24952: 24952: 24952: 24952: { return __x.base() == __y.base(); } 24952: # 1694 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator!=(const move_iterator<_IteratorL>& __x, 24952: const move_iterator<_IteratorR>& __y) 24952: { return !(__x == __y); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator<(const move_iterator<_IteratorL>& __x, 24952: const move_iterator<_IteratorR>& __y) 24952: 24952: 24952: 24952: { return __x.base() < __y.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator<=(const move_iterator<_IteratorL>& __x, 24952: const move_iterator<_IteratorR>& __y) 24952: 24952: 24952: 24952: { return !(__y < __x); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator>(const move_iterator<_IteratorL>& __x, 24952: const move_iterator<_IteratorR>& __y) 24952: 24952: 24952: 24952: { return __y < __x; } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator>=(const move_iterator<_IteratorL>& __x, 24952: const move_iterator<_IteratorR>& __y) 24952: 24952: 24952: 24952: { return !(__x < __y); } 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator==(const move_iterator<_Iterator>& __x, 24952: const move_iterator<_Iterator>& __y) 24952: { return __x.base() == __y.base(); } 24952: # 1760 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator!=(const move_iterator<_Iterator>& __x, 24952: const move_iterator<_Iterator>& __y) 24952: { return !(__x == __y); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator<(const move_iterator<_Iterator>& __x, 24952: const move_iterator<_Iterator>& __y) 24952: { return __x.base() < __y.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator<=(const move_iterator<_Iterator>& __x, 24952: const move_iterator<_Iterator>& __y) 24952: { return !(__y < __x); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator>(const move_iterator<_Iterator>& __x, 24952: const move_iterator<_Iterator>& __y) 24952: { return __y < __x; } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr bool 24952: operator>=(const move_iterator<_Iterator>& __x, 24952: const move_iterator<_Iterator>& __y) 24952: { return !(__x < __y); } 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr auto 24952: operator-(const move_iterator<_IteratorL>& __x, 24952: const move_iterator<_IteratorR>& __y) 24952: -> decltype(__x.base() - __y.base()) 24952: { return __x.base() - __y.base(); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr move_iterator<_Iterator> 24952: operator+(typename move_iterator<_Iterator>::difference_type __n, 24952: const move_iterator<_Iterator>& __x) 24952: { return __x + __n; } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr move_iterator<_Iterator> 24952: make_move_iterator(_Iterator __i) 24952: { return move_iterator<_Iterator>(std::move(__i)); } 24952: 24952: template::value_type>::value, 24952: _Iterator, move_iterator<_Iterator>>> 24952: inline constexpr _ReturnType 24952: __make_move_if_noexcept_iterator(_Iterator __i) 24952: { return _ReturnType(__i); } 24952: 24952: 24952: 24952: template::value, 24952: const _Tp*, move_iterator<_Tp*>>> 24952: inline constexpr _ReturnType 24952: __make_move_if_noexcept_iterator(_Tp* __i) 24952: { return _ReturnType(__i); } 24952: # 2951 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: 24952: auto 24952: __niter_base(move_iterator<_Iterator> __it) 24952: -> decltype(make_move_iterator(__niter_base(__it.base()))) 24952: { return make_move_iterator(__niter_base(__it.base())); } 24952: 24952: template 24952: struct __is_move_iterator > 24952: { 24952: enum { __value = 1 }; 24952: typedef __true_type __type; 24952: }; 24952: 24952: template 24952: 24952: auto 24952: __miter_base(move_iterator<_Iterator> __it) 24952: -> decltype(__miter_base(__it.base())) 24952: { return __miter_base(__it.base()); } 24952: # 2983 "/usr/include/c++/13/bits/stl_iterator.h" 3 24952: template 24952: using __iter_key_t = remove_const_t< 24952: typename iterator_traits<_InputIterator>::value_type::first_type>; 24952: 24952: template 24952: using __iter_val_t 24952: = typename iterator_traits<_InputIterator>::value_type::second_type; 24952: 24952: template 24952: struct pair; 24952: 24952: template 24952: using __iter_to_alloc_t 24952: = pair, __iter_val_t<_InputIterator>>; 24952: 24952: 24952: 24952: } 24952: # 68 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 24952: 24952: # 1 "/usr/include/c++/13/debug/debug.h" 1 3 24952: # 48 "/usr/include/c++/13/debug/debug.h" 3 24952: namespace std 24952: { 24952: namespace __debug { } 24952: } 24952: 24952: 24952: 24952: 24952: namespace __gnu_debug 24952: { 24952: using namespace std::__debug; 24952: 24952: template 24952: struct _Safe_iterator; 24952: } 24952: # 70 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 24952: 24952: # 1 "/usr/include/c++/13/bits/predefined_ops.h" 1 3 24952: # 35 "/usr/include/c++/13/bits/predefined_ops.h" 3 24952: namespace __gnu_cxx 24952: { 24952: namespace __ops 24952: { 24952: struct _Iter_less_iter 24952: { 24952: template 24952: constexpr 24952: bool 24952: operator()(_Iterator1 __it1, _Iterator2 __it2) const 24952: { return *__it1 < *__it2; } 24952: }; 24952: 24952: constexpr 24952: inline _Iter_less_iter 24952: __iter_less_iter() 24952: { return _Iter_less_iter(); } 24952: 24952: struct _Iter_less_val 24952: { 24952: 24952: constexpr _Iter_less_val() = default; 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: _Iter_less_val(_Iter_less_iter) { } 24952: 24952: template 24952: 24952: bool 24952: operator()(_Iterator __it, _Value& __val) const 24952: { return *__it < __val; } 24952: }; 24952: 24952: 24952: inline _Iter_less_val 24952: __iter_less_val() 24952: { return _Iter_less_val(); } 24952: 24952: 24952: inline _Iter_less_val 24952: __iter_comp_val(_Iter_less_iter) 24952: { return _Iter_less_val(); } 24952: 24952: struct _Val_less_iter 24952: { 24952: 24952: constexpr _Val_less_iter() = default; 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: _Val_less_iter(_Iter_less_iter) { } 24952: 24952: template 24952: 24952: bool 24952: operator()(_Value& __val, _Iterator __it) const 24952: { return __val < *__it; } 24952: }; 24952: 24952: 24952: inline _Val_less_iter 24952: __val_less_iter() 24952: { return _Val_less_iter(); } 24952: 24952: 24952: inline _Val_less_iter 24952: __val_comp_iter(_Iter_less_iter) 24952: { return _Val_less_iter(); } 24952: 24952: struct _Iter_equal_to_iter 24952: { 24952: template 24952: 24952: bool 24952: operator()(_Iterator1 __it1, _Iterator2 __it2) const 24952: { return *__it1 == *__it2; } 24952: }; 24952: 24952: 24952: inline _Iter_equal_to_iter 24952: __iter_equal_to_iter() 24952: { return _Iter_equal_to_iter(); } 24952: 24952: struct _Iter_equal_to_val 24952: { 24952: template 24952: 24952: bool 24952: operator()(_Iterator __it, _Value& __val) const 24952: { return *__it == __val; } 24952: }; 24952: 24952: 24952: inline _Iter_equal_to_val 24952: __iter_equal_to_val() 24952: { return _Iter_equal_to_val(); } 24952: 24952: 24952: inline _Iter_equal_to_val 24952: __iter_comp_val(_Iter_equal_to_iter) 24952: { return _Iter_equal_to_val(); } 24952: 24952: template 24952: struct _Iter_comp_iter 24952: { 24952: _Compare _M_comp; 24952: 24952: explicit constexpr 24952: _Iter_comp_iter(_Compare __comp) 24952: : _M_comp(std::move(__comp)) 24952: { } 24952: 24952: template 24952: constexpr 24952: bool 24952: operator()(_Iterator1 __it1, _Iterator2 __it2) 24952: { return bool(_M_comp(*__it1, *__it2)); } 24952: }; 24952: 24952: template 24952: constexpr 24952: inline _Iter_comp_iter<_Compare> 24952: __iter_comp_iter(_Compare __comp) 24952: { return _Iter_comp_iter<_Compare>(std::move(__comp)); } 24952: 24952: template 24952: struct _Iter_comp_val 24952: { 24952: _Compare _M_comp; 24952: 24952: 24952: explicit 24952: _Iter_comp_val(_Compare __comp) 24952: : _M_comp(std::move(__comp)) 24952: { } 24952: 24952: 24952: explicit 24952: _Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) 24952: : _M_comp(__comp._M_comp) 24952: { } 24952: 24952: 24952: 24952: explicit 24952: _Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) 24952: : _M_comp(std::move(__comp._M_comp)) 24952: { } 24952: 24952: 24952: template 24952: 24952: bool 24952: operator()(_Iterator __it, _Value& __val) 24952: { return bool(_M_comp(*__it, __val)); } 24952: }; 24952: 24952: template 24952: 24952: inline _Iter_comp_val<_Compare> 24952: __iter_comp_val(_Compare __comp) 24952: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 24952: 24952: template 24952: 24952: inline _Iter_comp_val<_Compare> 24952: __iter_comp_val(_Iter_comp_iter<_Compare> __comp) 24952: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 24952: 24952: template 24952: struct _Val_comp_iter 24952: { 24952: _Compare _M_comp; 24952: 24952: 24952: explicit 24952: _Val_comp_iter(_Compare __comp) 24952: : _M_comp(std::move(__comp)) 24952: { } 24952: 24952: 24952: explicit 24952: _Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) 24952: : _M_comp(__comp._M_comp) 24952: { } 24952: 24952: 24952: 24952: explicit 24952: _Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) 24952: : _M_comp(std::move(__comp._M_comp)) 24952: { } 24952: 24952: 24952: template 24952: 24952: bool 24952: operator()(_Value& __val, _Iterator __it) 24952: { return bool(_M_comp(__val, *__it)); } 24952: }; 24952: 24952: template 24952: 24952: inline _Val_comp_iter<_Compare> 24952: __val_comp_iter(_Compare __comp) 24952: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 24952: 24952: template 24952: 24952: inline _Val_comp_iter<_Compare> 24952: __val_comp_iter(_Iter_comp_iter<_Compare> __comp) 24952: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 24952: 24952: template 24952: struct _Iter_equals_val 24952: { 24952: _Value& _M_value; 24952: 24952: 24952: explicit 24952: _Iter_equals_val(_Value& __value) 24952: : _M_value(__value) 24952: { } 24952: 24952: template 24952: 24952: bool 24952: operator()(_Iterator __it) 24952: { return *__it == _M_value; } 24952: }; 24952: 24952: template 24952: 24952: inline _Iter_equals_val<_Value> 24952: __iter_equals_val(_Value& __val) 24952: { return _Iter_equals_val<_Value>(__val); } 24952: 24952: template 24952: struct _Iter_equals_iter 24952: { 24952: _Iterator1 _M_it1; 24952: 24952: 24952: explicit 24952: _Iter_equals_iter(_Iterator1 __it1) 24952: : _M_it1(__it1) 24952: { } 24952: 24952: template 24952: 24952: bool 24952: operator()(_Iterator2 __it2) 24952: { return *__it2 == *_M_it1; } 24952: }; 24952: 24952: template 24952: 24952: inline _Iter_equals_iter<_Iterator> 24952: __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) 24952: { return _Iter_equals_iter<_Iterator>(__it); } 24952: 24952: template 24952: struct _Iter_pred 24952: { 24952: _Predicate _M_pred; 24952: 24952: 24952: explicit 24952: _Iter_pred(_Predicate __pred) 24952: : _M_pred(std::move(__pred)) 24952: { } 24952: 24952: template 24952: 24952: bool 24952: operator()(_Iterator __it) 24952: { return bool(_M_pred(*__it)); } 24952: }; 24952: 24952: template 24952: 24952: inline _Iter_pred<_Predicate> 24952: __pred_iter(_Predicate __pred) 24952: { return _Iter_pred<_Predicate>(std::move(__pred)); } 24952: 24952: template 24952: struct _Iter_comp_to_val 24952: { 24952: _Compare _M_comp; 24952: _Value& _M_value; 24952: 24952: 24952: _Iter_comp_to_val(_Compare __comp, _Value& __value) 24952: : _M_comp(std::move(__comp)), _M_value(__value) 24952: { } 24952: 24952: template 24952: 24952: bool 24952: operator()(_Iterator __it) 24952: { return bool(_M_comp(*__it, _M_value)); } 24952: }; 24952: 24952: template 24952: _Iter_comp_to_val<_Compare, _Value> 24952: 24952: __iter_comp_val(_Compare __comp, _Value &__val) 24952: { 24952: return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); 24952: } 24952: 24952: template 24952: struct _Iter_comp_to_iter 24952: { 24952: _Compare _M_comp; 24952: _Iterator1 _M_it1; 24952: 24952: 24952: _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) 24952: : _M_comp(std::move(__comp)), _M_it1(__it1) 24952: { } 24952: 24952: template 24952: 24952: bool 24952: operator()(_Iterator2 __it2) 24952: { return bool(_M_comp(*__it2, *_M_it1)); } 24952: }; 24952: 24952: template 24952: 24952: inline _Iter_comp_to_iter<_Compare, _Iterator> 24952: __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) 24952: { 24952: return _Iter_comp_to_iter<_Compare, _Iterator>( 24952: std::move(__comp._M_comp), __it); 24952: } 24952: 24952: template 24952: struct _Iter_negate 24952: { 24952: _Predicate _M_pred; 24952: 24952: 24952: explicit 24952: _Iter_negate(_Predicate __pred) 24952: : _M_pred(std::move(__pred)) 24952: { } 24952: 24952: template 24952: 24952: bool 24952: operator()(_Iterator __it) 24952: { return !bool(_M_pred(*__it)); } 24952: }; 24952: 24952: template 24952: 24952: inline _Iter_negate<_Predicate> 24952: __negate(_Iter_pred<_Predicate> __pred) 24952: { return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } 24952: 24952: } 24952: } 24952: # 72 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bit" 1 3 24952: # 32 "/usr/include/c++/13/bit" 3 24952: 24952: # 33 "/usr/include/c++/13/bit" 3 24952: # 55 "/usr/include/c++/13/bit" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 149 "/usr/include/c++/13/bit" 3 24952: template 24952: constexpr _Tp 24952: __rotl(_Tp __x, int __s) noexcept 24952: { 24952: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 24952: if constexpr ((_Nd & (_Nd - 1)) == 0) 24952: { 24952: 24952: 24952: constexpr unsigned __uNd = _Nd; 24952: const unsigned __r = __s; 24952: return (__x << (__r % __uNd)) | (__x >> ((-__r) % __uNd)); 24952: } 24952: const int __r = __s % _Nd; 24952: if (__r == 0) 24952: return __x; 24952: else if (__r > 0) 24952: return (__x << __r) | (__x >> ((_Nd - __r) % _Nd)); 24952: else 24952: return (__x >> -__r) | (__x << ((_Nd + __r) % _Nd)); 24952: } 24952: 24952: template 24952: constexpr _Tp 24952: __rotr(_Tp __x, int __s) noexcept 24952: { 24952: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 24952: if constexpr ((_Nd & (_Nd - 1)) == 0) 24952: { 24952: 24952: 24952: constexpr unsigned __uNd = _Nd; 24952: const unsigned __r = __s; 24952: return (__x >> (__r % __uNd)) | (__x << ((-__r) % __uNd)); 24952: } 24952: const int __r = __s % _Nd; 24952: if (__r == 0) 24952: return __x; 24952: else if (__r > 0) 24952: return (__x >> __r) | (__x << ((_Nd - __r) % _Nd)); 24952: else 24952: return (__x << -__r) | (__x >> ((_Nd + __r) % _Nd)); 24952: } 24952: 24952: template 24952: constexpr int 24952: __countl_zero(_Tp __x) noexcept 24952: { 24952: using __gnu_cxx::__int_traits; 24952: constexpr auto _Nd = __int_traits<_Tp>::__digits; 24952: 24952: if (__x == 0) 24952: return _Nd; 24952: 24952: constexpr auto _Nd_ull = __int_traits::__digits; 24952: constexpr auto _Nd_ul = __int_traits::__digits; 24952: constexpr auto _Nd_u = __int_traits::__digits; 24952: 24952: if constexpr (_Nd <= _Nd_u) 24952: { 24952: constexpr int __diff = _Nd_u - _Nd; 24952: return __builtin_clz(__x) - __diff; 24952: } 24952: else if constexpr (_Nd <= _Nd_ul) 24952: { 24952: constexpr int __diff = _Nd_ul - _Nd; 24952: return __builtin_clzl(__x) - __diff; 24952: } 24952: else if constexpr (_Nd <= _Nd_ull) 24952: { 24952: constexpr int __diff = _Nd_ull - _Nd; 24952: return __builtin_clzll(__x) - __diff; 24952: } 24952: else 24952: { 24952: static_assert(_Nd <= (2 * _Nd_ull), 24952: "Maximum supported integer size is 128-bit"); 24952: 24952: unsigned long long __high = __x >> _Nd_ull; 24952: if (__high != 0) 24952: { 24952: constexpr int __diff = (2 * _Nd_ull) - _Nd; 24952: return __builtin_clzll(__high) - __diff; 24952: } 24952: constexpr auto __max_ull = __int_traits::__max; 24952: unsigned long long __low = __x & __max_ull; 24952: return (_Nd - _Nd_ull) + __builtin_clzll(__low); 24952: } 24952: } 24952: 24952: template 24952: constexpr int 24952: __countl_one(_Tp __x) noexcept 24952: { 24952: return std::__countl_zero<_Tp>((_Tp)~__x); 24952: } 24952: 24952: template 24952: constexpr int 24952: __countr_zero(_Tp __x) noexcept 24952: { 24952: using __gnu_cxx::__int_traits; 24952: constexpr auto _Nd = __int_traits<_Tp>::__digits; 24952: 24952: if (__x == 0) 24952: return _Nd; 24952: 24952: constexpr auto _Nd_ull = __int_traits::__digits; 24952: constexpr auto _Nd_ul = __int_traits::__digits; 24952: constexpr auto _Nd_u = __int_traits::__digits; 24952: 24952: if constexpr (_Nd <= _Nd_u) 24952: return __builtin_ctz(__x); 24952: else if constexpr (_Nd <= _Nd_ul) 24952: return __builtin_ctzl(__x); 24952: else if constexpr (_Nd <= _Nd_ull) 24952: return __builtin_ctzll(__x); 24952: else 24952: { 24952: static_assert(_Nd <= (2 * _Nd_ull), 24952: "Maximum supported integer size is 128-bit"); 24952: 24952: constexpr auto __max_ull = __int_traits::__max; 24952: unsigned long long __low = __x & __max_ull; 24952: if (__low != 0) 24952: return __builtin_ctzll(__low); 24952: unsigned long long __high = __x >> _Nd_ull; 24952: return __builtin_ctzll(__high) + _Nd_ull; 24952: } 24952: } 24952: 24952: template 24952: constexpr int 24952: __countr_one(_Tp __x) noexcept 24952: { 24952: return std::__countr_zero((_Tp)~__x); 24952: } 24952: 24952: template 24952: constexpr int 24952: __popcount(_Tp __x) noexcept 24952: { 24952: using __gnu_cxx::__int_traits; 24952: constexpr auto _Nd = __int_traits<_Tp>::__digits; 24952: 24952: constexpr auto _Nd_ull = __int_traits::__digits; 24952: constexpr auto _Nd_ul = __int_traits::__digits; 24952: constexpr auto _Nd_u = __int_traits::__digits; 24952: 24952: if constexpr (_Nd <= _Nd_u) 24952: return __builtin_popcount(__x); 24952: else if constexpr (_Nd <= _Nd_ul) 24952: return __builtin_popcountl(__x); 24952: else if constexpr (_Nd <= _Nd_ull) 24952: return __builtin_popcountll(__x); 24952: else 24952: { 24952: static_assert(_Nd <= (2 * _Nd_ull), 24952: "Maximum supported integer size is 128-bit"); 24952: 24952: constexpr auto __max_ull = __int_traits::__max; 24952: unsigned long long __low = __x & __max_ull; 24952: unsigned long long __high = __x >> _Nd_ull; 24952: return __builtin_popcountll(__low) + __builtin_popcountll(__high); 24952: } 24952: } 24952: 24952: template 24952: constexpr bool 24952: __has_single_bit(_Tp __x) noexcept 24952: { return std::__popcount(__x) == 1; } 24952: 24952: template 24952: constexpr _Tp 24952: __bit_ceil(_Tp __x) noexcept 24952: { 24952: using __gnu_cxx::__int_traits; 24952: constexpr auto _Nd = __int_traits<_Tp>::__digits; 24952: if (__x == 0 || __x == 1) 24952: return 1; 24952: auto __shift_exponent = _Nd - std::__countl_zero((_Tp)(__x - 1u)); 24952: 24952: 24952: 24952: 24952: if (!std::__is_constant_evaluated()) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__shift_exponent != __int_traits<_Tp>::__digits)) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: using __promoted_type = decltype(__x << 1); 24952: if constexpr (!is_same<__promoted_type, _Tp>::value) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: const int __extra_exp = sizeof(__promoted_type) / sizeof(_Tp) / 2; 24952: __shift_exponent |= (__shift_exponent & _Nd) << __extra_exp; 24952: } 24952: return (_Tp)1u << __shift_exponent; 24952: } 24952: 24952: template 24952: constexpr _Tp 24952: __bit_floor(_Tp __x) noexcept 24952: { 24952: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 24952: if (__x == 0) 24952: return 0; 24952: return (_Tp)1u << (_Nd - std::__countl_zero((_Tp)(__x >> 1))); 24952: } 24952: 24952: template 24952: constexpr int 24952: __bit_width(_Tp __x) noexcept 24952: { 24952: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 24952: return _Nd - std::__countl_zero(__x); 24952: } 24952: # 478 "/usr/include/c++/13/bit" 3 24952: 24952: } 24952: # 77 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: constexpr 24952: inline int 24952: __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num) 24952: { 24952: 24952: static_assert(sizeof(_Tp) == sizeof(_Up), "can be compared with memcmp"); 24952: # 108 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num); 24952: } 24952: # 152 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline void 24952: iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) 24952: { 24952: 24952: 24952: 24952: 24952: # 185 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: swap(*__a, *__b); 24952: 24952: } 24952: # 201 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: _ForwardIterator2 24952: swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: for (; __first1 != __last1; ++__first1, (void)++__first2) 24952: std::iter_swap(__first1, __first2); 24952: return __first2; 24952: } 24952: # 230 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: constexpr 24952: inline const _Tp& 24952: min(const _Tp& __a, const _Tp& __b) 24952: { 24952: 24952: 24952: 24952: if (__b < __a) 24952: return __b; 24952: return __a; 24952: } 24952: # 254 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: constexpr 24952: inline const _Tp& 24952: max(const _Tp& __a, const _Tp& __b) 24952: { 24952: 24952: 24952: 24952: if (__a < __b) 24952: return __b; 24952: return __a; 24952: } 24952: # 278 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: constexpr 24952: inline const _Tp& 24952: min(const _Tp& __a, const _Tp& __b, _Compare __comp) 24952: { 24952: 24952: if (__comp(__b, __a)) 24952: return __b; 24952: return __a; 24952: } 24952: # 300 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: constexpr 24952: inline const _Tp& 24952: max(const _Tp& __a, const _Tp& __b, _Compare __comp) 24952: { 24952: 24952: if (__comp(__a, __b)) 24952: return __b; 24952: return __a; 24952: } 24952: 24952: 24952: 24952: template 24952: 24952: inline _Iterator 24952: __niter_base(_Iterator __it) 24952: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 24952: { return __it; } 24952: 24952: template 24952: _Ite 24952: __niter_base(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, 24952: std::random_access_iterator_tag>&); 24952: 24952: 24952: 24952: 24952: template 24952: 24952: inline _From 24952: __niter_wrap(_From __from, _To __res) 24952: { return __from + (__res - std::__niter_base(__from)); } 24952: 24952: 24952: template 24952: 24952: inline _Iterator 24952: __niter_wrap(const _Iterator&, _Iterator __res) 24952: { return __res; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __copy_move 24952: { 24952: template 24952: 24952: static _OI 24952: __copy_m(_II __first, _II __last, _OI __result) 24952: { 24952: for (; __first != __last; ++__result, (void)++__first) 24952: *__result = *__first; 24952: return __result; 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct __copy_move 24952: { 24952: template 24952: 24952: static _OI 24952: __copy_m(_II __first, _II __last, _OI __result) 24952: { 24952: for (; __first != __last; ++__result, (void)++__first) 24952: *__result = std::move(*__first); 24952: return __result; 24952: } 24952: }; 24952: 24952: 24952: template<> 24952: struct __copy_move 24952: { 24952: template 24952: 24952: static _OI 24952: __copy_m(_II __first, _II __last, _OI __result) 24952: { 24952: typedef typename iterator_traits<_II>::difference_type _Distance; 24952: for(_Distance __n = __last - __first; __n > 0; --__n) 24952: { 24952: *__result = *__first; 24952: ++__first; 24952: ++__result; 24952: } 24952: return __result; 24952: } 24952: 24952: template 24952: static void 24952: __assign_one(_Tp* __to, _Up* __from) 24952: { *__to = *__from; } 24952: }; 24952: 24952: 24952: template<> 24952: struct __copy_move 24952: { 24952: template 24952: 24952: static _OI 24952: __copy_m(_II __first, _II __last, _OI __result) 24952: { 24952: typedef typename iterator_traits<_II>::difference_type _Distance; 24952: for(_Distance __n = __last - __first; __n > 0; --__n) 24952: { 24952: *__result = std::move(*__first); 24952: ++__first; 24952: ++__result; 24952: } 24952: return __result; 24952: } 24952: 24952: template 24952: static void 24952: __assign_one(_Tp* __to, _Up* __from) 24952: { *__to = std::move(*__from); } 24952: }; 24952: 24952: 24952: template 24952: struct __copy_move<_IsMove, true, random_access_iterator_tag> 24952: { 24952: template 24952: 24952: static _Up* 24952: __copy_m(_Tp* __first, _Tp* __last, _Up* __result) 24952: { 24952: const ptrdiff_t _Num = __last - __first; 24952: if (__builtin_expect(_Num > 1, true)) 24952: __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); 24952: else if (_Num == 1) 24952: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 24952: __assign_one(__result, __first); 24952: return __result + _Num; 24952: } 24952: }; 24952: 24952: 24952: 24952: template 24952: struct _Deque_iterator; 24952: 24952: struct _Bit_iterator; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct char_traits; 24952: 24952: template 24952: class istreambuf_iterator; 24952: 24952: template 24952: class ostreambuf_iterator; 24952: 24952: template 24952: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 24952: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 24952: __copy_move_a2(_CharT*, _CharT*, 24952: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 24952: 24952: template 24952: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 24952: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 24952: __copy_move_a2(const _CharT*, const _CharT*, 24952: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 24952: 24952: template 24952: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 24952: _CharT*>::__type 24952: __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, 24952: istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); 24952: 24952: template 24952: typename __gnu_cxx::__enable_if< 24952: __is_char<_CharT>::__value, 24952: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 24952: __copy_move_a2( 24952: istreambuf_iterator<_CharT, char_traits<_CharT> >, 24952: istreambuf_iterator<_CharT, char_traits<_CharT> >, 24952: std::_Deque_iterator<_CharT, _CharT&, _CharT*>); 24952: 24952: 24952: template 24952: 24952: inline _OI 24952: __copy_move_a2(_II __first, _II __last, _OI __result) 24952: { 24952: typedef typename iterator_traits<_II>::iterator_category _Category; 24952: 24952: 24952: 24952: 24952: 24952: return std::__copy_move<_IsMove, __memcpyable<_OI, _II>::__value, 24952: _Category>::__copy_m(__first, __last, __result); 24952: } 24952: 24952: template 24952: _OI 24952: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 24952: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 24952: _OI); 24952: 24952: template 24952: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 24952: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr>, 24952: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 24952: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 24952: 24952: template 24952: typename __gnu_cxx::__enable_if< 24952: __is_random_access_iter<_II>::__value, 24952: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 24952: __copy_move_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 24952: 24952: template 24952: 24952: inline _OI 24952: __copy_move_a1(_II __first, _II __last, _OI __result) 24952: { return std::__copy_move_a2<_IsMove>(__first, __last, __result); } 24952: 24952: template 24952: 24952: inline _OI 24952: __copy_move_a(_II __first, _II __last, _OI __result) 24952: { 24952: return std::__niter_wrap(__result, 24952: std::__copy_move_a1<_IsMove>(std::__niter_base(__first), 24952: std::__niter_base(__last), 24952: std::__niter_base(__result))); 24952: } 24952: 24952: template 24952: _OI 24952: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 24952: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 24952: _OI); 24952: 24952: template 24952: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 24952: __copy_move_a(_II, _II, 24952: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 24952: 24952: template 24952: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 24952: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 24952: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 24952: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 24952: 24952: template 24952: 24952: _OutputIterator 24952: __copy_n_a(_InputIterator __first, _Size __n, _OutputIterator __result, 24952: bool) 24952: { 24952: if (__n > 0) 24952: { 24952: while (true) 24952: { 24952: *__result = *__first; 24952: ++__result; 24952: if (--__n > 0) 24952: ++__first; 24952: else 24952: break; 24952: } 24952: } 24952: return __result; 24952: } 24952: 24952: 24952: template 24952: typename __gnu_cxx::__enable_if< 24952: __is_char<_CharT>::__value, _CharT*>::__type 24952: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, 24952: _Size, _CharT*, bool); 24952: 24952: template 24952: typename __gnu_cxx::__enable_if< 24952: __is_char<_CharT>::__value, 24952: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 24952: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, 24952: std::_Deque_iterator<_CharT, _CharT&, _CharT*>, 24952: bool); 24952: # 621 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline _OI 24952: copy(_II __first, _II __last, _OI __result) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__copy_move_a<__is_move_iterator<_II>::__value> 24952: (std::__miter_base(__first), std::__miter_base(__last), __result); 24952: } 24952: # 654 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline _OI 24952: move(_II __first, _II __last, _OI __result) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__copy_move_a(std::__miter_base(__first), 24952: std::__miter_base(__last), __result); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __copy_move_backward 24952: { 24952: template 24952: 24952: static _BI2 24952: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 24952: { 24952: while (__first != __last) 24952: *--__result = *--__last; 24952: return __result; 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct __copy_move_backward 24952: { 24952: template 24952: 24952: static _BI2 24952: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 24952: { 24952: while (__first != __last) 24952: *--__result = std::move(*--__last); 24952: return __result; 24952: } 24952: }; 24952: 24952: 24952: template<> 24952: struct __copy_move_backward 24952: { 24952: template 24952: 24952: static _BI2 24952: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 24952: { 24952: typename iterator_traits<_BI1>::difference_type 24952: __n = __last - __first; 24952: for (; __n > 0; --__n) 24952: *--__result = *--__last; 24952: return __result; 24952: } 24952: }; 24952: 24952: 24952: template<> 24952: struct __copy_move_backward 24952: { 24952: template 24952: 24952: static _BI2 24952: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 24952: { 24952: typename iterator_traits<_BI1>::difference_type 24952: __n = __last - __first; 24952: for (; __n > 0; --__n) 24952: *--__result = std::move(*--__last); 24952: return __result; 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> 24952: { 24952: template 24952: 24952: static _Up* 24952: __copy_move_b(_Tp* __first, _Tp* __last, _Up* __result) 24952: { 24952: const ptrdiff_t _Num = __last - __first; 24952: if (__builtin_expect(_Num > 1, true)) 24952: __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); 24952: else if (_Num == 1) 24952: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 24952: __assign_one(__result - 1, __first); 24952: return __result - _Num; 24952: } 24952: }; 24952: 24952: template 24952: 24952: inline _BI2 24952: __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) 24952: { 24952: typedef typename iterator_traits<_BI1>::iterator_category _Category; 24952: 24952: 24952: 24952: 24952: 24952: return std::__copy_move_backward<_IsMove, 24952: __memcpyable<_BI2, _BI1>::__value, 24952: _Category>::__copy_move_b(__first, 24952: __last, 24952: __result); 24952: } 24952: 24952: template 24952: 24952: inline _BI2 24952: __copy_move_backward_a1(_BI1 __first, _BI1 __last, _BI2 __result) 24952: { return std::__copy_move_backward_a2<_IsMove>(__first, __last, __result); } 24952: 24952: template 24952: _OI 24952: __copy_move_backward_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 24952: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 24952: _OI); 24952: 24952: template 24952: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 24952: __copy_move_backward_a1( 24952: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 24952: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 24952: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 24952: 24952: template 24952: typename __gnu_cxx::__enable_if< 24952: __is_random_access_iter<_II>::__value, 24952: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 24952: __copy_move_backward_a1(_II, _II, 24952: std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 24952: 24952: template 24952: 24952: inline _OI 24952: __copy_move_backward_a(_II __first, _II __last, _OI __result) 24952: { 24952: return std::__niter_wrap(__result, 24952: std::__copy_move_backward_a1<_IsMove> 24952: (std::__niter_base(__first), std::__niter_base(__last), 24952: std::__niter_base(__result))); 24952: } 24952: 24952: template 24952: _OI 24952: __copy_move_backward_a( 24952: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 24952: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 24952: _OI); 24952: 24952: template 24952: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 24952: __copy_move_backward_a(_II, _II, 24952: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 24952: 24952: template 24952: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 24952: __copy_move_backward_a( 24952: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 24952: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 24952: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 24952: # 854 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline _BI2 24952: copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__copy_move_backward_a<__is_move_iterator<_BI1>::__value> 24952: (std::__miter_base(__first), std::__miter_base(__last), __result); 24952: } 24952: # 889 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline _BI2 24952: move_backward(_BI1 __first, _BI1 __last, _BI2 __result) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__copy_move_backward_a(std::__miter_base(__first), 24952: std::__miter_base(__last), 24952: __result); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: inline typename 24952: __gnu_cxx::__enable_if::__value, void>::__type 24952: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __value) 24952: { 24952: for (; __first != __last; ++__first) 24952: *__first = __value; 24952: } 24952: 24952: template 24952: 24952: inline typename 24952: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type 24952: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __value) 24952: { 24952: const _Tp __tmp = __value; 24952: for (; __first != __last; ++__first) 24952: *__first = __tmp; 24952: } 24952: 24952: 24952: template 24952: 24952: inline typename 24952: __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type 24952: __fill_a1(_Tp* __first, _Tp* __last, const _Tp& __c) 24952: { 24952: const _Tp __tmp = __c; 24952: # 950 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: if (const size_t __len = __last - __first) 24952: __builtin_memset(__first, static_cast(__tmp), __len); 24952: } 24952: 24952: template 24952: 24952: inline void 24952: __fill_a1(::__gnu_cxx::__normal_iterator<_Ite, _Cont> __first, 24952: ::__gnu_cxx::__normal_iterator<_Ite, _Cont> __last, 24952: const _Tp& __value) 24952: { std::__fill_a1(__first.base(), __last.base(), __value); } 24952: 24952: template 24952: void 24952: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 24952: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 24952: const _VTp&); 24952: 24952: 24952: void 24952: __fill_a1(std::_Bit_iterator, std::_Bit_iterator, 24952: const bool&); 24952: 24952: template 24952: 24952: inline void 24952: __fill_a(_FIte __first, _FIte __last, const _Tp& __value) 24952: { std::__fill_a1(__first, __last, __value); } 24952: 24952: template 24952: void 24952: __fill_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 24952: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 24952: const _Tp&); 24952: # 997 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline void 24952: fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) 24952: { 24952: 24952: 24952: 24952: ; 24952: 24952: std::__fill_a(__first, __last, __value); 24952: } 24952: 24952: 24952: inline constexpr int 24952: __size_to_integer(int __n) { return __n; } 24952: inline constexpr unsigned 24952: __size_to_integer(unsigned __n) { return __n; } 24952: inline constexpr long 24952: __size_to_integer(long __n) { return __n; } 24952: inline constexpr unsigned long 24952: __size_to_integer(unsigned long __n) { return __n; } 24952: inline constexpr long long 24952: __size_to_integer(long long __n) { return __n; } 24952: inline constexpr unsigned long long 24952: __size_to_integer(unsigned long long __n) { return __n; } 24952: # 1049 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: inline constexpr long long 24952: __size_to_integer(float __n) { return (long long)__n; } 24952: inline constexpr long long 24952: __size_to_integer(double __n) { return (long long)__n; } 24952: inline constexpr long long 24952: __size_to_integer(long double __n) { return (long long)__n; } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: inline typename 24952: __gnu_cxx::__enable_if::__value, _OutputIterator>::__type 24952: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 24952: { 24952: for (; __n > 0; --__n, (void) ++__first) 24952: *__first = __value; 24952: return __first; 24952: } 24952: 24952: template 24952: 24952: inline typename 24952: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type 24952: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 24952: { 24952: const _Tp __tmp = __value; 24952: for (; __n > 0; --__n, (void) ++__first) 24952: *__first = __tmp; 24952: return __first; 24952: } 24952: 24952: template 24952: ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 24952: __fill_n_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>& __first, 24952: _Size __n, const _Tp& __value, 24952: std::input_iterator_tag); 24952: 24952: template 24952: 24952: inline _OutputIterator 24952: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 24952: std::output_iterator_tag) 24952: { 24952: 24952: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 24952: 24952: return __fill_n_a1(__first, __n, __value); 24952: } 24952: 24952: template 24952: 24952: inline _OutputIterator 24952: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 24952: std::input_iterator_tag) 24952: { 24952: 24952: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 24952: 24952: return __fill_n_a1(__first, __n, __value); 24952: } 24952: 24952: template 24952: 24952: inline _OutputIterator 24952: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 24952: std::random_access_iterator_tag) 24952: { 24952: 24952: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 24952: 24952: if (__n <= 0) 24952: return __first; 24952: 24952: ; 24952: 24952: std::__fill_a(__first, __first + __n, __value); 24952: return __first + __n; 24952: } 24952: # 1149 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline _OI 24952: fill_n(_OI __first, _Size __n, const _Tp& __value) 24952: { 24952: 24952: 24952: 24952: return std::__fill_n_a(__first, std::__size_to_integer(__n), __value, 24952: std::__iterator_category(__first)); 24952: } 24952: 24952: template 24952: struct __equal 24952: { 24952: template 24952: 24952: static bool 24952: equal(_II1 __first1, _II1 __last1, _II2 __first2) 24952: { 24952: for (; __first1 != __last1; ++__first1, (void) ++__first2) 24952: if (!(*__first1 == *__first2)) 24952: return false; 24952: return true; 24952: } 24952: }; 24952: 24952: template<> 24952: struct __equal 24952: { 24952: template 24952: 24952: static bool 24952: equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) 24952: { 24952: if (const size_t __len = (__last1 - __first1)) 24952: return !std::__memcmp(__first1, __first2, __len); 24952: return true; 24952: } 24952: }; 24952: 24952: template 24952: typename __gnu_cxx::__enable_if< 24952: __is_random_access_iter<_II>::__value, bool>::__type 24952: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 24952: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 24952: _II); 24952: 24952: template 24952: bool 24952: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 24952: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 24952: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 24952: 24952: template 24952: typename __gnu_cxx::__enable_if< 24952: __is_random_access_iter<_II>::__value, bool>::__type 24952: __equal_aux1(_II, _II, 24952: std::_Deque_iterator<_Tp, _Ref, _Ptr>); 24952: 24952: template 24952: 24952: inline bool 24952: __equal_aux1(_II1 __first1, _II1 __last1, _II2 __first2) 24952: { 24952: typedef typename iterator_traits<_II1>::value_type _ValueType1; 24952: const bool __simple = ((__is_integer<_ValueType1>::__value 24952: || __is_pointer<_ValueType1>::__value) 24952: && __memcmpable<_II1, _II2>::__value); 24952: return std::__equal<__simple>::equal(__first1, __last1, __first2); 24952: } 24952: 24952: template 24952: 24952: inline bool 24952: __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) 24952: { 24952: return std::__equal_aux1(std::__niter_base(__first1), 24952: std::__niter_base(__last1), 24952: std::__niter_base(__first2)); 24952: } 24952: 24952: template 24952: bool 24952: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 24952: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 24952: _II2); 24952: 24952: template 24952: bool 24952: __equal_aux(_II1, _II1, 24952: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 24952: 24952: template 24952: bool 24952: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 24952: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 24952: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 24952: 24952: template 24952: struct __lc_rai 24952: { 24952: template 24952: 24952: static _II1 24952: __newlast1(_II1, _II1 __last1, _II2, _II2) 24952: { return __last1; } 24952: 24952: template 24952: 24952: static bool 24952: __cnd2(_II __first, _II __last) 24952: { return __first != __last; } 24952: }; 24952: 24952: template<> 24952: struct __lc_rai 24952: { 24952: template 24952: 24952: static _RAI1 24952: __newlast1(_RAI1 __first1, _RAI1 __last1, 24952: _RAI2 __first2, _RAI2 __last2) 24952: { 24952: const typename iterator_traits<_RAI1>::difference_type 24952: __diff1 = __last1 - __first1; 24952: const typename iterator_traits<_RAI2>::difference_type 24952: __diff2 = __last2 - __first2; 24952: return __diff2 < __diff1 ? __first1 + __diff2 : __last1; 24952: } 24952: 24952: template 24952: static bool 24952: __cnd2(_RAI, _RAI) 24952: { return true; } 24952: }; 24952: 24952: template 24952: 24952: bool 24952: __lexicographical_compare_impl(_II1 __first1, _II1 __last1, 24952: _II2 __first2, _II2 __last2, 24952: _Compare __comp) 24952: { 24952: typedef typename iterator_traits<_II1>::iterator_category _Category1; 24952: typedef typename iterator_traits<_II2>::iterator_category _Category2; 24952: typedef std::__lc_rai<_Category1, _Category2> __rai_type; 24952: 24952: __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); 24952: for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); 24952: ++__first1, (void)++__first2) 24952: { 24952: if (__comp(__first1, __first2)) 24952: return true; 24952: if (__comp(__first2, __first1)) 24952: return false; 24952: } 24952: return __first1 == __last1 && __first2 != __last2; 24952: } 24952: 24952: template 24952: struct __lexicographical_compare 24952: { 24952: template 24952: 24952: static bool 24952: __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 24952: { 24952: using __gnu_cxx::__ops::__iter_less_iter; 24952: return std::__lexicographical_compare_impl(__first1, __last1, 24952: __first2, __last2, 24952: __iter_less_iter()); 24952: } 24952: 24952: template 24952: 24952: static int 24952: __3way(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 24952: { 24952: while (__first1 != __last1) 24952: { 24952: if (__first2 == __last2) 24952: return +1; 24952: if (*__first1 < *__first2) 24952: return -1; 24952: if (*__first2 < *__first1) 24952: return +1; 24952: ++__first1; 24952: ++__first2; 24952: } 24952: return int(__first2 == __last2) - 1; 24952: } 24952: }; 24952: 24952: template<> 24952: struct __lexicographical_compare 24952: { 24952: template 24952: 24952: static bool 24952: __lc(const _Tp* __first1, const _Tp* __last1, 24952: const _Up* __first2, const _Up* __last2) 24952: { return __3way(__first1, __last1, __first2, __last2) < 0; } 24952: 24952: template 24952: 24952: static ptrdiff_t 24952: __3way(const _Tp* __first1, const _Tp* __last1, 24952: const _Up* __first2, const _Up* __last2) 24952: { 24952: const size_t __len1 = __last1 - __first1; 24952: const size_t __len2 = __last2 - __first2; 24952: if (const size_t __len = std::min(__len1, __len2)) 24952: if (int __result = std::__memcmp(__first1, __first2, __len)) 24952: return __result; 24952: return ptrdiff_t(__len1 - __len2); 24952: } 24952: }; 24952: 24952: template 24952: 24952: inline bool 24952: __lexicographical_compare_aux1(_II1 __first1, _II1 __last1, 24952: _II2 __first2, _II2 __last2) 24952: { 24952: typedef typename iterator_traits<_II1>::value_type _ValueType1; 24952: typedef typename iterator_traits<_II2>::value_type _ValueType2; 24952: const bool __simple = 24952: (__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value 24952: && __is_pointer<_II1>::__value 24952: && __is_pointer<_II2>::__value 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ); 24952: 24952: return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, 24952: __first2, __last2); 24952: } 24952: 24952: template 24952: bool 24952: __lexicographical_compare_aux1( 24952: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 24952: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 24952: _Tp2*, _Tp2*); 24952: 24952: template 24952: bool 24952: __lexicographical_compare_aux1(_Tp1*, _Tp1*, 24952: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 24952: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 24952: 24952: template 24952: bool 24952: __lexicographical_compare_aux1( 24952: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 24952: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 24952: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 24952: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 24952: 24952: template 24952: 24952: inline bool 24952: __lexicographical_compare_aux(_II1 __first1, _II1 __last1, 24952: _II2 __first2, _II2 __last2) 24952: { 24952: return std::__lexicographical_compare_aux1(std::__niter_base(__first1), 24952: std::__niter_base(__last1), 24952: std::__niter_base(__first2), 24952: std::__niter_base(__last2)); 24952: } 24952: 24952: template 24952: bool 24952: __lexicographical_compare_aux( 24952: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 24952: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 24952: _II2, _II2); 24952: 24952: template 24952: bool 24952: __lexicographical_compare_aux( 24952: _II1, _II1, 24952: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 24952: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 24952: 24952: template 24952: bool 24952: __lexicographical_compare_aux( 24952: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 24952: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 24952: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 24952: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 24952: 24952: template 24952: 24952: _ForwardIterator 24952: __lower_bound(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __val, _Compare __comp) 24952: { 24952: typedef typename iterator_traits<_ForwardIterator>::difference_type 24952: _DistanceType; 24952: 24952: _DistanceType __len = std::distance(__first, __last); 24952: 24952: while (__len > 0) 24952: { 24952: _DistanceType __half = __len >> 1; 24952: _ForwardIterator __middle = __first; 24952: std::advance(__middle, __half); 24952: if (__comp(__middle, __val)) 24952: { 24952: __first = __middle; 24952: ++__first; 24952: __len = __len - __half - 1; 24952: } 24952: else 24952: __len = __half; 24952: } 24952: return __first; 24952: } 24952: # 1495 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __val) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__lower_bound(__first, __last, __val, 24952: __gnu_cxx::__ops::__iter_less_val()); 24952: } 24952: 24952: 24952: 24952: template 24952: inline constexpr _Tp 24952: __lg(_Tp __n) 24952: { 24952: 24952: return std::__bit_width(make_unsigned_t<_Tp>(__n)) - 1; 24952: # 1528 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: } 24952: 24952: 24952: # 1544 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline bool 24952: equal(_II1 __first1, _II1 __last1, _II2 __first2) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__equal_aux(__first1, __last1, __first2); 24952: } 24952: # 1575 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline bool 24952: equal(_IIter1 __first1, _IIter1 __last1, 24952: _IIter2 __first2, _BinaryPredicate __binary_pred) 24952: { 24952: 24952: 24952: 24952: ; 24952: 24952: for (; __first1 != __last1; ++__first1, (void)++__first2) 24952: if (!bool(__binary_pred(*__first1, *__first2))) 24952: return false; 24952: return true; 24952: } 24952: 24952: 24952: 24952: template 24952: 24952: inline bool 24952: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 24952: { 24952: using _RATag = random_access_iterator_tag; 24952: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 24952: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 24952: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 24952: if (_RAIters()) 24952: { 24952: auto __d1 = std::distance(__first1, __last1); 24952: auto __d2 = std::distance(__first2, __last2); 24952: if (__d1 != __d2) 24952: return false; 24952: return std::equal(__first1, __last1, __first2); 24952: } 24952: 24952: for (; __first1 != __last1 && __first2 != __last2; 24952: ++__first1, (void)++__first2) 24952: if (!(*__first1 == *__first2)) 24952: return false; 24952: return __first1 == __last1 && __first2 == __last2; 24952: } 24952: 24952: 24952: template 24952: 24952: inline bool 24952: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, 24952: _BinaryPredicate __binary_pred) 24952: { 24952: using _RATag = random_access_iterator_tag; 24952: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 24952: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 24952: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 24952: if (_RAIters()) 24952: { 24952: auto __d1 = std::distance(__first1, __last1); 24952: auto __d2 = std::distance(__first2, __last2); 24952: if (__d1 != __d2) 24952: return false; 24952: return std::equal(__first1, __last1, __first2, 24952: __binary_pred); 24952: } 24952: 24952: for (; __first1 != __last1 && __first2 != __last2; 24952: ++__first1, (void)++__first2) 24952: if (!bool(__binary_pred(*__first1, *__first2))) 24952: return false; 24952: return __first1 == __last1 && __first2 == __last2; 24952: } 24952: # 1665 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline bool 24952: equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__equal4(__first1, __last1, __first2, __last2); 24952: } 24952: # 1698 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline bool 24952: equal(_IIter1 __first1, _IIter1 __last1, 24952: _IIter2 __first2, _IIter2 __last2, _BinaryPredicate __binary_pred) 24952: { 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__equal4(__first1, __last1, __first2, __last2, 24952: __binary_pred); 24952: } 24952: # 1730 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline bool 24952: lexicographical_compare(_II1 __first1, _II1 __last1, 24952: _II2 __first2, _II2 __last2) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__lexicographical_compare_aux(__first1, __last1, 24952: __first2, __last2); 24952: } 24952: # 1765 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline bool 24952: lexicographical_compare(_II1 __first1, _II1 __last1, 24952: _II2 __first2, _II2 __last2, _Compare __comp) 24952: { 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__lexicographical_compare_impl 24952: (__first1, __last1, __first2, __last2, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: # 1877 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: pair<_InputIterator1, _InputIterator2> 24952: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 24952: { 24952: while (__first1 != __last1 && __binary_pred(__first1, __first2)) 24952: { 24952: ++__first1; 24952: ++__first2; 24952: } 24952: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 24952: } 24952: # 1905 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline pair<_InputIterator1, _InputIterator2> 24952: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__mismatch(__first1, __last1, __first2, 24952: __gnu_cxx::__ops::__iter_equal_to_iter()); 24952: } 24952: # 1939 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline pair<_InputIterator1, _InputIterator2> 24952: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 24952: { 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__mismatch(__first1, __last1, __first2, 24952: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 24952: } 24952: 24952: 24952: 24952: template 24952: 24952: pair<_InputIterator1, _InputIterator2> 24952: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _BinaryPredicate __binary_pred) 24952: { 24952: while (__first1 != __last1 && __first2 != __last2 24952: && __binary_pred(__first1, __first2)) 24952: { 24952: ++__first1; 24952: ++__first2; 24952: } 24952: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 24952: } 24952: # 1988 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline pair<_InputIterator1, _InputIterator2> 24952: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__mismatch(__first1, __last1, __first2, __last2, 24952: __gnu_cxx::__ops::__iter_equal_to_iter()); 24952: } 24952: # 2024 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline pair<_InputIterator1, _InputIterator2> 24952: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _BinaryPredicate __binary_pred) 24952: { 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__mismatch(__first1, __last1, __first2, __last2, 24952: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: inline _InputIterator 24952: __find_if(_InputIterator __first, _InputIterator __last, 24952: _Predicate __pred, input_iterator_tag) 24952: { 24952: while (__first != __last && !__pred(__first)) 24952: ++__first; 24952: return __first; 24952: } 24952: 24952: 24952: template 24952: 24952: _RandomAccessIterator 24952: __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _Predicate __pred, random_access_iterator_tag) 24952: { 24952: typename iterator_traits<_RandomAccessIterator>::difference_type 24952: __trip_count = (__last - __first) >> 2; 24952: 24952: for (; __trip_count > 0; --__trip_count) 24952: { 24952: if (__pred(__first)) 24952: return __first; 24952: ++__first; 24952: 24952: if (__pred(__first)) 24952: return __first; 24952: ++__first; 24952: 24952: if (__pred(__first)) 24952: return __first; 24952: ++__first; 24952: 24952: if (__pred(__first)) 24952: return __first; 24952: ++__first; 24952: } 24952: 24952: switch (__last - __first) 24952: { 24952: case 3: 24952: if (__pred(__first)) 24952: return __first; 24952: ++__first; 24952: 24952: case 2: 24952: if (__pred(__first)) 24952: return __first; 24952: ++__first; 24952: 24952: case 1: 24952: if (__pred(__first)) 24952: return __first; 24952: ++__first; 24952: 24952: case 0: 24952: default: 24952: return __last; 24952: } 24952: } 24952: 24952: template 24952: 24952: inline _Iterator 24952: __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) 24952: { 24952: return __find_if(__first, __last, __pred, 24952: std::__iterator_category(__first)); 24952: } 24952: 24952: template 24952: 24952: typename iterator_traits<_InputIterator>::difference_type 24952: __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 24952: { 24952: typename iterator_traits<_InputIterator>::difference_type __n = 0; 24952: for (; __first != __last; ++__first) 24952: if (__pred(__first)) 24952: ++__n; 24952: return __n; 24952: } 24952: 24952: template 24952: 24952: _ForwardIterator 24952: __remove_if(_ForwardIterator __first, _ForwardIterator __last, 24952: _Predicate __pred) 24952: { 24952: __first = std::__find_if(__first, __last, __pred); 24952: if (__first == __last) 24952: return __first; 24952: _ForwardIterator __result = __first; 24952: ++__first; 24952: for (; __first != __last; ++__first) 24952: if (!__pred(__first)) 24952: { 24952: *__result = std::move(*__first); 24952: ++__result; 24952: } 24952: return __result; 24952: } 24952: 24952: 24952: template 24952: 24952: bool 24952: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _BinaryPredicate __pred) 24952: { 24952: 24952: 24952: for (; __first1 != __last1; ++__first1, (void)++__first2) 24952: if (!__pred(__first1, __first2)) 24952: break; 24952: 24952: if (__first1 == __last1) 24952: return true; 24952: 24952: 24952: 24952: _ForwardIterator2 __last2 = __first2; 24952: std::advance(__last2, std::distance(__first1, __last1)); 24952: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 24952: { 24952: if (__scan != std::__find_if(__first1, __scan, 24952: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 24952: continue; 24952: 24952: auto __matches 24952: = std::__count_if(__first2, __last2, 24952: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 24952: if (0 == __matches || 24952: std::__count_if(__scan, __last1, 24952: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 24952: != __matches) 24952: return false; 24952: } 24952: return true; 24952: } 24952: # 2201 "/usr/include/c++/13/bits/stl_algobase.h" 3 24952: template 24952: 24952: inline bool 24952: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__is_permutation(__first1, __last1, __first2, 24952: __gnu_cxx::__ops::__iter_equal_to_iter()); 24952: } 24952: 24952: 24952: 24952: } 24952: # 63 "/usr/include/c++/13/deque" 2 3 24952: # 1 "/usr/include/c++/13/bits/allocator.h" 1 3 24952: # 46 "/usr/include/c++/13/bits/allocator.h" 3 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++allocator.h" 1 3 24952: # 33 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++allocator.h" 3 24952: # 1 "/usr/include/c++/13/bits/new_allocator.h" 1 3 24952: # 41 "/usr/include/c++/13/bits/new_allocator.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 62 "/usr/include/c++/13/bits/new_allocator.h" 3 24952: template 24952: class __new_allocator 24952: { 24952: public: 24952: typedef _Tp value_type; 24952: typedef std::size_t size_type; 24952: typedef std::ptrdiff_t difference_type; 24952: 24952: typedef _Tp* pointer; 24952: typedef const _Tp* const_pointer; 24952: typedef _Tp& reference; 24952: typedef const _Tp& const_reference; 24952: 24952: template 24952: struct rebind 24952: { typedef __new_allocator<_Tp1> other; }; 24952: 24952: 24952: 24952: 24952: 24952: typedef std::true_type propagate_on_container_move_assignment; 24952: 24952: 24952: __attribute__((__always_inline__)) 24952: 24952: __new_allocator() noexcept { } 24952: 24952: __attribute__((__always_inline__)) 24952: 24952: __new_allocator(const __new_allocator&) noexcept { } 24952: 24952: template 24952: __attribute__((__always_inline__)) 24952: 24952: __new_allocator(const __new_allocator<_Tp1>&) noexcept { } 24952: 24952: 24952: __new_allocator& operator=(const __new_allocator&) = default; 24952: 24952: 24952: 24952: ~__new_allocator() noexcept { } 24952: 24952: pointer 24952: address(reference __x) const noexcept 24952: { return std::__addressof(__x); } 24952: 24952: const_pointer 24952: address(const_reference __x) const noexcept 24952: { return std::__addressof(__x); } 24952: # 125 "/usr/include/c++/13/bits/new_allocator.h" 3 24952: [[__nodiscard__]] _Tp* 24952: allocate(size_type __n, const void* = static_cast(0)) 24952: { 24952: 24952: 24952: 24952: static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types"); 24952: 24952: 24952: if (__builtin_expect(__n > this->_M_max_size(), false)) 24952: { 24952: 24952: 24952: if (__n > (std::size_t(-1) / sizeof(_Tp))) 24952: std::__throw_bad_array_new_length(); 24952: std::__throw_bad_alloc(); 24952: } 24952: 24952: 24952: if (alignof(_Tp) > 8) 24952: { 24952: std::align_val_t __al = std::align_val_t(alignof(_Tp)); 24952: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), 24952: __al)); 24952: } 24952: 24952: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); 24952: } 24952: 24952: 24952: void 24952: deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: if (alignof(_Tp) > 8) 24952: { 24952: ::operator delete((__p), (__n) * sizeof(_Tp), 24952: std::align_val_t(alignof(_Tp))); 24952: return; 24952: } 24952: 24952: ::operator delete((__p), (__n) * sizeof(_Tp)); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__((__always_inline__)) 24952: size_type 24952: max_size() const noexcept 24952: { return _M_max_size(); } 24952: 24952: 24952: template 24952: __attribute__((__always_inline__)) 24952: void 24952: construct(_Up* __p, _Args&&... __args) 24952: noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) 24952: { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } 24952: 24952: template 24952: __attribute__((__always_inline__)) 24952: void 24952: destroy(_Up* __p) 24952: noexcept(std::is_nothrow_destructible<_Up>::value) 24952: { __p->~_Up(); } 24952: # 213 "/usr/include/c++/13/bits/new_allocator.h" 3 24952: template 24952: friend __attribute__((__always_inline__)) bool 24952: operator==(const __new_allocator&, const __new_allocator<_Up>&) 24952: noexcept 24952: { return true; } 24952: 24952: 24952: template 24952: friend __attribute__((__always_inline__)) bool 24952: operator!=(const __new_allocator&, const __new_allocator<_Up>&) 24952: noexcept 24952: { return false; } 24952: 24952: 24952: private: 24952: __attribute__((__always_inline__)) 24952: constexpr size_type 24952: _M_max_size() const noexcept 24952: { 24952: 24952: return std::size_t(0x7fffffff) / sizeof(_Tp); 24952: 24952: 24952: 24952: } 24952: }; 24952: 24952: 24952: } 24952: # 34 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++allocator.h" 2 3 24952: 24952: 24952: namespace std 24952: { 24952: # 46 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++allocator.h" 3 24952: template 24952: using __allocator_base = __new_allocator<_Tp>; 24952: } 24952: # 47 "/usr/include/c++/13/bits/allocator.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/memoryfwd.h" 1 3 24952: # 46 "/usr/include/c++/13/bits/memoryfwd.h" 3 24952: 24952: # 47 "/usr/include/c++/13/bits/memoryfwd.h" 3 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 64 "/usr/include/c++/13/bits/memoryfwd.h" 3 24952: template 24952: class allocator; 24952: 24952: template<> 24952: class allocator; 24952: 24952: 24952: 24952: 24952: template 24952: struct uses_allocator; 24952: 24952: template 24952: struct allocator_traits; 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 48 "/usr/include/c++/13/bits/allocator.h" 2 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 74 "/usr/include/c++/13/bits/allocator.h" 3 24952: template<> 24952: class allocator 24952: { 24952: public: 24952: typedef void value_type; 24952: typedef size_t size_type; 24952: typedef ptrdiff_t difference_type; 24952: 24952: 24952: 24952: typedef void* pointer; 24952: typedef const void* const_pointer; 24952: 24952: template 24952: struct rebind 24952: { typedef allocator<_Tp1> other; }; 24952: 24952: 24952: 24952: 24952: 24952: using propagate_on_container_move_assignment = true_type; 24952: 24952: using is_always_equal 24952: 24952: = true_type; 24952: # 117 "/usr/include/c++/13/bits/allocator.h" 3 24952: }; 24952: # 129 "/usr/include/c++/13/bits/allocator.h" 3 24952: template 24952: class allocator : public __allocator_base<_Tp> 24952: { 24952: public: 24952: typedef _Tp value_type; 24952: typedef size_t size_type; 24952: typedef ptrdiff_t difference_type; 24952: 24952: 24952: 24952: typedef _Tp* pointer; 24952: typedef const _Tp* const_pointer; 24952: typedef _Tp& reference; 24952: typedef const _Tp& const_reference; 24952: 24952: template 24952: struct rebind 24952: { typedef allocator<_Tp1> other; }; 24952: 24952: 24952: 24952: 24952: 24952: using propagate_on_container_move_assignment = true_type; 24952: 24952: using is_always_equal 24952: 24952: = true_type; 24952: 24952: 24952: 24952: 24952: __attribute__((__always_inline__)) 24952: 24952: allocator() noexcept { } 24952: 24952: __attribute__((__always_inline__)) 24952: 24952: allocator(const allocator& __a) noexcept 24952: : __allocator_base<_Tp>(__a) { } 24952: 24952: 24952: 24952: allocator& operator=(const allocator&) = default; 24952: 24952: 24952: template 24952: __attribute__((__always_inline__)) 24952: 24952: allocator(const allocator<_Tp1>&) noexcept { } 24952: 24952: __attribute__((__always_inline__)) 24952: 24952: 24952: 24952: ~allocator() noexcept { } 24952: # 214 "/usr/include/c++/13/bits/allocator.h" 3 24952: friend __attribute__((__always_inline__)) 24952: bool 24952: operator==(const allocator&, const allocator&) noexcept 24952: { return true; } 24952: 24952: 24952: friend __attribute__((__always_inline__)) 24952: bool 24952: operator!=(const allocator&, const allocator&) noexcept 24952: { return false; } 24952: 24952: 24952: 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: __attribute__((__always_inline__)) 24952: inline bool 24952: operator==(const allocator<_T1>&, const allocator<_T2>&) 24952: noexcept 24952: { return true; } 24952: 24952: 24952: template 24952: __attribute__((__always_inline__)) 24952: inline bool 24952: operator!=(const allocator<_T1>&, const allocator<_T2>&) 24952: noexcept 24952: { return false; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: class allocator 24952: { 24952: public: 24952: typedef _Tp value_type; 24952: template allocator(const allocator<_Up>&) { } 24952: }; 24952: 24952: template 24952: class allocator 24952: { 24952: public: 24952: typedef _Tp value_type; 24952: template allocator(const allocator<_Up>&) { } 24952: }; 24952: 24952: template 24952: class allocator 24952: { 24952: public: 24952: typedef _Tp value_type; 24952: template allocator(const allocator<_Up>&) { } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern template class allocator; 24952: extern template class allocator; 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 64 "/usr/include/c++/13/deque" 2 3 24952: # 1 "/usr/include/c++/13/bits/stl_construct.h" 1 3 24952: # 73 "/usr/include/c++/13/bits/stl_construct.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: inline void 24952: destroy_at(_Tp* __location) 24952: { 24952: if constexpr (201703L > 201703L && is_array_v<_Tp>) 24952: { 24952: for (auto& __x : *__location) 24952: std::destroy_at(std::__addressof(__x)); 24952: } 24952: else 24952: __location->~_Tp(); 24952: } 24952: # 106 "/usr/include/c++/13/bits/stl_construct.h" 3 24952: template 24952: 24952: inline void 24952: _Construct(_Tp* __p, _Args&&... __args) 24952: { 24952: # 119 "/usr/include/c++/13/bits/stl_construct.h" 3 24952: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 24952: } 24952: # 132 "/usr/include/c++/13/bits/stl_construct.h" 3 24952: template 24952: inline void 24952: _Construct_novalue(_T1* __p) 24952: { ::new((void*)__p) _T1; } 24952: 24952: template 24952: void 24952: _Destroy(_ForwardIterator __first, _ForwardIterator __last); 24952: 24952: 24952: 24952: 24952: template 24952: constexpr inline void 24952: _Destroy(_Tp* __pointer) 24952: { 24952: 24952: 24952: 24952: __pointer->~_Tp(); 24952: 24952: } 24952: 24952: template 24952: struct _Destroy_aux 24952: { 24952: template 24952: static void 24952: __destroy(_ForwardIterator __first, _ForwardIterator __last) 24952: { 24952: for (; __first != __last; ++__first) 24952: std::_Destroy(std::__addressof(*__first)); 24952: } 24952: }; 24952: 24952: template<> 24952: struct _Destroy_aux 24952: { 24952: template 24952: static void 24952: __destroy(_ForwardIterator, _ForwardIterator) { } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline void 24952: _Destroy(_ForwardIterator __first, _ForwardIterator __last) 24952: { 24952: typedef typename iterator_traits<_ForwardIterator>::value_type 24952: _Value_type; 24952: 24952: 24952: static_assert(is_destructible<_Value_type>::value, 24952: "value type is destructible"); 24952: 24952: 24952: 24952: 24952: 24952: std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: 24952: __destroy(__first, __last); 24952: } 24952: 24952: template 24952: struct _Destroy_n_aux 24952: { 24952: template 24952: static _ForwardIterator 24952: __destroy_n(_ForwardIterator __first, _Size __count) 24952: { 24952: for (; __count > 0; (void)++__first, --__count) 24952: std::_Destroy(std::__addressof(*__first)); 24952: return __first; 24952: } 24952: }; 24952: 24952: template<> 24952: struct _Destroy_n_aux 24952: { 24952: template 24952: static _ForwardIterator 24952: __destroy_n(_ForwardIterator __first, _Size __count) 24952: { 24952: std::advance(__first, __count); 24952: return __first; 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline _ForwardIterator 24952: _Destroy_n(_ForwardIterator __first, _Size __count) 24952: { 24952: typedef typename iterator_traits<_ForwardIterator>::value_type 24952: _Value_type; 24952: 24952: 24952: static_assert(is_destructible<_Value_type>::value, 24952: "value type is destructible"); 24952: 24952: 24952: 24952: 24952: 24952: return std::_Destroy_n_aux<__has_trivial_destructor(_Value_type)>:: 24952: __destroy_n(__first, __count); 24952: } 24952: 24952: 24952: template 24952: inline void 24952: destroy(_ForwardIterator __first, _ForwardIterator __last) 24952: { 24952: std::_Destroy(__first, __last); 24952: } 24952: 24952: template 24952: inline _ForwardIterator 24952: destroy_n(_ForwardIterator __first, _Size __count) 24952: { 24952: return std::_Destroy_n(__first, __count); 24952: } 24952: 24952: 24952: 24952: } 24952: # 65 "/usr/include/c++/13/deque" 2 3 24952: # 1 "/usr/include/c++/13/bits/stl_uninitialized.h" 1 3 24952: # 64 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: # 1 "/usr/include/c++/13/ext/alloc_traits.h" 1 3 24952: # 32 "/usr/include/c++/13/ext/alloc_traits.h" 3 24952: 24952: # 33 "/usr/include/c++/13/ext/alloc_traits.h" 3 24952: 24952: # 1 "/usr/include/c++/13/bits/alloc_traits.h" 1 3 24952: # 43 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct __allocator_traits_base 24952: { 24952: template 24952: struct __rebind : __replace_first_arg<_Tp, _Up> 24952: { 24952: static_assert(is_same< 24952: typename __replace_first_arg<_Tp, typename _Tp::value_type>::type, 24952: _Tp>::value, 24952: "allocator_traits::rebind_alloc must be A"); 24952: }; 24952: 24952: template 24952: struct __rebind<_Tp, _Up, 24952: __void_t::other>> 24952: { 24952: using type = typename _Tp::template rebind<_Up>::other; 24952: 24952: static_assert(is_same< 24952: typename _Tp::template rebind::other, 24952: _Tp>::value, 24952: "allocator_traits::rebind_alloc must be A"); 24952: }; 24952: 24952: protected: 24952: template 24952: using __pointer = typename _Tp::pointer; 24952: template 24952: using __c_pointer = typename _Tp::const_pointer; 24952: template 24952: using __v_pointer = typename _Tp::void_pointer; 24952: template 24952: using __cv_pointer = typename _Tp::const_void_pointer; 24952: template 24952: using __pocca = typename _Tp::propagate_on_container_copy_assignment; 24952: template 24952: using __pocma = typename _Tp::propagate_on_container_move_assignment; 24952: template 24952: using __pocs = typename _Tp::propagate_on_container_swap; 24952: template 24952: using __equal = __type_identity; 24952: }; 24952: 24952: template 24952: using __alloc_rebind 24952: = typename __allocator_traits_base::template __rebind<_Alloc, _Up>::type; 24952: # 104 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: template 24952: struct allocator_traits : __allocator_traits_base 24952: { 24952: 24952: typedef _Alloc allocator_type; 24952: 24952: typedef typename _Alloc::value_type value_type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: using pointer = __detected_or_t; 24952: 24952: private: 24952: 24952: template class _Func, typename _Tp, typename = void> 24952: struct _Ptr 24952: { 24952: using type = typename pointer_traits::template rebind<_Tp>; 24952: }; 24952: 24952: template class _Func, typename _Tp> 24952: struct _Ptr<_Func, _Tp, __void_t<_Func<_Alloc>>> 24952: { 24952: using type = _Func<_Alloc>; 24952: }; 24952: 24952: 24952: template 24952: struct _Diff 24952: { using type = typename pointer_traits<_PtrT>::difference_type; }; 24952: 24952: template 24952: struct _Diff<_A2, _PtrT, __void_t> 24952: { using type = typename _A2::difference_type; }; 24952: 24952: 24952: template 24952: struct _Size : make_unsigned<_DiffT> { }; 24952: 24952: template 24952: struct _Size<_A2, _DiffT, __void_t> 24952: { using type = typename _A2::size_type; }; 24952: 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: 24952: using const_pointer = typename _Ptr<__c_pointer, const value_type>::type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: using void_pointer = typename _Ptr<__v_pointer, void>::type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: using const_void_pointer = typename _Ptr<__cv_pointer, const void>::type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: using difference_type = typename _Diff<_Alloc, pointer>::type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: using size_type = typename _Size<_Alloc, difference_type>::type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: using propagate_on_container_copy_assignment 24952: = __detected_or_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: using propagate_on_container_move_assignment 24952: = __detected_or_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: using propagate_on_container_swap 24952: = __detected_or_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: using is_always_equal 24952: = typename __detected_or_t, __equal, _Alloc>::type; 24952: 24952: template 24952: using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; 24952: template 24952: using rebind_traits = allocator_traits>; 24952: 24952: private: 24952: template 24952: static constexpr auto 24952: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer __hint, int) 24952: -> decltype(__a.allocate(__n, __hint)) 24952: { return __a.allocate(__n, __hint); } 24952: 24952: template 24952: static constexpr pointer 24952: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer, ...) 24952: { return __a.allocate(__n); } 24952: 24952: template 24952: struct __construct_helper 24952: { 24952: template()->construct( 24952: std::declval<_Tp*>(), std::declval<_Args>()...))> 24952: static true_type __test(int); 24952: 24952: template 24952: static false_type __test(...); 24952: 24952: using type = decltype(__test<_Alloc>(0)); 24952: }; 24952: 24952: template 24952: using __has_construct 24952: = typename __construct_helper<_Tp, _Args...>::type; 24952: 24952: template 24952: static constexpr _Require<__has_construct<_Tp, _Args...>> 24952: _S_construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 24952: noexcept(noexcept(__a.construct(__p, std::forward<_Args>(__args)...))) 24952: { __a.construct(__p, std::forward<_Args>(__args)...); } 24952: 24952: template 24952: static constexpr 24952: _Require<__and_<__not_<__has_construct<_Tp, _Args...>>, 24952: is_constructible<_Tp, _Args...>>> 24952: _S_construct(_Alloc&, _Tp* __p, _Args&&... __args) 24952: noexcept(std::is_nothrow_constructible<_Tp, _Args...>::value) 24952: { 24952: 24952: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 24952: 24952: 24952: 24952: } 24952: 24952: template 24952: static constexpr auto 24952: _S_destroy(_Alloc2& __a, _Tp* __p, int) 24952: noexcept(noexcept(__a.destroy(__p))) 24952: -> decltype(__a.destroy(__p)) 24952: { __a.destroy(__p); } 24952: 24952: template 24952: static constexpr void 24952: _S_destroy(_Alloc2&, _Tp* __p, ...) 24952: noexcept(std::is_nothrow_destructible<_Tp>::value) 24952: { std::_Destroy(__p); } 24952: 24952: template 24952: static constexpr auto 24952: _S_max_size(_Alloc2& __a, int) 24952: -> decltype(__a.max_size()) 24952: { return __a.max_size(); } 24952: 24952: template 24952: static constexpr size_type 24952: _S_max_size(_Alloc2&, ...) 24952: { 24952: 24952: 24952: return __gnu_cxx::__numeric_traits::__max 24952: / sizeof(value_type); 24952: } 24952: 24952: template 24952: static constexpr auto 24952: _S_select(_Alloc2& __a, int) 24952: -> decltype(__a.select_on_container_copy_construction()) 24952: { return __a.select_on_container_copy_construction(); } 24952: 24952: template 24952: static constexpr _Alloc2 24952: _S_select(_Alloc2& __a, ...) 24952: { return __a; } 24952: 24952: public: 24952: # 331 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: [[__nodiscard__]] static pointer 24952: allocate(_Alloc& __a, size_type __n) 24952: { return __a.allocate(__n); } 24952: # 346 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: [[__nodiscard__]] static pointer 24952: allocate(_Alloc& __a, size_type __n, const_void_pointer __hint) 24952: { return _S_allocate(__a, __n, __hint, 0); } 24952: # 358 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: static void 24952: deallocate(_Alloc& __a, pointer __p, size_type __n) 24952: { __a.deallocate(__p, __n); } 24952: # 373 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: template 24952: static auto 24952: construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 24952: noexcept(noexcept(_S_construct(__a, __p, 24952: std::forward<_Args>(__args)...))) 24952: -> decltype(_S_construct(__a, __p, std::forward<_Args>(__args)...)) 24952: { _S_construct(__a, __p, std::forward<_Args>(__args)...); } 24952: # 389 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: template 24952: static void 24952: destroy(_Alloc& __a, _Tp* __p) 24952: noexcept(noexcept(_S_destroy(__a, __p, 0))) 24952: { _S_destroy(__a, __p, 0); } 24952: # 403 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: static size_type 24952: max_size(const _Alloc& __a) noexcept 24952: { return _S_max_size(__a, 0); } 24952: # 415 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: static _Alloc 24952: select_on_container_copy_construction(const _Alloc& __rhs) 24952: { return _S_select(__rhs, 0); } 24952: }; 24952: # 427 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: template 24952: struct allocator_traits> 24952: { 24952: 24952: using allocator_type = allocator<_Tp>; 24952: 24952: 24952: using value_type = _Tp; 24952: 24952: 24952: using pointer = _Tp*; 24952: 24952: 24952: using const_pointer = const _Tp*; 24952: 24952: 24952: using void_pointer = void*; 24952: 24952: 24952: using const_void_pointer = const void*; 24952: 24952: 24952: using difference_type = std::ptrdiff_t; 24952: 24952: 24952: using size_type = std::size_t; 24952: 24952: 24952: using propagate_on_container_copy_assignment = false_type; 24952: 24952: 24952: using propagate_on_container_move_assignment = true_type; 24952: 24952: 24952: using propagate_on_container_swap = false_type; 24952: 24952: 24952: using is_always_equal = true_type; 24952: 24952: template 24952: using rebind_alloc = allocator<_Up>; 24952: 24952: template 24952: using rebind_traits = allocator_traits>; 24952: # 479 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: [[__nodiscard__,__gnu__::__always_inline__]] 24952: static pointer 24952: allocate(allocator_type& __a, size_type __n) 24952: { return __a.allocate(__n); } 24952: # 494 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: [[__nodiscard__,__gnu__::__always_inline__]] 24952: static pointer 24952: allocate(allocator_type& __a, size_type __n, 24952: [[maybe_unused]] const_void_pointer __hint) 24952: { 24952: 24952: return __a.allocate(__n, __hint); 24952: 24952: 24952: 24952: } 24952: # 514 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: [[__gnu__::__always_inline__]] 24952: static void 24952: deallocate(allocator_type& __a, pointer __p, size_type __n) 24952: { __a.deallocate(__p, __n); } 24952: # 530 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: template 24952: [[__gnu__::__always_inline__]] 24952: static void 24952: construct(allocator_type& __a __attribute__((__unused__)), _Up* __p, 24952: _Args&&... __args) 24952: noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) 24952: { 24952: 24952: __a.construct(__p, std::forward<_Args>(__args)...); 24952: 24952: 24952: 24952: } 24952: # 551 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: template 24952: [[__gnu__::__always_inline__]] 24952: static void 24952: destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p) 24952: noexcept(is_nothrow_destructible<_Up>::value) 24952: { 24952: 24952: __a.destroy(__p); 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__gnu__::__always_inline__]] 24952: static size_type 24952: max_size(const allocator_type& __a __attribute__((__unused__))) noexcept 24952: { 24952: 24952: return __a.max_size(); 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__gnu__::__always_inline__]] 24952: static allocator_type 24952: select_on_container_copy_construction(const allocator_type& __rhs) 24952: { return __rhs; } 24952: }; 24952: 24952: 24952: template<> 24952: struct allocator_traits> 24952: { 24952: 24952: using allocator_type = allocator; 24952: 24952: 24952: using value_type = void; 24952: 24952: 24952: using pointer = void*; 24952: 24952: 24952: using const_pointer = const void*; 24952: 24952: 24952: using void_pointer = void*; 24952: 24952: 24952: using const_void_pointer = const void*; 24952: 24952: 24952: using difference_type = std::ptrdiff_t; 24952: 24952: 24952: using size_type = std::size_t; 24952: 24952: 24952: using propagate_on_container_copy_assignment = false_type; 24952: 24952: 24952: using propagate_on_container_move_assignment = true_type; 24952: 24952: 24952: using propagate_on_container_swap = false_type; 24952: 24952: 24952: using is_always_equal = true_type; 24952: 24952: template 24952: using rebind_alloc = allocator<_Up>; 24952: 24952: template 24952: using rebind_traits = allocator_traits>; 24952: 24952: 24952: static void* 24952: allocate(allocator_type&, size_type, const void* = nullptr) = delete; 24952: 24952: 24952: static void 24952: deallocate(allocator_type&, void*, size_type) = delete; 24952: # 656 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: template 24952: [[__gnu__::__always_inline__]] 24952: static void 24952: construct(allocator_type&, _Up* __p, _Args&&... __args) 24952: noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) 24952: { std::_Construct(__p, std::forward<_Args>(__args)...); } 24952: # 670 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: template 24952: [[__gnu__::__always_inline__]] 24952: static void 24952: destroy(allocator_type&, _Up* __p) 24952: noexcept(is_nothrow_destructible<_Up>::value) 24952: { std::_Destroy(__p); } 24952: 24952: 24952: static size_type 24952: max_size(const allocator_type&) = delete; 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__gnu__::__always_inline__]] 24952: static allocator_type 24952: select_on_container_copy_construction(const allocator_type& __rhs) 24952: { return __rhs; } 24952: }; 24952: # 708 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: template 24952: [[__gnu__::__always_inline__]] 24952: constexpr inline void 24952: __alloc_on_copy(_Alloc& __one, const _Alloc& __two) 24952: { 24952: using __traits = allocator_traits<_Alloc>; 24952: using __pocca = 24952: typename __traits::propagate_on_container_copy_assignment::type; 24952: 24952: if constexpr (__pocca::value) 24952: __one = __two; 24952: 24952: 24952: 24952: } 24952: 24952: template 24952: [[__gnu__::__always_inline__]] 24952: constexpr _Alloc 24952: __alloc_on_copy(const _Alloc& __a) 24952: { 24952: typedef allocator_traits<_Alloc> __traits; 24952: return __traits::select_on_container_copy_construction(__a); 24952: } 24952: # 745 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: template 24952: [[__gnu__::__always_inline__]] 24952: constexpr inline void 24952: __alloc_on_move(_Alloc& __one, _Alloc& __two) 24952: { 24952: using __traits = allocator_traits<_Alloc>; 24952: using __pocma 24952: = typename __traits::propagate_on_container_move_assignment::type; 24952: 24952: if constexpr (__pocma::value) 24952: __one = std::move(__two); 24952: 24952: 24952: 24952: } 24952: # 776 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: template 24952: [[__gnu__::__always_inline__]] 24952: constexpr inline void 24952: __alloc_on_swap(_Alloc& __one, _Alloc& __two) 24952: { 24952: using __traits = allocator_traits<_Alloc>; 24952: using __pocs = typename __traits::propagate_on_container_swap::type; 24952: 24952: if constexpr (__pocs::value) 24952: { 24952: using std::swap; 24952: swap(__one, __two); 24952: } 24952: 24952: 24952: 24952: } 24952: 24952: template, 24952: typename = void> 24952: struct __is_alloc_insertable_impl 24952: : false_type 24952: { }; 24952: 24952: template 24952: struct __is_alloc_insertable_impl<_Alloc, _Tp, _ValueT, 24952: __void_t::construct( 24952: std::declval<_Alloc&>(), std::declval<_ValueT*>(), 24952: std::declval<_Tp>()))>> 24952: : true_type 24952: { }; 24952: 24952: 24952: 24952: 24952: template 24952: struct __is_copy_insertable 24952: : __is_alloc_insertable_impl<_Alloc, 24952: typename _Alloc::value_type const&>::type 24952: { }; 24952: 24952: 24952: 24952: template 24952: struct __is_copy_insertable> 24952: : is_copy_constructible<_Tp> 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __is_move_insertable 24952: : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type>::type 24952: { }; 24952: 24952: 24952: 24952: template 24952: struct __is_move_insertable> 24952: : is_move_constructible<_Tp> 24952: { }; 24952: 24952: 24952: 24952: template 24952: struct __is_allocator : false_type { }; 24952: 24952: template 24952: struct __is_allocator<_Alloc, 24952: __void_t().allocate(size_t{}))>> 24952: : true_type { }; 24952: 24952: template 24952: using _RequireAllocator 24952: = typename enable_if<__is_allocator<_Alloc>::value, _Alloc>::type; 24952: 24952: template 24952: using _RequireNotAllocator 24952: = typename enable_if::value, _Alloc>::type; 24952: # 873 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: template 24952: struct __alloc_swap 24952: { static void _S_do_it(_Alloc&, _Alloc&) noexcept { } }; 24952: 24952: template 24952: struct __alloc_swap<_Alloc, false> 24952: { 24952: static void 24952: _S_do_it(_Alloc& __one, _Alloc& __two) noexcept 24952: { 24952: 24952: if (__one != __two) 24952: swap(__one, __two); 24952: } 24952: }; 24952: 24952: 24952: template, 24952: is_nothrow_move_constructible>::value> 24952: struct __shrink_to_fit_aux 24952: { static bool _S_do_it(_Tp&) noexcept { return false; } }; 24952: 24952: template 24952: struct __shrink_to_fit_aux<_Tp, true> 24952: { 24952: 24952: static bool 24952: _S_do_it(_Tp& __c) noexcept 24952: { 24952: 24952: try 24952: { 24952: _Tp(__make_move_if_noexcept_iterator(__c.begin()), 24952: __make_move_if_noexcept_iterator(__c.end()), 24952: __c.get_allocator()).swap(__c); 24952: return true; 24952: } 24952: catch(...) 24952: { return false; } 24952: 24952: 24952: 24952: } 24952: }; 24952: # 926 "/usr/include/c++/13/bits/alloc_traits.h" 3 24952: template 24952: 24952: void 24952: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 24952: _Allocator& __alloc) 24952: { 24952: for (; __first != __last; ++__first) 24952: 24952: 24952: 24952: allocator_traits<_Allocator>::destroy(__alloc, 24952: std::__addressof(*__first)); 24952: 24952: } 24952: 24952: 24952: template 24952: __attribute__((__always_inline__)) 24952: inline void 24952: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 24952: allocator<_Tp>&) 24952: { 24952: std::_Destroy(__first, __last); 24952: } 24952: 24952: 24952: 24952: 24952: } 24952: # 35 "/usr/include/c++/13/ext/alloc_traits.h" 2 3 24952: 24952: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __alloc_traits 24952: 24952: : std::allocator_traits<_Alloc> 24952: 24952: { 24952: typedef _Alloc allocator_type; 24952: 24952: typedef std::allocator_traits<_Alloc> _Base_type; 24952: typedef typename _Base_type::value_type value_type; 24952: typedef typename _Base_type::pointer pointer; 24952: typedef typename _Base_type::const_pointer const_pointer; 24952: typedef typename _Base_type::size_type size_type; 24952: typedef typename _Base_type::difference_type difference_type; 24952: 24952: typedef value_type& reference; 24952: typedef const value_type& const_reference; 24952: using _Base_type::allocate; 24952: using _Base_type::deallocate; 24952: using _Base_type::construct; 24952: using _Base_type::destroy; 24952: using _Base_type::max_size; 24952: 24952: private: 24952: template 24952: using __is_custom_pointer 24952: = std::__and_, 24952: std::__not_>>; 24952: 24952: public: 24952: 24952: template 24952: [[__gnu__::__always_inline__]] 24952: static constexpr 24952: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 24952: construct(_Alloc& __a, _Ptr __p, _Args&&... __args) 24952: noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), 24952: std::forward<_Args>(__args)...))) 24952: { 24952: _Base_type::construct(__a, std::__to_address(__p), 24952: std::forward<_Args>(__args)...); 24952: } 24952: 24952: 24952: template 24952: [[__gnu__::__always_inline__]] 24952: static constexpr 24952: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 24952: destroy(_Alloc& __a, _Ptr __p) 24952: noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p)))) 24952: { _Base_type::destroy(__a, std::__to_address(__p)); } 24952: 24952: [[__gnu__::__always_inline__]] 24952: static constexpr _Alloc _S_select_on_copy(const _Alloc& __a) 24952: { return _Base_type::select_on_container_copy_construction(__a); } 24952: 24952: [[__gnu__::__always_inline__]] 24952: static constexpr void _S_on_swap(_Alloc& __a, _Alloc& __b) 24952: { std::__alloc_on_swap(__a, __b); } 24952: 24952: [[__gnu__::__always_inline__]] 24952: static constexpr bool _S_propagate_on_copy_assign() 24952: { return _Base_type::propagate_on_container_copy_assignment::value; } 24952: 24952: [[__gnu__::__always_inline__]] 24952: static constexpr bool _S_propagate_on_move_assign() 24952: { return _Base_type::propagate_on_container_move_assignment::value; } 24952: 24952: [[__gnu__::__always_inline__]] 24952: static constexpr bool _S_propagate_on_swap() 24952: { return _Base_type::propagate_on_container_swap::value; } 24952: 24952: [[__gnu__::__always_inline__]] 24952: static constexpr bool _S_always_equal() 24952: { return _Base_type::is_always_equal::value; } 24952: 24952: __attribute__((__always_inline__)) 24952: static constexpr bool _S_nothrow_move() 24952: { return _S_propagate_on_move_assign() || _S_always_equal(); } 24952: 24952: template 24952: struct rebind 24952: { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; 24952: # 180 "/usr/include/c++/13/ext/alloc_traits.h" 3 24952: }; 24952: 24952: 24952: } 24952: # 65 "/usr/include/c++/13/bits/stl_uninitialized.h" 2 3 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 81 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: constexpr bool 24952: __check_constructible() 24952: { 24952: 24952: 24952: 24952: 24952: 24952: static_assert(is_constructible<_ValueType, _Tp>::value, 24952: "result type must be constructible from input type"); 24952: 24952: return true; 24952: } 24952: # 110 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: 24952: _ForwardIterator 24952: __do_uninit_copy(_InputIterator __first, _InputIterator __last, 24952: _ForwardIterator __result) 24952: { 24952: _ForwardIterator __cur = __result; 24952: try 24952: { 24952: for (; __first != __last; ++__first, (void)++__cur) 24952: std::_Construct(std::__addressof(*__cur), *__first); 24952: return __cur; 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__result, __cur); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: struct __uninitialized_copy 24952: { 24952: template 24952: static _ForwardIterator 24952: __uninit_copy(_InputIterator __first, _InputIterator __last, 24952: _ForwardIterator __result) 24952: { return std::__do_uninit_copy(__first, __last, __result); } 24952: }; 24952: 24952: template<> 24952: struct __uninitialized_copy 24952: { 24952: template 24952: static _ForwardIterator 24952: __uninit_copy(_InputIterator __first, _InputIterator __last, 24952: _ForwardIterator __result) 24952: { return std::copy(__first, __last, __result); } 24952: }; 24952: # 161 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: inline _ForwardIterator 24952: uninitialized_copy(_InputIterator __first, _InputIterator __last, 24952: _ForwardIterator __result) 24952: { 24952: typedef typename iterator_traits<_InputIterator>::value_type 24952: _ValueType1; 24952: typedef typename iterator_traits<_ForwardIterator>::value_type 24952: _ValueType2; 24952: 24952: 24952: 24952: 24952: const bool __can_memmove = __is_trivial(_ValueType1); 24952: 24952: 24952: 24952: 24952: using _From = decltype(*__first); 24952: 24952: const bool __assignable 24952: = __is_trivial(_ValueType2) && __is_assignable(_ValueType2&, _From) && std::__check_constructible<_ValueType2, _From>(); 24952: 24952: return std::__uninitialized_copy<__can_memmove && __assignable>:: 24952: __uninit_copy(__first, __last, __result); 24952: } 24952: 24952: 24952: 24952: template 24952: void 24952: __do_uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __x) 24952: { 24952: _ForwardIterator __cur = __first; 24952: try 24952: { 24952: for (; __cur != __last; ++__cur) 24952: std::_Construct(std::__addressof(*__cur), __x); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__first, __cur); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: struct __uninitialized_fill 24952: { 24952: template 24952: static void 24952: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __x) 24952: { std::__do_uninit_fill(__first, __last, __x); } 24952: }; 24952: 24952: template<> 24952: struct __uninitialized_fill 24952: { 24952: template 24952: static void 24952: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __x) 24952: { std::fill(__first, __last, __x); } 24952: }; 24952: # 239 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: inline void 24952: uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __x) 24952: { 24952: typedef typename iterator_traits<_ForwardIterator>::value_type 24952: _ValueType; 24952: 24952: 24952: 24952: const bool __can_fill 24952: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>(); 24952: 24952: std::__uninitialized_fill<__can_fill>:: 24952: __uninit_fill(__first, __last, __x); 24952: } 24952: 24952: 24952: 24952: template 24952: 24952: _ForwardIterator 24952: __do_uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 24952: { 24952: _ForwardIterator __cur = __first; 24952: try 24952: { 24952: for (; __n > 0; --__n, (void) ++__cur) 24952: std::_Construct(std::__addressof(*__cur), __x); 24952: return __cur; 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__first, __cur); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: struct __uninitialized_fill_n 24952: { 24952: template 24952: static _ForwardIterator 24952: __uninit_fill_n(_ForwardIterator __first, _Size __n, 24952: const _Tp& __x) 24952: { return std::__do_uninit_fill_n(__first, __n, __x); } 24952: }; 24952: 24952: template<> 24952: struct __uninitialized_fill_n 24952: { 24952: template 24952: static _ForwardIterator 24952: __uninit_fill_n(_ForwardIterator __first, _Size __n, 24952: const _Tp& __x) 24952: { return std::fill_n(__first, __n, __x); } 24952: }; 24952: # 310 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: inline _ForwardIterator 24952: uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 24952: { 24952: typedef typename iterator_traits<_ForwardIterator>::value_type 24952: _ValueType; 24952: 24952: 24952: 24952: const bool __can_fill 24952: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>() 24952: 24952: 24952: 24952: && __is_integer<_Size>::__value; 24952: 24952: return __uninitialized_fill_n<__can_fill>:: 24952: __uninit_fill_n(__first, __n, __x); 24952: } 24952: # 340 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: 24952: _ForwardIterator 24952: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 24952: _ForwardIterator __result, _Allocator& __alloc) 24952: { 24952: _ForwardIterator __cur = __result; 24952: try 24952: { 24952: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 24952: for (; __first != __last; ++__first, (void)++__cur) 24952: __traits::construct(__alloc, std::__addressof(*__cur), *__first); 24952: return __cur; 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__result, __cur, __alloc); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: template 24952: 24952: inline _ForwardIterator 24952: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 24952: _ForwardIterator __result, allocator<_Tp>&) 24952: { 24952: 24952: 24952: 24952: 24952: return std::uninitialized_copy(__first, __last, __result); 24952: } 24952: 24952: 24952: template 24952: 24952: inline _ForwardIterator 24952: __uninitialized_move_a(_InputIterator __first, _InputIterator __last, 24952: _ForwardIterator __result, _Allocator& __alloc) 24952: { 24952: return std::__uninitialized_copy_a(std::make_move_iterator(__first), 24952: std::make_move_iterator(__last), 24952: __result, __alloc); 24952: } 24952: 24952: template 24952: 24952: inline _ForwardIterator 24952: __uninitialized_move_if_noexcept_a(_InputIterator __first, 24952: _InputIterator __last, 24952: _ForwardIterator __result, 24952: _Allocator& __alloc) 24952: { 24952: return std::__uninitialized_copy_a 24952: (std::__make_move_if_noexcept_iterator(__first), 24952: std::__make_move_if_noexcept_iterator(__last), __result, __alloc); 24952: } 24952: 24952: template 24952: 24952: void 24952: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __x, _Allocator& __alloc) 24952: { 24952: _ForwardIterator __cur = __first; 24952: try 24952: { 24952: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 24952: for (; __cur != __last; ++__cur) 24952: __traits::construct(__alloc, std::__addressof(*__cur), __x); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__first, __cur, __alloc); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: template 24952: 24952: inline void 24952: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __x, allocator<_Tp2>&) 24952: { 24952: 24952: 24952: 24952: 24952: std::uninitialized_fill(__first, __last, __x); 24952: } 24952: 24952: 24952: template 24952: 24952: _ForwardIterator 24952: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 24952: const _Tp& __x, _Allocator& __alloc) 24952: { 24952: _ForwardIterator __cur = __first; 24952: try 24952: { 24952: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 24952: for (; __n > 0; --__n, (void) ++__cur) 24952: __traits::construct(__alloc, std::__addressof(*__cur), __x); 24952: return __cur; 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__first, __cur, __alloc); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: template 24952: 24952: inline _ForwardIterator 24952: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 24952: const _Tp& __x, allocator<_Tp2>&) 24952: { 24952: 24952: 24952: 24952: 24952: return std::uninitialized_fill_n(__first, __n, __x); 24952: } 24952: # 485 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: inline _ForwardIterator 24952: __uninitialized_copy_move(_InputIterator1 __first1, 24952: _InputIterator1 __last1, 24952: _InputIterator2 __first2, 24952: _InputIterator2 __last2, 24952: _ForwardIterator __result, 24952: _Allocator& __alloc) 24952: { 24952: _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, 24952: __result, 24952: __alloc); 24952: try 24952: { 24952: return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__result, __mid, __alloc); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline _ForwardIterator 24952: __uninitialized_move_copy(_InputIterator1 __first1, 24952: _InputIterator1 __last1, 24952: _InputIterator2 __first2, 24952: _InputIterator2 __last2, 24952: _ForwardIterator __result, 24952: _Allocator& __alloc) 24952: { 24952: _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, 24952: __result, 24952: __alloc); 24952: try 24952: { 24952: return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__result, __mid, __alloc); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: inline _ForwardIterator 24952: __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, 24952: const _Tp& __x, _InputIterator __first, 24952: _InputIterator __last, _Allocator& __alloc) 24952: { 24952: std::__uninitialized_fill_a(__result, __mid, __x, __alloc); 24952: try 24952: { 24952: return std::__uninitialized_move_a(__first, __last, __mid, __alloc); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__result, __mid, __alloc); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: inline void 24952: __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, 24952: _ForwardIterator __first2, 24952: _ForwardIterator __last2, const _Tp& __x, 24952: _Allocator& __alloc) 24952: { 24952: _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, 24952: __first2, 24952: __alloc); 24952: try 24952: { 24952: std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__first2, __mid2, __alloc); 24952: throw; 24952: } 24952: } 24952: # 592 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: struct __uninitialized_default_1 24952: { 24952: template 24952: static void 24952: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 24952: { 24952: _ForwardIterator __cur = __first; 24952: try 24952: { 24952: for (; __cur != __last; ++__cur) 24952: std::_Construct(std::__addressof(*__cur)); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__first, __cur); 24952: throw; 24952: } 24952: } 24952: }; 24952: 24952: template<> 24952: struct __uninitialized_default_1 24952: { 24952: template 24952: static void 24952: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 24952: { 24952: if (__first == __last) 24952: return; 24952: 24952: typename iterator_traits<_ForwardIterator>::value_type* __val 24952: = std::__addressof(*__first); 24952: std::_Construct(__val); 24952: if (++__first != __last) 24952: std::fill(__first, __last, *__val); 24952: } 24952: }; 24952: 24952: template 24952: struct __uninitialized_default_n_1 24952: { 24952: template 24952: 24952: static _ForwardIterator 24952: __uninit_default_n(_ForwardIterator __first, _Size __n) 24952: { 24952: _ForwardIterator __cur = __first; 24952: try 24952: { 24952: for (; __n > 0; --__n, (void) ++__cur) 24952: std::_Construct(std::__addressof(*__cur)); 24952: return __cur; 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__first, __cur); 24952: throw; 24952: } 24952: } 24952: }; 24952: 24952: template<> 24952: struct __uninitialized_default_n_1 24952: { 24952: template 24952: 24952: static _ForwardIterator 24952: __uninit_default_n(_ForwardIterator __first, _Size __n) 24952: { 24952: if (__n > 0) 24952: { 24952: typename iterator_traits<_ForwardIterator>::value_type* __val 24952: = std::__addressof(*__first); 24952: std::_Construct(__val); 24952: ++__first; 24952: __first = std::fill_n(__first, __n - 1, *__val); 24952: } 24952: return __first; 24952: } 24952: }; 24952: 24952: 24952: 24952: template 24952: inline void 24952: __uninitialized_default(_ForwardIterator __first, 24952: _ForwardIterator __last) 24952: { 24952: typedef typename iterator_traits<_ForwardIterator>::value_type 24952: _ValueType; 24952: 24952: const bool __assignable = is_copy_assignable<_ValueType>::value; 24952: 24952: std::__uninitialized_default_1<__is_trivial(_ValueType) 24952: && __assignable>:: 24952: __uninit_default(__first, __last); 24952: } 24952: 24952: 24952: 24952: template 24952: 24952: inline _ForwardIterator 24952: __uninitialized_default_n(_ForwardIterator __first, _Size __n) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef typename iterator_traits<_ForwardIterator>::value_type 24952: _ValueType; 24952: 24952: constexpr bool __can_fill 24952: = __and_, is_copy_assignable<_ValueType>>::value; 24952: 24952: return __uninitialized_default_n_1<__is_trivial(_ValueType) 24952: && __can_fill>:: 24952: __uninit_default_n(__first, __n); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: void 24952: __uninitialized_default_a(_ForwardIterator __first, 24952: _ForwardIterator __last, 24952: _Allocator& __alloc) 24952: { 24952: _ForwardIterator __cur = __first; 24952: try 24952: { 24952: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 24952: for (; __cur != __last; ++__cur) 24952: __traits::construct(__alloc, std::__addressof(*__cur)); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__first, __cur, __alloc); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: template 24952: inline void 24952: __uninitialized_default_a(_ForwardIterator __first, 24952: _ForwardIterator __last, 24952: allocator<_Tp>&) 24952: { std::__uninitialized_default(__first, __last); } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: _ForwardIterator 24952: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 24952: _Allocator& __alloc) 24952: { 24952: _ForwardIterator __cur = __first; 24952: try 24952: { 24952: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 24952: for (; __n > 0; --__n, (void) ++__cur) 24952: __traits::construct(__alloc, std::__addressof(*__cur)); 24952: return __cur; 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__first, __cur, __alloc); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: 24952: inline _ForwardIterator 24952: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 24952: allocator<_Tp>&) 24952: { return std::__uninitialized_default_n(__first, __n); } 24952: 24952: 24952: template 24952: struct __uninitialized_default_novalue_1 24952: { 24952: template 24952: static void 24952: __uninit_default_novalue(_ForwardIterator __first, 24952: _ForwardIterator __last) 24952: { 24952: _ForwardIterator __cur = __first; 24952: try 24952: { 24952: for (; __cur != __last; ++__cur) 24952: std::_Construct_novalue(std::__addressof(*__cur)); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__first, __cur); 24952: throw; 24952: } 24952: } 24952: }; 24952: 24952: template<> 24952: struct __uninitialized_default_novalue_1 24952: { 24952: template 24952: static void 24952: __uninit_default_novalue(_ForwardIterator, _ForwardIterator) 24952: { 24952: } 24952: }; 24952: 24952: template 24952: struct __uninitialized_default_novalue_n_1 24952: { 24952: template 24952: static _ForwardIterator 24952: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 24952: { 24952: _ForwardIterator __cur = __first; 24952: try 24952: { 24952: for (; __n > 0; --__n, (void) ++__cur) 24952: std::_Construct_novalue(std::__addressof(*__cur)); 24952: return __cur; 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__first, __cur); 24952: throw; 24952: } 24952: } 24952: }; 24952: 24952: template<> 24952: struct __uninitialized_default_novalue_n_1 24952: { 24952: template 24952: static _ForwardIterator 24952: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 24952: { return std::next(__first, __n); } 24952: }; 24952: 24952: 24952: 24952: template 24952: inline void 24952: __uninitialized_default_novalue(_ForwardIterator __first, 24952: _ForwardIterator __last) 24952: { 24952: typedef typename iterator_traits<_ForwardIterator>::value_type 24952: _ValueType; 24952: 24952: std::__uninitialized_default_novalue_1< 24952: is_trivially_default_constructible<_ValueType>::value>:: 24952: __uninit_default_novalue(__first, __last); 24952: } 24952: 24952: 24952: 24952: template 24952: inline _ForwardIterator 24952: __uninitialized_default_novalue_n(_ForwardIterator __first, _Size __n) 24952: { 24952: typedef typename iterator_traits<_ForwardIterator>::value_type 24952: _ValueType; 24952: 24952: return __uninitialized_default_novalue_n_1< 24952: is_trivially_default_constructible<_ValueType>::value>:: 24952: __uninit_default_novalue_n(__first, __n); 24952: } 24952: 24952: template 24952: _ForwardIterator 24952: __uninitialized_copy_n(_InputIterator __first, _Size __n, 24952: _ForwardIterator __result, input_iterator_tag) 24952: { 24952: _ForwardIterator __cur = __result; 24952: try 24952: { 24952: for (; __n > 0; --__n, (void) ++__first, ++__cur) 24952: std::_Construct(std::__addressof(*__cur), *__first); 24952: return __cur; 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__result, __cur); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: inline _ForwardIterator 24952: __uninitialized_copy_n(_RandomAccessIterator __first, _Size __n, 24952: _ForwardIterator __result, 24952: random_access_iterator_tag) 24952: { return std::uninitialized_copy(__first, __first + __n, __result); } 24952: 24952: template 24952: pair<_InputIterator, _ForwardIterator> 24952: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 24952: _ForwardIterator __result, input_iterator_tag) 24952: { 24952: _ForwardIterator __cur = __result; 24952: try 24952: { 24952: for (; __n > 0; --__n, (void) ++__first, ++__cur) 24952: std::_Construct(std::__addressof(*__cur), *__first); 24952: return {__first, __cur}; 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__result, __cur); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: inline pair<_RandomAccessIterator, _ForwardIterator> 24952: __uninitialized_copy_n_pair(_RandomAccessIterator __first, _Size __n, 24952: _ForwardIterator __result, 24952: random_access_iterator_tag) 24952: { 24952: auto __second_res = uninitialized_copy(__first, __first + __n, __result); 24952: auto __first_res = std::next(__first, __n); 24952: return {__first_res, __second_res}; 24952: } 24952: # 946 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: inline _ForwardIterator 24952: uninitialized_copy_n(_InputIterator __first, _Size __n, 24952: _ForwardIterator __result) 24952: { return std::__uninitialized_copy_n(__first, __n, __result, 24952: std::__iterator_category(__first)); } 24952: 24952: 24952: template 24952: inline pair<_InputIterator, _ForwardIterator> 24952: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 24952: _ForwardIterator __result) 24952: { 24952: return 24952: std::__uninitialized_copy_n_pair(__first, __n, __result, 24952: std::__iterator_category(__first)); 24952: } 24952: # 975 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: inline void 24952: uninitialized_default_construct(_ForwardIterator __first, 24952: _ForwardIterator __last) 24952: { 24952: __uninitialized_default_novalue(__first, __last); 24952: } 24952: # 990 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: inline _ForwardIterator 24952: uninitialized_default_construct_n(_ForwardIterator __first, _Size __count) 24952: { 24952: return __uninitialized_default_novalue_n(__first, __count); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline void 24952: uninitialized_value_construct(_ForwardIterator __first, 24952: _ForwardIterator __last) 24952: { 24952: return __uninitialized_default(__first, __last); 24952: } 24952: # 1018 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: inline _ForwardIterator 24952: uninitialized_value_construct_n(_ForwardIterator __first, _Size __count) 24952: { 24952: return __uninitialized_default_n(__first, __count); 24952: } 24952: # 1033 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: inline _ForwardIterator 24952: uninitialized_move(_InputIterator __first, _InputIterator __last, 24952: _ForwardIterator __result) 24952: { 24952: return std::uninitialized_copy 24952: (std::make_move_iterator(__first), 24952: std::make_move_iterator(__last), __result); 24952: } 24952: # 1051 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: template 24952: inline pair<_InputIterator, _ForwardIterator> 24952: uninitialized_move_n(_InputIterator __first, _Size __count, 24952: _ForwardIterator __result) 24952: { 24952: auto __res = std::__uninitialized_copy_n_pair 24952: (std::make_move_iterator(__first), 24952: __count, __result); 24952: return {__res.first.base(), __res.second}; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: inline void 24952: __relocate_object_a(_Tp* __restrict __dest, _Up* __restrict __orig, 24952: _Allocator& __alloc) 24952: noexcept(noexcept(std::allocator_traits<_Allocator>::construct(__alloc, 24952: __dest, std::move(*__orig))) 24952: && noexcept(std::allocator_traits<_Allocator>::destroy( 24952: __alloc, std::__addressof(*__orig)))) 24952: { 24952: typedef std::allocator_traits<_Allocator> __traits; 24952: __traits::construct(__alloc, __dest, std::move(*__orig)); 24952: __traits::destroy(__alloc, std::__addressof(*__orig)); 24952: } 24952: 24952: 24952: 24952: template 24952: struct __is_bitwise_relocatable 24952: : is_trivial<_Tp> { }; 24952: 24952: template 24952: 24952: inline _ForwardIterator 24952: __relocate_a_1(_InputIterator __first, _InputIterator __last, 24952: _ForwardIterator __result, _Allocator& __alloc) 24952: noexcept(noexcept(std::__relocate_object_a(std::addressof(*__result), 24952: std::addressof(*__first), 24952: __alloc))) 24952: { 24952: typedef typename iterator_traits<_InputIterator>::value_type 24952: _ValueType; 24952: typedef typename iterator_traits<_ForwardIterator>::value_type 24952: _ValueType2; 24952: static_assert(std::is_same<_ValueType, _ValueType2>::value, 24952: "relocation is only possible for values of the same type"); 24952: _ForwardIterator __cur = __result; 24952: for (; __first != __last; ++__first, (void)++__cur) 24952: std::__relocate_object_a(std::__addressof(*__cur), 24952: std::__addressof(*__first), __alloc); 24952: return __cur; 24952: } 24952: 24952: 24952: template 24952: 24952: inline __enable_if_t::value, _Tp*> 24952: __relocate_a_1(_Tp* __first, _Tp* __last, 24952: _Tp* __result, 24952: [[__maybe_unused__]] allocator<_Up>& __alloc) noexcept 24952: { 24952: ptrdiff_t __count = __last - __first; 24952: if (__count > 0) 24952: { 24952: # 1131 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 24952: __builtin_memmove(__result, __first, __count * sizeof(_Tp)); 24952: } 24952: return __result + __count; 24952: } 24952: 24952: 24952: template 24952: 24952: inline _ForwardIterator 24952: __relocate_a(_InputIterator __first, _InputIterator __last, 24952: _ForwardIterator __result, _Allocator& __alloc) 24952: noexcept(noexcept(__relocate_a_1(std::__niter_base(__first), 24952: std::__niter_base(__last), 24952: std::__niter_base(__result), __alloc))) 24952: { 24952: return std::__relocate_a_1(std::__niter_base(__first), 24952: std::__niter_base(__last), 24952: std::__niter_base(__result), __alloc); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 66 "/usr/include/c++/13/deque" 2 3 24952: # 1 "/usr/include/c++/13/bits/stl_deque.h" 1 3 24952: # 63 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: # 1 "/usr/include/c++/13/initializer_list" 1 3 24952: # 33 "/usr/include/c++/13/initializer_list" 3 24952: 24952: # 34 "/usr/include/c++/13/initializer_list" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: template 24952: class initializer_list 24952: { 24952: public: 24952: typedef _E value_type; 24952: typedef const _E& reference; 24952: typedef const _E& const_reference; 24952: typedef size_t size_type; 24952: typedef const _E* iterator; 24952: typedef const _E* const_iterator; 24952: 24952: private: 24952: iterator _M_array; 24952: size_type _M_len; 24952: 24952: 24952: constexpr initializer_list(const_iterator __a, size_type __l) 24952: : _M_array(__a), _M_len(__l) { } 24952: 24952: public: 24952: constexpr initializer_list() noexcept 24952: : _M_array(0), _M_len(0) { } 24952: 24952: 24952: constexpr size_type 24952: size() const noexcept { return _M_len; } 24952: 24952: 24952: constexpr const_iterator 24952: begin() const noexcept { return _M_array; } 24952: 24952: 24952: constexpr const_iterator 24952: end() const noexcept { return begin() + size(); } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: constexpr const _Tp* 24952: begin(initializer_list<_Tp> __ils) noexcept 24952: { return __ils.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: constexpr const _Tp* 24952: end(initializer_list<_Tp> __ils) noexcept 24952: { return __ils.end(); } 24952: } 24952: # 64 "/usr/include/c++/13/bits/stl_deque.h" 2 3 24952: # 72 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: # 95 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: constexpr inline size_t 24952: __deque_buf_size(size_t __size) 24952: { return (__size < 512 24952: ? size_t(512 / __size) : size_t(1)); } 24952: # 112 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template 24952: struct _Deque_iterator 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: private: 24952: template 24952: using __iter = _Deque_iterator<_Tp, _CvTp&, __ptr_rebind<_Ptr, _CvTp>>; 24952: public: 24952: typedef __iter<_Tp> iterator; 24952: typedef __iter const_iterator; 24952: typedef __ptr_rebind<_Ptr, _Tp> _Elt_pointer; 24952: typedef __ptr_rebind<_Ptr, _Elt_pointer> _Map_pointer; 24952: 24952: 24952: static size_t _S_buffer_size() noexcept 24952: { return __deque_buf_size(sizeof(_Tp)); } 24952: 24952: typedef std::random_access_iterator_tag iterator_category; 24952: typedef _Tp value_type; 24952: typedef _Ptr pointer; 24952: typedef _Ref reference; 24952: typedef size_t size_type; 24952: typedef ptrdiff_t difference_type; 24952: typedef _Deque_iterator _Self; 24952: 24952: _Elt_pointer _M_cur; 24952: _Elt_pointer _M_first; 24952: _Elt_pointer _M_last; 24952: _Map_pointer _M_node; 24952: 24952: _Deque_iterator(_Elt_pointer __x, _Map_pointer __y) noexcept 24952: : _M_cur(__x), _M_first(*__y), 24952: _M_last(*__y + _S_buffer_size()), _M_node(__y) { } 24952: 24952: _Deque_iterator() noexcept 24952: : _M_cur(), _M_first(), _M_last(), _M_node() { } 24952: # 161 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template, 24952: is_same<_Iter, iterator>>> 24952: _Deque_iterator(const _Iter& __x) noexcept 24952: : _M_cur(__x._M_cur), _M_first(__x._M_first), 24952: _M_last(__x._M_last), _M_node(__x._M_node) { } 24952: 24952: _Deque_iterator(const _Deque_iterator& __x) noexcept 24952: : _M_cur(__x._M_cur), _M_first(__x._M_first), 24952: _M_last(__x._M_last), _M_node(__x._M_node) { } 24952: 24952: _Deque_iterator& operator=(const _Deque_iterator&) = default; 24952: 24952: 24952: iterator 24952: _M_const_cast() const noexcept 24952: { return iterator(_M_cur, _M_node); } 24952: 24952: [[__nodiscard__]] 24952: reference 24952: operator*() const noexcept 24952: { return *_M_cur; } 24952: 24952: [[__nodiscard__]] 24952: pointer 24952: operator->() const noexcept 24952: { return _M_cur; } 24952: 24952: _Self& 24952: operator++() noexcept 24952: { 24952: ++_M_cur; 24952: if (_M_cur == _M_last) 24952: { 24952: _M_set_node(_M_node + 1); 24952: _M_cur = _M_first; 24952: } 24952: return *this; 24952: } 24952: 24952: _Self 24952: operator++(int) noexcept 24952: { 24952: _Self __tmp = *this; 24952: ++*this; 24952: return __tmp; 24952: } 24952: 24952: _Self& 24952: operator--() noexcept 24952: { 24952: if (_M_cur == _M_first) 24952: { 24952: _M_set_node(_M_node - 1); 24952: _M_cur = _M_last; 24952: } 24952: --_M_cur; 24952: return *this; 24952: } 24952: 24952: _Self 24952: operator--(int) noexcept 24952: { 24952: _Self __tmp = *this; 24952: --*this; 24952: return __tmp; 24952: } 24952: 24952: _Self& 24952: operator+=(difference_type __n) noexcept 24952: { 24952: const difference_type __offset = __n + (_M_cur - _M_first); 24952: if (__offset >= 0 && __offset < difference_type(_S_buffer_size())) 24952: _M_cur += __n; 24952: else 24952: { 24952: const difference_type __node_offset = 24952: __offset > 0 ? __offset / difference_type(_S_buffer_size()) 24952: : -difference_type((-__offset - 1) 24952: / _S_buffer_size()) - 1; 24952: _M_set_node(_M_node + __node_offset); 24952: _M_cur = _M_first + (__offset - __node_offset 24952: * difference_type(_S_buffer_size())); 24952: } 24952: return *this; 24952: } 24952: 24952: _Self& 24952: operator-=(difference_type __n) noexcept 24952: { return *this += -__n; } 24952: 24952: [[__nodiscard__]] 24952: reference 24952: operator[](difference_type __n) const noexcept 24952: { return *(*this + __n); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: _M_set_node(_Map_pointer __new_node) noexcept 24952: { 24952: _M_node = __new_node; 24952: _M_first = *__new_node; 24952: _M_last = _M_first + difference_type(_S_buffer_size()); 24952: } 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator==(const _Self& __x, const _Self& __y) noexcept 24952: { return __x._M_cur == __y._M_cur; } 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: friend bool 24952: operator==(const _Self& __x, 24952: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 24952: noexcept 24952: { return __x._M_cur == __y._M_cur; } 24952: # 296 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: [[__nodiscard__]] 24952: friend bool 24952: operator!=(const _Self& __x, const _Self& __y) noexcept 24952: { return !(__x == __y); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: friend bool 24952: operator!=(const _Self& __x, 24952: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 24952: noexcept 24952: { return !(__x == __y); } 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator<(const _Self& __x, const _Self& __y) noexcept 24952: { 24952: return (__x._M_node == __y._M_node) 24952: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 24952: } 24952: 24952: template 24952: [[__nodiscard__]] 24952: friend bool 24952: operator<(const _Self& __x, 24952: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 24952: noexcept 24952: { 24952: return (__x._M_node == __y._M_node) 24952: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 24952: } 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator>(const _Self& __x, const _Self& __y) noexcept 24952: { return __y < __x; } 24952: 24952: template 24952: [[__nodiscard__]] 24952: friend bool 24952: operator>(const _Self& __x, 24952: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 24952: noexcept 24952: { return __y < __x; } 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator<=(const _Self& __x, const _Self& __y) noexcept 24952: { return !(__y < __x); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: friend bool 24952: operator<=(const _Self& __x, 24952: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 24952: noexcept 24952: { return !(__y < __x); } 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator>=(const _Self& __x, const _Self& __y) noexcept 24952: { return !(__x < __y); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: friend bool 24952: operator>=(const _Self& __x, 24952: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 24952: noexcept 24952: { return !(__x < __y); } 24952: 24952: 24952: [[__nodiscard__]] 24952: friend difference_type 24952: operator-(const _Self& __x, const _Self& __y) noexcept 24952: { 24952: return difference_type(_S_buffer_size()) 24952: * (__x._M_node - __y._M_node - bool(__x._M_node)) 24952: + (__x._M_cur - __x._M_first) 24952: + (__y._M_last - __y._M_cur); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: friend difference_type 24952: operator-(const _Self& __x, 24952: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 24952: noexcept 24952: { 24952: return difference_type(_S_buffer_size()) 24952: * (__x._M_node - __y._M_node - bool(__x._M_node)) 24952: + (__x._M_cur - __x._M_first) 24952: + (__y._M_last - __y._M_cur); 24952: } 24952: 24952: [[__nodiscard__]] 24952: friend _Self 24952: operator+(const _Self& __x, difference_type __n) noexcept 24952: { 24952: _Self __tmp = __x; 24952: __tmp += __n; 24952: return __tmp; 24952: } 24952: 24952: [[__nodiscard__]] 24952: friend _Self 24952: operator-(const _Self& __x, difference_type __n) noexcept 24952: { 24952: _Self __tmp = __x; 24952: __tmp -= __n; 24952: return __tmp; 24952: } 24952: 24952: [[__nodiscard__]] 24952: friend _Self 24952: operator+(difference_type __n, const _Self& __x) noexcept 24952: { return __x + __n; } 24952: }; 24952: # 429 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template 24952: class _Deque_base 24952: { 24952: protected: 24952: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 24952: rebind<_Tp>::other _Tp_alloc_type; 24952: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 24952: 24952: 24952: 24952: 24952: 24952: typedef typename _Alloc_traits::pointer _Ptr; 24952: typedef typename _Alloc_traits::const_pointer _Ptr_const; 24952: 24952: 24952: typedef typename _Alloc_traits::template rebind<_Ptr>::other 24952: _Map_alloc_type; 24952: typedef __gnu_cxx::__alloc_traits<_Map_alloc_type> _Map_alloc_traits; 24952: 24952: typedef _Alloc allocator_type; 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return allocator_type(_M_get_Tp_allocator()); } 24952: 24952: typedef _Deque_iterator<_Tp, _Tp&, _Ptr> iterator; 24952: typedef _Deque_iterator<_Tp, const _Tp&, _Ptr_const> const_iterator; 24952: 24952: _Deque_base() 24952: : _M_impl() 24952: { _M_initialize_map(0); } 24952: 24952: _Deque_base(size_t __num_elements) 24952: : _M_impl() 24952: { _M_initialize_map(__num_elements); } 24952: 24952: _Deque_base(const allocator_type& __a, size_t __num_elements) 24952: : _M_impl(__a) 24952: { _M_initialize_map(__num_elements); } 24952: 24952: _Deque_base(const allocator_type& __a) 24952: : _M_impl(__a) 24952: { } 24952: 24952: 24952: _Deque_base(_Deque_base&& __x) 24952: : _M_impl(std::move(__x._M_get_Tp_allocator())) 24952: { 24952: _M_initialize_map(0); 24952: if (__x._M_impl._M_map) 24952: this->_M_impl._M_swap_data(__x._M_impl); 24952: } 24952: 24952: _Deque_base(_Deque_base&& __x, const allocator_type& __a) 24952: : _M_impl(std::move(__x._M_impl), _Tp_alloc_type(__a)) 24952: { __x._M_initialize_map(0); } 24952: 24952: _Deque_base(_Deque_base&& __x, const allocator_type& __a, size_t __n) 24952: : _M_impl(__a) 24952: { 24952: if (__x.get_allocator() == __a) 24952: { 24952: if (__x._M_impl._M_map) 24952: { 24952: _M_initialize_map(0); 24952: this->_M_impl._M_swap_data(__x._M_impl); 24952: } 24952: } 24952: else 24952: { 24952: _M_initialize_map(__n); 24952: } 24952: } 24952: 24952: 24952: ~_Deque_base() noexcept; 24952: 24952: typedef typename iterator::_Map_pointer _Map_pointer; 24952: 24952: struct _Deque_impl_data 24952: { 24952: _Map_pointer _M_map; 24952: size_t _M_map_size; 24952: iterator _M_start; 24952: iterator _M_finish; 24952: 24952: _Deque_impl_data() noexcept 24952: : _M_map(), _M_map_size(), _M_start(), _M_finish() 24952: { } 24952: 24952: 24952: _Deque_impl_data(const _Deque_impl_data&) = default; 24952: _Deque_impl_data& 24952: operator=(const _Deque_impl_data&) = default; 24952: 24952: _Deque_impl_data(_Deque_impl_data&& __x) noexcept 24952: : _Deque_impl_data(__x) 24952: { __x = _Deque_impl_data(); } 24952: 24952: 24952: void 24952: _M_swap_data(_Deque_impl_data& __x) noexcept 24952: { 24952: 24952: 24952: std::swap(*this, __x); 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: struct _Deque_impl 24952: : public _Tp_alloc_type, public _Deque_impl_data 24952: { 24952: _Deque_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 24952: 24952: : _Tp_alloc_type() 24952: { } 24952: 24952: _Deque_impl(const _Tp_alloc_type& __a) noexcept 24952: : _Tp_alloc_type(__a) 24952: { } 24952: 24952: 24952: _Deque_impl(_Deque_impl&&) = default; 24952: 24952: _Deque_impl(_Tp_alloc_type&& __a) noexcept 24952: : _Tp_alloc_type(std::move(__a)) 24952: { } 24952: 24952: _Deque_impl(_Deque_impl&& __d, _Tp_alloc_type&& __a) 24952: : _Tp_alloc_type(std::move(__a)), _Deque_impl_data(std::move(__d)) 24952: { } 24952: 24952: }; 24952: 24952: _Tp_alloc_type& 24952: _M_get_Tp_allocator() noexcept 24952: { return this->_M_impl; } 24952: 24952: const _Tp_alloc_type& 24952: _M_get_Tp_allocator() const noexcept 24952: { return this->_M_impl; } 24952: 24952: _Map_alloc_type 24952: _M_get_map_allocator() const noexcept 24952: { return _Map_alloc_type(_M_get_Tp_allocator()); } 24952: 24952: _Ptr 24952: _M_allocate_node() 24952: { 24952: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 24952: return _Traits::allocate(_M_impl, __deque_buf_size(sizeof(_Tp))); 24952: } 24952: 24952: void 24952: _M_deallocate_node(_Ptr __p) noexcept 24952: { 24952: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 24952: _Traits::deallocate(_M_impl, __p, __deque_buf_size(sizeof(_Tp))); 24952: } 24952: 24952: _Map_pointer 24952: _M_allocate_map(size_t __n) 24952: { 24952: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 24952: return _Map_alloc_traits::allocate(__map_alloc, __n); 24952: } 24952: 24952: void 24952: _M_deallocate_map(_Map_pointer __p, size_t __n) noexcept 24952: { 24952: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 24952: _Map_alloc_traits::deallocate(__map_alloc, __p, __n); 24952: } 24952: 24952: void _M_initialize_map(size_t); 24952: void _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish); 24952: void _M_destroy_nodes(_Map_pointer __nstart, 24952: _Map_pointer __nfinish) noexcept; 24952: enum { _S_initial_map_size = 8 }; 24952: 24952: _Deque_impl _M_impl; 24952: }; 24952: 24952: template 24952: _Deque_base<_Tp, _Alloc>:: 24952: ~_Deque_base() noexcept 24952: { 24952: if (this->_M_impl._M_map) 24952: { 24952: _M_destroy_nodes(this->_M_impl._M_start._M_node, 24952: this->_M_impl._M_finish._M_node + 1); 24952: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 24952: } 24952: } 24952: # 636 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template 24952: void 24952: _Deque_base<_Tp, _Alloc>:: 24952: _M_initialize_map(size_t __num_elements) 24952: { 24952: const size_t __num_nodes = (__num_elements / __deque_buf_size(sizeof(_Tp)) 24952: + 1); 24952: 24952: this->_M_impl._M_map_size = std::max((size_t) _S_initial_map_size, 24952: size_t(__num_nodes + 2)); 24952: this->_M_impl._M_map = _M_allocate_map(this->_M_impl._M_map_size); 24952: 24952: 24952: 24952: 24952: 24952: 24952: _Map_pointer __nstart = (this->_M_impl._M_map 24952: + (this->_M_impl._M_map_size - __num_nodes) / 2); 24952: _Map_pointer __nfinish = __nstart + __num_nodes; 24952: 24952: try 24952: { _M_create_nodes(__nstart, __nfinish); } 24952: catch(...) 24952: { 24952: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 24952: this->_M_impl._M_map = _Map_pointer(); 24952: this->_M_impl._M_map_size = 0; 24952: throw; 24952: } 24952: 24952: this->_M_impl._M_start._M_set_node(__nstart); 24952: this->_M_impl._M_finish._M_set_node(__nfinish - 1); 24952: this->_M_impl._M_start._M_cur = _M_impl._M_start._M_first; 24952: this->_M_impl._M_finish._M_cur = (this->_M_impl._M_finish._M_first 24952: + __num_elements 24952: % __deque_buf_size(sizeof(_Tp))); 24952: } 24952: 24952: template 24952: void 24952: _Deque_base<_Tp, _Alloc>:: 24952: _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish) 24952: { 24952: _Map_pointer __cur; 24952: try 24952: { 24952: for (__cur = __nstart; __cur < __nfinish; ++__cur) 24952: *__cur = this->_M_allocate_node(); 24952: } 24952: catch(...) 24952: { 24952: _M_destroy_nodes(__nstart, __cur); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: void 24952: _Deque_base<_Tp, _Alloc>:: 24952: _M_destroy_nodes(_Map_pointer __nstart, 24952: _Map_pointer __nfinish) noexcept 24952: { 24952: for (_Map_pointer __n = __nstart; __n < __nfinish; ++__n) 24952: _M_deallocate_node(*__n); 24952: } 24952: # 787 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template > 24952: class deque : protected _Deque_base<_Tp, _Alloc> 24952: { 24952: # 800 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: static_assert(is_same::type, _Tp>::value, 24952: "std::deque must have a non-const, non-volatile value_type"); 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef _Deque_base<_Tp, _Alloc> _Base; 24952: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 24952: typedef typename _Base::_Alloc_traits _Alloc_traits; 24952: typedef typename _Base::_Map_pointer _Map_pointer; 24952: 24952: public: 24952: typedef _Tp value_type; 24952: typedef typename _Alloc_traits::pointer pointer; 24952: typedef typename _Alloc_traits::const_pointer const_pointer; 24952: typedef typename _Alloc_traits::reference reference; 24952: typedef typename _Alloc_traits::const_reference const_reference; 24952: typedef typename _Base::iterator iterator; 24952: typedef typename _Base::const_iterator const_iterator; 24952: typedef std::reverse_iterator const_reverse_iterator; 24952: typedef std::reverse_iterator reverse_iterator; 24952: typedef size_t size_type; 24952: typedef ptrdiff_t difference_type; 24952: typedef _Alloc allocator_type; 24952: 24952: private: 24952: static size_t _S_buffer_size() noexcept 24952: { return __deque_buf_size(sizeof(_Tp)); } 24952: 24952: 24952: using _Base::_M_initialize_map; 24952: using _Base::_M_create_nodes; 24952: using _Base::_M_destroy_nodes; 24952: using _Base::_M_allocate_node; 24952: using _Base::_M_deallocate_node; 24952: using _Base::_M_allocate_map; 24952: using _Base::_M_deallocate_map; 24952: using _Base::_M_get_Tp_allocator; 24952: 24952: 24952: 24952: 24952: 24952: using _Base::_M_impl; 24952: 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: deque() = default; 24952: # 864 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: explicit 24952: deque(const allocator_type& __a) 24952: : _Base(__a, 0) { } 24952: # 877 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: explicit 24952: deque(size_type __n, const allocator_type& __a = allocator_type()) 24952: : _Base(__a, _S_check_init_len(__n, __a)) 24952: { _M_default_initialize(); } 24952: # 890 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: deque(size_type __n, const value_type& __value, 24952: const allocator_type& __a = allocator_type()) 24952: : _Base(__a, _S_check_init_len(__n, __a)) 24952: { _M_fill_initialize(__value); } 24952: # 917 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: deque(const deque& __x) 24952: : _Base(_Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator()), 24952: __x.size()) 24952: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 24952: this->_M_impl._M_start, 24952: _M_get_Tp_allocator()); } 24952: # 933 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: deque(deque&&) = default; 24952: 24952: 24952: deque(const deque& __x, const __type_identity_t& __a) 24952: : _Base(__a, __x.size()) 24952: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 24952: this->_M_impl._M_start, 24952: _M_get_Tp_allocator()); } 24952: 24952: 24952: deque(deque&& __x, const __type_identity_t& __a) 24952: : deque(std::move(__x), __a, typename _Alloc_traits::is_always_equal{}) 24952: { } 24952: 24952: private: 24952: deque(deque&& __x, const allocator_type& __a, true_type) 24952: : _Base(std::move(__x), __a) 24952: { } 24952: 24952: deque(deque&& __x, const allocator_type& __a, false_type) 24952: : _Base(std::move(__x), __a, __x.size()) 24952: { 24952: if (__x.get_allocator() != __a && !__x.empty()) 24952: { 24952: std::__uninitialized_move_a(__x.begin(), __x.end(), 24952: this->_M_impl._M_start, 24952: _M_get_Tp_allocator()); 24952: __x.clear(); 24952: } 24952: } 24952: 24952: public: 24952: # 976 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: deque(initializer_list __l, 24952: const allocator_type& __a = allocator_type()) 24952: : _Base(__a) 24952: { 24952: _M_range_initialize(__l.begin(), __l.end(), 24952: random_access_iterator_tag()); 24952: } 24952: # 1001 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template> 24952: deque(_InputIterator __first, _InputIterator __last, 24952: const allocator_type& __a = allocator_type()) 24952: : _Base(__a) 24952: { 24952: _M_range_initialize(__first, __last, 24952: std::__iterator_category(__first)); 24952: } 24952: # 1027 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: ~deque() 24952: { _M_destroy_data(begin(), end(), _M_get_Tp_allocator()); } 24952: # 1039 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: deque& 24952: operator=(const deque& __x); 24952: # 1051 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: deque& 24952: operator=(deque&& __x) noexcept(_Alloc_traits::_S_always_equal()) 24952: { 24952: using __always_equal = typename _Alloc_traits::is_always_equal; 24952: _M_move_assign1(std::move(__x), __always_equal{}); 24952: return *this; 24952: } 24952: # 1070 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: deque& 24952: operator=(initializer_list __l) 24952: { 24952: _M_assign_aux(__l.begin(), __l.end(), 24952: random_access_iterator_tag()); 24952: return *this; 24952: } 24952: # 1089 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: void 24952: assign(size_type __n, const value_type& __val) 24952: { _M_fill_assign(__n, __val); } 24952: # 1106 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template> 24952: void 24952: assign(_InputIterator __first, _InputIterator __last) 24952: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 24952: # 1133 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: void 24952: assign(initializer_list __l) 24952: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return _Base::get_allocator(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: iterator 24952: begin() noexcept 24952: { return this->_M_impl._M_start; } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: begin() const noexcept 24952: { return this->_M_impl._M_start; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: iterator 24952: end() noexcept 24952: { return this->_M_impl._M_finish; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: end() const noexcept 24952: { return this->_M_impl._M_finish; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reverse_iterator 24952: rbegin() noexcept 24952: { return reverse_iterator(this->_M_impl._M_finish); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: rbegin() const noexcept 24952: { return const_reverse_iterator(this->_M_impl._M_finish); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reverse_iterator 24952: rend() noexcept 24952: { return reverse_iterator(this->_M_impl._M_start); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: rend() const noexcept 24952: { return const_reverse_iterator(this->_M_impl._M_start); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: cbegin() const noexcept 24952: { return this->_M_impl._M_start; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: cend() const noexcept 24952: { return this->_M_impl._M_finish; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: crbegin() const noexcept 24952: { return const_reverse_iterator(this->_M_impl._M_finish); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: crend() const noexcept 24952: { return const_reverse_iterator(this->_M_impl._M_start); } 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: size_type 24952: size() const noexcept 24952: { return this->_M_impl._M_finish - this->_M_impl._M_start; } 24952: 24952: 24952: [[__nodiscard__]] 24952: size_type 24952: max_size() const noexcept 24952: { return _S_max_size(_M_get_Tp_allocator()); } 24952: # 1287 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: void 24952: resize(size_type __new_size) 24952: { 24952: const size_type __len = size(); 24952: if (__new_size > __len) 24952: _M_default_append(__new_size - __len); 24952: else if (__new_size < __len) 24952: _M_erase_at_end(this->_M_impl._M_start 24952: + difference_type(__new_size)); 24952: } 24952: # 1309 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: void 24952: resize(size_type __new_size, const value_type& __x) 24952: # 1326 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: { 24952: const size_type __len = size(); 24952: if (__new_size > __len) 24952: _M_fill_insert(this->_M_impl._M_finish, __new_size - __len, __x); 24952: else if (__new_size < __len) 24952: _M_erase_at_end(this->_M_impl._M_start 24952: + difference_type(__new_size)); 24952: } 24952: 24952: 24952: 24952: void 24952: shrink_to_fit() noexcept 24952: { _M_shrink_to_fit(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] bool 24952: empty() const noexcept 24952: { return this->_M_impl._M_finish == this->_M_impl._M_start; } 24952: # 1362 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: [[__nodiscard__]] 24952: reference 24952: operator[](size_type __n) noexcept 24952: { 24952: ; 24952: return this->_M_impl._M_start[difference_type(__n)]; 24952: } 24952: # 1381 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: [[__nodiscard__]] 24952: const_reference 24952: operator[](size_type __n) const noexcept 24952: { 24952: ; 24952: return this->_M_impl._M_start[difference_type(__n)]; 24952: } 24952: 24952: protected: 24952: 24952: void 24952: _M_range_check(size_type __n) const 24952: { 24952: if (__n >= this->size()) 24952: __throw_out_of_range_fmt(("deque::_M_range_check: __n " "(which is %zu)>= this->size() " "(which is %zu)") 24952: 24952: , 24952: __n, this->size()); 24952: } 24952: 24952: public: 24952: # 1413 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: reference 24952: at(size_type __n) 24952: { 24952: _M_range_check(__n); 24952: return (*this)[__n]; 24952: } 24952: # 1431 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: const_reference 24952: at(size_type __n) const 24952: { 24952: _M_range_check(__n); 24952: return (*this)[__n]; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reference 24952: front() noexcept 24952: { 24952: ; 24952: return *begin(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reference 24952: front() const noexcept 24952: { 24952: ; 24952: return *begin(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reference 24952: back() noexcept 24952: { 24952: ; 24952: iterator __tmp = end(); 24952: --__tmp; 24952: return *__tmp; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reference 24952: back() const noexcept 24952: { 24952: ; 24952: const_iterator __tmp = end(); 24952: --__tmp; 24952: return *__tmp; 24952: } 24952: # 1500 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: void 24952: push_front(const value_type& __x) 24952: { 24952: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 24952: { 24952: _Alloc_traits::construct(this->_M_impl, 24952: this->_M_impl._M_start._M_cur - 1, 24952: __x); 24952: --this->_M_impl._M_start._M_cur; 24952: } 24952: else 24952: _M_push_front_aux(__x); 24952: } 24952: 24952: 24952: void 24952: push_front(value_type&& __x) 24952: { emplace_front(std::move(__x)); } 24952: 24952: template 24952: 24952: reference 24952: 24952: 24952: 24952: emplace_front(_Args&&... __args); 24952: # 1537 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: void 24952: push_back(const value_type& __x) 24952: { 24952: if (this->_M_impl._M_finish._M_cur 24952: != this->_M_impl._M_finish._M_last - 1) 24952: { 24952: _Alloc_traits::construct(this->_M_impl, 24952: this->_M_impl._M_finish._M_cur, __x); 24952: ++this->_M_impl._M_finish._M_cur; 24952: } 24952: else 24952: _M_push_back_aux(__x); 24952: } 24952: 24952: 24952: void 24952: push_back(value_type&& __x) 24952: { emplace_back(std::move(__x)); } 24952: 24952: template 24952: 24952: reference 24952: 24952: 24952: 24952: emplace_back(_Args&&... __args); 24952: # 1573 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: void 24952: pop_front() noexcept 24952: { 24952: ; 24952: if (this->_M_impl._M_start._M_cur 24952: != this->_M_impl._M_start._M_last - 1) 24952: { 24952: _Alloc_traits::destroy(_M_get_Tp_allocator(), 24952: this->_M_impl._M_start._M_cur); 24952: ++this->_M_impl._M_start._M_cur; 24952: } 24952: else 24952: _M_pop_front_aux(); 24952: } 24952: # 1596 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: void 24952: pop_back() noexcept 24952: { 24952: ; 24952: if (this->_M_impl._M_finish._M_cur 24952: != this->_M_impl._M_finish._M_first) 24952: { 24952: --this->_M_impl._M_finish._M_cur; 24952: _Alloc_traits::destroy(_M_get_Tp_allocator(), 24952: this->_M_impl._M_finish._M_cur); 24952: } 24952: else 24952: _M_pop_back_aux(); 24952: } 24952: # 1621 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template 24952: iterator 24952: emplace(const_iterator __position, _Args&&... __args); 24952: # 1634 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: iterator 24952: insert(const_iterator __position, const value_type& __x); 24952: # 1660 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: iterator 24952: insert(const_iterator __position, value_type&& __x) 24952: { return emplace(__position, std::move(__x)); } 24952: # 1674 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: iterator 24952: insert(const_iterator __p, initializer_list __l) 24952: { 24952: auto __offset = __p - cbegin(); 24952: _M_range_insert_aux(__p._M_const_cast(), __l.begin(), __l.end(), 24952: std::random_access_iterator_tag()); 24952: return begin() + __offset; 24952: } 24952: # 1693 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: iterator 24952: insert(const_iterator __position, size_type __n, const value_type& __x) 24952: { 24952: difference_type __offset = __position - cbegin(); 24952: _M_fill_insert(__position._M_const_cast(), __n, __x); 24952: return begin() + __offset; 24952: } 24952: # 1727 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template> 24952: iterator 24952: insert(const_iterator __position, _InputIterator __first, 24952: _InputIterator __last) 24952: { 24952: difference_type __offset = __position - cbegin(); 24952: _M_range_insert_aux(__position._M_const_cast(), __first, __last, 24952: std::__iterator_category(__first)); 24952: return begin() + __offset; 24952: } 24952: # 1773 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: iterator 24952: 24952: erase(const_iterator __position) 24952: 24952: 24952: 24952: { return _M_erase(__position._M_const_cast()); } 24952: # 1797 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: iterator 24952: 24952: erase(const_iterator __first, const_iterator __last) 24952: 24952: 24952: 24952: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 24952: # 1816 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: void 24952: swap(deque& __x) noexcept 24952: { 24952: 24952: 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) 24952: ; 24952: 24952: _M_impl._M_swap_data(__x._M_impl); 24952: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 24952: __x._M_get_Tp_allocator()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: clear() noexcept 24952: { _M_erase_at_end(begin()); } 24952: 24952: protected: 24952: # 1866 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: static size_t 24952: _S_check_init_len(size_t __n, const allocator_type& __a) 24952: { 24952: if (__n > _S_max_size(__a)) 24952: __throw_length_error( 24952: ("cannot create std::deque larger than max_size()")); 24952: return __n; 24952: } 24952: 24952: static size_type 24952: _S_max_size(const _Tp_alloc_type& __a) noexcept 24952: { 24952: const size_t __diffmax = __gnu_cxx::__numeric_traits::__max; 24952: const size_t __allocmax = _Alloc_traits::max_size(__a); 24952: return (std::min)(__diffmax, __allocmax); 24952: } 24952: # 1895 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template 24952: void 24952: _M_range_initialize(_InputIterator __first, _InputIterator __last, 24952: std::input_iterator_tag); 24952: 24952: 24952: template 24952: void 24952: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 24952: std::forward_iterator_tag); 24952: # 1917 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: void 24952: _M_fill_initialize(const value_type& __value); 24952: 24952: 24952: 24952: void 24952: _M_default_initialize(); 24952: # 1948 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template 24952: void 24952: _M_assign_aux(_InputIterator __first, _InputIterator __last, 24952: std::input_iterator_tag); 24952: 24952: 24952: template 24952: void 24952: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 24952: std::forward_iterator_tag) 24952: { 24952: const size_type __len = std::distance(__first, __last); 24952: if (__len > size()) 24952: { 24952: _ForwardIterator __mid = __first; 24952: std::advance(__mid, size()); 24952: std::copy(__first, __mid, begin()); 24952: _M_range_insert_aux(end(), __mid, __last, 24952: std::__iterator_category(__first)); 24952: } 24952: else 24952: _M_erase_at_end(std::copy(__first, __last, begin())); 24952: } 24952: 24952: 24952: 24952: void 24952: _M_fill_assign(size_type __n, const value_type& __val) 24952: { 24952: if (__n > size()) 24952: { 24952: std::fill(begin(), end(), __val); 24952: _M_fill_insert(end(), __n - size(), __val); 24952: } 24952: else 24952: { 24952: _M_erase_at_end(begin() + difference_type(__n)); 24952: std::fill(begin(), end(), __val); 24952: } 24952: } 24952: # 1996 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template 24952: void _M_push_back_aux(_Args&&... __args); 24952: 24952: template 24952: void _M_push_front_aux(_Args&&... __args); 24952: 24952: 24952: void _M_pop_back_aux(); 24952: 24952: void _M_pop_front_aux(); 24952: # 2035 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template 24952: void 24952: _M_range_insert_aux(iterator __pos, _InputIterator __first, 24952: _InputIterator __last, std::input_iterator_tag); 24952: 24952: 24952: template 24952: void 24952: _M_range_insert_aux(iterator __pos, _ForwardIterator __first, 24952: _ForwardIterator __last, std::forward_iterator_tag); 24952: 24952: 24952: 24952: 24952: void 24952: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: iterator 24952: _M_insert_aux(iterator __pos, _Args&&... __args); 24952: 24952: 24952: 24952: void 24952: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x); 24952: 24952: 24952: template 24952: void 24952: _M_insert_aux(iterator __pos, 24952: _ForwardIterator __first, _ForwardIterator __last, 24952: size_type __n); 24952: 24952: 24952: 24952: 24952: void 24952: _M_destroy_data_aux(iterator __first, iterator __last); 24952: 24952: 24952: 24952: template 24952: void 24952: _M_destroy_data(iterator __first, iterator __last, const _Alloc1&) 24952: { _M_destroy_data_aux(__first, __last); } 24952: 24952: void 24952: _M_destroy_data(iterator __first, iterator __last, 24952: const std::allocator<_Tp>&) 24952: { 24952: if (!__has_trivial_destructor(value_type)) 24952: _M_destroy_data_aux(__first, __last); 24952: } 24952: 24952: 24952: void 24952: _M_erase_at_begin(iterator __pos) 24952: { 24952: _M_destroy_data(begin(), __pos, _M_get_Tp_allocator()); 24952: _M_destroy_nodes(this->_M_impl._M_start._M_node, __pos._M_node); 24952: this->_M_impl._M_start = __pos; 24952: } 24952: 24952: 24952: 24952: void 24952: _M_erase_at_end(iterator __pos) 24952: { 24952: _M_destroy_data(__pos, end(), _M_get_Tp_allocator()); 24952: _M_destroy_nodes(__pos._M_node + 1, 24952: this->_M_impl._M_finish._M_node + 1); 24952: this->_M_impl._M_finish = __pos; 24952: } 24952: 24952: iterator 24952: _M_erase(iterator __pos); 24952: 24952: iterator 24952: _M_erase(iterator __first, iterator __last); 24952: 24952: 24952: 24952: void 24952: _M_default_append(size_type __n); 24952: 24952: bool 24952: _M_shrink_to_fit(); 24952: 24952: 24952: 24952: 24952: iterator 24952: _M_reserve_elements_at_front(size_type __n) 24952: { 24952: const size_type __vacancies = this->_M_impl._M_start._M_cur 24952: - this->_M_impl._M_start._M_first; 24952: if (__n > __vacancies) 24952: _M_new_elements_at_front(__n - __vacancies); 24952: return this->_M_impl._M_start - difference_type(__n); 24952: } 24952: 24952: iterator 24952: _M_reserve_elements_at_back(size_type __n) 24952: { 24952: const size_type __vacancies = (this->_M_impl._M_finish._M_last 24952: - this->_M_impl._M_finish._M_cur) - 1; 24952: if (__n > __vacancies) 24952: _M_new_elements_at_back(__n - __vacancies); 24952: return this->_M_impl._M_finish + difference_type(__n); 24952: } 24952: 24952: void 24952: _M_new_elements_at_front(size_type __new_elements); 24952: 24952: void 24952: _M_new_elements_at_back(size_type __new_elements); 24952: # 2167 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: void 24952: _M_reserve_map_at_back(size_type __nodes_to_add = 1) 24952: { 24952: if (__nodes_to_add + 1 > this->_M_impl._M_map_size 24952: - (this->_M_impl._M_finish._M_node - this->_M_impl._M_map)) 24952: _M_reallocate_map(__nodes_to_add, false); 24952: } 24952: 24952: void 24952: _M_reserve_map_at_front(size_type __nodes_to_add = 1) 24952: { 24952: if (__nodes_to_add > size_type(this->_M_impl._M_start._M_node 24952: - this->_M_impl._M_map)) 24952: _M_reallocate_map(__nodes_to_add, true); 24952: } 24952: 24952: void 24952: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front); 24952: 24952: 24952: 24952: 24952: 24952: void 24952: _M_move_assign1(deque&& __x, true_type) noexcept 24952: { 24952: this->_M_impl._M_swap_data(__x._M_impl); 24952: __x.clear(); 24952: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 24952: } 24952: 24952: 24952: 24952: 24952: void 24952: _M_move_assign1(deque&& __x, false_type) 24952: { 24952: if (_M_get_Tp_allocator() == __x._M_get_Tp_allocator()) 24952: return _M_move_assign1(std::move(__x), true_type()); 24952: 24952: constexpr bool __move_storage = 24952: _Alloc_traits::_S_propagate_on_move_assign(); 24952: _M_move_assign2(std::move(__x), __bool_constant<__move_storage>()); 24952: } 24952: 24952: 24952: 24952: template 24952: void 24952: _M_replace_map(_Args&&... __args) 24952: { 24952: 24952: deque __newobj(std::forward<_Args>(__args)...); 24952: 24952: clear(); 24952: _M_deallocate_node(*begin()._M_node); 24952: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 24952: this->_M_impl._M_map = nullptr; 24952: this->_M_impl._M_map_size = 0; 24952: 24952: this->_M_impl._M_swap_data(__newobj._M_impl); 24952: } 24952: 24952: 24952: void 24952: _M_move_assign2(deque&& __x, true_type) 24952: { 24952: 24952: auto __alloc = __x._M_get_Tp_allocator(); 24952: 24952: 24952: _M_replace_map(std::move(__x)); 24952: 24952: _M_get_Tp_allocator() = std::move(__alloc); 24952: } 24952: 24952: 24952: 24952: void 24952: _M_move_assign2(deque&& __x, false_type) 24952: { 24952: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 24952: { 24952: 24952: 24952: _M_replace_map(std::move(__x), __x.get_allocator()); 24952: } 24952: else 24952: { 24952: 24952: 24952: _M_assign_aux(std::make_move_iterator(__x.begin()), 24952: std::make_move_iterator(__x.end()), 24952: std::random_access_iterator_tag()); 24952: __x.clear(); 24952: } 24952: } 24952: 24952: }; 24952: 24952: 24952: template::value_type, 24952: typename _Allocator = allocator<_ValT>, 24952: typename = _RequireInputIter<_InputIterator>, 24952: typename = _RequireAllocator<_Allocator>> 24952: deque(_InputIterator, _InputIterator, _Allocator = _Allocator()) 24952: -> deque<_ValT, _Allocator>; 24952: # 2287 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 24952: { return __x.size() == __y.size() 24952: && std::equal(__x.begin(), __x.end(), __y.begin()); } 24952: # 2327 "/usr/include/c++/13/bits/stl_deque.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 24952: { return std::lexicographical_compare(__x.begin(), __x.end(), 24952: __y.begin(), __y.end()); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator!=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 24952: { return !(__x == __y); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 24952: { return __y < __x; } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 24952: { return !(__y < __x); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 24952: { return !(__x < __y); } 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(deque<_Tp,_Alloc>& __x, deque<_Tp,_Alloc>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __is_bitwise_relocatable> 24952: : true_type { }; 24952: 24952: 24952: 24952: } 24952: # 67 "/usr/include/c++/13/deque" 2 3 24952: # 1 "/usr/include/c++/13/bits/refwrap.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/refwrap.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/refwrap.h" 3 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/invoke.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/invoke.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/invoke.h" 3 24952: # 42 "/usr/include/c++/13/bits/invoke.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 53 "/usr/include/c++/13/bits/invoke.h" 3 24952: template::type> 24952: constexpr _Up&& 24952: __invfwd(typename remove_reference<_Tp>::type& __t) noexcept 24952: { return static_cast<_Up&&>(__t); } 24952: 24952: template 24952: constexpr _Res 24952: __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) 24952: { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } 24952: 24952: template 24952: constexpr _Res 24952: __invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, 24952: _Args&&... __args) 24952: { return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } 24952: 24952: template 24952: constexpr _Res 24952: __invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, 24952: _Args&&... __args) 24952: { 24952: return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); 24952: } 24952: 24952: template 24952: constexpr _Res 24952: __invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) 24952: { return __invfwd<_Tp>(__t).*__f; } 24952: 24952: template 24952: constexpr _Res 24952: __invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) 24952: { return (*std::forward<_Tp>(__t)).*__f; } 24952: 24952: 24952: template 24952: constexpr typename __invoke_result<_Callable, _Args...>::type 24952: __invoke(_Callable&& __fn, _Args&&... __args) 24952: noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) 24952: { 24952: using __result = __invoke_result<_Callable, _Args...>; 24952: using __type = typename __result::type; 24952: using __tag = typename __result::__invoke_type; 24952: return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 24952: std::forward<_Args>(__args)...); 24952: } 24952: 24952: 24952: 24952: template 24952: constexpr enable_if_t, _Res> 24952: __invoke_r(_Callable&& __fn, _Args&&... __args) 24952: noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) 24952: { 24952: using __result = __invoke_result<_Callable, _Args...>; 24952: using __type = typename __result::type; 24952: using __tag = typename __result::__invoke_type; 24952: if constexpr (is_void_v<_Res>) 24952: std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 24952: std::forward<_Args>(__args)...); 24952: else 24952: return std::__invoke_impl<__type>(__tag{}, 24952: std::forward<_Callable>(__fn), 24952: std::forward<_Args>(__args)...); 24952: } 24952: # 155 "/usr/include/c++/13/bits/invoke.h" 3 24952: 24952: } 24952: # 39 "/usr/include/c++/13/bits/refwrap.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/stl_function.h" 1 3 24952: # 63 "/usr/include/c++/13/bits/stl_function.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 116 "/usr/include/c++/13/bits/stl_function.h" 3 24952: template 24952: struct unary_function 24952: { 24952: 24952: typedef _Arg argument_type; 24952: 24952: 24952: typedef _Result result_type; 24952: } __attribute__ ((__deprecated__)); 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct binary_function 24952: { 24952: 24952: typedef _Arg1 first_argument_type; 24952: 24952: 24952: typedef _Arg2 second_argument_type; 24952: 24952: 24952: typedef _Result result_type; 24952: } __attribute__ ((__deprecated__)); 24952: # 157 "/usr/include/c++/13/bits/stl_function.h" 3 24952: struct __is_transparent; 24952: 24952: template 24952: struct plus; 24952: 24952: template 24952: struct minus; 24952: 24952: template 24952: struct multiplies; 24952: 24952: template 24952: struct divides; 24952: 24952: template 24952: struct modulus; 24952: 24952: template 24952: struct negate; 24952: 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: 24952: template 24952: struct plus : public binary_function<_Tp, _Tp, _Tp> 24952: { 24952: 24952: constexpr 24952: _Tp 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x + __y; } 24952: }; 24952: 24952: 24952: template 24952: struct minus : public binary_function<_Tp, _Tp, _Tp> 24952: { 24952: constexpr 24952: _Tp 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x - __y; } 24952: }; 24952: 24952: 24952: template 24952: struct multiplies : public binary_function<_Tp, _Tp, _Tp> 24952: { 24952: constexpr 24952: _Tp 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x * __y; } 24952: }; 24952: 24952: 24952: template 24952: struct divides : public binary_function<_Tp, _Tp, _Tp> 24952: { 24952: constexpr 24952: _Tp 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x / __y; } 24952: }; 24952: 24952: 24952: template 24952: struct modulus : public binary_function<_Tp, _Tp, _Tp> 24952: { 24952: constexpr 24952: _Tp 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x % __y; } 24952: }; 24952: 24952: 24952: template 24952: struct negate : public unary_function<_Tp, _Tp> 24952: { 24952: constexpr 24952: _Tp 24952: operator()(const _Tp& __x) const 24952: { return -__x; } 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: 24952: 24952: 24952: template<> 24952: struct plus 24952: { 24952: template 24952: constexpr 24952: auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) + std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) + std::forward<_Up>(__u)) 24952: { return std::forward<_Tp>(__t) + std::forward<_Up>(__u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: 24952: template<> 24952: struct minus 24952: { 24952: template 24952: constexpr 24952: auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) - std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) - std::forward<_Up>(__u)) 24952: { return std::forward<_Tp>(__t) - std::forward<_Up>(__u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: 24952: template<> 24952: struct multiplies 24952: { 24952: template 24952: constexpr 24952: auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) * std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) * std::forward<_Up>(__u)) 24952: { return std::forward<_Tp>(__t) * std::forward<_Up>(__u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: 24952: template<> 24952: struct divides 24952: { 24952: template 24952: constexpr 24952: auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) / std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) / std::forward<_Up>(__u)) 24952: { return std::forward<_Tp>(__t) / std::forward<_Up>(__u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: 24952: template<> 24952: struct modulus 24952: { 24952: template 24952: constexpr 24952: auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) % std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) % std::forward<_Up>(__u)) 24952: { return std::forward<_Tp>(__t) % std::forward<_Up>(__u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: 24952: template<> 24952: struct negate 24952: { 24952: template 24952: constexpr 24952: auto 24952: operator()(_Tp&& __t) const 24952: noexcept(noexcept(-std::forward<_Tp>(__t))) 24952: -> decltype(-std::forward<_Tp>(__t)) 24952: { return -std::forward<_Tp>(__t); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: # 349 "/usr/include/c++/13/bits/stl_function.h" 3 24952: template 24952: struct equal_to; 24952: 24952: template 24952: struct not_equal_to; 24952: 24952: template 24952: struct greater; 24952: 24952: template 24952: struct less; 24952: 24952: template 24952: struct greater_equal; 24952: 24952: template 24952: struct less_equal; 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: 24952: template 24952: struct equal_to : public binary_function<_Tp, _Tp, bool> 24952: { 24952: constexpr 24952: bool 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x == __y; } 24952: }; 24952: 24952: 24952: template 24952: struct not_equal_to : public binary_function<_Tp, _Tp, bool> 24952: { 24952: constexpr 24952: bool 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x != __y; } 24952: }; 24952: 24952: 24952: template 24952: struct greater : public binary_function<_Tp, _Tp, bool> 24952: { 24952: constexpr 24952: bool 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x > __y; } 24952: }; 24952: 24952: 24952: template 24952: struct less : public binary_function<_Tp, _Tp, bool> 24952: { 24952: constexpr 24952: bool 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x < __y; } 24952: }; 24952: 24952: 24952: template 24952: struct greater_equal : public binary_function<_Tp, _Tp, bool> 24952: { 24952: constexpr 24952: bool 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x >= __y; } 24952: }; 24952: 24952: 24952: template 24952: struct less_equal : public binary_function<_Tp, _Tp, bool> 24952: { 24952: constexpr 24952: bool 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x <= __y; } 24952: }; 24952: 24952: 24952: template 24952: struct greater<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 24952: { 24952: constexpr bool 24952: operator()(_Tp* __x, _Tp* __y) const noexcept 24952: { 24952: 24952: if (std::__is_constant_evaluated()) 24952: return __x > __y; 24952: 24952: return (unsigned int)__x > (unsigned int)__y; 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 24952: { 24952: constexpr bool 24952: operator()(_Tp* __x, _Tp* __y) const noexcept 24952: { 24952: 24952: if (std::__is_constant_evaluated()) 24952: return __x < __y; 24952: 24952: return (unsigned int)__x < (unsigned int)__y; 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct greater_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 24952: { 24952: constexpr bool 24952: operator()(_Tp* __x, _Tp* __y) const noexcept 24952: { 24952: 24952: if (std::__is_constant_evaluated()) 24952: return __x >= __y; 24952: 24952: return (unsigned int)__x >= (unsigned int)__y; 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct less_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 24952: { 24952: constexpr bool 24952: operator()(_Tp* __x, _Tp* __y) const noexcept 24952: { 24952: 24952: if (std::__is_constant_evaluated()) 24952: return __x <= __y; 24952: 24952: return (unsigned int)__x <= (unsigned int)__y; 24952: } 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: 24952: template<> 24952: struct equal_to 24952: { 24952: template 24952: constexpr auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) == std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) == std::forward<_Up>(__u)) 24952: { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: 24952: template<> 24952: struct not_equal_to 24952: { 24952: template 24952: constexpr auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) != std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) != std::forward<_Up>(__u)) 24952: { return std::forward<_Tp>(__t) != std::forward<_Up>(__u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: 24952: template<> 24952: struct greater 24952: { 24952: template 24952: constexpr auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) > std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) > std::forward<_Up>(__u)) 24952: { 24952: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 24952: __ptr_cmp<_Tp, _Up>{}); 24952: } 24952: 24952: template 24952: constexpr bool 24952: operator()(_Tp* __t, _Up* __u) const noexcept 24952: { return greater>{}(__t, __u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: 24952: private: 24952: template 24952: static constexpr decltype(auto) 24952: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 24952: { return std::forward<_Tp>(__t) > std::forward<_Up>(__u); } 24952: 24952: template 24952: static constexpr bool 24952: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 24952: { 24952: return greater{}( 24952: static_cast(std::forward<_Tp>(__t)), 24952: static_cast(std::forward<_Up>(__u))); 24952: } 24952: 24952: 24952: template 24952: struct __not_overloaded2 : true_type { }; 24952: 24952: 24952: template 24952: struct __not_overloaded2<_Tp, _Up, __void_t< 24952: decltype(std::declval<_Tp>().operator>(std::declval<_Up>()))>> 24952: : false_type { }; 24952: 24952: 24952: template 24952: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 24952: 24952: 24952: template 24952: struct __not_overloaded<_Tp, _Up, __void_t< 24952: decltype(operator>(std::declval<_Tp>(), std::declval<_Up>()))>> 24952: : false_type { }; 24952: 24952: template 24952: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 24952: is_convertible<_Tp, const volatile void*>, 24952: is_convertible<_Up, const volatile void*>>; 24952: }; 24952: 24952: 24952: template<> 24952: struct less 24952: { 24952: template 24952: constexpr auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) < std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) < std::forward<_Up>(__u)) 24952: { 24952: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 24952: __ptr_cmp<_Tp, _Up>{}); 24952: } 24952: 24952: template 24952: constexpr bool 24952: operator()(_Tp* __t, _Up* __u) const noexcept 24952: { return less>{}(__t, __u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: 24952: private: 24952: template 24952: static constexpr decltype(auto) 24952: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 24952: { return std::forward<_Tp>(__t) < std::forward<_Up>(__u); } 24952: 24952: template 24952: static constexpr bool 24952: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 24952: { 24952: return less{}( 24952: static_cast(std::forward<_Tp>(__t)), 24952: static_cast(std::forward<_Up>(__u))); 24952: } 24952: 24952: 24952: template 24952: struct __not_overloaded2 : true_type { }; 24952: 24952: 24952: template 24952: struct __not_overloaded2<_Tp, _Up, __void_t< 24952: decltype(std::declval<_Tp>().operator<(std::declval<_Up>()))>> 24952: : false_type { }; 24952: 24952: 24952: template 24952: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 24952: 24952: 24952: template 24952: struct __not_overloaded<_Tp, _Up, __void_t< 24952: decltype(operator<(std::declval<_Tp>(), std::declval<_Up>()))>> 24952: : false_type { }; 24952: 24952: template 24952: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 24952: is_convertible<_Tp, const volatile void*>, 24952: is_convertible<_Up, const volatile void*>>; 24952: }; 24952: 24952: 24952: template<> 24952: struct greater_equal 24952: { 24952: template 24952: constexpr auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) >= std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) >= std::forward<_Up>(__u)) 24952: { 24952: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 24952: __ptr_cmp<_Tp, _Up>{}); 24952: } 24952: 24952: template 24952: constexpr bool 24952: operator()(_Tp* __t, _Up* __u) const noexcept 24952: { return greater_equal>{}(__t, __u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: 24952: private: 24952: template 24952: static constexpr decltype(auto) 24952: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 24952: { return std::forward<_Tp>(__t) >= std::forward<_Up>(__u); } 24952: 24952: template 24952: static constexpr bool 24952: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 24952: { 24952: return greater_equal{}( 24952: static_cast(std::forward<_Tp>(__t)), 24952: static_cast(std::forward<_Up>(__u))); 24952: } 24952: 24952: 24952: template 24952: struct __not_overloaded2 : true_type { }; 24952: 24952: 24952: template 24952: struct __not_overloaded2<_Tp, _Up, __void_t< 24952: decltype(std::declval<_Tp>().operator>=(std::declval<_Up>()))>> 24952: : false_type { }; 24952: 24952: 24952: template 24952: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 24952: 24952: 24952: template 24952: struct __not_overloaded<_Tp, _Up, __void_t< 24952: decltype(operator>=(std::declval<_Tp>(), std::declval<_Up>()))>> 24952: : false_type { }; 24952: 24952: template 24952: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 24952: is_convertible<_Tp, const volatile void*>, 24952: is_convertible<_Up, const volatile void*>>; 24952: }; 24952: 24952: 24952: template<> 24952: struct less_equal 24952: { 24952: template 24952: constexpr auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) <= std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) <= std::forward<_Up>(__u)) 24952: { 24952: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 24952: __ptr_cmp<_Tp, _Up>{}); 24952: } 24952: 24952: template 24952: constexpr bool 24952: operator()(_Tp* __t, _Up* __u) const noexcept 24952: { return less_equal>{}(__t, __u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: 24952: private: 24952: template 24952: static constexpr decltype(auto) 24952: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 24952: { return std::forward<_Tp>(__t) <= std::forward<_Up>(__u); } 24952: 24952: template 24952: static constexpr bool 24952: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 24952: { 24952: return less_equal{}( 24952: static_cast(std::forward<_Tp>(__t)), 24952: static_cast(std::forward<_Up>(__u))); 24952: } 24952: 24952: 24952: template 24952: struct __not_overloaded2 : true_type { }; 24952: 24952: 24952: template 24952: struct __not_overloaded2<_Tp, _Up, __void_t< 24952: decltype(std::declval<_Tp>().operator<=(std::declval<_Up>()))>> 24952: : false_type { }; 24952: 24952: 24952: template 24952: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 24952: 24952: 24952: template 24952: struct __not_overloaded<_Tp, _Up, __void_t< 24952: decltype(operator<=(std::declval<_Tp>(), std::declval<_Up>()))>> 24952: : false_type { }; 24952: 24952: template 24952: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 24952: is_convertible<_Tp, const volatile void*>, 24952: is_convertible<_Up, const volatile void*>>; 24952: }; 24952: # 781 "/usr/include/c++/13/bits/stl_function.h" 3 24952: template 24952: struct logical_and; 24952: 24952: template 24952: struct logical_or; 24952: 24952: template 24952: struct logical_not; 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: 24952: template 24952: struct logical_and : public binary_function<_Tp, _Tp, bool> 24952: { 24952: constexpr 24952: bool 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x && __y; } 24952: }; 24952: 24952: 24952: template 24952: struct logical_or : public binary_function<_Tp, _Tp, bool> 24952: { 24952: constexpr 24952: bool 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x || __y; } 24952: }; 24952: 24952: 24952: template 24952: struct logical_not : public unary_function<_Tp, bool> 24952: { 24952: constexpr 24952: bool 24952: operator()(const _Tp& __x) const 24952: { return !__x; } 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: 24952: template<> 24952: struct logical_and 24952: { 24952: template 24952: constexpr 24952: auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) && std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) && std::forward<_Up>(__u)) 24952: { return std::forward<_Tp>(__t) && std::forward<_Up>(__u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: 24952: template<> 24952: struct logical_or 24952: { 24952: template 24952: constexpr 24952: auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) || std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) || std::forward<_Up>(__u)) 24952: { return std::forward<_Tp>(__t) || std::forward<_Up>(__u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: 24952: template<> 24952: struct logical_not 24952: { 24952: template 24952: constexpr 24952: auto 24952: operator()(_Tp&& __t) const 24952: noexcept(noexcept(!std::forward<_Tp>(__t))) 24952: -> decltype(!std::forward<_Tp>(__t)) 24952: { return !std::forward<_Tp>(__t); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: struct bit_and; 24952: 24952: template 24952: struct bit_or; 24952: 24952: template 24952: struct bit_xor; 24952: 24952: template 24952: struct bit_not; 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: 24952: 24952: template 24952: struct bit_and : public binary_function<_Tp, _Tp, _Tp> 24952: { 24952: constexpr 24952: _Tp 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x & __y; } 24952: }; 24952: 24952: template 24952: struct bit_or : public binary_function<_Tp, _Tp, _Tp> 24952: { 24952: constexpr 24952: _Tp 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x | __y; } 24952: }; 24952: 24952: template 24952: struct bit_xor : public binary_function<_Tp, _Tp, _Tp> 24952: { 24952: constexpr 24952: _Tp 24952: operator()(const _Tp& __x, const _Tp& __y) const 24952: { return __x ^ __y; } 24952: }; 24952: 24952: template 24952: struct bit_not : public unary_function<_Tp, _Tp> 24952: { 24952: constexpr 24952: _Tp 24952: operator()(const _Tp& __x) const 24952: { return ~__x; } 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: template <> 24952: struct bit_and 24952: { 24952: template 24952: constexpr 24952: auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) & std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) & std::forward<_Up>(__u)) 24952: { return std::forward<_Tp>(__t) & std::forward<_Up>(__u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: template <> 24952: struct bit_or 24952: { 24952: template 24952: constexpr 24952: auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) | std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) | std::forward<_Up>(__u)) 24952: { return std::forward<_Tp>(__t) | std::forward<_Up>(__u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: template <> 24952: struct bit_xor 24952: { 24952: template 24952: constexpr 24952: auto 24952: operator()(_Tp&& __t, _Up&& __u) const 24952: noexcept(noexcept(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u))) 24952: -> decltype(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u)) 24952: { return std::forward<_Tp>(__t) ^ std::forward<_Up>(__u); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: template <> 24952: struct bit_not 24952: { 24952: template 24952: constexpr 24952: auto 24952: operator()(_Tp&& __t) const 24952: noexcept(noexcept(~std::forward<_Tp>(__t))) 24952: -> decltype(~std::forward<_Tp>(__t)) 24952: { return ~std::forward<_Tp>(__t); } 24952: 24952: typedef __is_transparent is_transparent; 24952: }; 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: # 1023 "/usr/include/c++/13/bits/stl_function.h" 3 24952: template 24952: class [[__deprecated__]] unary_negate 24952: : public unary_function 24952: { 24952: protected: 24952: _Predicate _M_pred; 24952: 24952: public: 24952: constexpr 24952: explicit 24952: unary_negate(const _Predicate& __x) : _M_pred(__x) { } 24952: 24952: constexpr 24952: bool 24952: operator()(const typename _Predicate::argument_type& __x) const 24952: { return !_M_pred(__x); } 24952: }; 24952: 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 24952: constexpr 24952: inline unary_negate<_Predicate> 24952: not1(const _Predicate& __pred) 24952: { return unary_negate<_Predicate>(__pred); } 24952: 24952: 24952: template 24952: class [[__deprecated__]] binary_negate 24952: : public binary_function 24952: { 24952: protected: 24952: _Predicate _M_pred; 24952: 24952: public: 24952: constexpr 24952: explicit 24952: binary_negate(const _Predicate& __x) : _M_pred(__x) { } 24952: 24952: constexpr 24952: bool 24952: operator()(const typename _Predicate::first_argument_type& __x, 24952: const typename _Predicate::second_argument_type& __y) const 24952: { return !_M_pred(__x, __y); } 24952: }; 24952: 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 24952: constexpr 24952: inline binary_negate<_Predicate> 24952: not2(const _Predicate& __pred) 24952: { return binary_negate<_Predicate>(__pred); } 24952: # 1104 "/usr/include/c++/13/bits/stl_function.h" 3 24952: template 24952: class pointer_to_unary_function : public unary_function<_Arg, _Result> 24952: { 24952: protected: 24952: _Result (*_M_ptr)(_Arg); 24952: 24952: public: 24952: pointer_to_unary_function() { } 24952: 24952: explicit 24952: pointer_to_unary_function(_Result (*__x)(_Arg)) 24952: : _M_ptr(__x) { } 24952: 24952: _Result 24952: operator()(_Arg __x) const 24952: { return _M_ptr(__x); } 24952: } __attribute__ ((__deprecated__)); 24952: 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 24952: inline pointer_to_unary_function<_Arg, _Result> 24952: ptr_fun(_Result (*__x)(_Arg)) 24952: { return pointer_to_unary_function<_Arg, _Result>(__x); } 24952: 24952: 24952: template 24952: class pointer_to_binary_function 24952: : public binary_function<_Arg1, _Arg2, _Result> 24952: { 24952: protected: 24952: _Result (*_M_ptr)(_Arg1, _Arg2); 24952: 24952: public: 24952: pointer_to_binary_function() { } 24952: 24952: explicit 24952: pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) 24952: : _M_ptr(__x) { } 24952: 24952: _Result 24952: operator()(_Arg1 __x, _Arg2 __y) const 24952: { return _M_ptr(__x, __y); } 24952: } __attribute__ ((__deprecated__)); 24952: 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 24952: inline pointer_to_binary_function<_Arg1, _Arg2, _Result> 24952: ptr_fun(_Result (*__x)(_Arg1, _Arg2)) 24952: { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } 24952: 24952: 24952: template 24952: struct _Identity 24952: : public unary_function<_Tp, _Tp> 24952: { 24952: _Tp& 24952: operator()(_Tp& __x) const 24952: { return __x; } 24952: 24952: const _Tp& 24952: operator()(const _Tp& __x) const 24952: { return __x; } 24952: }; 24952: 24952: 24952: template struct _Identity : _Identity<_Tp> { }; 24952: 24952: template 24952: struct _Select1st 24952: : public unary_function<_Pair, typename _Pair::first_type> 24952: { 24952: typename _Pair::first_type& 24952: operator()(_Pair& __x) const 24952: { return __x.first; } 24952: 24952: const typename _Pair::first_type& 24952: operator()(const _Pair& __x) const 24952: { return __x.first; } 24952: 24952: 24952: template 24952: typename _Pair2::first_type& 24952: operator()(_Pair2& __x) const 24952: { return __x.first; } 24952: 24952: template 24952: const typename _Pair2::first_type& 24952: operator()(const _Pair2& __x) const 24952: { return __x.first; } 24952: 24952: }; 24952: 24952: template 24952: struct _Select2nd 24952: : public unary_function<_Pair, typename _Pair::second_type> 24952: { 24952: typename _Pair::second_type& 24952: operator()(_Pair& __x) const 24952: { return __x.second; } 24952: 24952: const typename _Pair::second_type& 24952: operator()(const _Pair& __x) const 24952: { return __x.second; } 24952: }; 24952: # 1231 "/usr/include/c++/13/bits/stl_function.h" 3 24952: template 24952: class mem_fun_t : public unary_function<_Tp*, _Ret> 24952: { 24952: public: 24952: explicit 24952: mem_fun_t(_Ret (_Tp::*__pf)()) 24952: : _M_f(__pf) { } 24952: 24952: _Ret 24952: operator()(_Tp* __p) const 24952: { return (__p->*_M_f)(); } 24952: 24952: private: 24952: _Ret (_Tp::*_M_f)(); 24952: } __attribute__ ((__deprecated__)); 24952: 24952: 24952: template 24952: class const_mem_fun_t : public unary_function 24952: { 24952: public: 24952: explicit 24952: const_mem_fun_t(_Ret (_Tp::*__pf)() const) 24952: : _M_f(__pf) { } 24952: 24952: _Ret 24952: operator()(const _Tp* __p) const 24952: { return (__p->*_M_f)(); } 24952: 24952: private: 24952: _Ret (_Tp::*_M_f)() const; 24952: } __attribute__ ((__deprecated__)); 24952: 24952: 24952: template 24952: class mem_fun_ref_t : public unary_function<_Tp, _Ret> 24952: { 24952: public: 24952: explicit 24952: mem_fun_ref_t(_Ret (_Tp::*__pf)()) 24952: : _M_f(__pf) { } 24952: 24952: _Ret 24952: operator()(_Tp& __r) const 24952: { return (__r.*_M_f)(); } 24952: 24952: private: 24952: _Ret (_Tp::*_M_f)(); 24952: } __attribute__ ((__deprecated__)); 24952: 24952: 24952: template 24952: class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> 24952: { 24952: public: 24952: explicit 24952: const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) 24952: : _M_f(__pf) { } 24952: 24952: _Ret 24952: operator()(const _Tp& __r) const 24952: { return (__r.*_M_f)(); } 24952: 24952: private: 24952: _Ret (_Tp::*_M_f)() const; 24952: } __attribute__ ((__deprecated__)); 24952: 24952: 24952: template 24952: class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> 24952: { 24952: public: 24952: explicit 24952: mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) 24952: : _M_f(__pf) { } 24952: 24952: _Ret 24952: operator()(_Tp* __p, _Arg __x) const 24952: { return (__p->*_M_f)(__x); } 24952: 24952: private: 24952: _Ret (_Tp::*_M_f)(_Arg); 24952: } __attribute__ ((__deprecated__)); 24952: 24952: 24952: template 24952: class const_mem_fun1_t : public binary_function 24952: { 24952: public: 24952: explicit 24952: const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) 24952: : _M_f(__pf) { } 24952: 24952: _Ret 24952: operator()(const _Tp* __p, _Arg __x) const 24952: { return (__p->*_M_f)(__x); } 24952: 24952: private: 24952: _Ret (_Tp::*_M_f)(_Arg) const; 24952: } __attribute__ ((__deprecated__)); 24952: 24952: 24952: template 24952: class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 24952: { 24952: public: 24952: explicit 24952: mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) 24952: : _M_f(__pf) { } 24952: 24952: _Ret 24952: operator()(_Tp& __r, _Arg __x) const 24952: { return (__r.*_M_f)(__x); } 24952: 24952: private: 24952: _Ret (_Tp::*_M_f)(_Arg); 24952: } __attribute__ ((__deprecated__)); 24952: 24952: 24952: template 24952: class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 24952: { 24952: public: 24952: explicit 24952: const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) 24952: : _M_f(__pf) { } 24952: 24952: _Ret 24952: operator()(const _Tp& __r, _Arg __x) const 24952: { return (__r.*_M_f)(__x); } 24952: 24952: private: 24952: _Ret (_Tp::*_M_f)(_Arg) const; 24952: } __attribute__ ((__deprecated__)); 24952: 24952: 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 24952: inline mem_fun_t<_Ret, _Tp> 24952: mem_fun(_Ret (_Tp::*__f)()) 24952: { return mem_fun_t<_Ret, _Tp>(__f); } 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 24952: inline const_mem_fun_t<_Ret, _Tp> 24952: mem_fun(_Ret (_Tp::*__f)() const) 24952: { return const_mem_fun_t<_Ret, _Tp>(__f); } 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 24952: inline mem_fun_ref_t<_Ret, _Tp> 24952: mem_fun_ref(_Ret (_Tp::*__f)()) 24952: { return mem_fun_ref_t<_Ret, _Tp>(__f); } 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 24952: inline const_mem_fun_ref_t<_Ret, _Tp> 24952: mem_fun_ref(_Ret (_Tp::*__f)() const) 24952: { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 24952: inline mem_fun1_t<_Ret, _Tp, _Arg> 24952: mem_fun(_Ret (_Tp::*__f)(_Arg)) 24952: { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 24952: inline const_mem_fun1_t<_Ret, _Tp, _Arg> 24952: mem_fun(_Ret (_Tp::*__f)(_Arg) const) 24952: { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 24952: inline mem_fun1_ref_t<_Ret, _Tp, _Arg> 24952: mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) 24952: { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 24952: inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> 24952: mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) 24952: { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: 24952: 24952: template> 24952: struct __has_is_transparent 24952: { }; 24952: 24952: template 24952: struct __has_is_transparent<_Func, _SfinaeType, 24952: __void_t> 24952: { typedef void type; }; 24952: 24952: template 24952: using __has_is_transparent_t 24952: = typename __has_is_transparent<_Func, _SfinaeType>::type; 24952: 24952: 24952: 24952: } 24952: 24952: 24952: # 1 "/usr/include/c++/13/backward/binders.h" 1 3 24952: # 60 "/usr/include/c++/13/backward/binders.h" 3 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 107 "/usr/include/c++/13/backward/binders.h" 3 24952: template 24952: class binder1st 24952: : public unary_function 24952: { 24952: protected: 24952: _Operation op; 24952: typename _Operation::first_argument_type value; 24952: 24952: public: 24952: binder1st(const _Operation& __x, 24952: const typename _Operation::first_argument_type& __y) 24952: : op(__x), value(__y) { } 24952: 24952: typename _Operation::result_type 24952: operator()(const typename _Operation::second_argument_type& __x) const 24952: { return op(value, __x); } 24952: 24952: 24952: 24952: typename _Operation::result_type 24952: operator()(typename _Operation::second_argument_type& __x) const 24952: { return op(value, __x); } 24952: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 24952: 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 24952: inline binder1st<_Operation> 24952: bind1st(const _Operation& __fn, const _Tp& __x) 24952: { 24952: typedef typename _Operation::first_argument_type _Arg1_type; 24952: return binder1st<_Operation>(__fn, _Arg1_type(__x)); 24952: } 24952: 24952: 24952: template 24952: class binder2nd 24952: : public unary_function 24952: { 24952: protected: 24952: _Operation op; 24952: typename _Operation::second_argument_type value; 24952: 24952: public: 24952: binder2nd(const _Operation& __x, 24952: const typename _Operation::second_argument_type& __y) 24952: : op(__x), value(__y) { } 24952: 24952: typename _Operation::result_type 24952: operator()(const typename _Operation::first_argument_type& __x) const 24952: { return op(__x, value); } 24952: 24952: 24952: 24952: typename _Operation::result_type 24952: operator()(typename _Operation::first_argument_type& __x) const 24952: { return op(__x, value); } 24952: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 24952: 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 24952: inline binder2nd<_Operation> 24952: bind2nd(const _Operation& __fn, const _Tp& __x) 24952: { 24952: typedef typename _Operation::second_argument_type _Arg2_type; 24952: return binder2nd<_Operation>(__fn, _Arg2_type(__x)); 24952: } 24952: 24952: 24952: 24952: } 24952: 24952: #pragma GCC diagnostic pop 24952: # 1439 "/usr/include/c++/13/bits/stl_function.h" 2 3 24952: # 40 "/usr/include/c++/13/bits/refwrap.h" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 52 "/usr/include/c++/13/bits/refwrap.h" 3 24952: template 24952: struct _Maybe_unary_or_binary_function { }; 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: 24952: template 24952: struct _Maybe_unary_or_binary_function<_Res, _T1> 24952: : std::unary_function<_T1, _Res> { }; 24952: 24952: 24952: template 24952: struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> 24952: : std::binary_function<_T1, _T2, _Res> { }; 24952: 24952: #pragma GCC diagnostic pop 24952: 24952: template 24952: struct _Mem_fn_traits; 24952: 24952: template 24952: struct _Mem_fn_traits_base 24952: { 24952: using __result_type = _Res; 24952: using __maybe_type 24952: = _Maybe_unary_or_binary_function<_Res, _Class*, _ArgTypes...>; 24952: using __arity = integral_constant; 24952: }; 24952: # 103 "/usr/include/c++/13/bits/refwrap.h" 3 24952: 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; }; 24952: 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; }; 24952: 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; }; 24952: 24952: 24952: 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; }; 24952: 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; }; 24952: 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; }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: struct _Maybe_get_result_type 24952: { }; 24952: 24952: template 24952: struct _Maybe_get_result_type<_Functor, 24952: __void_t> 24952: { typedef typename _Functor::result_type result_type; }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Weak_result_type_impl 24952: : _Maybe_get_result_type<_Functor> 24952: { }; 24952: 24952: 24952: template 24952: struct _Weak_result_type_impl<_Res(_ArgTypes...) noexcept (_NE)> 24952: { typedef _Res result_type; }; 24952: 24952: 24952: template 24952: struct _Weak_result_type_impl<_Res(_ArgTypes......) noexcept (_NE)> 24952: { typedef _Res result_type; }; 24952: 24952: 24952: template 24952: struct _Weak_result_type_impl<_Res(*)(_ArgTypes...) noexcept (_NE)> 24952: { typedef _Res result_type; }; 24952: 24952: 24952: template 24952: struct 24952: _Weak_result_type_impl<_Res(*)(_ArgTypes......) noexcept (_NE)> 24952: { typedef _Res result_type; }; 24952: 24952: 24952: template::value> 24952: struct _Weak_result_type_memfun 24952: : _Weak_result_type_impl<_Functor> 24952: { }; 24952: 24952: 24952: template 24952: struct _Weak_result_type_memfun<_MemFunPtr, true> 24952: { 24952: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 24952: }; 24952: 24952: 24952: template 24952: struct _Weak_result_type_memfun<_Func _Class::*, false> 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Weak_result_type 24952: : _Weak_result_type_memfun::type> 24952: { }; 24952: 24952: 24952: 24952: template> 24952: struct _Refwrap_base_arg1 24952: { }; 24952: 24952: 24952: template 24952: struct _Refwrap_base_arg1<_Tp, 24952: __void_t> 24952: { 24952: typedef typename _Tp::argument_type argument_type; 24952: }; 24952: 24952: 24952: template> 24952: struct _Refwrap_base_arg2 24952: { }; 24952: 24952: 24952: template 24952: struct _Refwrap_base_arg2<_Tp, 24952: __void_t> 24952: { 24952: typedef typename _Tp::first_argument_type first_argument_type; 24952: typedef typename _Tp::second_argument_type second_argument_type; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Reference_wrapper_base 24952: : _Weak_result_type<_Tp>, _Refwrap_base_arg1<_Tp>, _Refwrap_base_arg2<_Tp> 24952: { }; 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: 24952: template 24952: struct _Reference_wrapper_base<_Res(_T1) noexcept (_NE)> 24952: : unary_function<_T1, _Res> 24952: { }; 24952: 24952: template 24952: struct _Reference_wrapper_base<_Res(_T1) const> 24952: : unary_function<_T1, _Res> 24952: { }; 24952: 24952: template 24952: struct _Reference_wrapper_base<_Res(_T1) volatile> 24952: : unary_function<_T1, _Res> 24952: { }; 24952: 24952: template 24952: struct _Reference_wrapper_base<_Res(_T1) const volatile> 24952: : unary_function<_T1, _Res> 24952: { }; 24952: 24952: 24952: template 24952: struct _Reference_wrapper_base<_Res(_T1, _T2) noexcept (_NE)> 24952: : binary_function<_T1, _T2, _Res> 24952: { }; 24952: 24952: template 24952: struct _Reference_wrapper_base<_Res(_T1, _T2) const> 24952: : binary_function<_T1, _T2, _Res> 24952: { }; 24952: 24952: template 24952: struct _Reference_wrapper_base<_Res(_T1, _T2) volatile> 24952: : binary_function<_T1, _T2, _Res> 24952: { }; 24952: 24952: template 24952: struct _Reference_wrapper_base<_Res(_T1, _T2) const volatile> 24952: : binary_function<_T1, _T2, _Res> 24952: { }; 24952: 24952: 24952: template 24952: struct _Reference_wrapper_base<_Res(*)(_T1) noexcept (_NE)> 24952: : unary_function<_T1, _Res> 24952: { }; 24952: 24952: 24952: template 24952: struct _Reference_wrapper_base<_Res(*)(_T1, _T2) noexcept (_NE)> 24952: : binary_function<_T1, _T2, _Res> 24952: { }; 24952: 24952: template::value> 24952: struct _Reference_wrapper_base_memfun 24952: : _Reference_wrapper_base<_Tp> 24952: { }; 24952: 24952: template 24952: struct _Reference_wrapper_base_memfun<_MemFunPtr, true> 24952: : _Mem_fn_traits<_MemFunPtr>::__maybe_type 24952: { 24952: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 24952: }; 24952: #pragma GCC diagnostic pop 24952: # 302 "/usr/include/c++/13/bits/refwrap.h" 3 24952: template 24952: class reference_wrapper 24952: 24952: 24952: 24952: : public _Reference_wrapper_base_memfun::type> 24952: 24952: { 24952: _Tp* _M_data; 24952: 24952: 24952: static _Tp* _S_fun(_Tp& __r) noexcept { return std::__addressof(__r); } 24952: 24952: static void _S_fun(_Tp&&) = delete; 24952: 24952: template> 24952: using __not_same 24952: = typename enable_if::value>::type; 24952: 24952: public: 24952: typedef _Tp type; 24952: 24952: 24952: 24952: 24952: template, typename 24952: = decltype(reference_wrapper::_S_fun(std::declval<_Up>()))> 24952: 24952: reference_wrapper(_Up&& __uref) 24952: noexcept(noexcept(reference_wrapper::_S_fun(std::declval<_Up>()))) 24952: : _M_data(reference_wrapper::_S_fun(std::forward<_Up>(__uref))) 24952: { } 24952: 24952: reference_wrapper(const reference_wrapper&) = default; 24952: 24952: reference_wrapper& 24952: operator=(const reference_wrapper&) = default; 24952: 24952: 24952: operator _Tp&() const noexcept 24952: { return this->get(); } 24952: 24952: 24952: _Tp& 24952: get() const noexcept 24952: { return *_M_data; } 24952: 24952: template 24952: 24952: typename __invoke_result<_Tp&, _Args...>::type 24952: operator()(_Args&&... __args) const 24952: noexcept(__is_nothrow_invocable<_Tp&, _Args...>::value) 24952: { 24952: 24952: 24952: 24952: 24952: return std::__invoke(get(), std::forward<_Args>(__args)...); 24952: } 24952: }; 24952: 24952: 24952: template 24952: reference_wrapper(_Tp&) -> reference_wrapper<_Tp>; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: inline reference_wrapper<_Tp> 24952: ref(_Tp& __t) noexcept 24952: { return reference_wrapper<_Tp>(__t); } 24952: 24952: 24952: template 24952: 24952: inline reference_wrapper 24952: cref(const _Tp& __t) noexcept 24952: { return reference_wrapper(__t); } 24952: 24952: template 24952: void ref(const _Tp&&) = delete; 24952: 24952: template 24952: void cref(const _Tp&&) = delete; 24952: 24952: 24952: template 24952: 24952: inline reference_wrapper<_Tp> 24952: ref(reference_wrapper<_Tp> __t) noexcept 24952: { return __t; } 24952: 24952: 24952: template 24952: 24952: inline reference_wrapper 24952: cref(reference_wrapper<_Tp> __t) noexcept 24952: { return { __t.get() }; } 24952: 24952: 24952: 24952: 24952: } 24952: # 68 "/usr/include/c++/13/deque" 2 3 24952: # 1 "/usr/include/c++/13/bits/range_access.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/range_access.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/range_access.h" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: inline constexpr auto 24952: begin(_Container& __cont) -> decltype(__cont.begin()) 24952: { return __cont.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: inline constexpr auto 24952: begin(const _Container& __cont) -> decltype(__cont.begin()) 24952: { return __cont.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: inline constexpr auto 24952: end(_Container& __cont) -> decltype(__cont.end()) 24952: { return __cont.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: inline constexpr auto 24952: end(const _Container& __cont) -> decltype(__cont.end()) 24952: { return __cont.end(); } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: inline constexpr _Tp* 24952: begin(_Tp (&__arr)[_Nm]) noexcept 24952: { return __arr; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: inline constexpr _Tp* 24952: end(_Tp (&__arr)[_Nm]) noexcept 24952: { return __arr + _Nm; } 24952: 24952: 24952: 24952: template class valarray; 24952: 24952: template _Tp* begin(valarray<_Tp>&) noexcept; 24952: template const _Tp* begin(const valarray<_Tp>&) noexcept; 24952: template _Tp* end(valarray<_Tp>&) noexcept; 24952: template const _Tp* end(const valarray<_Tp>&) noexcept; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: constexpr auto 24952: cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont))) 24952: -> decltype(std::begin(__cont)) 24952: { return std::begin(__cont); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: constexpr auto 24952: cend(const _Container& __cont) noexcept(noexcept(std::end(__cont))) 24952: -> decltype(std::end(__cont)) 24952: { return std::end(__cont); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: inline constexpr auto 24952: rbegin(_Container& __cont) -> decltype(__cont.rbegin()) 24952: { return __cont.rbegin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: inline constexpr auto 24952: rbegin(const _Container& __cont) -> decltype(__cont.rbegin()) 24952: { return __cont.rbegin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: inline constexpr auto 24952: rend(_Container& __cont) -> decltype(__cont.rend()) 24952: { return __cont.rend(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: inline constexpr auto 24952: rend(const _Container& __cont) -> decltype(__cont.rend()) 24952: { return __cont.rend(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr reverse_iterator<_Tp*> 24952: rbegin(_Tp (&__arr)[_Nm]) noexcept 24952: { return reverse_iterator<_Tp*>(__arr + _Nm); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr reverse_iterator<_Tp*> 24952: rend(_Tp (&__arr)[_Nm]) noexcept 24952: { return reverse_iterator<_Tp*>(__arr); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr reverse_iterator 24952: rbegin(initializer_list<_Tp> __il) noexcept 24952: { return reverse_iterator(__il.end()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline constexpr reverse_iterator 24952: rend(initializer_list<_Tp> __il) noexcept 24952: { return reverse_iterator(__il.begin()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: inline constexpr auto 24952: crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont)) 24952: { return std::rbegin(__cont); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__, __gnu__::__always_inline__]] 24952: inline constexpr auto 24952: crend(const _Container& __cont) -> decltype(std::rend(__cont)) 24952: { return std::rend(__cont); } 24952: # 261 "/usr/include/c++/13/bits/range_access.h" 3 24952: template 24952: [[nodiscard, __gnu__::__always_inline__]] 24952: constexpr auto 24952: size(const _Container& __cont) noexcept(noexcept(__cont.size())) 24952: -> decltype(__cont.size()) 24952: { return __cont.size(); } 24952: 24952: 24952: 24952: 24952: template 24952: [[nodiscard, __gnu__::__always_inline__]] 24952: constexpr size_t 24952: size(const _Tp (&)[_Nm]) noexcept 24952: { return _Nm; } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[nodiscard, __gnu__::__always_inline__]] 24952: constexpr auto 24952: empty(const _Container& __cont) noexcept(noexcept(__cont.empty())) 24952: -> decltype(__cont.empty()) 24952: { return __cont.empty(); } 24952: 24952: 24952: 24952: 24952: template 24952: [[nodiscard, __gnu__::__always_inline__]] 24952: constexpr bool 24952: empty(const _Tp (&)[_Nm]) noexcept 24952: { return false; } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[nodiscard, __gnu__::__always_inline__]] 24952: constexpr bool 24952: empty(initializer_list<_Tp> __il) noexcept 24952: { return __il.size() == 0;} 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[nodiscard, __gnu__::__always_inline__]] 24952: constexpr auto 24952: data(_Container& __cont) noexcept(noexcept(__cont.data())) 24952: -> decltype(__cont.data()) 24952: { return __cont.data(); } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[nodiscard, __gnu__::__always_inline__]] 24952: constexpr auto 24952: data(const _Container& __cont) noexcept(noexcept(__cont.data())) 24952: -> decltype(__cont.data()) 24952: { return __cont.data(); } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[nodiscard, __gnu__::__always_inline__]] 24952: constexpr _Tp* 24952: data(_Tp (&__array)[_Nm]) noexcept 24952: { return __array; } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[nodiscard, __gnu__::__always_inline__]] 24952: constexpr const _Tp* 24952: data(initializer_list<_Tp> __il) noexcept 24952: { return __il.begin(); } 24952: # 370 "/usr/include/c++/13/bits/range_access.h" 3 24952: 24952: } 24952: # 69 "/usr/include/c++/13/deque" 2 3 24952: # 1 "/usr/include/c++/13/bits/deque.tcc" 1 3 24952: # 61 "/usr/include/c++/13/bits/deque.tcc" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_default_initialize() 24952: { 24952: _Map_pointer __cur; 24952: try 24952: { 24952: for (__cur = this->_M_impl._M_start._M_node; 24952: __cur < this->_M_impl._M_finish._M_node; 24952: ++__cur) 24952: std::__uninitialized_default_a(*__cur, *__cur + _S_buffer_size(), 24952: _M_get_Tp_allocator()); 24952: std::__uninitialized_default_a(this->_M_impl._M_finish._M_first, 24952: this->_M_impl._M_finish._M_cur, 24952: _M_get_Tp_allocator()); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 24952: _M_get_Tp_allocator()); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: template 24952: deque<_Tp, _Alloc>& 24952: deque<_Tp, _Alloc>:: 24952: operator=(const deque& __x) 24952: { 24952: if (std::__addressof(__x) != this) 24952: { 24952: 24952: if (_Alloc_traits::_S_propagate_on_copy_assign()) 24952: { 24952: if (!_Alloc_traits::_S_always_equal() 24952: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 24952: { 24952: 24952: 24952: _M_replace_map(__x, __x.get_allocator()); 24952: std::__alloc_on_copy(_M_get_Tp_allocator(), 24952: __x._M_get_Tp_allocator()); 24952: return *this; 24952: } 24952: std::__alloc_on_copy(_M_get_Tp_allocator(), 24952: __x._M_get_Tp_allocator()); 24952: } 24952: 24952: const size_type __len = size(); 24952: if (__len >= __x.size()) 24952: _M_erase_at_end(std::copy(__x.begin(), __x.end(), 24952: this->_M_impl._M_start)); 24952: else 24952: { 24952: const_iterator __mid = __x.begin() + difference_type(__len); 24952: std::copy(__x.begin(), __mid, this->_M_impl._M_start); 24952: _M_range_insert_aux(this->_M_impl._M_finish, __mid, __x.end(), 24952: std::random_access_iterator_tag()); 24952: } 24952: } 24952: return *this; 24952: } 24952: 24952: 24952: template 24952: template 24952: 24952: typename deque<_Tp, _Alloc>::reference 24952: 24952: 24952: 24952: deque<_Tp, _Alloc>:: 24952: emplace_front(_Args&&... __args) 24952: { 24952: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 24952: { 24952: _Alloc_traits::construct(this->_M_impl, 24952: this->_M_impl._M_start._M_cur - 1, 24952: std::forward<_Args>(__args)...); 24952: --this->_M_impl._M_start._M_cur; 24952: } 24952: else 24952: _M_push_front_aux(std::forward<_Args>(__args)...); 24952: 24952: return front(); 24952: 24952: } 24952: 24952: template 24952: template 24952: 24952: typename deque<_Tp, _Alloc>::reference 24952: 24952: 24952: 24952: deque<_Tp, _Alloc>:: 24952: emplace_back(_Args&&... __args) 24952: { 24952: if (this->_M_impl._M_finish._M_cur 24952: != this->_M_impl._M_finish._M_last - 1) 24952: { 24952: _Alloc_traits::construct(this->_M_impl, 24952: this->_M_impl._M_finish._M_cur, 24952: std::forward<_Args>(__args)...); 24952: ++this->_M_impl._M_finish._M_cur; 24952: } 24952: else 24952: _M_push_back_aux(std::forward<_Args>(__args)...); 24952: 24952: return back(); 24952: 24952: } 24952: 24952: 24952: 24952: template 24952: template 24952: typename deque<_Tp, _Alloc>::iterator 24952: deque<_Tp, _Alloc>:: 24952: emplace(const_iterator __position, _Args&&... __args) 24952: { 24952: if (__position._M_cur == this->_M_impl._M_start._M_cur) 24952: { 24952: emplace_front(std::forward<_Args>(__args)...); 24952: return this->_M_impl._M_start; 24952: } 24952: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 24952: { 24952: emplace_back(std::forward<_Args>(__args)...); 24952: iterator __tmp = this->_M_impl._M_finish; 24952: --__tmp; 24952: return __tmp; 24952: } 24952: else 24952: return _M_insert_aux(__position._M_const_cast(), 24952: std::forward<_Args>(__args)...); 24952: } 24952: 24952: 24952: template 24952: typename deque<_Tp, _Alloc>::iterator 24952: deque<_Tp, _Alloc>:: 24952: 24952: insert(const_iterator __position, const value_type& __x) 24952: 24952: 24952: 24952: { 24952: if (__position._M_cur == this->_M_impl._M_start._M_cur) 24952: { 24952: push_front(__x); 24952: return this->_M_impl._M_start; 24952: } 24952: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 24952: { 24952: push_back(__x); 24952: iterator __tmp = this->_M_impl._M_finish; 24952: --__tmp; 24952: return __tmp; 24952: } 24952: else 24952: return _M_insert_aux(__position._M_const_cast(), __x); 24952: } 24952: 24952: template 24952: typename deque<_Tp, _Alloc>::iterator 24952: deque<_Tp, _Alloc>:: 24952: _M_erase(iterator __position) 24952: { 24952: iterator __next = __position; 24952: ++__next; 24952: const difference_type __index = __position - begin(); 24952: if (static_cast(__index) < (size() >> 1)) 24952: { 24952: if (__position != begin()) 24952: std::move_backward(begin(), __position, __next); 24952: pop_front(); 24952: } 24952: else 24952: { 24952: if (__next != end()) 24952: std::move(__next, end(), __position); 24952: pop_back(); 24952: } 24952: return begin() + __index; 24952: } 24952: 24952: template 24952: typename deque<_Tp, _Alloc>::iterator 24952: deque<_Tp, _Alloc>:: 24952: _M_erase(iterator __first, iterator __last) 24952: { 24952: if (__first == __last) 24952: return __first; 24952: else if (__first == begin() && __last == end()) 24952: { 24952: clear(); 24952: return end(); 24952: } 24952: else 24952: { 24952: const difference_type __n = __last - __first; 24952: const difference_type __elems_before = __first - begin(); 24952: if (static_cast(__elems_before) <= (size() - __n) / 2) 24952: { 24952: if (__first != begin()) 24952: std::move_backward(begin(), __first, __last); 24952: _M_erase_at_begin(begin() + __n); 24952: } 24952: else 24952: { 24952: if (__last != end()) 24952: std::move(__last, end(), __first); 24952: _M_erase_at_end(end() - __n); 24952: } 24952: return begin() + __elems_before; 24952: } 24952: } 24952: 24952: template 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_assign_aux(_InputIterator __first, _InputIterator __last, 24952: std::input_iterator_tag) 24952: { 24952: iterator __cur = begin(); 24952: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 24952: *__cur = *__first; 24952: if (__first == __last) 24952: _M_erase_at_end(__cur); 24952: else 24952: _M_range_insert_aux(end(), __first, __last, 24952: std::__iterator_category(__first)); 24952: } 24952: 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x) 24952: { 24952: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 24952: { 24952: iterator __new_start = _M_reserve_elements_at_front(__n); 24952: try 24952: { 24952: std::__uninitialized_fill_a(__new_start, this->_M_impl._M_start, 24952: __x, _M_get_Tp_allocator()); 24952: this->_M_impl._M_start = __new_start; 24952: } 24952: catch(...) 24952: { 24952: _M_destroy_nodes(__new_start._M_node, 24952: this->_M_impl._M_start._M_node); 24952: throw; 24952: } 24952: } 24952: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 24952: { 24952: iterator __new_finish = _M_reserve_elements_at_back(__n); 24952: try 24952: { 24952: std::__uninitialized_fill_a(this->_M_impl._M_finish, 24952: __new_finish, __x, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_finish = __new_finish; 24952: } 24952: catch(...) 24952: { 24952: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 24952: __new_finish._M_node + 1); 24952: throw; 24952: } 24952: } 24952: else 24952: _M_insert_aux(__pos, __n, __x); 24952: } 24952: 24952: 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_default_append(size_type __n) 24952: { 24952: if (__n) 24952: { 24952: iterator __new_finish = _M_reserve_elements_at_back(__n); 24952: try 24952: { 24952: std::__uninitialized_default_a(this->_M_impl._M_finish, 24952: __new_finish, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_finish = __new_finish; 24952: } 24952: catch(...) 24952: { 24952: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 24952: __new_finish._M_node + 1); 24952: throw; 24952: } 24952: } 24952: } 24952: 24952: template 24952: bool 24952: deque<_Tp, _Alloc>:: 24952: _M_shrink_to_fit() 24952: { 24952: const difference_type __front_capacity 24952: = (this->_M_impl._M_start._M_cur - this->_M_impl._M_start._M_first); 24952: if (__front_capacity == 0) 24952: return false; 24952: 24952: const difference_type __back_capacity 24952: = (this->_M_impl._M_finish._M_last - this->_M_impl._M_finish._M_cur); 24952: if (__front_capacity + __back_capacity < _S_buffer_size()) 24952: return false; 24952: 24952: return std::__shrink_to_fit_aux::_S_do_it(*this); 24952: } 24952: 24952: 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_fill_initialize(const value_type& __value) 24952: { 24952: _Map_pointer __cur; 24952: try 24952: { 24952: for (__cur = this->_M_impl._M_start._M_node; 24952: __cur < this->_M_impl._M_finish._M_node; 24952: ++__cur) 24952: std::__uninitialized_fill_a(*__cur, *__cur + _S_buffer_size(), 24952: __value, _M_get_Tp_allocator()); 24952: std::__uninitialized_fill_a(this->_M_impl._M_finish._M_first, 24952: this->_M_impl._M_finish._M_cur, 24952: __value, _M_get_Tp_allocator()); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 24952: _M_get_Tp_allocator()); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_range_initialize(_InputIterator __first, _InputIterator __last, 24952: std::input_iterator_tag) 24952: { 24952: this->_M_initialize_map(0); 24952: try 24952: { 24952: for (; __first != __last; ++__first) 24952: 24952: emplace_back(*__first); 24952: 24952: 24952: 24952: } 24952: catch(...) 24952: { 24952: clear(); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 24952: std::forward_iterator_tag) 24952: { 24952: const size_type __n = std::distance(__first, __last); 24952: this->_M_initialize_map(_S_check_init_len(__n, _M_get_Tp_allocator())); 24952: 24952: _Map_pointer __cur_node; 24952: try 24952: { 24952: for (__cur_node = this->_M_impl._M_start._M_node; 24952: __cur_node < this->_M_impl._M_finish._M_node; 24952: ++__cur_node) 24952: { 24952: if (__n < _S_buffer_size()) 24952: __builtin_unreachable(); 24952: 24952: _ForwardIterator __mid = __first; 24952: std::advance(__mid, _S_buffer_size()); 24952: std::__uninitialized_copy_a(__first, __mid, *__cur_node, 24952: _M_get_Tp_allocator()); 24952: __first = __mid; 24952: } 24952: std::__uninitialized_copy_a(__first, __last, 24952: this->_M_impl._M_finish._M_first, 24952: _M_get_Tp_allocator()); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(this->_M_impl._M_start, 24952: iterator(*__cur_node, __cur_node), 24952: _M_get_Tp_allocator()); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: template 24952: 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_push_back_aux(_Args&&... __args) 24952: 24952: 24952: 24952: 24952: 24952: { 24952: if (size() == max_size()) 24952: __throw_length_error( 24952: ("cannot create std::deque larger than max_size()")); 24952: 24952: _M_reserve_map_at_back(); 24952: *(this->_M_impl._M_finish._M_node + 1) = this->_M_allocate_node(); 24952: try 24952: { 24952: 24952: _Alloc_traits::construct(this->_M_impl, 24952: this->_M_impl._M_finish._M_cur, 24952: std::forward<_Args>(__args)...); 24952: 24952: 24952: 24952: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node 24952: + 1); 24952: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_first; 24952: } 24952: catch(...) 24952: { 24952: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + 1)); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: template 24952: 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_push_front_aux(_Args&&... __args) 24952: 24952: 24952: 24952: 24952: 24952: { 24952: if (size() == max_size()) 24952: __throw_length_error( 24952: ("cannot create std::deque larger than max_size()")); 24952: 24952: _M_reserve_map_at_front(); 24952: *(this->_M_impl._M_start._M_node - 1) = this->_M_allocate_node(); 24952: try 24952: { 24952: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node 24952: - 1); 24952: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_last - 1; 24952: 24952: _Alloc_traits::construct(this->_M_impl, 24952: this->_M_impl._M_start._M_cur, 24952: std::forward<_Args>(__args)...); 24952: 24952: 24952: 24952: } 24952: catch(...) 24952: { 24952: ++this->_M_impl._M_start; 24952: _M_deallocate_node(*(this->_M_impl._M_start._M_node - 1)); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: template 24952: void deque<_Tp, _Alloc>:: 24952: _M_pop_back_aux() 24952: { 24952: _M_deallocate_node(this->_M_impl._M_finish._M_first); 24952: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node - 1); 24952: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_last - 1; 24952: _Alloc_traits::destroy(_M_get_Tp_allocator(), 24952: this->_M_impl._M_finish._M_cur); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: void deque<_Tp, _Alloc>:: 24952: _M_pop_front_aux() 24952: { 24952: _Alloc_traits::destroy(_M_get_Tp_allocator(), 24952: this->_M_impl._M_start._M_cur); 24952: _M_deallocate_node(this->_M_impl._M_start._M_first); 24952: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node + 1); 24952: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_first; 24952: } 24952: 24952: template 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_range_insert_aux(iterator __pos, 24952: _InputIterator __first, _InputIterator __last, 24952: std::input_iterator_tag) 24952: { std::copy(__first, __last, std::inserter(*this, __pos)); } 24952: 24952: template 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_range_insert_aux(iterator __pos, 24952: _ForwardIterator __first, _ForwardIterator __last, 24952: std::forward_iterator_tag) 24952: { 24952: const size_type __n = std::distance(__first, __last); 24952: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 24952: { 24952: iterator __new_start = _M_reserve_elements_at_front(__n); 24952: try 24952: { 24952: std::__uninitialized_copy_a(__first, __last, __new_start, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_start = __new_start; 24952: } 24952: catch(...) 24952: { 24952: _M_destroy_nodes(__new_start._M_node, 24952: this->_M_impl._M_start._M_node); 24952: throw; 24952: } 24952: } 24952: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 24952: { 24952: iterator __new_finish = _M_reserve_elements_at_back(__n); 24952: try 24952: { 24952: std::__uninitialized_copy_a(__first, __last, 24952: this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_finish = __new_finish; 24952: } 24952: catch(...) 24952: { 24952: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 24952: __new_finish._M_node + 1); 24952: throw; 24952: } 24952: } 24952: else 24952: _M_insert_aux(__pos, __first, __last, __n); 24952: } 24952: 24952: template 24952: 24952: template 24952: typename deque<_Tp, _Alloc>::iterator 24952: deque<_Tp, _Alloc>:: 24952: _M_insert_aux(iterator __pos, _Args&&... __args) 24952: { 24952: value_type __x_copy(std::forward<_Args>(__args)...); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: difference_type __index = __pos - this->_M_impl._M_start; 24952: if (static_cast(__index) < size() / 2) 24952: { 24952: push_front(std::move(front())); 24952: iterator __front1 = this->_M_impl._M_start; 24952: ++__front1; 24952: iterator __front2 = __front1; 24952: ++__front2; 24952: __pos = this->_M_impl._M_start + __index; 24952: iterator __pos1 = __pos; 24952: ++__pos1; 24952: std::move(__front2, __pos1, __front1); 24952: } 24952: else 24952: { 24952: push_back(std::move(back())); 24952: iterator __back1 = this->_M_impl._M_finish; 24952: --__back1; 24952: iterator __back2 = __back1; 24952: --__back2; 24952: __pos = this->_M_impl._M_start + __index; 24952: std::move_backward(__pos, __back2, __back1); 24952: } 24952: *__pos = std::move(__x_copy); 24952: return __pos; 24952: } 24952: 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x) 24952: { 24952: const difference_type __elems_before = __pos - this->_M_impl._M_start; 24952: const size_type __length = this->size(); 24952: value_type __x_copy = __x; 24952: if (__elems_before < difference_type(__length / 2)) 24952: { 24952: iterator __new_start = _M_reserve_elements_at_front(__n); 24952: iterator __old_start = this->_M_impl._M_start; 24952: __pos = this->_M_impl._M_start + __elems_before; 24952: try 24952: { 24952: if (__elems_before >= difference_type(__n)) 24952: { 24952: iterator __start_n = (this->_M_impl._M_start 24952: + difference_type(__n)); 24952: std::__uninitialized_move_a(this->_M_impl._M_start, 24952: __start_n, __new_start, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_start = __new_start; 24952: std::move(__start_n, __pos, __old_start); 24952: std::fill(__pos - difference_type(__n), __pos, __x_copy); 24952: } 24952: else 24952: { 24952: std::__uninitialized_move_fill(this->_M_impl._M_start, 24952: __pos, __new_start, 24952: this->_M_impl._M_start, 24952: __x_copy, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_start = __new_start; 24952: std::fill(__old_start, __pos, __x_copy); 24952: } 24952: } 24952: catch(...) 24952: { 24952: _M_destroy_nodes(__new_start._M_node, 24952: this->_M_impl._M_start._M_node); 24952: throw; 24952: } 24952: } 24952: else 24952: { 24952: iterator __new_finish = _M_reserve_elements_at_back(__n); 24952: iterator __old_finish = this->_M_impl._M_finish; 24952: const difference_type __elems_after = 24952: difference_type(__length) - __elems_before; 24952: __pos = this->_M_impl._M_finish - __elems_after; 24952: try 24952: { 24952: if (__elems_after > difference_type(__n)) 24952: { 24952: iterator __finish_n = (this->_M_impl._M_finish 24952: - difference_type(__n)); 24952: std::__uninitialized_move_a(__finish_n, 24952: this->_M_impl._M_finish, 24952: this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_finish = __new_finish; 24952: std::move_backward(__pos, __finish_n, __old_finish); 24952: std::fill(__pos, __pos + difference_type(__n), __x_copy); 24952: } 24952: else 24952: { 24952: std::__uninitialized_fill_move(this->_M_impl._M_finish, 24952: __pos + difference_type(__n), 24952: __x_copy, __pos, 24952: this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_finish = __new_finish; 24952: std::fill(__pos, __old_finish, __x_copy); 24952: } 24952: } 24952: catch(...) 24952: { 24952: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 24952: __new_finish._M_node + 1); 24952: throw; 24952: } 24952: } 24952: } 24952: 24952: template 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_insert_aux(iterator __pos, 24952: _ForwardIterator __first, _ForwardIterator __last, 24952: size_type __n) 24952: { 24952: const difference_type __elemsbefore = __pos - this->_M_impl._M_start; 24952: const size_type __length = size(); 24952: if (static_cast(__elemsbefore) < __length / 2) 24952: { 24952: iterator __new_start = _M_reserve_elements_at_front(__n); 24952: iterator __old_start = this->_M_impl._M_start; 24952: __pos = this->_M_impl._M_start + __elemsbefore; 24952: try 24952: { 24952: if (__elemsbefore >= difference_type(__n)) 24952: { 24952: iterator __start_n = (this->_M_impl._M_start 24952: + difference_type(__n)); 24952: std::__uninitialized_move_a(this->_M_impl._M_start, 24952: __start_n, __new_start, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_start = __new_start; 24952: std::move(__start_n, __pos, __old_start); 24952: std::copy(__first, __last, __pos - difference_type(__n)); 24952: } 24952: else 24952: { 24952: _ForwardIterator __mid = __first; 24952: std::advance(__mid, difference_type(__n) - __elemsbefore); 24952: std::__uninitialized_move_copy(this->_M_impl._M_start, 24952: __pos, __first, __mid, 24952: __new_start, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_start = __new_start; 24952: std::copy(__mid, __last, __old_start); 24952: } 24952: } 24952: catch(...) 24952: { 24952: _M_destroy_nodes(__new_start._M_node, 24952: this->_M_impl._M_start._M_node); 24952: throw; 24952: } 24952: } 24952: else 24952: { 24952: iterator __new_finish = _M_reserve_elements_at_back(__n); 24952: iterator __old_finish = this->_M_impl._M_finish; 24952: const difference_type __elemsafter = 24952: difference_type(__length) - __elemsbefore; 24952: __pos = this->_M_impl._M_finish - __elemsafter; 24952: try 24952: { 24952: if (__elemsafter > difference_type(__n)) 24952: { 24952: iterator __finish_n = (this->_M_impl._M_finish 24952: - difference_type(__n)); 24952: std::__uninitialized_move_a(__finish_n, 24952: this->_M_impl._M_finish, 24952: this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_finish = __new_finish; 24952: std::move_backward(__pos, __finish_n, __old_finish); 24952: std::copy(__first, __last, __pos); 24952: } 24952: else 24952: { 24952: _ForwardIterator __mid = __first; 24952: std::advance(__mid, __elemsafter); 24952: std::__uninitialized_copy_move(__mid, __last, __pos, 24952: this->_M_impl._M_finish, 24952: this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_finish = __new_finish; 24952: std::copy(__first, __mid, __pos); 24952: } 24952: } 24952: catch(...) 24952: { 24952: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 24952: __new_finish._M_node + 1); 24952: throw; 24952: } 24952: } 24952: } 24952: 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_destroy_data_aux(iterator __first, iterator __last) 24952: { 24952: for (_Map_pointer __node = __first._M_node + 1; 24952: __node < __last._M_node; ++__node) 24952: std::_Destroy(*__node, *__node + _S_buffer_size(), 24952: _M_get_Tp_allocator()); 24952: 24952: if (__first._M_node != __last._M_node) 24952: { 24952: std::_Destroy(__first._M_cur, __first._M_last, 24952: _M_get_Tp_allocator()); 24952: std::_Destroy(__last._M_first, __last._M_cur, 24952: _M_get_Tp_allocator()); 24952: } 24952: else 24952: std::_Destroy(__first._M_cur, __last._M_cur, 24952: _M_get_Tp_allocator()); 24952: } 24952: 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_new_elements_at_front(size_type __new_elems) 24952: { 24952: if (this->max_size() - this->size() < __new_elems) 24952: __throw_length_error(("deque::_M_new_elements_at_front")); 24952: 24952: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 24952: / _S_buffer_size()); 24952: _M_reserve_map_at_front(__new_nodes); 24952: size_type __i; 24952: try 24952: { 24952: for (__i = 1; __i <= __new_nodes; ++__i) 24952: *(this->_M_impl._M_start._M_node - __i) = this->_M_allocate_node(); 24952: } 24952: catch(...) 24952: { 24952: for (size_type __j = 1; __j < __i; ++__j) 24952: _M_deallocate_node(*(this->_M_impl._M_start._M_node - __j)); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_new_elements_at_back(size_type __new_elems) 24952: { 24952: if (this->max_size() - this->size() < __new_elems) 24952: __throw_length_error(("deque::_M_new_elements_at_back")); 24952: 24952: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 24952: / _S_buffer_size()); 24952: _M_reserve_map_at_back(__new_nodes); 24952: size_type __i; 24952: try 24952: { 24952: for (__i = 1; __i <= __new_nodes; ++__i) 24952: *(this->_M_impl._M_finish._M_node + __i) = this->_M_allocate_node(); 24952: } 24952: catch(...) 24952: { 24952: for (size_type __j = 1; __j < __i; ++__j) 24952: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + __j)); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: void 24952: deque<_Tp, _Alloc>:: 24952: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front) 24952: { 24952: const size_type __old_num_nodes 24952: = this->_M_impl._M_finish._M_node - this->_M_impl._M_start._M_node + 1; 24952: const size_type __new_num_nodes = __old_num_nodes + __nodes_to_add; 24952: 24952: _Map_pointer __new_nstart; 24952: if (this->_M_impl._M_map_size > 2 * __new_num_nodes) 24952: { 24952: __new_nstart = this->_M_impl._M_map + (this->_M_impl._M_map_size 24952: - __new_num_nodes) / 2 24952: + (__add_at_front ? __nodes_to_add : 0); 24952: if (__new_nstart < this->_M_impl._M_start._M_node) 24952: std::copy(this->_M_impl._M_start._M_node, 24952: this->_M_impl._M_finish._M_node + 1, 24952: __new_nstart); 24952: else 24952: std::copy_backward(this->_M_impl._M_start._M_node, 24952: this->_M_impl._M_finish._M_node + 1, 24952: __new_nstart + __old_num_nodes); 24952: } 24952: else 24952: { 24952: size_type __new_map_size = this->_M_impl._M_map_size 24952: + std::max(this->_M_impl._M_map_size, 24952: __nodes_to_add) + 2; 24952: 24952: _Map_pointer __new_map = this->_M_allocate_map(__new_map_size); 24952: __new_nstart = __new_map + (__new_map_size - __new_num_nodes) / 2 24952: + (__add_at_front ? __nodes_to_add : 0); 24952: std::copy(this->_M_impl._M_start._M_node, 24952: this->_M_impl._M_finish._M_node + 1, 24952: __new_nstart); 24952: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 24952: 24952: this->_M_impl._M_map = __new_map; 24952: this->_M_impl._M_map_size = __new_map_size; 24952: } 24952: 24952: this->_M_impl._M_start._M_set_node(__new_nstart); 24952: this->_M_impl._M_finish._M_set_node(__new_nstart + __old_num_nodes - 1); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: void 24952: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __first, 24952: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __last, 24952: const _VTp& __value) 24952: { 24952: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 24952: if (__first._M_node != __last._M_node) 24952: { 24952: std::__fill_a1(__first._M_cur, __first._M_last, __value); 24952: 24952: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 24952: __node < __last._M_node; ++__node) 24952: std::__fill_a1(*__node, *__node + _Iter::_S_buffer_size(), __value); 24952: 24952: std::__fill_a1(__last._M_first, __last._M_cur, __value); 24952: } 24952: else 24952: std::__fill_a1(__first._M_cur, __last._M_cur, __value); 24952: } 24952: 24952: template 24952: _OI 24952: __copy_move_dit(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 24952: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 24952: _OI __result) 24952: { 24952: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 24952: if (__first._M_node != __last._M_node) 24952: { 24952: __result 24952: = std::__copy_move_a1<_IsMove>(__first._M_cur, __first._M_last, 24952: __result); 24952: 24952: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 24952: __node != __last._M_node; ++__node) 24952: __result 24952: = std::__copy_move_a1<_IsMove>(*__node, 24952: *__node + _Iter::_S_buffer_size(), 24952: __result); 24952: 24952: return std::__copy_move_a1<_IsMove>(__last._M_first, __last._M_cur, 24952: __result); 24952: } 24952: 24952: return std::__copy_move_a1<_IsMove>(__first._M_cur, __last._M_cur, 24952: __result); 24952: } 24952: 24952: template 24952: _OI 24952: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 24952: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 24952: _OI __result) 24952: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 24952: 24952: template 24952: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 24952: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 24952: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 24952: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 24952: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 24952: 24952: template 24952: typename __gnu_cxx::__enable_if< 24952: __is_random_access_iter<_II>::__value, 24952: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 24952: __copy_move_a1(_II __first, _II __last, 24952: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 24952: { 24952: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 24952: typedef typename _Iter::difference_type difference_type; 24952: 24952: difference_type __len = __last - __first; 24952: while (__len > 0) 24952: { 24952: const difference_type __clen 24952: = std::min(__len, __result._M_last - __result._M_cur); 24952: std::__copy_move_a1<_IsMove>(__first, __first + __clen, 24952: __result._M_cur); 24952: 24952: __first += __clen; 24952: __result += __clen; 24952: __len -= __clen; 24952: } 24952: 24952: return __result; 24952: } 24952: 24952: template 24952: typename __gnu_cxx::__enable_if< 24952: __is_char<_CharT>::__value, 24952: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 24952: __copy_move_a2( 24952: istreambuf_iterator<_CharT, char_traits<_CharT> > __first, 24952: istreambuf_iterator<_CharT, char_traits<_CharT> > __last, 24952: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result) 24952: { 24952: if (__first == __last) 24952: return __result; 24952: 24952: for (;;) 24952: { 24952: const std::ptrdiff_t __len = __result._M_last - __result._M_cur; 24952: const std::ptrdiff_t __nb 24952: = std::__copy_n_a(__first, __len, __result._M_cur, false) 24952: - __result._M_cur; 24952: __result += __nb; 24952: 24952: if (__nb != __len) 24952: break; 24952: } 24952: 24952: return __result; 24952: } 24952: 24952: template 24952: typename __gnu_cxx::__enable_if< 24952: __is_char<_CharT>::__value, 24952: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 24952: __copy_n_a( 24952: istreambuf_iterator<_CharT, char_traits<_CharT> > __it, _Size __size, 24952: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result, 24952: bool __strict) 24952: { 24952: if (__size == 0) 24952: return __result; 24952: 24952: do 24952: { 24952: const _Size __len 24952: = std::min<_Size>(__result._M_last - __result._M_cur, __size); 24952: std::__copy_n_a(__it, __len, __result._M_cur, __strict); 24952: __result += __len; 24952: __size -= __len; 24952: } 24952: while (__size != 0); 24952: return __result; 24952: } 24952: 24952: template 24952: _OI 24952: __copy_move_backward_dit( 24952: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 24952: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 24952: _OI __result) 24952: { 24952: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 24952: if (__first._M_node != __last._M_node) 24952: { 24952: __result = std::__copy_move_backward_a1<_IsMove>( 24952: __last._M_first, __last._M_cur, __result); 24952: 24952: for (typename _Iter::_Map_pointer __node = __last._M_node - 1; 24952: __node != __first._M_node; --__node) 24952: __result = std::__copy_move_backward_a1<_IsMove>( 24952: *__node, *__node + _Iter::_S_buffer_size(), __result); 24952: 24952: return std::__copy_move_backward_a1<_IsMove>( 24952: __first._M_cur, __first._M_last, __result); 24952: } 24952: 24952: return std::__copy_move_backward_a1<_IsMove>( 24952: __first._M_cur, __last._M_cur, __result); 24952: } 24952: 24952: template 24952: _OI 24952: __copy_move_backward_a1( 24952: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 24952: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 24952: _OI __result) 24952: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 24952: 24952: template 24952: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 24952: __copy_move_backward_a1( 24952: std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 24952: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 24952: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 24952: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 24952: 24952: template 24952: typename __gnu_cxx::__enable_if< 24952: __is_random_access_iter<_II>::__value, 24952: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 24952: __copy_move_backward_a1(_II __first, _II __last, 24952: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 24952: { 24952: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 24952: typedef typename _Iter::difference_type difference_type; 24952: 24952: difference_type __len = __last - __first; 24952: while (__len > 0) 24952: { 24952: difference_type __rlen = __result._M_cur - __result._M_first; 24952: _Tp* __rend = __result._M_cur; 24952: if (!__rlen) 24952: { 24952: __rlen = _Iter::_S_buffer_size(); 24952: __rend = *(__result._M_node - 1) + __rlen; 24952: } 24952: 24952: const difference_type __clen = std::min(__len, __rlen); 24952: std::__copy_move_backward_a1<_IsMove>(__last - __clen, __last, __rend); 24952: 24952: __last -= __clen; 24952: __result -= __clen; 24952: __len -= __clen; 24952: } 24952: 24952: return __result; 24952: } 24952: 24952: template 24952: bool 24952: __equal_dit( 24952: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __first1, 24952: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __last1, 24952: _II __first2) 24952: { 24952: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 24952: if (__first1._M_node != __last1._M_node) 24952: { 24952: if (!std::__equal_aux1(__first1._M_cur, __first1._M_last, __first2)) 24952: return false; 24952: 24952: __first2 += __first1._M_last - __first1._M_cur; 24952: for (typename _Iter::_Map_pointer __node = __first1._M_node + 1; 24952: __node != __last1._M_node; 24952: __first2 += _Iter::_S_buffer_size(), ++__node) 24952: if (!std::__equal_aux1(*__node, *__node + _Iter::_S_buffer_size(), 24952: __first2)) 24952: return false; 24952: 24952: return std::__equal_aux1(__last1._M_first, __last1._M_cur, __first2); 24952: } 24952: 24952: return std::__equal_aux1(__first1._M_cur, __last1._M_cur, __first2); 24952: } 24952: 24952: template 24952: typename __gnu_cxx::__enable_if< 24952: __is_random_access_iter<_II>::__value, bool>::__type 24952: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first1, 24952: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last1, 24952: _II __first2) 24952: { return std::__equal_dit(__first1, __last1, __first2); } 24952: 24952: template 24952: bool 24952: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 24952: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 24952: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2) 24952: { return std::__equal_dit(__first1, __last1, __first2); } 24952: 24952: template 24952: typename __gnu_cxx::__enable_if< 24952: __is_random_access_iter<_II>::__value, bool>::__type 24952: __equal_aux1(_II __first1, _II __last1, 24952: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first2) 24952: { 24952: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 24952: typedef typename _Iter::difference_type difference_type; 24952: 24952: difference_type __len = __last1 - __first1; 24952: while (__len > 0) 24952: { 24952: const difference_type __clen 24952: = std::min(__len, __first2._M_last - __first2._M_cur); 24952: if (!std::__equal_aux1(__first1, __first1 + __clen, __first2._M_cur)) 24952: return false; 24952: 24952: __first1 += __clen; 24952: __len -= __clen; 24952: __first2 += __clen; 24952: } 24952: 24952: return true; 24952: } 24952: 24952: template 24952: int 24952: __lex_cmp_dit( 24952: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __first1, 24952: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __last1, 24952: const _Tp2* __first2, const _Tp2* __last2) 24952: { 24952: const bool __simple = 24952: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 24952: && __is_pointer<_Ptr>::__value 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ); 24952: typedef std::__lexicographical_compare<__simple> _Lc; 24952: 24952: while (__first1._M_node != __last1._M_node) 24952: { 24952: const ptrdiff_t __len1 = __first1._M_last - __first1._M_cur; 24952: const ptrdiff_t __len2 = __last2 - __first2; 24952: const ptrdiff_t __len = std::min(__len1, __len2); 24952: 24952: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_last, 24952: __first2, __first2 + __len)) 24952: return __ret; 24952: 24952: __first1 += __len; 24952: __first2 += __len; 24952: } 24952: return _Lc::__3way(__first1._M_cur, __last1._M_cur, 24952: __first2, __last2); 24952: } 24952: 24952: template 24952: inline bool 24952: __lexicographical_compare_aux1( 24952: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 24952: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 24952: _Tp2* __first2, _Tp2* __last2) 24952: { return std::__lex_cmp_dit(__first1, __last1, __first2, __last2) < 0; } 24952: 24952: template 24952: inline bool 24952: __lexicographical_compare_aux1(_Tp1* __first1, _Tp1* __last1, 24952: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 24952: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 24952: { return std::__lex_cmp_dit(__first2, __last2, __first1, __last1) > 0; } 24952: 24952: template 24952: inline bool 24952: __lexicographical_compare_aux1( 24952: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 24952: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 24952: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 24952: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 24952: { 24952: const bool __simple = 24952: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 24952: && __is_pointer<_Ptr1>::__value 24952: && __is_pointer<_Ptr2>::__value 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ); 24952: typedef std::__lexicographical_compare<__simple> _Lc; 24952: 24952: while (__first1 != __last1) 24952: { 24952: const ptrdiff_t __len2 = __first2._M_node == __last2._M_node 24952: ? __last2._M_cur - __first2._M_cur 24952: : __first2._M_last - __first2._M_cur; 24952: if (__len2 == 0) 24952: return false; 24952: const ptrdiff_t __len1 = __first1._M_node == __last1._M_node 24952: ? __last1._M_cur - __first1._M_cur 24952: : __first1._M_last - __first1._M_cur; 24952: const ptrdiff_t __len = std::min(__len1, __len2); 24952: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_cur + __len, 24952: __first2._M_cur, __first2._M_cur + __len)) 24952: return __ret < 0; 24952: 24952: __first1 += __len; 24952: __first2 += __len; 24952: } 24952: 24952: return __last2 != __first2; 24952: } 24952: 24952: 24952: } 24952: # 70 "/usr/include/c++/13/deque" 2 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/memory_resource.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/memory_resource.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/memory_resource.h" 3 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/cstddef" 1 3 24952: # 42 "/usr/include/c++/13/cstddef" 3 24952: 24952: # 43 "/usr/include/c++/13/cstddef" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 145 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 3 4 24952: typedef int ptrdiff_t; 24952: # 214 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 3 4 24952: typedef unsigned int size_t; 24952: # 425 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 3 4 24952: typedef struct { 24952: long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); 24952: long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); 24952: # 436 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 3 4 24952: } max_align_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef decltype(nullptr) nullptr_t; 24952: # 51 "/usr/include/c++/13/cstddef" 2 3 24952: 24952: extern "C++" 24952: { 24952: 24952: namespace std 24952: { 24952: 24952: using ::max_align_t; 24952: } 24952: 24952: 24952: 24952: namespace std 24952: { 24952: 24952: 24952: 24952: 24952: enum class byte : unsigned char {}; 24952: 24952: template struct __byte_operand { }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: 24952: 24952: 24952: template<> struct __byte_operand { using __type = byte; }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: template<> struct __byte_operand { using __type = byte; }; 24952: # 108 "/usr/include/c++/13/cstddef" 3 24952: template 24952: struct __byte_operand 24952: : __byte_operand<_IntegerType> { }; 24952: template 24952: struct __byte_operand 24952: : __byte_operand<_IntegerType> { }; 24952: template 24952: struct __byte_operand 24952: : __byte_operand<_IntegerType> { }; 24952: 24952: template 24952: using __byte_op_t = typename __byte_operand<_IntegerType>::__type; 24952: 24952: template 24952: [[__gnu__::__always_inline__]] 24952: constexpr __byte_op_t<_IntegerType> 24952: operator<<(byte __b, _IntegerType __shift) noexcept 24952: { return (byte)(unsigned char)((unsigned)__b << __shift); } 24952: 24952: template 24952: [[__gnu__::__always_inline__]] 24952: constexpr __byte_op_t<_IntegerType> 24952: operator>>(byte __b, _IntegerType __shift) noexcept 24952: { return (byte)(unsigned char)((unsigned)__b >> __shift); } 24952: 24952: [[__gnu__::__always_inline__]] 24952: constexpr byte 24952: operator|(byte __l, byte __r) noexcept 24952: { return (byte)(unsigned char)((unsigned)__l | (unsigned)__r); } 24952: 24952: [[__gnu__::__always_inline__]] 24952: constexpr byte 24952: operator&(byte __l, byte __r) noexcept 24952: { return (byte)(unsigned char)((unsigned)__l & (unsigned)__r); } 24952: 24952: [[__gnu__::__always_inline__]] 24952: constexpr byte 24952: operator^(byte __l, byte __r) noexcept 24952: { return (byte)(unsigned char)((unsigned)__l ^ (unsigned)__r); } 24952: 24952: [[__gnu__::__always_inline__]] 24952: constexpr byte 24952: operator~(byte __b) noexcept 24952: { return (byte)(unsigned char)~(unsigned)__b; } 24952: 24952: template 24952: [[__gnu__::__always_inline__]] 24952: constexpr __byte_op_t<_IntegerType>& 24952: operator<<=(byte& __b, _IntegerType __shift) noexcept 24952: { return __b = __b << __shift; } 24952: 24952: template 24952: [[__gnu__::__always_inline__]] 24952: constexpr __byte_op_t<_IntegerType>& 24952: operator>>=(byte& __b, _IntegerType __shift) noexcept 24952: { return __b = __b >> __shift; } 24952: 24952: [[__gnu__::__always_inline__]] 24952: constexpr byte& 24952: operator|=(byte& __l, byte __r) noexcept 24952: { return __l = __l | __r; } 24952: 24952: [[__gnu__::__always_inline__]] 24952: constexpr byte& 24952: operator&=(byte& __l, byte __r) noexcept 24952: { return __l = __l & __r; } 24952: 24952: [[__gnu__::__always_inline__]] 24952: constexpr byte& 24952: operator^=(byte& __l, byte __r) noexcept 24952: { return __l = __l ^ __r; } 24952: 24952: template 24952: [[nodiscard,__gnu__::__always_inline__]] 24952: constexpr _IntegerType 24952: to_integer(__byte_op_t<_IntegerType> __b) noexcept 24952: { return _IntegerType(__b); } 24952: 24952: 24952: } 24952: 24952: } 24952: # 39 "/usr/include/c++/13/bits/memory_resource.h" 2 3 24952: 24952: # 1 "/usr/include/c++/13/bits/uses_allocator.h" 1 3 24952: # 40 "/usr/include/c++/13/bits/uses_allocator.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: struct __erased_type { }; 24952: 24952: 24952: 24952: 24952: template 24952: using __is_erased_or_convertible 24952: = __or_, is_same<_Tp, __erased_type>>; 24952: 24952: 24952: struct allocator_arg_t { explicit allocator_arg_t() = default; }; 24952: 24952: inline constexpr allocator_arg_t allocator_arg = 24952: allocator_arg_t(); 24952: 24952: template> 24952: struct __uses_allocator_helper 24952: : false_type { }; 24952: 24952: template 24952: struct __uses_allocator_helper<_Tp, _Alloc, 24952: __void_t> 24952: : __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type 24952: { }; 24952: 24952: 24952: template 24952: struct uses_allocator 24952: : __uses_allocator_helper<_Tp, _Alloc>::type 24952: { }; 24952: 24952: struct __uses_alloc_base { }; 24952: 24952: struct __uses_alloc0 : __uses_alloc_base 24952: { 24952: struct _Sink { void operator=(const void*) { } } _M_a; 24952: }; 24952: 24952: template 24952: struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; 24952: 24952: template 24952: struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; 24952: 24952: template 24952: struct __uses_alloc; 24952: 24952: template 24952: struct __uses_alloc 24952: : __conditional_t< 24952: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, 24952: __uses_alloc1<_Alloc>, 24952: __uses_alloc2<_Alloc>> 24952: { 24952: 24952: 24952: static_assert(__or_< 24952: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, 24952: is_constructible<_Tp, _Args..., const _Alloc&>>::value, 24952: "construction with an allocator must be possible" 24952: " if uses_allocator is true"); 24952: }; 24952: 24952: template 24952: struct __uses_alloc 24952: : __uses_alloc0 { }; 24952: 24952: template 24952: using __uses_alloc_t = 24952: __uses_alloc::value, _Tp, _Alloc, _Args...>; 24952: 24952: template 24952: 24952: inline __uses_alloc_t<_Tp, _Alloc, _Args...> 24952: __use_alloc(const _Alloc& __a) 24952: { 24952: __uses_alloc_t<_Tp, _Alloc, _Args...> __ret; 24952: __ret._M_a = std::__addressof(__a); 24952: return __ret; 24952: } 24952: 24952: template 24952: void 24952: __use_alloc(const _Alloc&&) = delete; 24952: 24952: 24952: template 24952: inline constexpr bool uses_allocator_v = 24952: uses_allocator<_Tp, _Alloc>::value; 24952: 24952: 24952: template class _Predicate, 24952: typename _Tp, typename _Alloc, typename... _Args> 24952: struct __is_uses_allocator_predicate 24952: : __conditional_t::value, 24952: __or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, 24952: _Predicate<_Tp, _Args..., _Alloc>>, 24952: _Predicate<_Tp, _Args...>> { }; 24952: 24952: template 24952: struct __is_uses_allocator_constructible 24952: : __is_uses_allocator_predicate 24952: { }; 24952: 24952: 24952: template 24952: inline constexpr bool __is_uses_allocator_constructible_v = 24952: __is_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 24952: 24952: 24952: template 24952: struct __is_nothrow_uses_allocator_constructible 24952: : __is_uses_allocator_predicate 24952: { }; 24952: 24952: 24952: 24952: template 24952: inline constexpr bool 24952: __is_nothrow_uses_allocator_constructible_v = 24952: __is_nothrow_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 24952: 24952: 24952: template 24952: void __uses_allocator_construct_impl(__uses_alloc0, _Tp* __ptr, 24952: _Args&&... __args) 24952: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } 24952: 24952: template 24952: void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, 24952: _Args&&... __args) 24952: { 24952: ::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, 24952: std::forward<_Args>(__args)...); 24952: } 24952: 24952: template 24952: void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, 24952: _Args&&... __args) 24952: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } 24952: 24952: template 24952: void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, 24952: _Args&&... __args) 24952: { 24952: std::__uses_allocator_construct_impl( 24952: std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, 24952: std::forward<_Args>(__args)...); 24952: } 24952: 24952: 24952: 24952: } 24952: # 41 "/usr/include/c++/13/bits/memory_resource.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/uses_allocator_args.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/uses_allocator_args.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/uses_allocator_args.h" 3 24952: # 42 "/usr/include/c++/13/bits/memory_resource.h" 2 3 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/tuple" 1 3 24952: # 32 "/usr/include/c++/13/tuple" 3 24952: 24952: # 33 "/usr/include/c++/13/tuple" 3 24952: # 48 "/usr/include/c++/13/tuple" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: class tuple; 24952: 24952: template 24952: struct __is_empty_non_tuple : is_empty<_Tp> { }; 24952: 24952: 24952: template 24952: struct __is_empty_non_tuple> : false_type { }; 24952: 24952: 24952: template 24952: using __empty_not_final 24952: = __conditional_t<__is_final(_Tp), false_type, 24952: __is_empty_non_tuple<_Tp>>; 24952: 24952: template::value> 24952: struct _Head_base; 24952: 24952: 24952: template 24952: struct _Head_base<_Idx, _Head, true> 24952: { 24952: constexpr _Head_base() 24952: : _M_head_impl() { } 24952: 24952: constexpr _Head_base(const _Head& __h) 24952: : _M_head_impl(__h) { } 24952: 24952: constexpr _Head_base(const _Head_base&) = default; 24952: constexpr _Head_base(_Head_base&&) = default; 24952: 24952: template 24952: constexpr _Head_base(_UHead&& __h) 24952: : _M_head_impl(std::forward<_UHead>(__h)) { } 24952: 24952: 24952: _Head_base(allocator_arg_t, __uses_alloc0) 24952: : _M_head_impl() { } 24952: 24952: template 24952: 24952: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 24952: : _M_head_impl(allocator_arg, *__a._M_a) { } 24952: 24952: template 24952: 24952: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 24952: : _M_head_impl(*__a._M_a) { } 24952: 24952: template 24952: 24952: _Head_base(__uses_alloc0, _UHead&& __uhead) 24952: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 24952: 24952: template 24952: 24952: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 24952: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 24952: { } 24952: 24952: template 24952: 24952: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 24952: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 24952: 24952: static constexpr _Head& 24952: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 24952: 24952: static constexpr const _Head& 24952: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 24952: 24952: [[__no_unique_address__]] _Head _M_head_impl; 24952: }; 24952: # 187 "/usr/include/c++/13/tuple" 3 24952: template 24952: struct _Head_base<_Idx, _Head, false> 24952: { 24952: constexpr _Head_base() 24952: : _M_head_impl() { } 24952: 24952: constexpr _Head_base(const _Head& __h) 24952: : _M_head_impl(__h) { } 24952: 24952: constexpr _Head_base(const _Head_base&) = default; 24952: constexpr _Head_base(_Head_base&&) = default; 24952: 24952: template 24952: constexpr _Head_base(_UHead&& __h) 24952: : _M_head_impl(std::forward<_UHead>(__h)) { } 24952: 24952: 24952: _Head_base(allocator_arg_t, __uses_alloc0) 24952: : _M_head_impl() { } 24952: 24952: template 24952: 24952: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 24952: : _M_head_impl(allocator_arg, *__a._M_a) { } 24952: 24952: template 24952: 24952: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 24952: : _M_head_impl(*__a._M_a) { } 24952: 24952: template 24952: 24952: _Head_base(__uses_alloc0, _UHead&& __uhead) 24952: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 24952: 24952: template 24952: 24952: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 24952: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 24952: { } 24952: 24952: template 24952: 24952: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 24952: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 24952: 24952: static constexpr _Head& 24952: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 24952: 24952: static constexpr const _Head& 24952: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 24952: 24952: _Head _M_head_impl; 24952: }; 24952: # 250 "/usr/include/c++/13/tuple" 3 24952: template 24952: struct _Tuple_impl; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Tuple_impl<_Idx, _Head, _Tail...> 24952: : public _Tuple_impl<_Idx + 1, _Tail...>, 24952: private _Head_base<_Idx, _Head> 24952: { 24952: template friend struct _Tuple_impl; 24952: 24952: typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; 24952: typedef _Head_base<_Idx, _Head> _Base; 24952: 24952: static constexpr _Head& 24952: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 24952: 24952: static constexpr const _Head& 24952: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 24952: 24952: static constexpr _Inherited& 24952: _M_tail(_Tuple_impl& __t) noexcept { return __t; } 24952: 24952: static constexpr const _Inherited& 24952: _M_tail(const _Tuple_impl& __t) noexcept { return __t; } 24952: 24952: constexpr _Tuple_impl() 24952: : _Inherited(), _Base() { } 24952: 24952: explicit constexpr 24952: _Tuple_impl(const _Head& __head, const _Tail&... __tail) 24952: : _Inherited(__tail...), _Base(__head) 24952: { } 24952: 24952: template> 24952: explicit constexpr 24952: _Tuple_impl(_UHead&& __head, _UTail&&... __tail) 24952: : _Inherited(std::forward<_UTail>(__tail)...), 24952: _Base(std::forward<_UHead>(__head)) 24952: { } 24952: 24952: constexpr _Tuple_impl(const _Tuple_impl&) = default; 24952: 24952: 24952: 24952: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 24952: 24952: _Tuple_impl(_Tuple_impl&&) = default; 24952: 24952: template 24952: constexpr 24952: _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) 24952: : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), 24952: _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) 24952: { } 24952: 24952: template 24952: constexpr 24952: _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 24952: : _Inherited(std::move 24952: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 24952: _Base(std::forward<_UHead> 24952: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 24952: { } 24952: # 338 "/usr/include/c++/13/tuple" 3 24952: template 24952: 24952: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 24952: : _Inherited(__tag, __a), 24952: _Base(__tag, __use_alloc<_Head>(__a)) 24952: { } 24952: 24952: template 24952: 24952: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 24952: const _Head& __head, const _Tail&... __tail) 24952: : _Inherited(__tag, __a, __tail...), 24952: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) 24952: { } 24952: 24952: template> 24952: 24952: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 24952: _UHead&& __head, _UTail&&... __tail) 24952: : _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), 24952: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 24952: std::forward<_UHead>(__head)) 24952: { } 24952: 24952: template 24952: 24952: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 24952: const _Tuple_impl& __in) 24952: : _Inherited(__tag, __a, _M_tail(__in)), 24952: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) 24952: { } 24952: 24952: template 24952: 24952: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 24952: _Tuple_impl&& __in) 24952: : _Inherited(__tag, __a, std::move(_M_tail(__in))), 24952: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 24952: std::forward<_Head>(_M_head(__in))) 24952: { } 24952: 24952: template 24952: 24952: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 24952: const _Tuple_impl<_Idx, _UHead, _UTails...>& __in) 24952: : _Inherited(__tag, __a, 24952: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), 24952: _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 24952: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) 24952: { } 24952: 24952: template 24952: 24952: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 24952: _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 24952: : _Inherited(__tag, __a, std::move 24952: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 24952: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 24952: std::forward<_UHead> 24952: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 24952: { } 24952: # 424 "/usr/include/c++/13/tuple" 3 24952: template 24952: 24952: void 24952: _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) 24952: { 24952: _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); 24952: _M_tail(*this)._M_assign( 24952: _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); 24952: } 24952: 24952: template 24952: 24952: void 24952: _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 24952: { 24952: _M_head(*this) = std::forward<_UHead> 24952: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); 24952: _M_tail(*this)._M_assign( 24952: std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); 24952: } 24952: # 466 "/usr/include/c++/13/tuple" 3 24952: protected: 24952: 24952: void 24952: _M_swap(_Tuple_impl& __in) 24952: { 24952: using std::swap; 24952: swap(_M_head(*this), _M_head(__in)); 24952: _Inherited::_M_swap(_M_tail(__in)); 24952: } 24952: # 485 "/usr/include/c++/13/tuple" 3 24952: }; 24952: 24952: 24952: template 24952: struct _Tuple_impl<_Idx, _Head> 24952: : private _Head_base<_Idx, _Head> 24952: { 24952: template friend struct _Tuple_impl; 24952: 24952: typedef _Head_base<_Idx, _Head> _Base; 24952: 24952: static constexpr _Head& 24952: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 24952: 24952: static constexpr const _Head& 24952: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 24952: 24952: constexpr 24952: _Tuple_impl() 24952: : _Base() { } 24952: 24952: explicit constexpr 24952: _Tuple_impl(const _Head& __head) 24952: : _Base(__head) 24952: { } 24952: 24952: template 24952: explicit constexpr 24952: _Tuple_impl(_UHead&& __head) 24952: : _Base(std::forward<_UHead>(__head)) 24952: { } 24952: 24952: constexpr _Tuple_impl(const _Tuple_impl&) = default; 24952: 24952: 24952: 24952: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 24952: 24952: 24952: 24952: 24952: constexpr 24952: _Tuple_impl(_Tuple_impl&& __in) 24952: noexcept(is_nothrow_move_constructible<_Head>::value) 24952: : _Base(static_cast<_Base&&>(__in)) 24952: { } 24952: 24952: 24952: template 24952: constexpr 24952: _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) 24952: : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) 24952: { } 24952: 24952: template 24952: constexpr 24952: _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) 24952: : _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 24952: { } 24952: # 559 "/usr/include/c++/13/tuple" 3 24952: template 24952: 24952: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 24952: : _Base(__tag, __use_alloc<_Head>(__a)) 24952: { } 24952: 24952: template 24952: 24952: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 24952: const _Head& __head) 24952: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), __head) 24952: { } 24952: 24952: template 24952: 24952: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 24952: _UHead&& __head) 24952: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 24952: std::forward<_UHead>(__head)) 24952: { } 24952: 24952: template 24952: 24952: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 24952: const _Tuple_impl& __in) 24952: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), _M_head(__in)) 24952: { } 24952: 24952: template 24952: 24952: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 24952: _Tuple_impl&& __in) 24952: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 24952: std::forward<_Head>(_M_head(__in))) 24952: { } 24952: 24952: template 24952: 24952: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 24952: const _Tuple_impl<_Idx, _UHead>& __in) 24952: : _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 24952: _Tuple_impl<_Idx, _UHead>::_M_head(__in)) 24952: { } 24952: 24952: template 24952: 24952: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 24952: _Tuple_impl<_Idx, _UHead>&& __in) 24952: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 24952: std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 24952: { } 24952: # 629 "/usr/include/c++/13/tuple" 3 24952: template 24952: 24952: void 24952: _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) 24952: { 24952: _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); 24952: } 24952: 24952: template 24952: 24952: void 24952: _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) 24952: { 24952: _M_head(*this) 24952: = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); 24952: } 24952: # 663 "/usr/include/c++/13/tuple" 3 24952: protected: 24952: 24952: void 24952: _M_swap(_Tuple_impl& __in) 24952: { 24952: using std::swap; 24952: swap(_M_head(*this), _M_head(__in)); 24952: } 24952: # 680 "/usr/include/c++/13/tuple" 3 24952: }; 24952: 24952: 24952: 24952: template 24952: struct _TupleConstraints 24952: { 24952: template 24952: using __constructible = __and_...>; 24952: 24952: template 24952: using __convertible = __and_...>; 24952: 24952: 24952: 24952: 24952: template 24952: static constexpr bool __is_implicitly_constructible() 24952: { 24952: return __and_<__constructible<_UTypes...>, 24952: __convertible<_UTypes...> 24952: >::value; 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: static constexpr bool __is_explicitly_constructible() 24952: { 24952: return __and_<__constructible<_UTypes...>, 24952: __not_<__convertible<_UTypes...>> 24952: >::value; 24952: } 24952: 24952: static constexpr bool __is_implicitly_default_constructible() 24952: { 24952: return __and_... 24952: >::value; 24952: } 24952: 24952: static constexpr bool __is_explicitly_default_constructible() 24952: { 24952: return __and_..., 24952: __not_<__and_< 24952: std::__is_implicitly_default_constructible<_Types>...> 24952: >>::value; 24952: } 24952: }; 24952: 24952: 24952: 24952: template 24952: struct _TupleConstraints 24952: { 24952: template 24952: static constexpr bool __is_implicitly_constructible() 24952: { return false; } 24952: 24952: template 24952: static constexpr bool __is_explicitly_constructible() 24952: { return false; } 24952: }; 24952: 24952: 24952: template 24952: class tuple : public _Tuple_impl<0, _Elements...> 24952: { 24952: typedef _Tuple_impl<0, _Elements...> _Inherited; 24952: 24952: template 24952: using _TCC = _TupleConstraints<_Cond, _Elements...>; 24952: 24952: 24952: template 24952: using _ImplicitDefaultCtor = __enable_if_t< 24952: _TCC<_Dummy>::__is_implicitly_default_constructible(), 24952: bool>; 24952: 24952: 24952: template 24952: using _ExplicitDefaultCtor = __enable_if_t< 24952: _TCC<_Dummy>::__is_explicitly_default_constructible(), 24952: bool>; 24952: 24952: 24952: template 24952: using _ImplicitCtor = __enable_if_t< 24952: _TCC<_Cond>::template __is_implicitly_constructible<_Args...>(), 24952: bool>; 24952: 24952: 24952: template 24952: using _ExplicitCtor = __enable_if_t< 24952: _TCC<_Cond>::template __is_explicitly_constructible<_Args...>(), 24952: bool>; 24952: 24952: template 24952: static constexpr 24952: __enable_if_t 24952: __assignable() 24952: { return __and_...>::value; } 24952: 24952: 24952: template 24952: static constexpr bool __nothrow_assignable() 24952: { 24952: return 24952: __and_...>::value; 24952: } 24952: 24952: 24952: template 24952: static constexpr bool __nothrow_constructible() 24952: { 24952: return 24952: __and_...>::value; 24952: } 24952: 24952: 24952: template 24952: static constexpr bool __valid_args() 24952: { 24952: return sizeof...(_Elements) == 1 24952: && !is_same>::value; 24952: } 24952: 24952: 24952: template 24952: static constexpr bool __valid_args() 24952: { return (sizeof...(_Tail) + 2) == sizeof...(_Elements); } 24952: # 821 "/usr/include/c++/13/tuple" 3 24952: template> 24952: struct _UseOtherCtor 24952: : false_type 24952: { }; 24952: 24952: 24952: template 24952: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Up>> 24952: : __or_, is_constructible<_Tp, _Tuple>>::type 24952: { }; 24952: 24952: 24952: template 24952: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Tp>> 24952: : true_type 24952: { }; 24952: 24952: 24952: 24952: 24952: template 24952: static constexpr bool __use_other_ctor() 24952: { return _UseOtherCtor<_Tuple>::value; } 24952: # 856 "/usr/include/c++/13/tuple" 3 24952: public: 24952: template::value> = true> 24952: constexpr 24952: tuple() 24952: noexcept(__and_...>::value) 24952: : _Inherited() { } 24952: 24952: template::value> = false> 24952: explicit constexpr 24952: tuple() 24952: noexcept(__and_...>::value) 24952: : _Inherited() { } 24952: 24952: template= 1), 24952: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 24952: constexpr 24952: tuple(const _Elements&... __elements) 24952: noexcept(__nothrow_constructible()) 24952: : _Inherited(__elements...) { } 24952: 24952: template= 1), 24952: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 24952: explicit constexpr 24952: tuple(const _Elements&... __elements) 24952: noexcept(__nothrow_constructible()) 24952: : _Inherited(__elements...) { } 24952: 24952: template(), 24952: _ImplicitCtor<_Valid, _UElements...> = true> 24952: constexpr 24952: tuple(_UElements&&... __elements) 24952: noexcept(__nothrow_constructible<_UElements...>()) 24952: : _Inherited(std::forward<_UElements>(__elements)...) { } 24952: 24952: template(), 24952: _ExplicitCtor<_Valid, _UElements...> = false> 24952: explicit constexpr 24952: tuple(_UElements&&... __elements) 24952: noexcept(__nothrow_constructible<_UElements...>()) 24952: : _Inherited(std::forward<_UElements>(__elements)...) { } 24952: 24952: constexpr tuple(const tuple&) = default; 24952: 24952: constexpr tuple(tuple&&) = default; 24952: 24952: template&>(), 24952: _ImplicitCtor<_Valid, const _UElements&...> = true> 24952: constexpr 24952: tuple(const tuple<_UElements...>& __in) 24952: noexcept(__nothrow_constructible()) 24952: : _Inherited(static_cast&>(__in)) 24952: { } 24952: 24952: template&>(), 24952: _ExplicitCtor<_Valid, const _UElements&...> = false> 24952: explicit constexpr 24952: tuple(const tuple<_UElements...>& __in) 24952: noexcept(__nothrow_constructible()) 24952: : _Inherited(static_cast&>(__in)) 24952: { } 24952: 24952: template&&>(), 24952: _ImplicitCtor<_Valid, _UElements...> = true> 24952: constexpr 24952: tuple(tuple<_UElements...>&& __in) 24952: noexcept(__nothrow_constructible<_UElements...>()) 24952: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } 24952: 24952: template&&>(), 24952: _ExplicitCtor<_Valid, _UElements...> = false> 24952: explicit constexpr 24952: tuple(tuple<_UElements...>&& __in) 24952: noexcept(__nothrow_constructible<_UElements...>()) 24952: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } 24952: # 968 "/usr/include/c++/13/tuple" 3 24952: template::value> = true> 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a) 24952: : _Inherited(__tag, __a) { } 24952: 24952: template= 1), 24952: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: const _Elements&... __elements) 24952: : _Inherited(__tag, __a, __elements...) { } 24952: 24952: template= 1), 24952: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 24952: 24952: explicit 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: const _Elements&... __elements) 24952: : _Inherited(__tag, __a, __elements...) { } 24952: 24952: template(), 24952: _ImplicitCtor<_Valid, _UElements...> = true> 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: _UElements&&... __elements) 24952: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 24952: { } 24952: 24952: template(), 24952: _ExplicitCtor<_Valid, _UElements...> = false> 24952: 24952: explicit 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: _UElements&&... __elements) 24952: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 24952: { } 24952: 24952: template 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 24952: : _Inherited(__tag, __a, static_cast(__in)) { } 24952: 24952: template 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 24952: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 24952: 24952: template&>(), 24952: _ImplicitCtor<_Valid, const _UElements&...> = true> 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: const tuple<_UElements...>& __in) 24952: : _Inherited(__tag, __a, 24952: static_cast&>(__in)) 24952: { } 24952: 24952: template&>(), 24952: _ExplicitCtor<_Valid, const _UElements&...> = false> 24952: 24952: explicit 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: const tuple<_UElements...>& __in) 24952: : _Inherited(__tag, __a, 24952: static_cast&>(__in)) 24952: { } 24952: 24952: template&&>(), 24952: _ImplicitCtor<_Valid, _UElements...> = true> 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: tuple<_UElements...>&& __in) 24952: : _Inherited(__tag, __a, 24952: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 24952: { } 24952: 24952: template&&>(), 24952: _ExplicitCtor<_Valid, _UElements...> = false> 24952: 24952: explicit 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: tuple<_UElements...>&& __in) 24952: : _Inherited(__tag, __a, 24952: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 24952: { } 24952: # 1092 "/usr/include/c++/13/tuple" 3 24952: 24952: tuple& 24952: operator=(__conditional_t<__assignable(), 24952: const tuple&, 24952: const __nonesuch&> __in) 24952: noexcept(__nothrow_assignable()) 24952: { 24952: this->_M_assign(__in); 24952: return *this; 24952: } 24952: 24952: 24952: tuple& 24952: operator=(__conditional_t<__assignable<_Elements...>(), 24952: tuple&&, 24952: __nonesuch&&> __in) 24952: noexcept(__nothrow_assignable<_Elements...>()) 24952: { 24952: this->_M_assign(std::move(__in)); 24952: return *this; 24952: } 24952: 24952: template 24952: 24952: __enable_if_t<__assignable(), tuple&> 24952: operator=(const tuple<_UElements...>& __in) 24952: noexcept(__nothrow_assignable()) 24952: { 24952: this->_M_assign(__in); 24952: return *this; 24952: } 24952: 24952: template 24952: 24952: __enable_if_t<__assignable<_UElements...>(), tuple&> 24952: operator=(tuple<_UElements...>&& __in) 24952: noexcept(__nothrow_assignable<_UElements...>()) 24952: { 24952: this->_M_assign(std::move(__in)); 24952: return *this; 24952: } 24952: # 1173 "/usr/include/c++/13/tuple" 3 24952: 24952: void 24952: swap(tuple& __in) 24952: noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) 24952: { _Inherited::_M_swap(__in); } 24952: # 1192 "/usr/include/c++/13/tuple" 3 24952: }; 24952: 24952: 24952: template 24952: tuple(_UTypes...) -> tuple<_UTypes...>; 24952: template 24952: tuple(pair<_T1, _T2>) -> tuple<_T1, _T2>; 24952: template 24952: tuple(allocator_arg_t, _Alloc, _UTypes...) -> tuple<_UTypes...>; 24952: template 24952: tuple(allocator_arg_t, _Alloc, pair<_T1, _T2>) -> tuple<_T1, _T2>; 24952: template 24952: tuple(allocator_arg_t, _Alloc, tuple<_UTypes...>) -> tuple<_UTypes...>; 24952: 24952: 24952: 24952: template<> 24952: class tuple<> 24952: { 24952: public: 24952: 24952: void swap(tuple&) noexcept { } 24952: 24952: 24952: 24952: 24952: 24952: tuple() = default; 24952: 24952: template 24952: 24952: tuple(allocator_arg_t, const _Alloc&) noexcept { } 24952: template 24952: 24952: tuple(allocator_arg_t, const _Alloc&, const tuple&) noexcept { } 24952: }; 24952: 24952: 24952: 24952: template 24952: class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> 24952: { 24952: typedef _Tuple_impl<0, _T1, _T2> _Inherited; 24952: 24952: 24952: template 24952: using _ImplicitDefaultCtor = __enable_if_t< 24952: _TupleConstraints<_Dummy, _U1, _U2>:: 24952: __is_implicitly_default_constructible(), 24952: bool>; 24952: 24952: 24952: template 24952: using _ExplicitDefaultCtor = __enable_if_t< 24952: _TupleConstraints<_Dummy, _U1, _U2>:: 24952: __is_explicitly_default_constructible(), 24952: bool>; 24952: 24952: template 24952: using _TCC = _TupleConstraints<_Dummy, _T1, _T2>; 24952: 24952: 24952: template 24952: using _ImplicitCtor = __enable_if_t< 24952: _TCC<_Cond>::template __is_implicitly_constructible<_U1, _U2>(), 24952: bool>; 24952: 24952: 24952: template 24952: using _ExplicitCtor = __enable_if_t< 24952: _TCC<_Cond>::template __is_explicitly_constructible<_U1, _U2>(), 24952: bool>; 24952: 24952: template 24952: static constexpr bool __assignable() 24952: { 24952: return __and_, 24952: is_assignable<_T2&, _U2>>::value; 24952: } 24952: 24952: template 24952: static constexpr bool __nothrow_assignable() 24952: { 24952: return __and_, 24952: is_nothrow_assignable<_T2&, _U2>>::value; 24952: } 24952: 24952: template 24952: static constexpr bool __nothrow_constructible() 24952: { 24952: return __and_, 24952: is_nothrow_constructible<_T2, _U2>>::value; 24952: } 24952: 24952: static constexpr bool __nothrow_default_constructible() 24952: { 24952: return __and_, 24952: is_nothrow_default_constructible<_T2>>::value; 24952: } 24952: 24952: template 24952: static constexpr bool __is_alloc_arg() 24952: { return is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value; } 24952: # 1306 "/usr/include/c++/13/tuple" 3 24952: public: 24952: template = true> 24952: constexpr 24952: tuple() 24952: noexcept(__nothrow_default_constructible()) 24952: : _Inherited() { } 24952: 24952: template = false> 24952: explicit constexpr 24952: tuple() 24952: noexcept(__nothrow_default_constructible()) 24952: : _Inherited() { } 24952: 24952: template = true> 24952: constexpr 24952: tuple(const _T1& __a1, const _T2& __a2) 24952: noexcept(__nothrow_constructible()) 24952: : _Inherited(__a1, __a2) { } 24952: 24952: template = false> 24952: explicit constexpr 24952: tuple(const _T1& __a1, const _T2& __a2) 24952: noexcept(__nothrow_constructible()) 24952: : _Inherited(__a1, __a2) { } 24952: 24952: template(), _U1, _U2> = true> 24952: constexpr 24952: tuple(_U1&& __a1, _U2&& __a2) 24952: noexcept(__nothrow_constructible<_U1, _U2>()) 24952: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } 24952: 24952: template(), _U1, _U2> = false> 24952: explicit constexpr 24952: tuple(_U1&& __a1, _U2&& __a2) 24952: noexcept(__nothrow_constructible<_U1, _U2>()) 24952: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } 24952: 24952: constexpr tuple(const tuple&) = default; 24952: 24952: constexpr tuple(tuple&&) = default; 24952: 24952: template = true> 24952: constexpr 24952: tuple(const tuple<_U1, _U2>& __in) 24952: noexcept(__nothrow_constructible()) 24952: : _Inherited(static_cast&>(__in)) { } 24952: 24952: template = false> 24952: explicit constexpr 24952: tuple(const tuple<_U1, _U2>& __in) 24952: noexcept(__nothrow_constructible()) 24952: : _Inherited(static_cast&>(__in)) { } 24952: 24952: template = true> 24952: constexpr 24952: tuple(tuple<_U1, _U2>&& __in) 24952: noexcept(__nothrow_constructible<_U1, _U2>()) 24952: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } 24952: 24952: template = false> 24952: explicit constexpr 24952: tuple(tuple<_U1, _U2>&& __in) 24952: noexcept(__nothrow_constructible<_U1, _U2>()) 24952: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } 24952: # 1399 "/usr/include/c++/13/tuple" 3 24952: template = true> 24952: constexpr 24952: tuple(const pair<_U1, _U2>& __in) 24952: noexcept(__nothrow_constructible()) 24952: : _Inherited(__in.first, __in.second) { } 24952: 24952: template = false> 24952: explicit constexpr 24952: tuple(const pair<_U1, _U2>& __in) 24952: noexcept(__nothrow_constructible()) 24952: : _Inherited(__in.first, __in.second) { } 24952: 24952: template = true> 24952: constexpr 24952: tuple(pair<_U1, _U2>&& __in) 24952: noexcept(__nothrow_constructible<_U1, _U2>()) 24952: : _Inherited(std::forward<_U1>(__in.first), 24952: std::forward<_U2>(__in.second)) { } 24952: 24952: template = false> 24952: explicit constexpr 24952: tuple(pair<_U1, _U2>&& __in) 24952: noexcept(__nothrow_constructible<_U1, _U2>()) 24952: : _Inherited(std::forward<_U1>(__in.first), 24952: std::forward<_U2>(__in.second)) { } 24952: # 1450 "/usr/include/c++/13/tuple" 3 24952: template::value, _T1, _T2> = true> 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a) 24952: : _Inherited(__tag, __a) { } 24952: 24952: template = true> 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: const _T1& __a1, const _T2& __a2) 24952: : _Inherited(__tag, __a, __a1, __a2) { } 24952: 24952: template = false> 24952: explicit 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: const _T1& __a1, const _T2& __a2) 24952: : _Inherited(__tag, __a, __a1, __a2) { } 24952: 24952: template = true> 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) 24952: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 24952: std::forward<_U2>(__a2)) { } 24952: 24952: template = false> 24952: explicit 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: _U1&& __a1, _U2&& __a2) 24952: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 24952: std::forward<_U2>(__a2)) { } 24952: 24952: template 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 24952: : _Inherited(__tag, __a, static_cast(__in)) { } 24952: 24952: template 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 24952: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 24952: 24952: template = true> 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: const tuple<_U1, _U2>& __in) 24952: : _Inherited(__tag, __a, 24952: static_cast&>(__in)) 24952: { } 24952: 24952: template = false> 24952: explicit 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: const tuple<_U1, _U2>& __in) 24952: : _Inherited(__tag, __a, 24952: static_cast&>(__in)) 24952: { } 24952: 24952: template = true> 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 24952: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 24952: { } 24952: 24952: template = false> 24952: explicit 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 24952: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 24952: { } 24952: # 1553 "/usr/include/c++/13/tuple" 3 24952: template = true> 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: const pair<_U1, _U2>& __in) 24952: : _Inherited(__tag, __a, __in.first, __in.second) { } 24952: 24952: template = false> 24952: explicit 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, 24952: const pair<_U1, _U2>& __in) 24952: : _Inherited(__tag, __a, __in.first, __in.second) { } 24952: 24952: template = true> 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 24952: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 24952: std::forward<_U2>(__in.second)) { } 24952: 24952: template = false> 24952: explicit 24952: 24952: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 24952: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 24952: std::forward<_U2>(__in.second)) { } 24952: # 1603 "/usr/include/c++/13/tuple" 3 24952: 24952: tuple& 24952: operator=(__conditional_t<__assignable(), 24952: const tuple&, 24952: const __nonesuch&> __in) 24952: noexcept(__nothrow_assignable()) 24952: { 24952: this->_M_assign(__in); 24952: return *this; 24952: } 24952: 24952: 24952: tuple& 24952: operator=(__conditional_t<__assignable<_T1, _T2>(), 24952: tuple&&, 24952: __nonesuch&&> __in) 24952: noexcept(__nothrow_assignable<_T1, _T2>()) 24952: { 24952: this->_M_assign(std::move(__in)); 24952: return *this; 24952: } 24952: 24952: template 24952: 24952: __enable_if_t<__assignable(), tuple&> 24952: operator=(const tuple<_U1, _U2>& __in) 24952: noexcept(__nothrow_assignable()) 24952: { 24952: this->_M_assign(__in); 24952: return *this; 24952: } 24952: 24952: template 24952: 24952: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 24952: operator=(tuple<_U1, _U2>&& __in) 24952: noexcept(__nothrow_assignable<_U1, _U2>()) 24952: { 24952: this->_M_assign(std::move(__in)); 24952: return *this; 24952: } 24952: # 1683 "/usr/include/c++/13/tuple" 3 24952: template 24952: 24952: __enable_if_t<__assignable(), tuple&> 24952: operator=(const pair<_U1, _U2>& __in) 24952: noexcept(__nothrow_assignable()) 24952: { 24952: this->_M_head(*this) = __in.first; 24952: this->_M_tail(*this)._M_head(*this) = __in.second; 24952: return *this; 24952: } 24952: 24952: template 24952: 24952: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 24952: operator=(pair<_U1, _U2>&& __in) 24952: noexcept(__nothrow_assignable<_U1, _U2>()) 24952: { 24952: this->_M_head(*this) = std::forward<_U1>(__in.first); 24952: this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); 24952: return *this; 24952: } 24952: # 1729 "/usr/include/c++/13/tuple" 3 24952: 24952: void 24952: swap(tuple& __in) 24952: noexcept(__and_<__is_nothrow_swappable<_T1>, 24952: __is_nothrow_swappable<_T2>>::value) 24952: { _Inherited::_M_swap(__in); } 24952: # 1744 "/usr/include/c++/13/tuple" 3 24952: }; 24952: 24952: 24952: 24952: template 24952: struct tuple_size> 24952: : public integral_constant { }; 24952: 24952: 24952: template 24952: inline constexpr size_t tuple_size_v> 24952: = sizeof...(_Types); 24952: 24952: template 24952: inline constexpr size_t tuple_size_v> 24952: = sizeof...(_Types); 24952: 24952: 24952: 24952: template 24952: struct tuple_element<__i, tuple<_Types...>> 24952: { 24952: static_assert(__i < sizeof...(_Types), "tuple index must be in range"); 24952: 24952: using type = typename _Nth_type<__i, _Types...>::type; 24952: }; 24952: 24952: template 24952: constexpr _Head& 24952: __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 24952: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 24952: 24952: template 24952: constexpr const _Head& 24952: __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 24952: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 24952: 24952: 24952: template 24952: __enable_if_t<(__i >= sizeof...(_Types))> 24952: __get_helper(const tuple<_Types...>&) = delete; 24952: 24952: 24952: template 24952: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 24952: get(tuple<_Elements...>& __t) noexcept 24952: { return std::__get_helper<__i>(__t); } 24952: 24952: 24952: template 24952: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 24952: get(const tuple<_Elements...>& __t) noexcept 24952: { return std::__get_helper<__i>(__t); } 24952: 24952: 24952: template 24952: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 24952: get(tuple<_Elements...>&& __t) noexcept 24952: { 24952: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 24952: return std::forward<__element_type>(std::__get_helper<__i>(__t)); 24952: } 24952: 24952: 24952: template 24952: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 24952: get(const tuple<_Elements...>&& __t) noexcept 24952: { 24952: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 24952: return std::forward(std::__get_helper<__i>(__t)); 24952: } 24952: 24952: 24952: 24952: template 24952: constexpr __enable_if_t<(__i >= sizeof...(_Elements))> 24952: get(const tuple<_Elements...>&) = delete; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: constexpr _Tp& 24952: get(tuple<_Types...>& __t) noexcept 24952: { 24952: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 24952: static_assert(__idx < sizeof...(_Types), 24952: "the type T in std::get must occur exactly once in the tuple"); 24952: return std::__get_helper<__idx>(__t); 24952: } 24952: 24952: 24952: template 24952: constexpr _Tp&& 24952: get(tuple<_Types...>&& __t) noexcept 24952: { 24952: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 24952: static_assert(__idx < sizeof...(_Types), 24952: "the type T in std::get must occur exactly once in the tuple"); 24952: return std::forward<_Tp>(std::__get_helper<__idx>(__t)); 24952: } 24952: 24952: 24952: template 24952: constexpr const _Tp& 24952: get(const tuple<_Types...>& __t) noexcept 24952: { 24952: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 24952: static_assert(__idx < sizeof...(_Types), 24952: "the type T in std::get must occur exactly once in the tuple"); 24952: return std::__get_helper<__idx>(__t); 24952: } 24952: 24952: 24952: 24952: template 24952: constexpr const _Tp&& 24952: get(const tuple<_Types...>&& __t) noexcept 24952: { 24952: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 24952: static_assert(__idx < sizeof...(_Types), 24952: "the type T in std::get must occur exactly once in the tuple"); 24952: return std::forward(std::__get_helper<__idx>(__t)); 24952: } 24952: 24952: 24952: 24952: template 24952: struct __tuple_compare 24952: { 24952: static constexpr bool 24952: __eq(const _Tp& __t, const _Up& __u) 24952: { 24952: return bool(std::get<__i>(__t) == std::get<__i>(__u)) 24952: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__eq(__t, __u); 24952: } 24952: 24952: static constexpr bool 24952: __less(const _Tp& __t, const _Up& __u) 24952: { 24952: return bool(std::get<__i>(__t) < std::get<__i>(__u)) 24952: || (!bool(std::get<__i>(__u) < std::get<__i>(__t)) 24952: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__less(__t, __u)); 24952: } 24952: }; 24952: 24952: template 24952: struct __tuple_compare<_Tp, _Up, __size, __size> 24952: { 24952: static constexpr bool 24952: __eq(const _Tp&, const _Up&) { return true; } 24952: 24952: static constexpr bool 24952: __less(const _Tp&, const _Up&) { return false; } 24952: }; 24952: 24952: template 24952: constexpr bool 24952: operator==(const tuple<_TElements...>& __t, 24952: const tuple<_UElements...>& __u) 24952: { 24952: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 24952: "tuple objects can only be compared if they have equal sizes."); 24952: using __compare = __tuple_compare, 24952: tuple<_UElements...>, 24952: 0, sizeof...(_TElements)>; 24952: return __compare::__eq(__t, __u); 24952: } 24952: # 1945 "/usr/include/c++/13/tuple" 3 24952: template 24952: constexpr bool 24952: operator<(const tuple<_TElements...>& __t, 24952: const tuple<_UElements...>& __u) 24952: { 24952: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 24952: "tuple objects can only be compared if they have equal sizes."); 24952: using __compare = __tuple_compare, 24952: tuple<_UElements...>, 24952: 0, sizeof...(_TElements)>; 24952: return __compare::__less(__t, __u); 24952: } 24952: 24952: template 24952: constexpr bool 24952: operator!=(const tuple<_TElements...>& __t, 24952: const tuple<_UElements...>& __u) 24952: { return !(__t == __u); } 24952: 24952: template 24952: constexpr bool 24952: operator>(const tuple<_TElements...>& __t, 24952: const tuple<_UElements...>& __u) 24952: { return __u < __t; } 24952: 24952: template 24952: constexpr bool 24952: operator<=(const tuple<_TElements...>& __t, 24952: const tuple<_UElements...>& __u) 24952: { return !(__u < __t); } 24952: 24952: template 24952: constexpr bool 24952: operator>=(const tuple<_TElements...>& __t, 24952: const tuple<_UElements...>& __u) 24952: { return !(__t < __u); } 24952: 24952: 24952: 24952: 24952: template 24952: constexpr tuple::__type...> 24952: make_tuple(_Elements&&... __args) 24952: { 24952: typedef tuple::__type...> 24952: __result_type; 24952: return __result_type(std::forward<_Elements>(__args)...); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: constexpr tuple<_Elements&&...> 24952: forward_as_tuple(_Elements&&... __args) noexcept 24952: { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } 24952: 24952: 24952: 24952: 24952: template struct array; 24952: 24952: template 24952: constexpr _Tp& 24952: get(array<_Tp, _Nm>&) noexcept; 24952: 24952: template 24952: constexpr _Tp&& 24952: get(array<_Tp, _Nm>&&) noexcept; 24952: 24952: template 24952: constexpr const _Tp& 24952: get(const array<_Tp, _Nm>&) noexcept; 24952: 24952: template 24952: constexpr const _Tp&& 24952: get(const array<_Tp, _Nm>&&) noexcept; 24952: 24952: 24952: template 24952: struct __make_tuple_impl; 24952: 24952: template 24952: struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> 24952: : __make_tuple_impl<_Idx + 1, 24952: tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, 24952: _Tuple, _Nm> 24952: { }; 24952: 24952: template 24952: struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> 24952: { 24952: typedef tuple<_Tp...> __type; 24952: }; 24952: 24952: template 24952: struct __do_make_tuple 24952: : __make_tuple_impl<0, tuple<>, _Tuple, tuple_size<_Tuple>::value> 24952: { }; 24952: 24952: 24952: template 24952: struct __make_tuple 24952: : public __do_make_tuple<__remove_cvref_t<_Tuple>> 24952: { }; 24952: 24952: 24952: template 24952: struct __combine_tuples; 24952: 24952: template<> 24952: struct __combine_tuples<> 24952: { 24952: typedef tuple<> __type; 24952: }; 24952: 24952: template 24952: struct __combine_tuples> 24952: { 24952: typedef tuple<_Ts...> __type; 24952: }; 24952: 24952: template 24952: struct __combine_tuples, tuple<_T2s...>, _Rem...> 24952: { 24952: typedef typename __combine_tuples, 24952: _Rem...>::__type __type; 24952: }; 24952: 24952: 24952: template 24952: struct __tuple_cat_result 24952: { 24952: typedef typename __combine_tuples 24952: ::__type...>::__type __type; 24952: }; 24952: 24952: 24952: 24952: template 24952: struct __make_1st_indices; 24952: 24952: template<> 24952: struct __make_1st_indices<> 24952: { 24952: typedef _Index_tuple<> __type; 24952: }; 24952: 24952: template 24952: struct __make_1st_indices<_Tp, _Tpls...> 24952: { 24952: typedef typename _Build_index_tuple::type>::value>::__type __type; 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: struct __tuple_concater; 24952: 24952: template 24952: struct __tuple_concater<_Ret, _Index_tuple<_Is...>, _Tp, _Tpls...> 24952: { 24952: template 24952: static constexpr _Ret 24952: _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) 24952: { 24952: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 24952: typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; 24952: return __next::_S_do(std::forward<_Tpls>(__tps)..., 24952: std::forward<_Us>(__us)..., 24952: std::get<_Is>(std::forward<_Tp>(__tp))...); 24952: } 24952: }; 24952: 24952: template 24952: struct __tuple_concater<_Ret, _Index_tuple<>> 24952: { 24952: template 24952: static constexpr _Ret 24952: _S_do(_Us&&... __us) 24952: { 24952: return _Ret(std::forward<_Us>(__us)...); 24952: } 24952: }; 24952: 24952: template 24952: struct __is_tuple_like_impl> : true_type 24952: { }; 24952: 24952: 24952: 24952: template...>::value>::type> 24952: constexpr auto 24952: tuple_cat(_Tpls&&... __tpls) 24952: -> typename __tuple_cat_result<_Tpls...>::__type 24952: { 24952: typedef typename __tuple_cat_result<_Tpls...>::__type __ret; 24952: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 24952: typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; 24952: return __concater::_S_do(std::forward<_Tpls>(__tpls)...); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: constexpr tuple<_Elements&...> 24952: tie(_Elements&... __args) noexcept 24952: { return tuple<_Elements&...>(__args...); } 24952: 24952: 24952: template 24952: 24952: inline 24952: 24952: 24952: typename enable_if<__and_<__is_swappable<_Elements>...>::value 24952: >::type 24952: 24952: 24952: 24952: swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: # 2184 "/usr/include/c++/13/tuple" 3 24952: template 24952: 24952: typename enable_if...>::value>::type 24952: swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct _Swallow_assign 24952: { 24952: template 24952: constexpr const _Swallow_assign& 24952: operator=(const _Tp&) const 24952: { return *this; } 24952: }; 24952: # 2219 "/usr/include/c++/13/tuple" 3 24952: inline constexpr _Swallow_assign ignore{}; 24952: 24952: 24952: template 24952: struct uses_allocator, _Alloc> : true_type { }; 24952: # 2234 "/usr/include/c++/13/tuple" 3 24952: template 24952: template 24952: 24952: inline 24952: pair<_T1, _T2>:: 24952: pair(piecewise_construct_t, 24952: tuple<_Args1...> __first, tuple<_Args2...> __second) 24952: : pair(__first, __second, 24952: typename _Build_index_tuple::__type(), 24952: typename _Build_index_tuple::__type()) 24952: { } 24952: 24952: template 24952: template 24952: inline 24952: pair<_T1, _T2>:: 24952: pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, 24952: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) 24952: : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), 24952: second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template class _Trait, typename _Tp, typename _Tuple> 24952: inline constexpr bool __unpack_std_tuple = false; 24952: 24952: template class _Trait, typename _Tp, typename... _Up> 24952: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>> 24952: = _Trait<_Tp, _Up...>::value; 24952: 24952: template class _Trait, typename _Tp, typename... _Up> 24952: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>&> 24952: = _Trait<_Tp, _Up&...>::value; 24952: 24952: template class _Trait, typename _Tp, typename... _Up> 24952: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>> 24952: = _Trait<_Tp, const _Up...>::value; 24952: 24952: template class _Trait, typename _Tp, typename... _Up> 24952: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>&> 24952: = _Trait<_Tp, const _Up&...>::value; 24952: 24952: 24952: 24952: template 24952: constexpr decltype(auto) 24952: __apply_impl(_Fn&& __f, _Tuple&& __t, index_sequence<_Idx...>) 24952: { 24952: return std::__invoke(std::forward<_Fn>(__f), 24952: std::get<_Idx>(std::forward<_Tuple>(__t))...); 24952: } 24952: 24952: template 24952: constexpr decltype(auto) 24952: apply(_Fn&& __f, _Tuple&& __t) 24952: noexcept(__unpack_std_tuple) 24952: { 24952: using _Indices 24952: = make_index_sequence>>; 24952: return std::__apply_impl(std::forward<_Fn>(__f), 24952: std::forward<_Tuple>(__t), 24952: _Indices{}); 24952: } 24952: 24952: 24952: 24952: template 24952: constexpr _Tp 24952: __make_from_tuple_impl(_Tuple&& __t, index_sequence<_Idx...>) 24952: { return _Tp(std::get<_Idx>(std::forward<_Tuple>(__t))...); } 24952: 24952: template 24952: constexpr _Tp 24952: make_from_tuple(_Tuple&& __t) 24952: noexcept(__unpack_std_tuple) 24952: { 24952: constexpr size_t __n = tuple_size_v>; 24952: 24952: if constexpr (__n == 1) 24952: { 24952: using _Elt = decltype(std::get<0>(std::declval<_Tuple>())); 24952: static_assert(!__reference_constructs_from_temporary(_Tp, _Elt)); 24952: } 24952: 24952: return __make_from_tuple_impl<_Tp>(std::forward<_Tuple>(__t), 24952: make_index_sequence<__n>{}); 24952: } 24952: # 2344 "/usr/include/c++/13/tuple" 3 24952: 24952: } 24952: # 48 "/usr/include/c++/13/bits/memory_resource.h" 2 3 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: namespace pmr 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: class memory_resource 24952: { 24952: static constexpr size_t _S_max_align = alignof(max_align_t); 24952: 24952: public: 24952: memory_resource() = default; 24952: memory_resource(const memory_resource&) = default; 24952: virtual ~memory_resource(); 24952: 24952: memory_resource& operator=(const memory_resource&) = default; 24952: 24952: [[nodiscard]] 24952: void* 24952: allocate(size_t __bytes, size_t __alignment = _S_max_align) 24952: __attribute__((__returns_nonnull__,__alloc_size__(2),__alloc_align__(3))) 24952: { return ::operator new(__bytes, do_allocate(__bytes, __alignment)); } 24952: 24952: void 24952: deallocate(void* __p, size_t __bytes, size_t __alignment = _S_max_align) 24952: __attribute__((__nonnull__)) 24952: { return do_deallocate(__p, __bytes, __alignment); } 24952: 24952: [[nodiscard]] 24952: bool 24952: is_equal(const memory_resource& __other) const noexcept 24952: { return do_is_equal(__other); } 24952: 24952: private: 24952: virtual void* 24952: do_allocate(size_t __bytes, size_t __alignment) = 0; 24952: 24952: virtual void 24952: do_deallocate(void* __p, size_t __bytes, size_t __alignment) = 0; 24952: 24952: virtual bool 24952: do_is_equal(const memory_resource& __other) const noexcept = 0; 24952: }; 24952: 24952: [[nodiscard]] 24952: inline bool 24952: operator==(const memory_resource& __a, const memory_resource& __b) noexcept 24952: { return &__a == &__b || __a.is_equal(__b); } 24952: 24952: 24952: [[nodiscard]] 24952: inline bool 24952: operator!=(const memory_resource& __a, const memory_resource& __b) noexcept 24952: { return !(__a == __b); } 24952: # 119 "/usr/include/c++/13/bits/memory_resource.h" 3 24952: template 24952: class polymorphic_allocator 24952: { 24952: 24952: 24952: template 24952: struct __not_pair { using type = void; }; 24952: 24952: template 24952: struct __not_pair> { }; 24952: 24952: public: 24952: using value_type = _Tp; 24952: 24952: polymorphic_allocator() noexcept 24952: { 24952: extern memory_resource* get_default_resource() noexcept 24952: __attribute__((__returns_nonnull__)); 24952: _M_resource = get_default_resource(); 24952: } 24952: 24952: polymorphic_allocator(memory_resource* __r) noexcept 24952: __attribute__((__nonnull__)) 24952: : _M_resource(__r) 24952: { ; } 24952: 24952: polymorphic_allocator(const polymorphic_allocator& __other) = default; 24952: 24952: template 24952: polymorphic_allocator(const polymorphic_allocator<_Up>& __x) noexcept 24952: : _M_resource(__x.resource()) 24952: { } 24952: 24952: polymorphic_allocator& 24952: operator=(const polymorphic_allocator&) = delete; 24952: 24952: [[nodiscard]] 24952: _Tp* 24952: allocate(size_t __n) 24952: __attribute__((__returns_nonnull__)) 24952: { 24952: if ((__gnu_cxx::__int_traits::__max / sizeof(_Tp)) < __n) 24952: std::__throw_bad_array_new_length(); 24952: return static_cast<_Tp*>(_M_resource->allocate(__n * sizeof(_Tp), 24952: alignof(_Tp))); 24952: } 24952: 24952: void 24952: deallocate(_Tp* __p, size_t __n) noexcept 24952: __attribute__((__nonnull__)) 24952: { _M_resource->deallocate(__p, __n * sizeof(_Tp), alignof(_Tp)); } 24952: # 224 "/usr/include/c++/13/bits/memory_resource.h" 3 24952: template 24952: __attribute__((__nonnull__)) 24952: typename __not_pair<_Tp1>::type 24952: construct(_Tp1* __p, _Args&&... __args) 24952: { 24952: 24952: 24952: using __use_tag 24952: = std::__uses_alloc_t<_Tp1, polymorphic_allocator, _Args...>; 24952: if constexpr (is_base_of_v<__uses_alloc0, __use_tag>) 24952: ::new(__p) _Tp1(std::forward<_Args>(__args)...); 24952: else if constexpr (is_base_of_v<__uses_alloc1_, __use_tag>) 24952: ::new(__p) _Tp1(allocator_arg, *this, 24952: std::forward<_Args>(__args)...); 24952: else 24952: ::new(__p) _Tp1(std::forward<_Args>(__args)..., *this); 24952: } 24952: 24952: template 24952: __attribute__((__nonnull__)) 24952: void 24952: construct(pair<_Tp1, _Tp2>* __p, piecewise_construct_t, 24952: tuple<_Args1...> __x, tuple<_Args2...> __y) 24952: { 24952: auto __x_tag = 24952: __use_alloc<_Tp1, polymorphic_allocator, _Args1...>(*this); 24952: auto __y_tag = 24952: __use_alloc<_Tp2, polymorphic_allocator, _Args2...>(*this); 24952: index_sequence_for<_Args1...> __x_i; 24952: index_sequence_for<_Args2...> __y_i; 24952: 24952: ::new(__p) pair<_Tp1, _Tp2>(piecewise_construct, 24952: _S_construct_p(__x_tag, __x_i, __x), 24952: _S_construct_p(__y_tag, __y_i, __y)); 24952: } 24952: 24952: template 24952: __attribute__((__nonnull__)) 24952: void 24952: construct(pair<_Tp1, _Tp2>* __p) 24952: { this->construct(__p, piecewise_construct, tuple<>(), tuple<>()); } 24952: 24952: template 24952: __attribute__((__nonnull__)) 24952: void 24952: construct(pair<_Tp1, _Tp2>* __p, _Up&& __x, _Vp&& __y) 24952: { 24952: this->construct(__p, piecewise_construct, 24952: std::forward_as_tuple(std::forward<_Up>(__x)), 24952: std::forward_as_tuple(std::forward<_Vp>(__y))); 24952: } 24952: 24952: template 24952: __attribute__((__nonnull__)) 24952: void 24952: construct(pair<_Tp1, _Tp2>* __p, const std::pair<_Up, _Vp>& __pr) 24952: { 24952: this->construct(__p, piecewise_construct, 24952: std::forward_as_tuple(__pr.first), 24952: std::forward_as_tuple(__pr.second)); 24952: } 24952: 24952: template 24952: __attribute__((__nonnull__)) 24952: void 24952: construct(pair<_Tp1, _Tp2>* __p, pair<_Up, _Vp>&& __pr) 24952: { 24952: this->construct(__p, piecewise_construct, 24952: std::forward_as_tuple(std::forward<_Up>(__pr.first)), 24952: std::forward_as_tuple(std::forward<_Vp>(__pr.second))); 24952: } 24952: # 307 "/usr/include/c++/13/bits/memory_resource.h" 3 24952: template 24952: 24952: __attribute__((__nonnull__)) 24952: void 24952: destroy(_Up* __p) 24952: { __p->~_Up(); } 24952: 24952: polymorphic_allocator 24952: select_on_container_copy_construction() const noexcept 24952: { return polymorphic_allocator(); } 24952: 24952: memory_resource* 24952: resource() const noexcept 24952: __attribute__((__returns_nonnull__)) 24952: { return _M_resource; } 24952: 24952: 24952: 24952: [[nodiscard]] 24952: friend bool 24952: operator==(const polymorphic_allocator& __a, 24952: const polymorphic_allocator& __b) noexcept 24952: { return *__a.resource() == *__b.resource(); } 24952: 24952: 24952: [[nodiscard]] 24952: friend bool 24952: operator!=(const polymorphic_allocator& __a, 24952: const polymorphic_allocator& __b) noexcept 24952: { return !(__a == __b); } 24952: 24952: 24952: private: 24952: 24952: using __uses_alloc1_ = __uses_alloc1; 24952: using __uses_alloc2_ = __uses_alloc2; 24952: 24952: template 24952: static tuple<_Args&&...> 24952: _S_construct_p(__uses_alloc0, _Ind, tuple<_Args...>& __t) 24952: { return std::move(__t); } 24952: 24952: template 24952: static tuple 24952: _S_construct_p(__uses_alloc1_ __ua, index_sequence<_Ind...>, 24952: tuple<_Args...>& __t) 24952: { 24952: return { 24952: allocator_arg, *__ua._M_a, std::get<_Ind>(std::move(__t))... 24952: }; 24952: } 24952: 24952: template 24952: static tuple<_Args&&..., polymorphic_allocator> 24952: _S_construct_p(__uses_alloc2_ __ua, index_sequence<_Ind...>, 24952: tuple<_Args...>& __t) 24952: { return { std::get<_Ind>(std::move(__t))..., *__ua._M_a }; } 24952: 24952: 24952: memory_resource* _M_resource; 24952: }; 24952: 24952: template 24952: [[nodiscard]] 24952: inline bool 24952: operator==(const polymorphic_allocator<_Tp1>& __a, 24952: const polymorphic_allocator<_Tp2>& __b) noexcept 24952: { return *__a.resource() == *__b.resource(); } 24952: 24952: 24952: template 24952: [[nodiscard]] 24952: inline bool 24952: operator!=(const polymorphic_allocator<_Tp1>& __a, 24952: const polymorphic_allocator<_Tp2>& __b) noexcept 24952: { return !(__a == __b); } 24952: 24952: 24952: } 24952: 24952: template struct allocator_traits; 24952: 24952: 24952: template 24952: struct allocator_traits> 24952: { 24952: 24952: using allocator_type = pmr::polymorphic_allocator<_Tp>; 24952: 24952: 24952: using value_type = _Tp; 24952: 24952: 24952: using pointer = _Tp*; 24952: 24952: 24952: using const_pointer = const _Tp*; 24952: 24952: 24952: using void_pointer = void*; 24952: 24952: 24952: using const_void_pointer = const void*; 24952: 24952: 24952: using difference_type = std::ptrdiff_t; 24952: 24952: 24952: using size_type = std::size_t; 24952: 24952: 24952: 24952: 24952: 24952: using propagate_on_container_copy_assignment = false_type; 24952: using propagate_on_container_move_assignment = false_type; 24952: using propagate_on_container_swap = false_type; 24952: 24952: static allocator_type 24952: select_on_container_copy_construction(const allocator_type&) noexcept 24952: { return allocator_type(); } 24952: 24952: 24952: 24952: using is_always_equal = false_type; 24952: 24952: template 24952: using rebind_alloc = pmr::polymorphic_allocator<_Up>; 24952: 24952: template 24952: using rebind_traits = allocator_traits>; 24952: # 446 "/usr/include/c++/13/bits/memory_resource.h" 3 24952: [[nodiscard]] static pointer 24952: allocate(allocator_type& __a, size_type __n) 24952: { return __a.allocate(__n); } 24952: # 461 "/usr/include/c++/13/bits/memory_resource.h" 3 24952: [[nodiscard]] static pointer 24952: allocate(allocator_type& __a, size_type __n, const_void_pointer) 24952: { return __a.allocate(__n); } 24952: # 473 "/usr/include/c++/13/bits/memory_resource.h" 3 24952: static void 24952: deallocate(allocator_type& __a, pointer __p, size_type __n) 24952: { __a.deallocate(__p, __n); } 24952: # 488 "/usr/include/c++/13/bits/memory_resource.h" 3 24952: template 24952: static void 24952: construct(allocator_type& __a, _Up* __p, _Args&&... __args) 24952: { __a.construct(__p, std::forward<_Args>(__args)...); } 24952: # 500 "/usr/include/c++/13/bits/memory_resource.h" 3 24952: template 24952: static void 24952: destroy(allocator_type&, _Up* __p) 24952: noexcept(is_nothrow_destructible<_Up>::value) 24952: { __p->~_Up(); } 24952: 24952: 24952: 24952: 24952: 24952: static size_type 24952: max_size(const allocator_type&) noexcept 24952: { return size_t(-1) / sizeof(value_type); } 24952: }; 24952: 24952: 24952: } 24952: # 77 "/usr/include/c++/13/deque" 2 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: namespace pmr 24952: { 24952: template 24952: using deque = std::deque<_Tp, polymorphic_allocator<_Tp>>; 24952: } 24952: 24952: } 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: # 1 "/usr/include/c++/13/functional" 1 3 24952: # 46 "/usr/include/c++/13/functional" 3 24952: 24952: # 47 "/usr/include/c++/13/functional" 3 24952: # 55 "/usr/include/c++/13/functional" 3 24952: # 1 "/usr/include/c++/13/bits/functional_hash.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/functional_hash.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/functional_hash.h" 3 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/hash_bytes.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/hash_bytes.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/hash_bytes.h" 3 24952: 24952: 24952: 24952: namespace std 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t 24952: _Hash_bytes(const void* __ptr, size_t __len, size_t __seed); 24952: 24952: 24952: 24952: 24952: 24952: size_t 24952: _Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); 24952: 24952: 24952: } 24952: # 37 "/usr/include/c++/13/bits/functional_hash.h" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 50 "/usr/include/c++/13/bits/functional_hash.h" 3 24952: template 24952: struct __hash_base 24952: { 24952: typedef _Result result_type [[__deprecated__]]; 24952: typedef _Arg argument_type [[__deprecated__]]; 24952: }; 24952: 24952: 24952: template 24952: struct hash; 24952: 24952: template 24952: struct __poison_hash 24952: { 24952: static constexpr bool __enable_hash_call = false; 24952: private: 24952: 24952: __poison_hash(__poison_hash&&); 24952: ~__poison_hash(); 24952: }; 24952: 24952: template 24952: struct __poison_hash<_Tp, __void_t()(declval<_Tp>()))>> 24952: { 24952: static constexpr bool __enable_hash_call = true; 24952: }; 24952: 24952: 24952: template::value> 24952: struct __hash_enum 24952: { 24952: private: 24952: 24952: __hash_enum(__hash_enum&&); 24952: ~__hash_enum(); 24952: }; 24952: 24952: 24952: template 24952: struct __hash_enum<_Tp, true> : public __hash_base 24952: { 24952: size_t 24952: operator()(_Tp __val) const noexcept 24952: { 24952: using __type = typename underlying_type<_Tp>::type; 24952: return hash<__type>{}(static_cast<__type>(__val)); 24952: } 24952: }; 24952: 24952: 24952: 24952: template 24952: struct hash : __hash_enum<_Tp> 24952: { }; 24952: 24952: 24952: template 24952: struct hash<_Tp*> : public __hash_base 24952: { 24952: size_t 24952: operator()(_Tp* __p) const noexcept 24952: { return reinterpret_cast(__p); } 24952: }; 24952: # 125 "/usr/include/c++/13/bits/functional_hash.h" 3 24952: template<> struct hash : public __hash_base { size_t operator()(bool __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(char __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(signed char __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(unsigned char __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(wchar_t __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(char16_t __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(char32_t __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(short __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(int __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(long __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(long long __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(unsigned short __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(unsigned int __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(unsigned long __val) const noexcept { return static_cast(__val); } }; 24952: 24952: 24952: template<> struct hash : public __hash_base { size_t operator()(unsigned long long __val) const noexcept { return static_cast(__val); } }; 24952: # 201 "/usr/include/c++/13/bits/functional_hash.h" 3 24952: struct _Hash_impl 24952: { 24952: static size_t 24952: hash(const void* __ptr, size_t __clength, 24952: size_t __seed = static_cast(0xc70f6907UL)) 24952: { return _Hash_bytes(__ptr, __clength, __seed); } 24952: 24952: template 24952: static size_t 24952: hash(const _Tp& __val) 24952: { return hash(&__val, sizeof(__val)); } 24952: 24952: template 24952: static size_t 24952: __hash_combine(const _Tp& __val, size_t __hash) 24952: { return hash(&__val, sizeof(__val), __hash); } 24952: }; 24952: 24952: 24952: struct _Fnv_hash_impl 24952: { 24952: static size_t 24952: hash(const void* __ptr, size_t __clength, 24952: size_t __seed = static_cast(2166136261UL)) 24952: { return _Fnv_hash_bytes(__ptr, __clength, __seed); } 24952: 24952: template 24952: static size_t 24952: hash(const _Tp& __val) 24952: { return hash(&__val, sizeof(__val)); } 24952: 24952: template 24952: static size_t 24952: __hash_combine(const _Tp& __val, size_t __hash) 24952: { return hash(&__val, sizeof(__val), __hash); } 24952: }; 24952: 24952: 24952: template<> 24952: struct hash : public __hash_base 24952: { 24952: size_t 24952: operator()(float __val) const noexcept 24952: { 24952: 24952: return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; 24952: } 24952: }; 24952: 24952: 24952: template<> 24952: struct hash : public __hash_base 24952: { 24952: size_t 24952: operator()(double __val) const noexcept 24952: { 24952: 24952: return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; 24952: } 24952: }; 24952: 24952: 24952: template<> 24952: struct hash 24952: : public __hash_base 24952: { 24952: __attribute__ ((__pure__)) size_t 24952: operator()(long double __val) const noexcept; 24952: }; 24952: 24952: 24952: template<> 24952: struct hash : public __hash_base 24952: { 24952: size_t 24952: operator()(nullptr_t) const noexcept 24952: { return 0; } 24952: }; 24952: # 294 "/usr/include/c++/13/bits/functional_hash.h" 3 24952: template 24952: struct __is_fast_hash : public std::true_type 24952: { }; 24952: 24952: template<> 24952: struct __is_fast_hash> : public std::false_type 24952: { }; 24952: 24952: 24952: } 24952: # 56 "/usr/include/c++/13/functional" 2 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/std_function.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/std_function.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/std_function.h" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/typeinfo" 1 3 24952: # 32 "/usr/include/c++/13/typeinfo" 3 24952: 24952: # 33 "/usr/include/c++/13/typeinfo" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: #pragma GCC visibility push(default) 24952: 24952: 24952: 24952: 24952: 24952: extern "C++" { 24952: 24952: namespace __cxxabiv1 24952: { 24952: class __class_type_info; 24952: } 24952: # 84 "/usr/include/c++/13/typeinfo" 3 24952: namespace std 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: class type_info 24952: { 24952: public: 24952: 24952: 24952: 24952: 24952: virtual ~type_info(); 24952: 24952: 24952: 24952: const char* name() const noexcept 24952: { return __name[0] == '*' ? __name + 1 : __name; } 24952: 24952: 24952: 24952: bool before(const type_info& __arg) const noexcept; 24952: 24952: 24952: bool operator==(const type_info& __arg) const noexcept; 24952: 24952: 24952: bool operator!=(const type_info& __arg) const noexcept 24952: { return !operator==(__arg); } 24952: 24952: 24952: 24952: size_t hash_code() const noexcept 24952: { 24952: 24952: return _Hash_bytes(name(), __builtin_strlen(name()), 24952: static_cast(0xc70f6907UL)); 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: virtual bool __is_pointer_p() const; 24952: 24952: 24952: virtual bool __is_function_p() const; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, 24952: unsigned __outer) const; 24952: 24952: 24952: virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, 24952: void **__obj_ptr) const; 24952: 24952: protected: 24952: const char *__name; 24952: 24952: explicit type_info(const char *__n): __name(__n) { } 24952: 24952: private: 24952: 24952: 24952: type_info& operator=(const type_info&) = delete; 24952: type_info(const type_info&) = delete; 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool __equal(const type_info&) const noexcept; 24952: 24952: }; 24952: # 220 "/usr/include/c++/13/typeinfo" 3 24952: class bad_cast : public exception 24952: { 24952: public: 24952: bad_cast() noexcept { } 24952: 24952: 24952: 24952: virtual ~bad_cast() noexcept; 24952: 24952: 24952: virtual const char* what() const noexcept; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: class bad_typeid : public exception 24952: { 24952: public: 24952: bad_typeid () noexcept { } 24952: 24952: 24952: 24952: virtual ~bad_typeid() noexcept; 24952: 24952: 24952: virtual const char* what() const noexcept; 24952: }; 24952: } 24952: 24952: } 24952: 24952: #pragma GCC visibility pop 24952: # 41 "/usr/include/c++/13/bits/std_function.h" 2 3 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class bad_function_call : public std::exception 24952: { 24952: public: 24952: virtual ~bad_function_call() noexcept; 24952: 24952: const char* what() const noexcept; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __is_location_invariant 24952: : is_trivially_copyable<_Tp>::type 24952: { }; 24952: 24952: class _Undefined_class; 24952: 24952: union _Nocopy_types 24952: { 24952: void* _M_object; 24952: const void* _M_const_object; 24952: void (*_M_function_pointer)(); 24952: void (_Undefined_class::*_M_member_pointer)(); 24952: }; 24952: 24952: union [[gnu::may_alias]] _Any_data 24952: { 24952: void* _M_access() noexcept { return &_M_pod_data[0]; } 24952: const void* _M_access() const noexcept { return &_M_pod_data[0]; } 24952: 24952: template 24952: _Tp& 24952: _M_access() noexcept 24952: { return *static_cast<_Tp*>(_M_access()); } 24952: 24952: template 24952: const _Tp& 24952: _M_access() const noexcept 24952: { return *static_cast(_M_access()); } 24952: 24952: _Nocopy_types _M_unused; 24952: char _M_pod_data[sizeof(_Nocopy_types)]; 24952: }; 24952: 24952: enum _Manager_operation 24952: { 24952: __get_type_info, 24952: __get_functor_ptr, 24952: __clone_functor, 24952: __destroy_functor 24952: }; 24952: 24952: template 24952: class function; 24952: 24952: 24952: class _Function_base 24952: { 24952: public: 24952: static const size_t _M_max_size = sizeof(_Nocopy_types); 24952: static const size_t _M_max_align = __alignof__(_Nocopy_types); 24952: 24952: template 24952: class _Base_manager 24952: { 24952: protected: 24952: static const bool __stored_locally = 24952: (__is_location_invariant<_Functor>::value 24952: && sizeof(_Functor) <= _M_max_size 24952: && __alignof__(_Functor) <= _M_max_align 24952: && (_M_max_align % __alignof__(_Functor) == 0)); 24952: 24952: using _Local_storage = integral_constant; 24952: 24952: 24952: static _Functor* 24952: _M_get_pointer(const _Any_data& __source) noexcept 24952: { 24952: if constexpr (__stored_locally) 24952: { 24952: const _Functor& __f = __source._M_access<_Functor>(); 24952: return const_cast<_Functor*>(std::__addressof(__f)); 24952: } 24952: else 24952: return __source._M_access<_Functor*>(); 24952: } 24952: 24952: private: 24952: 24952: 24952: template 24952: static void 24952: _M_create(_Any_data& __dest, _Fn&& __f, true_type) 24952: { 24952: ::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f)); 24952: } 24952: 24952: 24952: template 24952: static void 24952: _M_create(_Any_data& __dest, _Fn&& __f, false_type) 24952: { 24952: __dest._M_access<_Functor*>() 24952: = new _Functor(std::forward<_Fn>(__f)); 24952: } 24952: 24952: 24952: static void 24952: _M_destroy(_Any_data& __victim, true_type) 24952: { 24952: __victim._M_access<_Functor>().~_Functor(); 24952: } 24952: 24952: 24952: static void 24952: _M_destroy(_Any_data& __victim, false_type) 24952: { 24952: delete __victim._M_access<_Functor*>(); 24952: } 24952: 24952: public: 24952: static bool 24952: _M_manager(_Any_data& __dest, const _Any_data& __source, 24952: _Manager_operation __op) 24952: { 24952: switch (__op) 24952: { 24952: case __get_type_info: 24952: 24952: __dest._M_access() = &typeid(_Functor); 24952: 24952: 24952: 24952: break; 24952: 24952: case __get_functor_ptr: 24952: __dest._M_access<_Functor*>() = _M_get_pointer(__source); 24952: break; 24952: 24952: case __clone_functor: 24952: _M_init_functor(__dest, 24952: *const_cast(_M_get_pointer(__source))); 24952: break; 24952: 24952: case __destroy_functor: 24952: _M_destroy(__dest, _Local_storage()); 24952: break; 24952: } 24952: return false; 24952: } 24952: 24952: template 24952: static void 24952: _M_init_functor(_Any_data& __functor, _Fn&& __f) 24952: noexcept(__and_<_Local_storage, 24952: is_nothrow_constructible<_Functor, _Fn>>::value) 24952: { 24952: _M_create(__functor, std::forward<_Fn>(__f), _Local_storage()); 24952: } 24952: 24952: template 24952: static bool 24952: _M_not_empty_function(const function<_Signature>& __f) noexcept 24952: { return static_cast(__f); } 24952: 24952: template 24952: static bool 24952: _M_not_empty_function(_Tp* __fp) noexcept 24952: { return __fp != nullptr; } 24952: 24952: template 24952: static bool 24952: _M_not_empty_function(_Tp _Class::* __mp) noexcept 24952: { return __mp != nullptr; } 24952: 24952: template 24952: static bool 24952: _M_not_empty_function(const _Tp&) noexcept 24952: { return true; } 24952: }; 24952: 24952: _Function_base() = default; 24952: 24952: ~_Function_base() 24952: { 24952: if (_M_manager) 24952: _M_manager(_M_functor, _M_functor, __destroy_functor); 24952: } 24952: 24952: bool _M_empty() const { return !_M_manager; } 24952: 24952: using _Manager_type 24952: = bool (*)(_Any_data&, const _Any_data&, _Manager_operation); 24952: 24952: _Any_data _M_functor{}; 24952: _Manager_type _M_manager{}; 24952: }; 24952: 24952: template 24952: class _Function_handler; 24952: 24952: template 24952: class _Function_handler<_Res(_ArgTypes...), _Functor> 24952: : public _Function_base::_Base_manager<_Functor> 24952: { 24952: using _Base = _Function_base::_Base_manager<_Functor>; 24952: 24952: public: 24952: static bool 24952: _M_manager(_Any_data& __dest, const _Any_data& __source, 24952: _Manager_operation __op) 24952: { 24952: switch (__op) 24952: { 24952: 24952: case __get_type_info: 24952: __dest._M_access() = &typeid(_Functor); 24952: break; 24952: 24952: case __get_functor_ptr: 24952: __dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source); 24952: break; 24952: 24952: default: 24952: _Base::_M_manager(__dest, __source, __op); 24952: } 24952: return false; 24952: } 24952: 24952: static _Res 24952: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 24952: { 24952: return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor), 24952: std::forward<_ArgTypes>(__args)...); 24952: } 24952: 24952: template 24952: static constexpr bool 24952: _S_nothrow_init() noexcept 24952: { 24952: return __and_>::value; 24952: } 24952: }; 24952: 24952: 24952: template<> 24952: class _Function_handler 24952: { 24952: public: 24952: static bool 24952: _M_manager(_Any_data&, const _Any_data&, _Manager_operation) 24952: { return false; } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template::value> 24952: struct _Target_handler 24952: : _Function_handler<_Signature, typename remove_cv<_Functor>::type> 24952: { }; 24952: 24952: template 24952: struct _Target_handler<_Signature, _Functor, false> 24952: : _Function_handler 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: class function<_Res(_ArgTypes...)> 24952: : public _Maybe_unary_or_binary_function<_Res, _ArgTypes...>, 24952: private _Function_base 24952: { 24952: 24952: 24952: template, function>::value> 24952: using _Decay_t 24952: = typename __enable_if_t>::type; 24952: 24952: template, 24952: typename _Res2 = __invoke_result<_DFunc&, _ArgTypes...>> 24952: struct _Callable 24952: : __is_invocable_impl<_Res2, _Res>::type 24952: { }; 24952: 24952: template 24952: using _Requires = __enable_if_t<_Cond::value, _Tp>; 24952: 24952: template 24952: using _Handler 24952: = _Function_handler<_Res(_ArgTypes...), __decay_t<_Functor>>; 24952: 24952: public: 24952: typedef _Res result_type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: function() noexcept 24952: : _Function_base() { } 24952: 24952: 24952: 24952: 24952: 24952: function(nullptr_t) noexcept 24952: : _Function_base() { } 24952: # 386 "/usr/include/c++/13/bits/std_function.h" 3 24952: function(const function& __x) 24952: : _Function_base() 24952: { 24952: if (static_cast(__x)) 24952: { 24952: __x._M_manager(_M_functor, __x._M_functor, __clone_functor); 24952: _M_invoker = __x._M_invoker; 24952: _M_manager = __x._M_manager; 24952: } 24952: } 24952: # 404 "/usr/include/c++/13/bits/std_function.h" 3 24952: function(function&& __x) noexcept 24952: : _Function_base(), _M_invoker(__x._M_invoker) 24952: { 24952: if (static_cast(__x)) 24952: { 24952: _M_functor = __x._M_functor; 24952: _M_manager = __x._M_manager; 24952: __x._M_manager = nullptr; 24952: __x._M_invoker = nullptr; 24952: } 24952: } 24952: # 433 "/usr/include/c++/13/bits/std_function.h" 3 24952: template>> 24952: function(_Functor&& __f) 24952: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 24952: : _Function_base() 24952: { 24952: static_assert(is_copy_constructible<__decay_t<_Functor>>::value, 24952: "std::function target must be copy-constructible"); 24952: static_assert(is_constructible<__decay_t<_Functor>, _Functor>::value, 24952: "std::function target must be constructible from the " 24952: "constructor argument"); 24952: 24952: using _My_handler = _Handler<_Functor>; 24952: 24952: if (_My_handler::_M_not_empty_function(__f)) 24952: { 24952: _My_handler::_M_init_functor(_M_functor, 24952: std::forward<_Functor>(__f)); 24952: _M_invoker = &_My_handler::_M_invoke; 24952: _M_manager = &_My_handler::_M_manager; 24952: } 24952: } 24952: # 468 "/usr/include/c++/13/bits/std_function.h" 3 24952: function& 24952: operator=(const function& __x) 24952: { 24952: function(__x).swap(*this); 24952: return *this; 24952: } 24952: # 486 "/usr/include/c++/13/bits/std_function.h" 3 24952: function& 24952: operator=(function&& __x) noexcept 24952: { 24952: function(std::move(__x)).swap(*this); 24952: return *this; 24952: } 24952: # 500 "/usr/include/c++/13/bits/std_function.h" 3 24952: function& 24952: operator=(nullptr_t) noexcept 24952: { 24952: if (_M_manager) 24952: { 24952: _M_manager(_M_functor, _M_functor, __destroy_functor); 24952: _M_manager = nullptr; 24952: _M_invoker = nullptr; 24952: } 24952: return *this; 24952: } 24952: # 529 "/usr/include/c++/13/bits/std_function.h" 3 24952: template 24952: _Requires<_Callable<_Functor>, function&> 24952: operator=(_Functor&& __f) 24952: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 24952: { 24952: function(std::forward<_Functor>(__f)).swap(*this); 24952: return *this; 24952: } 24952: 24952: 24952: template 24952: function& 24952: operator=(reference_wrapper<_Functor> __f) noexcept 24952: { 24952: function(__f).swap(*this); 24952: return *this; 24952: } 24952: # 556 "/usr/include/c++/13/bits/std_function.h" 3 24952: void swap(function& __x) noexcept 24952: { 24952: std::swap(_M_functor, __x._M_functor); 24952: std::swap(_M_manager, __x._M_manager); 24952: std::swap(_M_invoker, __x._M_invoker); 24952: } 24952: # 573 "/usr/include/c++/13/bits/std_function.h" 3 24952: explicit operator bool() const noexcept 24952: { return !_M_empty(); } 24952: # 586 "/usr/include/c++/13/bits/std_function.h" 3 24952: _Res 24952: operator()(_ArgTypes... __args) const 24952: { 24952: if (_M_empty()) 24952: __throw_bad_function_call(); 24952: return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...); 24952: } 24952: # 605 "/usr/include/c++/13/bits/std_function.h" 3 24952: const type_info& 24952: target_type() const noexcept 24952: { 24952: if (_M_manager) 24952: { 24952: _Any_data __typeinfo_result; 24952: _M_manager(__typeinfo_result, _M_functor, __get_type_info); 24952: if (auto __ti = __typeinfo_result._M_access()) 24952: return *__ti; 24952: } 24952: return typeid(void); 24952: } 24952: # 630 "/usr/include/c++/13/bits/std_function.h" 3 24952: template 24952: _Functor* 24952: target() noexcept 24952: { 24952: const function* __const_this = this; 24952: const _Functor* __func = __const_this->template target<_Functor>(); 24952: 24952: 24952: return *const_cast<_Functor**>(&__func); 24952: } 24952: 24952: template 24952: const _Functor* 24952: target() const noexcept 24952: { 24952: if constexpr (is_object<_Functor>::value) 24952: { 24952: 24952: 24952: using _Handler = _Target_handler<_Res(_ArgTypes...), _Functor>; 24952: 24952: if (_M_manager == &_Handler::_M_manager 24952: 24952: || (_M_manager && typeid(_Functor) == target_type()) 24952: 24952: ) 24952: { 24952: _Any_data __ptr; 24952: _M_manager(__ptr, _M_functor, __get_functor_ptr); 24952: return __ptr._M_access(); 24952: } 24952: } 24952: return nullptr; 24952: } 24952: 24952: 24952: private: 24952: using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...); 24952: _Invoker_type _M_invoker = nullptr; 24952: }; 24952: 24952: 24952: template 24952: struct __function_guide_helper 24952: { }; 24952: 24952: template 24952: struct __function_guide_helper< 24952: _Res (_Tp::*) (_Args...) noexcept(_Nx) 24952: > 24952: { using type = _Res(_Args...); }; 24952: 24952: template 24952: struct __function_guide_helper< 24952: _Res (_Tp::*) (_Args...) & noexcept(_Nx) 24952: > 24952: { using type = _Res(_Args...); }; 24952: 24952: template 24952: struct __function_guide_helper< 24952: _Res (_Tp::*) (_Args...) const noexcept(_Nx) 24952: > 24952: { using type = _Res(_Args...); }; 24952: 24952: template 24952: struct __function_guide_helper< 24952: _Res (_Tp::*) (_Args...) const & noexcept(_Nx) 24952: > 24952: { using type = _Res(_Args...); }; 24952: # 715 "/usr/include/c++/13/bits/std_function.h" 3 24952: template 24952: using __function_guide_t = typename __function_guide_helper<_Op>::type; 24952: 24952: 24952: template 24952: function(_Res(*)(_ArgTypes...)) -> function<_Res(_ArgTypes...)>; 24952: 24952: template> 24952: function(_Fn) -> function<_Signature>; 24952: # 735 "/usr/include/c++/13/bits/std_function.h" 3 24952: template 24952: inline bool 24952: operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 24952: { return !static_cast(__f); } 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 24952: { return !static_cast(__f); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 24952: { return static_cast(__f); } 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 24952: { return static_cast(__f); } 24952: # 774 "/usr/include/c++/13/bits/std_function.h" 3 24952: template 24952: inline void 24952: swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y) noexcept 24952: { __x.swap(__y); } 24952: 24952: 24952: namespace __detail::__variant 24952: { 24952: template struct _Never_valueless_alt; 24952: 24952: 24952: 24952: template 24952: struct _Never_valueless_alt> 24952: : std::true_type 24952: { }; 24952: } 24952: 24952: 24952: 24952: } 24952: # 60 "/usr/include/c++/13/functional" 2 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/unordered_map" 1 3 24952: # 32 "/usr/include/c++/13/unordered_map" 3 24952: 24952: # 33 "/usr/include/c++/13/unordered_map" 3 24952: # 41 "/usr/include/c++/13/unordered_map" 3 24952: # 1 "/usr/include/c++/13/bits/unordered_map.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: # 1 "/usr/include/c++/13/bits/hashtable.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/hashtable.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/hashtable.h" 3 24952: 24952: # 1 "/usr/include/c++/13/bits/hashtable_policy.h" 1 3 24952: # 38 "/usr/include/c++/13/bits/hashtable_policy.h" 3 24952: # 1 "/usr/include/c++/13/ext/aligned_buffer.h" 1 3 24952: # 32 "/usr/include/c++/13/ext/aligned_buffer.h" 3 24952: 24952: # 33 "/usr/include/c++/13/ext/aligned_buffer.h" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace __gnu_cxx 24952: { 24952: 24952: 24952: 24952: 24952: template 24952: struct __aligned_membuf 24952: { 24952: 24952: 24952: 24952: 24952: 24952: struct _Tp2 { _Tp _M_t; }; 24952: 24952: alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)]; 24952: 24952: __aligned_membuf() = default; 24952: 24952: 24952: __aligned_membuf(std::nullptr_t) { } 24952: 24952: void* 24952: _M_addr() noexcept 24952: { return static_cast(&_M_storage); } 24952: 24952: const void* 24952: _M_addr() const noexcept 24952: { return static_cast(&_M_storage); } 24952: 24952: _Tp* 24952: _M_ptr() noexcept 24952: { return static_cast<_Tp*>(_M_addr()); } 24952: 24952: const _Tp* 24952: _M_ptr() const noexcept 24952: { return static_cast(_M_addr()); } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __aligned_buffer 24952: : std::aligned_storage 24952: { 24952: typename 24952: std::aligned_storage::type _M_storage; 24952: 24952: __aligned_buffer() = default; 24952: 24952: 24952: __aligned_buffer(std::nullptr_t) { } 24952: 24952: void* 24952: _M_addr() noexcept 24952: { 24952: return static_cast(&_M_storage); 24952: } 24952: 24952: const void* 24952: _M_addr() const noexcept 24952: { 24952: return static_cast(&_M_storage); 24952: } 24952: 24952: _Tp* 24952: _M_ptr() noexcept 24952: { return static_cast<_Tp*>(_M_addr()); } 24952: 24952: const _Tp* 24952: _M_ptr() const noexcept 24952: { return static_cast(_M_addr()); } 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: } 24952: # 39 "/usr/include/c++/13/bits/hashtable_policy.h" 2 3 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: class _Hashtable; 24952: 24952: namespace __detail 24952: { 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Hashtable_base; 24952: 24952: 24952: 24952: template 24952: inline typename std::iterator_traits<_Iterator>::difference_type 24952: __distance_fw(_Iterator __first, _Iterator __last, 24952: std::input_iterator_tag) 24952: { return __first != __last ? 1 : 0; } 24952: 24952: template 24952: inline typename std::iterator_traits<_Iterator>::difference_type 24952: __distance_fw(_Iterator __first, _Iterator __last, 24952: std::forward_iterator_tag) 24952: { return std::distance(__first, __last); } 24952: 24952: template 24952: inline typename std::iterator_traits<_Iterator>::difference_type 24952: __distance_fw(_Iterator __first, _Iterator __last) 24952: { return __distance_fw(__first, __last, 24952: std::__iterator_category(__first)); } 24952: 24952: struct _Identity 24952: { 24952: template 24952: _Tp&& 24952: operator()(_Tp&& __x) const noexcept 24952: { return std::forward<_Tp>(__x); } 24952: }; 24952: 24952: struct _Select1st 24952: { 24952: template 24952: struct __1st_type; 24952: 24952: template 24952: struct __1st_type> 24952: { using type = _Tp; }; 24952: 24952: template 24952: struct __1st_type> 24952: { using type = const _Tp; }; 24952: 24952: template 24952: struct __1st_type<_Pair&> 24952: { using type = typename __1st_type<_Pair>::type&; }; 24952: 24952: template 24952: typename __1st_type<_Tp>::type&& 24952: operator()(_Tp&& __x) const noexcept 24952: { return std::forward<_Tp>(__x).first; } 24952: }; 24952: 24952: template 24952: struct _ConvertToValueType; 24952: 24952: template 24952: struct _ConvertToValueType<_Identity, _Value> 24952: { 24952: template 24952: constexpr _Kt&& 24952: operator()(_Kt&& __k) const noexcept 24952: { return std::forward<_Kt>(__k); } 24952: }; 24952: 24952: template 24952: struct _ConvertToValueType<_Select1st, _Value> 24952: { 24952: constexpr _Value&& 24952: operator()(_Value&& __x) const noexcept 24952: { return std::move(__x); } 24952: 24952: constexpr const _Value& 24952: operator()(const _Value& __x) const noexcept 24952: { return __x; } 24952: 24952: template 24952: constexpr std::pair<_Kt, _Val>&& 24952: operator()(std::pair<_Kt, _Val>&& __x) const noexcept 24952: { return std::move(__x); } 24952: 24952: template 24952: constexpr const std::pair<_Kt, _Val>& 24952: operator()(const std::pair<_Kt, _Val>& __x) const noexcept 24952: { return __x; } 24952: }; 24952: 24952: template 24952: struct _NodeBuilder; 24952: 24952: template<> 24952: struct _NodeBuilder<_Select1st> 24952: { 24952: template 24952: static auto 24952: _S_build(_Kt&& __k, _Arg&& __arg, const _NodeGenerator& __node_gen) 24952: -> typename _NodeGenerator::__node_type* 24952: { 24952: return __node_gen(std::forward<_Kt>(__k), 24952: std::forward<_Arg>(__arg).second); 24952: } 24952: }; 24952: 24952: template<> 24952: struct _NodeBuilder<_Identity> 24952: { 24952: template 24952: static auto 24952: _S_build(_Kt&& __k, _Arg&&, const _NodeGenerator& __node_gen) 24952: -> typename _NodeGenerator::__node_type* 24952: { return __node_gen(std::forward<_Kt>(__k)); } 24952: }; 24952: 24952: template 24952: struct _Hashtable_alloc; 24952: 24952: 24952: 24952: template 24952: struct _ReuseOrAllocNode 24952: { 24952: private: 24952: using __node_alloc_type = _NodeAlloc; 24952: using __hashtable_alloc = _Hashtable_alloc<__node_alloc_type>; 24952: using __node_alloc_traits = 24952: typename __hashtable_alloc::__node_alloc_traits; 24952: 24952: public: 24952: using __node_type = typename __hashtable_alloc::__node_type; 24952: 24952: _ReuseOrAllocNode(__node_type* __nodes, __hashtable_alloc& __h) 24952: : _M_nodes(__nodes), _M_h(__h) { } 24952: _ReuseOrAllocNode(const _ReuseOrAllocNode&) = delete; 24952: 24952: ~_ReuseOrAllocNode() 24952: { _M_h._M_deallocate_nodes(_M_nodes); } 24952: 24952: template 24952: __node_type* 24952: operator()(_Args&&... __args) const 24952: { 24952: if (_M_nodes) 24952: { 24952: __node_type* __node = _M_nodes; 24952: _M_nodes = _M_nodes->_M_next(); 24952: __node->_M_nxt = nullptr; 24952: auto& __a = _M_h._M_node_allocator(); 24952: __node_alloc_traits::destroy(__a, __node->_M_valptr()); 24952: try 24952: { 24952: __node_alloc_traits::construct(__a, __node->_M_valptr(), 24952: std::forward<_Args>(__args)...); 24952: } 24952: catch(...) 24952: { 24952: _M_h._M_deallocate_node_ptr(__node); 24952: throw; 24952: } 24952: return __node; 24952: } 24952: return _M_h._M_allocate_node(std::forward<_Args>(__args)...); 24952: } 24952: 24952: private: 24952: mutable __node_type* _M_nodes; 24952: __hashtable_alloc& _M_h; 24952: }; 24952: 24952: 24952: 24952: template 24952: struct _AllocNode 24952: { 24952: private: 24952: using __hashtable_alloc = _Hashtable_alloc<_NodeAlloc>; 24952: 24952: public: 24952: using __node_type = typename __hashtable_alloc::__node_type; 24952: 24952: _AllocNode(__hashtable_alloc& __h) 24952: : _M_h(__h) { } 24952: 24952: template 24952: __node_type* 24952: operator()(_Args&&... __args) const 24952: { return _M_h._M_allocate_node(std::forward<_Args>(__args)...); } 24952: 24952: private: 24952: __hashtable_alloc& _M_h; 24952: }; 24952: # 279 "/usr/include/c++/13/bits/hashtable_policy.h" 3 24952: template 24952: struct _Hashtable_traits 24952: { 24952: using __hash_cached = __bool_constant<_Cache_hash_code>; 24952: using __constant_iterators = __bool_constant<_Constant_iterators>; 24952: using __unique_keys = __bool_constant<_Unique_keys>; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Hashtable_hash_traits 24952: { 24952: static constexpr std::size_t 24952: __small_size_threshold() noexcept 24952: { return std::__is_fast_hash<_Hash>::value ? 0 : 20; } 24952: }; 24952: # 309 "/usr/include/c++/13/bits/hashtable_policy.h" 3 24952: struct _Hash_node_base 24952: { 24952: _Hash_node_base* _M_nxt; 24952: 24952: _Hash_node_base() noexcept : _M_nxt() { } 24952: 24952: _Hash_node_base(_Hash_node_base* __next) noexcept : _M_nxt(__next) { } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Hash_node_value_base 24952: { 24952: typedef _Value value_type; 24952: 24952: __gnu_cxx::__aligned_buffer<_Value> _M_storage; 24952: 24952: [[__gnu__::__always_inline__]] 24952: _Value* 24952: _M_valptr() noexcept 24952: { return _M_storage._M_ptr(); } 24952: 24952: [[__gnu__::__always_inline__]] 24952: const _Value* 24952: _M_valptr() const noexcept 24952: { return _M_storage._M_ptr(); } 24952: 24952: [[__gnu__::__always_inline__]] 24952: _Value& 24952: _M_v() noexcept 24952: { return *_M_valptr(); } 24952: 24952: [[__gnu__::__always_inline__]] 24952: const _Value& 24952: _M_v() const noexcept 24952: { return *_M_valptr(); } 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: struct _Hash_node_code_cache 24952: { }; 24952: 24952: 24952: 24952: 24952: template<> 24952: struct _Hash_node_code_cache 24952: { std::size_t _M_hash_code; }; 24952: 24952: template 24952: struct _Hash_node_value 24952: : _Hash_node_value_base<_Value> 24952: , _Hash_node_code_cache<_Cache_hash_code> 24952: { }; 24952: 24952: 24952: 24952: 24952: template 24952: struct _Hash_node 24952: : _Hash_node_base 24952: , _Hash_node_value<_Value, _Cache_hash_code> 24952: { 24952: _Hash_node* 24952: _M_next() const noexcept 24952: { return static_cast<_Hash_node*>(this->_M_nxt); } 24952: }; 24952: 24952: 24952: template 24952: struct _Node_iterator_base 24952: { 24952: using __node_type = _Hash_node<_Value, _Cache_hash_code>; 24952: 24952: __node_type* _M_cur; 24952: 24952: _Node_iterator_base() : _M_cur(nullptr) { } 24952: _Node_iterator_base(__node_type* __p) noexcept 24952: : _M_cur(__p) { } 24952: 24952: void 24952: _M_incr() noexcept 24952: { _M_cur = _M_cur->_M_next(); } 24952: 24952: friend bool 24952: operator==(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 24952: noexcept 24952: { return __x._M_cur == __y._M_cur; } 24952: 24952: 24952: friend bool 24952: operator!=(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 24952: noexcept 24952: { return __x._M_cur != __y._M_cur; } 24952: 24952: }; 24952: 24952: 24952: template 24952: struct _Node_iterator 24952: : public _Node_iterator_base<_Value, __cache> 24952: { 24952: private: 24952: using __base_type = _Node_iterator_base<_Value, __cache>; 24952: using __node_type = typename __base_type::__node_type; 24952: 24952: public: 24952: using value_type = _Value; 24952: using difference_type = std::ptrdiff_t; 24952: using iterator_category = std::forward_iterator_tag; 24952: 24952: using pointer = __conditional_t<__constant_iterators, 24952: const value_type*, value_type*>; 24952: 24952: using reference = __conditional_t<__constant_iterators, 24952: const value_type&, value_type&>; 24952: 24952: _Node_iterator() = default; 24952: 24952: explicit 24952: _Node_iterator(__node_type* __p) noexcept 24952: : __base_type(__p) { } 24952: 24952: reference 24952: operator*() const noexcept 24952: { return this->_M_cur->_M_v(); } 24952: 24952: pointer 24952: operator->() const noexcept 24952: { return this->_M_cur->_M_valptr(); } 24952: 24952: _Node_iterator& 24952: operator++() noexcept 24952: { 24952: this->_M_incr(); 24952: return *this; 24952: } 24952: 24952: _Node_iterator 24952: operator++(int) noexcept 24952: { 24952: _Node_iterator __tmp(*this); 24952: this->_M_incr(); 24952: return __tmp; 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct _Node_const_iterator 24952: : public _Node_iterator_base<_Value, __cache> 24952: { 24952: private: 24952: using __base_type = _Node_iterator_base<_Value, __cache>; 24952: using __node_type = typename __base_type::__node_type; 24952: 24952: public: 24952: typedef _Value value_type; 24952: typedef std::ptrdiff_t difference_type; 24952: typedef std::forward_iterator_tag iterator_category; 24952: 24952: typedef const value_type* pointer; 24952: typedef const value_type& reference; 24952: 24952: _Node_const_iterator() = default; 24952: 24952: explicit 24952: _Node_const_iterator(__node_type* __p) noexcept 24952: : __base_type(__p) { } 24952: 24952: _Node_const_iterator(const _Node_iterator<_Value, __constant_iterators, 24952: __cache>& __x) noexcept 24952: : __base_type(__x._M_cur) { } 24952: 24952: reference 24952: operator*() const noexcept 24952: { return this->_M_cur->_M_v(); } 24952: 24952: pointer 24952: operator->() const noexcept 24952: { return this->_M_cur->_M_valptr(); } 24952: 24952: _Node_const_iterator& 24952: operator++() noexcept 24952: { 24952: this->_M_incr(); 24952: return *this; 24952: } 24952: 24952: _Node_const_iterator 24952: operator++(int) noexcept 24952: { 24952: _Node_const_iterator __tmp(*this); 24952: this->_M_incr(); 24952: return __tmp; 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct _Mod_range_hashing 24952: { 24952: typedef std::size_t first_argument_type; 24952: typedef std::size_t second_argument_type; 24952: typedef std::size_t result_type; 24952: 24952: result_type 24952: operator()(first_argument_type __num, 24952: second_argument_type __den) const noexcept 24952: { return __num % __den; } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct _Default_ranged_hash { }; 24952: 24952: 24952: 24952: struct _Prime_rehash_policy 24952: { 24952: using __has_load_factor = true_type; 24952: 24952: _Prime_rehash_policy(float __z = 1.0) noexcept 24952: : _M_max_load_factor(__z), _M_next_resize(0) { } 24952: 24952: float 24952: max_load_factor() const noexcept 24952: { return _M_max_load_factor; } 24952: 24952: 24952: std::size_t 24952: _M_next_bkt(std::size_t __n) const; 24952: 24952: 24952: std::size_t 24952: _M_bkt_for_elements(std::size_t __n) const 24952: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 24952: 24952: 24952: 24952: 24952: 24952: std::pair 24952: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 24952: std::size_t __n_ins) const; 24952: 24952: typedef std::size_t _State; 24952: 24952: _State 24952: _M_state() const 24952: { return _M_next_resize; } 24952: 24952: void 24952: _M_reset() noexcept 24952: { _M_next_resize = 0; } 24952: 24952: void 24952: _M_reset(_State __state) 24952: { _M_next_resize = __state; } 24952: 24952: static const std::size_t _S_growth_factor = 2; 24952: 24952: float _M_max_load_factor; 24952: mutable std::size_t _M_next_resize; 24952: }; 24952: 24952: 24952: struct _Mask_range_hashing 24952: { 24952: typedef std::size_t first_argument_type; 24952: typedef std::size_t second_argument_type; 24952: typedef std::size_t result_type; 24952: 24952: result_type 24952: operator()(first_argument_type __num, 24952: second_argument_type __den) const noexcept 24952: { return __num & (__den - 1); } 24952: }; 24952: 24952: 24952: inline std::size_t 24952: __clp2(std::size_t __n) noexcept 24952: { 24952: using __gnu_cxx::__int_traits; 24952: 24952: if (__n < 2) 24952: return __n; 24952: const unsigned __lz = sizeof(size_t) > sizeof(long) 24952: ? __builtin_clzll(__n - 1ull) 24952: : __builtin_clzl(__n - 1ul); 24952: 24952: return (size_t(1) << (__int_traits::__digits - __lz - 1)) << 1; 24952: } 24952: 24952: 24952: 24952: struct _Power2_rehash_policy 24952: { 24952: using __has_load_factor = true_type; 24952: 24952: _Power2_rehash_policy(float __z = 1.0) noexcept 24952: : _M_max_load_factor(__z), _M_next_resize(0) { } 24952: 24952: float 24952: max_load_factor() const noexcept 24952: { return _M_max_load_factor; } 24952: 24952: 24952: 24952: std::size_t 24952: _M_next_bkt(std::size_t __n) noexcept 24952: { 24952: if (__n == 0) 24952: 24952: 24952: 24952: return 1; 24952: 24952: const auto __max_width = std::min(sizeof(size_t), 8); 24952: const auto __max_bkt = size_t(1) << (__max_width * 8 - 1); 24952: std::size_t __res = __clp2(__n); 24952: 24952: if (__res == 0) 24952: __res = __max_bkt; 24952: else if (__res == 1) 24952: 24952: 24952: 24952: __res = 2; 24952: 24952: if (__res == __max_bkt) 24952: 24952: 24952: 24952: _M_next_resize = size_t(-1); 24952: else 24952: _M_next_resize 24952: = __builtin_floor(__res * (double)_M_max_load_factor); 24952: 24952: return __res; 24952: } 24952: 24952: 24952: std::size_t 24952: _M_bkt_for_elements(std::size_t __n) const noexcept 24952: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 24952: 24952: 24952: 24952: 24952: 24952: std::pair 24952: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 24952: std::size_t __n_ins) noexcept 24952: { 24952: if (__n_elt + __n_ins > _M_next_resize) 24952: { 24952: 24952: 24952: 24952: double __min_bkts 24952: = std::max(__n_elt + __n_ins, _M_next_resize ? 0 : 11) 24952: / (double)_M_max_load_factor; 24952: if (__min_bkts >= __n_bkt) 24952: return { true, 24952: _M_next_bkt(std::max(__builtin_floor(__min_bkts) + 1, 24952: __n_bkt * _S_growth_factor)) }; 24952: 24952: _M_next_resize 24952: = __builtin_floor(__n_bkt * (double)_M_max_load_factor); 24952: return { false, 0 }; 24952: } 24952: else 24952: return { false, 0 }; 24952: } 24952: 24952: typedef std::size_t _State; 24952: 24952: _State 24952: _M_state() const noexcept 24952: { return _M_next_resize; } 24952: 24952: void 24952: _M_reset() noexcept 24952: { _M_next_resize = 0; } 24952: 24952: void 24952: _M_reset(_State __state) noexcept 24952: { _M_next_resize = __state; } 24952: 24952: static const std::size_t _S_growth_factor = 2; 24952: 24952: float _M_max_load_factor; 24952: std::size_t _M_next_resize; 24952: }; 24952: # 736 "/usr/include/c++/13/bits/hashtable_policy.h" 3 24952: template 24952: struct _Map_base { }; 24952: 24952: 24952: template 24952: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 24952: { 24952: using mapped_type = _Val; 24952: }; 24952: 24952: 24952: template 24952: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 24952: { 24952: private: 24952: using __hashtable_base = _Hashtable_base<_Key, pair, 24952: _Select1st, _Equal, _Hash, 24952: _RangeHash, _Unused, 24952: _Traits>; 24952: 24952: using __hashtable = _Hashtable<_Key, pair, _Alloc, 24952: _Select1st, _Equal, _Hash, _RangeHash, 24952: _Unused, _RehashPolicy, _Traits>; 24952: 24952: using __hash_code = typename __hashtable_base::__hash_code; 24952: 24952: public: 24952: using key_type = typename __hashtable_base::key_type; 24952: using mapped_type = _Val; 24952: 24952: mapped_type& 24952: operator[](const key_type& __k); 24952: 24952: mapped_type& 24952: operator[](key_type&& __k); 24952: 24952: 24952: 24952: mapped_type& 24952: at(const key_type& __k) 24952: { 24952: auto __ite = static_cast<__hashtable*>(this)->find(__k); 24952: if (!__ite._M_cur) 24952: __throw_out_of_range(("unordered_map::at")); 24952: return __ite->second; 24952: } 24952: 24952: const mapped_type& 24952: at(const key_type& __k) const 24952: { 24952: auto __ite = static_cast(this)->find(__k); 24952: if (!__ite._M_cur) 24952: __throw_out_of_range(("unordered_map::at")); 24952: return __ite->second; 24952: } 24952: }; 24952: 24952: template 24952: auto 24952: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 24952: operator[](const key_type& __k) 24952: -> mapped_type& 24952: { 24952: __hashtable* __h = static_cast<__hashtable*>(this); 24952: __hash_code __code = __h->_M_hash_code(__k); 24952: std::size_t __bkt = __h->_M_bucket_index(__code); 24952: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 24952: return __node->_M_v().second; 24952: 24952: typename __hashtable::_Scoped_node __node { 24952: __h, 24952: std::piecewise_construct, 24952: std::tuple(__k), 24952: std::tuple<>() 24952: }; 24952: auto __pos 24952: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 24952: __node._M_node = nullptr; 24952: return __pos->second; 24952: } 24952: 24952: template 24952: auto 24952: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 24952: operator[](key_type&& __k) 24952: -> mapped_type& 24952: { 24952: __hashtable* __h = static_cast<__hashtable*>(this); 24952: __hash_code __code = __h->_M_hash_code(__k); 24952: std::size_t __bkt = __h->_M_bucket_index(__code); 24952: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 24952: return __node->_M_v().second; 24952: 24952: typename __hashtable::_Scoped_node __node { 24952: __h, 24952: std::piecewise_construct, 24952: std::forward_as_tuple(std::move(__k)), 24952: std::tuple<>() 24952: }; 24952: auto __pos 24952: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 24952: __node._M_node = nullptr; 24952: return __pos->second; 24952: } 24952: 24952: 24952: template 24952: struct _Map_base, 24952: _Alloc, _Select1st, _Equal, _Hash, 24952: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 24952: : _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, _Hash, 24952: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Insert_base 24952: { 24952: protected: 24952: using __hashtable_base = _Hashtable_base<_Key, _Value, _ExtractKey, 24952: _Equal, _Hash, _RangeHash, 24952: _Unused, _Traits>; 24952: 24952: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, 24952: _Unused, _RehashPolicy, _Traits>; 24952: 24952: using __hash_cached = typename _Traits::__hash_cached; 24952: using __constant_iterators = typename _Traits::__constant_iterators; 24952: 24952: using __hashtable_alloc = _Hashtable_alloc< 24952: __alloc_rebind<_Alloc, _Hash_node<_Value, 24952: __hash_cached::value>>>; 24952: 24952: using value_type = typename __hashtable_base::value_type; 24952: using size_type = typename __hashtable_base::size_type; 24952: 24952: using __unique_keys = typename _Traits::__unique_keys; 24952: using __node_alloc_type = typename __hashtable_alloc::__node_alloc_type; 24952: using __node_gen_type = _AllocNode<__node_alloc_type>; 24952: 24952: __hashtable& 24952: _M_conjure_hashtable() 24952: { return *(static_cast<__hashtable*>(this)); } 24952: 24952: template 24952: void 24952: _M_insert_range(_InputIterator __first, _InputIterator __last, 24952: const _NodeGetter&, true_type __uks); 24952: 24952: template 24952: void 24952: _M_insert_range(_InputIterator __first, _InputIterator __last, 24952: const _NodeGetter&, false_type __uks); 24952: 24952: public: 24952: using iterator = _Node_iterator<_Value, __constant_iterators::value, 24952: __hash_cached::value>; 24952: 24952: using const_iterator = _Node_const_iterator<_Value, 24952: __constant_iterators::value, 24952: __hash_cached::value>; 24952: 24952: using __ireturn_type = __conditional_t<__unique_keys::value, 24952: std::pair, 24952: iterator>; 24952: 24952: __ireturn_type 24952: insert(const value_type& __v) 24952: { 24952: __hashtable& __h = _M_conjure_hashtable(); 24952: __node_gen_type __node_gen(__h); 24952: return __h._M_insert(__v, __node_gen, __unique_keys{}); 24952: } 24952: 24952: iterator 24952: insert(const_iterator __hint, const value_type& __v) 24952: { 24952: __hashtable& __h = _M_conjure_hashtable(); 24952: __node_gen_type __node_gen(__h); 24952: return __h._M_insert(__hint, __v, __node_gen, __unique_keys{}); 24952: } 24952: 24952: template 24952: std::pair 24952: try_emplace(const_iterator, _KType&& __k, _Args&&... __args) 24952: { 24952: __hashtable& __h = _M_conjure_hashtable(); 24952: auto __code = __h._M_hash_code(__k); 24952: std::size_t __bkt = __h._M_bucket_index(__code); 24952: if (auto __node = __h._M_find_node(__bkt, __k, __code)) 24952: return { iterator(__node), false }; 24952: 24952: typename __hashtable::_Scoped_node __node { 24952: &__h, 24952: std::piecewise_construct, 24952: std::forward_as_tuple(std::forward<_KType>(__k)), 24952: std::forward_as_tuple(std::forward<_Args>(__args)...) 24952: }; 24952: auto __it 24952: = __h._M_insert_unique_node(__bkt, __code, __node._M_node); 24952: __node._M_node = nullptr; 24952: return { __it, true }; 24952: } 24952: 24952: void 24952: insert(initializer_list __l) 24952: { this->insert(__l.begin(), __l.end()); } 24952: 24952: template 24952: void 24952: insert(_InputIterator __first, _InputIterator __last) 24952: { 24952: __hashtable& __h = _M_conjure_hashtable(); 24952: __node_gen_type __node_gen(__h); 24952: return _M_insert_range(__first, __last, __node_gen, __unique_keys{}); 24952: } 24952: }; 24952: 24952: template 24952: template 24952: void 24952: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>:: 24952: _M_insert_range(_InputIterator __first, _InputIterator __last, 24952: const _NodeGetter& __node_gen, true_type __uks) 24952: { 24952: __hashtable& __h = _M_conjure_hashtable(); 24952: for (; __first != __last; ++__first) 24952: __h._M_insert(*__first, __node_gen, __uks); 24952: } 24952: 24952: template 24952: template 24952: void 24952: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>:: 24952: _M_insert_range(_InputIterator __first, _InputIterator __last, 24952: const _NodeGetter& __node_gen, false_type __uks) 24952: { 24952: using __rehash_type = typename __hashtable::__rehash_type; 24952: using __rehash_state = typename __hashtable::__rehash_state; 24952: using pair_type = std::pair; 24952: 24952: size_type __n_elt = __detail::__distance_fw(__first, __last); 24952: if (__n_elt == 0) 24952: return; 24952: 24952: __hashtable& __h = _M_conjure_hashtable(); 24952: __rehash_type& __rehash = __h._M_rehash_policy; 24952: const __rehash_state& __saved_state = __rehash._M_state(); 24952: pair_type __do_rehash = __rehash._M_need_rehash(__h._M_bucket_count, 24952: __h._M_element_count, 24952: __n_elt); 24952: 24952: if (__do_rehash.first) 24952: __h._M_rehash(__do_rehash.second, __saved_state); 24952: 24952: for (; __first != __last; ++__first) 24952: __h._M_insert(*__first, __node_gen, __uks); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Insert; 24952: 24952: 24952: template 24952: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits, true> 24952: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 24952: { 24952: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 24952: _Equal, _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>; 24952: 24952: using value_type = typename __base_type::value_type; 24952: using iterator = typename __base_type::iterator; 24952: using const_iterator = typename __base_type::const_iterator; 24952: using __ireturn_type = typename __base_type::__ireturn_type; 24952: 24952: using __unique_keys = typename __base_type::__unique_keys; 24952: using __hashtable = typename __base_type::__hashtable; 24952: using __node_gen_type = typename __base_type::__node_gen_type; 24952: 24952: using __base_type::insert; 24952: 24952: __ireturn_type 24952: insert(value_type&& __v) 24952: { 24952: __hashtable& __h = this->_M_conjure_hashtable(); 24952: __node_gen_type __node_gen(__h); 24952: return __h._M_insert(std::move(__v), __node_gen, __unique_keys{}); 24952: } 24952: 24952: iterator 24952: insert(const_iterator __hint, value_type&& __v) 24952: { 24952: __hashtable& __h = this->_M_conjure_hashtable(); 24952: __node_gen_type __node_gen(__h); 24952: return __h._M_insert(__hint, std::move(__v), __node_gen, 24952: __unique_keys{}); 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 24952: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 24952: { 24952: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 24952: _Equal, _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>; 24952: using value_type = typename __base_type::value_type; 24952: using iterator = typename __base_type::iterator; 24952: using const_iterator = typename __base_type::const_iterator; 24952: 24952: using __unique_keys = typename __base_type::__unique_keys; 24952: using __hashtable = typename __base_type::__hashtable; 24952: using __ireturn_type = typename __base_type::__ireturn_type; 24952: 24952: using __base_type::insert; 24952: 24952: template 24952: using __is_cons = std::is_constructible; 24952: 24952: template 24952: using _IFcons = std::enable_if<__is_cons<_Pair>::value>; 24952: 24952: template 24952: using _IFconsp = typename _IFcons<_Pair>::type; 24952: 24952: template> 24952: __ireturn_type 24952: insert(_Pair&& __v) 24952: { 24952: __hashtable& __h = this->_M_conjure_hashtable(); 24952: return __h._M_emplace(__unique_keys{}, std::forward<_Pair>(__v)); 24952: } 24952: 24952: template> 24952: iterator 24952: insert(const_iterator __hint, _Pair&& __v) 24952: { 24952: __hashtable& __h = this->_M_conjure_hashtable(); 24952: return __h._M_emplace(__hint, __unique_keys{}, 24952: std::forward<_Pair>(__v)); 24952: } 24952: }; 24952: 24952: template 24952: using __has_load_factor = typename _Policy::__has_load_factor; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: struct _Rehash_base; 24952: 24952: 24952: template 24952: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 24952: false_type > 24952: { 24952: }; 24952: 24952: 24952: template 24952: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 24952: true_type > 24952: { 24952: private: 24952: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, 24952: _Equal, _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>; 24952: 24952: public: 24952: float 24952: max_load_factor() const noexcept 24952: { 24952: const __hashtable* __this = static_cast(this); 24952: return __this->__rehash_policy().max_load_factor(); 24952: } 24952: 24952: void 24952: max_load_factor(float __z) 24952: { 24952: __hashtable* __this = static_cast<__hashtable*>(this); 24952: __this->__rehash_policy(_RehashPolicy(__z)); 24952: } 24952: 24952: void 24952: reserve(std::size_t __n) 24952: { 24952: __hashtable* __this = static_cast<__hashtable*>(this); 24952: __this->rehash(__this->__rehash_policy()._M_bkt_for_elements(__n)); 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Hashtable_ebo_helper; 24952: 24952: 24952: template 24952: struct _Hashtable_ebo_helper<_Nm, _Tp, true> 24952: : private _Tp 24952: { 24952: _Hashtable_ebo_helper() noexcept(noexcept(_Tp())) : _Tp() { } 24952: 24952: template 24952: _Hashtable_ebo_helper(_OtherTp&& __tp) 24952: : _Tp(std::forward<_OtherTp>(__tp)) 24952: { } 24952: 24952: const _Tp& _M_cget() const { return static_cast(*this); } 24952: _Tp& _M_get() { return static_cast<_Tp&>(*this); } 24952: }; 24952: 24952: 24952: template 24952: struct _Hashtable_ebo_helper<_Nm, _Tp, false> 24952: { 24952: _Hashtable_ebo_helper() = default; 24952: 24952: template 24952: _Hashtable_ebo_helper(_OtherTp&& __tp) 24952: : _M_tp(std::forward<_OtherTp>(__tp)) 24952: { } 24952: 24952: const _Tp& _M_cget() const { return _M_tp; } 24952: _Tp& _M_get() { return _M_tp; } 24952: 24952: private: 24952: _Tp _M_tp{}; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Local_iterator_base; 24952: # 1276 "/usr/include/c++/13/bits/hashtable_policy.h" 3 24952: template 24952: struct _Hash_code_base 24952: : private _Hashtable_ebo_helper<1, _Hash> 24952: { 24952: private: 24952: using __ebo_hash = _Hashtable_ebo_helper<1, _Hash>; 24952: 24952: 24952: friend struct _Local_iterator_base<_Key, _Value, _ExtractKey, 24952: _Hash, _RangeHash, _Unused, false>; 24952: 24952: public: 24952: typedef _Hash hasher; 24952: 24952: hasher 24952: hash_function() const 24952: { return _M_hash(); } 24952: 24952: protected: 24952: typedef std::size_t __hash_code; 24952: 24952: 24952: 24952: _Hash_code_base() = default; 24952: 24952: _Hash_code_base(const _Hash& __hash) : __ebo_hash(__hash) { } 24952: 24952: __hash_code 24952: _M_hash_code(const _Key& __k) const 24952: { 24952: static_assert(__is_invocable{}, 24952: "hash function must be invocable with an argument of key type"); 24952: return _M_hash()(__k); 24952: } 24952: 24952: template 24952: __hash_code 24952: _M_hash_code_tr(const _Kt& __k) const 24952: { 24952: static_assert(__is_invocable{}, 24952: "hash function must be invocable with an argument of key type"); 24952: return _M_hash()(__k); 24952: } 24952: 24952: __hash_code 24952: _M_hash_code(const _Hash_node_value<_Value, false>& __n) const 24952: { return _M_hash_code(_ExtractKey{}(__n._M_v())); } 24952: 24952: __hash_code 24952: _M_hash_code(const _Hash_node_value<_Value, true>& __n) const 24952: { return __n._M_hash_code; } 24952: 24952: std::size_t 24952: _M_bucket_index(__hash_code __c, std::size_t __bkt_count) const 24952: { return _RangeHash{}(__c, __bkt_count); } 24952: 24952: std::size_t 24952: _M_bucket_index(const _Hash_node_value<_Value, false>& __n, 24952: std::size_t __bkt_count) const 24952: noexcept( noexcept(declval()(declval())) 24952: && noexcept(declval()((__hash_code)0, 24952: (std::size_t)0)) ) 24952: { 24952: return _RangeHash{}(_M_hash_code(_ExtractKey{}(__n._M_v())), 24952: __bkt_count); 24952: } 24952: 24952: std::size_t 24952: _M_bucket_index(const _Hash_node_value<_Value, true>& __n, 24952: std::size_t __bkt_count) const 24952: noexcept( noexcept(declval()((__hash_code)0, 24952: (std::size_t)0)) ) 24952: { return _RangeHash{}(__n._M_hash_code, __bkt_count); } 24952: 24952: void 24952: _M_store_code(_Hash_node_code_cache&, __hash_code) const 24952: { } 24952: 24952: void 24952: _M_copy_code(_Hash_node_code_cache&, 24952: const _Hash_node_code_cache&) const 24952: { } 24952: 24952: void 24952: _M_store_code(_Hash_node_code_cache& __n, __hash_code __c) const 24952: { __n._M_hash_code = __c; } 24952: 24952: void 24952: _M_copy_code(_Hash_node_code_cache& __to, 24952: const _Hash_node_code_cache& __from) const 24952: { __to._M_hash_code = __from._M_hash_code; } 24952: 24952: void 24952: _M_swap(_Hash_code_base& __x) 24952: { std::swap(__ebo_hash::_M_get(), __x.__ebo_hash::_M_get()); } 24952: 24952: const _Hash& 24952: _M_hash() const { return __ebo_hash::_M_cget(); } 24952: }; 24952: 24952: 24952: template 24952: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 24952: _Hash, _RangeHash, _Unused, true> 24952: : public _Node_iterator_base<_Value, true> 24952: { 24952: protected: 24952: using __base_node_iter = _Node_iterator_base<_Value, true>; 24952: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 24952: _Hash, _RangeHash, _Unused, true>; 24952: 24952: _Local_iterator_base() = default; 24952: _Local_iterator_base(const __hash_code_base&, 24952: _Hash_node<_Value, true>* __p, 24952: std::size_t __bkt, std::size_t __bkt_count) 24952: : __base_node_iter(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 24952: { } 24952: 24952: void 24952: _M_incr() 24952: { 24952: __base_node_iter::_M_incr(); 24952: if (this->_M_cur) 24952: { 24952: std::size_t __bkt 24952: = _RangeHash{}(this->_M_cur->_M_hash_code, _M_bucket_count); 24952: if (__bkt != _M_bucket) 24952: this->_M_cur = nullptr; 24952: } 24952: } 24952: 24952: std::size_t _M_bucket; 24952: std::size_t _M_bucket_count; 24952: 24952: public: 24952: std::size_t 24952: _M_get_bucket() const { return _M_bucket; } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template::value> 24952: struct _Hash_code_storage 24952: { 24952: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 24952: 24952: _Tp* 24952: _M_h() { return _M_storage._M_ptr(); } 24952: 24952: const _Tp* 24952: _M_h() const { return _M_storage._M_ptr(); } 24952: }; 24952: 24952: 24952: template 24952: struct _Hash_code_storage<_Tp, true> 24952: { 24952: static_assert( std::is_empty<_Tp>::value, "Type must be empty" ); 24952: 24952: 24952: 24952: _Tp* 24952: _M_h() { return reinterpret_cast<_Tp*>(this); } 24952: 24952: const _Tp* 24952: _M_h() const { return reinterpret_cast(this); } 24952: }; 24952: 24952: template 24952: using __hash_code_for_local_iter 24952: = _Hash_code_storage<_Hash_code_base<_Key, _Value, _ExtractKey, 24952: _Hash, _RangeHash, _Unused, false>>; 24952: 24952: 24952: template 24952: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 24952: _Hash, _RangeHash, _Unused, false> 24952: : __hash_code_for_local_iter<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 24952: _Unused> 24952: , _Node_iterator_base<_Value, false> 24952: { 24952: protected: 24952: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 24952: _Hash, _RangeHash, _Unused, false>; 24952: using __node_iter_base = _Node_iterator_base<_Value, false>; 24952: 24952: _Local_iterator_base() : _M_bucket_count(-1) { } 24952: 24952: _Local_iterator_base(const __hash_code_base& __base, 24952: _Hash_node<_Value, false>* __p, 24952: std::size_t __bkt, std::size_t __bkt_count) 24952: : __node_iter_base(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 24952: { _M_init(__base); } 24952: 24952: ~_Local_iterator_base() 24952: { 24952: if (_M_bucket_count != size_t(-1)) 24952: _M_destroy(); 24952: } 24952: 24952: _Local_iterator_base(const _Local_iterator_base& __iter) 24952: : __node_iter_base(__iter._M_cur), _M_bucket(__iter._M_bucket) 24952: , _M_bucket_count(__iter._M_bucket_count) 24952: { 24952: if (_M_bucket_count != size_t(-1)) 24952: _M_init(*__iter._M_h()); 24952: } 24952: 24952: _Local_iterator_base& 24952: operator=(const _Local_iterator_base& __iter) 24952: { 24952: if (_M_bucket_count != -1) 24952: _M_destroy(); 24952: this->_M_cur = __iter._M_cur; 24952: _M_bucket = __iter._M_bucket; 24952: _M_bucket_count = __iter._M_bucket_count; 24952: if (_M_bucket_count != -1) 24952: _M_init(*__iter._M_h()); 24952: return *this; 24952: } 24952: 24952: void 24952: _M_incr() 24952: { 24952: __node_iter_base::_M_incr(); 24952: if (this->_M_cur) 24952: { 24952: std::size_t __bkt = this->_M_h()->_M_bucket_index(*this->_M_cur, 24952: _M_bucket_count); 24952: if (__bkt != _M_bucket) 24952: this->_M_cur = nullptr; 24952: } 24952: } 24952: 24952: std::size_t _M_bucket; 24952: std::size_t _M_bucket_count; 24952: 24952: void 24952: _M_init(const __hash_code_base& __base) 24952: { ::new(this->_M_h()) __hash_code_base(__base); } 24952: 24952: void 24952: _M_destroy() { this->_M_h()->~__hash_code_base(); } 24952: 24952: public: 24952: std::size_t 24952: _M_get_bucket() const { return _M_bucket; } 24952: }; 24952: 24952: 24952: template 24952: struct _Local_iterator 24952: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 24952: _Hash, _RangeHash, _Unused, __cache> 24952: { 24952: private: 24952: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 24952: _Hash, _RangeHash, _Unused, __cache>; 24952: using __hash_code_base = typename __base_type::__hash_code_base; 24952: 24952: public: 24952: using value_type = _Value; 24952: using pointer = __conditional_t<__constant_iterators, 24952: const value_type*, value_type*>; 24952: using reference = __conditional_t<__constant_iterators, 24952: const value_type&, value_type&>; 24952: using difference_type = ptrdiff_t; 24952: using iterator_category = forward_iterator_tag; 24952: 24952: _Local_iterator() = default; 24952: 24952: _Local_iterator(const __hash_code_base& __base, 24952: _Hash_node<_Value, __cache>* __n, 24952: std::size_t __bkt, std::size_t __bkt_count) 24952: : __base_type(__base, __n, __bkt, __bkt_count) 24952: { } 24952: 24952: reference 24952: operator*() const 24952: { return this->_M_cur->_M_v(); } 24952: 24952: pointer 24952: operator->() const 24952: { return this->_M_cur->_M_valptr(); } 24952: 24952: _Local_iterator& 24952: operator++() 24952: { 24952: this->_M_incr(); 24952: return *this; 24952: } 24952: 24952: _Local_iterator 24952: operator++(int) 24952: { 24952: _Local_iterator __tmp(*this); 24952: this->_M_incr(); 24952: return __tmp; 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct _Local_const_iterator 24952: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 24952: _Hash, _RangeHash, _Unused, __cache> 24952: { 24952: private: 24952: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 24952: _Hash, _RangeHash, _Unused, __cache>; 24952: using __hash_code_base = typename __base_type::__hash_code_base; 24952: 24952: public: 24952: typedef _Value value_type; 24952: typedef const value_type* pointer; 24952: typedef const value_type& reference; 24952: typedef std::ptrdiff_t difference_type; 24952: typedef std::forward_iterator_tag iterator_category; 24952: 24952: _Local_const_iterator() = default; 24952: 24952: _Local_const_iterator(const __hash_code_base& __base, 24952: _Hash_node<_Value, __cache>* __n, 24952: std::size_t __bkt, std::size_t __bkt_count) 24952: : __base_type(__base, __n, __bkt, __bkt_count) 24952: { } 24952: 24952: _Local_const_iterator(const _Local_iterator<_Key, _Value, _ExtractKey, 24952: _Hash, _RangeHash, _Unused, 24952: __constant_iterators, 24952: __cache>& __x) 24952: : __base_type(__x) 24952: { } 24952: 24952: reference 24952: operator*() const 24952: { return this->_M_cur->_M_v(); } 24952: 24952: pointer 24952: operator->() const 24952: { return this->_M_cur->_M_valptr(); } 24952: 24952: _Local_const_iterator& 24952: operator++() 24952: { 24952: this->_M_incr(); 24952: return *this; 24952: } 24952: 24952: _Local_const_iterator 24952: operator++(int) 24952: { 24952: _Local_const_iterator __tmp(*this); 24952: this->_M_incr(); 24952: return __tmp; 24952: } 24952: }; 24952: # 1655 "/usr/include/c++/13/bits/hashtable_policy.h" 3 24952: template 24952: struct _Hashtable_base 24952: : public _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 24952: _Unused, _Traits::__hash_cached::value>, 24952: private _Hashtable_ebo_helper<0, _Equal> 24952: { 24952: public: 24952: typedef _Key key_type; 24952: typedef _Value value_type; 24952: typedef _Equal key_equal; 24952: typedef std::size_t size_type; 24952: typedef std::ptrdiff_t difference_type; 24952: 24952: using __traits_type = _Traits; 24952: using __hash_cached = typename __traits_type::__hash_cached; 24952: 24952: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 24952: _Hash, _RangeHash, _Unused, 24952: __hash_cached::value>; 24952: 24952: using __hash_code = typename __hash_code_base::__hash_code; 24952: 24952: private: 24952: using _EqualEBO = _Hashtable_ebo_helper<0, _Equal>; 24952: 24952: static bool 24952: _S_equals(__hash_code, const _Hash_node_code_cache&) 24952: { return true; } 24952: 24952: static bool 24952: _S_node_equals(const _Hash_node_code_cache&, 24952: const _Hash_node_code_cache&) 24952: { return true; } 24952: 24952: static bool 24952: _S_equals(__hash_code __c, const _Hash_node_code_cache& __n) 24952: { return __c == __n._M_hash_code; } 24952: 24952: static bool 24952: _S_node_equals(const _Hash_node_code_cache& __lhn, 24952: const _Hash_node_code_cache& __rhn) 24952: { return __lhn._M_hash_code == __rhn._M_hash_code; } 24952: 24952: protected: 24952: _Hashtable_base() = default; 24952: 24952: _Hashtable_base(const _Hash& __hash, const _Equal& __eq) 24952: : __hash_code_base(__hash), _EqualEBO(__eq) 24952: { } 24952: 24952: bool 24952: _M_key_equals(const _Key& __k, 24952: const _Hash_node_value<_Value, 24952: __hash_cached::value>& __n) const 24952: { 24952: static_assert(__is_invocable{}, 24952: "key equality predicate must be invocable with two arguments of " 24952: "key type"); 24952: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 24952: } 24952: 24952: template 24952: bool 24952: _M_key_equals_tr(const _Kt& __k, 24952: const _Hash_node_value<_Value, 24952: __hash_cached::value>& __n) const 24952: { 24952: static_assert( 24952: __is_invocable{}, 24952: "key equality predicate must be invocable with two arguments of " 24952: "key type"); 24952: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 24952: } 24952: 24952: bool 24952: _M_equals(const _Key& __k, __hash_code __c, 24952: const _Hash_node_value<_Value, __hash_cached::value>& __n) const 24952: { return _S_equals(__c, __n) && _M_key_equals(__k, __n); } 24952: 24952: template 24952: bool 24952: _M_equals_tr(const _Kt& __k, __hash_code __c, 24952: const _Hash_node_value<_Value, 24952: __hash_cached::value>& __n) const 24952: { return _S_equals(__c, __n) && _M_key_equals_tr(__k, __n); } 24952: 24952: bool 24952: _M_node_equals( 24952: const _Hash_node_value<_Value, __hash_cached::value>& __lhn, 24952: const _Hash_node_value<_Value, __hash_cached::value>& __rhn) const 24952: { 24952: return _S_node_equals(__lhn, __rhn) 24952: && _M_key_equals(_ExtractKey{}(__lhn._M_v()), __rhn); 24952: } 24952: 24952: void 24952: _M_swap(_Hashtable_base& __x) 24952: { 24952: __hash_code_base::_M_swap(__x); 24952: std::swap(_EqualEBO::_M_get(), __x._EqualEBO::_M_get()); 24952: } 24952: 24952: const _Equal& 24952: _M_eq() const { return _EqualEBO::_M_cget(); } 24952: }; 24952: # 1771 "/usr/include/c++/13/bits/hashtable_policy.h" 3 24952: template 24952: struct _Equality; 24952: 24952: 24952: template 24952: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 24952: { 24952: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>; 24952: 24952: bool 24952: _M_equal(const __hashtable&) const; 24952: }; 24952: 24952: template 24952: bool 24952: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 24952: _M_equal(const __hashtable& __other) const 24952: { 24952: using __node_type = typename __hashtable::__node_type; 24952: const __hashtable* __this = static_cast(this); 24952: if (__this->size() != __other.size()) 24952: return false; 24952: 24952: for (auto __itx = __this->begin(); __itx != __this->end(); ++__itx) 24952: { 24952: std::size_t __ybkt = __other._M_bucket_index(*__itx._M_cur); 24952: auto __prev_n = __other._M_buckets[__ybkt]; 24952: if (!__prev_n) 24952: return false; 24952: 24952: for (__node_type* __n = static_cast<__node_type*>(__prev_n->_M_nxt);; 24952: __n = __n->_M_next()) 24952: { 24952: if (__n->_M_v() == *__itx) 24952: break; 24952: 24952: if (!__n->_M_nxt 24952: || __other._M_bucket_index(*__n->_M_next()) != __ybkt) 24952: return false; 24952: } 24952: } 24952: 24952: return true; 24952: } 24952: 24952: 24952: template 24952: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 24952: { 24952: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>; 24952: 24952: bool 24952: _M_equal(const __hashtable&) const; 24952: }; 24952: 24952: template 24952: bool 24952: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false>:: 24952: _M_equal(const __hashtable& __other) const 24952: { 24952: using __node_type = typename __hashtable::__node_type; 24952: const __hashtable* __this = static_cast(this); 24952: if (__this->size() != __other.size()) 24952: return false; 24952: 24952: for (auto __itx = __this->begin(); __itx != __this->end();) 24952: { 24952: std::size_t __x_count = 1; 24952: auto __itx_end = __itx; 24952: for (++__itx_end; __itx_end != __this->end() 24952: && __this->key_eq()(_ExtractKey{}(*__itx), 24952: _ExtractKey{}(*__itx_end)); 24952: ++__itx_end) 24952: ++__x_count; 24952: 24952: std::size_t __ybkt = __other._M_bucket_index(*__itx._M_cur); 24952: auto __y_prev_n = __other._M_buckets[__ybkt]; 24952: if (!__y_prev_n) 24952: return false; 24952: 24952: __node_type* __y_n = static_cast<__node_type*>(__y_prev_n->_M_nxt); 24952: for (;;) 24952: { 24952: if (__this->key_eq()(_ExtractKey{}(__y_n->_M_v()), 24952: _ExtractKey{}(*__itx))) 24952: break; 24952: 24952: auto __y_ref_n = __y_n; 24952: for (__y_n = __y_n->_M_next(); __y_n; __y_n = __y_n->_M_next()) 24952: if (!__other._M_node_equals(*__y_ref_n, *__y_n)) 24952: break; 24952: 24952: if (!__y_n || __other._M_bucket_index(*__y_n) != __ybkt) 24952: return false; 24952: } 24952: 24952: typename __hashtable::const_iterator __ity(__y_n); 24952: for (auto __ity_end = __ity; __ity_end != __other.end(); ++__ity_end) 24952: if (--__x_count == 0) 24952: break; 24952: 24952: if (__x_count != 0) 24952: return false; 24952: 24952: if (!std::is_permutation(__itx, __itx_end, __ity)) 24952: return false; 24952: 24952: __itx = __itx_end; 24952: } 24952: return true; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Hashtable_alloc : private _Hashtable_ebo_helper<0, _NodeAlloc> 24952: { 24952: private: 24952: using __ebo_node_alloc = _Hashtable_ebo_helper<0, _NodeAlloc>; 24952: 24952: template 24952: struct __get_value_type; 24952: template 24952: struct __get_value_type<_Hash_node<_Val, _Cache_hash_code>> 24952: { using type = _Val; }; 24952: 24952: public: 24952: using __node_type = typename _NodeAlloc::value_type; 24952: using __node_alloc_type = _NodeAlloc; 24952: 24952: using __node_alloc_traits = __gnu_cxx::__alloc_traits<__node_alloc_type>; 24952: 24952: using __value_alloc_traits = typename __node_alloc_traits::template 24952: rebind_traits::type>; 24952: 24952: using __node_ptr = __node_type*; 24952: using __node_base = _Hash_node_base; 24952: using __node_base_ptr = __node_base*; 24952: using __buckets_alloc_type = 24952: __alloc_rebind<__node_alloc_type, __node_base_ptr>; 24952: using __buckets_alloc_traits = std::allocator_traits<__buckets_alloc_type>; 24952: using __buckets_ptr = __node_base_ptr*; 24952: 24952: _Hashtable_alloc() = default; 24952: _Hashtable_alloc(const _Hashtable_alloc&) = default; 24952: _Hashtable_alloc(_Hashtable_alloc&&) = default; 24952: 24952: template 24952: _Hashtable_alloc(_Alloc&& __a) 24952: : __ebo_node_alloc(std::forward<_Alloc>(__a)) 24952: { } 24952: 24952: __node_alloc_type& 24952: _M_node_allocator() 24952: { return __ebo_node_alloc::_M_get(); } 24952: 24952: const __node_alloc_type& 24952: _M_node_allocator() const 24952: { return __ebo_node_alloc::_M_cget(); } 24952: 24952: 24952: template 24952: __node_ptr 24952: _M_allocate_node(_Args&&... __args); 24952: 24952: 24952: void 24952: _M_deallocate_node(__node_ptr __n); 24952: 24952: 24952: void 24952: _M_deallocate_node_ptr(__node_ptr __n); 24952: 24952: 24952: 24952: void 24952: _M_deallocate_nodes(__node_ptr __n); 24952: 24952: __buckets_ptr 24952: _M_allocate_buckets(std::size_t __bkt_count); 24952: 24952: void 24952: _M_deallocate_buckets(__buckets_ptr, std::size_t __bkt_count); 24952: }; 24952: 24952: 24952: 24952: template 24952: template 24952: auto 24952: _Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&... __args) 24952: -> __node_ptr 24952: { 24952: auto __nptr = __node_alloc_traits::allocate(_M_node_allocator(), 1); 24952: __node_ptr __n = std::__to_address(__nptr); 24952: try 24952: { 24952: ::new ((void*)__n) __node_type; 24952: __node_alloc_traits::construct(_M_node_allocator(), 24952: __n->_M_valptr(), 24952: std::forward<_Args>(__args)...); 24952: return __n; 24952: } 24952: catch(...) 24952: { 24952: __node_alloc_traits::deallocate(_M_node_allocator(), __nptr, 1); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: void 24952: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_ptr __n) 24952: { 24952: __node_alloc_traits::destroy(_M_node_allocator(), __n->_M_valptr()); 24952: _M_deallocate_node_ptr(__n); 24952: } 24952: 24952: template 24952: void 24952: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node_ptr(__node_ptr __n) 24952: { 24952: typedef typename __node_alloc_traits::pointer _Ptr; 24952: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__n); 24952: __n->~__node_type(); 24952: __node_alloc_traits::deallocate(_M_node_allocator(), __ptr, 1); 24952: } 24952: 24952: template 24952: void 24952: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_nodes(__node_ptr __n) 24952: { 24952: while (__n) 24952: { 24952: __node_ptr __tmp = __n; 24952: __n = __n->_M_next(); 24952: _M_deallocate_node(__tmp); 24952: } 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count) 24952: -> __buckets_ptr 24952: { 24952: __buckets_alloc_type __alloc(_M_node_allocator()); 24952: 24952: auto __ptr = __buckets_alloc_traits::allocate(__alloc, __bkt_count); 24952: __buckets_ptr __p = std::__to_address(__ptr); 24952: __builtin_memset(__p, 0, __bkt_count * sizeof(__node_base_ptr)); 24952: return __p; 24952: } 24952: 24952: template 24952: void 24952: _Hashtable_alloc<_NodeAlloc>:: 24952: _M_deallocate_buckets(__buckets_ptr __bkts, 24952: std::size_t __bkt_count) 24952: { 24952: typedef typename __buckets_alloc_traits::pointer _Ptr; 24952: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__bkts); 24952: __buckets_alloc_type __alloc(_M_node_allocator()); 24952: __buckets_alloc_traits::deallocate(__alloc, __ptr, __bkt_count); 24952: } 24952: 24952: 24952: } 24952: 24952: 24952: } 24952: # 36 "/usr/include/c++/13/bits/hashtable.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/enable_special_members.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/enable_special_members.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/enable_special_members.h" 3 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: struct _Enable_default_constructor_tag 24952: { 24952: explicit constexpr _Enable_default_constructor_tag() = default; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Enable_default_constructor 24952: { 24952: constexpr _Enable_default_constructor() noexcept = default; 24952: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 24952: noexcept = default; 24952: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 24952: noexcept = default; 24952: _Enable_default_constructor& 24952: operator=(_Enable_default_constructor const&) noexcept = default; 24952: _Enable_default_constructor& 24952: operator=(_Enable_default_constructor&&) noexcept = default; 24952: 24952: 24952: constexpr explicit 24952: _Enable_default_constructor(_Enable_default_constructor_tag) { } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Enable_destructor { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Enable_copy_move { }; 24952: # 96 "/usr/include/c++/13/bits/enable_special_members.h" 3 24952: template 24952: struct _Enable_special_members 24952: : private _Enable_default_constructor<_Default, _Tag>, 24952: private _Enable_destructor<_Destructor, _Tag>, 24952: private _Enable_copy_move<_Copy, _CopyAssignment, 24952: _Move, _MoveAssignment, 24952: _Tag> 24952: { }; 24952: 24952: 24952: 24952: template 24952: struct _Enable_default_constructor 24952: { 24952: constexpr _Enable_default_constructor() noexcept = delete; 24952: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 24952: noexcept = default; 24952: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 24952: noexcept = default; 24952: _Enable_default_constructor& 24952: operator=(_Enable_default_constructor const&) noexcept = default; 24952: _Enable_default_constructor& 24952: operator=(_Enable_default_constructor&&) noexcept = default; 24952: 24952: 24952: constexpr explicit 24952: _Enable_default_constructor(_Enable_default_constructor_tag) { } 24952: }; 24952: 24952: template 24952: struct _Enable_destructor 24952: { ~_Enable_destructor() noexcept = delete; }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = default; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = default; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = default; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = default; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = default; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = default; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = default; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = delete; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = delete; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = delete; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = delete; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = delete; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = default; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = delete; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = delete; 24952: }; 24952: 24952: template 24952: struct _Enable_copy_move 24952: { 24952: constexpr _Enable_copy_move() noexcept = default; 24952: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 24952: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move const&) noexcept = delete; 24952: _Enable_copy_move& 24952: operator=(_Enable_copy_move&&) noexcept = delete; 24952: }; 24952: 24952: 24952: 24952: } 24952: # 37 "/usr/include/c++/13/bits/hashtable.h" 2 3 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/node_handle.h" 1 3 24952: # 34 "/usr/include/c++/13/bits/node_handle.h" 3 24952: 24952: # 35 "/usr/include/c++/13/bits/node_handle.h" 3 24952: # 43 "/usr/include/c++/13/bits/node_handle.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 63 "/usr/include/c++/13/bits/node_handle.h" 3 24952: template 24952: class _Node_handle_common 24952: { 24952: using _AllocTraits = allocator_traits<_NodeAlloc>; 24952: 24952: public: 24952: using allocator_type = __alloc_rebind<_NodeAlloc, _Val>; 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 24952: return allocator_type(_M_alloc._M_alloc); 24952: } 24952: 24952: explicit operator bool() const noexcept { return _M_ptr != nullptr; } 24952: 24952: [[nodiscard]] bool empty() const noexcept { return _M_ptr == nullptr; } 24952: 24952: 24952: protected: 24952: constexpr _Node_handle_common() noexcept : _M_ptr() { } 24952: 24952: ~_Node_handle_common() 24952: { 24952: if (!empty()) 24952: _M_reset(); 24952: } 24952: 24952: _Node_handle_common(_Node_handle_common&& __nh) noexcept 24952: : _M_ptr(__nh._M_ptr) 24952: { 24952: if (_M_ptr) 24952: _M_move(std::move(__nh)); 24952: } 24952: 24952: _Node_handle_common& 24952: operator=(_Node_handle_common&& __nh) noexcept 24952: { 24952: if (empty()) 24952: { 24952: if (!__nh.empty()) 24952: _M_move(std::move(__nh)); 24952: } 24952: else if (__nh.empty()) 24952: _M_reset(); 24952: else 24952: { 24952: 24952: _AllocTraits::destroy(*_M_alloc, _M_ptr->_M_valptr()); 24952: _AllocTraits::deallocate(*_M_alloc, _M_ptr, 1); 24952: 24952: _M_alloc = __nh._M_alloc.release(); 24952: _M_ptr = __nh._M_ptr; 24952: __nh._M_ptr = nullptr; 24952: } 24952: return *this; 24952: } 24952: 24952: _Node_handle_common(typename _AllocTraits::pointer __ptr, 24952: const _NodeAlloc& __alloc) 24952: : _M_ptr(__ptr), _M_alloc(__alloc) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__ptr != nullptr)) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: void 24952: _M_swap(_Node_handle_common& __nh) noexcept 24952: { 24952: if (empty()) 24952: { 24952: if (!__nh.empty()) 24952: _M_move(std::move(__nh)); 24952: } 24952: else if (__nh.empty()) 24952: __nh._M_move(std::move(*this)); 24952: else 24952: { 24952: using std::swap; 24952: swap(_M_ptr, __nh._M_ptr); 24952: _M_alloc.swap(__nh._M_alloc); 24952: } 24952: } 24952: 24952: private: 24952: 24952: 24952: 24952: void 24952: _M_move(_Node_handle_common&& __nh) noexcept 24952: { 24952: ::new (std::__addressof(_M_alloc)) _NodeAlloc(__nh._M_alloc.release()); 24952: _M_ptr = __nh._M_ptr; 24952: __nh._M_ptr = nullptr; 24952: } 24952: 24952: 24952: 24952: 24952: void 24952: _M_reset() noexcept 24952: { 24952: _NodeAlloc __alloc = _M_alloc.release(); 24952: _AllocTraits::destroy(__alloc, _M_ptr->_M_valptr()); 24952: _AllocTraits::deallocate(__alloc, _M_ptr, 1); 24952: _M_ptr = nullptr; 24952: } 24952: 24952: protected: 24952: typename _AllocTraits::pointer _M_ptr; 24952: 24952: private: 24952: 24952: 24952: union _Optional_alloc 24952: { 24952: _Optional_alloc() { } 24952: ~_Optional_alloc() { } 24952: 24952: _Optional_alloc(_Optional_alloc&&) = delete; 24952: _Optional_alloc& operator=(_Optional_alloc&&) = delete; 24952: 24952: _Optional_alloc(const _NodeAlloc& __alloc) noexcept 24952: : _M_alloc(__alloc) 24952: { } 24952: 24952: 24952: void 24952: operator=(_NodeAlloc&& __alloc) noexcept 24952: { 24952: using _ATr = _AllocTraits; 24952: if constexpr (_ATr::propagate_on_container_move_assignment::value) 24952: _M_alloc = std::move(__alloc); 24952: else if constexpr (!_AllocTraits::is_always_equal::value) 24952: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __alloc)) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: 24952: void 24952: swap(_Optional_alloc& __other) noexcept 24952: { 24952: using std::swap; 24952: if constexpr (_AllocTraits::propagate_on_container_swap::value) 24952: swap(_M_alloc, __other._M_alloc); 24952: else if constexpr (!_AllocTraits::is_always_equal::value) 24952: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __other._M_alloc)) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: 24952: _NodeAlloc& operator*() noexcept { return _M_alloc; } 24952: 24952: 24952: _NodeAlloc release() noexcept 24952: { 24952: _NodeAlloc __tmp = std::move(_M_alloc); 24952: _M_alloc.~_NodeAlloc(); 24952: return __tmp; 24952: } 24952: 24952: struct _Empty { }; 24952: 24952: [[__no_unique_address__]] _Empty _M_empty; 24952: [[__no_unique_address__]] _NodeAlloc _M_alloc; 24952: }; 24952: 24952: [[__no_unique_address__]] _Optional_alloc _M_alloc; 24952: 24952: template 24952: friend class _Rb_tree; 24952: 24952: 24952: }; 24952: 24952: 24952: template 24952: class _Node_handle : public _Node_handle_common<_Value, _NodeAlloc> 24952: { 24952: public: 24952: constexpr _Node_handle() noexcept = default; 24952: ~_Node_handle() = default; 24952: _Node_handle(_Node_handle&&) noexcept = default; 24952: 24952: _Node_handle& 24952: operator=(_Node_handle&&) noexcept = default; 24952: 24952: using key_type = _Key; 24952: using mapped_type = typename _Value::second_type; 24952: 24952: key_type& 24952: key() const noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 24952: return *_M_pkey; 24952: } 24952: 24952: mapped_type& 24952: mapped() const noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 24952: return *_M_pmapped; 24952: } 24952: 24952: void 24952: swap(_Node_handle& __nh) noexcept 24952: { 24952: this->_M_swap(__nh); 24952: using std::swap; 24952: swap(_M_pkey, __nh._M_pkey); 24952: swap(_M_pmapped, __nh._M_pmapped); 24952: } 24952: 24952: friend void 24952: swap(_Node_handle& __x, _Node_handle& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: private: 24952: using _AllocTraits = allocator_traits<_NodeAlloc>; 24952: 24952: _Node_handle(typename _AllocTraits::pointer __ptr, 24952: const _NodeAlloc& __alloc) 24952: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) 24952: { 24952: if (__ptr) 24952: { 24952: auto& __key = const_cast<_Key&>(__ptr->_M_valptr()->first); 24952: _M_pkey = _S_pointer_to(__key); 24952: _M_pmapped = _S_pointer_to(__ptr->_M_valptr()->second); 24952: } 24952: else 24952: { 24952: _M_pkey = nullptr; 24952: _M_pmapped = nullptr; 24952: } 24952: } 24952: 24952: template 24952: using __pointer 24952: = __ptr_rebind>; 24952: 24952: __pointer<_Key> _M_pkey = nullptr; 24952: __pointer _M_pmapped = nullptr; 24952: 24952: template 24952: __pointer<_Tp> 24952: _S_pointer_to(_Tp& __obj) 24952: { return pointer_traits<__pointer<_Tp>>::pointer_to(__obj); } 24952: 24952: const key_type& 24952: _M_key() const noexcept { return key(); } 24952: 24952: template 24952: friend class _Rb_tree; 24952: 24952: template 24952: friend class _Hashtable; 24952: }; 24952: 24952: 24952: template 24952: class _Node_handle<_Value, _Value, _NodeAlloc> 24952: : public _Node_handle_common<_Value, _NodeAlloc> 24952: { 24952: public: 24952: constexpr _Node_handle() noexcept = default; 24952: ~_Node_handle() = default; 24952: _Node_handle(_Node_handle&&) noexcept = default; 24952: 24952: _Node_handle& 24952: operator=(_Node_handle&&) noexcept = default; 24952: 24952: using value_type = _Value; 24952: 24952: value_type& 24952: value() const noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 24952: return *this->_M_ptr->_M_valptr(); 24952: } 24952: 24952: void 24952: swap(_Node_handle& __nh) noexcept 24952: { this->_M_swap(__nh); } 24952: 24952: friend void 24952: swap(_Node_handle& __x, _Node_handle& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: private: 24952: using _AllocTraits = allocator_traits<_NodeAlloc>; 24952: 24952: _Node_handle(typename _AllocTraits::pointer __ptr, 24952: const _NodeAlloc& __alloc) 24952: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) { } 24952: 24952: const value_type& 24952: _M_key() const noexcept { return value(); } 24952: 24952: template 24952: friend class _Rb_tree; 24952: 24952: template 24952: friend class _Hashtable; 24952: }; 24952: 24952: 24952: template 24952: struct _Node_insert_return 24952: { 24952: _Iterator position = _Iterator(); 24952: bool inserted = false; 24952: _NodeHandle node; 24952: }; 24952: 24952: 24952: 24952: 24952: } 24952: # 40 "/usr/include/c++/13/bits/hashtable.h" 2 3 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: using __cache_default 24952: = __not_<__and_< 24952: __is_fast_hash<_Hash>, 24952: 24952: __is_nothrow_invocable>>; 24952: 24952: 24952: 24952: 24952: template 24952: using _Hashtable_enable_default_ctor 24952: = _Enable_default_constructor<__and_, 24952: is_default_constructible<_Hash>, 24952: is_default_constructible<_Allocator>>{}, 24952: __detail::_Hash_node_base>; 24952: # 177 "/usr/include/c++/13/bits/hashtable.h" 3 24952: template 24952: class _Hashtable 24952: : public __detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _Traits>, 24952: public __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>, 24952: public __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>, 24952: public __detail::_Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>, 24952: public __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>, 24952: private __detail::_Hashtable_alloc< 24952: __alloc_rebind<_Alloc, 24952: __detail::_Hash_node<_Value, 24952: _Traits::__hash_cached::value>>>, 24952: private _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc> 24952: { 24952: static_assert(is_same::type, _Value>::value, 24952: "unordered container must have a non-const, non-volatile value_type"); 24952: 24952: 24952: 24952: 24952: 24952: using __traits_type = _Traits; 24952: using __hash_cached = typename __traits_type::__hash_cached; 24952: using __constant_iterators = typename __traits_type::__constant_iterators; 24952: using __node_type = __detail::_Hash_node<_Value, __hash_cached::value>; 24952: using __node_alloc_type = __alloc_rebind<_Alloc, __node_type>; 24952: 24952: using __hashtable_alloc = __detail::_Hashtable_alloc<__node_alloc_type>; 24952: 24952: using __node_value_type = 24952: __detail::_Hash_node_value<_Value, __hash_cached::value>; 24952: using __node_ptr = typename __hashtable_alloc::__node_ptr; 24952: using __value_alloc_traits = 24952: typename __hashtable_alloc::__value_alloc_traits; 24952: using __node_alloc_traits = 24952: typename __hashtable_alloc::__node_alloc_traits; 24952: using __node_base = typename __hashtable_alloc::__node_base; 24952: using __node_base_ptr = typename __hashtable_alloc::__node_base_ptr; 24952: using __buckets_ptr = typename __hashtable_alloc::__buckets_ptr; 24952: 24952: using __insert_base = __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, 24952: _Equal, _Hash, 24952: _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>; 24952: using __enable_default_ctor 24952: = _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc>; 24952: 24952: public: 24952: typedef _Key key_type; 24952: typedef _Value value_type; 24952: typedef _Alloc allocator_type; 24952: typedef _Equal key_equal; 24952: 24952: 24952: 24952: typedef typename __value_alloc_traits::pointer pointer; 24952: typedef typename __value_alloc_traits::const_pointer const_pointer; 24952: typedef value_type& reference; 24952: typedef const value_type& const_reference; 24952: 24952: using iterator = typename __insert_base::iterator; 24952: 24952: using const_iterator = typename __insert_base::const_iterator; 24952: 24952: using local_iterator = __detail::_Local_iterator; 24952: 24952: using const_local_iterator = __detail::_Local_const_iterator< 24952: key_type, _Value, 24952: _ExtractKey, _Hash, _RangeHash, _Unused, 24952: __constant_iterators::value, __hash_cached::value>; 24952: 24952: private: 24952: using __rehash_type = _RehashPolicy; 24952: using __rehash_state = typename __rehash_type::_State; 24952: 24952: using __unique_keys = typename __traits_type::__unique_keys; 24952: 24952: using __hashtable_base = __detail:: 24952: _Hashtable_base<_Key, _Value, _ExtractKey, 24952: _Equal, _Hash, _RangeHash, _Unused, _Traits>; 24952: 24952: using __hash_code_base = typename __hashtable_base::__hash_code_base; 24952: using __hash_code = typename __hashtable_base::__hash_code; 24952: using __ireturn_type = typename __insert_base::__ireturn_type; 24952: 24952: using __map_base = __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, 24952: _Equal, _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>; 24952: 24952: using __rehash_base = __detail::_Rehash_base<_Key, _Value, _Alloc, 24952: _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>; 24952: 24952: using __eq_base = __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, 24952: _Equal, _Hash, _RangeHash, _Unused, 24952: _RehashPolicy, _Traits>; 24952: 24952: using __reuse_or_alloc_node_gen_t = 24952: __detail::_ReuseOrAllocNode<__node_alloc_type>; 24952: using __alloc_node_gen_t = 24952: __detail::_AllocNode<__node_alloc_type>; 24952: using __node_builder_t = 24952: __detail::_NodeBuilder<_ExtractKey>; 24952: 24952: 24952: struct _Scoped_node 24952: { 24952: 24952: _Scoped_node(__node_ptr __n, __hashtable_alloc* __h) 24952: : _M_h(__h), _M_node(__n) { } 24952: 24952: 24952: template 24952: _Scoped_node(__hashtable_alloc* __h, _Args&&... __args) 24952: : _M_h(__h), 24952: _M_node(__h->_M_allocate_node(std::forward<_Args>(__args)...)) 24952: { } 24952: 24952: 24952: ~_Scoped_node() { if (_M_node) _M_h->_M_deallocate_node(_M_node); }; 24952: 24952: _Scoped_node(const _Scoped_node&) = delete; 24952: _Scoped_node& operator=(const _Scoped_node&) = delete; 24952: 24952: __hashtable_alloc* _M_h; 24952: __node_ptr _M_node; 24952: }; 24952: 24952: template 24952: static constexpr 24952: __conditional_t::value, 24952: const value_type&, value_type&&> 24952: __fwd_value_for(value_type& __val) noexcept 24952: { return std::move(__val); } 24952: 24952: 24952: 24952: 24952: 24952: struct __hash_code_base_access : __hash_code_base 24952: { using __hash_code_base::_M_bucket_index; }; 24952: 24952: 24952: static_assert(is_nothrow_default_constructible<_RangeHash>::value, 24952: "Functor used to map hash code to bucket index" 24952: " must be nothrow default constructible"); 24952: static_assert(noexcept( 24952: std::declval()((std::size_t)0, (std::size_t)0)), 24952: "Functor used to map hash code to bucket index must be" 24952: " noexcept"); 24952: 24952: 24952: static_assert(is_nothrow_default_constructible<_ExtractKey>::value, 24952: "_ExtractKey must be nothrow default constructible"); 24952: static_assert(noexcept( 24952: std::declval()(std::declval<_Value>())), 24952: "_ExtractKey functor must be noexcept invocable"); 24952: 24952: template 24952: friend struct __detail::_Map_base; 24952: 24952: template 24952: friend struct __detail::_Insert_base; 24952: 24952: template 24952: friend struct __detail::_Insert; 24952: 24952: template 24952: friend struct __detail::_Equality; 24952: 24952: public: 24952: using size_type = typename __hashtable_base::size_type; 24952: using difference_type = typename __hashtable_base::difference_type; 24952: 24952: 24952: using node_type = _Node_handle<_Key, _Value, __node_alloc_type>; 24952: using insert_return_type = _Node_insert_return; 24952: 24952: 24952: private: 24952: __buckets_ptr _M_buckets = &_M_single_bucket; 24952: size_type _M_bucket_count = 1; 24952: __node_base _M_before_begin; 24952: size_type _M_element_count = 0; 24952: _RehashPolicy _M_rehash_policy; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __node_base_ptr _M_single_bucket = nullptr; 24952: 24952: void 24952: _M_update_bbegin() 24952: { 24952: if (_M_begin()) 24952: _M_buckets[_M_bucket_index(*_M_begin())] = &_M_before_begin; 24952: } 24952: 24952: void 24952: _M_update_bbegin(__node_ptr __n) 24952: { 24952: _M_before_begin._M_nxt = __n; 24952: _M_update_bbegin(); 24952: } 24952: 24952: bool 24952: _M_uses_single_bucket(__buckets_ptr __bkts) const 24952: { return __builtin_expect(__bkts == &_M_single_bucket, false); } 24952: 24952: bool 24952: _M_uses_single_bucket() const 24952: { return _M_uses_single_bucket(_M_buckets); } 24952: 24952: static constexpr size_t 24952: __small_size_threshold() noexcept 24952: { 24952: return 24952: __detail::_Hashtable_hash_traits<_Hash>::__small_size_threshold(); 24952: } 24952: 24952: __hashtable_alloc& 24952: _M_base_alloc() { return *this; } 24952: 24952: __buckets_ptr 24952: _M_allocate_buckets(size_type __bkt_count) 24952: { 24952: if (__builtin_expect(__bkt_count == 1, false)) 24952: { 24952: _M_single_bucket = nullptr; 24952: return &_M_single_bucket; 24952: } 24952: 24952: return __hashtable_alloc::_M_allocate_buckets(__bkt_count); 24952: } 24952: 24952: void 24952: _M_deallocate_buckets(__buckets_ptr __bkts, size_type __bkt_count) 24952: { 24952: if (_M_uses_single_bucket(__bkts)) 24952: return; 24952: 24952: __hashtable_alloc::_M_deallocate_buckets(__bkts, __bkt_count); 24952: } 24952: 24952: void 24952: _M_deallocate_buckets() 24952: { _M_deallocate_buckets(_M_buckets, _M_bucket_count); } 24952: 24952: 24952: 24952: __node_ptr 24952: _M_bucket_begin(size_type __bkt) const; 24952: 24952: __node_ptr 24952: _M_begin() const 24952: { return static_cast<__node_ptr>(_M_before_begin._M_nxt); } 24952: 24952: 24952: 24952: template 24952: void 24952: _M_assign_elements(_Ht&&); 24952: 24952: template 24952: void 24952: _M_assign(_Ht&&, const _NodeGenerator&); 24952: 24952: void 24952: _M_move_assign(_Hashtable&&, true_type); 24952: 24952: void 24952: _M_move_assign(_Hashtable&&, false_type); 24952: 24952: void 24952: _M_reset() noexcept; 24952: 24952: _Hashtable(const _Hash& __h, const _Equal& __eq, 24952: const allocator_type& __a) 24952: : __hashtable_base(__h, __eq), 24952: __hashtable_alloc(__node_alloc_type(__a)), 24952: __enable_default_ctor(_Enable_default_constructor_tag{}) 24952: { } 24952: 24952: template 24952: static constexpr bool 24952: _S_nothrow_move() 24952: { 24952: 24952: 24952: 24952: 24952: 24952: if constexpr (_No_realloc) 24952: if constexpr (is_nothrow_copy_constructible<_Hash>()) 24952: return is_nothrow_copy_constructible<_Equal>(); 24952: return false; 24952: 24952: } 24952: 24952: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 24952: true_type ) 24952: noexcept(_S_nothrow_move()); 24952: 24952: _Hashtable(_Hashtable&&, __node_alloc_type&&, 24952: false_type ); 24952: 24952: template 24952: _Hashtable(_InputIterator __first, _InputIterator __last, 24952: size_type __bkt_count_hint, 24952: const _Hash&, const _Equal&, const allocator_type&, 24952: true_type __uks); 24952: 24952: template 24952: _Hashtable(_InputIterator __first, _InputIterator __last, 24952: size_type __bkt_count_hint, 24952: const _Hash&, const _Equal&, const allocator_type&, 24952: false_type __uks); 24952: 24952: public: 24952: 24952: _Hashtable() = default; 24952: 24952: _Hashtable(const _Hashtable&); 24952: 24952: _Hashtable(const _Hashtable&, const allocator_type&); 24952: 24952: explicit 24952: _Hashtable(size_type __bkt_count_hint, 24952: const _Hash& __hf = _Hash(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()); 24952: 24952: 24952: _Hashtable(_Hashtable&& __ht) 24952: noexcept(_S_nothrow_move()) 24952: : _Hashtable(std::move(__ht), std::move(__ht._M_node_allocator()), 24952: true_type{}) 24952: { } 24952: 24952: _Hashtable(_Hashtable&& __ht, const allocator_type& __a) 24952: noexcept(_S_nothrow_move<__node_alloc_traits::_S_always_equal()>()) 24952: : _Hashtable(std::move(__ht), __node_alloc_type(__a), 24952: typename __node_alloc_traits::is_always_equal{}) 24952: { } 24952: 24952: explicit 24952: _Hashtable(const allocator_type& __a) 24952: : __hashtable_alloc(__node_alloc_type(__a)), 24952: __enable_default_ctor(_Enable_default_constructor_tag{}) 24952: { } 24952: 24952: template 24952: _Hashtable(_InputIterator __f, _InputIterator __l, 24952: size_type __bkt_count_hint = 0, 24952: const _Hash& __hf = _Hash(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _Hashtable(__f, __l, __bkt_count_hint, __hf, __eql, __a, 24952: __unique_keys{}) 24952: { } 24952: 24952: _Hashtable(initializer_list __l, 24952: size_type __bkt_count_hint = 0, 24952: const _Hash& __hf = _Hash(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _Hashtable(__l.begin(), __l.end(), __bkt_count_hint, 24952: __hf, __eql, __a, __unique_keys{}) 24952: { } 24952: 24952: _Hashtable& 24952: operator=(const _Hashtable& __ht); 24952: 24952: _Hashtable& 24952: operator=(_Hashtable&& __ht) 24952: noexcept(__node_alloc_traits::_S_nothrow_move() 24952: && is_nothrow_move_assignable<_Hash>::value 24952: && is_nothrow_move_assignable<_Equal>::value) 24952: { 24952: constexpr bool __move_storage = 24952: __node_alloc_traits::_S_propagate_on_move_assign() 24952: || __node_alloc_traits::_S_always_equal(); 24952: _M_move_assign(std::move(__ht), __bool_constant<__move_storage>()); 24952: return *this; 24952: } 24952: 24952: _Hashtable& 24952: operator=(initializer_list __l) 24952: { 24952: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 24952: _M_before_begin._M_nxt = nullptr; 24952: clear(); 24952: 24952: 24952: auto __l_bkt_count = _M_rehash_policy._M_bkt_for_elements(__l.size()); 24952: 24952: 24952: if (_M_bucket_count < __l_bkt_count) 24952: rehash(__l_bkt_count); 24952: 24952: this->_M_insert_range(__l.begin(), __l.end(), __roan, __unique_keys{}); 24952: return *this; 24952: } 24952: 24952: ~_Hashtable() noexcept; 24952: 24952: void 24952: swap(_Hashtable&) 24952: noexcept(__and_<__is_nothrow_swappable<_Hash>, 24952: __is_nothrow_swappable<_Equal>>::value); 24952: 24952: 24952: iterator 24952: begin() noexcept 24952: { return iterator(_M_begin()); } 24952: 24952: const_iterator 24952: begin() const noexcept 24952: { return const_iterator(_M_begin()); } 24952: 24952: iterator 24952: end() noexcept 24952: { return iterator(nullptr); } 24952: 24952: const_iterator 24952: end() const noexcept 24952: { return const_iterator(nullptr); } 24952: 24952: const_iterator 24952: cbegin() const noexcept 24952: { return const_iterator(_M_begin()); } 24952: 24952: const_iterator 24952: cend() const noexcept 24952: { return const_iterator(nullptr); } 24952: 24952: size_type 24952: size() const noexcept 24952: { return _M_element_count; } 24952: 24952: [[__nodiscard__]] bool 24952: empty() const noexcept 24952: { return size() == 0; } 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return allocator_type(this->_M_node_allocator()); } 24952: 24952: size_type 24952: max_size() const noexcept 24952: { return __node_alloc_traits::max_size(this->_M_node_allocator()); } 24952: 24952: 24952: key_equal 24952: key_eq() const 24952: { return this->_M_eq(); } 24952: 24952: 24952: 24952: 24952: size_type 24952: bucket_count() const noexcept 24952: { return _M_bucket_count; } 24952: 24952: size_type 24952: max_bucket_count() const noexcept 24952: { return max_size(); } 24952: 24952: size_type 24952: bucket_size(size_type __bkt) const 24952: { return std::distance(begin(__bkt), end(__bkt)); } 24952: 24952: size_type 24952: bucket(const key_type& __k) const 24952: { return _M_bucket_index(this->_M_hash_code(__k)); } 24952: 24952: local_iterator 24952: begin(size_type __bkt) 24952: { 24952: return local_iterator(*this, _M_bucket_begin(__bkt), 24952: __bkt, _M_bucket_count); 24952: } 24952: 24952: local_iterator 24952: end(size_type __bkt) 24952: { return local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 24952: 24952: const_local_iterator 24952: begin(size_type __bkt) const 24952: { 24952: return const_local_iterator(*this, _M_bucket_begin(__bkt), 24952: __bkt, _M_bucket_count); 24952: } 24952: 24952: const_local_iterator 24952: end(size_type __bkt) const 24952: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 24952: 24952: 24952: const_local_iterator 24952: cbegin(size_type __bkt) const 24952: { 24952: return const_local_iterator(*this, _M_bucket_begin(__bkt), 24952: __bkt, _M_bucket_count); 24952: } 24952: 24952: const_local_iterator 24952: cend(size_type __bkt) const 24952: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 24952: 24952: float 24952: load_factor() const noexcept 24952: { 24952: return static_cast(size()) / static_cast(bucket_count()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const _RehashPolicy& 24952: __rehash_policy() const 24952: { return _M_rehash_policy; } 24952: 24952: void 24952: __rehash_policy(const _RehashPolicy& __pol) 24952: { _M_rehash_policy = __pol; } 24952: 24952: 24952: iterator 24952: find(const key_type& __k); 24952: 24952: const_iterator 24952: find(const key_type& __k) const; 24952: 24952: size_type 24952: count(const key_type& __k) const; 24952: 24952: std::pair 24952: equal_range(const key_type& __k); 24952: 24952: std::pair 24952: equal_range(const key_type& __k) const; 24952: # 789 "/usr/include/c++/13/bits/hashtable.h" 3 24952: private: 24952: 24952: size_type 24952: _M_bucket_index(const __node_value_type& __n) const noexcept 24952: { return __hash_code_base::_M_bucket_index(__n, _M_bucket_count); } 24952: 24952: size_type 24952: _M_bucket_index(__hash_code __c) const 24952: { return __hash_code_base::_M_bucket_index(__c, _M_bucket_count); } 24952: 24952: __node_base_ptr 24952: _M_find_before_node(const key_type&); 24952: 24952: 24952: 24952: __node_base_ptr 24952: _M_find_before_node(size_type, const key_type&, __hash_code) const; 24952: 24952: template 24952: __node_base_ptr 24952: _M_find_before_node_tr(size_type, const _Kt&, __hash_code) const; 24952: 24952: __node_ptr 24952: _M_find_node(size_type __bkt, const key_type& __key, 24952: __hash_code __c) const 24952: { 24952: __node_base_ptr __before_n = _M_find_before_node(__bkt, __key, __c); 24952: if (__before_n) 24952: return static_cast<__node_ptr>(__before_n->_M_nxt); 24952: return nullptr; 24952: } 24952: 24952: template 24952: __node_ptr 24952: _M_find_node_tr(size_type __bkt, const _Kt& __key, 24952: __hash_code __c) const 24952: { 24952: auto __before_n = _M_find_before_node_tr(__bkt, __key, __c); 24952: if (__before_n) 24952: return static_cast<__node_ptr>(__before_n->_M_nxt); 24952: return nullptr; 24952: } 24952: 24952: 24952: void 24952: _M_insert_bucket_begin(size_type, __node_ptr); 24952: 24952: 24952: void 24952: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next_n, 24952: size_type __next_bkt); 24952: 24952: 24952: __node_base_ptr 24952: _M_get_previous_node(size_type __bkt, __node_ptr __n); 24952: 24952: pair 24952: _M_compute_hash_code(const_iterator __hint, const key_type& __k) const; 24952: 24952: 24952: 24952: 24952: iterator 24952: _M_insert_unique_node(size_type __bkt, __hash_code, 24952: __node_ptr __n, size_type __n_elt = 1); 24952: 24952: 24952: 24952: iterator 24952: _M_insert_multi_node(__node_ptr __hint, 24952: __hash_code __code, __node_ptr __n); 24952: 24952: template 24952: std::pair 24952: _M_emplace(true_type __uks, _Args&&... __args); 24952: 24952: template 24952: iterator 24952: _M_emplace(false_type __uks, _Args&&... __args) 24952: { return _M_emplace(cend(), __uks, std::forward<_Args>(__args)...); } 24952: 24952: 24952: template 24952: iterator 24952: _M_emplace(const_iterator, true_type __uks, _Args&&... __args) 24952: { return _M_emplace(__uks, std::forward<_Args>(__args)...).first; } 24952: 24952: template 24952: iterator 24952: _M_emplace(const_iterator, false_type __uks, _Args&&... __args); 24952: 24952: template 24952: std::pair 24952: _M_insert_unique(_Kt&&, _Arg&&, const _NodeGenerator&); 24952: 24952: template 24952: static __conditional_t< 24952: __and_<__is_nothrow_invocable<_Hash&, const key_type&>, 24952: __not_<__is_nothrow_invocable<_Hash&, _Kt>>>::value, 24952: key_type, _Kt&&> 24952: _S_forward_key(_Kt&& __k) 24952: { return std::forward<_Kt>(__k); } 24952: 24952: static const key_type& 24952: _S_forward_key(const key_type& __k) 24952: { return __k; } 24952: 24952: static key_type&& 24952: _S_forward_key(key_type&& __k) 24952: { return std::move(__k); } 24952: 24952: template 24952: std::pair 24952: _M_insert_unique_aux(_Arg&& __arg, const _NodeGenerator& __node_gen) 24952: { 24952: return _M_insert_unique( 24952: _S_forward_key(_ExtractKey{}(std::forward<_Arg>(__arg))), 24952: std::forward<_Arg>(__arg), __node_gen); 24952: } 24952: 24952: template 24952: std::pair 24952: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 24952: true_type ) 24952: { 24952: using __to_value 24952: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 24952: return _M_insert_unique_aux( 24952: __to_value{}(std::forward<_Arg>(__arg)), __node_gen); 24952: } 24952: 24952: template 24952: iterator 24952: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 24952: false_type __uks) 24952: { 24952: using __to_value 24952: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 24952: return _M_insert(cend(), 24952: __to_value{}(std::forward<_Arg>(__arg)), __node_gen, __uks); 24952: } 24952: 24952: 24952: template 24952: iterator 24952: _M_insert(const_iterator, _Arg&& __arg, 24952: const _NodeGenerator& __node_gen, true_type __uks) 24952: { 24952: return 24952: _M_insert(std::forward<_Arg>(__arg), __node_gen, __uks).first; 24952: } 24952: 24952: 24952: template 24952: iterator 24952: _M_insert(const_iterator, _Arg&&, 24952: const _NodeGenerator&, false_type __uks); 24952: 24952: size_type 24952: _M_erase(true_type __uks, const key_type&); 24952: 24952: size_type 24952: _M_erase(false_type __uks, const key_type&); 24952: 24952: iterator 24952: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n); 24952: 24952: public: 24952: 24952: template 24952: __ireturn_type 24952: emplace(_Args&&... __args) 24952: { return _M_emplace(__unique_keys{}, std::forward<_Args>(__args)...); } 24952: 24952: template 24952: iterator 24952: emplace_hint(const_iterator __hint, _Args&&... __args) 24952: { 24952: return _M_emplace(__hint, __unique_keys{}, 24952: std::forward<_Args>(__args)...); 24952: } 24952: 24952: 24952: 24952: 24952: iterator 24952: erase(const_iterator); 24952: 24952: 24952: iterator 24952: erase(iterator __it) 24952: { return erase(const_iterator(__it)); } 24952: 24952: size_type 24952: erase(const key_type& __k) 24952: { return _M_erase(__unique_keys{}, __k); } 24952: 24952: iterator 24952: erase(const_iterator, const_iterator); 24952: 24952: void 24952: clear() noexcept; 24952: 24952: 24952: 24952: void rehash(size_type __bkt_count); 24952: 24952: 24952: 24952: 24952: 24952: 24952: insert_return_type 24952: _M_reinsert_node(node_type&& __nh) 24952: { 24952: insert_return_type __ret; 24952: if (__nh.empty()) 24952: __ret.position = end(); 24952: else 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) __builtin_unreachable(); } while (false); 24952: 24952: const key_type& __k = __nh._M_key(); 24952: __hash_code __code = this->_M_hash_code(__k); 24952: size_type __bkt = _M_bucket_index(__code); 24952: if (__node_ptr __n = _M_find_node(__bkt, __k, __code)) 24952: { 24952: __ret.node = std::move(__nh); 24952: __ret.position = iterator(__n); 24952: __ret.inserted = false; 24952: } 24952: else 24952: { 24952: __ret.position 24952: = _M_insert_unique_node(__bkt, __code, __nh._M_ptr); 24952: __nh._M_ptr = nullptr; 24952: __ret.inserted = true; 24952: } 24952: } 24952: return __ret; 24952: } 24952: 24952: 24952: iterator 24952: _M_reinsert_node_multi(const_iterator __hint, node_type&& __nh) 24952: { 24952: if (__nh.empty()) 24952: return end(); 24952: 24952: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) __builtin_unreachable(); } while (false); 24952: 24952: const key_type& __k = __nh._M_key(); 24952: auto __code = this->_M_hash_code(__k); 24952: auto __ret 24952: = _M_insert_multi_node(__hint._M_cur, __code, __nh._M_ptr); 24952: __nh._M_ptr = nullptr; 24952: return __ret; 24952: } 24952: 24952: private: 24952: node_type 24952: _M_extract_node(size_t __bkt, __node_base_ptr __prev_n) 24952: { 24952: __node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 24952: if (__prev_n == _M_buckets[__bkt]) 24952: _M_remove_bucket_begin(__bkt, __n->_M_next(), 24952: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 24952: else if (__n->_M_nxt) 24952: { 24952: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 24952: if (__next_bkt != __bkt) 24952: _M_buckets[__next_bkt] = __prev_n; 24952: } 24952: 24952: __prev_n->_M_nxt = __n->_M_nxt; 24952: __n->_M_nxt = nullptr; 24952: --_M_element_count; 24952: return { __n, this->_M_node_allocator() }; 24952: } 24952: 24952: 24952: 24952: template 24952: __hash_code 24952: _M_src_hash_code(const _H2&, const key_type& __k, 24952: const __node_value_type& __src_n) const 24952: { 24952: if constexpr (std::is_same_v<_H2, _Hash>) 24952: if constexpr (std::is_empty_v<_Hash>) 24952: return this->_M_hash_code(__src_n); 24952: 24952: return this->_M_hash_code(__k); 24952: } 24952: 24952: public: 24952: 24952: node_type 24952: extract(const_iterator __pos) 24952: { 24952: size_t __bkt = _M_bucket_index(*__pos._M_cur); 24952: return _M_extract_node(__bkt, 24952: _M_get_previous_node(__bkt, __pos._M_cur)); 24952: } 24952: 24952: 24952: node_type 24952: extract(const _Key& __k) 24952: { 24952: node_type __nh; 24952: __hash_code __code = this->_M_hash_code(__k); 24952: std::size_t __bkt = _M_bucket_index(__code); 24952: if (__node_base_ptr __prev_node = _M_find_before_node(__bkt, __k, __code)) 24952: __nh = _M_extract_node(__bkt, __prev_node); 24952: return __nh; 24952: } 24952: 24952: 24952: template 24952: void 24952: _M_merge_unique(_Compatible_Hashtable& __src) 24952: { 24952: static_assert(is_same_v, "Node types are compatible"); 24952: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) __builtin_unreachable(); } while (false); 24952: 24952: auto __n_elt = __src.size(); 24952: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 24952: { 24952: auto __pos = __i++; 24952: const key_type& __k = _ExtractKey{}(*__pos); 24952: __hash_code __code 24952: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 24952: size_type __bkt = _M_bucket_index(__code); 24952: if (_M_find_node(__bkt, __k, __code) == nullptr) 24952: { 24952: auto __nh = __src.extract(__pos); 24952: _M_insert_unique_node(__bkt, __code, __nh._M_ptr, __n_elt); 24952: __nh._M_ptr = nullptr; 24952: __n_elt = 1; 24952: } 24952: else if (__n_elt != 1) 24952: --__n_elt; 24952: } 24952: } 24952: 24952: 24952: template 24952: void 24952: _M_merge_multi(_Compatible_Hashtable& __src) 24952: { 24952: static_assert(is_same_v, "Node types are compatible"); 24952: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) __builtin_unreachable(); } while (false); 24952: 24952: __node_ptr __hint = nullptr; 24952: this->reserve(size() + __src.size()); 24952: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 24952: { 24952: auto __pos = __i++; 24952: const key_type& __k = _ExtractKey{}(*__pos); 24952: __hash_code __code 24952: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 24952: auto __nh = __src.extract(__pos); 24952: __hint = _M_insert_multi_node(__hint, __code, __nh._M_ptr)._M_cur; 24952: __nh._M_ptr = nullptr; 24952: } 24952: } 24952: 24952: 24952: private: 24952: 24952: void _M_rehash_aux(size_type __bkt_count, true_type __uks); 24952: 24952: 24952: void _M_rehash_aux(size_type __bkt_count, false_type __uks); 24952: 24952: 24952: 24952: void _M_rehash(size_type __bkt_count, const __rehash_state& __state); 24952: }; 24952: 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_bucket_begin(size_type __bkt) const 24952: -> __node_ptr 24952: { 24952: __node_base_ptr __n = _M_buckets[__bkt]; 24952: return __n ? static_cast<__node_ptr>(__n->_M_nxt) : nullptr; 24952: } 24952: 24952: template 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _Hashtable(size_type __bkt_count_hint, 24952: const _Hash& __h, const _Equal& __eq, const allocator_type& __a) 24952: : _Hashtable(__h, __eq, __a) 24952: { 24952: auto __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count_hint); 24952: if (__bkt_count > _M_bucket_count) 24952: { 24952: _M_buckets = _M_allocate_buckets(__bkt_count); 24952: _M_bucket_count = __bkt_count; 24952: } 24952: } 24952: 24952: template 24952: template 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _Hashtable(_InputIterator __f, _InputIterator __l, 24952: size_type __bkt_count_hint, 24952: const _Hash& __h, const _Equal& __eq, 24952: const allocator_type& __a, true_type ) 24952: : _Hashtable(__bkt_count_hint, __h, __eq, __a) 24952: { this->insert(__f, __l); } 24952: 24952: template 24952: template 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _Hashtable(_InputIterator __f, _InputIterator __l, 24952: size_type __bkt_count_hint, 24952: const _Hash& __h, const _Equal& __eq, 24952: const allocator_type& __a, false_type __uks) 24952: : _Hashtable(__h, __eq, __a) 24952: { 24952: auto __nb_elems = __detail::__distance_fw(__f, __l); 24952: auto __bkt_count = 24952: _M_rehash_policy._M_next_bkt( 24952: std::max(_M_rehash_policy._M_bkt_for_elements(__nb_elems), 24952: __bkt_count_hint)); 24952: 24952: if (__bkt_count > _M_bucket_count) 24952: { 24952: _M_buckets = _M_allocate_buckets(__bkt_count); 24952: _M_bucket_count = __bkt_count; 24952: } 24952: 24952: __alloc_node_gen_t __node_gen(*this); 24952: for (; __f != __l; ++__f) 24952: _M_insert(*__f, __node_gen, __uks); 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: operator=(const _Hashtable& __ht) 24952: -> _Hashtable& 24952: { 24952: if (&__ht == this) 24952: return *this; 24952: 24952: if (__node_alloc_traits::_S_propagate_on_copy_assign()) 24952: { 24952: auto& __this_alloc = this->_M_node_allocator(); 24952: auto& __that_alloc = __ht._M_node_allocator(); 24952: if (!__node_alloc_traits::_S_always_equal() 24952: && __this_alloc != __that_alloc) 24952: { 24952: 24952: this->_M_deallocate_nodes(_M_begin()); 24952: _M_before_begin._M_nxt = nullptr; 24952: _M_deallocate_buckets(); 24952: _M_buckets = nullptr; 24952: std::__alloc_on_copy(__this_alloc, __that_alloc); 24952: __hashtable_base::operator=(__ht); 24952: _M_bucket_count = __ht._M_bucket_count; 24952: _M_element_count = __ht._M_element_count; 24952: _M_rehash_policy = __ht._M_rehash_policy; 24952: __alloc_node_gen_t __alloc_node_gen(*this); 24952: try 24952: { 24952: _M_assign(__ht, __alloc_node_gen); 24952: } 24952: catch(...) 24952: { 24952: 24952: 24952: _M_reset(); 24952: throw; 24952: } 24952: return *this; 24952: } 24952: std::__alloc_on_copy(__this_alloc, __that_alloc); 24952: } 24952: 24952: 24952: _M_assign_elements(__ht); 24952: return *this; 24952: } 24952: 24952: template 24952: template 24952: void 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_assign_elements(_Ht&& __ht) 24952: { 24952: __buckets_ptr __former_buckets = nullptr; 24952: std::size_t __former_bucket_count = _M_bucket_count; 24952: const __rehash_state& __former_state = _M_rehash_policy._M_state(); 24952: 24952: if (_M_bucket_count != __ht._M_bucket_count) 24952: { 24952: __former_buckets = _M_buckets; 24952: _M_buckets = _M_allocate_buckets(__ht._M_bucket_count); 24952: _M_bucket_count = __ht._M_bucket_count; 24952: } 24952: else 24952: __builtin_memset(_M_buckets, 0, 24952: _M_bucket_count * sizeof(__node_base_ptr)); 24952: 24952: try 24952: { 24952: __hashtable_base::operator=(std::forward<_Ht>(__ht)); 24952: _M_element_count = __ht._M_element_count; 24952: _M_rehash_policy = __ht._M_rehash_policy; 24952: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 24952: _M_before_begin._M_nxt = nullptr; 24952: _M_assign(std::forward<_Ht>(__ht), __roan); 24952: if (__former_buckets) 24952: _M_deallocate_buckets(__former_buckets, __former_bucket_count); 24952: } 24952: catch(...) 24952: { 24952: if (__former_buckets) 24952: { 24952: 24952: _M_deallocate_buckets(); 24952: _M_rehash_policy._M_reset(__former_state); 24952: _M_buckets = __former_buckets; 24952: _M_bucket_count = __former_bucket_count; 24952: } 24952: __builtin_memset(_M_buckets, 0, 24952: _M_bucket_count * sizeof(__node_base_ptr)); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: template 24952: void 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_assign(_Ht&& __ht, const _NodeGenerator& __node_gen) 24952: { 24952: __buckets_ptr __buckets = nullptr; 24952: if (!_M_buckets) 24952: _M_buckets = __buckets = _M_allocate_buckets(_M_bucket_count); 24952: 24952: try 24952: { 24952: if (!__ht._M_before_begin._M_nxt) 24952: return; 24952: 24952: 24952: 24952: __node_ptr __ht_n = __ht._M_begin(); 24952: __node_ptr __this_n 24952: = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 24952: this->_M_copy_code(*__this_n, *__ht_n); 24952: _M_update_bbegin(__this_n); 24952: 24952: 24952: __node_ptr __prev_n = __this_n; 24952: for (__ht_n = __ht_n->_M_next(); __ht_n; __ht_n = __ht_n->_M_next()) 24952: { 24952: __this_n = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 24952: __prev_n->_M_nxt = __this_n; 24952: this->_M_copy_code(*__this_n, *__ht_n); 24952: size_type __bkt = _M_bucket_index(*__this_n); 24952: if (!_M_buckets[__bkt]) 24952: _M_buckets[__bkt] = __prev_n; 24952: __prev_n = __this_n; 24952: } 24952: } 24952: catch(...) 24952: { 24952: clear(); 24952: if (__buckets) 24952: _M_deallocate_buckets(); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: void 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_reset() noexcept 24952: { 24952: _M_rehash_policy._M_reset(); 24952: _M_bucket_count = 1; 24952: _M_single_bucket = nullptr; 24952: _M_buckets = &_M_single_bucket; 24952: _M_before_begin._M_nxt = nullptr; 24952: _M_element_count = 0; 24952: } 24952: 24952: template 24952: void 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_move_assign(_Hashtable&& __ht, true_type) 24952: { 24952: if (__builtin_expect(std::__addressof(__ht) == this, false)) 24952: return; 24952: 24952: this->_M_deallocate_nodes(_M_begin()); 24952: _M_deallocate_buckets(); 24952: __hashtable_base::operator=(std::move(__ht)); 24952: _M_rehash_policy = __ht._M_rehash_policy; 24952: if (!__ht._M_uses_single_bucket()) 24952: _M_buckets = __ht._M_buckets; 24952: else 24952: { 24952: _M_buckets = &_M_single_bucket; 24952: _M_single_bucket = __ht._M_single_bucket; 24952: } 24952: 24952: _M_bucket_count = __ht._M_bucket_count; 24952: _M_before_begin._M_nxt = __ht._M_before_begin._M_nxt; 24952: _M_element_count = __ht._M_element_count; 24952: std::__alloc_on_move(this->_M_node_allocator(), __ht._M_node_allocator()); 24952: 24952: 24952: _M_update_bbegin(); 24952: __ht._M_reset(); 24952: } 24952: 24952: template 24952: void 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_move_assign(_Hashtable&& __ht, false_type) 24952: { 24952: if (__ht._M_node_allocator() == this->_M_node_allocator()) 24952: _M_move_assign(std::move(__ht), true_type{}); 24952: else 24952: { 24952: 24952: _M_assign_elements(std::move(__ht)); 24952: __ht.clear(); 24952: } 24952: } 24952: 24952: template 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _Hashtable(const _Hashtable& __ht) 24952: : __hashtable_base(__ht), 24952: __map_base(__ht), 24952: __rehash_base(__ht), 24952: __hashtable_alloc( 24952: __node_alloc_traits::_S_select_on_copy(__ht._M_node_allocator())), 24952: __enable_default_ctor(__ht), 24952: _M_buckets(nullptr), 24952: _M_bucket_count(__ht._M_bucket_count), 24952: _M_element_count(__ht._M_element_count), 24952: _M_rehash_policy(__ht._M_rehash_policy) 24952: { 24952: __alloc_node_gen_t __alloc_node_gen(*this); 24952: _M_assign(__ht, __alloc_node_gen); 24952: } 24952: 24952: template 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 24952: true_type ) 24952: noexcept(_S_nothrow_move()) 24952: : __hashtable_base(__ht), 24952: __map_base(__ht), 24952: __rehash_base(__ht), 24952: __hashtable_alloc(std::move(__a)), 24952: __enable_default_ctor(__ht), 24952: _M_buckets(__ht._M_buckets), 24952: _M_bucket_count(__ht._M_bucket_count), 24952: _M_before_begin(__ht._M_before_begin._M_nxt), 24952: _M_element_count(__ht._M_element_count), 24952: _M_rehash_policy(__ht._M_rehash_policy) 24952: { 24952: 24952: if (__ht._M_uses_single_bucket()) 24952: { 24952: _M_buckets = &_M_single_bucket; 24952: _M_single_bucket = __ht._M_single_bucket; 24952: } 24952: 24952: 24952: _M_update_bbegin(); 24952: 24952: __ht._M_reset(); 24952: } 24952: 24952: template 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _Hashtable(const _Hashtable& __ht, const allocator_type& __a) 24952: : __hashtable_base(__ht), 24952: __map_base(__ht), 24952: __rehash_base(__ht), 24952: __hashtable_alloc(__node_alloc_type(__a)), 24952: __enable_default_ctor(__ht), 24952: _M_buckets(), 24952: _M_bucket_count(__ht._M_bucket_count), 24952: _M_element_count(__ht._M_element_count), 24952: _M_rehash_policy(__ht._M_rehash_policy) 24952: { 24952: __alloc_node_gen_t __alloc_node_gen(*this); 24952: _M_assign(__ht, __alloc_node_gen); 24952: } 24952: 24952: template 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 24952: false_type ) 24952: : __hashtable_base(__ht), 24952: __map_base(__ht), 24952: __rehash_base(__ht), 24952: __hashtable_alloc(std::move(__a)), 24952: __enable_default_ctor(__ht), 24952: _M_buckets(nullptr), 24952: _M_bucket_count(__ht._M_bucket_count), 24952: _M_element_count(__ht._M_element_count), 24952: _M_rehash_policy(__ht._M_rehash_policy) 24952: { 24952: if (__ht._M_node_allocator() == this->_M_node_allocator()) 24952: { 24952: if (__ht._M_uses_single_bucket()) 24952: { 24952: _M_buckets = &_M_single_bucket; 24952: _M_single_bucket = __ht._M_single_bucket; 24952: } 24952: else 24952: _M_buckets = __ht._M_buckets; 24952: 24952: 24952: 24952: _M_update_bbegin(__ht._M_begin()); 24952: 24952: __ht._M_reset(); 24952: } 24952: else 24952: { 24952: __alloc_node_gen_t __alloc_gen(*this); 24952: 24952: using _Fwd_Ht = __conditional_t< 24952: __move_if_noexcept_cond::value, 24952: const _Hashtable&, _Hashtable&&>; 24952: _M_assign(std::forward<_Fwd_Ht>(__ht), __alloc_gen); 24952: __ht.clear(); 24952: } 24952: } 24952: 24952: template 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: ~_Hashtable() noexcept 24952: { 24952: 24952: 24952: 24952: static_assert(noexcept(declval() 24952: ._M_bucket_index(declval(), 24952: (std::size_t)0)), 24952: "Cache the hash code or qualify your functors involved" 24952: " in hash code and bucket index computation with noexcept"); 24952: 24952: clear(); 24952: _M_deallocate_buckets(); 24952: } 24952: 24952: template 24952: void 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: swap(_Hashtable& __x) 24952: noexcept(__and_<__is_nothrow_swappable<_Hash>, 24952: __is_nothrow_swappable<_Equal>>::value) 24952: { 24952: 24952: 24952: 24952: this->_M_swap(__x); 24952: 24952: std::__alloc_on_swap(this->_M_node_allocator(), __x._M_node_allocator()); 24952: std::swap(_M_rehash_policy, __x._M_rehash_policy); 24952: 24952: 24952: if (this->_M_uses_single_bucket()) 24952: { 24952: if (!__x._M_uses_single_bucket()) 24952: { 24952: _M_buckets = __x._M_buckets; 24952: __x._M_buckets = &__x._M_single_bucket; 24952: } 24952: } 24952: else if (__x._M_uses_single_bucket()) 24952: { 24952: __x._M_buckets = _M_buckets; 24952: _M_buckets = &_M_single_bucket; 24952: } 24952: else 24952: std::swap(_M_buckets, __x._M_buckets); 24952: 24952: std::swap(_M_bucket_count, __x._M_bucket_count); 24952: std::swap(_M_before_begin._M_nxt, __x._M_before_begin._M_nxt); 24952: std::swap(_M_element_count, __x._M_element_count); 24952: std::swap(_M_single_bucket, __x._M_single_bucket); 24952: 24952: 24952: 24952: _M_update_bbegin(); 24952: __x._M_update_bbegin(); 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: find(const key_type& __k) 24952: -> iterator 24952: { 24952: if (size() <= __small_size_threshold()) 24952: { 24952: for (auto __it = begin(); __it != end(); ++__it) 24952: if (this->_M_key_equals(__k, *__it._M_cur)) 24952: return __it; 24952: return end(); 24952: } 24952: 24952: __hash_code __code = this->_M_hash_code(__k); 24952: std::size_t __bkt = _M_bucket_index(__code); 24952: return iterator(_M_find_node(__bkt, __k, __code)); 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: find(const key_type& __k) const 24952: -> const_iterator 24952: { 24952: if (size() <= __small_size_threshold()) 24952: { 24952: for (auto __it = begin(); __it != end(); ++__it) 24952: if (this->_M_key_equals(__k, *__it._M_cur)) 24952: return __it; 24952: return end(); 24952: } 24952: 24952: __hash_code __code = this->_M_hash_code(__k); 24952: std::size_t __bkt = _M_bucket_index(__code); 24952: return const_iterator(_M_find_node(__bkt, __k, __code)); 24952: } 24952: # 1739 "/usr/include/c++/13/bits/hashtable.h" 3 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: count(const key_type& __k) const 24952: -> size_type 24952: { 24952: auto __it = find(__k); 24952: if (!__it._M_cur) 24952: return 0; 24952: 24952: if (__unique_keys::value) 24952: return 1; 24952: 24952: 24952: 24952: 24952: size_type __result = 1; 24952: for (auto __ref = __it++; 24952: __it._M_cur && this->_M_node_equals(*__ref._M_cur, *__it._M_cur); 24952: ++__it) 24952: ++__result; 24952: 24952: return __result; 24952: } 24952: # 1800 "/usr/include/c++/13/bits/hashtable.h" 3 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: equal_range(const key_type& __k) 24952: -> pair 24952: { 24952: auto __ite = find(__k); 24952: if (!__ite._M_cur) 24952: return { __ite, __ite }; 24952: 24952: auto __beg = __ite++; 24952: if (__unique_keys::value) 24952: return { __beg, __ite }; 24952: 24952: 24952: 24952: 24952: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 24952: ++__ite; 24952: 24952: return { __beg, __ite }; 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: equal_range(const key_type& __k) const 24952: -> pair 24952: { 24952: auto __ite = find(__k); 24952: if (!__ite._M_cur) 24952: return { __ite, __ite }; 24952: 24952: auto __beg = __ite++; 24952: if (__unique_keys::value) 24952: return { __beg, __ite }; 24952: 24952: 24952: 24952: 24952: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 24952: ++__ite; 24952: 24952: return { __beg, __ite }; 24952: } 24952: # 1914 "/usr/include/c++/13/bits/hashtable.h" 3 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_find_before_node(const key_type& __k) 24952: -> __node_base_ptr 24952: { 24952: __node_base_ptr __prev_p = &_M_before_begin; 24952: if (!__prev_p->_M_nxt) 24952: return nullptr; 24952: 24952: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt); 24952: __p != nullptr; 24952: __p = __p->_M_next()) 24952: { 24952: if (this->_M_key_equals(__k, *__p)) 24952: return __prev_p; 24952: 24952: __prev_p = __p; 24952: } 24952: 24952: return nullptr; 24952: } 24952: 24952: 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_find_before_node(size_type __bkt, const key_type& __k, 24952: __hash_code __code) const 24952: -> __node_base_ptr 24952: { 24952: __node_base_ptr __prev_p = _M_buckets[__bkt]; 24952: if (!__prev_p) 24952: return nullptr; 24952: 24952: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 24952: __p = __p->_M_next()) 24952: { 24952: if (this->_M_equals(__k, __code, *__p)) 24952: return __prev_p; 24952: 24952: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 24952: break; 24952: __prev_p = __p; 24952: } 24952: 24952: return nullptr; 24952: } 24952: 24952: template 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_find_before_node_tr(size_type __bkt, const _Kt& __k, 24952: __hash_code __code) const 24952: -> __node_base_ptr 24952: { 24952: __node_base_ptr __prev_p = _M_buckets[__bkt]; 24952: if (!__prev_p) 24952: return nullptr; 24952: 24952: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 24952: __p = __p->_M_next()) 24952: { 24952: if (this->_M_equals_tr(__k, __code, *__p)) 24952: return __prev_p; 24952: 24952: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 24952: break; 24952: __prev_p = __p; 24952: } 24952: 24952: return nullptr; 24952: } 24952: 24952: template 24952: void 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_insert_bucket_begin(size_type __bkt, __node_ptr __node) 24952: { 24952: if (_M_buckets[__bkt]) 24952: { 24952: 24952: 24952: __node->_M_nxt = _M_buckets[__bkt]->_M_nxt; 24952: _M_buckets[__bkt]->_M_nxt = __node; 24952: } 24952: else 24952: { 24952: 24952: 24952: 24952: __node->_M_nxt = _M_before_begin._M_nxt; 24952: _M_before_begin._M_nxt = __node; 24952: 24952: if (__node->_M_nxt) 24952: 24952: 24952: _M_buckets[_M_bucket_index(*__node->_M_next())] = __node; 24952: 24952: _M_buckets[__bkt] = &_M_before_begin; 24952: } 24952: } 24952: 24952: template 24952: void 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next, 24952: size_type __next_bkt) 24952: { 24952: if (!__next || __next_bkt != __bkt) 24952: { 24952: 24952: 24952: if (__next) 24952: _M_buckets[__next_bkt] = _M_buckets[__bkt]; 24952: 24952: 24952: if (&_M_before_begin == _M_buckets[__bkt]) 24952: _M_before_begin._M_nxt = __next; 24952: _M_buckets[__bkt] = nullptr; 24952: } 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_get_previous_node(size_type __bkt, __node_ptr __n) 24952: -> __node_base_ptr 24952: { 24952: __node_base_ptr __prev_n = _M_buckets[__bkt]; 24952: while (__prev_n->_M_nxt != __n) 24952: __prev_n = __prev_n->_M_nxt; 24952: return __prev_n; 24952: } 24952: 24952: template 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_emplace(true_type , _Args&&... __args) 24952: -> pair 24952: { 24952: 24952: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 24952: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 24952: if (size() <= __small_size_threshold()) 24952: { 24952: for (auto __it = begin(); __it != end(); ++__it) 24952: if (this->_M_key_equals(__k, *__it._M_cur)) 24952: 24952: return { __it, false }; 24952: } 24952: 24952: __hash_code __code = this->_M_hash_code(__k); 24952: size_type __bkt = _M_bucket_index(__code); 24952: if (size() > __small_size_threshold()) 24952: if (__node_ptr __p = _M_find_node(__bkt, __k, __code)) 24952: 24952: return { iterator(__p), false }; 24952: 24952: 24952: auto __pos = _M_insert_unique_node(__bkt, __code, __node._M_node); 24952: __node._M_node = nullptr; 24952: return { __pos, true }; 24952: } 24952: 24952: template 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_emplace(const_iterator __hint, false_type , 24952: _Args&&... __args) 24952: -> iterator 24952: { 24952: 24952: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 24952: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 24952: 24952: auto __res = this->_M_compute_hash_code(__hint, __k); 24952: auto __pos 24952: = _M_insert_multi_node(__res.first._M_cur, __res.second, 24952: __node._M_node); 24952: __node._M_node = nullptr; 24952: return __pos; 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_compute_hash_code(const_iterator __hint, const key_type& __k) const 24952: -> pair 24952: { 24952: if (size() <= __small_size_threshold()) 24952: { 24952: if (__hint != cend()) 24952: { 24952: for (auto __it = __hint; __it != cend(); ++__it) 24952: if (this->_M_key_equals(__k, *__it._M_cur)) 24952: return { __it, this->_M_hash_code(*__it._M_cur) }; 24952: } 24952: 24952: for (auto __it = cbegin(); __it != __hint; ++__it) 24952: if (this->_M_key_equals(__k, *__it._M_cur)) 24952: return { __it, this->_M_hash_code(*__it._M_cur) }; 24952: } 24952: 24952: return { __hint, this->_M_hash_code(__k) }; 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_insert_unique_node(size_type __bkt, __hash_code __code, 24952: __node_ptr __node, size_type __n_elt) 24952: -> iterator 24952: { 24952: const __rehash_state& __saved_state = _M_rehash_policy._M_state(); 24952: std::pair __do_rehash 24952: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 24952: __n_elt); 24952: 24952: if (__do_rehash.first) 24952: { 24952: _M_rehash(__do_rehash.second, __saved_state); 24952: __bkt = _M_bucket_index(__code); 24952: } 24952: 24952: this->_M_store_code(*__node, __code); 24952: 24952: 24952: _M_insert_bucket_begin(__bkt, __node); 24952: ++_M_element_count; 24952: return iterator(__node); 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_insert_multi_node(__node_ptr __hint, 24952: __hash_code __code, __node_ptr __node) 24952: -> iterator 24952: { 24952: const __rehash_state& __saved_state = _M_rehash_policy._M_state(); 24952: std::pair __do_rehash 24952: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 1); 24952: 24952: if (__do_rehash.first) 24952: _M_rehash(__do_rehash.second, __saved_state); 24952: 24952: this->_M_store_code(*__node, __code); 24952: const key_type& __k = _ExtractKey{}(__node->_M_v()); 24952: size_type __bkt = _M_bucket_index(__code); 24952: 24952: 24952: 24952: __node_base_ptr __prev 24952: = __builtin_expect(__hint != nullptr, false) 24952: && this->_M_equals(__k, __code, *__hint) 24952: ? __hint 24952: : _M_find_before_node(__bkt, __k, __code); 24952: 24952: if (__prev) 24952: { 24952: 24952: __node->_M_nxt = __prev->_M_nxt; 24952: __prev->_M_nxt = __node; 24952: if (__builtin_expect(__prev == __hint, false)) 24952: 24952: 24952: if (__node->_M_nxt 24952: && !this->_M_equals(__k, __code, *__node->_M_next())) 24952: { 24952: size_type __next_bkt = _M_bucket_index(*__node->_M_next()); 24952: if (__next_bkt != __bkt) 24952: _M_buckets[__next_bkt] = __node; 24952: } 24952: } 24952: else 24952: 24952: 24952: 24952: _M_insert_bucket_begin(__bkt, __node); 24952: ++_M_element_count; 24952: return iterator(__node); 24952: } 24952: 24952: 24952: template 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_insert_unique(_Kt&& __k, _Arg&& __v, 24952: const _NodeGenerator& __node_gen) 24952: -> pair 24952: { 24952: if (size() <= __small_size_threshold()) 24952: for (auto __it = begin(); __it != end(); ++__it) 24952: if (this->_M_key_equals_tr(__k, *__it._M_cur)) 24952: return { __it, false }; 24952: 24952: __hash_code __code = this->_M_hash_code_tr(__k); 24952: size_type __bkt = _M_bucket_index(__code); 24952: 24952: if (size() > __small_size_threshold()) 24952: if (__node_ptr __node = _M_find_node_tr(__bkt, __k, __code)) 24952: return { iterator(__node), false }; 24952: 24952: _Scoped_node __node { 24952: __node_builder_t::_S_build(std::forward<_Kt>(__k), 24952: std::forward<_Arg>(__v), 24952: __node_gen), 24952: this 24952: }; 24952: auto __pos 24952: = _M_insert_unique_node(__bkt, __code, __node._M_node); 24952: __node._M_node = nullptr; 24952: return { __pos, true }; 24952: } 24952: 24952: 24952: template 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_insert(const_iterator __hint, _Arg&& __v, 24952: const _NodeGenerator& __node_gen, 24952: false_type ) 24952: -> iterator 24952: { 24952: 24952: _Scoped_node __node{ __node_gen(std::forward<_Arg>(__v)), this }; 24952: 24952: 24952: auto __res = this->_M_compute_hash_code( 24952: __hint, _ExtractKey{}(__node._M_node->_M_v())); 24952: 24952: auto __pos 24952: = _M_insert_multi_node(__res.first._M_cur, __res.second, 24952: __node._M_node); 24952: __node._M_node = nullptr; 24952: return __pos; 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: erase(const_iterator __it) 24952: -> iterator 24952: { 24952: __node_ptr __n = __it._M_cur; 24952: std::size_t __bkt = _M_bucket_index(*__n); 24952: 24952: 24952: 24952: 24952: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 24952: return _M_erase(__bkt, __prev_n, __n); 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n) 24952: -> iterator 24952: { 24952: if (__prev_n == _M_buckets[__bkt]) 24952: _M_remove_bucket_begin(__bkt, __n->_M_next(), 24952: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 24952: else if (__n->_M_nxt) 24952: { 24952: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 24952: if (__next_bkt != __bkt) 24952: _M_buckets[__next_bkt] = __prev_n; 24952: } 24952: 24952: __prev_n->_M_nxt = __n->_M_nxt; 24952: iterator __result(__n->_M_next()); 24952: this->_M_deallocate_node(__n); 24952: --_M_element_count; 24952: 24952: return __result; 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_erase(true_type , const key_type& __k) 24952: -> size_type 24952: { 24952: __node_base_ptr __prev_n; 24952: __node_ptr __n; 24952: std::size_t __bkt; 24952: if (size() <= __small_size_threshold()) 24952: { 24952: __prev_n = _M_find_before_node(__k); 24952: if (!__prev_n) 24952: return 0; 24952: 24952: 24952: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 24952: __bkt = _M_bucket_index(*__n); 24952: } 24952: else 24952: { 24952: __hash_code __code = this->_M_hash_code(__k); 24952: __bkt = _M_bucket_index(__code); 24952: 24952: 24952: __prev_n = _M_find_before_node(__bkt, __k, __code); 24952: if (!__prev_n) 24952: return 0; 24952: 24952: 24952: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 24952: } 24952: 24952: _M_erase(__bkt, __prev_n, __n); 24952: return 1; 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_erase(false_type , const key_type& __k) 24952: -> size_type 24952: { 24952: std::size_t __bkt; 24952: __node_base_ptr __prev_n; 24952: __node_ptr __n; 24952: if (size() <= __small_size_threshold()) 24952: { 24952: __prev_n = _M_find_before_node(__k); 24952: if (!__prev_n) 24952: return 0; 24952: 24952: 24952: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 24952: __bkt = _M_bucket_index(*__n); 24952: } 24952: else 24952: { 24952: __hash_code __code = this->_M_hash_code(__k); 24952: __bkt = _M_bucket_index(__code); 24952: 24952: 24952: __prev_n = _M_find_before_node(__bkt, __k, __code); 24952: if (!__prev_n) 24952: return 0; 24952: 24952: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __node_ptr __n_last = __n->_M_next(); 24952: while (__n_last && this->_M_node_equals(*__n, *__n_last)) 24952: __n_last = __n_last->_M_next(); 24952: 24952: std::size_t __n_last_bkt = __n_last ? _M_bucket_index(*__n_last) : __bkt; 24952: 24952: 24952: size_type __result = 0; 24952: do 24952: { 24952: __node_ptr __p = __n->_M_next(); 24952: this->_M_deallocate_node(__n); 24952: __n = __p; 24952: ++__result; 24952: } 24952: while (__n != __n_last); 24952: 24952: _M_element_count -= __result; 24952: if (__prev_n == _M_buckets[__bkt]) 24952: _M_remove_bucket_begin(__bkt, __n_last, __n_last_bkt); 24952: else if (__n_last_bkt != __bkt) 24952: _M_buckets[__n_last_bkt] = __prev_n; 24952: __prev_n->_M_nxt = __n_last; 24952: return __result; 24952: } 24952: 24952: template 24952: auto 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: erase(const_iterator __first, const_iterator __last) 24952: -> iterator 24952: { 24952: __node_ptr __n = __first._M_cur; 24952: __node_ptr __last_n = __last._M_cur; 24952: if (__n == __last_n) 24952: return iterator(__n); 24952: 24952: std::size_t __bkt = _M_bucket_index(*__n); 24952: 24952: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 24952: bool __is_bucket_begin = __n == _M_bucket_begin(__bkt); 24952: std::size_t __n_bkt = __bkt; 24952: for (;;) 24952: { 24952: do 24952: { 24952: __node_ptr __tmp = __n; 24952: __n = __n->_M_next(); 24952: this->_M_deallocate_node(__tmp); 24952: --_M_element_count; 24952: if (!__n) 24952: break; 24952: __n_bkt = _M_bucket_index(*__n); 24952: } 24952: while (__n != __last_n && __n_bkt == __bkt); 24952: if (__is_bucket_begin) 24952: _M_remove_bucket_begin(__bkt, __n, __n_bkt); 24952: if (__n == __last_n) 24952: break; 24952: __is_bucket_begin = true; 24952: __bkt = __n_bkt; 24952: } 24952: 24952: if (__n && (__n_bkt != __bkt || __is_bucket_begin)) 24952: _M_buckets[__n_bkt] = __prev_n; 24952: __prev_n->_M_nxt = __n; 24952: return iterator(__n); 24952: } 24952: 24952: template 24952: void 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: clear() noexcept 24952: { 24952: this->_M_deallocate_nodes(_M_begin()); 24952: __builtin_memset(_M_buckets, 0, 24952: _M_bucket_count * sizeof(__node_base_ptr)); 24952: _M_element_count = 0; 24952: _M_before_begin._M_nxt = nullptr; 24952: } 24952: 24952: template 24952: void 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: rehash(size_type __bkt_count) 24952: { 24952: const __rehash_state& __saved_state = _M_rehash_policy._M_state(); 24952: __bkt_count 24952: = std::max(_M_rehash_policy._M_bkt_for_elements(_M_element_count + 1), 24952: __bkt_count); 24952: __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count); 24952: 24952: if (__bkt_count != _M_bucket_count) 24952: _M_rehash(__bkt_count, __saved_state); 24952: else 24952: 24952: 24952: _M_rehash_policy._M_reset(__saved_state); 24952: } 24952: 24952: template 24952: void 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_rehash(size_type __bkt_count, const __rehash_state& __state) 24952: { 24952: try 24952: { 24952: _M_rehash_aux(__bkt_count, __unique_keys{}); 24952: } 24952: catch(...) 24952: { 24952: 24952: 24952: _M_rehash_policy._M_reset(__state); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: template 24952: void 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_rehash_aux(size_type __bkt_count, true_type ) 24952: { 24952: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 24952: __node_ptr __p = _M_begin(); 24952: _M_before_begin._M_nxt = nullptr; 24952: std::size_t __bbegin_bkt = 0; 24952: while (__p) 24952: { 24952: __node_ptr __next = __p->_M_next(); 24952: std::size_t __bkt 24952: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 24952: if (!__new_buckets[__bkt]) 24952: { 24952: __p->_M_nxt = _M_before_begin._M_nxt; 24952: _M_before_begin._M_nxt = __p; 24952: __new_buckets[__bkt] = &_M_before_begin; 24952: if (__p->_M_nxt) 24952: __new_buckets[__bbegin_bkt] = __p; 24952: __bbegin_bkt = __bkt; 24952: } 24952: else 24952: { 24952: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 24952: __new_buckets[__bkt]->_M_nxt = __p; 24952: } 24952: 24952: __p = __next; 24952: } 24952: 24952: _M_deallocate_buckets(); 24952: _M_bucket_count = __bkt_count; 24952: _M_buckets = __new_buckets; 24952: } 24952: 24952: 24952: 24952: template 24952: void 24952: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 24952: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 24952: _M_rehash_aux(size_type __bkt_count, false_type ) 24952: { 24952: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 24952: __node_ptr __p = _M_begin(); 24952: _M_before_begin._M_nxt = nullptr; 24952: std::size_t __bbegin_bkt = 0; 24952: std::size_t __prev_bkt = 0; 24952: __node_ptr __prev_p = nullptr; 24952: bool __check_bucket = false; 24952: 24952: while (__p) 24952: { 24952: __node_ptr __next = __p->_M_next(); 24952: std::size_t __bkt 24952: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 24952: 24952: if (__prev_p && __prev_bkt == __bkt) 24952: { 24952: 24952: 24952: 24952: __p->_M_nxt = __prev_p->_M_nxt; 24952: __prev_p->_M_nxt = __p; 24952: 24952: 24952: 24952: 24952: 24952: 24952: __check_bucket = true; 24952: } 24952: else 24952: { 24952: if (__check_bucket) 24952: { 24952: 24952: 24952: if (__prev_p->_M_nxt) 24952: { 24952: std::size_t __next_bkt 24952: = __hash_code_base::_M_bucket_index( 24952: *__prev_p->_M_next(), __bkt_count); 24952: if (__next_bkt != __prev_bkt) 24952: __new_buckets[__next_bkt] = __prev_p; 24952: } 24952: __check_bucket = false; 24952: } 24952: 24952: if (!__new_buckets[__bkt]) 24952: { 24952: __p->_M_nxt = _M_before_begin._M_nxt; 24952: _M_before_begin._M_nxt = __p; 24952: __new_buckets[__bkt] = &_M_before_begin; 24952: if (__p->_M_nxt) 24952: __new_buckets[__bbegin_bkt] = __p; 24952: __bbegin_bkt = __bkt; 24952: } 24952: else 24952: { 24952: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 24952: __new_buckets[__bkt]->_M_nxt = __p; 24952: } 24952: } 24952: __prev_p = __p; 24952: __prev_bkt = __bkt; 24952: __p = __next; 24952: } 24952: 24952: if (__check_bucket && __prev_p->_M_nxt) 24952: { 24952: std::size_t __next_bkt 24952: = __hash_code_base::_M_bucket_index(*__prev_p->_M_next(), 24952: __bkt_count); 24952: if (__next_bkt != __prev_bkt) 24952: __new_buckets[__next_bkt] = __prev_p; 24952: } 24952: 24952: _M_deallocate_buckets(); 24952: _M_bucket_count = __bkt_count; 24952: _M_buckets = __new_buckets; 24952: } 24952: 24952: 24952: template class _Hash_merge_helper { }; 24952: 24952: 24952: 24952: 24952: template 24952: using _RequireNotAllocatorOrIntegral 24952: = __enable_if_t, __is_allocator<_Hash>>::value>; 24952: 24952: 24952: 24952: 24952: } 24952: # 34 "/usr/include/c++/13/bits/unordered_map.h" 2 3 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: template 24952: using __umap_traits = __detail::_Hashtable_traits<_Cache, false, true>; 24952: 24952: template, 24952: typename _Pred = std::equal_to<_Key>, 24952: typename _Alloc = std::allocator >, 24952: typename _Tr = __umap_traits<__cache_default<_Key, _Hash>::value>> 24952: using __umap_hashtable = _Hashtable<_Key, std::pair, 24952: _Alloc, __detail::_Select1st, 24952: _Pred, _Hash, 24952: __detail::_Mod_range_hashing, 24952: __detail::_Default_ranged_hash, 24952: __detail::_Prime_rehash_policy, _Tr>; 24952: 24952: 24952: template 24952: using __ummap_traits = __detail::_Hashtable_traits<_Cache, false, false>; 24952: 24952: template, 24952: typename _Pred = std::equal_to<_Key>, 24952: typename _Alloc = std::allocator >, 24952: typename _Tr = __ummap_traits<__cache_default<_Key, _Hash>::value>> 24952: using __ummap_hashtable = _Hashtable<_Key, std::pair, 24952: _Alloc, __detail::_Select1st, 24952: _Pred, _Hash, 24952: __detail::_Mod_range_hashing, 24952: __detail::_Default_ranged_hash, 24952: __detail::_Prime_rehash_policy, _Tr>; 24952: 24952: template 24952: class unordered_multimap; 24952: # 105 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template, 24952: typename _Pred = equal_to<_Key>, 24952: typename _Alloc = allocator>> 24952: class unordered_map 24952: { 24952: typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 24952: _Hashtable _M_h; 24952: 24952: public: 24952: 24952: 24952: 24952: typedef typename _Hashtable::key_type key_type; 24952: typedef typename _Hashtable::value_type value_type; 24952: typedef typename _Hashtable::mapped_type mapped_type; 24952: typedef typename _Hashtable::hasher hasher; 24952: typedef typename _Hashtable::key_equal key_equal; 24952: typedef typename _Hashtable::allocator_type allocator_type; 24952: 24952: 24952: 24952: 24952: typedef typename _Hashtable::pointer pointer; 24952: typedef typename _Hashtable::const_pointer const_pointer; 24952: typedef typename _Hashtable::reference reference; 24952: typedef typename _Hashtable::const_reference const_reference; 24952: typedef typename _Hashtable::iterator iterator; 24952: typedef typename _Hashtable::const_iterator const_iterator; 24952: typedef typename _Hashtable::local_iterator local_iterator; 24952: typedef typename _Hashtable::const_local_iterator const_local_iterator; 24952: typedef typename _Hashtable::size_type size_type; 24952: typedef typename _Hashtable::difference_type difference_type; 24952: 24952: 24952: 24952: using node_type = typename _Hashtable::node_type; 24952: using insert_return_type = typename _Hashtable::insert_return_type; 24952: 24952: 24952: 24952: 24952: 24952: unordered_map() = default; 24952: # 157 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: explicit 24952: unordered_map(size_type __n, 24952: const hasher& __hf = hasher(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_h(__n, __hf, __eql, __a) 24952: { } 24952: # 178 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template 24952: unordered_map(_InputIterator __first, _InputIterator __last, 24952: size_type __n = 0, 24952: const hasher& __hf = hasher(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_h(__first, __last, __n, __hf, __eql, __a) 24952: { } 24952: 24952: 24952: unordered_map(const unordered_map&) = default; 24952: 24952: 24952: unordered_map(unordered_map&&) = default; 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: unordered_map(const allocator_type& __a) 24952: : _M_h(__a) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: unordered_map(const unordered_map& __umap, 24952: const allocator_type& __a) 24952: : _M_h(__umap._M_h, __a) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: unordered_map(unordered_map&& __umap, 24952: const allocator_type& __a) 24952: noexcept( noexcept(_Hashtable(std::move(__umap._M_h), __a)) ) 24952: : _M_h(std::move(__umap._M_h), __a) 24952: { } 24952: # 234 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: unordered_map(initializer_list __l, 24952: size_type __n = 0, 24952: const hasher& __hf = hasher(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_h(__l, __n, __hf, __eql, __a) 24952: { } 24952: 24952: unordered_map(size_type __n, const allocator_type& __a) 24952: : unordered_map(__n, hasher(), key_equal(), __a) 24952: { } 24952: 24952: unordered_map(size_type __n, const hasher& __hf, 24952: const allocator_type& __a) 24952: : unordered_map(__n, __hf, key_equal(), __a) 24952: { } 24952: 24952: template 24952: unordered_map(_InputIterator __first, _InputIterator __last, 24952: size_type __n, 24952: const allocator_type& __a) 24952: : unordered_map(__first, __last, __n, hasher(), key_equal(), __a) 24952: { } 24952: 24952: template 24952: unordered_map(_InputIterator __first, _InputIterator __last, 24952: size_type __n, const hasher& __hf, 24952: const allocator_type& __a) 24952: : unordered_map(__first, __last, __n, __hf, key_equal(), __a) 24952: { } 24952: 24952: unordered_map(initializer_list __l, 24952: size_type __n, 24952: const allocator_type& __a) 24952: : unordered_map(__l, __n, hasher(), key_equal(), __a) 24952: { } 24952: 24952: unordered_map(initializer_list __l, 24952: size_type __n, const hasher& __hf, 24952: const allocator_type& __a) 24952: : unordered_map(__l, __n, __hf, key_equal(), __a) 24952: { } 24952: 24952: 24952: unordered_map& 24952: operator=(const unordered_map&) = default; 24952: 24952: 24952: unordered_map& 24952: operator=(unordered_map&&) = default; 24952: # 296 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: unordered_map& 24952: operator=(initializer_list __l) 24952: { 24952: _M_h = __l; 24952: return *this; 24952: } 24952: 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return _M_h.get_allocator(); } 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] bool 24952: empty() const noexcept 24952: { return _M_h.empty(); } 24952: 24952: 24952: size_type 24952: size() const noexcept 24952: { return _M_h.size(); } 24952: 24952: 24952: size_type 24952: max_size() const noexcept 24952: { return _M_h.max_size(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: begin() noexcept 24952: { return _M_h.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: begin() const noexcept 24952: { return _M_h.begin(); } 24952: 24952: const_iterator 24952: cbegin() const noexcept 24952: { return _M_h.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: end() noexcept 24952: { return _M_h.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: end() const noexcept 24952: { return _M_h.end(); } 24952: 24952: const_iterator 24952: cend() const noexcept 24952: { return _M_h.end(); } 24952: # 393 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template 24952: std::pair 24952: emplace(_Args&&... __args) 24952: { return _M_h.emplace(std::forward<_Args>(__args)...); } 24952: # 424 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template 24952: iterator 24952: emplace_hint(const_iterator __pos, _Args&&... __args) 24952: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 24952: 24952: 24952: 24952: node_type 24952: extract(const_iterator __pos) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 24952: return _M_h.extract(__pos); 24952: } 24952: 24952: 24952: node_type 24952: extract(const key_type& __key) 24952: { return _M_h.extract(__key); } 24952: 24952: 24952: insert_return_type 24952: insert(node_type&& __nh) 24952: { return _M_h._M_reinsert_node(std::move(__nh)); } 24952: 24952: 24952: iterator 24952: insert(const_iterator, node_type&& __nh) 24952: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 24952: # 476 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template 24952: pair 24952: try_emplace(const key_type& __k, _Args&&... __args) 24952: { 24952: return _M_h.try_emplace(cend(), __k, std::forward<_Args>(__args)...); 24952: } 24952: 24952: 24952: template 24952: pair 24952: try_emplace(key_type&& __k, _Args&&... __args) 24952: { 24952: return _M_h.try_emplace(cend(), std::move(__k), 24952: std::forward<_Args>(__args)...); 24952: } 24952: # 520 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template 24952: iterator 24952: try_emplace(const_iterator __hint, const key_type& __k, 24952: _Args&&... __args) 24952: { 24952: return _M_h.try_emplace(__hint, __k, 24952: std::forward<_Args>(__args)...).first; 24952: } 24952: 24952: 24952: template 24952: iterator 24952: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 24952: { 24952: return _M_h.try_emplace(__hint, std::move(__k), 24952: std::forward<_Args>(__args)...).first; 24952: } 24952: # 557 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: std::pair 24952: insert(const value_type& __x) 24952: { return _M_h.insert(__x); } 24952: 24952: 24952: 24952: std::pair 24952: insert(value_type&& __x) 24952: { return _M_h.insert(std::move(__x)); } 24952: 24952: template 24952: __enable_if_t::value, 24952: pair> 24952: insert(_Pair&& __x) 24952: { return _M_h.emplace(std::forward<_Pair>(__x)); } 24952: # 596 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: iterator 24952: insert(const_iterator __hint, const value_type& __x) 24952: { return _M_h.insert(__hint, __x); } 24952: 24952: 24952: 24952: iterator 24952: insert(const_iterator __hint, value_type&& __x) 24952: { return _M_h.insert(__hint, std::move(__x)); } 24952: 24952: template 24952: __enable_if_t::value, iterator> 24952: insert(const_iterator __hint, _Pair&& __x) 24952: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 24952: # 621 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template 24952: void 24952: insert(_InputIterator __first, _InputIterator __last) 24952: { _M_h.insert(__first, __last); } 24952: # 633 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: void 24952: insert(initializer_list __l) 24952: { _M_h.insert(__l); } 24952: # 659 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template 24952: pair 24952: insert_or_assign(const key_type& __k, _Obj&& __obj) 24952: { 24952: auto __ret = _M_h.try_emplace(cend(), __k, 24952: std::forward<_Obj>(__obj)); 24952: if (!__ret.second) 24952: __ret.first->second = std::forward<_Obj>(__obj); 24952: return __ret; 24952: } 24952: 24952: 24952: template 24952: pair 24952: insert_or_assign(key_type&& __k, _Obj&& __obj) 24952: { 24952: auto __ret = _M_h.try_emplace(cend(), std::move(__k), 24952: std::forward<_Obj>(__obj)); 24952: if (!__ret.second) 24952: __ret.first->second = std::forward<_Obj>(__obj); 24952: return __ret; 24952: } 24952: # 708 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template 24952: iterator 24952: insert_or_assign(const_iterator __hint, const key_type& __k, 24952: _Obj&& __obj) 24952: { 24952: auto __ret = _M_h.try_emplace(__hint, __k, std::forward<_Obj>(__obj)); 24952: if (!__ret.second) 24952: __ret.first->second = std::forward<_Obj>(__obj); 24952: return __ret.first; 24952: } 24952: 24952: 24952: template 24952: iterator 24952: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 24952: { 24952: auto __ret = _M_h.try_emplace(__hint, std::move(__k), 24952: std::forward<_Obj>(__obj)); 24952: if (!__ret.second) 24952: __ret.first->second = std::forward<_Obj>(__obj); 24952: return __ret.first; 24952: } 24952: # 746 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: iterator 24952: erase(const_iterator __position) 24952: { return _M_h.erase(__position); } 24952: 24952: 24952: iterator 24952: erase(iterator __position) 24952: { return _M_h.erase(__position); } 24952: # 768 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: size_type 24952: erase(const key_type& __x) 24952: { return _M_h.erase(__x); } 24952: # 786 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: iterator 24952: erase(const_iterator __first, const_iterator __last) 24952: { return _M_h.erase(__first, __last); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: clear() noexcept 24952: { _M_h.clear(); } 24952: # 810 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: void 24952: swap(unordered_map& __x) 24952: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 24952: { _M_h.swap(__x._M_h); } 24952: 24952: 24952: template 24952: friend class std::_Hash_merge_helper; 24952: 24952: template 24952: void 24952: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 24952: { 24952: using _Merge_helper = _Hash_merge_helper; 24952: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 24952: { merge(__source); } 24952: 24952: template 24952: void 24952: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 24952: { 24952: using _Merge_helper = _Hash_merge_helper; 24952: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 24952: { merge(__source); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: hasher 24952: hash_function() const 24952: { return _M_h.hash_function(); } 24952: 24952: 24952: 24952: key_equal 24952: key_eq() const 24952: { return _M_h.key_eq(); } 24952: # 874 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: iterator 24952: find(const key_type& __x) 24952: { return _M_h.find(__x); } 24952: # 885 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: const_iterator 24952: find(const key_type& __x) const 24952: { return _M_h.find(__x); } 24952: # 907 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: size_type 24952: count(const key_type& __x) const 24952: { return _M_h.count(__x); } 24952: # 947 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) 24952: { return _M_h.equal_range(__x); } 24952: # 959 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) const 24952: { return _M_h.equal_range(__x); } 24952: # 985 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: mapped_type& 24952: operator[](const key_type& __k) 24952: { return _M_h[__k]; } 24952: 24952: mapped_type& 24952: operator[](key_type&& __k) 24952: { return _M_h[std::move(__k)]; } 24952: # 1002 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: mapped_type& 24952: at(const key_type& __k) 24952: { return _M_h.at(__k); } 24952: 24952: const mapped_type& 24952: at(const key_type& __k) const 24952: { return _M_h.at(__k); } 24952: 24952: 24952: 24952: 24952: 24952: size_type 24952: bucket_count() const noexcept 24952: { return _M_h.bucket_count(); } 24952: 24952: 24952: size_type 24952: max_bucket_count() const noexcept 24952: { return _M_h.max_bucket_count(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_type 24952: bucket_size(size_type __n) const 24952: { return _M_h.bucket_size(__n); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_type 24952: bucket(const key_type& __key) const 24952: { return _M_h.bucket(__key); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: local_iterator 24952: begin(size_type __n) 24952: { return _M_h.begin(__n); } 24952: # 1058 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: const_local_iterator 24952: begin(size_type __n) const 24952: { return _M_h.begin(__n); } 24952: 24952: const_local_iterator 24952: cbegin(size_type __n) const 24952: { return _M_h.cbegin(__n); } 24952: # 1073 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: local_iterator 24952: end(size_type __n) 24952: { return _M_h.end(__n); } 24952: # 1084 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: const_local_iterator 24952: end(size_type __n) const 24952: { return _M_h.end(__n); } 24952: 24952: const_local_iterator 24952: cend(size_type __n) const 24952: { return _M_h.cend(__n); } 24952: 24952: 24952: 24952: 24952: 24952: float 24952: load_factor() const noexcept 24952: { return _M_h.load_factor(); } 24952: 24952: 24952: 24952: float 24952: max_load_factor() const noexcept 24952: { return _M_h.max_load_factor(); } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: max_load_factor(float __z) 24952: { _M_h.max_load_factor(__z); } 24952: # 1121 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: void 24952: rehash(size_type __n) 24952: { _M_h.rehash(__n); } 24952: # 1132 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: void 24952: reserve(size_type __n) 24952: { _M_h.reserve(__n); } 24952: 24952: template 24952: friend bool 24952: operator==(const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, 24952: const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&); 24952: }; 24952: 24952: 24952: 24952: template>, 24952: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 24952: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 24952: typename = _RequireInputIter<_InputIterator>, 24952: typename = _RequireNotAllocatorOrIntegral<_Hash>, 24952: typename = _RequireNotAllocator<_Pred>, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_map(_InputIterator, _InputIterator, 24952: typename unordered_map::size_type = {}, 24952: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 24952: -> unordered_map<__iter_key_t<_InputIterator>, 24952: __iter_val_t<_InputIterator>, 24952: _Hash, _Pred, _Allocator>; 24952: 24952: template, 24952: typename _Pred = equal_to<_Key>, 24952: typename _Allocator = allocator>, 24952: typename = _RequireNotAllocatorOrIntegral<_Hash>, 24952: typename = _RequireNotAllocator<_Pred>, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_map(initializer_list>, 24952: typename unordered_map::size_type = {}, 24952: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 24952: -> unordered_map<_Key, _Tp, _Hash, _Pred, _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_map(_InputIterator, _InputIterator, 24952: typename unordered_map::size_type, _Allocator) 24952: -> unordered_map<__iter_key_t<_InputIterator>, 24952: __iter_val_t<_InputIterator>, 24952: hash<__iter_key_t<_InputIterator>>, 24952: equal_to<__iter_key_t<_InputIterator>>, 24952: _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_map(_InputIterator, _InputIterator, _Allocator) 24952: -> unordered_map<__iter_key_t<_InputIterator>, 24952: __iter_val_t<_InputIterator>, 24952: hash<__iter_key_t<_InputIterator>>, 24952: equal_to<__iter_key_t<_InputIterator>>, 24952: _Allocator>; 24952: 24952: template, 24952: typename = _RequireNotAllocatorOrIntegral<_Hash>, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_map(_InputIterator, _InputIterator, 24952: typename unordered_map::size_type, 24952: _Hash, _Allocator) 24952: -> unordered_map<__iter_key_t<_InputIterator>, 24952: __iter_val_t<_InputIterator>, _Hash, 24952: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 24952: 24952: template> 24952: unordered_map(initializer_list>, 24952: typename unordered_map::size_type, 24952: _Allocator) 24952: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 24952: 24952: template> 24952: unordered_map(initializer_list>, _Allocator) 24952: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_map(initializer_list>, 24952: typename unordered_map::size_type, 24952: _Hash, _Allocator) 24952: -> unordered_map<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 24952: # 1250 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template, 24952: typename _Pred = equal_to<_Key>, 24952: typename _Alloc = allocator>> 24952: class unordered_multimap 24952: { 24952: typedef __ummap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 24952: _Hashtable _M_h; 24952: 24952: public: 24952: 24952: 24952: 24952: typedef typename _Hashtable::key_type key_type; 24952: typedef typename _Hashtable::value_type value_type; 24952: typedef typename _Hashtable::mapped_type mapped_type; 24952: typedef typename _Hashtable::hasher hasher; 24952: typedef typename _Hashtable::key_equal key_equal; 24952: typedef typename _Hashtable::allocator_type allocator_type; 24952: 24952: 24952: 24952: 24952: typedef typename _Hashtable::pointer pointer; 24952: typedef typename _Hashtable::const_pointer const_pointer; 24952: typedef typename _Hashtable::reference reference; 24952: typedef typename _Hashtable::const_reference const_reference; 24952: typedef typename _Hashtable::iterator iterator; 24952: typedef typename _Hashtable::const_iterator const_iterator; 24952: typedef typename _Hashtable::local_iterator local_iterator; 24952: typedef typename _Hashtable::const_local_iterator const_local_iterator; 24952: typedef typename _Hashtable::size_type size_type; 24952: typedef typename _Hashtable::difference_type difference_type; 24952: 24952: 24952: 24952: using node_type = typename _Hashtable::node_type; 24952: 24952: 24952: 24952: 24952: 24952: unordered_multimap() = default; 24952: # 1301 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: explicit 24952: unordered_multimap(size_type __n, 24952: const hasher& __hf = hasher(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_h(__n, __hf, __eql, __a) 24952: { } 24952: # 1322 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template 24952: unordered_multimap(_InputIterator __first, _InputIterator __last, 24952: size_type __n = 0, 24952: const hasher& __hf = hasher(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_h(__first, __last, __n, __hf, __eql, __a) 24952: { } 24952: 24952: 24952: unordered_multimap(const unordered_multimap&) = default; 24952: 24952: 24952: unordered_multimap(unordered_multimap&&) = default; 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: unordered_multimap(const allocator_type& __a) 24952: : _M_h(__a) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: unordered_multimap(const unordered_multimap& __ummap, 24952: const allocator_type& __a) 24952: : _M_h(__ummap._M_h, __a) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: unordered_multimap(unordered_multimap&& __ummap, 24952: const allocator_type& __a) 24952: noexcept( noexcept(_Hashtable(std::move(__ummap._M_h), __a)) ) 24952: : _M_h(std::move(__ummap._M_h), __a) 24952: { } 24952: # 1378 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: unordered_multimap(initializer_list __l, 24952: size_type __n = 0, 24952: const hasher& __hf = hasher(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_h(__l, __n, __hf, __eql, __a) 24952: { } 24952: 24952: unordered_multimap(size_type __n, const allocator_type& __a) 24952: : unordered_multimap(__n, hasher(), key_equal(), __a) 24952: { } 24952: 24952: unordered_multimap(size_type __n, const hasher& __hf, 24952: const allocator_type& __a) 24952: : unordered_multimap(__n, __hf, key_equal(), __a) 24952: { } 24952: 24952: template 24952: unordered_multimap(_InputIterator __first, _InputIterator __last, 24952: size_type __n, 24952: const allocator_type& __a) 24952: : unordered_multimap(__first, __last, __n, hasher(), key_equal(), __a) 24952: { } 24952: 24952: template 24952: unordered_multimap(_InputIterator __first, _InputIterator __last, 24952: size_type __n, const hasher& __hf, 24952: const allocator_type& __a) 24952: : unordered_multimap(__first, __last, __n, __hf, key_equal(), __a) 24952: { } 24952: 24952: unordered_multimap(initializer_list __l, 24952: size_type __n, 24952: const allocator_type& __a) 24952: : unordered_multimap(__l, __n, hasher(), key_equal(), __a) 24952: { } 24952: 24952: unordered_multimap(initializer_list __l, 24952: size_type __n, const hasher& __hf, 24952: const allocator_type& __a) 24952: : unordered_multimap(__l, __n, __hf, key_equal(), __a) 24952: { } 24952: 24952: 24952: unordered_multimap& 24952: operator=(const unordered_multimap&) = default; 24952: 24952: 24952: unordered_multimap& 24952: operator=(unordered_multimap&&) = default; 24952: # 1440 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: unordered_multimap& 24952: operator=(initializer_list __l) 24952: { 24952: _M_h = __l; 24952: return *this; 24952: } 24952: 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return _M_h.get_allocator(); } 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] bool 24952: empty() const noexcept 24952: { return _M_h.empty(); } 24952: 24952: 24952: size_type 24952: size() const noexcept 24952: { return _M_h.size(); } 24952: 24952: 24952: size_type 24952: max_size() const noexcept 24952: { return _M_h.max_size(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: begin() noexcept 24952: { return _M_h.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: begin() const noexcept 24952: { return _M_h.begin(); } 24952: 24952: const_iterator 24952: cbegin() const noexcept 24952: { return _M_h.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: end() noexcept 24952: { return _M_h.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: end() const noexcept 24952: { return _M_h.end(); } 24952: 24952: const_iterator 24952: cend() const noexcept 24952: { return _M_h.end(); } 24952: # 1532 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template 24952: iterator 24952: emplace(_Args&&... __args) 24952: { return _M_h.emplace(std::forward<_Args>(__args)...); } 24952: # 1559 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template 24952: iterator 24952: emplace_hint(const_iterator __pos, _Args&&... __args) 24952: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 24952: # 1574 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: iterator 24952: insert(const value_type& __x) 24952: { return _M_h.insert(__x); } 24952: 24952: iterator 24952: insert(value_type&& __x) 24952: { return _M_h.insert(std::move(__x)); } 24952: 24952: template 24952: __enable_if_t::value, iterator> 24952: insert(_Pair&& __x) 24952: { return _M_h.emplace(std::forward<_Pair>(__x)); } 24952: # 1608 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: iterator 24952: insert(const_iterator __hint, const value_type& __x) 24952: { return _M_h.insert(__hint, __x); } 24952: 24952: 24952: 24952: iterator 24952: insert(const_iterator __hint, value_type&& __x) 24952: { return _M_h.insert(__hint, std::move(__x)); } 24952: 24952: template 24952: __enable_if_t::value, iterator> 24952: insert(const_iterator __hint, _Pair&& __x) 24952: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 24952: # 1633 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: template 24952: void 24952: insert(_InputIterator __first, _InputIterator __last) 24952: { _M_h.insert(__first, __last); } 24952: # 1646 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: void 24952: insert(initializer_list __l) 24952: { _M_h.insert(__l); } 24952: 24952: 24952: 24952: node_type 24952: extract(const_iterator __pos) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 24952: return _M_h.extract(__pos); 24952: } 24952: 24952: 24952: node_type 24952: extract(const key_type& __key) 24952: { return _M_h.extract(__key); } 24952: 24952: 24952: iterator 24952: insert(node_type&& __nh) 24952: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 24952: 24952: 24952: iterator 24952: insert(const_iterator __hint, node_type&& __nh) 24952: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 24952: # 1689 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: iterator 24952: erase(const_iterator __position) 24952: { return _M_h.erase(__position); } 24952: 24952: 24952: iterator 24952: erase(iterator __position) 24952: { return _M_h.erase(__position); } 24952: # 1710 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: size_type 24952: erase(const key_type& __x) 24952: { return _M_h.erase(__x); } 24952: # 1729 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: iterator 24952: erase(const_iterator __first, const_iterator __last) 24952: { return _M_h.erase(__first, __last); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: clear() noexcept 24952: { _M_h.clear(); } 24952: # 1753 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: void 24952: swap(unordered_multimap& __x) 24952: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 24952: { _M_h.swap(__x._M_h); } 24952: 24952: 24952: template 24952: friend class std::_Hash_merge_helper; 24952: 24952: template 24952: void 24952: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 24952: { 24952: using _Merge_helper 24952: = _Hash_merge_helper; 24952: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 24952: { merge(__source); } 24952: 24952: template 24952: void 24952: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 24952: { 24952: using _Merge_helper 24952: = _Hash_merge_helper; 24952: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 24952: { merge(__source); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: hasher 24952: hash_function() const 24952: { return _M_h.hash_function(); } 24952: 24952: 24952: 24952: key_equal 24952: key_eq() const 24952: { return _M_h.key_eq(); } 24952: # 1819 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: iterator 24952: find(const key_type& __x) 24952: { return _M_h.find(__x); } 24952: # 1830 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: const_iterator 24952: find(const key_type& __x) const 24952: { return _M_h.find(__x); } 24952: # 1848 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: size_type 24952: count(const key_type& __x) const 24952: { return _M_h.count(__x); } 24952: # 1886 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) 24952: { return _M_h.equal_range(__x); } 24952: # 1898 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) const 24952: { return _M_h.equal_range(__x); } 24952: # 1914 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: size_type 24952: bucket_count() const noexcept 24952: { return _M_h.bucket_count(); } 24952: 24952: 24952: size_type 24952: max_bucket_count() const noexcept 24952: { return _M_h.max_bucket_count(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_type 24952: bucket_size(size_type __n) const 24952: { return _M_h.bucket_size(__n); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_type 24952: bucket(const key_type& __key) const 24952: { return _M_h.bucket(__key); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: local_iterator 24952: begin(size_type __n) 24952: { return _M_h.begin(__n); } 24952: # 1958 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: const_local_iterator 24952: begin(size_type __n) const 24952: { return _M_h.begin(__n); } 24952: 24952: const_local_iterator 24952: cbegin(size_type __n) const 24952: { return _M_h.cbegin(__n); } 24952: # 1973 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: local_iterator 24952: end(size_type __n) 24952: { return _M_h.end(__n); } 24952: # 1984 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: const_local_iterator 24952: end(size_type __n) const 24952: { return _M_h.end(__n); } 24952: 24952: const_local_iterator 24952: cend(size_type __n) const 24952: { return _M_h.cend(__n); } 24952: 24952: 24952: 24952: 24952: 24952: float 24952: load_factor() const noexcept 24952: { return _M_h.load_factor(); } 24952: 24952: 24952: 24952: float 24952: max_load_factor() const noexcept 24952: { return _M_h.max_load_factor(); } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: max_load_factor(float __z) 24952: { _M_h.max_load_factor(__z); } 24952: # 2021 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: void 24952: rehash(size_type __n) 24952: { _M_h.rehash(__n); } 24952: # 2032 "/usr/include/c++/13/bits/unordered_map.h" 3 24952: void 24952: reserve(size_type __n) 24952: { _M_h.reserve(__n); } 24952: 24952: template 24952: friend bool 24952: operator==(const unordered_multimap<_Key1, _Tp1, 24952: _Hash1, _Pred1, _Alloc1>&, 24952: const unordered_multimap<_Key1, _Tp1, 24952: _Hash1, _Pred1, _Alloc1>&); 24952: }; 24952: 24952: 24952: 24952: template>, 24952: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 24952: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 24952: typename = _RequireInputIter<_InputIterator>, 24952: typename = _RequireNotAllocatorOrIntegral<_Hash>, 24952: typename = _RequireNotAllocator<_Pred>, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_multimap(_InputIterator, _InputIterator, 24952: unordered_multimap::size_type = {}, 24952: _Hash = _Hash(), _Pred = _Pred(), 24952: _Allocator = _Allocator()) 24952: -> unordered_multimap<__iter_key_t<_InputIterator>, 24952: __iter_val_t<_InputIterator>, _Hash, _Pred, 24952: _Allocator>; 24952: 24952: template, 24952: typename _Pred = equal_to<_Key>, 24952: typename _Allocator = allocator>, 24952: typename = _RequireNotAllocatorOrIntegral<_Hash>, 24952: typename = _RequireNotAllocator<_Pred>, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_multimap(initializer_list>, 24952: unordered_multimap::size_type = {}, 24952: _Hash = _Hash(), _Pred = _Pred(), 24952: _Allocator = _Allocator()) 24952: -> unordered_multimap<_Key, _Tp, _Hash, _Pred, _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_multimap(_InputIterator, _InputIterator, 24952: unordered_multimap::size_type, _Allocator) 24952: -> unordered_multimap<__iter_key_t<_InputIterator>, 24952: __iter_val_t<_InputIterator>, 24952: hash<__iter_key_t<_InputIterator>>, 24952: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_multimap(_InputIterator, _InputIterator, _Allocator) 24952: -> unordered_multimap<__iter_key_t<_InputIterator>, 24952: __iter_val_t<_InputIterator>, 24952: hash<__iter_key_t<_InputIterator>>, 24952: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 24952: 24952: template, 24952: typename = _RequireNotAllocatorOrIntegral<_Hash>, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_multimap(_InputIterator, _InputIterator, 24952: unordered_multimap::size_type, _Hash, 24952: _Allocator) 24952: -> unordered_multimap<__iter_key_t<_InputIterator>, 24952: __iter_val_t<_InputIterator>, _Hash, 24952: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 24952: 24952: template> 24952: unordered_multimap(initializer_list>, 24952: unordered_multimap::size_type, 24952: _Allocator) 24952: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 24952: 24952: template> 24952: unordered_multimap(initializer_list>, _Allocator) 24952: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_multimap(initializer_list>, 24952: unordered_multimap::size_type, 24952: _Hash, _Allocator) 24952: -> unordered_multimap<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 24952: unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: template 24952: inline void 24952: swap(unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 24952: unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: template 24952: inline bool 24952: operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 24952: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 24952: { return __x._M_h._M_equal(__y._M_h); } 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 24952: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 24952: { return !(__x == __y); } 24952: 24952: 24952: template 24952: inline bool 24952: operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 24952: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 24952: { return __x._M_h._M_equal(__y._M_h); } 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 24952: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 24952: { return !(__x == __y); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Hash_merge_helper< 24952: std::unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>, 24952: _Hash2, _Eq2> 24952: { 24952: private: 24952: template 24952: using unordered_map = std::unordered_map<_Tp...>; 24952: template 24952: using unordered_multimap = std::unordered_multimap<_Tp...>; 24952: 24952: friend unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>; 24952: 24952: static auto& 24952: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 24952: { return __map._M_h; } 24952: 24952: static auto& 24952: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 24952: { return __map._M_h; } 24952: }; 24952: 24952: 24952: template 24952: struct _Hash_merge_helper< 24952: std::unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>, 24952: _Hash2, _Eq2> 24952: { 24952: private: 24952: template 24952: using unordered_map = std::unordered_map<_Tp...>; 24952: template 24952: using unordered_multimap = std::unordered_multimap<_Tp...>; 24952: 24952: friend unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>; 24952: 24952: static auto& 24952: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 24952: { return __map._M_h; } 24952: 24952: static auto& 24952: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 24952: { return __map._M_h; } 24952: }; 24952: 24952: 24952: 24952: } 24952: # 42 "/usr/include/c++/13/unordered_map" 2 3 24952: 24952: # 1 "/usr/include/c++/13/bits/erase_if.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/erase_if.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/erase_if.h" 3 24952: 24952: 24952: 24952: 24952: 24952: namespace std 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace __detail 24952: { 24952: template 24952: typename _Container::size_type 24952: __erase_nodes_if(_Container& __cont, _UnsafeContainer& __ucont, 24952: _Predicate __pred) 24952: { 24952: typename _Container::size_type __num = 0; 24952: for (auto __iter = __ucont.begin(), __last = __ucont.end(); 24952: __iter != __last;) 24952: { 24952: if (__pred(*__iter)) 24952: { 24952: __iter = __cont.erase(__iter); 24952: ++__num; 24952: } 24952: else 24952: ++__iter; 24952: } 24952: return __num; 24952: } 24952: } 24952: 24952: 24952: } 24952: # 44 "/usr/include/c++/13/unordered_map" 2 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: namespace pmr 24952: { 24952: template, 24952: typename _Pred = std::equal_to<_Key>> 24952: using unordered_map 24952: = std::unordered_map<_Key, _Tp, _Hash, _Pred, 24952: polymorphic_allocator>>; 24952: template, 24952: typename _Pred = std::equal_to<_Key>> 24952: using unordered_multimap 24952: = std::unordered_multimap<_Key, _Tp, _Hash, _Pred, 24952: polymorphic_allocator>>; 24952: } 24952: 24952: } 24952: # 64 "/usr/include/c++/13/functional" 2 3 24952: # 1 "/usr/include/c++/13/vector" 1 3 24952: # 58 "/usr/include/c++/13/vector" 3 24952: 24952: # 59 "/usr/include/c++/13/vector" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/stl_vector.h" 1 3 24952: # 78 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: template 24952: struct _Vector_base 24952: { 24952: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 24952: rebind<_Tp>::other _Tp_alloc_type; 24952: typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer 24952: pointer; 24952: 24952: struct _Vector_impl_data 24952: { 24952: pointer _M_start; 24952: pointer _M_finish; 24952: pointer _M_end_of_storage; 24952: 24952: 24952: _Vector_impl_data() noexcept 24952: : _M_start(), _M_finish(), _M_end_of_storage() 24952: { } 24952: 24952: 24952: 24952: _Vector_impl_data(_Vector_impl_data&& __x) noexcept 24952: : _M_start(__x._M_start), _M_finish(__x._M_finish), 24952: _M_end_of_storage(__x._M_end_of_storage) 24952: { __x._M_start = __x._M_finish = __x._M_end_of_storage = pointer(); } 24952: 24952: 24952: 24952: void 24952: _M_copy_data(_Vector_impl_data const& __x) noexcept 24952: { 24952: _M_start = __x._M_start; 24952: _M_finish = __x._M_finish; 24952: _M_end_of_storage = __x._M_end_of_storage; 24952: } 24952: 24952: 24952: void 24952: _M_swap_data(_Vector_impl_data& __x) noexcept 24952: { 24952: 24952: 24952: _Vector_impl_data __tmp; 24952: __tmp._M_copy_data(*this); 24952: _M_copy_data(__x); 24952: __x._M_copy_data(__tmp); 24952: } 24952: }; 24952: 24952: struct _Vector_impl 24952: : public _Tp_alloc_type, public _Vector_impl_data 24952: { 24952: 24952: _Vector_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 24952: 24952: : _Tp_alloc_type() 24952: { } 24952: 24952: 24952: _Vector_impl(_Tp_alloc_type const& __a) noexcept 24952: : _Tp_alloc_type(__a) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: _Vector_impl(_Vector_impl&& __x) noexcept 24952: : _Tp_alloc_type(std::move(__x)), _Vector_impl_data(std::move(__x)) 24952: { } 24952: 24952: 24952: _Vector_impl(_Tp_alloc_type&& __a) noexcept 24952: : _Tp_alloc_type(std::move(__a)) 24952: { } 24952: 24952: 24952: _Vector_impl(_Tp_alloc_type&& __a, _Vector_impl&& __rv) noexcept 24952: : _Tp_alloc_type(std::move(__a)), _Vector_impl_data(std::move(__rv)) 24952: { } 24952: # 291 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: }; 24952: 24952: public: 24952: typedef _Alloc allocator_type; 24952: 24952: 24952: _Tp_alloc_type& 24952: _M_get_Tp_allocator() noexcept 24952: { return this->_M_impl; } 24952: 24952: 24952: const _Tp_alloc_type& 24952: _M_get_Tp_allocator() const noexcept 24952: { return this->_M_impl; } 24952: 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return allocator_type(_M_get_Tp_allocator()); } 24952: 24952: 24952: _Vector_base() = default; 24952: 24952: 24952: 24952: 24952: 24952: _Vector_base(const allocator_type& __a) noexcept 24952: : _M_impl(__a) { } 24952: 24952: 24952: 24952: 24952: _Vector_base(size_t __n) 24952: : _M_impl() 24952: { _M_create_storage(__n); } 24952: 24952: 24952: 24952: _Vector_base(size_t __n, const allocator_type& __a) 24952: : _M_impl(__a) 24952: { _M_create_storage(__n); } 24952: 24952: 24952: _Vector_base(_Vector_base&&) = default; 24952: 24952: 24952: 24952: 24952: _Vector_base(_Tp_alloc_type&& __a) noexcept 24952: : _M_impl(std::move(__a)) { } 24952: 24952: 24952: _Vector_base(_Vector_base&& __x, const allocator_type& __a) 24952: : _M_impl(__a) 24952: { 24952: if (__x.get_allocator() == __a) 24952: this->_M_impl._M_swap_data(__x._M_impl); 24952: else 24952: { 24952: size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; 24952: _M_create_storage(__n); 24952: } 24952: } 24952: 24952: 24952: 24952: _Vector_base(const allocator_type& __a, _Vector_base&& __x) 24952: : _M_impl(_Tp_alloc_type(__a), std::move(__x._M_impl)) 24952: { } 24952: 24952: 24952: 24952: ~_Vector_base() noexcept 24952: { 24952: _M_deallocate(_M_impl._M_start, 24952: _M_impl._M_end_of_storage - _M_impl._M_start); 24952: } 24952: 24952: public: 24952: _Vector_impl _M_impl; 24952: 24952: 24952: pointer 24952: _M_allocate(size_t __n) 24952: { 24952: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 24952: return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer(); 24952: } 24952: 24952: 24952: void 24952: _M_deallocate(pointer __p, size_t __n) 24952: { 24952: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 24952: if (__p) 24952: _Tr::deallocate(_M_impl, __p, __n); 24952: } 24952: 24952: protected: 24952: 24952: void 24952: _M_create_storage(size_t __n) 24952: { 24952: this->_M_impl._M_start = this->_M_allocate(__n); 24952: this->_M_impl._M_finish = this->_M_impl._M_start; 24952: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 24952: } 24952: }; 24952: # 424 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: template > 24952: class vector : protected _Vector_base<_Tp, _Alloc> 24952: { 24952: # 437 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: static_assert(is_same::type, _Tp>::value, 24952: "std::vector must have a non-const, non-volatile value_type"); 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef _Vector_base<_Tp, _Alloc> _Base; 24952: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 24952: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 24952: 24952: public: 24952: typedef _Tp value_type; 24952: typedef typename _Base::pointer pointer; 24952: typedef typename _Alloc_traits::const_pointer const_pointer; 24952: typedef typename _Alloc_traits::reference reference; 24952: typedef typename _Alloc_traits::const_reference const_reference; 24952: typedef __gnu_cxx::__normal_iterator iterator; 24952: typedef __gnu_cxx::__normal_iterator 24952: const_iterator; 24952: typedef std::reverse_iterator const_reverse_iterator; 24952: typedef std::reverse_iterator reverse_iterator; 24952: typedef size_t size_type; 24952: typedef ptrdiff_t difference_type; 24952: typedef _Alloc allocator_type; 24952: 24952: private: 24952: 24952: static constexpr bool 24952: _S_nothrow_relocate(true_type) 24952: { 24952: return noexcept(std::__relocate_a(std::declval(), 24952: std::declval(), 24952: std::declval(), 24952: std::declval<_Tp_alloc_type&>())); 24952: } 24952: 24952: static constexpr bool 24952: _S_nothrow_relocate(false_type) 24952: { return false; } 24952: 24952: static constexpr bool 24952: _S_use_relocate() 24952: { 24952: 24952: 24952: 24952: return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{}); 24952: } 24952: 24952: static pointer 24952: _S_do_relocate(pointer __first, pointer __last, pointer __result, 24952: _Tp_alloc_type& __alloc, true_type) noexcept 24952: { 24952: return std::__relocate_a(__first, __last, __result, __alloc); 24952: } 24952: 24952: static pointer 24952: _S_do_relocate(pointer, pointer, pointer __result, 24952: _Tp_alloc_type&, false_type) noexcept 24952: { return __result; } 24952: 24952: static pointer 24952: _S_relocate(pointer __first, pointer __last, pointer __result, 24952: _Tp_alloc_type& __alloc) noexcept 24952: { 24952: 24952: 24952: return std::__relocate_a(__first, __last, __result, __alloc); 24952: 24952: 24952: 24952: 24952: } 24952: 24952: 24952: protected: 24952: using _Base::_M_allocate; 24952: using _Base::_M_deallocate; 24952: using _Base::_M_impl; 24952: using _Base::_M_get_Tp_allocator; 24952: 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: vector() = default; 24952: # 537 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: explicit 24952: 24952: vector(const allocator_type& __a) noexcept 24952: : _Base(__a) { } 24952: # 551 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: explicit 24952: 24952: vector(size_type __n, const allocator_type& __a = allocator_type()) 24952: : _Base(_S_check_init_len(__n, __a), __a) 24952: { _M_default_initialize(__n); } 24952: # 565 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: vector(size_type __n, const value_type& __value, 24952: const allocator_type& __a = allocator_type()) 24952: : _Base(_S_check_init_len(__n, __a), __a) 24952: { _M_fill_initialize(__n, __value); } 24952: # 597 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: vector(const vector& __x) 24952: : _Base(__x.size(), 24952: _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) 24952: { 24952: this->_M_impl._M_finish = 24952: std::__uninitialized_copy_a(__x.begin(), __x.end(), 24952: this->_M_impl._M_start, 24952: _M_get_Tp_allocator()); 24952: } 24952: # 617 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: vector(vector&&) noexcept = default; 24952: 24952: 24952: 24952: vector(const vector& __x, const __type_identity_t& __a) 24952: : _Base(__x.size(), __a) 24952: { 24952: this->_M_impl._M_finish = 24952: std::__uninitialized_copy_a(__x.begin(), __x.end(), 24952: this->_M_impl._M_start, 24952: _M_get_Tp_allocator()); 24952: } 24952: 24952: private: 24952: 24952: vector(vector&& __rv, const allocator_type& __m, true_type) noexcept 24952: : _Base(__m, std::move(__rv)) 24952: { } 24952: 24952: 24952: vector(vector&& __rv, const allocator_type& __m, false_type) 24952: : _Base(__m) 24952: { 24952: if (__rv.get_allocator() == __m) 24952: this->_M_impl._M_swap_data(__rv._M_impl); 24952: else if (!__rv.empty()) 24952: { 24952: this->_M_create_storage(__rv.size()); 24952: this->_M_impl._M_finish = 24952: std::__uninitialized_move_a(__rv.begin(), __rv.end(), 24952: this->_M_impl._M_start, 24952: _M_get_Tp_allocator()); 24952: __rv.clear(); 24952: } 24952: } 24952: 24952: public: 24952: 24952: 24952: vector(vector&& __rv, const __type_identity_t& __m) 24952: noexcept( noexcept( 24952: vector(std::declval(), std::declval(), 24952: std::declval())) ) 24952: : vector(std::move(__rv), __m, typename _Alloc_traits::is_always_equal{}) 24952: { } 24952: # 674 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: vector(initializer_list __l, 24952: const allocator_type& __a = allocator_type()) 24952: : _Base(__a) 24952: { 24952: _M_range_initialize(__l.begin(), __l.end(), 24952: random_access_iterator_tag()); 24952: } 24952: # 701 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: template> 24952: 24952: vector(_InputIterator __first, _InputIterator __last, 24952: const allocator_type& __a = allocator_type()) 24952: : _Base(__a) 24952: { 24952: _M_range_initialize(__first, __last, 24952: std::__iterator_category(__first)); 24952: } 24952: # 729 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: ~vector() noexcept 24952: { 24952: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: ; 24952: } 24952: # 746 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: vector& 24952: operator=(const vector& __x); 24952: # 761 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: vector& 24952: operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) 24952: { 24952: constexpr bool __move_storage = 24952: _Alloc_traits::_S_propagate_on_move_assign() 24952: || _Alloc_traits::_S_always_equal(); 24952: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 24952: return *this; 24952: } 24952: # 783 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: vector& 24952: operator=(initializer_list __l) 24952: { 24952: this->_M_assign_aux(__l.begin(), __l.end(), 24952: random_access_iterator_tag()); 24952: return *this; 24952: } 24952: # 803 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: void 24952: assign(size_type __n, const value_type& __val) 24952: { _M_fill_assign(__n, __val); } 24952: # 821 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: template> 24952: 24952: void 24952: assign(_InputIterator __first, _InputIterator __last) 24952: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 24952: # 850 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: void 24952: assign(initializer_list __l) 24952: { 24952: this->_M_assign_aux(__l.begin(), __l.end(), 24952: random_access_iterator_tag()); 24952: } 24952: 24952: 24952: 24952: using _Base::get_allocator; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: iterator 24952: begin() noexcept 24952: { return iterator(this->_M_impl._M_start); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: begin() const noexcept 24952: { return const_iterator(this->_M_impl._M_start); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: iterator 24952: end() noexcept 24952: { return iterator(this->_M_impl._M_finish); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: end() const noexcept 24952: { return const_iterator(this->_M_impl._M_finish); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reverse_iterator 24952: rbegin() noexcept 24952: { return reverse_iterator(end()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: rbegin() const noexcept 24952: { return const_reverse_iterator(end()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reverse_iterator 24952: rend() noexcept 24952: { return reverse_iterator(begin()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: rend() const noexcept 24952: { return const_reverse_iterator(begin()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: cbegin() const noexcept 24952: { return const_iterator(this->_M_impl._M_start); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: cend() const noexcept 24952: { return const_iterator(this->_M_impl._M_finish); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: crbegin() const noexcept 24952: { return const_reverse_iterator(end()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: crend() const noexcept 24952: { return const_reverse_iterator(begin()); } 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: size_type 24952: size() const noexcept 24952: { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } 24952: 24952: 24952: [[__nodiscard__]] 24952: size_type 24952: max_size() const noexcept 24952: { return _S_max_size(_M_get_Tp_allocator()); } 24952: # 1008 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: void 24952: resize(size_type __new_size) 24952: { 24952: if (__new_size > size()) 24952: _M_default_append(__new_size - size()); 24952: else if (__new_size < size()) 24952: _M_erase_at_end(this->_M_impl._M_start + __new_size); 24952: } 24952: # 1029 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: void 24952: resize(size_type __new_size, const value_type& __x) 24952: { 24952: if (__new_size > size()) 24952: _M_fill_insert(end(), __new_size - size(), __x); 24952: else if (__new_size < size()) 24952: _M_erase_at_end(this->_M_impl._M_start + __new_size); 24952: } 24952: # 1063 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: void 24952: shrink_to_fit() 24952: { _M_shrink_to_fit(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: size_type 24952: capacity() const noexcept 24952: { return size_type(this->_M_impl._M_end_of_storage 24952: - this->_M_impl._M_start); } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: bool 24952: empty() const noexcept 24952: { return begin() == end(); } 24952: # 1105 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: void 24952: reserve(size_type __n); 24952: # 1121 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: [[__nodiscard__]] 24952: reference 24952: operator[](size_type __n) noexcept 24952: { 24952: ; 24952: return *(this->_M_impl._M_start + __n); 24952: } 24952: # 1140 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: [[__nodiscard__]] 24952: const_reference 24952: operator[](size_type __n) const noexcept 24952: { 24952: ; 24952: return *(this->_M_impl._M_start + __n); 24952: } 24952: 24952: protected: 24952: 24952: 24952: void 24952: _M_range_check(size_type __n) const 24952: { 24952: if (__n >= this->size()) 24952: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 24952: 24952: , 24952: __n, this->size()); 24952: } 24952: 24952: public: 24952: # 1173 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: reference 24952: at(size_type __n) 24952: { 24952: _M_range_check(__n); 24952: return (*this)[__n]; 24952: } 24952: # 1192 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: const_reference 24952: at(size_type __n) const 24952: { 24952: _M_range_check(__n); 24952: return (*this)[__n]; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reference 24952: front() noexcept 24952: { 24952: ; 24952: return *begin(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reference 24952: front() const noexcept 24952: { 24952: ; 24952: return *begin(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reference 24952: back() noexcept 24952: { 24952: ; 24952: return *(end() - 1); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reference 24952: back() const noexcept 24952: { 24952: ; 24952: return *(end() - 1); 24952: } 24952: # 1255 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: [[__nodiscard__]] 24952: _Tp* 24952: data() noexcept 24952: { return _M_data_ptr(this->_M_impl._M_start); } 24952: 24952: [[__nodiscard__]] 24952: const _Tp* 24952: data() const noexcept 24952: { return _M_data_ptr(this->_M_impl._M_start); } 24952: # 1276 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: void 24952: push_back(const value_type& __x) 24952: { 24952: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 24952: { 24952: ; 24952: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 24952: __x); 24952: ++this->_M_impl._M_finish; 24952: ; 24952: } 24952: else 24952: _M_realloc_insert(end(), __x); 24952: } 24952: 24952: 24952: 24952: void 24952: push_back(value_type&& __x) 24952: { emplace_back(std::move(__x)); } 24952: 24952: template 24952: 24952: 24952: reference 24952: 24952: 24952: 24952: emplace_back(_Args&&... __args); 24952: # 1317 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: void 24952: pop_back() noexcept 24952: { 24952: ; 24952: --this->_M_impl._M_finish; 24952: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 24952: ; 24952: } 24952: # 1340 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: template 24952: 24952: iterator 24952: emplace(const_iterator __position, _Args&&... __args) 24952: { return _M_emplace_aux(__position, std::forward<_Args>(__args)...); } 24952: # 1357 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: iterator 24952: insert(const_iterator __position, const value_type& __x); 24952: # 1388 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: iterator 24952: insert(const_iterator __position, value_type&& __x) 24952: { return _M_insert_rval(__position, std::move(__x)); } 24952: # 1406 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: iterator 24952: insert(const_iterator __position, initializer_list __l) 24952: { 24952: auto __offset = __position - cbegin(); 24952: _M_range_insert(begin() + __offset, __l.begin(), __l.end(), 24952: std::random_access_iterator_tag()); 24952: return begin() + __offset; 24952: } 24952: # 1432 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: iterator 24952: insert(const_iterator __position, size_type __n, const value_type& __x) 24952: { 24952: difference_type __offset = __position - cbegin(); 24952: _M_fill_insert(begin() + __offset, __n, __x); 24952: return begin() + __offset; 24952: } 24952: # 1475 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: template> 24952: 24952: iterator 24952: insert(const_iterator __position, _InputIterator __first, 24952: _InputIterator __last) 24952: { 24952: difference_type __offset = __position - cbegin(); 24952: _M_range_insert(begin() + __offset, __first, __last, 24952: std::__iterator_category(__first)); 24952: return begin() + __offset; 24952: } 24952: # 1528 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: iterator 24952: 24952: erase(const_iterator __position) 24952: { return _M_erase(begin() + (__position - cbegin())); } 24952: # 1556 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: iterator 24952: 24952: erase(const_iterator __first, const_iterator __last) 24952: { 24952: const auto __beg = begin(); 24952: const auto __cbeg = cbegin(); 24952: return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); 24952: } 24952: # 1581 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: 24952: void 24952: swap(vector& __x) noexcept 24952: { 24952: 24952: 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) 24952: ; 24952: 24952: this->_M_impl._M_swap_data(__x._M_impl); 24952: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 24952: __x._M_get_Tp_allocator()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: clear() noexcept 24952: { _M_erase_at_end(this->_M_impl._M_start); } 24952: 24952: protected: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: pointer 24952: _M_allocate_and_copy(size_type __n, 24952: _ForwardIterator __first, _ForwardIterator __last) 24952: { 24952: pointer __result = this->_M_allocate(__n); 24952: try 24952: { 24952: std::__uninitialized_copy_a(__first, __last, __result, 24952: _M_get_Tp_allocator()); 24952: return __result; 24952: } 24952: catch(...) 24952: { 24952: _M_deallocate(__result, __n); 24952: throw; 24952: } 24952: } 24952: # 1661 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: template 24952: 24952: void 24952: _M_range_initialize(_InputIterator __first, _InputIterator __last, 24952: std::input_iterator_tag) 24952: { 24952: try { 24952: for (; __first != __last; ++__first) 24952: 24952: emplace_back(*__first); 24952: 24952: 24952: 24952: } catch(...) { 24952: clear(); 24952: throw; 24952: } 24952: } 24952: 24952: 24952: template 24952: 24952: void 24952: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 24952: std::forward_iterator_tag) 24952: { 24952: const size_type __n = std::distance(__first, __last); 24952: this->_M_impl._M_start 24952: = this->_M_allocate(_S_check_init_len(__n, _M_get_Tp_allocator())); 24952: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 24952: this->_M_impl._M_finish = 24952: std::__uninitialized_copy_a(__first, __last, 24952: this->_M_impl._M_start, 24952: _M_get_Tp_allocator()); 24952: } 24952: 24952: 24952: 24952: 24952: void 24952: _M_fill_initialize(size_type __n, const value_type& __value) 24952: { 24952: this->_M_impl._M_finish = 24952: std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, 24952: _M_get_Tp_allocator()); 24952: } 24952: 24952: 24952: 24952: 24952: void 24952: _M_default_initialize(size_type __n) 24952: { 24952: this->_M_impl._M_finish = 24952: std::__uninitialized_default_n_a(this->_M_impl._M_start, __n, 24952: _M_get_Tp_allocator()); 24952: } 24952: # 1727 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: template 24952: 24952: void 24952: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 24952: { _M_fill_assign(__n, __val); } 24952: 24952: 24952: template 24952: 24952: void 24952: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 24952: __false_type) 24952: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 24952: 24952: 24952: template 24952: 24952: void 24952: _M_assign_aux(_InputIterator __first, _InputIterator __last, 24952: std::input_iterator_tag); 24952: 24952: 24952: template 24952: 24952: void 24952: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 24952: std::forward_iterator_tag); 24952: 24952: 24952: 24952: 24952: void 24952: _M_fill_assign(size_type __n, const value_type& __val); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: void 24952: _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, 24952: __true_type) 24952: { _M_fill_insert(__pos, __n, __val); } 24952: 24952: 24952: template 24952: 24952: void 24952: _M_insert_dispatch(iterator __pos, _InputIterator __first, 24952: _InputIterator __last, __false_type) 24952: { 24952: _M_range_insert(__pos, __first, __last, 24952: std::__iterator_category(__first)); 24952: } 24952: 24952: 24952: template 24952: 24952: void 24952: _M_range_insert(iterator __pos, _InputIterator __first, 24952: _InputIterator __last, std::input_iterator_tag); 24952: 24952: 24952: template 24952: 24952: void 24952: _M_range_insert(iterator __pos, _ForwardIterator __first, 24952: _ForwardIterator __last, std::forward_iterator_tag); 24952: 24952: 24952: 24952: 24952: void 24952: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 24952: 24952: 24952: 24952: 24952: void 24952: _M_default_append(size_type __n); 24952: 24952: 24952: bool 24952: _M_shrink_to_fit(); 24952: # 1826 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: struct _Temporary_value 24952: { 24952: template 24952: explicit 24952: _Temporary_value(vector* __vec, _Args&&... __args) : _M_this(__vec) 24952: { 24952: _Alloc_traits::construct(_M_this->_M_impl, _M_ptr(), 24952: std::forward<_Args>(__args)...); 24952: } 24952: 24952: 24952: ~_Temporary_value() 24952: { _Alloc_traits::destroy(_M_this->_M_impl, _M_ptr()); } 24952: 24952: value_type& 24952: _M_val() noexcept { return _M_storage._M_val; } 24952: 24952: private: 24952: _Tp* 24952: _M_ptr() noexcept { return std::__addressof(_M_storage._M_val); } 24952: 24952: union _Storage 24952: { 24952: constexpr _Storage() : _M_byte() { } 24952: ~_Storage() { } 24952: _Storage& operator=(const _Storage&) = delete; 24952: unsigned char _M_byte; 24952: _Tp _M_val; 24952: }; 24952: 24952: vector* _M_this; 24952: _Storage _M_storage; 24952: }; 24952: 24952: 24952: 24952: template 24952: 24952: void 24952: _M_insert_aux(iterator __position, _Arg&& __arg); 24952: 24952: template 24952: 24952: void 24952: _M_realloc_insert(iterator __position, _Args&&... __args); 24952: 24952: 24952: 24952: iterator 24952: _M_insert_rval(const_iterator __position, value_type&& __v); 24952: 24952: 24952: template 24952: 24952: iterator 24952: _M_emplace_aux(const_iterator __position, _Args&&... __args); 24952: 24952: 24952: 24952: iterator 24952: _M_emplace_aux(const_iterator __position, value_type&& __v) 24952: { return _M_insert_rval(__position, std::move(__v)); } 24952: 24952: 24952: 24952: 24952: size_type 24952: _M_check_len(size_type __n, const char* __s) const 24952: { 24952: if (max_size() - size() < __n) 24952: __throw_length_error((__s)); 24952: 24952: const size_type __len = size() + (std::max)(size(), __n); 24952: return (__len < size() || __len > max_size()) ? max_size() : __len; 24952: } 24952: 24952: 24952: static size_type 24952: _S_check_init_len(size_type __n, const allocator_type& __a) 24952: { 24952: if (__n > _S_max_size(_Tp_alloc_type(__a))) 24952: __throw_length_error( 24952: ("cannot create std::vector larger than max_size()")); 24952: return __n; 24952: } 24952: 24952: static size_type 24952: _S_max_size(const _Tp_alloc_type& __a) noexcept 24952: { 24952: 24952: 24952: 24952: const size_t __diffmax 24952: = __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 24952: const size_t __allocmax = _Alloc_traits::max_size(__a); 24952: return (std::min)(__diffmax, __allocmax); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: _M_erase_at_end(pointer __pos) noexcept 24952: { 24952: if (size_type __n = this->_M_impl._M_finish - __pos) 24952: { 24952: std::_Destroy(__pos, this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_finish = __pos; 24952: ; 24952: } 24952: } 24952: 24952: 24952: iterator 24952: _M_erase(iterator __position); 24952: 24952: 24952: iterator 24952: _M_erase(iterator __first, iterator __last); 24952: 24952: 24952: private: 24952: 24952: 24952: 24952: 24952: void 24952: _M_move_assign(vector&& __x, true_type) noexcept 24952: { 24952: vector __tmp(get_allocator()); 24952: this->_M_impl._M_swap_data(__x._M_impl); 24952: __tmp._M_impl._M_swap_data(__x._M_impl); 24952: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 24952: } 24952: 24952: 24952: 24952: 24952: void 24952: _M_move_assign(vector&& __x, false_type) 24952: { 24952: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 24952: _M_move_assign(std::move(__x), true_type()); 24952: else 24952: { 24952: 24952: 24952: this->_M_assign_aux(std::make_move_iterator(__x.begin()), 24952: std::make_move_iterator(__x.end()), 24952: std::random_access_iterator_tag()); 24952: __x.clear(); 24952: } 24952: } 24952: 24952: 24952: template 24952: 24952: _Up* 24952: _M_data_ptr(_Up* __ptr) const noexcept 24952: { return __ptr; } 24952: 24952: 24952: template 24952: 24952: typename std::pointer_traits<_Ptr>::element_type* 24952: _M_data_ptr(_Ptr __ptr) const 24952: { return empty() ? nullptr : std::__to_address(__ptr); } 24952: # 2012 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: }; 24952: 24952: 24952: template::value_type, 24952: typename _Allocator = allocator<_ValT>, 24952: typename = _RequireInputIter<_InputIterator>, 24952: typename = _RequireAllocator<_Allocator>> 24952: vector(_InputIterator, _InputIterator, _Allocator = _Allocator()) 24952: -> vector<_ValT, _Allocator>; 24952: # 2034 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: template 24952: 24952: inline bool 24952: operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 24952: { return (__x.size() == __y.size() 24952: && std::equal(__x.begin(), __x.end(), __y.begin())); } 24952: # 2074 "/usr/include/c++/13/bits/stl_vector.h" 3 24952: template 24952: inline bool 24952: operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 24952: { return std::lexicographical_compare(__x.begin(), __x.end(), 24952: __y.begin(), __y.end()); } 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 24952: { return !(__x == __y); } 24952: 24952: 24952: template 24952: inline bool 24952: operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 24952: { return __y < __x; } 24952: 24952: 24952: template 24952: inline bool 24952: operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 24952: { return !(__y < __x); } 24952: 24952: 24952: template 24952: inline bool 24952: operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 24952: { return !(__x < __y); } 24952: 24952: 24952: 24952: template 24952: 24952: inline void 24952: swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: 24952: 24952: 24952: namespace __detail::__variant 24952: { 24952: template struct _Never_valueless_alt; 24952: 24952: 24952: 24952: template 24952: struct _Never_valueless_alt> 24952: : std::is_nothrow_move_assignable> 24952: { }; 24952: } 24952: 24952: 24952: 24952: } 24952: # 67 "/usr/include/c++/13/vector" 2 3 24952: # 1 "/usr/include/c++/13/bits/stl_bvector.h" 1 3 24952: # 64 "/usr/include/c++/13/bits/stl_bvector.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: typedef unsigned long _Bit_type; 24952: enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; 24952: 24952: __attribute__((__nonnull__)) 24952: 24952: void 24952: __fill_bvector_n(_Bit_type*, size_t, bool) noexcept; 24952: 24952: 24952: 24952: struct _Bit_reference 24952: { 24952: _Bit_type * _M_p; 24952: _Bit_type _M_mask; 24952: 24952: 24952: _Bit_reference(_Bit_type * __x, _Bit_type __y) 24952: : _M_p(__x), _M_mask(__y) { } 24952: 24952: 24952: _Bit_reference() noexcept : _M_p(0), _M_mask(0) { } 24952: 24952: 24952: _Bit_reference(const _Bit_reference&) = default; 24952: 24952: 24952: [[__nodiscard__]] 24952: operator bool() const noexcept 24952: { return !!(*_M_p & _M_mask); } 24952: 24952: 24952: _Bit_reference& 24952: operator=(bool __x) noexcept 24952: { 24952: if (__x) 24952: *_M_p |= _M_mask; 24952: else 24952: *_M_p &= ~_M_mask; 24952: return *this; 24952: } 24952: # 121 "/usr/include/c++/13/bits/stl_bvector.h" 3 24952: 24952: _Bit_reference& 24952: operator=(const _Bit_reference& __x) noexcept 24952: { return *this = bool(__x); } 24952: 24952: [[__nodiscard__]] 24952: bool 24952: operator==(const _Bit_reference& __x) const 24952: { return bool(*this) == bool(__x); } 24952: 24952: [[__nodiscard__]] 24952: bool 24952: operator<(const _Bit_reference& __x) const 24952: { return !bool(*this) && bool(__x); } 24952: 24952: 24952: void 24952: flip() noexcept 24952: { *_M_p ^= _M_mask; } 24952: 24952: 24952: 24952: friend void 24952: swap(_Bit_reference __x, _Bit_reference __y) noexcept 24952: { 24952: bool __tmp = __x; 24952: __x = __y; 24952: __y = __tmp; 24952: } 24952: 24952: 24952: friend void 24952: swap(_Bit_reference __x, bool& __y) noexcept 24952: { 24952: bool __tmp = __x; 24952: __x = __y; 24952: __y = __tmp; 24952: } 24952: 24952: 24952: friend void 24952: swap(bool& __x, _Bit_reference __y) noexcept 24952: { 24952: bool __tmp = __x; 24952: __x = __y; 24952: __y = __tmp; 24952: } 24952: 24952: }; 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: struct _Bit_iterator_base 24952: : public std::iterator 24952: { 24952: _Bit_type * _M_p; 24952: unsigned int _M_offset; 24952: 24952: 24952: _Bit_iterator_base(_Bit_type * __x, unsigned int __y) 24952: : _M_p(__x), _M_offset(__y) { } 24952: 24952: 24952: void 24952: _M_bump_up() 24952: { 24952: if (_M_offset++ == int(_S_word_bit) - 1) 24952: { 24952: _M_offset = 0; 24952: ++_M_p; 24952: } 24952: } 24952: 24952: 24952: void 24952: _M_bump_down() 24952: { 24952: if (_M_offset-- == 0) 24952: { 24952: _M_offset = int(_S_word_bit) - 1; 24952: --_M_p; 24952: } 24952: } 24952: 24952: 24952: void 24952: _M_incr(ptrdiff_t __i) 24952: { 24952: difference_type __n = __i + _M_offset; 24952: _M_p += __n / int(_S_word_bit); 24952: __n = __n % int(_S_word_bit); 24952: if (__n < 0) 24952: { 24952: __n += int(_S_word_bit); 24952: --_M_p; 24952: } 24952: _M_offset = static_cast(__n); 24952: } 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator==(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 24952: { return __x._M_p == __y._M_p && __x._M_offset == __y._M_offset; } 24952: # 237 "/usr/include/c++/13/bits/stl_bvector.h" 3 24952: [[__nodiscard__]] 24952: friend bool 24952: operator<(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 24952: { 24952: return __x._M_p < __y._M_p 24952: || (__x._M_p == __y._M_p && __x._M_offset < __y._M_offset); 24952: } 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator!=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 24952: { return !(__x == __y); } 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator>(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 24952: { return __y < __x; } 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator<=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 24952: { return !(__y < __x); } 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator>=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 24952: { return !(__x < __y); } 24952: 24952: 24952: friend ptrdiff_t 24952: operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 24952: { 24952: return (int(_S_word_bit) * (__x._M_p - __y._M_p) 24952: + __x._M_offset - __y._M_offset); 24952: } 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: struct _Bit_iterator : public _Bit_iterator_base 24952: { 24952: typedef _Bit_reference reference; 24952: 24952: 24952: 24952: typedef _Bit_reference* pointer; 24952: 24952: typedef _Bit_iterator iterator; 24952: 24952: 24952: _Bit_iterator() : _Bit_iterator_base(0, 0) { } 24952: 24952: 24952: _Bit_iterator(_Bit_type * __x, unsigned int __y) 24952: : _Bit_iterator_base(__x, __y) { } 24952: 24952: 24952: iterator 24952: _M_const_cast() const 24952: { return *this; } 24952: 24952: [[__nodiscard__]] 24952: reference 24952: operator*() const 24952: { return reference(_M_p, 1UL << _M_offset); } 24952: 24952: 24952: iterator& 24952: operator++() 24952: { 24952: _M_bump_up(); 24952: return *this; 24952: } 24952: 24952: 24952: iterator 24952: operator++(int) 24952: { 24952: iterator __tmp = *this; 24952: _M_bump_up(); 24952: return __tmp; 24952: } 24952: 24952: 24952: iterator& 24952: operator--() 24952: { 24952: _M_bump_down(); 24952: return *this; 24952: } 24952: 24952: 24952: iterator 24952: operator--(int) 24952: { 24952: iterator __tmp = *this; 24952: _M_bump_down(); 24952: return __tmp; 24952: } 24952: 24952: 24952: iterator& 24952: operator+=(difference_type __i) 24952: { 24952: _M_incr(__i); 24952: return *this; 24952: } 24952: 24952: 24952: iterator& 24952: operator-=(difference_type __i) 24952: { 24952: *this += -__i; 24952: return *this; 24952: } 24952: 24952: [[__nodiscard__]] 24952: reference 24952: operator[](difference_type __i) const 24952: { return *(*this + __i); } 24952: 24952: [[__nodiscard__]] 24952: friend iterator 24952: operator+(const iterator& __x, difference_type __n) 24952: { 24952: iterator __tmp = __x; 24952: __tmp += __n; 24952: return __tmp; 24952: } 24952: 24952: [[__nodiscard__]] 24952: friend iterator 24952: operator+(difference_type __n, const iterator& __x) 24952: { return __x + __n; } 24952: 24952: [[__nodiscard__]] 24952: friend iterator 24952: operator-(const iterator& __x, difference_type __n) 24952: { 24952: iterator __tmp = __x; 24952: __tmp -= __n; 24952: return __tmp; 24952: } 24952: }; 24952: 24952: struct _Bit_const_iterator : public _Bit_iterator_base 24952: { 24952: typedef bool reference; 24952: typedef bool const_reference; 24952: 24952: 24952: 24952: typedef const bool* pointer; 24952: 24952: typedef _Bit_const_iterator const_iterator; 24952: 24952: 24952: _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } 24952: 24952: 24952: _Bit_const_iterator(_Bit_type * __x, unsigned int __y) 24952: : _Bit_iterator_base(__x, __y) { } 24952: 24952: 24952: _Bit_const_iterator(const _Bit_iterator& __x) 24952: : _Bit_iterator_base(__x._M_p, __x._M_offset) { } 24952: 24952: 24952: _Bit_iterator 24952: _M_const_cast() const 24952: { return _Bit_iterator(_M_p, _M_offset); } 24952: 24952: [[__nodiscard__]] 24952: const_reference 24952: operator*() const 24952: { return _Bit_reference(_M_p, 1UL << _M_offset); } 24952: 24952: 24952: const_iterator& 24952: operator++() 24952: { 24952: _M_bump_up(); 24952: return *this; 24952: } 24952: 24952: 24952: const_iterator 24952: operator++(int) 24952: { 24952: const_iterator __tmp = *this; 24952: _M_bump_up(); 24952: return __tmp; 24952: } 24952: 24952: 24952: const_iterator& 24952: operator--() 24952: { 24952: _M_bump_down(); 24952: return *this; 24952: } 24952: 24952: 24952: const_iterator 24952: operator--(int) 24952: { 24952: const_iterator __tmp = *this; 24952: _M_bump_down(); 24952: return __tmp; 24952: } 24952: 24952: 24952: const_iterator& 24952: operator+=(difference_type __i) 24952: { 24952: _M_incr(__i); 24952: return *this; 24952: } 24952: 24952: 24952: const_iterator& 24952: operator-=(difference_type __i) 24952: { 24952: *this += -__i; 24952: return *this; 24952: } 24952: 24952: [[__nodiscard__]] 24952: const_reference 24952: operator[](difference_type __i) const 24952: { return *(*this + __i); } 24952: 24952: [[__nodiscard__]] 24952: friend const_iterator 24952: operator+(const const_iterator& __x, difference_type __n) 24952: { 24952: const_iterator __tmp = __x; 24952: __tmp += __n; 24952: return __tmp; 24952: } 24952: 24952: [[__nodiscard__]] 24952: friend const_iterator 24952: operator-(const const_iterator& __x, difference_type __n) 24952: { 24952: const_iterator __tmp = __x; 24952: __tmp -= __n; 24952: return __tmp; 24952: } 24952: 24952: [[__nodiscard__]] 24952: friend const_iterator 24952: operator+(difference_type __n, const const_iterator& __x) 24952: { return __x + __n; } 24952: }; 24952: 24952: template 24952: struct _Bvector_base 24952: { 24952: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 24952: rebind<_Bit_type>::other _Bit_alloc_type; 24952: typedef typename __gnu_cxx::__alloc_traits<_Bit_alloc_type> 24952: _Bit_alloc_traits; 24952: typedef typename _Bit_alloc_traits::pointer _Bit_pointer; 24952: 24952: struct _Bvector_impl_data 24952: { 24952: 24952: _Bit_iterator _M_start; 24952: # 514 "/usr/include/c++/13/bits/stl_bvector.h" 3 24952: _Bit_iterator _M_finish; 24952: _Bit_pointer _M_end_of_storage; 24952: 24952: 24952: _Bvector_impl_data() noexcept 24952: : _M_start(), _M_finish(), _M_end_of_storage() 24952: { } 24952: 24952: 24952: _Bvector_impl_data(const _Bvector_impl_data&) = default; 24952: 24952: _Bvector_impl_data& 24952: operator=(const _Bvector_impl_data&) = default; 24952: 24952: 24952: _Bvector_impl_data(_Bvector_impl_data&& __x) noexcept 24952: : _Bvector_impl_data(__x) 24952: { __x._M_reset(); } 24952: 24952: 24952: void 24952: _M_move_data(_Bvector_impl_data&& __x) noexcept 24952: { 24952: *this = __x; 24952: __x._M_reset(); 24952: } 24952: 24952: 24952: 24952: void 24952: _M_reset() noexcept 24952: { *this = _Bvector_impl_data(); } 24952: 24952: 24952: void 24952: _M_swap_data(_Bvector_impl_data& __x) noexcept 24952: { 24952: 24952: 24952: std::swap(*this, __x); 24952: } 24952: }; 24952: 24952: struct _Bvector_impl 24952: : public _Bit_alloc_type, public _Bvector_impl_data 24952: { 24952: 24952: _Bvector_impl() noexcept(is_nothrow_default_constructible<_Bit_alloc_type>::value) 24952: 24952: : _Bit_alloc_type() 24952: { } 24952: 24952: 24952: _Bvector_impl(const _Bit_alloc_type& __a) noexcept 24952: : _Bit_alloc_type(__a) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: _Bvector_impl(_Bvector_impl&& __x) noexcept 24952: : _Bit_alloc_type(std::move(__x)), _Bvector_impl_data(std::move(__x)) 24952: { } 24952: 24952: 24952: _Bvector_impl(_Bit_alloc_type&& __a, _Bvector_impl&& __x) noexcept 24952: : _Bit_alloc_type(std::move(__a)), _Bvector_impl_data(std::move(__x)) 24952: { } 24952: 24952: 24952: 24952: _Bit_type* 24952: _M_end_addr() const noexcept 24952: { 24952: if (this->_M_end_of_storage) 24952: return std::__addressof(this->_M_end_of_storage[-1]) + 1; 24952: return 0; 24952: } 24952: }; 24952: 24952: public: 24952: typedef _Alloc allocator_type; 24952: 24952: 24952: _Bit_alloc_type& 24952: _M_get_Bit_allocator() noexcept 24952: { return this->_M_impl; } 24952: 24952: 24952: const _Bit_alloc_type& 24952: _M_get_Bit_allocator() const noexcept 24952: { return this->_M_impl; } 24952: 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return allocator_type(_M_get_Bit_allocator()); } 24952: 24952: 24952: _Bvector_base() = default; 24952: 24952: 24952: 24952: 24952: 24952: _Bvector_base(const allocator_type& __a) 24952: : _M_impl(__a) { } 24952: 24952: 24952: _Bvector_base(_Bvector_base&&) = default; 24952: 24952: 24952: _Bvector_base(_Bvector_base&& __x, const allocator_type& __a) noexcept 24952: : _M_impl(_Bit_alloc_type(__a), std::move(__x._M_impl)) 24952: { } 24952: 24952: 24952: 24952: ~_Bvector_base() 24952: { this->_M_deallocate(); } 24952: 24952: protected: 24952: _Bvector_impl _M_impl; 24952: 24952: 24952: _Bit_pointer 24952: _M_allocate(size_t __n) 24952: { 24952: _Bit_pointer __p = _Bit_alloc_traits::allocate(_M_impl, _S_nword(__n)); 24952: # 652 "/usr/include/c++/13/bits/stl_bvector.h" 3 24952: return __p; 24952: } 24952: 24952: 24952: void 24952: _M_deallocate() 24952: { 24952: if (_M_impl._M_start._M_p) 24952: { 24952: const size_t __n = _M_impl._M_end_addr() - _M_impl._M_start._M_p; 24952: _Bit_alloc_traits::deallocate(_M_impl, 24952: _M_impl._M_end_of_storage - __n, 24952: __n); 24952: _M_impl._M_reset(); 24952: } 24952: } 24952: 24952: 24952: 24952: void 24952: _M_move_data(_Bvector_base&& __x) noexcept 24952: { _M_impl._M_move_data(std::move(__x._M_impl)); } 24952: 24952: 24952: constexpr 24952: static size_t 24952: _S_nword(size_t __n) 24952: { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } 24952: }; 24952: # 703 "/usr/include/c++/13/bits/stl_bvector.h" 3 24952: template 24952: class vector : protected _Bvector_base<_Alloc> 24952: { 24952: typedef _Bvector_base<_Alloc> _Base; 24952: typedef typename _Base::_Bit_pointer _Bit_pointer; 24952: typedef typename _Base::_Bit_alloc_traits _Bit_alloc_traits; 24952: 24952: 24952: friend struct std::hash; 24952: 24952: 24952: public: 24952: typedef bool value_type; 24952: typedef size_t size_type; 24952: typedef ptrdiff_t difference_type; 24952: typedef _Bit_reference reference; 24952: typedef bool const_reference; 24952: typedef _Bit_reference* pointer; 24952: typedef const bool* const_pointer; 24952: typedef _Bit_iterator iterator; 24952: typedef _Bit_const_iterator const_iterator; 24952: typedef std::reverse_iterator const_reverse_iterator; 24952: typedef std::reverse_iterator reverse_iterator; 24952: typedef _Alloc allocator_type; 24952: 24952: 24952: allocator_type 24952: get_allocator() const 24952: { return _Base::get_allocator(); } 24952: 24952: protected: 24952: using _Base::_M_allocate; 24952: using _Base::_M_deallocate; 24952: using _Base::_S_nword; 24952: using _Base::_M_get_Bit_allocator; 24952: 24952: public: 24952: 24952: vector() = default; 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: vector(const allocator_type& __a) 24952: : _Base(__a) { } 24952: 24952: 24952: 24952: explicit 24952: vector(size_type __n, const allocator_type& __a = allocator_type()) 24952: : vector(__n, false, __a) 24952: { } 24952: 24952: 24952: vector(size_type __n, const bool& __value, 24952: const allocator_type& __a = allocator_type()) 24952: 24952: 24952: 24952: 24952: 24952: : _Base(__a) 24952: { 24952: _M_initialize(__n); 24952: _M_initialize_value(__value); 24952: } 24952: 24952: 24952: vector(const vector& __x) 24952: : _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator())) 24952: { 24952: const_iterator __xbegin = __x.begin(), __xend = __x.end(); 24952: _M_initialize(__x.size()); 24952: _M_copy_aligned(__xbegin, __xend, begin()); 24952: } 24952: 24952: 24952: vector(vector&&) = default; 24952: 24952: private: 24952: 24952: vector(vector&& __x, const allocator_type& __a, true_type) noexcept 24952: : _Base(std::move(__x), __a) 24952: { } 24952: 24952: 24952: vector(vector&& __x, const allocator_type& __a, false_type) 24952: : _Base(__a) 24952: { 24952: if (__x.get_allocator() == __a) 24952: this->_M_move_data(std::move(__x)); 24952: else 24952: { 24952: _M_initialize(__x.size()); 24952: _M_copy_aligned(__x.begin(), __x.end(), begin()); 24952: __x.clear(); 24952: } 24952: } 24952: 24952: public: 24952: 24952: vector(vector&& __x, const __type_identity_t& __a) 24952: noexcept(_Bit_alloc_traits::_S_always_equal()) 24952: : vector(std::move(__x), __a, 24952: typename _Bit_alloc_traits::is_always_equal{}) 24952: { } 24952: 24952: 24952: vector(const vector& __x, const __type_identity_t& __a) 24952: : _Base(__a) 24952: { 24952: _M_initialize(__x.size()); 24952: _M_copy_aligned(__x.begin(), __x.end(), begin()); 24952: } 24952: 24952: 24952: vector(initializer_list __l, 24952: const allocator_type& __a = allocator_type()) 24952: : _Base(__a) 24952: { 24952: _M_initialize_range(__l.begin(), __l.end(), 24952: random_access_iterator_tag()); 24952: } 24952: 24952: 24952: 24952: template> 24952: 24952: vector(_InputIterator __first, _InputIterator __last, 24952: const allocator_type& __a = allocator_type()) 24952: : _Base(__a) 24952: { 24952: _M_initialize_range(__first, __last, 24952: std::__iterator_category(__first)); 24952: } 24952: # 853 "/usr/include/c++/13/bits/stl_bvector.h" 3 24952: 24952: ~vector() noexcept { } 24952: 24952: 24952: vector& 24952: operator=(const vector& __x) 24952: { 24952: if (&__x == this) 24952: return *this; 24952: 24952: if (_Bit_alloc_traits::_S_propagate_on_copy_assign()) 24952: { 24952: if (this->_M_get_Bit_allocator() != __x._M_get_Bit_allocator()) 24952: { 24952: this->_M_deallocate(); 24952: std::__alloc_on_copy(_M_get_Bit_allocator(), 24952: __x._M_get_Bit_allocator()); 24952: _M_initialize(__x.size()); 24952: } 24952: else 24952: std::__alloc_on_copy(_M_get_Bit_allocator(), 24952: __x._M_get_Bit_allocator()); 24952: } 24952: 24952: if (__x.size() > capacity()) 24952: { 24952: this->_M_deallocate(); 24952: _M_initialize(__x.size()); 24952: } 24952: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 24952: begin()); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: vector& 24952: operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move()) 24952: { 24952: if (_Bit_alloc_traits::_S_propagate_on_move_assign() 24952: || this->_M_get_Bit_allocator() == __x._M_get_Bit_allocator()) 24952: { 24952: this->_M_deallocate(); 24952: this->_M_move_data(std::move(__x)); 24952: std::__alloc_on_move(_M_get_Bit_allocator(), 24952: __x._M_get_Bit_allocator()); 24952: } 24952: else 24952: { 24952: if (__x.size() > capacity()) 24952: { 24952: this->_M_deallocate(); 24952: _M_initialize(__x.size()); 24952: } 24952: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 24952: begin()); 24952: __x.clear(); 24952: } 24952: return *this; 24952: } 24952: 24952: 24952: vector& 24952: operator=(initializer_list __l) 24952: { 24952: this->assign(__l.begin(), __l.end()); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: assign(size_type __n, const bool& __x) 24952: { _M_fill_assign(__n, __x); } 24952: 24952: 24952: template> 24952: 24952: void 24952: assign(_InputIterator __first, _InputIterator __last) 24952: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 24952: # 951 "/usr/include/c++/13/bits/stl_bvector.h" 3 24952: 24952: void 24952: assign(initializer_list __l) 24952: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 24952: 24952: 24952: [[__nodiscard__]] 24952: iterator 24952: begin() noexcept 24952: { return iterator(this->_M_impl._M_start._M_p, 0); } 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: begin() const noexcept 24952: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 24952: 24952: [[__nodiscard__]] 24952: iterator 24952: end() noexcept 24952: { return this->_M_impl._M_finish; } 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: end() const noexcept 24952: { return this->_M_impl._M_finish; } 24952: 24952: [[__nodiscard__]] 24952: reverse_iterator 24952: rbegin() noexcept 24952: { return reverse_iterator(end()); } 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: rbegin() const noexcept 24952: { return const_reverse_iterator(end()); } 24952: 24952: [[__nodiscard__]] 24952: reverse_iterator 24952: rend() noexcept 24952: { return reverse_iterator(begin()); } 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: rend() const noexcept 24952: { return const_reverse_iterator(begin()); } 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: cbegin() const noexcept 24952: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: cend() const noexcept 24952: { return this->_M_impl._M_finish; } 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: crbegin() const noexcept 24952: { return const_reverse_iterator(end()); } 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: crend() const noexcept 24952: { return const_reverse_iterator(begin()); } 24952: 24952: 24952: [[__nodiscard__]] 24952: size_type 24952: size() const noexcept 24952: { return size_type(end() - begin()); } 24952: 24952: [[__nodiscard__]] 24952: size_type 24952: max_size() const noexcept 24952: { 24952: const size_type __isize = 24952: __gnu_cxx::__numeric_traits::__max 24952: - int(_S_word_bit) + 1; 24952: const size_type __asize 24952: = _Bit_alloc_traits::max_size(_M_get_Bit_allocator()); 24952: return (__asize <= __isize / int(_S_word_bit) 24952: ? __asize * int(_S_word_bit) : __isize); 24952: } 24952: 24952: [[__nodiscard__]] 24952: size_type 24952: capacity() const noexcept 24952: { return size_type(const_iterator(this->_M_impl._M_end_addr(), 0) 24952: - begin()); } 24952: 24952: [[__nodiscard__]] 24952: bool 24952: empty() const noexcept 24952: { return begin() == end(); } 24952: 24952: [[__nodiscard__]] 24952: reference 24952: operator[](size_type __n) 24952: { return begin()[__n]; } 24952: 24952: [[__nodiscard__]] 24952: const_reference 24952: operator[](size_type __n) const 24952: { return begin()[__n]; } 24952: 24952: protected: 24952: 24952: void 24952: _M_range_check(size_type __n) const 24952: { 24952: if (__n >= this->size()) 24952: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 24952: 24952: , 24952: __n, this->size()); 24952: } 24952: 24952: public: 24952: 24952: reference 24952: at(size_type __n) 24952: { 24952: _M_range_check(__n); 24952: return (*this)[__n]; 24952: } 24952: 24952: 24952: const_reference 24952: at(size_type __n) const 24952: { 24952: _M_range_check(__n); 24952: return (*this)[__n]; 24952: } 24952: 24952: 24952: void 24952: reserve(size_type __n) 24952: { 24952: if (__n > max_size()) 24952: __throw_length_error(("vector::reserve")); 24952: if (capacity() < __n) 24952: _M_reallocate(__n); 24952: } 24952: 24952: [[__nodiscard__]] 24952: reference 24952: front() 24952: { return *begin(); } 24952: 24952: [[__nodiscard__]] 24952: const_reference 24952: front() const 24952: { return *begin(); } 24952: 24952: [[__nodiscard__]] 24952: reference 24952: back() 24952: { return *(end() - 1); } 24952: 24952: [[__nodiscard__]] 24952: const_reference 24952: back() const 24952: { return *(end() - 1); } 24952: 24952: 24952: void 24952: push_back(bool __x) 24952: { 24952: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 24952: *this->_M_impl._M_finish++ = __x; 24952: else 24952: _M_insert_aux(end(), __x); 24952: } 24952: 24952: 24952: void 24952: swap(vector& __x) noexcept 24952: { 24952: 24952: 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) 24952: ; 24952: 24952: this->_M_impl._M_swap_data(__x._M_impl); 24952: _Bit_alloc_traits::_S_on_swap(_M_get_Bit_allocator(), 24952: __x._M_get_Bit_allocator()); 24952: } 24952: 24952: 24952: 24952: static void 24952: swap(reference __x, reference __y) noexcept 24952: { 24952: bool __tmp = __x; 24952: __x = __y; 24952: __y = __tmp; 24952: } 24952: 24952: 24952: iterator 24952: 24952: insert(const_iterator __position, const bool& __x) 24952: 24952: 24952: 24952: { 24952: const difference_type __n = __position - begin(); 24952: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr() 24952: && __position == end()) 24952: *this->_M_impl._M_finish++ = __x; 24952: else 24952: _M_insert_aux(__position._M_const_cast(), __x); 24952: return begin() + __n; 24952: } 24952: 24952: 24952: __attribute__ ((__deprecated__ ("use '" "insert(position, false)" "' instead"))) 24952: iterator 24952: insert(const_iterator __position) 24952: { return this->insert(__position._M_const_cast(), false); } 24952: 24952: 24952: 24952: template> 24952: 24952: iterator 24952: insert(const_iterator __position, 24952: _InputIterator __first, _InputIterator __last) 24952: { 24952: difference_type __offset = __position - cbegin(); 24952: _M_insert_range(__position._M_const_cast(), 24952: __first, __last, 24952: std::__iterator_category(__first)); 24952: return begin() + __offset; 24952: } 24952: # 1201 "/usr/include/c++/13/bits/stl_bvector.h" 3 24952: 24952: iterator 24952: insert(const_iterator __position, size_type __n, const bool& __x) 24952: { 24952: difference_type __offset = __position - cbegin(); 24952: _M_fill_insert(__position._M_const_cast(), __n, __x); 24952: return begin() + __offset; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: insert(const_iterator __p, initializer_list __l) 24952: { return this->insert(__p, __l.begin(), __l.end()); } 24952: 24952: 24952: 24952: void 24952: pop_back() 24952: { --this->_M_impl._M_finish; } 24952: 24952: 24952: iterator 24952: 24952: erase(const_iterator __position) 24952: 24952: 24952: 24952: { return _M_erase(__position._M_const_cast()); } 24952: 24952: 24952: iterator 24952: 24952: erase(const_iterator __first, const_iterator __last) 24952: 24952: 24952: 24952: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 24952: 24952: 24952: void 24952: resize(size_type __new_size, bool __x = bool()) 24952: { 24952: if (__new_size < size()) 24952: _M_erase_at_end(begin() + difference_type(__new_size)); 24952: else 24952: insert(end(), __new_size - size(), __x); 24952: } 24952: 24952: 24952: 24952: void 24952: shrink_to_fit() 24952: { _M_shrink_to_fit(); } 24952: 24952: 24952: 24952: void 24952: flip() noexcept 24952: { 24952: _Bit_type * const __end = this->_M_impl._M_end_addr(); 24952: for (_Bit_type * __p = this->_M_impl._M_start._M_p; __p != __end; ++__p) 24952: *__p = ~*__p; 24952: } 24952: 24952: 24952: void 24952: clear() noexcept 24952: { _M_erase_at_end(begin()); } 24952: 24952: 24952: template 24952: 24952: 24952: reference 24952: 24952: 24952: 24952: emplace_back(_Args&&... __args) 24952: { 24952: push_back(bool(__args...)); 24952: 24952: return back(); 24952: 24952: } 24952: 24952: template 24952: 24952: iterator 24952: emplace(const_iterator __pos, _Args&&... __args) 24952: { return insert(__pos, bool(__args...)); } 24952: 24952: 24952: protected: 24952: 24952: 24952: iterator 24952: _M_copy_aligned(const_iterator __first, const_iterator __last, 24952: iterator __result) 24952: { 24952: _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); 24952: return std::copy(const_iterator(__last._M_p, 0), __last, 24952: iterator(__q, 0)); 24952: } 24952: 24952: 24952: void 24952: _M_initialize(size_type __n) 24952: { 24952: if (__n) 24952: { 24952: _Bit_pointer __q = this->_M_allocate(__n); 24952: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 24952: iterator __start = iterator(std::__addressof(*__q), 0); 24952: this->_M_impl._M_start = __start; 24952: this->_M_impl._M_finish = __start + difference_type(__n); 24952: } 24952: } 24952: 24952: 24952: void 24952: _M_initialize_value(bool __x) noexcept 24952: { 24952: if (_Bit_type* __p = this->_M_impl._M_start._M_p) 24952: __fill_bvector_n(__p, this->_M_impl._M_end_addr() - __p, __x); 24952: } 24952: 24952: 24952: void 24952: _M_reallocate(size_type __n); 24952: 24952: 24952: 24952: bool 24952: _M_shrink_to_fit(); 24952: # 1362 "/usr/include/c++/13/bits/stl_bvector.h" 3 24952: template 24952: 24952: void 24952: _M_initialize_range(_InputIterator __first, _InputIterator __last, 24952: std::input_iterator_tag) 24952: { 24952: for (; __first != __last; ++__first) 24952: push_back(*__first); 24952: } 24952: 24952: template 24952: 24952: void 24952: _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, 24952: std::forward_iterator_tag) 24952: { 24952: const size_type __n = std::distance(__first, __last); 24952: _M_initialize(__n); 24952: std::copy(__first, __last, begin()); 24952: } 24952: # 1398 "/usr/include/c++/13/bits/stl_bvector.h" 3 24952: 24952: void 24952: _M_fill_assign(size_t __n, bool __x) 24952: { 24952: if (__n > size()) 24952: { 24952: _M_initialize_value(__x); 24952: insert(end(), __n - size(), __x); 24952: } 24952: else 24952: { 24952: _M_erase_at_end(begin() + __n); 24952: _M_initialize_value(__x); 24952: } 24952: } 24952: 24952: template 24952: 24952: void 24952: _M_assign_aux(_InputIterator __first, _InputIterator __last, 24952: std::input_iterator_tag) 24952: { 24952: iterator __cur = begin(); 24952: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 24952: *__cur = *__first; 24952: if (__first == __last) 24952: _M_erase_at_end(__cur); 24952: else 24952: insert(end(), __first, __last); 24952: } 24952: 24952: template 24952: 24952: void 24952: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 24952: std::forward_iterator_tag) 24952: { 24952: const size_type __len = std::distance(__first, __last); 24952: if (__len < size()) 24952: _M_erase_at_end(std::copy(__first, __last, begin())); 24952: else 24952: { 24952: _ForwardIterator __mid = __first; 24952: std::advance(__mid, size()); 24952: std::copy(__first, __mid, begin()); 24952: insert(end(), __mid, __last); 24952: } 24952: } 24952: # 1465 "/usr/include/c++/13/bits/stl_bvector.h" 3 24952: 24952: void 24952: _M_fill_insert(iterator __position, size_type __n, bool __x); 24952: 24952: template 24952: 24952: void 24952: _M_insert_range(iterator __pos, _InputIterator __first, 24952: _InputIterator __last, std::input_iterator_tag) 24952: { 24952: for (; __first != __last; ++__first) 24952: { 24952: __pos = insert(__pos, *__first); 24952: ++__pos; 24952: } 24952: } 24952: 24952: template 24952: 24952: void 24952: _M_insert_range(iterator __position, _ForwardIterator __first, 24952: _ForwardIterator __last, std::forward_iterator_tag); 24952: 24952: 24952: void 24952: _M_insert_aux(iterator __position, bool __x); 24952: 24952: 24952: size_type 24952: _M_check_len(size_type __n, const char* __s) const 24952: { 24952: if (max_size() - size() < __n) 24952: __throw_length_error((__s)); 24952: 24952: const size_type __len = size() + std::max(size(), __n); 24952: return (__len < size() || __len > max_size()) ? max_size() : __len; 24952: } 24952: 24952: 24952: void 24952: _M_erase_at_end(iterator __pos) 24952: { this->_M_impl._M_finish = __pos; } 24952: 24952: 24952: iterator 24952: _M_erase(iterator __pos); 24952: 24952: 24952: iterator 24952: _M_erase(iterator __first, iterator __last); 24952: 24952: protected: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void data() = delete; 24952: 24952: 24952: 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: inline void 24952: __fill_bvector(_Bit_type* __v, unsigned int __first, unsigned int __last, 24952: bool __x) noexcept 24952: { 24952: const _Bit_type __fmask = ~0ul << __first; 24952: const _Bit_type __lmask = ~0ul >> (_S_word_bit - __last); 24952: const _Bit_type __mask = __fmask & __lmask; 24952: 24952: if (__x) 24952: *__v |= __mask; 24952: else 24952: *__v &= ~__mask; 24952: } 24952: 24952: 24952: __attribute__((__nonnull__)) 24952: 24952: inline void 24952: __fill_bvector_n(_Bit_type* __p, size_t __n, bool __x) noexcept 24952: { 24952: # 1561 "/usr/include/c++/13/bits/stl_bvector.h" 3 24952: __builtin_memset(__p, __x ? ~0 : 0, __n * sizeof(_Bit_type)); 24952: } 24952: 24952: 24952: 24952: inline void 24952: __fill_a1(std::_Bit_iterator __first, 24952: std::_Bit_iterator __last, const bool& __x) 24952: { 24952: if (__first._M_p != __last._M_p) 24952: { 24952: _Bit_type* __first_p = __first._M_p; 24952: if (__first._M_offset != 0) 24952: __fill_bvector(__first_p++, __first._M_offset, _S_word_bit, __x); 24952: 24952: __fill_bvector_n(__first_p, __last._M_p - __first_p, __x); 24952: 24952: if (__last._M_offset != 0) 24952: __fill_bvector(__last._M_p, 0, __last._M_offset, __x); 24952: } 24952: else if (__first._M_offset != __last._M_offset) 24952: __fill_bvector(__first._M_p, __first._M_offset, __last._M_offset, __x); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: struct hash> 24952: : public __hash_base> 24952: { 24952: size_t 24952: operator()(const std::vector&) const noexcept; 24952: }; 24952: 24952: 24952: 24952: } 24952: # 68 "/usr/include/c++/13/vector" 2 3 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/vector.tcc" 1 3 24952: # 59 "/usr/include/c++/13/bits/vector.tcc" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: 24952: void 24952: vector<_Tp, _Alloc>:: 24952: reserve(size_type __n) 24952: { 24952: if (__n > this->max_size()) 24952: __throw_length_error(("vector::reserve")); 24952: if (this->capacity() < __n) 24952: { 24952: const size_type __old_size = size(); 24952: pointer __tmp; 24952: 24952: if constexpr (_S_use_relocate()) 24952: { 24952: __tmp = this->_M_allocate(__n); 24952: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 24952: __tmp, _M_get_Tp_allocator()); 24952: } 24952: else 24952: 24952: { 24952: __tmp = _M_allocate_and_copy(__n, 24952: std::__make_move_if_noexcept_iterator(this->_M_impl._M_start), 24952: std::__make_move_if_noexcept_iterator(this->_M_impl._M_finish)); 24952: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: } 24952: ; 24952: _M_deallocate(this->_M_impl._M_start, 24952: this->_M_impl._M_end_of_storage 24952: - this->_M_impl._M_start); 24952: this->_M_impl._M_start = __tmp; 24952: this->_M_impl._M_finish = __tmp + __old_size; 24952: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 24952: } 24952: } 24952: 24952: 24952: template 24952: template 24952: 24952: 24952: typename vector<_Tp, _Alloc>::reference 24952: 24952: 24952: 24952: vector<_Tp, _Alloc>:: 24952: emplace_back(_Args&&... __args) 24952: { 24952: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 24952: { 24952: ; 24952: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 24952: std::forward<_Args>(__args)...); 24952: ++this->_M_impl._M_finish; 24952: ; 24952: } 24952: else 24952: _M_realloc_insert(end(), std::forward<_Args>(__args)...); 24952: 24952: return back(); 24952: 24952: } 24952: 24952: 24952: template 24952: 24952: typename vector<_Tp, _Alloc>::iterator 24952: vector<_Tp, _Alloc>:: 24952: 24952: insert(const_iterator __position, const value_type& __x) 24952: 24952: 24952: 24952: { 24952: const size_type __n = __position - begin(); 24952: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__position != const_iterator())) __builtin_unreachable(); } while (false); 24952: if (!(__position != const_iterator())) 24952: __builtin_unreachable(); 24952: 24952: if (__position == end()) 24952: { 24952: ; 24952: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 24952: __x); 24952: ++this->_M_impl._M_finish; 24952: ; 24952: } 24952: else 24952: { 24952: 24952: const auto __pos = begin() + (__position - cbegin()); 24952: 24952: 24952: _Temporary_value __x_copy(this, __x); 24952: _M_insert_aux(__pos, std::move(__x_copy._M_val())); 24952: 24952: 24952: 24952: } 24952: } 24952: else 24952: 24952: _M_realloc_insert(begin() + (__position - cbegin()), __x); 24952: 24952: 24952: 24952: 24952: return iterator(this->_M_impl._M_start + __n); 24952: } 24952: 24952: template 24952: 24952: typename vector<_Tp, _Alloc>::iterator 24952: vector<_Tp, _Alloc>:: 24952: _M_erase(iterator __position) 24952: { 24952: if (__position + 1 != end()) 24952: std::move(__position + 1, end(), __position); 24952: --this->_M_impl._M_finish; 24952: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 24952: ; 24952: return __position; 24952: } 24952: 24952: template 24952: 24952: typename vector<_Tp, _Alloc>::iterator 24952: vector<_Tp, _Alloc>:: 24952: _M_erase(iterator __first, iterator __last) 24952: { 24952: if (__first != __last) 24952: { 24952: if (__last != end()) 24952: std::move(__last, end(), __first); 24952: _M_erase_at_end(__first.base() + (end() - __last)); 24952: } 24952: return __first; 24952: } 24952: 24952: template 24952: 24952: vector<_Tp, _Alloc>& 24952: vector<_Tp, _Alloc>:: 24952: operator=(const vector<_Tp, _Alloc>& __x) 24952: { 24952: if (std::__addressof(__x) != this) 24952: { 24952: ; 24952: 24952: if (_Alloc_traits::_S_propagate_on_copy_assign()) 24952: { 24952: if (!_Alloc_traits::_S_always_equal() 24952: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 24952: { 24952: 24952: this->clear(); 24952: _M_deallocate(this->_M_impl._M_start, 24952: this->_M_impl._M_end_of_storage 24952: - this->_M_impl._M_start); 24952: this->_M_impl._M_start = nullptr; 24952: this->_M_impl._M_finish = nullptr; 24952: this->_M_impl._M_end_of_storage = nullptr; 24952: } 24952: std::__alloc_on_copy(_M_get_Tp_allocator(), 24952: __x._M_get_Tp_allocator()); 24952: } 24952: 24952: const size_type __xlen = __x.size(); 24952: if (__xlen > capacity()) 24952: { 24952: pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), 24952: __x.end()); 24952: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: _M_deallocate(this->_M_impl._M_start, 24952: this->_M_impl._M_end_of_storage 24952: - this->_M_impl._M_start); 24952: this->_M_impl._M_start = __tmp; 24952: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; 24952: } 24952: else if (size() >= __xlen) 24952: { 24952: std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), 24952: end(), _M_get_Tp_allocator()); 24952: } 24952: else 24952: { 24952: std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), 24952: this->_M_impl._M_start); 24952: std::__uninitialized_copy_a(__x._M_impl._M_start + size(), 24952: __x._M_impl._M_finish, 24952: this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: } 24952: this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: 24952: void 24952: vector<_Tp, _Alloc>:: 24952: _M_fill_assign(size_t __n, const value_type& __val) 24952: { 24952: if (__n > capacity()) 24952: { 24952: vector __tmp(__n, __val, _M_get_Tp_allocator()); 24952: __tmp._M_impl._M_swap_data(this->_M_impl); 24952: } 24952: else if (__n > size()) 24952: { 24952: std::fill(begin(), end(), __val); 24952: const size_type __add = __n - size(); 24952: ; 24952: this->_M_impl._M_finish = 24952: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 24952: __add, __val, _M_get_Tp_allocator()); 24952: ; 24952: } 24952: else 24952: _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); 24952: } 24952: 24952: template 24952: template 24952: 24952: void 24952: vector<_Tp, _Alloc>:: 24952: _M_assign_aux(_InputIterator __first, _InputIterator __last, 24952: std::input_iterator_tag) 24952: { 24952: pointer __cur(this->_M_impl._M_start); 24952: for (; __first != __last && __cur != this->_M_impl._M_finish; 24952: ++__cur, (void)++__first) 24952: *__cur = *__first; 24952: if (__first == __last) 24952: _M_erase_at_end(__cur); 24952: else 24952: _M_range_insert(end(), __first, __last, 24952: std::__iterator_category(__first)); 24952: } 24952: 24952: template 24952: template 24952: 24952: void 24952: vector<_Tp, _Alloc>:: 24952: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 24952: std::forward_iterator_tag) 24952: { 24952: const size_type __len = std::distance(__first, __last); 24952: 24952: if (__len > capacity()) 24952: { 24952: _S_check_init_len(__len, _M_get_Tp_allocator()); 24952: pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); 24952: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: ; 24952: _M_deallocate(this->_M_impl._M_start, 24952: this->_M_impl._M_end_of_storage 24952: - this->_M_impl._M_start); 24952: this->_M_impl._M_start = __tmp; 24952: this->_M_impl._M_finish = this->_M_impl._M_start + __len; 24952: this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; 24952: } 24952: else if (size() >= __len) 24952: _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); 24952: else 24952: { 24952: _ForwardIterator __mid = __first; 24952: std::advance(__mid, size()); 24952: std::copy(__first, __mid, this->_M_impl._M_start); 24952: const size_type __attribute__((__unused__)) __n = __len - size(); 24952: ; 24952: this->_M_impl._M_finish = 24952: std::__uninitialized_copy_a(__mid, __last, 24952: this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: ; 24952: } 24952: } 24952: 24952: 24952: template 24952: 24952: auto 24952: vector<_Tp, _Alloc>:: 24952: _M_insert_rval(const_iterator __position, value_type&& __v) -> iterator 24952: { 24952: const auto __n = __position - cbegin(); 24952: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 24952: if (__position == cend()) 24952: { 24952: ; 24952: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 24952: std::move(__v)); 24952: ++this->_M_impl._M_finish; 24952: ; 24952: } 24952: else 24952: _M_insert_aux(begin() + __n, std::move(__v)); 24952: else 24952: _M_realloc_insert(begin() + __n, std::move(__v)); 24952: 24952: return iterator(this->_M_impl._M_start + __n); 24952: } 24952: 24952: template 24952: template 24952: 24952: auto 24952: vector<_Tp, _Alloc>:: 24952: _M_emplace_aux(const_iterator __position, _Args&&... __args) 24952: -> iterator 24952: { 24952: const auto __n = __position - cbegin(); 24952: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 24952: if (__position == cend()) 24952: { 24952: ; 24952: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 24952: std::forward<_Args>(__args)...); 24952: ++this->_M_impl._M_finish; 24952: ; 24952: } 24952: else 24952: { 24952: 24952: 24952: 24952: _Temporary_value __tmp(this, std::forward<_Args>(__args)...); 24952: _M_insert_aux(begin() + __n, std::move(__tmp._M_val())); 24952: } 24952: else 24952: _M_realloc_insert(begin() + __n, std::forward<_Args>(__args)...); 24952: 24952: return iterator(this->_M_impl._M_start + __n); 24952: } 24952: 24952: template 24952: template 24952: 24952: void 24952: vector<_Tp, _Alloc>:: 24952: _M_insert_aux(iterator __position, _Arg&& __arg) 24952: 24952: 24952: 24952: 24952: 24952: 24952: { 24952: ; 24952: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 24952: std::move(*(this->_M_impl._M_finish - 1))); 24952: ++this->_M_impl._M_finish; 24952: ; 24952: 24952: 24952: 24952: std::move_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) 24952: 24952: ; 24952: 24952: 24952: 24952: *__position = std::forward<_Arg>(__arg); 24952: 24952: } 24952: 24952: 24952: template 24952: template 24952: 24952: void 24952: vector<_Tp, _Alloc>:: 24952: _M_realloc_insert(iterator __position, _Args&&... __args) 24952: 24952: 24952: 24952: 24952: 24952: 24952: { 24952: const size_type __len = 24952: _M_check_len(size_type(1), "vector::_M_realloc_insert"); 24952: pointer __old_start = this->_M_impl._M_start; 24952: pointer __old_finish = this->_M_impl._M_finish; 24952: const size_type __elems_before = __position - begin(); 24952: pointer __new_start(this->_M_allocate(__len)); 24952: pointer __new_finish(__new_start); 24952: try 24952: { 24952: 24952: 24952: 24952: 24952: 24952: _Alloc_traits::construct(this->_M_impl, 24952: __new_start + __elems_before, 24952: 24952: std::forward<_Args>(__args)...); 24952: 24952: 24952: 24952: __new_finish = pointer(); 24952: 24952: 24952: if constexpr (_S_use_relocate()) 24952: { 24952: __new_finish = _S_relocate(__old_start, __position.base(), 24952: __new_start, _M_get_Tp_allocator()); 24952: 24952: ++__new_finish; 24952: 24952: __new_finish = _S_relocate(__position.base(), __old_finish, 24952: __new_finish, _M_get_Tp_allocator()); 24952: } 24952: else 24952: 24952: { 24952: __new_finish 24952: = std::__uninitialized_move_if_noexcept_a 24952: (__old_start, __position.base(), 24952: __new_start, _M_get_Tp_allocator()); 24952: 24952: ++__new_finish; 24952: 24952: __new_finish 24952: = std::__uninitialized_move_if_noexcept_a 24952: (__position.base(), __old_finish, 24952: __new_finish, _M_get_Tp_allocator()); 24952: } 24952: } 24952: catch(...) 24952: { 24952: if (!__new_finish) 24952: _Alloc_traits::destroy(this->_M_impl, 24952: __new_start + __elems_before); 24952: else 24952: std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator()); 24952: _M_deallocate(__new_start, __len); 24952: throw; 24952: } 24952: 24952: if constexpr (!_S_use_relocate()) 24952: 24952: std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); 24952: ; 24952: _M_deallocate(__old_start, 24952: this->_M_impl._M_end_of_storage - __old_start); 24952: this->_M_impl._M_start = __new_start; 24952: this->_M_impl._M_finish = __new_finish; 24952: this->_M_impl._M_end_of_storage = __new_start + __len; 24952: } 24952: 24952: template 24952: 24952: void 24952: vector<_Tp, _Alloc>:: 24952: _M_fill_insert(iterator __position, size_type __n, const value_type& __x) 24952: { 24952: if (__n != 0) 24952: { 24952: if (size_type(this->_M_impl._M_end_of_storage 24952: - this->_M_impl._M_finish) >= __n) 24952: { 24952: 24952: 24952: 24952: _Temporary_value __tmp(this, __x); 24952: value_type& __x_copy = __tmp._M_val(); 24952: 24952: const size_type __elems_after = end() - __position; 24952: pointer __old_finish(this->_M_impl._M_finish); 24952: if (__elems_after > __n) 24952: { 24952: ; 24952: std::__uninitialized_move_a(__old_finish - __n, 24952: __old_finish, 24952: __old_finish, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_finish += __n; 24952: ; 24952: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 24952: ; 24952: std::fill(__position.base(), __position.base() + __n, 24952: __x_copy); 24952: } 24952: else 24952: { 24952: ; 24952: this->_M_impl._M_finish = 24952: std::__uninitialized_fill_n_a(__old_finish, 24952: __n - __elems_after, 24952: __x_copy, 24952: _M_get_Tp_allocator()); 24952: ; 24952: std::__uninitialized_move_a(__position.base(), __old_finish, 24952: this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_finish += __elems_after; 24952: ; 24952: std::fill(__position.base(), __old_finish, __x_copy); 24952: } 24952: } 24952: else 24952: { 24952: 24952: 24952: pointer __old_start = this->_M_impl._M_start; 24952: pointer __old_finish = this->_M_impl._M_finish; 24952: const pointer __pos = __position.base(); 24952: 24952: const size_type __len = 24952: _M_check_len(__n, "vector::_M_fill_insert"); 24952: const size_type __elems_before = __pos - __old_start; 24952: pointer __new_start(this->_M_allocate(__len)); 24952: pointer __new_finish(__new_start); 24952: try 24952: { 24952: 24952: std::__uninitialized_fill_n_a(__new_start + __elems_before, 24952: __n, __x, 24952: _M_get_Tp_allocator()); 24952: __new_finish = pointer(); 24952: 24952: __new_finish 24952: = std::__uninitialized_move_if_noexcept_a 24952: (__old_start, __pos, __new_start, _M_get_Tp_allocator()); 24952: 24952: __new_finish += __n; 24952: 24952: __new_finish 24952: = std::__uninitialized_move_if_noexcept_a 24952: (__pos, __old_finish, __new_finish, _M_get_Tp_allocator()); 24952: } 24952: catch(...) 24952: { 24952: if (!__new_finish) 24952: std::_Destroy(__new_start + __elems_before, 24952: __new_start + __elems_before + __n, 24952: _M_get_Tp_allocator()); 24952: else 24952: std::_Destroy(__new_start, __new_finish, 24952: _M_get_Tp_allocator()); 24952: _M_deallocate(__new_start, __len); 24952: throw; 24952: } 24952: std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); 24952: ; 24952: _M_deallocate(__old_start, 24952: this->_M_impl._M_end_of_storage - __old_start); 24952: this->_M_impl._M_start = __new_start; 24952: this->_M_impl._M_finish = __new_finish; 24952: this->_M_impl._M_end_of_storage = __new_start + __len; 24952: } 24952: } 24952: } 24952: 24952: 24952: template 24952: 24952: void 24952: vector<_Tp, _Alloc>:: 24952: _M_default_append(size_type __n) 24952: { 24952: if (__n != 0) 24952: { 24952: const size_type __size = size(); 24952: size_type __navail = size_type(this->_M_impl._M_end_of_storage 24952: - this->_M_impl._M_finish); 24952: 24952: if (__size > max_size() || __navail > max_size() - __size) 24952: __builtin_unreachable(); 24952: 24952: if (__navail >= __n) 24952: { 24952: ; 24952: this->_M_impl._M_finish = 24952: std::__uninitialized_default_n_a(this->_M_impl._M_finish, 24952: __n, _M_get_Tp_allocator()); 24952: ; 24952: } 24952: else 24952: { 24952: 24952: 24952: pointer __old_start = this->_M_impl._M_start; 24952: pointer __old_finish = this->_M_impl._M_finish; 24952: 24952: const size_type __len = 24952: _M_check_len(__n, "vector::_M_default_append"); 24952: pointer __new_start(this->_M_allocate(__len)); 24952: if constexpr (_S_use_relocate()) 24952: { 24952: try 24952: { 24952: std::__uninitialized_default_n_a(__new_start + __size, 24952: __n, _M_get_Tp_allocator()); 24952: } 24952: catch(...) 24952: { 24952: _M_deallocate(__new_start, __len); 24952: throw; 24952: } 24952: _S_relocate(__old_start, __old_finish, 24952: __new_start, _M_get_Tp_allocator()); 24952: } 24952: else 24952: { 24952: pointer __destroy_from = pointer(); 24952: try 24952: { 24952: std::__uninitialized_default_n_a(__new_start + __size, 24952: __n, _M_get_Tp_allocator()); 24952: __destroy_from = __new_start + __size; 24952: std::__uninitialized_move_if_noexcept_a( 24952: __old_start, __old_finish, 24952: __new_start, _M_get_Tp_allocator()); 24952: } 24952: catch(...) 24952: { 24952: if (__destroy_from) 24952: std::_Destroy(__destroy_from, __destroy_from + __n, 24952: _M_get_Tp_allocator()); 24952: _M_deallocate(__new_start, __len); 24952: throw; 24952: } 24952: std::_Destroy(__old_start, __old_finish, 24952: _M_get_Tp_allocator()); 24952: } 24952: ; 24952: _M_deallocate(__old_start, 24952: this->_M_impl._M_end_of_storage - __old_start); 24952: this->_M_impl._M_start = __new_start; 24952: this->_M_impl._M_finish = __new_start + __size + __n; 24952: this->_M_impl._M_end_of_storage = __new_start + __len; 24952: } 24952: } 24952: } 24952: 24952: template 24952: 24952: bool 24952: vector<_Tp, _Alloc>:: 24952: _M_shrink_to_fit() 24952: { 24952: if (capacity() == size()) 24952: return false; 24952: ; 24952: return std::__shrink_to_fit_aux::_S_do_it(*this); 24952: } 24952: 24952: 24952: template 24952: template 24952: 24952: void 24952: vector<_Tp, _Alloc>:: 24952: _M_range_insert(iterator __pos, _InputIterator __first, 24952: _InputIterator __last, std::input_iterator_tag) 24952: { 24952: if (__pos == end()) 24952: { 24952: for (; __first != __last; ++__first) 24952: insert(end(), *__first); 24952: } 24952: else if (__first != __last) 24952: { 24952: vector __tmp(__first, __last, _M_get_Tp_allocator()); 24952: insert(__pos, 24952: std::make_move_iterator(__tmp.begin()), 24952: std::make_move_iterator(__tmp.end())); 24952: } 24952: } 24952: 24952: template 24952: template 24952: 24952: void 24952: vector<_Tp, _Alloc>:: 24952: _M_range_insert(iterator __position, _ForwardIterator __first, 24952: _ForwardIterator __last, std::forward_iterator_tag) 24952: { 24952: if (__first != __last) 24952: { 24952: const size_type __n = std::distance(__first, __last); 24952: if (size_type(this->_M_impl._M_end_of_storage 24952: - this->_M_impl._M_finish) >= __n) 24952: { 24952: const size_type __elems_after = end() - __position; 24952: pointer __old_finish(this->_M_impl._M_finish); 24952: if (__elems_after > __n) 24952: { 24952: ; 24952: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 24952: this->_M_impl._M_finish, 24952: this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_finish += __n; 24952: ; 24952: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 24952: ; 24952: std::copy(__first, __last, __position); 24952: } 24952: else 24952: { 24952: _ForwardIterator __mid = __first; 24952: std::advance(__mid, __elems_after); 24952: ; 24952: std::__uninitialized_copy_a(__mid, __last, 24952: this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_finish += __n - __elems_after; 24952: ; 24952: std::__uninitialized_move_a(__position.base(), 24952: __old_finish, 24952: this->_M_impl._M_finish, 24952: _M_get_Tp_allocator()); 24952: this->_M_impl._M_finish += __elems_after; 24952: ; 24952: std::copy(__first, __mid, __position); 24952: } 24952: } 24952: else 24952: { 24952: 24952: 24952: 24952: pointer __old_start = this->_M_impl._M_start; 24952: pointer __old_finish = this->_M_impl._M_finish; 24952: 24952: const size_type __len = 24952: _M_check_len(__n, "vector::_M_range_insert"); 24952: pointer __new_start(this->_M_allocate(__len)); 24952: pointer __new_finish(__new_start); 24952: try 24952: { 24952: __new_finish 24952: = std::__uninitialized_move_if_noexcept_a 24952: (__old_start, __position.base(), 24952: __new_start, _M_get_Tp_allocator()); 24952: __new_finish 24952: = std::__uninitialized_copy_a(__first, __last, 24952: __new_finish, 24952: _M_get_Tp_allocator()); 24952: __new_finish 24952: = std::__uninitialized_move_if_noexcept_a 24952: (__position.base(), __old_finish, 24952: __new_finish, _M_get_Tp_allocator()); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__new_start, __new_finish, 24952: _M_get_Tp_allocator()); 24952: _M_deallocate(__new_start, __len); 24952: throw; 24952: } 24952: std::_Destroy(__old_start, __old_finish, 24952: _M_get_Tp_allocator()); 24952: ; 24952: _M_deallocate(__old_start, 24952: this->_M_impl._M_end_of_storage - __old_start); 24952: this->_M_impl._M_start = __new_start; 24952: this->_M_impl._M_finish = __new_finish; 24952: this->_M_impl._M_end_of_storage = __new_start + __len; 24952: } 24952: } 24952: } 24952: 24952: 24952: 24952: template 24952: 24952: void 24952: vector:: 24952: _M_reallocate(size_type __n) 24952: { 24952: _Bit_pointer __q = this->_M_allocate(__n); 24952: iterator __start(std::__addressof(*__q), 0); 24952: iterator __finish(_M_copy_aligned(begin(), end(), __start)); 24952: this->_M_deallocate(); 24952: this->_M_impl._M_start = __start; 24952: this->_M_impl._M_finish = __finish; 24952: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 24952: } 24952: 24952: template 24952: 24952: void 24952: vector:: 24952: _M_fill_insert(iterator __position, size_type __n, bool __x) 24952: { 24952: if (__n == 0) 24952: return; 24952: if (capacity() - size() >= __n) 24952: { 24952: std::copy_backward(__position, end(), 24952: this->_M_impl._M_finish + difference_type(__n)); 24952: std::fill(__position, __position + difference_type(__n), __x); 24952: this->_M_impl._M_finish += difference_type(__n); 24952: } 24952: else 24952: { 24952: const size_type __len = 24952: _M_check_len(__n, "vector::_M_fill_insert"); 24952: _Bit_pointer __q = this->_M_allocate(__len); 24952: iterator __start(std::__addressof(*__q), 0); 24952: iterator __i = _M_copy_aligned(begin(), __position, __start); 24952: std::fill(__i, __i + difference_type(__n), __x); 24952: iterator __finish = std::copy(__position, end(), 24952: __i + difference_type(__n)); 24952: this->_M_deallocate(); 24952: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 24952: this->_M_impl._M_start = __start; 24952: this->_M_impl._M_finish = __finish; 24952: } 24952: } 24952: 24952: template 24952: template 24952: 24952: void 24952: vector:: 24952: _M_insert_range(iterator __position, _ForwardIterator __first, 24952: _ForwardIterator __last, std::forward_iterator_tag) 24952: { 24952: if (__first != __last) 24952: { 24952: size_type __n = std::distance(__first, __last); 24952: if (capacity() - size() >= __n) 24952: { 24952: std::copy_backward(__position, end(), 24952: this->_M_impl._M_finish 24952: + difference_type(__n)); 24952: std::copy(__first, __last, __position); 24952: this->_M_impl._M_finish += difference_type(__n); 24952: } 24952: else 24952: { 24952: const size_type __len = 24952: _M_check_len(__n, "vector::_M_insert_range"); 24952: const iterator __begin = begin(), __end = end(); 24952: _Bit_pointer __q = this->_M_allocate(__len); 24952: iterator __start(std::__addressof(*__q), 0); 24952: iterator __i = _M_copy_aligned(__begin, __position, __start); 24952: __i = std::copy(__first, __last, __i); 24952: iterator __finish = std::copy(__position, __end, __i); 24952: this->_M_deallocate(); 24952: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 24952: this->_M_impl._M_start = __start; 24952: this->_M_impl._M_finish = __finish; 24952: } 24952: } 24952: } 24952: 24952: template 24952: 24952: void 24952: vector:: 24952: _M_insert_aux(iterator __position, bool __x) 24952: { 24952: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 24952: { 24952: std::copy_backward(__position, this->_M_impl._M_finish, 24952: this->_M_impl._M_finish + 1); 24952: *__position = __x; 24952: ++this->_M_impl._M_finish; 24952: } 24952: else 24952: { 24952: const size_type __len = 24952: _M_check_len(size_type(1), "vector::_M_insert_aux"); 24952: _Bit_pointer __q = this->_M_allocate(__len); 24952: iterator __start(std::__addressof(*__q), 0); 24952: iterator __i = _M_copy_aligned(begin(), __position, __start); 24952: *__i++ = __x; 24952: iterator __finish = std::copy(__position, end(), __i); 24952: this->_M_deallocate(); 24952: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 24952: this->_M_impl._M_start = __start; 24952: this->_M_impl._M_finish = __finish; 24952: } 24952: } 24952: 24952: template 24952: 24952: typename vector::iterator 24952: vector:: 24952: _M_erase(iterator __position) 24952: { 24952: if (__position + 1 != end()) 24952: std::copy(__position + 1, end(), __position); 24952: --this->_M_impl._M_finish; 24952: return __position; 24952: } 24952: 24952: template 24952: 24952: typename vector::iterator 24952: vector:: 24952: _M_erase(iterator __first, iterator __last) 24952: { 24952: if (__first != __last) 24952: _M_erase_at_end(std::copy(__last, end(), __first)); 24952: return __first; 24952: } 24952: 24952: 24952: template 24952: 24952: bool 24952: vector:: 24952: _M_shrink_to_fit() 24952: { 24952: if (capacity() - size() < int(_S_word_bit)) 24952: return false; 24952: try 24952: { 24952: if (size_type __n = size()) 24952: _M_reallocate(__n); 24952: else 24952: { 24952: this->_M_deallocate(); 24952: this->_M_impl._M_reset(); 24952: } 24952: return true; 24952: } 24952: catch(...) 24952: { return false; } 24952: } 24952: 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template 24952: size_t 24952: hash>:: 24952: operator()(const std::vector& __b) const noexcept 24952: { 24952: size_t __hash = 0; 24952: const size_t __words = __b.size() / _S_word_bit; 24952: if (__words) 24952: { 24952: const size_t __clength = __words * sizeof(_Bit_type); 24952: __hash = std::_Hash_impl::hash(__b._M_impl._M_start._M_p, __clength); 24952: } 24952: 24952: const size_t __extrabits = __b.size() % _S_word_bit; 24952: if (__extrabits) 24952: { 24952: _Bit_type __hiword = *__b._M_impl._M_finish._M_p; 24952: __hiword &= ~((~static_cast<_Bit_type>(0)) << __extrabits); 24952: 24952: const size_t __clength 24952: = (__extrabits + 8 - 1) / 8; 24952: if (__words) 24952: __hash = std::_Hash_impl::hash(&__hiword, __clength, __hash); 24952: else 24952: __hash = std::_Hash_impl::hash(&__hiword, __clength); 24952: } 24952: 24952: return __hash; 24952: } 24952: 24952: 24952: } 24952: # 73 "/usr/include/c++/13/vector" 2 3 24952: # 81 "/usr/include/c++/13/vector" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: namespace pmr { 24952: template 24952: using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 65 "/usr/include/c++/13/functional" 2 3 24952: # 1 "/usr/include/c++/13/array" 1 3 24952: # 32 "/usr/include/c++/13/array" 3 24952: 24952: # 33 "/usr/include/c++/13/array" 3 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/compare" 1 3 24952: # 33 "/usr/include/c++/13/compare" 3 24952: 24952: # 34 "/usr/include/c++/13/compare" 3 24952: # 39 "/usr/include/c++/13/array" 2 3 24952: # 48 "/usr/include/c++/13/array" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template 24952: struct __array_traits 24952: { 24952: using _Type = _Tp[_Nm]; 24952: using _Is_swappable = __is_swappable<_Tp>; 24952: using _Is_nothrow_swappable = __is_nothrow_swappable<_Tp>; 24952: }; 24952: 24952: template 24952: struct __array_traits<_Tp, 0> 24952: { 24952: 24952: struct _Type 24952: { 24952: 24952: __attribute__((__always_inline__,__noreturn__)) 24952: _Tp& operator[](size_t) const noexcept { __builtin_trap(); } 24952: 24952: 24952: __attribute__((__always_inline__)) 24952: constexpr explicit operator _Tp*() const noexcept { return nullptr; } 24952: }; 24952: 24952: using _Is_swappable = true_type; 24952: using _Is_nothrow_swappable = true_type; 24952: }; 24952: # 93 "/usr/include/c++/13/array" 3 24952: template 24952: struct array 24952: { 24952: typedef _Tp value_type; 24952: typedef value_type* pointer; 24952: typedef const value_type* const_pointer; 24952: typedef value_type& reference; 24952: typedef const value_type& const_reference; 24952: typedef value_type* iterator; 24952: typedef const value_type* const_iterator; 24952: typedef std::size_t size_type; 24952: typedef std::ptrdiff_t difference_type; 24952: typedef std::reverse_iterator reverse_iterator; 24952: typedef std::reverse_iterator const_reverse_iterator; 24952: 24952: 24952: typename __array_traits<_Tp, _Nm>::_Type _M_elems; 24952: 24952: 24952: 24952: 24952: void 24952: fill(const value_type& __u) 24952: { std::fill_n(begin(), size(), __u); } 24952: 24952: void 24952: swap(array& __other) 24952: noexcept(__array_traits<_Tp, _Nm>::_Is_nothrow_swappable::value) 24952: { std::swap_ranges(begin(), end(), __other.begin()); } 24952: 24952: 24952: [[__gnu__::__const__, __nodiscard__]] 24952: constexpr iterator 24952: begin() noexcept 24952: { return iterator(data()); } 24952: 24952: [[__nodiscard__]] 24952: constexpr const_iterator 24952: begin() const noexcept 24952: { return const_iterator(data()); } 24952: 24952: [[__gnu__::__const__, __nodiscard__]] 24952: constexpr iterator 24952: end() noexcept 24952: { return iterator(data() + _Nm); } 24952: 24952: [[__nodiscard__]] 24952: constexpr const_iterator 24952: end() const noexcept 24952: { return const_iterator(data() + _Nm); } 24952: 24952: [[__gnu__::__const__, __nodiscard__]] 24952: constexpr reverse_iterator 24952: rbegin() noexcept 24952: { return reverse_iterator(end()); } 24952: 24952: [[__nodiscard__]] 24952: constexpr const_reverse_iterator 24952: rbegin() const noexcept 24952: { return const_reverse_iterator(end()); } 24952: 24952: [[__gnu__::__const__, __nodiscard__]] 24952: constexpr reverse_iterator 24952: rend() noexcept 24952: { return reverse_iterator(begin()); } 24952: 24952: [[__nodiscard__]] 24952: constexpr const_reverse_iterator 24952: rend() const noexcept 24952: { return const_reverse_iterator(begin()); } 24952: 24952: [[__nodiscard__]] 24952: constexpr const_iterator 24952: cbegin() const noexcept 24952: { return const_iterator(data()); } 24952: 24952: [[__nodiscard__]] 24952: constexpr const_iterator 24952: cend() const noexcept 24952: { return const_iterator(data() + _Nm); } 24952: 24952: [[__nodiscard__]] 24952: constexpr const_reverse_iterator 24952: crbegin() const noexcept 24952: { return const_reverse_iterator(end()); } 24952: 24952: [[__nodiscard__]] 24952: constexpr const_reverse_iterator 24952: crend() const noexcept 24952: { return const_reverse_iterator(begin()); } 24952: 24952: 24952: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 24952: constexpr size_type 24952: size() const noexcept { return _Nm; } 24952: 24952: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 24952: constexpr size_type 24952: max_size() const noexcept { return _Nm; } 24952: 24952: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 24952: constexpr bool 24952: empty() const noexcept { return size() == 0; } 24952: 24952: 24952: [[__nodiscard__]] 24952: constexpr reference 24952: operator[](size_type __n) noexcept 24952: { 24952: ; 24952: return _M_elems[__n]; 24952: } 24952: 24952: [[__nodiscard__]] 24952: constexpr const_reference 24952: operator[](size_type __n) const noexcept 24952: { 24952: 24952: ; 24952: 24952: return _M_elems[__n]; 24952: } 24952: 24952: constexpr reference 24952: at(size_type __n) 24952: { 24952: if (__n >= _Nm) 24952: std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 24952: , 24952: __n, _Nm); 24952: return _M_elems[__n]; 24952: } 24952: 24952: constexpr const_reference 24952: at(size_type __n) const 24952: { 24952: 24952: 24952: return __n < _Nm ? _M_elems[__n] 24952: : (std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 24952: , 24952: __n, _Nm), 24952: _M_elems[__n]); 24952: } 24952: 24952: [[__nodiscard__]] 24952: constexpr reference 24952: front() noexcept 24952: { 24952: ; 24952: return _M_elems[(size_type)0]; 24952: } 24952: 24952: [[__nodiscard__]] 24952: constexpr const_reference 24952: front() const noexcept 24952: { 24952: 24952: ; 24952: 24952: return _M_elems[(size_type)0]; 24952: } 24952: 24952: [[__nodiscard__]] 24952: constexpr reference 24952: back() noexcept 24952: { 24952: ; 24952: return _M_elems[_Nm - 1]; 24952: } 24952: 24952: [[__nodiscard__]] 24952: constexpr const_reference 24952: back() const noexcept 24952: { 24952: 24952: ; 24952: 24952: return _M_elems[_Nm - 1]; 24952: } 24952: 24952: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 24952: constexpr pointer 24952: data() noexcept 24952: { return static_cast(_M_elems); } 24952: 24952: [[__nodiscard__]] 24952: constexpr const_pointer 24952: data() const noexcept 24952: { return static_cast(_M_elems); } 24952: }; 24952: 24952: 24952: template 24952: array(_Tp, _Up...) 24952: -> array && ...), _Tp>, 24952: 1 + sizeof...(_Up)>; 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: 24952: inline bool 24952: operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 24952: { return std::equal(__one.begin(), __one.end(), __two.begin()); } 24952: # 322 "/usr/include/c++/13/array" 3 24952: template 24952: [[__nodiscard__]] 24952: 24952: inline bool 24952: operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 24952: { return !(__one == __two); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: 24952: inline bool 24952: operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 24952: { 24952: return std::lexicographical_compare(__a.begin(), __a.end(), 24952: __b.begin(), __b.end()); 24952: } 24952: 24952: template 24952: [[__nodiscard__]] 24952: 24952: inline bool 24952: operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 24952: { return __two < __one; } 24952: 24952: template 24952: [[__nodiscard__]] 24952: 24952: inline bool 24952: operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 24952: { return !(__one > __two); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: 24952: inline bool 24952: operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 24952: { return !(__one < __two); } 24952: 24952: 24952: 24952: template 24952: 24952: inline 24952: 24952: 24952: __enable_if_t<__array_traits<_Tp, _Nm>::_Is_swappable::value> 24952: 24952: 24952: 24952: swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two) 24952: noexcept(noexcept(__one.swap(__two))) 24952: { __one.swap(__two); } 24952: 24952: 24952: template 24952: __enable_if_t::_Is_swappable::value> 24952: swap(array<_Tp, _Nm>&, array<_Tp, _Nm>&) = delete; 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: constexpr _Tp& 24952: get(array<_Tp, _Nm>& __arr) noexcept 24952: { 24952: static_assert(_Int < _Nm, "array index is within bounds"); 24952: return __arr._M_elems[_Int]; 24952: } 24952: 24952: template 24952: [[__nodiscard__]] 24952: constexpr _Tp&& 24952: get(array<_Tp, _Nm>&& __arr) noexcept 24952: { 24952: static_assert(_Int < _Nm, "array index is within bounds"); 24952: return std::move(std::get<_Int>(__arr)); 24952: } 24952: 24952: template 24952: [[__nodiscard__]] 24952: constexpr const _Tp& 24952: get(const array<_Tp, _Nm>& __arr) noexcept 24952: { 24952: static_assert(_Int < _Nm, "array index is within bounds"); 24952: return __arr._M_elems[_Int]; 24952: } 24952: 24952: template 24952: [[__nodiscard__]] 24952: constexpr const _Tp&& 24952: get(const array<_Tp, _Nm>&& __arr) noexcept 24952: { 24952: static_assert(_Int < _Nm, "array index is within bounds"); 24952: return std::move(std::get<_Int>(__arr)); 24952: } 24952: # 460 "/usr/include/c++/13/array" 3 24952: template 24952: struct tuple_size> 24952: : public integral_constant { }; 24952: 24952: 24952: template 24952: struct tuple_element<_Ind, array<_Tp, _Nm>> 24952: { 24952: static_assert(_Ind < _Nm, "array index is in range"); 24952: using type = _Tp; 24952: }; 24952: 24952: 24952: template 24952: inline constexpr size_t tuple_size_v> = _Nm; 24952: 24952: template 24952: inline constexpr size_t tuple_size_v> = _Nm; 24952: 24952: 24952: template 24952: struct __is_tuple_like_impl> : true_type 24952: { }; 24952: 24952: 24952: } 24952: # 66 "/usr/include/c++/13/functional" 2 3 24952: 24952: # 1 "/usr/include/c++/13/bits/stl_algo.h" 1 3 24952: # 59 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: # 1 "/usr/include/c++/13/bits/algorithmfwd.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/algorithmfwd.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/algorithmfwd.h" 3 24952: # 42 "/usr/include/c++/13/bits/algorithmfwd.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 199 "/usr/include/c++/13/bits/algorithmfwd.h" 3 24952: template 24952: 24952: bool 24952: all_of(_IIter, _IIter, _Predicate); 24952: 24952: template 24952: 24952: bool 24952: any_of(_IIter, _IIter, _Predicate); 24952: 24952: 24952: template 24952: 24952: bool 24952: binary_search(_FIter, _FIter, const _Tp&); 24952: 24952: template 24952: 24952: bool 24952: binary_search(_FIter, _FIter, const _Tp&, _Compare); 24952: 24952: 24952: template 24952: constexpr 24952: const _Tp& 24952: clamp(const _Tp&, const _Tp&, const _Tp&); 24952: 24952: template 24952: constexpr 24952: const _Tp& 24952: clamp(const _Tp&, const _Tp&, const _Tp&, _Compare); 24952: 24952: 24952: template 24952: 24952: _OIter 24952: copy(_IIter, _IIter, _OIter); 24952: 24952: template 24952: 24952: _BIter2 24952: copy_backward(_BIter1, _BIter1, _BIter2); 24952: 24952: 24952: template 24952: 24952: _OIter 24952: copy_if(_IIter, _IIter, _OIter, _Predicate); 24952: 24952: template 24952: 24952: _OIter 24952: copy_n(_IIter, _Size, _OIter); 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: pair<_FIter, _FIter> 24952: equal_range(_FIter, _FIter, const _Tp&); 24952: 24952: template 24952: 24952: pair<_FIter, _FIter> 24952: equal_range(_FIter, _FIter, const _Tp&, _Compare); 24952: 24952: template 24952: 24952: void 24952: fill(_FIter, _FIter, const _Tp&); 24952: 24952: template 24952: 24952: _OIter 24952: fill_n(_OIter, _Size, const _Tp&); 24952: 24952: 24952: 24952: template 24952: 24952: _FIter1 24952: find_end(_FIter1, _FIter1, _FIter2, _FIter2); 24952: 24952: template 24952: 24952: _FIter1 24952: find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _IIter 24952: find_if_not(_IIter, _IIter, _Predicate); 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: bool 24952: includes(_IIter1, _IIter1, _IIter2, _IIter2); 24952: 24952: template 24952: 24952: bool 24952: includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 24952: 24952: template 24952: void 24952: inplace_merge(_BIter, _BIter, _BIter); 24952: 24952: template 24952: void 24952: inplace_merge(_BIter, _BIter, _BIter, _Compare); 24952: 24952: 24952: template 24952: 24952: bool 24952: is_heap(_RAIter, _RAIter); 24952: 24952: template 24952: 24952: bool 24952: is_heap(_RAIter, _RAIter, _Compare); 24952: 24952: template 24952: 24952: _RAIter 24952: is_heap_until(_RAIter, _RAIter); 24952: 24952: template 24952: 24952: _RAIter 24952: is_heap_until(_RAIter, _RAIter, _Compare); 24952: 24952: template 24952: 24952: bool 24952: is_partitioned(_IIter, _IIter, _Predicate); 24952: 24952: template 24952: 24952: bool 24952: is_permutation(_FIter1, _FIter1, _FIter2); 24952: 24952: template 24952: 24952: bool 24952: is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate); 24952: 24952: template 24952: 24952: bool 24952: is_sorted(_FIter, _FIter); 24952: 24952: template 24952: 24952: bool 24952: is_sorted(_FIter, _FIter, _Compare); 24952: 24952: template 24952: 24952: _FIter 24952: is_sorted_until(_FIter, _FIter); 24952: 24952: template 24952: 24952: _FIter 24952: is_sorted_until(_FIter, _FIter, _Compare); 24952: 24952: 24952: template 24952: 24952: void 24952: iter_swap(_FIter1, _FIter2); 24952: 24952: template 24952: 24952: _FIter 24952: lower_bound(_FIter, _FIter, const _Tp&); 24952: 24952: template 24952: 24952: _FIter 24952: lower_bound(_FIter, _FIter, const _Tp&, _Compare); 24952: 24952: template 24952: 24952: void 24952: make_heap(_RAIter, _RAIter); 24952: 24952: template 24952: 24952: void 24952: make_heap(_RAIter, _RAIter, _Compare); 24952: 24952: template 24952: constexpr 24952: const _Tp& 24952: max(const _Tp&, const _Tp&); 24952: 24952: template 24952: constexpr 24952: const _Tp& 24952: max(const _Tp&, const _Tp&, _Compare); 24952: 24952: 24952: 24952: 24952: template 24952: constexpr 24952: const _Tp& 24952: min(const _Tp&, const _Tp&); 24952: 24952: template 24952: constexpr 24952: const _Tp& 24952: min(const _Tp&, const _Tp&, _Compare); 24952: 24952: 24952: 24952: 24952: template 24952: constexpr 24952: pair 24952: minmax(const _Tp&, const _Tp&); 24952: 24952: template 24952: constexpr 24952: pair 24952: minmax(const _Tp&, const _Tp&, _Compare); 24952: 24952: template 24952: constexpr 24952: pair<_FIter, _FIter> 24952: minmax_element(_FIter, _FIter); 24952: 24952: template 24952: constexpr 24952: pair<_FIter, _FIter> 24952: minmax_element(_FIter, _FIter, _Compare); 24952: 24952: template 24952: constexpr 24952: _Tp 24952: min(initializer_list<_Tp>); 24952: 24952: template 24952: constexpr 24952: _Tp 24952: min(initializer_list<_Tp>, _Compare); 24952: 24952: template 24952: constexpr 24952: _Tp 24952: max(initializer_list<_Tp>); 24952: 24952: template 24952: constexpr 24952: _Tp 24952: max(initializer_list<_Tp>, _Compare); 24952: 24952: template 24952: constexpr 24952: pair<_Tp, _Tp> 24952: minmax(initializer_list<_Tp>); 24952: 24952: template 24952: constexpr 24952: pair<_Tp, _Tp> 24952: minmax(initializer_list<_Tp>, _Compare); 24952: 24952: 24952: 24952: 24952: template 24952: 24952: bool 24952: next_permutation(_BIter, _BIter); 24952: 24952: template 24952: 24952: bool 24952: next_permutation(_BIter, _BIter, _Compare); 24952: 24952: 24952: template 24952: 24952: bool 24952: none_of(_IIter, _IIter, _Predicate); 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _RAIter 24952: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); 24952: 24952: template 24952: 24952: _RAIter 24952: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); 24952: 24952: 24952: 24952: 24952: template 24952: 24952: pair<_OIter1, _OIter2> 24952: partition_copy(_IIter, _IIter, _OIter1, _OIter2, _Predicate); 24952: 24952: template 24952: 24952: _FIter 24952: partition_point(_FIter, _FIter, _Predicate); 24952: 24952: 24952: template 24952: 24952: void 24952: pop_heap(_RAIter, _RAIter); 24952: 24952: template 24952: 24952: void 24952: pop_heap(_RAIter, _RAIter, _Compare); 24952: 24952: template 24952: 24952: bool 24952: prev_permutation(_BIter, _BIter); 24952: 24952: template 24952: 24952: bool 24952: prev_permutation(_BIter, _BIter, _Compare); 24952: 24952: template 24952: 24952: void 24952: push_heap(_RAIter, _RAIter); 24952: 24952: template 24952: 24952: void 24952: push_heap(_RAIter, _RAIter, _Compare); 24952: 24952: 24952: 24952: template 24952: 24952: _FIter 24952: remove(_FIter, _FIter, const _Tp&); 24952: 24952: template 24952: 24952: _FIter 24952: remove_if(_FIter, _FIter, _Predicate); 24952: 24952: template 24952: 24952: _OIter 24952: remove_copy(_IIter, _IIter, _OIter, const _Tp&); 24952: 24952: template 24952: 24952: _OIter 24952: remove_copy_if(_IIter, _IIter, _OIter, _Predicate); 24952: 24952: 24952: 24952: template 24952: 24952: _OIter 24952: replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); 24952: 24952: template 24952: 24952: _OIter 24952: replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); 24952: 24952: 24952: 24952: template 24952: 24952: void 24952: reverse(_BIter, _BIter); 24952: 24952: template 24952: 24952: _OIter 24952: reverse_copy(_BIter, _BIter, _OIter); 24952: 24952: inline namespace _V2 { 24952: 24952: template 24952: 24952: _FIter 24952: rotate(_FIter, _FIter, _FIter); 24952: 24952: } 24952: 24952: template 24952: 24952: _OIter 24952: rotate_copy(_FIter, _FIter, _FIter, _OIter); 24952: # 626 "/usr/include/c++/13/bits/algorithmfwd.h" 3 24952: template 24952: void 24952: shuffle(_RAIter, _RAIter, _UGenerator&&); 24952: 24952: 24952: template 24952: 24952: void 24952: sort_heap(_RAIter, _RAIter); 24952: 24952: template 24952: 24952: void 24952: sort_heap(_RAIter, _RAIter, _Compare); 24952: 24952: 24952: template 24952: _BIter 24952: stable_partition(_BIter, _BIter, _Predicate); 24952: # 661 "/usr/include/c++/13/bits/algorithmfwd.h" 3 24952: template 24952: 24952: _FIter2 24952: swap_ranges(_FIter1, _FIter1, _FIter2); 24952: 24952: 24952: 24952: template 24952: 24952: _FIter 24952: unique(_FIter, _FIter); 24952: 24952: template 24952: 24952: _FIter 24952: unique(_FIter, _FIter, _BinaryPredicate); 24952: 24952: 24952: 24952: template 24952: 24952: _FIter 24952: upper_bound(_FIter, _FIter, const _Tp&); 24952: 24952: template 24952: 24952: _FIter 24952: upper_bound(_FIter, _FIter, const _Tp&, _Compare); 24952: 24952: 24952: 24952: template 24952: 24952: _FIter 24952: adjacent_find(_FIter, _FIter); 24952: 24952: template 24952: 24952: _FIter 24952: adjacent_find(_FIter, _FIter, _BinaryPredicate); 24952: 24952: template 24952: 24952: typename iterator_traits<_IIter>::difference_type 24952: count(_IIter, _IIter, const _Tp&); 24952: 24952: template 24952: 24952: typename iterator_traits<_IIter>::difference_type 24952: count_if(_IIter, _IIter, _Predicate); 24952: 24952: template 24952: 24952: bool 24952: equal(_IIter1, _IIter1, _IIter2); 24952: 24952: template 24952: 24952: bool 24952: equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 24952: 24952: template 24952: 24952: _IIter 24952: find(_IIter, _IIter, const _Tp&); 24952: 24952: template 24952: 24952: _FIter1 24952: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); 24952: 24952: template 24952: 24952: _FIter1 24952: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 24952: 24952: template 24952: 24952: _IIter 24952: find_if(_IIter, _IIter, _Predicate); 24952: 24952: template 24952: 24952: _Funct 24952: for_each(_IIter, _IIter, _Funct); 24952: 24952: template 24952: 24952: void 24952: generate(_FIter, _FIter, _Generator); 24952: 24952: template 24952: 24952: _OIter 24952: generate_n(_OIter, _Size, _Generator); 24952: 24952: template 24952: 24952: bool 24952: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); 24952: 24952: template 24952: 24952: bool 24952: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 24952: 24952: template 24952: constexpr 24952: _FIter 24952: max_element(_FIter, _FIter); 24952: 24952: template 24952: constexpr 24952: _FIter 24952: max_element(_FIter, _FIter, _Compare); 24952: 24952: template 24952: 24952: _OIter 24952: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 24952: 24952: template 24952: 24952: _OIter 24952: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 24952: 24952: template 24952: constexpr 24952: _FIter 24952: min_element(_FIter, _FIter); 24952: 24952: template 24952: constexpr 24952: _FIter 24952: min_element(_FIter, _FIter, _Compare); 24952: 24952: template 24952: 24952: pair<_IIter1, _IIter2> 24952: mismatch(_IIter1, _IIter1, _IIter2); 24952: 24952: template 24952: 24952: pair<_IIter1, _IIter2> 24952: mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 24952: 24952: template 24952: 24952: void 24952: nth_element(_RAIter, _RAIter, _RAIter); 24952: 24952: template 24952: 24952: void 24952: nth_element(_RAIter, _RAIter, _RAIter, _Compare); 24952: 24952: template 24952: 24952: void 24952: partial_sort(_RAIter, _RAIter, _RAIter); 24952: 24952: template 24952: 24952: void 24952: partial_sort(_RAIter, _RAIter, _RAIter, _Compare); 24952: 24952: template 24952: 24952: _BIter 24952: partition(_BIter, _BIter, _Predicate); 24952: 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 24952: void 24952: random_shuffle(_RAIter, _RAIter); 24952: 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 24952: void 24952: random_shuffle(_RAIter, _RAIter, 24952: 24952: _Generator&&); 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: void 24952: replace(_FIter, _FIter, const _Tp&, const _Tp&); 24952: 24952: template 24952: 24952: void 24952: replace_if(_FIter, _FIter, _Predicate, const _Tp&); 24952: 24952: template 24952: 24952: _FIter1 24952: search(_FIter1, _FIter1, _FIter2, _FIter2); 24952: 24952: template 24952: 24952: _FIter1 24952: search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 24952: 24952: template 24952: 24952: _FIter 24952: search_n(_FIter, _FIter, _Size, const _Tp&); 24952: 24952: template 24952: 24952: _FIter 24952: search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); 24952: 24952: template 24952: 24952: _OIter 24952: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 24952: 24952: template 24952: 24952: _OIter 24952: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 24952: 24952: template 24952: 24952: _OIter 24952: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 24952: 24952: template 24952: 24952: _OIter 24952: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 24952: 24952: template 24952: 24952: _OIter 24952: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 24952: 24952: template 24952: 24952: _OIter 24952: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, 24952: _OIter, _Compare); 24952: 24952: template 24952: 24952: _OIter 24952: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 24952: 24952: template 24952: 24952: _OIter 24952: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 24952: 24952: template 24952: 24952: void 24952: sort(_RAIter, _RAIter); 24952: 24952: template 24952: 24952: void 24952: sort(_RAIter, _RAIter, _Compare); 24952: 24952: template 24952: void 24952: stable_sort(_RAIter, _RAIter); 24952: 24952: template 24952: void 24952: stable_sort(_RAIter, _RAIter, _Compare); 24952: 24952: template 24952: 24952: _OIter 24952: transform(_IIter, _IIter, _OIter, _UnaryOperation); 24952: 24952: template 24952: 24952: _OIter 24952: transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); 24952: 24952: template 24952: 24952: _OIter 24952: unique_copy(_IIter, _IIter, _OIter); 24952: 24952: template 24952: 24952: _OIter 24952: unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); 24952: 24952: 24952: 24952: } 24952: # 60 "/usr/include/c++/13/bits/stl_algo.h" 2 3 24952: 24952: # 1 "/usr/include/c++/13/bits/stl_heap.h" 1 3 24952: # 63 "/usr/include/c++/13/bits/stl_heap.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _Distance 24952: __is_heap_until(_RandomAccessIterator __first, _Distance __n, 24952: _Compare& __comp) 24952: { 24952: _Distance __parent = 0; 24952: for (_Distance __child = 1; __child < __n; ++__child) 24952: { 24952: if (__comp(__first + __parent, __first + __child)) 24952: return __child; 24952: if ((__child & 1) == 0) 24952: ++__parent; 24952: } 24952: return __n; 24952: } 24952: 24952: 24952: 24952: template 24952: 24952: inline bool 24952: __is_heap(_RandomAccessIterator __first, _Distance __n) 24952: { 24952: __gnu_cxx::__ops::_Iter_less_iter __comp; 24952: return std::__is_heap_until(__first, __n, __comp) == __n; 24952: } 24952: 24952: template 24952: 24952: inline bool 24952: __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) 24952: { 24952: typedef __decltype(__comp) _Cmp; 24952: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 24952: return std::__is_heap_until(__first, __n, __cmp) == __n; 24952: } 24952: 24952: template 24952: 24952: inline bool 24952: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 24952: { return std::__is_heap(__first, std::distance(__first, __last)); } 24952: 24952: template 24952: 24952: inline bool 24952: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _Compare __comp) 24952: { 24952: return std::__is_heap(__first, std::move(__comp), 24952: std::distance(__first, __last)); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: 24952: void 24952: __push_heap(_RandomAccessIterator __first, 24952: _Distance __holeIndex, _Distance __topIndex, _Tp __value, 24952: _Compare& __comp) 24952: { 24952: _Distance __parent = (__holeIndex - 1) / 2; 24952: while (__holeIndex > __topIndex && __comp(__first + __parent, __value)) 24952: { 24952: *(__first + __holeIndex) = std::move(*(__first + __parent)); 24952: __holeIndex = __parent; 24952: __parent = (__holeIndex - 1) / 2; 24952: } 24952: *(__first + __holeIndex) = std::move(__value); 24952: } 24952: # 159 "/usr/include/c++/13/bits/stl_heap.h" 3 24952: template 24952: 24952: inline void 24952: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 24952: { 24952: typedef typename iterator_traits<_RandomAccessIterator>::value_type 24952: _ValueType; 24952: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 24952: _DistanceType; 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: 24952: __gnu_cxx::__ops::_Iter_less_val __comp; 24952: _ValueType __value = std::move(*(__last - 1)); 24952: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 24952: _DistanceType(0), std::move(__value), __comp); 24952: } 24952: # 195 "/usr/include/c++/13/bits/stl_heap.h" 3 24952: template 24952: 24952: inline void 24952: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _Compare __comp) 24952: { 24952: typedef typename iterator_traits<_RandomAccessIterator>::value_type 24952: _ValueType; 24952: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 24952: _DistanceType; 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: 24952: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 24952: __cmp(std::move(__comp)); 24952: _ValueType __value = std::move(*(__last - 1)); 24952: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 24952: _DistanceType(0), std::move(__value), __cmp); 24952: } 24952: 24952: template 24952: 24952: void 24952: __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, 24952: _Distance __len, _Tp __value, _Compare __comp) 24952: { 24952: const _Distance __topIndex = __holeIndex; 24952: _Distance __secondChild = __holeIndex; 24952: while (__secondChild < (__len - 1) / 2) 24952: { 24952: __secondChild = 2 * (__secondChild + 1); 24952: if (__comp(__first + __secondChild, 24952: __first + (__secondChild - 1))) 24952: __secondChild--; 24952: *(__first + __holeIndex) = std::move(*(__first + __secondChild)); 24952: __holeIndex = __secondChild; 24952: } 24952: if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) 24952: { 24952: __secondChild = 2 * (__secondChild + 1); 24952: *(__first + __holeIndex) = std::move(*(__first + (__secondChild - 1))) 24952: ; 24952: __holeIndex = __secondChild - 1; 24952: } 24952: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 24952: __cmp(std::move(__comp)); 24952: std::__push_heap(__first, __holeIndex, __topIndex, 24952: std::move(__value), __cmp); 24952: } 24952: 24952: template 24952: 24952: inline void 24952: __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _RandomAccessIterator __result, _Compare& __comp) 24952: { 24952: typedef typename iterator_traits<_RandomAccessIterator>::value_type 24952: _ValueType; 24952: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 24952: _DistanceType; 24952: 24952: _ValueType __value = std::move(*__result); 24952: *__result = std::move(*__first); 24952: std::__adjust_heap(__first, _DistanceType(0), 24952: _DistanceType(__last - __first), 24952: std::move(__value), __comp); 24952: } 24952: # 280 "/usr/include/c++/13/bits/stl_heap.h" 3 24952: template 24952: 24952: inline void 24952: pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: if (__last - __first > 1) 24952: { 24952: --__last; 24952: __gnu_cxx::__ops::_Iter_less_iter __comp; 24952: std::__pop_heap(__first, __last, __last, __comp); 24952: } 24952: } 24952: # 314 "/usr/include/c++/13/bits/stl_heap.h" 3 24952: template 24952: 24952: inline void 24952: pop_heap(_RandomAccessIterator __first, 24952: _RandomAccessIterator __last, _Compare __comp) 24952: { 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: if (__last - __first > 1) 24952: { 24952: typedef __decltype(__comp) _Cmp; 24952: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 24952: --__last; 24952: std::__pop_heap(__first, __last, __last, __cmp); 24952: } 24952: } 24952: 24952: template 24952: 24952: void 24952: __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _Compare& __comp) 24952: { 24952: typedef typename iterator_traits<_RandomAccessIterator>::value_type 24952: _ValueType; 24952: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 24952: _DistanceType; 24952: 24952: if (__last - __first < 2) 24952: return; 24952: 24952: const _DistanceType __len = __last - __first; 24952: _DistanceType __parent = (__len - 2) / 2; 24952: while (true) 24952: { 24952: _ValueType __value = std::move(*(__first + __parent)); 24952: std::__adjust_heap(__first, __parent, __len, std::move(__value), 24952: __comp); 24952: if (__parent == 0) 24952: return; 24952: __parent--; 24952: } 24952: } 24952: # 372 "/usr/include/c++/13/bits/stl_heap.h" 3 24952: template 24952: 24952: inline void 24952: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: __gnu_cxx::__ops::_Iter_less_iter __comp; 24952: std::__make_heap(__first, __last, __comp); 24952: } 24952: # 399 "/usr/include/c++/13/bits/stl_heap.h" 3 24952: template 24952: 24952: inline void 24952: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: typedef __decltype(__comp) _Cmp; 24952: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 24952: std::__make_heap(__first, __last, __cmp); 24952: } 24952: 24952: template 24952: 24952: void 24952: __sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _Compare& __comp) 24952: { 24952: while (__last - __first > 1) 24952: { 24952: --__last; 24952: std::__pop_heap(__first, __last, __last, __comp); 24952: } 24952: } 24952: # 437 "/usr/include/c++/13/bits/stl_heap.h" 3 24952: template 24952: 24952: inline void 24952: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: 24952: __gnu_cxx::__ops::_Iter_less_iter __comp; 24952: std::__sort_heap(__first, __last, __comp); 24952: } 24952: # 465 "/usr/include/c++/13/bits/stl_heap.h" 3 24952: template 24952: 24952: inline void 24952: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: 24952: typedef __decltype(__comp) _Cmp; 24952: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 24952: std::__sort_heap(__first, __last, __cmp); 24952: } 24952: # 494 "/usr/include/c++/13/bits/stl_heap.h" 3 24952: template 24952: 24952: inline _RandomAccessIterator 24952: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: __gnu_cxx::__ops::_Iter_less_iter __comp; 24952: return __first + 24952: std::__is_heap_until(__first, std::distance(__first, __last), __comp); 24952: } 24952: # 523 "/usr/include/c++/13/bits/stl_heap.h" 3 24952: template 24952: 24952: inline _RandomAccessIterator 24952: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: typedef __decltype(__comp) _Cmp; 24952: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 24952: return __first 24952: + std::__is_heap_until(__first, std::distance(__first, __last), __cmp); 24952: } 24952: # 548 "/usr/include/c++/13/bits/stl_heap.h" 3 24952: template 24952: 24952: inline bool 24952: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 24952: { return std::is_heap_until(__first, __last) == __last; } 24952: # 562 "/usr/include/c++/13/bits/stl_heap.h" 3 24952: template 24952: 24952: inline bool 24952: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: const auto __dist = std::distance(__first, __last); 24952: typedef __decltype(__comp) _Cmp; 24952: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 24952: return std::__is_heap_until(__first, __dist, __cmp) == __dist; 24952: } 24952: 24952: 24952: 24952: } 24952: # 62 "/usr/include/c++/13/bits/stl_algo.h" 2 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/uniform_int_dist.h" 1 3 24952: # 41 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 64 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 24952: namespace __detail 24952: { 24952: 24952: 24952: 24952: template 24952: constexpr bool 24952: _Power_of_2(_Tp __x) 24952: { 24952: return ((__x - 1) & __x) == 0; 24952: } 24952: } 24952: # 87 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 24952: template 24952: class uniform_int_distribution 24952: { 24952: static_assert(std::is_integral<_IntType>::value, 24952: "template argument must be an integral type"); 24952: 24952: public: 24952: 24952: typedef _IntType result_type; 24952: 24952: struct param_type 24952: { 24952: typedef uniform_int_distribution<_IntType> distribution_type; 24952: 24952: param_type() : param_type(0) { } 24952: 24952: explicit 24952: param_type(_IntType __a, 24952: _IntType __b = __gnu_cxx::__int_traits<_IntType>::__max) 24952: : _M_a(__a), _M_b(__b) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: result_type 24952: a() const 24952: { return _M_a; } 24952: 24952: result_type 24952: b() const 24952: { return _M_b; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: private: 24952: _IntType _M_a; 24952: _IntType _M_b; 24952: }; 24952: 24952: public: 24952: 24952: 24952: 24952: uniform_int_distribution() : uniform_int_distribution(0) { } 24952: 24952: 24952: 24952: 24952: explicit 24952: uniform_int_distribution(_IntType __a, 24952: _IntType __b 24952: = __gnu_cxx::__int_traits<_IntType>::__max) 24952: : _M_param(__a, __b) 24952: { } 24952: 24952: explicit 24952: uniform_int_distribution(const param_type& __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: reset() { } 24952: 24952: result_type 24952: a() const 24952: { return _M_param.a(); } 24952: 24952: result_type 24952: b() const 24952: { return _M_param.b(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return this->a(); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return this->b(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomBitGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomBitGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomBitGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomBitGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomBitGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const uniform_int_distribution& __d1, 24952: const uniform_int_distribution& __d2) 24952: { return __d1._M_param == __d2._M_param; } 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomBitGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: 24952: 24952: 24952: 24952: template 24952: static _Up 24952: _S_nd(_Urbg& __g, _Up __range) 24952: { 24952: using _Up_traits = __gnu_cxx::__int_traits<_Up>; 24952: using _Wp_traits = __gnu_cxx::__int_traits<_Wp>; 24952: static_assert(!_Up_traits::__is_signed, "U must be unsigned"); 24952: static_assert(!_Wp_traits::__is_signed, "W must be unsigned"); 24952: static_assert(_Wp_traits::__digits == (2 * _Up_traits::__digits), 24952: "W must be twice as wide as U"); 24952: 24952: 24952: 24952: 24952: _Wp __product = _Wp(__g()) * _Wp(__range); 24952: _Up __low = _Up(__product); 24952: if (__low < __range) 24952: { 24952: _Up __threshold = -__range % __range; 24952: while (__low < __threshold) 24952: { 24952: __product = _Wp(__g()) * _Wp(__range); 24952: __low = _Up(__product); 24952: } 24952: } 24952: return __product >> _Up_traits::__digits; 24952: } 24952: }; 24952: 24952: template 24952: template 24952: typename uniform_int_distribution<_IntType>::result_type 24952: uniform_int_distribution<_IntType>:: 24952: operator()(_UniformRandomBitGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 24952: typedef typename make_unsigned::type __utype; 24952: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 24952: 24952: constexpr __uctype __urngmin = _UniformRandomBitGenerator::min(); 24952: constexpr __uctype __urngmax = _UniformRandomBitGenerator::max(); 24952: static_assert( __urngmin < __urngmax, 24952: "Uniform random bit generator must define min() < max()"); 24952: constexpr __uctype __urngrange = __urngmax - __urngmin; 24952: 24952: const __uctype __urange 24952: = __uctype(__param.b()) - __uctype(__param.a()); 24952: 24952: __uctype __ret; 24952: if (__urngrange > __urange) 24952: { 24952: 24952: 24952: const __uctype __uerange = __urange + 1; 24952: # 323 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 24952: if constexpr (__urngrange == 0xffffffffU) 24952: { 24952: 24952: 24952: unsigned int __u32erange = __uerange; 24952: __ret = _S_nd(__urng, __u32erange); 24952: } 24952: else 24952: 24952: { 24952: 24952: const __uctype __scaling = __urngrange / __uerange; 24952: const __uctype __past = __uerange * __scaling; 24952: do 24952: __ret = __uctype(__urng()) - __urngmin; 24952: while (__ret >= __past); 24952: __ret /= __scaling; 24952: } 24952: } 24952: else if (__urngrange < __urange) 24952: { 24952: # 359 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 24952: __uctype __tmp; 24952: do 24952: { 24952: const __uctype __uerngrange = __urngrange + 1; 24952: __tmp = (__uerngrange * operator() 24952: (__urng, param_type(0, __urange / __uerngrange))); 24952: __ret = __tmp + (__uctype(__urng()) - __urngmin); 24952: } 24952: while (__ret > __urange || __ret < __tmp); 24952: } 24952: else 24952: __ret = __uctype(__urng()) - __urngmin; 24952: 24952: return __ret + __param.a(); 24952: } 24952: 24952: 24952: template 24952: template 24952: void 24952: uniform_int_distribution<_IntType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomBitGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: 24952: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 24952: typedef typename make_unsigned::type __utype; 24952: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 24952: 24952: static_assert( __urng.min() < __urng.max(), 24952: "Uniform random bit generator must define min() < max()"); 24952: 24952: constexpr __uctype __urngmin = __urng.min(); 24952: constexpr __uctype __urngmax = __urng.max(); 24952: constexpr __uctype __urngrange = __urngmax - __urngmin; 24952: const __uctype __urange 24952: = __uctype(__param.b()) - __uctype(__param.a()); 24952: 24952: __uctype __ret; 24952: 24952: if (__urngrange > __urange) 24952: { 24952: if (__detail::_Power_of_2(__urngrange + 1) 24952: && __detail::_Power_of_2(__urange + 1)) 24952: { 24952: while (__f != __t) 24952: { 24952: __ret = __uctype(__urng()) - __urngmin; 24952: *__f++ = (__ret & __urange) + __param.a(); 24952: } 24952: } 24952: else 24952: { 24952: 24952: const __uctype __uerange = __urange + 1; 24952: const __uctype __scaling = __urngrange / __uerange; 24952: const __uctype __past = __uerange * __scaling; 24952: while (__f != __t) 24952: { 24952: do 24952: __ret = __uctype(__urng()) - __urngmin; 24952: while (__ret >= __past); 24952: *__f++ = __ret / __scaling + __param.a(); 24952: } 24952: } 24952: } 24952: else if (__urngrange < __urange) 24952: { 24952: # 444 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 24952: __uctype __tmp; 24952: while (__f != __t) 24952: { 24952: do 24952: { 24952: constexpr __uctype __uerngrange = __urngrange + 1; 24952: __tmp = (__uerngrange * operator() 24952: (__urng, param_type(0, __urange / __uerngrange))); 24952: __ret = __tmp + (__uctype(__urng()) - __urngmin); 24952: } 24952: while (__ret > __urange || __ret < __tmp); 24952: *__f++ = __ret; 24952: } 24952: } 24952: else 24952: while (__f != __t) 24952: *__f++ = __uctype(__urng()) - __urngmin + __param.a(); 24952: } 24952: 24952: 24952: 24952: 24952: } 24952: # 66 "/usr/include/c++/13/bits/stl_algo.h" 2 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/stl_tempbuf.h" 1 3 24952: # 65 "/usr/include/c++/13/bits/stl_tempbuf.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: namespace __detail 24952: { 24952: template 24952: inline void 24952: __return_temporary_buffer(_Tp* __p, 24952: size_t __len __attribute__((__unused__))) 24952: { 24952: 24952: ::operator delete(__p, __len * sizeof(_Tp)); 24952: 24952: 24952: 24952: } 24952: } 24952: # 101 "/usr/include/c++/13/bits/stl_tempbuf.h" 3 24952: template 24952: [[__deprecated__]] 24952: pair<_Tp*, ptrdiff_t> 24952: get_temporary_buffer(ptrdiff_t __len) noexcept 24952: { 24952: const ptrdiff_t __max = 24952: __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 24952: if (__len > __max) 24952: __len = __max; 24952: 24952: while (__len > 0) 24952: { 24952: _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), 24952: std::nothrow)); 24952: if (__tmp != 0) 24952: return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); 24952: __len = __len == 1 ? 0 : ((__len + 1) / 2); 24952: } 24952: return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); 24952: } 24952: # 129 "/usr/include/c++/13/bits/stl_tempbuf.h" 3 24952: template 24952: inline void 24952: return_temporary_buffer(_Tp* __p) 24952: { ::operator delete(__p); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: class _Temporary_buffer 24952: { 24952: 24952: 24952: 24952: public: 24952: typedef _Tp value_type; 24952: typedef value_type* pointer; 24952: typedef pointer iterator; 24952: typedef ptrdiff_t size_type; 24952: 24952: protected: 24952: size_type _M_original_len; 24952: size_type _M_len; 24952: pointer _M_buffer; 24952: 24952: public: 24952: 24952: size_type 24952: size() const 24952: { return _M_len; } 24952: 24952: 24952: size_type 24952: requested_size() const 24952: { return _M_original_len; } 24952: 24952: 24952: iterator 24952: begin() 24952: { return _M_buffer; } 24952: 24952: 24952: iterator 24952: end() 24952: { return _M_buffer + _M_len; } 24952: 24952: 24952: 24952: 24952: 24952: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len); 24952: 24952: ~_Temporary_buffer() 24952: { 24952: std::_Destroy(_M_buffer, _M_buffer + _M_len); 24952: std::__detail::__return_temporary_buffer(_M_buffer, _M_len); 24952: } 24952: 24952: private: 24952: 24952: _Temporary_buffer(const _Temporary_buffer&); 24952: 24952: void 24952: operator=(const _Temporary_buffer&); 24952: }; 24952: 24952: 24952: template 24952: struct __uninitialized_construct_buf_dispatch 24952: { 24952: template 24952: static void 24952: __ucr(_Pointer __first, _Pointer __last, 24952: _ForwardIterator __seed) 24952: { 24952: if (__first == __last) 24952: return; 24952: 24952: _Pointer __cur = __first; 24952: try 24952: { 24952: std::_Construct(std::__addressof(*__first), 24952: std::move(*__seed)); 24952: _Pointer __prev = __cur; 24952: ++__cur; 24952: for(; __cur != __last; ++__cur, ++__prev) 24952: std::_Construct(std::__addressof(*__cur), 24952: std::move(*__prev)); 24952: *__seed = std::move(*__prev); 24952: } 24952: catch(...) 24952: { 24952: std::_Destroy(__first, __cur); 24952: throw; 24952: } 24952: } 24952: }; 24952: 24952: template<> 24952: struct __uninitialized_construct_buf_dispatch 24952: { 24952: template 24952: static void 24952: __ucr(_Pointer, _Pointer, _ForwardIterator) { } 24952: }; 24952: # 247 "/usr/include/c++/13/bits/stl_tempbuf.h" 3 24952: template 24952: inline void 24952: __uninitialized_construct_buf(_Pointer __first, _Pointer __last, 24952: _ForwardIterator __seed) 24952: { 24952: typedef typename std::iterator_traits<_Pointer>::value_type 24952: _ValueType; 24952: 24952: std::__uninitialized_construct_buf_dispatch< 24952: __has_trivial_constructor(_ValueType)>:: 24952: __ucr(__first, __last, __seed); 24952: } 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: template 24952: _Temporary_buffer<_ForwardIterator, _Tp>:: 24952: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len) 24952: : _M_original_len(__original_len), _M_len(0), _M_buffer(0) 24952: { 24952: std::pair __p( 24952: std::get_temporary_buffer(_M_original_len)); 24952: 24952: if (__p.first) 24952: { 24952: try 24952: { 24952: std::__uninitialized_construct_buf(__p.first, __p.first + __p.second, 24952: __seed); 24952: _M_buffer = __p.first; 24952: _M_len = __p.second; 24952: } 24952: catch(...) 24952: { 24952: std::__detail::__return_temporary_buffer(__p.first, __p.second); 24952: throw; 24952: } 24952: } 24952: } 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: } 24952: # 70 "/usr/include/c++/13/bits/stl_algo.h" 2 3 24952: 24952: # 1 "/usr/include/c++/13/cstdlib" 1 3 24952: # 39 "/usr/include/c++/13/cstdlib" 3 24952: 24952: # 40 "/usr/include/c++/13/cstdlib" 3 24952: # 79 "/usr/include/c++/13/cstdlib" 3 24952: # 1 "/usr/include/stdlib.h" 1 3 4 24952: # 26 "/usr/include/stdlib.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 24952: # 27 "/usr/include/stdlib.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 33 "/usr/include/stdlib.h" 2 3 4 24952: 24952: extern "C" { 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitflags.h" 1 3 4 24952: # 41 "/usr/include/stdlib.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitstatus.h" 1 3 4 24952: # 42 "/usr/include/stdlib.h" 2 3 4 24952: # 56 "/usr/include/stdlib.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 24952: # 52 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 24952: # 25 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 2 3 4 24952: # 53 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 2 3 4 24952: # 57 "/usr/include/stdlib.h" 2 3 4 24952: 24952: 24952: typedef struct 24952: { 24952: int quot; 24952: int rem; 24952: } div_t; 24952: 24952: 24952: 24952: typedef struct 24952: { 24952: long int quot; 24952: long int rem; 24952: } ldiv_t; 24952: 24952: 24952: 24952: 24952: 24952: __extension__ typedef struct 24952: { 24952: long long int quot; 24952: long long int rem; 24952: } lldiv_t; 24952: # 98 "/usr/include/stdlib.h" 3 4 24952: extern size_t __ctype_get_mb_cur_max (void) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: extern double atof (const char *__nptr) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: extern int atoi (const char *__nptr) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: extern long int atol (const char *__nptr) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: __extension__ extern long long int atoll (const char *__nptr) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: extern double strtod (const char *__restrict __nptr, 24952: char **__restrict __endptr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern float strtof (const char *__restrict __nptr, 24952: char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: extern long double strtold (const char *__restrict __nptr, 24952: char **__restrict __endptr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: # 141 "/usr/include/stdlib.h" 3 4 24952: extern _Float32 strtof32 (const char *__restrict __nptr, 24952: char **__restrict __endptr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern _Float64 strtof64 (const char *__restrict __nptr, 24952: char **__restrict __endptr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: # 159 "/usr/include/stdlib.h" 3 4 24952: extern _Float32x strtof32x (const char *__restrict __nptr, 24952: char **__restrict __endptr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: # 177 "/usr/include/stdlib.h" 3 4 24952: extern long int strtol (const char *__restrict __nptr, 24952: char **__restrict __endptr, int __base) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: extern unsigned long int strtoul (const char *__restrict __nptr, 24952: char **__restrict __endptr, int __base) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: __extension__ 24952: extern long long int strtoq (const char *__restrict __nptr, 24952: char **__restrict __endptr, int __base) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: __extension__ 24952: extern unsigned long long int strtouq (const char *__restrict __nptr, 24952: char **__restrict __endptr, int __base) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: __extension__ 24952: extern long long int strtoll (const char *__restrict __nptr, 24952: char **__restrict __endptr, int __base) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: __extension__ 24952: extern unsigned long long int strtoull (const char *__restrict __nptr, 24952: char **__restrict __endptr, int __base) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: extern int strfromd (char *__dest, size_t __size, const char *__format, 24952: double __f) 24952: noexcept (true) __attribute__ ((__nonnull__ (3))); 24952: 24952: extern int strfromf (char *__dest, size_t __size, const char *__format, 24952: float __f) 24952: noexcept (true) __attribute__ ((__nonnull__ (3))); 24952: 24952: extern int strfroml (char *__dest, size_t __size, const char *__format, 24952: long double __f) 24952: noexcept (true) __attribute__ ((__nonnull__ (3))); 24952: # 233 "/usr/include/stdlib.h" 3 4 24952: extern int strfromf32 (char *__dest, size_t __size, const char * __format, 24952: _Float32 __f) 24952: noexcept (true) __attribute__ ((__nonnull__ (3))); 24952: 24952: 24952: 24952: extern int strfromf64 (char *__dest, size_t __size, const char * __format, 24952: _Float64 __f) 24952: noexcept (true) __attribute__ ((__nonnull__ (3))); 24952: # 251 "/usr/include/stdlib.h" 3 4 24952: extern int strfromf32x (char *__dest, size_t __size, const char * __format, 24952: _Float32x __f) 24952: noexcept (true) __attribute__ ((__nonnull__ (3))); 24952: # 273 "/usr/include/stdlib.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 1 3 4 24952: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 1 3 4 24952: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 3 4 24952: struct __locale_struct 24952: { 24952: 24952: struct __locale_data *__locales[13]; 24952: 24952: 24952: const unsigned short int *__ctype_b; 24952: const int *__ctype_tolower; 24952: const int *__ctype_toupper; 24952: 24952: 24952: const char *__names[13]; 24952: }; 24952: 24952: typedef struct __locale_struct *__locale_t; 24952: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 2 3 4 24952: 24952: typedef __locale_t locale_t; 24952: # 274 "/usr/include/stdlib.h" 2 3 4 24952: 24952: extern long int strtol_l (const char *__restrict __nptr, 24952: char **__restrict __endptr, int __base, 24952: locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 24952: 24952: extern unsigned long int strtoul_l (const char *__restrict __nptr, 24952: char **__restrict __endptr, 24952: int __base, locale_t __loc) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 24952: 24952: __extension__ 24952: extern long long int strtoll_l (const char *__restrict __nptr, 24952: char **__restrict __endptr, int __base, 24952: locale_t __loc) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 24952: 24952: __extension__ 24952: extern unsigned long long int strtoull_l (const char *__restrict __nptr, 24952: char **__restrict __endptr, 24952: int __base, locale_t __loc) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 24952: 24952: extern double strtod_l (const char *__restrict __nptr, 24952: char **__restrict __endptr, locale_t __loc) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 24952: 24952: extern float strtof_l (const char *__restrict __nptr, 24952: char **__restrict __endptr, locale_t __loc) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 24952: 24952: extern long double strtold_l (const char *__restrict __nptr, 24952: char **__restrict __endptr, 24952: locale_t __loc) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 24952: # 317 "/usr/include/stdlib.h" 3 4 24952: extern _Float32 strtof32_l (const char *__restrict __nptr, 24952: char **__restrict __endptr, 24952: locale_t __loc) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 24952: 24952: 24952: 24952: extern _Float64 strtof64_l (const char *__restrict __nptr, 24952: char **__restrict __endptr, 24952: locale_t __loc) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 24952: # 338 "/usr/include/stdlib.h" 3 4 24952: extern _Float32x strtof32x_l (const char *__restrict __nptr, 24952: char **__restrict __endptr, 24952: locale_t __loc) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 24952: # 361 "/usr/include/stdlib.h" 3 4 24952: extern __inline __attribute__ ((__gnu_inline__)) int 24952: __attribute__ ((__leaf__)) atoi (const char *__nptr) noexcept (true) 24952: { 24952: return (int) strtol (__nptr, (char **) __null, 10); 24952: } 24952: extern __inline __attribute__ ((__gnu_inline__)) long int 24952: __attribute__ ((__leaf__)) atol (const char *__nptr) noexcept (true) 24952: { 24952: return strtol (__nptr, (char **) __null, 10); 24952: } 24952: 24952: 24952: __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int 24952: __attribute__ ((__leaf__)) atoll (const char *__nptr) noexcept (true) 24952: { 24952: return strtoll (__nptr, (char **) __null, 10); 24952: } 24952: # 386 "/usr/include/stdlib.h" 3 4 24952: extern char *l64a (long int __n) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: extern long int a64l (const char *__s) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/sys/types.h" 1 3 4 24952: # 27 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 24952: extern "C" { 24952: 24952: 24952: 24952: 24952: 24952: typedef __u_char u_char; 24952: typedef __u_short u_short; 24952: typedef __u_int u_int; 24952: typedef __u_long u_long; 24952: typedef __quad_t quad_t; 24952: typedef __u_quad_t u_quad_t; 24952: typedef __fsid_t fsid_t; 24952: 24952: 24952: typedef __loff_t loff_t; 24952: 24952: 24952: 24952: 24952: typedef __ino_t ino_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef __ino64_t ino64_t; 24952: 24952: 24952: 24952: 24952: typedef __dev_t dev_t; 24952: 24952: 24952: 24952: 24952: typedef __gid_t gid_t; 24952: 24952: 24952: 24952: 24952: typedef __mode_t mode_t; 24952: 24952: 24952: 24952: 24952: typedef __nlink_t nlink_t; 24952: 24952: 24952: 24952: 24952: typedef __uid_t uid_t; 24952: 24952: 24952: 24952: 24952: 24952: typedef __off_t off_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef __off64_t off64_t; 24952: 24952: 24952: 24952: 24952: typedef __pid_t pid_t; 24952: 24952: 24952: 24952: 24952: 24952: typedef __id_t id_t; 24952: 24952: 24952: 24952: 24952: typedef __ssize_t ssize_t; 24952: 24952: 24952: 24952: 24952: 24952: typedef __daddr_t daddr_t; 24952: typedef __caddr_t caddr_t; 24952: 24952: 24952: 24952: 24952: 24952: typedef __key_t key_t; 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clock_t.h" 1 3 4 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef __clock_t clock_t; 24952: # 127 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clockid_t.h" 1 3 4 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef __clockid_t clockid_t; 24952: # 129 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 1 3 4 24952: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 3 4 24952: typedef __time_t time_t; 24952: # 130 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/timer_t.h" 1 3 4 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef __timer_t timer_t; 24952: # 131 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 24952: 24952: 24952: 24952: typedef __useconds_t useconds_t; 24952: 24952: 24952: 24952: typedef __suseconds_t suseconds_t; 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 145 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 24952: 24952: 24952: 24952: typedef unsigned long int ulong; 24952: typedef unsigned short int ushort; 24952: typedef unsigned int uint; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef __uint8_t u_int8_t; 24952: typedef __uint16_t u_int16_t; 24952: typedef __uint32_t u_int32_t; 24952: typedef __uint64_t u_int64_t; 24952: 24952: 24952: typedef int register_t __attribute__ ((__mode__ (__word__))); 24952: # 176 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 24952: # 1 "/usr/include/endian.h" 1 3 4 24952: # 24 "/usr/include/endian.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 1 3 4 24952: # 35 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/endianness.h" 1 3 4 24952: # 36 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 2 3 4 24952: # 25 "/usr/include/endian.h" 2 3 4 24952: # 35 "/usr/include/endian.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 1 3 4 24952: # 33 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 24952: static __inline __uint16_t 24952: __bswap_16 (__uint16_t __bsx) 24952: { 24952: 24952: return __builtin_bswap16 (__bsx); 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: static __inline __uint32_t 24952: __bswap_32 (__uint32_t __bsx) 24952: { 24952: 24952: return __builtin_bswap32 (__bsx); 24952: 24952: 24952: 24952: } 24952: # 69 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 24952: __extension__ static __inline __uint64_t 24952: __bswap_64 (__uint64_t __bsx) 24952: { 24952: 24952: return __builtin_bswap64 (__bsx); 24952: 24952: 24952: 24952: } 24952: # 36 "/usr/include/endian.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 1 3 4 24952: # 32 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 3 4 24952: static __inline __uint16_t 24952: __uint16_identity (__uint16_t __x) 24952: { 24952: return __x; 24952: } 24952: 24952: static __inline __uint32_t 24952: __uint32_identity (__uint32_t __x) 24952: { 24952: return __x; 24952: } 24952: 24952: static __inline __uint64_t 24952: __uint64_identity (__uint64_t __x) 24952: { 24952: return __x; 24952: } 24952: # 37 "/usr/include/endian.h" 2 3 4 24952: # 177 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/sys/select.h" 1 3 4 24952: # 30 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/select.h" 1 3 4 24952: # 31 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 1 3 4 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__sigset_t.h" 1 3 4 24952: 24952: 24952: 24952: 24952: typedef struct 24952: { 24952: unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; 24952: } __sigset_t; 24952: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 2 3 4 24952: 24952: 24952: typedef __sigset_t sigset_t; 24952: # 34 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timeval.h" 1 3 4 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct timeval 24952: { 24952: 24952: 24952: 24952: 24952: __time_t tv_sec; 24952: __suseconds_t tv_usec; 24952: 24952: }; 24952: # 38 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 1 3 4 24952: # 11 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 24952: struct timespec 24952: { 24952: 24952: 24952: 24952: __time_t tv_sec; 24952: 24952: 24952: 24952: 24952: __syscall_slong_t tv_nsec; 24952: # 31 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 24952: }; 24952: # 40 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 24952: # 49 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 24952: typedef long int __fd_mask; 24952: # 59 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 24952: typedef struct 24952: { 24952: 24952: 24952: 24952: __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; 24952: 24952: 24952: 24952: 24952: 24952: } fd_set; 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef __fd_mask fd_mask; 24952: # 91 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 24952: extern "C" { 24952: # 102 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 24952: extern int select (int __nfds, fd_set *__restrict __readfds, 24952: fd_set *__restrict __writefds, 24952: fd_set *__restrict __exceptfds, 24952: struct timeval *__restrict __timeout); 24952: # 127 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 24952: extern int pselect (int __nfds, fd_set *__restrict __readfds, 24952: fd_set *__restrict __writefds, 24952: fd_set *__restrict __exceptfds, 24952: const struct timespec *__restrict __timeout, 24952: const __sigset_t *__restrict __sigmask); 24952: # 150 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 3 4 24952: extern long int __fdelt_chk (long int __d); 24952: extern long int __fdelt_warn (long int __d) 24952: __attribute__((__warning__ ("bit outside of fd_set selected"))); 24952: # 151 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 24952: 24952: 24952: } 24952: # 180 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: typedef __blksize_t blksize_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef __blkcnt_t blkcnt_t; 24952: 24952: 24952: 24952: typedef __fsblkcnt_t fsblkcnt_t; 24952: 24952: 24952: 24952: typedef __fsfilcnt_t fsfilcnt_t; 24952: # 219 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 24952: typedef __blkcnt64_t blkcnt64_t; 24952: typedef __fsblkcnt64_t fsblkcnt64_t; 24952: typedef __fsfilcnt64_t fsfilcnt64_t; 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 1 3 4 24952: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 1 3 4 24952: # 44 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 1 3 4 24952: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 2 3 4 24952: # 45 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 1 3 4 24952: # 25 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 3 4 24952: typedef union 24952: { 24952: __extension__ unsigned long long int __value64; 24952: struct 24952: { 24952: unsigned int __low; 24952: unsigned int __high; 24952: } __value32; 24952: } __atomic_wide_counter; 24952: # 47 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 24952: 24952: 24952: 24952: 24952: typedef struct __pthread_internal_list 24952: { 24952: struct __pthread_internal_list *__prev; 24952: struct __pthread_internal_list *__next; 24952: } __pthread_list_t; 24952: 24952: typedef struct __pthread_internal_slist 24952: { 24952: struct __pthread_internal_slist *__next; 24952: } __pthread_slist_t; 24952: # 76 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 1 3 4 24952: # 27 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 24952: struct __pthread_mutex_s 24952: { 24952: int __lock ; 24952: unsigned int __count; 24952: int __owner; 24952: # 58 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 24952: int __kind; 24952: 24952: unsigned int __nusers; 24952: 24952: 24952: 24952: 24952: 24952: 24952: __extension__ union 24952: { 24952: int __spins; 24952: __pthread_slist_t __list; 24952: }; 24952: 24952: 24952: }; 24952: # 77 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 24952: # 89 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 1 3 4 24952: # 29 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 24952: struct __pthread_rwlock_arch_t 24952: { 24952: unsigned int __readers; 24952: unsigned int __writers; 24952: unsigned int __wrphase_futex; 24952: unsigned int __writers_futex; 24952: unsigned int __pad3; 24952: unsigned int __pad4; 24952: # 45 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 24952: unsigned char __flags; 24952: unsigned char __shared; 24952: unsigned char __pad1; 24952: unsigned char __pad2; 24952: 24952: int __cur_writer; 24952: }; 24952: # 90 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 24952: 24952: 24952: 24952: 24952: struct __pthread_cond_s 24952: { 24952: __atomic_wide_counter __wseq; 24952: __atomic_wide_counter __g1_start; 24952: unsigned int __g_refs[2] ; 24952: unsigned int __g_size[2]; 24952: unsigned int __g1_orig_size; 24952: unsigned int __wrefs; 24952: unsigned int __g_signals[2]; 24952: }; 24952: 24952: typedef unsigned int __tss_t; 24952: typedef unsigned long int __thrd_t; 24952: 24952: typedef struct 24952: { 24952: int __data ; 24952: } __once_flag; 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 2 3 4 24952: 24952: 24952: 24952: typedef unsigned long int pthread_t; 24952: 24952: 24952: 24952: 24952: typedef union 24952: { 24952: char __size[4]; 24952: int __align; 24952: } pthread_mutexattr_t; 24952: 24952: 24952: 24952: 24952: typedef union 24952: { 24952: char __size[4]; 24952: int __align; 24952: } pthread_condattr_t; 24952: 24952: 24952: 24952: typedef unsigned int pthread_key_t; 24952: 24952: 24952: 24952: typedef int pthread_once_t; 24952: 24952: 24952: union pthread_attr_t 24952: { 24952: char __size[36]; 24952: long int __align; 24952: }; 24952: 24952: typedef union pthread_attr_t pthread_attr_t; 24952: 24952: 24952: 24952: 24952: typedef union 24952: { 24952: struct __pthread_mutex_s __data; 24952: char __size[24]; 24952: long int __align; 24952: } pthread_mutex_t; 24952: 24952: 24952: typedef union 24952: { 24952: struct __pthread_cond_s __data; 24952: char __size[48]; 24952: __extension__ long long int __align; 24952: } pthread_cond_t; 24952: 24952: 24952: 24952: 24952: 24952: typedef union 24952: { 24952: struct __pthread_rwlock_arch_t __data; 24952: char __size[32]; 24952: long int __align; 24952: } pthread_rwlock_t; 24952: 24952: typedef union 24952: { 24952: char __size[8]; 24952: long int __align; 24952: } pthread_rwlockattr_t; 24952: 24952: 24952: 24952: 24952: 24952: typedef volatile int pthread_spinlock_t; 24952: 24952: 24952: 24952: 24952: typedef union 24952: { 24952: char __size[20]; 24952: long int __align; 24952: } pthread_barrier_t; 24952: 24952: typedef union 24952: { 24952: char __size[4]; 24952: int __align; 24952: } pthread_barrierattr_t; 24952: # 228 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 24952: 24952: 24952: } 24952: # 396 "/usr/include/stdlib.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long int random (void) noexcept (true); 24952: 24952: 24952: extern void srandom (unsigned int __seed) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern char *initstate (unsigned int __seed, char *__statebuf, 24952: size_t __statelen) noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: 24952: extern char *setstate (char *__statebuf) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct random_data 24952: { 24952: int32_t *fptr; 24952: int32_t *rptr; 24952: int32_t *state; 24952: int rand_type; 24952: int rand_deg; 24952: int rand_sep; 24952: int32_t *end_ptr; 24952: }; 24952: 24952: extern int random_r (struct random_data *__restrict __buf, 24952: int32_t *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: extern int srandom_r (unsigned int __seed, struct random_data *__buf) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, 24952: size_t __statelen, 24952: struct random_data *__restrict __buf) 24952: noexcept (true) __attribute__ ((__nonnull__ (2, 4))); 24952: 24952: extern int setstate_r (char *__restrict __statebuf, 24952: struct random_data *__restrict __buf) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: 24952: 24952: extern int rand (void) noexcept (true); 24952: 24952: extern void srand (unsigned int __seed) noexcept (true); 24952: 24952: 24952: 24952: extern int rand_r (unsigned int *__seed) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern double drand48 (void) noexcept (true); 24952: extern double erand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern long int lrand48 (void) noexcept (true); 24952: extern long int nrand48 (unsigned short int __xsubi[3]) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern long int mrand48 (void) noexcept (true); 24952: extern long int jrand48 (unsigned short int __xsubi[3]) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern void srand48 (long int __seedval) noexcept (true); 24952: extern unsigned short int *seed48 (unsigned short int __seed16v[3]) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: extern void lcong48 (unsigned short int __param[7]) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: struct drand48_data 24952: { 24952: unsigned short int __x[3]; 24952: unsigned short int __old_x[3]; 24952: unsigned short int __c; 24952: unsigned short int __init; 24952: __extension__ unsigned long long int __a; 24952: 24952: }; 24952: 24952: 24952: extern int drand48_r (struct drand48_data *__restrict __buffer, 24952: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: extern int erand48_r (unsigned short int __xsubi[3], 24952: struct drand48_data *__restrict __buffer, 24952: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int lrand48_r (struct drand48_data *__restrict __buffer, 24952: long int *__restrict __result) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: extern int nrand48_r (unsigned short int __xsubi[3], 24952: struct drand48_data *__restrict __buffer, 24952: long int *__restrict __result) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int mrand48_r (struct drand48_data *__restrict __buffer, 24952: long int *__restrict __result) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: extern int jrand48_r (unsigned short int __xsubi[3], 24952: struct drand48_data *__restrict __buffer, 24952: long int *__restrict __result) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int srand48_r (long int __seedval, struct drand48_data *__buffer) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: extern int seed48_r (unsigned short int __seed16v[3], 24952: struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: extern int lcong48_r (unsigned short int __param[7], 24952: struct drand48_data *__buffer) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern __uint32_t arc4random (void) 24952: noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: extern void arc4random_buf (void *__buf, size_t __size) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern __uint32_t arc4random_uniform (__uint32_t __upper_bound) 24952: noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 24952: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: extern void *calloc (size_t __nmemb, size_t __size) 24952: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern void *realloc (void *__ptr, size_t __size) 24952: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 24952: 24952: 24952: extern void free (void *__ptr) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 24952: noexcept (true) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__alloc_size__ (2, 3))) 24952: __attribute__ ((__malloc__ (__builtin_free, 1))); 24952: 24952: 24952: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 24952: noexcept (true) __attribute__ ((__malloc__ (reallocarray, 1))); 24952: 24952: 24952: 24952: # 1 "/usr/include/alloca.h" 1 3 4 24952: # 24 "/usr/include/alloca.h" 3 4 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 25 "/usr/include/alloca.h" 2 3 4 24952: 24952: extern "C" { 24952: 24952: 24952: 24952: 24952: 24952: extern void *alloca (size_t __size) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 588 "/usr/include/stdlib.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 24952: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern void *aligned_alloc (size_t __alignment, size_t __size) 24952: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 24952: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: extern void abort (void) noexcept (true) __attribute__ ((__noreturn__)); 24952: 24952: 24952: 24952: extern int atexit (void (*__func) (void)) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: extern "C++" int at_quick_exit (void (*__func) (void)) 24952: noexcept (true) __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); 24952: # 630 "/usr/include/stdlib.h" 3 4 24952: extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: extern void exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 24952: 24952: 24952: 24952: 24952: 24952: extern void quick_exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 24952: 24952: 24952: 24952: 24952: 24952: extern void _Exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 24952: 24952: 24952: 24952: 24952: extern char *getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern char *secure_getenv (const char *__name) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int putenv (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: extern int setenv (const char *__name, const char *__value, int __replace) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: extern int unsetenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int clearenv (void) noexcept (true); 24952: # 695 "/usr/include/stdlib.h" 3 4 24952: extern char *mktemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: # 708 "/usr/include/stdlib.h" 3 4 24952: extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: # 718 "/usr/include/stdlib.h" 3 4 24952: extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: # 730 "/usr/include/stdlib.h" 3 4 24952: extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: # 740 "/usr/include/stdlib.h" 3 4 24952: extern int mkstemps64 (char *__template, int __suffixlen) 24952: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: # 751 "/usr/include/stdlib.h" 3 4 24952: extern char *mkdtemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: # 762 "/usr/include/stdlib.h" 3 4 24952: extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: # 772 "/usr/include/stdlib.h" 3 4 24952: extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: # 782 "/usr/include/stdlib.h" 3 4 24952: extern int mkostemps (char *__template, int __suffixlen, int __flags) 24952: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: # 794 "/usr/include/stdlib.h" 3 4 24952: extern int mkostemps64 (char *__template, int __suffixlen, int __flags) 24952: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: # 804 "/usr/include/stdlib.h" 3 4 24952: extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: extern char *canonicalize_file_name (const char *__name) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__malloc__)) 24952: __attribute__ ((__malloc__ (__builtin_free, 1))) __attribute__ ((__warn_unused_result__)); 24952: # 821 "/usr/include/stdlib.h" 3 4 24952: extern char *realpath (const char *__restrict __name, 24952: char *__restrict __resolved) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef int (*__compar_fn_t) (const void *, const void *); 24952: 24952: 24952: typedef __compar_fn_t comparison_fn_t; 24952: 24952: 24952: 24952: typedef int (*__compar_d_fn_t) (const void *, const void *, void *); 24952: 24952: 24952: 24952: 24952: extern void *bsearch (const void *__key, const void *__base, 24952: size_t __nmemb, size_t __size, __compar_fn_t __compar) 24952: __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 1 3 4 24952: # 19 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 3 4 24952: extern __inline __attribute__ ((__gnu_inline__)) void * 24952: bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, 24952: __compar_fn_t __compar) 24952: { 24952: size_t __l, __u, __idx; 24952: const void *__p; 24952: int __comparison; 24952: 24952: __l = 0; 24952: __u = __nmemb; 24952: while (__l < __u) 24952: { 24952: __idx = (__l + __u) / 2; 24952: __p = (const void *) (((const char *) __base) + (__idx * __size)); 24952: __comparison = (*__compar) (__key, __p); 24952: if (__comparison < 0) 24952: __u = __idx; 24952: else if (__comparison > 0) 24952: __l = __idx + 1; 24952: else 24952: { 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wcast-qual" 24952: 24952: return (void *) __p; 24952: 24952: #pragma GCC diagnostic pop 24952: 24952: } 24952: } 24952: 24952: return __null; 24952: } 24952: # 847 "/usr/include/stdlib.h" 2 3 4 24952: 24952: 24952: 24952: 24952: extern void qsort (void *__base, size_t __nmemb, size_t __size, 24952: __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); 24952: 24952: extern void qsort_r (void *__base, size_t __nmemb, size_t __size, 24952: __compar_d_fn_t __compar, void *__arg) 24952: __attribute__ ((__nonnull__ (1, 4))); 24952: 24952: 24952: 24952: 24952: extern int abs (int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 24952: extern long int labs (long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: __extension__ extern long long int llabs (long long int __x) 24952: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern div_t div (int __numer, int __denom) 24952: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 24952: extern ldiv_t ldiv (long int __numer, long int __denom) 24952: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: __extension__ extern lldiv_t lldiv (long long int __numer, 24952: long long int __denom) 24952: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 24952: # 893 "/usr/include/stdlib.h" 3 4 24952: extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, 24952: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, 24952: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern char *gcvt (double __value, int __ndigit, char *__buf) 24952: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern char *qecvt (long double __value, int __ndigit, 24952: int *__restrict __decpt, int *__restrict __sign) 24952: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 24952: extern char *qfcvt (long double __value, int __ndigit, 24952: int *__restrict __decpt, int *__restrict __sign) 24952: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 24952: extern char *qgcvt (long double __value, int __ndigit, char *__buf) 24952: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, 24952: int *__restrict __sign, char *__restrict __buf, 24952: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 24952: extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, 24952: int *__restrict __sign, char *__restrict __buf, 24952: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 24952: 24952: extern int qecvt_r (long double __value, int __ndigit, 24952: int *__restrict __decpt, int *__restrict __sign, 24952: char *__restrict __buf, size_t __len) 24952: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 24952: extern int qfcvt_r (long double __value, int __ndigit, 24952: int *__restrict __decpt, int *__restrict __sign, 24952: char *__restrict __buf, size_t __len) 24952: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 24952: 24952: 24952: 24952: 24952: 24952: extern int mblen (const char *__s, size_t __n) noexcept (true); 24952: 24952: 24952: extern int mbtowc (wchar_t *__restrict __pwc, 24952: const char *__restrict __s, size_t __n) noexcept (true); 24952: 24952: 24952: extern int wctomb (char *__s, wchar_t __wchar) noexcept (true); 24952: 24952: 24952: 24952: extern size_t mbstowcs (wchar_t *__restrict __pwcs, 24952: const char *__restrict __s, size_t __n) noexcept (true) 24952: __attribute__ ((__access__ (__read_only__, 2))); 24952: 24952: extern size_t wcstombs (char *__restrict __s, 24952: const wchar_t *__restrict __pwcs, size_t __n) 24952: noexcept (true) 24952: __attribute__ ((__access__ (__write_only__, 1, 3))) 24952: __attribute__ ((__access__ (__read_only__, 2))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int rpmatch (const char *__response) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: # 980 "/usr/include/stdlib.h" 3 4 24952: extern int getsubopt (char **__restrict __optionp, 24952: char *const *__restrict __tokens, 24952: char **__restrict __valuep) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int grantpt (int __fd) noexcept (true); 24952: 24952: 24952: 24952: extern int unlockpt (int __fd) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern char *ptsname (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int ptsname_r (int __fd, char *__buf, size_t __buflen) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: 24952: 24952: extern int getpt (void); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int getloadavg (double __loadavg[], int __nelem) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: # 1036 "/usr/include/stdlib.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 3 4 24952: extern __inline __attribute__ ((__gnu_inline__)) double 24952: __attribute__ ((__leaf__)) atof (const char *__nptr) noexcept (true) 24952: { 24952: return strtod (__nptr, (char **) __null); 24952: } 24952: # 1037 "/usr/include/stdlib.h" 2 3 4 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 1 3 4 24952: # 23 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 3 4 24952: extern char *__realpath_chk (const char *__restrict __name, 24952: char *__restrict __resolved, 24952: size_t __resolvedlen) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) noexcept (true) __asm__ ("" "realpath") 24952: 24952: __attribute__ ((__warn_unused_result__)); 24952: extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) noexcept (true) __asm__ ("" "__realpath_chk") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) 24952: __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 24952: __attribute__ ((__leaf__)) realpath (const char *__restrict __name, char *__restrict __resolved) noexcept (true) 24952: { 24952: size_t sz = __builtin_object_size (__resolved, 2 > 1); 24952: 24952: if (sz == (size_t) -1) 24952: return __realpath_alias (__name, __resolved); 24952: 24952: 24952: 24952: 24952: 24952: return __realpath_chk (__name, __resolved, sz); 24952: } 24952: 24952: 24952: extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, 24952: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 24952: __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ptsname_r") 24952: 24952: __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ptsname_r_chk") 24952: 24952: 24952: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) ptsname_r (int __fd, char *__buf, size_t __buflen) noexcept (true) 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: 24952: 24952: extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) 24952: noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: extern int __wctomb_alias (char *__s, wchar_t __wchar) noexcept (true) __asm__ ("" "wctomb") 24952: __attribute__ ((__warn_unused_result__)); 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int 24952: __attribute__ ((__leaf__)) wctomb (char *__s, wchar_t __wchar) noexcept (true) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 24952: && 16 > __builtin_object_size (__s, 2 > 1)) 24952: return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); 24952: return __wctomb_alias (__s, __wchar); 24952: } 24952: 24952: 24952: extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, 24952: const char *__restrict __src, 24952: size_t __len, size_t __dstlen) noexcept (true) 24952: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 24952: extern size_t __mbstowcs_nulldst (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 24952: 24952: 24952: 24952: __attribute__ ((__access__ (__read_only__, 2))); 24952: extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 24952: 24952: 24952: 24952: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 24952: 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") 24952: 24952: 24952: 24952: __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 24952: __attribute__ ((__leaf__)) mbstowcs (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) 24952: 24952: { 24952: if (__builtin_constant_p (__dst == __null) && __dst == __null) 24952: return __mbstowcs_nulldst (__dst, __src, __len); 24952: else 24952: 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))))) 24952: ; 24952: } 24952: 24952: extern size_t __wcstombs_chk (char *__restrict __dst, 24952: const wchar_t *__restrict __src, 24952: size_t __len, size_t __dstlen) noexcept (true) 24952: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 24952: extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "wcstombs") 24952: 24952: 24952: 24952: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 24952: 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") 24952: 24952: 24952: 24952: __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 24952: __attribute__ ((__leaf__)) wcstombs (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) 24952: 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: # 1041 "/usr/include/stdlib.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 24952: # 1044 "/usr/include/stdlib.h" 2 3 4 24952: 24952: 24952: 24952: 24952: } 24952: # 80 "/usr/include/c++/13/cstdlib" 2 3 24952: 24952: # 1 "/usr/include/c++/13/bits/std_abs.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/std_abs.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/std_abs.h" 3 24952: # 46 "/usr/include/c++/13/bits/std_abs.h" 3 24952: extern "C++" 24952: { 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: using ::abs; 24952: 24952: 24952: inline long 24952: abs(long __i) { return __builtin_labs(__i); } 24952: 24952: 24952: 24952: inline long long 24952: abs(long long __x) { return __builtin_llabs (__x); } 24952: # 70 "/usr/include/c++/13/bits/std_abs.h" 3 24952: inline constexpr double 24952: abs(double __x) 24952: { return __builtin_fabs(__x); } 24952: 24952: inline constexpr float 24952: abs(float __x) 24952: { return __builtin_fabsf(__x); } 24952: 24952: inline constexpr long double 24952: abs(long double __x) 24952: { return __builtin_fabsl(__x); } 24952: # 150 "/usr/include/c++/13/bits/std_abs.h" 3 24952: 24952: } 24952: } 24952: # 82 "/usr/include/c++/13/cstdlib" 2 3 24952: # 125 "/usr/include/c++/13/cstdlib" 3 24952: extern "C++" 24952: { 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: using ::div_t; 24952: using ::ldiv_t; 24952: 24952: using ::abort; 24952: 24952: using ::aligned_alloc; 24952: 24952: using ::atexit; 24952: 24952: 24952: using ::at_quick_exit; 24952: 24952: 24952: using ::atof; 24952: using ::atoi; 24952: using ::atol; 24952: using ::bsearch; 24952: using ::calloc; 24952: using ::div; 24952: using ::exit; 24952: using ::free; 24952: using ::getenv; 24952: using ::labs; 24952: using ::ldiv; 24952: using ::malloc; 24952: 24952: using ::mblen; 24952: using ::mbstowcs; 24952: using ::mbtowc; 24952: 24952: using ::qsort; 24952: 24952: 24952: using ::quick_exit; 24952: 24952: 24952: using ::rand; 24952: using ::realloc; 24952: using ::srand; 24952: using ::strtod; 24952: using ::strtol; 24952: using ::strtoul; 24952: using ::system; 24952: 24952: using ::wcstombs; 24952: using ::wctomb; 24952: 24952: 24952: 24952: inline ldiv_t 24952: div(long __i, long __j) noexcept { return ldiv(__i, __j); } 24952: 24952: 24952: 24952: 24952: } 24952: # 199 "/usr/include/c++/13/cstdlib" 3 24952: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: using ::lldiv_t; 24952: 24952: 24952: 24952: 24952: 24952: using ::_Exit; 24952: 24952: 24952: 24952: using ::llabs; 24952: 24952: inline lldiv_t 24952: div(long long __n, long long __d) 24952: { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } 24952: 24952: using ::lldiv; 24952: # 231 "/usr/include/c++/13/cstdlib" 3 24952: using ::atoll; 24952: using ::strtoll; 24952: using ::strtoull; 24952: 24952: using ::strtof; 24952: using ::strtold; 24952: 24952: 24952: } 24952: 24952: namespace std 24952: { 24952: 24952: using ::__gnu_cxx::lldiv_t; 24952: 24952: using ::__gnu_cxx::_Exit; 24952: 24952: using ::__gnu_cxx::llabs; 24952: using ::__gnu_cxx::div; 24952: using ::__gnu_cxx::lldiv; 24952: 24952: using ::__gnu_cxx::atoll; 24952: using ::__gnu_cxx::strtof; 24952: using ::__gnu_cxx::strtoll; 24952: using ::__gnu_cxx::strtoull; 24952: using ::__gnu_cxx::strtold; 24952: } 24952: 24952: 24952: 24952: } 24952: # 72 "/usr/include/c++/13/bits/stl_algo.h" 2 3 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: 24952: void 24952: __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, 24952: _Iterator __c, _Compare __comp) 24952: { 24952: if (__comp(__a, __b)) 24952: { 24952: if (__comp(__b, __c)) 24952: std::iter_swap(__result, __b); 24952: else if (__comp(__a, __c)) 24952: std::iter_swap(__result, __c); 24952: else 24952: std::iter_swap(__result, __a); 24952: } 24952: else if (__comp(__a, __c)) 24952: std::iter_swap(__result, __a); 24952: else if (__comp(__b, __c)) 24952: std::iter_swap(__result, __c); 24952: else 24952: std::iter_swap(__result, __b); 24952: } 24952: 24952: 24952: template 24952: 24952: inline _InputIterator 24952: __find_if_not(_InputIterator __first, _InputIterator __last, 24952: _Predicate __pred) 24952: { 24952: return std::__find_if(__first, __last, 24952: __gnu_cxx::__ops::__negate(__pred), 24952: std::__iterator_category(__first)); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _InputIterator 24952: __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) 24952: { 24952: for (; __len; --__len, (void) ++__first) 24952: if (!__pred(__first)) 24952: break; 24952: return __first; 24952: } 24952: # 144 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: _ForwardIterator1 24952: __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 24952: _BinaryPredicate __predicate) 24952: { 24952: 24952: if (__first1 == __last1 || __first2 == __last2) 24952: return __first1; 24952: 24952: 24952: _ForwardIterator2 __p1(__first2); 24952: if (++__p1 == __last2) 24952: return std::__find_if(__first1, __last1, 24952: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 24952: 24952: 24952: _ForwardIterator1 __current = __first1; 24952: 24952: for (;;) 24952: { 24952: __first1 = 24952: std::__find_if(__first1, __last1, 24952: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 24952: 24952: if (__first1 == __last1) 24952: return __last1; 24952: 24952: _ForwardIterator2 __p = __p1; 24952: __current = __first1; 24952: if (++__current == __last1) 24952: return __last1; 24952: 24952: while (__predicate(__current, __p)) 24952: { 24952: if (++__p == __last2) 24952: return __first1; 24952: if (++__current == __last1) 24952: return __last1; 24952: } 24952: ++__first1; 24952: } 24952: return __first1; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _ForwardIterator 24952: __search_n_aux(_ForwardIterator __first, _ForwardIterator __last, 24952: _Integer __count, _UnaryPredicate __unary_pred, 24952: std::forward_iterator_tag) 24952: { 24952: __first = std::__find_if(__first, __last, __unary_pred); 24952: while (__first != __last) 24952: { 24952: typename iterator_traits<_ForwardIterator>::difference_type 24952: __n = __count; 24952: _ForwardIterator __i = __first; 24952: ++__i; 24952: while (__i != __last && __n != 1 && __unary_pred(__i)) 24952: { 24952: ++__i; 24952: --__n; 24952: } 24952: if (__n == 1) 24952: return __first; 24952: if (__i == __last) 24952: return __last; 24952: __first = std::__find_if(++__i, __last, __unary_pred); 24952: } 24952: return __last; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _RandomAccessIter 24952: __search_n_aux(_RandomAccessIter __first, _RandomAccessIter __last, 24952: _Integer __count, _UnaryPredicate __unary_pred, 24952: std::random_access_iterator_tag) 24952: { 24952: typedef typename std::iterator_traits<_RandomAccessIter>::difference_type 24952: _DistanceType; 24952: 24952: _DistanceType __tailSize = __last - __first; 24952: _DistanceType __remainder = __count; 24952: 24952: while (__remainder <= __tailSize) 24952: { 24952: __first += __remainder; 24952: __tailSize -= __remainder; 24952: 24952: 24952: _RandomAccessIter __backTrack = __first; 24952: while (__unary_pred(--__backTrack)) 24952: { 24952: if (--__remainder == 0) 24952: return (__first - __count); 24952: } 24952: __remainder = __count + 1 - (__first - __backTrack); 24952: } 24952: return __last; 24952: } 24952: 24952: template 24952: 24952: _ForwardIterator 24952: __search_n(_ForwardIterator __first, _ForwardIterator __last, 24952: _Integer __count, 24952: _UnaryPredicate __unary_pred) 24952: { 24952: if (__count <= 0) 24952: return __first; 24952: 24952: if (__count == 1) 24952: return std::__find_if(__first, __last, __unary_pred); 24952: 24952: return std::__search_n_aux(__first, __last, __count, __unary_pred, 24952: std::__iterator_category(__first)); 24952: } 24952: 24952: 24952: template 24952: 24952: _ForwardIterator1 24952: __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 24952: forward_iterator_tag, forward_iterator_tag, 24952: _BinaryPredicate __comp) 24952: { 24952: if (__first2 == __last2) 24952: return __last1; 24952: 24952: _ForwardIterator1 __result = __last1; 24952: while (1) 24952: { 24952: _ForwardIterator1 __new_result 24952: = std::__search(__first1, __last1, __first2, __last2, __comp); 24952: if (__new_result == __last1) 24952: return __result; 24952: else 24952: { 24952: __result = __new_result; 24952: __first1 = __new_result; 24952: ++__first1; 24952: } 24952: } 24952: } 24952: 24952: 24952: template 24952: 24952: _BidirectionalIterator1 24952: __find_end(_BidirectionalIterator1 __first1, 24952: _BidirectionalIterator1 __last1, 24952: _BidirectionalIterator2 __first2, 24952: _BidirectionalIterator2 __last2, 24952: bidirectional_iterator_tag, bidirectional_iterator_tag, 24952: _BinaryPredicate __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; 24952: typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; 24952: 24952: _RevIterator1 __rlast1(__first1); 24952: _RevIterator2 __rlast2(__first2); 24952: _RevIterator1 __rresult = std::__search(_RevIterator1(__last1), __rlast1, 24952: _RevIterator2(__last2), __rlast2, 24952: __comp); 24952: 24952: if (__rresult == __rlast1) 24952: return __last1; 24952: else 24952: { 24952: _BidirectionalIterator1 __result = __rresult.base(); 24952: std::advance(__result, -std::distance(__first2, __last2)); 24952: return __result; 24952: } 24952: } 24952: # 370 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator1 24952: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__find_end(__first1, __last1, __first2, __last2, 24952: std::__iterator_category(__first1), 24952: std::__iterator_category(__first2), 24952: __gnu_cxx::__ops::__iter_equal_to_iter()); 24952: } 24952: # 419 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator1 24952: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 24952: _BinaryPredicate __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__find_end(__first1, __last1, __first2, __last2, 24952: std::__iterator_category(__first1), 24952: std::__iterator_category(__first2), 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: # 455 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 24952: { return __last == std::find_if_not(__first, __last, __pred); } 24952: # 473 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 24952: { return __last == std::find_if(__first, __last, __pred); } 24952: # 492 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 24952: { return !std::none_of(__first, __last, __pred); } 24952: # 508 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _InputIterator 24952: find_if_not(_InputIterator __first, _InputIterator __last, 24952: _Predicate __pred) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: return std::__find_if_not(__first, __last, 24952: __gnu_cxx::__ops::__pred_iter(__pred)); 24952: } 24952: # 533 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: is_partitioned(_InputIterator __first, _InputIterator __last, 24952: _Predicate __pred) 24952: { 24952: __first = std::find_if_not(__first, __last, __pred); 24952: if (__first == __last) 24952: return true; 24952: ++__first; 24952: return std::none_of(__first, __last, __pred); 24952: } 24952: # 555 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: _ForwardIterator 24952: partition_point(_ForwardIterator __first, _ForwardIterator __last, 24952: _Predicate __pred) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: typedef typename iterator_traits<_ForwardIterator>::difference_type 24952: _DistanceType; 24952: 24952: _DistanceType __len = std::distance(__first, __last); 24952: 24952: while (__len > 0) 24952: { 24952: _DistanceType __half = __len >> 1; 24952: _ForwardIterator __middle = __first; 24952: std::advance(__middle, __half); 24952: if (__pred(*__middle)) 24952: { 24952: __first = __middle; 24952: ++__first; 24952: __len = __len - __half - 1; 24952: } 24952: else 24952: __len = __half; 24952: } 24952: return __first; 24952: } 24952: 24952: 24952: template 24952: 24952: _OutputIterator 24952: __remove_copy_if(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, _Predicate __pred) 24952: { 24952: for (; __first != __last; ++__first) 24952: if (!__pred(__first)) 24952: { 24952: *__result = *__first; 24952: ++__result; 24952: } 24952: return __result; 24952: } 24952: # 622 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: remove_copy(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, const _Tp& __value) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__remove_copy_if(__first, __last, __result, 24952: __gnu_cxx::__ops::__iter_equals_val(__value)); 24952: } 24952: # 655 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: remove_copy_if(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, _Predicate __pred) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__remove_copy_if(__first, __last, __result, 24952: __gnu_cxx::__ops::__pred_iter(__pred)); 24952: } 24952: # 690 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: _OutputIterator 24952: copy_if(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, _Predicate __pred) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: for (; __first != __last; ++__first) 24952: if (__pred(*__first)) 24952: { 24952: *__result = *__first; 24952: ++__result; 24952: } 24952: return __result; 24952: } 24952: 24952: template 24952: 24952: _OutputIterator 24952: __copy_n(_InputIterator __first, _Size __n, 24952: _OutputIterator __result, input_iterator_tag) 24952: { 24952: return std::__niter_wrap(__result, 24952: __copy_n_a(__first, __n, 24952: std::__niter_base(__result), true)); 24952: } 24952: 24952: template 24952: 24952: inline _OutputIterator 24952: __copy_n(_RandomAccessIterator __first, _Size __n, 24952: _OutputIterator __result, random_access_iterator_tag) 24952: { return std::copy(__first, __first + __n, __result); } 24952: # 746 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: copy_n(_InputIterator __first, _Size __n, _OutputIterator __result) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: const auto __n2 = std::__size_to_integer(__n); 24952: if (__n2 <= 0) 24952: return __result; 24952: 24952: ; 24952: ; 24952: 24952: return std::__copy_n(__first, __n2, __result, 24952: std::__iterator_category(__first)); 24952: } 24952: # 782 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: pair<_OutputIterator1, _OutputIterator2> 24952: partition_copy(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator1 __out_true, _OutputIterator2 __out_false, 24952: _Predicate __pred) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: for (; __first != __last; ++__first) 24952: if (__pred(*__first)) 24952: { 24952: *__out_true = *__first; 24952: ++__out_true; 24952: } 24952: else 24952: { 24952: *__out_false = *__first; 24952: ++__out_false; 24952: } 24952: 24952: return pair<_OutputIterator1, _OutputIterator2>(__out_true, __out_false); 24952: } 24952: # 833 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: remove(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __value) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__remove_if(__first, __last, 24952: __gnu_cxx::__ops::__iter_equals_val(__value)); 24952: } 24952: # 867 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: remove_if(_ForwardIterator __first, _ForwardIterator __last, 24952: _Predicate __pred) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__remove_if(__first, __last, 24952: __gnu_cxx::__ops::__pred_iter(__pred)); 24952: } 24952: 24952: template 24952: 24952: _ForwardIterator 24952: __adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 24952: _BinaryPredicate __binary_pred) 24952: { 24952: if (__first == __last) 24952: return __last; 24952: _ForwardIterator __next = __first; 24952: while (++__next != __last) 24952: { 24952: if (__binary_pred(__first, __next)) 24952: return __first; 24952: __first = __next; 24952: } 24952: return __last; 24952: } 24952: 24952: template 24952: 24952: _ForwardIterator 24952: __unique(_ForwardIterator __first, _ForwardIterator __last, 24952: _BinaryPredicate __binary_pred) 24952: { 24952: 24952: __first = std::__adjacent_find(__first, __last, __binary_pred); 24952: if (__first == __last) 24952: return __last; 24952: 24952: 24952: _ForwardIterator __dest = __first; 24952: ++__first; 24952: while (++__first != __last) 24952: if (!__binary_pred(__dest, __first)) 24952: *++__dest = std::move(*__first); 24952: return ++__dest; 24952: } 24952: # 936 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: unique(_ForwardIterator __first, _ForwardIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__unique(__first, __last, 24952: __gnu_cxx::__ops::__iter_equal_to_iter()); 24952: } 24952: # 967 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: unique(_ForwardIterator __first, _ForwardIterator __last, 24952: _BinaryPredicate __binary_pred) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__unique(__first, __last, 24952: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _OutputIterator 24952: __unique_copy(_ForwardIterator __first, _ForwardIterator __last, 24952: _OutputIterator __result, _BinaryPredicate __binary_pred, 24952: forward_iterator_tag, output_iterator_tag) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: _ForwardIterator __next = __first; 24952: *__result = *__first; 24952: while (++__next != __last) 24952: if (!__binary_pred(__first, __next)) 24952: { 24952: __first = __next; 24952: *++__result = *__first; 24952: } 24952: return ++__result; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _OutputIterator 24952: __unique_copy(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, _BinaryPredicate __binary_pred, 24952: input_iterator_tag, output_iterator_tag) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: typename iterator_traits<_InputIterator>::value_type __value = *__first; 24952: __decltype(__gnu_cxx::__ops::__iter_comp_val(__binary_pred)) 24952: __rebound_pred 24952: = __gnu_cxx::__ops::__iter_comp_val(__binary_pred); 24952: *__result = __value; 24952: while (++__first != __last) 24952: if (!__rebound_pred(__first, __value)) 24952: { 24952: __value = *__first; 24952: *++__result = __value; 24952: } 24952: return ++__result; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _ForwardIterator 24952: __unique_copy(_InputIterator __first, _InputIterator __last, 24952: _ForwardIterator __result, _BinaryPredicate __binary_pred, 24952: input_iterator_tag, forward_iterator_tag) 24952: { 24952: 24952: 24952: 24952: 24952: *__result = *__first; 24952: while (++__first != __last) 24952: if (!__binary_pred(__result, __first)) 24952: *++__result = *__first; 24952: return ++__result; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: void 24952: __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, 24952: bidirectional_iterator_tag) 24952: { 24952: while (true) 24952: if (__first == __last || __first == --__last) 24952: return; 24952: else 24952: { 24952: std::iter_swap(__first, __last); 24952: ++__first; 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: void 24952: __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: random_access_iterator_tag) 24952: { 24952: if (__first == __last) 24952: return; 24952: --__last; 24952: while (__first < __last) 24952: { 24952: std::iter_swap(__first, __last); 24952: ++__first; 24952: --__last; 24952: } 24952: } 24952: # 1128 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline void 24952: reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) 24952: { 24952: 24952: 24952: 24952: ; 24952: std::__reverse(__first, __last, std::__iterator_category(__first)); 24952: } 24952: # 1156 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: _OutputIterator 24952: reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, 24952: _OutputIterator __result) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: while (__first != __last) 24952: { 24952: --__last; 24952: *__result = *__last; 24952: ++__result; 24952: } 24952: return __result; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _EuclideanRingElement 24952: __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) 24952: { 24952: while (__n != 0) 24952: { 24952: _EuclideanRingElement __t = __m % __n; 24952: __m = __n; 24952: __n = __t; 24952: } 24952: return __m; 24952: } 24952: 24952: inline namespace _V2 { 24952: 24952: 24952: template 24952: 24952: _ForwardIterator 24952: __rotate(_ForwardIterator __first, 24952: _ForwardIterator __middle, 24952: _ForwardIterator __last, 24952: forward_iterator_tag) 24952: { 24952: if (__first == __middle) 24952: return __last; 24952: else if (__last == __middle) 24952: return __first; 24952: 24952: _ForwardIterator __first2 = __middle; 24952: do 24952: { 24952: std::iter_swap(__first, __first2); 24952: ++__first; 24952: ++__first2; 24952: if (__first == __middle) 24952: __middle = __first2; 24952: } 24952: while (__first2 != __last); 24952: 24952: _ForwardIterator __ret = __first; 24952: 24952: __first2 = __middle; 24952: 24952: while (__first2 != __last) 24952: { 24952: std::iter_swap(__first, __first2); 24952: ++__first; 24952: ++__first2; 24952: if (__first == __middle) 24952: __middle = __first2; 24952: else if (__first2 == __last) 24952: __first2 = __middle; 24952: } 24952: return __ret; 24952: } 24952: 24952: 24952: template 24952: 24952: _BidirectionalIterator 24952: __rotate(_BidirectionalIterator __first, 24952: _BidirectionalIterator __middle, 24952: _BidirectionalIterator __last, 24952: bidirectional_iterator_tag) 24952: { 24952: 24952: 24952: 24952: 24952: if (__first == __middle) 24952: return __last; 24952: else if (__last == __middle) 24952: return __first; 24952: 24952: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 24952: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 24952: 24952: while (__first != __middle && __middle != __last) 24952: { 24952: std::iter_swap(__first, --__last); 24952: ++__first; 24952: } 24952: 24952: if (__first == __middle) 24952: { 24952: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 24952: return __last; 24952: } 24952: else 24952: { 24952: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 24952: return __first; 24952: } 24952: } 24952: 24952: 24952: template 24952: 24952: _RandomAccessIterator 24952: __rotate(_RandomAccessIterator __first, 24952: _RandomAccessIterator __middle, 24952: _RandomAccessIterator __last, 24952: random_access_iterator_tag) 24952: { 24952: 24952: 24952: 24952: 24952: if (__first == __middle) 24952: return __last; 24952: else if (__last == __middle) 24952: return __first; 24952: 24952: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 24952: _Distance; 24952: typedef typename iterator_traits<_RandomAccessIterator>::value_type 24952: _ValueType; 24952: 24952: _Distance __n = __last - __first; 24952: _Distance __k = __middle - __first; 24952: 24952: if (__k == __n - __k) 24952: { 24952: std::swap_ranges(__first, __middle, __middle); 24952: return __middle; 24952: } 24952: 24952: _RandomAccessIterator __p = __first; 24952: _RandomAccessIterator __ret = __first + (__last - __middle); 24952: 24952: for (;;) 24952: { 24952: if (__k < __n - __k) 24952: { 24952: if (__is_pod(_ValueType) && __k == 1) 24952: { 24952: _ValueType __t = std::move(*__p); 24952: std::move(__p + 1, __p + __n, __p); 24952: *(__p + __n - 1) = std::move(__t); 24952: return __ret; 24952: } 24952: _RandomAccessIterator __q = __p + __k; 24952: for (_Distance __i = 0; __i < __n - __k; ++ __i) 24952: { 24952: std::iter_swap(__p, __q); 24952: ++__p; 24952: ++__q; 24952: } 24952: __n %= __k; 24952: if (__n == 0) 24952: return __ret; 24952: std::swap(__n, __k); 24952: __k = __n - __k; 24952: } 24952: else 24952: { 24952: __k = __n - __k; 24952: if (__is_pod(_ValueType) && __k == 1) 24952: { 24952: _ValueType __t = std::move(*(__p + __n - 1)); 24952: std::move_backward(__p, __p + __n - 1, __p + __n); 24952: *__p = std::move(__t); 24952: return __ret; 24952: } 24952: _RandomAccessIterator __q = __p + __n; 24952: __p = __q - __k; 24952: for (_Distance __i = 0; __i < __n - __k; ++ __i) 24952: { 24952: --__p; 24952: --__q; 24952: std::iter_swap(__p, __q); 24952: } 24952: __n %= __k; 24952: if (__n == 0) 24952: return __ret; 24952: std::swap(__n, __k); 24952: } 24952: } 24952: } 24952: # 1387 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: rotate(_ForwardIterator __first, _ForwardIterator __middle, 24952: _ForwardIterator __last) 24952: { 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__rotate(__first, __middle, __last, 24952: std::__iterator_category(__first)); 24952: } 24952: 24952: } 24952: # 1425 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, 24952: _ForwardIterator __last, _OutputIterator __result) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::copy(__first, __middle, 24952: std::copy(__middle, __last, __result)); 24952: } 24952: 24952: 24952: template 24952: 24952: _ForwardIterator 24952: __partition(_ForwardIterator __first, _ForwardIterator __last, 24952: _Predicate __pred, forward_iterator_tag) 24952: { 24952: if (__first == __last) 24952: return __first; 24952: 24952: while (__pred(*__first)) 24952: if (++__first == __last) 24952: return __first; 24952: 24952: _ForwardIterator __next = __first; 24952: 24952: while (++__next != __last) 24952: if (__pred(*__next)) 24952: { 24952: std::iter_swap(__first, __next); 24952: ++__first; 24952: } 24952: 24952: return __first; 24952: } 24952: 24952: 24952: template 24952: 24952: _BidirectionalIterator 24952: __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, 24952: _Predicate __pred, bidirectional_iterator_tag) 24952: { 24952: while (true) 24952: { 24952: while (true) 24952: if (__first == __last) 24952: return __first; 24952: else if (__pred(*__first)) 24952: ++__first; 24952: else 24952: break; 24952: --__last; 24952: while (true) 24952: if (__first == __last) 24952: return __first; 24952: else if (!bool(__pred(*__last))) 24952: --__last; 24952: else 24952: break; 24952: std::iter_swap(__first, __last); 24952: ++__first; 24952: } 24952: } 24952: # 1506 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: _ForwardIterator 24952: __stable_partition_adaptive(_ForwardIterator __first, 24952: _ForwardIterator __last, 24952: _Predicate __pred, _Distance __len, 24952: _Pointer __buffer, 24952: _Distance __buffer_size) 24952: { 24952: if (__len == 1) 24952: return __first; 24952: 24952: if (__len <= __buffer_size) 24952: { 24952: _ForwardIterator __result1 = __first; 24952: _Pointer __result2 = __buffer; 24952: 24952: 24952: 24952: 24952: *__result2 = std::move(*__first); 24952: ++__result2; 24952: ++__first; 24952: for (; __first != __last; ++__first) 24952: if (__pred(__first)) 24952: { 24952: *__result1 = std::move(*__first); 24952: ++__result1; 24952: } 24952: else 24952: { 24952: *__result2 = std::move(*__first); 24952: ++__result2; 24952: } 24952: 24952: std::move(__buffer, __result2, __result1); 24952: return __result1; 24952: } 24952: 24952: _ForwardIterator __middle = __first; 24952: std::advance(__middle, __len / 2); 24952: _ForwardIterator __left_split = 24952: std::__stable_partition_adaptive(__first, __middle, __pred, 24952: __len / 2, __buffer, 24952: __buffer_size); 24952: 24952: 24952: 24952: _Distance __right_len = __len - __len / 2; 24952: _ForwardIterator __right_split = 24952: std::__find_if_not_n(__middle, __right_len, __pred); 24952: 24952: if (__right_len) 24952: __right_split = 24952: std::__stable_partition_adaptive(__right_split, __last, __pred, 24952: __right_len, 24952: __buffer, __buffer_size); 24952: 24952: return std::rotate(__left_split, __middle, __right_split); 24952: } 24952: 24952: template 24952: _ForwardIterator 24952: __stable_partition(_ForwardIterator __first, _ForwardIterator __last, 24952: _Predicate __pred) 24952: { 24952: __first = std::__find_if_not(__first, __last, __pred); 24952: 24952: if (__first == __last) 24952: return __first; 24952: 24952: typedef typename iterator_traits<_ForwardIterator>::value_type 24952: _ValueType; 24952: typedef typename iterator_traits<_ForwardIterator>::difference_type 24952: _DistanceType; 24952: 24952: _Temporary_buffer<_ForwardIterator, _ValueType> 24952: __buf(__first, std::distance(__first, __last)); 24952: return 24952: std::__stable_partition_adaptive(__first, __last, __pred, 24952: _DistanceType(__buf.requested_size()), 24952: __buf.begin(), 24952: _DistanceType(__buf.size())); 24952: } 24952: # 1608 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: inline _ForwardIterator 24952: stable_partition(_ForwardIterator __first, _ForwardIterator __last, 24952: _Predicate __pred) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__stable_partition(__first, __last, 24952: __gnu_cxx::__ops::__pred_iter(__pred)); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: void 24952: __heap_select(_RandomAccessIterator __first, 24952: _RandomAccessIterator __middle, 24952: _RandomAccessIterator __last, _Compare __comp) 24952: { 24952: std::__make_heap(__first, __middle, __comp); 24952: for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) 24952: if (__comp(__i, __first)) 24952: std::__pop_heap(__first, __middle, __i, __comp); 24952: } 24952: 24952: 24952: 24952: template 24952: 24952: _RandomAccessIterator 24952: __partial_sort_copy(_InputIterator __first, _InputIterator __last, 24952: _RandomAccessIterator __result_first, 24952: _RandomAccessIterator __result_last, 24952: _Compare __comp) 24952: { 24952: typedef typename iterator_traits<_InputIterator>::value_type 24952: _InputValueType; 24952: typedef iterator_traits<_RandomAccessIterator> _RItTraits; 24952: typedef typename _RItTraits::difference_type _DistanceType; 24952: 24952: if (__result_first == __result_last) 24952: return __result_last; 24952: _RandomAccessIterator __result_real_last = __result_first; 24952: while (__first != __last && __result_real_last != __result_last) 24952: { 24952: *__result_real_last = *__first; 24952: ++__result_real_last; 24952: ++__first; 24952: } 24952: 24952: std::__make_heap(__result_first, __result_real_last, __comp); 24952: while (__first != __last) 24952: { 24952: if (__comp(__first, __result_first)) 24952: std::__adjust_heap(__result_first, _DistanceType(0), 24952: _DistanceType(__result_real_last 24952: - __result_first), 24952: _InputValueType(*__first), __comp); 24952: ++__first; 24952: } 24952: std::__sort_heap(__result_first, __result_real_last, __comp); 24952: return __result_real_last; 24952: } 24952: # 1701 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _RandomAccessIterator 24952: partial_sort_copy(_InputIterator __first, _InputIterator __last, 24952: _RandomAccessIterator __result_first, 24952: _RandomAccessIterator __result_last) 24952: { 24952: # 1716 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__partial_sort_copy(__first, __last, 24952: __result_first, __result_last, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 1751 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _RandomAccessIterator 24952: partial_sort_copy(_InputIterator __first, _InputIterator __last, 24952: _RandomAccessIterator __result_first, 24952: _RandomAccessIterator __result_last, 24952: _Compare __comp) 24952: { 24952: # 1768 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__partial_sort_copy(__first, __last, 24952: __result_first, __result_last, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: 24952: void 24952: __unguarded_linear_insert(_RandomAccessIterator __last, 24952: _Compare __comp) 24952: { 24952: typename iterator_traits<_RandomAccessIterator>::value_type 24952: __val = std::move(*__last); 24952: _RandomAccessIterator __next = __last; 24952: --__next; 24952: while (__comp(__val, __next)) 24952: { 24952: *__last = std::move(*__next); 24952: __last = __next; 24952: --__next; 24952: } 24952: *__last = std::move(__val); 24952: } 24952: 24952: 24952: template 24952: 24952: void 24952: __insertion_sort(_RandomAccessIterator __first, 24952: _RandomAccessIterator __last, _Compare __comp) 24952: { 24952: if (__first == __last) return; 24952: 24952: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 24952: { 24952: if (__comp(__i, __first)) 24952: { 24952: typename iterator_traits<_RandomAccessIterator>::value_type 24952: __val = std::move(*__i); 24952: std::move_backward(__first, __i, __i + 1); 24952: *__first = std::move(__val); 24952: } 24952: else 24952: std::__unguarded_linear_insert(__i, 24952: __gnu_cxx::__ops::__val_comp_iter(__comp)); 24952: } 24952: } 24952: 24952: 24952: template 24952: 24952: inline void 24952: __unguarded_insertion_sort(_RandomAccessIterator __first, 24952: _RandomAccessIterator __last, _Compare __comp) 24952: { 24952: for (_RandomAccessIterator __i = __first; __i != __last; ++__i) 24952: std::__unguarded_linear_insert(__i, 24952: __gnu_cxx::__ops::__val_comp_iter(__comp)); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: enum { _S_threshold = 16 }; 24952: 24952: 24952: template 24952: 24952: void 24952: __final_insertion_sort(_RandomAccessIterator __first, 24952: _RandomAccessIterator __last, _Compare __comp) 24952: { 24952: if (__last - __first > int(_S_threshold)) 24952: { 24952: std::__insertion_sort(__first, __first + int(_S_threshold), __comp); 24952: std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, 24952: __comp); 24952: } 24952: else 24952: std::__insertion_sort(__first, __last, __comp); 24952: } 24952: 24952: 24952: template 24952: 24952: _RandomAccessIterator 24952: __unguarded_partition(_RandomAccessIterator __first, 24952: _RandomAccessIterator __last, 24952: _RandomAccessIterator __pivot, _Compare __comp) 24952: { 24952: while (true) 24952: { 24952: while (__comp(__first, __pivot)) 24952: ++__first; 24952: --__last; 24952: while (__comp(__pivot, __last)) 24952: --__last; 24952: if (!(__first < __last)) 24952: return __first; 24952: std::iter_swap(__first, __last); 24952: ++__first; 24952: } 24952: } 24952: 24952: 24952: template 24952: 24952: inline _RandomAccessIterator 24952: __unguarded_partition_pivot(_RandomAccessIterator __first, 24952: _RandomAccessIterator __last, _Compare __comp) 24952: { 24952: _RandomAccessIterator __mid = __first + (__last - __first) / 2; 24952: std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, 24952: __comp); 24952: return std::__unguarded_partition(__first + 1, __last, __first, __comp); 24952: } 24952: 24952: template 24952: 24952: inline void 24952: __partial_sort(_RandomAccessIterator __first, 24952: _RandomAccessIterator __middle, 24952: _RandomAccessIterator __last, 24952: _Compare __comp) 24952: { 24952: std::__heap_select(__first, __middle, __last, __comp); 24952: std::__sort_heap(__first, __middle, __comp); 24952: } 24952: 24952: 24952: template 24952: 24952: void 24952: __introsort_loop(_RandomAccessIterator __first, 24952: _RandomAccessIterator __last, 24952: _Size __depth_limit, _Compare __comp) 24952: { 24952: while (__last - __first > int(_S_threshold)) 24952: { 24952: if (__depth_limit == 0) 24952: { 24952: std::__partial_sort(__first, __last, __last, __comp); 24952: return; 24952: } 24952: --__depth_limit; 24952: _RandomAccessIterator __cut = 24952: std::__unguarded_partition_pivot(__first, __last, __comp); 24952: std::__introsort_loop(__cut, __last, __depth_limit, __comp); 24952: __last = __cut; 24952: } 24952: } 24952: 24952: 24952: 24952: template 24952: 24952: inline void 24952: __sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _Compare __comp) 24952: { 24952: if (__first != __last) 24952: { 24952: std::__introsort_loop(__first, __last, 24952: std::__lg(__last - __first) * 2, 24952: __comp); 24952: std::__final_insertion_sort(__first, __last, __comp); 24952: } 24952: } 24952: 24952: template 24952: 24952: void 24952: __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, 24952: _RandomAccessIterator __last, _Size __depth_limit, 24952: _Compare __comp) 24952: { 24952: while (__last - __first > 3) 24952: { 24952: if (__depth_limit == 0) 24952: { 24952: std::__heap_select(__first, __nth + 1, __last, __comp); 24952: 24952: std::iter_swap(__first, __nth); 24952: return; 24952: } 24952: --__depth_limit; 24952: _RandomAccessIterator __cut = 24952: std::__unguarded_partition_pivot(__first, __last, __comp); 24952: if (__cut <= __nth) 24952: __first = __cut; 24952: else 24952: __last = __cut; 24952: } 24952: std::__insertion_sort(__first, __last, __comp); 24952: } 24952: # 2002 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __val, _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__lower_bound(__first, __last, __val, 24952: __gnu_cxx::__ops::__iter_comp_val(__comp)); 24952: } 24952: 24952: template 24952: 24952: _ForwardIterator 24952: __upper_bound(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __val, _Compare __comp) 24952: { 24952: typedef typename iterator_traits<_ForwardIterator>::difference_type 24952: _DistanceType; 24952: 24952: _DistanceType __len = std::distance(__first, __last); 24952: 24952: while (__len > 0) 24952: { 24952: _DistanceType __half = __len >> 1; 24952: _ForwardIterator __middle = __first; 24952: std::advance(__middle, __half); 24952: if (__comp(__val, __middle)) 24952: __len = __half; 24952: else 24952: { 24952: __first = __middle; 24952: ++__first; 24952: __len = __len - __half - 1; 24952: } 24952: } 24952: return __first; 24952: } 24952: # 2058 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __val) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__upper_bound(__first, __last, __val, 24952: __gnu_cxx::__ops::__val_less_iter()); 24952: } 24952: # 2089 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __val, _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__upper_bound(__first, __last, __val, 24952: __gnu_cxx::__ops::__val_comp_iter(__comp)); 24952: } 24952: 24952: template 24952: 24952: pair<_ForwardIterator, _ForwardIterator> 24952: __equal_range(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __val, 24952: _CompareItTp __comp_it_val, _CompareTpIt __comp_val_it) 24952: { 24952: typedef typename iterator_traits<_ForwardIterator>::difference_type 24952: _DistanceType; 24952: 24952: _DistanceType __len = std::distance(__first, __last); 24952: 24952: while (__len > 0) 24952: { 24952: _DistanceType __half = __len >> 1; 24952: _ForwardIterator __middle = __first; 24952: std::advance(__middle, __half); 24952: if (__comp_it_val(__middle, __val)) 24952: { 24952: __first = __middle; 24952: ++__first; 24952: __len = __len - __half - 1; 24952: } 24952: else if (__comp_val_it(__val, __middle)) 24952: __len = __half; 24952: else 24952: { 24952: _ForwardIterator __left 24952: = std::__lower_bound(__first, __middle, __val, __comp_it_val); 24952: std::advance(__first, __len); 24952: _ForwardIterator __right 24952: = std::__upper_bound(++__middle, __first, __val, __comp_val_it); 24952: return pair<_ForwardIterator, _ForwardIterator>(__left, __right); 24952: } 24952: } 24952: return pair<_ForwardIterator, _ForwardIterator>(__first, __first); 24952: } 24952: # 2162 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline pair<_ForwardIterator, _ForwardIterator> 24952: equal_range(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __val) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__equal_range(__first, __last, __val, 24952: __gnu_cxx::__ops::__iter_less_val(), 24952: __gnu_cxx::__ops::__val_less_iter()); 24952: } 24952: # 2199 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline pair<_ForwardIterator, _ForwardIterator> 24952: equal_range(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __val, _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: ; 24952: 24952: return std::__equal_range(__first, __last, __val, 24952: __gnu_cxx::__ops::__iter_comp_val(__comp), 24952: __gnu_cxx::__ops::__val_comp_iter(__comp)); 24952: } 24952: # 2233 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: bool 24952: binary_search(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __val) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: _ForwardIterator __i 24952: = std::__lower_bound(__first, __last, __val, 24952: __gnu_cxx::__ops::__iter_less_val()); 24952: return __i != __last && !(__val < *__i); 24952: } 24952: # 2267 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: bool 24952: binary_search(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __val, _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: ; 24952: 24952: _ForwardIterator __i 24952: = std::__lower_bound(__first, __last, __val, 24952: __gnu_cxx::__ops::__iter_comp_val(__comp)); 24952: return __i != __last && !bool(__comp(__val, *__i)); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: void 24952: __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result, _Compare __comp) 24952: { 24952: while (__first1 != __last1 && __first2 != __last2) 24952: { 24952: if (__comp(__first2, __first1)) 24952: { 24952: *__result = std::move(*__first2); 24952: ++__first2; 24952: } 24952: else 24952: { 24952: *__result = std::move(*__first1); 24952: ++__first1; 24952: } 24952: ++__result; 24952: } 24952: if (__first1 != __last1) 24952: std::move(__first1, __last1, __result); 24952: } 24952: 24952: 24952: template 24952: void 24952: __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, 24952: _BidirectionalIterator1 __last1, 24952: _BidirectionalIterator2 __first2, 24952: _BidirectionalIterator2 __last2, 24952: _BidirectionalIterator3 __result, 24952: _Compare __comp) 24952: { 24952: if (__first1 == __last1) 24952: { 24952: std::move_backward(__first2, __last2, __result); 24952: return; 24952: } 24952: else if (__first2 == __last2) 24952: return; 24952: 24952: --__last1; 24952: --__last2; 24952: while (true) 24952: { 24952: if (__comp(__last2, __last1)) 24952: { 24952: *--__result = std::move(*__last1); 24952: if (__first1 == __last1) 24952: { 24952: std::move_backward(__first2, ++__last2, __result); 24952: return; 24952: } 24952: --__last1; 24952: } 24952: else 24952: { 24952: *--__result = std::move(*__last2); 24952: if (__first2 == __last2) 24952: return; 24952: --__last2; 24952: } 24952: } 24952: } 24952: 24952: 24952: template 24952: _BidirectionalIterator1 24952: __rotate_adaptive(_BidirectionalIterator1 __first, 24952: _BidirectionalIterator1 __middle, 24952: _BidirectionalIterator1 __last, 24952: _Distance __len1, _Distance __len2, 24952: _BidirectionalIterator2 __buffer, 24952: _Distance __buffer_size) 24952: { 24952: _BidirectionalIterator2 __buffer_end; 24952: if (__len1 > __len2 && __len2 <= __buffer_size) 24952: { 24952: if (__len2) 24952: { 24952: __buffer_end = std::move(__middle, __last, __buffer); 24952: std::move_backward(__first, __middle, __last); 24952: return std::move(__buffer, __buffer_end, __first); 24952: } 24952: else 24952: return __first; 24952: } 24952: else if (__len1 <= __buffer_size) 24952: { 24952: if (__len1) 24952: { 24952: __buffer_end = std::move(__first, __middle, __buffer); 24952: std::move(__middle, __last, __first); 24952: return std::move_backward(__buffer, __buffer_end, __last); 24952: } 24952: else 24952: return __last; 24952: } 24952: else 24952: return std::rotate(__first, __middle, __last); 24952: } 24952: 24952: 24952: template 24952: void 24952: __merge_adaptive(_BidirectionalIterator __first, 24952: _BidirectionalIterator __middle, 24952: _BidirectionalIterator __last, 24952: _Distance __len1, _Distance __len2, 24952: _Pointer __buffer, _Compare __comp) 24952: { 24952: if (__len1 <= __len2) 24952: { 24952: _Pointer __buffer_end = std::move(__first, __middle, __buffer); 24952: std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, 24952: __first, __comp); 24952: } 24952: else 24952: { 24952: _Pointer __buffer_end = std::move(__middle, __last, __buffer); 24952: std::__move_merge_adaptive_backward(__first, __middle, __buffer, 24952: __buffer_end, __last, __comp); 24952: } 24952: } 24952: 24952: template 24952: void 24952: __merge_adaptive_resize(_BidirectionalIterator __first, 24952: _BidirectionalIterator __middle, 24952: _BidirectionalIterator __last, 24952: _Distance __len1, _Distance __len2, 24952: _Pointer __buffer, _Distance __buffer_size, 24952: _Compare __comp) 24952: { 24952: if (__len1 <= __buffer_size || __len2 <= __buffer_size) 24952: std::__merge_adaptive(__first, __middle, __last, 24952: __len1, __len2, __buffer, __comp); 24952: else 24952: { 24952: _BidirectionalIterator __first_cut = __first; 24952: _BidirectionalIterator __second_cut = __middle; 24952: _Distance __len11 = 0; 24952: _Distance __len22 = 0; 24952: if (__len1 > __len2) 24952: { 24952: __len11 = __len1 / 2; 24952: std::advance(__first_cut, __len11); 24952: __second_cut 24952: = std::__lower_bound(__middle, __last, *__first_cut, 24952: __gnu_cxx::__ops::__iter_comp_val(__comp)); 24952: __len22 = std::distance(__middle, __second_cut); 24952: } 24952: else 24952: { 24952: __len22 = __len2 / 2; 24952: std::advance(__second_cut, __len22); 24952: __first_cut 24952: = std::__upper_bound(__first, __middle, *__second_cut, 24952: __gnu_cxx::__ops::__val_comp_iter(__comp)); 24952: __len11 = std::distance(__first, __first_cut); 24952: } 24952: 24952: _BidirectionalIterator __new_middle 24952: = std::__rotate_adaptive(__first_cut, __middle, __second_cut, 24952: _Distance(__len1 - __len11), __len22, 24952: __buffer, __buffer_size); 24952: std::__merge_adaptive_resize(__first, __first_cut, __new_middle, 24952: __len11, __len22, 24952: __buffer, __buffer_size, __comp); 24952: std::__merge_adaptive_resize(__new_middle, __second_cut, __last, 24952: _Distance(__len1 - __len11), 24952: _Distance(__len2 - __len22), 24952: __buffer, __buffer_size, __comp); 24952: } 24952: } 24952: 24952: 24952: template 24952: void 24952: __merge_without_buffer(_BidirectionalIterator __first, 24952: _BidirectionalIterator __middle, 24952: _BidirectionalIterator __last, 24952: _Distance __len1, _Distance __len2, 24952: _Compare __comp) 24952: { 24952: if (__len1 == 0 || __len2 == 0) 24952: return; 24952: 24952: if (__len1 + __len2 == 2) 24952: { 24952: if (__comp(__middle, __first)) 24952: std::iter_swap(__first, __middle); 24952: return; 24952: } 24952: 24952: _BidirectionalIterator __first_cut = __first; 24952: _BidirectionalIterator __second_cut = __middle; 24952: _Distance __len11 = 0; 24952: _Distance __len22 = 0; 24952: if (__len1 > __len2) 24952: { 24952: __len11 = __len1 / 2; 24952: std::advance(__first_cut, __len11); 24952: __second_cut 24952: = std::__lower_bound(__middle, __last, *__first_cut, 24952: __gnu_cxx::__ops::__iter_comp_val(__comp)); 24952: __len22 = std::distance(__middle, __second_cut); 24952: } 24952: else 24952: { 24952: __len22 = __len2 / 2; 24952: std::advance(__second_cut, __len22); 24952: __first_cut 24952: = std::__upper_bound(__first, __middle, *__second_cut, 24952: __gnu_cxx::__ops::__val_comp_iter(__comp)); 24952: __len11 = std::distance(__first, __first_cut); 24952: } 24952: 24952: _BidirectionalIterator __new_middle 24952: = std::rotate(__first_cut, __middle, __second_cut); 24952: std::__merge_without_buffer(__first, __first_cut, __new_middle, 24952: __len11, __len22, __comp); 24952: std::__merge_without_buffer(__new_middle, __second_cut, __last, 24952: __len1 - __len11, __len2 - __len22, __comp); 24952: } 24952: 24952: template 24952: void 24952: __inplace_merge(_BidirectionalIterator __first, 24952: _BidirectionalIterator __middle, 24952: _BidirectionalIterator __last, 24952: _Compare __comp) 24952: { 24952: typedef typename iterator_traits<_BidirectionalIterator>::value_type 24952: _ValueType; 24952: typedef typename iterator_traits<_BidirectionalIterator>::difference_type 24952: _DistanceType; 24952: 24952: if (__first == __middle || __middle == __last) 24952: return; 24952: 24952: const _DistanceType __len1 = std::distance(__first, __middle); 24952: const _DistanceType __len2 = std::distance(__middle, __last); 24952: 24952: 24952: typedef _Temporary_buffer<_BidirectionalIterator, _ValueType> _TmpBuf; 24952: 24952: 24952: _TmpBuf __buf(__first, std::min(__len1, __len2)); 24952: 24952: if (__builtin_expect(__buf.size() == __buf.requested_size(), true)) 24952: std::__merge_adaptive 24952: (__first, __middle, __last, __len1, __len2, __buf.begin(), __comp); 24952: else if (__builtin_expect(__buf.begin() == 0, false)) 24952: std::__merge_without_buffer 24952: (__first, __middle, __last, __len1, __len2, __comp); 24952: else 24952: std::__merge_adaptive_resize 24952: (__first, __middle, __last, __len1, __len2, __buf.begin(), 24952: _DistanceType(__buf.size()), __comp); 24952: 24952: 24952: 24952: 24952: } 24952: # 2582 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: inline void 24952: inplace_merge(_BidirectionalIterator __first, 24952: _BidirectionalIterator __middle, 24952: _BidirectionalIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: 24952: std::__inplace_merge(__first, __middle, __last, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 2623 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: inline void 24952: inplace_merge(_BidirectionalIterator __first, 24952: _BidirectionalIterator __middle, 24952: _BidirectionalIterator __last, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: 24952: std::__inplace_merge(__first, __middle, __last, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: 24952: 24952: template 24952: _OutputIterator 24952: __move_merge(_InputIterator __first1, _InputIterator __last1, 24952: _InputIterator __first2, _InputIterator __last2, 24952: _OutputIterator __result, _Compare __comp) 24952: { 24952: while (__first1 != __last1 && __first2 != __last2) 24952: { 24952: if (__comp(__first2, __first1)) 24952: { 24952: *__result = std::move(*__first2); 24952: ++__first2; 24952: } 24952: else 24952: { 24952: *__result = std::move(*__first1); 24952: ++__first1; 24952: } 24952: ++__result; 24952: } 24952: return std::move(__first2, __last2, std::move(__first1, __last1, __result)) 24952: 24952: ; 24952: } 24952: 24952: template 24952: void 24952: __merge_sort_loop(_RandomAccessIterator1 __first, 24952: _RandomAccessIterator1 __last, 24952: _RandomAccessIterator2 __result, _Distance __step_size, 24952: _Compare __comp) 24952: { 24952: const _Distance __two_step = 2 * __step_size; 24952: 24952: while (__last - __first >= __two_step) 24952: { 24952: __result = std::__move_merge(__first, __first + __step_size, 24952: __first + __step_size, 24952: __first + __two_step, 24952: __result, __comp); 24952: __first += __two_step; 24952: } 24952: __step_size = std::min(_Distance(__last - __first), __step_size); 24952: 24952: std::__move_merge(__first, __first + __step_size, 24952: __first + __step_size, __last, __result, __comp); 24952: } 24952: 24952: template 24952: 24952: void 24952: __chunk_insertion_sort(_RandomAccessIterator __first, 24952: _RandomAccessIterator __last, 24952: _Distance __chunk_size, _Compare __comp) 24952: { 24952: while (__last - __first >= __chunk_size) 24952: { 24952: std::__insertion_sort(__first, __first + __chunk_size, __comp); 24952: __first += __chunk_size; 24952: } 24952: std::__insertion_sort(__first, __last, __comp); 24952: } 24952: 24952: enum { _S_chunk_size = 7 }; 24952: 24952: template 24952: void 24952: __merge_sort_with_buffer(_RandomAccessIterator __first, 24952: _RandomAccessIterator __last, 24952: _Pointer __buffer, _Compare __comp) 24952: { 24952: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 24952: _Distance; 24952: 24952: const _Distance __len = __last - __first; 24952: const _Pointer __buffer_last = __buffer + __len; 24952: 24952: _Distance __step_size = _S_chunk_size; 24952: std::__chunk_insertion_sort(__first, __last, __step_size, __comp); 24952: 24952: while (__step_size < __len) 24952: { 24952: std::__merge_sort_loop(__first, __last, __buffer, 24952: __step_size, __comp); 24952: __step_size *= 2; 24952: std::__merge_sort_loop(__buffer, __buffer_last, __first, 24952: __step_size, __comp); 24952: __step_size *= 2; 24952: } 24952: } 24952: 24952: template 24952: void 24952: __stable_sort_adaptive(_RandomAccessIterator __first, 24952: _RandomAccessIterator __middle, 24952: _RandomAccessIterator __last, 24952: _Pointer __buffer, _Compare __comp) 24952: { 24952: std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); 24952: std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); 24952: 24952: std::__merge_adaptive(__first, __middle, __last, 24952: __middle - __first, __last - __middle, 24952: __buffer, __comp); 24952: } 24952: 24952: template 24952: void 24952: __stable_sort_adaptive_resize(_RandomAccessIterator __first, 24952: _RandomAccessIterator __last, 24952: _Pointer __buffer, _Distance __buffer_size, 24952: _Compare __comp) 24952: { 24952: const _Distance __len = (__last - __first + 1) / 2; 24952: const _RandomAccessIterator __middle = __first + __len; 24952: if (__len > __buffer_size) 24952: { 24952: std::__stable_sort_adaptive_resize(__first, __middle, __buffer, 24952: __buffer_size, __comp); 24952: std::__stable_sort_adaptive_resize(__middle, __last, __buffer, 24952: __buffer_size, __comp); 24952: std::__merge_adaptive_resize(__first, __middle, __last, 24952: _Distance(__middle - __first), 24952: _Distance(__last - __middle), 24952: __buffer, __buffer_size, 24952: __comp); 24952: } 24952: else 24952: std::__stable_sort_adaptive(__first, __middle, __last, 24952: __buffer, __comp); 24952: } 24952: 24952: 24952: template 24952: void 24952: __inplace_stable_sort(_RandomAccessIterator __first, 24952: _RandomAccessIterator __last, _Compare __comp) 24952: { 24952: if (__last - __first < 15) 24952: { 24952: std::__insertion_sort(__first, __last, __comp); 24952: return; 24952: } 24952: _RandomAccessIterator __middle = __first + (__last - __first) / 2; 24952: std::__inplace_stable_sort(__first, __middle, __comp); 24952: std::__inplace_stable_sort(__middle, __last, __comp); 24952: std::__merge_without_buffer(__first, __middle, __last, 24952: __middle - __first, 24952: __last - __middle, 24952: __comp); 24952: } 24952: # 2809 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: bool 24952: __includes(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _Compare __comp) 24952: { 24952: while (__first1 != __last1 && __first2 != __last2) 24952: { 24952: if (__comp(__first2, __first1)) 24952: return false; 24952: if (!__comp(__first1, __first2)) 24952: ++__first2; 24952: ++__first1; 24952: } 24952: 24952: return __first2 == __last2; 24952: } 24952: # 2847 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: includes(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__includes(__first1, __last1, __first2, __last2, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 2892 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: includes(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__includes(__first1, __last1, __first2, __last2, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: # 2928 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: bool 24952: __next_permutation(_BidirectionalIterator __first, 24952: _BidirectionalIterator __last, _Compare __comp) 24952: { 24952: if (__first == __last) 24952: return false; 24952: _BidirectionalIterator __i = __first; 24952: ++__i; 24952: if (__i == __last) 24952: return false; 24952: __i = __last; 24952: --__i; 24952: 24952: for(;;) 24952: { 24952: _BidirectionalIterator __ii = __i; 24952: --__i; 24952: if (__comp(__i, __ii)) 24952: { 24952: _BidirectionalIterator __j = __last; 24952: while (!__comp(__i, --__j)) 24952: {} 24952: std::iter_swap(__i, __j); 24952: std::__reverse(__ii, __last, 24952: std::__iterator_category(__first)); 24952: return true; 24952: } 24952: if (__i == __first) 24952: { 24952: std::__reverse(__first, __last, 24952: std::__iterator_category(__first)); 24952: return false; 24952: } 24952: } 24952: } 24952: # 2978 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: next_permutation(_BidirectionalIterator __first, 24952: _BidirectionalIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__next_permutation 24952: (__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 3011 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: next_permutation(_BidirectionalIterator __first, 24952: _BidirectionalIterator __last, _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__next_permutation 24952: (__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: template 24952: 24952: bool 24952: __prev_permutation(_BidirectionalIterator __first, 24952: _BidirectionalIterator __last, _Compare __comp) 24952: { 24952: if (__first == __last) 24952: return false; 24952: _BidirectionalIterator __i = __first; 24952: ++__i; 24952: if (__i == __last) 24952: return false; 24952: __i = __last; 24952: --__i; 24952: 24952: for(;;) 24952: { 24952: _BidirectionalIterator __ii = __i; 24952: --__i; 24952: if (__comp(__ii, __i)) 24952: { 24952: _BidirectionalIterator __j = __last; 24952: while (!__comp(--__j, __i)) 24952: {} 24952: std::iter_swap(__i, __j); 24952: std::__reverse(__ii, __last, 24952: std::__iterator_category(__first)); 24952: return true; 24952: } 24952: if (__i == __first) 24952: { 24952: std::__reverse(__first, __last, 24952: std::__iterator_category(__first)); 24952: return false; 24952: } 24952: } 24952: } 24952: # 3081 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: prev_permutation(_BidirectionalIterator __first, 24952: _BidirectionalIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__prev_permutation(__first, __last, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 3114 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: prev_permutation(_BidirectionalIterator __first, 24952: _BidirectionalIterator __last, _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__prev_permutation(__first, __last, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _OutputIterator 24952: __replace_copy_if(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, 24952: _Predicate __pred, const _Tp& __new_value) 24952: { 24952: for (; __first != __last; ++__first, (void)++__result) 24952: if (__pred(__first)) 24952: *__result = __new_value; 24952: else 24952: *__result = *__first; 24952: return __result; 24952: } 24952: # 3166 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: replace_copy(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, 24952: const _Tp& __old_value, const _Tp& __new_value) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__replace_copy_if(__first, __last, __result, 24952: __gnu_cxx::__ops::__iter_equals_val(__old_value), 24952: __new_value); 24952: } 24952: # 3201 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: replace_copy_if(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, 24952: _Predicate __pred, const _Tp& __new_value) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__replace_copy_if(__first, __last, __result, 24952: __gnu_cxx::__ops::__pred_iter(__pred), 24952: __new_value); 24952: } 24952: # 3230 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: is_sorted(_ForwardIterator __first, _ForwardIterator __last) 24952: { return std::is_sorted_until(__first, __last) == __last; } 24952: # 3245 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: is_sorted(_ForwardIterator __first, _ForwardIterator __last, 24952: _Compare __comp) 24952: { return std::is_sorted_until(__first, __last, __comp) == __last; } 24952: 24952: template 24952: 24952: _ForwardIterator 24952: __is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 24952: _Compare __comp) 24952: { 24952: if (__first == __last) 24952: return __last; 24952: 24952: _ForwardIterator __next = __first; 24952: for (++__next; __next != __last; __first = __next, (void)++__next) 24952: if (__comp(__next, __first)) 24952: return __next; 24952: return __next; 24952: } 24952: # 3276 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__is_sorted_until(__first, __last, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 3301 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__is_sorted_until(__first, __last, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: # 3327 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: constexpr 24952: inline pair 24952: minmax(const _Tp& __a, const _Tp& __b) 24952: { 24952: 24952: 24952: 24952: return __b < __a ? pair(__b, __a) 24952: : pair(__a, __b); 24952: } 24952: # 3348 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: constexpr 24952: inline pair 24952: minmax(const _Tp& __a, const _Tp& __b, _Compare __comp) 24952: { 24952: return __comp(__b, __a) ? pair(__b, __a) 24952: : pair(__a, __b); 24952: } 24952: 24952: template 24952: constexpr 24952: pair<_ForwardIterator, _ForwardIterator> 24952: __minmax_element(_ForwardIterator __first, _ForwardIterator __last, 24952: _Compare __comp) 24952: { 24952: _ForwardIterator __next = __first; 24952: if (__first == __last 24952: || ++__next == __last) 24952: return std::make_pair(__first, __first); 24952: 24952: _ForwardIterator __min{}, __max{}; 24952: if (__comp(__next, __first)) 24952: { 24952: __min = __next; 24952: __max = __first; 24952: } 24952: else 24952: { 24952: __min = __first; 24952: __max = __next; 24952: } 24952: 24952: __first = __next; 24952: ++__first; 24952: 24952: while (__first != __last) 24952: { 24952: __next = __first; 24952: if (++__next == __last) 24952: { 24952: if (__comp(__first, __min)) 24952: __min = __first; 24952: else if (!__comp(__first, __max)) 24952: __max = __first; 24952: break; 24952: } 24952: 24952: if (__comp(__next, __first)) 24952: { 24952: if (__comp(__next, __min)) 24952: __min = __next; 24952: if (!__comp(__first, __max)) 24952: __max = __first; 24952: } 24952: else 24952: { 24952: if (__comp(__first, __min)) 24952: __min = __first; 24952: if (!__comp(__next, __max)) 24952: __max = __next; 24952: } 24952: 24952: __first = __next; 24952: ++__first; 24952: } 24952: 24952: return std::make_pair(__min, __max); 24952: } 24952: # 3428 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: constexpr 24952: inline pair<_ForwardIterator, _ForwardIterator> 24952: minmax_element(_ForwardIterator __first, _ForwardIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__minmax_element(__first, __last, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 3456 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: constexpr 24952: inline pair<_ForwardIterator, _ForwardIterator> 24952: minmax_element(_ForwardIterator __first, _ForwardIterator __last, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__minmax_element(__first, __last, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: template 24952: constexpr 24952: inline pair<_Tp, _Tp> 24952: minmax(initializer_list<_Tp> __l) 24952: { 24952: ; 24952: pair __p = 24952: std::__minmax_element(__l.begin(), __l.end(), 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: return std::make_pair(*__p.first, *__p.second); 24952: } 24952: 24952: template 24952: constexpr 24952: inline pair<_Tp, _Tp> 24952: minmax(initializer_list<_Tp> __l, _Compare __comp) 24952: { 24952: ; 24952: pair __p = 24952: std::__minmax_element(__l.begin(), __l.end(), 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: return std::make_pair(*__p.first, *__p.second); 24952: } 24952: # 3512 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _BinaryPredicate __pred) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__is_permutation(__first1, __last1, __first2, 24952: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 24952: } 24952: 24952: 24952: template 24952: 24952: bool 24952: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 24952: _BinaryPredicate __pred) 24952: { 24952: using _Cat1 24952: = typename iterator_traits<_ForwardIterator1>::iterator_category; 24952: using _Cat2 24952: = typename iterator_traits<_ForwardIterator2>::iterator_category; 24952: using _It1_is_RA = is_same<_Cat1, random_access_iterator_tag>; 24952: using _It2_is_RA = is_same<_Cat2, random_access_iterator_tag>; 24952: constexpr bool __ra_iters = _It1_is_RA() && _It2_is_RA(); 24952: if (__ra_iters) 24952: { 24952: auto __d1 = std::distance(__first1, __last1); 24952: auto __d2 = std::distance(__first2, __last2); 24952: if (__d1 != __d2) 24952: return false; 24952: } 24952: 24952: 24952: 24952: for (; __first1 != __last1 && __first2 != __last2; 24952: ++__first1, (void)++__first2) 24952: if (!__pred(__first1, __first2)) 24952: break; 24952: 24952: if (__ra_iters) 24952: { 24952: if (__first1 == __last1) 24952: return true; 24952: } 24952: else 24952: { 24952: auto __d1 = std::distance(__first1, __last1); 24952: auto __d2 = std::distance(__first2, __last2); 24952: if (__d1 == 0 && __d2 == 0) 24952: return true; 24952: if (__d1 != __d2) 24952: return false; 24952: } 24952: 24952: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 24952: { 24952: if (__scan != std::__find_if(__first1, __scan, 24952: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 24952: continue; 24952: 24952: auto __matches = std::__count_if(__first2, __last2, 24952: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 24952: if (0 == __matches 24952: || std::__count_if(__scan, __last1, 24952: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 24952: != __matches) 24952: return false; 24952: } 24952: return true; 24952: } 24952: # 3607 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 24952: { 24952: ; 24952: ; 24952: 24952: return 24952: std::__is_permutation(__first1, __last1, __first2, __last2, 24952: __gnu_cxx::__ops::__iter_equal_to_iter()); 24952: } 24952: # 3635 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline bool 24952: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 24952: _BinaryPredicate __pred) 24952: { 24952: ; 24952: ; 24952: 24952: return std::__is_permutation(__first1, __last1, __first2, __last2, 24952: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 24952: } 24952: # 3665 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: constexpr const _Tp& 24952: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(!(__hi < __lo))) __builtin_unreachable(); } while (false); 24952: return std::min(std::max(__val, __lo), __hi); 24952: } 24952: # 3685 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: constexpr const _Tp& 24952: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Compare __comp) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(!__comp(__hi, __lo))) __builtin_unreachable(); } while (false); 24952: return std::min(std::max(__val, __lo, __comp), __hi, __comp); 24952: } 24952: # 3717 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: pair<_IntType, _IntType> 24952: __gen_two_uniform_ints(_IntType __b0, _IntType __b1, 24952: _UniformRandomBitGenerator&& __g) 24952: { 24952: _IntType __x 24952: = uniform_int_distribution<_IntType>{0, (__b0 * __b1) - 1}(__g); 24952: return std::make_pair(__x / __b1, __x % __b1); 24952: } 24952: # 3739 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: void 24952: shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _UniformRandomNumberGenerator&& __g) 24952: { 24952: 24952: 24952: 24952: ; 24952: 24952: if (__first == __last) 24952: return; 24952: 24952: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 24952: _DistanceType; 24952: 24952: typedef typename std::make_unsigned<_DistanceType>::type __ud_type; 24952: typedef typename std::uniform_int_distribution<__ud_type> __distr_type; 24952: typedef typename __distr_type::param_type __p_type; 24952: 24952: typedef typename remove_reference<_UniformRandomNumberGenerator>::type 24952: _Gen; 24952: typedef typename common_type::type 24952: __uc_type; 24952: 24952: const __uc_type __urngrange = __g.max() - __g.min(); 24952: const __uc_type __urange = __uc_type(__last - __first); 24952: 24952: if (__urngrange / __urange >= __urange) 24952: 24952: { 24952: _RandomAccessIterator __i = __first + 1; 24952: 24952: 24952: 24952: 24952: 24952: if ((__urange % 2) == 0) 24952: { 24952: __distr_type __d{0, 1}; 24952: std::iter_swap(__i++, __first + __d(__g)); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: while (__i != __last) 24952: { 24952: const __uc_type __swap_range = __uc_type(__i - __first) + 1; 24952: 24952: const pair<__uc_type, __uc_type> __pospos = 24952: __gen_two_uniform_ints(__swap_range, __swap_range + 1, __g); 24952: 24952: std::iter_swap(__i++, __first + __pospos.first); 24952: std::iter_swap(__i++, __first + __pospos.second); 24952: } 24952: 24952: return; 24952: } 24952: 24952: __distr_type __d; 24952: 24952: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 24952: std::iter_swap(__i, __first + __d(__g, __p_type(0, __i - __first))); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: # 3824 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: _Function 24952: for_each(_InputIterator __first, _InputIterator __last, _Function __f) 24952: { 24952: 24952: 24952: ; 24952: for (; __first != __last; ++__first) 24952: __f(*__first); 24952: return __f; 24952: } 24952: # 3850 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: _InputIterator 24952: for_each_n(_InputIterator __first, _Size __n, _Function __f) 24952: { 24952: auto __n2 = std::__size_to_integer(__n); 24952: using _Cat = typename iterator_traits<_InputIterator>::iterator_category; 24952: if constexpr (is_base_of_v) 24952: { 24952: if (__n2 <= 0) 24952: return __first; 24952: auto __last = __first + __n2; 24952: std::for_each(__first, __last, std::move(__f)); 24952: return __last; 24952: } 24952: else 24952: { 24952: while (__n2-->0) 24952: { 24952: __f(*__first); 24952: ++__first; 24952: } 24952: return __first; 24952: } 24952: } 24952: # 3886 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _InputIterator 24952: find(_InputIterator __first, _InputIterator __last, 24952: const _Tp& __val) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: return std::__find_if(__first, __last, 24952: __gnu_cxx::__ops::__iter_equals_val(__val)); 24952: } 24952: # 3911 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _InputIterator 24952: find_if(_InputIterator __first, _InputIterator __last, 24952: _Predicate __pred) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__find_if(__first, __last, 24952: __gnu_cxx::__ops::__pred_iter(__pred)); 24952: } 24952: # 3943 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: _InputIterator 24952: find_first_of(_InputIterator __first1, _InputIterator __last1, 24952: _ForwardIterator __first2, _ForwardIterator __last2) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: for (; __first1 != __last1; ++__first1) 24952: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 24952: if (*__first1 == *__iter) 24952: return __first1; 24952: return __last1; 24952: } 24952: # 3984 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: _InputIterator 24952: find_first_of(_InputIterator __first1, _InputIterator __last1, 24952: _ForwardIterator __first2, _ForwardIterator __last2, 24952: _BinaryPredicate __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: for (; __first1 != __last1; ++__first1) 24952: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 24952: if (__comp(*__first1, *__iter)) 24952: return __first1; 24952: return __last1; 24952: } 24952: # 4017 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: adjacent_find(_ForwardIterator __first, _ForwardIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__adjacent_find(__first, __last, 24952: __gnu_cxx::__ops::__iter_equal_to_iter()); 24952: } 24952: # 4043 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 24952: _BinaryPredicate __binary_pred) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__adjacent_find(__first, __last, 24952: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 24952: } 24952: # 4069 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline typename iterator_traits<_InputIterator>::difference_type 24952: count(_InputIterator __first, _InputIterator __last, const _Tp& __value) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__count_if(__first, __last, 24952: __gnu_cxx::__ops::__iter_equals_val(__value)); 24952: } 24952: # 4093 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline typename iterator_traits<_InputIterator>::difference_type 24952: count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__count_if(__first, __last, 24952: __gnu_cxx::__ops::__pred_iter(__pred)); 24952: } 24952: # 4134 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator1 24952: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__search(__first1, __last1, __first2, __last2, 24952: __gnu_cxx::__ops::__iter_equal_to_iter()); 24952: } 24952: # 4174 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator1 24952: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 24952: _BinaryPredicate __predicate) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__search(__first1, __last1, __first2, __last2, 24952: __gnu_cxx::__ops::__iter_comp_iter(__predicate)); 24952: } 24952: # 4210 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: search_n(_ForwardIterator __first, _ForwardIterator __last, 24952: _Integer __count, const _Tp& __val) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__search_n(__first, __last, __count, 24952: __gnu_cxx::__ops::__iter_equals_val(__val)); 24952: } 24952: # 4244 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: search_n(_ForwardIterator __first, _ForwardIterator __last, 24952: _Integer __count, const _Tp& __val, 24952: _BinaryPredicate __binary_pred) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__search_n(__first, __last, __count, 24952: __gnu_cxx::__ops::__iter_comp_val(__binary_pred, __val)); 24952: } 24952: # 4270 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: search(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Searcher& __searcher) 24952: { return __searcher(__first, __last).first; } 24952: # 4294 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: _OutputIterator 24952: transform(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, _UnaryOperation __unary_op) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: for (; __first != __last; ++__first, (void)++__result) 24952: *__result = __unary_op(*__first); 24952: return __result; 24952: } 24952: # 4332 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: _OutputIterator 24952: transform(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _OutputIterator __result, 24952: _BinaryOperation __binary_op) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: for (; __first1 != __last1; ++__first1, (void)++__first2, ++__result) 24952: *__result = __binary_op(*__first1, *__first2); 24952: return __result; 24952: } 24952: # 4366 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: void 24952: replace(_ForwardIterator __first, _ForwardIterator __last, 24952: const _Tp& __old_value, const _Tp& __new_value) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: for (; __first != __last; ++__first) 24952: if (*__first == __old_value) 24952: *__first = __new_value; 24952: } 24952: # 4399 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: void 24952: replace_if(_ForwardIterator __first, _ForwardIterator __last, 24952: _Predicate __pred, const _Tp& __new_value) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: for (; __first != __last; ++__first) 24952: if (__pred(*__first)) 24952: *__first = __new_value; 24952: } 24952: # 4431 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: void 24952: generate(_ForwardIterator __first, _ForwardIterator __last, 24952: _Generator __gen) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: for (; __first != __last; ++__first) 24952: *__first = __gen(); 24952: } 24952: # 4464 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: _OutputIterator 24952: generate_n(_OutputIterator __first, _Size __n, _Generator __gen) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: typedef __decltype(std::__size_to_integer(__n)) _IntSize; 24952: for (_IntSize __niter = std::__size_to_integer(__n); 24952: __niter > 0; --__niter, (void) ++__first) 24952: *__first = __gen(); 24952: return __first; 24952: } 24952: # 4499 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: unique_copy(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: if (__first == __last) 24952: return __result; 24952: return std::__unique_copy(__first, __last, __result, 24952: __gnu_cxx::__ops::__iter_equal_to_iter(), 24952: std::__iterator_category(__first), 24952: std::__iterator_category(__result)); 24952: } 24952: # 4539 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: unique_copy(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, 24952: _BinaryPredicate __binary_pred) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: if (__first == __last) 24952: return __result; 24952: return std::__unique_copy(__first, __last, __result, 24952: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred), 24952: std::__iterator_category(__first), 24952: std::__iterator_category(__result)); 24952: } 24952: # 4578 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 24952: inline void 24952: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) 24952: { 24952: 24952: 24952: 24952: ; 24952: 24952: if (__first != __last) 24952: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 24952: { 24952: 24952: _RandomAccessIterator __j = __first 24952: + std::rand() % ((__i - __first) + 1); 24952: if (__i != __j) 24952: std::iter_swap(__i, __j); 24952: } 24952: } 24952: # 4617 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 24952: void 24952: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: 24952: _RandomNumberGenerator&& __rand) 24952: 24952: 24952: 24952: { 24952: 24952: 24952: 24952: ; 24952: 24952: if (__first == __last) 24952: return; 24952: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 24952: { 24952: _RandomAccessIterator __j = __first + __rand((__i - __first) + 1); 24952: if (__i != __j) 24952: std::iter_swap(__i, __j); 24952: } 24952: } 24952: # 4659 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _ForwardIterator 24952: partition(_ForwardIterator __first, _ForwardIterator __last, 24952: _Predicate __pred) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: return std::__partition(__first, __last, __pred, 24952: std::__iterator_category(__first)); 24952: } 24952: # 4694 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline void 24952: partial_sort(_RandomAccessIterator __first, 24952: _RandomAccessIterator __middle, 24952: _RandomAccessIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: 24952: std::__partial_sort(__first, __middle, __last, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 4733 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline void 24952: partial_sort(_RandomAccessIterator __first, 24952: _RandomAccessIterator __middle, 24952: _RandomAccessIterator __last, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: 24952: std::__partial_sort(__first, __middle, __last, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: # 4770 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline void 24952: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 24952: _RandomAccessIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: 24952: if (__first == __last || __nth == __last) 24952: return; 24952: 24952: std::__introselect(__first, __nth, __last, 24952: std::__lg(__last - __first) * 2, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 4810 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline void 24952: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 24952: _RandomAccessIterator __last, _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: 24952: if (__first == __last || __nth == __last) 24952: return; 24952: 24952: std::__introselect(__first, __nth, __last, 24952: std::__lg(__last - __first) * 2, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: # 4848 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline void 24952: sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 4879 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline void 24952: sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: template 24952: 24952: _OutputIterator 24952: __merge(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result, _Compare __comp) 24952: { 24952: while (__first1 != __last1 && __first2 != __last2) 24952: { 24952: if (__comp(__first2, __first1)) 24952: { 24952: *__result = *__first2; 24952: ++__first2; 24952: } 24952: else 24952: { 24952: *__result = *__first1; 24952: ++__first1; 24952: } 24952: ++__result; 24952: } 24952: return std::copy(__first2, __last2, 24952: std::copy(__first1, __last1, __result)); 24952: } 24952: # 4942 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: merge(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__merge(__first1, __last1, 24952: __first2, __last2, __result, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 4993 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: merge(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result, _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__merge(__first1, __last1, 24952: __first2, __last2, __result, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: template 24952: inline void 24952: __stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _Compare __comp) 24952: { 24952: typedef typename iterator_traits<_RandomAccessIterator>::value_type 24952: _ValueType; 24952: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 24952: _DistanceType; 24952: 24952: if (__first == __last) 24952: return; 24952: 24952: 24952: typedef _Temporary_buffer<_RandomAccessIterator, _ValueType> _TmpBuf; 24952: 24952: 24952: _TmpBuf __buf(__first, (__last - __first + 1) / 2); 24952: 24952: if (__builtin_expect(__buf.requested_size() == __buf.size(), true)) 24952: std::__stable_sort_adaptive(__first, 24952: __first + _DistanceType(__buf.size()), 24952: __last, __buf.begin(), __comp); 24952: else if (__builtin_expect(__buf.begin() == 0, false)) 24952: std::__inplace_stable_sort(__first, __last, __comp); 24952: else 24952: std::__stable_sort_adaptive_resize(__first, __last, __buf.begin(), 24952: _DistanceType(__buf.size()), __comp); 24952: 24952: 24952: 24952: } 24952: # 5071 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: inline void 24952: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: std::__stable_sort(__first, __last, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 5105 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: inline void 24952: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: std::__stable_sort(__first, __last, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: template 24952: 24952: _OutputIterator 24952: __set_union(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result, _Compare __comp) 24952: { 24952: while (__first1 != __last1 && __first2 != __last2) 24952: { 24952: if (__comp(__first1, __first2)) 24952: { 24952: *__result = *__first1; 24952: ++__first1; 24952: } 24952: else if (__comp(__first2, __first1)) 24952: { 24952: *__result = *__first2; 24952: ++__first2; 24952: } 24952: else 24952: { 24952: *__result = *__first1; 24952: ++__first1; 24952: ++__first2; 24952: } 24952: ++__result; 24952: } 24952: return std::copy(__first2, __last2, 24952: std::copy(__first1, __last1, __result)); 24952: } 24952: # 5175 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__set_union(__first1, __last1, 24952: __first2, __last2, __result, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 5226 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result, _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__set_union(__first1, __last1, 24952: __first2, __last2, __result, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: template 24952: 24952: _OutputIterator 24952: __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result, _Compare __comp) 24952: { 24952: while (__first1 != __last1 && __first2 != __last2) 24952: if (__comp(__first1, __first2)) 24952: ++__first1; 24952: else if (__comp(__first2, __first1)) 24952: ++__first2; 24952: else 24952: { 24952: *__result = *__first1; 24952: ++__first1; 24952: ++__first2; 24952: ++__result; 24952: } 24952: return __result; 24952: } 24952: # 5299 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__set_intersection(__first1, __last1, 24952: __first2, __last2, __result, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 5349 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result, _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__set_intersection(__first1, __last1, 24952: __first2, __last2, __result, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: template 24952: 24952: _OutputIterator 24952: __set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result, _Compare __comp) 24952: { 24952: while (__first1 != __last1 && __first2 != __last2) 24952: if (__comp(__first1, __first2)) 24952: { 24952: *__result = *__first1; 24952: ++__first1; 24952: ++__result; 24952: } 24952: else if (__comp(__first2, __first1)) 24952: ++__first2; 24952: else 24952: { 24952: ++__first1; 24952: ++__first2; 24952: } 24952: return std::copy(__first1, __last1, __result); 24952: } 24952: # 5424 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__set_difference(__first1, __last1, 24952: __first2, __last2, __result, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 5476 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result, _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__set_difference(__first1, __last1, 24952: __first2, __last2, __result, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: template 24952: 24952: _OutputIterator 24952: __set_symmetric_difference(_InputIterator1 __first1, 24952: _InputIterator1 __last1, 24952: _InputIterator2 __first2, 24952: _InputIterator2 __last2, 24952: _OutputIterator __result, 24952: _Compare __comp) 24952: { 24952: while (__first1 != __last1 && __first2 != __last2) 24952: if (__comp(__first1, __first2)) 24952: { 24952: *__result = *__first1; 24952: ++__first1; 24952: ++__result; 24952: } 24952: else if (__comp(__first2, __first1)) 24952: { 24952: *__result = *__first2; 24952: ++__first2; 24952: ++__result; 24952: } 24952: else 24952: { 24952: ++__first1; 24952: ++__first2; 24952: } 24952: return std::copy(__first2, __last2, 24952: std::copy(__first1, __last1, __result)); 24952: } 24952: # 5557 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__set_symmetric_difference(__first1, __last1, 24952: __first2, __last2, __result, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 5609 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: 24952: inline _OutputIterator 24952: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _InputIterator2 __last2, 24952: _OutputIterator __result, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: ; 24952: ; 24952: 24952: return std::__set_symmetric_difference(__first1, __last1, 24952: __first2, __last2, __result, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: template 24952: constexpr 24952: _ForwardIterator 24952: __min_element(_ForwardIterator __first, _ForwardIterator __last, 24952: _Compare __comp) 24952: { 24952: if (__first == __last) 24952: return __first; 24952: _ForwardIterator __result = __first; 24952: while (++__first != __last) 24952: if (__comp(__first, __result)) 24952: __result = __first; 24952: return __result; 24952: } 24952: # 5663 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: constexpr 24952: _ForwardIterator 24952: inline min_element(_ForwardIterator __first, _ForwardIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__min_element(__first, __last, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 5688 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: constexpr 24952: inline _ForwardIterator 24952: min_element(_ForwardIterator __first, _ForwardIterator __last, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__min_element(__first, __last, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: template 24952: constexpr 24952: _ForwardIterator 24952: __max_element(_ForwardIterator __first, _ForwardIterator __last, 24952: _Compare __comp) 24952: { 24952: if (__first == __last) return __first; 24952: _ForwardIterator __result = __first; 24952: while (++__first != __last) 24952: if (__comp(__result, __first)) 24952: __result = __first; 24952: return __result; 24952: } 24952: # 5727 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: constexpr 24952: inline _ForwardIterator 24952: max_element(_ForwardIterator __first, _ForwardIterator __last) 24952: { 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__max_element(__first, __last, 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: # 5752 "/usr/include/c++/13/bits/stl_algo.h" 3 24952: template 24952: constexpr 24952: inline _ForwardIterator 24952: max_element(_ForwardIterator __first, _ForwardIterator __last, 24952: _Compare __comp) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: ; 24952: 24952: return std::__max_element(__first, __last, 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: 24952: 24952: template 24952: constexpr 24952: inline _Tp 24952: min(initializer_list<_Tp> __l) 24952: { 24952: ; 24952: return *std::__min_element(__l.begin(), __l.end(), 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: 24952: template 24952: constexpr 24952: inline _Tp 24952: min(initializer_list<_Tp> __l, _Compare __comp) 24952: { 24952: ; 24952: return *std::__min_element(__l.begin(), __l.end(), 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: template 24952: constexpr 24952: inline _Tp 24952: max(initializer_list<_Tp> __l) 24952: { 24952: ; 24952: return *std::__max_element(__l.begin(), __l.end(), 24952: __gnu_cxx::__ops::__iter_less_iter()); 24952: } 24952: 24952: template 24952: constexpr 24952: inline _Tp 24952: max(initializer_list<_Tp> __l, _Compare __comp) 24952: { 24952: ; 24952: return *std::__max_element(__l.begin(), __l.end(), 24952: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: _RandomAccessIterator 24952: __sample(_InputIterator __first, _InputIterator __last, input_iterator_tag, 24952: _RandomAccessIterator __out, random_access_iterator_tag, 24952: _Size __n, _UniformRandomBitGenerator&& __g) 24952: { 24952: using __distrib_type = uniform_int_distribution<_Size>; 24952: using __param_type = typename __distrib_type::param_type; 24952: __distrib_type __d{}; 24952: _Size __sample_sz = 0; 24952: while (__first != __last && __sample_sz != __n) 24952: { 24952: __out[__sample_sz++] = *__first; 24952: ++__first; 24952: } 24952: for (auto __pop_sz = __sample_sz; __first != __last; 24952: ++__first, (void) ++__pop_sz) 24952: { 24952: const auto __k = __d(__g, __param_type{0, __pop_sz}); 24952: if (__k < __n) 24952: __out[__k] = *__first; 24952: } 24952: return __out + __sample_sz; 24952: } 24952: 24952: 24952: template 24952: _OutputIterator 24952: __sample(_ForwardIterator __first, _ForwardIterator __last, 24952: forward_iterator_tag, 24952: _OutputIterator __out, _Cat, 24952: _Size __n, _UniformRandomBitGenerator&& __g) 24952: { 24952: using __distrib_type = uniform_int_distribution<_Size>; 24952: using __param_type = typename __distrib_type::param_type; 24952: using _USize = make_unsigned_t<_Size>; 24952: using _Gen = remove_reference_t<_UniformRandomBitGenerator>; 24952: using __uc_type = common_type_t; 24952: 24952: if (__first == __last) 24952: return __out; 24952: 24952: __distrib_type __d{}; 24952: _Size __unsampled_sz = std::distance(__first, __last); 24952: __n = std::min(__n, __unsampled_sz); 24952: 24952: 24952: 24952: 24952: const __uc_type __urngrange = __g.max() - __g.min(); 24952: if (__urngrange / __uc_type(__unsampled_sz) >= __uc_type(__unsampled_sz)) 24952: 24952: 24952: { 24952: while (__n != 0 && __unsampled_sz >= 2) 24952: { 24952: const pair<_Size, _Size> __p = 24952: __gen_two_uniform_ints(__unsampled_sz, __unsampled_sz - 1, __g); 24952: 24952: --__unsampled_sz; 24952: if (__p.first < __n) 24952: { 24952: *__out++ = *__first; 24952: --__n; 24952: } 24952: 24952: ++__first; 24952: 24952: if (__n == 0) break; 24952: 24952: --__unsampled_sz; 24952: if (__p.second < __n) 24952: { 24952: *__out++ = *__first; 24952: --__n; 24952: } 24952: 24952: ++__first; 24952: } 24952: } 24952: 24952: 24952: 24952: for (; __n != 0; ++__first) 24952: if (__d(__g, __param_type{0, --__unsampled_sz}) < __n) 24952: { 24952: *__out++ = *__first; 24952: --__n; 24952: } 24952: return __out; 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: _SampleIterator 24952: sample(_PopulationIterator __first, _PopulationIterator __last, 24952: _SampleIterator __out, _Distance __n, 24952: _UniformRandomBitGenerator&& __g) 24952: { 24952: using __pop_cat = typename 24952: std::iterator_traits<_PopulationIterator>::iterator_category; 24952: using __samp_cat = typename 24952: std::iterator_traits<_SampleIterator>::iterator_category; 24952: 24952: static_assert( 24952: __or_, 24952: is_convertible<__samp_cat, random_access_iterator_tag>>::value, 24952: "output range must use a RandomAccessIterator when input range" 24952: " does not meet the ForwardIterator requirements"); 24952: 24952: static_assert(is_integral<_Distance>::value, 24952: "sample size must be an integer type"); 24952: 24952: typename iterator_traits<_PopulationIterator>::difference_type __d = __n; 24952: return std:: 24952: __sample(__first, __last, __pop_cat{}, __out, __samp_cat{}, __d, 24952: std::forward<_UniformRandomBitGenerator>(__g)); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 68 "/usr/include/c++/13/functional" 2 3 24952: # 79 "/usr/include/c++/13/functional" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: template struct _Placeholder { }; 24952: # 108 "/usr/include/c++/13/functional" 3 24952: template 24952: inline invoke_result_t<_Callable, _Args...> 24952: invoke(_Callable&& __fn, _Args&&... __args) 24952: noexcept(is_nothrow_invocable_v<_Callable, _Args...>) 24952: { 24952: return std::__invoke(std::forward<_Callable>(__fn), 24952: std::forward<_Args>(__args)...); 24952: } 24952: # 141 "/usr/include/c++/13/functional" 3 24952: template::value> 24952: class _Mem_fn_base 24952: : public _Mem_fn_traits<_MemFunPtr>::__maybe_type 24952: { 24952: using _Traits = _Mem_fn_traits<_MemFunPtr>; 24952: 24952: using _Arity = typename _Traits::__arity; 24952: using _Varargs = typename _Traits::__vararg; 24952: 24952: template 24952: friend struct _Bind_check_arity; 24952: 24952: _MemFunPtr _M_pmf; 24952: 24952: public: 24952: 24952: using result_type = typename _Traits::__result_type; 24952: 24952: explicit constexpr 24952: _Mem_fn_base(_MemFunPtr __pmf) noexcept : _M_pmf(__pmf) { } 24952: 24952: template 24952: 24952: auto 24952: operator()(_Args&&... __args) const 24952: noexcept(noexcept( 24952: std::__invoke(_M_pmf, std::forward<_Args>(__args)...))) 24952: -> decltype(std::__invoke(_M_pmf, std::forward<_Args>(__args)...)) 24952: { return std::__invoke(_M_pmf, std::forward<_Args>(__args)...); } 24952: }; 24952: 24952: 24952: template 24952: class _Mem_fn_base<_MemObjPtr, false> 24952: { 24952: using _Arity = integral_constant; 24952: using _Varargs = false_type; 24952: 24952: template 24952: friend struct _Bind_check_arity; 24952: 24952: _MemObjPtr _M_pm; 24952: 24952: public: 24952: explicit constexpr 24952: _Mem_fn_base(_MemObjPtr __pm) noexcept : _M_pm(__pm) { } 24952: 24952: template 24952: 24952: auto 24952: operator()(_Tp&& __obj) const 24952: noexcept(noexcept(std::__invoke(_M_pm, std::forward<_Tp>(__obj)))) 24952: -> decltype(std::__invoke(_M_pm, std::forward<_Tp>(__obj))) 24952: { return std::__invoke(_M_pm, std::forward<_Tp>(__obj)); } 24952: }; 24952: 24952: template 24952: struct _Mem_fn; 24952: 24952: template 24952: struct _Mem_fn<_Res _Class::*> 24952: : _Mem_fn_base<_Res _Class::*> 24952: { 24952: using _Mem_fn_base<_Res _Class::*>::_Mem_fn_base; 24952: }; 24952: # 234 "/usr/include/c++/13/functional" 3 24952: template 24952: 24952: inline _Mem_fn<_Tp _Class::*> 24952: mem_fn(_Tp _Class::* __pm) noexcept 24952: { 24952: return _Mem_fn<_Tp _Class::*>(__pm); 24952: } 24952: # 253 "/usr/include/c++/13/functional" 3 24952: template 24952: struct is_bind_expression 24952: : public false_type { }; 24952: # 265 "/usr/include/c++/13/functional" 3 24952: template 24952: struct is_placeholder 24952: : public integral_constant 24952: { }; 24952: 24952: 24952: template inline constexpr bool is_bind_expression_v 24952: = is_bind_expression<_Tp>::value; 24952: template inline constexpr int is_placeholder_v 24952: = is_placeholder<_Tp>::value; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace placeholders 24952: { 24952: # 294 "/usr/include/c++/13/functional" 3 24952: inline const _Placeholder<1> _1; 24952: inline const _Placeholder<2> _2; 24952: inline const _Placeholder<3> _3; 24952: inline const _Placeholder<4> _4; 24952: inline const _Placeholder<5> _5; 24952: inline const _Placeholder<6> _6; 24952: inline const _Placeholder<7> _7; 24952: inline const _Placeholder<8> _8; 24952: inline const _Placeholder<9> _9; 24952: inline const _Placeholder<10> _10; 24952: inline const _Placeholder<11> _11; 24952: inline const _Placeholder<12> _12; 24952: inline const _Placeholder<13> _13; 24952: inline const _Placeholder<14> _14; 24952: inline const _Placeholder<15> _15; 24952: inline const _Placeholder<16> _16; 24952: inline const _Placeholder<17> _17; 24952: inline const _Placeholder<18> _18; 24952: inline const _Placeholder<19> _19; 24952: inline const _Placeholder<20> _20; 24952: inline const _Placeholder<21> _21; 24952: inline const _Placeholder<22> _22; 24952: inline const _Placeholder<23> _23; 24952: inline const _Placeholder<24> _24; 24952: inline const _Placeholder<25> _25; 24952: inline const _Placeholder<26> _26; 24952: inline const _Placeholder<27> _27; 24952: inline const _Placeholder<28> _28; 24952: inline const _Placeholder<29> _29; 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_placeholder<_Placeholder<_Num> > 24952: : public integral_constant 24952: { }; 24952: 24952: template 24952: struct is_placeholder > 24952: : public integral_constant 24952: { }; 24952: 24952: 24952: 24952: 24952: template 24952: using _Safe_tuple_element_t 24952: = typename enable_if<(__i < tuple_size<_Tuple>::value), 24952: tuple_element<__i, _Tuple>>::type::type; 24952: # 362 "/usr/include/c++/13/functional" 3 24952: template::value, 24952: bool _IsPlaceholder = (is_placeholder<_Arg>::value > 0)> 24952: class _Mu; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: class _Mu, false, false> 24952: { 24952: public: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _Tp& 24952: operator()(_CVRef& __arg, _Tuple&) const volatile 24952: { return __arg.get(); } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: class _Mu<_Arg, true, false> 24952: { 24952: public: 24952: template 24952: 24952: auto 24952: operator()(_CVArg& __arg, 24952: tuple<_Args...>& __tuple) const volatile 24952: -> decltype(__arg(declval<_Args>()...)) 24952: { 24952: 24952: typedef typename _Build_index_tuple::__type 24952: _Indexes; 24952: return this->__call(__arg, __tuple, _Indexes()); 24952: } 24952: 24952: private: 24952: 24952: 24952: template 24952: 24952: auto 24952: __call(_CVArg& __arg, tuple<_Args...>& __tuple, 24952: const _Index_tuple<_Indexes...>&) const volatile 24952: -> decltype(__arg(declval<_Args>()...)) 24952: { 24952: return __arg(std::get<_Indexes>(std::move(__tuple))...); 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: class _Mu<_Arg, false, true> 24952: { 24952: public: 24952: template 24952: 24952: _Safe_tuple_element_t<(is_placeholder<_Arg>::value - 1), _Tuple>&& 24952: operator()(const volatile _Arg&, _Tuple& __tuple) const volatile 24952: { 24952: return 24952: ::std::get<(is_placeholder<_Arg>::value - 1)>(std::move(__tuple)); 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: class _Mu<_Arg, false, false> 24952: { 24952: public: 24952: template 24952: 24952: _CVArg&& 24952: operator()(_CVArg&& __arg, _Tuple&) const volatile 24952: { return std::forward<_CVArg>(__arg); } 24952: }; 24952: 24952: 24952: template 24952: inline auto 24952: __volget(volatile tuple<_Tp...>& __tuple) 24952: -> __tuple_element_t<_Ind, tuple<_Tp...>> volatile& 24952: { return std::get<_Ind>(const_cast&>(__tuple)); } 24952: 24952: 24952: template 24952: inline auto 24952: __volget(const volatile tuple<_Tp...>& __tuple) 24952: -> __tuple_element_t<_Ind, tuple<_Tp...>> const volatile& 24952: { return std::get<_Ind>(const_cast&>(__tuple)); } 24952: # 487 "/usr/include/c++/13/functional" 3 24952: template 24952: class _Bind; 24952: 24952: template 24952: class _Bind<_Functor(_Bound_args...)> 24952: : public _Weak_result_type<_Functor> 24952: { 24952: typedef typename _Build_index_tuple::__type 24952: _Bound_indexes; 24952: 24952: _Functor _M_f; 24952: tuple<_Bound_args...> _M_bound_args; 24952: 24952: 24952: template 24952: 24952: _Result 24952: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 24952: { 24952: return std::__invoke(_M_f, 24952: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 24952: ); 24952: } 24952: 24952: 24952: template 24952: 24952: _Result 24952: __call_c(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 24952: { 24952: return std::__invoke(_M_f, 24952: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 24952: ); 24952: } 24952: 24952: 24952: 24952: template 24952: _Result 24952: __call_v(tuple<_Args...>&& __args, 24952: _Index_tuple<_Indexes...>) volatile 24952: { 24952: return std::__invoke(_M_f, 24952: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 24952: ); 24952: } 24952: 24952: 24952: template 24952: _Result 24952: __call_c_v(tuple<_Args...>&& __args, 24952: _Index_tuple<_Indexes...>) const volatile 24952: { 24952: return std::__invoke(_M_f, 24952: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 24952: ); 24952: } 24952: 24952: 24952: template 24952: using _Mu_type = decltype( 24952: _Mu::type>()( 24952: std::declval<_BoundArg&>(), std::declval<_CallArgs&>()) ); 24952: 24952: template 24952: using _Res_type_impl 24952: = typename result_of< _Fn&(_Mu_type<_BArgs, _CallArgs>&&...) >::type; 24952: 24952: template 24952: using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>; 24952: 24952: template 24952: using __dependent = typename 24952: enable_if::value+1), _Functor>::type; 24952: 24952: template class __cv_quals> 24952: using _Res_type_cv = _Res_type_impl< 24952: typename __cv_quals<__dependent<_CallArgs>>::type, 24952: _CallArgs, 24952: typename __cv_quals<_Bound_args>::type...>; 24952: 24952: public: 24952: template 24952: explicit 24952: _Bind(const _Functor& __f, _Args&&... __args) 24952: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 24952: { } 24952: 24952: template 24952: explicit 24952: _Bind(_Functor&& __f, _Args&&... __args) 24952: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 24952: { } 24952: 24952: _Bind(const _Bind&) = default; 24952: _Bind(_Bind&&) = default; 24952: 24952: 24952: template>> 24952: 24952: _Result 24952: operator()(_Args&&... __args) 24952: { 24952: return this->__call<_Result>( 24952: std::forward_as_tuple(std::forward<_Args>(__args)...), 24952: _Bound_indexes()); 24952: } 24952: 24952: 24952: template, add_const>> 24952: 24952: _Result 24952: operator()(_Args&&... __args) const 24952: { 24952: return this->__call_c<_Result>( 24952: std::forward_as_tuple(std::forward<_Args>(__args)...), 24952: _Bound_indexes()); 24952: } 24952: 24952: 24952: 24952: template, add_volatile>> 24952: [[deprecated("std::bind does not support volatile in C++17")]] 24952: _Result 24952: operator()(_Args&&... __args) volatile 24952: { 24952: return this->__call_v<_Result>( 24952: std::forward_as_tuple(std::forward<_Args>(__args)...), 24952: _Bound_indexes()); 24952: } 24952: 24952: 24952: template, add_cv>> 24952: [[deprecated("std::bind does not support volatile in C++17")]] 24952: _Result 24952: operator()(_Args&&... __args) const volatile 24952: { 24952: return this->__call_c_v<_Result>( 24952: std::forward_as_tuple(std::forward<_Args>(__args)...), 24952: _Bound_indexes()); 24952: } 24952: 24952: }; 24952: 24952: 24952: template 24952: class _Bind_result; 24952: 24952: template 24952: class _Bind_result<_Result, _Functor(_Bound_args...)> 24952: { 24952: typedef typename _Build_index_tuple::__type 24952: _Bound_indexes; 24952: 24952: _Functor _M_f; 24952: tuple<_Bound_args...> _M_bound_args; 24952: 24952: 24952: template 24952: 24952: _Res 24952: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 24952: { 24952: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 24952: (std::get<_Indexes>(_M_bound_args), __args)...); 24952: } 24952: 24952: 24952: template 24952: 24952: _Res 24952: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 24952: { 24952: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 24952: (std::get<_Indexes>(_M_bound_args), __args)...); 24952: } 24952: 24952: 24952: 24952: template 24952: _Res 24952: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) volatile 24952: { 24952: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 24952: (__volget<_Indexes>(_M_bound_args), __args)...); 24952: } 24952: 24952: 24952: template 24952: _Res 24952: __call(tuple<_Args...>&& __args, 24952: _Index_tuple<_Indexes...>) const volatile 24952: { 24952: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 24952: (__volget<_Indexes>(_M_bound_args), __args)...); 24952: } 24952: 24952: 24952: public: 24952: typedef _Result result_type; 24952: 24952: template 24952: explicit 24952: _Bind_result(const _Functor& __f, _Args&&... __args) 24952: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 24952: { } 24952: 24952: template 24952: explicit 24952: _Bind_result(_Functor&& __f, _Args&&... __args) 24952: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 24952: { } 24952: 24952: _Bind_result(const _Bind_result&) = default; 24952: _Bind_result(_Bind_result&&) = default; 24952: 24952: 24952: template 24952: 24952: result_type 24952: operator()(_Args&&... __args) 24952: { 24952: return this->__call<_Result>( 24952: std::forward_as_tuple(std::forward<_Args>(__args)...), 24952: _Bound_indexes()); 24952: } 24952: 24952: 24952: template 24952: 24952: result_type 24952: operator()(_Args&&... __args) const 24952: { 24952: return this->__call<_Result>( 24952: std::forward_as_tuple(std::forward<_Args>(__args)...), 24952: _Bound_indexes()); 24952: } 24952: 24952: 24952: 24952: template 24952: [[deprecated("std::bind does not support volatile in C++17")]] 24952: result_type 24952: operator()(_Args&&... __args) volatile 24952: { 24952: return this->__call<_Result>( 24952: std::forward_as_tuple(std::forward<_Args>(__args)...), 24952: _Bound_indexes()); 24952: } 24952: 24952: 24952: template 24952: [[deprecated("std::bind does not support volatile in C++17")]] 24952: result_type 24952: operator()(_Args&&... __args) const volatile 24952: { 24952: return this->__call<_Result>( 24952: std::forward_as_tuple(std::forward<_Args>(__args)...), 24952: _Bound_indexes()); 24952: } 24952: 24952: 24952: 24952: 24952: }; 24952: # 764 "/usr/include/c++/13/functional" 3 24952: template 24952: struct is_bind_expression<_Bind<_Signature> > 24952: : public true_type { }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_bind_expression > 24952: : public true_type { }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_bind_expression > 24952: : public true_type { }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_bind_expression> 24952: : public true_type { }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_bind_expression<_Bind_result<_Result, _Signature>> 24952: : public true_type { }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_bind_expression> 24952: : public true_type { }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_bind_expression> 24952: : public true_type { }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct is_bind_expression> 24952: : public true_type { }; 24952: 24952: template 24952: struct _Bind_check_arity { }; 24952: 24952: template 24952: struct _Bind_check_arity<_Ret (*)(_Args...), _BoundArgs...> 24952: { 24952: static_assert(sizeof...(_BoundArgs) == sizeof...(_Args), 24952: "Wrong number of arguments for function"); 24952: }; 24952: 24952: template 24952: struct _Bind_check_arity<_Ret (*)(_Args......), _BoundArgs...> 24952: { 24952: static_assert(sizeof...(_BoundArgs) >= sizeof...(_Args), 24952: "Wrong number of arguments for function"); 24952: }; 24952: 24952: template 24952: struct _Bind_check_arity<_Tp _Class::*, _BoundArgs...> 24952: { 24952: using _Arity = typename _Mem_fn<_Tp _Class::*>::_Arity; 24952: using _Varargs = typename _Mem_fn<_Tp _Class::*>::_Varargs; 24952: static_assert(_Varargs::value 24952: ? sizeof...(_BoundArgs) >= _Arity::value + 1 24952: : sizeof...(_BoundArgs) == _Arity::value + 1, 24952: "Wrong number of arguments for pointer-to-member"); 24952: }; 24952: 24952: 24952: 24952: 24952: template::type> 24952: using __is_socketlike = __or_, is_enum<_Tp2>>; 24952: 24952: template 24952: struct _Bind_helper 24952: : _Bind_check_arity::type, _BoundArgs...> 24952: { 24952: typedef typename decay<_Func>::type __func_type; 24952: typedef _Bind<__func_type(typename decay<_BoundArgs>::type...)> type; 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: struct _Bind_helper 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline typename 24952: _Bind_helper<__is_socketlike<_Func>::value, _Func, _BoundArgs...>::type 24952: bind(_Func&& __f, _BoundArgs&&... __args) 24952: { 24952: typedef _Bind_helper __helper_type; 24952: return typename __helper_type::type(std::forward<_Func>(__f), 24952: std::forward<_BoundArgs>(__args)...); 24952: } 24952: 24952: template 24952: struct _Bindres_helper 24952: : _Bind_check_arity::type, _BoundArgs...> 24952: { 24952: typedef typename decay<_Func>::type __functor_type; 24952: typedef _Bind_result<_Result, 24952: __functor_type(typename decay<_BoundArgs>::type...)> 24952: type; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline 24952: typename _Bindres_helper<_Result, _Func, _BoundArgs...>::type 24952: bind(_Func&& __f, _BoundArgs&&... __args) 24952: { 24952: typedef _Bindres_helper<_Result, _Func, _BoundArgs...> __helper_type; 24952: return typename __helper_type::type(std::forward<_Func>(__f), 24952: std::forward<_BoundArgs>(__args)...); 24952: } 24952: # 1084 "/usr/include/c++/13/functional" 3 24952: template 24952: class _Not_fn 24952: { 24952: template 24952: using __inv_res_t = typename __invoke_result<_Fn2, _Args...>::type; 24952: 24952: template 24952: static decltype(!std::declval<_Tp>()) 24952: _S_not() noexcept(noexcept(!std::declval<_Tp>())); 24952: 24952: public: 24952: template 24952: constexpr 24952: _Not_fn(_Fn2&& __fn, int) 24952: : _M_fn(std::forward<_Fn2>(__fn)) { } 24952: 24952: _Not_fn(const _Not_fn& __fn) = default; 24952: _Not_fn(_Not_fn&& __fn) = default; 24952: ~_Not_fn() = default; 24952: # 1118 "/usr/include/c++/13/functional" 3 24952: 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)...); } 24952: 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)...); } 24952: 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)...); } 24952: 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)...); } 24952: 24952: 24952: private: 24952: _Fn _M_fn; 24952: }; 24952: 24952: template 24952: struct __is_byte_like : false_type { }; 24952: 24952: template 24952: struct __is_byte_like<_Tp, equal_to<_Tp>> 24952: : __bool_constant::value> { }; 24952: 24952: template 24952: struct __is_byte_like<_Tp, equal_to> 24952: : __bool_constant::value> { }; 24952: 24952: 24952: 24952: enum class byte : unsigned char; 24952: 24952: template<> 24952: struct __is_byte_like> 24952: : true_type { }; 24952: 24952: template<> 24952: struct __is_byte_like> 24952: : true_type { }; 24952: # 1165 "/usr/include/c++/13/functional" 3 24952: template 24952: 24952: inline auto 24952: not_fn(_Fn&& __fn) 24952: noexcept(std::is_nothrow_constructible, _Fn&&>::value) 24952: { 24952: return _Not_fn>{std::forward<_Fn>(__fn), 0}; 24952: } 24952: 24952: 24952: 24952: template> 24952: class default_searcher 24952: { 24952: public: 24952: 24952: default_searcher(_ForwardIterator1 __pat_first, 24952: _ForwardIterator1 __pat_last, 24952: _BinaryPredicate __pred = _BinaryPredicate()) 24952: : _M_m(__pat_first, __pat_last, std::move(__pred)) 24952: { } 24952: 24952: template 24952: 24952: pair<_ForwardIterator2, _ForwardIterator2> 24952: operator()(_ForwardIterator2 __first, _ForwardIterator2 __last) const 24952: { 24952: _ForwardIterator2 __first_ret = 24952: std::search(__first, __last, std::get<0>(_M_m), std::get<1>(_M_m), 24952: std::get<2>(_M_m)); 24952: auto __ret = std::make_pair(__first_ret, __first_ret); 24952: if (__ret.first != __last) 24952: std::advance(__ret.second, std::distance(std::get<0>(_M_m), 24952: std::get<1>(_M_m))); 24952: return __ret; 24952: } 24952: 24952: private: 24952: tuple<_ForwardIterator1, _ForwardIterator1, _BinaryPredicate> _M_m; 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: struct __boyer_moore_map_base 24952: { 24952: template 24952: __boyer_moore_map_base(_RAIter __pat, size_t __patlen, 24952: _Hash&& __hf, _Pred&& __pred) 24952: : _M_bad_char{ __patlen, std::move(__hf), std::move(__pred) } 24952: { 24952: if (__patlen > 0) 24952: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 24952: _M_bad_char[__pat[__i]] = __patlen - 1 - __i; 24952: } 24952: 24952: using __diff_type = _Tp; 24952: 24952: __diff_type 24952: _M_lookup(_Key __key, __diff_type __not_found) const 24952: { 24952: auto __iter = _M_bad_char.find(__key); 24952: if (__iter == _M_bad_char.end()) 24952: return __not_found; 24952: return __iter->second; 24952: } 24952: 24952: _Pred 24952: _M_pred() const { return _M_bad_char.key_eq(); } 24952: 24952: std::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; 24952: }; 24952: 24952: template 24952: struct __boyer_moore_array_base 24952: { 24952: template 24952: __boyer_moore_array_base(_RAIter __pat, size_t __patlen, 24952: _Unused&&, _Pred&& __pred) 24952: : _M_bad_char{ array<_Tp, _Len>{}, std::move(__pred) } 24952: { 24952: std::get<0>(_M_bad_char).fill(__patlen); 24952: if (__patlen > 0) 24952: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 24952: { 24952: auto __ch = __pat[__i]; 24952: using _UCh = make_unsigned_t; 24952: auto __uch = static_cast<_UCh>(__ch); 24952: std::get<0>(_M_bad_char)[__uch] = __patlen - 1 - __i; 24952: } 24952: } 24952: 24952: using __diff_type = _Tp; 24952: 24952: template 24952: __diff_type 24952: _M_lookup(_Key __key, __diff_type __not_found) const 24952: { 24952: auto __ukey = static_cast>(__key); 24952: if (__ukey >= _Len) 24952: return __not_found; 24952: return std::get<0>(_M_bad_char)[__ukey]; 24952: } 24952: 24952: const _Pred& 24952: _M_pred() const { return std::get<1>(_M_bad_char); } 24952: 24952: tuple, _Pred> _M_bad_char; 24952: }; 24952: 24952: 24952: 24952: template::value_type, 24952: typename _Diff = typename iterator_traits<_RAIter>::difference_type> 24952: using __boyer_moore_base_t 24952: = __conditional_t<__is_byte_like<_Val, _Pred>::value, 24952: __boyer_moore_array_base<_Diff, 256, _Pred>, 24952: __boyer_moore_map_base<_Val, _Diff, _Hash, _Pred>>; 24952: 24952: template::value_type>, 24952: typename _BinaryPredicate = equal_to<>> 24952: class boyer_moore_searcher 24952: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 24952: { 24952: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 24952: using typename _Base::__diff_type; 24952: 24952: public: 24952: boyer_moore_searcher(_RAIter __pat_first, _RAIter __pat_last, 24952: _Hash __hf = _Hash(), 24952: _BinaryPredicate __pred = _BinaryPredicate()); 24952: 24952: template 24952: pair<_RandomAccessIterator2, _RandomAccessIterator2> 24952: operator()(_RandomAccessIterator2 __first, 24952: _RandomAccessIterator2 __last) const; 24952: 24952: private: 24952: bool 24952: _M_is_prefix(_RAIter __word, __diff_type __len, 24952: __diff_type __pos) 24952: { 24952: const auto& __pred = this->_M_pred(); 24952: __diff_type __suffixlen = __len - __pos; 24952: for (__diff_type __i = 0; __i < __suffixlen; ++__i) 24952: if (!__pred(__word[__i], __word[__pos + __i])) 24952: return false; 24952: return true; 24952: } 24952: 24952: __diff_type 24952: _M_suffix_length(_RAIter __word, __diff_type __len, 24952: __diff_type __pos) 24952: { 24952: const auto& __pred = this->_M_pred(); 24952: __diff_type __i = 0; 24952: while (__pred(__word[__pos - __i], __word[__len - 1 - __i]) 24952: && __i < __pos) 24952: { 24952: ++__i; 24952: } 24952: return __i; 24952: } 24952: 24952: template 24952: __diff_type 24952: _M_bad_char_shift(_Tp __c) const 24952: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 24952: 24952: _RAIter _M_pat; 24952: _RAIter _M_pat_end; 24952: std::vector<__diff_type> _M_good_suffix; 24952: }; 24952: 24952: template::value_type>, 24952: typename _BinaryPredicate = equal_to<>> 24952: class boyer_moore_horspool_searcher 24952: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 24952: { 24952: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 24952: using typename _Base::__diff_type; 24952: 24952: public: 24952: boyer_moore_horspool_searcher(_RAIter __pat, 24952: _RAIter __pat_end, 24952: _Hash __hf = _Hash(), 24952: _BinaryPredicate __pred 24952: = _BinaryPredicate()) 24952: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 24952: _M_pat(__pat), _M_pat_end(__pat_end) 24952: { } 24952: 24952: template 24952: pair<_RandomAccessIterator2, _RandomAccessIterator2> 24952: operator()(_RandomAccessIterator2 __first, 24952: _RandomAccessIterator2 __last) const 24952: { 24952: const auto& __pred = this->_M_pred(); 24952: auto __patlen = _M_pat_end - _M_pat; 24952: if (__patlen == 0) 24952: return std::make_pair(__first, __first); 24952: auto __len = __last - __first; 24952: while (__len >= __patlen) 24952: { 24952: for (auto __scan = __patlen - 1; 24952: __pred(__first[__scan], _M_pat[__scan]); --__scan) 24952: if (__scan == 0) 24952: return std::make_pair(__first, __first + __patlen); 24952: auto __shift = _M_bad_char_shift(__first[__patlen - 1]); 24952: __len -= __shift; 24952: __first += __shift; 24952: } 24952: return std::make_pair(__last, __last); 24952: } 24952: 24952: private: 24952: template 24952: __diff_type 24952: _M_bad_char_shift(_Tp __c) const 24952: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 24952: 24952: _RAIter _M_pat; 24952: _RAIter _M_pat_end; 24952: }; 24952: 24952: template 24952: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 24952: boyer_moore_searcher(_RAIter __pat, _RAIter __pat_end, 24952: _Hash __hf, _BinaryPredicate __pred) 24952: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 24952: _M_pat(__pat), _M_pat_end(__pat_end), _M_good_suffix(__pat_end - __pat) 24952: { 24952: auto __patlen = __pat_end - __pat; 24952: if (__patlen == 0) 24952: return; 24952: __diff_type __last_prefix = __patlen - 1; 24952: for (__diff_type __p = __patlen - 1; __p >= 0; --__p) 24952: { 24952: if (_M_is_prefix(__pat, __patlen, __p + 1)) 24952: __last_prefix = __p + 1; 24952: _M_good_suffix[__p] = __last_prefix + (__patlen - 1 - __p); 24952: } 24952: for (__diff_type __p = 0; __p < __patlen - 1; ++__p) 24952: { 24952: auto __slen = _M_suffix_length(__pat, __patlen, __p); 24952: auto __pos = __patlen - 1 - __slen; 24952: if (!__pred(__pat[__p - __slen], __pat[__pos])) 24952: _M_good_suffix[__pos] = __patlen - 1 - __p + __slen; 24952: } 24952: } 24952: 24952: template 24952: template 24952: pair<_RandomAccessIterator2, _RandomAccessIterator2> 24952: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 24952: operator()(_RandomAccessIterator2 __first, 24952: _RandomAccessIterator2 __last) const 24952: { 24952: auto __patlen = _M_pat_end - _M_pat; 24952: if (__patlen == 0) 24952: return std::make_pair(__first, __first); 24952: const auto& __pred = this->_M_pred(); 24952: __diff_type __i = __patlen - 1; 24952: auto __stringlen = __last - __first; 24952: while (__i < __stringlen) 24952: { 24952: __diff_type __j = __patlen - 1; 24952: while (__j >= 0 && __pred(__first[__i], _M_pat[__j])) 24952: { 24952: --__i; 24952: --__j; 24952: } 24952: if (__j < 0) 24952: { 24952: const auto __match = __first + __i + 1; 24952: return std::make_pair(__match, __match + __patlen); 24952: } 24952: __i += std::max(_M_bad_char_shift(__first[__i]), 24952: _M_good_suffix[__j]); 24952: } 24952: return std::make_pair(__last, __last); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: # 1 "/usr/include/c++/13/memory" 1 3 24952: # 47 "/usr/include/c++/13/memory" 3 24952: 24952: # 48 "/usr/include/c++/13/memory" 3 24952: # 70 "/usr/include/c++/13/memory" 3 24952: # 1 "/usr/include/c++/13/bits/stl_raw_storage_iter.h" 1 3 24952: # 59 "/usr/include/c++/13/bits/stl_raw_storage_iter.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: # 64 "/usr/include/c++/13/bits/stl_raw_storage_iter.h" 3 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: 24952: 24952: 24952: 24952: template 24952: class [[__deprecated__]] raw_storage_iterator 24952: : public iterator 24952: { 24952: protected: 24952: _OutputIterator _M_iter; 24952: 24952: public: 24952: explicit 24952: raw_storage_iterator(_OutputIterator __x) 24952: : _M_iter(__x) {} 24952: 24952: raw_storage_iterator& 24952: operator*() { return *this; } 24952: 24952: raw_storage_iterator& 24952: operator=(const _Tp& __element) 24952: { 24952: std::_Construct(std::__addressof(*_M_iter), __element); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: raw_storage_iterator& 24952: operator=(_Tp&& __element) 24952: { 24952: std::_Construct(std::__addressof(*_M_iter), std::move(__element)); 24952: return *this; 24952: } 24952: 24952: 24952: raw_storage_iterator& 24952: operator++() 24952: { 24952: ++_M_iter; 24952: return *this; 24952: } 24952: 24952: raw_storage_iterator 24952: operator++(int) 24952: { 24952: raw_storage_iterator __tmp = *this; 24952: ++_M_iter; 24952: return __tmp; 24952: } 24952: 24952: 24952: 24952: _OutputIterator base() const { return _M_iter; } 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: } 24952: # 71 "/usr/include/c++/13/memory" 2 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/align.h" 1 3 24952: # 39 "/usr/include/c++/13/bits/align.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 61 "/usr/include/c++/13/bits/align.h" 3 24952: inline void* 24952: align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept 24952: { 24952: if (__space < __size) 24952: return nullptr; 24952: const auto __intptr = reinterpret_cast(__ptr); 24952: const auto __aligned = (__intptr - 1u + __align) & -__align; 24952: const auto __diff = __aligned - __intptr; 24952: if (__diff > (__space - __size)) 24952: return nullptr; 24952: else 24952: { 24952: __space -= __diff; 24952: return __ptr = reinterpret_cast(__aligned); 24952: } 24952: } 24952: # 108 "/usr/include/c++/13/bits/align.h" 3 24952: 24952: } 24952: # 75 "/usr/include/c++/13/memory" 2 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/unique_ptr.h" 1 3 24952: # 53 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 63 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: template class auto_ptr; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct default_delete 24952: { 24952: 24952: constexpr default_delete() noexcept = default; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template>> 24952: 24952: default_delete(const default_delete<_Up>&) noexcept { } 24952: 24952: 24952: 24952: void 24952: operator()(_Tp* __ptr) const 24952: { 24952: static_assert(!is_void<_Tp>::value, 24952: "can't delete pointer to incomplete type"); 24952: static_assert(sizeof(_Tp)>0, 24952: "can't delete pointer to incomplete type"); 24952: delete __ptr; 24952: } 24952: }; 24952: # 111 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: template 24952: struct default_delete<_Tp[]> 24952: { 24952: public: 24952: 24952: constexpr default_delete() noexcept = default; 24952: # 127 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: template>> 24952: 24952: default_delete(const default_delete<_Up[]>&) noexcept { } 24952: 24952: 24952: template 24952: 24952: typename enable_if::value>::type 24952: operator()(_Up* __ptr) const 24952: { 24952: static_assert(sizeof(_Tp)>0, 24952: "can't delete pointer to incomplete type"); 24952: delete [] __ptr; 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: class __uniq_ptr_impl 24952: { 24952: template 24952: struct _Ptr 24952: { 24952: using type = _Up*; 24952: }; 24952: 24952: template 24952: struct 24952: _Ptr<_Up, _Ep, __void_t::type::pointer>> 24952: { 24952: using type = typename remove_reference<_Ep>::type::pointer; 24952: }; 24952: 24952: public: 24952: using _DeleterConstraint = enable_if< 24952: __and_<__not_>, 24952: is_default_constructible<_Dp>>::value>; 24952: 24952: using pointer = typename _Ptr<_Tp, _Dp>::type; 24952: 24952: static_assert( !is_rvalue_reference<_Dp>::value, 24952: "unique_ptr's deleter type must be a function object type" 24952: " or an lvalue reference type" ); 24952: 24952: __uniq_ptr_impl() = default; 24952: 24952: __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; } 24952: 24952: template 24952: 24952: __uniq_ptr_impl(pointer __p, _Del&& __d) 24952: : _M_t(__p, std::forward<_Del>(__d)) { } 24952: 24952: 24952: __uniq_ptr_impl(__uniq_ptr_impl&& __u) noexcept 24952: : _M_t(std::move(__u._M_t)) 24952: { __u._M_ptr() = nullptr; } 24952: 24952: 24952: __uniq_ptr_impl& operator=(__uniq_ptr_impl&& __u) noexcept 24952: { 24952: reset(__u.release()); 24952: _M_deleter() = std::forward<_Dp>(__u._M_deleter()); 24952: return *this; 24952: } 24952: 24952: 24952: pointer& _M_ptr() noexcept { return std::get<0>(_M_t); } 24952: 24952: pointer _M_ptr() const noexcept { return std::get<0>(_M_t); } 24952: 24952: _Dp& _M_deleter() noexcept { return std::get<1>(_M_t); } 24952: 24952: const _Dp& _M_deleter() const noexcept { return std::get<1>(_M_t); } 24952: 24952: 24952: void reset(pointer __p) noexcept 24952: { 24952: const pointer __old_p = _M_ptr(); 24952: _M_ptr() = __p; 24952: if (__old_p) 24952: _M_deleter()(__old_p); 24952: } 24952: 24952: 24952: pointer release() noexcept 24952: { 24952: pointer __p = _M_ptr(); 24952: _M_ptr() = nullptr; 24952: return __p; 24952: } 24952: 24952: 24952: void 24952: swap(__uniq_ptr_impl& __rhs) noexcept 24952: { 24952: using std::swap; 24952: swap(this->_M_ptr(), __rhs._M_ptr()); 24952: swap(this->_M_deleter(), __rhs._M_deleter()); 24952: } 24952: 24952: private: 24952: tuple _M_t; 24952: }; 24952: 24952: 24952: template ::value, 24952: bool = is_move_assignable<_Dp>::value> 24952: struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp> 24952: { 24952: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 24952: __uniq_ptr_data(__uniq_ptr_data&&) = default; 24952: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 24952: }; 24952: 24952: template 24952: struct __uniq_ptr_data<_Tp, _Dp, true, false> : __uniq_ptr_impl<_Tp, _Dp> 24952: { 24952: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 24952: __uniq_ptr_data(__uniq_ptr_data&&) = default; 24952: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 24952: }; 24952: 24952: template 24952: struct __uniq_ptr_data<_Tp, _Dp, false, true> : __uniq_ptr_impl<_Tp, _Dp> 24952: { 24952: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 24952: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 24952: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 24952: }; 24952: 24952: template 24952: struct __uniq_ptr_data<_Tp, _Dp, false, false> : __uniq_ptr_impl<_Tp, _Dp> 24952: { 24952: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 24952: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 24952: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template > 24952: class unique_ptr 24952: { 24952: template 24952: using _DeleterConstraint = 24952: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 24952: 24952: __uniq_ptr_data<_Tp, _Dp> _M_t; 24952: 24952: public: 24952: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 24952: using element_type = _Tp; 24952: using deleter_type = _Dp; 24952: 24952: private: 24952: 24952: 24952: template 24952: using __safe_conversion_up = __and_< 24952: is_convertible::pointer, pointer>, 24952: __not_> 24952: >; 24952: 24952: public: 24952: 24952: 24952: 24952: template> 24952: constexpr unique_ptr() noexcept 24952: : _M_t() 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: 24952: explicit 24952: unique_ptr(pointer __p) noexcept 24952: : _M_t(__p) 24952: { } 24952: # 328 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: template>> 24952: 24952: unique_ptr(pointer __p, const deleter_type& __d) noexcept 24952: : _M_t(__p, __d) { } 24952: # 341 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: template>> 24952: 24952: unique_ptr(pointer __p, 24952: __enable_if_t::value, 24952: _Del&&> __d) noexcept 24952: : _M_t(__p, std::move(__d)) 24952: { } 24952: 24952: template::type> 24952: 24952: unique_ptr(pointer, 24952: __enable_if_t::value, 24952: _DelUnref&&>) = delete; 24952: 24952: 24952: template> 24952: constexpr unique_ptr(nullptr_t) noexcept 24952: : _M_t() 24952: { } 24952: 24952: 24952: 24952: 24952: unique_ptr(unique_ptr&&) = default; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template, 24952: __conditional_t::value, 24952: is_same<_Ep, _Dp>, 24952: is_convertible<_Ep, _Dp>>>> 24952: 24952: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 24952: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 24952: { } 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: template, is_same<_Dp, default_delete<_Tp>>>> 24952: unique_ptr(auto_ptr<_Up>&& __u) noexcept; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: 24952: 24952: 24952: 24952: ~unique_ptr() noexcept 24952: { 24952: static_assert(__is_invocable::value, 24952: "unique_ptr's deleter must be invocable with a pointer"); 24952: auto& __ptr = _M_t._M_ptr(); 24952: if (__ptr != nullptr) 24952: get_deleter()(std::move(__ptr)); 24952: __ptr = pointer(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: unique_ptr& operator=(unique_ptr&&) = default; 24952: # 423 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: template 24952: 24952: typename enable_if< __and_< 24952: __safe_conversion_up<_Up, _Ep>, 24952: is_assignable 24952: >::value, 24952: unique_ptr&>::type 24952: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 24952: { 24952: reset(__u.release()); 24952: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: unique_ptr& 24952: operator=(nullptr_t) noexcept 24952: { 24952: reset(); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: typename add_lvalue_reference::type 24952: operator*() const noexcept(noexcept(*std::declval())) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) __builtin_unreachable(); } while (false); 24952: return *get(); 24952: } 24952: 24952: 24952: 24952: pointer 24952: operator->() const noexcept 24952: { 24952: ; 24952: return get(); 24952: } 24952: 24952: 24952: 24952: pointer 24952: get() const noexcept 24952: { return _M_t._M_ptr(); } 24952: 24952: 24952: 24952: deleter_type& 24952: get_deleter() noexcept 24952: { return _M_t._M_deleter(); } 24952: 24952: 24952: 24952: const deleter_type& 24952: get_deleter() const noexcept 24952: { return _M_t._M_deleter(); } 24952: 24952: 24952: 24952: explicit operator bool() const noexcept 24952: { return get() == pointer() ? false : true; } 24952: 24952: 24952: 24952: 24952: 24952: pointer 24952: release() noexcept 24952: { return _M_t.release(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: reset(pointer __p = pointer()) noexcept 24952: { 24952: static_assert(__is_invocable::value, 24952: "unique_ptr's deleter must be invocable with a pointer"); 24952: _M_t.reset(std::move(__p)); 24952: } 24952: 24952: 24952: 24952: void 24952: swap(unique_ptr& __u) noexcept 24952: { 24952: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 24952: _M_t.swap(__u._M_t); 24952: } 24952: 24952: 24952: unique_ptr(const unique_ptr&) = delete; 24952: unique_ptr& operator=(const unique_ptr&) = delete; 24952: }; 24952: # 534 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: template 24952: class unique_ptr<_Tp[], _Dp> 24952: { 24952: template 24952: using _DeleterConstraint = 24952: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 24952: 24952: __uniq_ptr_data<_Tp, _Dp> _M_t; 24952: 24952: 24952: template 24952: using __is_derived_Tp 24952: = __and_< is_base_of<_Tp, _Up>, 24952: __not_, __remove_cv_t<_Up>>> >; 24952: 24952: public: 24952: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 24952: using element_type = _Tp; 24952: using deleter_type = _Dp; 24952: 24952: 24952: 24952: template, 24952: typename _UP_pointer = typename _UPtr::pointer, 24952: typename _UP_element_type = typename _UPtr::element_type> 24952: using __safe_conversion_up = __and_< 24952: is_array<_Up>, 24952: is_same, 24952: is_same<_UP_pointer, _UP_element_type*>, 24952: is_convertible<_UP_element_type(*)[], element_type(*)[]> 24952: >; 24952: 24952: 24952: template 24952: using __safe_conversion_raw = __and_< 24952: __or_<__or_, 24952: is_same<_Up, nullptr_t>>, 24952: __and_, 24952: is_same, 24952: is_convertible< 24952: typename remove_pointer<_Up>::type(*)[], 24952: element_type(*)[]> 24952: > 24952: > 24952: >; 24952: 24952: 24952: 24952: 24952: template> 24952: constexpr unique_ptr() noexcept 24952: : _M_t() 24952: { } 24952: # 596 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: template, 24952: typename = typename enable_if< 24952: __safe_conversion_raw<_Up>::value, bool>::type> 24952: 24952: explicit 24952: unique_ptr(_Up __p) noexcept 24952: : _M_t(__p) 24952: { } 24952: # 615 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: template, 24952: is_copy_constructible<_Del>>> 24952: 24952: unique_ptr(_Up __p, const deleter_type& __d) noexcept 24952: : _M_t(__p, __d) { } 24952: # 630 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: template, 24952: is_move_constructible<_Del>>> 24952: 24952: unique_ptr(_Up __p, 24952: __enable_if_t::value, 24952: _Del&&> __d) noexcept 24952: : _M_t(std::move(__p), std::move(__d)) 24952: { } 24952: 24952: template::type, 24952: typename = _Require<__safe_conversion_raw<_Up>>> 24952: unique_ptr(_Up, 24952: __enable_if_t::value, 24952: _DelUnref&&>) = delete; 24952: 24952: 24952: unique_ptr(unique_ptr&&) = default; 24952: 24952: 24952: template> 24952: constexpr unique_ptr(nullptr_t) noexcept 24952: : _M_t() 24952: { } 24952: 24952: template, 24952: __conditional_t::value, 24952: is_same<_Ep, _Dp>, 24952: is_convertible<_Ep, _Dp>>>> 24952: 24952: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 24952: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: ~unique_ptr() 24952: { 24952: auto& __ptr = _M_t._M_ptr(); 24952: if (__ptr != nullptr) 24952: get_deleter()(__ptr); 24952: __ptr = pointer(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: unique_ptr& 24952: operator=(unique_ptr&&) = default; 24952: # 694 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: template 24952: 24952: typename 24952: enable_if<__and_<__safe_conversion_up<_Up, _Ep>, 24952: is_assignable 24952: >::value, 24952: unique_ptr&>::type 24952: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 24952: { 24952: reset(__u.release()); 24952: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: unique_ptr& 24952: operator=(nullptr_t) noexcept 24952: { 24952: reset(); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: typename std::add_lvalue_reference::type 24952: operator[](size_t __i) const 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) __builtin_unreachable(); } while (false); 24952: return get()[__i]; 24952: } 24952: 24952: 24952: 24952: pointer 24952: get() const noexcept 24952: { return _M_t._M_ptr(); } 24952: 24952: 24952: 24952: deleter_type& 24952: get_deleter() noexcept 24952: { return _M_t._M_deleter(); } 24952: 24952: 24952: 24952: const deleter_type& 24952: get_deleter() const noexcept 24952: { return _M_t._M_deleter(); } 24952: 24952: 24952: 24952: explicit operator bool() const noexcept 24952: { return get() == pointer() ? false : true; } 24952: 24952: 24952: 24952: 24952: 24952: pointer 24952: release() noexcept 24952: { return _M_t.release(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template , 24952: __and_, 24952: is_pointer<_Up>, 24952: is_convertible< 24952: typename remove_pointer<_Up>::type(*)[], 24952: element_type(*)[] 24952: > 24952: > 24952: > 24952: >> 24952: 24952: void 24952: reset(_Up __p) noexcept 24952: { _M_t.reset(std::move(__p)); } 24952: 24952: 24952: void reset(nullptr_t = nullptr) noexcept 24952: { reset(pointer()); } 24952: 24952: 24952: 24952: void 24952: swap(unique_ptr& __u) noexcept 24952: { 24952: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 24952: _M_t.swap(__u._M_t); 24952: } 24952: 24952: 24952: unique_ptr(const unique_ptr&) = delete; 24952: unique_ptr& operator=(const unique_ptr&) = delete; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline 24952: 24952: 24952: 24952: typename enable_if<__is_swappable<_Dp>::value>::type 24952: 24952: 24952: 24952: swap(unique_ptr<_Tp, _Dp>& __x, 24952: unique_ptr<_Tp, _Dp>& __y) noexcept 24952: { __x.swap(__y); } 24952: 24952: 24952: template 24952: typename enable_if::value>::type 24952: swap(unique_ptr<_Tp, _Dp>&, 24952: unique_ptr<_Tp, _Dp>&) = delete; 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(const unique_ptr<_Tp, _Dp>& __x, 24952: const unique_ptr<_Up, _Ep>& __y) 24952: { return __x.get() == __y.get(); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 24952: { return !__x; } 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 24952: { return !__x; } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator!=(const unique_ptr<_Tp, _Dp>& __x, 24952: const unique_ptr<_Up, _Ep>& __y) 24952: { return __x.get() != __y.get(); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 24952: { return (bool)__x; } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 24952: { return (bool)__x; } 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<(const unique_ptr<_Tp, _Dp>& __x, 24952: const unique_ptr<_Up, _Ep>& __y) 24952: { 24952: typedef typename 24952: std::common_type::pointer, 24952: typename unique_ptr<_Up, _Ep>::pointer>::type _CT; 24952: return std::less<_CT>()(__x.get(), __y.get()); 24952: } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 24952: { 24952: return std::less::pointer>()(__x.get(), 24952: nullptr); 24952: } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 24952: { 24952: return std::less::pointer>()(nullptr, 24952: __x.get()); 24952: } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<=(const unique_ptr<_Tp, _Dp>& __x, 24952: const unique_ptr<_Up, _Ep>& __y) 24952: { return !(__y < __x); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 24952: { return !(nullptr < __x); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 24952: { return !(__x < nullptr); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>(const unique_ptr<_Tp, _Dp>& __x, 24952: const unique_ptr<_Up, _Ep>& __y) 24952: { return (__y < __x); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 24952: { 24952: return std::less::pointer>()(nullptr, 24952: __x.get()); 24952: } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 24952: { 24952: return std::less::pointer>()(__x.get(), 24952: nullptr); 24952: } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>=(const unique_ptr<_Tp, _Dp>& __x, 24952: const unique_ptr<_Up, _Ep>& __y) 24952: { return !(__x < __y); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 24952: { return !(__x < nullptr); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 24952: { return !(nullptr < __x); } 24952: # 1006 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: template::__enable_hash_call> 24952: struct __uniq_ptr_hash 24952: 24952: : private __poison_hash<_Ptr> 24952: 24952: { 24952: size_t 24952: operator()(const _Up& __u) const 24952: noexcept(noexcept(std::declval>()(std::declval<_Ptr>()))) 24952: { return hash<_Ptr>()(__u.get()); } 24952: }; 24952: 24952: template 24952: struct __uniq_ptr_hash<_Up, _Ptr, false> 24952: : private __poison_hash<_Ptr> 24952: { }; 24952: 24952: 24952: 24952: template 24952: struct hash> 24952: : public __hash_base>, 24952: public __uniq_ptr_hash> 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: namespace __detail 24952: { 24952: template 24952: struct _MakeUniq 24952: { typedef unique_ptr<_Tp> __single_object; }; 24952: 24952: template 24952: struct _MakeUniq<_Tp[]> 24952: { typedef unique_ptr<_Tp[]> __array; }; 24952: 24952: template 24952: struct _MakeUniq<_Tp[_Bound]> 24952: { struct __invalid_type { }; }; 24952: 24952: template 24952: using __unique_ptr_t = typename _MakeUniq<_Tp>::__single_object; 24952: template 24952: using __unique_ptr_array_t = typename _MakeUniq<_Tp>::__array; 24952: template 24952: using __invalid_make_unique_t = typename _MakeUniq<_Tp>::__invalid_type; 24952: } 24952: # 1066 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: template 24952: 24952: inline __detail::__unique_ptr_t<_Tp> 24952: make_unique(_Args&&... __args) 24952: { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } 24952: # 1081 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: template 24952: 24952: inline __detail::__unique_ptr_array_t<_Tp> 24952: make_unique(size_t __num) 24952: { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: __detail::__invalid_make_unique_t<_Tp> 24952: make_unique(_Args&&...) = delete; 24952: # 1154 "/usr/include/c++/13/bits/unique_ptr.h" 3 24952: namespace __detail::__variant 24952: { 24952: template struct _Never_valueless_alt; 24952: 24952: 24952: 24952: template 24952: struct _Never_valueless_alt> 24952: : std::true_type 24952: { }; 24952: } 24952: 24952: 24952: 24952: } 24952: # 79 "/usr/include/c++/13/memory" 2 3 24952: 24952: # 1 "/usr/include/c++/13/bits/shared_ptr.h" 1 3 24952: # 52 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: # 1 "/usr/include/c++/13/iosfwd" 1 3 24952: # 36 "/usr/include/c++/13/iosfwd" 3 24952: 24952: # 37 "/usr/include/c++/13/iosfwd" 3 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/stringfwd.h" 1 3 24952: # 37 "/usr/include/c++/13/bits/stringfwd.h" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/stringfwd.h" 3 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct char_traits; 24952: 24952: template<> struct char_traits; 24952: 24952: template<> struct char_traits; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template<> struct char_traits; 24952: template<> struct char_traits; 24952: 24952: 24952: namespace __cxx11 { 24952: 24952: template, 24952: typename _Alloc = allocator<_CharT> > 24952: class basic_string; 24952: 24952: } 24952: 24952: 24952: typedef basic_string string; 24952: 24952: 24952: typedef basic_string wstring; 24952: # 89 "/usr/include/c++/13/bits/stringfwd.h" 3 24952: typedef basic_string u16string; 24952: 24952: 24952: typedef basic_string u32string; 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 42 "/usr/include/c++/13/iosfwd" 2 3 24952: # 1 "/usr/include/c++/13/bits/postypes.h" 1 3 24952: # 38 "/usr/include/c++/13/bits/postypes.h" 3 24952: 24952: # 39 "/usr/include/c++/13/bits/postypes.h" 3 24952: 24952: # 1 "/usr/include/c++/13/cwchar" 1 3 24952: # 39 "/usr/include/c++/13/cwchar" 3 24952: 24952: # 40 "/usr/include/c++/13/cwchar" 3 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/wchar.h" 1 3 4 24952: # 27 "/usr/include/wchar.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 24952: # 28 "/usr/include/wchar.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 24952: # 31 "/usr/include/wchar.h" 2 3 4 24952: 24952: 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 36 "/usr/include/wchar.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdarg.h" 1 3 4 24952: # 40 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdarg.h" 3 4 24952: typedef __builtin_va_list __gnuc_va_list; 24952: # 39 "/usr/include/wchar.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 1 3 4 24952: # 20 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 3 4 24952: typedef unsigned int wint_t; 24952: # 42 "/usr/include/wchar.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 1 3 4 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 1 3 4 24952: # 13 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 3 4 24952: typedef struct 24952: { 24952: int __count; 24952: union 24952: { 24952: unsigned int __wch; 24952: char __wchb[4]; 24952: } __value; 24952: } __mbstate_t; 24952: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 2 3 4 24952: 24952: typedef __mbstate_t mbstate_t; 24952: # 43 "/usr/include/wchar.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__FILE.h" 1 3 4 24952: 24952: 24952: 24952: struct _IO_FILE; 24952: typedef struct _IO_FILE __FILE; 24952: # 44 "/usr/include/wchar.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/FILE.h" 1 3 4 24952: 24952: 24952: 24952: struct _IO_FILE; 24952: 24952: 24952: typedef struct _IO_FILE FILE; 24952: # 47 "/usr/include/wchar.h" 2 3 4 24952: # 79 "/usr/include/wchar.h" 3 4 24952: extern "C" { 24952: 24952: 24952: 24952: struct tm; 24952: 24952: 24952: 24952: extern wchar_t *wcscpy (wchar_t *__restrict __dest, 24952: const wchar_t *__restrict __src) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern wchar_t *wcsncpy (wchar_t *__restrict __dest, 24952: const wchar_t *__restrict __src, size_t __n) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern wchar_t *wcscat (wchar_t *__restrict __dest, 24952: const wchar_t *__restrict __src) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: extern wchar_t *wcsncat (wchar_t *__restrict __dest, 24952: const wchar_t *__restrict __src, size_t __n) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 24952: 24952: 24952: extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, 24952: size_t __n) noexcept (true); 24952: 24952: 24952: 24952: extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 24952: locale_t __loc) noexcept (true); 24952: 24952: extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 24952: size_t __n, locale_t __loc) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 24952: 24952: 24952: 24952: extern size_t wcsxfrm (wchar_t *__restrict __s1, 24952: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, 24952: locale_t __loc) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, 24952: size_t __n, locale_t __loc) noexcept (true); 24952: 24952: 24952: extern wchar_t *wcsdup (const wchar_t *__s) noexcept (true) 24952: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 24952: 24952: 24952: 24952: 24952: extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) 24952: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 24952: extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) 24952: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) 24952: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 24952: extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) 24952: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 24952: # 182 "/usr/include/wchar.h" 3 4 24952: extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) 24952: noexcept (true) __attribute__ ((__pure__)); 24952: 24952: 24952: 24952: 24952: extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) 24952: noexcept (true) __attribute__ ((__pure__)); 24952: 24952: 24952: extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) 24952: noexcept (true) __attribute__ ((__pure__)); 24952: 24952: 24952: extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) 24952: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 24952: extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, 24952: const wchar_t *__accept) 24952: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) 24952: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 24952: extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, 24952: const wchar_t *__needle) 24952: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern wchar_t *wcstok (wchar_t *__restrict __s, 24952: const wchar_t *__restrict __delim, 24952: wchar_t **__restrict __ptr) noexcept (true); 24952: 24952: 24952: extern size_t wcslen (const wchar_t *__s) noexcept (true) __attribute__ ((__pure__)); 24952: 24952: 24952: 24952: 24952: extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) 24952: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 24952: extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, 24952: const wchar_t *__needle) 24952: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 24952: # 241 "/usr/include/wchar.h" 3 4 24952: extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) 24952: noexcept (true) __attribute__ ((__pure__)); 24952: 24952: 24952: 24952: 24952: 24952: extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) 24952: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 24952: extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, 24952: size_t __n) 24952: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 24952: noexcept (true) __attribute__ ((__pure__)); 24952: 24952: 24952: extern wchar_t *wmemcpy (wchar_t *__restrict __s1, 24952: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 24952: 24952: 24952: 24952: extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) 24952: noexcept (true); 24952: 24952: 24952: extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern wchar_t *wmempcpy (wchar_t *__restrict __s1, 24952: const wchar_t *__restrict __s2, size_t __n) 24952: noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern wint_t btowc (int __c) noexcept (true); 24952: 24952: 24952: 24952: extern int wctob (wint_t __c) noexcept (true); 24952: 24952: 24952: 24952: extern int mbsinit (const mbstate_t *__ps) noexcept (true) __attribute__ ((__pure__)); 24952: 24952: 24952: 24952: extern size_t mbrtowc (wchar_t *__restrict __pwc, 24952: const char *__restrict __s, size_t __n, 24952: mbstate_t *__restrict __p) noexcept (true); 24952: 24952: 24952: extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, 24952: mbstate_t *__restrict __ps) noexcept (true); 24952: 24952: 24952: extern size_t __mbrlen (const char *__restrict __s, size_t __n, 24952: mbstate_t *__restrict __ps) noexcept (true); 24952: extern size_t mbrlen (const char *__restrict __s, size_t __n, 24952: mbstate_t *__restrict __ps) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern wint_t __btowc_alias (int __c) __asm ("btowc"); 24952: extern __inline __attribute__ ((__gnu_inline__)) wint_t 24952: __attribute__ ((__leaf__)) btowc (int __c) noexcept (true) 24952: { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' 24952: ? (wint_t) __c : __btowc_alias (__c)); } 24952: 24952: extern int __wctob_alias (wint_t __c) __asm ("wctob"); 24952: extern __inline __attribute__ ((__gnu_inline__)) int 24952: __attribute__ ((__leaf__)) wctob (wint_t __wc) noexcept (true) 24952: { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' 24952: ? (int) __wc : __wctob_alias (__wc)); } 24952: 24952: extern __inline __attribute__ ((__gnu_inline__)) size_t 24952: __attribute__ ((__leaf__)) mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true) 24952: 24952: { return (__ps != __null 24952: ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); } 24952: 24952: 24952: 24952: 24952: extern size_t mbsrtowcs (wchar_t *__restrict __dst, 24952: const char **__restrict __src, size_t __len, 24952: mbstate_t *__restrict __ps) noexcept (true); 24952: 24952: 24952: 24952: extern size_t wcsrtombs (char *__restrict __dst, 24952: const wchar_t **__restrict __src, size_t __len, 24952: mbstate_t *__restrict __ps) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern size_t mbsnrtowcs (wchar_t *__restrict __dst, 24952: const char **__restrict __src, size_t __nmc, 24952: size_t __len, mbstate_t *__restrict __ps) noexcept (true); 24952: 24952: 24952: 24952: extern size_t wcsnrtombs (char *__restrict __dst, 24952: const wchar_t **__restrict __src, 24952: size_t __nwc, size_t __len, 24952: mbstate_t *__restrict __ps) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int wcwidth (wchar_t __c) noexcept (true); 24952: 24952: 24952: 24952: extern int wcswidth (const wchar_t *__s, size_t __n) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern double wcstod (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr) noexcept (true); 24952: 24952: 24952: 24952: extern float wcstof (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr) noexcept (true); 24952: extern long double wcstold (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr) noexcept (true); 24952: # 397 "/usr/include/wchar.h" 3 4 24952: extern _Float32 wcstof32 (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr) noexcept (true); 24952: 24952: 24952: 24952: extern _Float64 wcstof64 (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr) noexcept (true); 24952: # 412 "/usr/include/wchar.h" 3 4 24952: extern _Float32x wcstof32x (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr) noexcept (true); 24952: # 429 "/usr/include/wchar.h" 3 4 24952: extern long int wcstol (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, int __base) noexcept (true); 24952: 24952: 24952: 24952: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, int __base) 24952: noexcept (true); 24952: 24952: 24952: 24952: 24952: __extension__ 24952: extern long long int wcstoll (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, int __base) 24952: noexcept (true); 24952: 24952: 24952: 24952: __extension__ 24952: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, 24952: int __base) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: __extension__ 24952: extern long long int wcstoq (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, int __base) 24952: noexcept (true); 24952: 24952: 24952: 24952: __extension__ 24952: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, 24952: int __base) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long int wcstol_l (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, int __base, 24952: locale_t __loc) noexcept (true); 24952: 24952: extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, 24952: int __base, locale_t __loc) noexcept (true); 24952: 24952: __extension__ 24952: extern long long int wcstoll_l (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, 24952: int __base, locale_t __loc) noexcept (true); 24952: 24952: __extension__ 24952: extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, 24952: int __base, locale_t __loc) 24952: noexcept (true); 24952: 24952: extern double wcstod_l (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, locale_t __loc) 24952: noexcept (true); 24952: 24952: extern float wcstof_l (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, locale_t __loc) 24952: noexcept (true); 24952: 24952: extern long double wcstold_l (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, 24952: locale_t __loc) noexcept (true); 24952: # 512 "/usr/include/wchar.h" 3 4 24952: extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, 24952: locale_t __loc) noexcept (true); 24952: 24952: 24952: 24952: extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, 24952: locale_t __loc) noexcept (true); 24952: # 530 "/usr/include/wchar.h" 3 4 24952: extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, 24952: locale_t __loc) noexcept (true); 24952: # 552 "/usr/include/wchar.h" 3 4 24952: extern wchar_t *wcpcpy (wchar_t *__restrict __dest, 24952: const wchar_t *__restrict __src) noexcept (true); 24952: 24952: 24952: 24952: extern wchar_t *wcpncpy (wchar_t *__restrict __dest, 24952: const wchar_t *__restrict __src, size_t __n) 24952: noexcept (true); 24952: # 581 "/usr/include/wchar.h" 3 4 24952: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 24952: __attribute__ ((__malloc__)) ; 24952: 24952: 24952: 24952: 24952: 24952: extern int fwide (__FILE *__fp, int __mode) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int fwprintf (__FILE *__restrict __stream, 24952: const wchar_t *__restrict __format, ...) 24952: ; 24952: 24952: 24952: 24952: 24952: extern int wprintf (const wchar_t *__restrict __format, ...) 24952: ; 24952: 24952: extern int swprintf (wchar_t *__restrict __s, size_t __n, 24952: const wchar_t *__restrict __format, ...) 24952: noexcept (true) ; 24952: 24952: 24952: 24952: 24952: 24952: extern int vfwprintf (__FILE *__restrict __s, 24952: const wchar_t *__restrict __format, 24952: __gnuc_va_list __arg) 24952: ; 24952: 24952: 24952: 24952: 24952: extern int vwprintf (const wchar_t *__restrict __format, 24952: __gnuc_va_list __arg) 24952: ; 24952: 24952: 24952: extern int vswprintf (wchar_t *__restrict __s, size_t __n, 24952: const wchar_t *__restrict __format, 24952: __gnuc_va_list __arg) 24952: noexcept (true) ; 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int fwscanf (__FILE *__restrict __stream, 24952: const wchar_t *__restrict __format, ...) 24952: ; 24952: 24952: 24952: 24952: 24952: extern int wscanf (const wchar_t *__restrict __format, ...) 24952: ; 24952: 24952: extern int swscanf (const wchar_t *__restrict __s, 24952: const wchar_t *__restrict __format, ...) 24952: noexcept (true) ; 24952: # 657 "/usr/include/wchar.h" 3 4 24952: extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_fwscanf") 24952: 24952: 24952: ; 24952: extern int wscanf (const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_wscanf") 24952: 24952: ; 24952: extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc99_swscanf") 24952: 24952: 24952: ; 24952: # 688 "/usr/include/wchar.h" 3 4 24952: extern int vfwscanf (__FILE *__restrict __s, 24952: const wchar_t *__restrict __format, 24952: __gnuc_va_list __arg) 24952: ; 24952: 24952: 24952: 24952: 24952: extern int vwscanf (const wchar_t *__restrict __format, 24952: __gnuc_va_list __arg) 24952: ; 24952: 24952: extern int vswscanf (const wchar_t *__restrict __s, 24952: const wchar_t *__restrict __format, 24952: __gnuc_va_list __arg) 24952: noexcept (true) ; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfwscanf") 24952: 24952: 24952: ; 24952: extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vwscanf") 24952: 24952: ; 24952: extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc99_vswscanf") 24952: 24952: 24952: ; 24952: # 744 "/usr/include/wchar.h" 3 4 24952: extern wint_t fgetwc (__FILE *__stream); 24952: extern wint_t getwc (__FILE *__stream); 24952: 24952: 24952: 24952: 24952: 24952: extern wint_t getwchar (void); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern wint_t fputwc (wchar_t __wc, __FILE *__stream); 24952: extern wint_t putwc (wchar_t __wc, __FILE *__stream); 24952: 24952: 24952: 24952: 24952: 24952: extern wint_t putwchar (wchar_t __wc); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, 24952: __FILE *__restrict __stream); 24952: 24952: 24952: 24952: 24952: 24952: extern int fputws (const wchar_t *__restrict __ws, 24952: __FILE *__restrict __stream); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern wint_t ungetwc (wint_t __wc, __FILE *__stream); 24952: # 799 "/usr/include/wchar.h" 3 4 24952: extern wint_t getwc_unlocked (__FILE *__stream); 24952: extern wint_t getwchar_unlocked (void); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern wint_t fgetwc_unlocked (__FILE *__stream); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); 24952: # 825 "/usr/include/wchar.h" 3 4 24952: extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); 24952: extern wint_t putwchar_unlocked (wchar_t __wc); 24952: # 835 "/usr/include/wchar.h" 3 4 24952: extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, 24952: __FILE *__restrict __stream); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int fputws_unlocked (const wchar_t *__restrict __ws, 24952: __FILE *__restrict __stream); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, 24952: const wchar_t *__restrict __format, 24952: const struct tm *__restrict __tp) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, 24952: const wchar_t *__restrict __format, 24952: const struct tm *__restrict __tp, 24952: locale_t __loc) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 1 3 4 24952: # 27 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 3 4 24952: extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, 24952: const wchar_t *__restrict __s2, size_t __n, 24952: size_t __ns1) noexcept (true); 24952: extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, 24952: size_t __n, size_t __ns1) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, 24952: const wchar_t *__restrict __s2, size_t __n, 24952: size_t __ns1) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, 24952: size_t __ns) noexcept (true); 24952: extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, 24952: const wchar_t *__restrict __src, 24952: size_t __n) noexcept (true); 24952: extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, 24952: const wchar_t *__restrict __src, 24952: size_t __destlen) noexcept (true); 24952: extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, 24952: const wchar_t *__restrict __src, size_t __n, 24952: size_t __destlen) noexcept (true); 24952: extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, 24952: const wchar_t *__restrict __src, size_t __n, 24952: size_t __destlen) noexcept (true); 24952: extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, 24952: const wchar_t *__restrict __src, 24952: size_t __destlen) noexcept (true); 24952: extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, 24952: const wchar_t *__restrict __src, 24952: size_t __n, size_t __destlen) noexcept (true); 24952: extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, 24952: int __flag, size_t __s_len, 24952: const wchar_t *__restrict __format, ...) 24952: noexcept (true) ; 24952: extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, 24952: int __flag, size_t __s_len, 24952: const wchar_t *__restrict __format, 24952: __gnuc_va_list __arg) 24952: noexcept (true) ; 24952: 24952: 24952: 24952: extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, 24952: const wchar_t *__restrict __format, ...); 24952: extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, 24952: ...); 24952: extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, 24952: const wchar_t *__restrict __format, 24952: __gnuc_va_list __ap); 24952: extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, 24952: __gnuc_va_list __ap); 24952: 24952: 24952: 24952: extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, 24952: __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, 24952: int __n, __FILE *__restrict __stream) 24952: __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, 24952: mbstate_t *__restrict __p, 24952: size_t __buflen) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, 24952: const char **__restrict __src, 24952: size_t __len, mbstate_t *__restrict __ps, 24952: size_t __dstlen) noexcept (true); 24952: extern size_t __wcsrtombs_chk (char *__restrict __dst, 24952: const wchar_t **__restrict __src, 24952: size_t __len, mbstate_t *__restrict __ps, 24952: size_t __dstlen) noexcept (true); 24952: 24952: 24952: 24952: extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, 24952: const char **__restrict __src, size_t __nmc, 24952: size_t __len, mbstate_t *__restrict __ps, 24952: size_t __dstlen) noexcept (true); 24952: extern size_t __wcsnrtombs_chk (char *__restrict __dst, 24952: const wchar_t **__restrict __src, 24952: size_t __nwc, size_t __len, 24952: mbstate_t *__restrict __ps, size_t __dstlen) 24952: noexcept (true); 24952: # 869 "/usr/include/wchar.h" 2 3 4 24952: # 879 "/usr/include/wchar.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 24952: extern wchar_t *__wmemcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmemcpy") 24952: 24952: 24952: ; 24952: 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") 24952: 24952: 24952: 24952: __attribute__((__warning__ ("wmemcpy called with length bigger than size of destination " "buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 24952: __attribute__ ((__leaf__)) wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 24952: 24952: { 24952: 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))))) 24952: 24952: ; 24952: } 24952: 24952: 24952: extern wchar_t *__wmemmove_alias (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __asm__ ("" "wmemmove") 24952: 24952: ; 24952: extern wchar_t *__wmemmove_chk_warn (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) noexcept (true) __asm__ ("" "__wmemmove_chk") 24952: 24952: 24952: __attribute__((__warning__ ("wmemmove called with length bigger than size of destination " "buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 24952: __attribute__ ((__leaf__)) wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) 24952: { 24952: 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))))) 24952: 24952: ; 24952: } 24952: 24952: 24952: 24952: extern wchar_t *__wmempcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmempcpy") 24952: 24952: 24952: ; 24952: 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") 24952: 24952: 24952: 24952: __attribute__((__warning__ ("wmempcpy called with length bigger than size of destination " "buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 24952: __attribute__ ((__leaf__)) wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 24952: 24952: { 24952: 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))))) 24952: 24952: ; 24952: } 24952: 24952: 24952: 24952: extern wchar_t *__wmemset_alias (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm__ ("" "wmemset") 24952: ; 24952: extern wchar_t *__wmemset_chk_warn (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) noexcept (true) __asm__ ("" "__wmemset_chk") 24952: 24952: 24952: __attribute__((__warning__ ("wmemset called with length bigger than size of destination " "buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 24952: __attribute__ ((__leaf__)) wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) 24952: { 24952: 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))))) 24952: 24952: ; 24952: } 24952: 24952: 24952: extern wchar_t *__wcscpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscpy") 24952: 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 24952: __attribute__ ((__leaf__)) wcscpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) 24952: { 24952: size_t sz = __builtin_object_size (__dest, 2 > 1); 24952: if (sz != (size_t) -1) 24952: return __wcscpy_chk (__dest, __src, sz / sizeof (wchar_t)); 24952: return __wcscpy_alias (__dest, __src); 24952: } 24952: 24952: 24952: extern wchar_t *__wcpcpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcpcpy") 24952: 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 24952: __attribute__ ((__leaf__)) wcpcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) 24952: { 24952: size_t sz = __builtin_object_size (__dest, 2 > 1); 24952: if (sz != (size_t) -1) 24952: return __wcpcpy_chk (__dest, __src, sz / sizeof (wchar_t)); 24952: return __wcpcpy_alias (__dest, __src); 24952: } 24952: 24952: 24952: extern wchar_t *__wcsncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncpy") 24952: 24952: 24952: ; 24952: 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") 24952: 24952: 24952: 24952: __attribute__((__warning__ ("wcsncpy called with length bigger than size of destination " "buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 24952: __attribute__ ((__leaf__)) wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 24952: 24952: { 24952: 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))))) 24952: 24952: ; 24952: } 24952: 24952: 24952: extern wchar_t *__wcpncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcpncpy") 24952: 24952: 24952: ; 24952: 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") 24952: 24952: 24952: 24952: __attribute__((__warning__ ("wcpncpy called with length bigger than size of destination " "buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 24952: __attribute__ ((__leaf__)) wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 24952: 24952: { 24952: 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))))) 24952: 24952: ; 24952: } 24952: 24952: 24952: extern wchar_t *__wcscat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscat") 24952: 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 24952: __attribute__ ((__leaf__)) wcscat (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) 24952: { 24952: size_t sz = __builtin_object_size (__dest, 2 > 1); 24952: if (sz != (size_t) -1) 24952: return __wcscat_chk (__dest, __src, sz / sizeof (wchar_t)); 24952: return __wcscat_alias (__dest, __src); 24952: } 24952: 24952: 24952: extern wchar_t *__wcsncat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncat") 24952: 24952: 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 24952: __attribute__ ((__leaf__)) wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 24952: 24952: { 24952: size_t sz = __builtin_object_size (__dest, 2 > 1); 24952: if (sz != (size_t) -1) 24952: return __wcsncat_chk (__dest, __src, __n, sz / sizeof (wchar_t)); 24952: return __wcsncat_alias (__dest, __src, __n); 24952: } 24952: 24952: 24952: 24952: extern int __swprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) __asm__ ("" "swprintf") 24952: 24952: 24952: ; 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) 24952: 24952: { 24952: size_t sz = __builtin_object_size (__s, 2 > 1); 24952: if (sz != (size_t) -1 || 2 > 1) 24952: return __swprintf_chk (__s, __n, 2 - 1, 24952: sz / sizeof (wchar_t), __fmt, __builtin_va_arg_pack ()); 24952: return __swprintf_alias (__s, __n, __fmt, __builtin_va_arg_pack ()); 24952: } 24952: # 230 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 24952: extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) __asm__ ("" "vswprintf") 24952: 24952: 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 24952: 24952: { 24952: size_t sz = __builtin_object_size (__s, 2 > 1); 24952: if (sz != (size_t) -1 || 2 > 1) 24952: return __vswprintf_chk (__s, __n, 2 - 1, 24952: sz / sizeof (wchar_t), __fmt, __ap); 24952: return __vswprintf_alias (__s, __n, __fmt, __ap); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: wprintf (const wchar_t *__restrict __fmt, ...) 24952: { 24952: return __wprintf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) 24952: { 24952: return __fwprintf_chk (__stream, 2 - 1, __fmt, 24952: __builtin_va_arg_pack ()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 24952: { 24952: return __vwprintf_chk (2 - 1, __fmt, __ap); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: vfwprintf (__FILE *__restrict __stream, 24952: const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 24952: { 24952: return __vfwprintf_chk (__stream, 2 - 1, __fmt, __ap); 24952: } 24952: 24952: 24952: 24952: extern wchar_t *__fgetws_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws") 24952: 24952: __attribute__ ((__warn_unused_result__)); 24952: extern wchar_t *__fgetws_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_chk") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws called with bigger size than length " "of destination buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 24952: fgetws (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) 24952: { 24952: size_t sz = __builtin_object_size (__s, 2 > 1); 24952: 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))))))) 24952: return __fgetws_alias (__s, __n, __stream); 24952: 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))))) 24952: return __fgetws_chk_warn (__s, sz / sizeof (wchar_t), __n, __stream); 24952: return __fgetws_chk (__s, sz / sizeof (wchar_t), __n, __stream); 24952: } 24952: 24952: 24952: extern wchar_t *__fgetws_unlocked_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws_unlocked") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)); 24952: extern wchar_t *__fgetws_unlocked_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_unlocked_chk") 24952: 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws_unlocked called with bigger size than length " "of destination buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 24952: fgetws_unlocked (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) 24952: { 24952: size_t sz = __builtin_object_size (__s, 2 > 1); 24952: 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))))))) 24952: return __fgetws_unlocked_alias (__s, __n, __stream); 24952: 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))))) 24952: return __fgetws_unlocked_chk_warn (__s, sz / sizeof (wchar_t), __n, 24952: __stream); 24952: return __fgetws_unlocked_chk (__s, sz / sizeof (wchar_t), __n, __stream); 24952: } 24952: 24952: 24952: 24952: extern size_t __wcrtomb_alias (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcrtomb") 24952: 24952: __attribute__ ((__warn_unused_result__)); 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 24952: __attribute__ ((__leaf__)) wcrtomb (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) 24952: 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 24952: && 16 > __builtin_object_size (__s, 2 > 1)) 24952: return __wcrtomb_chk (__s, __wchar, __ps, __builtin_object_size (__s, 2 > 1)); 24952: return __wcrtomb_alias (__s, __wchar, __ps); 24952: } 24952: 24952: 24952: extern size_t __mbsrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "mbsrtowcs") 24952: 24952: 24952: 24952: ; 24952: 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") 24952: 24952: 24952: 24952: 24952: __attribute__((__warning__ ("mbsrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 24952: __attribute__ ((__leaf__)) mbsrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 24952: 24952: { 24952: 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))))) 24952: 24952: ; 24952: } 24952: 24952: 24952: extern size_t __wcsrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcsrtombs") 24952: 24952: 24952: 24952: ; 24952: 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") 24952: 24952: 24952: 24952: 24952: __attribute__((__warning__ ("wcsrtombs called with dst buffer smaller than len"))); 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 24952: __attribute__ ((__leaf__)) wcsrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 24952: 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: 24952: 24952: 24952: 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") 24952: 24952: 24952: 24952: ; 24952: 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") 24952: 24952: 24952: 24952: 24952: __attribute__((__warning__ ("mbsnrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 24952: __attribute__ ((__leaf__)) mbsnrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 24952: 24952: { 24952: 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))))) 24952: 24952: ; 24952: } 24952: 24952: 24952: 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") 24952: 24952: 24952: 24952: ; 24952: 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") 24952: 24952: 24952: 24952: 24952: 24952: __attribute__((__warning__ ("wcsnrtombs called with dst buffer smaller than len"))); 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 24952: __attribute__ ((__leaf__)) wcsnrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 24952: 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: # 880 "/usr/include/wchar.h" 2 3 4 24952: 24952: 24952: } 24952: # 45 "/usr/include/c++/13/cwchar" 2 3 24952: # 62 "/usr/include/c++/13/cwchar" 3 24952: namespace std 24952: { 24952: using ::mbstate_t; 24952: } 24952: # 135 "/usr/include/c++/13/cwchar" 3 24952: extern "C++" 24952: { 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: using ::wint_t; 24952: 24952: using ::btowc; 24952: using ::fgetwc; 24952: using ::fgetws; 24952: using ::fputwc; 24952: using ::fputws; 24952: using ::fwide; 24952: using ::fwprintf; 24952: using ::fwscanf; 24952: using ::getwc; 24952: using ::getwchar; 24952: using ::mbrlen; 24952: using ::mbrtowc; 24952: using ::mbsinit; 24952: using ::mbsrtowcs; 24952: using ::putwc; 24952: using ::putwchar; 24952: 24952: using ::swprintf; 24952: 24952: using ::swscanf; 24952: using ::ungetwc; 24952: using ::vfwprintf; 24952: 24952: using ::vfwscanf; 24952: 24952: 24952: using ::vswprintf; 24952: 24952: 24952: using ::vswscanf; 24952: 24952: using ::vwprintf; 24952: 24952: using ::vwscanf; 24952: 24952: using ::wcrtomb; 24952: using ::wcscat; 24952: using ::wcscmp; 24952: using ::wcscoll; 24952: using ::wcscpy; 24952: using ::wcscspn; 24952: using ::wcsftime; 24952: using ::wcslen; 24952: using ::wcsncat; 24952: using ::wcsncmp; 24952: using ::wcsncpy; 24952: using ::wcsrtombs; 24952: using ::wcsspn; 24952: using ::wcstod; 24952: 24952: using ::wcstof; 24952: 24952: using ::wcstok; 24952: using ::wcstol; 24952: using ::wcstoul; 24952: using ::wcsxfrm; 24952: using ::wctob; 24952: using ::wmemcmp; 24952: using ::wmemcpy; 24952: using ::wmemmove; 24952: using ::wmemset; 24952: using ::wprintf; 24952: using ::wscanf; 24952: using ::wcschr; 24952: using ::wcspbrk; 24952: using ::wcsrchr; 24952: using ::wcsstr; 24952: using ::wmemchr; 24952: # 234 "/usr/include/c++/13/cwchar" 3 24952: 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace __gnu_cxx 24952: { 24952: 24952: 24952: 24952: 24952: 24952: using ::wcstold; 24952: # 260 "/usr/include/c++/13/cwchar" 3 24952: using ::wcstoll; 24952: using ::wcstoull; 24952: 24952: } 24952: 24952: namespace std 24952: { 24952: using ::__gnu_cxx::wcstold; 24952: using ::__gnu_cxx::wcstoll; 24952: using ::__gnu_cxx::wcstoull; 24952: } 24952: # 280 "/usr/include/c++/13/cwchar" 3 24952: namespace std 24952: { 24952: 24952: using std::wcstof; 24952: 24952: 24952: using std::vfwscanf; 24952: 24952: 24952: using std::vswscanf; 24952: 24952: 24952: using std::vwscanf; 24952: 24952: 24952: 24952: using std::wcstold; 24952: using std::wcstoll; 24952: using std::wcstoull; 24952: 24952: } 24952: # 41 "/usr/include/c++/13/bits/postypes.h" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 62 "/usr/include/c++/13/bits/postypes.h" 3 24952: typedef long long int streamoff; 24952: 24952: 24952: 24952: 24952: 24952: typedef ptrdiff_t streamsize; 24952: # 81 "/usr/include/c++/13/bits/postypes.h" 3 24952: template 24952: class fpos 24952: { 24952: private: 24952: streamoff _M_off; 24952: _StateT _M_state; 24952: 24952: public: 24952: 24952: 24952: 24952: 24952: fpos() 24952: : _M_off(0), _M_state() { } 24952: # 103 "/usr/include/c++/13/bits/postypes.h" 3 24952: fpos(streamoff __off) 24952: : _M_off(__off), _M_state() { } 24952: 24952: 24952: fpos(const fpos&) = default; 24952: fpos& operator=(const fpos&) = default; 24952: ~fpos() = default; 24952: 24952: 24952: 24952: operator streamoff() const { return _M_off; } 24952: 24952: 24952: void 24952: state(_StateT __st) 24952: { _M_state = __st; } 24952: 24952: 24952: _StateT 24952: state() const 24952: { return _M_state; } 24952: 24952: 24952: 24952: 24952: 24952: fpos& 24952: operator+=(streamoff __off) 24952: { 24952: _M_off += __off; 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: fpos& 24952: operator-=(streamoff __off) 24952: { 24952: _M_off -= __off; 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: fpos 24952: operator+(streamoff __off) const 24952: { 24952: fpos __pos(*this); 24952: __pos += __off; 24952: return __pos; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: fpos 24952: operator-(streamoff __off) const 24952: { 24952: fpos __pos(*this); 24952: __pos -= __off; 24952: return __pos; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: streamoff 24952: operator-(const fpos& __other) const 24952: { return _M_off - __other._M_off; } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 24952: { return streamoff(__lhs) == streamoff(__rhs); } 24952: 24952: template 24952: inline bool 24952: operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 24952: { return streamoff(__lhs) != streamoff(__rhs); } 24952: 24952: 24952: 24952: 24952: 24952: typedef fpos streampos; 24952: 24952: typedef fpos wstreampos; 24952: # 215 "/usr/include/c++/13/bits/postypes.h" 3 24952: typedef fpos u16streampos; 24952: 24952: typedef fpos u32streampos; 24952: 24952: 24952: 24952: } 24952: # 43 "/usr/include/c++/13/iosfwd" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 76 "/usr/include/c++/13/iosfwd" 3 24952: class ios_base; 24952: 24952: template > 24952: class basic_ios; 24952: 24952: template > 24952: class basic_streambuf; 24952: 24952: template > 24952: class basic_istream; 24952: 24952: template > 24952: class basic_ostream; 24952: 24952: template > 24952: class basic_iostream; 24952: 24952: 24952: namespace __cxx11 { 24952: 24952: template, 24952: typename _Alloc = allocator<_CharT> > 24952: class basic_stringbuf; 24952: 24952: template, 24952: typename _Alloc = allocator<_CharT> > 24952: class basic_istringstream; 24952: 24952: template, 24952: typename _Alloc = allocator<_CharT> > 24952: class basic_ostringstream; 24952: 24952: template, 24952: typename _Alloc = allocator<_CharT> > 24952: class basic_stringstream; 24952: 24952: } 24952: 24952: template > 24952: class basic_filebuf; 24952: 24952: template > 24952: class basic_ifstream; 24952: 24952: template > 24952: class basic_ofstream; 24952: 24952: template > 24952: class basic_fstream; 24952: 24952: template > 24952: class istreambuf_iterator; 24952: 24952: template > 24952: class ostreambuf_iterator; 24952: 24952: 24952: 24952: typedef basic_ios ios; 24952: 24952: 24952: typedef basic_streambuf streambuf; 24952: 24952: 24952: typedef basic_istream istream; 24952: 24952: 24952: typedef basic_ostream ostream; 24952: 24952: 24952: typedef basic_iostream iostream; 24952: 24952: 24952: typedef basic_stringbuf stringbuf; 24952: 24952: 24952: typedef basic_istringstream istringstream; 24952: 24952: 24952: typedef basic_ostringstream ostringstream; 24952: 24952: 24952: typedef basic_stringstream stringstream; 24952: 24952: 24952: typedef basic_filebuf filebuf; 24952: 24952: 24952: typedef basic_ifstream ifstream; 24952: 24952: 24952: typedef basic_ofstream ofstream; 24952: 24952: 24952: typedef basic_fstream fstream; 24952: 24952: 24952: 24952: typedef basic_ios wios; 24952: 24952: 24952: typedef basic_streambuf wstreambuf; 24952: 24952: 24952: typedef basic_istream wistream; 24952: 24952: 24952: typedef basic_ostream wostream; 24952: 24952: 24952: typedef basic_iostream wiostream; 24952: 24952: 24952: typedef basic_stringbuf wstringbuf; 24952: 24952: 24952: typedef basic_istringstream wistringstream; 24952: 24952: 24952: typedef basic_ostringstream wostringstream; 24952: 24952: 24952: typedef basic_stringstream wstringstream; 24952: 24952: 24952: typedef basic_filebuf wfilebuf; 24952: 24952: 24952: typedef basic_ifstream wifstream; 24952: 24952: 24952: typedef basic_ofstream wofstream; 24952: 24952: 24952: typedef basic_fstream wfstream; 24952: # 255 "/usr/include/c++/13/iosfwd" 3 24952: 24952: } 24952: # 53 "/usr/include/c++/13/bits/shared_ptr.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/shared_ptr_base.h" 1 3 24952: # 53 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 24952: # 1 "/usr/include/c++/13/bits/allocated_ptr.h" 1 3 24952: # 40 "/usr/include/c++/13/bits/allocated_ptr.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: template 24952: struct __allocated_ptr 24952: { 24952: using pointer = typename allocator_traits<_Alloc>::pointer; 24952: using value_type = typename allocator_traits<_Alloc>::value_type; 24952: 24952: 24952: __allocated_ptr(_Alloc& __a, pointer __ptr) noexcept 24952: : _M_alloc(std::__addressof(__a)), _M_ptr(__ptr) 24952: { } 24952: 24952: 24952: template>> 24952: __allocated_ptr(_Alloc& __a, _Ptr __ptr) 24952: : _M_alloc(std::__addressof(__a)), 24952: _M_ptr(pointer_traits::pointer_to(*__ptr)) 24952: { } 24952: 24952: 24952: __allocated_ptr(__allocated_ptr&& __gd) noexcept 24952: : _M_alloc(__gd._M_alloc), _M_ptr(__gd._M_ptr) 24952: { __gd._M_ptr = nullptr; } 24952: 24952: 24952: ~__allocated_ptr() 24952: { 24952: if (_M_ptr != nullptr) 24952: std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); 24952: } 24952: 24952: 24952: __allocated_ptr& 24952: operator=(std::nullptr_t) noexcept 24952: { 24952: _M_ptr = nullptr; 24952: return *this; 24952: } 24952: 24952: 24952: value_type* get() { return std::__to_address(_M_ptr); } 24952: 24952: private: 24952: _Alloc* _M_alloc; 24952: pointer _M_ptr; 24952: }; 24952: 24952: 24952: template 24952: __allocated_ptr<_Alloc> 24952: __allocate_guarded(_Alloc& __a) 24952: { 24952: return { __a, std::allocator_traits<_Alloc>::allocate(__a, 1) }; 24952: } 24952: 24952: 24952: 24952: } 24952: # 54 "/usr/include/c++/13/bits/shared_ptr_base.h" 2 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/ext/atomicity.h" 1 3 24952: # 32 "/usr/include/c++/13/ext/atomicity.h" 3 24952: 24952: # 33 "/usr/include/c++/13/ext/atomicity.h" 3 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr.h" 1 3 24952: # 30 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr.h" 3 24952: #pragma GCC visibility push(default) 24952: # 148 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr.h" 3 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 1 3 24952: # 35 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 24952: # 1 "/usr/include/pthread.h" 1 3 4 24952: # 22 "/usr/include/pthread.h" 3 4 24952: # 1 "/usr/include/sched.h" 1 3 4 24952: # 29 "/usr/include/sched.h" 3 4 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 30 "/usr/include/sched.h" 2 3 4 24952: # 43 "/usr/include/sched.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 1 3 4 24952: # 80 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 1 3 4 24952: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 3 4 24952: struct sched_param 24952: { 24952: int sched_priority; 24952: }; 24952: # 81 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 2 3 4 24952: 24952: extern "C" { 24952: 24952: 24952: 24952: extern int clone (int (*__fn) (void *__arg), void *__child_stack, 24952: int __flags, void *__arg, ...) noexcept (true); 24952: 24952: 24952: extern int unshare (int __flags) noexcept (true); 24952: 24952: 24952: extern int sched_getcpu (void) noexcept (true); 24952: 24952: 24952: extern int getcpu (unsigned int *, unsigned int *) noexcept (true); 24952: 24952: 24952: extern int setns (int __fd, int __nstype) noexcept (true); 24952: 24952: 24952: } 24952: # 44 "/usr/include/sched.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 1 3 4 24952: # 32 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 24952: typedef unsigned long int __cpu_mask; 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef struct 24952: { 24952: __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; 24952: } cpu_set_t; 24952: # 115 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 24952: extern "C" { 24952: 24952: extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 24952: noexcept (true); 24952: extern cpu_set_t *__sched_cpualloc (size_t __count) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: extern void __sched_cpufree (cpu_set_t *__set) noexcept (true); 24952: 24952: } 24952: # 45 "/usr/include/sched.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern "C" { 24952: 24952: 24952: extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) 24952: noexcept (true); 24952: 24952: 24952: extern int sched_getparam (__pid_t __pid, struct sched_param *__param) noexcept (true); 24952: 24952: 24952: extern int sched_setscheduler (__pid_t __pid, int __policy, 24952: const struct sched_param *__param) noexcept (true); 24952: 24952: 24952: extern int sched_getscheduler (__pid_t __pid) noexcept (true); 24952: 24952: 24952: extern int sched_yield (void) noexcept (true); 24952: 24952: 24952: extern int sched_get_priority_max (int __algorithm) noexcept (true); 24952: 24952: 24952: extern int sched_get_priority_min (int __algorithm) noexcept (true); 24952: 24952: 24952: 24952: extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) noexcept (true); 24952: # 130 "/usr/include/sched.h" 3 4 24952: extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, 24952: const cpu_set_t *__cpuset) noexcept (true); 24952: 24952: 24952: extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, 24952: cpu_set_t *__cpuset) noexcept (true); 24952: 24952: 24952: } 24952: # 23 "/usr/include/pthread.h" 2 3 4 24952: # 1 "/usr/include/time.h" 1 3 4 24952: # 29 "/usr/include/time.h" 3 4 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 30 "/usr/include/time.h" 2 3 4 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/time.h" 1 3 4 24952: # 73 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 1 3 4 24952: # 26 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 24952: struct timex 24952: { 24952: # 58 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 24952: unsigned int modes; 24952: __syscall_slong_t offset; 24952: __syscall_slong_t freq; 24952: __syscall_slong_t maxerror; 24952: __syscall_slong_t esterror; 24952: int status; 24952: __syscall_slong_t constant; 24952: __syscall_slong_t precision; 24952: __syscall_slong_t tolerance; 24952: struct timeval time; 24952: __syscall_slong_t tick; 24952: __syscall_slong_t ppsfreq; 24952: __syscall_slong_t jitter; 24952: int shift; 24952: __syscall_slong_t stabil; 24952: __syscall_slong_t jitcnt; 24952: __syscall_slong_t calcnt; 24952: __syscall_slong_t errcnt; 24952: __syscall_slong_t stbcnt; 24952: 24952: int tai; 24952: 24952: 24952: int :32; int :32; int :32; int :32; 24952: int :32; int :32; int :32; int :32; 24952: int :32; int :32; int :32; 24952: 24952: }; 24952: # 74 "/usr/include/arm-linux-gnueabihf/bits/time.h" 2 3 4 24952: 24952: extern "C" { 24952: 24952: 24952: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: # 90 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 24952: } 24952: # 34 "/usr/include/time.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_tm.h" 1 3 4 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct tm 24952: { 24952: int tm_sec; 24952: int tm_min; 24952: int tm_hour; 24952: int tm_mday; 24952: int tm_mon; 24952: int tm_year; 24952: int tm_wday; 24952: int tm_yday; 24952: int tm_isdst; 24952: 24952: 24952: long int tm_gmtoff; 24952: const char *tm_zone; 24952: 24952: 24952: 24952: 24952: }; 24952: # 40 "/usr/include/time.h" 2 3 4 24952: # 48 "/usr/include/time.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_itimerspec.h" 1 3 4 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct itimerspec 24952: { 24952: struct timespec it_interval; 24952: struct timespec it_value; 24952: }; 24952: # 49 "/usr/include/time.h" 2 3 4 24952: struct sigevent; 24952: # 68 "/usr/include/time.h" 3 4 24952: extern "C" { 24952: 24952: 24952: 24952: extern clock_t clock (void) noexcept (true); 24952: 24952: 24952: 24952: extern time_t time (time_t *__timer) noexcept (true); 24952: 24952: 24952: extern double difftime (time_t __time1, time_t __time0) 24952: noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern time_t mktime (struct tm *__tp) noexcept (true); 24952: # 100 "/usr/include/time.h" 3 4 24952: extern size_t strftime (char *__restrict __s, size_t __maxsize, 24952: const char *__restrict __format, 24952: const struct tm *__restrict __tp) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern char *strptime (const char *__restrict __s, 24952: const char *__restrict __fmt, struct tm *__tp) 24952: noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern size_t strftime_l (char *__restrict __s, size_t __maxsize, 24952: const char *__restrict __format, 24952: const struct tm *__restrict __tp, 24952: locale_t __loc) noexcept (true); 24952: 24952: 24952: 24952: extern char *strptime_l (const char *__restrict __s, 24952: const char *__restrict __fmt, struct tm *__tp, 24952: locale_t __loc) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern struct tm *gmtime (const time_t *__timer) noexcept (true); 24952: 24952: 24952: 24952: extern struct tm *localtime (const time_t *__timer) noexcept (true); 24952: # 154 "/usr/include/time.h" 3 4 24952: extern struct tm *gmtime_r (const time_t *__restrict __timer, 24952: struct tm *__restrict __tp) noexcept (true); 24952: 24952: 24952: 24952: extern struct tm *localtime_r (const time_t *__restrict __timer, 24952: struct tm *__restrict __tp) noexcept (true); 24952: # 179 "/usr/include/time.h" 3 4 24952: extern char *asctime (const struct tm *__tp) noexcept (true); 24952: 24952: 24952: 24952: extern char *ctime (const time_t *__timer) noexcept (true); 24952: # 197 "/usr/include/time.h" 3 4 24952: extern char *asctime_r (const struct tm *__restrict __tp, 24952: char *__restrict __buf) noexcept (true); 24952: 24952: 24952: 24952: extern char *ctime_r (const time_t *__restrict __timer, 24952: char *__restrict __buf) noexcept (true); 24952: # 217 "/usr/include/time.h" 3 4 24952: extern char *__tzname[2]; 24952: extern int __daylight; 24952: extern long int __timezone; 24952: 24952: 24952: 24952: 24952: extern char *tzname[2]; 24952: 24952: 24952: 24952: extern void tzset (void) noexcept (true); 24952: 24952: 24952: 24952: extern int daylight; 24952: extern long int timezone; 24952: # 246 "/usr/include/time.h" 3 4 24952: extern time_t timegm (struct tm *__tp) noexcept (true); 24952: # 263 "/usr/include/time.h" 3 4 24952: extern time_t timelocal (struct tm *__tp) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int dysize (int __year) noexcept (true) __attribute__ ((__const__)); 24952: # 281 "/usr/include/time.h" 3 4 24952: extern int nanosleep (const struct timespec *__requested_time, 24952: struct timespec *__remaining); 24952: 24952: 24952: extern int clock_getres (clockid_t __clock_id, struct timespec *__res) noexcept (true); 24952: 24952: 24952: extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: # 323 "/usr/include/time.h" 3 4 24952: extern int clock_nanosleep (clockid_t __clock_id, int __flags, 24952: const struct timespec *__req, 24952: struct timespec *__rem); 24952: # 338 "/usr/include/time.h" 3 4 24952: extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int timer_create (clockid_t __clock_id, 24952: struct sigevent *__restrict __evp, 24952: timer_t *__restrict __timerid) noexcept (true); 24952: 24952: 24952: extern int timer_delete (timer_t __timerid) noexcept (true); 24952: 24952: 24952: 24952: extern int timer_settime (timer_t __timerid, int __flags, 24952: const struct itimerspec *__restrict __value, 24952: struct itimerspec *__restrict __ovalue) noexcept (true); 24952: 24952: 24952: extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) 24952: noexcept (true); 24952: # 376 "/usr/include/time.h" 3 4 24952: extern int timer_getoverrun (timer_t __timerid) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int timespec_get (struct timespec *__ts, int __base) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: # 399 "/usr/include/time.h" 3 4 24952: extern int timespec_getres (struct timespec *__ts, int __base) 24952: noexcept (true); 24952: # 425 "/usr/include/time.h" 3 4 24952: extern int getdate_err; 24952: # 434 "/usr/include/time.h" 3 4 24952: extern struct tm *getdate (const char *__string); 24952: # 448 "/usr/include/time.h" 3 4 24952: extern int getdate_r (const char *__restrict __string, 24952: struct tm *__restrict __resbufp); 24952: 24952: 24952: } 24952: # 24 "/usr/include/pthread.h" 2 3 4 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 1 3 4 24952: # 33 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 3 4 24952: typedef int __jmp_buf[64] __attribute__((__aligned__ (8))); 24952: # 28 "/usr/include/pthread.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 24952: # 29 "/usr/include/pthread.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 1 3 4 24952: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 3 4 24952: struct __jmp_buf_tag 24952: { 24952: 24952: 24952: 24952: 24952: __jmp_buf __jmpbuf; 24952: int __mask_was_saved; 24952: __sigset_t __saved_mask; 24952: }; 24952: # 32 "/usr/include/pthread.h" 2 3 4 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 1 3 4 24952: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 3 4 24952: extern "C" { 24952: extern long int __sysconf (int __name) noexcept (true); 24952: } 24952: # 34 "/usr/include/pthread.h" 2 3 4 24952: 24952: 24952: 24952: enum 24952: { 24952: PTHREAD_CREATE_JOINABLE, 24952: 24952: PTHREAD_CREATE_DETACHED 24952: 24952: }; 24952: 24952: 24952: 24952: enum 24952: { 24952: PTHREAD_MUTEX_TIMED_NP, 24952: PTHREAD_MUTEX_RECURSIVE_NP, 24952: PTHREAD_MUTEX_ERRORCHECK_NP, 24952: PTHREAD_MUTEX_ADAPTIVE_NP 24952: 24952: , 24952: PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, 24952: PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, 24952: PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, 24952: PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL 24952: 24952: 24952: 24952: , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP 24952: 24952: }; 24952: 24952: 24952: 24952: 24952: enum 24952: { 24952: PTHREAD_MUTEX_STALLED, 24952: PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, 24952: PTHREAD_MUTEX_ROBUST, 24952: PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: enum 24952: { 24952: PTHREAD_PRIO_NONE, 24952: PTHREAD_PRIO_INHERIT, 24952: PTHREAD_PRIO_PROTECT 24952: }; 24952: # 104 "/usr/include/pthread.h" 3 4 24952: enum 24952: { 24952: PTHREAD_RWLOCK_PREFER_READER_NP, 24952: PTHREAD_RWLOCK_PREFER_WRITER_NP, 24952: PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 24952: PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP 24952: }; 24952: # 124 "/usr/include/pthread.h" 3 4 24952: enum 24952: { 24952: PTHREAD_INHERIT_SCHED, 24952: 24952: PTHREAD_EXPLICIT_SCHED 24952: 24952: }; 24952: 24952: 24952: 24952: enum 24952: { 24952: PTHREAD_SCOPE_SYSTEM, 24952: 24952: PTHREAD_SCOPE_PROCESS 24952: 24952: }; 24952: 24952: 24952: 24952: enum 24952: { 24952: PTHREAD_PROCESS_PRIVATE, 24952: 24952: PTHREAD_PROCESS_SHARED 24952: 24952: }; 24952: # 159 "/usr/include/pthread.h" 3 4 24952: struct _pthread_cleanup_buffer 24952: { 24952: void (*__routine) (void *); 24952: void *__arg; 24952: int __canceltype; 24952: struct _pthread_cleanup_buffer *__prev; 24952: }; 24952: 24952: 24952: enum 24952: { 24952: PTHREAD_CANCEL_ENABLE, 24952: 24952: PTHREAD_CANCEL_DISABLE 24952: 24952: }; 24952: enum 24952: { 24952: PTHREAD_CANCEL_DEFERRED, 24952: 24952: PTHREAD_CANCEL_ASYNCHRONOUS 24952: 24952: }; 24952: # 197 "/usr/include/pthread.h" 3 4 24952: extern "C" { 24952: 24952: 24952: 24952: 24952: extern int pthread_create (pthread_t *__restrict __newthread, 24952: const pthread_attr_t *__restrict __attr, 24952: void *(*__start_routine) (void *), 24952: void *__restrict __arg) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 24952: 24952: 24952: 24952: 24952: 24952: extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int pthread_join (pthread_t __th, void **__thread_return); 24952: 24952: 24952: 24952: 24952: extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) noexcept (true); 24952: # 233 "/usr/include/pthread.h" 3 4 24952: extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, 24952: const struct timespec *__abstime); 24952: # 243 "/usr/include/pthread.h" 3 4 24952: extern int pthread_clockjoin_np (pthread_t __th, void **__thread_return, 24952: clockid_t __clockid, 24952: const struct timespec *__abstime); 24952: # 269 "/usr/include/pthread.h" 3 4 24952: extern int pthread_detach (pthread_t __th) noexcept (true); 24952: 24952: 24952: 24952: extern pthread_t pthread_self (void) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) 24952: noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int pthread_attr_init (pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_attr_destroy (pthread_attr_t *__attr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, 24952: int *__detachstate) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, 24952: int __detachstate) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, 24952: size_t *__guardsize) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_attr_setguardsize (pthread_attr_t *__attr, 24952: size_t __guardsize) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, 24952: struct sched_param *__restrict __param) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, 24952: const struct sched_param *__restrict 24952: __param) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict 24952: __attr, int *__restrict __policy) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict 24952: __attr, int *__restrict __inherit) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, 24952: int __inherit) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, 24952: int *__restrict __scope) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict 24952: __attr, void **__restrict __stackaddr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); 24952: 24952: 24952: 24952: 24952: 24952: extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, 24952: void *__stackaddr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); 24952: 24952: 24952: extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict 24952: __attr, size_t *__restrict __stacksize) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: 24952: extern int pthread_attr_setstacksize (pthread_attr_t *__attr, 24952: size_t __stacksize) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, 24952: void **__restrict __stackaddr, 24952: size_t *__restrict __stacksize) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))); 24952: 24952: 24952: 24952: 24952: extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, 24952: size_t __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, 24952: size_t __cpusetsize, 24952: const cpu_set_t *__cpuset) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 24952: 24952: 24952: 24952: extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, 24952: size_t __cpusetsize, 24952: cpu_set_t *__cpuset) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 24952: 24952: 24952: extern int pthread_getattr_default_np (pthread_attr_t *__attr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_attr_setsigmask_np (pthread_attr_t *__attr, 24952: const __sigset_t *sigmask); 24952: 24952: 24952: 24952: 24952: extern int pthread_attr_getsigmask_np (const pthread_attr_t *__attr, 24952: __sigset_t *sigmask); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int pthread_setattr_default_np (const pthread_attr_t *__attr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int pthread_setschedparam (pthread_t __target_thread, int __policy, 24952: const struct sched_param *__param) 24952: noexcept (true) __attribute__ ((__nonnull__ (3))); 24952: 24952: 24952: extern int pthread_getschedparam (pthread_t __target_thread, 24952: int *__restrict __policy, 24952: struct sched_param *__restrict __param) 24952: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 24952: 24952: 24952: extern int pthread_setschedprio (pthread_t __target_thread, int __prio) 24952: noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int pthread_getname_np (pthread_t __target_thread, char *__buf, 24952: size_t __buflen) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: extern int pthread_setname_np (pthread_t __target_thread, const char *__name) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: 24952: 24952: 24952: extern int pthread_getconcurrency (void) noexcept (true); 24952: 24952: 24952: extern int pthread_setconcurrency (int __level) noexcept (true); 24952: 24952: 24952: 24952: extern int pthread_yield (void) noexcept (true); 24952: 24952: extern int pthread_yield (void) noexcept (true) __asm__ ("" "sched_yield") 24952: __attribute__ ((__deprecated__ ("pthread_yield is deprecated, use sched_yield instead"))) 24952: ; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, 24952: const cpu_set_t *__cpuset) 24952: noexcept (true) __attribute__ ((__nonnull__ (3))); 24952: 24952: 24952: extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, 24952: cpu_set_t *__cpuset) 24952: noexcept (true) __attribute__ ((__nonnull__ (3))); 24952: # 509 "/usr/include/pthread.h" 3 4 24952: extern int pthread_once (pthread_once_t *__once_control, 24952: void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); 24952: # 521 "/usr/include/pthread.h" 3 4 24952: extern int pthread_setcancelstate (int __state, int *__oldstate); 24952: 24952: 24952: 24952: extern int pthread_setcanceltype (int __type, int *__oldtype); 24952: 24952: 24952: extern int pthread_cancel (pthread_t __th); 24952: 24952: 24952: 24952: 24952: extern void pthread_testcancel (void); 24952: 24952: 24952: 24952: 24952: struct __cancel_jmp_buf_tag 24952: { 24952: __jmp_buf __cancel_jmp_buf; 24952: int __mask_was_saved; 24952: }; 24952: 24952: typedef struct 24952: { 24952: struct __cancel_jmp_buf_tag __cancel_jmp_buf[1]; 24952: void *__pad[4]; 24952: } __pthread_unwind_buf_t __attribute__ ((__aligned__)); 24952: # 557 "/usr/include/pthread.h" 3 4 24952: struct __pthread_cleanup_frame 24952: { 24952: void (*__cancel_routine) (void *); 24952: void *__cancel_arg; 24952: int __do_it; 24952: int __cancel_type; 24952: }; 24952: 24952: 24952: 24952: 24952: class __pthread_cleanup_class 24952: { 24952: void (*__cancel_routine) (void *); 24952: void *__cancel_arg; 24952: int __do_it; 24952: int __cancel_type; 24952: 24952: public: 24952: __pthread_cleanup_class (void (*__fct) (void *), void *__arg) 24952: : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } 24952: ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } 24952: void __setdoit (int __newval) { __do_it = __newval; } 24952: void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, 24952: &__cancel_type); } 24952: void __restore () const { pthread_setcanceltype (__cancel_type, 0); } 24952: }; 24952: # 766 "/usr/include/pthread.h" 3 4 24952: extern int __sigsetjmp_cancel (struct __cancel_jmp_buf_tag __env[1], int __savemask) noexcept (true) __asm__ ("" "__sigsetjmp") 24952: 24952: 24952: __attribute__ ((__returns_twice__)); 24952: # 781 "/usr/include/pthread.h" 3 4 24952: extern int pthread_mutex_init (pthread_mutex_t *__mutex, 24952: const pthread_mutexattr_t *__mutexattr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_mutex_lock (pthread_mutex_t *__mutex) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, 24952: const struct timespec *__restrict 24952: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: # 817 "/usr/include/pthread.h" 3 4 24952: extern int pthread_mutex_clocklock (pthread_mutex_t *__restrict __mutex, 24952: clockid_t __clockid, 24952: const struct timespec *__restrict 24952: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 24952: # 835 "/usr/include/pthread.h" 3 4 24952: extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern int pthread_mutex_getprioceiling (const pthread_mutex_t * 24952: __restrict __mutex, 24952: int *__restrict __prioceiling) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, 24952: int __prioceiling, 24952: int *__restrict __old_ceiling) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 24952: 24952: 24952: 24952: 24952: extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_mutex_consistent_np (pthread_mutex_t *) noexcept (true) __asm__ ("" "pthread_mutex_consistent") 24952: __attribute__ ((__nonnull__ (1))) 24952: __attribute__ ((__deprecated__ ("pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent"))) 24952: ; 24952: # 874 "/usr/include/pthread.h" 3 4 24952: extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * 24952: __restrict __attr, 24952: int *__restrict __pshared) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, 24952: int __pshared) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict 24952: __attr, int *__restrict __kind) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: 24952: extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * 24952: __restrict __attr, 24952: int *__restrict __protocol) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, 24952: int __protocol) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * 24952: __restrict __attr, 24952: int *__restrict __prioceiling) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, 24952: int __prioceiling) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, 24952: int *__robustness) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_mutexattr_getrobust_np (pthread_mutexattr_t *, int *) noexcept (true) __asm__ ("" "pthread_mutexattr_getrobust") 24952: 24952: __attribute__ ((__nonnull__ (1))) 24952: __attribute__ ((__deprecated__ ("pthread_mutexattr_getrobust_np is deprecated, use pthread_mutexattr_getrobust"))) 24952: ; 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, 24952: int __robustness) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *, int) noexcept (true) __asm__ ("" "pthread_mutexattr_setrobust") 24952: 24952: __attribute__ ((__nonnull__ (1))) 24952: __attribute__ ((__deprecated__ ("pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust"))) 24952: ; 24952: # 967 "/usr/include/pthread.h" 3 4 24952: extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, 24952: const pthread_rwlockattr_t *__restrict 24952: __attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, 24952: const struct timespec *__restrict 24952: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: # 1004 "/usr/include/pthread.h" 3 4 24952: extern int pthread_rwlock_clockrdlock (pthread_rwlock_t *__restrict __rwlock, 24952: clockid_t __clockid, 24952: const struct timespec *__restrict 24952: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 24952: # 1023 "/usr/include/pthread.h" 3 4 24952: extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, 24952: const struct timespec *__restrict 24952: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: # 1051 "/usr/include/pthread.h" 3 4 24952: extern int pthread_rwlock_clockwrlock (pthread_rwlock_t *__restrict __rwlock, 24952: clockid_t __clockid, 24952: const struct timespec *__restrict 24952: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 24952: # 1071 "/usr/include/pthread.h" 3 4 24952: extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * 24952: __restrict __attr, 24952: int *__restrict __pshared) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, 24952: int __pshared) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * 24952: __restrict __attr, 24952: int *__restrict __pref) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, 24952: int __pref) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int pthread_cond_init (pthread_cond_t *__restrict __cond, 24952: const pthread_condattr_t *__restrict __cond_attr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_cond_destroy (pthread_cond_t *__cond) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_cond_signal (pthread_cond_t *__cond) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_cond_broadcast (pthread_cond_t *__cond) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, 24952: pthread_mutex_t *__restrict __mutex) 24952: __attribute__ ((__nonnull__ (1, 2))); 24952: # 1145 "/usr/include/pthread.h" 3 4 24952: extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, 24952: pthread_mutex_t *__restrict __mutex, 24952: const struct timespec *__restrict __abstime) 24952: __attribute__ ((__nonnull__ (1, 2, 3))); 24952: # 1171 "/usr/include/pthread.h" 3 4 24952: extern int pthread_cond_clockwait (pthread_cond_t *__restrict __cond, 24952: pthread_mutex_t *__restrict __mutex, 24952: __clockid_t __clock_id, 24952: const struct timespec *__restrict __abstime) 24952: __attribute__ ((__nonnull__ (1, 2, 4))); 24952: # 1194 "/usr/include/pthread.h" 3 4 24952: extern int pthread_condattr_init (pthread_condattr_t *__attr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_condattr_destroy (pthread_condattr_t *__attr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_condattr_getpshared (const pthread_condattr_t * 24952: __restrict __attr, 24952: int *__restrict __pshared) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, 24952: int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern int pthread_condattr_getclock (const pthread_condattr_t * 24952: __restrict __attr, 24952: __clockid_t *__restrict __clock_id) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_condattr_setclock (pthread_condattr_t *__attr, 24952: __clockid_t __clock_id) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: # 1230 "/usr/include/pthread.h" 3 4 24952: extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_spin_destroy (pthread_spinlock_t *__lock) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_spin_lock (pthread_spinlock_t *__lock) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_spin_trylock (pthread_spinlock_t *__lock) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_spin_unlock (pthread_spinlock_t *__lock) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, 24952: const pthread_barrierattr_t *__restrict 24952: __attr, unsigned int __count) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_barrier_wait (pthread_barrier_t *__barrier) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * 24952: __restrict __attr, 24952: int *__restrict __pshared) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, 24952: int __pshared) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: # 1297 "/usr/include/pthread.h" 3 4 24952: extern int pthread_key_create (pthread_key_t *__key, 24952: void (*__destr_function) (void *)) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int pthread_key_delete (pthread_key_t __key) noexcept (true); 24952: 24952: 24952: extern void *pthread_getspecific (pthread_key_t __key) noexcept (true); 24952: 24952: 24952: extern int pthread_setspecific (pthread_key_t __key, 24952: const void *__pointer) 24952: noexcept (true) __attribute__ ((__access__ (__none__, 2))); 24952: 24952: 24952: 24952: 24952: extern int pthread_getcpuclockid (pthread_t __thread_id, 24952: __clockid_t *__clock_id) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: # 1332 "/usr/include/pthread.h" 3 4 24952: extern int pthread_atfork (void (*__prepare) (void), 24952: void (*__parent) (void), 24952: void (*__child) (void)) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__gnu_inline__)) int 24952: __attribute__ ((__leaf__)) pthread_equal (pthread_t __thread1, pthread_t __thread2) noexcept (true) 24952: { 24952: return __thread1 == __thread2; 24952: } 24952: 24952: 24952: } 24952: # 36 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 2 3 24952: # 47 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 24952: typedef pthread_t __gthread_t; 24952: typedef pthread_key_t __gthread_key_t; 24952: typedef pthread_once_t __gthread_once_t; 24952: typedef pthread_mutex_t __gthread_mutex_t; 24952: typedef pthread_mutex_t __gthread_recursive_mutex_t; 24952: typedef pthread_cond_t __gthread_cond_t; 24952: typedef struct timespec __gthread_time_t; 24952: # 102 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 299 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 24952: static inline int 24952: __gthread_active_p (void) 24952: { 24952: return 1; 24952: } 24952: # 659 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 24952: static inline int 24952: __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), 24952: void *__args) 24952: { 24952: return pthread_create (__threadid, __null, __func, __args); 24952: } 24952: 24952: static inline int 24952: __gthread_join (__gthread_t __threadid, void **__value_ptr) 24952: { 24952: return pthread_join (__threadid, __value_ptr); 24952: } 24952: 24952: static inline int 24952: __gthread_detach (__gthread_t __threadid) 24952: { 24952: return pthread_detach (__threadid); 24952: } 24952: 24952: static inline int 24952: __gthread_equal (__gthread_t __t1, __gthread_t __t2) 24952: { 24952: return pthread_equal (__t1, __t2); 24952: } 24952: 24952: static inline __gthread_t 24952: __gthread_self (void) 24952: { 24952: return pthread_self (); 24952: } 24952: 24952: static inline int 24952: __gthread_yield (void) 24952: { 24952: return sched_yield (); 24952: } 24952: 24952: static inline int 24952: __gthread_once (__gthread_once_t *__once, void (*__func) (void)) 24952: { 24952: if (__gthread_active_p ()) 24952: return pthread_once (__once, __func); 24952: else 24952: return -1; 24952: } 24952: 24952: static inline int 24952: __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) 24952: { 24952: return pthread_key_create (__key, __dtor); 24952: } 24952: 24952: static inline int 24952: __gthread_key_delete (__gthread_key_t __key) 24952: { 24952: return pthread_key_delete (__key); 24952: } 24952: 24952: static inline void * 24952: __gthread_getspecific (__gthread_key_t __key) 24952: { 24952: return pthread_getspecific (__key); 24952: } 24952: 24952: static inline int 24952: __gthread_setspecific (__gthread_key_t __key, const void *__ptr) 24952: { 24952: return pthread_setspecific (__key, __ptr); 24952: } 24952: 24952: static inline void 24952: __gthread_mutex_init_function (__gthread_mutex_t *__mutex) 24952: { 24952: if (__gthread_active_p ()) 24952: pthread_mutex_init (__mutex, __null); 24952: } 24952: 24952: static inline int 24952: __gthread_mutex_destroy (__gthread_mutex_t *__mutex) 24952: { 24952: if (__gthread_active_p ()) 24952: return pthread_mutex_destroy (__mutex); 24952: else 24952: return 0; 24952: } 24952: 24952: static inline int 24952: __gthread_mutex_lock (__gthread_mutex_t *__mutex) 24952: { 24952: if (__gthread_active_p ()) 24952: return pthread_mutex_lock (__mutex); 24952: else 24952: return 0; 24952: } 24952: 24952: static inline int 24952: __gthread_mutex_trylock (__gthread_mutex_t *__mutex) 24952: { 24952: if (__gthread_active_p ()) 24952: return pthread_mutex_trylock (__mutex); 24952: else 24952: return 0; 24952: } 24952: 24952: 24952: static inline int 24952: __gthread_mutex_timedlock (__gthread_mutex_t *__mutex, 24952: const __gthread_time_t *__abs_timeout) 24952: { 24952: if (__gthread_active_p ()) 24952: return pthread_mutex_timedlock (__mutex, __abs_timeout); 24952: else 24952: return 0; 24952: } 24952: 24952: 24952: static inline int 24952: __gthread_mutex_unlock (__gthread_mutex_t *__mutex) 24952: { 24952: if (__gthread_active_p ()) 24952: return pthread_mutex_unlock (__mutex); 24952: else 24952: return 0; 24952: } 24952: # 808 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 24952: static inline int 24952: __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) 24952: { 24952: return __gthread_mutex_lock (__mutex); 24952: } 24952: 24952: static inline int 24952: __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) 24952: { 24952: return __gthread_mutex_trylock (__mutex); 24952: } 24952: 24952: 24952: static inline int 24952: __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, 24952: const __gthread_time_t *__abs_timeout) 24952: { 24952: return __gthread_mutex_timedlock (__mutex, __abs_timeout); 24952: } 24952: 24952: 24952: static inline int 24952: __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) 24952: { 24952: return __gthread_mutex_unlock (__mutex); 24952: } 24952: 24952: static inline int 24952: __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) 24952: { 24952: return __gthread_mutex_destroy (__mutex); 24952: } 24952: # 850 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr-default.h" 3 24952: static inline int 24952: __gthread_cond_broadcast (__gthread_cond_t *__cond) 24952: { 24952: return pthread_cond_broadcast (__cond); 24952: } 24952: 24952: static inline int 24952: __gthread_cond_signal (__gthread_cond_t *__cond) 24952: { 24952: return pthread_cond_signal (__cond); 24952: } 24952: 24952: static inline int 24952: __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) 24952: { 24952: return pthread_cond_wait (__cond, __mutex); 24952: } 24952: 24952: static inline int 24952: __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, 24952: const __gthread_time_t *__abs_timeout) 24952: { 24952: return pthread_cond_timedwait (__cond, __mutex, __abs_timeout); 24952: } 24952: 24952: static inline int 24952: __gthread_cond_wait_recursive (__gthread_cond_t *__cond, 24952: __gthread_recursive_mutex_t *__mutex) 24952: { 24952: return __gthread_cond_wait (__cond, __mutex); 24952: } 24952: 24952: static inline int 24952: __gthread_cond_destroy (__gthread_cond_t* __cond) 24952: { 24952: return pthread_cond_destroy (__cond); 24952: } 24952: # 149 "/usr/include/arm-linux-gnueabihf/c++/13/bits/gthr.h" 2 3 24952: 24952: 24952: #pragma GCC visibility pop 24952: # 36 "/usr/include/c++/13/ext/atomicity.h" 2 3 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/atomic_word.h" 1 3 24952: # 32 "/usr/include/arm-linux-gnueabihf/c++/13/bits/atomic_word.h" 3 24952: typedef int _Atomic_word; 24952: # 37 "/usr/include/c++/13/ext/atomicity.h" 2 3 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 3 4 24952: extern "C" { 24952: 24952: 24952: 24952: 24952: extern char __libc_single_threaded; 24952: 24952: } 24952: # 39 "/usr/include/c++/13/ext/atomicity.h" 2 3 24952: 24952: 24952: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: __attribute__((__always_inline__)) 24952: inline bool 24952: __is_single_threaded() noexcept 24952: { 24952: 24952: 24952: 24952: return ::__libc_single_threaded; 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline _Atomic_word 24952: __attribute__((__always_inline__)) 24952: __exchange_and_add(volatile _Atomic_word* __mem, int __val) 24952: { return __atomic_fetch_add(__mem, __val, 4); } 24952: 24952: inline void 24952: __attribute__((__always_inline__)) 24952: __atomic_add(volatile _Atomic_word* __mem, int __val) 24952: { __atomic_fetch_add(__mem, __val, 4); } 24952: # 80 "/usr/include/c++/13/ext/atomicity.h" 3 24952: inline _Atomic_word 24952: __attribute__((__always_inline__)) 24952: __exchange_and_add_single(_Atomic_word* __mem, int __val) 24952: { 24952: _Atomic_word __result = *__mem; 24952: *__mem += __val; 24952: return __result; 24952: } 24952: 24952: inline void 24952: __attribute__((__always_inline__)) 24952: __atomic_add_single(_Atomic_word* __mem, int __val) 24952: { *__mem += __val; } 24952: 24952: inline _Atomic_word 24952: __attribute__ ((__always_inline__)) 24952: __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) 24952: { 24952: if (__is_single_threaded()) 24952: return __exchange_and_add_single(__mem, __val); 24952: else 24952: return __exchange_and_add(__mem, __val); 24952: } 24952: 24952: inline void 24952: __attribute__ ((__always_inline__)) 24952: __atomic_add_dispatch(_Atomic_word* __mem, int __val) 24952: { 24952: if (__is_single_threaded()) 24952: __atomic_add_single(__mem, __val); 24952: else 24952: __atomic_add(__mem, __val); 24952: } 24952: 24952: 24952: } 24952: # 62 "/usr/include/c++/13/bits/shared_ptr_base.h" 2 3 24952: # 1 "/usr/include/c++/13/ext/concurrence.h" 1 3 24952: # 32 "/usr/include/c++/13/ext/concurrence.h" 3 24952: 24952: # 33 "/usr/include/c++/13/ext/concurrence.h" 3 24952: 24952: # 1 "/usr/include/c++/13/exception" 1 3 24952: # 33 "/usr/include/c++/13/exception" 3 24952: 24952: # 34 "/usr/include/c++/13/exception" 3 24952: 24952: 24952: 24952: 24952: extern "C++" { 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: # 51 "/usr/include/c++/13/exception" 3 24952: class bad_exception : public exception 24952: { 24952: public: 24952: bad_exception() noexcept { } 24952: 24952: 24952: 24952: virtual ~bad_exception() noexcept; 24952: 24952: 24952: virtual const char* 24952: what() const noexcept; 24952: }; 24952: 24952: 24952: typedef void (*terminate_handler) (); 24952: 24952: 24952: terminate_handler set_terminate(terminate_handler) noexcept; 24952: 24952: 24952: 24952: terminate_handler get_terminate() noexcept; 24952: 24952: 24952: 24952: 24952: void terminate() noexcept __attribute__ ((__noreturn__)); 24952: 24952: 24952: 24952: typedef void (*__attribute__ ((__deprecated__)) unexpected_handler) (); 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((__deprecated__)) 24952: unexpected_handler set_unexpected(unexpected_handler) noexcept; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((__deprecated__)) 24952: unexpected_handler get_unexpected() noexcept; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((__deprecated__)) 24952: void unexpected() __attribute__ ((__noreturn__)); 24952: # 121 "/usr/include/c++/13/exception" 3 24952: __attribute__ ((__deprecated__ ("use '" "std::uncaught_exceptions()" "' instead"))) 24952: bool uncaught_exception() noexcept __attribute__ ((__pure__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: int uncaught_exceptions() noexcept __attribute__ ((__pure__)); 24952: 24952: 24952: 24952: } 24952: 24952: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 156 "/usr/include/c++/13/exception" 3 24952: void __verbose_terminate_handler(); 24952: 24952: 24952: } 24952: 24952: } 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/exception_ptr.h" 1 3 24952: # 36 "/usr/include/c++/13/bits/exception_ptr.h" 3 24952: # 1 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 1 3 24952: # 34 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 3 24952: 24952: # 35 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 3 24952: 24952: #pragma GCC visibility push(default) 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 39 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 2 3 24952: # 50 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 3 24952: namespace std 24952: { 24952: class type_info; 24952: } 24952: 24952: namespace __cxxabiv1 24952: { 24952: struct __cxa_refcounted_exception; 24952: 24952: extern "C" 24952: { 24952: 24952: void* 24952: __cxa_allocate_exception(size_t) noexcept; 24952: 24952: void 24952: __cxa_free_exception(void*) noexcept; 24952: 24952: 24952: __cxa_refcounted_exception* 24952: __cxa_init_primary_exception(void *__object, std::type_info *__tinfo, 24952: void ( *__dest) (void *)) 24952: noexcept; 24952: 24952: } 24952: } 24952: 24952: 24952: 24952: #pragma GCC visibility pop 24952: # 37 "/usr/include/c++/13/bits/exception_ptr.h" 2 3 24952: # 50 "/usr/include/c++/13/bits/exception_ptr.h" 3 24952: extern "C++" { 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: class type_info; 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace __exception_ptr 24952: { 24952: class exception_ptr; 24952: } 24952: 24952: using __exception_ptr::exception_ptr; 24952: # 75 "/usr/include/c++/13/bits/exception_ptr.h" 3 24952: exception_ptr current_exception() noexcept; 24952: 24952: template 24952: exception_ptr make_exception_ptr(_Ex) noexcept; 24952: 24952: 24952: void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); 24952: 24952: namespace __exception_ptr 24952: { 24952: using std::rethrow_exception; 24952: # 97 "/usr/include/c++/13/bits/exception_ptr.h" 3 24952: class exception_ptr 24952: { 24952: void* _M_exception_object; 24952: 24952: explicit exception_ptr(void* __e) noexcept; 24952: 24952: void _M_addref() noexcept; 24952: void _M_release() noexcept; 24952: 24952: void *_M_get() const noexcept __attribute__ ((__pure__)); 24952: 24952: friend exception_ptr std::current_exception() noexcept; 24952: friend void std::rethrow_exception(exception_ptr); 24952: template 24952: friend exception_ptr std::make_exception_ptr(_Ex) noexcept; 24952: 24952: public: 24952: exception_ptr() noexcept; 24952: 24952: exception_ptr(const exception_ptr&) noexcept; 24952: 24952: 24952: exception_ptr(nullptr_t) noexcept 24952: : _M_exception_object(nullptr) 24952: { } 24952: 24952: exception_ptr(exception_ptr&& __o) noexcept 24952: : _M_exception_object(__o._M_exception_object) 24952: { __o._M_exception_object = nullptr; } 24952: # 135 "/usr/include/c++/13/bits/exception_ptr.h" 3 24952: exception_ptr& 24952: operator=(const exception_ptr&) noexcept; 24952: 24952: 24952: exception_ptr& 24952: operator=(exception_ptr&& __o) noexcept 24952: { 24952: exception_ptr(static_cast(__o)).swap(*this); 24952: return *this; 24952: } 24952: 24952: 24952: ~exception_ptr() noexcept; 24952: 24952: void 24952: swap(exception_ptr&) noexcept; 24952: # 162 "/usr/include/c++/13/bits/exception_ptr.h" 3 24952: explicit operator bool() const noexcept 24952: { return _M_exception_object; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const exception_ptr& __x, const exception_ptr& __y) 24952: noexcept 24952: { return __x._M_exception_object == __y._M_exception_object; } 24952: 24952: friend bool 24952: operator!=(const exception_ptr& __x, const exception_ptr& __y) 24952: noexcept 24952: { return __x._M_exception_object != __y._M_exception_object; } 24952: 24952: 24952: const class std::type_info* 24952: __cxa_exception_type() const noexcept 24952: __attribute__ ((__pure__)); 24952: }; 24952: 24952: 24952: inline 24952: exception_ptr::exception_ptr() noexcept 24952: : _M_exception_object(0) 24952: { } 24952: 24952: 24952: inline 24952: exception_ptr::exception_ptr(const exception_ptr& __other) 24952: noexcept 24952: : _M_exception_object(__other._M_exception_object) 24952: { 24952: if (_M_exception_object) 24952: _M_addref(); 24952: } 24952: 24952: 24952: inline 24952: exception_ptr::~exception_ptr() noexcept 24952: { 24952: if (_M_exception_object) 24952: _M_release(); 24952: } 24952: 24952: 24952: inline exception_ptr& 24952: exception_ptr::operator=(const exception_ptr& __other) noexcept 24952: { 24952: exception_ptr(__other).swap(*this); 24952: return *this; 24952: } 24952: 24952: 24952: inline void 24952: exception_ptr::swap(exception_ptr &__other) noexcept 24952: { 24952: void *__tmp = _M_exception_object; 24952: _M_exception_object = __other._M_exception_object; 24952: __other._M_exception_object = __tmp; 24952: } 24952: 24952: 24952: inline void 24952: swap(exception_ptr& __lhs, exception_ptr& __rhs) 24952: { __lhs.swap(__rhs); } 24952: 24952: 24952: template 24952: 24952: inline void 24952: __dest_thunk(void* __x) 24952: { static_cast<_Ex*>(__x)->~_Ex(); } 24952: 24952: 24952: } 24952: 24952: using __exception_ptr::swap; 24952: 24952: 24952: 24952: template 24952: exception_ptr 24952: make_exception_ptr(_Ex __ex) noexcept 24952: { 24952: 24952: using _Ex2 = typename decay<_Ex>::type; 24952: void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); 24952: (void) __cxxabiv1::__cxa_init_primary_exception( 24952: __e, const_cast(&typeid(_Ex)), 24952: __exception_ptr::__dest_thunk<_Ex2>); 24952: try 24952: { 24952: ::new (__e) _Ex2(__ex); 24952: return exception_ptr(__e); 24952: } 24952: catch(...) 24952: { 24952: __cxxabiv1::__cxa_free_exception(__e); 24952: return current_exception(); 24952: } 24952: # 277 "/usr/include/c++/13/bits/exception_ptr.h" 3 24952: } 24952: # 291 "/usr/include/c++/13/bits/exception_ptr.h" 3 24952: } 24952: 24952: } 24952: # 165 "/usr/include/c++/13/exception" 2 3 24952: # 1 "/usr/include/c++/13/bits/nested_exception.h" 1 3 24952: # 40 "/usr/include/c++/13/bits/nested_exception.h" 3 24952: extern "C++" { 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: # 59 "/usr/include/c++/13/bits/nested_exception.h" 3 24952: class nested_exception 24952: { 24952: exception_ptr _M_ptr; 24952: 24952: public: 24952: 24952: nested_exception() noexcept : _M_ptr(current_exception()) { } 24952: 24952: nested_exception(const nested_exception&) noexcept = default; 24952: 24952: nested_exception& operator=(const nested_exception&) noexcept = default; 24952: 24952: virtual ~nested_exception() noexcept; 24952: 24952: 24952: [[noreturn]] 24952: void 24952: rethrow_nested() const 24952: { 24952: if (_M_ptr) 24952: rethrow_exception(_M_ptr); 24952: std::terminate(); 24952: } 24952: 24952: 24952: exception_ptr 24952: nested_ptr() const noexcept 24952: { return _M_ptr; } 24952: }; 24952: 24952: 24952: 24952: template 24952: struct _Nested_exception : public _Except, public nested_exception 24952: { 24952: explicit _Nested_exception(const _Except& __ex) 24952: : _Except(__ex) 24952: { } 24952: 24952: explicit _Nested_exception(_Except&& __ex) 24952: : _Except(static_cast<_Except&&>(__ex)) 24952: { } 24952: }; 24952: # 145 "/usr/include/c++/13/bits/nested_exception.h" 3 24952: template 24952: [[noreturn]] 24952: inline void 24952: throw_with_nested(_Tp&& __t) 24952: { 24952: using _Up = typename decay<_Tp>::type; 24952: using _CopyConstructible 24952: = __and_, is_move_constructible<_Up>>; 24952: static_assert(_CopyConstructible::value, 24952: "throw_with_nested argument must be CopyConstructible"); 24952: 24952: 24952: if constexpr (is_class_v<_Up>) 24952: if constexpr (!is_final_v<_Up>) 24952: if constexpr (!is_base_of_v) 24952: throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; 24952: throw std::forward<_Tp>(__t); 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 203 "/usr/include/c++/13/bits/nested_exception.h" 3 24952: template 24952: 24952: 24952: 24952: inline void 24952: rethrow_if_nested(const _Ex& __ex) 24952: { 24952: const _Ex* __ptr = __builtin_addressof(__ex); 24952: # 223 "/usr/include/c++/13/bits/nested_exception.h" 3 24952: if constexpr (!is_polymorphic_v<_Ex>) 24952: return; 24952: else if constexpr (is_base_of_v 24952: && !is_convertible_v<_Ex*, nested_exception*>) 24952: return; 24952: 24952: 24952: 24952: 24952: else if (auto __ne_ptr = dynamic_cast(__ptr)) 24952: __ne_ptr->rethrow_nested(); 24952: 24952: } 24952: 24952: 24952: } 24952: 24952: } 24952: # 166 "/usr/include/c++/13/exception" 2 3 24952: # 35 "/usr/include/c++/13/ext/concurrence.h" 2 3 24952: 24952: 24952: 24952: 24952: 24952: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: enum _Lock_policy { _S_single, _S_mutex, _S_atomic }; 24952: 24952: 24952: 24952: inline const _Lock_policy __default_lock_policy = 24952: 24952: 24952: 24952: _S_atomic; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class __concurrence_lock_error : public std::exception 24952: { 24952: public: 24952: virtual char const* 24952: what() const throw() 24952: { return "__gnu_cxx::__concurrence_lock_error"; } 24952: }; 24952: 24952: class __concurrence_unlock_error : public std::exception 24952: { 24952: public: 24952: virtual char const* 24952: what() const throw() 24952: { return "__gnu_cxx::__concurrence_unlock_error"; } 24952: }; 24952: 24952: class __concurrence_broadcast_error : public std::exception 24952: { 24952: public: 24952: virtual char const* 24952: what() const throw() 24952: { return "__gnu_cxx::__concurrence_broadcast_error"; } 24952: }; 24952: 24952: class __concurrence_wait_error : public std::exception 24952: { 24952: public: 24952: virtual char const* 24952: what() const throw() 24952: { return "__gnu_cxx::__concurrence_wait_error"; } 24952: }; 24952: 24952: 24952: inline void 24952: __throw_concurrence_lock_error() 24952: { (throw (__concurrence_lock_error())); } 24952: 24952: inline void 24952: __throw_concurrence_unlock_error() 24952: { (throw (__concurrence_unlock_error())); } 24952: 24952: 24952: inline void 24952: __throw_concurrence_broadcast_error() 24952: { (throw (__concurrence_broadcast_error())); } 24952: 24952: inline void 24952: __throw_concurrence_wait_error() 24952: { (throw (__concurrence_wait_error())); } 24952: 24952: 24952: class __mutex 24952: { 24952: private: 24952: 24952: __gthread_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 24952: 24952: 24952: 24952: 24952: __mutex(const __mutex&); 24952: __mutex& operator=(const __mutex&); 24952: 24952: public: 24952: __mutex() 24952: { 24952: 24952: 24952: 24952: 24952: } 24952: # 144 "/usr/include/c++/13/ext/concurrence.h" 3 24952: void lock() 24952: { 24952: 24952: if (__gthread_active_p()) 24952: { 24952: if (__gthread_mutex_lock(&_M_mutex) != 0) 24952: __throw_concurrence_lock_error(); 24952: } 24952: 24952: } 24952: 24952: void unlock() 24952: { 24952: 24952: if (__gthread_active_p()) 24952: { 24952: if (__gthread_mutex_unlock(&_M_mutex) != 0) 24952: __throw_concurrence_unlock_error(); 24952: } 24952: 24952: } 24952: 24952: __gthread_mutex_t* gthread_mutex(void) 24952: { return &_M_mutex; } 24952: }; 24952: 24952: class __recursive_mutex 24952: { 24952: private: 24952: 24952: __gthread_recursive_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 24952: 24952: 24952: 24952: 24952: __recursive_mutex(const __recursive_mutex&); 24952: __recursive_mutex& operator=(const __recursive_mutex&); 24952: 24952: public: 24952: __recursive_mutex() 24952: { 24952: 24952: 24952: 24952: 24952: } 24952: # 199 "/usr/include/c++/13/ext/concurrence.h" 3 24952: void lock() 24952: { 24952: 24952: if (__gthread_active_p()) 24952: { 24952: if (__gthread_recursive_mutex_lock(&_M_mutex) != 0) 24952: __throw_concurrence_lock_error(); 24952: } 24952: 24952: } 24952: 24952: void unlock() 24952: { 24952: 24952: if (__gthread_active_p()) 24952: { 24952: if (__gthread_recursive_mutex_unlock(&_M_mutex) != 0) 24952: __throw_concurrence_unlock_error(); 24952: } 24952: 24952: } 24952: 24952: __gthread_recursive_mutex_t* gthread_recursive_mutex(void) 24952: { return &_M_mutex; } 24952: }; 24952: 24952: 24952: 24952: 24952: class __scoped_lock 24952: { 24952: public: 24952: typedef __mutex __mutex_type; 24952: 24952: private: 24952: __mutex_type& _M_device; 24952: 24952: __scoped_lock(const __scoped_lock&); 24952: __scoped_lock& operator=(const __scoped_lock&); 24952: 24952: public: 24952: explicit __scoped_lock(__mutex_type& __name) : _M_device(__name) 24952: { _M_device.lock(); } 24952: 24952: ~__scoped_lock() throw() 24952: { _M_device.unlock(); } 24952: }; 24952: 24952: 24952: class __cond 24952: { 24952: private: 24952: 24952: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 24952: 24952: 24952: 24952: 24952: __cond(const __cond&); 24952: __cond& operator=(const __cond&); 24952: 24952: public: 24952: __cond() 24952: { 24952: 24952: 24952: 24952: 24952: } 24952: # 277 "/usr/include/c++/13/ext/concurrence.h" 3 24952: void broadcast() 24952: { 24952: 24952: if (__gthread_active_p()) 24952: { 24952: if (__gthread_cond_broadcast(&_M_cond) != 0) 24952: __throw_concurrence_broadcast_error(); 24952: } 24952: 24952: } 24952: 24952: void wait(__mutex *mutex) 24952: { 24952: 24952: { 24952: if (__gthread_cond_wait(&_M_cond, mutex->gthread_mutex()) != 0) 24952: __throw_concurrence_wait_error(); 24952: } 24952: 24952: } 24952: 24952: void wait_recursive(__recursive_mutex *mutex) 24952: { 24952: 24952: { 24952: if (__gthread_cond_wait_recursive(&_M_cond, 24952: mutex->gthread_recursive_mutex()) 24952: != 0) 24952: __throw_concurrence_wait_error(); 24952: } 24952: 24952: } 24952: }; 24952: 24952: 24952: 24952: } 24952: # 63 "/usr/include/c++/13/bits/shared_ptr_base.h" 2 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: # 75 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: template class auto_ptr; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: 24952: 24952: 24952: 24952: class bad_weak_ptr : public std::exception 24952: { 24952: public: 24952: virtual char const* what() const noexcept; 24952: 24952: virtual ~bad_weak_ptr() noexcept; 24952: }; 24952: 24952: 24952: inline void 24952: __throw_bad_weak_ptr() 24952: { (throw (bad_weak_ptr())); } 24952: 24952: using __gnu_cxx::_Lock_policy; 24952: using __gnu_cxx::__default_lock_policy; 24952: using __gnu_cxx::_S_single; 24952: using __gnu_cxx::_S_mutex; 24952: using __gnu_cxx::_S_atomic; 24952: 24952: 24952: template<_Lock_policy _Lp> 24952: class _Mutex_base 24952: { 24952: protected: 24952: 24952: enum { _S_need_barriers = 0 }; 24952: }; 24952: 24952: template<> 24952: class _Mutex_base<_S_mutex> 24952: : public __gnu_cxx::__mutex 24952: { 24952: protected: 24952: 24952: 24952: 24952: enum { _S_need_barriers = 1 }; 24952: }; 24952: 24952: template<_Lock_policy _Lp = __default_lock_policy> 24952: class _Sp_counted_base 24952: : public _Mutex_base<_Lp> 24952: { 24952: public: 24952: _Sp_counted_base() noexcept 24952: : _M_use_count(1), _M_weak_count(1) { } 24952: 24952: virtual 24952: ~_Sp_counted_base() noexcept 24952: { } 24952: 24952: 24952: 24952: virtual void 24952: _M_dispose() noexcept = 0; 24952: 24952: 24952: virtual void 24952: _M_destroy() noexcept 24952: { delete this; } 24952: 24952: virtual void* 24952: _M_get_deleter(const std::type_info&) noexcept = 0; 24952: 24952: 24952: void 24952: _M_add_ref_copy() 24952: { __gnu_cxx::__atomic_add_dispatch(&_M_use_count, 1); } 24952: 24952: 24952: void 24952: _M_add_ref_lock() 24952: { 24952: if (!_M_add_ref_lock_nothrow()) 24952: __throw_bad_weak_ptr(); 24952: } 24952: 24952: 24952: bool 24952: _M_add_ref_lock_nothrow() noexcept; 24952: 24952: 24952: void 24952: _M_release() noexcept; 24952: 24952: 24952: void 24952: _M_release_last_use() noexcept 24952: { 24952: ; 24952: _M_dispose(); 24952: 24952: 24952: 24952: 24952: if (_Mutex_base<_Lp>::_S_need_barriers) 24952: { 24952: __atomic_thread_fence (4); 24952: } 24952: 24952: 24952: ; 24952: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, 24952: -1) == 1) 24952: { 24952: ; 24952: _M_destroy(); 24952: } 24952: } 24952: 24952: 24952: __attribute__((__noinline__)) 24952: void 24952: _M_release_last_use_cold() noexcept 24952: { _M_release_last_use(); } 24952: 24952: 24952: void 24952: _M_weak_add_ref() noexcept 24952: { __gnu_cxx::__atomic_add_dispatch(&_M_weak_count, 1); } 24952: 24952: 24952: void 24952: _M_weak_release() noexcept 24952: { 24952: 24952: ; 24952: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1) 24952: { 24952: ; 24952: if (_Mutex_base<_Lp>::_S_need_barriers) 24952: { 24952: 24952: 24952: __atomic_thread_fence (4); 24952: } 24952: _M_destroy(); 24952: } 24952: } 24952: 24952: long 24952: _M_get_use_count() const noexcept 24952: { 24952: 24952: 24952: return __atomic_load_n(&_M_use_count, 0); 24952: } 24952: 24952: private: 24952: _Sp_counted_base(_Sp_counted_base const&) = delete; 24952: _Sp_counted_base& operator=(_Sp_counted_base const&) = delete; 24952: 24952: _Atomic_word _M_use_count; 24952: _Atomic_word _M_weak_count; 24952: }; 24952: 24952: template<> 24952: inline bool 24952: _Sp_counted_base<_S_single>:: 24952: _M_add_ref_lock_nothrow() noexcept 24952: { 24952: if (_M_use_count == 0) 24952: return false; 24952: ++_M_use_count; 24952: return true; 24952: } 24952: 24952: template<> 24952: inline bool 24952: _Sp_counted_base<_S_mutex>:: 24952: _M_add_ref_lock_nothrow() noexcept 24952: { 24952: __gnu_cxx::__scoped_lock sentry(*this); 24952: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, 1) == 0) 24952: { 24952: _M_use_count = 0; 24952: return false; 24952: } 24952: return true; 24952: } 24952: 24952: template<> 24952: inline bool 24952: _Sp_counted_base<_S_atomic>:: 24952: _M_add_ref_lock_nothrow() noexcept 24952: { 24952: 24952: _Atomic_word __count = _M_get_use_count(); 24952: do 24952: { 24952: if (__count == 0) 24952: return false; 24952: 24952: 24952: } 24952: while (!__atomic_compare_exchange_n(&_M_use_count, &__count, __count + 1, 24952: true, 4, 24952: 0)); 24952: return true; 24952: } 24952: 24952: template<> 24952: inline void 24952: _Sp_counted_base<_S_single>::_M_add_ref_copy() 24952: { ++_M_use_count; } 24952: 24952: template<> 24952: inline void 24952: _Sp_counted_base<_S_single>::_M_release() noexcept 24952: { 24952: if (--_M_use_count == 0) 24952: { 24952: _M_dispose(); 24952: if (--_M_weak_count == 0) 24952: _M_destroy(); 24952: } 24952: } 24952: 24952: template<> 24952: inline void 24952: _Sp_counted_base<_S_mutex>::_M_release() noexcept 24952: { 24952: 24952: ; 24952: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 24952: { 24952: _M_release_last_use(); 24952: } 24952: } 24952: 24952: template<> 24952: inline void 24952: _Sp_counted_base<_S_atomic>::_M_release() noexcept 24952: { 24952: ; 24952: 24952: constexpr bool __lock_free 24952: = __atomic_always_lock_free(sizeof(long long), 0) 24952: && __atomic_always_lock_free(sizeof(_Atomic_word), 0); 24952: constexpr bool __double_word 24952: = sizeof(long long) == 2 * sizeof(_Atomic_word); 24952: 24952: 24952: constexpr bool __aligned = __alignof(long long) <= alignof(void*); 24952: if constexpr (__lock_free && __double_word && __aligned) 24952: { 24952: constexpr int __wordbits = 8 * sizeof(_Atomic_word); 24952: constexpr int __shiftbits = __double_word ? __wordbits : 0; 24952: constexpr long long __unique_ref = 1LL + (1LL << __shiftbits); 24952: auto __both_counts = reinterpret_cast(&_M_use_count); 24952: 24952: ; 24952: if (__atomic_load_n(__both_counts, 2) == __unique_ref) 24952: { 24952: 24952: 24952: 24952: 24952: _M_weak_count = _M_use_count = 0; 24952: ; 24952: ; 24952: _M_dispose(); 24952: _M_destroy(); 24952: return; 24952: } 24952: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 24952: [[__unlikely__]] 24952: { 24952: _M_release_last_use_cold(); 24952: return; 24952: } 24952: } 24952: else 24952: 24952: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 24952: { 24952: _M_release_last_use(); 24952: } 24952: } 24952: 24952: template<> 24952: inline void 24952: _Sp_counted_base<_S_single>::_M_weak_add_ref() noexcept 24952: { ++_M_weak_count; } 24952: 24952: template<> 24952: inline void 24952: _Sp_counted_base<_S_single>::_M_weak_release() noexcept 24952: { 24952: if (--_M_weak_count == 0) 24952: _M_destroy(); 24952: } 24952: 24952: template<> 24952: inline long 24952: _Sp_counted_base<_S_single>::_M_get_use_count() const noexcept 24952: { return _M_use_count; } 24952: 24952: 24952: 24952: template 24952: class __shared_ptr; 24952: 24952: template 24952: class __weak_ptr; 24952: 24952: template 24952: class __enable_shared_from_this; 24952: 24952: template 24952: class shared_ptr; 24952: 24952: template 24952: class weak_ptr; 24952: 24952: template 24952: struct owner_less; 24952: 24952: template 24952: class enable_shared_from_this; 24952: 24952: template<_Lock_policy _Lp = __default_lock_policy> 24952: class __weak_count; 24952: 24952: template<_Lock_policy _Lp = __default_lock_policy> 24952: class __shared_count; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: class _Sp_counted_ptr final : public _Sp_counted_base<_Lp> 24952: { 24952: public: 24952: explicit 24952: _Sp_counted_ptr(_Ptr __p) noexcept 24952: : _M_ptr(__p) { } 24952: 24952: virtual void 24952: _M_dispose() noexcept 24952: { delete _M_ptr; } 24952: 24952: virtual void 24952: _M_destroy() noexcept 24952: { delete this; } 24952: 24952: virtual void* 24952: _M_get_deleter(const std::type_info&) noexcept 24952: { return nullptr; } 24952: 24952: _Sp_counted_ptr(const _Sp_counted_ptr&) = delete; 24952: _Sp_counted_ptr& operator=(const _Sp_counted_ptr&) = delete; 24952: 24952: private: 24952: _Ptr _M_ptr; 24952: }; 24952: 24952: template<> 24952: inline void 24952: _Sp_counted_ptr::_M_dispose() noexcept { } 24952: 24952: template<> 24952: inline void 24952: _Sp_counted_ptr::_M_dispose() noexcept { } 24952: 24952: template<> 24952: inline void 24952: _Sp_counted_ptr::_M_dispose() noexcept { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Sp_ebo_helper; 24952: 24952: 24952: template 24952: struct _Sp_ebo_helper<_Nm, _Tp, true> : private _Tp 24952: { 24952: explicit _Sp_ebo_helper(const _Tp& __tp) : _Tp(__tp) { } 24952: explicit _Sp_ebo_helper(_Tp&& __tp) : _Tp(std::move(__tp)) { } 24952: 24952: static _Tp& 24952: _S_get(_Sp_ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); } 24952: }; 24952: 24952: 24952: template 24952: struct _Sp_ebo_helper<_Nm, _Tp, false> 24952: { 24952: explicit _Sp_ebo_helper(const _Tp& __tp) : _M_tp(__tp) { } 24952: explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { } 24952: 24952: static _Tp& 24952: _S_get(_Sp_ebo_helper& __eboh) 24952: { return __eboh._M_tp; } 24952: 24952: private: 24952: _Tp _M_tp; 24952: }; 24952: 24952: 24952: template 24952: class _Sp_counted_deleter final : public _Sp_counted_base<_Lp> 24952: { 24952: class _Impl : _Sp_ebo_helper<0, _Deleter>, _Sp_ebo_helper<1, _Alloc> 24952: { 24952: typedef _Sp_ebo_helper<0, _Deleter> _Del_base; 24952: typedef _Sp_ebo_helper<1, _Alloc> _Alloc_base; 24952: 24952: public: 24952: _Impl(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 24952: : _Del_base(std::move(__d)), _Alloc_base(__a), _M_ptr(__p) 24952: { } 24952: 24952: _Deleter& _M_del() noexcept { return _Del_base::_S_get(*this); } 24952: _Alloc& _M_alloc() noexcept { return _Alloc_base::_S_get(*this); } 24952: 24952: _Ptr _M_ptr; 24952: }; 24952: 24952: public: 24952: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_deleter>; 24952: 24952: 24952: _Sp_counted_deleter(_Ptr __p, _Deleter __d) noexcept 24952: : _M_impl(__p, std::move(__d), _Alloc()) { } 24952: 24952: 24952: _Sp_counted_deleter(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 24952: : _M_impl(__p, std::move(__d), __a) { } 24952: 24952: ~_Sp_counted_deleter() noexcept { } 24952: 24952: virtual void 24952: _M_dispose() noexcept 24952: { _M_impl._M_del()(_M_impl._M_ptr); } 24952: 24952: virtual void 24952: _M_destroy() noexcept 24952: { 24952: __allocator_type __a(_M_impl._M_alloc()); 24952: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 24952: this->~_Sp_counted_deleter(); 24952: } 24952: 24952: virtual void* 24952: _M_get_deleter(const type_info& __ti [[__gnu__::__unused__]]) noexcept 24952: { 24952: 24952: 24952: 24952: return __ti == typeid(_Deleter) 24952: ? std::__addressof(_M_impl._M_del()) 24952: : nullptr; 24952: 24952: 24952: 24952: } 24952: 24952: private: 24952: _Impl _M_impl; 24952: }; 24952: 24952: 24952: 24952: struct _Sp_make_shared_tag 24952: { 24952: private: 24952: template 24952: friend class _Sp_counted_ptr_inplace; 24952: 24952: static const type_info& 24952: _S_ti() noexcept __attribute__ ((__visibility__ ("default"))) 24952: { 24952: alignas(type_info) static constexpr char __tag[sizeof(type_info)] = { }; 24952: return reinterpret_cast(__tag); 24952: } 24952: 24952: static bool _S_eq(const type_info&) noexcept; 24952: }; 24952: 24952: template 24952: struct _Sp_alloc_shared_tag 24952: { 24952: const _Alloc& _M_a; 24952: }; 24952: 24952: template 24952: class _Sp_counted_ptr_inplace final : public _Sp_counted_base<_Lp> 24952: { 24952: class _Impl : _Sp_ebo_helper<0, _Alloc> 24952: { 24952: typedef _Sp_ebo_helper<0, _Alloc> _A_base; 24952: 24952: public: 24952: explicit _Impl(_Alloc __a) noexcept : _A_base(__a) { } 24952: 24952: _Alloc& _M_alloc() noexcept { return _A_base::_S_get(*this); } 24952: 24952: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 24952: }; 24952: 24952: public: 24952: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>; 24952: 24952: 24952: template 24952: _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args) 24952: : _M_impl(__a) 24952: { 24952: 24952: 24952: allocator_traits<_Alloc>::construct(__a, _M_ptr(), 24952: std::forward<_Args>(__args)...); 24952: } 24952: 24952: ~_Sp_counted_ptr_inplace() noexcept { } 24952: 24952: virtual void 24952: _M_dispose() noexcept 24952: { 24952: allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr()); 24952: } 24952: 24952: 24952: virtual void 24952: _M_destroy() noexcept 24952: { 24952: __allocator_type __a(_M_impl._M_alloc()); 24952: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 24952: this->~_Sp_counted_ptr_inplace(); 24952: } 24952: 24952: private: 24952: friend class __shared_count<_Lp>; 24952: 24952: 24952: 24952: virtual void* 24952: _M_get_deleter(const std::type_info& __ti) noexcept override 24952: { 24952: auto __ptr = const_cast::type*>(_M_ptr()); 24952: 24952: 24952: 24952: 24952: if (&__ti == &_Sp_make_shared_tag::_S_ti() 24952: || 24952: 24952: __ti == typeid(_Sp_make_shared_tag) 24952: 24952: 24952: 24952: ) 24952: return __ptr; 24952: return nullptr; 24952: } 24952: 24952: _Tp* _M_ptr() noexcept { return _M_impl._M_storage._M_ptr(); } 24952: 24952: _Impl _M_impl; 24952: }; 24952: # 886 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 24952: struct __sp_array_delete 24952: { 24952: template 24952: void operator()(_Yp* __p) const { delete[] __p; } 24952: }; 24952: 24952: template<_Lock_policy _Lp> 24952: class __shared_count 24952: { 24952: 24952: template 24952: struct __not_alloc_shared_tag { using type = void; }; 24952: 24952: template 24952: struct __not_alloc_shared_tag<_Sp_alloc_shared_tag<_Tp>> { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: public: 24952: constexpr __shared_count() noexcept : _M_pi(0) 24952: { } 24952: 24952: template 24952: explicit 24952: __shared_count(_Ptr __p) : _M_pi(0) 24952: { 24952: try 24952: { 24952: _M_pi = new _Sp_counted_ptr<_Ptr, _Lp>(__p); 24952: } 24952: catch(...) 24952: { 24952: delete __p; 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: __shared_count(_Ptr __p, false_type) 24952: : __shared_count(__p) 24952: { } 24952: 24952: template 24952: __shared_count(_Ptr __p, true_type) 24952: : __shared_count(__p, __sp_array_delete{}, allocator()) 24952: { } 24952: 24952: template::type> 24952: __shared_count(_Ptr __p, _Deleter __d) 24952: : __shared_count(__p, std::move(__d), allocator()) 24952: { } 24952: 24952: template::type> 24952: __shared_count(_Ptr __p, _Deleter __d, _Alloc __a) : _M_pi(0) 24952: { 24952: typedef _Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp> _Sp_cd_type; 24952: try 24952: { 24952: typename _Sp_cd_type::__allocator_type __a2(__a); 24952: auto __guard = std::__allocate_guarded(__a2); 24952: _Sp_cd_type* __mem = __guard.get(); 24952: ::new (__mem) _Sp_cd_type(__p, std::move(__d), std::move(__a)); 24952: _M_pi = __mem; 24952: __guard = nullptr; 24952: } 24952: catch(...) 24952: { 24952: __d(__p); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: __shared_count(_Tp*& __p, _Sp_alloc_shared_tag<_Alloc> __a, 24952: _Args&&... __args) 24952: { 24952: typedef _Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp> _Sp_cp_type; 24952: typename _Sp_cp_type::__allocator_type __a2(__a._M_a); 24952: auto __guard = std::__allocate_guarded(__a2); 24952: _Sp_cp_type* __mem = __guard.get(); 24952: auto __pi = ::new (__mem) 24952: _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...); 24952: __guard = nullptr; 24952: _M_pi = __pi; 24952: __p = __pi->_M_ptr(); 24952: } 24952: # 1024 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: template 24952: explicit 24952: __shared_count(std::auto_ptr<_Tp>&& __r); 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: 24952: template 24952: explicit 24952: __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0) 24952: { 24952: 24952: 24952: if (__r.get() == nullptr) 24952: return; 24952: 24952: using _Ptr = typename unique_ptr<_Tp, _Del>::pointer; 24952: using _Del2 = __conditional_t::value, 24952: reference_wrapper::type>, 24952: _Del>; 24952: using _Sp_cd_type 24952: = _Sp_counted_deleter<_Ptr, _Del2, allocator, _Lp>; 24952: using _Alloc = allocator<_Sp_cd_type>; 24952: using _Alloc_traits = allocator_traits<_Alloc>; 24952: _Alloc __a; 24952: _Sp_cd_type* __mem = _Alloc_traits::allocate(__a, 1); 24952: 24952: 24952: 24952: _Alloc_traits::construct(__a, __mem, __r.release(), 24952: std::forward<_Del>(__r.get_deleter())); 24952: _M_pi = __mem; 24952: } 24952: 24952: 24952: explicit __shared_count(const __weak_count<_Lp>& __r); 24952: 24952: 24952: explicit 24952: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept; 24952: 24952: ~__shared_count() noexcept 24952: { 24952: if (_M_pi != nullptr) 24952: _M_pi->_M_release(); 24952: } 24952: 24952: __shared_count(const __shared_count& __r) noexcept 24952: : _M_pi(__r._M_pi) 24952: { 24952: if (_M_pi != nullptr) 24952: _M_pi->_M_add_ref_copy(); 24952: } 24952: 24952: __shared_count& 24952: operator=(const __shared_count& __r) noexcept 24952: { 24952: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 24952: if (__tmp != _M_pi) 24952: { 24952: if (__tmp != nullptr) 24952: __tmp->_M_add_ref_copy(); 24952: if (_M_pi != nullptr) 24952: _M_pi->_M_release(); 24952: _M_pi = __tmp; 24952: } 24952: return *this; 24952: } 24952: 24952: void 24952: _M_swap(__shared_count& __r) noexcept 24952: { 24952: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 24952: __r._M_pi = _M_pi; 24952: _M_pi = __tmp; 24952: } 24952: 24952: long 24952: _M_get_use_count() const noexcept 24952: { return _M_pi ? _M_pi->_M_get_use_count() : 0; } 24952: 24952: bool 24952: _M_unique() const noexcept 24952: { return this->_M_get_use_count() == 1; } 24952: 24952: void* 24952: _M_get_deleter(const std::type_info& __ti) const noexcept 24952: { return _M_pi ? _M_pi->_M_get_deleter(__ti) : nullptr; } 24952: 24952: bool 24952: _M_less(const __shared_count& __rhs) const noexcept 24952: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 24952: 24952: bool 24952: _M_less(const __weak_count<_Lp>& __rhs) const noexcept 24952: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 24952: 24952: 24952: friend inline bool 24952: operator==(const __shared_count& __a, const __shared_count& __b) noexcept 24952: { return __a._M_pi == __b._M_pi; } 24952: 24952: private: 24952: friend class __weak_count<_Lp>; 24952: 24952: 24952: 24952: 24952: _Sp_counted_base<_Lp>* _M_pi; 24952: }; 24952: 24952: 24952: template<_Lock_policy _Lp> 24952: class __weak_count 24952: { 24952: public: 24952: constexpr __weak_count() noexcept : _M_pi(nullptr) 24952: { } 24952: 24952: __weak_count(const __shared_count<_Lp>& __r) noexcept 24952: : _M_pi(__r._M_pi) 24952: { 24952: if (_M_pi != nullptr) 24952: _M_pi->_M_weak_add_ref(); 24952: } 24952: 24952: __weak_count(const __weak_count& __r) noexcept 24952: : _M_pi(__r._M_pi) 24952: { 24952: if (_M_pi != nullptr) 24952: _M_pi->_M_weak_add_ref(); 24952: } 24952: 24952: __weak_count(__weak_count&& __r) noexcept 24952: : _M_pi(__r._M_pi) 24952: { __r._M_pi = nullptr; } 24952: 24952: ~__weak_count() noexcept 24952: { 24952: if (_M_pi != nullptr) 24952: _M_pi->_M_weak_release(); 24952: } 24952: 24952: __weak_count& 24952: operator=(const __shared_count<_Lp>& __r) noexcept 24952: { 24952: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 24952: if (__tmp != nullptr) 24952: __tmp->_M_weak_add_ref(); 24952: if (_M_pi != nullptr) 24952: _M_pi->_M_weak_release(); 24952: _M_pi = __tmp; 24952: return *this; 24952: } 24952: 24952: __weak_count& 24952: operator=(const __weak_count& __r) noexcept 24952: { 24952: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 24952: if (__tmp != nullptr) 24952: __tmp->_M_weak_add_ref(); 24952: if (_M_pi != nullptr) 24952: _M_pi->_M_weak_release(); 24952: _M_pi = __tmp; 24952: return *this; 24952: } 24952: 24952: __weak_count& 24952: operator=(__weak_count&& __r) noexcept 24952: { 24952: if (_M_pi != nullptr) 24952: _M_pi->_M_weak_release(); 24952: _M_pi = __r._M_pi; 24952: __r._M_pi = nullptr; 24952: return *this; 24952: } 24952: 24952: void 24952: _M_swap(__weak_count& __r) noexcept 24952: { 24952: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 24952: __r._M_pi = _M_pi; 24952: _M_pi = __tmp; 24952: } 24952: 24952: long 24952: _M_get_use_count() const noexcept 24952: { return _M_pi != nullptr ? _M_pi->_M_get_use_count() : 0; } 24952: 24952: bool 24952: _M_less(const __weak_count& __rhs) const noexcept 24952: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 24952: 24952: bool 24952: _M_less(const __shared_count<_Lp>& __rhs) const noexcept 24952: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 24952: 24952: 24952: friend inline bool 24952: operator==(const __weak_count& __a, const __weak_count& __b) noexcept 24952: { return __a._M_pi == __b._M_pi; } 24952: 24952: private: 24952: friend class __shared_count<_Lp>; 24952: 24952: 24952: 24952: 24952: _Sp_counted_base<_Lp>* _M_pi; 24952: }; 24952: 24952: 24952: template<_Lock_policy _Lp> 24952: inline 24952: __shared_count<_Lp>::__shared_count(const __weak_count<_Lp>& __r) 24952: : _M_pi(__r._M_pi) 24952: { 24952: if (_M_pi == nullptr || !_M_pi->_M_add_ref_lock_nothrow()) 24952: __throw_bad_weak_ptr(); 24952: } 24952: 24952: 24952: template<_Lock_policy _Lp> 24952: inline 24952: __shared_count<_Lp>:: 24952: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept 24952: : _M_pi(__r._M_pi) 24952: { 24952: if (_M_pi && !_M_pi->_M_add_ref_lock_nothrow()) 24952: _M_pi = nullptr; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __sp_compatible_with 24952: : false_type 24952: { }; 24952: 24952: template 24952: struct __sp_compatible_with<_Yp*, _Tp*> 24952: : is_convertible<_Yp*, _Tp*>::type 24952: { }; 24952: 24952: template 24952: struct __sp_compatible_with<_Up(*)[_Nm], _Up(*)[]> 24952: : true_type 24952: { }; 24952: 24952: template 24952: struct __sp_compatible_with<_Up(*)[_Nm], const _Up(*)[]> 24952: : true_type 24952: { }; 24952: 24952: template 24952: struct __sp_compatible_with<_Up(*)[_Nm], volatile _Up(*)[]> 24952: : true_type 24952: { }; 24952: 24952: template 24952: struct __sp_compatible_with<_Up(*)[_Nm], const volatile _Up(*)[]> 24952: : true_type 24952: { }; 24952: 24952: 24952: template 24952: struct __sp_is_constructible_arrN 24952: : false_type 24952: { }; 24952: 24952: template 24952: struct __sp_is_constructible_arrN<_Up, _Nm, _Yp, __void_t<_Yp[_Nm]>> 24952: : is_convertible<_Yp(*)[_Nm], _Up(*)[_Nm]>::type 24952: { }; 24952: 24952: 24952: template 24952: struct __sp_is_constructible_arr 24952: : false_type 24952: { }; 24952: 24952: template 24952: struct __sp_is_constructible_arr<_Up, _Yp, __void_t<_Yp[]>> 24952: : is_convertible<_Yp(*)[], _Up(*)[]>::type 24952: { }; 24952: 24952: 24952: template 24952: struct __sp_is_constructible; 24952: 24952: 24952: template 24952: struct __sp_is_constructible<_Up[_Nm], _Yp> 24952: : __sp_is_constructible_arrN<_Up, _Nm, _Yp>::type 24952: { }; 24952: 24952: 24952: template 24952: struct __sp_is_constructible<_Up[], _Yp> 24952: : __sp_is_constructible_arr<_Up, _Yp>::type 24952: { }; 24952: 24952: 24952: template 24952: struct __sp_is_constructible 24952: : is_convertible<_Yp*, _Tp*>::type 24952: { }; 24952: 24952: 24952: 24952: template::value, bool = is_void<_Tp>::value> 24952: class __shared_ptr_access 24952: { 24952: public: 24952: using element_type = _Tp; 24952: 24952: element_type& 24952: operator*() const noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) __builtin_unreachable(); } while (false); 24952: return *_M_get(); 24952: } 24952: 24952: element_type* 24952: operator->() const noexcept 24952: { 24952: ; 24952: return _M_get(); 24952: } 24952: 24952: private: 24952: element_type* 24952: _M_get() const noexcept 24952: { return static_cast*>(this)->get(); } 24952: }; 24952: 24952: 24952: template 24952: class __shared_ptr_access<_Tp, _Lp, false, true> 24952: { 24952: public: 24952: using element_type = _Tp; 24952: 24952: element_type* 24952: operator->() const noexcept 24952: { 24952: auto __ptr = static_cast*>(this)->get(); 24952: ; 24952: return __ptr; 24952: } 24952: }; 24952: 24952: 24952: template 24952: class __shared_ptr_access<_Tp, _Lp, true, false> 24952: { 24952: public: 24952: using element_type = typename remove_extent<_Tp>::type; 24952: # 1407 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 24952: element_type& 24952: operator[](ptrdiff_t __i) const noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) __builtin_unreachable(); } while (false); 24952: do { if (std::__is_constant_evaluated() && !bool(!extent<_Tp>::value || __i < extent<_Tp>::value)) __builtin_unreachable(); } while (false); 24952: return _M_get()[__i]; 24952: } 24952: 24952: private: 24952: element_type* 24952: _M_get() const noexcept 24952: { return static_cast*>(this)->get(); } 24952: }; 24952: 24952: template 24952: class __shared_ptr 24952: : public __shared_ptr_access<_Tp, _Lp> 24952: { 24952: public: 24952: using element_type = typename remove_extent<_Tp>::type; 24952: 24952: private: 24952: 24952: template 24952: using _SafeConv 24952: = typename enable_if<__sp_is_constructible<_Tp, _Yp>::value>::type; 24952: 24952: 24952: template 24952: using _Compatible = typename 24952: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 24952: 24952: 24952: template 24952: using _Assignable = _Compatible<_Yp, __shared_ptr&>; 24952: 24952: 24952: template::pointer> 24952: using _UniqCompatible = __enable_if_t<__and_< 24952: __sp_compatible_with<_Yp*, _Tp*>, 24952: is_convertible<_Ptr, element_type*>, 24952: is_move_constructible<_Del> 24952: >::value, _Res>; 24952: 24952: 24952: template 24952: using _UniqAssignable = _UniqCompatible<_Yp, _Del, __shared_ptr&>; 24952: 24952: public: 24952: 24952: 24952: using weak_type = __weak_ptr<_Tp, _Lp>; 24952: 24952: 24952: constexpr __shared_ptr() noexcept 24952: : _M_ptr(0), _M_refcount() 24952: { } 24952: 24952: template> 24952: explicit 24952: __shared_ptr(_Yp* __p) 24952: : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) 24952: { 24952: static_assert( !is_void<_Yp>::value, "incomplete type" ); 24952: static_assert( sizeof(_Yp) > 0, "incomplete type" ); 24952: _M_enable_shared_from_this_with(__p); 24952: } 24952: 24952: template> 24952: __shared_ptr(_Yp* __p, _Deleter __d) 24952: : _M_ptr(__p), _M_refcount(__p, std::move(__d)) 24952: { 24952: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 24952: "deleter expression d(p) is well-formed"); 24952: _M_enable_shared_from_this_with(__p); 24952: } 24952: 24952: template> 24952: __shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 24952: : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) 24952: { 24952: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 24952: "deleter expression d(p) is well-formed"); 24952: _M_enable_shared_from_this_with(__p); 24952: } 24952: 24952: template 24952: __shared_ptr(nullptr_t __p, _Deleter __d) 24952: : _M_ptr(0), _M_refcount(__p, std::move(__d)) 24952: { } 24952: 24952: template 24952: __shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 24952: : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) 24952: { } 24952: 24952: 24952: template 24952: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r, 24952: element_type* __p) noexcept 24952: : _M_ptr(__p), _M_refcount(__r._M_refcount) 24952: { } 24952: 24952: 24952: template 24952: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r, 24952: element_type* __p) noexcept 24952: : _M_ptr(__p), _M_refcount() 24952: { 24952: _M_refcount._M_swap(__r._M_refcount); 24952: __r._M_ptr = nullptr; 24952: } 24952: 24952: __shared_ptr(const __shared_ptr&) noexcept = default; 24952: __shared_ptr& operator=(const __shared_ptr&) noexcept = default; 24952: ~__shared_ptr() = default; 24952: 24952: template> 24952: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 24952: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 24952: { } 24952: 24952: __shared_ptr(__shared_ptr&& __r) noexcept 24952: : _M_ptr(__r._M_ptr), _M_refcount() 24952: { 24952: _M_refcount._M_swap(__r._M_refcount); 24952: __r._M_ptr = nullptr; 24952: } 24952: 24952: template> 24952: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept 24952: : _M_ptr(__r._M_ptr), _M_refcount() 24952: { 24952: _M_refcount._M_swap(__r._M_refcount); 24952: __r._M_ptr = nullptr; 24952: } 24952: 24952: template> 24952: explicit __shared_ptr(const __weak_ptr<_Yp, _Lp>& __r) 24952: : _M_refcount(__r._M_refcount) 24952: { 24952: 24952: 24952: _M_ptr = __r._M_ptr; 24952: } 24952: 24952: 24952: template> 24952: __shared_ptr(unique_ptr<_Yp, _Del>&& __r) 24952: : _M_ptr(__r.get()), _M_refcount() 24952: { 24952: auto __raw = __to_address(__r.get()); 24952: _M_refcount = __shared_count<_Lp>(std::move(__r)); 24952: _M_enable_shared_from_this_with(__raw); 24952: } 24952: # 1585 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: template> 24952: __shared_ptr(auto_ptr<_Yp>&& __r); 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: constexpr __shared_ptr(nullptr_t) noexcept : __shared_ptr() { } 24952: 24952: template 24952: _Assignable<_Yp> 24952: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 24952: { 24952: _M_ptr = __r._M_ptr; 24952: _M_refcount = __r._M_refcount; 24952: return *this; 24952: } 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: template 24952: _Assignable<_Yp> 24952: operator=(auto_ptr<_Yp>&& __r) 24952: { 24952: __shared_ptr(std::move(__r)).swap(*this); 24952: return *this; 24952: } 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: __shared_ptr& 24952: operator=(__shared_ptr&& __r) noexcept 24952: { 24952: __shared_ptr(std::move(__r)).swap(*this); 24952: return *this; 24952: } 24952: 24952: template 24952: _Assignable<_Yp> 24952: operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept 24952: { 24952: __shared_ptr(std::move(__r)).swap(*this); 24952: return *this; 24952: } 24952: 24952: template 24952: _UniqAssignable<_Yp, _Del> 24952: operator=(unique_ptr<_Yp, _Del>&& __r) 24952: { 24952: __shared_ptr(std::move(__r)).swap(*this); 24952: return *this; 24952: } 24952: 24952: void 24952: reset() noexcept 24952: { __shared_ptr().swap(*this); } 24952: 24952: template 24952: _SafeConv<_Yp> 24952: reset(_Yp* __p) 24952: { 24952: 24952: do { if (std::__is_constant_evaluated() && !bool(__p == nullptr || __p != _M_ptr)) __builtin_unreachable(); } while (false); 24952: __shared_ptr(__p).swap(*this); 24952: } 24952: 24952: template 24952: _SafeConv<_Yp> 24952: reset(_Yp* __p, _Deleter __d) 24952: { __shared_ptr(__p, std::move(__d)).swap(*this); } 24952: 24952: template 24952: _SafeConv<_Yp> 24952: reset(_Yp* __p, _Deleter __d, _Alloc __a) 24952: { __shared_ptr(__p, std::move(__d), std::move(__a)).swap(*this); } 24952: 24952: 24952: element_type* 24952: get() const noexcept 24952: { return _M_ptr; } 24952: 24952: 24952: explicit operator bool() const noexcept 24952: { return _M_ptr != nullptr; } 24952: 24952: 24952: bool 24952: unique() const noexcept 24952: { return _M_refcount._M_unique(); } 24952: 24952: 24952: long 24952: use_count() const noexcept 24952: { return _M_refcount._M_get_use_count(); } 24952: 24952: 24952: void 24952: swap(__shared_ptr<_Tp, _Lp>& __other) noexcept 24952: { 24952: std::swap(_M_ptr, __other._M_ptr); 24952: _M_refcount._M_swap(__other._M_refcount); 24952: } 24952: # 1697 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 24952: template 24952: bool 24952: owner_before(__shared_ptr<_Tp1, _Lp> const& __rhs) const noexcept 24952: { return _M_refcount._M_less(__rhs._M_refcount); } 24952: 24952: template 24952: bool 24952: owner_before(__weak_ptr<_Tp1, _Lp> const& __rhs) const noexcept 24952: { return _M_refcount._M_less(__rhs._M_refcount); } 24952: 24952: 24952: protected: 24952: 24952: template 24952: __shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 24952: : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...) 24952: { _M_enable_shared_from_this_with(_M_ptr); } 24952: 24952: template 24952: friend __shared_ptr<_Tp1, _Lp1> 24952: __allocate_shared(const _Alloc& __a, _Args&&... __args); 24952: # 1731 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 24952: __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t) noexcept 24952: : _M_refcount(__r._M_refcount, std::nothrow) 24952: { 24952: _M_ptr = _M_refcount._M_get_use_count() ? __r._M_ptr : nullptr; 24952: } 24952: 24952: friend class __weak_ptr<_Tp, _Lp>; 24952: 24952: private: 24952: 24952: template 24952: using __esft_base_t = decltype(__enable_shared_from_this_base( 24952: std::declval&>(), 24952: std::declval<_Yp*>())); 24952: 24952: 24952: template 24952: struct __has_esft_base 24952: : false_type { }; 24952: 24952: template 24952: struct __has_esft_base<_Yp, __void_t<__esft_base_t<_Yp>>> 24952: : __not_> { }; 24952: 24952: template::type> 24952: typename enable_if<__has_esft_base<_Yp2>::value>::type 24952: _M_enable_shared_from_this_with(_Yp* __p) noexcept 24952: { 24952: if (auto __base = __enable_shared_from_this_base(_M_refcount, __p)) 24952: __base->_M_weak_assign(const_cast<_Yp2*>(__p), _M_refcount); 24952: } 24952: 24952: template::type> 24952: typename enable_if::value>::type 24952: _M_enable_shared_from_this_with(_Yp*) noexcept 24952: { } 24952: 24952: void* 24952: _M_get_deleter(const std::type_info& __ti) const noexcept 24952: { return _M_refcount._M_get_deleter(__ti); } 24952: 24952: template friend class __shared_ptr; 24952: template friend class __weak_ptr; 24952: 24952: template 24952: friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&) noexcept; 24952: 24952: template 24952: friend _Del* get_deleter(const shared_ptr<_Tp1>&) noexcept; 24952: 24952: 24952: 24952: 24952: 24952: element_type* _M_ptr; 24952: __shared_count<_Lp> _M_refcount; 24952: }; 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator==(const __shared_ptr<_Tp1, _Lp>& __a, 24952: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 24952: { return __a.get() == __b.get(); } 24952: 24952: template 24952: inline bool 24952: operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 24952: { return !__a; } 24952: # 1817 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 24952: template 24952: inline bool 24952: operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 24952: { return !__a; } 24952: 24952: template 24952: inline bool 24952: operator!=(const __shared_ptr<_Tp1, _Lp>& __a, 24952: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 24952: { return __a.get() != __b.get(); } 24952: 24952: template 24952: inline bool 24952: operator!=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 24952: { return (bool)__a; } 24952: 24952: template 24952: inline bool 24952: operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 24952: { return (bool)__a; } 24952: 24952: template 24952: inline bool 24952: operator<(const __shared_ptr<_Tp, _Lp>& __a, 24952: const __shared_ptr<_Up, _Lp>& __b) noexcept 24952: { 24952: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 24952: using _Up_elt = typename __shared_ptr<_Up, _Lp>::element_type; 24952: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 24952: return less<_Vp>()(__a.get(), __b.get()); 24952: } 24952: 24952: template 24952: inline bool 24952: operator<(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 24952: { 24952: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 24952: return less<_Tp_elt*>()(__a.get(), nullptr); 24952: } 24952: 24952: template 24952: inline bool 24952: operator<(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 24952: { 24952: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 24952: return less<_Tp_elt*>()(nullptr, __a.get()); 24952: } 24952: 24952: template 24952: inline bool 24952: operator<=(const __shared_ptr<_Tp1, _Lp>& __a, 24952: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 24952: { return !(__b < __a); } 24952: 24952: template 24952: inline bool 24952: operator<=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 24952: { return !(nullptr < __a); } 24952: 24952: template 24952: inline bool 24952: operator<=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 24952: { return !(__a < nullptr); } 24952: 24952: template 24952: inline bool 24952: operator>(const __shared_ptr<_Tp1, _Lp>& __a, 24952: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 24952: { return (__b < __a); } 24952: 24952: template 24952: inline bool 24952: operator>(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 24952: { return nullptr < __a; } 24952: 24952: template 24952: inline bool 24952: operator>(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 24952: { return __a < nullptr; } 24952: 24952: template 24952: inline bool 24952: operator>=(const __shared_ptr<_Tp1, _Lp>& __a, 24952: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 24952: { return !(__a < __b); } 24952: 24952: template 24952: inline bool 24952: operator>=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 24952: { return !(__a < nullptr); } 24952: 24952: template 24952: inline bool 24952: operator>=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 24952: { return !(nullptr < __a); } 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b) noexcept 24952: { __a.swap(__b); } 24952: # 1927 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 24952: template 24952: inline __shared_ptr<_Tp, _Lp> 24952: static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 24952: { 24952: using _Sp = __shared_ptr<_Tp, _Lp>; 24952: return _Sp(__r, static_cast(__r.get())); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline __shared_ptr<_Tp, _Lp> 24952: const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 24952: { 24952: using _Sp = __shared_ptr<_Tp, _Lp>; 24952: return _Sp(__r, const_cast(__r.get())); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline __shared_ptr<_Tp, _Lp> 24952: dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 24952: { 24952: using _Sp = __shared_ptr<_Tp, _Lp>; 24952: if (auto* __p = dynamic_cast(__r.get())) 24952: return _Sp(__r, __p); 24952: return _Sp(); 24952: } 24952: 24952: 24952: template 24952: inline __shared_ptr<_Tp, _Lp> 24952: reinterpret_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 24952: { 24952: using _Sp = __shared_ptr<_Tp, _Lp>; 24952: return _Sp(__r, reinterpret_cast(__r.get())); 24952: } 24952: 24952: 24952: template 24952: class __weak_ptr 24952: { 24952: template 24952: using _Compatible = typename 24952: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 24952: 24952: 24952: template 24952: using _Assignable = _Compatible<_Yp, __weak_ptr&>; 24952: 24952: public: 24952: using element_type = typename remove_extent<_Tp>::type; 24952: 24952: constexpr __weak_ptr() noexcept 24952: : _M_ptr(nullptr), _M_refcount() 24952: { } 24952: 24952: __weak_ptr(const __weak_ptr&) noexcept = default; 24952: 24952: ~__weak_ptr() = default; 24952: # 2009 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 24952: template> 24952: __weak_ptr(const __weak_ptr<_Yp, _Lp>& __r) noexcept 24952: : _M_refcount(__r._M_refcount) 24952: { _M_ptr = __r.lock().get(); } 24952: 24952: template> 24952: __weak_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 24952: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 24952: { } 24952: 24952: __weak_ptr(__weak_ptr&& __r) noexcept 24952: : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) 24952: { __r._M_ptr = nullptr; } 24952: 24952: template> 24952: __weak_ptr(__weak_ptr<_Yp, _Lp>&& __r) noexcept 24952: : _M_ptr(__r.lock().get()), _M_refcount(std::move(__r._M_refcount)) 24952: { __r._M_ptr = nullptr; } 24952: 24952: __weak_ptr& 24952: operator=(const __weak_ptr& __r) noexcept = default; 24952: 24952: template 24952: _Assignable<_Yp> 24952: operator=(const __weak_ptr<_Yp, _Lp>& __r) noexcept 24952: { 24952: _M_ptr = __r.lock().get(); 24952: _M_refcount = __r._M_refcount; 24952: return *this; 24952: } 24952: 24952: template 24952: _Assignable<_Yp> 24952: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 24952: { 24952: _M_ptr = __r._M_ptr; 24952: _M_refcount = __r._M_refcount; 24952: return *this; 24952: } 24952: 24952: __weak_ptr& 24952: operator=(__weak_ptr&& __r) noexcept 24952: { 24952: __weak_ptr(std::move(__r)).swap(*this); 24952: return *this; 24952: } 24952: 24952: template 24952: _Assignable<_Yp> 24952: operator=(__weak_ptr<_Yp, _Lp>&& __r) noexcept 24952: { 24952: _M_ptr = __r.lock().get(); 24952: _M_refcount = std::move(__r._M_refcount); 24952: __r._M_ptr = nullptr; 24952: return *this; 24952: } 24952: 24952: __shared_ptr<_Tp, _Lp> 24952: lock() const noexcept 24952: { return __shared_ptr(*this, std::nothrow); } 24952: 24952: long 24952: use_count() const noexcept 24952: { return _M_refcount._M_get_use_count(); } 24952: 24952: bool 24952: expired() const noexcept 24952: { return _M_refcount._M_get_use_count() == 0; } 24952: 24952: template 24952: bool 24952: owner_before(const __shared_ptr<_Tp1, _Lp>& __rhs) const noexcept 24952: { return _M_refcount._M_less(__rhs._M_refcount); } 24952: 24952: template 24952: bool 24952: owner_before(const __weak_ptr<_Tp1, _Lp>& __rhs) const noexcept 24952: { return _M_refcount._M_less(__rhs._M_refcount); } 24952: 24952: void 24952: reset() noexcept 24952: { __weak_ptr().swap(*this); } 24952: 24952: void 24952: swap(__weak_ptr& __s) noexcept 24952: { 24952: std::swap(_M_ptr, __s._M_ptr); 24952: _M_refcount._M_swap(__s._M_refcount); 24952: } 24952: 24952: private: 24952: 24952: void 24952: _M_assign(_Tp* __ptr, const __shared_count<_Lp>& __refcount) noexcept 24952: { 24952: if (use_count() == 0) 24952: { 24952: _M_ptr = __ptr; 24952: _M_refcount = __refcount; 24952: } 24952: } 24952: 24952: template friend class __shared_ptr; 24952: template friend class __weak_ptr; 24952: friend class __enable_shared_from_this<_Tp, _Lp>; 24952: friend class enable_shared_from_this<_Tp>; 24952: 24952: 24952: 24952: 24952: element_type* _M_ptr; 24952: __weak_count<_Lp> _M_refcount; 24952: }; 24952: 24952: 24952: template 24952: inline void 24952: swap(__weak_ptr<_Tp, _Lp>& __a, __weak_ptr<_Tp, _Lp>& __b) noexcept 24952: { __a.swap(__b); } 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: template 24952: struct _Sp_owner_less : public binary_function<_Tp, _Tp, bool> 24952: { 24952: bool 24952: operator()(const _Tp& __lhs, const _Tp& __rhs) const noexcept 24952: { return __lhs.owner_before(__rhs); } 24952: 24952: bool 24952: operator()(const _Tp& __lhs, const _Tp1& __rhs) const noexcept 24952: { return __lhs.owner_before(__rhs); } 24952: 24952: bool 24952: operator()(const _Tp1& __lhs, const _Tp& __rhs) const noexcept 24952: { return __lhs.owner_before(__rhs); } 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: template<> 24952: struct _Sp_owner_less 24952: { 24952: template 24952: auto 24952: operator()(const _Tp& __lhs, const _Up& __rhs) const noexcept 24952: -> decltype(__lhs.owner_before(__rhs)) 24952: { return __lhs.owner_before(__rhs); } 24952: 24952: using is_transparent = void; 24952: }; 24952: 24952: template 24952: struct owner_less<__shared_ptr<_Tp, _Lp>> 24952: : public _Sp_owner_less<__shared_ptr<_Tp, _Lp>, __weak_ptr<_Tp, _Lp>> 24952: { }; 24952: 24952: template 24952: struct owner_less<__weak_ptr<_Tp, _Lp>> 24952: : public _Sp_owner_less<__weak_ptr<_Tp, _Lp>, __shared_ptr<_Tp, _Lp>> 24952: { }; 24952: 24952: 24952: template 24952: class __enable_shared_from_this 24952: { 24952: protected: 24952: constexpr __enable_shared_from_this() noexcept { } 24952: 24952: __enable_shared_from_this(const __enable_shared_from_this&) noexcept { } 24952: 24952: __enable_shared_from_this& 24952: operator=(const __enable_shared_from_this&) noexcept 24952: { return *this; } 24952: 24952: ~__enable_shared_from_this() { } 24952: 24952: public: 24952: __shared_ptr<_Tp, _Lp> 24952: shared_from_this() 24952: { return __shared_ptr<_Tp, _Lp>(this->_M_weak_this); } 24952: 24952: __shared_ptr 24952: shared_from_this() const 24952: { return __shared_ptr(this->_M_weak_this); } 24952: 24952: 24952: __weak_ptr<_Tp, _Lp> 24952: weak_from_this() noexcept 24952: { return this->_M_weak_this; } 24952: 24952: __weak_ptr 24952: weak_from_this() const noexcept 24952: { return this->_M_weak_this; } 24952: 24952: 24952: private: 24952: template 24952: void 24952: _M_weak_assign(_Tp1* __p, const __shared_count<_Lp>& __n) const noexcept 24952: { _M_weak_this._M_assign(__p, __n); } 24952: 24952: friend const __enable_shared_from_this* 24952: __enable_shared_from_this_base(const __shared_count<_Lp>&, 24952: const __enable_shared_from_this* __p) 24952: { return __p; } 24952: 24952: template 24952: friend class __shared_ptr; 24952: 24952: mutable __weak_ptr<_Tp, _Lp> _M_weak_this; 24952: }; 24952: 24952: template 24952: inline __shared_ptr<_Tp, _Lp> 24952: __allocate_shared(const _Alloc& __a, _Args&&... __args) 24952: { 24952: static_assert(!is_array<_Tp>::value, "make_shared not supported"); 24952: 24952: return __shared_ptr<_Tp, _Lp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 24952: std::forward<_Args>(__args)...); 24952: } 24952: 24952: template 24952: inline __shared_ptr<_Tp, _Lp> 24952: __make_shared(_Args&&... __args) 24952: { 24952: typedef typename std::remove_const<_Tp>::type _Tp_nc; 24952: return std::__allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(), 24952: std::forward<_Args>(__args)...); 24952: } 24952: 24952: 24952: template 24952: struct hash<__shared_ptr<_Tp, _Lp>> 24952: : public __hash_base> 24952: { 24952: size_t 24952: operator()(const __shared_ptr<_Tp, _Lp>& __s) const noexcept 24952: { 24952: return hash::element_type*>()( 24952: __s.get()); 24952: } 24952: }; 24952: 24952: 24952: } 24952: # 54 "/usr/include/c++/13/bits/shared_ptr.h" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 68 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template 24952: inline std::basic_ostream<_Ch, _Tr>& 24952: operator<<(std::basic_ostream<_Ch, _Tr>& __os, 24952: const __shared_ptr<_Tp, _Lp>& __p) 24952: { 24952: __os << __p.get(); 24952: return __os; 24952: } 24952: 24952: template 24952: inline _Del* 24952: get_deleter(const __shared_ptr<_Tp, _Lp>& __p) noexcept 24952: { 24952: 24952: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline _Del* 24952: get_deleter(const shared_ptr<_Tp>& __p) noexcept 24952: { 24952: 24952: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 24952: 24952: 24952: 24952: } 24952: # 111 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template 24952: using _NonArray = __enable_if_t::value, _Tp>; 24952: # 174 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template 24952: class shared_ptr : public __shared_ptr<_Tp> 24952: { 24952: template 24952: using _Constructible = typename enable_if< 24952: is_constructible<__shared_ptr<_Tp>, _Args...>::value 24952: >::type; 24952: 24952: template 24952: using _Assignable = typename enable_if< 24952: is_assignable<__shared_ptr<_Tp>&, _Arg>::value, shared_ptr& 24952: >::type; 24952: 24952: public: 24952: 24952: 24952: using element_type = typename __shared_ptr<_Tp>::element_type; 24952: 24952: 24952: 24952: 24952: 24952: using weak_type = weak_ptr<_Tp>; 24952: 24952: 24952: 24952: 24952: 24952: constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { } 24952: 24952: shared_ptr(const shared_ptr&) noexcept = default; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: explicit 24952: shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { } 24952: # 229 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template> 24952: shared_ptr(_Yp* __p, _Deleter __d) 24952: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 24952: # 247 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template 24952: shared_ptr(nullptr_t __p, _Deleter __d) 24952: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 24952: # 266 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template> 24952: shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 24952: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 24952: # 286 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template 24952: shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 24952: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 24952: # 310 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template 24952: shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept 24952: : __shared_ptr<_Tp>(__r, __p) { } 24952: # 349 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template&>> 24952: shared_ptr(const shared_ptr<_Yp>& __r) noexcept 24952: : __shared_ptr<_Tp>(__r) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: shared_ptr(shared_ptr&& __r) noexcept 24952: : __shared_ptr<_Tp>(std::move(__r)) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template>> 24952: shared_ptr(shared_ptr<_Yp>&& __r) noexcept 24952: : __shared_ptr<_Tp>(std::move(__r)) { } 24952: # 379 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template&>> 24952: explicit shared_ptr(const weak_ptr<_Yp>& __r) 24952: : __shared_ptr<_Tp>(__r) { } 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: template>> 24952: shared_ptr(auto_ptr<_Yp>&& __r); 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: 24952: 24952: template>> 24952: shared_ptr(unique_ptr<_Yp, _Del>&& __r) 24952: : __shared_ptr<_Tp>(std::move(__r)) { } 24952: # 412 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { } 24952: 24952: shared_ptr& operator=(const shared_ptr&) noexcept = default; 24952: 24952: template 24952: _Assignable&> 24952: operator=(const shared_ptr<_Yp>& __r) noexcept 24952: { 24952: this->__shared_ptr<_Tp>::operator=(__r); 24952: return *this; 24952: } 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: template 24952: _Assignable> 24952: operator=(auto_ptr<_Yp>&& __r) 24952: { 24952: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 24952: return *this; 24952: } 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: shared_ptr& 24952: operator=(shared_ptr&& __r) noexcept 24952: { 24952: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 24952: return *this; 24952: } 24952: 24952: template 24952: _Assignable> 24952: operator=(shared_ptr<_Yp>&& __r) noexcept 24952: { 24952: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 24952: return *this; 24952: } 24952: 24952: template 24952: _Assignable> 24952: operator=(unique_ptr<_Yp, _Del>&& __r) 24952: { 24952: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 24952: return *this; 24952: } 24952: 24952: private: 24952: 24952: template 24952: shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 24952: : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...) 24952: { } 24952: 24952: template 24952: friend shared_ptr<_NonArray<_Yp>> 24952: allocate_shared(const _Alloc&, _Args&&...); 24952: 24952: template 24952: friend shared_ptr<_NonArray<_Yp>> 24952: make_shared(_Args&&...); 24952: # 535 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept 24952: : __shared_ptr<_Tp>(__r, std::nothrow) { } 24952: 24952: friend class weak_ptr<_Tp>; 24952: }; 24952: 24952: 24952: template 24952: shared_ptr(weak_ptr<_Tp>) -> shared_ptr<_Tp>; 24952: template 24952: shared_ptr(unique_ptr<_Tp, _Del>) -> shared_ptr<_Tp>; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 24952: { return __a.get() == __b.get(); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 24952: { return !__a; } 24952: # 580 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 24952: { return !__a; } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator!=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 24952: { return __a.get() != __b.get(); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator!=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 24952: { return (bool)__a; } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator!=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 24952: { return (bool)__a; } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator<(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 24952: { 24952: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 24952: using _Up_elt = typename shared_ptr<_Up>::element_type; 24952: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 24952: return less<_Vp>()(__a.get(), __b.get()); 24952: } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator<(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 24952: { 24952: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 24952: return less<_Tp_elt*>()(__a.get(), nullptr); 24952: } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator<(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 24952: { 24952: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 24952: return less<_Tp_elt*>()(nullptr, __a.get()); 24952: } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator<=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 24952: { return !(__b < __a); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator<=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 24952: { return !(nullptr < __a); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator<=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 24952: { return !(__a < nullptr); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator>(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 24952: { return (__b < __a); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator>(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 24952: { return nullptr < __a; } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator>(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 24952: { return __a < nullptr; } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator>=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 24952: { return !(__a < __b); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator>=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 24952: { return !(__a < nullptr); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] inline bool 24952: operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 24952: { return !(nullptr < __a); } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept 24952: { __a.swap(__b); } 24952: 24952: 24952: 24952: 24952: template 24952: inline shared_ptr<_Tp> 24952: static_pointer_cast(const shared_ptr<_Up>& __r) noexcept 24952: { 24952: using _Sp = shared_ptr<_Tp>; 24952: return _Sp(__r, static_cast(__r.get())); 24952: } 24952: 24952: 24952: template 24952: inline shared_ptr<_Tp> 24952: const_pointer_cast(const shared_ptr<_Up>& __r) noexcept 24952: { 24952: using _Sp = shared_ptr<_Tp>; 24952: return _Sp(__r, const_cast(__r.get())); 24952: } 24952: 24952: 24952: template 24952: inline shared_ptr<_Tp> 24952: dynamic_pointer_cast(const shared_ptr<_Up>& __r) noexcept 24952: { 24952: using _Sp = shared_ptr<_Tp>; 24952: if (auto* __p = dynamic_cast(__r.get())) 24952: return _Sp(__r, __p); 24952: return _Sp(); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: inline shared_ptr<_Tp> 24952: reinterpret_pointer_cast(const shared_ptr<_Up>& __r) noexcept 24952: { 24952: using _Sp = shared_ptr<_Tp>; 24952: return _Sp(__r, reinterpret_cast(__r.get())); 24952: } 24952: # 810 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template 24952: class weak_ptr : public __weak_ptr<_Tp> 24952: { 24952: template 24952: using _Constructible = typename enable_if< 24952: is_constructible<__weak_ptr<_Tp>, _Arg>::value 24952: >::type; 24952: 24952: template 24952: using _Assignable = typename enable_if< 24952: is_assignable<__weak_ptr<_Tp>&, _Arg>::value, weak_ptr& 24952: >::type; 24952: 24952: public: 24952: constexpr weak_ptr() noexcept = default; 24952: 24952: template&>> 24952: weak_ptr(const shared_ptr<_Yp>& __r) noexcept 24952: : __weak_ptr<_Tp>(__r) { } 24952: 24952: weak_ptr(const weak_ptr&) noexcept = default; 24952: 24952: template&>> 24952: weak_ptr(const weak_ptr<_Yp>& __r) noexcept 24952: : __weak_ptr<_Tp>(__r) { } 24952: 24952: weak_ptr(weak_ptr&&) noexcept = default; 24952: 24952: template>> 24952: weak_ptr(weak_ptr<_Yp>&& __r) noexcept 24952: : __weak_ptr<_Tp>(std::move(__r)) { } 24952: 24952: weak_ptr& 24952: operator=(const weak_ptr& __r) noexcept = default; 24952: 24952: template 24952: _Assignable&> 24952: operator=(const weak_ptr<_Yp>& __r) noexcept 24952: { 24952: this->__weak_ptr<_Tp>::operator=(__r); 24952: return *this; 24952: } 24952: 24952: template 24952: _Assignable&> 24952: operator=(const shared_ptr<_Yp>& __r) noexcept 24952: { 24952: this->__weak_ptr<_Tp>::operator=(__r); 24952: return *this; 24952: } 24952: 24952: weak_ptr& 24952: operator=(weak_ptr&& __r) noexcept = default; 24952: 24952: template 24952: _Assignable> 24952: operator=(weak_ptr<_Yp>&& __r) noexcept 24952: { 24952: this->__weak_ptr<_Tp>::operator=(std::move(__r)); 24952: return *this; 24952: } 24952: 24952: shared_ptr<_Tp> 24952: lock() const noexcept 24952: { return shared_ptr<_Tp>(*this, std::nothrow); } 24952: }; 24952: 24952: 24952: template 24952: weak_ptr(shared_ptr<_Tp>) -> weak_ptr<_Tp>; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept 24952: { __a.swap(__b); } 24952: 24952: 24952: 24952: template 24952: struct owner_less; 24952: 24952: 24952: template<> 24952: struct owner_less : _Sp_owner_less 24952: { }; 24952: 24952: 24952: template 24952: struct owner_less> 24952: : public _Sp_owner_less, weak_ptr<_Tp>> 24952: { }; 24952: 24952: 24952: template 24952: struct owner_less> 24952: : public _Sp_owner_less, shared_ptr<_Tp>> 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: class enable_shared_from_this 24952: { 24952: protected: 24952: constexpr enable_shared_from_this() noexcept { } 24952: 24952: enable_shared_from_this(const enable_shared_from_this&) noexcept { } 24952: 24952: enable_shared_from_this& 24952: operator=(const enable_shared_from_this&) noexcept 24952: { return *this; } 24952: 24952: ~enable_shared_from_this() { } 24952: 24952: public: 24952: shared_ptr<_Tp> 24952: shared_from_this() 24952: { return shared_ptr<_Tp>(this->_M_weak_this); } 24952: 24952: shared_ptr 24952: shared_from_this() const 24952: { return shared_ptr(this->_M_weak_this); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: weak_ptr<_Tp> 24952: weak_from_this() noexcept 24952: { return this->_M_weak_this; } 24952: 24952: weak_ptr 24952: weak_from_this() const noexcept 24952: { return this->_M_weak_this; } 24952: 24952: 24952: 24952: private: 24952: template 24952: void 24952: _M_weak_assign(_Tp1* __p, const __shared_count<>& __n) const noexcept 24952: { _M_weak_this._M_assign(__p, __n); } 24952: 24952: 24952: friend const enable_shared_from_this* 24952: __enable_shared_from_this_base(const __shared_count<>&, 24952: const enable_shared_from_this* __p) 24952: { return __p; } 24952: 24952: template 24952: friend class __shared_ptr; 24952: 24952: mutable weak_ptr<_Tp> _M_weak_this; 24952: }; 24952: # 988 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template 24952: inline shared_ptr<_NonArray<_Tp>> 24952: allocate_shared(const _Alloc& __a, _Args&&... __args) 24952: { 24952: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 24952: std::forward<_Args>(__args)...); 24952: } 24952: # 1003 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template 24952: inline shared_ptr<_NonArray<_Tp>> 24952: make_shared(_Args&&... __args) 24952: { 24952: using _Alloc = allocator; 24952: _Alloc __a; 24952: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 24952: std::forward<_Args>(__args)...); 24952: } 24952: # 1152 "/usr/include/c++/13/bits/shared_ptr.h" 3 24952: template 24952: struct hash> 24952: : public __hash_base> 24952: { 24952: size_t 24952: operator()(const shared_ptr<_Tp>& __s) const noexcept 24952: { 24952: return std::hash::element_type*>()(__s.get()); 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: namespace __detail::__variant 24952: { 24952: template struct _Never_valueless_alt; 24952: 24952: 24952: 24952: template 24952: struct _Never_valueless_alt> 24952: : std::true_type 24952: { }; 24952: 24952: 24952: 24952: template 24952: struct _Never_valueless_alt> 24952: : std::true_type 24952: { }; 24952: } 24952: 24952: 24952: 24952: } 24952: # 81 "/usr/include/c++/13/memory" 2 3 24952: # 1 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 1 3 24952: # 61 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 73 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 24952: struct _Sp_locker 24952: { 24952: _Sp_locker(const _Sp_locker&) = delete; 24952: _Sp_locker& operator=(const _Sp_locker&) = delete; 24952: 24952: 24952: explicit 24952: _Sp_locker(const void*) noexcept; 24952: _Sp_locker(const void*, const void*) noexcept; 24952: ~_Sp_locker(); 24952: 24952: private: 24952: unsigned char _M_key1; 24952: unsigned char _M_key2; 24952: 24952: 24952: 24952: }; 24952: # 100 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 24952: template 24952: inline bool 24952: atomic_is_lock_free(const __shared_ptr<_Tp, _Lp>*) 24952: { 24952: 24952: return __gthread_active_p() == 0; 24952: 24952: 24952: 24952: } 24952: 24952: template 24952: inline bool 24952: atomic_is_lock_free(const shared_ptr<_Tp>* __p) 24952: { return std::atomic_is_lock_free<_Tp, __default_lock_policy>(__p); } 24952: # 127 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 24952: template 24952: inline shared_ptr<_Tp> 24952: atomic_load_explicit(const shared_ptr<_Tp>* __p, memory_order) 24952: { 24952: _Sp_locker __lock{__p}; 24952: return *__p; 24952: } 24952: 24952: template 24952: inline shared_ptr<_Tp> 24952: atomic_load(const shared_ptr<_Tp>* __p) 24952: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 24952: 24952: template 24952: inline __shared_ptr<_Tp, _Lp> 24952: atomic_load_explicit(const __shared_ptr<_Tp, _Lp>* __p, memory_order) 24952: { 24952: _Sp_locker __lock{__p}; 24952: return *__p; 24952: } 24952: 24952: template 24952: inline __shared_ptr<_Tp, _Lp> 24952: atomic_load(const __shared_ptr<_Tp, _Lp>* __p) 24952: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 24952: # 163 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 24952: template 24952: inline void 24952: atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 24952: memory_order) 24952: { 24952: _Sp_locker __lock{__p}; 24952: __p->swap(__r); 24952: } 24952: 24952: template 24952: inline void 24952: atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 24952: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 24952: 24952: template 24952: inline void 24952: atomic_store_explicit(__shared_ptr<_Tp, _Lp>* __p, 24952: __shared_ptr<_Tp, _Lp> __r, 24952: memory_order) 24952: { 24952: _Sp_locker __lock{__p}; 24952: __p->swap(__r); 24952: } 24952: 24952: template 24952: inline void 24952: atomic_store(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 24952: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 24952: # 200 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 24952: template 24952: inline shared_ptr<_Tp> 24952: atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 24952: memory_order) 24952: { 24952: _Sp_locker __lock{__p}; 24952: __p->swap(__r); 24952: return __r; 24952: } 24952: 24952: template 24952: inline shared_ptr<_Tp> 24952: atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 24952: { 24952: return std::atomic_exchange_explicit(__p, std::move(__r), 24952: memory_order_seq_cst); 24952: } 24952: 24952: template 24952: inline __shared_ptr<_Tp, _Lp> 24952: atomic_exchange_explicit(__shared_ptr<_Tp, _Lp>* __p, 24952: __shared_ptr<_Tp, _Lp> __r, 24952: memory_order) 24952: { 24952: _Sp_locker __lock{__p}; 24952: __p->swap(__r); 24952: return __r; 24952: } 24952: 24952: template 24952: inline __shared_ptr<_Tp, _Lp> 24952: atomic_exchange(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 24952: { 24952: return std::atomic_exchange_explicit(__p, std::move(__r), 24952: memory_order_seq_cst); 24952: } 24952: # 249 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 24952: template 24952: bool 24952: atomic_compare_exchange_strong_explicit(shared_ptr<_Tp>* __p, 24952: shared_ptr<_Tp>* __v, 24952: shared_ptr<_Tp> __w, 24952: memory_order, 24952: memory_order) 24952: { 24952: shared_ptr<_Tp> __x; 24952: _Sp_locker __lock{__p, __v}; 24952: owner_less> __less; 24952: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 24952: { 24952: __x = std::move(*__p); 24952: *__p = std::move(__w); 24952: return true; 24952: } 24952: __x = std::move(*__v); 24952: *__v = *__p; 24952: return false; 24952: } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_strong(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 24952: shared_ptr<_Tp> __w) 24952: { 24952: return std::atomic_compare_exchange_strong_explicit(__p, __v, 24952: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 24952: } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_weak_explicit(shared_ptr<_Tp>* __p, 24952: shared_ptr<_Tp>* __v, 24952: shared_ptr<_Tp> __w, 24952: memory_order __success, 24952: memory_order __failure) 24952: { 24952: return std::atomic_compare_exchange_strong_explicit(__p, __v, 24952: std::move(__w), __success, __failure); 24952: } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_weak(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 24952: shared_ptr<_Tp> __w) 24952: { 24952: return std::atomic_compare_exchange_weak_explicit(__p, __v, 24952: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 24952: } 24952: 24952: template 24952: bool 24952: atomic_compare_exchange_strong_explicit(__shared_ptr<_Tp, _Lp>* __p, 24952: __shared_ptr<_Tp, _Lp>* __v, 24952: __shared_ptr<_Tp, _Lp> __w, 24952: memory_order, 24952: memory_order) 24952: { 24952: __shared_ptr<_Tp, _Lp> __x; 24952: _Sp_locker __lock{__p, __v}; 24952: owner_less<__shared_ptr<_Tp, _Lp>> __less; 24952: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 24952: { 24952: __x = std::move(*__p); 24952: *__p = std::move(__w); 24952: return true; 24952: } 24952: __x = std::move(*__v); 24952: *__v = *__p; 24952: return false; 24952: } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_strong(__shared_ptr<_Tp, _Lp>* __p, 24952: __shared_ptr<_Tp, _Lp>* __v, 24952: __shared_ptr<_Tp, _Lp> __w) 24952: { 24952: return std::atomic_compare_exchange_strong_explicit(__p, __v, 24952: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 24952: } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_weak_explicit(__shared_ptr<_Tp, _Lp>* __p, 24952: __shared_ptr<_Tp, _Lp>* __v, 24952: __shared_ptr<_Tp, _Lp> __w, 24952: memory_order __success, 24952: memory_order __failure) 24952: { 24952: return std::atomic_compare_exchange_strong_explicit(__p, __v, 24952: std::move(__w), __success, __failure); 24952: } 24952: 24952: template 24952: inline bool 24952: atomic_compare_exchange_weak(__shared_ptr<_Tp, _Lp>* __p, 24952: __shared_ptr<_Tp, _Lp>* __v, 24952: __shared_ptr<_Tp, _Lp> __w) 24952: { 24952: return std::atomic_compare_exchange_weak_explicit(__p, __v, 24952: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 24952: } 24952: # 850 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 24952: 24952: } 24952: # 82 "/usr/include/c++/13/memory" 2 3 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/backward/auto_ptr.h" 1 3 24952: # 36 "/usr/include/c++/13/backward/auto_ptr.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 47 "/usr/include/c++/13/backward/auto_ptr.h" 3 24952: template 24952: struct auto_ptr_ref 24952: { 24952: _Tp1* _M_ptr; 24952: 24952: explicit 24952: auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { } 24952: } __attribute__ ((__deprecated__)); 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: # 92 "/usr/include/c++/13/backward/auto_ptr.h" 3 24952: template 24952: class auto_ptr 24952: { 24952: private: 24952: _Tp* _M_ptr; 24952: 24952: public: 24952: 24952: typedef _Tp element_type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } 24952: # 118 "/usr/include/c++/13/backward/auto_ptr.h" 3 24952: auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } 24952: # 130 "/usr/include/c++/13/backward/auto_ptr.h" 3 24952: template 24952: auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } 24952: # 141 "/usr/include/c++/13/backward/auto_ptr.h" 3 24952: auto_ptr& 24952: operator=(auto_ptr& __a) throw() 24952: { 24952: reset(__a.release()); 24952: return *this; 24952: } 24952: # 158 "/usr/include/c++/13/backward/auto_ptr.h" 3 24952: template 24952: auto_ptr& 24952: operator=(auto_ptr<_Tp1>& __a) throw() 24952: { 24952: reset(__a.release()); 24952: return *this; 24952: } 24952: # 176 "/usr/include/c++/13/backward/auto_ptr.h" 3 24952: ~auto_ptr() { delete _M_ptr; } 24952: # 186 "/usr/include/c++/13/backward/auto_ptr.h" 3 24952: element_type& 24952: operator*() const throw() 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) __builtin_unreachable(); } while (false); 24952: return *_M_ptr; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: element_type* 24952: operator->() const throw() 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) __builtin_unreachable(); } while (false); 24952: return _M_ptr; 24952: } 24952: # 216 "/usr/include/c++/13/backward/auto_ptr.h" 3 24952: element_type* 24952: get() const throw() { return _M_ptr; } 24952: # 230 "/usr/include/c++/13/backward/auto_ptr.h" 3 24952: element_type* 24952: release() throw() 24952: { 24952: element_type* __tmp = _M_ptr; 24952: _M_ptr = 0; 24952: return __tmp; 24952: } 24952: # 245 "/usr/include/c++/13/backward/auto_ptr.h" 3 24952: void 24952: reset(element_type* __p = 0) throw() 24952: { 24952: if (__p != _M_ptr) 24952: { 24952: delete _M_ptr; 24952: _M_ptr = __p; 24952: } 24952: } 24952: # 270 "/usr/include/c++/13/backward/auto_ptr.h" 3 24952: auto_ptr(auto_ptr_ref __ref) throw() 24952: : _M_ptr(__ref._M_ptr) { } 24952: 24952: auto_ptr& 24952: operator=(auto_ptr_ref __ref) throw() 24952: { 24952: if (__ref._M_ptr != this->get()) 24952: { 24952: delete _M_ptr; 24952: _M_ptr = __ref._M_ptr; 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: operator auto_ptr_ref<_Tp1>() throw() 24952: { return auto_ptr_ref<_Tp1>(this->release()); } 24952: 24952: template 24952: operator auto_ptr<_Tp1>() throw() 24952: { return auto_ptr<_Tp1>(this->release()); } 24952: } __attribute__ ((__deprecated__ ("use '" "std::unique_ptr" "' instead"))); 24952: 24952: 24952: 24952: template<> 24952: class auto_ptr 24952: { 24952: public: 24952: typedef void element_type; 24952: } __attribute__ ((__deprecated__)); 24952: 24952: 24952: 24952: template<_Lock_policy _Lp> 24952: template 24952: inline 24952: __shared_count<_Lp>::__shared_count(std::auto_ptr<_Tp>&& __r) 24952: : _M_pi(new _Sp_counted_ptr<_Tp*, _Lp>(__r.get())) 24952: { __r.release(); } 24952: 24952: template 24952: template 24952: inline 24952: __shared_ptr<_Tp, _Lp>::__shared_ptr(std::auto_ptr<_Tp1>&& __r) 24952: : _M_ptr(__r.get()), _M_refcount() 24952: { 24952: 24952: static_assert( sizeof(_Tp1) > 0, "incomplete type" ); 24952: _Tp1* __tmp = __r.get(); 24952: _M_refcount = __shared_count<_Lp>(std::move(__r)); 24952: _M_enable_shared_from_this_with(__tmp); 24952: } 24952: 24952: template 24952: template 24952: inline 24952: shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Tp1>&& __r) 24952: : __shared_ptr<_Tp>(std::move(__r)) { } 24952: 24952: 24952: template 24952: template 24952: inline 24952: unique_ptr<_Tp, _Dp>::unique_ptr(auto_ptr<_Up>&& __u) noexcept 24952: : _M_t(__u.release(), deleter_type()) { } 24952: 24952: 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: } 24952: # 87 "/usr/include/c++/13/memory" 2 3 24952: # 101 "/usr/include/c++/13/memory" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 119 "/usr/include/c++/13/memory" 3 24952: enum class pointer_safety { relaxed, preferred, strict }; 24952: 24952: 24952: inline void 24952: declare_reachable(void*) { } 24952: 24952: 24952: template 24952: inline _Tp* 24952: undeclare_reachable(_Tp* __p) { return __p; } 24952: 24952: 24952: inline void 24952: declare_no_pointers(char*, size_t) { } 24952: 24952: 24952: inline void 24952: undeclare_no_pointers(char*, size_t) { } 24952: 24952: 24952: inline pointer_safety 24952: get_pointer_safety() noexcept { return pointer_safety::relaxed; } 24952: 24952: 24952: 24952: } 24952: # 154 "/usr/include/c++/13/memory" 3 24952: # 1 "/usr/include/c++/13/pstl/glue_memory_defs.h" 1 3 24952: # 13 "/usr/include/c++/13/pstl/glue_memory_defs.h" 3 24952: # 1 "/usr/include/c++/13/pstl/execution_defs.h" 1 3 24952: # 15 "/usr/include/c++/13/pstl/execution_defs.h" 3 24952: namespace __pstl 24952: { 24952: namespace execution 24952: { 24952: inline namespace v1 24952: { 24952: 24952: 24952: class sequenced_policy 24952: { 24952: public: 24952: 24952: static constexpr std::false_type 24952: __allow_unsequenced() 24952: { 24952: return std::false_type{}; 24952: } 24952: static constexpr std::false_type 24952: __allow_vector() 24952: { 24952: return std::false_type{}; 24952: } 24952: static constexpr std::false_type 24952: __allow_parallel() 24952: { 24952: return std::false_type{}; 24952: } 24952: }; 24952: 24952: 24952: class parallel_policy 24952: { 24952: public: 24952: 24952: static constexpr std::false_type 24952: __allow_unsequenced() 24952: { 24952: return std::false_type{}; 24952: } 24952: static constexpr std::false_type 24952: __allow_vector() 24952: { 24952: return std::false_type{}; 24952: } 24952: static constexpr std::true_type 24952: __allow_parallel() 24952: { 24952: return std::true_type{}; 24952: } 24952: }; 24952: 24952: 24952: class parallel_unsequenced_policy 24952: { 24952: public: 24952: 24952: static constexpr std::true_type 24952: __allow_unsequenced() 24952: { 24952: return std::true_type{}; 24952: } 24952: static constexpr std::true_type 24952: __allow_vector() 24952: { 24952: return std::true_type{}; 24952: } 24952: static constexpr std::true_type 24952: __allow_parallel() 24952: { 24952: return std::true_type{}; 24952: } 24952: }; 24952: 24952: class unsequenced_policy 24952: { 24952: public: 24952: 24952: static constexpr std::true_type 24952: __allow_unsequenced() 24952: { 24952: return std::true_type{}; 24952: } 24952: static constexpr std::true_type 24952: __allow_vector() 24952: { 24952: return std::true_type{}; 24952: } 24952: static constexpr std::false_type 24952: __allow_parallel() 24952: { 24952: return std::false_type{}; 24952: } 24952: }; 24952: 24952: 24952: inline constexpr sequenced_policy seq{}; 24952: inline constexpr parallel_policy par{}; 24952: inline constexpr parallel_unsequenced_policy par_unseq{}; 24952: inline constexpr unsequenced_policy unseq{}; 24952: 24952: 24952: template 24952: struct is_execution_policy : std::false_type 24952: { 24952: }; 24952: 24952: template <> 24952: struct is_execution_policy<__pstl::execution::sequenced_policy> : std::true_type 24952: { 24952: }; 24952: template <> 24952: struct is_execution_policy<__pstl::execution::parallel_policy> : std::true_type 24952: { 24952: }; 24952: template <> 24952: struct is_execution_policy<__pstl::execution::parallel_unsequenced_policy> : std::true_type 24952: { 24952: }; 24952: template <> 24952: struct is_execution_policy<__pstl::execution::unsequenced_policy> : std::true_type 24952: { 24952: }; 24952: 24952: 24952: template 24952: constexpr bool is_execution_policy_v = __pstl::execution::is_execution_policy<_Tp>::value; 24952: 24952: 24952: } 24952: } 24952: 24952: namespace __internal 24952: { 24952: template 24952: 24952: using __enable_if_execution_policy = 24952: typename std::enable_if<__pstl::execution::is_execution_policy>::value, 24952: _Tp>::type; 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: } 24952: # 14 "/usr/include/c++/13/pstl/glue_memory_defs.h" 2 3 24952: 24952: namespace std 24952: { 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: uninitialized_copy(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: uninitialized_copy_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: uninitialized_move(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: uninitialized_move_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: uninitialized_fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: uninitialized_fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, const _Tp& __value); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: destroy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: destroy_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: uninitialized_default_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: uninitialized_default_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: uninitialized_value_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: uninitialized_value_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 24952: 24952: } 24952: # 155 "/usr/include/c++/13/memory" 2 3 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: # 1 "/usr/include/c++/13/string" 1 3 24952: # 36 "/usr/include/c++/13/string" 3 24952: 24952: # 37 "/usr/include/c++/13/string" 3 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/char_traits.h" 1 3 24952: # 37 "/usr/include/c++/13/bits/char_traits.h" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/char_traits.h" 3 24952: # 46 "/usr/include/c++/13/bits/char_traits.h" 3 24952: # 1 "/usr/include/c++/13/cwchar" 1 3 24952: # 39 "/usr/include/c++/13/cwchar" 3 24952: 24952: # 40 "/usr/include/c++/13/cwchar" 3 24952: # 47 "/usr/include/c++/13/bits/char_traits.h" 2 3 24952: # 64 "/usr/include/c++/13/bits/char_traits.h" 3 24952: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: # 68 "/usr/include/c++/13/bits/char_traits.h" 3 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wstringop-overflow" 24952: #pragma GCC diagnostic ignored "-Wstringop-overread" 24952: #pragma GCC diagnostic ignored "-Warray-bounds" 24952: # 83 "/usr/include/c++/13/bits/char_traits.h" 3 24952: template 24952: struct _Char_types 24952: { 24952: typedef unsigned long int_type; 24952: 24952: typedef std::streampos pos_type; 24952: typedef std::streamoff off_type; 24952: typedef std::mbstate_t state_type; 24952: 24952: }; 24952: # 110 "/usr/include/c++/13/bits/char_traits.h" 3 24952: template 24952: struct char_traits 24952: { 24952: typedef _CharT char_type; 24952: typedef typename _Char_types<_CharT>::int_type int_type; 24952: 24952: typedef typename _Char_types<_CharT>::pos_type pos_type; 24952: typedef typename _Char_types<_CharT>::off_type off_type; 24952: typedef typename _Char_types<_CharT>::state_type state_type; 24952: 24952: 24952: 24952: 24952: 24952: static constexpr void 24952: assign(char_type& __c1, const char_type& __c2) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: __c1 = __c2; 24952: } 24952: 24952: static constexpr bool 24952: eq(const char_type& __c1, const char_type& __c2) 24952: { return __c1 == __c2; } 24952: 24952: static constexpr bool 24952: lt(const char_type& __c1, const char_type& __c2) 24952: { return __c1 < __c2; } 24952: 24952: static constexpr int 24952: compare(const char_type* __s1, const char_type* __s2, std::size_t __n); 24952: 24952: static constexpr std::size_t 24952: length(const char_type* __s); 24952: 24952: static constexpr const char_type* 24952: find(const char_type* __s, std::size_t __n, const char_type& __a); 24952: 24952: static char_type* 24952: move(char_type* __s1, const char_type* __s2, std::size_t __n); 24952: 24952: static char_type* 24952: copy(char_type* __s1, const char_type* __s2, std::size_t __n); 24952: 24952: static char_type* 24952: assign(char_type* __s, std::size_t __n, char_type __a); 24952: 24952: static constexpr char_type 24952: to_char_type(const int_type& __c) 24952: { return static_cast(__c); } 24952: 24952: static constexpr int_type 24952: to_int_type(const char_type& __c) 24952: { return static_cast(__c); } 24952: 24952: static constexpr bool 24952: eq_int_type(const int_type& __c1, const int_type& __c2) 24952: { return __c1 == __c2; } 24952: 24952: 24952: static constexpr int_type 24952: eof() 24952: { return static_cast(-1); } 24952: 24952: static constexpr int_type 24952: not_eof(const int_type& __c) 24952: { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } 24952: 24952: }; 24952: 24952: template 24952: constexpr int 24952: char_traits<_CharT>:: 24952: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) 24952: { 24952: for (std::size_t __i = 0; __i < __n; ++__i) 24952: if (lt(__s1[__i], __s2[__i])) 24952: return -1; 24952: else if (lt(__s2[__i], __s1[__i])) 24952: return 1; 24952: return 0; 24952: } 24952: 24952: template 24952: constexpr std::size_t 24952: char_traits<_CharT>:: 24952: length(const char_type* __p) 24952: { 24952: std::size_t __i = 0; 24952: while (!eq(__p[__i], char_type())) 24952: ++__i; 24952: return __i; 24952: } 24952: 24952: template 24952: constexpr const typename char_traits<_CharT>::char_type* 24952: char_traits<_CharT>:: 24952: find(const char_type* __s, std::size_t __n, const char_type& __a) 24952: { 24952: for (std::size_t __i = 0; __i < __n; ++__i) 24952: if (eq(__s[__i], __a)) 24952: return __s + __i; 24952: return 0; 24952: } 24952: 24952: template 24952: 24952: typename char_traits<_CharT>::char_type* 24952: char_traits<_CharT>:: 24952: move(char_type* __s1, const char_type* __s2, std::size_t __n) 24952: { 24952: if (__n == 0) 24952: return __s1; 24952: # 246 "/usr/include/c++/13/bits/char_traits.h" 3 24952: __builtin_memmove(__s1, __s2, __n * sizeof(char_type)); 24952: return __s1; 24952: } 24952: 24952: template 24952: 24952: typename char_traits<_CharT>::char_type* 24952: char_traits<_CharT>:: 24952: copy(char_type* __s1, const char_type* __s2, std::size_t __n) 24952: { 24952: if (__n == 0) 24952: return __s1; 24952: # 266 "/usr/include/c++/13/bits/char_traits.h" 3 24952: __builtin_memcpy(__s1, __s2, __n * sizeof(char_type)); 24952: return __s1; 24952: } 24952: 24952: template 24952: 24952: typename char_traits<_CharT>::char_type* 24952: char_traits<_CharT>:: 24952: assign(char_type* __s, std::size_t __n, char_type __a) 24952: { 24952: # 285 "/usr/include/c++/13/bits/char_traits.h" 3 24952: if constexpr (sizeof(_CharT) == 1 && __is_trivial(_CharT)) 24952: { 24952: if (__n) 24952: { 24952: unsigned char __c; 24952: __builtin_memcpy(&__c, __builtin_addressof(__a), 1); 24952: __builtin_memset(__s, __c, __n); 24952: } 24952: } 24952: else 24952: { 24952: for (std::size_t __i = 0; __i < __n; ++__i) 24952: __s[__i] = __a; 24952: } 24952: return __s; 24952: } 24952: 24952: 24952: } 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 330 "/usr/include/c++/13/bits/char_traits.h" 3 24952: template 24952: struct char_traits : public __gnu_cxx::char_traits<_CharT> 24952: { }; 24952: 24952: 24952: 24952: template<> 24952: struct char_traits 24952: { 24952: typedef char char_type; 24952: typedef int int_type; 24952: 24952: typedef streampos pos_type; 24952: typedef streamoff off_type; 24952: typedef mbstate_t state_type; 24952: 24952: 24952: 24952: 24952: 24952: static constexpr void 24952: assign(char_type& __c1, const char_type& __c2) noexcept 24952: { 24952: 24952: 24952: 24952: 24952: 24952: __c1 = __c2; 24952: } 24952: 24952: static constexpr bool 24952: eq(const char_type& __c1, const char_type& __c2) noexcept 24952: { return __c1 == __c2; } 24952: 24952: static constexpr bool 24952: lt(const char_type& __c1, const char_type& __c2) noexcept 24952: { 24952: 24952: return (static_cast(__c1) 24952: < static_cast(__c2)); 24952: } 24952: 24952: static constexpr int 24952: compare(const char_type* __s1, const char_type* __s2, size_t __n) 24952: { 24952: if (__n == 0) 24952: return 0; 24952: 24952: if (std::__is_constant_evaluated()) 24952: { 24952: for (size_t __i = 0; __i < __n; ++__i) 24952: if (lt(__s1[__i], __s2[__i])) 24952: return -1; 24952: else if (lt(__s2[__i], __s1[__i])) 24952: return 1; 24952: return 0; 24952: } 24952: 24952: return __builtin_memcmp(__s1, __s2, __n); 24952: } 24952: 24952: static constexpr size_t 24952: length(const char_type* __s) 24952: { 24952: 24952: if (std::__is_constant_evaluated()) 24952: return __gnu_cxx::char_traits::length(__s); 24952: 24952: return __builtin_strlen(__s); 24952: } 24952: 24952: static constexpr const char_type* 24952: find(const char_type* __s, size_t __n, const char_type& __a) 24952: { 24952: if (__n == 0) 24952: return 0; 24952: 24952: if (std::__is_constant_evaluated()) 24952: return __gnu_cxx::char_traits::find(__s, __n, __a); 24952: 24952: return static_cast(__builtin_memchr(__s, __a, __n)); 24952: } 24952: 24952: static char_type* 24952: move(char_type* __s1, const char_type* __s2, size_t __n) 24952: { 24952: if (__n == 0) 24952: return __s1; 24952: 24952: 24952: 24952: 24952: return static_cast(__builtin_memmove(__s1, __s2, __n)); 24952: } 24952: 24952: static char_type* 24952: copy(char_type* __s1, const char_type* __s2, size_t __n) 24952: { 24952: if (__n == 0) 24952: return __s1; 24952: 24952: 24952: 24952: 24952: return static_cast(__builtin_memcpy(__s1, __s2, __n)); 24952: } 24952: 24952: static char_type* 24952: assign(char_type* __s, size_t __n, char_type __a) 24952: { 24952: if (__n == 0) 24952: return __s; 24952: 24952: 24952: 24952: 24952: return static_cast(__builtin_memset(__s, __a, __n)); 24952: } 24952: 24952: static constexpr char_type 24952: to_char_type(const int_type& __c) noexcept 24952: { return static_cast(__c); } 24952: 24952: 24952: 24952: static constexpr int_type 24952: to_int_type(const char_type& __c) noexcept 24952: { return static_cast(static_cast(__c)); } 24952: 24952: static constexpr bool 24952: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 24952: { return __c1 == __c2; } 24952: 24952: 24952: static constexpr int_type 24952: eof() noexcept 24952: { return static_cast(-1); } 24952: 24952: static constexpr int_type 24952: not_eof(const int_type& __c) noexcept 24952: { return (__c == eof()) ? 0 : __c; } 24952: 24952: }; 24952: 24952: 24952: 24952: 24952: template<> 24952: struct char_traits 24952: { 24952: typedef wchar_t char_type; 24952: typedef wint_t int_type; 24952: 24952: typedef streamoff off_type; 24952: typedef wstreampos pos_type; 24952: typedef mbstate_t state_type; 24952: 24952: 24952: 24952: 24952: 24952: static constexpr void 24952: assign(char_type& __c1, const char_type& __c2) noexcept 24952: { 24952: 24952: 24952: 24952: 24952: 24952: __c1 = __c2; 24952: } 24952: 24952: static constexpr bool 24952: eq(const char_type& __c1, const char_type& __c2) noexcept 24952: { return __c1 == __c2; } 24952: 24952: static constexpr bool 24952: lt(const char_type& __c1, const char_type& __c2) noexcept 24952: { return __c1 < __c2; } 24952: 24952: static constexpr int 24952: compare(const char_type* __s1, const char_type* __s2, size_t __n) 24952: { 24952: if (__n == 0) 24952: return 0; 24952: 24952: if (std::__is_constant_evaluated()) 24952: return __gnu_cxx::char_traits::compare(__s1, __s2, __n); 24952: 24952: return wmemcmp(__s1, __s2, __n); 24952: } 24952: 24952: static constexpr size_t 24952: length(const char_type* __s) 24952: { 24952: 24952: if (std::__is_constant_evaluated()) 24952: return __gnu_cxx::char_traits::length(__s); 24952: 24952: return wcslen(__s); 24952: } 24952: 24952: static constexpr const char_type* 24952: find(const char_type* __s, size_t __n, const char_type& __a) 24952: { 24952: if (__n == 0) 24952: return 0; 24952: 24952: if (std::__is_constant_evaluated()) 24952: return __gnu_cxx::char_traits::find(__s, __n, __a); 24952: 24952: return wmemchr(__s, __a, __n); 24952: } 24952: 24952: static char_type* 24952: move(char_type* __s1, const char_type* __s2, size_t __n) 24952: { 24952: if (__n == 0) 24952: return __s1; 24952: 24952: 24952: 24952: 24952: return wmemmove(__s1, __s2, __n); 24952: } 24952: 24952: static char_type* 24952: copy(char_type* __s1, const char_type* __s2, size_t __n) 24952: { 24952: if (__n == 0) 24952: return __s1; 24952: 24952: 24952: 24952: 24952: return wmemcpy(__s1, __s2, __n); 24952: } 24952: 24952: static char_type* 24952: assign(char_type* __s, size_t __n, char_type __a) 24952: { 24952: if (__n == 0) 24952: return __s; 24952: 24952: 24952: 24952: 24952: return wmemset(__s, __a, __n); 24952: } 24952: 24952: static constexpr char_type 24952: to_char_type(const int_type& __c) noexcept 24952: { return char_type(__c); } 24952: 24952: static constexpr int_type 24952: to_int_type(const char_type& __c) noexcept 24952: { return int_type(__c); } 24952: 24952: static constexpr bool 24952: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 24952: { return __c1 == __c2; } 24952: 24952: 24952: static constexpr int_type 24952: eof() noexcept 24952: { return static_cast((0xffffffffu)); } 24952: 24952: static constexpr int_type 24952: not_eof(const int_type& __c) noexcept 24952: { return eq_int_type(__c, eof()) ? 0 : __c; } 24952: 24952: }; 24952: # 740 "/usr/include/c++/13/bits/char_traits.h" 3 24952: 24952: } 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template<> 24952: struct char_traits 24952: { 24952: typedef char16_t char_type; 24952: 24952: typedef short unsigned int int_type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef streamoff off_type; 24952: typedef u16streampos pos_type; 24952: typedef mbstate_t state_type; 24952: 24952: 24952: 24952: 24952: 24952: static constexpr void 24952: assign(char_type& __c1, const char_type& __c2) noexcept 24952: { 24952: 24952: 24952: 24952: 24952: 24952: __c1 = __c2; 24952: } 24952: 24952: static constexpr bool 24952: eq(const char_type& __c1, const char_type& __c2) noexcept 24952: { return __c1 == __c2; } 24952: 24952: static constexpr bool 24952: lt(const char_type& __c1, const char_type& __c2) noexcept 24952: { return __c1 < __c2; } 24952: 24952: static constexpr int 24952: compare(const char_type* __s1, const char_type* __s2, size_t __n) 24952: { 24952: for (size_t __i = 0; __i < __n; ++__i) 24952: if (lt(__s1[__i], __s2[__i])) 24952: return -1; 24952: else if (lt(__s2[__i], __s1[__i])) 24952: return 1; 24952: return 0; 24952: } 24952: 24952: static constexpr size_t 24952: length(const char_type* __s) 24952: { 24952: size_t __i = 0; 24952: while (!eq(__s[__i], char_type())) 24952: ++__i; 24952: return __i; 24952: } 24952: 24952: static constexpr const char_type* 24952: find(const char_type* __s, size_t __n, const char_type& __a) 24952: { 24952: for (size_t __i = 0; __i < __n; ++__i) 24952: if (eq(__s[__i], __a)) 24952: return __s + __i; 24952: return 0; 24952: } 24952: 24952: static char_type* 24952: move(char_type* __s1, const char_type* __s2, size_t __n) 24952: { 24952: if (__n == 0) 24952: return __s1; 24952: 24952: 24952: 24952: 24952: return (static_cast 24952: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 24952: } 24952: 24952: static char_type* 24952: copy(char_type* __s1, const char_type* __s2, size_t __n) 24952: { 24952: if (__n == 0) 24952: return __s1; 24952: 24952: 24952: 24952: 24952: return (static_cast 24952: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 24952: } 24952: 24952: static char_type* 24952: assign(char_type* __s, size_t __n, char_type __a) 24952: { 24952: for (size_t __i = 0; __i < __n; ++__i) 24952: assign(__s[__i], __a); 24952: return __s; 24952: } 24952: 24952: static constexpr char_type 24952: to_char_type(const int_type& __c) noexcept 24952: { return char_type(__c); } 24952: 24952: static constexpr bool 24952: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 24952: { return __c1 == __c2; } 24952: 24952: 24952: static constexpr int_type 24952: to_int_type(const char_type& __c) noexcept 24952: { return __c == eof() ? int_type(0xfffd) : int_type(__c); } 24952: 24952: static constexpr int_type 24952: eof() noexcept 24952: { return static_cast(-1); } 24952: 24952: static constexpr int_type 24952: not_eof(const int_type& __c) noexcept 24952: { return eq_int_type(__c, eof()) ? 0 : __c; } 24952: 24952: 24952: 24952: 24952: 24952: }; 24952: 24952: template<> 24952: struct char_traits 24952: { 24952: typedef char32_t char_type; 24952: 24952: typedef unsigned int int_type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef streamoff off_type; 24952: typedef u32streampos pos_type; 24952: typedef mbstate_t state_type; 24952: 24952: 24952: 24952: 24952: 24952: static constexpr void 24952: assign(char_type& __c1, const char_type& __c2) noexcept 24952: { 24952: 24952: 24952: 24952: 24952: 24952: __c1 = __c2; 24952: } 24952: 24952: static constexpr bool 24952: eq(const char_type& __c1, const char_type& __c2) noexcept 24952: { return __c1 == __c2; } 24952: 24952: static constexpr bool 24952: lt(const char_type& __c1, const char_type& __c2) noexcept 24952: { return __c1 < __c2; } 24952: 24952: static constexpr int 24952: compare(const char_type* __s1, const char_type* __s2, size_t __n) 24952: { 24952: for (size_t __i = 0; __i < __n; ++__i) 24952: if (lt(__s1[__i], __s2[__i])) 24952: return -1; 24952: else if (lt(__s2[__i], __s1[__i])) 24952: return 1; 24952: return 0; 24952: } 24952: 24952: static constexpr size_t 24952: length(const char_type* __s) 24952: { 24952: size_t __i = 0; 24952: while (!eq(__s[__i], char_type())) 24952: ++__i; 24952: return __i; 24952: } 24952: 24952: static constexpr const char_type* 24952: find(const char_type* __s, size_t __n, const char_type& __a) 24952: { 24952: for (size_t __i = 0; __i < __n; ++__i) 24952: if (eq(__s[__i], __a)) 24952: return __s + __i; 24952: return 0; 24952: } 24952: 24952: static char_type* 24952: move(char_type* __s1, const char_type* __s2, size_t __n) 24952: { 24952: if (__n == 0) 24952: return __s1; 24952: 24952: 24952: 24952: 24952: return (static_cast 24952: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 24952: } 24952: 24952: static char_type* 24952: copy(char_type* __s1, const char_type* __s2, size_t __n) 24952: { 24952: if (__n == 0) 24952: return __s1; 24952: 24952: 24952: 24952: 24952: return (static_cast 24952: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 24952: } 24952: 24952: static char_type* 24952: assign(char_type* __s, size_t __n, char_type __a) 24952: { 24952: for (size_t __i = 0; __i < __n; ++__i) 24952: assign(__s[__i], __a); 24952: return __s; 24952: } 24952: 24952: static constexpr char_type 24952: to_char_type(const int_type& __c) noexcept 24952: { return char_type(__c); } 24952: 24952: static constexpr int_type 24952: to_int_type(const char_type& __c) noexcept 24952: { return int_type(__c); } 24952: 24952: static constexpr bool 24952: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 24952: { return __c1 == __c2; } 24952: 24952: 24952: static constexpr int_type 24952: eof() noexcept 24952: { return static_cast(-1); } 24952: 24952: static constexpr int_type 24952: not_eof(const int_type& __c) noexcept 24952: { return eq_int_type(__c, eof()) ? 0 : __c; } 24952: 24952: }; 24952: # 1022 "/usr/include/c++/13/bits/char_traits.h" 3 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: } 24952: # 43 "/usr/include/c++/13/string" 2 3 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/localefwd.h" 1 3 24952: # 37 "/usr/include/c++/13/bits/localefwd.h" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/localefwd.h" 3 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++locale.h" 1 3 24952: # 39 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++locale.h" 3 24952: 24952: # 40 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++locale.h" 3 24952: 24952: # 1 "/usr/include/c++/13/clocale" 1 3 24952: # 39 "/usr/include/c++/13/clocale" 3 24952: 24952: # 40 "/usr/include/c++/13/clocale" 3 24952: 24952: 24952: # 1 "/usr/include/locale.h" 1 3 4 24952: # 28 "/usr/include/locale.h" 3 4 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 29 "/usr/include/locale.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/locale.h" 1 3 4 24952: # 30 "/usr/include/locale.h" 2 3 4 24952: 24952: extern "C" { 24952: # 51 "/usr/include/locale.h" 3 4 24952: struct lconv 24952: { 24952: 24952: 24952: char *decimal_point; 24952: char *thousands_sep; 24952: 24952: 24952: 24952: 24952: 24952: char *grouping; 24952: 24952: 24952: 24952: 24952: 24952: char *int_curr_symbol; 24952: char *currency_symbol; 24952: char *mon_decimal_point; 24952: char *mon_thousands_sep; 24952: char *mon_grouping; 24952: char *positive_sign; 24952: char *negative_sign; 24952: char int_frac_digits; 24952: char frac_digits; 24952: 24952: char p_cs_precedes; 24952: 24952: char p_sep_by_space; 24952: 24952: char n_cs_precedes; 24952: 24952: char n_sep_by_space; 24952: 24952: 24952: 24952: 24952: 24952: 24952: char p_sign_posn; 24952: char n_sign_posn; 24952: 24952: 24952: char int_p_cs_precedes; 24952: 24952: char int_p_sep_by_space; 24952: 24952: char int_n_cs_precedes; 24952: 24952: char int_n_sep_by_space; 24952: 24952: 24952: 24952: 24952: 24952: 24952: char int_p_sign_posn; 24952: char int_n_sign_posn; 24952: # 118 "/usr/include/locale.h" 3 4 24952: }; 24952: 24952: 24952: 24952: extern char *setlocale (int __category, const char *__locale) noexcept (true); 24952: 24952: 24952: extern struct lconv *localeconv (void) noexcept (true); 24952: # 141 "/usr/include/locale.h" 3 4 24952: extern locale_t newlocale (int __category_mask, const char *__locale, 24952: locale_t __base) noexcept (true); 24952: # 176 "/usr/include/locale.h" 3 4 24952: extern locale_t duplocale (locale_t __dataset) noexcept (true); 24952: 24952: 24952: 24952: extern void freelocale (locale_t __dataset) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern locale_t uselocale (locale_t __dataset) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 43 "/usr/include/c++/13/clocale" 2 3 24952: # 51 "/usr/include/c++/13/clocale" 3 24952: namespace std 24952: { 24952: using ::lconv; 24952: using ::setlocale; 24952: using ::localeconv; 24952: } 24952: # 42 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++locale.h" 2 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: extern "C" __typeof(uselocale) __uselocale; 24952: 24952: 24952: } 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: typedef __locale_t __c_locale; 24952: # 73 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++locale.h" 3 24952: inline int 24952: __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), 24952: char* __out, 24952: const int __size __attribute__ ((__unused__)), 24952: const char* __fmt, ...) 24952: { 24952: 24952: __c_locale __old = __gnu_cxx::__uselocale(__cloc); 24952: # 93 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++locale.h" 3 24952: __builtin_va_list __args; 24952: __builtin_va_start(__args, __fmt); 24952: 24952: 24952: const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); 24952: 24952: 24952: 24952: 24952: __builtin_va_end(__args); 24952: 24952: 24952: __gnu_cxx::__uselocale(__old); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: return __ret; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 41 "/usr/include/c++/13/bits/localefwd.h" 2 3 24952: 24952: # 1 "/usr/include/c++/13/cctype" 1 3 24952: # 39 "/usr/include/c++/13/cctype" 3 24952: 24952: # 40 "/usr/include/c++/13/cctype" 3 24952: 24952: 24952: # 1 "/usr/include/ctype.h" 1 3 4 24952: # 28 "/usr/include/ctype.h" 3 4 24952: extern "C" { 24952: # 46 "/usr/include/ctype.h" 3 4 24952: enum 24952: { 24952: _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), 24952: _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), 24952: _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), 24952: _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), 24952: _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), 24952: _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), 24952: _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), 24952: _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), 24952: _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), 24952: _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), 24952: _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), 24952: _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) 24952: }; 24952: # 79 "/usr/include/ctype.h" 3 4 24952: extern const unsigned short int **__ctype_b_loc (void) 24952: noexcept (true) __attribute__ ((__const__)); 24952: extern const __int32_t **__ctype_tolower_loc (void) 24952: noexcept (true) __attribute__ ((__const__)); 24952: extern const __int32_t **__ctype_toupper_loc (void) 24952: noexcept (true) __attribute__ ((__const__)); 24952: # 108 "/usr/include/ctype.h" 3 4 24952: extern int isalnum (int) noexcept (true); 24952: extern int isalpha (int) noexcept (true); 24952: extern int iscntrl (int) noexcept (true); 24952: extern int isdigit (int) noexcept (true); 24952: extern int islower (int) noexcept (true); 24952: extern int isgraph (int) noexcept (true); 24952: extern int isprint (int) noexcept (true); 24952: extern int ispunct (int) noexcept (true); 24952: extern int isspace (int) noexcept (true); 24952: extern int isupper (int) noexcept (true); 24952: extern int isxdigit (int) noexcept (true); 24952: 24952: 24952: 24952: extern int tolower (int __c) noexcept (true); 24952: 24952: 24952: extern int toupper (int __c) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int isblank (int) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int isctype (int __c, int __mask) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int isascii (int __c) noexcept (true); 24952: 24952: 24952: 24952: extern int toascii (int __c) noexcept (true); 24952: 24952: 24952: 24952: extern int _toupper (int) noexcept (true); 24952: extern int _tolower (int) noexcept (true); 24952: # 251 "/usr/include/ctype.h" 3 4 24952: extern int isalnum_l (int, locale_t) noexcept (true); 24952: extern int isalpha_l (int, locale_t) noexcept (true); 24952: extern int iscntrl_l (int, locale_t) noexcept (true); 24952: extern int isdigit_l (int, locale_t) noexcept (true); 24952: extern int islower_l (int, locale_t) noexcept (true); 24952: extern int isgraph_l (int, locale_t) noexcept (true); 24952: extern int isprint_l (int, locale_t) noexcept (true); 24952: extern int ispunct_l (int, locale_t) noexcept (true); 24952: extern int isspace_l (int, locale_t) noexcept (true); 24952: extern int isupper_l (int, locale_t) noexcept (true); 24952: extern int isxdigit_l (int, locale_t) noexcept (true); 24952: 24952: extern int isblank_l (int, locale_t) noexcept (true); 24952: 24952: 24952: 24952: extern int __tolower_l (int __c, locale_t __l) noexcept (true); 24952: extern int tolower_l (int __c, locale_t __l) noexcept (true); 24952: 24952: 24952: extern int __toupper_l (int __c, locale_t __l) noexcept (true); 24952: extern int toupper_l (int __c, locale_t __l) noexcept (true); 24952: # 327 "/usr/include/ctype.h" 3 4 24952: } 24952: # 43 "/usr/include/c++/13/cctype" 2 3 24952: # 62 "/usr/include/c++/13/cctype" 3 24952: namespace std 24952: { 24952: using ::isalnum; 24952: using ::isalpha; 24952: using ::iscntrl; 24952: using ::isdigit; 24952: using ::isgraph; 24952: using ::islower; 24952: using ::isprint; 24952: using ::ispunct; 24952: using ::isspace; 24952: using ::isupper; 24952: using ::isxdigit; 24952: using ::tolower; 24952: using ::toupper; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace std 24952: { 24952: using ::isblank; 24952: } 24952: # 43 "/usr/include/c++/13/bits/localefwd.h" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 55 "/usr/include/c++/13/bits/localefwd.h" 3 24952: class locale; 24952: 24952: template 24952: bool 24952: has_facet(const locale&) throw(); 24952: 24952: template 24952: const _Facet& 24952: use_facet(const locale&); 24952: 24952: 24952: template 24952: bool 24952: isspace(_CharT, const locale&); 24952: 24952: template 24952: bool 24952: isprint(_CharT, const locale&); 24952: 24952: template 24952: bool 24952: iscntrl(_CharT, const locale&); 24952: 24952: template 24952: bool 24952: isupper(_CharT, const locale&); 24952: 24952: template 24952: bool 24952: islower(_CharT, const locale&); 24952: 24952: template 24952: bool 24952: isalpha(_CharT, const locale&); 24952: 24952: template 24952: bool 24952: isdigit(_CharT, const locale&); 24952: 24952: template 24952: bool 24952: ispunct(_CharT, const locale&); 24952: 24952: template 24952: bool 24952: isxdigit(_CharT, const locale&); 24952: 24952: template 24952: bool 24952: isalnum(_CharT, const locale&); 24952: 24952: template 24952: bool 24952: isgraph(_CharT, const locale&); 24952: 24952: 24952: template 24952: bool 24952: isblank(_CharT, const locale&); 24952: 24952: 24952: template 24952: _CharT 24952: toupper(_CharT, const locale&); 24952: 24952: template 24952: _CharT 24952: tolower(_CharT, const locale&); 24952: 24952: 24952: struct ctype_base; 24952: template 24952: class ctype; 24952: template<> class ctype; 24952: 24952: template<> class ctype; 24952: 24952: template 24952: class ctype_byname; 24952: 24952: 24952: class codecvt_base; 24952: template 24952: class codecvt; 24952: template<> class codecvt; 24952: 24952: template<> class codecvt; 24952: 24952: 24952: template<> class codecvt; 24952: template<> class codecvt; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: class codecvt_byname; 24952: 24952: 24952: 24952: template > 24952: class num_get; 24952: template > 24952: class num_put; 24952: 24952: namespace __cxx11 { 24952: template class numpunct; 24952: template class numpunct_byname; 24952: } 24952: 24952: namespace __cxx11 { 24952: 24952: template 24952: class collate; 24952: template 24952: class collate_byname; 24952: } 24952: 24952: 24952: class time_base; 24952: namespace __cxx11 { 24952: template > 24952: class time_get; 24952: template > 24952: class time_get_byname; 24952: } 24952: template > 24952: class time_put; 24952: template > 24952: class time_put_byname; 24952: 24952: 24952: class money_base; 24952: namespace __cxx11 { 24952: template > 24952: class money_get; 24952: template > 24952: class money_put; 24952: } 24952: namespace __cxx11 { 24952: template 24952: class moneypunct; 24952: template 24952: class moneypunct_byname; 24952: } 24952: 24952: 24952: struct messages_base; 24952: namespace __cxx11 { 24952: template 24952: class messages; 24952: template 24952: class messages_byname; 24952: } 24952: 24952: 24952: } 24952: # 46 "/usr/include/c++/13/string" 2 3 24952: # 1 "/usr/include/c++/13/bits/ostream_insert.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/ostream_insert.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/ostream_insert.h" 3 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/cxxabi_forced.h" 1 3 24952: # 34 "/usr/include/c++/13/bits/cxxabi_forced.h" 3 24952: 24952: # 35 "/usr/include/c++/13/bits/cxxabi_forced.h" 3 24952: 24952: #pragma GCC visibility push(default) 24952: 24952: 24952: namespace __cxxabiv1 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class __forced_unwind 24952: { 24952: virtual ~__forced_unwind() throw(); 24952: 24952: 24952: virtual void __pure_dummy() = 0; 24952: }; 24952: } 24952: 24952: 24952: #pragma GCC visibility pop 24952: # 37 "/usr/include/c++/13/bits/ostream_insert.h" 2 3 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: template 24952: inline void 24952: __ostream_write(basic_ostream<_CharT, _Traits>& __out, 24952: const _CharT* __s, streamsize __n) 24952: { 24952: typedef basic_ostream<_CharT, _Traits> __ostream_type; 24952: typedef typename __ostream_type::ios_base __ios_base; 24952: 24952: const streamsize __put = __out.rdbuf()->sputn(__s, __n); 24952: if (__put != __n) 24952: __out.setstate(__ios_base::badbit); 24952: } 24952: 24952: template 24952: inline void 24952: __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) 24952: { 24952: typedef basic_ostream<_CharT, _Traits> __ostream_type; 24952: typedef typename __ostream_type::ios_base __ios_base; 24952: 24952: const _CharT __c = __out.fill(); 24952: for (; __n > 0; --__n) 24952: { 24952: const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); 24952: if (_Traits::eq_int_type(__put, _Traits::eof())) 24952: { 24952: __out.setstate(__ios_base::badbit); 24952: break; 24952: } 24952: } 24952: } 24952: 24952: template 24952: basic_ostream<_CharT, _Traits>& 24952: __ostream_insert(basic_ostream<_CharT, _Traits>& __out, 24952: const _CharT* __s, streamsize __n) 24952: { 24952: typedef basic_ostream<_CharT, _Traits> __ostream_type; 24952: typedef typename __ostream_type::ios_base __ios_base; 24952: 24952: typename __ostream_type::sentry __cerb(__out); 24952: if (__cerb) 24952: { 24952: try 24952: { 24952: const streamsize __w = __out.width(); 24952: if (__w > __n) 24952: { 24952: const bool __left = ((__out.flags() 24952: & __ios_base::adjustfield) 24952: == __ios_base::left); 24952: if (!__left) 24952: __ostream_fill(__out, __w - __n); 24952: if (__out.good()) 24952: __ostream_write(__out, __s, __n); 24952: if (__left && __out.good()) 24952: __ostream_fill(__out, __w - __n); 24952: } 24952: else 24952: __ostream_write(__out, __s, __n); 24952: __out.width(0); 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: __out._M_setstate(__ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { __out._M_setstate(__ios_base::badbit); } 24952: } 24952: return __out; 24952: } 24952: 24952: 24952: 24952: 24952: extern template ostream& __ostream_insert(ostream&, const char*, streamsize); 24952: 24952: 24952: extern template wostream& __ostream_insert(wostream&, const wchar_t*, 24952: streamsize); 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 47 "/usr/include/c++/13/string" 2 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/basic_string.h" 1 3 24952: # 37 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/basic_string.h" 3 24952: # 47 "/usr/include/c++/13/bits/basic_string.h" 3 24952: # 1 "/usr/include/c++/13/string_view" 1 3 24952: # 36 "/usr/include/c++/13/string_view" 3 24952: 24952: # 37 "/usr/include/c++/13/string_view" 3 24952: # 56 "/usr/include/c++/13/string_view" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 69 "/usr/include/c++/13/string_view" 3 24952: constexpr size_t 24952: __sv_check(size_t __size, size_t __pos, const char* __s) 24952: { 24952: if (__pos > __size) 24952: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > __size " "(which is %zu)") 24952: , __s, __pos, __size); 24952: return __pos; 24952: } 24952: 24952: 24952: 24952: constexpr size_t 24952: __sv_limit(size_t __size, size_t __pos, size_t __off) noexcept 24952: { 24952: const bool __testoff = __off < __size - __pos; 24952: return __testoff ? __off : __size - __pos; 24952: } 24952: # 105 "/usr/include/c++/13/string_view" 3 24952: template> 24952: class basic_string_view 24952: { 24952: static_assert(!is_array_v<_CharT>); 24952: static_assert(is_trivial_v<_CharT> && is_standard_layout_v<_CharT>); 24952: static_assert(is_same_v<_CharT, typename _Traits::char_type>); 24952: 24952: public: 24952: 24952: 24952: using traits_type = _Traits; 24952: using value_type = _CharT; 24952: using pointer = value_type*; 24952: using const_pointer = const value_type*; 24952: using reference = value_type&; 24952: using const_reference = const value_type&; 24952: using const_iterator = const value_type*; 24952: using iterator = const_iterator; 24952: using const_reverse_iterator = std::reverse_iterator; 24952: using reverse_iterator = const_reverse_iterator; 24952: using size_type = size_t; 24952: using difference_type = ptrdiff_t; 24952: static constexpr size_type npos = size_type(-1); 24952: 24952: 24952: 24952: constexpr 24952: basic_string_view() noexcept 24952: : _M_len{0}, _M_str{nullptr} 24952: { } 24952: 24952: constexpr basic_string_view(const basic_string_view&) noexcept = default; 24952: 24952: [[__gnu__::__nonnull__]] 24952: constexpr 24952: basic_string_view(const _CharT* __str) noexcept 24952: : _M_len{traits_type::length(__str)}, 24952: _M_str{__str} 24952: { } 24952: 24952: constexpr 24952: basic_string_view(const _CharT* __str, size_type __len) noexcept 24952: : _M_len{__len}, _M_str{__str} 24952: { } 24952: # 182 "/usr/include/c++/13/string_view" 3 24952: constexpr basic_string_view& 24952: operator=(const basic_string_view&) noexcept = default; 24952: 24952: 24952: 24952: [[nodiscard]] 24952: constexpr const_iterator 24952: begin() const noexcept 24952: { return this->_M_str; } 24952: 24952: [[nodiscard]] 24952: constexpr const_iterator 24952: end() const noexcept 24952: { return this->_M_str + this->_M_len; } 24952: 24952: [[nodiscard]] 24952: constexpr const_iterator 24952: cbegin() const noexcept 24952: { return this->_M_str; } 24952: 24952: [[nodiscard]] 24952: constexpr const_iterator 24952: cend() const noexcept 24952: { return this->_M_str + this->_M_len; } 24952: 24952: [[nodiscard]] 24952: constexpr const_reverse_iterator 24952: rbegin() const noexcept 24952: { return const_reverse_iterator(this->end()); } 24952: 24952: [[nodiscard]] 24952: constexpr const_reverse_iterator 24952: rend() const noexcept 24952: { return const_reverse_iterator(this->begin()); } 24952: 24952: [[nodiscard]] 24952: constexpr const_reverse_iterator 24952: crbegin() const noexcept 24952: { return const_reverse_iterator(this->end()); } 24952: 24952: [[nodiscard]] 24952: constexpr const_reverse_iterator 24952: crend() const noexcept 24952: { return const_reverse_iterator(this->begin()); } 24952: 24952: 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: size() const noexcept 24952: { return this->_M_len; } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: length() const noexcept 24952: { return _M_len; } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: max_size() const noexcept 24952: { 24952: return (npos - sizeof(size_type) - sizeof(void*)) 24952: / sizeof(value_type) / 4; 24952: } 24952: 24952: [[nodiscard]] 24952: constexpr bool 24952: empty() const noexcept 24952: { return this->_M_len == 0; } 24952: 24952: 24952: 24952: [[nodiscard]] 24952: constexpr const_reference 24952: operator[](size_type __pos) const noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__pos < this->_M_len)) __builtin_unreachable(); } while (false); 24952: return *(this->_M_str + __pos); 24952: } 24952: 24952: [[nodiscard]] 24952: constexpr const_reference 24952: at(size_type __pos) const 24952: { 24952: if (__pos >= _M_len) 24952: __throw_out_of_range_fmt(("basic_string_view::at: __pos " "(which is %zu) >= this->size() " "(which is %zu)") 24952: 24952: , __pos, this->size()); 24952: return *(this->_M_str + __pos); 24952: } 24952: 24952: [[nodiscard]] 24952: constexpr const_reference 24952: front() const noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) __builtin_unreachable(); } while (false); 24952: return *this->_M_str; 24952: } 24952: 24952: [[nodiscard]] 24952: constexpr const_reference 24952: back() const noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) __builtin_unreachable(); } while (false); 24952: return *(this->_M_str + this->_M_len - 1); 24952: } 24952: 24952: [[nodiscard]] 24952: constexpr const_pointer 24952: data() const noexcept 24952: { return this->_M_str; } 24952: 24952: 24952: 24952: constexpr void 24952: remove_prefix(size_type __n) noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) __builtin_unreachable(); } while (false); 24952: this->_M_str += __n; 24952: this->_M_len -= __n; 24952: } 24952: 24952: constexpr void 24952: remove_suffix(size_type __n) noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) __builtin_unreachable(); } while (false); 24952: this->_M_len -= __n; 24952: } 24952: 24952: constexpr void 24952: swap(basic_string_view& __sv) noexcept 24952: { 24952: auto __tmp = *this; 24952: *this = __sv; 24952: __sv = __tmp; 24952: } 24952: 24952: 24952: 24952: 24952: size_type 24952: copy(_CharT* __str, size_type __n, size_type __pos = 0) const 24952: { 24952: ; 24952: __pos = std::__sv_check(size(), __pos, "basic_string_view::copy"); 24952: const size_type __rlen = std::min(__n, _M_len - __pos); 24952: 24952: 24952: traits_type::copy(__str, data() + __pos, __rlen); 24952: return __rlen; 24952: } 24952: 24952: [[nodiscard]] 24952: constexpr basic_string_view 24952: substr(size_type __pos = 0, size_type __n = npos) const noexcept(false) 24952: { 24952: __pos = std::__sv_check(size(), __pos, "basic_string_view::substr"); 24952: const size_type __rlen = std::min(__n, _M_len - __pos); 24952: return basic_string_view{_M_str + __pos, __rlen}; 24952: } 24952: 24952: [[nodiscard]] 24952: constexpr int 24952: compare(basic_string_view __str) const noexcept 24952: { 24952: const size_type __rlen = std::min(this->_M_len, __str._M_len); 24952: int __ret = traits_type::compare(this->_M_str, __str._M_str, __rlen); 24952: if (__ret == 0) 24952: __ret = _S_compare(this->_M_len, __str._M_len); 24952: return __ret; 24952: } 24952: 24952: [[nodiscard]] 24952: constexpr int 24952: compare(size_type __pos1, size_type __n1, basic_string_view __str) const 24952: { return this->substr(__pos1, __n1).compare(__str); } 24952: 24952: [[nodiscard]] 24952: constexpr int 24952: compare(size_type __pos1, size_type __n1, 24952: basic_string_view __str, size_type __pos2, size_type __n2) const 24952: { 24952: return this->substr(__pos1, __n1).compare(__str.substr(__pos2, __n2)); 24952: } 24952: 24952: [[nodiscard, __gnu__::__nonnull__]] 24952: constexpr int 24952: compare(const _CharT* __str) const noexcept 24952: { return this->compare(basic_string_view{__str}); } 24952: 24952: [[nodiscard, __gnu__::__nonnull__]] 24952: constexpr int 24952: compare(size_type __pos1, size_type __n1, const _CharT* __str) const 24952: { return this->substr(__pos1, __n1).compare(basic_string_view{__str}); } 24952: 24952: [[nodiscard]] 24952: constexpr int 24952: compare(size_type __pos1, size_type __n1, 24952: const _CharT* __str, size_type __n2) const noexcept(false) 24952: { 24952: return this->substr(__pos1, __n1) 24952: .compare(basic_string_view(__str, __n2)); 24952: } 24952: # 448 "/usr/include/c++/13/string_view" 3 24952: [[nodiscard]] 24952: constexpr size_type 24952: find(basic_string_view __str, size_type __pos = 0) const noexcept 24952: { return this->find(__str._M_str, __pos, __str._M_len); } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find(_CharT __c, size_type __pos = 0) const noexcept; 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 24952: 24952: [[nodiscard, __gnu__::__nonnull__]] 24952: constexpr size_type 24952: find(const _CharT* __str, size_type __pos = 0) const noexcept 24952: { return this->find(__str, __pos, traits_type::length(__str)); } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: rfind(basic_string_view __str, size_type __pos = npos) const noexcept 24952: { return this->rfind(__str._M_str, __pos, __str._M_len); } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: rfind(_CharT __c, size_type __pos = npos) const noexcept; 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 24952: 24952: [[nodiscard, __gnu__::__nonnull__]] 24952: constexpr size_type 24952: rfind(const _CharT* __str, size_type __pos = npos) const noexcept 24952: { return this->rfind(__str, __pos, traits_type::length(__str)); } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find_first_of(basic_string_view __str, size_type __pos = 0) const noexcept 24952: { return this->find_first_of(__str._M_str, __pos, __str._M_len); } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 24952: { return this->find(__c, __pos); } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find_first_of(const _CharT* __str, size_type __pos, 24952: size_type __n) const noexcept; 24952: 24952: [[nodiscard, __gnu__::__nonnull__]] 24952: constexpr size_type 24952: find_first_of(const _CharT* __str, size_type __pos = 0) const noexcept 24952: { return this->find_first_of(__str, __pos, traits_type::length(__str)); } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find_last_of(basic_string_view __str, 24952: size_type __pos = npos) const noexcept 24952: { return this->find_last_of(__str._M_str, __pos, __str._M_len); } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find_last_of(_CharT __c, size_type __pos=npos) const noexcept 24952: { return this->rfind(__c, __pos); } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find_last_of(const _CharT* __str, size_type __pos, 24952: size_type __n) const noexcept; 24952: 24952: [[nodiscard, __gnu__::__nonnull__]] 24952: constexpr size_type 24952: find_last_of(const _CharT* __str, size_type __pos = npos) const noexcept 24952: { return this->find_last_of(__str, __pos, traits_type::length(__str)); } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find_first_not_of(basic_string_view __str, 24952: size_type __pos = 0) const noexcept 24952: { return this->find_first_not_of(__str._M_str, __pos, __str._M_len); } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find_first_not_of(const _CharT* __str, 24952: size_type __pos, size_type __n) const noexcept; 24952: 24952: [[nodiscard, __gnu__::__nonnull__]] 24952: constexpr size_type 24952: find_first_not_of(const _CharT* __str, size_type __pos = 0) const noexcept 24952: { 24952: return this->find_first_not_of(__str, __pos, 24952: traits_type::length(__str)); 24952: } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find_last_not_of(basic_string_view __str, 24952: size_type __pos = npos) const noexcept 24952: { return this->find_last_not_of(__str._M_str, __pos, __str._M_len); } 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; 24952: 24952: [[nodiscard]] 24952: constexpr size_type 24952: find_last_not_of(const _CharT* __str, 24952: size_type __pos, size_type __n) const noexcept; 24952: 24952: [[nodiscard, __gnu__::__nonnull__]] 24952: constexpr size_type 24952: find_last_not_of(const _CharT* __str, 24952: size_type __pos = npos) const noexcept 24952: { 24952: return this->find_last_not_of(__str, __pos, 24952: traits_type::length(__str)); 24952: } 24952: 24952: private: 24952: 24952: static constexpr int 24952: _S_compare(size_type __n1, size_type __n2) noexcept 24952: { 24952: using __limits = __gnu_cxx::__int_traits; 24952: const difference_type __diff = __n1 - __n2; 24952: if (__diff > __limits::__max) 24952: return __limits::__max; 24952: if (__diff < __limits::__min) 24952: return __limits::__min; 24952: return static_cast(__diff); 24952: } 24952: 24952: size_t _M_len; 24952: const _CharT* _M_str; 24952: }; 24952: # 608 "/usr/include/c++/13/string_view" 3 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator==(basic_string_view<_CharT, _Traits> __x, 24952: basic_string_view<_CharT, _Traits> __y) noexcept 24952: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator==(basic_string_view<_CharT, _Traits> __x, 24952: __type_identity_t> __y) 24952: noexcept 24952: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 24952: # 641 "/usr/include/c++/13/string_view" 3 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator==(__type_identity_t> __x, 24952: basic_string_view<_CharT, _Traits> __y) noexcept 24952: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator!=(basic_string_view<_CharT, _Traits> __x, 24952: basic_string_view<_CharT, _Traits> __y) noexcept 24952: { return !(__x == __y); } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator!=(basic_string_view<_CharT, _Traits> __x, 24952: __type_identity_t> __y) 24952: noexcept 24952: { return !(__x == __y); } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator!=(__type_identity_t> __x, 24952: basic_string_view<_CharT, _Traits> __y) noexcept 24952: { return !(__x == __y); } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator< (basic_string_view<_CharT, _Traits> __x, 24952: basic_string_view<_CharT, _Traits> __y) noexcept 24952: { return __x.compare(__y) < 0; } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator< (basic_string_view<_CharT, _Traits> __x, 24952: __type_identity_t> __y) 24952: noexcept 24952: { return __x.compare(__y) < 0; } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator< (__type_identity_t> __x, 24952: basic_string_view<_CharT, _Traits> __y) noexcept 24952: { return __x.compare(__y) < 0; } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator> (basic_string_view<_CharT, _Traits> __x, 24952: basic_string_view<_CharT, _Traits> __y) noexcept 24952: { return __x.compare(__y) > 0; } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator> (basic_string_view<_CharT, _Traits> __x, 24952: __type_identity_t> __y) 24952: noexcept 24952: { return __x.compare(__y) > 0; } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator> (__type_identity_t> __x, 24952: basic_string_view<_CharT, _Traits> __y) noexcept 24952: { return __x.compare(__y) > 0; } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator<=(basic_string_view<_CharT, _Traits> __x, 24952: basic_string_view<_CharT, _Traits> __y) noexcept 24952: { return __x.compare(__y) <= 0; } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator<=(basic_string_view<_CharT, _Traits> __x, 24952: __type_identity_t> __y) 24952: noexcept 24952: { return __x.compare(__y) <= 0; } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator<=(__type_identity_t> __x, 24952: basic_string_view<_CharT, _Traits> __y) noexcept 24952: { return __x.compare(__y) <= 0; } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator>=(basic_string_view<_CharT, _Traits> __x, 24952: basic_string_view<_CharT, _Traits> __y) noexcept 24952: { return __x.compare(__y) >= 0; } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator>=(basic_string_view<_CharT, _Traits> __x, 24952: __type_identity_t> __y) 24952: noexcept 24952: { return __x.compare(__y) >= 0; } 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr bool 24952: operator>=(__type_identity_t> __x, 24952: basic_string_view<_CharT, _Traits> __y) noexcept 24952: { return __x.compare(__y) >= 0; } 24952: 24952: 24952: 24952: 24952: template 24952: inline basic_ostream<_CharT, _Traits>& 24952: operator<<(basic_ostream<_CharT, _Traits>& __os, 24952: basic_string_view<_CharT,_Traits> __str) 24952: { return __ostream_insert(__os, __str.data(), __str.size()); } 24952: 24952: 24952: 24952: 24952: using string_view = basic_string_view; 24952: using wstring_view = basic_string_view; 24952: 24952: 24952: 24952: using u16string_view = basic_string_view; 24952: using u32string_view = basic_string_view; 24952: 24952: 24952: 24952: template 24952: struct hash; 24952: 24952: template<> 24952: struct hash 24952: : public __hash_base 24952: { 24952: [[nodiscard]] 24952: size_t 24952: operator()(const string_view& __str) const noexcept 24952: { return std::_Hash_impl::hash(__str.data(), __str.length()); } 24952: }; 24952: 24952: template<> 24952: struct __is_fast_hash> : std::false_type 24952: { }; 24952: 24952: template<> 24952: struct hash 24952: : public __hash_base 24952: { 24952: [[nodiscard]] 24952: size_t 24952: operator()(const wstring_view& __s) const noexcept 24952: { return std::_Hash_impl::hash(__s.data(), 24952: __s.length() * sizeof(wchar_t)); } 24952: }; 24952: 24952: template<> 24952: struct __is_fast_hash> : std::false_type 24952: { }; 24952: # 828 "/usr/include/c++/13/string_view" 3 24952: template<> 24952: struct hash 24952: : public __hash_base 24952: { 24952: [[nodiscard]] 24952: size_t 24952: operator()(const u16string_view& __s) const noexcept 24952: { return std::_Hash_impl::hash(__s.data(), 24952: __s.length() * sizeof(char16_t)); } 24952: }; 24952: 24952: template<> 24952: struct __is_fast_hash> : std::false_type 24952: { }; 24952: 24952: template<> 24952: struct hash 24952: : public __hash_base 24952: { 24952: [[nodiscard]] 24952: size_t 24952: operator()(const u32string_view& __s) const noexcept 24952: { return std::_Hash_impl::hash(__s.data(), 24952: __s.length() * sizeof(char32_t)); } 24952: }; 24952: 24952: template<> 24952: struct __is_fast_hash> : std::false_type 24952: { }; 24952: 24952: inline namespace literals 24952: { 24952: inline namespace string_view_literals 24952: { 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wliteral-suffix" 24952: inline constexpr basic_string_view 24952: operator""sv(const char* __str, size_t __len) noexcept 24952: { return basic_string_view{__str, __len}; } 24952: 24952: inline constexpr basic_string_view 24952: operator""sv(const wchar_t* __str, size_t __len) noexcept 24952: { return basic_string_view{__str, __len}; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline constexpr basic_string_view 24952: operator""sv(const char16_t* __str, size_t __len) noexcept 24952: { return basic_string_view{__str, __len}; } 24952: 24952: inline constexpr basic_string_view 24952: operator""sv(const char32_t* __str, size_t __len) noexcept 24952: { return basic_string_view{__str, __len}; } 24952: 24952: #pragma GCC diagnostic pop 24952: } 24952: } 24952: # 904 "/usr/include/c++/13/string_view" 3 24952: 24952: } 24952: 24952: # 1 "/usr/include/c++/13/bits/string_view.tcc" 1 3 24952: # 37 "/usr/include/c++/13/bits/string_view.tcc" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/string_view.tcc" 3 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template 24952: constexpr typename basic_string_view<_CharT, _Traits>::size_type 24952: basic_string_view<_CharT, _Traits>:: 24952: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept 24952: { 24952: ; 24952: 24952: if (__n == 0) 24952: return __pos <= _M_len ? __pos : npos; 24952: if (__pos >= _M_len) 24952: return npos; 24952: 24952: const _CharT __elem0 = __str[0]; 24952: const _CharT* __first = _M_str + __pos; 24952: const _CharT* const __last = _M_str + _M_len; 24952: size_type __len = _M_len - __pos; 24952: 24952: while (__len >= __n) 24952: { 24952: 24952: __first = traits_type::find(__first, __len - __n + 1, __elem0); 24952: if (!__first) 24952: return npos; 24952: 24952: 24952: 24952: if (traits_type::compare(__first, __str, __n) == 0) 24952: return __first - _M_str; 24952: __len = __last - ++__first; 24952: } 24952: return npos; 24952: } 24952: 24952: template 24952: constexpr typename basic_string_view<_CharT, _Traits>::size_type 24952: basic_string_view<_CharT, _Traits>:: 24952: find(_CharT __c, size_type __pos) const noexcept 24952: { 24952: size_type __ret = npos; 24952: if (__pos < this->_M_len) 24952: { 24952: const size_type __n = this->_M_len - __pos; 24952: const _CharT* __p = traits_type::find(this->_M_str + __pos, __n, __c); 24952: if (__p) 24952: __ret = __p - this->_M_str; 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: constexpr typename basic_string_view<_CharT, _Traits>::size_type 24952: basic_string_view<_CharT, _Traits>:: 24952: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept 24952: { 24952: ; 24952: 24952: if (__n <= this->_M_len) 24952: { 24952: __pos = std::min(size_type(this->_M_len - __n), __pos); 24952: do 24952: { 24952: if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) 24952: return __pos; 24952: } 24952: while (__pos-- > 0); 24952: } 24952: return npos; 24952: } 24952: 24952: template 24952: constexpr typename basic_string_view<_CharT, _Traits>::size_type 24952: basic_string_view<_CharT, _Traits>:: 24952: rfind(_CharT __c, size_type __pos) const noexcept 24952: { 24952: size_type __size = this->_M_len; 24952: if (__size > 0) 24952: { 24952: if (--__size > __pos) 24952: __size = __pos; 24952: for (++__size; __size-- > 0; ) 24952: if (traits_type::eq(this->_M_str[__size], __c)) 24952: return __size; 24952: } 24952: return npos; 24952: } 24952: 24952: template 24952: constexpr typename basic_string_view<_CharT, _Traits>::size_type 24952: basic_string_view<_CharT, _Traits>:: 24952: find_first_of(const _CharT* __str, size_type __pos, 24952: size_type __n) const noexcept 24952: { 24952: ; 24952: for (; __n && __pos < this->_M_len; ++__pos) 24952: { 24952: const _CharT* __p = traits_type::find(__str, __n, 24952: this->_M_str[__pos]); 24952: if (__p) 24952: return __pos; 24952: } 24952: return npos; 24952: } 24952: 24952: template 24952: constexpr typename basic_string_view<_CharT, _Traits>::size_type 24952: basic_string_view<_CharT, _Traits>:: 24952: find_last_of(const _CharT* __str, size_type __pos, 24952: size_type __n) const noexcept 24952: { 24952: ; 24952: size_type __size = this->size(); 24952: if (__size && __n) 24952: { 24952: if (--__size > __pos) 24952: __size = __pos; 24952: do 24952: { 24952: if (traits_type::find(__str, __n, this->_M_str[__size])) 24952: return __size; 24952: } 24952: while (__size-- != 0); 24952: } 24952: return npos; 24952: } 24952: 24952: template 24952: constexpr typename basic_string_view<_CharT, _Traits>::size_type 24952: basic_string_view<_CharT, _Traits>:: 24952: find_first_not_of(const _CharT* __str, size_type __pos, 24952: size_type __n) const noexcept 24952: { 24952: ; 24952: for (; __pos < this->_M_len; ++__pos) 24952: if (!traits_type::find(__str, __n, this->_M_str[__pos])) 24952: return __pos; 24952: return npos; 24952: } 24952: 24952: template 24952: constexpr typename basic_string_view<_CharT, _Traits>::size_type 24952: basic_string_view<_CharT, _Traits>:: 24952: find_first_not_of(_CharT __c, size_type __pos) const noexcept 24952: { 24952: for (; __pos < this->_M_len; ++__pos) 24952: if (!traits_type::eq(this->_M_str[__pos], __c)) 24952: return __pos; 24952: return npos; 24952: } 24952: 24952: template 24952: constexpr typename basic_string_view<_CharT, _Traits>::size_type 24952: basic_string_view<_CharT, _Traits>:: 24952: find_last_not_of(const _CharT* __str, size_type __pos, 24952: size_type __n) const noexcept 24952: { 24952: ; 24952: size_type __size = this->_M_len; 24952: if (__size) 24952: { 24952: if (--__size > __pos) 24952: __size = __pos; 24952: do 24952: { 24952: if (!traits_type::find(__str, __n, this->_M_str[__size])) 24952: return __size; 24952: } 24952: while (__size--); 24952: } 24952: return npos; 24952: } 24952: 24952: template 24952: constexpr typename basic_string_view<_CharT, _Traits>::size_type 24952: basic_string_view<_CharT, _Traits>:: 24952: find_last_not_of(_CharT __c, size_type __pos) const noexcept 24952: { 24952: size_type __size = this->_M_len; 24952: if (__size) 24952: { 24952: if (--__size > __pos) 24952: __size = __pos; 24952: do 24952: { 24952: if (!traits_type::eq(this->_M_str[__size], __c)) 24952: return __size; 24952: } 24952: while (__size--); 24952: } 24952: return npos; 24952: } 24952: 24952: 24952: } 24952: # 908 "/usr/include/c++/13/string_view" 2 3 24952: # 48 "/usr/include/c++/13/bits/basic_string.h" 2 3 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: namespace __cxx11 { 24952: # 86 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: class basic_string 24952: { 24952: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 24952: rebind<_CharT>::other _Char_alloc_type; 24952: 24952: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 24952: 24952: 24952: public: 24952: typedef _Traits traits_type; 24952: typedef typename _Traits::char_type value_type; 24952: typedef _Char_alloc_type allocator_type; 24952: typedef typename _Alloc_traits::size_type size_type; 24952: typedef typename _Alloc_traits::difference_type difference_type; 24952: typedef typename _Alloc_traits::reference reference; 24952: typedef typename _Alloc_traits::const_reference const_reference; 24952: typedef typename _Alloc_traits::pointer pointer; 24952: typedef typename _Alloc_traits::const_pointer const_pointer; 24952: typedef __gnu_cxx::__normal_iterator iterator; 24952: typedef __gnu_cxx::__normal_iterator 24952: const_iterator; 24952: typedef std::reverse_iterator const_reverse_iterator; 24952: typedef std::reverse_iterator reverse_iterator; 24952: 24952: 24952: static const size_type npos = static_cast(-1); 24952: 24952: protected: 24952: 24952: 24952: 24952: 24952: typedef const_iterator __const_iterator; 24952: 24952: 24952: private: 24952: static pointer 24952: _S_allocate(_Char_alloc_type& __a, size_type __n) 24952: { 24952: pointer __p = _Alloc_traits::allocate(__a, __n); 24952: # 136 "/usr/include/c++/13/bits/basic_string.h" 3 24952: return __p; 24952: } 24952: 24952: 24952: 24952: typedef basic_string_view<_CharT, _Traits> __sv_type; 24952: 24952: template 24952: using _If_sv = enable_if_t< 24952: __and_, 24952: __not_>, 24952: __not_>>::value, 24952: _Res>; 24952: 24952: 24952: 24952: static __sv_type 24952: _S_to_string_view(__sv_type __svt) noexcept 24952: { return __svt; } 24952: 24952: 24952: 24952: 24952: 24952: struct __sv_wrapper 24952: { 24952: explicit 24952: __sv_wrapper(__sv_type __sv) noexcept : _M_sv(__sv) { } 24952: 24952: __sv_type _M_sv; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: basic_string(__sv_wrapper __svw, const _Alloc& __a) 24952: : basic_string(__svw._M_sv.data(), __svw._M_sv.size(), __a) { } 24952: 24952: 24952: 24952: struct _Alloc_hider : allocator_type 24952: { 24952: 24952: 24952: 24952: 24952: 24952: _Alloc_hider(pointer __dat, const _Alloc& __a) 24952: : allocator_type(__a), _M_p(__dat) { } 24952: 24952: 24952: _Alloc_hider(pointer __dat, _Alloc&& __a = _Alloc()) 24952: : allocator_type(std::move(__a)), _M_p(__dat) { } 24952: 24952: 24952: pointer _M_p; 24952: }; 24952: 24952: _Alloc_hider _M_dataplus; 24952: size_type _M_string_length; 24952: 24952: enum { _S_local_capacity = 15 / sizeof(_CharT) }; 24952: 24952: union 24952: { 24952: _CharT _M_local_buf[_S_local_capacity + 1]; 24952: size_type _M_allocated_capacity; 24952: }; 24952: 24952: 24952: void 24952: _M_data(pointer __p) 24952: { _M_dataplus._M_p = __p; } 24952: 24952: 24952: void 24952: _M_length(size_type __length) 24952: { _M_string_length = __length; } 24952: 24952: 24952: pointer 24952: _M_data() const 24952: { return _M_dataplus._M_p; } 24952: 24952: 24952: pointer 24952: _M_local_data() 24952: { 24952: 24952: return std::pointer_traits::pointer_to(*_M_local_buf); 24952: 24952: 24952: 24952: } 24952: 24952: 24952: const_pointer 24952: _M_local_data() const 24952: { 24952: 24952: return std::pointer_traits::pointer_to(*_M_local_buf); 24952: 24952: 24952: 24952: } 24952: 24952: 24952: void 24952: _M_capacity(size_type __capacity) 24952: { _M_allocated_capacity = __capacity; } 24952: 24952: 24952: void 24952: _M_set_length(size_type __n) 24952: { 24952: _M_length(__n); 24952: traits_type::assign(_M_data()[__n], _CharT()); 24952: } 24952: 24952: 24952: bool 24952: _M_is_local() const 24952: { 24952: if (_M_data() == _M_local_data()) 24952: { 24952: if (_M_string_length > _S_local_capacity) 24952: __builtin_unreachable(); 24952: return true; 24952: } 24952: return false; 24952: } 24952: 24952: 24952: 24952: pointer 24952: _M_create(size_type&, size_type); 24952: 24952: 24952: void 24952: _M_dispose() 24952: { 24952: if (!_M_is_local()) 24952: _M_destroy(_M_allocated_capacity); 24952: } 24952: 24952: 24952: void 24952: _M_destroy(size_type __size) throw() 24952: { _Alloc_traits::deallocate(_M_get_allocator(), _M_data(), __size + 1); } 24952: # 316 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: 24952: void 24952: _M_construct(_InIterator __beg, _InIterator __end, 24952: std::input_iterator_tag); 24952: 24952: 24952: 24952: template 24952: 24952: void 24952: _M_construct(_FwdIterator __beg, _FwdIterator __end, 24952: std::forward_iterator_tag); 24952: 24952: 24952: void 24952: _M_construct(size_type __req, _CharT __c); 24952: 24952: 24952: allocator_type& 24952: _M_get_allocator() 24952: { return _M_dataplus; } 24952: 24952: 24952: const allocator_type& 24952: _M_get_allocator() const 24952: { return _M_dataplus; } 24952: 24952: 24952: __attribute__((__always_inline__)) 24952: constexpr 24952: void 24952: _M_init_local_buf() noexcept 24952: { 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: __attribute__((__always_inline__)) 24952: constexpr 24952: pointer 24952: _M_use_local_data() noexcept 24952: { 24952: 24952: 24952: 24952: return _M_local_data(); 24952: } 24952: 24952: private: 24952: # 384 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: size_type 24952: _M_check(size_type __pos, const char* __s) const 24952: { 24952: if (__pos > this->size()) 24952: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") 24952: , 24952: __s, __pos, this->size()); 24952: return __pos; 24952: } 24952: 24952: 24952: void 24952: _M_check_length(size_type __n1, size_type __n2, const char* __s) const 24952: { 24952: if (this->max_size() - (this->size() - __n1) < __n2) 24952: __throw_length_error((__s)); 24952: } 24952: 24952: 24952: 24952: 24952: size_type 24952: _M_limit(size_type __pos, size_type __off) const noexcept 24952: { 24952: const bool __testoff = __off < this->size() - __pos; 24952: return __testoff ? __off : this->size() - __pos; 24952: } 24952: 24952: 24952: bool 24952: _M_disjunct(const _CharT* __s) const noexcept 24952: { 24952: return (less()(__s, _M_data()) 24952: || less()(_M_data() + this->size(), __s)); 24952: } 24952: 24952: 24952: 24952: 24952: static void 24952: _S_copy(_CharT* __d, const _CharT* __s, size_type __n) 24952: { 24952: if (__n == 1) 24952: traits_type::assign(*__d, *__s); 24952: else 24952: traits_type::copy(__d, __s, __n); 24952: } 24952: 24952: 24952: static void 24952: _S_move(_CharT* __d, const _CharT* __s, size_type __n) 24952: { 24952: if (__n == 1) 24952: traits_type::assign(*__d, *__s); 24952: else 24952: traits_type::move(__d, __s, __n); 24952: } 24952: 24952: 24952: static void 24952: _S_assign(_CharT* __d, size_type __n, _CharT __c) 24952: { 24952: if (__n == 1) 24952: traits_type::assign(*__d, __c); 24952: else 24952: traits_type::assign(__d, __n, __c); 24952: } 24952: 24952: 24952: 24952: template 24952: 24952: static void 24952: _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) 24952: { 24952: for (; __k1 != __k2; ++__k1, (void)++__p) 24952: traits_type::assign(*__p, *__k1); 24952: } 24952: 24952: 24952: static void 24952: _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) noexcept 24952: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 24952: 24952: 24952: static void 24952: _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) 24952: noexcept 24952: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 24952: 24952: 24952: static void 24952: _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) noexcept 24952: { _S_copy(__p, __k1, __k2 - __k1); } 24952: 24952: 24952: static void 24952: _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) 24952: noexcept 24952: { _S_copy(__p, __k1, __k2 - __k1); } 24952: 24952: 24952: static int 24952: _S_compare(size_type __n1, size_type __n2) noexcept 24952: { 24952: const difference_type __d = difference_type(__n1 - __n2); 24952: 24952: if (__d > __gnu_cxx::__numeric_traits::__max) 24952: return __gnu_cxx::__numeric_traits::__max; 24952: else if (__d < __gnu_cxx::__numeric_traits::__min) 24952: return __gnu_cxx::__numeric_traits::__min; 24952: else 24952: return int(__d); 24952: } 24952: 24952: 24952: void 24952: _M_assign(const basic_string&); 24952: 24952: 24952: void 24952: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 24952: size_type __len2); 24952: 24952: 24952: void 24952: _M_erase(size_type __pos, size_type __n); 24952: 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string() 24952: noexcept(is_nothrow_default_constructible<_Alloc>::value) 24952: : _M_dataplus(_M_local_data()) 24952: { 24952: _M_init_local_buf(); 24952: _M_set_length(0); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: basic_string(const _Alloc& __a) noexcept 24952: : _M_dataplus(_M_local_data(), __a) 24952: { 24952: _M_init_local_buf(); 24952: _M_set_length(0); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string(const basic_string& __str) 24952: : _M_dataplus(_M_local_data(), 24952: _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) 24952: { 24952: _M_construct(__str._M_data(), __str._M_data() + __str.length(), 24952: std::forward_iterator_tag()); 24952: } 24952: # 563 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string(const basic_string& __str, size_type __pos, 24952: const _Alloc& __a = _Alloc()) 24952: : _M_dataplus(_M_local_data(), __a) 24952: { 24952: const _CharT* __start = __str._M_data() 24952: + __str._M_check(__pos, "basic_string::basic_string"); 24952: _M_construct(__start, __start + __str._M_limit(__pos, npos), 24952: std::forward_iterator_tag()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string(const basic_string& __str, size_type __pos, 24952: size_type __n) 24952: : _M_dataplus(_M_local_data()) 24952: { 24952: const _CharT* __start = __str._M_data() 24952: + __str._M_check(__pos, "basic_string::basic_string"); 24952: _M_construct(__start, __start + __str._M_limit(__pos, __n), 24952: std::forward_iterator_tag()); 24952: } 24952: # 598 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string(const basic_string& __str, size_type __pos, 24952: size_type __n, const _Alloc& __a) 24952: : _M_dataplus(_M_local_data(), __a) 24952: { 24952: const _CharT* __start 24952: = __str._M_data() + __str._M_check(__pos, "string::string"); 24952: _M_construct(__start, __start + __str._M_limit(__pos, __n), 24952: std::forward_iterator_tag()); 24952: } 24952: # 618 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string(const _CharT* __s, size_type __n, 24952: const _Alloc& __a = _Alloc()) 24952: : _M_dataplus(_M_local_data(), __a) 24952: { 24952: 24952: if (__s == 0 && __n > 0) 24952: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 24952: ); 24952: _M_construct(__s, __s + __n, std::forward_iterator_tag()); 24952: } 24952: # 638 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template> 24952: 24952: 24952: basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) 24952: : _M_dataplus(_M_local_data(), __a) 24952: { 24952: 24952: if (__s == 0) 24952: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 24952: ); 24952: const _CharT* __end = __s + traits_type::length(__s); 24952: _M_construct(__s, __end, forward_iterator_tag()); 24952: } 24952: # 661 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template> 24952: 24952: 24952: basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()) 24952: : _M_dataplus(_M_local_data(), __a) 24952: { _M_construct(__n, __c); } 24952: # 676 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string(basic_string&& __str) noexcept 24952: : _M_dataplus(_M_local_data(), std::move(__str._M_get_allocator())) 24952: { 24952: if (__str._M_is_local()) 24952: { 24952: _M_init_local_buf(); 24952: traits_type::copy(_M_local_buf, __str._M_local_buf, 24952: __str.length() + 1); 24952: } 24952: else 24952: { 24952: _M_data(__str._M_data()); 24952: _M_capacity(__str._M_allocated_capacity); 24952: } 24952: 24952: 24952: 24952: 24952: _M_length(__str.length()); 24952: __str._M_data(__str._M_use_local_data()); 24952: __str._M_set_length(0); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) 24952: : _M_dataplus(_M_local_data(), __a) 24952: { _M_construct(__l.begin(), __l.end(), std::forward_iterator_tag()); } 24952: 24952: 24952: basic_string(const basic_string& __str, const _Alloc& __a) 24952: : _M_dataplus(_M_local_data(), __a) 24952: { _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } 24952: 24952: 24952: basic_string(basic_string&& __str, const _Alloc& __a) 24952: noexcept(_Alloc_traits::_S_always_equal()) 24952: : _M_dataplus(_M_local_data(), __a) 24952: { 24952: if (__str._M_is_local()) 24952: { 24952: _M_init_local_buf(); 24952: traits_type::copy(_M_local_buf, __str._M_local_buf, 24952: __str.length() + 1); 24952: _M_length(__str.length()); 24952: __str._M_set_length(0); 24952: } 24952: else if (_Alloc_traits::_S_always_equal() 24952: || __str.get_allocator() == __a) 24952: { 24952: _M_data(__str._M_data()); 24952: _M_length(__str.length()); 24952: _M_capacity(__str._M_allocated_capacity); 24952: __str._M_data(__str._M_use_local_data()); 24952: __str._M_set_length(0); 24952: } 24952: else 24952: _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); 24952: } 24952: # 754 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template> 24952: 24952: 24952: 24952: 24952: basic_string(_InputIterator __beg, _InputIterator __end, 24952: const _Alloc& __a = _Alloc()) 24952: : _M_dataplus(_M_local_data(), __a), _M_string_length(0) 24952: { 24952: 24952: _M_construct(__beg, __end, std::__iterator_category(__beg)); 24952: 24952: 24952: 24952: 24952: } 24952: # 780 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template>> 24952: 24952: basic_string(const _Tp& __t, size_type __pos, size_type __n, 24952: const _Alloc& __a = _Alloc()) 24952: : basic_string(_S_to_string_view(__t).substr(__pos, __n), __a) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: 24952: explicit 24952: basic_string(const _Tp& __t, const _Alloc& __a = _Alloc()) 24952: : basic_string(__sv_wrapper(_S_to_string_view(__t)), __a) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: ~basic_string() 24952: { _M_dispose(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string& 24952: operator=(const basic_string& __str) 24952: { 24952: return this->assign(__str); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string& 24952: operator=(const _CharT* __s) 24952: { return this->assign(__s); } 24952: # 833 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: operator=(_CharT __c) 24952: { 24952: this->assign(1, __c); 24952: return *this; 24952: } 24952: # 851 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: operator=(basic_string&& __str) 24952: noexcept(_Alloc_traits::_S_nothrow_move()) 24952: { 24952: const bool __equal_allocs = _Alloc_traits::_S_always_equal() 24952: || _M_get_allocator() == __str._M_get_allocator(); 24952: if (!_M_is_local() && _Alloc_traits::_S_propagate_on_move_assign() 24952: && !__equal_allocs) 24952: { 24952: 24952: _M_destroy(_M_allocated_capacity); 24952: _M_data(_M_local_data()); 24952: _M_set_length(0); 24952: } 24952: 24952: std::__alloc_on_move(_M_get_allocator(), __str._M_get_allocator()); 24952: 24952: if (__str._M_is_local()) 24952: { 24952: 24952: 24952: 24952: if (__builtin_expect(std::__addressof(__str) != this, true)) 24952: { 24952: if (__str.size()) 24952: this->_S_copy(_M_data(), __str._M_data(), __str.size()); 24952: _M_set_length(__str.size()); 24952: } 24952: } 24952: else if (_Alloc_traits::_S_propagate_on_move_assign() || __equal_allocs) 24952: { 24952: 24952: pointer __data = nullptr; 24952: size_type __capacity; 24952: if (!_M_is_local()) 24952: { 24952: if (__equal_allocs) 24952: { 24952: 24952: __data = _M_data(); 24952: __capacity = _M_allocated_capacity; 24952: } 24952: else 24952: _M_destroy(_M_allocated_capacity); 24952: } 24952: 24952: _M_data(__str._M_data()); 24952: _M_length(__str.length()); 24952: _M_capacity(__str._M_allocated_capacity); 24952: if (__data) 24952: { 24952: __str._M_data(__data); 24952: __str._M_capacity(__capacity); 24952: } 24952: else 24952: __str._M_data(__str._M_local_buf); 24952: } 24952: else 24952: assign(__str); 24952: __str.clear(); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string& 24952: operator=(initializer_list<_CharT> __l) 24952: { 24952: this->assign(__l.begin(), __l.size()); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _If_sv<_Tp, basic_string&> 24952: operator=(const _Tp& __svt) 24952: { return this->assign(__svt); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: operator __sv_type() const noexcept 24952: { return __sv_type(data(), size()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: iterator 24952: begin() noexcept 24952: { return iterator(_M_data()); } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: begin() const noexcept 24952: { return const_iterator(_M_data()); } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: iterator 24952: end() noexcept 24952: { return iterator(_M_data() + this->size()); } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: end() const noexcept 24952: { return const_iterator(_M_data() + this->size()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reverse_iterator 24952: rbegin() noexcept 24952: { return reverse_iterator(this->end()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: rbegin() const noexcept 24952: { return const_reverse_iterator(this->end()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reverse_iterator 24952: rend() noexcept 24952: { return reverse_iterator(this->begin()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: rend() const noexcept 24952: { return const_reverse_iterator(this->begin()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: cbegin() const noexcept 24952: { return const_iterator(this->_M_data()); } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: cend() const noexcept 24952: { return const_iterator(this->_M_data() + this->size()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: crbegin() const noexcept 24952: { return const_reverse_iterator(this->end()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: crend() const noexcept 24952: { return const_reverse_iterator(this->begin()); } 24952: 24952: 24952: public: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: size_type 24952: size() const noexcept 24952: { return _M_string_length; } 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: size_type 24952: length() const noexcept 24952: { return _M_string_length; } 24952: 24952: 24952: [[__nodiscard__]] 24952: size_type 24952: max_size() const noexcept 24952: { return (_Alloc_traits::max_size(_M_get_allocator()) - 1) / 2; } 24952: # 1097 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: void 24952: resize(size_type __n, _CharT __c); 24952: # 1111 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: void 24952: resize(size_type __n) 24952: { this->resize(__n, _CharT()); } 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: 24952: void 24952: shrink_to_fit() noexcept 24952: { reserve(); } 24952: #pragma GCC diagnostic pop 24952: # 1167 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: capacity() const noexcept 24952: { 24952: return _M_is_local() ? size_type(_S_local_capacity) 24952: : _M_allocated_capacity; 24952: } 24952: # 1192 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: void 24952: reserve(size_type __res_arg); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: reserve(); 24952: 24952: 24952: 24952: 24952: 24952: void 24952: clear() noexcept 24952: { _M_set_length(0); } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: bool 24952: empty() const noexcept 24952: { return this->size() == 0; } 24952: # 1234 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: const_reference 24952: operator[] (size_type __pos) const noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) __builtin_unreachable(); } while (false); 24952: return _M_data()[__pos]; 24952: } 24952: # 1252 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: reference 24952: operator[](size_type __pos) 24952: { 24952: 24952: 24952: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) __builtin_unreachable(); } while (false); 24952: 24952: ; 24952: return _M_data()[__pos]; 24952: } 24952: # 1274 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: const_reference 24952: at(size_type __n) const 24952: { 24952: if (__n >= this->size()) 24952: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 24952: 24952: , 24952: __n, this->size()); 24952: return _M_data()[__n]; 24952: } 24952: # 1296 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: reference 24952: at(size_type __n) 24952: { 24952: if (__n >= size()) 24952: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 24952: 24952: , 24952: __n, this->size()); 24952: return _M_data()[__n]; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reference 24952: front() noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 24952: return operator[](0); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reference 24952: front() const noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 24952: return operator[](0); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reference 24952: back() noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 24952: return operator[](this->size() - 1); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reference 24952: back() const noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 24952: return operator[](this->size() - 1); 24952: } 24952: # 1364 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: operator+=(const basic_string& __str) 24952: { return this->append(__str); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string& 24952: operator+=(const _CharT* __s) 24952: { return this->append(__s); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string& 24952: operator+=(_CharT __c) 24952: { 24952: this->push_back(__c); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string& 24952: operator+=(initializer_list<_CharT> __l) 24952: { return this->append(__l.begin(), __l.size()); } 24952: # 1410 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: 24952: _If_sv<_Tp, basic_string&> 24952: operator+=(const _Tp& __svt) 24952: { return this->append(__svt); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string& 24952: append(const basic_string& __str) 24952: { return this->append(__str._M_data(), __str.size()); } 24952: # 1440 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: append(const basic_string& __str, size_type __pos, size_type __n = npos) 24952: { return this->append(__str._M_data() 24952: + __str._M_check(__pos, "basic_string::append"), 24952: __str._M_limit(__pos, __n)); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string& 24952: append(const _CharT* __s, size_type __n) 24952: { 24952: ; 24952: _M_check_length(size_type(0), __n, "basic_string::append"); 24952: return _M_append(__s, __n); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string& 24952: append(const _CharT* __s) 24952: { 24952: ; 24952: const size_type __n = traits_type::length(__s); 24952: _M_check_length(size_type(0), __n, "basic_string::append"); 24952: return _M_append(__s, __n); 24952: } 24952: # 1485 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: append(size_type __n, _CharT __c) 24952: { return _M_replace_aux(this->size(), size_type(0), __n, __c); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string& 24952: append(initializer_list<_CharT> __l) 24952: { return this->append(__l.begin(), __l.size()); } 24952: # 1511 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template> 24952: 24952: 24952: 24952: 24952: basic_string& 24952: append(_InputIterator __first, _InputIterator __last) 24952: { return this->replace(end(), end(), __first, __last); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: _If_sv<_Tp, basic_string&> 24952: append(const _Tp& __svt) 24952: { 24952: __sv_type __sv = __svt; 24952: return this->append(__sv.data(), __sv.size()); 24952: } 24952: # 1543 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: 24952: _If_sv<_Tp, basic_string&> 24952: append(const _Tp& __svt, size_type __pos, size_type __n = npos) 24952: { 24952: __sv_type __sv = __svt; 24952: return _M_append(__sv.data() 24952: + std::__sv_check(__sv.size(), __pos, "basic_string::append"), 24952: std::__sv_limit(__sv.size(), __pos, __n)); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: push_back(_CharT __c) 24952: { 24952: const size_type __size = this->size(); 24952: if (__size + 1 > this->capacity()) 24952: this->_M_mutate(__size, size_type(0), 0, size_type(1)); 24952: traits_type::assign(this->_M_data()[__size], __c); 24952: this->_M_set_length(__size + 1); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string& 24952: assign(const basic_string& __str) 24952: { 24952: 24952: if (_Alloc_traits::_S_propagate_on_copy_assign()) 24952: { 24952: if (!_Alloc_traits::_S_always_equal() && !_M_is_local() 24952: && _M_get_allocator() != __str._M_get_allocator()) 24952: { 24952: 24952: 24952: if (__str.size() <= _S_local_capacity) 24952: { 24952: _M_destroy(_M_allocated_capacity); 24952: _M_data(_M_use_local_data()); 24952: _M_set_length(0); 24952: } 24952: else 24952: { 24952: const auto __len = __str.size(); 24952: auto __alloc = __str._M_get_allocator(); 24952: 24952: auto __ptr = _S_allocate(__alloc, __len + 1); 24952: _M_destroy(_M_allocated_capacity); 24952: _M_data(__ptr); 24952: _M_capacity(__len); 24952: _M_set_length(__len); 24952: } 24952: } 24952: std::__alloc_on_copy(_M_get_allocator(), __str._M_get_allocator()); 24952: } 24952: 24952: this->_M_assign(__str); 24952: return *this; 24952: } 24952: # 1621 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: assign(basic_string&& __str) 24952: noexcept(_Alloc_traits::_S_nothrow_move()) 24952: { 24952: 24952: 24952: return *this = std::move(__str); 24952: } 24952: # 1645 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: assign(const basic_string& __str, size_type __pos, size_type __n = npos) 24952: { return _M_replace(size_type(0), this->size(), __str._M_data() 24952: + __str._M_check(__pos, "basic_string::assign"), 24952: __str._M_limit(__pos, __n)); } 24952: # 1662 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: assign(const _CharT* __s, size_type __n) 24952: { 24952: ; 24952: return _M_replace(size_type(0), this->size(), __s, __n); 24952: } 24952: # 1679 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: assign(const _CharT* __s) 24952: { 24952: ; 24952: return _M_replace(size_type(0), this->size(), __s, 24952: traits_type::length(__s)); 24952: } 24952: # 1697 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: assign(size_type __n, _CharT __c) 24952: { return _M_replace_aux(size_type(0), this->size(), __n, __c); } 24952: # 1711 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template> 24952: 24952: 24952: 24952: 24952: basic_string& 24952: assign(_InputIterator __first, _InputIterator __last) 24952: { return this->replace(begin(), end(), __first, __last); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_string& 24952: assign(initializer_list<_CharT> __l) 24952: { return this->assign(__l.begin(), __l.size()); } 24952: # 1739 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: 24952: _If_sv<_Tp, basic_string&> 24952: assign(const _Tp& __svt) 24952: { 24952: __sv_type __sv = __svt; 24952: return this->assign(__sv.data(), __sv.size()); 24952: } 24952: # 1755 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: 24952: _If_sv<_Tp, basic_string&> 24952: assign(const _Tp& __svt, size_type __pos, size_type __n = npos) 24952: { 24952: __sv_type __sv = __svt; 24952: return _M_replace(size_type(0), this->size(), 24952: __sv.data() 24952: + std::__sv_check(__sv.size(), __pos, "basic_string::assign"), 24952: std::__sv_limit(__sv.size(), __pos, __n)); 24952: } 24952: # 1784 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: iterator 24952: insert(const_iterator __p, size_type __n, _CharT __c) 24952: { 24952: ; 24952: const size_type __pos = __p - begin(); 24952: this->replace(__p, __p, __n, __c); 24952: return iterator(this->_M_data() + __pos); 24952: } 24952: # 1827 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template> 24952: 24952: iterator 24952: insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) 24952: { 24952: ; 24952: const size_type __pos = __p - begin(); 24952: this->replace(__p, __p, __beg, __end); 24952: return iterator(this->_M_data() + __pos); 24952: } 24952: # 1864 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: iterator 24952: insert(const_iterator __p, initializer_list<_CharT> __l) 24952: { return this->insert(__p, __l.begin(), __l.end()); } 24952: # 1892 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: insert(size_type __pos1, const basic_string& __str) 24952: { return this->replace(__pos1, size_type(0), 24952: __str._M_data(), __str.size()); } 24952: # 1916 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: insert(size_type __pos1, const basic_string& __str, 24952: size_type __pos2, size_type __n = npos) 24952: { return this->replace(__pos1, size_type(0), __str._M_data() 24952: + __str._M_check(__pos2, "basic_string::insert"), 24952: __str._M_limit(__pos2, __n)); } 24952: # 1940 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: insert(size_type __pos, const _CharT* __s, size_type __n) 24952: { return this->replace(__pos, size_type(0), __s, __n); } 24952: # 1960 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: insert(size_type __pos, const _CharT* __s) 24952: { 24952: ; 24952: return this->replace(__pos, size_type(0), __s, 24952: traits_type::length(__s)); 24952: } 24952: # 1985 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: insert(size_type __pos, size_type __n, _CharT __c) 24952: { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), 24952: size_type(0), __n, __c); } 24952: # 2004 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: iterator 24952: insert(__const_iterator __p, _CharT __c) 24952: { 24952: ; 24952: const size_type __pos = __p - begin(); 24952: _M_replace_aux(__pos, size_type(0), size_type(1), __c); 24952: return iterator(_M_data() + __pos); 24952: } 24952: # 2021 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: 24952: _If_sv<_Tp, basic_string&> 24952: insert(size_type __pos, const _Tp& __svt) 24952: { 24952: __sv_type __sv = __svt; 24952: return this->insert(__pos, __sv.data(), __sv.size()); 24952: } 24952: # 2038 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: 24952: _If_sv<_Tp, basic_string&> 24952: insert(size_type __pos1, const _Tp& __svt, 24952: size_type __pos2, size_type __n = npos) 24952: { 24952: __sv_type __sv = __svt; 24952: return this->replace(__pos1, size_type(0), 24952: __sv.data() 24952: + std::__sv_check(__sv.size(), __pos2, "basic_string::insert"), 24952: std::__sv_limit(__sv.size(), __pos2, __n)); 24952: } 24952: # 2067 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: erase(size_type __pos = 0, size_type __n = npos) 24952: { 24952: _M_check(__pos, "basic_string::erase"); 24952: if (__n == npos) 24952: this->_M_set_length(__pos); 24952: else if (__n != 0) 24952: this->_M_erase(__pos, _M_limit(__pos, __n)); 24952: return *this; 24952: } 24952: # 2087 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: iterator 24952: erase(__const_iterator __position) 24952: { 24952: 24952: ; 24952: const size_type __pos = __position - begin(); 24952: this->_M_erase(__pos, size_type(1)); 24952: return iterator(_M_data() + __pos); 24952: } 24952: # 2107 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: iterator 24952: erase(__const_iterator __first, __const_iterator __last) 24952: { 24952: 24952: ; 24952: const size_type __pos = __first - begin(); 24952: if (__last == end()) 24952: this->_M_set_length(__pos); 24952: else 24952: this->_M_erase(__pos, __last - __first); 24952: return iterator(this->_M_data() + __pos); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: pop_back() noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 24952: _M_erase(size() - 1, 1); 24952: } 24952: # 2153 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: replace(size_type __pos, size_type __n, const basic_string& __str) 24952: { return this->replace(__pos, __n, __str._M_data(), __str.size()); } 24952: # 2176 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: replace(size_type __pos1, size_type __n1, const basic_string& __str, 24952: size_type __pos2, size_type __n2 = npos) 24952: { return this->replace(__pos1, __n1, __str._M_data() 24952: + __str._M_check(__pos2, "basic_string::replace"), 24952: __str._M_limit(__pos2, __n2)); } 24952: # 2202 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: replace(size_type __pos, size_type __n1, const _CharT* __s, 24952: size_type __n2) 24952: { 24952: ; 24952: return _M_replace(_M_check(__pos, "basic_string::replace"), 24952: _M_limit(__pos, __n1), __s, __n2); 24952: } 24952: # 2228 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: replace(size_type __pos, size_type __n1, const _CharT* __s) 24952: { 24952: ; 24952: return this->replace(__pos, __n1, __s, traits_type::length(__s)); 24952: } 24952: # 2253 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) 24952: { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), 24952: _M_limit(__pos, __n1), __n2, __c); } 24952: # 2272 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: replace(__const_iterator __i1, __const_iterator __i2, 24952: const basic_string& __str) 24952: { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } 24952: # 2293 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: replace(__const_iterator __i1, __const_iterator __i2, 24952: const _CharT* __s, size_type __n) 24952: { 24952: 24952: ; 24952: return this->replace(__i1 - begin(), __i2 - __i1, __s, __n); 24952: } 24952: # 2316 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) 24952: { 24952: ; 24952: return this->replace(__i1, __i2, __s, traits_type::length(__s)); 24952: } 24952: # 2338 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: replace(__const_iterator __i1, __const_iterator __i2, size_type __n, 24952: _CharT __c) 24952: { 24952: 24952: ; 24952: return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c); 24952: } 24952: # 2364 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template> 24952: 24952: basic_string& 24952: replace(const_iterator __i1, const_iterator __i2, 24952: _InputIterator __k1, _InputIterator __k2) 24952: { 24952: 24952: ; 24952: ; 24952: return this->_M_replace_dispatch(__i1, __i2, __k1, __k2, 24952: std::__false_type()); 24952: } 24952: # 2397 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& 24952: replace(__const_iterator __i1, __const_iterator __i2, 24952: _CharT* __k1, _CharT* __k2) 24952: { 24952: 24952: ; 24952: ; 24952: return this->replace(__i1 - begin(), __i2 - __i1, 24952: __k1, __k2 - __k1); 24952: } 24952: 24952: 24952: basic_string& 24952: replace(__const_iterator __i1, __const_iterator __i2, 24952: const _CharT* __k1, const _CharT* __k2) 24952: { 24952: 24952: ; 24952: ; 24952: return this->replace(__i1 - begin(), __i2 - __i1, 24952: __k1, __k2 - __k1); 24952: } 24952: 24952: 24952: basic_string& 24952: replace(__const_iterator __i1, __const_iterator __i2, 24952: iterator __k1, iterator __k2) 24952: { 24952: 24952: ; 24952: ; 24952: return this->replace(__i1 - begin(), __i2 - __i1, 24952: __k1.base(), __k2 - __k1); 24952: } 24952: 24952: 24952: basic_string& 24952: replace(__const_iterator __i1, __const_iterator __i2, 24952: const_iterator __k1, const_iterator __k2) 24952: { 24952: 24952: ; 24952: ; 24952: return this->replace(__i1 - begin(), __i2 - __i1, 24952: __k1.base(), __k2 - __k1); 24952: } 24952: # 2460 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: basic_string& replace(const_iterator __i1, const_iterator __i2, 24952: initializer_list<_CharT> __l) 24952: { return this->replace(__i1, __i2, __l.begin(), __l.size()); } 24952: # 2474 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: 24952: _If_sv<_Tp, basic_string&> 24952: replace(size_type __pos, size_type __n, const _Tp& __svt) 24952: { 24952: __sv_type __sv = __svt; 24952: return this->replace(__pos, __n, __sv.data(), __sv.size()); 24952: } 24952: # 2492 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: 24952: _If_sv<_Tp, basic_string&> 24952: replace(size_type __pos1, size_type __n1, const _Tp& __svt, 24952: size_type __pos2, size_type __n2 = npos) 24952: { 24952: __sv_type __sv = __svt; 24952: return this->replace(__pos1, __n1, 24952: __sv.data() 24952: + std::__sv_check(__sv.size(), __pos2, "basic_string::replace"), 24952: std::__sv_limit(__sv.size(), __pos2, __n2)); 24952: } 24952: # 2514 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: 24952: _If_sv<_Tp, basic_string&> 24952: replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) 24952: { 24952: __sv_type __sv = __svt; 24952: return this->replace(__i1 - begin(), __i2 - __i1, __sv); 24952: } 24952: 24952: 24952: private: 24952: template 24952: 24952: basic_string& 24952: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 24952: _Integer __n, _Integer __val, __true_type) 24952: { return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __val); } 24952: 24952: template 24952: 24952: basic_string& 24952: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 24952: _InputIterator __k1, _InputIterator __k2, 24952: __false_type); 24952: 24952: 24952: basic_string& 24952: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 24952: _CharT __c); 24952: 24952: __attribute__((__noinline__, __noclone__, __cold__)) void 24952: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 24952: const size_type __len2, const size_type __how_much); 24952: 24952: 24952: basic_string& 24952: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 24952: const size_type __len2); 24952: 24952: 24952: basic_string& 24952: _M_append(const _CharT* __s, size_type __n); 24952: 24952: public: 24952: # 2571 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: size_type 24952: copy(_CharT* __s, size_type __n, size_type __pos = 0) const; 24952: # 2582 "/usr/include/c++/13/bits/basic_string.h" 3 24952: 24952: void 24952: swap(basic_string& __s) noexcept; 24952: # 2593 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: const _CharT* 24952: c_str() const noexcept 24952: { return _M_data(); } 24952: # 2606 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: const _CharT* 24952: data() const noexcept 24952: { return _M_data(); } 24952: # 2618 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: _CharT* 24952: data() noexcept 24952: { return _M_data(); } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return _M_get_allocator(); } 24952: # 2644 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find(const _CharT* __s, size_type __pos, size_type __n) const 24952: noexcept; 24952: # 2659 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find(const basic_string& __str, size_type __pos = 0) const 24952: noexcept 24952: { return this->find(__str.data(), __pos, __str.size()); } 24952: # 2672 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: _If_sv<_Tp, size_type> 24952: find(const _Tp& __svt, size_type __pos = 0) const 24952: noexcept(is_same<_Tp, __sv_type>::value) 24952: { 24952: __sv_type __sv = __svt; 24952: return this->find(__sv.data(), __pos, __sv.size()); 24952: } 24952: # 2693 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find(const _CharT* __s, size_type __pos = 0) const noexcept 24952: { 24952: ; 24952: return this->find(__s, __pos, traits_type::length(__s)); 24952: } 24952: # 2711 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find(_CharT __c, size_type __pos = 0) const noexcept; 24952: # 2725 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: rfind(const basic_string& __str, size_type __pos = npos) const 24952: noexcept 24952: { return this->rfind(__str.data(), __pos, __str.size()); } 24952: # 2738 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: _If_sv<_Tp, size_type> 24952: rfind(const _Tp& __svt, size_type __pos = npos) const 24952: noexcept(is_same<_Tp, __sv_type>::value) 24952: { 24952: __sv_type __sv = __svt; 24952: return this->rfind(__sv.data(), __pos, __sv.size()); 24952: } 24952: # 2761 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: rfind(const _CharT* __s, size_type __pos, size_type __n) const 24952: noexcept; 24952: # 2776 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: rfind(const _CharT* __s, size_type __pos = npos) const 24952: { 24952: ; 24952: return this->rfind(__s, __pos, traits_type::length(__s)); 24952: } 24952: # 2794 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: rfind(_CharT __c, size_type __pos = npos) const noexcept; 24952: # 2809 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_first_of(const basic_string& __str, size_type __pos = 0) const 24952: noexcept 24952: { return this->find_first_of(__str.data(), __pos, __str.size()); } 24952: # 2823 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: _If_sv<_Tp, size_type> 24952: find_first_of(const _Tp& __svt, size_type __pos = 0) const 24952: noexcept(is_same<_Tp, __sv_type>::value) 24952: { 24952: __sv_type __sv = __svt; 24952: return this->find_first_of(__sv.data(), __pos, __sv.size()); 24952: } 24952: # 2846 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 24952: noexcept; 24952: # 2861 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_first_of(const _CharT* __s, size_type __pos = 0) const 24952: noexcept 24952: { 24952: ; 24952: return this->find_first_of(__s, __pos, traits_type::length(__s)); 24952: } 24952: # 2882 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 24952: { return this->find(__c, __pos); } 24952: # 2898 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_last_of(const basic_string& __str, size_type __pos = npos) const 24952: noexcept 24952: { return this->find_last_of(__str.data(), __pos, __str.size()); } 24952: # 2912 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: _If_sv<_Tp, size_type> 24952: find_last_of(const _Tp& __svt, size_type __pos = npos) const 24952: noexcept(is_same<_Tp, __sv_type>::value) 24952: { 24952: __sv_type __sv = __svt; 24952: return this->find_last_of(__sv.data(), __pos, __sv.size()); 24952: } 24952: # 2935 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 24952: noexcept; 24952: # 2950 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_last_of(const _CharT* __s, size_type __pos = npos) const 24952: noexcept 24952: { 24952: ; 24952: return this->find_last_of(__s, __pos, traits_type::length(__s)); 24952: } 24952: # 2971 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_last_of(_CharT __c, size_type __pos = npos) const noexcept 24952: { return this->rfind(__c, __pos); } 24952: # 2986 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_first_not_of(const basic_string& __str, size_type __pos = 0) const 24952: noexcept 24952: { return this->find_first_not_of(__str.data(), __pos, __str.size()); } 24952: # 3000 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: _If_sv<_Tp, size_type> 24952: find_first_not_of(const _Tp& __svt, size_type __pos = 0) const 24952: noexcept(is_same<_Tp, __sv_type>::value) 24952: { 24952: __sv_type __sv = __svt; 24952: return this->find_first_not_of(__sv.data(), __pos, __sv.size()); 24952: } 24952: # 3023 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_first_not_of(const _CharT* __s, size_type __pos, 24952: size_type __n) const noexcept; 24952: # 3038 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_first_not_of(const _CharT* __s, size_type __pos = 0) const 24952: noexcept 24952: { 24952: ; 24952: return this->find_first_not_of(__s, __pos, traits_type::length(__s)); 24952: } 24952: # 3057 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_first_not_of(_CharT __c, size_type __pos = 0) const 24952: noexcept; 24952: # 3073 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_last_not_of(const basic_string& __str, size_type __pos = npos) const 24952: noexcept 24952: { return this->find_last_not_of(__str.data(), __pos, __str.size()); } 24952: # 3087 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: _If_sv<_Tp, size_type> 24952: find_last_not_of(const _Tp& __svt, size_type __pos = npos) const 24952: noexcept(is_same<_Tp, __sv_type>::value) 24952: { 24952: __sv_type __sv = __svt; 24952: return this->find_last_not_of(__sv.data(), __pos, __sv.size()); 24952: } 24952: # 3110 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_last_not_of(const _CharT* __s, size_type __pos, 24952: size_type __n) const noexcept; 24952: # 3125 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_last_not_of(const _CharT* __s, size_type __pos = npos) const 24952: noexcept 24952: { 24952: ; 24952: return this->find_last_not_of(__s, __pos, traits_type::length(__s)); 24952: } 24952: # 3144 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: size_type 24952: find_last_not_of(_CharT __c, size_type __pos = npos) const 24952: noexcept; 24952: # 3161 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: basic_string 24952: substr(size_type __pos = 0, size_type __n = npos) const 24952: { return basic_string(*this, 24952: _M_check(__pos, "basic_string::substr"), __n); } 24952: # 3181 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: int 24952: compare(const basic_string& __str) const 24952: { 24952: const size_type __size = this->size(); 24952: const size_type __osize = __str.size(); 24952: const size_type __len = std::min(__size, __osize); 24952: 24952: int __r = traits_type::compare(_M_data(), __str.data(), __len); 24952: if (!__r) 24952: __r = _S_compare(__size, __osize); 24952: return __r; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: _If_sv<_Tp, int> 24952: compare(const _Tp& __svt) const 24952: noexcept(is_same<_Tp, __sv_type>::value) 24952: { 24952: __sv_type __sv = __svt; 24952: const size_type __size = this->size(); 24952: const size_type __osize = __sv.size(); 24952: const size_type __len = std::min(__size, __osize); 24952: 24952: int __r = traits_type::compare(_M_data(), __sv.data(), __len); 24952: if (!__r) 24952: __r = _S_compare(__size, __osize); 24952: return __r; 24952: } 24952: # 3226 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: _If_sv<_Tp, int> 24952: compare(size_type __pos, size_type __n, const _Tp& __svt) const 24952: noexcept(is_same<_Tp, __sv_type>::value) 24952: { 24952: __sv_type __sv = __svt; 24952: return __sv_type(*this).substr(__pos, __n).compare(__sv); 24952: } 24952: # 3246 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: _If_sv<_Tp, int> 24952: compare(size_type __pos1, size_type __n1, const _Tp& __svt, 24952: size_type __pos2, size_type __n2 = npos) const 24952: noexcept(is_same<_Tp, __sv_type>::value) 24952: { 24952: __sv_type __sv = __svt; 24952: return __sv_type(*this) 24952: .substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2)); 24952: } 24952: # 3278 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: int 24952: compare(size_type __pos, size_type __n, const basic_string& __str) const 24952: { 24952: _M_check(__pos, "basic_string::compare"); 24952: __n = _M_limit(__pos, __n); 24952: const size_type __osize = __str.size(); 24952: const size_type __len = std::min(__n, __osize); 24952: int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); 24952: if (!__r) 24952: __r = _S_compare(__n, __osize); 24952: return __r; 24952: } 24952: # 3315 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: int 24952: compare(size_type __pos1, size_type __n1, const basic_string& __str, 24952: size_type __pos2, size_type __n2 = npos) const 24952: { 24952: _M_check(__pos1, "basic_string::compare"); 24952: __str._M_check(__pos2, "basic_string::compare"); 24952: __n1 = _M_limit(__pos1, __n1); 24952: __n2 = __str._M_limit(__pos2, __n2); 24952: const size_type __len = std::min(__n1, __n2); 24952: int __r = traits_type::compare(_M_data() + __pos1, 24952: __str.data() + __pos2, __len); 24952: if (!__r) 24952: __r = _S_compare(__n1, __n2); 24952: return __r; 24952: } 24952: # 3346 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: int 24952: compare(const _CharT* __s) const noexcept 24952: { 24952: ; 24952: const size_type __size = this->size(); 24952: const size_type __osize = traits_type::length(__s); 24952: const size_type __len = std::min(__size, __osize); 24952: int __r = traits_type::compare(_M_data(), __s, __len); 24952: if (!__r) 24952: __r = _S_compare(__size, __osize); 24952: return __r; 24952: } 24952: # 3381 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: int 24952: compare(size_type __pos, size_type __n1, const _CharT* __s) const 24952: { 24952: ; 24952: _M_check(__pos, "basic_string::compare"); 24952: __n1 = _M_limit(__pos, __n1); 24952: const size_type __osize = traits_type::length(__s); 24952: const size_type __len = std::min(__n1, __osize); 24952: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 24952: if (!__r) 24952: __r = _S_compare(__n1, __osize); 24952: return __r; 24952: } 24952: # 3420 "/usr/include/c++/13/bits/basic_string.h" 3 24952: [[__nodiscard__]] 24952: int 24952: compare(size_type __pos, size_type __n1, const _CharT* __s, 24952: size_type __n2) const 24952: { 24952: ; 24952: _M_check(__pos, "basic_string::compare"); 24952: __n1 = _M_limit(__pos, __n1); 24952: const size_type __len = std::min(__n1, __n2); 24952: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 24952: if (!__r) 24952: __r = _S_compare(__n1, __n2); 24952: return __r; 24952: } 24952: # 3485 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template friend class basic_stringbuf; 24952: }; 24952: } 24952: 24952: } 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: namespace __cxx11 { 24952: template::value_type, 24952: typename _Allocator = allocator<_CharT>, 24952: typename = _RequireInputIter<_InputIterator>, 24952: typename = _RequireAllocator<_Allocator>> 24952: basic_string(_InputIterator, _InputIterator, _Allocator = _Allocator()) 24952: -> basic_string<_CharT, char_traits<_CharT>, _Allocator>; 24952: 24952: 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: basic_string(basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator()) 24952: -> basic_string<_CharT, _Traits, _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: basic_string(basic_string_view<_CharT, _Traits>, 24952: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 24952: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 24952: const _Allocator& = _Allocator()) 24952: -> basic_string<_CharT, _Traits, _Allocator>; 24952: } 24952: 24952: 24952: template 24952: 24952: inline _Str 24952: __str_concat(typename _Str::value_type const* __lhs, 24952: typename _Str::size_type __lhs_len, 24952: typename _Str::value_type const* __rhs, 24952: typename _Str::size_type __rhs_len, 24952: typename _Str::allocator_type const& __a) 24952: { 24952: typedef typename _Str::allocator_type allocator_type; 24952: typedef __gnu_cxx::__alloc_traits _Alloc_traits; 24952: _Str __str(_Alloc_traits::_S_select_on_copy(__a)); 24952: __str.reserve(__lhs_len + __rhs_len); 24952: __str.append(__lhs, __lhs_len); 24952: __str.append(__rhs, __rhs_len); 24952: return __str; 24952: } 24952: # 3550 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline basic_string<_CharT, _Traits, _Alloc> 24952: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: { 24952: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 24952: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 24952: __rhs.c_str(), __rhs.size(), 24952: __lhs.get_allocator()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline basic_string<_CharT,_Traits,_Alloc> 24952: operator+(const _CharT* __lhs, 24952: const basic_string<_CharT,_Traits,_Alloc>& __rhs) 24952: { 24952: ; 24952: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 24952: return std::__str_concat<_Str>(__lhs, _Traits::length(__lhs), 24952: __rhs.c_str(), __rhs.size(), 24952: __rhs.get_allocator()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline basic_string<_CharT,_Traits,_Alloc> 24952: operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs) 24952: { 24952: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 24952: return std::__str_concat<_Str>(__builtin_addressof(__lhs), 1, 24952: __rhs.c_str(), __rhs.size(), 24952: __rhs.get_allocator()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline basic_string<_CharT, _Traits, _Alloc> 24952: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const _CharT* __rhs) 24952: { 24952: ; 24952: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 24952: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 24952: __rhs, _Traits::length(__rhs), 24952: __lhs.get_allocator()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline basic_string<_CharT, _Traits, _Alloc> 24952: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) 24952: { 24952: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 24952: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 24952: __builtin_addressof(__rhs), 1, 24952: __lhs.get_allocator()); 24952: } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline basic_string<_CharT, _Traits, _Alloc> 24952: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: { return std::move(__lhs.append(__rhs)); } 24952: 24952: template 24952: 24952: inline basic_string<_CharT, _Traits, _Alloc> 24952: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 24952: { return std::move(__rhs.insert(0, __lhs)); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline basic_string<_CharT, _Traits, _Alloc> 24952: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 24952: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 24952: { 24952: 24952: using _Alloc_traits = allocator_traits<_Alloc>; 24952: bool __use_rhs = false; 24952: if constexpr (typename _Alloc_traits::is_always_equal{}) 24952: __use_rhs = true; 24952: else if (__lhs.get_allocator() == __rhs.get_allocator()) 24952: __use_rhs = true; 24952: if (__use_rhs) 24952: 24952: { 24952: const auto __size = __lhs.size() + __rhs.size(); 24952: if (__size > __lhs.capacity() && __size <= __rhs.capacity()) 24952: return std::move(__rhs.insert(0, __lhs)); 24952: } 24952: return std::move(__lhs.append(__rhs)); 24952: } 24952: 24952: template 24952: [[__nodiscard__]] [[__nodiscard__]] 24952: inline basic_string<_CharT, _Traits, _Alloc> 24952: operator+(const _CharT* __lhs, 24952: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 24952: { return std::move(__rhs.insert(0, __lhs)); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline basic_string<_CharT, _Traits, _Alloc> 24952: operator+(_CharT __lhs, 24952: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 24952: { return std::move(__rhs.insert(0, 1, __lhs)); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline basic_string<_CharT, _Traits, _Alloc> 24952: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 24952: const _CharT* __rhs) 24952: { return std::move(__lhs.append(__rhs)); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline basic_string<_CharT, _Traits, _Alloc> 24952: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 24952: _CharT __rhs) 24952: { return std::move(__lhs.append(1, __rhs)); } 24952: # 3707 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: noexcept 24952: { 24952: return __lhs.size() == __rhs.size() 24952: && !_Traits::compare(__lhs.data(), __rhs.data(), __lhs.size()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const _CharT* __rhs) 24952: { 24952: return __lhs.size() == _Traits::length(__rhs) 24952: && !_Traits::compare(__lhs.data(), __rhs, __lhs.size()); 24952: } 24952: # 3771 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(const _CharT* __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: { return __rhs == __lhs; } 24952: # 3785 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: noexcept 24952: { return !(__lhs == __rhs); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator!=(const _CharT* __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: { return !(__rhs == __lhs); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const _CharT* __rhs) 24952: { return !(__lhs == __rhs); } 24952: # 3826 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: noexcept 24952: { return __lhs.compare(__rhs) < 0; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const _CharT* __rhs) 24952: { return __lhs.compare(__rhs) < 0; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<(const _CharT* __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: { return __rhs.compare(__lhs) > 0; } 24952: # 3867 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: noexcept 24952: { return __lhs.compare(__rhs) > 0; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const _CharT* __rhs) 24952: { return __lhs.compare(__rhs) > 0; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>(const _CharT* __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: { return __rhs.compare(__lhs) < 0; } 24952: # 3908 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: noexcept 24952: { return __lhs.compare(__rhs) <= 0; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const _CharT* __rhs) 24952: { return __lhs.compare(__rhs) <= 0; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<=(const _CharT* __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: { return __rhs.compare(__lhs) >= 0; } 24952: # 3949 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: noexcept 24952: { return __lhs.compare(__rhs) >= 0; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: const _CharT* __rhs) 24952: { return __lhs.compare(__rhs) >= 0; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>=(const _CharT* __lhs, 24952: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: { return __rhs.compare(__lhs) <= 0; } 24952: # 3991 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: 24952: inline void 24952: swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, 24952: basic_string<_CharT, _Traits, _Alloc>& __rhs) 24952: noexcept(noexcept(__lhs.swap(__rhs))) 24952: { __lhs.swap(__rhs); } 24952: # 4012 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: operator>>(basic_istream<_CharT, _Traits>& __is, 24952: basic_string<_CharT, _Traits, _Alloc>& __str); 24952: 24952: template<> 24952: basic_istream& 24952: operator>>(basic_istream& __is, basic_string& __str); 24952: # 4030 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: inline basic_ostream<_CharT, _Traits>& 24952: operator<<(basic_ostream<_CharT, _Traits>& __os, 24952: const basic_string<_CharT, _Traits, _Alloc>& __str) 24952: { 24952: 24952: 24952: return __ostream_insert(__os, __str.data(), __str.size()); 24952: } 24952: # 4053 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: getline(basic_istream<_CharT, _Traits>& __is, 24952: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); 24952: # 4070 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: inline basic_istream<_CharT, _Traits>& 24952: getline(basic_istream<_CharT, _Traits>& __is, 24952: basic_string<_CharT, _Traits, _Alloc>& __str) 24952: { return std::getline(__is, __str, __is.widen('\n')); } 24952: 24952: 24952: 24952: template 24952: inline basic_istream<_CharT, _Traits>& 24952: getline(basic_istream<_CharT, _Traits>&& __is, 24952: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 24952: { return std::getline(__is, __str, __delim); } 24952: 24952: 24952: template 24952: inline basic_istream<_CharT, _Traits>& 24952: getline(basic_istream<_CharT, _Traits>&& __is, 24952: basic_string<_CharT, _Traits, _Alloc>& __str) 24952: { return std::getline(__is, __str); } 24952: 24952: 24952: template<> 24952: basic_istream& 24952: getline(basic_istream& __in, basic_string& __str, 24952: char __delim); 24952: 24952: 24952: template<> 24952: basic_istream& 24952: getline(basic_istream& __in, basic_string& __str, 24952: wchar_t __delim); 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/ext/string_conversions.h" 1 3 24952: # 32 "/usr/include/c++/13/ext/string_conversions.h" 3 24952: 24952: # 33 "/usr/include/c++/13/ext/string_conversions.h" 3 24952: # 43 "/usr/include/c++/13/ext/string_conversions.h" 3 24952: # 1 "/usr/include/c++/13/cstdlib" 1 3 24952: # 39 "/usr/include/c++/13/cstdlib" 3 24952: 24952: # 40 "/usr/include/c++/13/cstdlib" 3 24952: # 44 "/usr/include/c++/13/ext/string_conversions.h" 2 3 24952: # 1 "/usr/include/c++/13/cwchar" 1 3 24952: # 39 "/usr/include/c++/13/cwchar" 3 24952: 24952: # 40 "/usr/include/c++/13/cwchar" 3 24952: # 45 "/usr/include/c++/13/ext/string_conversions.h" 2 3 24952: # 1 "/usr/include/c++/13/cstdio" 1 3 24952: # 39 "/usr/include/c++/13/cstdio" 3 24952: 24952: # 40 "/usr/include/c++/13/cstdio" 3 24952: 24952: 24952: # 1 "/usr/include/stdio.h" 1 3 4 24952: # 27 "/usr/include/stdio.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 24952: # 28 "/usr/include/stdio.h" 2 3 4 24952: 24952: extern "C" { 24952: 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 34 "/usr/include/stdio.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdarg.h" 1 3 4 24952: # 37 "/usr/include/stdio.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 1 3 4 24952: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 3 4 24952: typedef struct _G_fpos_t 24952: { 24952: __off_t __pos; 24952: __mbstate_t __state; 24952: } __fpos_t; 24952: # 40 "/usr/include/stdio.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 1 3 4 24952: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 3 4 24952: typedef struct _G_fpos64_t 24952: { 24952: __off64_t __pos; 24952: __mbstate_t __state; 24952: } __fpos64_t; 24952: # 41 "/usr/include/stdio.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 1 3 4 24952: # 35 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 3 4 24952: struct _IO_FILE; 24952: struct _IO_marker; 24952: struct _IO_codecvt; 24952: struct _IO_wide_data; 24952: 24952: 24952: 24952: 24952: typedef void _IO_lock_t; 24952: 24952: 24952: 24952: 24952: 24952: struct _IO_FILE 24952: { 24952: int _flags; 24952: 24952: 24952: char *_IO_read_ptr; 24952: char *_IO_read_end; 24952: char *_IO_read_base; 24952: char *_IO_write_base; 24952: char *_IO_write_ptr; 24952: char *_IO_write_end; 24952: char *_IO_buf_base; 24952: char *_IO_buf_end; 24952: 24952: 24952: char *_IO_save_base; 24952: char *_IO_backup_base; 24952: char *_IO_save_end; 24952: 24952: struct _IO_marker *_markers; 24952: 24952: struct _IO_FILE *_chain; 24952: 24952: int _fileno; 24952: int _flags2; 24952: __off_t _old_offset; 24952: 24952: 24952: unsigned short _cur_column; 24952: signed char _vtable_offset; 24952: char _shortbuf[1]; 24952: 24952: _IO_lock_t *_lock; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __off64_t _offset; 24952: 24952: struct _IO_codecvt *_codecvt; 24952: struct _IO_wide_data *_wide_data; 24952: struct _IO_FILE *_freeres_list; 24952: void *_freeres_buf; 24952: size_t __pad5; 24952: int _mode; 24952: 24952: char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; 24952: }; 24952: # 44 "/usr/include/stdio.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 1 3 4 24952: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 3 4 24952: typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, 24952: size_t __nbytes); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, 24952: size_t __nbytes); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); 24952: 24952: 24952: typedef int cookie_close_function_t (void *__cookie); 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef struct _IO_cookie_io_functions_t 24952: { 24952: cookie_read_function_t *read; 24952: cookie_write_function_t *write; 24952: cookie_seek_function_t *seek; 24952: cookie_close_function_t *close; 24952: } cookie_io_functions_t; 24952: # 47 "/usr/include/stdio.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: typedef __gnuc_va_list va_list; 24952: # 84 "/usr/include/stdio.h" 3 4 24952: typedef __fpos_t fpos_t; 24952: 24952: 24952: 24952: 24952: typedef __fpos64_t fpos64_t; 24952: # 133 "/usr/include/stdio.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio_lim.h" 1 3 4 24952: # 134 "/usr/include/stdio.h" 2 3 4 24952: # 143 "/usr/include/stdio.h" 3 4 24952: extern FILE *stdin; 24952: extern FILE *stdout; 24952: extern FILE *stderr; 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int remove (const char *__filename) noexcept (true); 24952: 24952: extern int rename (const char *__old, const char *__new) noexcept (true); 24952: 24952: 24952: 24952: extern int renameat (int __oldfd, const char *__old, int __newfd, 24952: const char *__new) noexcept (true); 24952: # 170 "/usr/include/stdio.h" 3 4 24952: extern int renameat2 (int __oldfd, const char *__old, int __newfd, 24952: const char *__new, unsigned int __flags) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int fclose (FILE *__stream); 24952: # 188 "/usr/include/stdio.h" 3 4 24952: extern FILE *tmpfile (void) 24952: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 24952: # 200 "/usr/include/stdio.h" 3 4 24952: extern FILE *tmpfile64 (void) 24952: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: extern char *tmpnam (char[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern char *tmpnam_r (char __s[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: # 222 "/usr/include/stdio.h" 3 4 24952: extern char *tempnam (const char *__dir, const char *__pfx) 24952: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int fflush (FILE *__stream); 24952: # 239 "/usr/include/stdio.h" 3 4 24952: extern int fflush_unlocked (FILE *__stream); 24952: # 249 "/usr/include/stdio.h" 3 4 24952: extern int fcloseall (void); 24952: # 258 "/usr/include/stdio.h" 3 4 24952: extern FILE *fopen (const char *__restrict __filename, 24952: const char *__restrict __modes) 24952: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern FILE *freopen (const char *__restrict __filename, 24952: const char *__restrict __modes, 24952: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 24952: # 283 "/usr/include/stdio.h" 3 4 24952: extern FILE *fopen64 (const char *__restrict __filename, 24952: const char *__restrict __modes) 24952: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 24952: extern FILE *freopen64 (const char *__restrict __filename, 24952: const char *__restrict __modes, 24952: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern FILE *fdopen (int __fd, const char *__modes) noexcept (true) 24952: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: extern FILE *fopencookie (void *__restrict __magic_cookie, 24952: const char *__restrict __modes, 24952: cookie_io_functions_t __io_funcs) noexcept (true) 24952: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) 24952: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) noexcept (true) 24952: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 24952: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))); 24952: 24952: 24952: 24952: 24952: 24952: extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) noexcept (true); 24952: 24952: 24952: 24952: extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, 24952: int __modes, size_t __n) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, 24952: size_t __size) noexcept (true); 24952: 24952: 24952: extern void setlinebuf (FILE *__stream) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int fprintf (FILE *__restrict __stream, 24952: const char *__restrict __format, ...); 24952: 24952: 24952: 24952: 24952: extern int printf (const char *__restrict __format, ...); 24952: 24952: extern int sprintf (char *__restrict __s, 24952: const char *__restrict __format, ...) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, 24952: __gnuc_va_list __arg); 24952: 24952: 24952: 24952: 24952: extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); 24952: 24952: extern int vsprintf (char *__restrict __s, const char *__restrict __format, 24952: __gnuc_va_list __arg) noexcept (true); 24952: 24952: 24952: 24952: extern int snprintf (char *__restrict __s, size_t __maxlen, 24952: const char *__restrict __format, ...) 24952: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 24952: 24952: extern int vsnprintf (char *__restrict __s, size_t __maxlen, 24952: const char *__restrict __format, __gnuc_va_list __arg) 24952: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 24952: 24952: 24952: 24952: 24952: 24952: extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, 24952: __gnuc_va_list __arg) 24952: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 24952: extern int __asprintf (char **__restrict __ptr, 24952: const char *__restrict __fmt, ...) 24952: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 24952: extern int asprintf (char **__restrict __ptr, 24952: const char *__restrict __fmt, ...) 24952: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern int vdprintf (int __fd, const char *__restrict __fmt, 24952: __gnuc_va_list __arg) 24952: __attribute__ ((__format__ (__printf__, 2, 0))); 24952: extern int dprintf (int __fd, const char *__restrict __fmt, ...) 24952: __attribute__ ((__format__ (__printf__, 2, 3))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int fscanf (FILE *__restrict __stream, 24952: const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 24952: 24952: extern int sscanf (const char *__restrict __s, 24952: const char *__restrict __format, ...) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 24952: # 431 "/usr/include/stdio.h" 2 3 4 24952: 24952: 24952: 24952: extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf") 24952: 24952: __attribute__ ((__warn_unused_result__)); 24952: extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf") 24952: __attribute__ ((__warn_unused_result__)); 24952: extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc99_sscanf") 24952: 24952: ; 24952: # 459 "/usr/include/stdio.h" 3 4 24952: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, 24952: __gnuc_va_list __arg) 24952: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) 24952: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: extern int vsscanf (const char *__restrict __s, 24952: const char *__restrict __format, __gnuc_va_list __arg) 24952: noexcept (true) __attribute__ ((__format__ (__scanf__, 2, 0))); 24952: 24952: 24952: 24952: 24952: 24952: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf") 24952: 24952: 24952: 24952: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 24952: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf") 24952: 24952: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 24952: extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc99_vsscanf") 24952: 24952: 24952: 24952: __attribute__ ((__format__ (__scanf__, 2, 0))); 24952: # 513 "/usr/include/stdio.h" 3 4 24952: extern int fgetc (FILE *__stream); 24952: extern int getc (FILE *__stream); 24952: 24952: 24952: 24952: 24952: 24952: extern int getchar (void); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int getc_unlocked (FILE *__stream); 24952: extern int getchar_unlocked (void); 24952: # 538 "/usr/include/stdio.h" 3 4 24952: extern int fgetc_unlocked (FILE *__stream); 24952: # 549 "/usr/include/stdio.h" 3 4 24952: extern int fputc (int __c, FILE *__stream); 24952: extern int putc (int __c, FILE *__stream); 24952: 24952: 24952: 24952: 24952: 24952: extern int putchar (int __c); 24952: # 565 "/usr/include/stdio.h" 3 4 24952: extern int fputc_unlocked (int __c, FILE *__stream); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int putc_unlocked (int __c, FILE *__stream); 24952: extern int putchar_unlocked (int __c); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int getw (FILE *__stream); 24952: 24952: 24952: extern int putw (int __w, FILE *__stream); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: # 615 "/usr/include/stdio.h" 3 4 24952: extern char *fgets_unlocked (char *__restrict __s, int __n, 24952: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: # 632 "/usr/include/stdio.h" 3 4 24952: extern __ssize_t __getdelim (char **__restrict __lineptr, 24952: size_t *__restrict __n, int __delimiter, 24952: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 24952: extern __ssize_t getdelim (char **__restrict __lineptr, 24952: size_t *__restrict __n, int __delimiter, 24952: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern __ssize_t getline (char **__restrict __lineptr, 24952: size_t *__restrict __n, 24952: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int fputs (const char *__restrict __s, FILE *__restrict __stream); 24952: 24952: 24952: 24952: 24952: 24952: extern int puts (const char *__s); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int ungetc (int __c, FILE *__stream); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern size_t fread (void *__restrict __ptr, size_t __size, 24952: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern size_t fwrite (const void *__restrict __ptr, size_t __size, 24952: size_t __n, FILE *__restrict __s); 24952: # 691 "/usr/include/stdio.h" 3 4 24952: extern int fputs_unlocked (const char *__restrict __s, 24952: FILE *__restrict __stream); 24952: # 702 "/usr/include/stdio.h" 3 4 24952: extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, 24952: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 24952: extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, 24952: size_t __n, FILE *__restrict __stream); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int fseek (FILE *__stream, long int __off, int __whence); 24952: 24952: 24952: 24952: 24952: extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern void rewind (FILE *__stream); 24952: # 736 "/usr/include/stdio.h" 3 4 24952: extern int fseeko (FILE *__stream, __off_t __off, int __whence); 24952: 24952: 24952: 24952: 24952: extern __off_t ftello (FILE *__stream) __attribute__ ((__warn_unused_result__)); 24952: # 760 "/usr/include/stdio.h" 3 4 24952: extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); 24952: 24952: 24952: 24952: 24952: extern int fsetpos (FILE *__stream, const fpos_t *__pos); 24952: # 779 "/usr/include/stdio.h" 3 4 24952: extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); 24952: extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__)); 24952: extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); 24952: extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); 24952: 24952: 24952: 24952: extern void clearerr (FILE *__stream) noexcept (true); 24952: 24952: extern int feof (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: extern int ferror (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: extern void clearerr_unlocked (FILE *__stream) noexcept (true); 24952: extern int feof_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: extern int ferror_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern void perror (const char *__s); 24952: 24952: 24952: 24952: 24952: extern int fileno (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern int fileno_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: # 823 "/usr/include/stdio.h" 3 4 24952: extern int pclose (FILE *__stream); 24952: 24952: 24952: 24952: 24952: 24952: extern FILE *popen (const char *__command, const char *__modes) 24952: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (pclose, 1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern char *ctermid (char *__s) noexcept (true) 24952: __attribute__ ((__access__ (__write_only__, 1))); 24952: 24952: 24952: 24952: 24952: 24952: extern char *cuserid (char *__s) 24952: __attribute__ ((__access__ (__write_only__, 1))); 24952: 24952: 24952: 24952: 24952: struct obstack; 24952: 24952: 24952: extern int obstack_printf (struct obstack *__restrict __obstack, 24952: const char *__restrict __format, ...) 24952: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))); 24952: extern int obstack_vprintf (struct obstack *__restrict __obstack, 24952: const char *__restrict __format, 24952: __gnuc_va_list __args) 24952: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern void flockfile (FILE *__stream) noexcept (true); 24952: 24952: 24952: 24952: extern int ftrylockfile (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: extern void funlockfile (FILE *__stream) noexcept (true); 24952: # 885 "/usr/include/stdio.h" 3 4 24952: extern int __uflow (FILE *); 24952: extern int __overflow (FILE *, int); 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 1 3 4 24952: # 26 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 24952: extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, 24952: const char *__restrict __format, ...) noexcept (true) 24952: __attribute__ ((__access__ (__write_only__, 1, 3))); 24952: extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, 24952: const char *__restrict __format, 24952: __gnuc_va_list __ap) noexcept (true) 24952: __attribute__ ((__access__ (__write_only__, 1, 3))); 24952: 24952: 24952: 24952: extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, 24952: size_t __slen, const char *__restrict __format, 24952: ...) noexcept (true) 24952: __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, 24952: size_t __slen, const char *__restrict __format, 24952: __gnuc_va_list __ap) noexcept (true) 24952: __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: 24952: 24952: 24952: 24952: 24952: extern int __fprintf_chk (FILE *__restrict __stream, int __flag, 24952: const char *__restrict __format, ...); 24952: extern int __printf_chk (int __flag, const char *__restrict __format, ...); 24952: extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, 24952: const char *__restrict __format, __gnuc_va_list __ap); 24952: extern int __vprintf_chk (int __flag, const char *__restrict __format, 24952: __gnuc_va_list __ap); 24952: 24952: 24952: extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, 24952: ...) __attribute__ ((__format__ (__printf__, 3, 4))); 24952: extern int __vdprintf_chk (int __fd, int __flag, 24952: const char *__restrict __fmt, __gnuc_va_list __arg) 24952: __attribute__ ((__format__ (__printf__, 3, 0))); 24952: 24952: 24952: 24952: 24952: extern int __asprintf_chk (char **__restrict __ptr, int __flag, 24952: const char *__restrict __fmt, ...) 24952: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__)); 24952: extern int __vasprintf_chk (char **__restrict __ptr, int __flag, 24952: const char *__restrict __fmt, __gnuc_va_list __arg) 24952: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__)); 24952: extern int __obstack_printf_chk (struct obstack *__restrict __obstack, 24952: int __flag, const char *__restrict __format, 24952: ...) 24952: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 24952: extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, 24952: int __flag, 24952: const char *__restrict __format, 24952: __gnuc_va_list __args) 24952: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 24952: # 90 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 24952: extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, 24952: FILE *__restrict __stream) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))); 24952: 24952: extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, 24952: size_t __size, size_t __n, 24952: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, 24952: int __n, FILE *__restrict __stream) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))); 24952: 24952: 24952: 24952: 24952: extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, 24952: size_t __size, size_t __n, 24952: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 24952: # 891 "/usr/include/stdio.h" 2 3 4 24952: # 902 "/usr/include/stdio.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 1 3 4 24952: # 46 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 3 4 24952: extern __inline __attribute__ ((__gnu_inline__)) int 24952: getchar (void) 24952: { 24952: return getc (stdin); 24952: } 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__gnu_inline__)) int 24952: fgetc_unlocked (FILE *__fp) 24952: { 24952: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__gnu_inline__)) int 24952: getc_unlocked (FILE *__fp) 24952: { 24952: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 24952: } 24952: 24952: 24952: extern __inline __attribute__ ((__gnu_inline__)) int 24952: getchar_unlocked (void) 24952: { 24952: return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); 24952: } 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__gnu_inline__)) int 24952: putchar (int __c) 24952: { 24952: return putc (__c, stdout); 24952: } 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__gnu_inline__)) int 24952: fputc_unlocked (int __c, FILE *__stream) 24952: { 24952: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__gnu_inline__)) int 24952: putc_unlocked (int __c, FILE *__stream) 24952: { 24952: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 24952: } 24952: 24952: 24952: extern __inline __attribute__ ((__gnu_inline__)) int 24952: putchar_unlocked (int __c) 24952: { 24952: return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__gnu_inline__)) __ssize_t 24952: getline (char **__lineptr, size_t *__n, FILE *__stream) 24952: { 24952: return __getdelim (__lineptr, __n, '\n', __stream); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__gnu_inline__)) int 24952: __attribute__ ((__leaf__)) feof_unlocked (FILE *__stream) noexcept (true) 24952: { 24952: return (((__stream)->_flags & 0x0010) != 0); 24952: } 24952: 24952: 24952: extern __inline __attribute__ ((__gnu_inline__)) int 24952: __attribute__ ((__leaf__)) ferror_unlocked (FILE *__stream) noexcept (true) 24952: { 24952: return (((__stream)->_flags & 0x0020) != 0); 24952: } 24952: # 903 "/usr/include/stdio.h" 2 3 4 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 1 3 4 24952: # 27 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) noexcept (true) 24952: { 24952: return __builtin___sprintf_chk (__s, 2 - 1, 24952: __builtin_object_size (__s, 2 > 1), __fmt, 24952: __builtin_va_arg_pack ()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) vsprintf (char *__restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 24952: 24952: { 24952: return __builtin___vsprintf_chk (__s, 2 - 1, 24952: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 24952: } 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) noexcept (true) 24952: 24952: { 24952: return __builtin___snprintf_chk (__s, __n, 2 - 1, 24952: __builtin_object_size (__s, 2 > 1), __fmt, 24952: __builtin_va_arg_pack ()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) vsnprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 24952: 24952: { 24952: return __builtin___vsnprintf_chk (__s, __n, 2 - 1, 24952: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) 24952: { 24952: return __fprintf_chk (__stream, 2 - 1, __fmt, 24952: __builtin_va_arg_pack ()); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: printf (const char *__restrict __fmt, ...) 24952: { 24952: return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: vprintf (const char *__restrict __fmt, __gnuc_va_list __ap) 24952: { 24952: 24952: return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap); 24952: 24952: 24952: 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: vfprintf (FILE *__restrict __stream, 24952: const char *__restrict __fmt, __gnuc_va_list __ap) 24952: { 24952: return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap); 24952: } 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: dprintf (int __fd, const char *__restrict __fmt, ...) 24952: { 24952: return __dprintf_chk (__fd, 2 - 1, __fmt, 24952: __builtin_va_arg_pack ()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) 24952: { 24952: return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap); 24952: } 24952: 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 24952: { 24952: return __asprintf_chk (__ptr, 2 - 1, __fmt, 24952: __builtin_va_arg_pack ()); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 24952: 24952: { 24952: return __asprintf_chk (__ptr, 2 - 1, __fmt, 24952: __builtin_va_arg_pack ()); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __fmt, ...) noexcept (true) 24952: 24952: { 24952: return __obstack_printf_chk (__obstack, 2 - 1, __fmt, 24952: __builtin_va_arg_pack ()); 24952: } 24952: # 165 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) vasprintf (char **__restrict __ptr, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 24952: 24952: { 24952: return __vasprintf_chk (__ptr, 2 - 1, __fmt, __ap); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 24952: 24952: { 24952: return __obstack_vprintf_chk (__obstack, 2 - 1, __fmt, 24952: __ap); 24952: } 24952: # 198 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 24952: extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) char * 24952: fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 24952: { 24952: size_t sz = __builtin_object_size (__s, 2 > 1); 24952: 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))))))) 24952: return __fgets_alias (__s, __n, __stream); 24952: 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))))) 24952: return __fgets_chk_warn (__s, sz, __n, __stream); 24952: return __fgets_chk (__s, sz, __n, __stream); 24952: } 24952: 24952: extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)); 24952: extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") 24952: 24952: 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 24952: fread (void *__restrict __ptr, size_t __size, size_t __n, 24952: FILE *__restrict __stream) 24952: { 24952: size_t sz = __builtin_object_size (__ptr, 0); 24952: 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)))))) 24952: return __fread_alias (__ptr, __size, __n, __stream); 24952: 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)))) 24952: return __fread_chk_warn (__ptr, sz, __size, __n, __stream); 24952: return __fread_chk (__ptr, sz, __size, __n, __stream); 24952: } 24952: 24952: 24952: extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) char * 24952: fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream) 24952: { 24952: size_t sz = __builtin_object_size (__s, 2 > 1); 24952: 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))))))) 24952: return __fgets_unlocked_alias (__s, __n, __stream); 24952: 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))))) 24952: return __fgets_unlocked_chk_warn (__s, sz, __n, __stream); 24952: return __fgets_unlocked_chk (__s, sz, __n, __stream); 24952: } 24952: 24952: 24952: 24952: 24952: extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)); 24952: 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") 24952: 24952: 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 24952: fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, 24952: FILE *__restrict __stream) 24952: { 24952: size_t sz = __builtin_object_size (__ptr, 0); 24952: 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)))))) 24952: { 24952: 24952: if (__builtin_constant_p (__size) 24952: && __builtin_constant_p (__n) 24952: && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) 24952: && __size * __n <= 8) 24952: { 24952: size_t __cnt = __size * __n; 24952: char *__cptr = (char *) __ptr; 24952: if (__cnt == 0) 24952: return 0; 24952: 24952: for (; __cnt > 0; --__cnt) 24952: { 24952: int __c = getc_unlocked (__stream); 24952: if (__c == (-1)) 24952: break; 24952: *__cptr++ = __c; 24952: } 24952: return (__cptr - (char *) __ptr) / __size; 24952: } 24952: 24952: return __fread_unlocked_alias (__ptr, __size, __n, __stream); 24952: } 24952: 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)))) 24952: return __fread_unlocked_chk_warn (__ptr, sz, __size, __n, __stream); 24952: return __fread_unlocked_chk (__ptr, sz, __size, __n, __stream); 24952: 24952: } 24952: # 907 "/usr/include/stdio.h" 2 3 4 24952: 24952: 24952: } 24952: # 43 "/usr/include/c++/13/cstdio" 2 3 24952: # 96 "/usr/include/c++/13/cstdio" 3 24952: namespace std 24952: { 24952: using ::FILE; 24952: using ::fpos_t; 24952: 24952: using ::clearerr; 24952: using ::fclose; 24952: using ::feof; 24952: using ::ferror; 24952: using ::fflush; 24952: using ::fgetc; 24952: using ::fgetpos; 24952: using ::fgets; 24952: using ::fopen; 24952: using ::fprintf; 24952: using ::fputc; 24952: using ::fputs; 24952: using ::fread; 24952: using ::freopen; 24952: using ::fscanf; 24952: using ::fseek; 24952: using ::fsetpos; 24952: using ::ftell; 24952: using ::fwrite; 24952: using ::getc; 24952: using ::getchar; 24952: 24952: 24952: 24952: 24952: using ::perror; 24952: using ::printf; 24952: using ::putc; 24952: using ::putchar; 24952: using ::puts; 24952: using ::remove; 24952: using ::rename; 24952: using ::rewind; 24952: using ::scanf; 24952: using ::setbuf; 24952: using ::setvbuf; 24952: using ::sprintf; 24952: using ::sscanf; 24952: using ::tmpfile; 24952: 24952: using ::tmpnam; 24952: 24952: using ::ungetc; 24952: using ::vfprintf; 24952: using ::vprintf; 24952: using ::vsprintf; 24952: } 24952: # 157 "/usr/include/c++/13/cstdio" 3 24952: namespace __gnu_cxx 24952: { 24952: # 175 "/usr/include/c++/13/cstdio" 3 24952: using ::snprintf; 24952: using ::vfscanf; 24952: using ::vscanf; 24952: using ::vsnprintf; 24952: using ::vsscanf; 24952: 24952: } 24952: 24952: namespace std 24952: { 24952: using ::__gnu_cxx::snprintf; 24952: using ::__gnu_cxx::vfscanf; 24952: using ::__gnu_cxx::vscanf; 24952: using ::__gnu_cxx::vsnprintf; 24952: using ::__gnu_cxx::vsscanf; 24952: } 24952: # 46 "/usr/include/c++/13/ext/string_conversions.h" 2 3 24952: # 1 "/usr/include/c++/13/cerrno" 1 3 24952: # 39 "/usr/include/c++/13/cerrno" 3 24952: 24952: # 40 "/usr/include/c++/13/cerrno" 3 24952: 24952: 24952: # 1 "/usr/include/errno.h" 1 3 4 24952: # 28 "/usr/include/errno.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 1 3 4 24952: # 26 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 3 4 24952: # 1 "/usr/include/linux/errno.h" 1 3 4 24952: # 1 "/usr/lib/linux/uapi/arm/asm/errno.h" 1 3 4 24952: # 1 "/usr/include/asm-generic/errno.h" 1 3 4 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 24952: # 6 "/usr/include/asm-generic/errno.h" 2 3 4 24952: # 2 "/usr/lib/linux/uapi/arm/asm/errno.h" 2 3 4 24952: # 2 "/usr/include/linux/errno.h" 2 3 4 24952: # 27 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 2 3 4 24952: # 29 "/usr/include/errno.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: extern "C" { 24952: 24952: 24952: extern int *__errno_location (void) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern char *program_invocation_name; 24952: extern char *program_invocation_short_name; 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 1 3 4 24952: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 3 4 24952: typedef int error_t; 24952: # 49 "/usr/include/errno.h" 2 3 4 24952: 24952: 24952: 24952: } 24952: # 43 "/usr/include/c++/13/cerrno" 2 3 24952: # 47 "/usr/include/c++/13/ext/string_conversions.h" 2 3 24952: 24952: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: _Ret 24952: __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), 24952: const char* __name, const _CharT* __str, std::size_t* __idx, 24952: _Base... __base) 24952: { 24952: _Ret __ret; 24952: 24952: _CharT* __endptr; 24952: 24952: struct _Save_errno { 24952: _Save_errno() : _M_errno((*__errno_location ())) { (*__errno_location ()) = 0; } 24952: ~_Save_errno() { if ((*__errno_location ()) == 0) (*__errno_location ()) = _M_errno; } 24952: int _M_errno; 24952: } const __save_errno; 24952: 24952: struct _Range_chk { 24952: static bool 24952: _S_chk(_TRet, std::false_type) { return false; } 24952: 24952: static bool 24952: _S_chk(_TRet __val, std::true_type) 24952: { 24952: return __val < _TRet(__numeric_traits::__min) 24952: || __val > _TRet(__numeric_traits::__max); 24952: } 24952: }; 24952: 24952: const _TRet __tmp = __convf(__str, &__endptr, __base...); 24952: 24952: if (__endptr == __str) 24952: std::__throw_invalid_argument(__name); 24952: else if ((*__errno_location ()) == 34 24952: || _Range_chk::_S_chk(__tmp, std::is_same<_Ret, int>{})) 24952: std::__throw_out_of_range(__name); 24952: else 24952: __ret = __tmp; 24952: 24952: if (__idx) 24952: *__idx = __endptr - __str; 24952: 24952: return __ret; 24952: } 24952: 24952: 24952: template 24952: _String 24952: __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, 24952: __builtin_va_list), std::size_t __n, 24952: const _CharT* __fmt, ...) 24952: { 24952: 24952: 24952: _CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 24952: * __n)); 24952: 24952: __builtin_va_list __args; 24952: __builtin_va_start(__args, __fmt); 24952: 24952: const int __len = __convf(__s, __n, __fmt, __args); 24952: 24952: __builtin_va_end(__args); 24952: 24952: return _String(__s, __s + __len); 24952: } 24952: 24952: 24952: } 24952: # 4110 "/usr/include/c++/13/bits/basic_string.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/charconv.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/charconv.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/charconv.h" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: namespace __detail 24952: { 24952: 24952: 24952: template 24952: constexpr bool __integer_to_chars_is_unsigned 24952: = ! __gnu_cxx::__int_traits<_Tp>::__is_signed; 24952: 24952: 24952: 24952: template 24952: constexpr unsigned 24952: __to_chars_len(_Tp __value, int __base = 10) noexcept 24952: { 24952: 24952: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 24952: 24952: 24952: unsigned __n = 1; 24952: const unsigned __b2 = __base * __base; 24952: const unsigned __b3 = __b2 * __base; 24952: const unsigned long __b4 = __b3 * __base; 24952: for (;;) 24952: { 24952: if (__value < (unsigned)__base) return __n; 24952: if (__value < __b2) return __n + 1; 24952: if (__value < __b3) return __n + 2; 24952: if (__value < __b4) return __n + 3; 24952: __value /= __b4; 24952: __n += 4; 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: void 24952: __to_chars_10_impl(char* __first, unsigned __len, _Tp __val) noexcept 24952: { 24952: 24952: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 24952: 24952: 24952: constexpr char __digits[201] = 24952: "0001020304050607080910111213141516171819" 24952: "2021222324252627282930313233343536373839" 24952: "4041424344454647484950515253545556575859" 24952: "6061626364656667686970717273747576777879" 24952: "8081828384858687888990919293949596979899"; 24952: unsigned __pos = __len - 1; 24952: while (__val >= 100) 24952: { 24952: auto const __num = (__val % 100) * 2; 24952: __val /= 100; 24952: __first[__pos] = __digits[__num + 1]; 24952: __first[__pos - 1] = __digits[__num]; 24952: __pos -= 2; 24952: } 24952: if (__val >= 10) 24952: { 24952: auto const __num = __val * 2; 24952: __first[1] = __digits[__num + 1]; 24952: __first[0] = __digits[__num]; 24952: } 24952: else 24952: __first[0] = '0' + __val; 24952: } 24952: 24952: } 24952: 24952: } 24952: # 4111 "/usr/include/c++/13/bits/basic_string.h" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: namespace __cxx11 { 24952: 24952: 24952: 24952: inline int 24952: stoi(const string& __str, size_t* __idx = 0, int __base = 10) 24952: { return __gnu_cxx::__stoa(&std::strtol, "stoi", __str.c_str(), 24952: __idx, __base); } 24952: 24952: inline long 24952: stol(const string& __str, size_t* __idx = 0, int __base = 10) 24952: { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(), 24952: __idx, __base); } 24952: 24952: inline unsigned long 24952: stoul(const string& __str, size_t* __idx = 0, int __base = 10) 24952: { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(), 24952: __idx, __base); } 24952: 24952: inline long long 24952: stoll(const string& __str, size_t* __idx = 0, int __base = 10) 24952: { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(), 24952: __idx, __base); } 24952: 24952: inline unsigned long long 24952: stoull(const string& __str, size_t* __idx = 0, int __base = 10) 24952: { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(), 24952: __idx, __base); } 24952: 24952: 24952: inline float 24952: stof(const string& __str, size_t* __idx = 0) 24952: { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } 24952: 24952: inline double 24952: stod(const string& __str, size_t* __idx = 0) 24952: { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } 24952: 24952: inline long double 24952: stold(const string& __str, size_t* __idx = 0) 24952: { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: inline string 24952: to_string(int __val) 24952: 24952: noexcept 24952: 24952: { 24952: const bool __neg = __val < 0; 24952: const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val; 24952: const auto __len = __detail::__to_chars_len(__uval); 24952: string __str(__neg + __len, '-'); 24952: __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); 24952: return __str; 24952: } 24952: 24952: [[__nodiscard__]] 24952: inline string 24952: to_string(unsigned __val) 24952: 24952: noexcept 24952: 24952: { 24952: string __str(__detail::__to_chars_len(__val), '\0'); 24952: __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); 24952: return __str; 24952: } 24952: 24952: [[__nodiscard__]] 24952: inline string 24952: to_string(long __val) 24952: 24952: noexcept 24952: 24952: { 24952: const bool __neg = __val < 0; 24952: const unsigned long __uval = __neg ? (unsigned long)~__val + 1ul : __val; 24952: const auto __len = __detail::__to_chars_len(__uval); 24952: string __str(__neg + __len, '-'); 24952: __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); 24952: return __str; 24952: } 24952: 24952: [[__nodiscard__]] 24952: inline string 24952: to_string(unsigned long __val) 24952: 24952: noexcept 24952: 24952: { 24952: string __str(__detail::__to_chars_len(__val), '\0'); 24952: __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); 24952: return __str; 24952: } 24952: 24952: [[__nodiscard__]] 24952: inline string 24952: to_string(long long __val) 24952: { 24952: const bool __neg = __val < 0; 24952: const unsigned long long __uval 24952: = __neg ? (unsigned long long)~__val + 1ull : __val; 24952: const auto __len = __detail::__to_chars_len(__uval); 24952: string __str(__neg + __len, '-'); 24952: __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); 24952: return __str; 24952: } 24952: 24952: [[__nodiscard__]] 24952: inline string 24952: to_string(unsigned long long __val) 24952: { 24952: string __str(__detail::__to_chars_len(__val), '\0'); 24952: __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); 24952: return __str; 24952: } 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: inline string 24952: to_string(float __val) 24952: { 24952: const int __n = 24952: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 24952: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 24952: "%f", __val); 24952: } 24952: 24952: [[__nodiscard__]] 24952: inline string 24952: to_string(double __val) 24952: { 24952: const int __n = 24952: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 24952: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 24952: "%f", __val); 24952: } 24952: 24952: [[__nodiscard__]] 24952: inline string 24952: to_string(long double __val) 24952: { 24952: const int __n = 24952: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 24952: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 24952: "%Lf", __val); 24952: } 24952: 24952: 24952: 24952: inline int 24952: stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) 24952: { return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(), 24952: __idx, __base); } 24952: 24952: inline long 24952: stol(const wstring& __str, size_t* __idx = 0, int __base = 10) 24952: { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(), 24952: __idx, __base); } 24952: 24952: inline unsigned long 24952: stoul(const wstring& __str, size_t* __idx = 0, int __base = 10) 24952: { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(), 24952: __idx, __base); } 24952: 24952: inline long long 24952: stoll(const wstring& __str, size_t* __idx = 0, int __base = 10) 24952: { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), 24952: __idx, __base); } 24952: 24952: inline unsigned long long 24952: stoull(const wstring& __str, size_t* __idx = 0, int __base = 10) 24952: { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(), 24952: __idx, __base); } 24952: 24952: 24952: inline float 24952: stof(const wstring& __str, size_t* __idx = 0) 24952: { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } 24952: 24952: inline double 24952: stod(const wstring& __str, size_t* __idx = 0) 24952: { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } 24952: 24952: inline long double 24952: stold(const wstring& __str, size_t* __idx = 0) 24952: { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: inline wstring 24952: to_wstring(int __val) 24952: { return __gnu_cxx::__to_xstring(&std::vswprintf, 4 * sizeof(int), 24952: L"%d", __val); } 24952: 24952: [[__nodiscard__]] 24952: inline wstring 24952: to_wstring(unsigned __val) 24952: { return __gnu_cxx::__to_xstring(&std::vswprintf, 24952: 4 * sizeof(unsigned), 24952: L"%u", __val); } 24952: 24952: [[__nodiscard__]] 24952: inline wstring 24952: to_wstring(long __val) 24952: { return __gnu_cxx::__to_xstring(&std::vswprintf, 4 * sizeof(long), 24952: L"%ld", __val); } 24952: 24952: [[__nodiscard__]] 24952: inline wstring 24952: to_wstring(unsigned long __val) 24952: { return __gnu_cxx::__to_xstring(&std::vswprintf, 24952: 4 * sizeof(unsigned long), 24952: L"%lu", __val); } 24952: 24952: [[__nodiscard__]] 24952: inline wstring 24952: to_wstring(long long __val) 24952: { return __gnu_cxx::__to_xstring(&std::vswprintf, 24952: 4 * sizeof(long long), 24952: L"%lld", __val); } 24952: 24952: [[__nodiscard__]] 24952: inline wstring 24952: to_wstring(unsigned long long __val) 24952: { return __gnu_cxx::__to_xstring(&std::vswprintf, 24952: 4 * sizeof(unsigned long long), 24952: L"%llu", __val); } 24952: 24952: [[__nodiscard__]] 24952: inline wstring 24952: to_wstring(float __val) 24952: { 24952: const int __n = 24952: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 24952: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 24952: L"%f", __val); 24952: } 24952: 24952: [[__nodiscard__]] 24952: inline wstring 24952: to_wstring(double __val) 24952: { 24952: const int __n = 24952: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 24952: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 24952: L"%f", __val); 24952: } 24952: 24952: [[__nodiscard__]] 24952: inline wstring 24952: to_wstring(long double __val) 24952: { 24952: const int __n = 24952: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 24952: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 24952: L"%Lf", __val); 24952: } 24952: 24952: 24952: 24952: } 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: template, _Alloc>> 24952: struct __str_hash_base 24952: : public __hash_base 24952: { 24952: [[__nodiscard__]] 24952: size_t 24952: operator()(const _StrT& __s) const noexcept 24952: { return _Hash_impl::hash(__s.data(), __s.length() * sizeof(_CharT)); } 24952: }; 24952: 24952: 24952: 24952: template 24952: struct hash, _Alloc>> 24952: : public __str_hash_base 24952: { }; 24952: 24952: 24952: template 24952: struct hash, _Alloc>> 24952: : public __str_hash_base 24952: { }; 24952: 24952: template 24952: struct __is_fast_hash, 24952: _Alloc>>> 24952: : std::false_type 24952: { }; 24952: # 4440 "/usr/include/c++/13/bits/basic_string.h" 3 24952: template 24952: struct hash, _Alloc>> 24952: : public __str_hash_base 24952: { }; 24952: 24952: 24952: template 24952: struct hash, _Alloc>> 24952: : public __str_hash_base 24952: { }; 24952: 24952: 24952: 24952: template<> struct __is_fast_hash> : std::false_type { }; 24952: template<> struct __is_fast_hash> : std::false_type { }; 24952: template<> struct __is_fast_hash> : std::false_type { }; 24952: template<> struct __is_fast_hash> : std::false_type { }; 24952: # 4472 "/usr/include/c++/13/bits/basic_string.h" 3 24952: inline namespace literals 24952: { 24952: inline namespace string_literals 24952: { 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wliteral-suffix" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: inline basic_string 24952: operator""s(const char* __str, size_t __len) 24952: { return basic_string{__str, __len}; } 24952: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: inline basic_string 24952: operator""s(const wchar_t* __str, size_t __len) 24952: { return basic_string{__str, __len}; } 24952: # 4502 "/usr/include/c++/13/bits/basic_string.h" 3 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: inline basic_string 24952: operator""s(const char16_t* __str, size_t __len) 24952: { return basic_string{__str, __len}; } 24952: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: inline basic_string 24952: operator""s(const char32_t* __str, size_t __len) 24952: { return basic_string{__str, __len}; } 24952: 24952: 24952: #pragma GCC diagnostic pop 24952: } 24952: } 24952: 24952: 24952: namespace __detail::__variant 24952: { 24952: template struct _Never_valueless_alt; 24952: 24952: 24952: 24952: template 24952: struct _Never_valueless_alt> 24952: : __and_< 24952: is_nothrow_move_constructible>, 24952: is_nothrow_move_assignable> 24952: >::type 24952: { }; 24952: } 24952: 24952: 24952: 24952: 24952: } 24952: # 55 "/usr/include/c++/13/string" 2 3 24952: # 1 "/usr/include/c++/13/bits/basic_string.tcc" 1 3 24952: # 42 "/usr/include/c++/13/bits/basic_string.tcc" 3 24952: 24952: # 43 "/usr/include/c++/13/bits/basic_string.tcc" 3 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: template 24952: const typename basic_string<_CharT, _Traits, _Alloc>::size_type 24952: basic_string<_CharT, _Traits, _Alloc>::npos; 24952: 24952: template 24952: 24952: void 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: swap(basic_string& __s) noexcept 24952: { 24952: if (this == std::__addressof(__s)) 24952: return; 24952: 24952: _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator()); 24952: 24952: if (_M_is_local()) 24952: if (__s._M_is_local()) 24952: { 24952: if (length() && __s.length()) 24952: { 24952: _CharT __tmp_data[_S_local_capacity + 1]; 24952: traits_type::copy(__tmp_data, __s._M_local_buf, 24952: __s.length() + 1); 24952: traits_type::copy(__s._M_local_buf, _M_local_buf, 24952: length() + 1); 24952: traits_type::copy(_M_local_buf, __tmp_data, 24952: __s.length() + 1); 24952: } 24952: else if (__s.length()) 24952: { 24952: _M_init_local_buf(); 24952: traits_type::copy(_M_local_buf, __s._M_local_buf, 24952: __s.length() + 1); 24952: _M_length(__s.length()); 24952: __s._M_set_length(0); 24952: return; 24952: } 24952: else if (length()) 24952: { 24952: __s._M_init_local_buf(); 24952: traits_type::copy(__s._M_local_buf, _M_local_buf, 24952: length() + 1); 24952: __s._M_length(length()); 24952: _M_set_length(0); 24952: return; 24952: } 24952: } 24952: else 24952: { 24952: const size_type __tmp_capacity = __s._M_allocated_capacity; 24952: __s._M_init_local_buf(); 24952: traits_type::copy(__s._M_local_buf, _M_local_buf, 24952: length() + 1); 24952: _M_data(__s._M_data()); 24952: __s._M_data(__s._M_local_buf); 24952: _M_capacity(__tmp_capacity); 24952: } 24952: else 24952: { 24952: const size_type __tmp_capacity = _M_allocated_capacity; 24952: if (__s._M_is_local()) 24952: { 24952: _M_init_local_buf(); 24952: traits_type::copy(_M_local_buf, __s._M_local_buf, 24952: __s.length() + 1); 24952: __s._M_data(_M_data()); 24952: _M_data(_M_local_buf); 24952: } 24952: else 24952: { 24952: pointer __tmp_ptr = _M_data(); 24952: _M_data(__s._M_data()); 24952: __s._M_data(__tmp_ptr); 24952: _M_capacity(__s._M_allocated_capacity); 24952: } 24952: __s._M_capacity(__tmp_capacity); 24952: } 24952: 24952: const size_type __tmp_length = length(); 24952: _M_length(__s.length()); 24952: __s._M_length(__tmp_length); 24952: } 24952: 24952: template 24952: 24952: typename basic_string<_CharT, _Traits, _Alloc>::pointer 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: _M_create(size_type& __capacity, size_type __old_capacity) 24952: { 24952: 24952: 24952: if (__capacity > max_size()) 24952: std::__throw_length_error(("basic_string::_M_create")); 24952: 24952: 24952: 24952: 24952: if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) 24952: { 24952: __capacity = 2 * __old_capacity; 24952: 24952: if (__capacity > max_size()) 24952: __capacity = max_size(); 24952: } 24952: 24952: 24952: 24952: return _S_allocate(_M_get_allocator(), __capacity + 1); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: template 24952: 24952: void 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: _M_construct(_InIterator __beg, _InIterator __end, 24952: std::input_iterator_tag) 24952: { 24952: size_type __len = 0; 24952: size_type __capacity = size_type(_S_local_capacity); 24952: 24952: _M_init_local_buf(); 24952: 24952: while (__beg != __end && __len < __capacity) 24952: { 24952: _M_local_buf[__len++] = *__beg; 24952: ++__beg; 24952: } 24952: 24952: struct _Guard 24952: { 24952: 24952: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 24952: 24952: 24952: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 24952: 24952: basic_string* _M_guarded; 24952: } __guard(this); 24952: 24952: while (__beg != __end) 24952: { 24952: if (__len == __capacity) 24952: { 24952: 24952: __capacity = __len + 1; 24952: pointer __another = _M_create(__capacity, __len); 24952: this->_S_copy(__another, _M_data(), __len); 24952: _M_dispose(); 24952: _M_data(__another); 24952: _M_capacity(__capacity); 24952: } 24952: traits_type::assign(_M_data()[__len++], *__beg); 24952: ++__beg; 24952: } 24952: 24952: __guard._M_guarded = 0; 24952: 24952: _M_set_length(__len); 24952: } 24952: 24952: template 24952: template 24952: 24952: void 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: _M_construct(_InIterator __beg, _InIterator __end, 24952: std::forward_iterator_tag) 24952: { 24952: size_type __dnew = static_cast(std::distance(__beg, __end)); 24952: 24952: if (__dnew > size_type(_S_local_capacity)) 24952: { 24952: _M_data(_M_create(__dnew, size_type(0))); 24952: _M_capacity(__dnew); 24952: } 24952: else 24952: _M_init_local_buf(); 24952: 24952: 24952: struct _Guard 24952: { 24952: 24952: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 24952: 24952: 24952: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 24952: 24952: basic_string* _M_guarded; 24952: } __guard(this); 24952: 24952: this->_S_copy_chars(_M_data(), __beg, __end); 24952: 24952: __guard._M_guarded = 0; 24952: 24952: _M_set_length(__dnew); 24952: } 24952: 24952: template 24952: 24952: void 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: _M_construct(size_type __n, _CharT __c) 24952: { 24952: if (__n > size_type(_S_local_capacity)) 24952: { 24952: _M_data(_M_create(__n, size_type(0))); 24952: _M_capacity(__n); 24952: } 24952: else 24952: _M_init_local_buf(); 24952: 24952: if (__n) 24952: this->_S_assign(_M_data(), __n, __c); 24952: 24952: _M_set_length(__n); 24952: } 24952: 24952: template 24952: 24952: void 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: _M_assign(const basic_string& __str) 24952: { 24952: if (this != std::__addressof(__str)) 24952: { 24952: const size_type __rsize = __str.length(); 24952: const size_type __capacity = capacity(); 24952: 24952: if (__rsize > __capacity) 24952: { 24952: size_type __new_capacity = __rsize; 24952: pointer __tmp = _M_create(__new_capacity, __capacity); 24952: _M_dispose(); 24952: _M_data(__tmp); 24952: _M_capacity(__new_capacity); 24952: } 24952: 24952: if (__rsize) 24952: this->_S_copy(_M_data(), __str._M_data(), __rsize); 24952: 24952: _M_set_length(__rsize); 24952: } 24952: } 24952: 24952: template 24952: 24952: void 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: reserve(size_type __res) 24952: { 24952: const size_type __capacity = capacity(); 24952: 24952: 24952: 24952: 24952: if (__res <= __capacity) 24952: return; 24952: 24952: pointer __tmp = _M_create(__res, __capacity); 24952: this->_S_copy(__tmp, _M_data(), length() + 1); 24952: _M_dispose(); 24952: _M_data(__tmp); 24952: _M_capacity(__res); 24952: } 24952: 24952: template 24952: 24952: void 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 24952: size_type __len2) 24952: { 24952: const size_type __how_much = length() - __pos - __len1; 24952: 24952: size_type __new_capacity = length() + __len2 - __len1; 24952: pointer __r = _M_create(__new_capacity, capacity()); 24952: 24952: if (__pos) 24952: this->_S_copy(__r, _M_data(), __pos); 24952: if (__s && __len2) 24952: this->_S_copy(__r + __pos, __s, __len2); 24952: if (__how_much) 24952: this->_S_copy(__r + __pos + __len2, 24952: _M_data() + __pos + __len1, __how_much); 24952: 24952: _M_dispose(); 24952: _M_data(__r); 24952: _M_capacity(__new_capacity); 24952: } 24952: 24952: template 24952: 24952: void 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: _M_erase(size_type __pos, size_type __n) 24952: { 24952: const size_type __how_much = length() - __pos - __n; 24952: 24952: if (__how_much && __n) 24952: this->_S_move(_M_data() + __pos, _M_data() + __pos + __n, __how_much); 24952: 24952: _M_set_length(length() - __n); 24952: } 24952: 24952: template 24952: 24952: void 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: reserve() 24952: { 24952: if (_M_is_local()) 24952: return; 24952: 24952: const size_type __length = length(); 24952: const size_type __capacity = _M_allocated_capacity; 24952: 24952: if (__length <= size_type(_S_local_capacity)) 24952: { 24952: _M_init_local_buf(); 24952: this->_S_copy(_M_local_buf, _M_data(), __length + 1); 24952: _M_destroy(__capacity); 24952: _M_data(_M_local_data()); 24952: } 24952: 24952: else if (__length < __capacity) 24952: try 24952: { 24952: pointer __tmp = _S_allocate(_M_get_allocator(), __length + 1); 24952: this->_S_copy(__tmp, _M_data(), __length + 1); 24952: _M_dispose(); 24952: _M_data(__tmp); 24952: _M_capacity(__length); 24952: } 24952: catch (const __cxxabiv1::__forced_unwind&) 24952: { throw; } 24952: catch (...) 24952: { } 24952: 24952: } 24952: 24952: template 24952: 24952: void 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: resize(size_type __n, _CharT __c) 24952: { 24952: const size_type __size = this->size(); 24952: if (__size < __n) 24952: this->append(__n - __size, __c); 24952: else if (__n < __size) 24952: this->_M_set_length(__n); 24952: } 24952: 24952: template 24952: 24952: basic_string<_CharT, _Traits, _Alloc>& 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: _M_append(const _CharT* __s, size_type __n) 24952: { 24952: const size_type __len = __n + this->size(); 24952: 24952: if (__len <= this->capacity()) 24952: { 24952: if (__n) 24952: this->_S_copy(this->_M_data() + this->size(), __s, __n); 24952: } 24952: else 24952: this->_M_mutate(this->size(), size_type(0), __s, __n); 24952: 24952: this->_M_set_length(__len); 24952: return *this; 24952: } 24952: 24952: template 24952: template 24952: 24952: basic_string<_CharT, _Traits, _Alloc>& 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 24952: _InputIterator __k1, _InputIterator __k2, 24952: std::__false_type) 24952: { 24952: 24952: 24952: const basic_string __s(__k1, __k2, this->get_allocator()); 24952: const size_type __n1 = __i2 - __i1; 24952: return _M_replace(__i1 - begin(), __n1, __s._M_data(), 24952: __s.size()); 24952: } 24952: 24952: template 24952: 24952: basic_string<_CharT, _Traits, _Alloc>& 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 24952: _CharT __c) 24952: { 24952: _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); 24952: 24952: const size_type __old_size = this->size(); 24952: const size_type __new_size = __old_size + __n2 - __n1; 24952: 24952: if (__new_size <= this->capacity()) 24952: { 24952: pointer __p = this->_M_data() + __pos1; 24952: 24952: const size_type __how_much = __old_size - __pos1 - __n1; 24952: if (__how_much && __n1 != __n2) 24952: this->_S_move(__p + __n2, __p + __n1, __how_much); 24952: } 24952: else 24952: this->_M_mutate(__pos1, __n1, 0, __n2); 24952: 24952: if (__n2) 24952: this->_S_assign(this->_M_data() + __pos1, __n2, __c); 24952: 24952: this->_M_set_length(__new_size); 24952: return *this; 24952: } 24952: 24952: template 24952: __attribute__((__noinline__, __noclone__, __cold__)) void 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 24952: const size_type __len2, const size_type __how_much) 24952: { 24952: 24952: if (__len2 && __len2 <= __len1) 24952: this->_S_move(__p, __s, __len2); 24952: if (__how_much && __len1 != __len2) 24952: this->_S_move(__p + __len2, __p + __len1, __how_much); 24952: if (__len2 > __len1) 24952: { 24952: if (__s + __len2 <= __p + __len1) 24952: this->_S_move(__p, __s, __len2); 24952: else if (__s >= __p + __len1) 24952: { 24952: 24952: 24952: const size_type __poff = (__s - __p) + (__len2 - __len1); 24952: this->_S_copy(__p, __p + __poff, __len2); 24952: } 24952: else 24952: { 24952: const size_type __nleft = (__p + __len1) - __s; 24952: this->_S_move(__p, __s, __nleft); 24952: this->_S_copy(__p + __nleft, __p + __len2, __len2 - __nleft); 24952: } 24952: } 24952: } 24952: 24952: template 24952: 24952: basic_string<_CharT, _Traits, _Alloc>& 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 24952: const size_type __len2) 24952: { 24952: _M_check_length(__len1, __len2, "basic_string::_M_replace"); 24952: 24952: const size_type __old_size = this->size(); 24952: const size_type __new_size = __old_size + __len2 - __len1; 24952: 24952: if (__new_size <= this->capacity()) 24952: { 24952: pointer __p = this->_M_data() + __pos; 24952: 24952: const size_type __how_much = __old_size - __pos - __len1; 24952: # 537 "/usr/include/c++/13/bits/basic_string.tcc" 3 24952: if (__builtin_expect(_M_disjunct(__s), true)) 24952: { 24952: if (__how_much && __len1 != __len2) 24952: this->_S_move(__p + __len2, __p + __len1, __how_much); 24952: if (__len2) 24952: this->_S_copy(__p, __s, __len2); 24952: } 24952: else 24952: _M_replace_cold(__p, __len1, __s, __len2, __how_much); 24952: } 24952: else 24952: this->_M_mutate(__pos, __len1, __s, __len2); 24952: 24952: this->_M_set_length(__new_size); 24952: return *this; 24952: } 24952: 24952: template 24952: 24952: typename basic_string<_CharT, _Traits, _Alloc>::size_type 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: copy(_CharT* __s, size_type __n, size_type __pos) const 24952: { 24952: _M_check(__pos, "basic_string::copy"); 24952: __n = _M_limit(__pos, __n); 24952: ; 24952: if (__n) 24952: _S_copy(__s, _M_data() + __pos, __n); 24952: 24952: return __n; 24952: } 24952: # 615 "/usr/include/c++/13/bits/basic_string.tcc" 3 24952: template 24952: 24952: typename basic_string<_CharT, _Traits, _Alloc>::size_type 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: find(const _CharT* __s, size_type __pos, size_type __n) const 24952: noexcept 24952: { 24952: ; 24952: const size_type __size = this->size(); 24952: 24952: if (__n == 0) 24952: return __pos <= __size ? __pos : npos; 24952: if (__pos >= __size) 24952: return npos; 24952: 24952: const _CharT __elem0 = __s[0]; 24952: const _CharT* const __data = data(); 24952: const _CharT* __first = __data + __pos; 24952: const _CharT* const __last = __data + __size; 24952: size_type __len = __size - __pos; 24952: 24952: while (__len >= __n) 24952: { 24952: 24952: __first = traits_type::find(__first, __len - __n + 1, __elem0); 24952: if (!__first) 24952: return npos; 24952: 24952: 24952: 24952: if (traits_type::compare(__first, __s, __n) == 0) 24952: return __first - __data; 24952: __len = __last - ++__first; 24952: } 24952: return npos; 24952: } 24952: 24952: template 24952: 24952: typename basic_string<_CharT, _Traits, _Alloc>::size_type 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: find(_CharT __c, size_type __pos) const noexcept 24952: { 24952: size_type __ret = npos; 24952: const size_type __size = this->size(); 24952: if (__pos < __size) 24952: { 24952: const _CharT* __data = _M_data(); 24952: const size_type __n = __size - __pos; 24952: const _CharT* __p = traits_type::find(__data + __pos, __n, __c); 24952: if (__p) 24952: __ret = __p - __data; 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: 24952: typename basic_string<_CharT, _Traits, _Alloc>::size_type 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: rfind(const _CharT* __s, size_type __pos, size_type __n) const 24952: noexcept 24952: { 24952: ; 24952: const size_type __size = this->size(); 24952: if (__n <= __size) 24952: { 24952: __pos = std::min(size_type(__size - __n), __pos); 24952: const _CharT* __data = _M_data(); 24952: do 24952: { 24952: if (traits_type::compare(__data + __pos, __s, __n) == 0) 24952: return __pos; 24952: } 24952: while (__pos-- > 0); 24952: } 24952: return npos; 24952: } 24952: 24952: template 24952: 24952: typename basic_string<_CharT, _Traits, _Alloc>::size_type 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: rfind(_CharT __c, size_type __pos) const noexcept 24952: { 24952: size_type __size = this->size(); 24952: if (__size) 24952: { 24952: if (--__size > __pos) 24952: __size = __pos; 24952: for (++__size; __size-- > 0; ) 24952: if (traits_type::eq(_M_data()[__size], __c)) 24952: return __size; 24952: } 24952: return npos; 24952: } 24952: 24952: template 24952: 24952: typename basic_string<_CharT, _Traits, _Alloc>::size_type 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 24952: noexcept 24952: { 24952: ; 24952: for (; __n && __pos < this->size(); ++__pos) 24952: { 24952: const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); 24952: if (__p) 24952: return __pos; 24952: } 24952: return npos; 24952: } 24952: 24952: template 24952: 24952: typename basic_string<_CharT, _Traits, _Alloc>::size_type 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 24952: noexcept 24952: { 24952: ; 24952: size_type __size = this->size(); 24952: if (__size && __n) 24952: { 24952: if (--__size > __pos) 24952: __size = __pos; 24952: do 24952: { 24952: if (traits_type::find(__s, __n, _M_data()[__size])) 24952: return __size; 24952: } 24952: while (__size-- != 0); 24952: } 24952: return npos; 24952: } 24952: 24952: template 24952: 24952: typename basic_string<_CharT, _Traits, _Alloc>::size_type 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const 24952: noexcept 24952: { 24952: ; 24952: for (; __pos < this->size(); ++__pos) 24952: if (!traits_type::find(__s, __n, _M_data()[__pos])) 24952: return __pos; 24952: return npos; 24952: } 24952: 24952: template 24952: 24952: typename basic_string<_CharT, _Traits, _Alloc>::size_type 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: find_first_not_of(_CharT __c, size_type __pos) const noexcept 24952: { 24952: for (; __pos < this->size(); ++__pos) 24952: if (!traits_type::eq(_M_data()[__pos], __c)) 24952: return __pos; 24952: return npos; 24952: } 24952: 24952: template 24952: 24952: typename basic_string<_CharT, _Traits, _Alloc>::size_type 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const 24952: noexcept 24952: { 24952: ; 24952: size_type __size = this->size(); 24952: if (__size) 24952: { 24952: if (--__size > __pos) 24952: __size = __pos; 24952: do 24952: { 24952: if (!traits_type::find(__s, __n, _M_data()[__size])) 24952: return __size; 24952: } 24952: while (__size--); 24952: } 24952: return npos; 24952: } 24952: 24952: template 24952: 24952: typename basic_string<_CharT, _Traits, _Alloc>::size_type 24952: basic_string<_CharT, _Traits, _Alloc>:: 24952: find_last_not_of(_CharT __c, size_type __pos) const noexcept 24952: { 24952: size_type __size = this->size(); 24952: if (__size) 24952: { 24952: if (--__size > __pos) 24952: __size = __pos; 24952: do 24952: { 24952: if (!traits_type::eq(_M_data()[__size], __c)) 24952: return __size; 24952: } 24952: while (__size--); 24952: } 24952: return npos; 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: operator>>(basic_istream<_CharT, _Traits>& __in, 24952: basic_string<_CharT, _Traits, _Alloc>& __str) 24952: { 24952: typedef basic_istream<_CharT, _Traits> __istream_type; 24952: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 24952: typedef typename __istream_type::ios_base __ios_base; 24952: typedef typename __istream_type::int_type __int_type; 24952: typedef typename __string_type::size_type __size_type; 24952: typedef ctype<_CharT> __ctype_type; 24952: typedef typename __ctype_type::ctype_base __ctype_base; 24952: 24952: __size_type __extracted = 0; 24952: typename __ios_base::iostate __err = __ios_base::goodbit; 24952: typename __istream_type::sentry __cerb(__in, false); 24952: if (__cerb) 24952: { 24952: try 24952: { 24952: 24952: __str.erase(); 24952: _CharT __buf[128]; 24952: __size_type __len = 0; 24952: const streamsize __w = __in.width(); 24952: const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) 24952: : __str.max_size(); 24952: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 24952: const __int_type __eof = _Traits::eof(); 24952: __int_type __c = __in.rdbuf()->sgetc(); 24952: 24952: while (__extracted < __n 24952: && !_Traits::eq_int_type(__c, __eof) 24952: && !__ct.is(__ctype_base::space, 24952: _Traits::to_char_type(__c))) 24952: { 24952: if (__len == sizeof(__buf) / sizeof(_CharT)) 24952: { 24952: __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); 24952: __len = 0; 24952: } 24952: __buf[__len++] = _Traits::to_char_type(__c); 24952: ++__extracted; 24952: __c = __in.rdbuf()->snextc(); 24952: } 24952: __str.append(__buf, __len); 24952: 24952: if (__extracted < __n && _Traits::eq_int_type(__c, __eof)) 24952: __err |= __ios_base::eofbit; 24952: __in.width(0); 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: __in._M_setstate(__ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { 24952: 24952: 24952: 24952: __in._M_setstate(__ios_base::badbit); 24952: } 24952: } 24952: 24952: if (!__extracted) 24952: __err |= __ios_base::failbit; 24952: if (__err) 24952: __in.setstate(__err); 24952: return __in; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: getline(basic_istream<_CharT, _Traits>& __in, 24952: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 24952: { 24952: typedef basic_istream<_CharT, _Traits> __istream_type; 24952: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 24952: typedef typename __istream_type::ios_base __ios_base; 24952: typedef typename __istream_type::int_type __int_type; 24952: typedef typename __string_type::size_type __size_type; 24952: 24952: __size_type __extracted = 0; 24952: const __size_type __n = __str.max_size(); 24952: typename __ios_base::iostate __err = __ios_base::goodbit; 24952: typename __istream_type::sentry __cerb(__in, true); 24952: if (__cerb) 24952: { 24952: try 24952: { 24952: __str.erase(); 24952: const __int_type __idelim = _Traits::to_int_type(__delim); 24952: const __int_type __eof = _Traits::eof(); 24952: __int_type __c = __in.rdbuf()->sgetc(); 24952: 24952: while (__extracted < __n 24952: && !_Traits::eq_int_type(__c, __eof) 24952: && !_Traits::eq_int_type(__c, __idelim)) 24952: { 24952: __str += _Traits::to_char_type(__c); 24952: ++__extracted; 24952: __c = __in.rdbuf()->snextc(); 24952: } 24952: 24952: if (_Traits::eq_int_type(__c, __eof)) 24952: __err |= __ios_base::eofbit; 24952: else if (_Traits::eq_int_type(__c, __idelim)) 24952: { 24952: ++__extracted; 24952: __in.rdbuf()->sbumpc(); 24952: } 24952: else 24952: __err |= __ios_base::failbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: __in._M_setstate(__ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { 24952: 24952: 24952: 24952: __in._M_setstate(__ios_base::badbit); 24952: } 24952: } 24952: if (!__extracted) 24952: __err |= __ios_base::failbit; 24952: if (__err) 24952: __in.setstate(__err); 24952: return __in; 24952: } 24952: # 969 "/usr/include/c++/13/bits/basic_string.tcc" 3 24952: extern template class basic_string; 24952: # 982 "/usr/include/c++/13/bits/basic_string.tcc" 3 24952: extern template 24952: basic_istream& 24952: operator>>(basic_istream&, string&); 24952: extern template 24952: basic_ostream& 24952: operator<<(basic_ostream&, const string&); 24952: extern template 24952: basic_istream& 24952: getline(basic_istream&, string&, char); 24952: extern template 24952: basic_istream& 24952: getline(basic_istream&, string&); 24952: 24952: 24952: 24952: extern template class basic_string; 24952: # 1008 "/usr/include/c++/13/bits/basic_string.tcc" 3 24952: extern template 24952: basic_istream& 24952: operator>>(basic_istream&, wstring&); 24952: extern template 24952: basic_ostream& 24952: operator<<(basic_ostream&, const wstring&); 24952: extern template 24952: basic_istream& 24952: getline(basic_istream&, wstring&, wchar_t); 24952: extern template 24952: basic_istream& 24952: getline(basic_istream&, wstring&); 24952: 24952: 24952: 24952: 24952: } 24952: # 56 "/usr/include/c++/13/string" 2 3 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: namespace pmr { 24952: template> 24952: using basic_string = std::basic_string<_CharT, _Traits, 24952: polymorphic_allocator<_CharT>>; 24952: using string = basic_string; 24952: 24952: 24952: 24952: using u16string = basic_string; 24952: using u32string = basic_string; 24952: using wstring = basic_string; 24952: } 24952: 24952: } 24952: # 16 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: # 1 "/usr/include/c++/13/unordered_set" 1 3 24952: # 32 "/usr/include/c++/13/unordered_set" 3 24952: 24952: # 33 "/usr/include/c++/13/unordered_set" 3 24952: # 41 "/usr/include/c++/13/unordered_set" 3 24952: # 1 "/usr/include/c++/13/bits/unordered_set.h" 1 3 24952: # 38 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: template 24952: using __uset_traits = __detail::_Hashtable_traits<_Cache, true, true>; 24952: 24952: template, 24952: typename _Pred = std::equal_to<_Value>, 24952: typename _Alloc = std::allocator<_Value>, 24952: typename _Tr = __uset_traits<__cache_default<_Value, _Hash>::value>> 24952: using __uset_hashtable = _Hashtable<_Value, _Value, _Alloc, 24952: __detail::_Identity, _Pred, _Hash, 24952: __detail::_Mod_range_hashing, 24952: __detail::_Default_ranged_hash, 24952: __detail::_Prime_rehash_policy, _Tr>; 24952: 24952: 24952: template 24952: using __umset_traits = __detail::_Hashtable_traits<_Cache, true, false>; 24952: 24952: template, 24952: typename _Pred = std::equal_to<_Value>, 24952: typename _Alloc = std::allocator<_Value>, 24952: typename _Tr = __umset_traits<__cache_default<_Value, _Hash>::value>> 24952: using __umset_hashtable = _Hashtable<_Value, _Value, _Alloc, 24952: __detail::_Identity, 24952: _Pred, _Hash, 24952: __detail::_Mod_range_hashing, 24952: __detail::_Default_ranged_hash, 24952: __detail::_Prime_rehash_policy, _Tr>; 24952: 24952: template 24952: class unordered_multiset; 24952: # 100 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: template, 24952: typename _Pred = equal_to<_Value>, 24952: typename _Alloc = allocator<_Value>> 24952: class unordered_set 24952: { 24952: typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 24952: _Hashtable _M_h; 24952: 24952: public: 24952: 24952: 24952: 24952: typedef typename _Hashtable::key_type key_type; 24952: typedef typename _Hashtable::value_type value_type; 24952: typedef typename _Hashtable::hasher hasher; 24952: typedef typename _Hashtable::key_equal key_equal; 24952: typedef typename _Hashtable::allocator_type allocator_type; 24952: 24952: 24952: 24952: 24952: typedef typename _Hashtable::pointer pointer; 24952: typedef typename _Hashtable::const_pointer const_pointer; 24952: typedef typename _Hashtable::reference reference; 24952: typedef typename _Hashtable::const_reference const_reference; 24952: typedef typename _Hashtable::iterator iterator; 24952: typedef typename _Hashtable::const_iterator const_iterator; 24952: typedef typename _Hashtable::local_iterator local_iterator; 24952: typedef typename _Hashtable::const_local_iterator const_local_iterator; 24952: typedef typename _Hashtable::size_type size_type; 24952: typedef typename _Hashtable::difference_type difference_type; 24952: 24952: 24952: 24952: using node_type = typename _Hashtable::node_type; 24952: using insert_return_type = typename _Hashtable::insert_return_type; 24952: 24952: 24952: 24952: 24952: 24952: unordered_set() = default; 24952: # 151 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: explicit 24952: unordered_set(size_type __n, 24952: const hasher& __hf = hasher(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_h(__n, __hf, __eql, __a) 24952: { } 24952: # 172 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: template 24952: unordered_set(_InputIterator __first, _InputIterator __last, 24952: size_type __n = 0, 24952: const hasher& __hf = hasher(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_h(__first, __last, __n, __hf, __eql, __a) 24952: { } 24952: 24952: 24952: unordered_set(const unordered_set&) = default; 24952: 24952: 24952: unordered_set(unordered_set&&) = default; 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: unordered_set(const allocator_type& __a) 24952: : _M_h(__a) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: unordered_set(const unordered_set& __uset, 24952: const allocator_type& __a) 24952: : _M_h(__uset._M_h, __a) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: unordered_set(unordered_set&& __uset, 24952: const allocator_type& __a) 24952: noexcept( noexcept(_Hashtable(std::move(__uset._M_h), __a)) ) 24952: : _M_h(std::move(__uset._M_h), __a) 24952: { } 24952: # 228 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: unordered_set(initializer_list __l, 24952: size_type __n = 0, 24952: const hasher& __hf = hasher(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_h(__l, __n, __hf, __eql, __a) 24952: { } 24952: 24952: unordered_set(size_type __n, const allocator_type& __a) 24952: : unordered_set(__n, hasher(), key_equal(), __a) 24952: { } 24952: 24952: unordered_set(size_type __n, const hasher& __hf, 24952: const allocator_type& __a) 24952: : unordered_set(__n, __hf, key_equal(), __a) 24952: { } 24952: 24952: template 24952: unordered_set(_InputIterator __first, _InputIterator __last, 24952: size_type __n, 24952: const allocator_type& __a) 24952: : unordered_set(__first, __last, __n, hasher(), key_equal(), __a) 24952: { } 24952: 24952: template 24952: unordered_set(_InputIterator __first, _InputIterator __last, 24952: size_type __n, const hasher& __hf, 24952: const allocator_type& __a) 24952: : unordered_set(__first, __last, __n, __hf, key_equal(), __a) 24952: { } 24952: 24952: unordered_set(initializer_list __l, 24952: size_type __n, 24952: const allocator_type& __a) 24952: : unordered_set(__l, __n, hasher(), key_equal(), __a) 24952: { } 24952: 24952: unordered_set(initializer_list __l, 24952: size_type __n, const hasher& __hf, 24952: const allocator_type& __a) 24952: : unordered_set(__l, __n, __hf, key_equal(), __a) 24952: { } 24952: 24952: 24952: unordered_set& 24952: operator=(const unordered_set&) = default; 24952: 24952: 24952: unordered_set& 24952: operator=(unordered_set&&) = default; 24952: # 290 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: unordered_set& 24952: operator=(initializer_list __l) 24952: { 24952: _M_h = __l; 24952: return *this; 24952: } 24952: 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return _M_h.get_allocator(); } 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] bool 24952: empty() const noexcept 24952: { return _M_h.empty(); } 24952: 24952: 24952: size_type 24952: size() const noexcept 24952: { return _M_h.size(); } 24952: 24952: 24952: size_type 24952: max_size() const noexcept 24952: { return _M_h.max_size(); } 24952: # 326 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: iterator 24952: begin() noexcept 24952: { return _M_h.begin(); } 24952: 24952: const_iterator 24952: begin() const noexcept 24952: { return _M_h.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: end() noexcept 24952: { return _M_h.end(); } 24952: 24952: const_iterator 24952: end() const noexcept 24952: { return _M_h.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: cbegin() const noexcept 24952: { return _M_h.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: cend() const noexcept 24952: { return _M_h.end(); } 24952: # 382 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: template 24952: std::pair 24952: emplace(_Args&&... __args) 24952: { return _M_h.emplace(std::forward<_Args>(__args)...); } 24952: # 408 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: template 24952: iterator 24952: emplace_hint(const_iterator __pos, _Args&&... __args) 24952: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 24952: # 427 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: std::pair 24952: insert(const value_type& __x) 24952: { return _M_h.insert(__x); } 24952: 24952: std::pair 24952: insert(value_type&& __x) 24952: { return _M_h.insert(std::move(__x)); } 24952: # 456 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: iterator 24952: insert(const_iterator __hint, const value_type& __x) 24952: { return _M_h.insert(__hint, __x); } 24952: 24952: iterator 24952: insert(const_iterator __hint, value_type&& __x) 24952: { return _M_h.insert(__hint, std::move(__x)); } 24952: # 474 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: template 24952: void 24952: insert(_InputIterator __first, _InputIterator __last) 24952: { _M_h.insert(__first, __last); } 24952: # 486 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: void 24952: insert(initializer_list __l) 24952: { _M_h.insert(__l); } 24952: 24952: 24952: 24952: node_type 24952: extract(const_iterator __pos) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 24952: return _M_h.extract(__pos); 24952: } 24952: 24952: 24952: node_type 24952: extract(const key_type& __key) 24952: { return _M_h.extract(__key); } 24952: 24952: 24952: insert_return_type 24952: insert(node_type&& __nh) 24952: { return _M_h._M_reinsert_node(std::move(__nh)); } 24952: 24952: 24952: iterator 24952: insert(const_iterator, node_type&& __nh) 24952: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 24952: # 529 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: iterator 24952: erase(const_iterator __position) 24952: { return _M_h.erase(__position); } 24952: 24952: 24952: iterator 24952: erase(iterator __position) 24952: { return _M_h.erase(__position); } 24952: # 551 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: size_type 24952: erase(const key_type& __x) 24952: { return _M_h.erase(__x); } 24952: # 569 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: iterator 24952: erase(const_iterator __first, const_iterator __last) 24952: { return _M_h.erase(__first, __last); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: clear() noexcept 24952: { _M_h.clear(); } 24952: # 592 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: void 24952: swap(unordered_set& __x) 24952: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 24952: { _M_h.swap(__x._M_h); } 24952: 24952: 24952: template 24952: friend class std::_Hash_merge_helper; 24952: 24952: template 24952: void 24952: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 24952: { 24952: using _Merge_helper = _Hash_merge_helper; 24952: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 24952: { merge(__source); } 24952: 24952: template 24952: void 24952: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 24952: { 24952: using _Merge_helper = _Hash_merge_helper; 24952: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 24952: { merge(__source); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: hasher 24952: hash_function() const 24952: { return _M_h.hash_function(); } 24952: 24952: 24952: 24952: key_equal 24952: key_eq() const 24952: { return _M_h.key_eq(); } 24952: # 656 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: iterator 24952: find(const key_type& __x) 24952: { return _M_h.find(__x); } 24952: # 668 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: const_iterator 24952: find(const key_type& __x) const 24952: { return _M_h.find(__x); } 24952: # 691 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: size_type 24952: count(const key_type& __x) const 24952: { return _M_h.count(__x); } 24952: # 732 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) 24952: { return _M_h.equal_range(__x); } 24952: # 744 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) const 24952: { return _M_h.equal_range(__x); } 24952: # 760 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: size_type 24952: bucket_count() const noexcept 24952: { return _M_h.bucket_count(); } 24952: 24952: 24952: size_type 24952: max_bucket_count() const noexcept 24952: { return _M_h.max_bucket_count(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_type 24952: bucket_size(size_type __n) const 24952: { return _M_h.bucket_size(__n); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_type 24952: bucket(const key_type& __key) const 24952: { return _M_h.bucket(__key); } 24952: # 794 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: local_iterator 24952: begin(size_type __n) 24952: { return _M_h.begin(__n); } 24952: 24952: const_local_iterator 24952: begin(size_type __n) const 24952: { return _M_h.begin(__n); } 24952: 24952: const_local_iterator 24952: cbegin(size_type __n) const 24952: { return _M_h.cbegin(__n); } 24952: # 814 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: local_iterator 24952: end(size_type __n) 24952: { return _M_h.end(__n); } 24952: 24952: const_local_iterator 24952: end(size_type __n) const 24952: { return _M_h.end(__n); } 24952: 24952: const_local_iterator 24952: cend(size_type __n) const 24952: { return _M_h.cend(__n); } 24952: 24952: 24952: 24952: 24952: 24952: float 24952: load_factor() const noexcept 24952: { return _M_h.load_factor(); } 24952: 24952: 24952: 24952: float 24952: max_load_factor() const noexcept 24952: { return _M_h.max_load_factor(); } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: max_load_factor(float __z) 24952: { _M_h.max_load_factor(__z); } 24952: # 855 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: void 24952: rehash(size_type __n) 24952: { _M_h.rehash(__n); } 24952: # 866 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: void 24952: reserve(size_type __n) 24952: { _M_h.reserve(__n); } 24952: 24952: template 24952: friend bool 24952: operator==(const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&, 24952: const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&); 24952: }; 24952: 24952: 24952: 24952: template::value_type>, 24952: typename _Pred = 24952: equal_to::value_type>, 24952: typename _Allocator = 24952: allocator::value_type>, 24952: typename = _RequireInputIter<_InputIterator>, 24952: typename = _RequireNotAllocatorOrIntegral<_Hash>, 24952: typename = _RequireNotAllocator<_Pred>, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_set(_InputIterator, _InputIterator, 24952: unordered_set::size_type = {}, 24952: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 24952: -> unordered_set::value_type, 24952: _Hash, _Pred, _Allocator>; 24952: 24952: template, 24952: typename _Pred = equal_to<_Tp>, 24952: typename _Allocator = allocator<_Tp>, 24952: typename = _RequireNotAllocatorOrIntegral<_Hash>, 24952: typename = _RequireNotAllocator<_Pred>, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_set(initializer_list<_Tp>, 24952: unordered_set::size_type = {}, 24952: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 24952: -> unordered_set<_Tp, _Hash, _Pred, _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_set(_InputIterator, _InputIterator, 24952: unordered_set::size_type, _Allocator) 24952: -> unordered_set::value_type, 24952: hash< 24952: typename iterator_traits<_InputIterator>::value_type>, 24952: equal_to< 24952: typename iterator_traits<_InputIterator>::value_type>, 24952: _Allocator>; 24952: 24952: template, 24952: typename = _RequireNotAllocatorOrIntegral<_Hash>, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_set(_InputIterator, _InputIterator, 24952: unordered_set::size_type, 24952: _Hash, _Allocator) 24952: -> unordered_set::value_type, 24952: _Hash, 24952: equal_to< 24952: typename iterator_traits<_InputIterator>::value_type>, 24952: _Allocator>; 24952: 24952: template> 24952: unordered_set(initializer_list<_Tp>, 24952: unordered_set::size_type, _Allocator) 24952: -> unordered_set<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_set(initializer_list<_Tp>, 24952: unordered_set::size_type, _Hash, _Allocator) 24952: -> unordered_set<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 24952: # 968 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: template, 24952: typename _Pred = equal_to<_Value>, 24952: typename _Alloc = allocator<_Value>> 24952: class unordered_multiset 24952: { 24952: typedef __umset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 24952: _Hashtable _M_h; 24952: 24952: public: 24952: 24952: 24952: 24952: typedef typename _Hashtable::key_type key_type; 24952: typedef typename _Hashtable::value_type value_type; 24952: typedef typename _Hashtable::hasher hasher; 24952: typedef typename _Hashtable::key_equal key_equal; 24952: typedef typename _Hashtable::allocator_type allocator_type; 24952: 24952: 24952: 24952: 24952: typedef typename _Hashtable::pointer pointer; 24952: typedef typename _Hashtable::const_pointer const_pointer; 24952: typedef typename _Hashtable::reference reference; 24952: typedef typename _Hashtable::const_reference const_reference; 24952: typedef typename _Hashtable::iterator iterator; 24952: typedef typename _Hashtable::const_iterator const_iterator; 24952: typedef typename _Hashtable::local_iterator local_iterator; 24952: typedef typename _Hashtable::const_local_iterator const_local_iterator; 24952: typedef typename _Hashtable::size_type size_type; 24952: typedef typename _Hashtable::difference_type difference_type; 24952: 24952: 24952: 24952: using node_type = typename _Hashtable::node_type; 24952: 24952: 24952: 24952: 24952: 24952: unordered_multiset() = default; 24952: # 1018 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: explicit 24952: unordered_multiset(size_type __n, 24952: const hasher& __hf = hasher(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_h(__n, __hf, __eql, __a) 24952: { } 24952: # 1039 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: template 24952: unordered_multiset(_InputIterator __first, _InputIterator __last, 24952: size_type __n = 0, 24952: const hasher& __hf = hasher(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_h(__first, __last, __n, __hf, __eql, __a) 24952: { } 24952: 24952: 24952: unordered_multiset(const unordered_multiset&) = default; 24952: 24952: 24952: unordered_multiset(unordered_multiset&&) = default; 24952: # 1065 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: unordered_multiset(initializer_list __l, 24952: size_type __n = 0, 24952: const hasher& __hf = hasher(), 24952: const key_equal& __eql = key_equal(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_h(__l, __n, __hf, __eql, __a) 24952: { } 24952: 24952: 24952: unordered_multiset& 24952: operator=(const unordered_multiset&) = default; 24952: 24952: 24952: unordered_multiset& 24952: operator=(unordered_multiset&&) = default; 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: unordered_multiset(const allocator_type& __a) 24952: : _M_h(__a) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: unordered_multiset(const unordered_multiset& __umset, 24952: const allocator_type& __a) 24952: : _M_h(__umset._M_h, __a) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: unordered_multiset(unordered_multiset&& __umset, 24952: const allocator_type& __a) 24952: noexcept( noexcept(_Hashtable(std::move(__umset._M_h), __a)) ) 24952: : _M_h(std::move(__umset._M_h), __a) 24952: { } 24952: 24952: unordered_multiset(size_type __n, const allocator_type& __a) 24952: : unordered_multiset(__n, hasher(), key_equal(), __a) 24952: { } 24952: 24952: unordered_multiset(size_type __n, const hasher& __hf, 24952: const allocator_type& __a) 24952: : unordered_multiset(__n, __hf, key_equal(), __a) 24952: { } 24952: 24952: template 24952: unordered_multiset(_InputIterator __first, _InputIterator __last, 24952: size_type __n, 24952: const allocator_type& __a) 24952: : unordered_multiset(__first, __last, __n, hasher(), key_equal(), __a) 24952: { } 24952: 24952: template 24952: unordered_multiset(_InputIterator __first, _InputIterator __last, 24952: size_type __n, const hasher& __hf, 24952: const allocator_type& __a) 24952: : unordered_multiset(__first, __last, __n, __hf, key_equal(), __a) 24952: { } 24952: 24952: unordered_multiset(initializer_list __l, 24952: size_type __n, 24952: const allocator_type& __a) 24952: : unordered_multiset(__l, __n, hasher(), key_equal(), __a) 24952: { } 24952: 24952: unordered_multiset(initializer_list __l, 24952: size_type __n, const hasher& __hf, 24952: const allocator_type& __a) 24952: : unordered_multiset(__l, __n, __hf, key_equal(), __a) 24952: { } 24952: # 1157 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: unordered_multiset& 24952: operator=(initializer_list __l) 24952: { 24952: _M_h = __l; 24952: return *this; 24952: } 24952: 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return _M_h.get_allocator(); } 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] bool 24952: empty() const noexcept 24952: { return _M_h.empty(); } 24952: 24952: 24952: size_type 24952: size() const noexcept 24952: { return _M_h.size(); } 24952: 24952: 24952: size_type 24952: max_size() const noexcept 24952: { return _M_h.max_size(); } 24952: # 1193 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: iterator 24952: begin() noexcept 24952: { return _M_h.begin(); } 24952: 24952: const_iterator 24952: begin() const noexcept 24952: { return _M_h.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: end() noexcept 24952: { return _M_h.end(); } 24952: 24952: const_iterator 24952: end() const noexcept 24952: { return _M_h.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: cbegin() const noexcept 24952: { return _M_h.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: cend() const noexcept 24952: { return _M_h.end(); } 24952: # 1241 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: template 24952: iterator 24952: emplace(_Args&&... __args) 24952: { return _M_h.emplace(std::forward<_Args>(__args)...); } 24952: # 1263 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: template 24952: iterator 24952: emplace_hint(const_iterator __pos, _Args&&... __args) 24952: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 24952: # 1276 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: iterator 24952: insert(const value_type& __x) 24952: { return _M_h.insert(__x); } 24952: 24952: iterator 24952: insert(value_type&& __x) 24952: { return _M_h.insert(std::move(__x)); } 24952: # 1302 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: iterator 24952: insert(const_iterator __hint, const value_type& __x) 24952: { return _M_h.insert(__hint, __x); } 24952: 24952: iterator 24952: insert(const_iterator __hint, value_type&& __x) 24952: { return _M_h.insert(__hint, std::move(__x)); } 24952: # 1319 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: template 24952: void 24952: insert(_InputIterator __first, _InputIterator __last) 24952: { _M_h.insert(__first, __last); } 24952: # 1331 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: void 24952: insert(initializer_list __l) 24952: { _M_h.insert(__l); } 24952: 24952: 24952: 24952: node_type 24952: extract(const_iterator __pos) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 24952: return _M_h.extract(__pos); 24952: } 24952: 24952: 24952: node_type 24952: extract(const key_type& __key) 24952: { return _M_h.extract(__key); } 24952: 24952: 24952: iterator 24952: insert(node_type&& __nh) 24952: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 24952: 24952: 24952: iterator 24952: insert(const_iterator __hint, node_type&& __nh) 24952: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 24952: # 1375 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: iterator 24952: erase(const_iterator __position) 24952: { return _M_h.erase(__position); } 24952: 24952: 24952: iterator 24952: erase(iterator __position) 24952: { return _M_h.erase(__position); } 24952: # 1398 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: size_type 24952: erase(const key_type& __x) 24952: { return _M_h.erase(__x); } 24952: # 1418 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: iterator 24952: erase(const_iterator __first, const_iterator __last) 24952: { return _M_h.erase(__first, __last); } 24952: # 1429 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: void 24952: clear() noexcept 24952: { _M_h.clear(); } 24952: # 1442 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: void 24952: swap(unordered_multiset& __x) 24952: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 24952: { _M_h.swap(__x._M_h); } 24952: 24952: 24952: template 24952: friend class std::_Hash_merge_helper; 24952: 24952: template 24952: void 24952: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 24952: { 24952: using _Merge_helper 24952: = _Hash_merge_helper; 24952: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 24952: { merge(__source); } 24952: 24952: template 24952: void 24952: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 24952: { 24952: using _Merge_helper 24952: = _Hash_merge_helper; 24952: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 24952: { merge(__source); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: hasher 24952: hash_function() const 24952: { return _M_h.hash_function(); } 24952: 24952: 24952: 24952: key_equal 24952: key_eq() const 24952: { return _M_h.key_eq(); } 24952: # 1508 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: iterator 24952: find(const key_type& __x) 24952: { return _M_h.find(__x); } 24952: # 1520 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: const_iterator 24952: find(const key_type& __x) const 24952: { return _M_h.find(__x); } 24952: # 1539 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: size_type 24952: count(const key_type& __x) const 24952: { return _M_h.count(__x); } 24952: # 1577 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) 24952: { return _M_h.equal_range(__x); } 24952: # 1589 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) const 24952: { return _M_h.equal_range(__x); } 24952: # 1605 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: size_type 24952: bucket_count() const noexcept 24952: { return _M_h.bucket_count(); } 24952: 24952: 24952: size_type 24952: max_bucket_count() const noexcept 24952: { return _M_h.max_bucket_count(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_type 24952: bucket_size(size_type __n) const 24952: { return _M_h.bucket_size(__n); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_type 24952: bucket(const key_type& __key) const 24952: { return _M_h.bucket(__key); } 24952: # 1639 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: local_iterator 24952: begin(size_type __n) 24952: { return _M_h.begin(__n); } 24952: 24952: const_local_iterator 24952: begin(size_type __n) const 24952: { return _M_h.begin(__n); } 24952: 24952: const_local_iterator 24952: cbegin(size_type __n) const 24952: { return _M_h.cbegin(__n); } 24952: # 1659 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: local_iterator 24952: end(size_type __n) 24952: { return _M_h.end(__n); } 24952: 24952: const_local_iterator 24952: end(size_type __n) const 24952: { return _M_h.end(__n); } 24952: 24952: const_local_iterator 24952: cend(size_type __n) const 24952: { return _M_h.cend(__n); } 24952: 24952: 24952: 24952: 24952: 24952: float 24952: load_factor() const noexcept 24952: { return _M_h.load_factor(); } 24952: 24952: 24952: 24952: float 24952: max_load_factor() const noexcept 24952: { return _M_h.max_load_factor(); } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: max_load_factor(float __z) 24952: { _M_h.max_load_factor(__z); } 24952: # 1700 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: void 24952: rehash(size_type __n) 24952: { _M_h.rehash(__n); } 24952: # 1711 "/usr/include/c++/13/bits/unordered_set.h" 3 24952: void 24952: reserve(size_type __n) 24952: { _M_h.reserve(__n); } 24952: 24952: template 24952: friend bool 24952: operator==(const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&, 24952: const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&); 24952: }; 24952: 24952: 24952: 24952: 24952: template::value_type>, 24952: typename _Pred = 24952: equal_to::value_type>, 24952: typename _Allocator = 24952: allocator::value_type>, 24952: typename = _RequireInputIter<_InputIterator>, 24952: typename = _RequireNotAllocatorOrIntegral<_Hash>, 24952: typename = _RequireNotAllocator<_Pred>, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_multiset(_InputIterator, _InputIterator, 24952: unordered_multiset::size_type = {}, 24952: _Hash = _Hash(), _Pred = _Pred(), 24952: _Allocator = _Allocator()) 24952: -> unordered_multiset::value_type, 24952: _Hash, _Pred, _Allocator>; 24952: 24952: template, 24952: typename _Pred = equal_to<_Tp>, 24952: typename _Allocator = allocator<_Tp>, 24952: typename = _RequireNotAllocatorOrIntegral<_Hash>, 24952: typename = _RequireNotAllocator<_Pred>, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_multiset(initializer_list<_Tp>, 24952: unordered_multiset::size_type = {}, 24952: _Hash = _Hash(), _Pred = _Pred(), 24952: _Allocator = _Allocator()) 24952: -> unordered_multiset<_Tp, _Hash, _Pred, _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_multiset(_InputIterator, _InputIterator, 24952: unordered_multiset::size_type, _Allocator) 24952: -> unordered_multiset::value_type, 24952: hash::value_type>, 24952: equal_to::value_type>, 24952: _Allocator>; 24952: 24952: template, 24952: typename = _RequireNotAllocatorOrIntegral<_Hash>, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_multiset(_InputIterator, _InputIterator, 24952: unordered_multiset::size_type, 24952: _Hash, _Allocator) 24952: -> unordered_multiset::value_type, 24952: _Hash, 24952: equal_to< 24952: typename 24952: iterator_traits<_InputIterator>::value_type>, 24952: _Allocator>; 24952: 24952: template> 24952: unordered_multiset(initializer_list<_Tp>, 24952: unordered_multiset::size_type, _Allocator) 24952: -> unordered_multiset<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: unordered_multiset(initializer_list<_Tp>, 24952: unordered_multiset::size_type, _Hash, _Allocator) 24952: -> unordered_multiset<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 24952: unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: template 24952: inline void 24952: swap(unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 24952: unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: template 24952: inline bool 24952: operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 24952: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 24952: { return __x._M_h._M_equal(__y._M_h); } 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 24952: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 24952: { return !(__x == __y); } 24952: 24952: 24952: template 24952: inline bool 24952: operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 24952: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 24952: { return __x._M_h._M_equal(__y._M_h); } 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 24952: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 24952: { return !(__x == __y); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Hash_merge_helper< 24952: std::unordered_set<_Val, _Hash1, _Eq1, _Alloc>, _Hash2, _Eq2> 24952: { 24952: private: 24952: template 24952: using unordered_set = std::unordered_set<_Tp...>; 24952: template 24952: using unordered_multiset = std::unordered_multiset<_Tp...>; 24952: 24952: friend unordered_set<_Val, _Hash1, _Eq1, _Alloc>; 24952: 24952: static auto& 24952: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 24952: { return __set._M_h; } 24952: 24952: static auto& 24952: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 24952: { return __set._M_h; } 24952: }; 24952: 24952: 24952: template 24952: struct _Hash_merge_helper< 24952: std::unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>, 24952: _Hash2, _Eq2> 24952: { 24952: private: 24952: template 24952: using unordered_set = std::unordered_set<_Tp...>; 24952: template 24952: using unordered_multiset = std::unordered_multiset<_Tp...>; 24952: 24952: friend unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>; 24952: 24952: static auto& 24952: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 24952: { return __set._M_h; } 24952: 24952: static auto& 24952: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 24952: { return __set._M_h; } 24952: }; 24952: 24952: 24952: 24952: } 24952: # 42 "/usr/include/c++/13/unordered_set" 2 3 24952: # 51 "/usr/include/c++/13/unordered_set" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: namespace pmr 24952: { 24952: template, 24952: typename _Pred = std::equal_to<_Key>> 24952: using unordered_set 24952: = std::unordered_set<_Key, _Hash, _Pred, 24952: polymorphic_allocator<_Key>>; 24952: template, 24952: typename _Pred = std::equal_to<_Key>> 24952: using unordered_multiset 24952: = std::unordered_multiset<_Key, _Hash, _Pred, 24952: polymorphic_allocator<_Key>>; 24952: } 24952: 24952: } 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/utility" 1 3 24952: # 58 "/usr/include/c++/13/utility" 3 24952: 24952: # 59 "/usr/include/c++/13/utility" 3 24952: # 68 "/usr/include/c++/13/utility" 3 24952: # 1 "/usr/include/c++/13/bits/stl_relops.h" 1 3 24952: # 62 "/usr/include/c++/13/bits/stl_relops.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: namespace rel_ops 24952: { 24952: # 86 "/usr/include/c++/13/bits/stl_relops.h" 3 24952: template 24952: inline bool 24952: operator!=(const _Tp& __x, const _Tp& __y) 24952: { return !(__x == __y); } 24952: # 99 "/usr/include/c++/13/bits/stl_relops.h" 3 24952: template 24952: inline bool 24952: operator>(const _Tp& __x, const _Tp& __y) 24952: { return __y < __x; } 24952: # 112 "/usr/include/c++/13/bits/stl_relops.h" 3 24952: template 24952: inline bool 24952: operator<=(const _Tp& __x, const _Tp& __y) 24952: { return !(__y < __x); } 24952: # 125 "/usr/include/c++/13/bits/stl_relops.h" 3 24952: template 24952: inline bool 24952: operator>=(const _Tp& __x, const _Tp& __y) 24952: { return !(__x < __y); } 24952: } 24952: 24952: 24952: } 24952: # 69 "/usr/include/c++/13/utility" 2 3 24952: # 82 "/usr/include/c++/13/utility" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 94 "/usr/include/c++/13/utility" 3 24952: template 24952: 24952: inline _Tp 24952: exchange(_Tp& __obj, _Up&& __new_val) 24952: noexcept(__and_, 24952: is_nothrow_assignable<_Tp&, _Up>>::value) 24952: { return std::__exchange(__obj, std::forward<_Up>(__new_val)); } 24952: 24952: 24952: 24952: 24952: template 24952: [[nodiscard]] 24952: constexpr add_const_t<_Tp>& 24952: as_const(_Tp& __t) noexcept 24952: { return __t; } 24952: 24952: template 24952: void as_const(const _Tp&&) = delete; 24952: # 224 "/usr/include/c++/13/utility" 3 24952: 24952: } 24952: # 16 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rocksdb_namespace.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 18 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/status.h" 1 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/status.h" 24952: 24952: # 31 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/status.h" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 1 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: 24952: 24952: # 1 "/usr/include/c++/13/cassert" 1 3 24952: # 41 "/usr/include/c++/13/cassert" 3 24952: 24952: # 42 "/usr/include/c++/13/cassert" 3 24952: 24952: 24952: # 1 "/usr/include/assert.h" 1 3 4 24952: # 66 "/usr/include/assert.h" 3 4 24952: extern "C" { 24952: 24952: 24952: extern void __assert_fail (const char *__assertion, const char *__file, 24952: unsigned int __line, const char *__function) 24952: noexcept (true) __attribute__ ((__noreturn__)); 24952: 24952: 24952: extern void __assert_perror_fail (int __errnum, const char *__file, 24952: unsigned int __line, const char *__function) 24952: noexcept (true) __attribute__ ((__noreturn__)); 24952: 24952: 24952: 24952: 24952: extern void __assert (const char *__assertion, const char *__file, int __line) 24952: noexcept (true) __attribute__ ((__noreturn__)); 24952: 24952: 24952: } 24952: # 45 "/usr/include/c++/13/cassert" 2 3 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 2 24952: 24952: # 1 "/usr/include/c++/13/cstdio" 1 3 24952: # 39 "/usr/include/c++/13/cstdio" 3 24952: 24952: # 40 "/usr/include/c++/13/cstdio" 3 24952: # 24 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 2 24952: # 1 "/usr/include/c++/13/cstring" 1 3 24952: # 39 "/usr/include/c++/13/cstring" 3 24952: 24952: # 40 "/usr/include/c++/13/cstring" 3 24952: 24952: 24952: # 1 "/usr/include/string.h" 1 3 4 24952: # 26 "/usr/include/string.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 24952: # 27 "/usr/include/string.h" 2 3 4 24952: 24952: extern "C" { 24952: 24952: 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 34 "/usr/include/string.h" 2 3 4 24952: # 43 "/usr/include/string.h" 3 4 24952: extern void *memcpy (void *__restrict __dest, const void *__restrict __src, 24952: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern void *memmove (void *__dest, const void *__src, size_t __n) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: 24952: 24952: extern void *memccpy (void *__restrict __dest, const void *__restrict __src, 24952: int __c, size_t __n) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 4))); 24952: 24952: 24952: 24952: 24952: extern void *memset (void *__s, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int memcmp (const void *__s1, const void *__s2, size_t __n) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: # 80 "/usr/include/string.h" 3 4 24952: extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: extern "C++" 24952: { 24952: extern void *memchr (void *__s, int __c, size_t __n) 24952: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: extern const void *memchr (const void *__s, int __c, size_t __n) 24952: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) void * 24952: memchr (void *__s, int __c, size_t __n) noexcept (true) 24952: { 24952: return __builtin_memchr (__s, __c, __n); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const void * 24952: memchr (const void *__s, int __c, size_t __n) noexcept (true) 24952: { 24952: return __builtin_memchr (__s, __c, __n); 24952: } 24952: 24952: } 24952: # 115 "/usr/include/string.h" 3 4 24952: extern "C++" void *rawmemchr (void *__s, int __c) 24952: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: extern "C++" const void *rawmemchr (const void *__s, int __c) 24952: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern "C++" void *memrchr (void *__s, int __c, size_t __n) 24952: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 24952: __attribute__ ((__access__ (__read_only__, 1, 3))); 24952: extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) 24952: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 24952: __attribute__ ((__access__ (__read_only__, 1, 3))); 24952: # 141 "/usr/include/string.h" 3 4 24952: extern char *strcpy (char *__restrict __dest, const char *__restrict __src) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: extern char *strncpy (char *__restrict __dest, 24952: const char *__restrict __src, size_t __n) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern char *strcat (char *__restrict __dest, const char *__restrict __src) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: extern char *strncat (char *__restrict __dest, const char *__restrict __src, 24952: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int strcmp (const char *__s1, const char *__s2) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: extern int strncmp (const char *__s1, const char *__s2, size_t __n) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int strcoll (const char *__s1, const char *__s2) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: extern size_t strxfrm (char *__restrict __dest, 24952: const char *__restrict __src, size_t __n) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 24952: 24952: 24952: extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, 24952: locale_t __l) noexcept (true) __attribute__ ((__nonnull__ (2, 4))) 24952: __attribute__ ((__access__ (__write_only__, 1, 3))); 24952: 24952: 24952: 24952: 24952: 24952: extern char *strdup (const char *__s) 24952: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern char *strndup (const char *__string, size_t __n) 24952: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 24952: # 224 "/usr/include/string.h" 3 4 24952: extern "C++" 24952: { 24952: extern char *strchr (char *__s, int __c) 24952: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: extern const char *strchr (const char *__s, int __c) 24952: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 24952: strchr (char *__s, int __c) noexcept (true) 24952: { 24952: return __builtin_strchr (__s, __c); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 24952: strchr (const char *__s, int __c) noexcept (true) 24952: { 24952: return __builtin_strchr (__s, __c); 24952: } 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern "C++" 24952: { 24952: extern char *strrchr (char *__s, int __c) 24952: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: extern const char *strrchr (const char *__s, int __c) 24952: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 24952: strrchr (char *__s, int __c) noexcept (true) 24952: { 24952: return __builtin_strrchr (__s, __c); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 24952: strrchr (const char *__s, int __c) noexcept (true) 24952: { 24952: return __builtin_strrchr (__s, __c); 24952: } 24952: 24952: } 24952: # 281 "/usr/include/string.h" 3 4 24952: extern "C++" char *strchrnul (char *__s, int __c) 24952: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: extern "C++" const char *strchrnul (const char *__s, int __c) 24952: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: # 293 "/usr/include/string.h" 3 4 24952: extern size_t strcspn (const char *__s, const char *__reject) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern size_t strspn (const char *__s, const char *__accept) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern "C++" 24952: { 24952: extern char *strpbrk (char *__s, const char *__accept) 24952: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: extern const char *strpbrk (const char *__s, const char *__accept) 24952: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 24952: strpbrk (char *__s, const char *__accept) noexcept (true) 24952: { 24952: return __builtin_strpbrk (__s, __accept); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 24952: strpbrk (const char *__s, const char *__accept) noexcept (true) 24952: { 24952: return __builtin_strpbrk (__s, __accept); 24952: } 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern "C++" 24952: { 24952: extern char *strstr (char *__haystack, const char *__needle) 24952: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: extern const char *strstr (const char *__haystack, const char *__needle) 24952: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 24952: strstr (char *__haystack, const char *__needle) noexcept (true) 24952: { 24952: return __builtin_strstr (__haystack, __needle); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 24952: strstr (const char *__haystack, const char *__needle) noexcept (true) 24952: { 24952: return __builtin_strstr (__haystack, __needle); 24952: } 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern char *strtok (char *__restrict __s, const char *__restrict __delim) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: 24952: extern char *__strtok_r (char *__restrict __s, 24952: const char *__restrict __delim, 24952: char **__restrict __save_ptr) 24952: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 24952: 24952: extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, 24952: char **__restrict __save_ptr) 24952: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 24952: 24952: 24952: 24952: 24952: 24952: extern "C++" char *strcasestr (char *__haystack, const char *__needle) 24952: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: extern "C++" const char *strcasestr (const char *__haystack, 24952: const char *__needle) 24952: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: # 389 "/usr/include/string.h" 3 4 24952: extern void *memmem (const void *__haystack, size_t __haystacklen, 24952: const void *__needle, size_t __needlelen) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))) 24952: __attribute__ ((__access__ (__read_only__, 1, 2))) 24952: __attribute__ ((__access__ (__read_only__, 3, 4))); 24952: 24952: 24952: 24952: extern void *__mempcpy (void *__restrict __dest, 24952: const void *__restrict __src, size_t __n) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: extern void *mempcpy (void *__restrict __dest, 24952: const void *__restrict __src, size_t __n) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: 24952: extern size_t strlen (const char *__s) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: extern size_t strnlen (const char *__string, size_t __maxlen) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: extern char *strerror (int __errnum) noexcept (true); 24952: # 444 "/usr/include/string.h" 3 4 24952: extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: 24952: 24952: 24952: 24952: extern const char *strerrordesc_np (int __err) noexcept (true); 24952: 24952: extern const char *strerrorname_np (int __err) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern char *strerror_l (int __errnum, locale_t __l) noexcept (true); 24952: 24952: 24952: 24952: # 1 "/usr/include/strings.h" 1 3 4 24952: # 23 "/usr/include/strings.h" 3 4 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 24 "/usr/include/strings.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern "C" { 24952: 24952: 24952: 24952: extern int bcmp (const void *__s1, const void *__s2, size_t __n) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern void bcopy (const void *__src, void *__dest, size_t __n) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern void bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern "C++" 24952: { 24952: extern char *index (char *__s, int __c) 24952: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: extern const char *index (const char *__s, int __c) 24952: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 24952: index (char *__s, int __c) noexcept (true) 24952: { 24952: return __builtin_index (__s, __c); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 24952: index (const char *__s, int __c) noexcept (true) 24952: { 24952: return __builtin_index (__s, __c); 24952: } 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern "C++" 24952: { 24952: extern char *rindex (char *__s, int __c) 24952: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: extern const char *rindex (const char *__s, int __c) 24952: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 24952: rindex (char *__s, int __c) noexcept (true) 24952: { 24952: return __builtin_rindex (__s, __c); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 24952: rindex (const char *__s, int __c) noexcept (true) 24952: { 24952: return __builtin_rindex (__s, __c); 24952: } 24952: 24952: } 24952: # 104 "/usr/include/strings.h" 3 4 24952: extern int ffs (int __i) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: 24952: extern int ffsl (long int __l) noexcept (true) __attribute__ ((__const__)); 24952: __extension__ extern int ffsll (long long int __ll) 24952: noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern int strcasecmp (const char *__s1, const char *__s2) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 24952: 24952: 24952: 24952: extern int strncasecmp_l (const char *__s1, const char *__s2, 24952: size_t __n, locale_t __loc) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 1 3 4 24952: # 22 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 3 4 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 24952: __attribute__ ((__leaf__)) bcopy (const void *__src, void *__dest, size_t __len) noexcept (true) 24952: { 24952: (void) __builtin___memmove_chk (__dest, __src, __len, 24952: __builtin_object_size (__dest, 0)); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 24952: __attribute__ ((__leaf__)) bzero (void *__dest, size_t __len) noexcept (true) 24952: { 24952: (void) __builtin___memset_chk (__dest, '\0', __len, 24952: __builtin_object_size (__dest, 0)); 24952: } 24952: # 145 "/usr/include/strings.h" 2 3 4 24952: # 463 "/usr/include/string.h" 2 3 4 24952: 24952: 24952: 24952: extern void explicit_bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 24952: __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: 24952: 24952: 24952: extern char *strsep (char **__restrict __stringp, 24952: const char *__restrict __delim) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: 24952: extern char *strsignal (int __sig) noexcept (true); 24952: 24952: 24952: 24952: extern const char *sigabbrev_np (int __sig) noexcept (true); 24952: 24952: 24952: extern const char *sigdescr_np (int __sig) noexcept (true); 24952: 24952: 24952: 24952: extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: extern char *__stpncpy (char *__restrict __dest, 24952: const char *__restrict __src, size_t __n) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: extern char *stpncpy (char *__restrict __dest, 24952: const char *__restrict __src, size_t __n) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: 24952: extern int strverscmp (const char *__s1, const char *__s2) 24952: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: extern char *strfry (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern void *memfrob (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 24952: __attribute__ ((__access__ (__read_write__, 1, 2))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern "C++" char *basename (char *__filename) 24952: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 24952: extern "C++" const char *basename (const char *__filename) 24952: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 24952: # 535 "/usr/include/string.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 1 3 4 24952: # 25 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 24952: __attribute__ ((__leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 24952: 24952: { 24952: return __builtin___memcpy_chk (__dest, __src, __len, 24952: __builtin_object_size (__dest, 0)); 24952: } 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 24952: __attribute__ ((__leaf__)) memmove (void *__dest, const void *__src, size_t __len) noexcept (true) 24952: { 24952: return __builtin___memmove_chk (__dest, __src, __len, 24952: __builtin_object_size (__dest, 0)); 24952: } 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 24952: __attribute__ ((__leaf__)) mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 24952: 24952: { 24952: return __builtin___mempcpy_chk (__dest, __src, __len, 24952: __builtin_object_size (__dest, 0)); 24952: } 24952: # 56 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 24952: __attribute__ ((__leaf__)) memset (void *__dest, int __ch, size_t __len) noexcept (true) 24952: { 24952: return __builtin___memset_chk (__dest, __ch, __len, 24952: __builtin_object_size (__dest, 0)); 24952: } 24952: 24952: 24952: 24952: 24952: void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 24952: __attribute__ ((__leaf__)) explicit_bzero (void *__dest, size_t __len) noexcept (true) 24952: { 24952: __explicit_bzero_chk (__dest, __len, __builtin_object_size (__dest, 0)); 24952: } 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 24952: __attribute__ ((__leaf__)) strcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) 24952: { 24952: return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 24952: } 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 24952: __attribute__ ((__leaf__)) stpcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) 24952: { 24952: return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 24952: } 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 24952: __attribute__ ((__leaf__)) strncpy (char *__restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 24952: 24952: { 24952: return __builtin___strncpy_chk (__dest, __src, __len, 24952: __builtin_object_size (__dest, 2 > 1)); 24952: } 24952: 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 24952: __attribute__ ((__leaf__)) stpncpy (char *__dest, const char *__src, size_t __n) noexcept (true) 24952: { 24952: return __builtin___stpncpy_chk (__dest, __src, __n, 24952: __builtin_object_size (__dest, 2 > 1)); 24952: } 24952: # 127 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 24952: __attribute__ ((__leaf__)) strcat (char *__restrict __dest, const char *__restrict __src) noexcept (true) 24952: { 24952: return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 24952: } 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 24952: __attribute__ ((__leaf__)) strncat (char *__restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 24952: 24952: { 24952: return __builtin___strncat_chk (__dest, __src, __len, 24952: __builtin_object_size (__dest, 2 > 1)); 24952: } 24952: # 536 "/usr/include/string.h" 2 3 4 24952: 24952: 24952: 24952: } 24952: # 43 "/usr/include/c++/13/cstring" 2 3 24952: # 71 "/usr/include/c++/13/cstring" 3 24952: extern "C++" 24952: { 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: using ::memchr; 24952: using ::memcmp; 24952: using ::memcpy; 24952: using ::memmove; 24952: using ::memset; 24952: using ::strcat; 24952: using ::strcmp; 24952: using ::strcoll; 24952: using ::strcpy; 24952: using ::strcspn; 24952: using ::strerror; 24952: using ::strlen; 24952: using ::strncat; 24952: using ::strncmp; 24952: using ::strncpy; 24952: using ::strspn; 24952: using ::strtok; 24952: using ::strxfrm; 24952: using ::strchr; 24952: using ::strpbrk; 24952: using ::strrchr; 24952: using ::strstr; 24952: # 122 "/usr/include/c++/13/cstring" 3 24952: 24952: } 24952: } 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 2 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cleanable.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cleanable.h" 24952: 24952: 24952: 24952: 24952: 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cleanable.h" 24952: namespace rocksdb { 24952: 24952: class Cleanable { 24952: public: 24952: Cleanable(); 24952: 24952: Cleanable(Cleanable&) = delete; 24952: Cleanable& operator=(Cleanable&) = delete; 24952: 24952: 24952: ~Cleanable(); 24952: 24952: 24952: Cleanable(Cleanable&&) noexcept; 24952: Cleanable& operator=(Cleanable&&) noexcept; 24952: 24952: 24952: 24952: 24952: 24952: 24952: using CleanupFunction = void (*)(void* arg1, void* arg2); 24952: 24952: 24952: void RegisterCleanup(CleanupFunction function, void* arg1, void* arg2); 24952: 24952: 24952: 24952: void DelegateCleanupsTo(Cleanable* other); 24952: 24952: 24952: inline void Reset() { 24952: DoCleanup(); 24952: cleanup_.function = nullptr; 24952: cleanup_.next = nullptr; 24952: } 24952: 24952: inline bool HasCleanups() { return cleanup_.function != nullptr; } 24952: 24952: protected: 24952: struct Cleanup { 24952: CleanupFunction function; 24952: void* arg1; 24952: void* arg2; 24952: Cleanup* next; 24952: }; 24952: Cleanup cleanup_; 24952: 24952: void RegisterCleanup(Cleanup* c); 24952: 24952: private: 24952: 24952: 24952: 24952: inline void DoCleanup() { 24952: if (cleanup_.function != nullptr) { 24952: (*cleanup_.function)(cleanup_.arg1, cleanup_.arg2); 24952: for (Cleanup* c = cleanup_.next; c != nullptr;) { 24952: (*c->function)(c->arg1, c->arg2); 24952: Cleanup* next = c->next; 24952: delete c; 24952: c = next; 24952: } 24952: } 24952: } 24952: }; 24952: # 89 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cleanable.h" 24952: class SharedCleanablePtr { 24952: public: 24952: 24952: SharedCleanablePtr() {} 24952: 24952: SharedCleanablePtr(const SharedCleanablePtr& from); 24952: SharedCleanablePtr(SharedCleanablePtr&& from) noexcept; 24952: SharedCleanablePtr& operator=(const SharedCleanablePtr& from); 24952: SharedCleanablePtr& operator=(SharedCleanablePtr&& from) noexcept; 24952: 24952: ~SharedCleanablePtr(); 24952: 24952: 24952: void Allocate(); 24952: 24952: void Reset(); 24952: 24952: Cleanable& operator*(); 24952: Cleanable* operator->(); 24952: 24952: Cleanable* get(); 24952: 24952: 24952: 24952: 24952: 24952: 24952: void RegisterCopyWith(Cleanable* target); 24952: 24952: 24952: 24952: 24952: void MoveAsCleanupTo(Cleanable* target); 24952: 24952: private: 24952: struct Impl; 24952: Impl* ptr_ = nullptr; 24952: }; 24952: 24952: } 24952: # 29 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: class Slice { 24952: public: 24952: 24952: Slice() : data_(""), size_(0) {} 24952: 24952: 24952: Slice(const char* d, size_t n) : data_(d), size_(n) {} 24952: 24952: 24952: 24952: Slice(const std::string& s) : data_(s.data()), size_(s.size()) {} 24952: 24952: 24952: 24952: Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size()) {} 24952: 24952: 24952: 24952: Slice(const char* s) : data_(s) { size_ = (s == nullptr) ? 0 : strlen(s); } 24952: 24952: 24952: 24952: Slice(const struct SliceParts& parts, std::string* buf); 24952: 24952: 24952: const char* data() const { return data_; } 24952: 24952: 24952: size_t size() const { return size_; } 24952: 24952: 24952: bool empty() const { return size_ == 0; } 24952: 24952: 24952: 24952: char operator[](size_t n) const { 24952: 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: n < size() 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "n < size()" 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 68, __extension__ __PRETTY_FUNCTION__)) 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: return data_[n]; 24952: } 24952: 24952: 24952: void clear() { 24952: data_ = ""; 24952: size_ = 0; 24952: } 24952: 24952: 24952: void remove_prefix(size_t n) { 24952: 24952: # 80 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 80 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: n <= size() 24952: # 80 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 80 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "n <= size()" 24952: # 80 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 80, __extension__ __PRETTY_FUNCTION__)) 24952: # 80 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: data_ += n; 24952: size_ -= n; 24952: } 24952: 24952: void remove_suffix(size_t n) { 24952: 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: n <= size() 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "n <= size()" 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 86, __extension__ __PRETTY_FUNCTION__)) 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: size_ -= n; 24952: } 24952: 24952: 24952: 24952: std::string ToString(bool hex = false) const; 24952: 24952: 24952: std::string_view ToStringView() const { 24952: return std::string_view(data_, size_); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool DecodeHex(std::string* result) const; 24952: 24952: 24952: 24952: 24952: 24952: int compare(const Slice& b) const; 24952: 24952: 24952: bool starts_with(const Slice& x) const { 24952: return ((size_ >= x.size_) && (memcmp(data_, x.data_, x.size_) == 0)); 24952: } 24952: 24952: bool ends_with(const Slice& x) const { 24952: return ((size_ >= x.size_) && 24952: (memcmp(data_ + size_ - x.size_, x.data_, x.size_) == 0)); 24952: } 24952: 24952: 24952: size_t difference_offset(const Slice& b) const; 24952: 24952: 24952: const char* data_; 24952: size_t size_; 24952: 24952: 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class PinnableSlice : public Slice, public Cleanable { 24952: public: 24952: PinnableSlice() { buf_ = &self_space_; } 24952: explicit PinnableSlice(std::string* buf) { buf_ = buf; } 24952: 24952: PinnableSlice(PinnableSlice&& other); 24952: PinnableSlice& operator=(PinnableSlice&& other); 24952: 24952: 24952: PinnableSlice(PinnableSlice&) = delete; 24952: PinnableSlice& operator=(PinnableSlice&) = delete; 24952: 24952: inline void PinSlice(const Slice& s, CleanupFunction f, void* arg1, 24952: void* arg2) { 24952: 24952: # 152 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 152 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: !pinned_ 24952: # 152 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 152 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "!pinned_" 24952: # 152 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 152, __extension__ __PRETTY_FUNCTION__)) 24952: # 152 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: pinned_ = true; 24952: data_ = s.data(); 24952: size_ = s.size(); 24952: RegisterCleanup(f, arg1, arg2); 24952: 24952: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: pinned_ 24952: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "pinned_" 24952: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 157, __extension__ __PRETTY_FUNCTION__)) 24952: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: } 24952: 24952: inline void PinSlice(const Slice& s, Cleanable* cleanable) { 24952: 24952: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: !pinned_ 24952: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "!pinned_" 24952: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 161, __extension__ __PRETTY_FUNCTION__)) 24952: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: pinned_ = true; 24952: data_ = s.data(); 24952: size_ = s.size(); 24952: if (cleanable != nullptr) { 24952: cleanable->DelegateCleanupsTo(this); 24952: } 24952: 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: pinned_ 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "pinned_" 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 168, __extension__ __PRETTY_FUNCTION__)) 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: } 24952: 24952: inline void PinSelf(const Slice& slice) { 24952: 24952: # 172 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 172 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: !pinned_ 24952: # 172 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 172 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "!pinned_" 24952: # 172 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 172, __extension__ __PRETTY_FUNCTION__)) 24952: # 172 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: buf_->assign(slice.data(), slice.size()); 24952: data_ = buf_->data(); 24952: size_ = buf_->size(); 24952: 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: !pinned_ 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "!pinned_" 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 176, __extension__ __PRETTY_FUNCTION__)) 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: } 24952: 24952: inline void PinSelf() { 24952: 24952: # 180 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 180 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: !pinned_ 24952: # 180 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 180 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "!pinned_" 24952: # 180 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 180, __extension__ __PRETTY_FUNCTION__)) 24952: # 180 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: data_ = buf_->data(); 24952: size_ = buf_->size(); 24952: 24952: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: !pinned_ 24952: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "!pinned_" 24952: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 183, __extension__ __PRETTY_FUNCTION__)) 24952: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: } 24952: 24952: void remove_suffix(size_t n) { 24952: 24952: # 187 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 187 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: n <= size() 24952: # 187 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 187 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "n <= size()" 24952: # 187 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 187, __extension__ __PRETTY_FUNCTION__)) 24952: # 187 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: if (pinned_) { 24952: size_ -= n; 24952: } else { 24952: buf_->erase(size() - n, n); 24952: PinSelf(); 24952: } 24952: } 24952: 24952: void remove_prefix(size_t n) { 24952: 24952: # 197 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 197 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: n <= size() 24952: # 197 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 197 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "n <= size()" 24952: # 197 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 197, __extension__ __PRETTY_FUNCTION__)) 24952: # 197 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: if (pinned_) { 24952: data_ += n; 24952: size_ -= n; 24952: } else { 24952: buf_->erase(0, n); 24952: PinSelf(); 24952: } 24952: } 24952: 24952: void Reset() { 24952: Cleanable::Reset(); 24952: pinned_ = false; 24952: size_ = 0; 24952: } 24952: 24952: inline std::string* GetSelf() { return buf_; } 24952: 24952: inline bool IsPinned() const { return pinned_; } 24952: 24952: private: 24952: friend class PinnableSlice4Test; 24952: std::string self_space_; 24952: std::string* buf_; 24952: bool pinned_ = false; 24952: }; 24952: 24952: 24952: 24952: struct SliceParts { 24952: SliceParts(const Slice* _parts, int _num_parts) 24952: : parts(_parts), num_parts(_num_parts) {} 24952: SliceParts() : parts(nullptr), num_parts(0) {} 24952: 24952: const Slice* parts; 24952: int num_parts; 24952: }; 24952: 24952: inline bool operator==(const Slice& x, const Slice& y) { 24952: return ((x.size() == y.size()) && 24952: (memcmp(x.data(), y.data(), x.size()) == 0)); 24952: } 24952: 24952: inline bool operator!=(const Slice& x, const Slice& y) { return !(x == y); } 24952: 24952: inline int Slice::compare(const Slice& b) const { 24952: 24952: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: (static_cast ( 24952: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: data_ != nullptr && b.data_ != nullptr 24952: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: "data_ != nullptr && b.data_ != nullptr" 24952: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 3 4 24952: , "./include/rocksdb/slice.h", 243, __extension__ __PRETTY_FUNCTION__)) 24952: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice.h" 24952: ; 24952: const size_t min_len = (size_ < b.size_) ? size_ : b.size_; 24952: int r = memcmp(data_, b.data_, min_len); 24952: if (r == 0) { 24952: if (size_ < b.size_) 24952: r = -1; 24952: else if (size_ > b.size_) 24952: r = +1; 24952: } 24952: return r; 24952: } 24952: 24952: inline size_t Slice::difference_offset(const Slice& b) const { 24952: size_t off = 0; 24952: const size_t len = (size_ < b.size_) ? size_ : b.size_; 24952: for (; off < len; off++) { 24952: if (data_[off] != b.data_[off]) break; 24952: } 24952: return off; 24952: } 24952: 24952: } 24952: # 32 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/status.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: class Status { 24952: public: 24952: 24952: Status() 24952: : code_(kOk), 24952: subcode_(kNone), 24952: sev_(kNoError), 24952: retryable_(false), 24952: data_loss_(false), 24952: scope_(0), 24952: state_(nullptr) {} 24952: ~Status() { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: 24952: Status(const Status& s); 24952: Status& operator=(const Status& s); 24952: Status(Status&& s) noexcept; 24952: Status& operator=(Status&& s) noexcept; 24952: bool operator==(const Status& rhs) const; 24952: bool operator!=(const Status& rhs) const; 24952: 24952: 24952: 24952: 24952: inline void PermitUncheckedError() const { MarkChecked(); } 24952: 24952: inline void MustCheck() const { 24952: 24952: 24952: 24952: } 24952: 24952: enum Code : unsigned char { 24952: kOk = 0, 24952: kNotFound = 1, 24952: kCorruption = 2, 24952: kNotSupported = 3, 24952: kInvalidArgument = 4, 24952: kIOError = 5, 24952: kMergeInProgress = 6, 24952: kIncomplete = 7, 24952: kShutdownInProgress = 8, 24952: kTimedOut = 9, 24952: kAborted = 10, 24952: kBusy = 11, 24952: kExpired = 12, 24952: kTryAgain = 13, 24952: kCompactionTooLarge = 14, 24952: kColumnFamilyDropped = 15, 24952: kMaxCode 24952: }; 24952: 24952: Code code() const { 24952: MarkChecked(); 24952: return code_; 24952: } 24952: 24952: enum SubCode : unsigned char { 24952: kNone = 0, 24952: kMutexTimeout = 1, 24952: kLockTimeout = 2, 24952: kLockLimit = 3, 24952: kNoSpace = 4, 24952: kDeadlock = 5, 24952: kStaleFile = 6, 24952: kMemoryLimit = 7, 24952: kSpaceLimit = 8, 24952: kPathNotFound = 9, 24952: KMergeOperandsInsufficientCapacity = 10, 24952: kManualCompactionPaused = 11, 24952: kOverwritten = 12, 24952: kTxnNotPrepared = 13, 24952: kIOFenced = 14, 24952: kMergeOperatorFailed = 15, 24952: kMergeOperandThresholdExceeded = 16, 24952: kMaxSubCode 24952: }; 24952: 24952: SubCode subcode() const { 24952: MarkChecked(); 24952: return subcode_; 24952: } 24952: 24952: enum Severity : unsigned char { 24952: kNoError = 0, 24952: kSoftError = 1, 24952: kHardError = 2, 24952: kFatalError = 3, 24952: kUnrecoverableError = 4, 24952: kMaxSeverity 24952: }; 24952: 24952: Status(const Status& s, Severity sev); 24952: 24952: Status(Code _code, SubCode _subcode, Severity _sev, const Slice& msg) 24952: : Status(_code, _subcode, msg, "", _sev) {} 24952: 24952: static Status CopyAppendMessage(const Status& s, const Slice& delim, 24952: const Slice& msg); 24952: 24952: Severity severity() const { 24952: MarkChecked(); 24952: return sev_; 24952: } 24952: 24952: 24952: const char* getState() const { 24952: MarkChecked(); 24952: return state_.get(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: Status& UpdateIfOk(Status&& s) { 24952: if (code() == kOk) { 24952: *this = std::move(s); 24952: } else { 24952: 24952: s.PermitUncheckedError(); 24952: } 24952: MustCheck(); 24952: return *this; 24952: } 24952: 24952: Status& UpdateIfOk(const Status& s) { 24952: return UpdateIfOk(std::forward(Status(s))); 24952: } 24952: 24952: 24952: static Status OK() { return Status(); } 24952: 24952: 24952: 24952: 24952: 24952: static Status OkOverwritten() { return Status(kOk, kOverwritten); } 24952: 24952: 24952: 24952: 24952: 24952: static Status OkMergeOperandThresholdExceeded() { 24952: return Status(kOk, kMergeOperandThresholdExceeded); 24952: } 24952: 24952: 24952: static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kNotFound, msg, msg2); 24952: } 24952: 24952: 24952: static Status NotFound(SubCode msg = kNone) { return Status(kNotFound, msg); } 24952: 24952: static Status NotFound(SubCode sc, const Slice& msg, 24952: const Slice& msg2 = Slice()) { 24952: return Status(kNotFound, sc, msg, msg2); 24952: } 24952: 24952: static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kCorruption, msg, msg2); 24952: } 24952: static Status Corruption(SubCode msg = kNone) { 24952: return Status(kCorruption, msg); 24952: } 24952: 24952: static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kNotSupported, msg, msg2); 24952: } 24952: static Status NotSupported(SubCode msg = kNone) { 24952: return Status(kNotSupported, msg); 24952: } 24952: 24952: static Status InvalidArgument(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kInvalidArgument, msg, msg2); 24952: } 24952: static Status InvalidArgument(SubCode msg = kNone) { 24952: return Status(kInvalidArgument, msg); 24952: } 24952: 24952: static Status IOError(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kIOError, msg, msg2); 24952: } 24952: static Status IOError(SubCode msg = kNone) { return Status(kIOError, msg); } 24952: 24952: static Status MergeInProgress(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kMergeInProgress, msg, msg2); 24952: } 24952: static Status MergeInProgress(SubCode msg = kNone) { 24952: return Status(kMergeInProgress, msg); 24952: } 24952: 24952: static Status Incomplete(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kIncomplete, msg, msg2); 24952: } 24952: static Status Incomplete(SubCode msg = kNone) { 24952: return Status(kIncomplete, msg); 24952: } 24952: 24952: static Status ShutdownInProgress(SubCode msg = kNone) { 24952: return Status(kShutdownInProgress, msg); 24952: } 24952: static Status ShutdownInProgress(const Slice& msg, 24952: const Slice& msg2 = Slice()) { 24952: return Status(kShutdownInProgress, msg, msg2); 24952: } 24952: static Status Aborted(SubCode msg = kNone) { return Status(kAborted, msg); } 24952: static Status Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kAborted, msg, msg2); 24952: } 24952: 24952: static Status Busy(SubCode msg = kNone) { return Status(kBusy, msg); } 24952: static Status Busy(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kBusy, msg, msg2); 24952: } 24952: 24952: static Status TimedOut(SubCode msg = kNone) { return Status(kTimedOut, msg); } 24952: static Status TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kTimedOut, msg, msg2); 24952: } 24952: 24952: static Status Expired(SubCode msg = kNone) { return Status(kExpired, msg); } 24952: static Status Expired(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kExpired, msg, msg2); 24952: } 24952: 24952: static Status TryAgain(SubCode msg = kNone) { return Status(kTryAgain, msg); } 24952: static Status TryAgain(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kTryAgain, msg, msg2); 24952: } 24952: 24952: static Status CompactionTooLarge(SubCode msg = kNone) { 24952: return Status(kCompactionTooLarge, msg); 24952: } 24952: static Status CompactionTooLarge(const Slice& msg, 24952: const Slice& msg2 = Slice()) { 24952: return Status(kCompactionTooLarge, msg, msg2); 24952: } 24952: 24952: static Status ColumnFamilyDropped(SubCode msg = kNone) { 24952: return Status(kColumnFamilyDropped, msg); 24952: } 24952: 24952: static Status ColumnFamilyDropped(const Slice& msg, 24952: const Slice& msg2 = Slice()) { 24952: return Status(kColumnFamilyDropped, msg, msg2); 24952: } 24952: 24952: static Status NoSpace() { return Status(kIOError, kNoSpace); } 24952: static Status NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kIOError, kNoSpace, msg, msg2); 24952: } 24952: 24952: static Status MemoryLimit() { return Status(kAborted, kMemoryLimit); } 24952: static Status MemoryLimit(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kAborted, kMemoryLimit, msg, msg2); 24952: } 24952: 24952: static Status SpaceLimit() { return Status(kIOError, kSpaceLimit); } 24952: static Status SpaceLimit(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kIOError, kSpaceLimit, msg, msg2); 24952: } 24952: 24952: static Status PathNotFound() { return Status(kIOError, kPathNotFound); } 24952: static Status PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kIOError, kPathNotFound, msg, msg2); 24952: } 24952: 24952: static Status TxnNotPrepared() { 24952: return Status(kInvalidArgument, kTxnNotPrepared); 24952: } 24952: static Status TxnNotPrepared(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return Status(kInvalidArgument, kTxnNotPrepared, msg, msg2); 24952: } 24952: 24952: 24952: bool ok() const { 24952: MarkChecked(); 24952: return code() == kOk; 24952: } 24952: 24952: 24952: 24952: bool IsOkOverwritten() const { 24952: MarkChecked(); 24952: return code() == kOk && subcode() == kOverwritten; 24952: } 24952: 24952: 24952: 24952: bool IsOkMergeOperandThresholdExceeded() const { 24952: MarkChecked(); 24952: return code() == kOk && subcode() == kMergeOperandThresholdExceeded; 24952: } 24952: 24952: 24952: bool IsNotFound() const { 24952: MarkChecked(); 24952: return code() == kNotFound; 24952: } 24952: 24952: 24952: bool IsCorruption() const { 24952: MarkChecked(); 24952: return code() == kCorruption; 24952: } 24952: 24952: 24952: bool IsNotSupported() const { 24952: MarkChecked(); 24952: return code() == kNotSupported; 24952: } 24952: 24952: 24952: bool IsInvalidArgument() const { 24952: MarkChecked(); 24952: return code() == kInvalidArgument; 24952: } 24952: 24952: 24952: bool IsIOError() const { 24952: MarkChecked(); 24952: return code() == kIOError; 24952: } 24952: 24952: 24952: bool IsMergeInProgress() const { 24952: MarkChecked(); 24952: return code() == kMergeInProgress; 24952: } 24952: 24952: 24952: bool IsIncomplete() const { 24952: MarkChecked(); 24952: return code() == kIncomplete; 24952: } 24952: 24952: 24952: bool IsShutdownInProgress() const { 24952: MarkChecked(); 24952: return code() == kShutdownInProgress; 24952: } 24952: 24952: bool IsTimedOut() const { 24952: MarkChecked(); 24952: return code() == kTimedOut; 24952: } 24952: 24952: bool IsAborted() const { 24952: MarkChecked(); 24952: return code() == kAborted; 24952: } 24952: 24952: bool IsLockLimit() const { 24952: MarkChecked(); 24952: return code() == kAborted && subcode() == kLockLimit; 24952: } 24952: 24952: 24952: 24952: bool IsBusy() const { 24952: MarkChecked(); 24952: return code() == kBusy; 24952: } 24952: 24952: bool IsDeadlock() const { 24952: MarkChecked(); 24952: return code() == kBusy && subcode() == kDeadlock; 24952: } 24952: 24952: 24952: bool IsExpired() const { 24952: MarkChecked(); 24952: return code() == kExpired; 24952: } 24952: 24952: 24952: 24952: 24952: bool IsTryAgain() const { 24952: MarkChecked(); 24952: return code() == kTryAgain; 24952: } 24952: 24952: 24952: bool IsCompactionTooLarge() const { 24952: MarkChecked(); 24952: return code() == kCompactionTooLarge; 24952: } 24952: 24952: 24952: bool IsColumnFamilyDropped() const { 24952: MarkChecked(); 24952: return code() == kColumnFamilyDropped; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool IsNoSpace() const { 24952: MarkChecked(); 24952: return (code() == kIOError) && (subcode() == kNoSpace); 24952: } 24952: 24952: 24952: 24952: 24952: bool IsMemoryLimit() const { 24952: MarkChecked(); 24952: return (code() == kAborted) && (subcode() == kMemoryLimit); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: bool IsPathNotFound() const { 24952: MarkChecked(); 24952: return (code() == kIOError || code() == kNotFound) && 24952: (subcode() == kPathNotFound); 24952: } 24952: 24952: 24952: 24952: bool IsManualCompactionPaused() const { 24952: MarkChecked(); 24952: return (code() == kIncomplete) && (subcode() == kManualCompactionPaused); 24952: } 24952: 24952: 24952: bool IsTxnNotPrepared() const { 24952: MarkChecked(); 24952: return (code() == kInvalidArgument) && (subcode() == kTxnNotPrepared); 24952: } 24952: 24952: 24952: bool IsIOFenced() const { 24952: MarkChecked(); 24952: return (code() == kIOError) && (subcode() == kIOFenced); 24952: } 24952: 24952: 24952: 24952: std::string ToString() const; 24952: 24952: protected: 24952: Code code_; 24952: SubCode subcode_; 24952: Severity sev_; 24952: bool retryable_; 24952: bool data_loss_; 24952: unsigned char scope_; 24952: 24952: 24952: std::unique_ptr state_; 24952: 24952: 24952: 24952: 24952: explicit Status(Code _code, SubCode _subcode = kNone) 24952: : code_(_code), 24952: subcode_(_subcode), 24952: sev_(kNoError), 24952: retryable_(false), 24952: data_loss_(false), 24952: scope_(0) {} 24952: 24952: explicit Status(Code _code, SubCode _subcode, bool retryable, bool data_loss, 24952: unsigned char scope) 24952: : code_(_code), 24952: subcode_(_subcode), 24952: sev_(kNoError), 24952: retryable_(retryable), 24952: data_loss_(data_loss), 24952: scope_(scope) {} 24952: 24952: Status(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2, 24952: Severity sev = kNoError); 24952: Status(Code _code, const Slice& msg, const Slice& msg2) 24952: : Status(_code, kNone, msg, msg2) {} 24952: 24952: static std::unique_ptr CopyState(const char* s); 24952: 24952: inline void MarkChecked() const { 24952: 24952: 24952: 24952: } 24952: }; 24952: 24952: inline Status::Status(const Status& s) 24952: : code_(s.code_), 24952: subcode_(s.subcode_), 24952: sev_(s.sev_), 24952: retryable_(s.retryable_), 24952: data_loss_(s.data_loss_), 24952: scope_(s.scope_) { 24952: s.MarkChecked(); 24952: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 24952: } 24952: inline Status::Status(const Status& s, Severity sev) 24952: : code_(s.code_), 24952: subcode_(s.subcode_), 24952: sev_(sev), 24952: retryable_(s.retryable_), 24952: data_loss_(s.data_loss_), 24952: scope_(s.scope_) { 24952: s.MarkChecked(); 24952: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 24952: } 24952: inline Status& Status::operator=(const Status& s) { 24952: if (this != &s) { 24952: s.MarkChecked(); 24952: MustCheck(); 24952: code_ = s.code_; 24952: subcode_ = s.subcode_; 24952: sev_ = s.sev_; 24952: retryable_ = s.retryable_; 24952: data_loss_ = s.data_loss_; 24952: scope_ = s.scope_; 24952: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 24952: } 24952: return *this; 24952: } 24952: 24952: inline Status::Status(Status&& s) noexcept : Status() { 24952: s.MarkChecked(); 24952: *this = std::move(s); 24952: } 24952: 24952: inline Status& Status::operator=(Status&& s) noexcept { 24952: if (this != &s) { 24952: s.MarkChecked(); 24952: MustCheck(); 24952: code_ = std::move(s.code_); 24952: s.code_ = kOk; 24952: subcode_ = std::move(s.subcode_); 24952: s.subcode_ = kNone; 24952: sev_ = std::move(s.sev_); 24952: s.sev_ = kNoError; 24952: retryable_ = std::move(s.retryable_); 24952: s.retryable_ = false; 24952: data_loss_ = std::move(s.data_loss_); 24952: s.data_loss_ = false; 24952: scope_ = std::move(s.scope_); 24952: s.scope_ = 0; 24952: state_ = std::move(s.state_); 24952: } 24952: return *this; 24952: } 24952: 24952: inline bool Status::operator==(const Status& rhs) const { 24952: MarkChecked(); 24952: rhs.MarkChecked(); 24952: return (code_ == rhs.code_); 24952: } 24952: 24952: inline bool Status::operator!=(const Status& rhs) const { 24952: MarkChecked(); 24952: rhs.MarkChecked(); 24952: return !(*this == rhs); 24952: } 24952: 24952: } 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 2 24952: 24952: namespace rocksdb { 24952: class Logger; 24952: class ObjectRegistry; 24952: class OptionTypeInfo; 24952: struct ColumnFamilyOptions; 24952: struct ConfigOptions; 24952: struct DBOptions; 24952: # 44 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: class Configurable { 24952: protected: 24952: friend class ConfigurableHelper; 24952: struct RegisteredOptions { 24952: 24952: std::string name; 24952: 24952: void* opt_ptr; 24952: 24952: const std::unordered_map* type_map; 24952: }; 24952: 24952: public: 24952: virtual ~Configurable() {} 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: template 24952: const T* GetOptions() const { 24952: return GetOptions(T::kName()); 24952: } 24952: template 24952: T* GetOptions() { 24952: return GetOptions(T::kName()); 24952: } 24952: template 24952: const T* GetOptions(const std::string& name) const { 24952: return reinterpret_cast(GetOptionsPtr(name)); 24952: } 24952: template 24952: T* GetOptions(const std::string& name) { 24952: return reinterpret_cast(const_cast(GetOptionsPtr(name))); 24952: } 24952: # 114 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: Status ConfigureFromMap( 24952: const ConfigOptions& config_options, 24952: const std::unordered_map& opt_map); 24952: Status ConfigureFromMap( 24952: const ConfigOptions& config_options, 24952: const std::unordered_map& opt_map, 24952: std::unordered_map* unused); 24952: # 133 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: Status ConfigureOption(const ConfigOptions& config_options, 24952: const std::string& name, const std::string& value); 24952: # 158 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: Status ConfigureFromString(const ConfigOptions& config_options, 24952: const std::string& opts); 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: Status GetOptionString(const ConfigOptions& config_options, 24952: std::string* result) const; 24952: 24952: 24952: 24952: 24952: 24952: std::string ToString(const ConfigOptions& config_options) const { 24952: return ToString(config_options, ""); 24952: } 24952: std::string ToString(const ConfigOptions& config_options, 24952: const std::string& prefix) const; 24952: 24952: 24952: 24952: 24952: 24952: 24952: Status GetOptionNames(const ConfigOptions& config_options, 24952: std::unordered_set* result) const; 24952: # 198 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: virtual Status GetOption(const ConfigOptions& config_options, 24952: const std::string& name, std::string* value) const; 24952: # 208 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: virtual bool AreEquivalent(const ConfigOptions& config_options, 24952: const Configurable* other, 24952: std::string* name) const; 24952: 24952: 24952: 24952: 24952: virtual std::string GetPrintableOptions() const { return ""; } 24952: # 239 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: virtual Status PrepareOptions(const ConfigOptions& config_options); 24952: # 255 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: virtual Status ValidateOptions(const DBOptions& db_opts, 24952: const ColumnFamilyOptions& cf_opts) const; 24952: # 272 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: static Status GetOptionsMap( 24952: const std::string& opt_value, const std::string& default_id, 24952: std::string* id, std::unordered_map* options); 24952: 24952: protected: 24952: # 287 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: virtual const void* GetOptionsPtr(const std::string& name) const; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status ParseStringOptions(const ConfigOptions& config_options, 24952: const std::string& opts_str); 24952: # 309 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: virtual Status ConfigureOptions( 24952: const ConfigOptions& config_options, 24952: const std::unordered_map& opts_map, 24952: std::unordered_map* unused); 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status ParseOption(const ConfigOptions& config_options, 24952: const OptionTypeInfo& opt_info, 24952: const std::string& opt_name, 24952: const std::string& opt_value, void* opt_ptr); 24952: # 338 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: virtual bool OptionsAreEqual(const ConfigOptions& config_options, 24952: const OptionTypeInfo& opt_info, 24952: const std::string& name, 24952: const void* const this_ptr, 24952: const void* const that_ptr, 24952: std::string* bad_name) const; 24952: 24952: 24952: virtual std::string SerializeOptions(const ConfigOptions& config_options, 24952: const std::string& header) const; 24952: 24952: 24952: virtual std::string GetOptionName(const std::string& long_name) const; 24952: # 371 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/configurable.h" 24952: template 24952: void RegisterOptions( 24952: T* opt_ptr, 24952: const std::unordered_map* opt_map) { 24952: RegisterOptions(T::kName(), opt_ptr, opt_map); 24952: } 24952: void RegisterOptions( 24952: const std::string& name, void* opt_ptr, 24952: const std::unordered_map* opt_map); 24952: 24952: 24952: inline bool HasRegisteredOptions() const { return !options_.empty(); } 24952: 24952: private: 24952: 24952: 24952: 24952: std::vector options_; 24952: }; 24952: } 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 2 24952: 24952: 24952: namespace rocksdb { 24952: # 56 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 24952: class Customizable : public Configurable { 24952: public: 24952: ~Customizable() override {} 24952: 24952: 24952: virtual const char* Name() const = 0; 24952: 24952: 24952: 24952: 24952: virtual std::string GetId() const { 24952: std::string id = Name(); 24952: return id; 24952: } 24952: # 89 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 24952: virtual bool IsInstanceOf(const std::string& name) const { 24952: if (name.empty()) { 24952: return false; 24952: } else if (name == Name()) { 24952: return true; 24952: } else { 24952: const char* nickname = NickName(); 24952: if (nickname != nullptr && name == nickname) { 24952: return true; 24952: } else { 24952: return false; 24952: } 24952: } 24952: } 24952: 24952: const void* GetOptionsPtr(const std::string& name) const override { 24952: const void* ptr = Configurable::GetOptionsPtr(name); 24952: if (ptr != nullptr) { 24952: return ptr; 24952: } else { 24952: const auto inner = Inner(); 24952: if (inner != nullptr) { 24952: return inner->GetOptionsPtr(name); 24952: } else { 24952: return nullptr; 24952: } 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: const T* CheckedCast() const { 24952: if (IsInstanceOf(T::kClassName())) { 24952: return static_cast(this); 24952: } else { 24952: const auto inner = Inner(); 24952: if (inner != nullptr) { 24952: return inner->CheckedCast(); 24952: } else { 24952: return nullptr; 24952: } 24952: } 24952: } 24952: 24952: template 24952: T* CheckedCast() { 24952: if (IsInstanceOf(T::kClassName())) { 24952: return static_cast(this); 24952: } else { 24952: auto inner = const_cast(Inner()); 24952: if (inner != nullptr) { 24952: return inner->CheckedCast(); 24952: } else { 24952: return nullptr; 24952: } 24952: } 24952: } 24952: # 157 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 24952: bool AreEquivalent(const ConfigOptions& config_options, 24952: const Configurable* other, 24952: std::string* mismatch) const override; 24952: 24952: 24952: Status GetOption(const ConfigOptions& config_options, const std::string& name, 24952: std::string* value) const override; 24952: # 183 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 24952: static Status GetOptionsMap( 24952: const ConfigOptions& config_options, const Customizable* custom, 24952: const std::string& opt_value, std::string* id, 24952: std::unordered_map* options); 24952: # 195 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 24952: static Status ConfigureNewObject( 24952: const ConfigOptions& config_options, Customizable* object, 24952: const std::unordered_map& options); 24952: 24952: 24952: 24952: 24952: virtual const Customizable* Inner() const { return nullptr; } 24952: 24952: protected: 24952: # 217 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/customizable.h" 24952: std::string GenerateIndividualId() const; 24952: 24952: 24952: 24952: 24952: virtual const char* NickName() const { return ""; } 24952: 24952: std::string GetOptionName(const std::string& long_name) const override; 24952: std::string SerializeOptions(const ConfigOptions& options, 24952: const std::string& prefix) const override; 24952: }; 24952: 24952: } 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 2 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class Slice; 24952: 24952: 24952: 24952: class CompareInterface { 24952: public: 24952: virtual ~CompareInterface() {} 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 24952: virtual int Compare(const Slice& a, const Slice& b) const = 0; 24952: }; 24952: # 44 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 24952: class Comparator : public Customizable, public CompareInterface { 24952: public: 24952: Comparator() : timestamp_size_(0) {} 24952: 24952: Comparator(size_t ts_sz) : timestamp_size_(ts_sz) {} 24952: 24952: Comparator(const Comparator& orig) : timestamp_size_(orig.timestamp_size_) {} 24952: 24952: Comparator& operator=(const Comparator& rhs) { 24952: if (this != &rhs) { 24952: timestamp_size_ = rhs.timestamp_size_; 24952: } 24952: return *this; 24952: } 24952: 24952: ~Comparator() override {} 24952: 24952: static Status CreateFromString(const ConfigOptions& opts, 24952: const std::string& id, 24952: const Comparator** comp); 24952: static const char* Type() { return "Comparator"; } 24952: # 76 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 24952: const char* Name() const override = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual bool Equal(const Slice& a, const Slice& b) const { 24952: return Compare(a, b) == 0; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void FindShortestSeparator(std::string* start, 24952: const Slice& limit) const = 0; 24952: 24952: 24952: 24952: 24952: virtual void FindShortSuccessor(std::string* key) const = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual bool IsSameLengthImmediateSuccessor(const Slice& , 24952: const Slice& ) const { 24952: return false; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual bool CanKeysWithDifferentByteContentsBeEqual() const { return true; } 24952: 24952: 24952: 24952: virtual const Comparator* GetRootComparator() const { return this; } 24952: 24952: inline size_t timestamp_size() const { return timestamp_size_; } 24952: 24952: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 24952: return CompareWithoutTimestamp(a, true, b, true); 24952: } 24952: # 136 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/comparator.h" 24952: virtual int CompareTimestamp(const Slice& , 24952: const Slice& ) const { 24952: return 0; 24952: } 24952: 24952: virtual int CompareWithoutTimestamp(const Slice& a, bool , 24952: const Slice& b, bool ) const { 24952: return Compare(a, b); 24952: } 24952: 24952: virtual bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 24952: return 0 == 24952: CompareWithoutTimestamp(a, true, b, true); 24952: } 24952: 24952: private: 24952: size_t timestamp_size_; 24952: }; 24952: 24952: 24952: 24952: 24952: const Comparator* BytewiseComparator(); 24952: 24952: 24952: 24952: const Comparator* ReverseBytewiseComparator(); 24952: 24952: 24952: 24952: 24952: 24952: 24952: const Comparator* BytewiseComparatorWithU64Ts(); 24952: 24952: 24952: 24952: 24952: 24952: 24952: const Comparator* ReverseBytewiseComparatorWithU64Ts(); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: Status DecodeU64Ts(const Slice& ts, uint64_t* int_ts); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: Slice EncodeU64Ts(uint64_t ts, std::string* ts_buf); 24952: 24952: 24952: 24952: 24952: Slice MaxU64Ts(); 24952: 24952: 24952: 24952: 24952: Slice MinU64Ts(); 24952: 24952: } 24952: # 18 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice_transform.h" 1 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice_transform.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class Slice; 24952: struct ConfigOptions; 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice_transform.h" 24952: class SliceTransform : public Customizable { 24952: public: 24952: virtual ~SliceTransform(){}; 24952: 24952: 24952: virtual const char* Name() const override = 0; 24952: static const char* Type() { return "SliceTransform"; } 24952: 24952: 24952: static Status CreateFromString(const ConfigOptions& config_options, 24952: const std::string& id, 24952: std::shared_ptr* result); 24952: 24952: 24952: 24952: std::string AsString() const; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Slice Transform(const Slice& key) const = 0; 24952: # 71 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice_transform.h" 24952: virtual bool InDomain(const Slice& key) const = 0; 24952: 24952: 24952: 24952: virtual bool InRange(const Slice& ) const { return false; } 24952: # 92 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice_transform.h" 24952: virtual bool FullLengthEnabled(size_t* ) const { return false; } 24952: # 119 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/slice_transform.h" 24952: virtual bool SameResultWhenAppended(const Slice& ) const { 24952: return false; 24952: } 24952: }; 24952: 24952: 24952: 24952: extern const SliceTransform* NewFixedPrefixTransform(size_t prefix_len); 24952: 24952: 24952: 24952: extern const SliceTransform* NewCappedPrefixTransform(size_t cap_len); 24952: 24952: 24952: extern const SliceTransform* NewNoopTransform(); 24952: 24952: } 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/types.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/types.h" 24952: namespace rocksdb { 24952: 24952: 24952: 24952: using ColumnFamilyId = uint32_t; 24952: 24952: 24952: using SequenceNumber = uint64_t; 24952: 24952: struct TableProperties; 24952: using TablePropertiesCollection = 24952: std::unordered_map>; 24952: 24952: const SequenceNumber kMinUnCommittedSeq = 1; 24952: 24952: enum class TableFileCreationReason { 24952: kFlush, 24952: kCompaction, 24952: kRecovery, 24952: kMisc, 24952: }; 24952: 24952: enum class BlobFileCreationReason { 24952: kFlush, 24952: kCompaction, 24952: kRecovery, 24952: }; 24952: 24952: 24952: 24952: enum FileType { 24952: kWalFile, 24952: kDBLockFile, 24952: kTableFile, 24952: kDescriptorFile, 24952: kCurrentFile, 24952: kTempFile, 24952: kInfoLogFile, 24952: kMetaDatabase, 24952: kIdentityFile, 24952: kOptionsFile, 24952: kBlobFile 24952: }; 24952: 24952: 24952: 24952: enum EntryType { 24952: kEntryPut, 24952: kEntryDelete, 24952: kEntrySingleDelete, 24952: kEntryMerge, 24952: kEntryRangeDeletion, 24952: kEntryBlobIndex, 24952: kEntryDeleteWithTimestamp, 24952: kEntryWideColumnEntity, 24952: kEntryOther, 24952: }; 24952: 24952: enum class WriteStallCause { 24952: 24952: 24952: 24952: kMemtableLimit, 24952: kL0FileCountLimit, 24952: kPendingCompactionBytes, 24952: kCFScopeWriteStallCauseEnumMax, 24952: 24952: 24952: 24952: 24952: 24952: kWriteBufferManagerLimit, 24952: kDBScopeWriteStallCauseEnumMax, 24952: 24952: 24952: 24952: kNone, 24952: }; 24952: 24952: enum class WriteStallCondition { 24952: kDelayed, 24952: kStopped, 24952: 24952: kNormal, 24952: }; 24952: 24952: } 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/coding.h" 1 24952: # 18 "/build/reproducible-path/rocksdb-8.9.1/util/coding.h" 24952: 24952: # 1 "/usr/include/c++/13/algorithm" 1 3 24952: # 58 "/usr/include/c++/13/algorithm" 3 24952: 24952: # 59 "/usr/include/c++/13/algorithm" 3 24952: # 73 "/usr/include/c++/13/algorithm" 3 24952: # 1 "/usr/include/c++/13/pstl/glue_algorithm_defs.h" 1 3 24952: # 17 "/usr/include/c++/13/pstl/glue_algorithm_defs.h" 3 24952: 24952: # 17 "/usr/include/c++/13/pstl/glue_algorithm_defs.h" 3 24952: namespace std 24952: { 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: any_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: all_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: none_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: for_each(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Function __f); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: for_each_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, _Function __f); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: find_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: find_if_not(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 24952: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 24952: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 24952: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 24952: _ForwardIterator2 __s_last); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 24952: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 24952: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 24952: typename iterator_traits<_ForwardIterator>::difference_type> 24952: count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 24952: typename iterator_traits<_ForwardIterator>::difference_type> 24952: count_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 24952: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 24952: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 24952: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 24952: _ForwardIterator2 __s_last); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 24952: const _Tp& __value, _BinaryPredicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 24952: const _Tp& __value); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: copy_n(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _Size __n, _ForwardIterator2 __result); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 result, 24952: _Predicate __pred); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: swap_ranges(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 24952: _UnaryOperation __op); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 24952: _ForwardIterator __result, _BinaryOperation __op); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred, 24952: const _Tp& __new_value); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: replace(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, 24952: const _Tp& __new_value); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: replace_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __result, _UnaryPredicate __pred, const _Tp& __new_value); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: replace_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 24952: const _Tp& __old_value, const _Tp& __new_value); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __count, const _Tp& __value); 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: generate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Generator __g); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: generate_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size count, _Generator __g); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: remove_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __result, _Predicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: remove_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 24952: const _Tp& __value); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: remove_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: remove(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 24952: _BinaryPredicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: reverse(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: reverse_copy(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 24952: _ForwardIterator __d_first); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: rotate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: rotate_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __middle, _ForwardIterator1 __last, 24952: _ForwardIterator2 __result); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: is_partitioned(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: partition(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _BidirectionalIterator> 24952: stable_partition(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 24952: _UnaryPredicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 24952: partition_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 24952: _ForwardIterator1 __out_true, _ForwardIterator2 __out_false, _UnaryPredicate __pred); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 24952: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 24952: _ForwardIterator2 __last2, _BinaryPredicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 24952: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 24952: _BinaryPredicate __pred); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 24952: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 24952: _ForwardIterator2 __last2); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 24952: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 24952: _BinaryPredicate __p); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 24952: _ForwardIterator2 __last2, _BinaryPredicate __p); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 24952: _ForwardIterator2 __last2); 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: move(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __d_first); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 24952: _RandomAccessIterator __last, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 24952: _RandomAccessIterator __last); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 24952: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 24952: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 24952: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 24952: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last); 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 24952: _RandomAccessIterator __last, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 24952: _RandomAccessIterator __last); 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 24952: _ForwardIterator2 __last2, _ForwardIterator __d_first, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 24952: _ForwardIterator2 __last2, _ForwardIterator __d_first); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 24952: _BidirectionalIterator __last, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 24952: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 24952: _BidirectionalIterator __last); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 24952: _ForwardIterator2 __last2, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 24952: _ForwardIterator2 __last2); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 24952: _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 24952: _ForwardIterator2 __last2, _ForwardIterator __result); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator result, 24952: _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 24952: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 24952: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 24952: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 24952: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 24952: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 24952: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _ForwardIterator2 __last2); 24952: 24952: } 24952: # 74 "/usr/include/c++/13/algorithm" 2 3 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/util/coding.h" 2 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/port.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/port/port.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 1 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 24952: 24952: 24952: # 1 "/usr/include/c++/13/thread" 1 3 24952: # 32 "/usr/include/c++/13/thread" 3 24952: 24952: # 33 "/usr/include/c++/13/thread" 3 24952: # 45 "/usr/include/c++/13/thread" 3 24952: # 1 "/usr/include/c++/13/bits/std_thread.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/std_thread.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/std_thread.h" 3 24952: # 52 "/usr/include/c++/13/bits/std_thread.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 78 "/usr/include/c++/13/bits/std_thread.h" 3 24952: class thread 24952: { 24952: public: 24952: 24952: using native_handle_type = __gthread_t; 24952: # 92 "/usr/include/c++/13/bits/std_thread.h" 3 24952: class id 24952: { 24952: native_handle_type _M_thread; 24952: 24952: public: 24952: id() noexcept : _M_thread() { } 24952: 24952: explicit 24952: id(native_handle_type __id) : _M_thread(__id) { } 24952: 24952: private: 24952: friend class thread; 24952: friend struct hash; 24952: 24952: friend bool 24952: operator==(id __x, id __y) noexcept; 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator<(id __x, id __y) noexcept; 24952: 24952: 24952: template 24952: friend basic_ostream<_CharT, _Traits>& 24952: operator<<(basic_ostream<_CharT, _Traits>& __out, id __id); 24952: }; 24952: 24952: private: 24952: id _M_id; 24952: 24952: 24952: 24952: 24952: template 24952: using __not_same = __not_, thread>>; 24952: 24952: public: 24952: thread() noexcept = default; 24952: 24952: 24952: private: 24952: 24952: 24952: 24952: 24952: 24952: 24952: static void 24952: _M_thread_deps_never_run() { 24952: 24952: 24952: 24952: 24952: } 24952: 24952: public: 24952: template>> 24952: explicit 24952: thread(_Callable&& __f, _Args&&... __args) 24952: { 24952: static_assert( __is_invocable::type, 24952: typename decay<_Args>::type...>::value, 24952: "std::thread arguments must be invocable after conversion to rvalues" 24952: ); 24952: 24952: using _Wrapper = _Call_wrapper<_Callable, _Args...>; 24952: 24952: 24952: _M_start_thread(_State_ptr(new _State_impl<_Wrapper>( 24952: std::forward<_Callable>(__f), std::forward<_Args>(__args)...)), 24952: _M_thread_deps_never_run); 24952: } 24952: 24952: 24952: ~thread() 24952: { 24952: if (joinable()) 24952: std::__terminate(); 24952: } 24952: 24952: thread(const thread&) = delete; 24952: 24952: thread(thread&& __t) noexcept 24952: { swap(__t); } 24952: 24952: thread& operator=(const thread&) = delete; 24952: 24952: thread& operator=(thread&& __t) noexcept 24952: { 24952: if (joinable()) 24952: std::__terminate(); 24952: swap(__t); 24952: return *this; 24952: } 24952: 24952: void 24952: swap(thread& __t) noexcept 24952: { std::swap(_M_id, __t._M_id); } 24952: 24952: bool 24952: joinable() const noexcept 24952: { return !(_M_id == id()); } 24952: 24952: void 24952: join(); 24952: 24952: void 24952: detach(); 24952: 24952: id 24952: get_id() const noexcept 24952: { return _M_id; } 24952: 24952: 24952: 24952: native_handle_type 24952: native_handle() 24952: { return _M_id._M_thread; } 24952: 24952: 24952: static unsigned int 24952: hardware_concurrency() noexcept; 24952: 24952: 24952: 24952: private: 24952: 24952: 24952: 24952: struct _State 24952: { 24952: virtual ~_State(); 24952: virtual void _M_run() = 0; 24952: }; 24952: using _State_ptr = unique_ptr<_State>; 24952: 24952: private: 24952: template 24952: struct _State_impl : public _State 24952: { 24952: _Callable _M_func; 24952: 24952: template 24952: _State_impl(_Args&&... __args) 24952: : _M_func(std::forward<_Args>(__args)...) 24952: { } 24952: 24952: void 24952: _M_run() { _M_func(); } 24952: }; 24952: 24952: void 24952: _M_start_thread(_State_ptr, void (*)()); 24952: # 269 "/usr/include/c++/13/bits/std_thread.h" 3 24952: private: 24952: 24952: template 24952: struct _Invoker 24952: { 24952: template 24952: explicit 24952: _Invoker(_Args&&... __args) 24952: : _M_t(std::forward<_Args>(__args)...) 24952: { } 24952: 24952: _Tuple _M_t; 24952: 24952: template 24952: struct __result; 24952: template 24952: struct __result> 24952: : __invoke_result<_Fn, _Args...> 24952: { }; 24952: 24952: template 24952: typename __result<_Tuple>::type 24952: _M_invoke(_Index_tuple<_Ind...>) 24952: { return std::__invoke(std::get<_Ind>(std::move(_M_t))...); } 24952: 24952: typename __result<_Tuple>::type 24952: operator()() 24952: { 24952: using _Indices 24952: = typename _Build_index_tuple::value>::__type; 24952: return _M_invoke(_Indices()); 24952: } 24952: }; 24952: 24952: public: 24952: 24952: template 24952: using _Call_wrapper = _Invoker::type...>>; 24952: 24952: 24952: }; 24952: # 318 "/usr/include/c++/13/bits/std_thread.h" 3 24952: inline void 24952: swap(thread& __x, thread& __y) noexcept 24952: { __x.swap(__y); } 24952: 24952: 24952: inline bool 24952: operator==(thread::id __x, thread::id __y) noexcept 24952: { 24952: 24952: 24952: 24952: 24952: return __x._M_thread == __y._M_thread; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template<> 24952: struct hash 24952: : public __hash_base 24952: { 24952: size_t 24952: operator()(const thread::id& __id) const noexcept 24952: { return std::_Hash_impl::hash(__id._M_thread); } 24952: }; 24952: 24952: namespace this_thread 24952: { 24952: 24952: inline thread::id 24952: get_id() noexcept 24952: { 24952: 24952: 24952: 24952: return thread::id(pthread_self()); 24952: 24952: 24952: 24952: } 24952: 24952: 24952: inline void 24952: yield() noexcept 24952: { 24952: 24952: __gthread_yield(); 24952: 24952: } 24952: 24952: } 24952: 24952: 24952: 24952: 24952: } 24952: # 46 "/usr/include/c++/13/thread" 2 3 24952: # 1 "/usr/include/c++/13/bits/this_thread_sleep.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/this_thread_sleep.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/this_thread_sleep.h" 3 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/chrono.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/chrono.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/chrono.h" 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/ratio" 1 3 24952: # 33 "/usr/include/c++/13/ratio" 3 24952: 24952: # 34 "/usr/include/c++/13/ratio" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/cstdint" 1 3 24952: # 32 "/usr/include/c++/13/cstdint" 3 24952: 24952: # 33 "/usr/include/c++/13/cstdint" 3 24952: # 48 "/usr/include/c++/13/cstdint" 3 24952: namespace std 24952: { 24952: 24952: using ::int8_t; 24952: using ::int16_t; 24952: using ::int32_t; 24952: using ::int64_t; 24952: 24952: using ::int_fast8_t; 24952: using ::int_fast16_t; 24952: using ::int_fast32_t; 24952: using ::int_fast64_t; 24952: 24952: using ::int_least8_t; 24952: using ::int_least16_t; 24952: using ::int_least32_t; 24952: using ::int_least64_t; 24952: 24952: using ::intmax_t; 24952: using ::intptr_t; 24952: 24952: using ::uint8_t; 24952: using ::uint16_t; 24952: using ::uint32_t; 24952: using ::uint64_t; 24952: 24952: using ::uint_fast8_t; 24952: using ::uint_fast16_t; 24952: using ::uint_fast32_t; 24952: using ::uint_fast64_t; 24952: 24952: using ::uint_least8_t; 24952: using ::uint_least16_t; 24952: using ::uint_least32_t; 24952: using ::uint_least64_t; 24952: 24952: using ::uintmax_t; 24952: using ::uintptr_t; 24952: # 142 "/usr/include/c++/13/cstdint" 3 24952: } 24952: # 41 "/usr/include/c++/13/ratio" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 56 "/usr/include/c++/13/ratio" 3 24952: template 24952: struct __static_sign 24952: : integral_constant 24952: { }; 24952: 24952: template 24952: struct __static_abs 24952: : integral_constant::value> 24952: { }; 24952: 24952: template 24952: struct __static_gcd 24952: : __static_gcd<_Qn, (_Pn % _Qn)> 24952: { }; 24952: 24952: template 24952: struct __static_gcd<_Pn, 0> 24952: : integral_constant::value> 24952: { }; 24952: 24952: template 24952: struct __static_gcd<0, _Qn> 24952: : integral_constant::value> 24952: { }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __safe_multiply 24952: { 24952: private: 24952: static const uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 24952: 24952: static const uintmax_t __a0 = __static_abs<_Pn>::value % __c; 24952: static const uintmax_t __a1 = __static_abs<_Pn>::value / __c; 24952: static const uintmax_t __b0 = __static_abs<_Qn>::value % __c; 24952: static const uintmax_t __b1 = __static_abs<_Qn>::value / __c; 24952: 24952: static_assert(__a1 == 0 || __b1 == 0, 24952: "overflow in multiplication"); 24952: static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1), 24952: "overflow in multiplication"); 24952: static_assert(__b0 * __a0 <= 0x7fffffffffffffffLL, 24952: "overflow in multiplication"); 24952: static_assert((__a0 * __b1 + __b0 * __a1) * __c 24952: <= 0x7fffffffffffffffLL - __b0 * __a0, 24952: "overflow in multiplication"); 24952: 24952: public: 24952: static const intmax_t value = _Pn * _Qn; 24952: }; 24952: 24952: 24952: 24952: template 24952: struct __big_less 24952: : integral_constant 24952: { }; 24952: 24952: template 24952: struct __big_add 24952: { 24952: static constexpr uintmax_t __lo = __lo1 + __lo2; 24952: static constexpr uintmax_t __hi = (__hi1 + __hi2 + 24952: (__lo1 + __lo2 < __lo1)); 24952: }; 24952: 24952: 24952: template 24952: struct __big_sub 24952: { 24952: static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value, 24952: "Internal library error"); 24952: static constexpr uintmax_t __lo = __lo1 - __lo2; 24952: static constexpr uintmax_t __hi = (__hi1 - __hi2 - 24952: (__lo1 < __lo2)); 24952: }; 24952: 24952: 24952: template 24952: struct __big_mul 24952: { 24952: private: 24952: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 24952: static constexpr uintmax_t __x0 = __x % __c; 24952: static constexpr uintmax_t __x1 = __x / __c; 24952: static constexpr uintmax_t __y0 = __y % __c; 24952: static constexpr uintmax_t __y1 = __y / __c; 24952: static constexpr uintmax_t __x0y0 = __x0 * __y0; 24952: static constexpr uintmax_t __x0y1 = __x0 * __y1; 24952: static constexpr uintmax_t __x1y0 = __x1 * __y0; 24952: static constexpr uintmax_t __x1y1 = __x1 * __y1; 24952: static constexpr uintmax_t __mix = __x0y1 + __x1y0; 24952: static constexpr uintmax_t __mix_lo = __mix * __c; 24952: static constexpr uintmax_t __mix_hi 24952: = __mix / __c + ((__mix < __x0y1) ? __c : 0); 24952: typedef __big_add<__mix_hi, __mix_lo, __x1y1, __x0y0> _Res; 24952: public: 24952: static constexpr uintmax_t __hi = _Res::__hi; 24952: static constexpr uintmax_t __lo = _Res::__lo; 24952: }; 24952: 24952: 24952: 24952: template 24952: struct __big_div_impl 24952: { 24952: private: 24952: static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)), 24952: "Internal library error"); 24952: static_assert(__n1 < __d, "Internal library error"); 24952: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 24952: static constexpr uintmax_t __d1 = __d / __c; 24952: static constexpr uintmax_t __d0 = __d % __c; 24952: 24952: static constexpr uintmax_t __q1x = __n1 / __d1; 24952: static constexpr uintmax_t __r1x = __n1 % __d1; 24952: static constexpr uintmax_t __m = __q1x * __d0; 24952: static constexpr uintmax_t __r1y = __r1x * __c + __n0 / __c; 24952: static constexpr uintmax_t __r1z = __r1y + __d; 24952: static constexpr uintmax_t __r1 24952: = ((__r1y < __m) ? ((__r1z >= __d) && (__r1z < __m)) 24952: ? (__r1z + __d) : __r1z : __r1y) - __m; 24952: static constexpr uintmax_t __q1 24952: = __q1x - ((__r1y < __m) 24952: ? ((__r1z >= __d) && (__r1z < __m)) ? 2 : 1 : 0); 24952: static constexpr uintmax_t __q0x = __r1 / __d1; 24952: static constexpr uintmax_t __r0x = __r1 % __d1; 24952: static constexpr uintmax_t __n = __q0x * __d0; 24952: static constexpr uintmax_t __r0y = __r0x * __c + __n0 % __c; 24952: static constexpr uintmax_t __r0z = __r0y + __d; 24952: static constexpr uintmax_t __r0 24952: = ((__r0y < __n) ? ((__r0z >= __d) && (__r0z < __n)) 24952: ? (__r0z + __d) : __r0z : __r0y) - __n; 24952: static constexpr uintmax_t __q0 24952: = __q0x - ((__r0y < __n) ? ((__r0z >= __d) 24952: && (__r0z < __n)) ? 2 : 1 : 0); 24952: 24952: public: 24952: static constexpr uintmax_t __quot = __q1 * __c + __q0; 24952: static constexpr uintmax_t __rem = __r0; 24952: 24952: private: 24952: typedef __big_mul<__quot, __d> _Prod; 24952: typedef __big_add<_Prod::__hi, _Prod::__lo, 0, __rem> _Sum; 24952: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 24952: "Internal library error"); 24952: }; 24952: 24952: template 24952: struct __big_div 24952: { 24952: private: 24952: static_assert(__d != 0, "Internal library error"); 24952: static_assert(sizeof (uintmax_t) == sizeof (unsigned long long), 24952: "This library calls __builtin_clzll on uintmax_t, which " 24952: "is unsafe on your platform. Please complain to " 24952: "http://gcc.gnu.org/bugzilla/"); 24952: static constexpr int __shift = __builtin_clzll(__d); 24952: static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift; 24952: static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0; 24952: static constexpr uintmax_t __c1 = uintmax_t(1) << __shift; 24952: static constexpr uintmax_t __c2 = uintmax_t(1) << __coshift; 24952: static constexpr uintmax_t __new_d = __d * __c1; 24952: static constexpr uintmax_t __new_n0 = __n0 * __c1; 24952: static constexpr uintmax_t __n1_shifted = (__n1 % __d) * __c1; 24952: static constexpr uintmax_t __n0_top = (__shift != 0) ? (__n0 / __c2) : 0; 24952: static constexpr uintmax_t __new_n1 = __n1_shifted + __n0_top; 24952: typedef __big_div_impl<__new_n1, __new_n0, __new_d> _Res; 24952: 24952: public: 24952: static constexpr uintmax_t __quot_hi = __n1 / __d; 24952: static constexpr uintmax_t __quot_lo = _Res::__quot; 24952: static constexpr uintmax_t __rem = _Res::__rem / __c1; 24952: 24952: private: 24952: typedef __big_mul<__quot_lo, __d> _P0; 24952: typedef __big_mul<__quot_hi, __d> _P1; 24952: typedef __big_add<_P0::__hi, _P0::__lo, _P1::__lo, __rem> _Sum; 24952: 24952: static_assert(_P1::__hi == 0, "Internal library error"); 24952: static_assert(_Sum::__hi >= _P0::__hi, "Internal library error"); 24952: 24952: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 24952: "Internal library error"); 24952: static_assert(__rem < __d, "Internal library error"); 24952: }; 24952: # 265 "/usr/include/c++/13/ratio" 3 24952: template 24952: struct ratio 24952: { 24952: static_assert(_Den != 0, "denominator cannot be zero"); 24952: static_assert(_Num >= -0x7fffffffffffffffLL && _Den >= -0x7fffffffffffffffLL, 24952: "out of range"); 24952: 24952: 24952: static constexpr intmax_t num = 24952: _Num * __static_sign<_Den>::value / __static_gcd<_Num, _Den>::value; 24952: 24952: static constexpr intmax_t den = 24952: __static_abs<_Den>::value / __static_gcd<_Num, _Den>::value; 24952: 24952: typedef ratio type; 24952: }; 24952: # 292 "/usr/include/c++/13/ratio" 3 24952: template 24952: struct __is_ratio 24952: : std::false_type 24952: { }; 24952: 24952: template 24952: struct __is_ratio> 24952: : std::true_type 24952: { }; 24952: 24952: 24952: template 24952: constexpr bool __is_ratio_v = false; 24952: template 24952: constexpr bool __is_ratio_v> = true; 24952: 24952: 24952: template 24952: constexpr bool 24952: __are_both_ratios() noexcept 24952: { 24952: 24952: if constexpr (__is_ratio_v<_R1>) 24952: if constexpr (__is_ratio_v<_R2>) 24952: return true; 24952: return false; 24952: 24952: 24952: 24952: } 24952: 24952: template 24952: struct __ratio_multiply 24952: { 24952: static_assert(std::__are_both_ratios<_R1, _R2>(), 24952: "both template arguments must be a std::ratio"); 24952: 24952: private: 24952: static const intmax_t __gcd1 = 24952: __static_gcd<_R1::num, _R2::den>::value; 24952: static const intmax_t __gcd2 = 24952: __static_gcd<_R2::num, _R1::den>::value; 24952: 24952: public: 24952: typedef ratio< 24952: __safe_multiply<(_R1::num / __gcd1), 24952: (_R2::num / __gcd2)>::value, 24952: __safe_multiply<(_R1::den / __gcd2), 24952: (_R2::den / __gcd1)>::value> type; 24952: 24952: static constexpr intmax_t num = type::num; 24952: static constexpr intmax_t den = type::den; 24952: }; 24952: # 357 "/usr/include/c++/13/ratio" 3 24952: template 24952: using ratio_multiply = typename __ratio_multiply<_R1, _R2>::type; 24952: 24952: 24952: 24952: template 24952: struct __ratio_divide 24952: { 24952: static_assert(_R2::num != 0, "division by 0"); 24952: 24952: typedef typename __ratio_multiply< 24952: _R1, 24952: ratio<_R2::den, _R2::num>>::type type; 24952: 24952: static constexpr intmax_t num = type::num; 24952: static constexpr intmax_t den = type::den; 24952: }; 24952: # 386 "/usr/include/c++/13/ratio" 3 24952: template 24952: using ratio_divide = typename __ratio_divide<_R1, _R2>::type; 24952: 24952: 24952: template 24952: struct ratio_equal 24952: : integral_constant 24952: { 24952: static_assert(std::__are_both_ratios<_R1, _R2>(), 24952: "both template arguments must be a std::ratio"); 24952: }; 24952: 24952: 24952: template 24952: struct ratio_not_equal 24952: : integral_constant::value> 24952: { }; 24952: 24952: 24952: 24952: 24952: template, 24952: typename _Right = __big_mul<_R2::num,_R1::den> > 24952: struct __ratio_less_impl_1 24952: : integral_constant::value> 24952: { }; 24952: 24952: template::value 24952: != __static_sign<_R2::num>::value)), 24952: bool = (__static_sign<_R1::num>::value == -1 24952: && __static_sign<_R2::num>::value == -1)> 24952: struct __ratio_less_impl 24952: : __ratio_less_impl_1<_R1, _R2>::type 24952: { }; 24952: 24952: template 24952: struct __ratio_less_impl<_R1, _R2, true, false> 24952: : integral_constant 24952: { }; 24952: 24952: template 24952: struct __ratio_less_impl<_R1, _R2, false, true> 24952: : __ratio_less_impl_1, 24952: ratio<-_R1::num, _R1::den> >::type 24952: { }; 24952: 24952: 24952: 24952: 24952: template 24952: struct ratio_less 24952: : __ratio_less_impl<_R1, _R2>::type 24952: { 24952: static_assert(std::__are_both_ratios<_R1, _R2>(), 24952: "both template arguments must be a std::ratio"); 24952: }; 24952: 24952: 24952: template 24952: struct ratio_less_equal 24952: : integral_constant::value> 24952: { }; 24952: 24952: 24952: template 24952: struct ratio_greater 24952: : integral_constant::value> 24952: { }; 24952: 24952: 24952: template 24952: struct ratio_greater_equal 24952: : integral_constant::value> 24952: { }; 24952: 24952: 24952: template 24952: inline constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value; 24952: template 24952: inline constexpr bool ratio_not_equal_v = ratio_not_equal<_R1, _R2>::value; 24952: template 24952: inline constexpr bool ratio_less_v = ratio_less<_R1, _R2>::value; 24952: template 24952: inline constexpr bool ratio_less_equal_v 24952: = ratio_less_equal<_R1, _R2>::value; 24952: template 24952: inline constexpr bool ratio_greater_v = ratio_greater<_R1, _R2>::value; 24952: template 24952: inline constexpr bool ratio_greater_equal_v 24952: = ratio_greater_equal<_R1, _R2>::value; 24952: 24952: 24952: 24952: 24952: template= 0), 24952: bool = (_R2::num >= 0), 24952: bool = ratio_less::value, _R1::den>, 24952: ratio<__static_abs<_R2::num>::value, _R2::den> >::value> 24952: struct __ratio_add_impl 24952: { 24952: private: 24952: typedef typename __ratio_add_impl< 24952: ratio<-_R1::num, _R1::den>, 24952: ratio<-_R2::num, _R2::den> >::type __t; 24952: public: 24952: typedef ratio<-__t::num, __t::den> type; 24952: }; 24952: 24952: 24952: template 24952: struct __ratio_add_impl<_R1, _R2, true, true, __b> 24952: { 24952: private: 24952: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 24952: static constexpr uintmax_t __d2 = _R2::den / __g; 24952: typedef __big_mul<_R1::den, __d2> __d; 24952: typedef __big_mul<_R1::num, _R2::den / __g> __x; 24952: typedef __big_mul<_R2::num, _R1::den / __g> __y; 24952: typedef __big_add<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 24952: static_assert(__n::__hi >= __x::__hi, "Internal library error"); 24952: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 24952: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 24952: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 24952: static_assert(__n_final::__rem == 0, "Internal library error"); 24952: static_assert(__n_final::__quot_hi == 0 && 24952: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 24952: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 24952: static_assert(__d_final::__hi == 0 && 24952: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 24952: public: 24952: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 24952: }; 24952: 24952: template 24952: struct __ratio_add_impl<_R1, _R2, false, true, true> 24952: : __ratio_add_impl<_R2, _R1> 24952: { }; 24952: 24952: 24952: template 24952: struct __ratio_add_impl<_R1, _R2, true, false, false> 24952: { 24952: private: 24952: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 24952: static constexpr uintmax_t __d2 = _R2::den / __g; 24952: typedef __big_mul<_R1::den, __d2> __d; 24952: typedef __big_mul<_R1::num, _R2::den / __g> __x; 24952: typedef __big_mul<-_R2::num, _R1::den / __g> __y; 24952: typedef __big_sub<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 24952: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 24952: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 24952: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 24952: static_assert(__n_final::__rem == 0, "Internal library error"); 24952: static_assert(__n_final::__quot_hi == 0 && 24952: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 24952: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 24952: static_assert(__d_final::__hi == 0 && 24952: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 24952: public: 24952: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 24952: }; 24952: 24952: template 24952: struct __ratio_add 24952: { 24952: static_assert(std::__are_both_ratios<_R1, _R2>(), 24952: "both template arguments must be a std::ratio"); 24952: 24952: typedef typename __ratio_add_impl<_R1, _R2>::type type; 24952: static constexpr intmax_t num = type::num; 24952: static constexpr intmax_t den = type::den; 24952: }; 24952: # 575 "/usr/include/c++/13/ratio" 3 24952: template 24952: using ratio_add = typename __ratio_add<_R1, _R2>::type; 24952: 24952: 24952: 24952: template 24952: struct __ratio_subtract 24952: { 24952: typedef typename __ratio_add< 24952: _R1, 24952: ratio<-_R2::num, _R2::den>>::type type; 24952: 24952: static constexpr intmax_t num = type::num; 24952: static constexpr intmax_t den = type::den; 24952: }; 24952: # 602 "/usr/include/c++/13/ratio" 3 24952: template 24952: using ratio_subtract = typename __ratio_subtract<_R1, _R2>::type; 24952: 24952: 24952: typedef ratio<1, 1000000000000000000> atto; 24952: typedef ratio<1, 1000000000000000> femto; 24952: typedef ratio<1, 1000000000000> pico; 24952: typedef ratio<1, 1000000000> nano; 24952: typedef ratio<1, 1000000> micro; 24952: typedef ratio<1, 1000> milli; 24952: typedef ratio<1, 100> centi; 24952: typedef ratio<1, 10> deci; 24952: typedef ratio< 10, 1> deca; 24952: typedef ratio< 100, 1> hecto; 24952: typedef ratio< 1000, 1> kilo; 24952: typedef ratio< 1000000, 1> mega; 24952: typedef ratio< 1000000000, 1> giga; 24952: typedef ratio< 1000000000000, 1> tera; 24952: typedef ratio< 1000000000000000, 1> peta; 24952: typedef ratio< 1000000000000000000, 1> exa; 24952: 24952: 24952: 24952: } 24952: # 38 "/usr/include/c++/13/bits/chrono.h" 2 3 24952: 24952: # 1 "/usr/include/c++/13/limits" 1 3 24952: # 40 "/usr/include/c++/13/limits" 3 24952: 24952: # 41 "/usr/include/c++/13/limits" 3 24952: # 158 "/usr/include/c++/13/limits" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: enum float_round_style 24952: { 24952: round_indeterminate = -1, 24952: round_toward_zero = 0, 24952: round_to_nearest = 1, 24952: round_toward_infinity = 2, 24952: round_toward_neg_infinity = 3 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: enum float_denorm_style 24952: { 24952: 24952: denorm_indeterminate = -1, 24952: 24952: denorm_absent = 0, 24952: 24952: denorm_present = 1 24952: }; 24952: # 202 "/usr/include/c++/13/limits" 3 24952: struct __numeric_limits_base 24952: { 24952: 24952: 24952: static constexpr bool is_specialized = false; 24952: 24952: 24952: 24952: 24952: static constexpr int digits = 0; 24952: 24952: 24952: static constexpr int digits10 = 0; 24952: 24952: 24952: 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: 24952: 24952: static constexpr bool is_signed = false; 24952: 24952: 24952: static constexpr bool is_integer = false; 24952: 24952: 24952: 24952: 24952: static constexpr bool is_exact = false; 24952: 24952: 24952: 24952: static constexpr int radix = 0; 24952: 24952: 24952: 24952: static constexpr int min_exponent = 0; 24952: 24952: 24952: 24952: static constexpr int min_exponent10 = 0; 24952: 24952: 24952: 24952: 24952: static constexpr int max_exponent = 0; 24952: 24952: 24952: 24952: static constexpr int max_exponent10 = 0; 24952: 24952: 24952: static constexpr bool has_infinity = false; 24952: 24952: 24952: 24952: static constexpr bool has_quiet_NaN = false; 24952: 24952: 24952: 24952: static constexpr bool has_signaling_NaN = false; 24952: 24952: 24952: static constexpr float_denorm_style has_denorm = denorm_absent; 24952: 24952: 24952: 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: 24952: 24952: static constexpr bool is_iec559 = false; 24952: 24952: 24952: 24952: 24952: static constexpr bool is_bounded = false; 24952: # 288 "/usr/include/c++/13/limits" 3 24952: static constexpr bool is_modulo = false; 24952: 24952: 24952: static constexpr bool traps = false; 24952: 24952: 24952: static constexpr bool tinyness_before = false; 24952: 24952: 24952: 24952: 24952: static constexpr float_round_style round_style = 24952: round_toward_zero; 24952: }; 24952: # 311 "/usr/include/c++/13/limits" 3 24952: template 24952: struct numeric_limits : public __numeric_limits_base 24952: { 24952: 24952: 24952: static constexpr _Tp 24952: min() noexcept { return _Tp(); } 24952: 24952: 24952: static constexpr _Tp 24952: max() noexcept { return _Tp(); } 24952: 24952: 24952: 24952: 24952: static constexpr _Tp 24952: lowest() noexcept { return _Tp(); } 24952: 24952: 24952: 24952: 24952: static constexpr _Tp 24952: epsilon() noexcept { return _Tp(); } 24952: 24952: 24952: static constexpr _Tp 24952: round_error() noexcept { return _Tp(); } 24952: 24952: 24952: static constexpr _Tp 24952: infinity() noexcept { return _Tp(); } 24952: 24952: 24952: 24952: static constexpr _Tp 24952: quiet_NaN() noexcept { return _Tp(); } 24952: 24952: 24952: 24952: static constexpr _Tp 24952: signaling_NaN() noexcept { return _Tp(); } 24952: 24952: 24952: 24952: 24952: static constexpr _Tp 24952: denorm_min() noexcept { return _Tp(); } 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: struct numeric_limits 24952: : public numeric_limits<_Tp> { }; 24952: 24952: template 24952: struct numeric_limits 24952: : public numeric_limits<_Tp> { }; 24952: 24952: template 24952: struct numeric_limits 24952: : public numeric_limits<_Tp> { }; 24952: # 383 "/usr/include/c++/13/limits" 3 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr bool 24952: min() noexcept { return false; } 24952: 24952: static constexpr bool 24952: max() noexcept { return true; } 24952: 24952: 24952: static constexpr bool 24952: lowest() noexcept { return min(); } 24952: 24952: static constexpr int digits = 1; 24952: static constexpr int digits10 = 0; 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: static constexpr bool is_signed = false; 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr bool 24952: epsilon() noexcept { return false; } 24952: 24952: static constexpr bool 24952: round_error() noexcept { return false; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm 24952: = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr bool 24952: infinity() noexcept { return false; } 24952: 24952: static constexpr bool 24952: quiet_NaN() noexcept { return false; } 24952: 24952: static constexpr bool 24952: signaling_NaN() noexcept { return false; } 24952: 24952: static constexpr bool 24952: denorm_min() noexcept { return false; } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = false; 24952: 24952: 24952: 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style 24952: = round_toward_zero; 24952: }; 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr char 24952: 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); } 24952: 24952: static constexpr char 24952: max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } 24952: 24952: 24952: static constexpr char 24952: lowest() noexcept { return min(); } 24952: 24952: 24952: static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); 24952: static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: static constexpr bool is_signed = ((char)(-1) < 0); 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr char 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr char 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm 24952: = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr 24952: char infinity() noexcept { return char(); } 24952: 24952: static constexpr char 24952: quiet_NaN() noexcept { return char(); } 24952: 24952: static constexpr char 24952: signaling_NaN() noexcept { return char(); } 24952: 24952: static constexpr char 24952: denorm_min() noexcept { return static_cast(0); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = !is_signed; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style 24952: = round_toward_zero; 24952: }; 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr signed char 24952: min() noexcept { return -0x7f - 1; } 24952: 24952: static constexpr signed char 24952: max() noexcept { return 0x7f; } 24952: 24952: 24952: static constexpr signed char 24952: lowest() noexcept { return min(); } 24952: 24952: 24952: static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); 24952: static constexpr int digits10 24952: = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: static constexpr bool is_signed = true; 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr signed char 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr signed char 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm 24952: = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr signed char 24952: infinity() noexcept { return static_cast(0); } 24952: 24952: static constexpr signed char 24952: quiet_NaN() noexcept { return static_cast(0); } 24952: 24952: static constexpr signed char 24952: signaling_NaN() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr signed char 24952: denorm_min() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = false; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style 24952: = round_toward_zero; 24952: }; 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr unsigned char 24952: min() noexcept { return 0; } 24952: 24952: static constexpr unsigned char 24952: max() noexcept { return 0x7f * 2U + 1; } 24952: 24952: 24952: static constexpr unsigned char 24952: lowest() noexcept { return min(); } 24952: 24952: 24952: static constexpr int digits 24952: = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); 24952: static constexpr int digits10 24952: = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: static constexpr bool is_signed = false; 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr unsigned char 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr unsigned char 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm 24952: = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr unsigned char 24952: infinity() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned char 24952: quiet_NaN() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned char 24952: signaling_NaN() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned char 24952: denorm_min() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = true; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style 24952: = round_toward_zero; 24952: }; 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr wchar_t 24952: 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); } 24952: 24952: static constexpr wchar_t 24952: 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); } 24952: 24952: 24952: static constexpr wchar_t 24952: lowest() noexcept { return min(); } 24952: 24952: 24952: static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); 24952: static constexpr int digits10 24952: = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: static constexpr bool is_signed = ((wchar_t)(-1) < 0); 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr wchar_t 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr wchar_t 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm 24952: = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr wchar_t 24952: infinity() noexcept { return wchar_t(); } 24952: 24952: static constexpr wchar_t 24952: quiet_NaN() noexcept { return wchar_t(); } 24952: 24952: static constexpr wchar_t 24952: signaling_NaN() noexcept { return wchar_t(); } 24952: 24952: static constexpr wchar_t 24952: denorm_min() noexcept { return wchar_t(); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = !is_signed; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style 24952: = round_toward_zero; 24952: }; 24952: # 796 "/usr/include/c++/13/limits" 3 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr char16_t 24952: 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); } 24952: 24952: static constexpr char16_t 24952: 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); } 24952: 24952: static constexpr char16_t 24952: lowest() noexcept { return min(); } 24952: 24952: static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); 24952: static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); 24952: static constexpr int max_digits10 = 0; 24952: static constexpr bool is_signed = ((char16_t)(-1) < 0); 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr char16_t 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr char16_t 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr char16_t 24952: infinity() noexcept { return char16_t(); } 24952: 24952: static constexpr char16_t 24952: quiet_NaN() noexcept { return char16_t(); } 24952: 24952: static constexpr char16_t 24952: signaling_NaN() noexcept { return char16_t(); } 24952: 24952: static constexpr char16_t 24952: denorm_min() noexcept { return char16_t(); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = !is_signed; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style = round_toward_zero; 24952: }; 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr char32_t 24952: 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); } 24952: 24952: static constexpr char32_t 24952: 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); } 24952: 24952: static constexpr char32_t 24952: lowest() noexcept { return min(); } 24952: 24952: static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); 24952: static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); 24952: static constexpr int max_digits10 = 0; 24952: static constexpr bool is_signed = ((char32_t)(-1) < 0); 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr char32_t 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr char32_t 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr char32_t 24952: infinity() noexcept { return char32_t(); } 24952: 24952: static constexpr char32_t 24952: quiet_NaN() noexcept { return char32_t(); } 24952: 24952: static constexpr char32_t 24952: signaling_NaN() noexcept { return char32_t(); } 24952: 24952: static constexpr char32_t 24952: denorm_min() noexcept { return char32_t(); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = !is_signed; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style = round_toward_zero; 24952: }; 24952: 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr short 24952: min() noexcept { return -0x7fff - 1; } 24952: 24952: static constexpr short 24952: max() noexcept { return 0x7fff; } 24952: 24952: 24952: static constexpr short 24952: lowest() noexcept { return min(); } 24952: 24952: 24952: static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); 24952: static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: static constexpr bool is_signed = true; 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr short 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr short 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm 24952: = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr short 24952: infinity() noexcept { return short(); } 24952: 24952: static constexpr short 24952: quiet_NaN() noexcept { return short(); } 24952: 24952: static constexpr short 24952: signaling_NaN() noexcept { return short(); } 24952: 24952: static constexpr short 24952: denorm_min() noexcept { return short(); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = false; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style 24952: = round_toward_zero; 24952: }; 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr unsigned short 24952: min() noexcept { return 0; } 24952: 24952: static constexpr unsigned short 24952: max() noexcept { return 0x7fff * 2U + 1; } 24952: 24952: 24952: static constexpr unsigned short 24952: lowest() noexcept { return min(); } 24952: 24952: 24952: static constexpr int digits 24952: = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); 24952: static constexpr int digits10 24952: = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: static constexpr bool is_signed = false; 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr unsigned short 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr unsigned short 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm 24952: = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr unsigned short 24952: infinity() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned short 24952: quiet_NaN() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned short 24952: signaling_NaN() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned short 24952: denorm_min() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = true; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style 24952: = round_toward_zero; 24952: }; 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr int 24952: min() noexcept { return -0x7fffffff - 1; } 24952: 24952: static constexpr int 24952: max() noexcept { return 0x7fffffff; } 24952: 24952: 24952: static constexpr int 24952: lowest() noexcept { return min(); } 24952: 24952: 24952: static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); 24952: static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: static constexpr bool is_signed = true; 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr int 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr int 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm 24952: = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr int 24952: infinity() noexcept { return static_cast(0); } 24952: 24952: static constexpr int 24952: quiet_NaN() noexcept { return static_cast(0); } 24952: 24952: static constexpr int 24952: signaling_NaN() noexcept { return static_cast(0); } 24952: 24952: static constexpr int 24952: denorm_min() noexcept { return static_cast(0); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = false; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style 24952: = round_toward_zero; 24952: }; 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr unsigned int 24952: min() noexcept { return 0; } 24952: 24952: static constexpr unsigned int 24952: max() noexcept { return 0x7fffffff * 2U + 1; } 24952: 24952: 24952: static constexpr unsigned int 24952: lowest() noexcept { return min(); } 24952: 24952: 24952: static constexpr int digits 24952: = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); 24952: static constexpr int digits10 24952: = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: static constexpr bool is_signed = false; 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr unsigned int 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr unsigned int 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm 24952: = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr unsigned int 24952: infinity() noexcept { return static_cast(0); } 24952: 24952: static constexpr unsigned int 24952: quiet_NaN() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned int 24952: signaling_NaN() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned int 24952: denorm_min() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = true; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style 24952: = round_toward_zero; 24952: }; 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr long 24952: min() noexcept { return -0x7fffffffL - 1; } 24952: 24952: static constexpr long 24952: max() noexcept { return 0x7fffffffL; } 24952: 24952: 24952: static constexpr long 24952: lowest() noexcept { return min(); } 24952: 24952: 24952: static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); 24952: static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: static constexpr bool is_signed = true; 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr long 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr long 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm 24952: = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr long 24952: infinity() noexcept { return static_cast(0); } 24952: 24952: static constexpr long 24952: quiet_NaN() noexcept { return static_cast(0); } 24952: 24952: static constexpr long 24952: signaling_NaN() noexcept { return static_cast(0); } 24952: 24952: static constexpr long 24952: denorm_min() noexcept { return static_cast(0); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = false; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style 24952: = round_toward_zero; 24952: }; 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr unsigned long 24952: min() noexcept { return 0; } 24952: 24952: static constexpr unsigned long 24952: max() noexcept { return 0x7fffffffL * 2UL + 1; } 24952: 24952: 24952: static constexpr unsigned long 24952: lowest() noexcept { return min(); } 24952: 24952: 24952: static constexpr int digits 24952: = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); 24952: static constexpr int digits10 24952: = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: static constexpr bool is_signed = false; 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr unsigned long 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr unsigned long 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm 24952: = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr unsigned long 24952: infinity() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned long 24952: quiet_NaN() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned long 24952: signaling_NaN() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned long 24952: denorm_min() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = true; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style 24952: = round_toward_zero; 24952: }; 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr long long 24952: min() noexcept { return -0x7fffffffffffffffLL - 1; } 24952: 24952: static constexpr long long 24952: max() noexcept { return 0x7fffffffffffffffLL; } 24952: 24952: 24952: static constexpr long long 24952: lowest() noexcept { return min(); } 24952: 24952: 24952: static constexpr int digits 24952: = (sizeof(long long) * 8 - ((long long)(-1) < 0)); 24952: static constexpr int digits10 24952: = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: static constexpr bool is_signed = true; 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr long long 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr long long 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm 24952: = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr long long 24952: infinity() noexcept { return static_cast(0); } 24952: 24952: static constexpr long long 24952: quiet_NaN() noexcept { return static_cast(0); } 24952: 24952: static constexpr long long 24952: signaling_NaN() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr long long 24952: denorm_min() noexcept { return static_cast(0); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = false; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style 24952: = round_toward_zero; 24952: }; 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr unsigned long long 24952: min() noexcept { return 0; } 24952: 24952: static constexpr unsigned long long 24952: max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } 24952: 24952: 24952: static constexpr unsigned long long 24952: lowest() noexcept { return min(); } 24952: 24952: 24952: static constexpr int digits 24952: = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); 24952: static constexpr int digits10 24952: = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); 24952: 24952: static constexpr int max_digits10 = 0; 24952: 24952: static constexpr bool is_signed = false; 24952: static constexpr bool is_integer = true; 24952: static constexpr bool is_exact = true; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr unsigned long long 24952: epsilon() noexcept { return 0; } 24952: 24952: static constexpr unsigned long long 24952: round_error() noexcept { return 0; } 24952: 24952: static constexpr int min_exponent = 0; 24952: static constexpr int min_exponent10 = 0; 24952: static constexpr int max_exponent = 0; 24952: static constexpr int max_exponent10 = 0; 24952: 24952: static constexpr bool has_infinity = false; 24952: static constexpr bool has_quiet_NaN = false; 24952: static constexpr bool has_signaling_NaN = false; 24952: static constexpr float_denorm_style has_denorm 24952: = denorm_absent; 24952: static constexpr bool has_denorm_loss = false; 24952: 24952: static constexpr unsigned long long 24952: infinity() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned long long 24952: quiet_NaN() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned long long 24952: signaling_NaN() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr unsigned long long 24952: denorm_min() noexcept 24952: { return static_cast(0); } 24952: 24952: static constexpr bool is_iec559 = false; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = true; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = false; 24952: static constexpr float_round_style round_style 24952: = round_toward_zero; 24952: }; 24952: # 1669 "/usr/include/c++/13/limits" 3 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr float 24952: min() noexcept { return 1.1754943508222875e-38F; } 24952: 24952: static constexpr float 24952: max() noexcept { return 3.4028234663852886e+38F; } 24952: 24952: 24952: static constexpr float 24952: lowest() noexcept { return -3.4028234663852886e+38F; } 24952: 24952: 24952: static constexpr int digits = 24; 24952: static constexpr int digits10 = 6; 24952: 24952: static constexpr int max_digits10 24952: = (2 + (24) * 643L / 2136); 24952: 24952: static constexpr bool is_signed = true; 24952: static constexpr bool is_integer = false; 24952: static constexpr bool is_exact = false; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr float 24952: epsilon() noexcept { return 1.1920928955078125e-7F; } 24952: 24952: static constexpr float 24952: round_error() noexcept { return 0.5F; } 24952: 24952: static constexpr int min_exponent = (-125); 24952: static constexpr int min_exponent10 = (-37); 24952: static constexpr int max_exponent = 128; 24952: static constexpr int max_exponent10 = 38; 24952: 24952: static constexpr bool has_infinity = 1; 24952: static constexpr bool has_quiet_NaN = 1; 24952: static constexpr bool has_signaling_NaN = has_quiet_NaN; 24952: static constexpr float_denorm_style has_denorm 24952: = bool(1) ? denorm_present : denorm_absent; 24952: static constexpr bool has_denorm_loss 24952: = false; 24952: 24952: static constexpr float 24952: infinity() noexcept { return __builtin_huge_valf(); } 24952: 24952: static constexpr float 24952: quiet_NaN() noexcept { return __builtin_nanf(""); } 24952: 24952: static constexpr float 24952: signaling_NaN() noexcept { return __builtin_nansf(""); } 24952: 24952: static constexpr float 24952: denorm_min() noexcept { return 1.4012984643248171e-45F; } 24952: 24952: static constexpr bool is_iec559 24952: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = false; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before 24952: = false; 24952: static constexpr float_round_style round_style 24952: = round_to_nearest; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr double 24952: min() noexcept { return double(2.2250738585072014e-308L); } 24952: 24952: static constexpr double 24952: max() noexcept { return double(1.7976931348623157e+308L); } 24952: 24952: 24952: static constexpr double 24952: lowest() noexcept { return -double(1.7976931348623157e+308L); } 24952: 24952: 24952: static constexpr int digits = 53; 24952: static constexpr int digits10 = 15; 24952: 24952: static constexpr int max_digits10 24952: = (2 + (53) * 643L / 2136); 24952: 24952: static constexpr bool is_signed = true; 24952: static constexpr bool is_integer = false; 24952: static constexpr bool is_exact = false; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr double 24952: epsilon() noexcept { return double(2.2204460492503131e-16L); } 24952: 24952: static constexpr double 24952: round_error() noexcept { return 0.5; } 24952: 24952: static constexpr int min_exponent = (-1021); 24952: static constexpr int min_exponent10 = (-307); 24952: static constexpr int max_exponent = 1024; 24952: static constexpr int max_exponent10 = 308; 24952: 24952: static constexpr bool has_infinity = 1; 24952: static constexpr bool has_quiet_NaN = 1; 24952: static constexpr bool has_signaling_NaN = has_quiet_NaN; 24952: static constexpr float_denorm_style has_denorm 24952: = bool(1) ? denorm_present : denorm_absent; 24952: static constexpr bool has_denorm_loss 24952: = false; 24952: 24952: static constexpr double 24952: infinity() noexcept { return __builtin_huge_val(); } 24952: 24952: static constexpr double 24952: quiet_NaN() noexcept { return __builtin_nan(""); } 24952: 24952: static constexpr double 24952: signaling_NaN() noexcept { return __builtin_nans(""); } 24952: 24952: static constexpr double 24952: denorm_min() noexcept { return double(4.9406564584124654e-324L); } 24952: 24952: static constexpr bool is_iec559 24952: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = false; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before 24952: = false; 24952: static constexpr float_round_style round_style 24952: = round_to_nearest; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template<> 24952: struct numeric_limits 24952: { 24952: static constexpr bool is_specialized = true; 24952: 24952: static constexpr long double 24952: min() noexcept { return 2.2250738585072014e-308L; } 24952: 24952: static constexpr long double 24952: max() noexcept { return 1.7976931348623157e+308L; } 24952: 24952: 24952: static constexpr long double 24952: lowest() noexcept { return -1.7976931348623157e+308L; } 24952: 24952: 24952: static constexpr int digits = 53; 24952: static constexpr int digits10 = 15; 24952: 24952: static constexpr int max_digits10 24952: = (2 + (53) * 643L / 2136); 24952: 24952: static constexpr bool is_signed = true; 24952: static constexpr bool is_integer = false; 24952: static constexpr bool is_exact = false; 24952: static constexpr int radix = 2; 24952: 24952: static constexpr long double 24952: epsilon() noexcept { return 2.2204460492503131e-16L; } 24952: 24952: static constexpr long double 24952: round_error() noexcept { return 0.5L; } 24952: 24952: static constexpr int min_exponent = (-1021); 24952: static constexpr int min_exponent10 = (-307); 24952: static constexpr int max_exponent = 1024; 24952: static constexpr int max_exponent10 = 308; 24952: 24952: static constexpr bool has_infinity = 1; 24952: static constexpr bool has_quiet_NaN = 1; 24952: static constexpr bool has_signaling_NaN = has_quiet_NaN; 24952: static constexpr float_denorm_style has_denorm 24952: = bool(1) ? denorm_present : denorm_absent; 24952: static constexpr bool has_denorm_loss 24952: = false; 24952: 24952: static constexpr long double 24952: infinity() noexcept { return __builtin_huge_vall(); } 24952: 24952: static constexpr long double 24952: quiet_NaN() noexcept { return __builtin_nanl(""); } 24952: 24952: static constexpr long double 24952: signaling_NaN() noexcept { return __builtin_nansl(""); } 24952: 24952: static constexpr long double 24952: denorm_min() noexcept { return 4.9406564584124654e-324L; } 24952: 24952: static constexpr bool is_iec559 24952: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 24952: static constexpr bool is_bounded = true; 24952: static constexpr bool is_modulo = false; 24952: 24952: static constexpr bool traps = false; 24952: static constexpr bool tinyness_before = 24952: false; 24952: static constexpr float_round_style round_style = 24952: round_to_nearest; 24952: }; 24952: # 2076 "/usr/include/c++/13/limits" 3 24952: 24952: } 24952: # 40 "/usr/include/c++/13/bits/chrono.h" 2 3 24952: # 1 "/usr/include/c++/13/ctime" 1 3 24952: # 39 "/usr/include/c++/13/ctime" 3 24952: 24952: # 40 "/usr/include/c++/13/ctime" 3 24952: # 58 "/usr/include/c++/13/ctime" 3 24952: namespace std 24952: { 24952: using ::clock_t; 24952: using ::time_t; 24952: using ::tm; 24952: 24952: using ::clock; 24952: using ::difftime; 24952: using ::mktime; 24952: using ::time; 24952: using ::asctime; 24952: using ::ctime; 24952: using ::gmtime; 24952: using ::localtime; 24952: using ::strftime; 24952: } 24952: 24952: 24952: 24952: namespace std 24952: { 24952: using ::timespec; 24952: using ::timespec_get; 24952: } 24952: # 41 "/usr/include/c++/13/bits/chrono.h" 2 3 24952: # 1 "/usr/include/c++/13/bits/parse_numbers.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/parse_numbers.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/parse_numbers.h" 3 24952: # 42 "/usr/include/c++/13/bits/parse_numbers.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: namespace __parse_int 24952: { 24952: template 24952: struct _Digit; 24952: 24952: template 24952: struct _Digit<_Base, '0'> : integral_constant 24952: { 24952: using __valid = true_type; 24952: }; 24952: 24952: template 24952: struct _Digit<_Base, '1'> : integral_constant 24952: { 24952: using __valid = true_type; 24952: }; 24952: 24952: template 24952: struct _Digit_impl : integral_constant 24952: { 24952: static_assert(_Base > _Val, "invalid digit"); 24952: using __valid = true_type; 24952: }; 24952: 24952: template 24952: struct _Digit<_Base, '2'> : _Digit_impl<_Base, 2> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, '3'> : _Digit_impl<_Base, 3> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, '4'> : _Digit_impl<_Base, 4> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, '5'> : _Digit_impl<_Base, 5> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, '6'> : _Digit_impl<_Base, 6> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, '7'> : _Digit_impl<_Base, 7> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, '8'> : _Digit_impl<_Base, 8> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, '9'> : _Digit_impl<_Base, 9> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, 'a'> : _Digit_impl<_Base, 0xa> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, 'A'> : _Digit_impl<_Base, 0xa> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, 'b'> : _Digit_impl<_Base, 0xb> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, 'B'> : _Digit_impl<_Base, 0xb> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, 'c'> : _Digit_impl<_Base, 0xc> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, 'C'> : _Digit_impl<_Base, 0xc> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, 'd'> : _Digit_impl<_Base, 0xd> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, 'D'> : _Digit_impl<_Base, 0xd> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, 'e'> : _Digit_impl<_Base, 0xe> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, 'E'> : _Digit_impl<_Base, 0xe> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, 'f'> : _Digit_impl<_Base, 0xf> 24952: { }; 24952: 24952: template 24952: struct _Digit<_Base, 'F'> : _Digit_impl<_Base, 0xf> 24952: { }; 24952: 24952: 24952: template 24952: struct _Digit<_Base, '\''> : integral_constant 24952: { 24952: using __valid = false_type; 24952: }; 24952: 24952: 24952: 24952: template 24952: using __ull_constant = integral_constant; 24952: 24952: template 24952: struct _Power_help 24952: { 24952: using __next = typename _Power_help<_Base, _Digs...>::type; 24952: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 24952: using type 24952: = __ull_constant<__next::value * (__valid_digit{} ? _Base : 1ULL)>; 24952: }; 24952: 24952: template 24952: struct _Power_help<_Base, _Dig> 24952: { 24952: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 24952: using type = __ull_constant<__valid_digit::value>; 24952: }; 24952: 24952: template 24952: struct _Power : _Power_help<_Base, _Digs...>::type 24952: { }; 24952: 24952: template 24952: struct _Power<_Base> : __ull_constant<0> 24952: { }; 24952: 24952: 24952: 24952: template 24952: struct _Number_help 24952: { 24952: using __digit = _Digit<_Base, _Dig>; 24952: using __valid_digit = typename __digit::__valid; 24952: using __next = _Number_help<_Base, 24952: __valid_digit::value ? _Pow / _Base : _Pow, 24952: _Digs...>; 24952: using type = __ull_constant<_Pow * __digit::value + __next::type::value>; 24952: static_assert((type::value / _Pow) == __digit::value, 24952: "integer literal does not fit in unsigned long long"); 24952: }; 24952: 24952: 24952: template 24952: struct _Number_help<_Base, _Pow, '\'', _Dig, _Digs...> 24952: : _Number_help<_Base, _Pow, _Dig, _Digs...> 24952: { }; 24952: 24952: 24952: template 24952: struct _Number_help<_Base, 1ULL, _Dig> 24952: { 24952: using type = __ull_constant<_Digit<_Base, _Dig>::value>; 24952: }; 24952: 24952: template 24952: struct _Number 24952: : _Number_help<_Base, _Power<_Base, _Digs...>::value, _Digs...>::type 24952: { }; 24952: 24952: template 24952: struct _Number<_Base> 24952: : __ull_constant<0> 24952: { }; 24952: 24952: 24952: 24952: template 24952: struct _Parse_int; 24952: 24952: template 24952: struct _Parse_int<'0', 'b', _Digs...> 24952: : _Number<2U, _Digs...>::type 24952: { }; 24952: 24952: template 24952: struct _Parse_int<'0', 'B', _Digs...> 24952: : _Number<2U, _Digs...>::type 24952: { }; 24952: 24952: template 24952: struct _Parse_int<'0', 'x', _Digs...> 24952: : _Number<16U, _Digs...>::type 24952: { }; 24952: 24952: template 24952: struct _Parse_int<'0', 'X', _Digs...> 24952: : _Number<16U, _Digs...>::type 24952: { }; 24952: 24952: template 24952: struct _Parse_int<'0', _Digs...> 24952: : _Number<8U, _Digs...>::type 24952: { }; 24952: 24952: template 24952: struct _Parse_int 24952: : _Number<10U, _Digs...>::type 24952: { }; 24952: 24952: } 24952: 24952: 24952: namespace __select_int 24952: { 24952: template 24952: struct _Select_int_base; 24952: 24952: template 24952: struct _Select_int_base<_Val, _IntType, _Ints...> 24952: : __conditional_t<(_Val <= __gnu_cxx::__int_traits<_IntType>::__max), 24952: integral_constant<_IntType, (_IntType)_Val>, 24952: _Select_int_base<_Val, _Ints...>> 24952: { }; 24952: 24952: template 24952: struct _Select_int_base<_Val> 24952: { }; 24952: 24952: template 24952: using _Select_int = typename _Select_int_base< 24952: __parse_int::_Parse_int<_Digs...>::value, 24952: unsigned char, 24952: unsigned short, 24952: unsigned int, 24952: unsigned long, 24952: unsigned long long 24952: >::type; 24952: 24952: } 24952: 24952: 24952: } 24952: # 42 "/usr/include/c++/13/bits/chrono.h" 2 3 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: namespace filesystem { struct __file_clock; }; 24952: 24952: 24952: namespace chrono 24952: { 24952: 24952: 24952: 24952: 24952: template> 24952: class duration; 24952: 24952: 24952: template 24952: class time_point; 24952: 24952: } 24952: # 77 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: struct __duration_common_type 24952: { }; 24952: 24952: template 24952: struct __duration_common_type<_CT, _Period1, _Period2, 24952: __void_t> 24952: { 24952: private: 24952: using __gcd_num = __static_gcd<_Period1::num, _Period2::num>; 24952: using __gcd_den = __static_gcd<_Period1::den, _Period2::den>; 24952: using __cr = typename _CT::type; 24952: using __r = ratio<__gcd_num::value, 24952: (_Period1::den / __gcd_den::value) * _Period2::den>; 24952: 24952: public: 24952: using type = chrono::duration<__cr, typename __r::type>; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct common_type, 24952: chrono::duration<_Rep2, _Period2>> 24952: : __duration_common_type, 24952: typename _Period1::type, 24952: typename _Period2::type> 24952: { }; 24952: 24952: 24952: template 24952: struct common_type, 24952: chrono::duration<_Rep, _Period>> 24952: { 24952: using type = chrono::duration::type, 24952: typename _Period::type>; 24952: }; 24952: 24952: 24952: template 24952: struct common_type> 24952: { 24952: using type = chrono::duration::type, 24952: typename _Period::type>; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __timepoint_common_type 24952: { }; 24952: 24952: template 24952: struct __timepoint_common_type<_CT, _Clock, __void_t> 24952: { 24952: using type = chrono::time_point<_Clock, typename _CT::type>; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct common_type, 24952: chrono::time_point<_Clock, _Duration2>> 24952: : __timepoint_common_type, _Clock> 24952: { }; 24952: 24952: 24952: template 24952: struct common_type, 24952: chrono::time_point<_Clock, _Duration>> 24952: { using type = chrono::time_point<_Clock, _Duration>; }; 24952: 24952: 24952: template 24952: struct common_type> 24952: { using type = chrono::time_point<_Clock, _Duration>; }; 24952: 24952: 24952: 24952: 24952: namespace chrono 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct __duration_cast_impl 24952: { 24952: template 24952: static constexpr _ToDur 24952: __cast(const duration<_Rep, _Period>& __d) 24952: { 24952: typedef typename _ToDur::rep __to_rep; 24952: return _ToDur(static_cast<__to_rep>(static_cast<_CR>(__d.count()) 24952: * static_cast<_CR>(_CF::num) 24952: / static_cast<_CR>(_CF::den))); 24952: } 24952: }; 24952: 24952: template 24952: struct __duration_cast_impl<_ToDur, _CF, _CR, true, true> 24952: { 24952: template 24952: static constexpr _ToDur 24952: __cast(const duration<_Rep, _Period>& __d) 24952: { 24952: typedef typename _ToDur::rep __to_rep; 24952: return _ToDur(static_cast<__to_rep>(__d.count())); 24952: } 24952: }; 24952: 24952: template 24952: struct __duration_cast_impl<_ToDur, _CF, _CR, true, false> 24952: { 24952: template 24952: static constexpr _ToDur 24952: __cast(const duration<_Rep, _Period>& __d) 24952: { 24952: typedef typename _ToDur::rep __to_rep; 24952: return _ToDur(static_cast<__to_rep>( 24952: static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den))); 24952: } 24952: }; 24952: 24952: template 24952: struct __duration_cast_impl<_ToDur, _CF, _CR, false, true> 24952: { 24952: template 24952: static constexpr _ToDur 24952: __cast(const duration<_Rep, _Period>& __d) 24952: { 24952: typedef typename _ToDur::rep __to_rep; 24952: return _ToDur(static_cast<__to_rep>( 24952: static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); 24952: } 24952: }; 24952: 24952: template 24952: struct __is_duration 24952: : std::false_type 24952: { }; 24952: 24952: template 24952: struct __is_duration> 24952: : std::true_type 24952: { }; 24952: 24952: template 24952: using __enable_if_is_duration 24952: = typename enable_if<__is_duration<_Tp>::value, _Tp>::type; 24952: 24952: template 24952: using __disable_if_is_duration 24952: = typename enable_if::value, _Tp>::type; 24952: 24952: 24952: template 24952: inline constexpr bool __is_duration_v = false; 24952: template 24952: inline constexpr bool __is_duration_v> = true; 24952: template 24952: inline constexpr bool __is_time_point_v = false; 24952: template 24952: inline constexpr bool __is_time_point_v> = true; 24952: # 270 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: [[__nodiscard__]] 24952: constexpr __enable_if_is_duration<_ToDur> 24952: duration_cast(const duration<_Rep, _Period>& __d) 24952: { 24952: 24952: if constexpr (is_same_v<_ToDur, duration<_Rep, _Period>>) 24952: return __d; 24952: else 24952: { 24952: 24952: using __to_period = typename _ToDur::period; 24952: using __to_rep = typename _ToDur::rep; 24952: using __cf = ratio_divide<_Period, __to_period>; 24952: using __cr = typename common_type<__to_rep, _Rep, intmax_t>::type; 24952: using __dc = __duration_cast_impl<_ToDur, __cf, __cr, 24952: __cf::num == 1, __cf::den == 1>; 24952: return __dc::__cast(__d); 24952: 24952: } 24952: 24952: } 24952: # 304 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: struct treat_as_floating_point 24952: : is_floating_point<_Rep> 24952: { }; 24952: 24952: 24952: template 24952: inline constexpr bool treat_as_floating_point_v = 24952: treat_as_floating_point<_Rep>::value; 24952: 24952: template<> 24952: inline constexpr bool treat_as_floating_point_v = false; 24952: template<> 24952: inline constexpr bool treat_as_floating_point_v = false; 24952: template<> 24952: inline constexpr bool treat_as_floating_point_v = false; 24952: template<> 24952: inline constexpr bool treat_as_floating_point_v = true; 24952: template<> 24952: inline constexpr bool treat_as_floating_point_v = true; 24952: template<> 24952: inline constexpr bool treat_as_floating_point_v = true; 24952: # 386 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 24952: floor(const duration<_Rep, _Period>& __d) 24952: { 24952: auto __to = chrono::duration_cast<_ToDur>(__d); 24952: if (__to > __d) 24952: return __to - _ToDur{1}; 24952: return __to; 24952: } 24952: # 406 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 24952: ceil(const duration<_Rep, _Period>& __d) 24952: { 24952: auto __to = chrono::duration_cast<_ToDur>(__d); 24952: if (__to < __d) 24952: return __to + _ToDur{1}; 24952: return __to; 24952: } 24952: # 427 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: [[nodiscard]] constexpr 24952: enable_if_t< 24952: __and_<__is_duration<_ToDur>, 24952: __not_>>::value, 24952: _ToDur> 24952: round(const duration<_Rep, _Period>& __d) 24952: { 24952: _ToDur __t0 = chrono::floor<_ToDur>(__d); 24952: _ToDur __t1 = __t0 + _ToDur{1}; 24952: auto __diff0 = __d - __t0; 24952: auto __diff1 = __t1 - __d; 24952: if (__diff0 == __diff1) 24952: { 24952: if (__t0.count() & 1) 24952: return __t1; 24952: return __t0; 24952: } 24952: else if (__diff0 < __diff1) 24952: return __t0; 24952: return __t1; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: [[nodiscard]] constexpr 24952: enable_if_t::is_signed, duration<_Rep, _Period>> 24952: abs(duration<_Rep, _Period> __d) 24952: { 24952: if (__d >= __d.zero()) 24952: return __d; 24952: return -__d; 24952: } 24952: 24952: 24952: namespace __detail { using chrono::ceil; } 24952: # 494 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: struct duration_values 24952: { 24952: static constexpr _Rep 24952: zero() noexcept 24952: { return _Rep(0); } 24952: 24952: static constexpr _Rep 24952: max() noexcept 24952: { return numeric_limits<_Rep>::max(); } 24952: 24952: static constexpr _Rep 24952: min() noexcept 24952: { return numeric_limits<_Rep>::lowest(); } 24952: }; 24952: 24952: template 24952: class duration 24952: { 24952: static_assert(!__is_duration<_Rep>::value, 24952: "rep cannot be a std::chrono::duration"); 24952: static_assert(__is_ratio<_Period>::value, 24952: "period must be a specialization of std::ratio"); 24952: static_assert(_Period::num > 0, "period must be positive"); 24952: 24952: template 24952: using __is_float = treat_as_floating_point<_Rep2>; 24952: 24952: static constexpr intmax_t 24952: _S_gcd(intmax_t __m, intmax_t __n) noexcept 24952: { 24952: 24952: 24952: 24952: do 24952: { 24952: intmax_t __rem = __m % __n; 24952: __m = __n; 24952: __n = __rem; 24952: } 24952: while (__n != 0); 24952: return __m; 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: using __divide = ratio<(_R1::num / __gcd1) * (_R2::den / __gcd2), 24952: (_R1::den / __gcd2) * (_R2::num / __gcd1)>; 24952: 24952: 24952: template 24952: using __is_harmonic 24952: = __bool_constant<__divide<_Period2, _Period>::den == 1>; 24952: 24952: public: 24952: 24952: using rep = _Rep; 24952: using period = typename _Period::type; 24952: 24952: 24952: constexpr duration() = default; 24952: 24952: duration(const duration&) = default; 24952: 24952: 24952: 24952: template, 24952: __or_<__is_float, __not_<__is_float<_Rep2>>>>> 24952: constexpr explicit duration(const _Rep2& __rep) 24952: : __r(static_cast(__rep)) { } 24952: 24952: template, 24952: __or_<__is_float, 24952: __and_<__is_harmonic<_Period2>, 24952: __not_<__is_float<_Rep2>>>>>> 24952: constexpr duration(const duration<_Rep2, _Period2>& __d) 24952: : __r(duration_cast(__d).count()) { } 24952: 24952: ~duration() = default; 24952: duration& operator=(const duration&) = default; 24952: 24952: 24952: constexpr rep 24952: count() const 24952: { return __r; } 24952: 24952: 24952: 24952: constexpr duration::type, period> 24952: operator+() const 24952: { return duration::type, period>(__r); } 24952: 24952: constexpr duration::type, period> 24952: operator-() const 24952: { return duration::type, period>(-__r); } 24952: 24952: constexpr duration& 24952: operator++() 24952: { 24952: ++__r; 24952: return *this; 24952: } 24952: 24952: constexpr duration 24952: operator++(int) 24952: { return duration(__r++); } 24952: 24952: constexpr duration& 24952: operator--() 24952: { 24952: --__r; 24952: return *this; 24952: } 24952: 24952: constexpr duration 24952: operator--(int) 24952: { return duration(__r--); } 24952: 24952: constexpr duration& 24952: operator+=(const duration& __d) 24952: { 24952: __r += __d.count(); 24952: return *this; 24952: } 24952: 24952: constexpr duration& 24952: operator-=(const duration& __d) 24952: { 24952: __r -= __d.count(); 24952: return *this; 24952: } 24952: 24952: constexpr duration& 24952: operator*=(const rep& __rhs) 24952: { 24952: __r *= __rhs; 24952: return *this; 24952: } 24952: 24952: constexpr duration& 24952: operator/=(const rep& __rhs) 24952: { 24952: __r /= __rhs; 24952: return *this; 24952: } 24952: 24952: 24952: template 24952: constexpr 24952: __enable_if_t::value, duration&> 24952: operator%=(const rep& __rhs) 24952: { 24952: __r %= __rhs; 24952: return *this; 24952: } 24952: 24952: template 24952: constexpr 24952: __enable_if_t::value, duration&> 24952: operator%=(const duration& __d) 24952: { 24952: __r %= __d.count(); 24952: return *this; 24952: } 24952: 24952: 24952: static constexpr duration 24952: zero() noexcept 24952: { return duration(duration_values::zero()); } 24952: 24952: static constexpr duration 24952: min() noexcept 24952: { return duration(duration_values::min()); } 24952: 24952: static constexpr duration 24952: max() noexcept 24952: { return duration(duration_values::max()); } 24952: 24952: private: 24952: rep __r; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: constexpr typename common_type, 24952: duration<_Rep2, _Period2>>::type 24952: operator+(const duration<_Rep1, _Period1>& __lhs, 24952: const duration<_Rep2, _Period2>& __rhs) 24952: { 24952: typedef duration<_Rep1, _Period1> __dur1; 24952: typedef duration<_Rep2, _Period2> __dur2; 24952: typedef typename common_type<__dur1,__dur2>::type __cd; 24952: return __cd(__cd(__lhs).count() + __cd(__rhs).count()); 24952: } 24952: 24952: 24952: template 24952: constexpr typename common_type, 24952: duration<_Rep2, _Period2>>::type 24952: operator-(const duration<_Rep1, _Period1>& __lhs, 24952: const duration<_Rep2, _Period2>& __rhs) 24952: { 24952: typedef duration<_Rep1, _Period1> __dur1; 24952: typedef duration<_Rep2, _Period2> __dur2; 24952: typedef typename common_type<__dur1,__dur2>::type __cd; 24952: return __cd(__cd(__lhs).count() - __cd(__rhs).count()); 24952: } 24952: # 727 "/usr/include/c++/13/bits/chrono.h" 3 24952: template::type> 24952: using __common_rep_t = typename 24952: enable_if::value, _CRep>::type; 24952: # 739 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: constexpr duration<__common_rep_t<_Rep1, _Rep2>, _Period> 24952: operator*(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 24952: { 24952: typedef duration::type, _Period> 24952: __cd; 24952: return __cd(__cd(__d).count() * __s); 24952: } 24952: 24952: template 24952: constexpr duration<__common_rep_t<_Rep2, _Rep1>, _Period> 24952: operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d) 24952: { return __d * __s; } 24952: 24952: template 24952: constexpr 24952: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 24952: operator/(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 24952: { 24952: typedef duration::type, _Period> 24952: __cd; 24952: return __cd(__cd(__d).count() / __s); 24952: } 24952: 24952: template 24952: constexpr typename common_type<_Rep1, _Rep2>::type 24952: operator/(const duration<_Rep1, _Period1>& __lhs, 24952: const duration<_Rep2, _Period2>& __rhs) 24952: { 24952: typedef duration<_Rep1, _Period1> __dur1; 24952: typedef duration<_Rep2, _Period2> __dur2; 24952: typedef typename common_type<__dur1,__dur2>::type __cd; 24952: return __cd(__lhs).count() / __cd(__rhs).count(); 24952: } 24952: 24952: 24952: template 24952: constexpr 24952: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 24952: operator%(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 24952: { 24952: typedef duration::type, _Period> 24952: __cd; 24952: return __cd(__cd(__d).count() % __s); 24952: } 24952: 24952: template 24952: constexpr typename common_type, 24952: duration<_Rep2, _Period2>>::type 24952: operator%(const duration<_Rep1, _Period1>& __lhs, 24952: const duration<_Rep2, _Period2>& __rhs) 24952: { 24952: typedef duration<_Rep1, _Period1> __dur1; 24952: typedef duration<_Rep2, _Period2> __dur2; 24952: typedef typename common_type<__dur1,__dur2>::type __cd; 24952: return __cd(__cd(__lhs).count() % __cd(__rhs).count()); 24952: } 24952: # 807 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: constexpr bool 24952: operator==(const duration<_Rep1, _Period1>& __lhs, 24952: const duration<_Rep2, _Period2>& __rhs) 24952: { 24952: typedef duration<_Rep1, _Period1> __dur1; 24952: typedef duration<_Rep2, _Period2> __dur2; 24952: typedef typename common_type<__dur1,__dur2>::type __ct; 24952: return __ct(__lhs).count() == __ct(__rhs).count(); 24952: } 24952: 24952: template 24952: constexpr bool 24952: operator<(const duration<_Rep1, _Period1>& __lhs, 24952: const duration<_Rep2, _Period2>& __rhs) 24952: { 24952: typedef duration<_Rep1, _Period1> __dur1; 24952: typedef duration<_Rep2, _Period2> __dur2; 24952: typedef typename common_type<__dur1,__dur2>::type __ct; 24952: return __ct(__lhs).count() < __ct(__rhs).count(); 24952: } 24952: # 844 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: constexpr bool 24952: operator!=(const duration<_Rep1, _Period1>& __lhs, 24952: const duration<_Rep2, _Period2>& __rhs) 24952: { return !(__lhs == __rhs); } 24952: 24952: 24952: template 24952: constexpr bool 24952: operator<=(const duration<_Rep1, _Period1>& __lhs, 24952: const duration<_Rep2, _Period2>& __rhs) 24952: { return !(__rhs < __lhs); } 24952: 24952: template 24952: constexpr bool 24952: operator>(const duration<_Rep1, _Period1>& __lhs, 24952: const duration<_Rep2, _Period2>& __rhs) 24952: { return __rhs < __lhs; } 24952: 24952: template 24952: constexpr bool 24952: operator>=(const duration<_Rep1, _Period1>& __lhs, 24952: const duration<_Rep2, _Period2>& __rhs) 24952: { return !(__lhs < __rhs); } 24952: # 888 "/usr/include/c++/13/bits/chrono.h" 3 24952: using nanoseconds = duration; 24952: 24952: 24952: using microseconds = duration; 24952: 24952: 24952: using milliseconds = duration; 24952: 24952: 24952: using seconds = duration; 24952: 24952: 24952: using minutes = duration>; 24952: 24952: 24952: using hours = duration>; 24952: # 921 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: class time_point 24952: { 24952: static_assert(__is_duration<_Dur>::value, 24952: "duration must be a specialization of std::chrono::duration"); 24952: 24952: public: 24952: typedef _Clock clock; 24952: typedef _Dur duration; 24952: typedef typename duration::rep rep; 24952: typedef typename duration::period period; 24952: 24952: constexpr time_point() : __d(duration::zero()) 24952: { } 24952: 24952: constexpr explicit time_point(const duration& __dur) 24952: : __d(__dur) 24952: { } 24952: 24952: 24952: template>> 24952: constexpr time_point(const time_point& __t) 24952: : __d(__t.time_since_epoch()) 24952: { } 24952: 24952: 24952: constexpr duration 24952: time_since_epoch() const 24952: { return __d; } 24952: # 977 "/usr/include/c++/13/bits/chrono.h" 3 24952: constexpr time_point& 24952: operator+=(const duration& __dur) 24952: { 24952: __d += __dur; 24952: return *this; 24952: } 24952: 24952: constexpr time_point& 24952: operator-=(const duration& __dur) 24952: { 24952: __d -= __dur; 24952: return *this; 24952: } 24952: 24952: 24952: static constexpr time_point 24952: min() noexcept 24952: { return time_point(duration::min()); } 24952: 24952: static constexpr time_point 24952: max() noexcept 24952: { return time_point(duration::max()); } 24952: 24952: private: 24952: duration __d; 24952: }; 24952: # 1016 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: [[__nodiscard__]] constexpr 24952: __enable_if_t<__is_duration<_ToDur>::value, time_point<_Clock, _ToDur>> 24952: time_point_cast(const time_point<_Clock, _Dur>& __t) 24952: { 24952: typedef time_point<_Clock, _ToDur> __time_point; 24952: return __time_point(duration_cast<_ToDur>(__t.time_since_epoch())); 24952: } 24952: # 1038 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: [[nodiscard]] constexpr 24952: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 24952: floor(const time_point<_Clock, _Dur>& __tp) 24952: { 24952: return time_point<_Clock, _ToDur>{ 24952: chrono::floor<_ToDur>(__tp.time_since_epoch())}; 24952: } 24952: # 1059 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: [[nodiscard]] constexpr 24952: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 24952: ceil(const time_point<_Clock, _Dur>& __tp) 24952: { 24952: return time_point<_Clock, _ToDur>{ 24952: chrono::ceil<_ToDur>(__tp.time_since_epoch())}; 24952: } 24952: # 1081 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: [[nodiscard]] constexpr 24952: enable_if_t<__is_duration_v<_ToDur> 24952: && !treat_as_floating_point_v, 24952: time_point<_Clock, _ToDur>> 24952: round(const time_point<_Clock, _Dur>& __tp) 24952: { 24952: return time_point<_Clock, _ToDur>{ 24952: chrono::round<_ToDur>(__tp.time_since_epoch())}; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: constexpr time_point<_Clock, 24952: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 24952: operator+(const time_point<_Clock, _Dur1>& __lhs, 24952: const duration<_Rep2, _Period2>& __rhs) 24952: { 24952: typedef duration<_Rep2, _Period2> __dur2; 24952: typedef typename common_type<_Dur1,__dur2>::type __ct; 24952: typedef time_point<_Clock, __ct> __time_point; 24952: return __time_point(__lhs.time_since_epoch() + __rhs); 24952: } 24952: 24952: 24952: template 24952: constexpr time_point<_Clock, 24952: typename common_type, _Dur2>::type> 24952: operator+(const duration<_Rep1, _Period1>& __lhs, 24952: const time_point<_Clock, _Dur2>& __rhs) 24952: { 24952: typedef duration<_Rep1, _Period1> __dur1; 24952: typedef typename common_type<__dur1,_Dur2>::type __ct; 24952: typedef time_point<_Clock, __ct> __time_point; 24952: return __time_point(__rhs.time_since_epoch() + __lhs); 24952: } 24952: 24952: 24952: template 24952: constexpr time_point<_Clock, 24952: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 24952: operator-(const time_point<_Clock, _Dur1>& __lhs, 24952: const duration<_Rep2, _Period2>& __rhs) 24952: { 24952: typedef duration<_Rep2, _Period2> __dur2; 24952: typedef typename common_type<_Dur1,__dur2>::type __ct; 24952: typedef time_point<_Clock, __ct> __time_point; 24952: return __time_point(__lhs.time_since_epoch() -__rhs); 24952: } 24952: 24952: 24952: template 24952: constexpr typename common_type<_Dur1, _Dur2>::type 24952: operator-(const time_point<_Clock, _Dur1>& __lhs, 24952: const time_point<_Clock, _Dur2>& __rhs) 24952: { return __lhs.time_since_epoch() - __rhs.time_since_epoch(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: constexpr bool 24952: operator==(const time_point<_Clock, _Dur1>& __lhs, 24952: const time_point<_Clock, _Dur2>& __rhs) 24952: { return __lhs.time_since_epoch() == __rhs.time_since_epoch(); } 24952: # 1165 "/usr/include/c++/13/bits/chrono.h" 3 24952: template 24952: constexpr bool 24952: operator!=(const time_point<_Clock, _Dur1>& __lhs, 24952: const time_point<_Clock, _Dur2>& __rhs) 24952: { return !(__lhs == __rhs); } 24952: 24952: 24952: template 24952: constexpr bool 24952: operator<(const time_point<_Clock, _Dur1>& __lhs, 24952: const time_point<_Clock, _Dur2>& __rhs) 24952: { return __lhs.time_since_epoch() < __rhs.time_since_epoch(); } 24952: 24952: template 24952: constexpr bool 24952: operator<=(const time_point<_Clock, _Dur1>& __lhs, 24952: const time_point<_Clock, _Dur2>& __rhs) 24952: { return !(__rhs < __lhs); } 24952: 24952: template 24952: constexpr bool 24952: operator>(const time_point<_Clock, _Dur1>& __lhs, 24952: const time_point<_Clock, _Dur2>& __rhs) 24952: { return __rhs < __lhs; } 24952: 24952: template 24952: constexpr bool 24952: operator>=(const time_point<_Clock, _Dur1>& __lhs, 24952: const time_point<_Clock, _Dur2>& __rhs) 24952: { return !(__lhs < __rhs); } 24952: # 1217 "/usr/include/c++/13/bits/chrono.h" 3 24952: inline namespace _V2 { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct system_clock 24952: { 24952: typedef chrono::nanoseconds duration; 24952: typedef duration::rep rep; 24952: typedef duration::period period; 24952: typedef chrono::time_point time_point; 24952: 24952: static_assert(system_clock::duration::min() 24952: < system_clock::duration::zero(), 24952: "a clock's minimum duration cannot be less than its epoch"); 24952: 24952: static constexpr bool is_steady = false; 24952: 24952: static time_point 24952: now() noexcept; 24952: 24952: 24952: static std::time_t 24952: to_time_t(const time_point& __t) noexcept 24952: { 24952: return std::time_t(duration_cast 24952: (__t.time_since_epoch()).count()); 24952: } 24952: 24952: static time_point 24952: from_time_t(std::time_t __t) noexcept 24952: { 24952: typedef chrono::time_point __from; 24952: return time_point_cast 24952: (__from(chrono::seconds(__t))); 24952: } 24952: }; 24952: # 1265 "/usr/include/c++/13/bits/chrono.h" 3 24952: struct steady_clock 24952: { 24952: typedef chrono::nanoseconds duration; 24952: typedef duration::rep rep; 24952: typedef duration::period period; 24952: typedef chrono::time_point time_point; 24952: 24952: static constexpr bool is_steady = true; 24952: 24952: static time_point 24952: now() noexcept; 24952: }; 24952: # 1287 "/usr/include/c++/13/bits/chrono.h" 3 24952: using high_resolution_clock = system_clock; 24952: 24952: } 24952: # 1313 "/usr/include/c++/13/bits/chrono.h" 3 24952: } 24952: 24952: 24952: 24952: 24952: inline namespace literals 24952: { 24952: # 1344 "/usr/include/c++/13/bits/chrono.h" 3 24952: inline namespace chrono_literals 24952: { 24952: 24952: 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wliteral-suffix" 24952: 24952: template 24952: constexpr _Dur __check_overflow() 24952: { 24952: using _Val = __parse_int::_Parse_int<_Digits...>; 24952: constexpr typename _Dur::rep __repval = _Val::value; 24952: static_assert(__repval >= 0 && __repval == _Val::value, 24952: "literal value cannot be represented by duration type"); 24952: return _Dur(__repval); 24952: } 24952: 24952: 24952: 24952: constexpr chrono::duration> 24952: operator""h(long double __hours) 24952: { return chrono::duration>{__hours}; } 24952: 24952: 24952: template 24952: constexpr chrono::hours 24952: operator""h() 24952: { return __check_overflow(); } 24952: 24952: 24952: constexpr chrono::duration> 24952: operator""min(long double __mins) 24952: { return chrono::duration>{__mins}; } 24952: 24952: 24952: template 24952: constexpr chrono::minutes 24952: operator""min() 24952: { return __check_overflow(); } 24952: 24952: 24952: constexpr chrono::duration 24952: operator""s(long double __secs) 24952: { return chrono::duration{__secs}; } 24952: 24952: 24952: template 24952: constexpr chrono::seconds 24952: operator""s() 24952: { return __check_overflow(); } 24952: 24952: 24952: constexpr chrono::duration 24952: operator""ms(long double __msecs) 24952: { return chrono::duration{__msecs}; } 24952: 24952: 24952: template 24952: constexpr chrono::milliseconds 24952: operator""ms() 24952: { return __check_overflow(); } 24952: 24952: 24952: constexpr chrono::duration 24952: operator""us(long double __usecs) 24952: { return chrono::duration{__usecs}; } 24952: 24952: 24952: template 24952: constexpr chrono::microseconds 24952: operator""us() 24952: { return __check_overflow(); } 24952: 24952: 24952: constexpr chrono::duration 24952: operator""ns(long double __nsecs) 24952: { return chrono::duration{__nsecs}; } 24952: 24952: 24952: template 24952: constexpr chrono::nanoseconds 24952: operator""ns() 24952: { return __check_overflow(); } 24952: 24952: #pragma GCC diagnostic pop 24952: 24952: } 24952: } 24952: 24952: namespace chrono 24952: { 24952: using namespace literals::chrono_literals; 24952: } 24952: 24952: 24952: 24952: namespace filesystem 24952: { 24952: struct __file_clock 24952: { 24952: using duration = chrono::nanoseconds; 24952: using rep = duration::rep; 24952: using period = duration::period; 24952: using time_point = chrono::time_point<__file_clock>; 24952: static constexpr bool is_steady = false; 24952: 24952: static time_point 24952: now() noexcept 24952: { return _S_from_sys(chrono::system_clock::now()); } 24952: # 1470 "/usr/include/c++/13/bits/chrono.h" 3 24952: private: 24952: using __sys_clock = chrono::system_clock; 24952: 24952: 24952: 24952: 24952: static constexpr chrono::seconds _S_epoch_diff{6437664000}; 24952: 24952: protected: 24952: 24952: template 24952: static 24952: chrono::time_point<__file_clock, _Dur> 24952: _S_from_sys(const chrono::time_point<__sys_clock, _Dur>& __t) noexcept 24952: { 24952: using __file_time = chrono::time_point<__file_clock, _Dur>; 24952: return __file_time{__t.time_since_epoch()} - _S_epoch_diff; 24952: } 24952: 24952: 24952: template 24952: static 24952: chrono::time_point<__sys_clock, _Dur> 24952: _S_to_sys(const chrono::time_point<__file_clock, _Dur>& __t) noexcept 24952: { 24952: using __sys_time = chrono::time_point<__sys_clock, _Dur>; 24952: return __sys_time{__t.time_since_epoch()} + _S_epoch_diff; 24952: } 24952: }; 24952: } 24952: 24952: 24952: 24952: } 24952: # 37 "/usr/include/c++/13/bits/this_thread_sleep.h" 2 3 24952: 24952: 24952: # 1 "/usr/include/c++/13/cerrno" 1 3 24952: # 39 "/usr/include/c++/13/cerrno" 3 24952: 24952: # 40 "/usr/include/c++/13/cerrno" 3 24952: # 40 "/usr/include/c++/13/bits/this_thread_sleep.h" 2 3 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 56 "/usr/include/c++/13/bits/this_thread_sleep.h" 3 24952: namespace this_thread 24952: { 24952: # 66 "/usr/include/c++/13/bits/this_thread_sleep.h" 3 24952: template 24952: inline void 24952: sleep_for(const chrono::duration<_Rep, _Period>& __rtime) 24952: { 24952: if (__rtime <= __rtime.zero()) 24952: return; 24952: auto __s = chrono::duration_cast(__rtime); 24952: auto __ns = chrono::duration_cast(__rtime - __s); 24952: 24952: struct ::timespec __ts = 24952: { 24952: static_cast(__s.count()), 24952: static_cast(__ns.count()) 24952: }; 24952: while (::nanosleep(&__ts, &__ts) == -1 && (*__errno_location ()) == 4) 24952: { } 24952: 24952: 24952: 24952: } 24952: 24952: 24952: template 24952: inline void 24952: sleep_until(const chrono::time_point<_Clock, _Duration>& __atime) 24952: { 24952: 24952: 24952: 24952: auto __now = _Clock::now(); 24952: if (_Clock::is_steady) 24952: { 24952: if (__now < __atime) 24952: sleep_for(__atime - __now); 24952: return; 24952: } 24952: while (__now < __atime) 24952: { 24952: sleep_for(__atime - __now); 24952: __now = _Clock::now(); 24952: } 24952: } 24952: 24952: } 24952: 24952: 24952: 24952: 24952: } 24952: # 47 "/usr/include/c++/13/thread" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 70 "/usr/include/c++/13/thread" 3 24952: inline bool 24952: operator!=(thread::id __x, thread::id __y) noexcept 24952: { return !(__x == __y); } 24952: 24952: inline bool 24952: operator<(thread::id __x, thread::id __y) noexcept 24952: { 24952: 24952: 24952: return __x._M_thread < __y._M_thread; 24952: } 24952: 24952: inline bool 24952: operator<=(thread::id __x, thread::id __y) noexcept 24952: { return !(__y < __x); } 24952: 24952: inline bool 24952: operator>(thread::id __x, thread::id __y) noexcept 24952: { return __y < __x; } 24952: 24952: inline bool 24952: operator>=(thread::id __x, thread::id __y) noexcept 24952: { return !(__x < __y); } 24952: 24952: 24952: template 24952: inline basic_ostream<_CharT, _Traits>& 24952: operator<<(basic_ostream<_CharT, _Traits>& __out, thread::id __id) 24952: { 24952: if (__id == thread::id()) 24952: return __out << "thread::id of a non-executing thread"; 24952: else 24952: return __out << __id._M_thread; 24952: } 24952: # 283 "/usr/include/c++/13/thread" 3 24952: 24952: } 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/port_defs.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/port_defs.h" 24952: 24952: 24952: 24952: 24952: 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/port_defs.h" 24952: namespace rocksdb { 24952: 24952: namespace port { 24952: class CondVar; 24952: } 24952: 24952: enum class CpuPriority { 24952: kIdle = 0, 24952: kLow = 1, 24952: kNormal = 2, 24952: kHigh = 3, 24952: }; 24952: 24952: } 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 2 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 24952: namespace rocksdb { 24952: 24952: extern const bool kDefaultToAdaptiveMutex; 24952: 24952: namespace port { 24952: constexpr bool kLittleEndian = ( 24952: # 91 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 3 4 24952: 1234 24952: # 91 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 24952: == 24952: # 91 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 3 4 24952: 1234 24952: # 91 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 24952: ); 24952: 24952: 24952: class CondVar; 24952: 24952: class Mutex { 24952: public: 24952: static const char* kName() { return "pthread_mutex_t"; } 24952: 24952: explicit Mutex(bool adaptive = kDefaultToAdaptiveMutex); 24952: 24952: Mutex(const Mutex&) = delete; 24952: void operator=(const Mutex&) = delete; 24952: 24952: ~Mutex(); 24952: 24952: void Lock(); 24952: void Unlock(); 24952: 24952: bool TryLock(); 24952: 24952: 24952: 24952: void AssertHeld() const; 24952: 24952: 24952: inline void lock() { Lock(); } 24952: inline void unlock() { Unlock(); } 24952: inline bool try_lock() { return TryLock(); } 24952: 24952: private: 24952: friend class CondVar; 24952: pthread_mutex_t mu_; 24952: 24952: bool locked_ = false; 24952: 24952: }; 24952: 24952: class RWMutex { 24952: public: 24952: RWMutex(); 24952: 24952: RWMutex(const RWMutex&) = delete; 24952: void operator=(const RWMutex&) = delete; 24952: 24952: ~RWMutex(); 24952: 24952: void ReadLock(); 24952: void WriteLock(); 24952: void ReadUnlock(); 24952: void WriteUnlock(); 24952: void AssertHeld() const {} 24952: 24952: private: 24952: pthread_rwlock_t mu_; 24952: }; 24952: 24952: class CondVar { 24952: public: 24952: explicit CondVar(Mutex* mu); 24952: ~CondVar(); 24952: 24952: Mutex* GetMutex() const { return mu_; } 24952: 24952: void Wait(); 24952: 24952: bool TimedWait(uint64_t abs_time_us); 24952: void Signal(); 24952: void SignalAll(); 24952: 24952: private: 24952: pthread_cond_t cv_; 24952: Mutex* mu_; 24952: }; 24952: 24952: using Thread = std::thread; 24952: 24952: static inline void AsmVolatilePause() { 24952: # 179 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 24952: } 24952: 24952: 24952: extern int PhysicalCoreID(); 24952: 24952: using OnceType = pthread_once_t; 24952: 24952: extern void InitOnce(OnceType* once, void (*initializer)()); 24952: # 211 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 24952: static_assert((64U & (64U - 1)) == 0, 24952: "Cache line size must be a power of 2 number of bytes"); 24952: 24952: extern void* cacheline_aligned_alloc(size_t size); 24952: 24952: extern void cacheline_aligned_free(void* memblock); 24952: # 229 "/build/reproducible-path/rocksdb-8.9.1/port/port_posix.h" 24952: extern void Crash(const std::string& srcfile, int srcline); 24952: 24952: extern int GetMaxOpenFiles(); 24952: 24952: extern const size_t kPageSize; 24952: 24952: using ThreadId = pid_t; 24952: 24952: extern void SetCpuPriority(ThreadId id, CpuPriority priority); 24952: 24952: int64_t GetProcessID(); 24952: 24952: 24952: 24952: bool GenerateRfcUuid(std::string* output); 24952: 24952: } 24952: } 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/port/port.h" 2 24952: # 23 "/build/reproducible-path/rocksdb-8.9.1/util/coding.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/coding_lean.h" 1 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/util/coding_lean.h" 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/cstring" 1 3 24952: # 39 "/usr/include/c++/13/cstring" 3 24952: 24952: # 40 "/usr/include/c++/13/cstring" 3 24952: # 16 "/build/reproducible-path/rocksdb-8.9.1/util/coding_lean.h" 2 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: inline void EncodeFixed16(char* buf, uint16_t value) { 24952: if (port::kLittleEndian) { 24952: memcpy(buf, &value, sizeof(value)); 24952: } else { 24952: buf[0] = value & 0xff; 24952: buf[1] = (value >> 8) & 0xff; 24952: } 24952: } 24952: 24952: inline void EncodeFixed32(char* buf, uint32_t value) { 24952: if (port::kLittleEndian) { 24952: memcpy(buf, &value, sizeof(value)); 24952: } else { 24952: buf[0] = value & 0xff; 24952: buf[1] = (value >> 8) & 0xff; 24952: buf[2] = (value >> 16) & 0xff; 24952: buf[3] = (value >> 24) & 0xff; 24952: } 24952: } 24952: 24952: inline void EncodeFixed64(char* buf, uint64_t value) { 24952: if (port::kLittleEndian) { 24952: memcpy(buf, &value, sizeof(value)); 24952: } else { 24952: buf[0] = value & 0xff; 24952: buf[1] = (value >> 8) & 0xff; 24952: buf[2] = (value >> 16) & 0xff; 24952: buf[3] = (value >> 24) & 0xff; 24952: buf[4] = (value >> 32) & 0xff; 24952: buf[5] = (value >> 40) & 0xff; 24952: buf[6] = (value >> 48) & 0xff; 24952: buf[7] = (value >> 56) & 0xff; 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: inline uint16_t DecodeFixed16(const char* ptr) { 24952: if (port::kLittleEndian) { 24952: 24952: uint16_t result; 24952: memcpy(&result, ptr, sizeof(result)); 24952: return result; 24952: } else { 24952: return ((static_cast(static_cast(ptr[0]))) | 24952: (static_cast(static_cast(ptr[1])) << 8)); 24952: } 24952: } 24952: 24952: inline uint32_t DecodeFixed32(const char* ptr) { 24952: if (port::kLittleEndian) { 24952: 24952: uint32_t result; 24952: memcpy(&result, ptr, sizeof(result)); 24952: return result; 24952: } else { 24952: return ((static_cast(static_cast(ptr[0]))) | 24952: (static_cast(static_cast(ptr[1])) << 8) | 24952: (static_cast(static_cast(ptr[2])) << 16) | 24952: (static_cast(static_cast(ptr[3])) << 24)); 24952: } 24952: } 24952: 24952: inline uint64_t DecodeFixed64(const char* ptr) { 24952: if (port::kLittleEndian) { 24952: 24952: uint64_t result; 24952: memcpy(&result, ptr, sizeof(result)); 24952: return result; 24952: } else { 24952: uint64_t lo = DecodeFixed32(ptr); 24952: uint64_t hi = DecodeFixed32(ptr + 4); 24952: return (hi << 32) | lo; 24952: } 24952: } 24952: 24952: } 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/util/coding.h" 2 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: const uint32_t kMaxVarint64Length = 10; 24952: 24952: 24952: extern void PutFixed16(std::string* dst, uint16_t value); 24952: extern void PutFixed32(std::string* dst, uint32_t value); 24952: extern void PutFixed64(std::string* dst, uint64_t value); 24952: extern void PutVarint32(std::string* dst, uint32_t value); 24952: extern void PutVarint32Varint32(std::string* dst, uint32_t value1, 24952: uint32_t value2); 24952: extern void PutVarint32Varint32Varint32(std::string* dst, uint32_t value1, 24952: uint32_t value2, uint32_t value3); 24952: extern void PutVarint64(std::string* dst, uint64_t value); 24952: extern void PutVarint64Varint64(std::string* dst, uint64_t value1, 24952: uint64_t value2); 24952: extern void PutVarint32Varint64(std::string* dst, uint32_t value1, 24952: uint64_t value2); 24952: extern void PutVarint32Varint32Varint64(std::string* dst, uint32_t value1, 24952: uint32_t value2, uint64_t value3); 24952: extern void PutLengthPrefixedSlice(std::string* dst, const Slice& value); 24952: extern void PutLengthPrefixedSliceParts(std::string* dst, 24952: const SliceParts& slice_parts); 24952: extern void PutLengthPrefixedSlicePartsWithPadding( 24952: std::string* dst, const SliceParts& slice_parts, size_t pad_sz); 24952: 24952: 24952: 24952: extern bool GetFixed64(Slice* input, uint64_t* value); 24952: extern bool GetFixed32(Slice* input, uint32_t* value); 24952: extern bool GetFixed16(Slice* input, uint16_t* value); 24952: extern bool GetVarint32(Slice* input, uint32_t* value); 24952: extern bool GetVarint64(Slice* input, uint64_t* value); 24952: extern bool GetVarsignedint64(Slice* input, int64_t* value); 24952: extern bool GetLengthPrefixedSlice(Slice* input, Slice* result); 24952: 24952: extern Slice GetLengthPrefixedSlice(const char* data); 24952: 24952: extern Slice GetSliceUntil(Slice* slice, char delimiter); 24952: 24952: 24952: 24952: constexpr inline uint64_t i64ToZigzag(const int64_t l) { 24952: return (static_cast(l) << 1) ^ static_cast(l >> 63); 24952: } 24952: inline int64_t zigzagToI64(uint64_t n) { 24952: return (n >> 1) ^ -static_cast(n & 1); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: extern const char* GetVarint32Ptr(const char* p, const char* limit, 24952: uint32_t* v); 24952: extern const char* GetVarint64Ptr(const char* p, const char* limit, 24952: uint64_t* v); 24952: inline const char* GetVarsignedint64Ptr(const char* p, const char* limit, 24952: int64_t* value) { 24952: uint64_t u = 0; 24952: const char* ret = GetVarint64Ptr(p, limit, &u); 24952: *value = zigzagToI64(u); 24952: return ret; 24952: } 24952: 24952: 24952: extern int VarintLength(uint64_t v); 24952: 24952: 24952: 24952: 24952: extern char* EncodeVarint32(char* dst, uint32_t value); 24952: extern char* EncodeVarint64(char* dst, uint64_t value); 24952: 24952: 24952: extern const char* GetVarint32PtrFallback(const char* p, const char* limit, 24952: uint32_t* value); 24952: inline const char* GetVarint32Ptr(const char* p, const char* limit, 24952: uint32_t* value) { 24952: if (p < limit) { 24952: uint32_t result = *(reinterpret_cast(p)); 24952: if ((result & 128) == 0) { 24952: *value = result; 24952: return p + 1; 24952: } 24952: } 24952: return GetVarint32PtrFallback(p, limit, value); 24952: } 24952: 24952: 24952: inline void PutFixed16(std::string* dst, uint16_t value) { 24952: if (port::kLittleEndian) { 24952: dst->append(const_cast(reinterpret_cast(&value)), 24952: sizeof(value)); 24952: } else { 24952: char buf[sizeof(value)]; 24952: EncodeFixed16(buf, value); 24952: dst->append(buf, sizeof(buf)); 24952: } 24952: } 24952: 24952: inline void PutFixed32(std::string* dst, uint32_t value) { 24952: if (port::kLittleEndian) { 24952: dst->append(const_cast(reinterpret_cast(&value)), 24952: sizeof(value)); 24952: } else { 24952: char buf[sizeof(value)]; 24952: EncodeFixed32(buf, value); 24952: dst->append(buf, sizeof(buf)); 24952: } 24952: } 24952: 24952: inline void PutFixed64(std::string* dst, uint64_t value) { 24952: if (port::kLittleEndian) { 24952: dst->append(const_cast(reinterpret_cast(&value)), 24952: sizeof(value)); 24952: } else { 24952: char buf[sizeof(value)]; 24952: EncodeFixed64(buf, value); 24952: dst->append(buf, sizeof(buf)); 24952: } 24952: } 24952: 24952: inline void PutVarint32(std::string* dst, uint32_t v) { 24952: char buf[5]; 24952: char* ptr = EncodeVarint32(buf, v); 24952: dst->append(buf, static_cast(ptr - buf)); 24952: } 24952: 24952: inline void PutVarint32Varint32(std::string* dst, uint32_t v1, uint32_t v2) { 24952: char buf[10]; 24952: char* ptr = EncodeVarint32(buf, v1); 24952: ptr = EncodeVarint32(ptr, v2); 24952: dst->append(buf, static_cast(ptr - buf)); 24952: } 24952: 24952: inline void PutVarint32Varint32Varint32(std::string* dst, uint32_t v1, 24952: uint32_t v2, uint32_t v3) { 24952: char buf[15]; 24952: char* ptr = EncodeVarint32(buf, v1); 24952: ptr = EncodeVarint32(ptr, v2); 24952: ptr = EncodeVarint32(ptr, v3); 24952: dst->append(buf, static_cast(ptr - buf)); 24952: } 24952: 24952: inline char* EncodeVarint64(char* dst, uint64_t v) { 24952: static const unsigned int B = 128; 24952: unsigned char* ptr = reinterpret_cast(dst); 24952: while (v >= B) { 24952: *(ptr++) = (v & (B - 1)) | B; 24952: v >>= 7; 24952: } 24952: *(ptr++) = static_cast(v); 24952: return reinterpret_cast(ptr); 24952: } 24952: 24952: inline void PutVarint64(std::string* dst, uint64_t v) { 24952: char buf[kMaxVarint64Length]; 24952: char* ptr = EncodeVarint64(buf, v); 24952: dst->append(buf, static_cast(ptr - buf)); 24952: } 24952: 24952: inline void PutVarsignedint64(std::string* dst, int64_t v) { 24952: char buf[kMaxVarint64Length]; 24952: 24952: char* ptr = EncodeVarint64(buf, i64ToZigzag(v)); 24952: dst->append(buf, static_cast(ptr - buf)); 24952: } 24952: 24952: inline void PutVarint64Varint64(std::string* dst, uint64_t v1, uint64_t v2) { 24952: char buf[20]; 24952: char* ptr = EncodeVarint64(buf, v1); 24952: ptr = EncodeVarint64(ptr, v2); 24952: dst->append(buf, static_cast(ptr - buf)); 24952: } 24952: 24952: inline void PutVarint32Varint64(std::string* dst, uint32_t v1, uint64_t v2) { 24952: char buf[15]; 24952: char* ptr = EncodeVarint32(buf, v1); 24952: ptr = EncodeVarint64(ptr, v2); 24952: dst->append(buf, static_cast(ptr - buf)); 24952: } 24952: 24952: inline void PutVarint32Varint32Varint64(std::string* dst, uint32_t v1, 24952: uint32_t v2, uint64_t v3) { 24952: char buf[20]; 24952: char* ptr = EncodeVarint32(buf, v1); 24952: ptr = EncodeVarint32(ptr, v2); 24952: ptr = EncodeVarint64(ptr, v3); 24952: dst->append(buf, static_cast(ptr - buf)); 24952: } 24952: 24952: inline void PutLengthPrefixedSlice(std::string* dst, const Slice& value) { 24952: PutVarint32(dst, static_cast(value.size())); 24952: dst->append(value.data(), value.size()); 24952: } 24952: 24952: inline void PutLengthPrefixedSliceParts(std::string* dst, size_t total_bytes, 24952: const SliceParts& slice_parts) { 24952: for (int i = 0; i < slice_parts.num_parts; ++i) { 24952: total_bytes += slice_parts.parts[i].size(); 24952: } 24952: PutVarint32(dst, static_cast(total_bytes)); 24952: for (int i = 0; i < slice_parts.num_parts; ++i) { 24952: dst->append(slice_parts.parts[i].data(), slice_parts.parts[i].size()); 24952: } 24952: } 24952: 24952: inline void PutLengthPrefixedSliceParts(std::string* dst, 24952: const SliceParts& slice_parts) { 24952: PutLengthPrefixedSliceParts(dst, 0, slice_parts); 24952: } 24952: 24952: inline void PutLengthPrefixedSlicePartsWithPadding( 24952: std::string* dst, const SliceParts& slice_parts, size_t pad_sz) { 24952: PutLengthPrefixedSliceParts(dst, pad_sz, slice_parts); 24952: dst->append(pad_sz, '\0'); 24952: } 24952: 24952: inline int VarintLength(uint64_t v) { 24952: int len = 1; 24952: while (v >= 128) { 24952: v >>= 7; 24952: len++; 24952: } 24952: return len; 24952: } 24952: 24952: inline bool GetFixed64(Slice* input, uint64_t* value) { 24952: if (input->size() < sizeof(uint64_t)) { 24952: return false; 24952: } 24952: *value = DecodeFixed64(input->data()); 24952: input->remove_prefix(sizeof(uint64_t)); 24952: return true; 24952: } 24952: 24952: inline bool GetFixed32(Slice* input, uint32_t* value) { 24952: if (input->size() < sizeof(uint32_t)) { 24952: return false; 24952: } 24952: *value = DecodeFixed32(input->data()); 24952: input->remove_prefix(sizeof(uint32_t)); 24952: return true; 24952: } 24952: 24952: inline bool GetFixed16(Slice* input, uint16_t* value) { 24952: if (input->size() < sizeof(uint16_t)) { 24952: return false; 24952: } 24952: *value = DecodeFixed16(input->data()); 24952: input->remove_prefix(sizeof(uint16_t)); 24952: return true; 24952: } 24952: 24952: inline bool GetVarint32(Slice* input, uint32_t* value) { 24952: const char* p = input->data(); 24952: const char* limit = p + input->size(); 24952: const char* q = GetVarint32Ptr(p, limit, value); 24952: if (q == nullptr) { 24952: return false; 24952: } else { 24952: *input = Slice(q, static_cast(limit - q)); 24952: return true; 24952: } 24952: } 24952: 24952: inline bool GetVarint64(Slice* input, uint64_t* value) { 24952: const char* p = input->data(); 24952: const char* limit = p + input->size(); 24952: const char* q = GetVarint64Ptr(p, limit, value); 24952: if (q == nullptr) { 24952: return false; 24952: } else { 24952: *input = Slice(q, static_cast(limit - q)); 24952: return true; 24952: } 24952: } 24952: 24952: inline bool GetVarsignedint64(Slice* input, int64_t* value) { 24952: const char* p = input->data(); 24952: const char* limit = p + input->size(); 24952: const char* q = GetVarsignedint64Ptr(p, limit, value); 24952: if (q == nullptr) { 24952: return false; 24952: } else { 24952: *input = Slice(q, static_cast(limit - q)); 24952: return true; 24952: } 24952: } 24952: 24952: inline bool GetLengthPrefixedSlice(Slice* input, Slice* result) { 24952: uint32_t len = 0; 24952: if (GetVarint32(input, &len) && input->size() >= len) { 24952: *result = Slice(input->data(), len); 24952: input->remove_prefix(len); 24952: return true; 24952: } else { 24952: return false; 24952: } 24952: } 24952: 24952: inline Slice GetLengthPrefixedSlice(const char* data) { 24952: uint32_t len = 0; 24952: 24952: 24952: auto p = GetVarint32Ptr(data, data + 5 , &len); 24952: return Slice(p, len); 24952: } 24952: 24952: inline Slice GetSliceUntil(Slice* slice, char delimiter) { 24952: uint32_t len = 0; 24952: for (len = 0; len < slice->size() && slice->data()[len] != delimiter; ++len) { 24952: 24952: } 24952: 24952: Slice ret(slice->data(), len); 24952: slice->remove_prefix(len + ((len < slice->size()) ? 1 : 0)); 24952: return ret; 24952: } 24952: 24952: template 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline void 24952: PutUnaligned(T* memory, const T& value) { 24952: 24952: 24952: 24952: 24952: *memory = value; 24952: 24952: } 24952: 24952: template 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline void 24952: GetUnaligned(const T* memory, T* value) { 24952: 24952: 24952: 24952: 24952: *value = *memory; 24952: 24952: } 24952: 24952: } 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/user_comparator_wrapper.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/util/user_comparator_wrapper.h" 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_context_imp.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_step_timer.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_level_imp.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_level.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: enum PerfLevel : unsigned char { 24952: kUninitialized = 0, 24952: kDisable = 1, 24952: kEnableCount = 2, 24952: kEnableTimeExceptForMutex = 3, 24952: 24952: 24952: 24952: kEnableTimeAndCPUTimeExceptForMutex = 4, 24952: kEnableTime = 5, 24952: kOutOfBounds = 6 24952: }; 24952: 24952: 24952: void SetPerfLevel(PerfLevel level); 24952: 24952: 24952: PerfLevel GetPerfLevel(); 24952: 24952: } 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_level_imp.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: extern thread_local PerfLevel perf_level; 24952: 24952: } 24952: # 8 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_step_timer.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/map" 1 3 24952: # 58 "/usr/include/c++/13/map" 3 24952: 24952: # 59 "/usr/include/c++/13/map" 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/stl_tree.h" 1 3 24952: # 61 "/usr/include/c++/13/bits/stl_tree.h" 3 24952: 24952: # 62 "/usr/include/c++/13/bits/stl_tree.h" 3 24952: # 75 "/usr/include/c++/13/bits/stl_tree.h" 3 24952: 24952: # 75 "/usr/include/c++/13/bits/stl_tree.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 99 "/usr/include/c++/13/bits/stl_tree.h" 3 24952: enum _Rb_tree_color { _S_red = false, _S_black = true }; 24952: 24952: struct _Rb_tree_node_base 24952: { 24952: typedef _Rb_tree_node_base* _Base_ptr; 24952: typedef const _Rb_tree_node_base* _Const_Base_ptr; 24952: 24952: _Rb_tree_color _M_color; 24952: _Base_ptr _M_parent; 24952: _Base_ptr _M_left; 24952: _Base_ptr _M_right; 24952: 24952: static _Base_ptr 24952: _S_minimum(_Base_ptr __x) noexcept 24952: { 24952: while (__x->_M_left != 0) __x = __x->_M_left; 24952: return __x; 24952: } 24952: 24952: static _Const_Base_ptr 24952: _S_minimum(_Const_Base_ptr __x) noexcept 24952: { 24952: while (__x->_M_left != 0) __x = __x->_M_left; 24952: return __x; 24952: } 24952: 24952: static _Base_ptr 24952: _S_maximum(_Base_ptr __x) noexcept 24952: { 24952: while (__x->_M_right != 0) __x = __x->_M_right; 24952: return __x; 24952: } 24952: 24952: static _Const_Base_ptr 24952: _S_maximum(_Const_Base_ptr __x) noexcept 24952: { 24952: while (__x->_M_right != 0) __x = __x->_M_right; 24952: return __x; 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct _Rb_tree_key_compare 24952: { 24952: _Key_compare _M_key_compare; 24952: 24952: _Rb_tree_key_compare() 24952: noexcept(is_nothrow_default_constructible<_Key_compare>::value) 24952: 24952: : _M_key_compare() 24952: { } 24952: 24952: _Rb_tree_key_compare(const _Key_compare& __comp) 24952: : _M_key_compare(__comp) 24952: { } 24952: 24952: 24952: 24952: _Rb_tree_key_compare(const _Rb_tree_key_compare&) = default; 24952: 24952: _Rb_tree_key_compare(_Rb_tree_key_compare&& __x) 24952: noexcept(is_nothrow_copy_constructible<_Key_compare>::value) 24952: : _M_key_compare(__x._M_key_compare) 24952: { } 24952: 24952: }; 24952: 24952: 24952: struct _Rb_tree_header 24952: { 24952: _Rb_tree_node_base _M_header; 24952: size_t _M_node_count; 24952: 24952: _Rb_tree_header() noexcept 24952: { 24952: _M_header._M_color = _S_red; 24952: _M_reset(); 24952: } 24952: 24952: 24952: _Rb_tree_header(_Rb_tree_header&& __x) noexcept 24952: { 24952: if (__x._M_header._M_parent != nullptr) 24952: _M_move_data(__x); 24952: else 24952: { 24952: _M_header._M_color = _S_red; 24952: _M_reset(); 24952: } 24952: } 24952: 24952: 24952: void 24952: _M_move_data(_Rb_tree_header& __from) 24952: { 24952: _M_header._M_color = __from._M_header._M_color; 24952: _M_header._M_parent = __from._M_header._M_parent; 24952: _M_header._M_left = __from._M_header._M_left; 24952: _M_header._M_right = __from._M_header._M_right; 24952: _M_header._M_parent->_M_parent = &_M_header; 24952: _M_node_count = __from._M_node_count; 24952: 24952: __from._M_reset(); 24952: } 24952: 24952: void 24952: _M_reset() 24952: { 24952: _M_header._M_parent = 0; 24952: _M_header._M_left = &_M_header; 24952: _M_header._M_right = &_M_header; 24952: _M_node_count = 0; 24952: } 24952: }; 24952: 24952: template 24952: struct _Rb_tree_node : public _Rb_tree_node_base 24952: { 24952: typedef _Rb_tree_node<_Val>* _Link_type; 24952: # 231 "/usr/include/c++/13/bits/stl_tree.h" 3 24952: __gnu_cxx::__aligned_membuf<_Val> _M_storage; 24952: 24952: _Val* 24952: _M_valptr() 24952: { return _M_storage._M_ptr(); } 24952: 24952: const _Val* 24952: _M_valptr() const 24952: { return _M_storage._M_ptr(); } 24952: 24952: }; 24952: 24952: __attribute__ ((__pure__)) _Rb_tree_node_base* 24952: _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); 24952: 24952: __attribute__ ((__pure__)) const _Rb_tree_node_base* 24952: _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); 24952: 24952: __attribute__ ((__pure__)) _Rb_tree_node_base* 24952: _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); 24952: 24952: __attribute__ ((__pure__)) const _Rb_tree_node_base* 24952: _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); 24952: 24952: template 24952: struct _Rb_tree_iterator 24952: { 24952: typedef _Tp value_type; 24952: typedef _Tp& reference; 24952: typedef _Tp* pointer; 24952: 24952: typedef bidirectional_iterator_tag iterator_category; 24952: typedef ptrdiff_t difference_type; 24952: 24952: typedef _Rb_tree_iterator<_Tp> _Self; 24952: typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; 24952: typedef _Rb_tree_node<_Tp>* _Link_type; 24952: 24952: _Rb_tree_iterator() noexcept 24952: : _M_node() { } 24952: 24952: explicit 24952: _Rb_tree_iterator(_Base_ptr __x) noexcept 24952: : _M_node(__x) { } 24952: 24952: reference 24952: operator*() const noexcept 24952: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 24952: 24952: pointer 24952: operator->() const noexcept 24952: { return static_cast<_Link_type> (_M_node)->_M_valptr(); } 24952: 24952: _Self& 24952: operator++() noexcept 24952: { 24952: _M_node = _Rb_tree_increment(_M_node); 24952: return *this; 24952: } 24952: 24952: _Self 24952: operator++(int) noexcept 24952: { 24952: _Self __tmp = *this; 24952: _M_node = _Rb_tree_increment(_M_node); 24952: return __tmp; 24952: } 24952: 24952: _Self& 24952: operator--() noexcept 24952: { 24952: _M_node = _Rb_tree_decrement(_M_node); 24952: return *this; 24952: } 24952: 24952: _Self 24952: operator--(int) noexcept 24952: { 24952: _Self __tmp = *this; 24952: _M_node = _Rb_tree_decrement(_M_node); 24952: return __tmp; 24952: } 24952: 24952: friend bool 24952: operator==(const _Self& __x, const _Self& __y) noexcept 24952: { return __x._M_node == __y._M_node; } 24952: 24952: 24952: friend bool 24952: operator!=(const _Self& __x, const _Self& __y) noexcept 24952: { return __x._M_node != __y._M_node; } 24952: 24952: 24952: _Base_ptr _M_node; 24952: }; 24952: 24952: template 24952: struct _Rb_tree_const_iterator 24952: { 24952: typedef _Tp value_type; 24952: typedef const _Tp& reference; 24952: typedef const _Tp* pointer; 24952: 24952: typedef _Rb_tree_iterator<_Tp> iterator; 24952: 24952: typedef bidirectional_iterator_tag iterator_category; 24952: typedef ptrdiff_t difference_type; 24952: 24952: typedef _Rb_tree_const_iterator<_Tp> _Self; 24952: typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; 24952: typedef const _Rb_tree_node<_Tp>* _Link_type; 24952: 24952: _Rb_tree_const_iterator() noexcept 24952: : _M_node() { } 24952: 24952: explicit 24952: _Rb_tree_const_iterator(_Base_ptr __x) noexcept 24952: : _M_node(__x) { } 24952: 24952: _Rb_tree_const_iterator(const iterator& __it) noexcept 24952: : _M_node(__it._M_node) { } 24952: 24952: iterator 24952: _M_const_cast() const noexcept 24952: { return iterator(const_cast(_M_node)); } 24952: 24952: reference 24952: operator*() const noexcept 24952: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 24952: 24952: pointer 24952: operator->() const noexcept 24952: { return static_cast<_Link_type>(_M_node)->_M_valptr(); } 24952: 24952: _Self& 24952: operator++() noexcept 24952: { 24952: _M_node = _Rb_tree_increment(_M_node); 24952: return *this; 24952: } 24952: 24952: _Self 24952: operator++(int) noexcept 24952: { 24952: _Self __tmp = *this; 24952: _M_node = _Rb_tree_increment(_M_node); 24952: return __tmp; 24952: } 24952: 24952: _Self& 24952: operator--() noexcept 24952: { 24952: _M_node = _Rb_tree_decrement(_M_node); 24952: return *this; 24952: } 24952: 24952: _Self 24952: operator--(int) noexcept 24952: { 24952: _Self __tmp = *this; 24952: _M_node = _Rb_tree_decrement(_M_node); 24952: return __tmp; 24952: } 24952: 24952: friend bool 24952: operator==(const _Self& __x, const _Self& __y) noexcept 24952: { return __x._M_node == __y._M_node; } 24952: 24952: 24952: friend bool 24952: operator!=(const _Self& __x, const _Self& __y) noexcept 24952: { return __x._M_node != __y._M_node; } 24952: 24952: 24952: _Base_ptr _M_node; 24952: }; 24952: 24952: __attribute__((__nonnull__)) 24952: void 24952: _Rb_tree_insert_and_rebalance(const bool __insert_left, 24952: _Rb_tree_node_base* __x, 24952: _Rb_tree_node_base* __p, 24952: _Rb_tree_node_base& __header) throw (); 24952: 24952: __attribute__((__nonnull__,__returns_nonnull__)) 24952: _Rb_tree_node_base* 24952: _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, 24952: _Rb_tree_node_base& __header) throw (); 24952: 24952: 24952: template 24952: struct _Rb_tree_merge_helper { }; 24952: 24952: 24952: template > 24952: class _Rb_tree 24952: { 24952: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 24952: rebind<_Rb_tree_node<_Val> >::other _Node_allocator; 24952: 24952: typedef __gnu_cxx::__alloc_traits<_Node_allocator> _Alloc_traits; 24952: 24952: protected: 24952: typedef _Rb_tree_node_base* _Base_ptr; 24952: typedef const _Rb_tree_node_base* _Const_Base_ptr; 24952: typedef _Rb_tree_node<_Val>* _Link_type; 24952: typedef const _Rb_tree_node<_Val>* _Const_Link_type; 24952: 24952: private: 24952: 24952: 24952: struct _Reuse_or_alloc_node 24952: { 24952: _Reuse_or_alloc_node(_Rb_tree& __t) 24952: : _M_root(__t._M_root()), _M_nodes(__t._M_rightmost()), _M_t(__t) 24952: { 24952: if (_M_root) 24952: { 24952: _M_root->_M_parent = 0; 24952: 24952: if (_M_nodes->_M_left) 24952: _M_nodes = _M_nodes->_M_left; 24952: } 24952: else 24952: _M_nodes = 0; 24952: } 24952: 24952: 24952: _Reuse_or_alloc_node(const _Reuse_or_alloc_node&) = delete; 24952: 24952: 24952: ~_Reuse_or_alloc_node() 24952: { _M_t._M_erase(static_cast<_Link_type>(_M_root)); } 24952: 24952: template 24952: _Link_type 24952: operator()(_Arg&& __arg) 24952: { 24952: _Link_type __node = static_cast<_Link_type>(_M_extract()); 24952: if (__node) 24952: { 24952: _M_t._M_destroy_node(__node); 24952: _M_t._M_construct_node(__node, std::forward<_Arg>(__arg)); 24952: return __node; 24952: } 24952: 24952: return _M_t._M_create_node(std::forward<_Arg>(__arg)); 24952: } 24952: 24952: private: 24952: _Base_ptr 24952: _M_extract() 24952: { 24952: if (!_M_nodes) 24952: return _M_nodes; 24952: 24952: _Base_ptr __node = _M_nodes; 24952: _M_nodes = _M_nodes->_M_parent; 24952: if (_M_nodes) 24952: { 24952: if (_M_nodes->_M_right == __node) 24952: { 24952: _M_nodes->_M_right = 0; 24952: 24952: if (_M_nodes->_M_left) 24952: { 24952: _M_nodes = _M_nodes->_M_left; 24952: 24952: while (_M_nodes->_M_right) 24952: _M_nodes = _M_nodes->_M_right; 24952: 24952: if (_M_nodes->_M_left) 24952: _M_nodes = _M_nodes->_M_left; 24952: } 24952: } 24952: else 24952: _M_nodes->_M_left = 0; 24952: } 24952: else 24952: _M_root = 0; 24952: 24952: return __node; 24952: } 24952: 24952: _Base_ptr _M_root; 24952: _Base_ptr _M_nodes; 24952: _Rb_tree& _M_t; 24952: }; 24952: 24952: 24952: 24952: struct _Alloc_node 24952: { 24952: _Alloc_node(_Rb_tree& __t) 24952: : _M_t(__t) { } 24952: 24952: template 24952: _Link_type 24952: operator()(_Arg&& __arg) const 24952: { return _M_t._M_create_node(std::forward<_Arg>(__arg)); } 24952: 24952: private: 24952: _Rb_tree& _M_t; 24952: }; 24952: 24952: public: 24952: typedef _Key key_type; 24952: typedef _Val value_type; 24952: typedef value_type* pointer; 24952: typedef const value_type* const_pointer; 24952: typedef value_type& reference; 24952: typedef const value_type& const_reference; 24952: typedef size_t size_type; 24952: typedef ptrdiff_t difference_type; 24952: typedef _Alloc allocator_type; 24952: 24952: _Node_allocator& 24952: _M_get_Node_allocator() noexcept 24952: { return this->_M_impl; } 24952: 24952: const _Node_allocator& 24952: _M_get_Node_allocator() const noexcept 24952: { return this->_M_impl; } 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return allocator_type(_M_get_Node_allocator()); } 24952: 24952: protected: 24952: _Link_type 24952: _M_get_node() 24952: { return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); } 24952: 24952: void 24952: _M_put_node(_Link_type __p) noexcept 24952: { _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); } 24952: # 590 "/usr/include/c++/13/bits/stl_tree.h" 3 24952: template 24952: void 24952: _M_construct_node(_Link_type __node, _Args&&... __args) 24952: { 24952: try 24952: { 24952: ::new(__node) _Rb_tree_node<_Val>; 24952: _Alloc_traits::construct(_M_get_Node_allocator(), 24952: __node->_M_valptr(), 24952: std::forward<_Args>(__args)...); 24952: } 24952: catch(...) 24952: { 24952: __node->~_Rb_tree_node<_Val>(); 24952: _M_put_node(__node); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: _Link_type 24952: _M_create_node(_Args&&... __args) 24952: { 24952: _Link_type __tmp = _M_get_node(); 24952: _M_construct_node(__tmp, std::forward<_Args>(__args)...); 24952: return __tmp; 24952: } 24952: 24952: 24952: void 24952: _M_destroy_node(_Link_type __p) noexcept 24952: { 24952: 24952: 24952: 24952: _Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr()); 24952: __p->~_Rb_tree_node<_Val>(); 24952: 24952: } 24952: 24952: void 24952: _M_drop_node(_Link_type __p) noexcept 24952: { 24952: _M_destroy_node(__p); 24952: _M_put_node(__p); 24952: } 24952: 24952: template 24952: _Link_type 24952: _M_clone_node(_Link_type __x, _NodeGen& __node_gen) 24952: { 24952: 24952: using _Vp = __conditional_t<_MoveValue, 24952: value_type&&, 24952: const value_type&>; 24952: 24952: _Link_type __tmp 24952: = __node_gen(std::forward<_Vp>(*__x->_M_valptr())); 24952: __tmp->_M_color = __x->_M_color; 24952: __tmp->_M_left = 0; 24952: __tmp->_M_right = 0; 24952: return __tmp; 24952: } 24952: 24952: protected: 24952: 24952: 24952: 24952: 24952: template 24952: 24952: struct _Rb_tree_impl 24952: : public _Node_allocator 24952: , public _Rb_tree_key_compare<_Key_compare> 24952: , public _Rb_tree_header 24952: { 24952: typedef _Rb_tree_key_compare<_Key_compare> _Base_key_compare; 24952: 24952: _Rb_tree_impl() 24952: noexcept(is_nothrow_default_constructible<_Node_allocator>::value && is_nothrow_default_constructible<_Base_key_compare>::value) 24952: 24952: 24952: : _Node_allocator() 24952: { } 24952: 24952: _Rb_tree_impl(const _Rb_tree_impl& __x) 24952: : _Node_allocator(_Alloc_traits::_S_select_on_copy(__x)) 24952: , _Base_key_compare(__x._M_key_compare) 24952: , _Rb_tree_header() 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: _Rb_tree_impl(_Rb_tree_impl&&) 24952: noexcept( is_nothrow_move_constructible<_Base_key_compare>::value ) 24952: = default; 24952: 24952: explicit 24952: _Rb_tree_impl(_Node_allocator&& __a) 24952: : _Node_allocator(std::move(__a)) 24952: { } 24952: 24952: _Rb_tree_impl(_Rb_tree_impl&& __x, _Node_allocator&& __a) 24952: : _Node_allocator(std::move(__a)), 24952: _Base_key_compare(std::move(__x)), 24952: _Rb_tree_header(std::move(__x)) 24952: { } 24952: 24952: _Rb_tree_impl(const _Key_compare& __comp, _Node_allocator&& __a) 24952: : _Node_allocator(std::move(__a)), _Base_key_compare(__comp) 24952: { } 24952: 24952: }; 24952: 24952: _Rb_tree_impl<_Compare> _M_impl; 24952: 24952: protected: 24952: _Base_ptr& 24952: _M_root() noexcept 24952: { return this->_M_impl._M_header._M_parent; } 24952: 24952: _Const_Base_ptr 24952: _M_root() const noexcept 24952: { return this->_M_impl._M_header._M_parent; } 24952: 24952: _Base_ptr& 24952: _M_leftmost() noexcept 24952: { return this->_M_impl._M_header._M_left; } 24952: 24952: _Const_Base_ptr 24952: _M_leftmost() const noexcept 24952: { return this->_M_impl._M_header._M_left; } 24952: 24952: _Base_ptr& 24952: _M_rightmost() noexcept 24952: { return this->_M_impl._M_header._M_right; } 24952: 24952: _Const_Base_ptr 24952: _M_rightmost() const noexcept 24952: { return this->_M_impl._M_header._M_right; } 24952: 24952: _Link_type 24952: _M_mbegin() const noexcept 24952: { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } 24952: 24952: _Link_type 24952: _M_begin() noexcept 24952: { return _M_mbegin(); } 24952: 24952: _Const_Link_type 24952: _M_begin() const noexcept 24952: { 24952: return static_cast<_Const_Link_type> 24952: (this->_M_impl._M_header._M_parent); 24952: } 24952: 24952: _Base_ptr 24952: _M_end() noexcept 24952: { return &this->_M_impl._M_header; } 24952: 24952: _Const_Base_ptr 24952: _M_end() const noexcept 24952: { return &this->_M_impl._M_header; } 24952: 24952: static const _Key& 24952: _S_key(_Const_Link_type __x) 24952: { 24952: 24952: 24952: 24952: static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{}, 24952: "comparison object must be invocable " 24952: "with two arguments of key type"); 24952: 24952: 24952: 24952: if constexpr (__is_invocable<_Compare&, const _Key&, const _Key&>{}) 24952: static_assert( 24952: is_invocable_v, 24952: "comparison object must be invocable as const"); 24952: 24952: 24952: 24952: return _KeyOfValue()(*__x->_M_valptr()); 24952: } 24952: 24952: static _Link_type 24952: _S_left(_Base_ptr __x) noexcept 24952: { return static_cast<_Link_type>(__x->_M_left); } 24952: 24952: static _Const_Link_type 24952: _S_left(_Const_Base_ptr __x) noexcept 24952: { return static_cast<_Const_Link_type>(__x->_M_left); } 24952: 24952: static _Link_type 24952: _S_right(_Base_ptr __x) noexcept 24952: { return static_cast<_Link_type>(__x->_M_right); } 24952: 24952: static _Const_Link_type 24952: _S_right(_Const_Base_ptr __x) noexcept 24952: { return static_cast<_Const_Link_type>(__x->_M_right); } 24952: 24952: static const _Key& 24952: _S_key(_Const_Base_ptr __x) 24952: { return _S_key(static_cast<_Const_Link_type>(__x)); } 24952: 24952: static _Base_ptr 24952: _S_minimum(_Base_ptr __x) noexcept 24952: { return _Rb_tree_node_base::_S_minimum(__x); } 24952: 24952: static _Const_Base_ptr 24952: _S_minimum(_Const_Base_ptr __x) noexcept 24952: { return _Rb_tree_node_base::_S_minimum(__x); } 24952: 24952: static _Base_ptr 24952: _S_maximum(_Base_ptr __x) noexcept 24952: { return _Rb_tree_node_base::_S_maximum(__x); } 24952: 24952: static _Const_Base_ptr 24952: _S_maximum(_Const_Base_ptr __x) noexcept 24952: { return _Rb_tree_node_base::_S_maximum(__x); } 24952: 24952: public: 24952: typedef _Rb_tree_iterator iterator; 24952: typedef _Rb_tree_const_iterator const_iterator; 24952: 24952: typedef std::reverse_iterator reverse_iterator; 24952: typedef std::reverse_iterator const_reverse_iterator; 24952: 24952: 24952: using node_type = _Node_handle<_Key, _Val, _Node_allocator>; 24952: using insert_return_type = _Node_insert_return< 24952: __conditional_t, const_iterator, iterator>, 24952: node_type>; 24952: 24952: 24952: pair<_Base_ptr, _Base_ptr> 24952: _M_get_insert_unique_pos(const key_type& __k); 24952: 24952: pair<_Base_ptr, _Base_ptr> 24952: _M_get_insert_equal_pos(const key_type& __k); 24952: 24952: pair<_Base_ptr, _Base_ptr> 24952: _M_get_insert_hint_unique_pos(const_iterator __pos, 24952: const key_type& __k); 24952: 24952: pair<_Base_ptr, _Base_ptr> 24952: _M_get_insert_hint_equal_pos(const_iterator __pos, 24952: const key_type& __k); 24952: 24952: private: 24952: 24952: template 24952: iterator 24952: _M_insert_(_Base_ptr __x, _Base_ptr __y, _Arg&& __v, _NodeGen&); 24952: 24952: iterator 24952: _M_insert_node(_Base_ptr __x, _Base_ptr __y, _Link_type __z); 24952: 24952: template 24952: iterator 24952: _M_insert_lower(_Base_ptr __y, _Arg&& __v); 24952: 24952: template 24952: iterator 24952: _M_insert_equal_lower(_Arg&& __x); 24952: 24952: iterator 24952: _M_insert_lower_node(_Base_ptr __p, _Link_type __z); 24952: 24952: iterator 24952: _M_insert_equal_lower_node(_Link_type __z); 24952: # 881 "/usr/include/c++/13/bits/stl_tree.h" 3 24952: enum { __as_lvalue, __as_rvalue }; 24952: 24952: template 24952: _Link_type 24952: _M_copy(_Link_type, _Base_ptr, _NodeGen&); 24952: 24952: template 24952: _Link_type 24952: _M_copy(const _Rb_tree& __x, _NodeGen& __gen) 24952: { 24952: _Link_type __root = 24952: _M_copy<_MoveValues>(__x._M_mbegin(), _M_end(), __gen); 24952: _M_leftmost() = _S_minimum(__root); 24952: _M_rightmost() = _S_maximum(__root); 24952: _M_impl._M_node_count = __x._M_impl._M_node_count; 24952: return __root; 24952: } 24952: 24952: _Link_type 24952: _M_copy(const _Rb_tree& __x) 24952: { 24952: _Alloc_node __an(*this); 24952: return _M_copy<__as_lvalue>(__x, __an); 24952: } 24952: 24952: void 24952: _M_erase(_Link_type __x); 24952: 24952: iterator 24952: _M_lower_bound(_Link_type __x, _Base_ptr __y, 24952: const _Key& __k); 24952: 24952: const_iterator 24952: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 24952: const _Key& __k) const; 24952: 24952: iterator 24952: _M_upper_bound(_Link_type __x, _Base_ptr __y, 24952: const _Key& __k); 24952: 24952: const_iterator 24952: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 24952: const _Key& __k) const; 24952: 24952: public: 24952: 24952: 24952: 24952: 24952: _Rb_tree() = default; 24952: 24952: 24952: _Rb_tree(const _Compare& __comp, 24952: const allocator_type& __a = allocator_type()) 24952: : _M_impl(__comp, _Node_allocator(__a)) { } 24952: 24952: _Rb_tree(const _Rb_tree& __x) 24952: : _M_impl(__x._M_impl) 24952: { 24952: if (__x._M_root() != 0) 24952: _M_root() = _M_copy(__x); 24952: } 24952: 24952: 24952: _Rb_tree(const allocator_type& __a) 24952: : _M_impl(_Node_allocator(__a)) 24952: { } 24952: 24952: _Rb_tree(const _Rb_tree& __x, const allocator_type& __a) 24952: : _M_impl(__x._M_impl._M_key_compare, _Node_allocator(__a)) 24952: { 24952: if (__x._M_root() != nullptr) 24952: _M_root() = _M_copy(__x); 24952: } 24952: 24952: _Rb_tree(_Rb_tree&&) = default; 24952: 24952: _Rb_tree(_Rb_tree&& __x, const allocator_type& __a) 24952: : _Rb_tree(std::move(__x), _Node_allocator(__a)) 24952: { } 24952: 24952: private: 24952: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, true_type) 24952: noexcept(is_nothrow_default_constructible<_Compare>::value) 24952: : _M_impl(std::move(__x._M_impl), std::move(__a)) 24952: { } 24952: 24952: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, false_type) 24952: : _M_impl(__x._M_impl._M_key_compare, std::move(__a)) 24952: { 24952: if (__x._M_root() != nullptr) 24952: _M_move_data(__x, false_type{}); 24952: } 24952: 24952: public: 24952: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a) 24952: noexcept( noexcept( 24952: _Rb_tree(std::declval<_Rb_tree&&>(), std::declval<_Node_allocator&&>(), 24952: std::declval())) ) 24952: : _Rb_tree(std::move(__x), std::move(__a), 24952: typename _Alloc_traits::is_always_equal{}) 24952: { } 24952: 24952: 24952: ~_Rb_tree() noexcept 24952: { _M_erase(_M_begin()); } 24952: 24952: _Rb_tree& 24952: operator=(const _Rb_tree& __x); 24952: 24952: 24952: _Compare 24952: key_comp() const 24952: { return _M_impl._M_key_compare; } 24952: 24952: iterator 24952: begin() noexcept 24952: { return iterator(this->_M_impl._M_header._M_left); } 24952: 24952: const_iterator 24952: begin() const noexcept 24952: { return const_iterator(this->_M_impl._M_header._M_left); } 24952: 24952: iterator 24952: end() noexcept 24952: { return iterator(&this->_M_impl._M_header); } 24952: 24952: const_iterator 24952: end() const noexcept 24952: { return const_iterator(&this->_M_impl._M_header); } 24952: 24952: reverse_iterator 24952: rbegin() noexcept 24952: { return reverse_iterator(end()); } 24952: 24952: const_reverse_iterator 24952: rbegin() const noexcept 24952: { return const_reverse_iterator(end()); } 24952: 24952: reverse_iterator 24952: rend() noexcept 24952: { return reverse_iterator(begin()); } 24952: 24952: const_reverse_iterator 24952: rend() const noexcept 24952: { return const_reverse_iterator(begin()); } 24952: 24952: [[__nodiscard__]] bool 24952: empty() const noexcept 24952: { return _M_impl._M_node_count == 0; } 24952: 24952: size_type 24952: size() const noexcept 24952: { return _M_impl._M_node_count; } 24952: 24952: size_type 24952: max_size() const noexcept 24952: { return _Alloc_traits::max_size(_M_get_Node_allocator()); } 24952: 24952: void 24952: swap(_Rb_tree& __t) 24952: noexcept(__is_nothrow_swappable<_Compare>::value); 24952: 24952: 24952: 24952: template 24952: pair 24952: _M_insert_unique(_Arg&& __x); 24952: 24952: template 24952: iterator 24952: _M_insert_equal(_Arg&& __x); 24952: 24952: template 24952: iterator 24952: _M_insert_unique_(const_iterator __pos, _Arg&& __x, _NodeGen&); 24952: 24952: template 24952: iterator 24952: _M_insert_unique_(const_iterator __pos, _Arg&& __x) 24952: { 24952: _Alloc_node __an(*this); 24952: return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); 24952: } 24952: 24952: template 24952: iterator 24952: _M_insert_equal_(const_iterator __pos, _Arg&& __x, _NodeGen&); 24952: 24952: template 24952: iterator 24952: _M_insert_equal_(const_iterator __pos, _Arg&& __x) 24952: { 24952: _Alloc_node __an(*this); 24952: return _M_insert_equal_(__pos, std::forward<_Arg>(__x), __an); 24952: } 24952: 24952: template 24952: pair 24952: _M_emplace_unique(_Args&&... __args); 24952: 24952: template 24952: iterator 24952: _M_emplace_equal(_Args&&... __args); 24952: 24952: template 24952: iterator 24952: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args); 24952: 24952: template 24952: iterator 24952: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args); 24952: 24952: template 24952: using __same_value_type 24952: = is_same::value_type>; 24952: 24952: template 24952: __enable_if_t<__same_value_type<_InputIterator>::value> 24952: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 24952: { 24952: _Alloc_node __an(*this); 24952: for (; __first != __last; ++__first) 24952: _M_insert_unique_(end(), *__first, __an); 24952: } 24952: 24952: template 24952: __enable_if_t::value> 24952: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 24952: { 24952: for (; __first != __last; ++__first) 24952: _M_emplace_unique(*__first); 24952: } 24952: 24952: template 24952: __enable_if_t<__same_value_type<_InputIterator>::value> 24952: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 24952: { 24952: _Alloc_node __an(*this); 24952: for (; __first != __last; ++__first) 24952: _M_insert_equal_(end(), *__first, __an); 24952: } 24952: 24952: template 24952: __enable_if_t::value> 24952: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 24952: { 24952: for (; __first != __last; ++__first) 24952: _M_emplace_equal(*__first); 24952: } 24952: # 1180 "/usr/include/c++/13/bits/stl_tree.h" 3 24952: private: 24952: void 24952: _M_erase_aux(const_iterator __position); 24952: 24952: void 24952: _M_erase_aux(const_iterator __first, const_iterator __last); 24952: 24952: public: 24952: 24952: 24952: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: iterator 24952: erase(const_iterator __position) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__position != end())) __builtin_unreachable(); } while (false); 24952: const_iterator __result = __position; 24952: ++__result; 24952: _M_erase_aux(__position); 24952: return __result._M_const_cast(); 24952: } 24952: 24952: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: iterator 24952: erase(iterator __position) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__position != end())) __builtin_unreachable(); } while (false); 24952: iterator __result = __position; 24952: ++__result; 24952: _M_erase_aux(__position); 24952: return __result; 24952: } 24952: # 1229 "/usr/include/c++/13/bits/stl_tree.h" 3 24952: size_type 24952: erase(const key_type& __x); 24952: 24952: 24952: 24952: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: iterator 24952: erase(const_iterator __first, const_iterator __last) 24952: { 24952: _M_erase_aux(__first, __last); 24952: return __last._M_const_cast(); 24952: } 24952: # 1252 "/usr/include/c++/13/bits/stl_tree.h" 3 24952: void 24952: clear() noexcept 24952: { 24952: _M_erase(_M_begin()); 24952: _M_impl._M_reset(); 24952: } 24952: 24952: 24952: iterator 24952: find(const key_type& __k); 24952: 24952: const_iterator 24952: find(const key_type& __k) const; 24952: 24952: size_type 24952: count(const key_type& __k) const; 24952: 24952: iterator 24952: lower_bound(const key_type& __k) 24952: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 24952: 24952: const_iterator 24952: lower_bound(const key_type& __k) const 24952: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 24952: 24952: iterator 24952: upper_bound(const key_type& __k) 24952: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 24952: 24952: const_iterator 24952: upper_bound(const key_type& __k) const 24952: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 24952: 24952: pair 24952: equal_range(const key_type& __k); 24952: 24952: pair 24952: equal_range(const key_type& __k) const; 24952: 24952: 24952: template> 24952: iterator 24952: _M_find_tr(const _Kt& __k) 24952: { 24952: const _Rb_tree* __const_this = this; 24952: return __const_this->_M_find_tr(__k)._M_const_cast(); 24952: } 24952: 24952: template> 24952: const_iterator 24952: _M_find_tr(const _Kt& __k) const 24952: { 24952: auto __j = _M_lower_bound_tr(__k); 24952: if (__j != end() && _M_impl._M_key_compare(__k, _S_key(__j._M_node))) 24952: __j = end(); 24952: return __j; 24952: } 24952: 24952: template> 24952: size_type 24952: _M_count_tr(const _Kt& __k) const 24952: { 24952: auto __p = _M_equal_range_tr(__k); 24952: return std::distance(__p.first, __p.second); 24952: } 24952: 24952: template> 24952: iterator 24952: _M_lower_bound_tr(const _Kt& __k) 24952: { 24952: const _Rb_tree* __const_this = this; 24952: return __const_this->_M_lower_bound_tr(__k)._M_const_cast(); 24952: } 24952: 24952: template> 24952: const_iterator 24952: _M_lower_bound_tr(const _Kt& __k) const 24952: { 24952: auto __x = _M_begin(); 24952: auto __y = _M_end(); 24952: while (__x != 0) 24952: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 24952: { 24952: __y = __x; 24952: __x = _S_left(__x); 24952: } 24952: else 24952: __x = _S_right(__x); 24952: return const_iterator(__y); 24952: } 24952: 24952: template> 24952: iterator 24952: _M_upper_bound_tr(const _Kt& __k) 24952: { 24952: const _Rb_tree* __const_this = this; 24952: return __const_this->_M_upper_bound_tr(__k)._M_const_cast(); 24952: } 24952: 24952: template> 24952: const_iterator 24952: _M_upper_bound_tr(const _Kt& __k) const 24952: { 24952: auto __x = _M_begin(); 24952: auto __y = _M_end(); 24952: while (__x != 0) 24952: if (_M_impl._M_key_compare(__k, _S_key(__x))) 24952: { 24952: __y = __x; 24952: __x = _S_left(__x); 24952: } 24952: else 24952: __x = _S_right(__x); 24952: return const_iterator(__y); 24952: } 24952: 24952: template> 24952: pair 24952: _M_equal_range_tr(const _Kt& __k) 24952: { 24952: const _Rb_tree* __const_this = this; 24952: auto __ret = __const_this->_M_equal_range_tr(__k); 24952: return { __ret.first._M_const_cast(), __ret.second._M_const_cast() }; 24952: } 24952: 24952: template> 24952: pair 24952: _M_equal_range_tr(const _Kt& __k) const 24952: { 24952: auto __low = _M_lower_bound_tr(__k); 24952: auto __high = __low; 24952: auto& __cmp = _M_impl._M_key_compare; 24952: while (__high != end() && !__cmp(__k, _S_key(__high._M_node))) 24952: ++__high; 24952: return { __low, __high }; 24952: } 24952: 24952: 24952: 24952: bool 24952: __rb_verify() const; 24952: 24952: 24952: _Rb_tree& 24952: operator=(_Rb_tree&&) 24952: noexcept(_Alloc_traits::_S_nothrow_move() 24952: && is_nothrow_move_assignable<_Compare>::value); 24952: 24952: template 24952: void 24952: _M_assign_unique(_Iterator, _Iterator); 24952: 24952: template 24952: void 24952: _M_assign_equal(_Iterator, _Iterator); 24952: 24952: private: 24952: 24952: void 24952: _M_move_data(_Rb_tree& __x, true_type) 24952: { _M_impl._M_move_data(__x._M_impl); } 24952: 24952: 24952: 24952: void 24952: _M_move_data(_Rb_tree&, false_type); 24952: 24952: 24952: void 24952: _M_move_assign(_Rb_tree&, true_type); 24952: 24952: 24952: 24952: void 24952: _M_move_assign(_Rb_tree&, false_type); 24952: 24952: 24952: 24952: public: 24952: 24952: insert_return_type 24952: _M_reinsert_node_unique(node_type&& __nh) 24952: { 24952: insert_return_type __ret; 24952: if (__nh.empty()) 24952: __ret.position = end(); 24952: else 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 24952: 24952: auto __res = _M_get_insert_unique_pos(__nh._M_key()); 24952: if (__res.second) 24952: { 24952: __ret.position 24952: = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 24952: __nh._M_ptr = nullptr; 24952: __ret.inserted = true; 24952: } 24952: else 24952: { 24952: __ret.node = std::move(__nh); 24952: __ret.position = iterator(__res.first); 24952: __ret.inserted = false; 24952: } 24952: } 24952: return __ret; 24952: } 24952: 24952: 24952: iterator 24952: _M_reinsert_node_equal(node_type&& __nh) 24952: { 24952: iterator __ret; 24952: if (__nh.empty()) 24952: __ret = end(); 24952: else 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 24952: auto __res = _M_get_insert_equal_pos(__nh._M_key()); 24952: if (__res.second) 24952: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 24952: else 24952: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 24952: __nh._M_ptr = nullptr; 24952: } 24952: return __ret; 24952: } 24952: 24952: 24952: iterator 24952: _M_reinsert_node_hint_unique(const_iterator __hint, node_type&& __nh) 24952: { 24952: iterator __ret; 24952: if (__nh.empty()) 24952: __ret = end(); 24952: else 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 24952: auto __res = _M_get_insert_hint_unique_pos(__hint, __nh._M_key()); 24952: if (__res.second) 24952: { 24952: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 24952: __nh._M_ptr = nullptr; 24952: } 24952: else 24952: __ret = iterator(__res.first); 24952: } 24952: return __ret; 24952: } 24952: 24952: 24952: iterator 24952: _M_reinsert_node_hint_equal(const_iterator __hint, node_type&& __nh) 24952: { 24952: iterator __ret; 24952: if (__nh.empty()) 24952: __ret = end(); 24952: else 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 24952: auto __res = _M_get_insert_hint_equal_pos(__hint, __nh._M_key()); 24952: if (__res.second) 24952: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 24952: else 24952: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 24952: __nh._M_ptr = nullptr; 24952: } 24952: return __ret; 24952: } 24952: 24952: 24952: node_type 24952: extract(const_iterator __pos) 24952: { 24952: auto __ptr = _Rb_tree_rebalance_for_erase( 24952: __pos._M_const_cast()._M_node, _M_impl._M_header); 24952: --_M_impl._M_node_count; 24952: return { static_cast<_Link_type>(__ptr), _M_get_Node_allocator() }; 24952: } 24952: 24952: 24952: node_type 24952: extract(const key_type& __k) 24952: { 24952: node_type __nh; 24952: auto __pos = find(__k); 24952: if (__pos != end()) 24952: __nh = extract(const_iterator(__pos)); 24952: return __nh; 24952: } 24952: 24952: template 24952: using _Compatible_tree 24952: = _Rb_tree<_Key, _Val, _KeyOfValue, _Compare2, _Alloc>; 24952: 24952: template 24952: friend struct _Rb_tree_merge_helper; 24952: 24952: 24952: template 24952: void 24952: _M_merge_unique(_Compatible_tree<_Compare2>& __src) noexcept 24952: { 24952: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 24952: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 24952: { 24952: auto __pos = __i++; 24952: auto __res = _M_get_insert_unique_pos(_KeyOfValue()(*__pos)); 24952: if (__res.second) 24952: { 24952: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 24952: auto __ptr = _Rb_tree_rebalance_for_erase( 24952: __pos._M_node, __src_impl._M_header); 24952: --__src_impl._M_node_count; 24952: _M_insert_node(__res.first, __res.second, 24952: static_cast<_Link_type>(__ptr)); 24952: } 24952: } 24952: } 24952: 24952: 24952: template 24952: void 24952: _M_merge_equal(_Compatible_tree<_Compare2>& __src) noexcept 24952: { 24952: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 24952: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 24952: { 24952: auto __pos = __i++; 24952: auto __res = _M_get_insert_equal_pos(_KeyOfValue()(*__pos)); 24952: if (__res.second) 24952: { 24952: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 24952: auto __ptr = _Rb_tree_rebalance_for_erase( 24952: __pos._M_node, __src_impl._M_header); 24952: --__src_impl._M_node_count; 24952: _M_insert_node(__res.first, __res.second, 24952: static_cast<_Link_type>(__ptr)); 24952: } 24952: } 24952: } 24952: 24952: 24952: friend bool 24952: operator==(const _Rb_tree& __x, const _Rb_tree& __y) 24952: { 24952: return __x.size() == __y.size() 24952: && std::equal(__x.begin(), __x.end(), __y.begin()); 24952: } 24952: # 1621 "/usr/include/c++/13/bits/stl_tree.h" 3 24952: friend bool 24952: operator<(const _Rb_tree& __x, const _Rb_tree& __y) 24952: { 24952: return std::lexicographical_compare(__x.begin(), __x.end(), 24952: __y.begin(), __y.end()); 24952: } 24952: 24952: 24952: private: 24952: 24952: 24952: struct _Auto_node 24952: { 24952: template 24952: _Auto_node(_Rb_tree& __t, _Args&&... __args) 24952: : _M_t(__t), 24952: _M_node(__t._M_create_node(std::forward<_Args>(__args)...)) 24952: { } 24952: 24952: ~_Auto_node() 24952: { 24952: if (_M_node) 24952: _M_t._M_drop_node(_M_node); 24952: } 24952: 24952: _Auto_node(_Auto_node&& __n) 24952: : _M_t(__n._M_t), _M_node(__n._M_node) 24952: { __n._M_node = nullptr; } 24952: 24952: const _Key& 24952: _M_key() const 24952: { return _S_key(_M_node); } 24952: 24952: iterator 24952: _M_insert(pair<_Base_ptr, _Base_ptr> __p) 24952: { 24952: auto __it = _M_t._M_insert_node(__p.first, __p.second, _M_node); 24952: _M_node = nullptr; 24952: return __it; 24952: } 24952: 24952: iterator 24952: _M_insert_equal_lower() 24952: { 24952: auto __it = _M_t._M_insert_equal_lower_node(_M_node); 24952: _M_node = nullptr; 24952: return __it; 24952: } 24952: 24952: _Rb_tree& _M_t; 24952: _Link_type _M_node; 24952: }; 24952: 24952: }; 24952: 24952: template 24952: inline void 24952: swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) 24952: { __x.swap(__y); } 24952: 24952: 24952: template 24952: void 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_move_data(_Rb_tree& __x, false_type) 24952: { 24952: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 24952: _M_move_data(__x, true_type()); 24952: else 24952: { 24952: constexpr bool __move = !__move_if_noexcept_cond::value; 24952: _Alloc_node __an(*this); 24952: _M_root() = _M_copy<__move>(__x, __an); 24952: if constexpr (__move) 24952: __x.clear(); 24952: } 24952: } 24952: 24952: template 24952: inline void 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_move_assign(_Rb_tree& __x, true_type) 24952: { 24952: clear(); 24952: if (__x._M_root() != nullptr) 24952: _M_move_data(__x, true_type()); 24952: std::__alloc_on_move(_M_get_Node_allocator(), 24952: __x._M_get_Node_allocator()); 24952: } 24952: 24952: template 24952: void 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_move_assign(_Rb_tree& __x, false_type) 24952: { 24952: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 24952: return _M_move_assign(__x, true_type{}); 24952: 24952: 24952: 24952: _Reuse_or_alloc_node __roan(*this); 24952: _M_impl._M_reset(); 24952: if (__x._M_root() != nullptr) 24952: { 24952: _M_root() = _M_copy<__as_rvalue>(__x, __roan); 24952: __x.clear(); 24952: } 24952: } 24952: 24952: template 24952: inline _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: operator=(_Rb_tree&& __x) 24952: noexcept(_Alloc_traits::_S_nothrow_move() 24952: && is_nothrow_move_assignable<_Compare>::value) 24952: { 24952: _M_impl._M_key_compare = std::move(__x._M_impl._M_key_compare); 24952: _M_move_assign(__x, __bool_constant<_Alloc_traits::_S_nothrow_move()>()); 24952: return *this; 24952: } 24952: 24952: template 24952: template 24952: void 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_assign_unique(_Iterator __first, _Iterator __last) 24952: { 24952: _Reuse_or_alloc_node __roan(*this); 24952: _M_impl._M_reset(); 24952: for (; __first != __last; ++__first) 24952: _M_insert_unique_(end(), *__first, __roan); 24952: } 24952: 24952: template 24952: template 24952: void 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_assign_equal(_Iterator __first, _Iterator __last) 24952: { 24952: _Reuse_or_alloc_node __roan(*this); 24952: _M_impl._M_reset(); 24952: for (; __first != __last; ++__first) 24952: _M_insert_equal_(end(), *__first, __roan); 24952: } 24952: 24952: 24952: template 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: operator=(const _Rb_tree& __x) 24952: { 24952: if (this != std::__addressof(__x)) 24952: { 24952: 24952: 24952: if (_Alloc_traits::_S_propagate_on_copy_assign()) 24952: { 24952: auto& __this_alloc = this->_M_get_Node_allocator(); 24952: auto& __that_alloc = __x._M_get_Node_allocator(); 24952: if (!_Alloc_traits::_S_always_equal() 24952: && __this_alloc != __that_alloc) 24952: { 24952: 24952: 24952: clear(); 24952: std::__alloc_on_copy(__this_alloc, __that_alloc); 24952: } 24952: } 24952: 24952: 24952: _Reuse_or_alloc_node __roan(*this); 24952: _M_impl._M_reset(); 24952: _M_impl._M_key_compare = __x._M_impl._M_key_compare; 24952: if (__x._M_root() != 0) 24952: _M_root() = _M_copy<__as_lvalue>(__x, __roan); 24952: } 24952: 24952: return *this; 24952: } 24952: 24952: template 24952: 24952: template 24952: 24952: 24952: 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_insert_(_Base_ptr __x, _Base_ptr __p, 24952: 24952: _Arg&& __v, 24952: 24952: 24952: 24952: _NodeGen& __node_gen) 24952: { 24952: bool __insert_left = (__x != 0 || __p == _M_end() 24952: || _M_impl._M_key_compare(_KeyOfValue()(__v), 24952: _S_key(__p))); 24952: 24952: _Link_type __z = __node_gen(std::forward<_Arg>(__v)); 24952: 24952: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 24952: this->_M_impl._M_header); 24952: ++_M_impl._M_node_count; 24952: return iterator(__z); 24952: } 24952: 24952: template 24952: 24952: template 24952: 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: 24952: _M_insert_lower(_Base_ptr __p, _Arg&& __v) 24952: 24952: 24952: 24952: { 24952: bool __insert_left = (__p == _M_end() 24952: || !_M_impl._M_key_compare(_S_key(__p), 24952: _KeyOfValue()(__v))); 24952: 24952: _Link_type __z = _M_create_node(std::forward<_Arg>(__v)); 24952: 24952: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 24952: this->_M_impl._M_header); 24952: ++_M_impl._M_node_count; 24952: return iterator(__z); 24952: } 24952: 24952: template 24952: 24952: template 24952: 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: 24952: _M_insert_equal_lower(_Arg&& __v) 24952: 24952: 24952: 24952: { 24952: _Link_type __x = _M_begin(); 24952: _Base_ptr __y = _M_end(); 24952: while (__x != 0) 24952: { 24952: __y = __x; 24952: __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? 24952: _S_left(__x) : _S_right(__x); 24952: } 24952: return _M_insert_lower(__y, std::forward<_Arg>(__v)); 24952: } 24952: 24952: template 24952: template 24952: typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type 24952: _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: 24952: _M_copy(_Link_type __x, _Base_ptr __p, _NodeGen& __node_gen) 24952: { 24952: 24952: _Link_type __top = _M_clone_node<_MoveValues>(__x, __node_gen); 24952: __top->_M_parent = __p; 24952: 24952: try 24952: { 24952: if (__x->_M_right) 24952: __top->_M_right = 24952: _M_copy<_MoveValues>(_S_right(__x), __top, __node_gen); 24952: __p = __top; 24952: __x = _S_left(__x); 24952: 24952: while (__x != 0) 24952: { 24952: _Link_type __y = _M_clone_node<_MoveValues>(__x, __node_gen); 24952: __p->_M_left = __y; 24952: __y->_M_parent = __p; 24952: if (__x->_M_right) 24952: __y->_M_right = _M_copy<_MoveValues>(_S_right(__x), 24952: __y, __node_gen); 24952: __p = __y; 24952: __x = _S_left(__x); 24952: } 24952: } 24952: catch(...) 24952: { 24952: _M_erase(__top); 24952: throw; 24952: } 24952: return __top; 24952: } 24952: 24952: template 24952: void 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_erase(_Link_type __x) 24952: { 24952: 24952: while (__x != 0) 24952: { 24952: _M_erase(_S_right(__x)); 24952: _Link_type __y = _S_left(__x); 24952: _M_drop_node(__x); 24952: __x = __y; 24952: } 24952: } 24952: 24952: template 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, 24952: _Compare, _Alloc>::iterator 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_lower_bound(_Link_type __x, _Base_ptr __y, 24952: const _Key& __k) 24952: { 24952: while (__x != 0) 24952: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 24952: __y = __x, __x = _S_left(__x); 24952: else 24952: __x = _S_right(__x); 24952: return iterator(__y); 24952: } 24952: 24952: template 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, 24952: _Compare, _Alloc>::const_iterator 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 24952: const _Key& __k) const 24952: { 24952: while (__x != 0) 24952: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 24952: __y = __x, __x = _S_left(__x); 24952: else 24952: __x = _S_right(__x); 24952: return const_iterator(__y); 24952: } 24952: 24952: template 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, 24952: _Compare, _Alloc>::iterator 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_upper_bound(_Link_type __x, _Base_ptr __y, 24952: const _Key& __k) 24952: { 24952: while (__x != 0) 24952: if (_M_impl._M_key_compare(__k, _S_key(__x))) 24952: __y = __x, __x = _S_left(__x); 24952: else 24952: __x = _S_right(__x); 24952: return iterator(__y); 24952: } 24952: 24952: template 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, 24952: _Compare, _Alloc>::const_iterator 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 24952: const _Key& __k) const 24952: { 24952: while (__x != 0) 24952: if (_M_impl._M_key_compare(__k, _S_key(__x))) 24952: __y = __x, __x = _S_left(__x); 24952: else 24952: __x = _S_right(__x); 24952: return const_iterator(__y); 24952: } 24952: 24952: template 24952: pair::iterator, 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, 24952: _Compare, _Alloc>::iterator> 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: equal_range(const _Key& __k) 24952: { 24952: _Link_type __x = _M_begin(); 24952: _Base_ptr __y = _M_end(); 24952: while (__x != 0) 24952: { 24952: if (_M_impl._M_key_compare(_S_key(__x), __k)) 24952: __x = _S_right(__x); 24952: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 24952: __y = __x, __x = _S_left(__x); 24952: else 24952: { 24952: _Link_type __xu(__x); 24952: _Base_ptr __yu(__y); 24952: __y = __x, __x = _S_left(__x); 24952: __xu = _S_right(__xu); 24952: return pair(_M_lower_bound(__x, __y, __k), 24952: _M_upper_bound(__xu, __yu, __k)); 24952: } 24952: } 24952: return pair(iterator(__y), 24952: iterator(__y)); 24952: } 24952: 24952: template 24952: pair::const_iterator, 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, 24952: _Compare, _Alloc>::const_iterator> 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: equal_range(const _Key& __k) const 24952: { 24952: _Const_Link_type __x = _M_begin(); 24952: _Const_Base_ptr __y = _M_end(); 24952: while (__x != 0) 24952: { 24952: if (_M_impl._M_key_compare(_S_key(__x), __k)) 24952: __x = _S_right(__x); 24952: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 24952: __y = __x, __x = _S_left(__x); 24952: else 24952: { 24952: _Const_Link_type __xu(__x); 24952: _Const_Base_ptr __yu(__y); 24952: __y = __x, __x = _S_left(__x); 24952: __xu = _S_right(__xu); 24952: return pair(_M_lower_bound(__x, __y, __k), 24952: _M_upper_bound(__xu, __yu, __k)); 24952: } 24952: } 24952: return pair(const_iterator(__y), 24952: const_iterator(__y)); 24952: } 24952: 24952: template 24952: void 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: swap(_Rb_tree& __t) 24952: noexcept(__is_nothrow_swappable<_Compare>::value) 24952: { 24952: if (_M_root() == 0) 24952: { 24952: if (__t._M_root() != 0) 24952: _M_impl._M_move_data(__t._M_impl); 24952: } 24952: else if (__t._M_root() == 0) 24952: __t._M_impl._M_move_data(_M_impl); 24952: else 24952: { 24952: std::swap(_M_root(),__t._M_root()); 24952: std::swap(_M_leftmost(),__t._M_leftmost()); 24952: std::swap(_M_rightmost(),__t._M_rightmost()); 24952: 24952: _M_root()->_M_parent = _M_end(); 24952: __t._M_root()->_M_parent = __t._M_end(); 24952: std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); 24952: } 24952: 24952: std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); 24952: 24952: _Alloc_traits::_S_on_swap(_M_get_Node_allocator(), 24952: __t._M_get_Node_allocator()); 24952: } 24952: 24952: template 24952: pair::_Base_ptr, 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, 24952: _Compare, _Alloc>::_Base_ptr> 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_get_insert_unique_pos(const key_type& __k) 24952: { 24952: typedef pair<_Base_ptr, _Base_ptr> _Res; 24952: _Link_type __x = _M_begin(); 24952: _Base_ptr __y = _M_end(); 24952: bool __comp = true; 24952: while (__x != 0) 24952: { 24952: __y = __x; 24952: __comp = _M_impl._M_key_compare(__k, _S_key(__x)); 24952: __x = __comp ? _S_left(__x) : _S_right(__x); 24952: } 24952: iterator __j = iterator(__y); 24952: if (__comp) 24952: { 24952: if (__j == begin()) 24952: return _Res(__x, __y); 24952: else 24952: --__j; 24952: } 24952: if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) 24952: return _Res(__x, __y); 24952: return _Res(__j._M_node, 0); 24952: } 24952: 24952: template 24952: pair::_Base_ptr, 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, 24952: _Compare, _Alloc>::_Base_ptr> 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_get_insert_equal_pos(const key_type& __k) 24952: { 24952: typedef pair<_Base_ptr, _Base_ptr> _Res; 24952: _Link_type __x = _M_begin(); 24952: _Base_ptr __y = _M_end(); 24952: while (__x != 0) 24952: { 24952: __y = __x; 24952: __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? 24952: _S_left(__x) : _S_right(__x); 24952: } 24952: return _Res(__x, __y); 24952: } 24952: 24952: template 24952: 24952: template 24952: 24952: pair::iterator, bool> 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: 24952: _M_insert_unique(_Arg&& __v) 24952: 24952: 24952: 24952: { 24952: typedef pair _Res; 24952: pair<_Base_ptr, _Base_ptr> __res 24952: = _M_get_insert_unique_pos(_KeyOfValue()(__v)); 24952: 24952: if (__res.second) 24952: { 24952: _Alloc_node __an(*this); 24952: return _Res(_M_insert_(__res.first, __res.second, 24952: std::forward<_Arg>(__v), __an), 24952: true); 24952: } 24952: 24952: return _Res(iterator(__res.first), false); 24952: } 24952: 24952: template 24952: 24952: template 24952: 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: 24952: _M_insert_equal(_Arg&& __v) 24952: 24952: 24952: 24952: { 24952: pair<_Base_ptr, _Base_ptr> __res 24952: = _M_get_insert_equal_pos(_KeyOfValue()(__v)); 24952: _Alloc_node __an(*this); 24952: return _M_insert_(__res.first, __res.second, 24952: std::forward<_Arg>(__v), __an); 24952: } 24952: 24952: template 24952: pair::_Base_ptr, 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, 24952: _Compare, _Alloc>::_Base_ptr> 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_get_insert_hint_unique_pos(const_iterator __position, 24952: const key_type& __k) 24952: { 24952: iterator __pos = __position._M_const_cast(); 24952: typedef pair<_Base_ptr, _Base_ptr> _Res; 24952: 24952: 24952: if (__pos._M_node == _M_end()) 24952: { 24952: if (size() > 0 24952: && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) 24952: return _Res(0, _M_rightmost()); 24952: else 24952: return _M_get_insert_unique_pos(__k); 24952: } 24952: else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) 24952: { 24952: 24952: iterator __before = __pos; 24952: if (__pos._M_node == _M_leftmost()) 24952: return _Res(_M_leftmost(), _M_leftmost()); 24952: else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) 24952: { 24952: if (_S_right(__before._M_node) == 0) 24952: return _Res(0, __before._M_node); 24952: else 24952: return _Res(__pos._M_node, __pos._M_node); 24952: } 24952: else 24952: return _M_get_insert_unique_pos(__k); 24952: } 24952: else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 24952: { 24952: 24952: iterator __after = __pos; 24952: if (__pos._M_node == _M_rightmost()) 24952: return _Res(0, _M_rightmost()); 24952: else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) 24952: { 24952: if (_S_right(__pos._M_node) == 0) 24952: return _Res(0, __pos._M_node); 24952: else 24952: return _Res(__after._M_node, __after._M_node); 24952: } 24952: else 24952: return _M_get_insert_unique_pos(__k); 24952: } 24952: else 24952: 24952: return _Res(__pos._M_node, 0); 24952: } 24952: 24952: template 24952: 24952: template 24952: 24952: 24952: 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_insert_unique_(const_iterator __position, 24952: 24952: _Arg&& __v, 24952: 24952: 24952: 24952: _NodeGen& __node_gen) 24952: { 24952: pair<_Base_ptr, _Base_ptr> __res 24952: = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); 24952: 24952: if (__res.second) 24952: return _M_insert_(__res.first, __res.second, 24952: std::forward<_Arg>(__v), 24952: __node_gen); 24952: return iterator(__res.first); 24952: } 24952: 24952: template 24952: pair::_Base_ptr, 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, 24952: _Compare, _Alloc>::_Base_ptr> 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) 24952: { 24952: iterator __pos = __position._M_const_cast(); 24952: typedef pair<_Base_ptr, _Base_ptr> _Res; 24952: 24952: 24952: if (__pos._M_node == _M_end()) 24952: { 24952: if (size() > 0 24952: && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) 24952: return _Res(0, _M_rightmost()); 24952: else 24952: return _M_get_insert_equal_pos(__k); 24952: } 24952: else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 24952: { 24952: 24952: iterator __before = __pos; 24952: if (__pos._M_node == _M_leftmost()) 24952: return _Res(_M_leftmost(), _M_leftmost()); 24952: else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) 24952: { 24952: if (_S_right(__before._M_node) == 0) 24952: return _Res(0, __before._M_node); 24952: else 24952: return _Res(__pos._M_node, __pos._M_node); 24952: } 24952: else 24952: return _M_get_insert_equal_pos(__k); 24952: } 24952: else 24952: { 24952: 24952: iterator __after = __pos; 24952: if (__pos._M_node == _M_rightmost()) 24952: return _Res(0, _M_rightmost()); 24952: else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) 24952: { 24952: if (_S_right(__pos._M_node) == 0) 24952: return _Res(0, __pos._M_node); 24952: else 24952: return _Res(__after._M_node, __after._M_node); 24952: } 24952: else 24952: return _Res(0, 0); 24952: } 24952: } 24952: 24952: template 24952: 24952: template 24952: 24952: 24952: 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_insert_equal_(const_iterator __position, 24952: 24952: _Arg&& __v, 24952: 24952: 24952: 24952: _NodeGen& __node_gen) 24952: { 24952: pair<_Base_ptr, _Base_ptr> __res 24952: = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); 24952: 24952: if (__res.second) 24952: return _M_insert_(__res.first, __res.second, 24952: std::forward<_Arg>(__v), 24952: __node_gen); 24952: 24952: return _M_insert_equal_lower(std::forward<_Arg>(__v)); 24952: } 24952: 24952: 24952: template 24952: auto 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_insert_node(_Base_ptr __x, _Base_ptr __p, _Link_type __z) 24952: -> iterator 24952: { 24952: bool __insert_left = (__x != 0 || __p == _M_end() 24952: || _M_impl._M_key_compare(_S_key(__z), 24952: _S_key(__p))); 24952: 24952: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 24952: this->_M_impl._M_header); 24952: ++_M_impl._M_node_count; 24952: return iterator(__z); 24952: } 24952: 24952: template 24952: auto 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_insert_lower_node(_Base_ptr __p, _Link_type __z) 24952: -> iterator 24952: { 24952: bool __insert_left = (__p == _M_end() 24952: || !_M_impl._M_key_compare(_S_key(__p), 24952: _S_key(__z))); 24952: 24952: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 24952: this->_M_impl._M_header); 24952: ++_M_impl._M_node_count; 24952: return iterator(__z); 24952: } 24952: 24952: template 24952: auto 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_insert_equal_lower_node(_Link_type __z) 24952: -> iterator 24952: { 24952: _Link_type __x = _M_begin(); 24952: _Base_ptr __y = _M_end(); 24952: while (__x != 0) 24952: { 24952: __y = __x; 24952: __x = !_M_impl._M_key_compare(_S_key(__x), _S_key(__z)) ? 24952: _S_left(__x) : _S_right(__x); 24952: } 24952: return _M_insert_lower_node(__y, __z); 24952: } 24952: 24952: template 24952: template 24952: auto 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_emplace_unique(_Args&&... __args) 24952: -> pair 24952: { 24952: _Auto_node __z(*this, std::forward<_Args>(__args)...); 24952: auto __res = _M_get_insert_unique_pos(__z._M_key()); 24952: if (__res.second) 24952: return {__z._M_insert(__res), true}; 24952: return {iterator(__res.first), false}; 24952: } 24952: 24952: template 24952: template 24952: auto 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_emplace_equal(_Args&&... __args) 24952: -> iterator 24952: { 24952: _Auto_node __z(*this, std::forward<_Args>(__args)...); 24952: auto __res = _M_get_insert_equal_pos(__z._M_key()); 24952: return __z._M_insert(__res); 24952: } 24952: 24952: template 24952: template 24952: auto 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args) 24952: -> iterator 24952: { 24952: _Auto_node __z(*this, std::forward<_Args>(__args)...); 24952: auto __res = _M_get_insert_hint_unique_pos(__pos, __z._M_key()); 24952: if (__res.second) 24952: return __z._M_insert(__res); 24952: return iterator(__res.first); 24952: } 24952: 24952: template 24952: template 24952: auto 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args) 24952: -> iterator 24952: { 24952: _Auto_node __z(*this, std::forward<_Args>(__args)...); 24952: auto __res = _M_get_insert_hint_equal_pos(__pos, __z._M_key()); 24952: if (__res.second) 24952: return __z._M_insert(__res); 24952: return __z._M_insert_equal_lower(); 24952: } 24952: 24952: 24952: 24952: template 24952: void 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_erase_aux(const_iterator __position) 24952: { 24952: _Link_type __y = 24952: static_cast<_Link_type>(_Rb_tree_rebalance_for_erase 24952: (const_cast<_Base_ptr>(__position._M_node), 24952: this->_M_impl._M_header)); 24952: _M_drop_node(__y); 24952: --_M_impl._M_node_count; 24952: } 24952: 24952: template 24952: void 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: _M_erase_aux(const_iterator __first, const_iterator __last) 24952: { 24952: if (__first == begin() && __last == end()) 24952: clear(); 24952: else 24952: while (__first != __last) 24952: _M_erase_aux(__first++); 24952: } 24952: 24952: template 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: erase(const _Key& __x) 24952: { 24952: pair __p = equal_range(__x); 24952: const size_type __old_size = size(); 24952: _M_erase_aux(__p.first, __p.second); 24952: return __old_size - size(); 24952: } 24952: 24952: template 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, 24952: _Compare, _Alloc>::iterator 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: find(const _Key& __k) 24952: { 24952: iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 24952: return (__j == end() 24952: || _M_impl._M_key_compare(__k, 24952: _S_key(__j._M_node))) ? end() : __j; 24952: } 24952: 24952: template 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, 24952: _Compare, _Alloc>::const_iterator 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: find(const _Key& __k) const 24952: { 24952: const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 24952: return (__j == end() 24952: || _M_impl._M_key_compare(__k, 24952: _S_key(__j._M_node))) ? end() : __j; 24952: } 24952: 24952: template 24952: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 24952: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 24952: count(const _Key& __k) const 24952: { 24952: pair __p = equal_range(__k); 24952: const size_type __n = std::distance(__p.first, __p.second); 24952: return __n; 24952: } 24952: 24952: __attribute__ ((__pure__)) unsigned int 24952: _Rb_tree_black_count(const _Rb_tree_node_base* __node, 24952: const _Rb_tree_node_base* __root) throw (); 24952: 24952: template 24952: bool 24952: _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const 24952: { 24952: if (_M_impl._M_node_count == 0 || begin() == end()) 24952: return _M_impl._M_node_count == 0 && begin() == end() 24952: && this->_M_impl._M_header._M_left == _M_end() 24952: && this->_M_impl._M_header._M_right == _M_end(); 24952: 24952: unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); 24952: for (const_iterator __it = begin(); __it != end(); ++__it) 24952: { 24952: _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); 24952: _Const_Link_type __L = _S_left(__x); 24952: _Const_Link_type __R = _S_right(__x); 24952: 24952: if (__x->_M_color == _S_red) 24952: if ((__L && __L->_M_color == _S_red) 24952: || (__R && __R->_M_color == _S_red)) 24952: return false; 24952: 24952: if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) 24952: return false; 24952: if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) 24952: return false; 24952: 24952: if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) 24952: return false; 24952: } 24952: 24952: if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) 24952: return false; 24952: if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) 24952: return false; 24952: return true; 24952: } 24952: 24952: 24952: 24952: template 24952: struct _Rb_tree_merge_helper<_Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>, 24952: _Cmp2> 24952: { 24952: private: 24952: friend class _Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>; 24952: 24952: static auto& 24952: _S_get_impl(_Rb_tree<_Key, _Val, _Sel, _Cmp2, _Alloc>& __tree) 24952: { return __tree._M_impl; } 24952: }; 24952: 24952: 24952: 24952: } 24952: # 63 "/usr/include/c++/13/map" 2 3 24952: # 1 "/usr/include/c++/13/bits/stl_map.h" 1 3 24952: # 66 "/usr/include/c++/13/bits/stl_map.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: class multimap; 24952: # 100 "/usr/include/c++/13/bits/stl_map.h" 3 24952: template , 24952: typename _Alloc = std::allocator > > 24952: class map 24952: { 24952: public: 24952: typedef _Key key_type; 24952: typedef _Tp mapped_type; 24952: typedef std::pair value_type; 24952: typedef _Compare key_compare; 24952: typedef _Alloc allocator_type; 24952: 24952: private: 24952: # 130 "/usr/include/c++/13/bits/stl_map.h" 3 24952: public: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: class value_compare 24952: : public std::binary_function 24952: { 24952: friend class map<_Key, _Tp, _Compare, _Alloc>; 24952: protected: 24952: _Compare comp; 24952: 24952: value_compare(_Compare __c) 24952: : comp(__c) { } 24952: 24952: public: 24952: bool operator()(const value_type& __x, const value_type& __y) const 24952: { return comp(__x.first, __y.first); } 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: private: 24952: 24952: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 24952: rebind::other _Pair_alloc_type; 24952: 24952: typedef _Rb_tree, 24952: key_compare, _Pair_alloc_type> _Rep_type; 24952: 24952: 24952: _Rep_type _M_t; 24952: 24952: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 24952: 24952: 24952: template> 24952: static constexpr bool __usable_key 24952: = __or_v, 24952: __and_, is_scalar<_Key>>>; 24952: 24952: 24952: public: 24952: 24952: 24952: typedef typename _Alloc_traits::pointer pointer; 24952: typedef typename _Alloc_traits::const_pointer const_pointer; 24952: typedef typename _Alloc_traits::reference reference; 24952: typedef typename _Alloc_traits::const_reference const_reference; 24952: typedef typename _Rep_type::iterator iterator; 24952: typedef typename _Rep_type::const_iterator const_iterator; 24952: typedef typename _Rep_type::size_type size_type; 24952: typedef typename _Rep_type::difference_type difference_type; 24952: typedef typename _Rep_type::reverse_iterator reverse_iterator; 24952: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 24952: 24952: 24952: using node_type = typename _Rep_type::node_type; 24952: using insert_return_type = typename _Rep_type::insert_return_type; 24952: # 197 "/usr/include/c++/13/bits/stl_map.h" 3 24952: map() = default; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: map(const _Compare& __comp, 24952: const allocator_type& __a = allocator_type()) 24952: : _M_t(__comp, _Pair_alloc_type(__a)) { } 24952: # 219 "/usr/include/c++/13/bits/stl_map.h" 3 24952: map(const map&) = default; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: map(map&&) = default; 24952: # 240 "/usr/include/c++/13/bits/stl_map.h" 3 24952: map(initializer_list __l, 24952: const _Compare& __comp = _Compare(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_t(__comp, _Pair_alloc_type(__a)) 24952: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 24952: 24952: 24952: explicit 24952: map(const allocator_type& __a) 24952: : _M_t(_Pair_alloc_type(__a)) { } 24952: 24952: 24952: map(const map& __m, const __type_identity_t& __a) 24952: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 24952: 24952: 24952: map(map&& __m, const __type_identity_t& __a) 24952: noexcept(is_nothrow_copy_constructible<_Compare>::value 24952: && _Alloc_traits::_S_always_equal()) 24952: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 24952: 24952: 24952: map(initializer_list __l, const allocator_type& __a) 24952: : _M_t(_Pair_alloc_type(__a)) 24952: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 24952: 24952: 24952: template 24952: map(_InputIterator __first, _InputIterator __last, 24952: const allocator_type& __a) 24952: : _M_t(_Pair_alloc_type(__a)) 24952: { _M_t._M_insert_range_unique(__first, __last); } 24952: # 284 "/usr/include/c++/13/bits/stl_map.h" 3 24952: template 24952: map(_InputIterator __first, _InputIterator __last) 24952: : _M_t() 24952: { _M_t._M_insert_range_unique(__first, __last); } 24952: # 301 "/usr/include/c++/13/bits/stl_map.h" 3 24952: template 24952: map(_InputIterator __first, _InputIterator __last, 24952: const _Compare& __comp, 24952: const allocator_type& __a = allocator_type()) 24952: : _M_t(__comp, _Pair_alloc_type(__a)) 24952: { _M_t._M_insert_range_unique(__first, __last); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ~map() = default; 24952: # 330 "/usr/include/c++/13/bits/stl_map.h" 3 24952: map& 24952: operator=(const map&) = default; 24952: 24952: 24952: map& 24952: operator=(map&&) = default; 24952: # 348 "/usr/include/c++/13/bits/stl_map.h" 3 24952: map& 24952: operator=(initializer_list __l) 24952: { 24952: _M_t._M_assign_unique(__l.begin(), __l.end()); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return allocator_type(_M_t.get_allocator()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: begin() noexcept 24952: { return _M_t.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: begin() const noexcept 24952: { return _M_t.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: end() noexcept 24952: { return _M_t.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: end() const noexcept 24952: { return _M_t.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: reverse_iterator 24952: rbegin() noexcept 24952: { return _M_t.rbegin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_reverse_iterator 24952: rbegin() const noexcept 24952: { return _M_t.rbegin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: reverse_iterator 24952: rend() noexcept 24952: { return _M_t.rend(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_reverse_iterator 24952: rend() const noexcept 24952: { return _M_t.rend(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: cbegin() const noexcept 24952: { return _M_t.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: cend() const noexcept 24952: { return _M_t.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_reverse_iterator 24952: crbegin() const noexcept 24952: { return _M_t.rbegin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_reverse_iterator 24952: crend() const noexcept 24952: { return _M_t.rend(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] bool 24952: empty() const noexcept 24952: { return _M_t.empty(); } 24952: 24952: 24952: size_type 24952: size() const noexcept 24952: { return _M_t.size(); } 24952: 24952: 24952: size_type 24952: max_size() const noexcept 24952: { return _M_t.max_size(); } 24952: # 503 "/usr/include/c++/13/bits/stl_map.h" 3 24952: mapped_type& 24952: operator[](const key_type& __k) 24952: { 24952: 24952: 24952: 24952: iterator __i = lower_bound(__k); 24952: 24952: if (__i == end() || key_comp()(__k, (*__i).first)) 24952: 24952: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 24952: std::tuple(__k), 24952: std::tuple<>()); 24952: 24952: 24952: 24952: return (*__i).second; 24952: } 24952: 24952: 24952: mapped_type& 24952: operator[](key_type&& __k) 24952: { 24952: 24952: 24952: 24952: iterator __i = lower_bound(__k); 24952: 24952: if (__i == end() || key_comp()(__k, (*__i).first)) 24952: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 24952: std::forward_as_tuple(std::move(__k)), 24952: std::tuple<>()); 24952: return (*__i).second; 24952: } 24952: # 548 "/usr/include/c++/13/bits/stl_map.h" 3 24952: mapped_type& 24952: at(const key_type& __k) 24952: { 24952: iterator __i = lower_bound(__k); 24952: if (__i == end() || key_comp()(__k, (*__i).first)) 24952: __throw_out_of_range(("map::at")); 24952: return (*__i).second; 24952: } 24952: 24952: const mapped_type& 24952: at(const key_type& __k) const 24952: { 24952: const_iterator __i = lower_bound(__k); 24952: if (__i == end() || key_comp()(__k, (*__i).first)) 24952: __throw_out_of_range(("map::at")); 24952: return (*__i).second; 24952: } 24952: # 586 "/usr/include/c++/13/bits/stl_map.h" 3 24952: template 24952: std::pair 24952: emplace(_Args&&... __args) 24952: { 24952: 24952: if constexpr (sizeof...(_Args) == 2) 24952: if constexpr (is_same_v>) 24952: { 24952: auto&& [__a, __v] = pair<_Args&...>(__args...); 24952: if constexpr (__usable_key) 24952: { 24952: const key_type& __k = __a; 24952: iterator __i = lower_bound(__k); 24952: if (__i == end() || key_comp()(__k, (*__i).first)) 24952: { 24952: __i = emplace_hint(__i, std::forward<_Args>(__args)...); 24952: return {__i, true}; 24952: } 24952: return {__i, false}; 24952: } 24952: } 24952: 24952: return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); 24952: } 24952: # 636 "/usr/include/c++/13/bits/stl_map.h" 3 24952: template 24952: iterator 24952: emplace_hint(const_iterator __pos, _Args&&... __args) 24952: { 24952: return _M_t._M_emplace_hint_unique(__pos, 24952: std::forward<_Args>(__args)...); 24952: } 24952: 24952: 24952: 24952: 24952: node_type 24952: extract(const_iterator __pos) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 24952: return _M_t.extract(__pos); 24952: } 24952: 24952: 24952: node_type 24952: extract(const key_type& __x) 24952: { return _M_t.extract(__x); } 24952: 24952: 24952: insert_return_type 24952: insert(node_type&& __nh) 24952: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 24952: 24952: 24952: iterator 24952: insert(const_iterator __hint, node_type&& __nh) 24952: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 24952: 24952: template 24952: friend struct std::_Rb_tree_merge_helper; 24952: 24952: template 24952: void 24952: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 24952: { 24952: using _Merge_helper = _Rb_tree_merge_helper; 24952: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 24952: { merge(__source); } 24952: 24952: template 24952: void 24952: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 24952: { 24952: using _Merge_helper = _Rb_tree_merge_helper; 24952: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 24952: { merge(__source); } 24952: # 721 "/usr/include/c++/13/bits/stl_map.h" 3 24952: template 24952: pair 24952: try_emplace(const key_type& __k, _Args&&... __args) 24952: { 24952: iterator __i = lower_bound(__k); 24952: if (__i == end() || key_comp()(__k, (*__i).first)) 24952: { 24952: __i = emplace_hint(__i, std::piecewise_construct, 24952: std::forward_as_tuple(__k), 24952: std::forward_as_tuple( 24952: std::forward<_Args>(__args)...)); 24952: return {__i, true}; 24952: } 24952: return {__i, false}; 24952: } 24952: 24952: 24952: template 24952: pair 24952: try_emplace(key_type&& __k, _Args&&... __args) 24952: { 24952: iterator __i = lower_bound(__k); 24952: if (__i == end() || key_comp()(__k, (*__i).first)) 24952: { 24952: __i = emplace_hint(__i, std::piecewise_construct, 24952: std::forward_as_tuple(std::move(__k)), 24952: std::forward_as_tuple( 24952: std::forward<_Args>(__args)...)); 24952: return {__i, true}; 24952: } 24952: return {__i, false}; 24952: } 24952: # 781 "/usr/include/c++/13/bits/stl_map.h" 3 24952: template 24952: iterator 24952: try_emplace(const_iterator __hint, const key_type& __k, 24952: _Args&&... __args) 24952: { 24952: iterator __i; 24952: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 24952: if (__true_hint.second) 24952: __i = emplace_hint(iterator(__true_hint.second), 24952: std::piecewise_construct, 24952: std::forward_as_tuple(__k), 24952: std::forward_as_tuple( 24952: std::forward<_Args>(__args)...)); 24952: else 24952: __i = iterator(__true_hint.first); 24952: return __i; 24952: } 24952: 24952: 24952: template 24952: iterator 24952: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 24952: { 24952: iterator __i; 24952: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 24952: if (__true_hint.second) 24952: __i = emplace_hint(iterator(__true_hint.second), 24952: std::piecewise_construct, 24952: std::forward_as_tuple(std::move(__k)), 24952: std::forward_as_tuple( 24952: std::forward<_Args>(__args)...)); 24952: else 24952: __i = iterator(__true_hint.first); 24952: return __i; 24952: } 24952: # 834 "/usr/include/c++/13/bits/stl_map.h" 3 24952: std::pair 24952: insert(const value_type& __x) 24952: { return _M_t._M_insert_unique(__x); } 24952: 24952: 24952: 24952: 24952: std::pair 24952: insert(value_type&& __x) 24952: { return _M_t._M_insert_unique(std::move(__x)); } 24952: 24952: template 24952: __enable_if_t::value, 24952: pair> 24952: insert(_Pair&& __x) 24952: { 24952: 24952: using _P2 = remove_reference_t<_Pair>; 24952: if constexpr (__is_pair>) 24952: if constexpr (is_same_v>) 24952: if constexpr (__usable_key) 24952: { 24952: const key_type& __k = __x.first; 24952: iterator __i = lower_bound(__k); 24952: if (__i == end() || key_comp()(__k, (*__i).first)) 24952: { 24952: __i = emplace_hint(__i, std::forward<_Pair>(__x)); 24952: return {__i, true}; 24952: } 24952: return {__i, false}; 24952: } 24952: 24952: return _M_t._M_emplace_unique(std::forward<_Pair>(__x)); 24952: } 24952: # 879 "/usr/include/c++/13/bits/stl_map.h" 3 24952: void 24952: insert(std::initializer_list __list) 24952: { insert(__list.begin(), __list.end()); } 24952: # 908 "/usr/include/c++/13/bits/stl_map.h" 3 24952: iterator 24952: 24952: insert(const_iterator __position, const value_type& __x) 24952: 24952: 24952: 24952: { return _M_t._M_insert_unique_(__position, __x); } 24952: 24952: 24952: 24952: 24952: iterator 24952: insert(const_iterator __position, value_type&& __x) 24952: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 24952: 24952: template 24952: __enable_if_t::value, iterator> 24952: insert(const_iterator __position, _Pair&& __x) 24952: { 24952: return _M_t._M_emplace_hint_unique(__position, 24952: std::forward<_Pair>(__x)); 24952: } 24952: # 941 "/usr/include/c++/13/bits/stl_map.h" 3 24952: template 24952: void 24952: insert(_InputIterator __first, _InputIterator __last) 24952: { _M_t._M_insert_range_unique(__first, __last); } 24952: # 966 "/usr/include/c++/13/bits/stl_map.h" 3 24952: template 24952: pair 24952: insert_or_assign(const key_type& __k, _Obj&& __obj) 24952: { 24952: iterator __i = lower_bound(__k); 24952: if (__i == end() || key_comp()(__k, (*__i).first)) 24952: { 24952: __i = emplace_hint(__i, std::piecewise_construct, 24952: std::forward_as_tuple(__k), 24952: std::forward_as_tuple( 24952: std::forward<_Obj>(__obj))); 24952: return {__i, true}; 24952: } 24952: (*__i).second = std::forward<_Obj>(__obj); 24952: return {__i, false}; 24952: } 24952: 24952: 24952: template 24952: pair 24952: insert_or_assign(key_type&& __k, _Obj&& __obj) 24952: { 24952: iterator __i = lower_bound(__k); 24952: if (__i == end() || key_comp()(__k, (*__i).first)) 24952: { 24952: __i = emplace_hint(__i, std::piecewise_construct, 24952: std::forward_as_tuple(std::move(__k)), 24952: std::forward_as_tuple( 24952: std::forward<_Obj>(__obj))); 24952: return {__i, true}; 24952: } 24952: (*__i).second = std::forward<_Obj>(__obj); 24952: return {__i, false}; 24952: } 24952: # 1021 "/usr/include/c++/13/bits/stl_map.h" 3 24952: template 24952: iterator 24952: insert_or_assign(const_iterator __hint, 24952: const key_type& __k, _Obj&& __obj) 24952: { 24952: iterator __i; 24952: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 24952: if (__true_hint.second) 24952: { 24952: return emplace_hint(iterator(__true_hint.second), 24952: std::piecewise_construct, 24952: std::forward_as_tuple(__k), 24952: std::forward_as_tuple( 24952: std::forward<_Obj>(__obj))); 24952: } 24952: __i = iterator(__true_hint.first); 24952: (*__i).second = std::forward<_Obj>(__obj); 24952: return __i; 24952: } 24952: 24952: 24952: template 24952: iterator 24952: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 24952: { 24952: iterator __i; 24952: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 24952: if (__true_hint.second) 24952: { 24952: return emplace_hint(iterator(__true_hint.second), 24952: std::piecewise_construct, 24952: std::forward_as_tuple(std::move(__k)), 24952: std::forward_as_tuple( 24952: std::forward<_Obj>(__obj))); 24952: } 24952: __i = iterator(__true_hint.first); 24952: (*__i).second = std::forward<_Obj>(__obj); 24952: return __i; 24952: } 24952: # 1080 "/usr/include/c++/13/bits/stl_map.h" 3 24952: iterator 24952: erase(const_iterator __position) 24952: { return _M_t.erase(__position); } 24952: 24952: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: iterator 24952: erase(iterator __position) 24952: { return _M_t.erase(__position); } 24952: # 1117 "/usr/include/c++/13/bits/stl_map.h" 3 24952: size_type 24952: erase(const key_type& __x) 24952: { return _M_t.erase(__x); } 24952: # 1137 "/usr/include/c++/13/bits/stl_map.h" 3 24952: iterator 24952: erase(const_iterator __first, const_iterator __last) 24952: { return _M_t.erase(__first, __last); } 24952: # 1171 "/usr/include/c++/13/bits/stl_map.h" 3 24952: void 24952: swap(map& __x) 24952: noexcept(__is_nothrow_swappable<_Compare>::value) 24952: { _M_t.swap(__x._M_t); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: clear() noexcept 24952: { _M_t.clear(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: key_compare 24952: key_comp() const 24952: { return _M_t.key_comp(); } 24952: 24952: 24952: 24952: 24952: 24952: value_compare 24952: value_comp() const 24952: { return value_compare(_M_t.key_comp()); } 24952: # 1218 "/usr/include/c++/13/bits/stl_map.h" 3 24952: iterator 24952: find(const key_type& __x) 24952: { return _M_t.find(__x); } 24952: 24952: 24952: template 24952: auto 24952: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 24952: { return _M_t._M_find_tr(__x); } 24952: # 1243 "/usr/include/c++/13/bits/stl_map.h" 3 24952: const_iterator 24952: find(const key_type& __x) const 24952: { return _M_t.find(__x); } 24952: 24952: 24952: template 24952: auto 24952: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 24952: { return _M_t._M_find_tr(__x); } 24952: # 1264 "/usr/include/c++/13/bits/stl_map.h" 3 24952: size_type 24952: count(const key_type& __x) const 24952: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 24952: 24952: 24952: template 24952: auto 24952: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 24952: { return _M_t._M_count_tr(__x); } 24952: # 1307 "/usr/include/c++/13/bits/stl_map.h" 3 24952: iterator 24952: lower_bound(const key_type& __x) 24952: { return _M_t.lower_bound(__x); } 24952: 24952: 24952: template 24952: auto 24952: lower_bound(const _Kt& __x) 24952: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 24952: { return iterator(_M_t._M_lower_bound_tr(__x)); } 24952: # 1332 "/usr/include/c++/13/bits/stl_map.h" 3 24952: const_iterator 24952: lower_bound(const key_type& __x) const 24952: { return _M_t.lower_bound(__x); } 24952: 24952: 24952: template 24952: auto 24952: lower_bound(const _Kt& __x) const 24952: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 24952: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 24952: # 1352 "/usr/include/c++/13/bits/stl_map.h" 3 24952: iterator 24952: upper_bound(const key_type& __x) 24952: { return _M_t.upper_bound(__x); } 24952: 24952: 24952: template 24952: auto 24952: upper_bound(const _Kt& __x) 24952: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 24952: { return iterator(_M_t._M_upper_bound_tr(__x)); } 24952: # 1372 "/usr/include/c++/13/bits/stl_map.h" 3 24952: const_iterator 24952: upper_bound(const key_type& __x) const 24952: { return _M_t.upper_bound(__x); } 24952: 24952: 24952: template 24952: auto 24952: upper_bound(const _Kt& __x) const 24952: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 24952: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 24952: # 1401 "/usr/include/c++/13/bits/stl_map.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) 24952: { return _M_t.equal_range(__x); } 24952: 24952: 24952: template 24952: auto 24952: equal_range(const _Kt& __x) 24952: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 24952: { return pair(_M_t._M_equal_range_tr(__x)); } 24952: # 1430 "/usr/include/c++/13/bits/stl_map.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) const 24952: { return _M_t.equal_range(__x); } 24952: 24952: 24952: template 24952: auto 24952: equal_range(const _Kt& __x) const 24952: -> decltype(pair( 24952: _M_t._M_equal_range_tr(__x))) 24952: { 24952: return pair( 24952: _M_t._M_equal_range_tr(__x)); 24952: } 24952: 24952: 24952: 24952: template 24952: friend bool 24952: operator==(const map<_K1, _T1, _C1, _A1>&, 24952: const map<_K1, _T1, _C1, _A1>&); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: friend bool 24952: operator<(const map<_K1, _T1, _C1, _A1>&, 24952: const map<_K1, _T1, _C1, _A1>&); 24952: 24952: }; 24952: 24952: 24952: 24952: 24952: template>, 24952: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 24952: typename = _RequireInputIter<_InputIterator>, 24952: typename = _RequireNotAllocator<_Compare>, 24952: typename = _RequireAllocator<_Allocator>> 24952: map(_InputIterator, _InputIterator, 24952: _Compare = _Compare(), _Allocator = _Allocator()) 24952: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 24952: _Compare, _Allocator>; 24952: 24952: template, 24952: typename _Allocator = allocator>, 24952: typename = _RequireNotAllocator<_Compare>, 24952: typename = _RequireAllocator<_Allocator>> 24952: map(initializer_list>, 24952: _Compare = _Compare(), _Allocator = _Allocator()) 24952: -> map<_Key, _Tp, _Compare, _Allocator>; 24952: 24952: template , 24952: typename = _RequireAllocator<_Allocator>> 24952: map(_InputIterator, _InputIterator, _Allocator) 24952: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 24952: less<__iter_key_t<_InputIterator>>, _Allocator>; 24952: 24952: template> 24952: map(initializer_list>, _Allocator) 24952: -> map<_Key, _Tp, less<_Key>, _Allocator>; 24952: # 1511 "/usr/include/c++/13/bits/stl_map.h" 3 24952: template 24952: inline bool 24952: operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, 24952: const map<_Key, _Tp, _Compare, _Alloc>& __y) 24952: { return __x._M_t == __y._M_t; } 24952: # 1549 "/usr/include/c++/13/bits/stl_map.h" 3 24952: template 24952: inline bool 24952: operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, 24952: const map<_Key, _Tp, _Compare, _Alloc>& __y) 24952: { return __x._M_t < __y._M_t; } 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 24952: const map<_Key, _Tp, _Compare, _Alloc>& __y) 24952: { return !(__x == __y); } 24952: 24952: 24952: template 24952: inline bool 24952: operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, 24952: const map<_Key, _Tp, _Compare, _Alloc>& __y) 24952: { return __y < __x; } 24952: 24952: 24952: template 24952: inline bool 24952: operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 24952: const map<_Key, _Tp, _Compare, _Alloc>& __y) 24952: { return !(__y < __x); } 24952: 24952: 24952: template 24952: inline bool 24952: operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 24952: const map<_Key, _Tp, _Compare, _Alloc>& __y) 24952: { return !(__x < __y); } 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(map<_Key, _Tp, _Compare, _Alloc>& __x, 24952: map<_Key, _Tp, _Compare, _Alloc>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct 24952: _Rb_tree_merge_helper, 24952: _Cmp2> 24952: { 24952: private: 24952: friend class std::map<_Key, _Val, _Cmp1, _Alloc>; 24952: 24952: static auto& 24952: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 24952: { return __map._M_t; } 24952: 24952: static auto& 24952: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 24952: { return __map._M_t; } 24952: }; 24952: 24952: 24952: 24952: } 24952: # 64 "/usr/include/c++/13/map" 2 3 24952: # 1 "/usr/include/c++/13/bits/stl_multimap.h" 1 3 24952: # 64 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: class map; 24952: # 98 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: template , 24952: typename _Alloc = std::allocator > > 24952: class multimap 24952: { 24952: public: 24952: typedef _Key key_type; 24952: typedef _Tp mapped_type; 24952: typedef std::pair value_type; 24952: typedef _Compare key_compare; 24952: typedef _Alloc allocator_type; 24952: 24952: private: 24952: # 129 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: public: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: class value_compare 24952: : public std::binary_function 24952: { 24952: friend class multimap<_Key, _Tp, _Compare, _Alloc>; 24952: protected: 24952: _Compare comp; 24952: 24952: value_compare(_Compare __c) 24952: : comp(__c) { } 24952: 24952: public: 24952: bool operator()(const value_type& __x, const value_type& __y) const 24952: { return comp(__x.first, __y.first); } 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: private: 24952: 24952: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 24952: rebind::other _Pair_alloc_type; 24952: 24952: typedef _Rb_tree, 24952: key_compare, _Pair_alloc_type> _Rep_type; 24952: 24952: _Rep_type _M_t; 24952: 24952: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 24952: 24952: public: 24952: 24952: 24952: typedef typename _Alloc_traits::pointer pointer; 24952: typedef typename _Alloc_traits::const_pointer const_pointer; 24952: typedef typename _Alloc_traits::reference reference; 24952: typedef typename _Alloc_traits::const_reference const_reference; 24952: typedef typename _Rep_type::iterator iterator; 24952: typedef typename _Rep_type::const_iterator const_iterator; 24952: typedef typename _Rep_type::size_type size_type; 24952: typedef typename _Rep_type::difference_type difference_type; 24952: typedef typename _Rep_type::reverse_iterator reverse_iterator; 24952: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 24952: 24952: 24952: using node_type = typename _Rep_type::node_type; 24952: # 187 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: multimap() = default; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: multimap(const _Compare& __comp, 24952: const allocator_type& __a = allocator_type()) 24952: : _M_t(__comp, _Pair_alloc_type(__a)) { } 24952: # 209 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: multimap(const multimap&) = default; 24952: # 218 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: multimap(multimap&&) = default; 24952: # 230 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: multimap(initializer_list __l, 24952: const _Compare& __comp = _Compare(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_t(__comp, _Pair_alloc_type(__a)) 24952: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 24952: 24952: 24952: explicit 24952: multimap(const allocator_type& __a) 24952: : _M_t(_Pair_alloc_type(__a)) { } 24952: 24952: 24952: multimap(const multimap& __m, 24952: const __type_identity_t& __a) 24952: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 24952: 24952: 24952: multimap(multimap&& __m, const __type_identity_t& __a) 24952: noexcept(is_nothrow_copy_constructible<_Compare>::value 24952: && _Alloc_traits::_S_always_equal()) 24952: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 24952: 24952: 24952: multimap(initializer_list __l, const allocator_type& __a) 24952: : _M_t(_Pair_alloc_type(__a)) 24952: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 24952: 24952: 24952: template 24952: multimap(_InputIterator __first, _InputIterator __last, 24952: const allocator_type& __a) 24952: : _M_t(_Pair_alloc_type(__a)) 24952: { _M_t._M_insert_range_equal(__first, __last); } 24952: # 274 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: template 24952: multimap(_InputIterator __first, _InputIterator __last) 24952: : _M_t() 24952: { _M_t._M_insert_range_equal(__first, __last); } 24952: # 290 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: template 24952: multimap(_InputIterator __first, _InputIterator __last, 24952: const _Compare& __comp, 24952: const allocator_type& __a = allocator_type()) 24952: : _M_t(__comp, _Pair_alloc_type(__a)) 24952: { _M_t._M_insert_range_equal(__first, __last); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ~multimap() = default; 24952: # 319 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: multimap& 24952: operator=(const multimap&) = default; 24952: 24952: 24952: multimap& 24952: operator=(multimap&&) = default; 24952: # 337 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: multimap& 24952: operator=(initializer_list __l) 24952: { 24952: _M_t._M_assign_equal(__l.begin(), __l.end()); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return allocator_type(_M_t.get_allocator()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: begin() noexcept 24952: { return _M_t.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: begin() const noexcept 24952: { return _M_t.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: end() noexcept 24952: { return _M_t.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: end() const noexcept 24952: { return _M_t.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: reverse_iterator 24952: rbegin() noexcept 24952: { return _M_t.rbegin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_reverse_iterator 24952: rbegin() const noexcept 24952: { return _M_t.rbegin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: reverse_iterator 24952: rend() noexcept 24952: { return _M_t.rend(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_reverse_iterator 24952: rend() const noexcept 24952: { return _M_t.rend(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: cbegin() const noexcept 24952: { return _M_t.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_iterator 24952: cend() const noexcept 24952: { return _M_t.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_reverse_iterator 24952: crbegin() const noexcept 24952: { return _M_t.rbegin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const_reverse_iterator 24952: crend() const noexcept 24952: { return _M_t.rend(); } 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] bool 24952: empty() const noexcept 24952: { return _M_t.empty(); } 24952: 24952: 24952: size_type 24952: size() const noexcept 24952: { return _M_t.size(); } 24952: 24952: 24952: size_type 24952: max_size() const noexcept 24952: { return _M_t.max_size(); } 24952: # 495 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: template 24952: iterator 24952: emplace(_Args&&... __args) 24952: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 24952: # 522 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: template 24952: iterator 24952: emplace_hint(const_iterator __pos, _Args&&... __args) 24952: { 24952: return _M_t._M_emplace_hint_equal(__pos, 24952: std::forward<_Args>(__args)...); 24952: } 24952: # 544 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: iterator 24952: insert(const value_type& __x) 24952: { return _M_t._M_insert_equal(__x); } 24952: 24952: 24952: 24952: 24952: iterator 24952: insert(value_type&& __x) 24952: { return _M_t._M_insert_equal(std::move(__x)); } 24952: 24952: template 24952: __enable_if_t::value, iterator> 24952: insert(_Pair&& __x) 24952: { return _M_t._M_emplace_equal(std::forward<_Pair>(__x)); } 24952: # 583 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: iterator 24952: 24952: insert(const_iterator __position, const value_type& __x) 24952: 24952: 24952: 24952: { return _M_t._M_insert_equal_(__position, __x); } 24952: 24952: 24952: 24952: 24952: iterator 24952: insert(const_iterator __position, value_type&& __x) 24952: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 24952: 24952: template 24952: __enable_if_t::value, iterator> 24952: insert(const_iterator __position, _Pair&& __x) 24952: { 24952: return _M_t._M_emplace_hint_equal(__position, 24952: std::forward<_Pair>(__x)); 24952: } 24952: # 617 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: template 24952: void 24952: insert(_InputIterator __first, _InputIterator __last) 24952: { _M_t._M_insert_range_equal(__first, __last); } 24952: # 630 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: void 24952: insert(initializer_list __l) 24952: { this->insert(__l.begin(), __l.end()); } 24952: 24952: 24952: 24952: 24952: node_type 24952: extract(const_iterator __pos) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 24952: return _M_t.extract(__pos); 24952: } 24952: 24952: 24952: node_type 24952: extract(const key_type& __x) 24952: { return _M_t.extract(__x); } 24952: 24952: 24952: iterator 24952: insert(node_type&& __nh) 24952: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 24952: 24952: 24952: iterator 24952: insert(const_iterator __hint, node_type&& __nh) 24952: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 24952: 24952: template 24952: friend struct std::_Rb_tree_merge_helper; 24952: 24952: template 24952: void 24952: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 24952: { 24952: using _Merge_helper = _Rb_tree_merge_helper; 24952: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 24952: { merge(__source); } 24952: 24952: template 24952: void 24952: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 24952: { 24952: using _Merge_helper = _Rb_tree_merge_helper; 24952: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 24952: { merge(__source); } 24952: # 707 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: iterator 24952: erase(const_iterator __position) 24952: { return _M_t.erase(__position); } 24952: 24952: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: iterator 24952: erase(iterator __position) 24952: { return _M_t.erase(__position); } 24952: # 744 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: size_type 24952: erase(const key_type& __x) 24952: { return _M_t.erase(__x); } 24952: # 765 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: iterator 24952: erase(const_iterator __first, const_iterator __last) 24952: { return _M_t.erase(__first, __last); } 24952: # 802 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: void 24952: swap(multimap& __x) 24952: noexcept(__is_nothrow_swappable<_Compare>::value) 24952: { _M_t.swap(__x._M_t); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: clear() noexcept 24952: { _M_t.clear(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: key_compare 24952: key_comp() const 24952: { return _M_t.key_comp(); } 24952: 24952: 24952: 24952: 24952: 24952: value_compare 24952: value_comp() const 24952: { return value_compare(_M_t.key_comp()); } 24952: # 848 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: iterator 24952: find(const key_type& __x) 24952: { return _M_t.find(__x); } 24952: 24952: 24952: template 24952: auto 24952: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 24952: { return _M_t._M_find_tr(__x); } 24952: # 872 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: const_iterator 24952: find(const key_type& __x) const 24952: { return _M_t.find(__x); } 24952: 24952: 24952: template 24952: auto 24952: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 24952: { return _M_t._M_find_tr(__x); } 24952: # 890 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: size_type 24952: count(const key_type& __x) const 24952: { return _M_t.count(__x); } 24952: 24952: 24952: template 24952: auto 24952: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 24952: { return _M_t._M_count_tr(__x); } 24952: # 933 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: iterator 24952: lower_bound(const key_type& __x) 24952: { return _M_t.lower_bound(__x); } 24952: 24952: 24952: template 24952: auto 24952: lower_bound(const _Kt& __x) 24952: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 24952: { return iterator(_M_t._M_lower_bound_tr(__x)); } 24952: # 958 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: const_iterator 24952: lower_bound(const key_type& __x) const 24952: { return _M_t.lower_bound(__x); } 24952: 24952: 24952: template 24952: auto 24952: lower_bound(const _Kt& __x) const 24952: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 24952: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 24952: # 978 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: iterator 24952: upper_bound(const key_type& __x) 24952: { return _M_t.upper_bound(__x); } 24952: 24952: 24952: template 24952: auto 24952: upper_bound(const _Kt& __x) 24952: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 24952: { return iterator(_M_t._M_upper_bound_tr(__x)); } 24952: # 998 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: const_iterator 24952: upper_bound(const key_type& __x) const 24952: { return _M_t.upper_bound(__x); } 24952: 24952: 24952: template 24952: auto 24952: upper_bound(const _Kt& __x) const 24952: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 24952: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 24952: # 1025 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) 24952: { return _M_t.equal_range(__x); } 24952: 24952: 24952: template 24952: auto 24952: equal_range(const _Kt& __x) 24952: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 24952: { return pair(_M_t._M_equal_range_tr(__x)); } 24952: # 1052 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) const 24952: { return _M_t.equal_range(__x); } 24952: 24952: 24952: template 24952: auto 24952: equal_range(const _Kt& __x) const 24952: -> decltype(pair( 24952: _M_t._M_equal_range_tr(__x))) 24952: { 24952: return pair( 24952: _M_t._M_equal_range_tr(__x)); 24952: } 24952: 24952: 24952: 24952: template 24952: friend bool 24952: operator==(const multimap<_K1, _T1, _C1, _A1>&, 24952: const multimap<_K1, _T1, _C1, _A1>&); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: friend bool 24952: operator<(const multimap<_K1, _T1, _C1, _A1>&, 24952: const multimap<_K1, _T1, _C1, _A1>&); 24952: 24952: }; 24952: 24952: 24952: 24952: template>, 24952: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 24952: typename = _RequireInputIter<_InputIterator>, 24952: typename = _RequireNotAllocator<_Compare>, 24952: typename = _RequireAllocator<_Allocator>> 24952: multimap(_InputIterator, _InputIterator, 24952: _Compare = _Compare(), _Allocator = _Allocator()) 24952: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 24952: _Compare, _Allocator>; 24952: 24952: template, 24952: typename _Allocator = allocator>, 24952: typename = _RequireNotAllocator<_Compare>, 24952: typename = _RequireAllocator<_Allocator>> 24952: multimap(initializer_list>, 24952: _Compare = _Compare(), _Allocator = _Allocator()) 24952: -> multimap<_Key, _Tp, _Compare, _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: multimap(_InputIterator, _InputIterator, _Allocator) 24952: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 24952: less<__iter_key_t<_InputIterator>>, _Allocator>; 24952: 24952: template> 24952: multimap(initializer_list>, _Allocator) 24952: -> multimap<_Key, _Tp, less<_Key>, _Allocator>; 24952: # 1132 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: template 24952: inline bool 24952: operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 24952: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 24952: { return __x._M_t == __y._M_t; } 24952: # 1170 "/usr/include/c++/13/bits/stl_multimap.h" 3 24952: template 24952: inline bool 24952: operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 24952: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 24952: { return __x._M_t < __y._M_t; } 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 24952: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 24952: { return !(__x == __y); } 24952: 24952: 24952: template 24952: inline bool 24952: operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 24952: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 24952: { return __y < __x; } 24952: 24952: 24952: template 24952: inline bool 24952: operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 24952: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 24952: { return !(__y < __x); } 24952: 24952: 24952: template 24952: inline bool 24952: operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 24952: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 24952: { return !(__x < __y); } 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, 24952: multimap<_Key, _Tp, _Compare, _Alloc>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct 24952: _Rb_tree_merge_helper, 24952: _Cmp2> 24952: { 24952: private: 24952: friend class std::multimap<_Key, _Val, _Cmp1, _Alloc>; 24952: 24952: static auto& 24952: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 24952: { return __map._M_t; } 24952: 24952: static auto& 24952: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 24952: { return __map._M_t; } 24952: }; 24952: 24952: 24952: 24952: } 24952: # 65 "/usr/include/c++/13/map" 2 3 24952: # 74 "/usr/include/c++/13/map" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: namespace pmr 24952: { 24952: template> 24952: using map 24952: = std::map<_Key, _Tp, _Cmp, 24952: polymorphic_allocator>>; 24952: template> 24952: using multimap 24952: = std::multimap<_Key, _Tp, _Cmp, 24952: polymorphic_allocator>>; 24952: } 24952: 24952: } 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 2 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 24952: 24952: # 1 "/usr/include/c++/13/cassert" 1 3 24952: # 41 "/usr/include/c++/13/cassert" 3 24952: 24952: # 42 "/usr/include/c++/13/cassert" 3 24952: 24952: 24952: # 1 "/usr/include/assert.h" 1 3 4 24952: # 45 "/usr/include/c++/13/cassert" 2 3 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 2 24952: 24952: # 1 "/usr/include/c++/13/mutex" 1 3 24952: # 32 "/usr/include/c++/13/mutex" 3 24952: 24952: # 33 "/usr/include/c++/13/mutex" 3 24952: # 44 "/usr/include/c++/13/mutex" 3 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/error_constants.h" 1 3 24952: # 34 "/usr/include/arm-linux-gnueabihf/c++/13/bits/error_constants.h" 3 24952: # 1 "/usr/include/c++/13/cerrno" 1 3 24952: # 39 "/usr/include/c++/13/cerrno" 3 24952: 24952: # 40 "/usr/include/c++/13/cerrno" 3 24952: # 35 "/usr/include/arm-linux-gnueabihf/c++/13/bits/error_constants.h" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: enum class errc 24952: { 24952: address_family_not_supported = 97, 24952: address_in_use = 98, 24952: address_not_available = 99, 24952: already_connected = 106, 24952: argument_list_too_long = 7, 24952: argument_out_of_domain = 33, 24952: bad_address = 14, 24952: bad_file_descriptor = 9, 24952: 24952: 24952: bad_message = 74, 24952: 24952: 24952: broken_pipe = 32, 24952: connection_aborted = 103, 24952: connection_already_in_progress = 114, 24952: connection_refused = 111, 24952: connection_reset = 104, 24952: cross_device_link = 18, 24952: destination_address_required = 89, 24952: device_or_resource_busy = 16, 24952: directory_not_empty = 39, 24952: executable_format_error = 8, 24952: file_exists = 17, 24952: file_too_large = 27, 24952: filename_too_long = 36, 24952: function_not_supported = 38, 24952: host_unreachable = 113, 24952: 24952: 24952: identifier_removed = 43, 24952: 24952: 24952: illegal_byte_sequence = 84, 24952: inappropriate_io_control_operation = 25, 24952: interrupted = 4, 24952: invalid_argument = 22, 24952: invalid_seek = 29, 24952: io_error = 5, 24952: is_a_directory = 21, 24952: message_size = 90, 24952: network_down = 100, 24952: network_reset = 102, 24952: network_unreachable = 101, 24952: no_buffer_space = 105, 24952: no_child_process = 10, 24952: 24952: 24952: no_link = 67, 24952: 24952: 24952: no_lock_available = 37, 24952: 24952: 24952: no_message_available = 61, 24952: 24952: 24952: no_message = 42, 24952: no_protocol_option = 92, 24952: no_space_on_device = 28, 24952: 24952: 24952: no_stream_resources = 63, 24952: 24952: 24952: no_such_device_or_address = 6, 24952: no_such_device = 19, 24952: no_such_file_or_directory = 2, 24952: no_such_process = 3, 24952: not_a_directory = 20, 24952: not_a_socket = 88, 24952: 24952: 24952: not_a_stream = 60, 24952: 24952: 24952: not_connected = 107, 24952: not_enough_memory = 12, 24952: 24952: 24952: not_supported = 95, 24952: 24952: 24952: 24952: operation_canceled = 125, 24952: 24952: 24952: operation_in_progress = 115, 24952: operation_not_permitted = 1, 24952: operation_not_supported = 95, 24952: operation_would_block = 11, 24952: 24952: 24952: owner_dead = 130, 24952: 24952: 24952: permission_denied = 13, 24952: 24952: 24952: protocol_error = 71, 24952: 24952: 24952: protocol_not_supported = 93, 24952: read_only_file_system = 30, 24952: resource_deadlock_would_occur = 35, 24952: resource_unavailable_try_again = 11, 24952: result_out_of_range = 34, 24952: 24952: 24952: state_not_recoverable = 131, 24952: 24952: 24952: 24952: stream_timeout = 62, 24952: 24952: 24952: 24952: text_file_busy = 26, 24952: 24952: 24952: timed_out = 110, 24952: too_many_files_open_in_system = 23, 24952: too_many_files_open = 24, 24952: too_many_links = 31, 24952: too_many_symbolic_link_levels = 40, 24952: 24952: 24952: value_too_large = 75, 24952: 24952: 24952: 24952: 24952: wrong_protocol_type = 91 24952: }; 24952: 24952: 24952: } 24952: # 45 "/usr/include/c++/13/mutex" 2 3 24952: # 1 "/usr/include/c++/13/bits/std_mutex.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/std_mutex.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/std_mutex.h" 3 24952: # 43 "/usr/include/c++/13/bits/std_mutex.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 59 "/usr/include/c++/13/bits/std_mutex.h" 3 24952: class __mutex_base 24952: { 24952: protected: 24952: typedef __gthread_mutex_t __native_type; 24952: 24952: 24952: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 24952: 24952: constexpr __mutex_base() noexcept = default; 24952: # 80 "/usr/include/c++/13/bits/std_mutex.h" 3 24952: __mutex_base(const __mutex_base&) = delete; 24952: __mutex_base& operator=(const __mutex_base&) = delete; 24952: }; 24952: # 96 "/usr/include/c++/13/bits/std_mutex.h" 3 24952: class mutex : private __mutex_base 24952: { 24952: public: 24952: typedef __native_type* native_handle_type; 24952: 24952: 24952: constexpr 24952: 24952: mutex() noexcept = default; 24952: ~mutex() = default; 24952: 24952: mutex(const mutex&) = delete; 24952: mutex& operator=(const mutex&) = delete; 24952: 24952: void 24952: lock() 24952: { 24952: int __e = __gthread_mutex_lock(&_M_mutex); 24952: 24952: 24952: if (__e) 24952: __throw_system_error(__e); 24952: } 24952: 24952: [[__nodiscard__]] 24952: bool 24952: try_lock() noexcept 24952: { 24952: 24952: return !__gthread_mutex_trylock(&_M_mutex); 24952: } 24952: 24952: void 24952: unlock() 24952: { 24952: 24952: __gthread_mutex_unlock(&_M_mutex); 24952: } 24952: 24952: native_handle_type 24952: native_handle() noexcept 24952: { return &_M_mutex; } 24952: }; 24952: 24952: 24952: 24952: 24952: class __condvar 24952: { 24952: using timespec = __gthread_time_t; 24952: 24952: public: 24952: __condvar() noexcept 24952: { 24952: 24952: 24952: 24952: } 24952: 24952: ~__condvar() 24952: { 24952: int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); 24952: do { if (std::__is_constant_evaluated() && !bool(__e != 16)) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: __condvar(const __condvar&) = delete; 24952: __condvar& operator=(const __condvar&) = delete; 24952: 24952: __gthread_cond_t* native_handle() noexcept { return &_M_cond; } 24952: 24952: 24952: void 24952: wait(mutex& __m) 24952: { 24952: int __e __attribute__((__unused__)) 24952: = __gthread_cond_wait(&_M_cond, __m.native_handle()); 24952: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: void 24952: wait_until(mutex& __m, timespec& __abs_time) 24952: { 24952: __gthread_cond_timedwait(&_M_cond, __m.native_handle(), &__abs_time); 24952: } 24952: 24952: 24952: void 24952: wait_until(mutex& __m, clockid_t __clock, timespec& __abs_time) 24952: { 24952: pthread_cond_clockwait(&_M_cond, __m.native_handle(), __clock, 24952: &__abs_time); 24952: } 24952: 24952: 24952: void 24952: notify_one() noexcept 24952: { 24952: int __e __attribute__((__unused__)) = __gthread_cond_signal(&_M_cond); 24952: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: void 24952: notify_all() noexcept 24952: { 24952: int __e __attribute__((__unused__)) = __gthread_cond_broadcast(&_M_cond); 24952: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: protected: 24952: 24952: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 24952: 24952: 24952: 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: struct defer_lock_t { explicit defer_lock_t() = default; }; 24952: 24952: 24952: struct try_to_lock_t { explicit try_to_lock_t() = default; }; 24952: 24952: 24952: 24952: struct adopt_lock_t { explicit adopt_lock_t() = default; }; 24952: 24952: 24952: inline constexpr defer_lock_t defer_lock { }; 24952: 24952: 24952: inline constexpr try_to_lock_t try_to_lock { }; 24952: 24952: 24952: inline constexpr adopt_lock_t adopt_lock { }; 24952: # 242 "/usr/include/c++/13/bits/std_mutex.h" 3 24952: template 24952: class lock_guard 24952: { 24952: public: 24952: typedef _Mutex mutex_type; 24952: 24952: explicit lock_guard(mutex_type& __m) : _M_device(__m) 24952: { _M_device.lock(); } 24952: 24952: lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m) 24952: { } 24952: 24952: ~lock_guard() 24952: { _M_device.unlock(); } 24952: 24952: lock_guard(const lock_guard&) = delete; 24952: lock_guard& operator=(const lock_guard&) = delete; 24952: 24952: private: 24952: mutex_type& _M_device; 24952: }; 24952: 24952: 24952: 24952: } 24952: # 46 "/usr/include/c++/13/mutex" 2 3 24952: # 1 "/usr/include/c++/13/bits/unique_lock.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/unique_lock.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/unique_lock.h" 3 24952: # 43 "/usr/include/c++/13/bits/unique_lock.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 58 "/usr/include/c++/13/bits/unique_lock.h" 3 24952: template 24952: class unique_lock 24952: { 24952: public: 24952: typedef _Mutex mutex_type; 24952: 24952: unique_lock() noexcept 24952: : _M_device(0), _M_owns(false) 24952: { } 24952: 24952: explicit unique_lock(mutex_type& __m) 24952: : _M_device(std::__addressof(__m)), _M_owns(false) 24952: { 24952: lock(); 24952: _M_owns = true; 24952: } 24952: 24952: unique_lock(mutex_type& __m, defer_lock_t) noexcept 24952: : _M_device(std::__addressof(__m)), _M_owns(false) 24952: { } 24952: 24952: unique_lock(mutex_type& __m, try_to_lock_t) 24952: : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock()) 24952: { } 24952: 24952: unique_lock(mutex_type& __m, adopt_lock_t) noexcept 24952: : _M_device(std::__addressof(__m)), _M_owns(true) 24952: { 24952: 24952: } 24952: 24952: template 24952: unique_lock(mutex_type& __m, 24952: const chrono::time_point<_Clock, _Duration>& __atime) 24952: : _M_device(std::__addressof(__m)), 24952: _M_owns(_M_device->try_lock_until(__atime)) 24952: { } 24952: 24952: template 24952: unique_lock(mutex_type& __m, 24952: const chrono::duration<_Rep, _Period>& __rtime) 24952: : _M_device(std::__addressof(__m)), 24952: _M_owns(_M_device->try_lock_for(__rtime)) 24952: { } 24952: 24952: ~unique_lock() 24952: { 24952: if (_M_owns) 24952: unlock(); 24952: } 24952: 24952: unique_lock(const unique_lock&) = delete; 24952: unique_lock& operator=(const unique_lock&) = delete; 24952: 24952: unique_lock(unique_lock&& __u) noexcept 24952: : _M_device(__u._M_device), _M_owns(__u._M_owns) 24952: { 24952: __u._M_device = 0; 24952: __u._M_owns = false; 24952: } 24952: 24952: unique_lock& operator=(unique_lock&& __u) noexcept 24952: { 24952: if(_M_owns) 24952: unlock(); 24952: 24952: unique_lock(std::move(__u)).swap(*this); 24952: 24952: __u._M_device = 0; 24952: __u._M_owns = false; 24952: 24952: return *this; 24952: } 24952: 24952: void 24952: lock() 24952: { 24952: if (!_M_device) 24952: __throw_system_error(int(errc::operation_not_permitted)); 24952: else if (_M_owns) 24952: __throw_system_error(int(errc::resource_deadlock_would_occur)); 24952: else 24952: { 24952: _M_device->lock(); 24952: _M_owns = true; 24952: } 24952: } 24952: 24952: [[__nodiscard__]] 24952: bool 24952: try_lock() 24952: { 24952: if (!_M_device) 24952: __throw_system_error(int(errc::operation_not_permitted)); 24952: else if (_M_owns) 24952: __throw_system_error(int(errc::resource_deadlock_would_occur)); 24952: else 24952: { 24952: _M_owns = _M_device->try_lock(); 24952: return _M_owns; 24952: } 24952: } 24952: 24952: template 24952: [[__nodiscard__]] 24952: bool 24952: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 24952: { 24952: if (!_M_device) 24952: __throw_system_error(int(errc::operation_not_permitted)); 24952: else if (_M_owns) 24952: __throw_system_error(int(errc::resource_deadlock_would_occur)); 24952: else 24952: { 24952: _M_owns = _M_device->try_lock_until(__atime); 24952: return _M_owns; 24952: } 24952: } 24952: 24952: template 24952: [[__nodiscard__]] 24952: bool 24952: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 24952: { 24952: if (!_M_device) 24952: __throw_system_error(int(errc::operation_not_permitted)); 24952: else if (_M_owns) 24952: __throw_system_error(int(errc::resource_deadlock_would_occur)); 24952: else 24952: { 24952: _M_owns = _M_device->try_lock_for(__rtime); 24952: return _M_owns; 24952: } 24952: } 24952: 24952: void 24952: unlock() 24952: { 24952: if (!_M_owns) 24952: __throw_system_error(int(errc::operation_not_permitted)); 24952: else if (_M_device) 24952: { 24952: _M_device->unlock(); 24952: _M_owns = false; 24952: } 24952: } 24952: 24952: void 24952: swap(unique_lock& __u) noexcept 24952: { 24952: std::swap(_M_device, __u._M_device); 24952: std::swap(_M_owns, __u._M_owns); 24952: } 24952: 24952: mutex_type* 24952: release() noexcept 24952: { 24952: mutex_type* __ret = _M_device; 24952: _M_device = 0; 24952: _M_owns = false; 24952: return __ret; 24952: } 24952: 24952: [[__nodiscard__]] 24952: bool 24952: owns_lock() const noexcept 24952: { return _M_owns; } 24952: 24952: explicit operator bool() const noexcept 24952: { return owns_lock(); } 24952: 24952: [[__nodiscard__]] 24952: mutex_type* 24952: mutex() const noexcept 24952: { return _M_device; } 24952: 24952: private: 24952: mutex_type* _M_device; 24952: bool _M_owns; 24952: }; 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept 24952: { __x.swap(__y); } 24952: 24952: 24952: } 24952: # 47 "/usr/include/c++/13/mutex" 2 3 24952: # 57 "/usr/include/c++/13/mutex" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 70 "/usr/include/c++/13/mutex" 3 24952: class __recursive_mutex_base 24952: { 24952: protected: 24952: typedef __gthread_recursive_mutex_t __native_type; 24952: 24952: __recursive_mutex_base(const __recursive_mutex_base&) = delete; 24952: __recursive_mutex_base& operator=(const __recursive_mutex_base&) = delete; 24952: 24952: 24952: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 24952: 24952: __recursive_mutex_base() = default; 24952: # 94 "/usr/include/c++/13/mutex" 3 24952: }; 24952: # 106 "/usr/include/c++/13/mutex" 3 24952: class recursive_mutex : private __recursive_mutex_base 24952: { 24952: public: 24952: typedef __native_type* native_handle_type; 24952: 24952: recursive_mutex() = default; 24952: ~recursive_mutex() = default; 24952: 24952: recursive_mutex(const recursive_mutex&) = delete; 24952: recursive_mutex& operator=(const recursive_mutex&) = delete; 24952: 24952: void 24952: lock() 24952: { 24952: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 24952: 24952: 24952: if (__e) 24952: __throw_system_error(__e); 24952: } 24952: 24952: [[__nodiscard__]] 24952: bool 24952: try_lock() noexcept 24952: { 24952: 24952: return !__gthread_recursive_mutex_trylock(&_M_mutex); 24952: } 24952: 24952: void 24952: unlock() 24952: { 24952: 24952: __gthread_recursive_mutex_unlock(&_M_mutex); 24952: } 24952: 24952: native_handle_type 24952: native_handle() noexcept 24952: { return &_M_mutex; } 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: class __timed_mutex_impl 24952: { 24952: protected: 24952: template 24952: bool 24952: _M_try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 24952: { 24952: 24952: using __clock = chrono::steady_clock; 24952: 24952: 24952: 24952: 24952: auto __rt = chrono::duration_cast<__clock::duration>(__rtime); 24952: if (ratio_greater<__clock::period, _Period>()) 24952: ++__rt; 24952: return _M_try_lock_until(__clock::now() + __rt); 24952: } 24952: 24952: template 24952: bool 24952: _M_try_lock_until(const chrono::time_point& __atime) 24952: { 24952: auto __s = chrono::time_point_cast(__atime); 24952: auto __ns = chrono::duration_cast(__atime - __s); 24952: 24952: __gthread_time_t __ts = { 24952: static_cast(__s.time_since_epoch().count()), 24952: static_cast(__ns.count()) 24952: }; 24952: 24952: return static_cast<_Derived*>(this)->_M_timedlock(__ts); 24952: } 24952: 24952: 24952: template 24952: bool 24952: _M_try_lock_until(const chrono::time_point& __atime) 24952: { 24952: auto __s = chrono::time_point_cast(__atime); 24952: auto __ns = chrono::duration_cast(__atime - __s); 24952: 24952: __gthread_time_t __ts = { 24952: static_cast(__s.time_since_epoch().count()), 24952: static_cast(__ns.count()) 24952: }; 24952: 24952: return static_cast<_Derived*>(this)->_M_clocklock(1, 24952: __ts); 24952: } 24952: 24952: 24952: template 24952: bool 24952: _M_try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: auto __now = _Clock::now(); 24952: do { 24952: auto __rtime = __atime - __now; 24952: if (_M_try_lock_for(__rtime)) 24952: return true; 24952: __now = _Clock::now(); 24952: } while (__atime > __now); 24952: return false; 24952: } 24952: }; 24952: # 235 "/usr/include/c++/13/mutex" 3 24952: class timed_mutex 24952: : private __mutex_base, public __timed_mutex_impl 24952: { 24952: public: 24952: typedef __native_type* native_handle_type; 24952: 24952: timed_mutex() = default; 24952: ~timed_mutex() = default; 24952: 24952: timed_mutex(const timed_mutex&) = delete; 24952: timed_mutex& operator=(const timed_mutex&) = delete; 24952: 24952: void 24952: lock() 24952: { 24952: int __e = __gthread_mutex_lock(&_M_mutex); 24952: 24952: 24952: if (__e) 24952: __throw_system_error(__e); 24952: } 24952: 24952: [[__nodiscard__]] 24952: bool 24952: try_lock() noexcept 24952: { 24952: 24952: return !__gthread_mutex_trylock(&_M_mutex); 24952: } 24952: 24952: template 24952: [[__nodiscard__]] 24952: bool 24952: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 24952: { return _M_try_lock_for(__rtime); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: bool 24952: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 24952: { return _M_try_lock_until(__atime); } 24952: 24952: void 24952: unlock() 24952: { 24952: 24952: __gthread_mutex_unlock(&_M_mutex); 24952: } 24952: 24952: native_handle_type 24952: native_handle() noexcept 24952: { return &_M_mutex; } 24952: 24952: private: 24952: friend class __timed_mutex_impl; 24952: 24952: bool 24952: _M_timedlock(const __gthread_time_t& __ts) 24952: { return !__gthread_mutex_timedlock(&_M_mutex, &__ts); } 24952: 24952: 24952: bool 24952: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 24952: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 24952: 24952: }; 24952: # 312 "/usr/include/c++/13/mutex" 3 24952: class recursive_timed_mutex 24952: : private __recursive_mutex_base, 24952: public __timed_mutex_impl 24952: { 24952: public: 24952: typedef __native_type* native_handle_type; 24952: 24952: recursive_timed_mutex() = default; 24952: ~recursive_timed_mutex() = default; 24952: 24952: recursive_timed_mutex(const recursive_timed_mutex&) = delete; 24952: recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete; 24952: 24952: void 24952: lock() 24952: { 24952: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 24952: 24952: 24952: if (__e) 24952: __throw_system_error(__e); 24952: } 24952: 24952: [[__nodiscard__]] 24952: bool 24952: try_lock() noexcept 24952: { 24952: 24952: return !__gthread_recursive_mutex_trylock(&_M_mutex); 24952: } 24952: 24952: template 24952: [[__nodiscard__]] 24952: bool 24952: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 24952: { return _M_try_lock_for(__rtime); } 24952: 24952: template 24952: [[__nodiscard__]] 24952: bool 24952: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 24952: { return _M_try_lock_until(__atime); } 24952: 24952: void 24952: unlock() 24952: { 24952: 24952: __gthread_recursive_mutex_unlock(&_M_mutex); 24952: } 24952: 24952: native_handle_type 24952: native_handle() noexcept 24952: { return &_M_mutex; } 24952: 24952: private: 24952: friend class __timed_mutex_impl; 24952: 24952: bool 24952: _M_timedlock(const __gthread_time_t& __ts) 24952: { return !__gthread_recursive_mutex_timedlock(&_M_mutex, &__ts); } 24952: 24952: 24952: bool 24952: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 24952: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 24952: 24952: }; 24952: # 559 "/usr/include/c++/13/mutex" 3 24952: namespace __detail 24952: { 24952: 24952: template 24952: inline int 24952: __try_lock_impl(_Lockable& __l) 24952: { 24952: if (unique_lock<_Lockable> __lock{__l, try_to_lock}) 24952: { 24952: __lock.release(); 24952: return -1; 24952: } 24952: else 24952: return 0; 24952: } 24952: 24952: 24952: 24952: template 24952: inline int 24952: __try_lock_impl(_L0& __l0, _Lockables&... __lockables) 24952: { 24952: 24952: if constexpr ((is_same_v<_L0, _Lockables> && ...)) 24952: { 24952: constexpr int _Np = 1 + sizeof...(_Lockables); 24952: unique_lock<_L0> __locks[_Np] = { 24952: {__l0, defer_lock}, {__lockables, defer_lock}... 24952: }; 24952: for (int __i = 0; __i < _Np; ++__i) 24952: { 24952: if (!__locks[__i].try_lock()) 24952: { 24952: const int __failed = __i; 24952: while (__i--) 24952: __locks[__i].unlock(); 24952: return __failed; 24952: } 24952: } 24952: for (auto& __l : __locks) 24952: __l.release(); 24952: return -1; 24952: } 24952: else 24952: 24952: if (unique_lock<_L0> __lock{__l0, try_to_lock}) 24952: { 24952: int __idx = __detail::__try_lock_impl(__lockables...); 24952: if (__idx == -1) 24952: { 24952: __lock.release(); 24952: return -1; 24952: } 24952: return __idx + 1; 24952: } 24952: else 24952: return 0; 24952: } 24952: 24952: } 24952: # 631 "/usr/include/c++/13/mutex" 3 24952: template 24952: [[__nodiscard__]] 24952: inline int 24952: try_lock(_L1& __l1, _L2& __l2, _L3&... __l3) 24952: { 24952: return __detail::__try_lock_impl(__l1, __l2, __l3...); 24952: } 24952: 24952: 24952: namespace __detail 24952: { 24952: 24952: 24952: 24952: 24952: 24952: template 24952: void 24952: __lock_impl(int& __i, int __depth, _L0& __l0, _L1&... __l1) 24952: { 24952: while (__i >= __depth) 24952: { 24952: if (__i == __depth) 24952: { 24952: int __failed = 1; 24952: { 24952: unique_lock<_L0> __first(__l0); 24952: __failed += __detail::__try_lock_impl(__l1...); 24952: if (!__failed) 24952: { 24952: __i = -1; 24952: __first.release(); 24952: return; 24952: } 24952: } 24952: 24952: __gthread_yield(); 24952: 24952: constexpr auto __n = 1 + sizeof...(_L1); 24952: __i = (__depth + __failed) % __n; 24952: } 24952: else 24952: __detail::__lock_impl(__i, __depth + 1, __l1..., __l0); 24952: } 24952: } 24952: 24952: } 24952: # 691 "/usr/include/c++/13/mutex" 3 24952: template 24952: void 24952: lock(_L1& __l1, _L2& __l2, _L3&... __l3) 24952: { 24952: 24952: if constexpr (is_same_v<_L1, _L2> && (is_same_v<_L1, _L3> && ...)) 24952: { 24952: constexpr int _Np = 2 + sizeof...(_L3); 24952: unique_lock<_L1> __locks[] = { 24952: {__l1, defer_lock}, {__l2, defer_lock}, {__l3, defer_lock}... 24952: }; 24952: int __first = 0; 24952: do { 24952: __locks[__first].lock(); 24952: for (int __j = 1; __j < _Np; ++__j) 24952: { 24952: const int __idx = (__first + __j) % _Np; 24952: if (!__locks[__idx].try_lock()) 24952: { 24952: for (int __k = __j; __k != 0; --__k) 24952: __locks[(__first + __k - 1) % _Np].unlock(); 24952: __first = __idx; 24952: break; 24952: } 24952: } 24952: } while (!__locks[__first].owns_lock()); 24952: 24952: for (auto& __l : __locks) 24952: __l.release(); 24952: } 24952: else 24952: 24952: { 24952: int __i = 0; 24952: __detail::__lock_impl(__i, 0, __l1, __l2, __l3...); 24952: } 24952: } 24952: # 739 "/usr/include/c++/13/mutex" 3 24952: template 24952: class scoped_lock 24952: { 24952: public: 24952: explicit scoped_lock(_MutexTypes&... __m) : _M_devices(std::tie(__m...)) 24952: { std::lock(__m...); } 24952: 24952: explicit scoped_lock(adopt_lock_t, _MutexTypes&... __m) noexcept 24952: : _M_devices(std::tie(__m...)) 24952: { } 24952: 24952: ~scoped_lock() 24952: { std::apply([](auto&... __m) { (__m.unlock(), ...); }, _M_devices); } 24952: 24952: scoped_lock(const scoped_lock&) = delete; 24952: scoped_lock& operator=(const scoped_lock&) = delete; 24952: 24952: private: 24952: tuple<_MutexTypes&...> _M_devices; 24952: }; 24952: 24952: template<> 24952: class scoped_lock<> 24952: { 24952: public: 24952: explicit scoped_lock() = default; 24952: explicit scoped_lock(adopt_lock_t) noexcept { } 24952: ~scoped_lock() = default; 24952: 24952: scoped_lock(const scoped_lock&) = delete; 24952: scoped_lock& operator=(const scoped_lock&) = delete; 24952: }; 24952: 24952: template 24952: class scoped_lock<_Mutex> 24952: { 24952: public: 24952: using mutex_type = _Mutex; 24952: 24952: explicit scoped_lock(mutex_type& __m) : _M_device(__m) 24952: { _M_device.lock(); } 24952: 24952: explicit scoped_lock(adopt_lock_t, mutex_type& __m) noexcept 24952: : _M_device(__m) 24952: { } 24952: 24952: ~scoped_lock() 24952: { _M_device.unlock(); } 24952: 24952: scoped_lock(const scoped_lock&) = delete; 24952: scoped_lock& operator=(const scoped_lock&) = delete; 24952: 24952: private: 24952: mutex_type& _M_device; 24952: }; 24952: 24952: 24952: 24952: 24952: struct once_flag 24952: { 24952: constexpr once_flag() noexcept = default; 24952: 24952: 24952: once_flag(const once_flag&) = delete; 24952: 24952: once_flag& operator=(const once_flag&) = delete; 24952: 24952: private: 24952: 24952: 24952: __gthread_once_t _M_once = 0; 24952: 24952: struct _Prepare_execution; 24952: 24952: template 24952: friend void 24952: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: extern __thread void* __once_callable; 24952: extern __thread void (*__once_call)(); 24952: 24952: 24952: struct once_flag::_Prepare_execution 24952: { 24952: template 24952: explicit 24952: _Prepare_execution(_Callable& __c) 24952: { 24952: 24952: __once_callable = std::__addressof(__c); 24952: 24952: __once_call = [] { (*static_cast<_Callable*>(__once_callable))(); }; 24952: } 24952: 24952: ~_Prepare_execution() 24952: { 24952: 24952: __once_callable = nullptr; 24952: __once_call = nullptr; 24952: } 24952: 24952: _Prepare_execution(const _Prepare_execution&) = delete; 24952: _Prepare_execution& operator=(const _Prepare_execution&) = delete; 24952: }; 24952: # 891 "/usr/include/c++/13/mutex" 3 24952: extern "C" void __once_proxy(void); 24952: 24952: 24952: template 24952: void 24952: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) 24952: { 24952: 24952: auto __callable = [&] { 24952: std::__invoke(std::forward<_Callable>(__f), 24952: std::forward<_Args>(__args)...); 24952: }; 24952: 24952: once_flag::_Prepare_execution __exec(__callable); 24952: 24952: 24952: if (int __e = __gthread_once(&__once._M_once, &__once_proxy)) 24952: __throw_system_error(__e); 24952: } 24952: # 1012 "/usr/include/c++/13/mutex" 3 24952: 24952: } 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 2 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 24952: 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 24952: namespace rocksdb { 24952: # 31 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 24952: enum Tickers : uint32_t { 24952: 24952: 24952: 24952: 24952: BLOCK_CACHE_MISS = 0, 24952: 24952: 24952: 24952: 24952: BLOCK_CACHE_HIT, 24952: 24952: BLOCK_CACHE_ADD, 24952: 24952: BLOCK_CACHE_ADD_FAILURES, 24952: 24952: BLOCK_CACHE_INDEX_MISS, 24952: 24952: BLOCK_CACHE_INDEX_HIT, 24952: 24952: BLOCK_CACHE_INDEX_ADD, 24952: 24952: BLOCK_CACHE_INDEX_BYTES_INSERT, 24952: 24952: BLOCK_CACHE_FILTER_MISS, 24952: 24952: BLOCK_CACHE_FILTER_HIT, 24952: 24952: BLOCK_CACHE_FILTER_ADD, 24952: 24952: BLOCK_CACHE_FILTER_BYTES_INSERT, 24952: 24952: BLOCK_CACHE_DATA_MISS, 24952: 24952: BLOCK_CACHE_DATA_HIT, 24952: 24952: BLOCK_CACHE_DATA_ADD, 24952: 24952: BLOCK_CACHE_DATA_BYTES_INSERT, 24952: 24952: BLOCK_CACHE_BYTES_READ, 24952: 24952: BLOCK_CACHE_BYTES_WRITE, 24952: 24952: 24952: BLOOM_FILTER_USEFUL, 24952: 24952: BLOOM_FILTER_FULL_POSITIVE, 24952: 24952: 24952: BLOOM_FILTER_FULL_TRUE_POSITIVE, 24952: 24952: 24952: PERSISTENT_CACHE_HIT, 24952: 24952: PERSISTENT_CACHE_MISS, 24952: 24952: 24952: SIM_BLOCK_CACHE_HIT, 24952: 24952: SIM_BLOCK_CACHE_MISS, 24952: 24952: 24952: MEMTABLE_HIT, 24952: 24952: MEMTABLE_MISS, 24952: 24952: 24952: GET_HIT_L0, 24952: 24952: GET_HIT_L1, 24952: 24952: GET_HIT_L2_AND_UP, 24952: 24952: 24952: 24952: 24952: 24952: COMPACTION_KEY_DROP_NEWER_ENTRY, 24952: 24952: COMPACTION_KEY_DROP_OBSOLETE, 24952: COMPACTION_KEY_DROP_RANGE_DEL, 24952: COMPACTION_KEY_DROP_USER, 24952: COMPACTION_RANGE_DEL_DROP_OBSOLETE, 24952: 24952: COMPACTION_OPTIMIZED_DEL_DROP_OBSOLETE, 24952: 24952: COMPACTION_CANCELLED, 24952: 24952: 24952: NUMBER_KEYS_WRITTEN, 24952: 24952: NUMBER_KEYS_READ, 24952: 24952: NUMBER_KEYS_UPDATED, 24952: 24952: 24952: BYTES_WRITTEN, 24952: 24952: 24952: 24952: 24952: BYTES_READ, 24952: 24952: NUMBER_DB_SEEK, 24952: NUMBER_DB_NEXT, 24952: NUMBER_DB_PREV, 24952: 24952: NUMBER_DB_SEEK_FOUND, 24952: NUMBER_DB_NEXT_FOUND, 24952: NUMBER_DB_PREV_FOUND, 24952: 24952: 24952: ITER_BYTES_READ, 24952: NO_FILE_OPENS, 24952: NO_FILE_ERRORS, 24952: 24952: STALL_MICROS, 24952: 24952: 24952: DB_MUTEX_WAIT_MICROS, 24952: 24952: 24952: NUMBER_MULTIGET_CALLS, 24952: NUMBER_MULTIGET_KEYS_READ, 24952: NUMBER_MULTIGET_BYTES_READ, 24952: 24952: NUMBER_MERGE_FAILURES, 24952: 24952: 24952: 24952: 24952: BLOOM_FILTER_PREFIX_CHECKED, 24952: 24952: BLOOM_FILTER_PREFIX_USEFUL, 24952: 24952: 24952: 24952: BLOOM_FILTER_PREFIX_TRUE_POSITIVE, 24952: 24952: 24952: 24952: NUMBER_OF_RESEEKS_IN_ITERATION, 24952: 24952: 24952: 24952: GET_UPDATES_SINCE_CALLS, 24952: WAL_FILE_SYNCED, 24952: WAL_FILE_BYTES, 24952: 24952: 24952: 24952: WRITE_DONE_BY_SELF, 24952: WRITE_DONE_BY_OTHER, 24952: WRITE_WITH_WAL, 24952: COMPACT_READ_BYTES, 24952: COMPACT_WRITE_BYTES, 24952: FLUSH_WRITE_BYTES, 24952: 24952: 24952: COMPACT_READ_BYTES_MARKED, 24952: COMPACT_READ_BYTES_PERIODIC, 24952: COMPACT_READ_BYTES_TTL, 24952: COMPACT_WRITE_BYTES_MARKED, 24952: COMPACT_WRITE_BYTES_PERIODIC, 24952: COMPACT_WRITE_BYTES_TTL, 24952: 24952: 24952: 24952: NUMBER_DIRECT_LOAD_TABLE_PROPERTIES, 24952: NUMBER_SUPERVERSION_ACQUIRES, 24952: NUMBER_SUPERVERSION_RELEASES, 24952: NUMBER_SUPERVERSION_CLEANUPS, 24952: 24952: 24952: NUMBER_BLOCK_COMPRESSED, 24952: NUMBER_BLOCK_DECOMPRESSED, 24952: 24952: 24952: NUMBER_BLOCK_NOT_COMPRESSED, 24952: 24952: 24952: MERGE_OPERATION_TOTAL_TIME, 24952: FILTER_OPERATION_TOTAL_TIME, 24952: COMPACTION_CPU_TOTAL_TIME, 24952: 24952: 24952: ROW_CACHE_HIT, 24952: ROW_CACHE_MISS, 24952: 24952: 24952: 24952: 24952: 24952: 24952: READ_AMP_ESTIMATE_USEFUL_BYTES, 24952: READ_AMP_TOTAL_READ_BYTES, 24952: 24952: 24952: NUMBER_RATE_LIMITER_DRAINS, 24952: 24952: 24952: NUMBER_ITER_SKIP, 24952: 24952: 24952: 24952: BLOB_DB_NUM_PUT, 24952: 24952: BLOB_DB_NUM_WRITE, 24952: 24952: BLOB_DB_NUM_GET, 24952: 24952: BLOB_DB_NUM_MULTIGET, 24952: 24952: 24952: BLOB_DB_NUM_SEEK, 24952: 24952: BLOB_DB_NUM_NEXT, 24952: 24952: BLOB_DB_NUM_PREV, 24952: 24952: BLOB_DB_NUM_KEYS_WRITTEN, 24952: 24952: BLOB_DB_NUM_KEYS_READ, 24952: 24952: 24952: BLOB_DB_BYTES_WRITTEN, 24952: 24952: 24952: BLOB_DB_BYTES_READ, 24952: 24952: 24952: BLOB_DB_WRITE_INLINED, 24952: 24952: 24952: BLOB_DB_WRITE_INLINED_TTL, 24952: 24952: 24952: BLOB_DB_WRITE_BLOB, 24952: 24952: 24952: BLOB_DB_WRITE_BLOB_TTL, 24952: 24952: BLOB_DB_BLOB_FILE_BYTES_WRITTEN, 24952: 24952: BLOB_DB_BLOB_FILE_BYTES_READ, 24952: 24952: BLOB_DB_BLOB_FILE_SYNCED, 24952: 24952: 24952: BLOB_DB_BLOB_INDEX_EXPIRED_COUNT, 24952: 24952: 24952: BLOB_DB_BLOB_INDEX_EXPIRED_SIZE, 24952: 24952: 24952: BLOB_DB_BLOB_INDEX_EVICTED_COUNT, 24952: 24952: 24952: BLOB_DB_BLOB_INDEX_EVICTED_SIZE, 24952: 24952: 24952: BLOB_DB_GC_NUM_FILES, 24952: 24952: 24952: BLOB_DB_GC_NUM_NEW_FILES, 24952: 24952: BLOB_DB_GC_FAILURES, 24952: 24952: BLOB_DB_GC_NUM_KEYS_RELOCATED, 24952: 24952: BLOB_DB_GC_BYTES_RELOCATED, 24952: 24952: 24952: BLOB_DB_FIFO_NUM_FILES_EVICTED, 24952: 24952: 24952: BLOB_DB_FIFO_NUM_KEYS_EVICTED, 24952: 24952: 24952: BLOB_DB_FIFO_BYTES_EVICTED, 24952: 24952: 24952: 24952: 24952: TXN_PREPARE_MUTEX_OVERHEAD, 24952: 24952: TXN_OLD_COMMIT_MAP_MUTEX_OVERHEAD, 24952: 24952: TXN_DUPLICATE_KEY_OVERHEAD, 24952: 24952: TXN_SNAPSHOT_MUTEX_OVERHEAD, 24952: 24952: TXN_GET_TRY_AGAIN, 24952: 24952: 24952: 24952: 24952: NUMBER_MULTIGET_KEYS_FOUND, 24952: 24952: NO_ITERATOR_CREATED, 24952: NO_ITERATOR_DELETED, 24952: 24952: BLOCK_CACHE_COMPRESSION_DICT_MISS, 24952: BLOCK_CACHE_COMPRESSION_DICT_HIT, 24952: BLOCK_CACHE_COMPRESSION_DICT_ADD, 24952: BLOCK_CACHE_COMPRESSION_DICT_BYTES_INSERT, 24952: 24952: 24952: 24952: BLOCK_CACHE_ADD_REDUNDANT, 24952: 24952: 24952: BLOCK_CACHE_INDEX_ADD_REDUNDANT, 24952: 24952: 24952: BLOCK_CACHE_FILTER_ADD_REDUNDANT, 24952: 24952: 24952: BLOCK_CACHE_DATA_ADD_REDUNDANT, 24952: 24952: 24952: 24952: BLOCK_CACHE_COMPRESSION_DICT_ADD_REDUNDANT, 24952: 24952: 24952: 24952: FILES_MARKED_TRASH, 24952: 24952: FILES_DELETED_FROM_TRASH_QUEUE, 24952: 24952: 24952: FILES_DELETED_IMMEDIATELY, 24952: 24952: 24952: 24952: 24952: 24952: ERROR_HANDLER_BG_ERROR_COUNT, 24952: ERROR_HANDLER_BG_ERROR_COUNT_MISSPELLED, 24952: ERROR_HANDLER_BG_IO_ERROR_COUNT, 24952: ERROR_HANDLER_BG_IO_ERROR_COUNT_MISSPELLED, 24952: ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT, 24952: ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT_MISSPELLED, 24952: ERROR_HANDLER_AUTORESUME_COUNT, 24952: ERROR_HANDLER_AUTORESUME_RETRY_TOTAL_COUNT, 24952: ERROR_HANDLER_AUTORESUME_SUCCESS_COUNT, 24952: 24952: 24952: 24952: MEMTABLE_PAYLOAD_BYTES_AT_FLUSH, 24952: 24952: MEMTABLE_GARBAGE_BYTES_AT_FLUSH, 24952: 24952: 24952: SECONDARY_CACHE_HITS, 24952: 24952: 24952: VERIFY_CHECKSUM_READ_BYTES, 24952: 24952: 24952: BACKUP_READ_BYTES, 24952: BACKUP_WRITE_BYTES, 24952: 24952: 24952: REMOTE_COMPACT_READ_BYTES, 24952: REMOTE_COMPACT_WRITE_BYTES, 24952: 24952: 24952: HOT_FILE_READ_BYTES, 24952: WARM_FILE_READ_BYTES, 24952: COLD_FILE_READ_BYTES, 24952: HOT_FILE_READ_COUNT, 24952: WARM_FILE_READ_COUNT, 24952: COLD_FILE_READ_COUNT, 24952: 24952: 24952: LAST_LEVEL_READ_BYTES, 24952: LAST_LEVEL_READ_COUNT, 24952: NON_LAST_LEVEL_READ_BYTES, 24952: NON_LAST_LEVEL_READ_COUNT, 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: LAST_LEVEL_SEEK_FILTERED, 24952: 24952: 24952: LAST_LEVEL_SEEK_FILTER_MATCH, 24952: 24952: 24952: LAST_LEVEL_SEEK_DATA, 24952: 24952: 24952: LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 24952: 24952: 24952: LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 24952: 24952: NON_LAST_LEVEL_SEEK_FILTERED, 24952: NON_LAST_LEVEL_SEEK_FILTER_MATCH, 24952: NON_LAST_LEVEL_SEEK_DATA, 24952: NON_LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 24952: NON_LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 24952: 24952: 24952: BLOCK_CHECKSUM_COMPUTE_COUNT, 24952: 24952: 24952: 24952: BLOCK_CHECKSUM_MISMATCH_COUNT, 24952: 24952: MULTIGET_COROUTINE_COUNT, 24952: 24952: 24952: 24952: BLOB_DB_CACHE_MISS, 24952: 24952: BLOB_DB_CACHE_HIT, 24952: 24952: BLOB_DB_CACHE_ADD, 24952: 24952: BLOB_DB_CACHE_ADD_FAILURES, 24952: 24952: BLOB_DB_CACHE_BYTES_READ, 24952: 24952: BLOB_DB_CACHE_BYTES_WRITE, 24952: 24952: 24952: READ_ASYNC_MICROS, 24952: 24952: ASYNC_READ_ERROR_COUNT, 24952: 24952: 24952: SECONDARY_CACHE_FILTER_HITS, 24952: SECONDARY_CACHE_INDEX_HITS, 24952: SECONDARY_CACHE_DATA_HITS, 24952: 24952: 24952: 24952: 24952: TABLE_OPEN_PREFETCH_TAIL_MISS, 24952: 24952: 24952: 24952: TABLE_OPEN_PREFETCH_TAIL_HIT, 24952: 24952: 24952: 24952: TIMESTAMP_FILTER_TABLE_CHECKED, 24952: 24952: TIMESTAMP_FILTER_TABLE_FILTERED, 24952: 24952: 24952: 24952: BYTES_COMPRESSED_FROM, 24952: 24952: 24952: BYTES_COMPRESSED_TO, 24952: 24952: 24952: 24952: 24952: BYTES_COMPRESSION_BYPASSED, 24952: 24952: 24952: 24952: 24952: 24952: BYTES_COMPRESSION_REJECTED, 24952: 24952: 24952: NUMBER_BLOCK_COMPRESSION_BYPASSED, 24952: 24952: NUMBER_BLOCK_COMPRESSION_REJECTED, 24952: 24952: 24952: 24952: BYTES_DECOMPRESSED_FROM, 24952: 24952: 24952: BYTES_DECOMPRESSED_TO, 24952: 24952: 24952: 24952: READAHEAD_TRIMMED, 24952: 24952: 24952: FIFO_MAX_SIZE_COMPACTIONS, 24952: FIFO_TTL_COMPACTIONS, 24952: 24952: 24952: PREFETCH_BYTES, 24952: 24952: 24952: PREFETCH_BYTES_USEFUL, 24952: 24952: 24952: PREFETCH_HITS, 24952: 24952: TICKER_ENUM_MAX 24952: }; 24952: 24952: 24952: 24952: extern const std::vector> TickersNameMap; 24952: # 552 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 24952: enum Histograms : uint32_t { 24952: DB_GET = 0, 24952: DB_WRITE, 24952: COMPACTION_TIME, 24952: COMPACTION_CPU_TIME, 24952: SUBCOMPACTION_SETUP_TIME, 24952: TABLE_SYNC_MICROS, 24952: COMPACTION_OUTFILE_SYNC_MICROS, 24952: WAL_FILE_SYNC_MICROS, 24952: MANIFEST_FILE_SYNC_MICROS, 24952: 24952: TABLE_OPEN_IO_MICROS, 24952: DB_MULTIGET, 24952: READ_BLOCK_COMPACTION_MICROS, 24952: READ_BLOCK_GET_MICROS, 24952: WRITE_RAW_BLOCK_MICROS, 24952: NUM_FILES_IN_SINGLE_COMPACTION, 24952: DB_SEEK, 24952: WRITE_STALL, 24952: 24952: SST_READ_MICROS, 24952: 24952: 24952: FILE_READ_FLUSH_MICROS, 24952: FILE_READ_COMPACTION_MICROS, 24952: FILE_READ_DB_OPEN_MICROS, 24952: 24952: 24952: FILE_READ_GET_MICROS, 24952: FILE_READ_MULTIGET_MICROS, 24952: FILE_READ_DB_ITERATOR_MICROS, 24952: FILE_READ_VERIFY_DB_CHECKSUM_MICROS, 24952: FILE_READ_VERIFY_FILE_CHECKSUMS_MICROS, 24952: 24952: 24952: NUM_SUBCOMPACTIONS_SCHEDULED, 24952: 24952: BYTES_PER_READ, 24952: BYTES_PER_WRITE, 24952: BYTES_PER_MULTIGET, 24952: 24952: BYTES_COMPRESSED, 24952: BYTES_DECOMPRESSED, 24952: COMPRESSION_TIMES_NANOS, 24952: DECOMPRESSION_TIMES_NANOS, 24952: 24952: 24952: READ_NUM_MERGE_OPERANDS, 24952: 24952: 24952: 24952: BLOB_DB_KEY_SIZE, 24952: 24952: BLOB_DB_VALUE_SIZE, 24952: 24952: 24952: BLOB_DB_WRITE_MICROS, 24952: 24952: BLOB_DB_GET_MICROS, 24952: 24952: BLOB_DB_MULTIGET_MICROS, 24952: 24952: 24952: BLOB_DB_SEEK_MICROS, 24952: 24952: BLOB_DB_NEXT_MICROS, 24952: 24952: BLOB_DB_PREV_MICROS, 24952: 24952: BLOB_DB_BLOB_FILE_WRITE_MICROS, 24952: 24952: BLOB_DB_BLOB_FILE_READ_MICROS, 24952: 24952: BLOB_DB_BLOB_FILE_SYNC_MICROS, 24952: 24952: BLOB_DB_COMPRESSION_MICROS, 24952: 24952: BLOB_DB_DECOMPRESSION_MICROS, 24952: 24952: FLUSH_TIME, 24952: SST_BATCH_SIZE, 24952: 24952: 24952: 24952: NUM_INDEX_AND_FILTER_BLOCKS_READ_PER_LEVEL, 24952: 24952: NUM_SST_READ_PER_LEVEL, 24952: 24952: 24952: ERROR_HANDLER_AUTORESUME_RETRY_COUNT, 24952: 24952: 24952: ASYNC_READ_BYTES, 24952: POLL_WAIT_MICROS, 24952: 24952: 24952: PREFETCHED_BYTES_DISCARDED, 24952: 24952: 24952: MULTIGET_IO_BATCH_SIZE, 24952: 24952: 24952: NUM_LEVEL_READ_PER_MULTIGET, 24952: 24952: 24952: ASYNC_PREFETCH_ABORT_MICROS, 24952: 24952: 24952: 24952: TABLE_OPEN_PREFETCH_TAIL_READ_BYTES, 24952: 24952: HISTOGRAM_ENUM_MAX 24952: }; 24952: 24952: extern const std::vector> HistogramsNameMap; 24952: 24952: struct HistogramData { 24952: double median; 24952: double percentile95; 24952: double percentile99; 24952: double average; 24952: double standard_deviation; 24952: 24952: 24952: double max = 0.0; 24952: uint64_t count = 0; 24952: uint64_t sum = 0; 24952: double min = 0.0; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: enum StatsLevel : uint8_t { 24952: 24952: kDisableAll, 24952: 24952: kExceptTickers = kDisableAll, 24952: 24952: kExceptHistogramOrTimers, 24952: 24952: kExceptTimers, 24952: 24952: 24952: kExceptDetailedTimers, 24952: 24952: 24952: kExceptTimeForMutex, 24952: 24952: 24952: 24952: kAll, 24952: }; 24952: # 720 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 24952: class Statistics : public Customizable { 24952: public: 24952: ~Statistics() override {} 24952: static const char* Type() { return "Statistics"; } 24952: static Status CreateFromString(const ConfigOptions& opts, 24952: const std::string& value, 24952: std::shared_ptr* result); 24952: 24952: 24952: 24952: const char* Name() const override { return ""; } 24952: virtual uint64_t getTickerCount(uint32_t tickerType) const = 0; 24952: virtual void histogramData(uint32_t type, 24952: HistogramData* const data) const = 0; 24952: virtual std::string getHistogramString(uint32_t ) const { return ""; } 24952: virtual void recordTick(uint32_t tickerType, uint64_t count = 1) = 0; 24952: virtual void setTickerCount(uint32_t tickerType, uint64_t count) = 0; 24952: virtual uint64_t getAndResetTickerCount(uint32_t tickerType) = 0; 24952: virtual void reportTimeToHistogram(uint32_t histogramType, uint64_t time) { 24952: if (get_stats_level() <= StatsLevel::kExceptTimers) { 24952: return; 24952: } 24952: recordInHistogram(histogramType, time); 24952: } 24952: 24952: 24952: 24952: virtual void measureTime(uint32_t , uint64_t ) { 24952: 24952: 24952: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 3 4 24952: (static_cast ( 24952: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 24952: false 24952: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 24952: "false" 24952: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 3 4 24952: , "./include/rocksdb/statistics.h", 749, __extension__ __PRETTY_FUNCTION__)) 24952: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/statistics.h" 24952: ; 24952: } 24952: virtual void recordInHistogram(uint32_t histogramType, uint64_t time) { 24952: 24952: 24952: 24952: 24952: measureTime(histogramType, time); 24952: } 24952: 24952: 24952: virtual Status Reset() { return Status::NotSupported("Not implemented"); } 24952: 24952: using Customizable::ToString; 24952: 24952: virtual std::string ToString() const { 24952: 24952: return std::string("ToString(): not implemented"); 24952: } 24952: 24952: virtual bool getTickerMap(std::map*) const { 24952: 24952: return false; 24952: } 24952: 24952: 24952: virtual bool HistEnabledForType(uint32_t type) const { 24952: return type < HISTOGRAM_ENUM_MAX; 24952: } 24952: void set_stats_level(StatsLevel sl) { 24952: stats_level_.store(sl, std::memory_order_relaxed); 24952: } 24952: StatsLevel get_stats_level() const { 24952: return stats_level_.load(std::memory_order_relaxed); 24952: } 24952: 24952: private: 24952: std::atomic stats_level_{kExceptDetailedTimers}; 24952: }; 24952: 24952: 24952: std::shared_ptr CreateDBStatistics(); 24952: 24952: } 24952: # 18 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: class HistogramBucketMapper { 24952: public: 24952: HistogramBucketMapper(); 24952: 24952: 24952: size_t IndexForValue(uint64_t value) const; 24952: 24952: 24952: size_t BucketCount() const { return bucketValues_.size(); } 24952: 24952: uint64_t LastValue() const { return maxBucketValue_; } 24952: 24952: uint64_t FirstValue() const { return minBucketValue_; } 24952: 24952: uint64_t BucketLimit(const size_t bucketNumber) const { 24952: 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 3 4 24952: (static_cast ( 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 24952: bucketNumber < BucketCount() 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 24952: "bucketNumber < BucketCount()" 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 3 4 24952: , "./monitoring/histogram.h", 36, __extension__ __PRETTY_FUNCTION__)) 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/monitoring/histogram.h" 24952: ; 24952: return bucketValues_[bucketNumber]; 24952: } 24952: 24952: private: 24952: std::vector bucketValues_; 24952: uint64_t maxBucketValue_; 24952: uint64_t minBucketValue_; 24952: }; 24952: 24952: struct HistogramStat { 24952: HistogramStat(); 24952: ~HistogramStat() {} 24952: 24952: HistogramStat(const HistogramStat&) = delete; 24952: HistogramStat& operator=(const HistogramStat&) = delete; 24952: 24952: void Clear(); 24952: bool Empty() const; 24952: void Add(uint64_t value); 24952: void Merge(const HistogramStat& other); 24952: 24952: inline uint64_t min() const { return min_.load(std::memory_order_relaxed); } 24952: inline uint64_t max() const { return max_.load(std::memory_order_relaxed); } 24952: inline uint64_t num() const { return num_.load(std::memory_order_relaxed); } 24952: inline uint64_t sum() const { return sum_.load(std::memory_order_relaxed); } 24952: inline uint64_t sum_squares() const { 24952: return sum_squares_.load(std::memory_order_relaxed); 24952: } 24952: inline uint64_t bucket_at(size_t b) const { 24952: return buckets_[b].load(std::memory_order_relaxed); 24952: } 24952: 24952: double Median() const; 24952: double Percentile(double p) const; 24952: double Average() const; 24952: double StandardDeviation() const; 24952: void Data(HistogramData* const data) const; 24952: std::string ToString() const; 24952: 24952: 24952: 24952: 24952: std::atomic_uint_fast64_t min_; 24952: std::atomic_uint_fast64_t max_; 24952: std::atomic_uint_fast64_t num_; 24952: std::atomic_uint_fast64_t sum_; 24952: std::atomic_uint_fast64_t sum_squares_; 24952: std::atomic_uint_fast64_t buckets_[109]; 24952: const uint64_t num_buckets_; 24952: }; 24952: 24952: class Histogram { 24952: public: 24952: Histogram() {} 24952: virtual ~Histogram(){}; 24952: 24952: virtual void Clear() = 0; 24952: virtual bool Empty() const = 0; 24952: virtual void Add(uint64_t value) = 0; 24952: virtual void Merge(const Histogram&) = 0; 24952: 24952: virtual std::string ToString() const = 0; 24952: virtual const char* Name() const = 0; 24952: virtual uint64_t min() const = 0; 24952: virtual uint64_t max() const = 0; 24952: virtual uint64_t num() const = 0; 24952: virtual double Median() const = 0; 24952: virtual double Percentile(double p) const = 0; 24952: virtual double Average() const = 0; 24952: virtual double StandardDeviation() const = 0; 24952: virtual void Data(HistogramData* const data) const = 0; 24952: }; 24952: 24952: class HistogramImpl : public Histogram { 24952: public: 24952: HistogramImpl() { Clear(); } 24952: 24952: HistogramImpl(const HistogramImpl&) = delete; 24952: HistogramImpl& operator=(const HistogramImpl&) = delete; 24952: 24952: virtual void Clear() override; 24952: virtual bool Empty() const override; 24952: virtual void Add(uint64_t value) override; 24952: virtual void Merge(const Histogram& other) override; 24952: void Merge(const HistogramImpl& other); 24952: 24952: virtual std::string ToString() const override; 24952: virtual const char* Name() const override { return "HistogramImpl"; } 24952: virtual uint64_t min() const override { return stats_.min(); } 24952: virtual uint64_t max() const override { return stats_.max(); } 24952: virtual uint64_t num() const override { return stats_.num(); } 24952: virtual double Median() const override; 24952: virtual double Percentile(double p) const override; 24952: virtual double Average() const override; 24952: virtual double StandardDeviation() const override; 24952: virtual void Data(HistogramData* const data) const override; 24952: 24952: virtual ~HistogramImpl() {} 24952: 24952: inline HistogramStat& TEST_GetStats() { return stats_; } 24952: 24952: private: 24952: HistogramStat stats_; 24952: std::mutex mutex_; 24952: }; 24952: 24952: } 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/likely.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/port/likely.h" 24952: 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 2 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/cassert" 1 3 24952: # 41 "/usr/include/c++/13/cassert" 3 24952: 24952: # 42 "/usr/include/c++/13/cassert" 3 24952: 24952: 24952: # 1 "/usr/include/assert.h" 1 3 4 24952: # 45 "/usr/include/c++/13/cassert" 2 3 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 2 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/assert.h" 1 3 4 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 2 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/lang.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 54 "/build/reproducible-path/rocksdb-8.9.1/port/lang.h" 24952: constexpr bool kMustFreeHeapAllocations = false; 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 2 24952: 24952: 24952: ; 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: template 24952: inline T BottomNBits(T v, int nbits) { 24952: static_assert(std::is_integral_v, "non-integral type"); 24952: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 24952: 24952: # 32 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 24952: (static_cast ( 24952: # 32 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: nbits >= 0 24952: # 32 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 32 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: "nbits >= 0" 24952: # 32 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 24952: , "./util/math.h", 32, __extension__ __PRETTY_FUNCTION__)) 24952: # 32 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: ; 24952: 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 24952: (static_cast ( 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: nbits < int{8 * sizeof(T)} 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: "nbits < int{8 * sizeof(T)}" 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 24952: , "./util/math.h", 33, __extension__ __PRETTY_FUNCTION__)) 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: ; 24952: # 44 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: return static_cast(v & ((T{1} << nbits) - 1)); 24952: } 24952: 24952: 24952: 24952: template 24952: inline int FloorLog2(T v) { 24952: static_assert(std::is_integral_v, "non-integral type"); 24952: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 24952: 24952: # 53 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 24952: (static_cast ( 24952: # 53 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: v > 0 24952: # 53 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 53 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: "v > 0" 24952: # 53 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 24952: , "./util/math.h", 53, __extension__ __PRETTY_FUNCTION__)) 24952: # 53 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: ; 24952: # 74 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 24952: if (sizeof(T) <= sizeof(unsigned int)) { 24952: int lz = __builtin_clz(static_cast(v)); 24952: return int{sizeof(unsigned int)} * 8 - 1 - lz; 24952: } else if (sizeof(T) <= sizeof(unsigned long)) { 24952: int lz = __builtin_clzl(static_cast(v)); 24952: return int{sizeof(unsigned long)} * 8 - 1 - lz; 24952: } else { 24952: int lz = __builtin_clzll(static_cast(v)); 24952: return int{sizeof(unsigned long long)} * 8 - 1 - lz; 24952: } 24952: 24952: } 24952: 24952: 24952: template 24952: constexpr int ConstexprFloorLog2(T v) { 24952: 24952: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 24952: int rv = 0; 24952: while (v > T{1}) { 24952: ++rv; 24952: v >>= 1; 24952: } 24952: return rv; 24952: } 24952: 24952: 24952: template 24952: inline int CountTrailingZeroBits(T v) { 24952: static_assert(std::is_integral_v, "non-integral type"); 24952: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 24952: 24952: # 106 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 24952: (static_cast ( 24952: # 106 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: v != 0 24952: # 106 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 106 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: "v != 0" 24952: # 106 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 3 4 24952: , "./util/math.h", 106, __extension__ __PRETTY_FUNCTION__)) 24952: # 106 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: ; 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 24952: if (sizeof(T) <= sizeof(unsigned int)) { 24952: return __builtin_ctz(static_cast(v)); 24952: } else if (sizeof(T) <= sizeof(unsigned long)) { 24952: return __builtin_ctzl(static_cast(v)); 24952: } else { 24952: return __builtin_ctzll(static_cast(v)); 24952: } 24952: 24952: } 24952: # 172 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: template 24952: inline int BitsSetToOne(T v) { 24952: static_assert(std::is_integral_v, "non-integral type"); 24952: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 24952: # 209 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 24952: if (sizeof(T) < sizeof(unsigned int)) { 24952: 24952: constexpr auto mm = 8 * sizeof(unsigned int) - 1; 24952: 24952: constexpr unsigned int m = (1U << ((8 * sizeof(T)) & mm)) - 1; 24952: return __builtin_popcount(static_cast(v) & m); 24952: } else if (sizeof(T) == sizeof(unsigned int)) { 24952: return __builtin_popcount(static_cast(v)); 24952: } else if (sizeof(T) <= sizeof(unsigned long)) { 24952: return __builtin_popcountl(static_cast(v)); 24952: } else { 24952: return __builtin_popcountll(static_cast(v)); 24952: } 24952: 24952: } 24952: 24952: template 24952: inline int BitParity(T v) { 24952: static_assert(std::is_integral_v, "non-integral type"); 24952: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 24952: 24952: 24952: 24952: 24952: 24952: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 24952: if (sizeof(T) <= sizeof(unsigned int)) { 24952: 24952: return __builtin_parity(static_cast(v)); 24952: } else if (sizeof(T) <= sizeof(unsigned long)) { 24952: return __builtin_parityl(static_cast(v)); 24952: } else { 24952: return __builtin_parityll(static_cast(v)); 24952: } 24952: 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: inline T EndianSwapValue(T v) { 24952: static_assert(std::is_integral_v, "non-integral type"); 24952: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 24952: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: if (sizeof(T) == 2) { 24952: return static_cast(__builtin_bswap16(static_cast(v))); 24952: } else if (sizeof(T) == 4) { 24952: return static_cast(__builtin_bswap32(static_cast(v))); 24952: } else if (sizeof(T) == 8) { 24952: return static_cast(__builtin_bswap64(static_cast(v))); 24952: } 24952: 24952: 24952: T ret_val = 0; 24952: for (std::size_t i = 0; i < sizeof(T); ++i) { 24952: ret_val |= ((v >> (8 * i)) & 0xff) << (8 * (sizeof(T) - 1 - i)); 24952: } 24952: return ret_val; 24952: } 24952: 24952: 24952: template 24952: inline T ReverseBits(T v) { 24952: static_assert(std::is_integral_v, "non-integral type"); 24952: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 24952: 24952: T r = EndianSwapValue(v); 24952: const T kHighestByte = T{1} << ((sizeof(T) - 1) * 8); 24952: const T kEveryByte = kHighestByte | (kHighestByte / 255); 24952: 24952: r = ((r & (kEveryByte * 0x0f)) << 4) | ((r >> 4) & (kEveryByte * 0x0f)); 24952: r = ((r & (kEveryByte * 0x33)) << 2) | ((r >> 2) & (kEveryByte * 0x33)); 24952: r = ((r & (kEveryByte * 0x55)) << 1) | ((r >> 1) & (kEveryByte * 0x55)); 24952: 24952: return r; 24952: } 24952: # 317 "/build/reproducible-path/rocksdb-8.9.1/util/math.h" 24952: template 24952: inline T DownwardInvolution(T v) { 24952: static_assert(std::is_integral_v, "non-integral type"); 24952: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 24952: static_assert(sizeof(T) <= 8, "only supported up to 64 bits"); 24952: 24952: uint64_t r = static_cast(v); 24952: if constexpr (sizeof(T) > 4) { 24952: r ^= r >> 32; 24952: } 24952: if constexpr (sizeof(T) > 2) { 24952: r ^= (r & 0xffff0000ffff0000U) >> 16; 24952: } 24952: if constexpr (sizeof(T) > 1) { 24952: r ^= (r & 0xff00ff00ff00ff00U) >> 8; 24952: } 24952: r ^= (r & 0xf0f0f0f0f0f0f0f0U) >> 4; 24952: r ^= (r & 0xccccccccccccccccU) >> 2; 24952: r ^= (r & 0xaaaaaaaaaaaaaaaaU) >> 1; 24952: return static_cast(r); 24952: } 24952: 24952: 24952: 24952: template 24952: inline std::conditional_t BitwiseAnd(A a, B b) { 24952: static_assert(std::is_integral_v, "non-integral type"); 24952: static_assert(std::is_integral_v, "non-integral type"); 24952: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 24952: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 24952: using Smaller = std::conditional_t; 24952: return static_cast(a & b); 24952: } 24952: 24952: } 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/random.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/util/random.h" 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/random" 1 3 24952: # 32 "/usr/include/c++/13/random" 3 24952: 24952: # 33 "/usr/include/c++/13/random" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/cmath" 1 3 24952: # 39 "/usr/include/c++/13/cmath" 3 24952: 24952: # 40 "/usr/include/c++/13/cmath" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/math.h" 1 3 4 24952: # 27 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 24952: # 28 "/usr/include/math.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 34 "/usr/include/math.h" 3 4 24952: extern "C" { 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 1 3 4 24952: # 27 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/libm-simd-decl-stubs.h" 1 3 4 24952: # 28 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 2 3 4 24952: # 41 "/usr/include/math.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 24952: # 44 "/usr/include/math.h" 2 3 4 24952: # 152 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/flt-eval-method.h" 1 3 4 24952: # 153 "/usr/include/math.h" 2 3 4 24952: # 163 "/usr/include/math.h" 3 4 24952: typedef float float_t; 24952: typedef double double_t; 24952: # 204 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-logb.h" 1 3 4 24952: # 205 "/usr/include/math.h" 2 3 4 24952: # 247 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-fast.h" 1 3 4 24952: # 248 "/usr/include/math.h" 2 3 4 24952: 24952: 24952: 24952: enum 24952: { 24952: FP_INT_UPWARD = 24952: 24952: 0, 24952: FP_INT_DOWNWARD = 24952: 24952: 1, 24952: FP_INT_TOWARDZERO = 24952: 24952: 2, 24952: FP_INT_TONEARESTFROMZERO = 24952: 24952: 3, 24952: FP_INT_TONEAREST = 24952: 24952: 4, 24952: }; 24952: # 312 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 24952: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 24952: extern int __fpclassify (double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern int __signbit (double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern int __isinf (double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern int __finite (double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern int __isnan (double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern int __iseqsig (double __x, double __y) noexcept (true); 24952: 24952: 24952: extern int __issignaling (double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: # 313 "/usr/include/math.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 24952: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern double acos (double __x) noexcept (true); extern double __acos (double __x) noexcept (true); 24952: 24952: extern double asin (double __x) noexcept (true); extern double __asin (double __x) noexcept (true); 24952: 24952: extern double atan (double __x) noexcept (true); extern double __atan (double __x) noexcept (true); 24952: 24952: extern double atan2 (double __y, double __x) noexcept (true); extern double __atan2 (double __y, double __x) noexcept (true); 24952: 24952: 24952: extern double cos (double __x) noexcept (true); extern double __cos (double __x) noexcept (true); 24952: 24952: extern double sin (double __x) noexcept (true); extern double __sin (double __x) noexcept (true); 24952: 24952: extern double tan (double __x) noexcept (true); extern double __tan (double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern double cosh (double __x) noexcept (true); extern double __cosh (double __x) noexcept (true); 24952: 24952: extern double sinh (double __x) noexcept (true); extern double __sinh (double __x) noexcept (true); 24952: 24952: extern double tanh (double __x) noexcept (true); extern double __tanh (double __x) noexcept (true); 24952: 24952: 24952: 24952: extern void sincos (double __x, double *__sinx, double *__cosx) noexcept (true); extern void __sincos (double __x, double *__sinx, double *__cosx) noexcept (true) 24952: ; 24952: 24952: 24952: 24952: 24952: extern double acosh (double __x) noexcept (true); extern double __acosh (double __x) noexcept (true); 24952: 24952: extern double asinh (double __x) noexcept (true); extern double __asinh (double __x) noexcept (true); 24952: 24952: extern double atanh (double __x) noexcept (true); extern double __atanh (double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern double exp (double __x) noexcept (true); extern double __exp (double __x) noexcept (true); 24952: 24952: 24952: extern double frexp (double __x, int *__exponent) noexcept (true); extern double __frexp (double __x, int *__exponent) noexcept (true); 24952: 24952: 24952: extern double ldexp (double __x, int __exponent) noexcept (true); extern double __ldexp (double __x, int __exponent) noexcept (true); 24952: 24952: 24952: extern double log (double __x) noexcept (true); extern double __log (double __x) noexcept (true); 24952: 24952: 24952: extern double log10 (double __x) noexcept (true); extern double __log10 (double __x) noexcept (true); 24952: 24952: 24952: extern double modf (double __x, double *__iptr) noexcept (true); extern double __modf (double __x, double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: 24952: extern double exp10 (double __x) noexcept (true); extern double __exp10 (double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern double expm1 (double __x) noexcept (true); extern double __expm1 (double __x) noexcept (true); 24952: 24952: 24952: extern double log1p (double __x) noexcept (true); extern double __log1p (double __x) noexcept (true); 24952: 24952: 24952: extern double logb (double __x) noexcept (true); extern double __logb (double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern double exp2 (double __x) noexcept (true); extern double __exp2 (double __x) noexcept (true); 24952: 24952: 24952: extern double log2 (double __x) noexcept (true); extern double __log2 (double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern double pow (double __x, double __y) noexcept (true); extern double __pow (double __x, double __y) noexcept (true); 24952: 24952: 24952: extern double sqrt (double __x) noexcept (true); extern double __sqrt (double __x) noexcept (true); 24952: 24952: 24952: 24952: extern double hypot (double __x, double __y) noexcept (true); extern double __hypot (double __x, double __y) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern double cbrt (double __x) noexcept (true); extern double __cbrt (double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern double ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double __ceil (double __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern double fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double __fabs (double __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern double floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double __floor (double __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern double fmod (double __x, double __y) noexcept (true); extern double __fmod (double __x, double __y) noexcept (true); 24952: # 183 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern int finite (double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern double drem (double __x, double __y) noexcept (true); extern double __drem (double __x, double __y) noexcept (true); 24952: 24952: 24952: 24952: extern double significand (double __x) noexcept (true); extern double __significand (double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern double copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern double nan (const char *__tagb) noexcept (true); extern double __nan (const char *__tagb) noexcept (true); 24952: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern double j0 (double) noexcept (true); extern double __j0 (double) noexcept (true); 24952: extern double j1 (double) noexcept (true); extern double __j1 (double) noexcept (true); 24952: extern double jn (int, double) noexcept (true); extern double __jn (int, double) noexcept (true); 24952: extern double y0 (double) noexcept (true); extern double __y0 (double) noexcept (true); 24952: extern double y1 (double) noexcept (true); extern double __y1 (double) noexcept (true); 24952: extern double yn (int, double) noexcept (true); extern double __yn (int, double) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern double erf (double) noexcept (true); extern double __erf (double) noexcept (true); 24952: extern double erfc (double) noexcept (true); extern double __erfc (double) noexcept (true); 24952: extern double lgamma (double) noexcept (true); extern double __lgamma (double) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern double tgamma (double) noexcept (true); extern double __tgamma (double) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern double gamma (double) noexcept (true); extern double __gamma (double) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern double lgamma_r (double, int *__signgamp) noexcept (true); extern double __lgamma_r (double, int *__signgamp) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern double rint (double __x) noexcept (true); extern double __rint (double __x) noexcept (true); 24952: 24952: 24952: extern double nextafter (double __x, double __y) noexcept (true); extern double __nextafter (double __x, double __y) noexcept (true); 24952: 24952: extern double nexttoward (double __x, long double __y) noexcept (true); extern double __nexttoward (double __x, long double __y) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern double nextdown (double __x) noexcept (true); extern double __nextdown (double __x) noexcept (true); 24952: 24952: extern double nextup (double __x) noexcept (true); extern double __nextup (double __x) noexcept (true); 24952: 24952: 24952: 24952: extern double remainder (double __x, double __y) noexcept (true); extern double __remainder (double __x, double __y) noexcept (true); 24952: 24952: 24952: 24952: extern double scalbn (double __x, int __n) noexcept (true); extern double __scalbn (double __x, int __n) noexcept (true); 24952: 24952: 24952: 24952: extern int ilogb (double __x) noexcept (true); extern int __ilogb (double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern long int llogb (double __x) noexcept (true); extern long int __llogb (double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern double scalbln (double __x, long int __n) noexcept (true); extern double __scalbln (double __x, long int __n) noexcept (true); 24952: 24952: 24952: 24952: extern double nearbyint (double __x) noexcept (true); extern double __nearbyint (double __x) noexcept (true); 24952: 24952: 24952: 24952: extern double round (double __x) noexcept (true) __attribute__ ((__const__)); extern double __round (double __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern double trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double __trunc (double __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern double remquo (double __x, double __y, int *__quo) noexcept (true); extern double __remquo (double __x, double __y, int *__quo) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long int lrint (double __x) noexcept (true); extern long int __lrint (double __x) noexcept (true); 24952: __extension__ 24952: extern long long int llrint (double __x) noexcept (true); extern long long int __llrint (double __x) noexcept (true); 24952: 24952: 24952: 24952: extern long int lround (double __x) noexcept (true); extern long int __lround (double __x) noexcept (true); 24952: __extension__ 24952: extern long long int llround (double __x) noexcept (true); extern long long int __llround (double __x) noexcept (true); 24952: 24952: 24952: 24952: extern double fdim (double __x, double __y) noexcept (true); extern double __fdim (double __x, double __y) noexcept (true); 24952: 24952: 24952: 24952: extern double fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern double fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern double fma (double __x, double __y, double __z) noexcept (true); extern double __fma (double __x, double __y, double __z) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern double roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern double __roundeven (double __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: extern int canonicalize (double *__cx, const double *__x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern double fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern double fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern double fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern double fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern double fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern double fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern double fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern double fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 24952: 24952: extern int totalorder (const double *__x, const double *__y) noexcept (true) 24952: 24952: __attribute__ ((__pure__)); 24952: 24952: 24952: extern int totalordermag (const double *__x, const double *__y) noexcept (true) 24952: 24952: __attribute__ ((__pure__)); 24952: 24952: 24952: extern double getpayload (const double *__x) noexcept (true); extern double __getpayload (const double *__x) noexcept (true); 24952: 24952: 24952: extern int setpayload (double *__x, double __payload) noexcept (true); 24952: 24952: 24952: extern int setpayloadsig (double *__x, double __payload) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern double scalb (double __x, double __n) noexcept (true); extern double __scalb (double __x, double __n) noexcept (true); 24952: # 314 "/usr/include/math.h" 2 3 4 24952: # 329 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 24952: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 24952: extern int __fpclassifyf (float __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern int __signbitf (float __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern int __isinff (float __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern int __finitef (float __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern int __isnanf (float __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern int __iseqsigf (float __x, float __y) noexcept (true); 24952: 24952: 24952: extern int __issignalingf (float __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: # 330 "/usr/include/math.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 24952: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern float acosf (float __x) noexcept (true); extern float __acosf (float __x) noexcept (true); 24952: 24952: extern float asinf (float __x) noexcept (true); extern float __asinf (float __x) noexcept (true); 24952: 24952: extern float atanf (float __x) noexcept (true); extern float __atanf (float __x) noexcept (true); 24952: 24952: extern float atan2f (float __y, float __x) noexcept (true); extern float __atan2f (float __y, float __x) noexcept (true); 24952: 24952: 24952: extern float cosf (float __x) noexcept (true); extern float __cosf (float __x) noexcept (true); 24952: 24952: extern float sinf (float __x) noexcept (true); extern float __sinf (float __x) noexcept (true); 24952: 24952: extern float tanf (float __x) noexcept (true); extern float __tanf (float __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern float coshf (float __x) noexcept (true); extern float __coshf (float __x) noexcept (true); 24952: 24952: extern float sinhf (float __x) noexcept (true); extern float __sinhf (float __x) noexcept (true); 24952: 24952: extern float tanhf (float __x) noexcept (true); extern float __tanhf (float __x) noexcept (true); 24952: 24952: 24952: 24952: extern void sincosf (float __x, float *__sinx, float *__cosx) noexcept (true); extern void __sincosf (float __x, float *__sinx, float *__cosx) noexcept (true) 24952: ; 24952: 24952: 24952: 24952: 24952: extern float acoshf (float __x) noexcept (true); extern float __acoshf (float __x) noexcept (true); 24952: 24952: extern float asinhf (float __x) noexcept (true); extern float __asinhf (float __x) noexcept (true); 24952: 24952: extern float atanhf (float __x) noexcept (true); extern float __atanhf (float __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern float expf (float __x) noexcept (true); extern float __expf (float __x) noexcept (true); 24952: 24952: 24952: extern float frexpf (float __x, int *__exponent) noexcept (true); extern float __frexpf (float __x, int *__exponent) noexcept (true); 24952: 24952: 24952: extern float ldexpf (float __x, int __exponent) noexcept (true); extern float __ldexpf (float __x, int __exponent) noexcept (true); 24952: 24952: 24952: extern float logf (float __x) noexcept (true); extern float __logf (float __x) noexcept (true); 24952: 24952: 24952: extern float log10f (float __x) noexcept (true); extern float __log10f (float __x) noexcept (true); 24952: 24952: 24952: extern float modff (float __x, float *__iptr) noexcept (true); extern float __modff (float __x, float *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: 24952: extern float exp10f (float __x) noexcept (true); extern float __exp10f (float __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern float expm1f (float __x) noexcept (true); extern float __expm1f (float __x) noexcept (true); 24952: 24952: 24952: extern float log1pf (float __x) noexcept (true); extern float __log1pf (float __x) noexcept (true); 24952: 24952: 24952: extern float logbf (float __x) noexcept (true); extern float __logbf (float __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern float exp2f (float __x) noexcept (true); extern float __exp2f (float __x) noexcept (true); 24952: 24952: 24952: extern float log2f (float __x) noexcept (true); extern float __log2f (float __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern float powf (float __x, float __y) noexcept (true); extern float __powf (float __x, float __y) noexcept (true); 24952: 24952: 24952: extern float sqrtf (float __x) noexcept (true); extern float __sqrtf (float __x) noexcept (true); 24952: 24952: 24952: 24952: extern float hypotf (float __x, float __y) noexcept (true); extern float __hypotf (float __x, float __y) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern float cbrtf (float __x) noexcept (true); extern float __cbrtf (float __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern float ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __ceilf (float __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern float fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __fabsf (float __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern float floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __floorf (float __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern float fmodf (float __x, float __y) noexcept (true); extern float __fmodf (float __x, float __y) noexcept (true); 24952: # 177 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern int isinff (float __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern int finitef (float __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern float dremf (float __x, float __y) noexcept (true); extern float __dremf (float __x, float __y) noexcept (true); 24952: 24952: 24952: 24952: extern float significandf (float __x) noexcept (true); extern float __significandf (float __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern float copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern float nanf (const char *__tagb) noexcept (true); extern float __nanf (const char *__tagb) noexcept (true); 24952: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern int isnanf (float __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: 24952: extern float j0f (float) noexcept (true); extern float __j0f (float) noexcept (true); 24952: extern float j1f (float) noexcept (true); extern float __j1f (float) noexcept (true); 24952: extern float jnf (int, float) noexcept (true); extern float __jnf (int, float) noexcept (true); 24952: extern float y0f (float) noexcept (true); extern float __y0f (float) noexcept (true); 24952: extern float y1f (float) noexcept (true); extern float __y1f (float) noexcept (true); 24952: extern float ynf (int, float) noexcept (true); extern float __ynf (int, float) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern float erff (float) noexcept (true); extern float __erff (float) noexcept (true); 24952: extern float erfcf (float) noexcept (true); extern float __erfcf (float) noexcept (true); 24952: extern float lgammaf (float) noexcept (true); extern float __lgammaf (float) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern float tgammaf (float) noexcept (true); extern float __tgammaf (float) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern float gammaf (float) noexcept (true); extern float __gammaf (float) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern float lgammaf_r (float, int *__signgamp) noexcept (true); extern float __lgammaf_r (float, int *__signgamp) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern float rintf (float __x) noexcept (true); extern float __rintf (float __x) noexcept (true); 24952: 24952: 24952: extern float nextafterf (float __x, float __y) noexcept (true); extern float __nextafterf (float __x, float __y) noexcept (true); 24952: 24952: extern float nexttowardf (float __x, long double __y) noexcept (true); extern float __nexttowardf (float __x, long double __y) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern float nextdownf (float __x) noexcept (true); extern float __nextdownf (float __x) noexcept (true); 24952: 24952: extern float nextupf (float __x) noexcept (true); extern float __nextupf (float __x) noexcept (true); 24952: 24952: 24952: 24952: extern float remainderf (float __x, float __y) noexcept (true); extern float __remainderf (float __x, float __y) noexcept (true); 24952: 24952: 24952: 24952: extern float scalbnf (float __x, int __n) noexcept (true); extern float __scalbnf (float __x, int __n) noexcept (true); 24952: 24952: 24952: 24952: extern int ilogbf (float __x) noexcept (true); extern int __ilogbf (float __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern long int llogbf (float __x) noexcept (true); extern long int __llogbf (float __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern float scalblnf (float __x, long int __n) noexcept (true); extern float __scalblnf (float __x, long int __n) noexcept (true); 24952: 24952: 24952: 24952: extern float nearbyintf (float __x) noexcept (true); extern float __nearbyintf (float __x) noexcept (true); 24952: 24952: 24952: 24952: extern float roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundf (float __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern float truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __truncf (float __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern float remquof (float __x, float __y, int *__quo) noexcept (true); extern float __remquof (float __x, float __y, int *__quo) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long int lrintf (float __x) noexcept (true); extern long int __lrintf (float __x) noexcept (true); 24952: __extension__ 24952: extern long long int llrintf (float __x) noexcept (true); extern long long int __llrintf (float __x) noexcept (true); 24952: 24952: 24952: 24952: extern long int lroundf (float __x) noexcept (true); extern long int __lroundf (float __x) noexcept (true); 24952: __extension__ 24952: extern long long int llroundf (float __x) noexcept (true); extern long long int __llroundf (float __x) noexcept (true); 24952: 24952: 24952: 24952: extern float fdimf (float __x, float __y) noexcept (true); extern float __fdimf (float __x, float __y) noexcept (true); 24952: 24952: 24952: 24952: extern float fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern float fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern float fmaf (float __x, float __y, float __z) noexcept (true); extern float __fmaf (float __x, float __y, float __z) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern float roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: extern int canonicalizef (float *__cx, const float *__x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern float fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern float fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern float fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern float fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern float fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern float fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern float fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern float fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 24952: 24952: extern int totalorderf (const float *__x, const float *__y) noexcept (true) 24952: 24952: __attribute__ ((__pure__)); 24952: 24952: 24952: extern int totalordermagf (const float *__x, const float *__y) noexcept (true) 24952: 24952: __attribute__ ((__pure__)); 24952: 24952: 24952: extern float getpayloadf (const float *__x) noexcept (true); extern float __getpayloadf (const float *__x) noexcept (true); 24952: 24952: 24952: extern int setpayloadf (float *__x, float __payload) noexcept (true); 24952: 24952: 24952: extern int setpayloadsigf (float *__x, float __payload) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern float scalbf (float __x, float __n) noexcept (true); extern float __scalbf (float __x, float __n) noexcept (true); 24952: # 331 "/usr/include/math.h" 2 3 4 24952: # 398 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 24952: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 24952: extern int __fpclassifyl (long double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern int __signbitl (long double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern int __isinfl (long double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern int __finitel (long double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern int __isnanl (long double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern int __iseqsigl (long double __x, long double __y) noexcept (true); 24952: 24952: 24952: extern int __issignalingl (long double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: # 399 "/usr/include/math.h" 2 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 24952: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern long double acosl (long double __x) noexcept (true); extern long double __acosl (long double __x) noexcept (true); 24952: 24952: extern long double asinl (long double __x) noexcept (true); extern long double __asinl (long double __x) noexcept (true); 24952: 24952: extern long double atanl (long double __x) noexcept (true); extern long double __atanl (long double __x) noexcept (true); 24952: 24952: extern long double atan2l (long double __y, long double __x) noexcept (true); extern long double __atan2l (long double __y, long double __x) noexcept (true); 24952: 24952: 24952: extern long double cosl (long double __x) noexcept (true); extern long double __cosl (long double __x) noexcept (true); 24952: 24952: extern long double sinl (long double __x) noexcept (true); extern long double __sinl (long double __x) noexcept (true); 24952: 24952: extern long double tanl (long double __x) noexcept (true); extern long double __tanl (long double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern long double coshl (long double __x) noexcept (true); extern long double __coshl (long double __x) noexcept (true); 24952: 24952: extern long double sinhl (long double __x) noexcept (true); extern long double __sinhl (long double __x) noexcept (true); 24952: 24952: extern long double tanhl (long double __x) noexcept (true); extern long double __tanhl (long double __x) noexcept (true); 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 24952: extern long double acoshl (long double __x) noexcept (true); extern long double __acoshl (long double __x) noexcept (true); 24952: 24952: extern long double asinhl (long double __x) noexcept (true); extern long double __asinhl (long double __x) noexcept (true); 24952: 24952: extern long double atanhl (long double __x) noexcept (true); extern long double __atanhl (long double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern long double expl (long double __x) noexcept (true); extern long double __expl (long double __x) noexcept (true); 24952: 24952: 24952: extern long double frexpl (long double __x, int *__exponent) noexcept (true); extern long double __frexpl (long double __x, int *__exponent) noexcept (true); 24952: 24952: 24952: extern long double ldexpl (long double __x, int __exponent) noexcept (true); extern long double __ldexpl (long double __x, int __exponent) noexcept (true); 24952: 24952: 24952: extern long double logl (long double __x) noexcept (true); extern long double __logl (long double __x) noexcept (true); 24952: 24952: 24952: extern long double log10l (long double __x) noexcept (true); extern long double __log10l (long double __x) noexcept (true); 24952: 24952: 24952: 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))); 24952: 24952: 24952: 24952: extern long double exp10l (long double __x) noexcept (true); extern long double __exp10l (long double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern long double expm1l (long double __x) noexcept (true); extern long double __expm1l (long double __x) noexcept (true); 24952: 24952: 24952: extern long double log1pl (long double __x) noexcept (true); extern long double __log1pl (long double __x) noexcept (true); 24952: 24952: 24952: extern long double logbl (long double __x) noexcept (true); extern long double __logbl (long double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern long double exp2l (long double __x) noexcept (true); extern long double __exp2l (long double __x) noexcept (true); 24952: 24952: 24952: extern long double log2l (long double __x) noexcept (true); extern long double __log2l (long double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long double powl (long double __x, long double __y) noexcept (true); extern long double __powl (long double __x, long double __y) noexcept (true); 24952: 24952: 24952: extern long double sqrtl (long double __x) noexcept (true); extern long double __sqrtl (long double __x) noexcept (true); 24952: 24952: 24952: 24952: extern long double hypotl (long double __x, long double __y) noexcept (true); extern long double __hypotl (long double __x, long double __y) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern long double cbrtl (long double __x) noexcept (true); extern long double __cbrtl (long double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long double ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __ceill (long double __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern long double fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern long double floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __floorl (long double __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern long double fmodl (long double __x, long double __y) noexcept (true); extern long double __fmodl (long double __x, long double __y) noexcept (true); 24952: # 177 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern int isinfl (long double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern int finitel (long double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: extern long double dreml (long double __x, long double __y) noexcept (true); extern long double __dreml (long double __x, long double __y) noexcept (true); 24952: 24952: 24952: 24952: extern long double significandl (long double __x) noexcept (true); extern long double __significandl (long double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 24952: 24952: extern long double nanl (const char *__tagb) noexcept (true); extern long double __nanl (const char *__tagb) noexcept (true); 24952: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern int isnanl (long double __value) noexcept (true) 24952: __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: 24952: extern long double j0l (long double) noexcept (true); extern long double __j0l (long double) noexcept (true); 24952: extern long double j1l (long double) noexcept (true); extern long double __j1l (long double) noexcept (true); 24952: extern long double jnl (int, long double) noexcept (true); extern long double __jnl (int, long double) noexcept (true); 24952: extern long double y0l (long double) noexcept (true); extern long double __y0l (long double) noexcept (true); 24952: extern long double y1l (long double) noexcept (true); extern long double __y1l (long double) noexcept (true); 24952: extern long double ynl (int, long double) noexcept (true); extern long double __ynl (int, long double) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern long double erfl (long double) noexcept (true); extern long double __erfl (long double) noexcept (true); 24952: extern long double erfcl (long double) noexcept (true); extern long double __erfcl (long double) noexcept (true); 24952: extern long double lgammal (long double) noexcept (true); extern long double __lgammal (long double) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern long double tgammal (long double) noexcept (true); extern long double __tgammal (long double) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern long double gammal (long double) noexcept (true); extern long double __gammal (long double) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long double lgammal_r (long double, int *__signgamp) noexcept (true); extern long double __lgammal_r (long double, int *__signgamp) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long double rintl (long double __x) noexcept (true); extern long double __rintl (long double __x) noexcept (true); 24952: 24952: 24952: extern long double nextafterl (long double __x, long double __y) noexcept (true); extern long double __nextafterl (long double __x, long double __y) noexcept (true); 24952: 24952: extern long double nexttowardl (long double __x, long double __y) noexcept (true); extern long double __nexttowardl (long double __x, long double __y) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern long double nextdownl (long double __x) noexcept (true); extern long double __nextdownl (long double __x) noexcept (true); 24952: 24952: extern long double nextupl (long double __x) noexcept (true); extern long double __nextupl (long double __x) noexcept (true); 24952: 24952: 24952: 24952: extern long double remainderl (long double __x, long double __y) noexcept (true); extern long double __remainderl (long double __x, long double __y) noexcept (true); 24952: 24952: 24952: 24952: extern long double scalbnl (long double __x, int __n) noexcept (true); extern long double __scalbnl (long double __x, int __n) noexcept (true); 24952: 24952: 24952: 24952: extern int ilogbl (long double __x) noexcept (true); extern int __ilogbl (long double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern long int llogbl (long double __x) noexcept (true); extern long int __llogbl (long double __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern long double scalblnl (long double __x, long int __n) noexcept (true); extern long double __scalblnl (long double __x, long int __n) noexcept (true); 24952: 24952: 24952: 24952: extern long double nearbyintl (long double __x) noexcept (true); extern long double __nearbyintl (long double __x) noexcept (true); 24952: 24952: 24952: 24952: extern long double roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundl (long double __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern long double truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __truncl (long double __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: 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); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long int lrintl (long double __x) noexcept (true); extern long int __lrintl (long double __x) noexcept (true); 24952: __extension__ 24952: extern long long int llrintl (long double __x) noexcept (true); extern long long int __llrintl (long double __x) noexcept (true); 24952: 24952: 24952: 24952: extern long int lroundl (long double __x) noexcept (true); extern long int __lroundl (long double __x) noexcept (true); 24952: __extension__ 24952: extern long long int llroundl (long double __x) noexcept (true); extern long long int __llroundl (long double __x) noexcept (true); 24952: 24952: 24952: 24952: extern long double fdiml (long double __x, long double __y) noexcept (true); extern long double __fdiml (long double __x, long double __y) noexcept (true); 24952: 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 24952: 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); 24952: 24952: 24952: 24952: 24952: extern long double roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: extern int canonicalizel (long double *__cx, const long double *__x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 24952: 24952: extern int totalorderl (const long double *__x, const long double *__y) noexcept (true) 24952: 24952: __attribute__ ((__pure__)); 24952: 24952: 24952: extern int totalordermagl (const long double *__x, const long double *__y) noexcept (true) 24952: 24952: __attribute__ ((__pure__)); 24952: 24952: 24952: extern long double getpayloadl (const long double *__x) noexcept (true); extern long double __getpayloadl (const long double *__x) noexcept (true); 24952: 24952: 24952: extern int setpayloadl (long double *__x, long double __payload) noexcept (true); 24952: 24952: 24952: extern int setpayloadsigl (long double *__x, long double __payload) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long double scalbl (long double __x, long double __n) noexcept (true); extern long double __scalbl (long double __x, long double __n) noexcept (true); 24952: # 400 "/usr/include/math.h" 2 3 4 24952: # 450 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 24952: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true); 24952: 24952: extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true); 24952: 24952: extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true); 24952: 24952: extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); 24952: 24952: 24952: extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true); 24952: 24952: extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true); 24952: 24952: extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true); 24952: 24952: extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true); 24952: 24952: extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true) 24952: ; 24952: 24952: 24952: 24952: 24952: extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true); 24952: 24952: extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true); 24952: 24952: extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true); 24952: 24952: 24952: extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true); 24952: 24952: 24952: extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: 24952: extern _Float32 exp10f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10f32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32 expm1f32 (_Float32 __x) noexcept (true); extern _Float32 __expm1f32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: extern _Float32 log1pf32 (_Float32 __x) noexcept (true); extern _Float32 __log1pf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: extern _Float32 logbf32 (_Float32 __x) noexcept (true); extern _Float32 __logbf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32 exp2f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2f32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: extern _Float32 log2f32 (_Float32 __x) noexcept (true); extern _Float32 __log2f32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32 powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) noexcept (true); 24952: 24952: 24952: extern _Float32 sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __sqrtf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32 cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 __cbrtf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32 ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32 fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32 floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); 24952: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern _Float32 nanf32 (const char *__tagb) noexcept (true); extern _Float32 __nanf32 (const char *__tagb) noexcept (true); 24952: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern _Float32 j0f32 (_Float32) noexcept (true); extern _Float32 __j0f32 (_Float32) noexcept (true); 24952: extern _Float32 j1f32 (_Float32) noexcept (true); extern _Float32 __j1f32 (_Float32) noexcept (true); 24952: extern _Float32 jnf32 (int, _Float32) noexcept (true); extern _Float32 __jnf32 (int, _Float32) noexcept (true); 24952: extern _Float32 y0f32 (_Float32) noexcept (true); extern _Float32 __y0f32 (_Float32) noexcept (true); 24952: extern _Float32 y1f32 (_Float32) noexcept (true); extern _Float32 __y1f32 (_Float32) noexcept (true); 24952: extern _Float32 ynf32 (int, _Float32) noexcept (true); extern _Float32 __ynf32 (int, _Float32) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32 erff32 (_Float32) noexcept (true); extern _Float32 __erff32 (_Float32) noexcept (true); 24952: extern _Float32 erfcf32 (_Float32) noexcept (true); extern _Float32 __erfcf32 (_Float32) noexcept (true); 24952: extern _Float32 lgammaf32 (_Float32) noexcept (true); extern _Float32 __lgammaf32 (_Float32) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32 tgammaf32 (_Float32) noexcept (true); extern _Float32 __tgammaf32 (_Float32) noexcept (true); 24952: # 252 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern _Float32 lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32 rintf32 (_Float32 __x) noexcept (true); extern _Float32 __rintf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32 nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 __nextdownf32 (_Float32 __x) noexcept (true); 24952: 24952: extern _Float32 nextupf32 (_Float32 __x) noexcept (true); extern _Float32 __nextupf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32 scalbnf32 (_Float32 __x, int __n) noexcept (true); extern _Float32 __scalbnf32 (_Float32 __x, int __n) noexcept (true); 24952: 24952: 24952: 24952: extern int ilogbf32 (_Float32 __x) noexcept (true); extern int __ilogbf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern long int llogbf32 (_Float32 __x) noexcept (true); extern long int __llogbf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32 scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32 nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 __nearbyintf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32 roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern _Float32 truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long int lrintf32 (_Float32 __x) noexcept (true); extern long int __lrintf32 (_Float32 __x) noexcept (true); 24952: __extension__ 24952: extern long long int llrintf32 (_Float32 __x) noexcept (true); extern long long int __llrintf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: extern long int lroundf32 (_Float32 __x) noexcept (true); extern long int __lroundf32 (_Float32 __x) noexcept (true); 24952: __extension__ 24952: extern long long int llroundf32 (_Float32 __x) noexcept (true); extern long long int __llroundf32 (_Float32 __x) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32 fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32 roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern _Float32 fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32 fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32 fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32 fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32 fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32 fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 24952: 24952: extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 24952: 24952: __attribute__ ((__pure__)); 24952: 24952: 24952: extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 24952: 24952: __attribute__ ((__pure__)); 24952: 24952: 24952: extern _Float32 getpayloadf32 (const _Float32 *__x) noexcept (true); extern _Float32 __getpayloadf32 (const _Float32 *__x) noexcept (true); 24952: 24952: 24952: extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 24952: 24952: 24952: extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 24952: # 451 "/usr/include/math.h" 2 3 4 24952: # 467 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 24952: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern _Float64 acosf64 (_Float64 __x) noexcept (true); extern _Float64 __acosf64 (_Float64 __x) noexcept (true); 24952: 24952: extern _Float64 asinf64 (_Float64 __x) noexcept (true); extern _Float64 __asinf64 (_Float64 __x) noexcept (true); 24952: 24952: extern _Float64 atanf64 (_Float64 __x) noexcept (true); extern _Float64 __atanf64 (_Float64 __x) noexcept (true); 24952: 24952: extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); 24952: 24952: 24952: extern _Float64 cosf64 (_Float64 __x) noexcept (true); extern _Float64 __cosf64 (_Float64 __x) noexcept (true); 24952: 24952: extern _Float64 sinf64 (_Float64 __x) noexcept (true); extern _Float64 __sinf64 (_Float64 __x) noexcept (true); 24952: 24952: extern _Float64 tanf64 (_Float64 __x) noexcept (true); extern _Float64 __tanf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float64 coshf64 (_Float64 __x) noexcept (true); extern _Float64 __coshf64 (_Float64 __x) noexcept (true); 24952: 24952: extern _Float64 sinhf64 (_Float64 __x) noexcept (true); extern _Float64 __sinhf64 (_Float64 __x) noexcept (true); 24952: 24952: extern _Float64 tanhf64 (_Float64 __x) noexcept (true); extern _Float64 __tanhf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true) 24952: ; 24952: 24952: 24952: 24952: 24952: extern _Float64 acoshf64 (_Float64 __x) noexcept (true); extern _Float64 __acoshf64 (_Float64 __x) noexcept (true); 24952: 24952: extern _Float64 asinhf64 (_Float64 __x) noexcept (true); extern _Float64 __asinhf64 (_Float64 __x) noexcept (true); 24952: 24952: extern _Float64 atanhf64 (_Float64 __x) noexcept (true); extern _Float64 __atanhf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern _Float64 expf64 (_Float64 __x) noexcept (true); extern _Float64 __expf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: extern _Float64 frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) noexcept (true); 24952: 24952: 24952: extern _Float64 ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) noexcept (true); 24952: 24952: 24952: extern _Float64 logf64 (_Float64 __x) noexcept (true); extern _Float64 __logf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: extern _Float64 log10f64 (_Float64 __x) noexcept (true); extern _Float64 __log10f64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: 24952: extern _Float64 exp10f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10f64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float64 expm1f64 (_Float64 __x) noexcept (true); extern _Float64 __expm1f64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: extern _Float64 log1pf64 (_Float64 __x) noexcept (true); extern _Float64 __log1pf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: extern _Float64 logbf64 (_Float64 __x) noexcept (true); extern _Float64 __logbf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float64 exp2f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2f64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: extern _Float64 log2f64 (_Float64 __x) noexcept (true); extern _Float64 __log2f64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float64 powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: 24952: 24952: extern _Float64 sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __sqrtf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float64 cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 __cbrtf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float64 ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float64 fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float64 floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern _Float64 nanf64 (const char *__tagb) noexcept (true); extern _Float64 __nanf64 (const char *__tagb) noexcept (true); 24952: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern _Float64 j0f64 (_Float64) noexcept (true); extern _Float64 __j0f64 (_Float64) noexcept (true); 24952: extern _Float64 j1f64 (_Float64) noexcept (true); extern _Float64 __j1f64 (_Float64) noexcept (true); 24952: extern _Float64 jnf64 (int, _Float64) noexcept (true); extern _Float64 __jnf64 (int, _Float64) noexcept (true); 24952: extern _Float64 y0f64 (_Float64) noexcept (true); extern _Float64 __y0f64 (_Float64) noexcept (true); 24952: extern _Float64 y1f64 (_Float64) noexcept (true); extern _Float64 __y1f64 (_Float64) noexcept (true); 24952: extern _Float64 ynf64 (int, _Float64) noexcept (true); extern _Float64 __ynf64 (int, _Float64) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern _Float64 erff64 (_Float64) noexcept (true); extern _Float64 __erff64 (_Float64) noexcept (true); 24952: extern _Float64 erfcf64 (_Float64) noexcept (true); extern _Float64 __erfcf64 (_Float64) noexcept (true); 24952: extern _Float64 lgammaf64 (_Float64) noexcept (true); extern _Float64 __lgammaf64 (_Float64) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float64 tgammaf64 (_Float64) noexcept (true); extern _Float64 __tgammaf64 (_Float64) noexcept (true); 24952: # 252 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern _Float64 lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float64 rintf64 (_Float64 __x) noexcept (true); extern _Float64 __rintf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float64 nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 __nextdownf64 (_Float64 __x) noexcept (true); 24952: 24952: extern _Float64 nextupf64 (_Float64 __x) noexcept (true); extern _Float64 __nextupf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: 24952: 24952: 24952: extern _Float64 scalbnf64 (_Float64 __x, int __n) noexcept (true); extern _Float64 __scalbnf64 (_Float64 __x, int __n) noexcept (true); 24952: 24952: 24952: 24952: extern int ilogbf64 (_Float64 __x) noexcept (true); extern int __ilogbf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern long int llogbf64 (_Float64 __x) noexcept (true); extern long int __llogbf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float64 scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) noexcept (true); 24952: 24952: 24952: 24952: extern _Float64 nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 __nearbyintf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: extern _Float64 roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern _Float64 truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long int lrintf64 (_Float64 __x) noexcept (true); extern long int __lrintf64 (_Float64 __x) noexcept (true); 24952: __extension__ 24952: extern long long int llrintf64 (_Float64 __x) noexcept (true); extern long long int __llrintf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: extern long int lroundf64 (_Float64 __x) noexcept (true); extern long int __lroundf64 (_Float64 __x) noexcept (true); 24952: __extension__ 24952: extern long long int llroundf64 (_Float64 __x) noexcept (true); extern long long int __llroundf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: 24952: extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: 24952: 24952: 24952: extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float64 fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float64 roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern _Float64 fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float64 fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float64 fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float64 fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float64 fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float64 fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 24952: 24952: extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 24952: 24952: __attribute__ ((__pure__)); 24952: 24952: 24952: extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 24952: 24952: __attribute__ ((__pure__)); 24952: 24952: 24952: extern _Float64 getpayloadf64 (const _Float64 *__x) noexcept (true); extern _Float64 __getpayloadf64 (const _Float64 *__x) noexcept (true); 24952: 24952: 24952: extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 24952: 24952: 24952: extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 24952: # 468 "/usr/include/math.h" 2 3 4 24952: # 501 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 24952: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern _Float32x acosf32x (_Float32x __x) noexcept (true); extern _Float32x __acosf32x (_Float32x __x) noexcept (true); 24952: 24952: extern _Float32x asinf32x (_Float32x __x) noexcept (true); extern _Float32x __asinf32x (_Float32x __x) noexcept (true); 24952: 24952: extern _Float32x atanf32x (_Float32x __x) noexcept (true); extern _Float32x __atanf32x (_Float32x __x) noexcept (true); 24952: 24952: extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); 24952: 24952: 24952: extern _Float32x cosf32x (_Float32x __x) noexcept (true); extern _Float32x __cosf32x (_Float32x __x) noexcept (true); 24952: 24952: extern _Float32x sinf32x (_Float32x __x) noexcept (true); extern _Float32x __sinf32x (_Float32x __x) noexcept (true); 24952: 24952: extern _Float32x tanf32x (_Float32x __x) noexcept (true); extern _Float32x __tanf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32x coshf32x (_Float32x __x) noexcept (true); extern _Float32x __coshf32x (_Float32x __x) noexcept (true); 24952: 24952: extern _Float32x sinhf32x (_Float32x __x) noexcept (true); extern _Float32x __sinhf32x (_Float32x __x) noexcept (true); 24952: 24952: extern _Float32x tanhf32x (_Float32x __x) noexcept (true); extern _Float32x __tanhf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true) 24952: ; 24952: 24952: 24952: 24952: 24952: extern _Float32x acoshf32x (_Float32x __x) noexcept (true); extern _Float32x __acoshf32x (_Float32x __x) noexcept (true); 24952: 24952: extern _Float32x asinhf32x (_Float32x __x) noexcept (true); extern _Float32x __asinhf32x (_Float32x __x) noexcept (true); 24952: 24952: extern _Float32x atanhf32x (_Float32x __x) noexcept (true); extern _Float32x __atanhf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32x expf32x (_Float32x __x) noexcept (true); extern _Float32x __expf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: extern _Float32x frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) noexcept (true); 24952: 24952: 24952: extern _Float32x ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) noexcept (true); 24952: 24952: 24952: extern _Float32x logf32x (_Float32x __x) noexcept (true); extern _Float32x __logf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: extern _Float32x log10f32x (_Float32x __x) noexcept (true); extern _Float32x __log10f32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: 24952: extern _Float32x exp10f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10f32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32x expm1f32x (_Float32x __x) noexcept (true); extern _Float32x __expm1f32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: extern _Float32x log1pf32x (_Float32x __x) noexcept (true); extern _Float32x __log1pf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: extern _Float32x logbf32x (_Float32x __x) noexcept (true); extern _Float32x __logbf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32x exp2f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2f32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: extern _Float32x log2f32x (_Float32x __x) noexcept (true); extern _Float32x __log2f32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32x powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) noexcept (true); 24952: 24952: 24952: extern _Float32x sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __sqrtf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32x cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x __cbrtf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32x ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32x fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32x floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); 24952: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern _Float32x nanf32x (const char *__tagb) noexcept (true); extern _Float32x __nanf32x (const char *__tagb) noexcept (true); 24952: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern _Float32x j0f32x (_Float32x) noexcept (true); extern _Float32x __j0f32x (_Float32x) noexcept (true); 24952: extern _Float32x j1f32x (_Float32x) noexcept (true); extern _Float32x __j1f32x (_Float32x) noexcept (true); 24952: extern _Float32x jnf32x (int, _Float32x) noexcept (true); extern _Float32x __jnf32x (int, _Float32x) noexcept (true); 24952: extern _Float32x y0f32x (_Float32x) noexcept (true); extern _Float32x __y0f32x (_Float32x) noexcept (true); 24952: extern _Float32x y1f32x (_Float32x) noexcept (true); extern _Float32x __y1f32x (_Float32x) noexcept (true); 24952: extern _Float32x ynf32x (int, _Float32x) noexcept (true); extern _Float32x __ynf32x (int, _Float32x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32x erff32x (_Float32x) noexcept (true); extern _Float32x __erff32x (_Float32x) noexcept (true); 24952: extern _Float32x erfcf32x (_Float32x) noexcept (true); extern _Float32x __erfcf32x (_Float32x) noexcept (true); 24952: extern _Float32x lgammaf32x (_Float32x) noexcept (true); extern _Float32x __lgammaf32x (_Float32x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32x tgammaf32x (_Float32x) noexcept (true); extern _Float32x __tgammaf32x (_Float32x) noexcept (true); 24952: # 252 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 24952: extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32x rintf32x (_Float32x __x) noexcept (true); extern _Float32x __rintf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32x nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x __nextdownf32x (_Float32x __x) noexcept (true); 24952: 24952: extern _Float32x nextupf32x (_Float32x __x) noexcept (true); extern _Float32x __nextupf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32x scalbnf32x (_Float32x __x, int __n) noexcept (true); extern _Float32x __scalbnf32x (_Float32x __x, int __n) noexcept (true); 24952: 24952: 24952: 24952: extern int ilogbf32x (_Float32x __x) noexcept (true); extern int __ilogbf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern long int llogbf32x (_Float32x __x) noexcept (true); extern long int __llogbf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32x scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32x nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x __nearbyintf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32x roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern _Float32x truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long int lrintf32x (_Float32x __x) noexcept (true); extern long int __lrintf32x (_Float32x __x) noexcept (true); 24952: __extension__ 24952: extern long long int llrintf32x (_Float32x __x) noexcept (true); extern long long int __llrintf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: extern long int lroundf32x (_Float32x __x) noexcept (true); extern long int __lroundf32x (_Float32x __x) noexcept (true); 24952: __extension__ 24952: extern long long int llroundf32x (_Float32x __x) noexcept (true); extern long long int __llroundf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); 24952: 24952: 24952: 24952: extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32x fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern _Float32x roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: 24952: 24952: 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) 24952: ; 24952: 24952: 24952: extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern _Float32x fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32x fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32x fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32x fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32x fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern _Float32x fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 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__)); 24952: 24952: 24952: 24952: 24952: extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 24952: 24952: __attribute__ ((__pure__)); 24952: 24952: 24952: extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 24952: 24952: __attribute__ ((__pure__)); 24952: 24952: 24952: extern _Float32x getpayloadf32x (const _Float32x *__x) noexcept (true); extern _Float32x __getpayloadf32x (const _Float32x *__x) noexcept (true); 24952: 24952: 24952: extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 24952: 24952: 24952: extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 24952: # 502 "/usr/include/math.h" 2 3 4 24952: # 566 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 24952: extern float fadd (double __x, double __y) noexcept (true); 24952: 24952: 24952: extern float fdiv (double __x, double __y) noexcept (true); 24952: 24952: 24952: extern float ffma (double __x, double __y, double __z) noexcept (true); 24952: 24952: 24952: extern float fmul (double __x, double __y) noexcept (true); 24952: 24952: 24952: extern float fsqrt (double __x) noexcept (true); 24952: 24952: 24952: extern float fsub (double __x, double __y) noexcept (true); 24952: # 567 "/usr/include/math.h" 2 3 4 24952: # 587 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 24952: extern float faddl (long double __x, long double __y) noexcept (true); 24952: 24952: 24952: extern float fdivl (long double __x, long double __y) noexcept (true); 24952: 24952: 24952: extern float ffmal (long double __x, long double __y, long double __z) noexcept (true); 24952: 24952: 24952: extern float fmull (long double __x, long double __y) noexcept (true); 24952: 24952: 24952: extern float fsqrtl (long double __x) noexcept (true); 24952: 24952: 24952: extern float fsubl (long double __x, long double __y) noexcept (true); 24952: # 588 "/usr/include/math.h" 2 3 4 24952: # 616 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 24952: extern double daddl (long double __x, long double __y) noexcept (true); 24952: 24952: 24952: extern double ddivl (long double __x, long double __y) noexcept (true); 24952: 24952: 24952: extern double dfmal (long double __x, long double __y, long double __z) noexcept (true); 24952: 24952: 24952: extern double dmull (long double __x, long double __y) noexcept (true); 24952: 24952: 24952: extern double dsqrtl (long double __x) noexcept (true); 24952: 24952: 24952: extern double dsubl (long double __x, long double __y) noexcept (true); 24952: # 617 "/usr/include/math.h" 2 3 4 24952: # 697 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 24952: extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) noexcept (true); 24952: 24952: 24952: extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) noexcept (true); 24952: 24952: 24952: extern _Float32 f32fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 24952: 24952: 24952: extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) noexcept (true); 24952: 24952: 24952: extern _Float32 f32sqrtf32x (_Float32x __x) noexcept (true); 24952: 24952: 24952: extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) noexcept (true); 24952: # 698 "/usr/include/math.h" 2 3 4 24952: # 707 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 24952: extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: 24952: 24952: extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: 24952: 24952: extern _Float32 f32fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 24952: 24952: 24952: extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: 24952: 24952: extern _Float32 f32sqrtf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: # 708 "/usr/include/math.h" 2 3 4 24952: # 747 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 24952: extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: 24952: 24952: extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: 24952: 24952: extern _Float32x f32xfmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 24952: 24952: 24952: extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: 24952: 24952: extern _Float32x f32xsqrtf64 (_Float64 __x) noexcept (true); 24952: 24952: 24952: extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) noexcept (true); 24952: # 748 "/usr/include/math.h" 2 3 4 24952: # 854 "/usr/include/math.h" 3 4 24952: extern int signgam; 24952: # 934 "/usr/include/math.h" 3 4 24952: enum 24952: { 24952: FP_NAN = 24952: 24952: 0, 24952: FP_INFINITE = 24952: 24952: 1, 24952: FP_ZERO = 24952: 24952: 2, 24952: FP_SUBNORMAL = 24952: 24952: 3, 24952: FP_NORMAL = 24952: 24952: 4 24952: }; 24952: # 1054 "/usr/include/math.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/iscanonical.h" 1 3 4 24952: # 1055 "/usr/include/math.h" 2 3 4 24952: # 1066 "/usr/include/math.h" 3 4 24952: extern "C++" { 24952: inline int issignaling (float __val) { return __issignalingf (__val); } 24952: inline int issignaling (double __val) { return __issignaling (__val); } 24952: inline int 24952: issignaling (long double __val) 24952: { 24952: 24952: return __issignaling (__val); 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 1097 "/usr/include/math.h" 3 4 24952: extern "C++" { 24952: # 1128 "/usr/include/math.h" 3 4 24952: template inline bool 24952: iszero (__T __val) 24952: { 24952: return __val == 0; 24952: } 24952: 24952: } 24952: # 1363 "/usr/include/math.h" 3 4 24952: extern "C++" { 24952: template struct __iseqsig_type; 24952: 24952: template<> struct __iseqsig_type 24952: { 24952: static int __call (float __x, float __y) throw () 24952: { 24952: return __iseqsigf (__x, __y); 24952: } 24952: }; 24952: 24952: template<> struct __iseqsig_type 24952: { 24952: static int __call (double __x, double __y) throw () 24952: { 24952: return __iseqsig (__x, __y); 24952: } 24952: }; 24952: 24952: template<> struct __iseqsig_type 24952: { 24952: static int __call (long double __x, long double __y) throw () 24952: { 24952: 24952: 24952: 24952: return __iseqsig (__x, __y); 24952: 24952: } 24952: }; 24952: 24952: 24952: template<> struct __iseqsig_type<_Float32> 24952: { 24952: static int __call (_Float32 __x, _Float32 __y) throw () 24952: { 24952: return __iseqsigf (__x, __y); 24952: } 24952: }; 24952: 24952: 24952: 24952: template<> struct __iseqsig_type<_Float64> 24952: { 24952: static int __call (_Float64 __x, _Float64 __y) throw () 24952: { 24952: return __iseqsig (__x, __y); 24952: } 24952: }; 24952: # 1431 "/usr/include/math.h" 3 4 24952: template<> struct __iseqsig_type<_Float32x> 24952: { 24952: static int __call (_Float32x __x, _Float32x __y) throw () 24952: { 24952: return __iseqsig (__x, __y); 24952: } 24952: }; 24952: # 1454 "/usr/include/math.h" 3 4 24952: template 24952: inline int 24952: iseqsig (_T1 __x, _T2 __y) throw () 24952: { 24952: 24952: typedef decltype (((__x) + (__y) + 0.0f)) _T3; 24952: 24952: 24952: 24952: return __iseqsig_type<_T3>::__call (__x, __y); 24952: } 24952: 24952: } 24952: 24952: 24952: 24952: 24952: } 24952: # 48 "/usr/include/c++/13/cmath" 2 3 24952: # 79 "/usr/include/c++/13/cmath" 3 24952: extern "C++" 24952: { 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: using ::acos; 24952: 24952: 24952: inline constexpr float 24952: acos(float __x) 24952: { return __builtin_acosf(__x); } 24952: 24952: inline constexpr long double 24952: acos(long double __x) 24952: { return __builtin_acosl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: acos(_Tp __x) 24952: { return __builtin_acos(__x); } 24952: 24952: using ::asin; 24952: 24952: 24952: inline constexpr float 24952: asin(float __x) 24952: { return __builtin_asinf(__x); } 24952: 24952: inline constexpr long double 24952: asin(long double __x) 24952: { return __builtin_asinl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: asin(_Tp __x) 24952: { return __builtin_asin(__x); } 24952: 24952: using ::atan; 24952: 24952: 24952: inline constexpr float 24952: atan(float __x) 24952: { return __builtin_atanf(__x); } 24952: 24952: inline constexpr long double 24952: atan(long double __x) 24952: { return __builtin_atanl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: atan(_Tp __x) 24952: { return __builtin_atan(__x); } 24952: 24952: using ::atan2; 24952: 24952: 24952: inline constexpr float 24952: atan2(float __y, float __x) 24952: { return __builtin_atan2f(__y, __x); } 24952: 24952: inline constexpr long double 24952: atan2(long double __y, long double __x) 24952: { return __builtin_atan2l(__y, __x); } 24952: 24952: 24952: using ::ceil; 24952: 24952: 24952: inline constexpr float 24952: ceil(float __x) 24952: { return __builtin_ceilf(__x); } 24952: 24952: inline constexpr long double 24952: ceil(long double __x) 24952: { return __builtin_ceill(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: ceil(_Tp __x) 24952: { return __builtin_ceil(__x); } 24952: 24952: using ::cos; 24952: 24952: 24952: inline constexpr float 24952: cos(float __x) 24952: { return __builtin_cosf(__x); } 24952: 24952: inline constexpr long double 24952: cos(long double __x) 24952: { return __builtin_cosl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: cos(_Tp __x) 24952: { return __builtin_cos(__x); } 24952: 24952: using ::cosh; 24952: 24952: 24952: inline constexpr float 24952: cosh(float __x) 24952: { return __builtin_coshf(__x); } 24952: 24952: inline constexpr long double 24952: cosh(long double __x) 24952: { return __builtin_coshl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: cosh(_Tp __x) 24952: { return __builtin_cosh(__x); } 24952: 24952: using ::exp; 24952: 24952: 24952: inline constexpr float 24952: exp(float __x) 24952: { return __builtin_expf(__x); } 24952: 24952: inline constexpr long double 24952: exp(long double __x) 24952: { return __builtin_expl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: exp(_Tp __x) 24952: { return __builtin_exp(__x); } 24952: 24952: using ::fabs; 24952: 24952: 24952: inline constexpr float 24952: fabs(float __x) 24952: { return __builtin_fabsf(__x); } 24952: 24952: inline constexpr long double 24952: fabs(long double __x) 24952: { return __builtin_fabsl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: fabs(_Tp __x) 24952: { return __builtin_fabs(__x); } 24952: 24952: using ::floor; 24952: 24952: 24952: inline constexpr float 24952: floor(float __x) 24952: { return __builtin_floorf(__x); } 24952: 24952: inline constexpr long double 24952: floor(long double __x) 24952: { return __builtin_floorl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: floor(_Tp __x) 24952: { return __builtin_floor(__x); } 24952: 24952: using ::fmod; 24952: 24952: 24952: inline constexpr float 24952: fmod(float __x, float __y) 24952: { return __builtin_fmodf(__x, __y); } 24952: 24952: inline constexpr long double 24952: fmod(long double __x, long double __y) 24952: { return __builtin_fmodl(__x, __y); } 24952: 24952: 24952: using ::frexp; 24952: 24952: 24952: inline float 24952: frexp(float __x, int* __exp) 24952: { return __builtin_frexpf(__x, __exp); } 24952: 24952: inline long double 24952: frexp(long double __x, int* __exp) 24952: { return __builtin_frexpl(__x, __exp); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: frexp(_Tp __x, int* __exp) 24952: { return __builtin_frexp(__x, __exp); } 24952: 24952: using ::ldexp; 24952: 24952: 24952: inline constexpr float 24952: ldexp(float __x, int __exp) 24952: { return __builtin_ldexpf(__x, __exp); } 24952: 24952: inline constexpr long double 24952: ldexp(long double __x, int __exp) 24952: { return __builtin_ldexpl(__x, __exp); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: ldexp(_Tp __x, int __exp) 24952: { return __builtin_ldexp(__x, __exp); } 24952: 24952: using ::log; 24952: 24952: 24952: inline constexpr float 24952: log(float __x) 24952: { return __builtin_logf(__x); } 24952: 24952: inline constexpr long double 24952: log(long double __x) 24952: { return __builtin_logl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: log(_Tp __x) 24952: { return __builtin_log(__x); } 24952: 24952: using ::log10; 24952: 24952: 24952: inline constexpr float 24952: log10(float __x) 24952: { return __builtin_log10f(__x); } 24952: 24952: inline constexpr long double 24952: log10(long double __x) 24952: { return __builtin_log10l(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: log10(_Tp __x) 24952: { return __builtin_log10(__x); } 24952: 24952: using ::modf; 24952: 24952: 24952: inline float 24952: modf(float __x, float* __iptr) 24952: { return __builtin_modff(__x, __iptr); } 24952: 24952: inline long double 24952: modf(long double __x, long double* __iptr) 24952: { return __builtin_modfl(__x, __iptr); } 24952: 24952: 24952: using ::pow; 24952: 24952: 24952: inline constexpr float 24952: pow(float __x, float __y) 24952: { return __builtin_powf(__x, __y); } 24952: 24952: inline constexpr long double 24952: pow(long double __x, long double __y) 24952: { return __builtin_powl(__x, __y); } 24952: # 396 "/usr/include/c++/13/cmath" 3 24952: using ::sin; 24952: 24952: 24952: inline constexpr float 24952: sin(float __x) 24952: { return __builtin_sinf(__x); } 24952: 24952: inline constexpr long double 24952: sin(long double __x) 24952: { return __builtin_sinl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: sin(_Tp __x) 24952: { return __builtin_sin(__x); } 24952: 24952: using ::sinh; 24952: 24952: 24952: inline constexpr float 24952: sinh(float __x) 24952: { return __builtin_sinhf(__x); } 24952: 24952: inline constexpr long double 24952: sinh(long double __x) 24952: { return __builtin_sinhl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: sinh(_Tp __x) 24952: { return __builtin_sinh(__x); } 24952: 24952: using ::sqrt; 24952: 24952: 24952: inline constexpr float 24952: sqrt(float __x) 24952: { return __builtin_sqrtf(__x); } 24952: 24952: inline constexpr long double 24952: sqrt(long double __x) 24952: { return __builtin_sqrtl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: sqrt(_Tp __x) 24952: { return __builtin_sqrt(__x); } 24952: 24952: using ::tan; 24952: 24952: 24952: inline constexpr float 24952: tan(float __x) 24952: { return __builtin_tanf(__x); } 24952: 24952: inline constexpr long double 24952: tan(long double __x) 24952: { return __builtin_tanl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: tan(_Tp __x) 24952: { return __builtin_tan(__x); } 24952: 24952: using ::tanh; 24952: 24952: 24952: inline constexpr float 24952: tanh(float __x) 24952: { return __builtin_tanhf(__x); } 24952: 24952: inline constexpr long double 24952: tanh(long double __x) 24952: { return __builtin_tanhl(__x); } 24952: 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: tanh(_Tp __x) 24952: { return __builtin_tanh(__x); } 24952: # 1049 "/usr/include/c++/13/cmath" 3 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 24952: atan2(_Tp __y, _Up __x) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return atan2(__type(__y), __type(__x)); 24952: } 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 24952: fmod(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return fmod(__type(__x), __type(__y)); 24952: } 24952: 24952: template 24952: inline constexpr 24952: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 24952: pow(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return pow(__type(__x), __type(__y)); 24952: } 24952: # 1096 "/usr/include/c++/13/cmath" 3 24952: constexpr int 24952: fpclassify(float __x) 24952: { return __builtin_fpclassify(0, 1, 4, 24952: 3, 2, __x); } 24952: 24952: constexpr int 24952: fpclassify(double __x) 24952: { return __builtin_fpclassify(0, 1, 4, 24952: 3, 2, __x); } 24952: 24952: constexpr int 24952: fpclassify(long double __x) 24952: { return __builtin_fpclassify(0, 1, 4, 24952: 3, 2, __x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: int>::__type 24952: fpclassify(_Tp __x) 24952: { return __x != 0 ? 4 : 2; } 24952: 24952: 24952: 24952: constexpr bool 24952: isfinite(float __x) 24952: { return __builtin_isfinite(__x); } 24952: 24952: constexpr bool 24952: isfinite(double __x) 24952: { return __builtin_isfinite(__x); } 24952: 24952: constexpr bool 24952: isfinite(long double __x) 24952: { return __builtin_isfinite(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: bool>::__type 24952: isfinite(_Tp) 24952: { return true; } 24952: 24952: 24952: 24952: constexpr bool 24952: isinf(float __x) 24952: { return __builtin_isinf(__x); } 24952: 24952: 24952: 24952: 24952: 24952: constexpr bool 24952: isinf(double __x) 24952: { return __builtin_isinf(__x); } 24952: 24952: 24952: constexpr bool 24952: isinf(long double __x) 24952: { return __builtin_isinf(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: bool>::__type 24952: isinf(_Tp) 24952: { return false; } 24952: 24952: 24952: 24952: constexpr bool 24952: isnan(float __x) 24952: { return __builtin_isnan(__x); } 24952: 24952: 24952: 24952: 24952: 24952: constexpr bool 24952: isnan(double __x) 24952: { return __builtin_isnan(__x); } 24952: 24952: 24952: constexpr bool 24952: isnan(long double __x) 24952: { return __builtin_isnan(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: bool>::__type 24952: isnan(_Tp) 24952: { return false; } 24952: 24952: 24952: 24952: constexpr bool 24952: isnormal(float __x) 24952: { return __builtin_isnormal(__x); } 24952: 24952: constexpr bool 24952: isnormal(double __x) 24952: { return __builtin_isnormal(__x); } 24952: 24952: constexpr bool 24952: isnormal(long double __x) 24952: { return __builtin_isnormal(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: bool>::__type 24952: isnormal(_Tp __x) 24952: { return __x != 0 ? true : false; } 24952: 24952: 24952: 24952: 24952: constexpr bool 24952: signbit(float __x) 24952: { return __builtin_signbit(__x); } 24952: 24952: constexpr bool 24952: signbit(double __x) 24952: { return __builtin_signbit(__x); } 24952: 24952: constexpr bool 24952: signbit(long double __x) 24952: { return __builtin_signbit(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: bool>::__type 24952: signbit(_Tp __x) 24952: { return __x < 0 ? true : false; } 24952: 24952: 24952: 24952: constexpr bool 24952: isgreater(float __x, float __y) 24952: { return __builtin_isgreater(__x, __y); } 24952: 24952: constexpr bool 24952: isgreater(double __x, double __y) 24952: { return __builtin_isgreater(__x, __y); } 24952: 24952: constexpr bool 24952: isgreater(long double __x, long double __y) 24952: { return __builtin_isgreater(__x, __y); } 24952: 24952: 24952: 24952: template 24952: constexpr typename 24952: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 24952: && __is_arithmetic<_Up>::__value), bool>::__type 24952: isgreater(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return __builtin_isgreater(__type(__x), __type(__y)); 24952: } 24952: 24952: 24952: 24952: constexpr bool 24952: isgreaterequal(float __x, float __y) 24952: { return __builtin_isgreaterequal(__x, __y); } 24952: 24952: constexpr bool 24952: isgreaterequal(double __x, double __y) 24952: { return __builtin_isgreaterequal(__x, __y); } 24952: 24952: constexpr bool 24952: isgreaterequal(long double __x, long double __y) 24952: { return __builtin_isgreaterequal(__x, __y); } 24952: 24952: 24952: 24952: template 24952: constexpr typename 24952: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 24952: && __is_arithmetic<_Up>::__value), bool>::__type 24952: isgreaterequal(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return __builtin_isgreaterequal(__type(__x), __type(__y)); 24952: } 24952: 24952: 24952: 24952: constexpr bool 24952: isless(float __x, float __y) 24952: { return __builtin_isless(__x, __y); } 24952: 24952: constexpr bool 24952: isless(double __x, double __y) 24952: { return __builtin_isless(__x, __y); } 24952: 24952: constexpr bool 24952: isless(long double __x, long double __y) 24952: { return __builtin_isless(__x, __y); } 24952: 24952: 24952: 24952: template 24952: constexpr typename 24952: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 24952: && __is_arithmetic<_Up>::__value), bool>::__type 24952: isless(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return __builtin_isless(__type(__x), __type(__y)); 24952: } 24952: 24952: 24952: 24952: constexpr bool 24952: islessequal(float __x, float __y) 24952: { return __builtin_islessequal(__x, __y); } 24952: 24952: constexpr bool 24952: islessequal(double __x, double __y) 24952: { return __builtin_islessequal(__x, __y); } 24952: 24952: constexpr bool 24952: islessequal(long double __x, long double __y) 24952: { return __builtin_islessequal(__x, __y); } 24952: 24952: 24952: 24952: template 24952: constexpr typename 24952: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 24952: && __is_arithmetic<_Up>::__value), bool>::__type 24952: islessequal(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return __builtin_islessequal(__type(__x), __type(__y)); 24952: } 24952: 24952: 24952: 24952: constexpr bool 24952: islessgreater(float __x, float __y) 24952: { return __builtin_islessgreater(__x, __y); } 24952: 24952: constexpr bool 24952: islessgreater(double __x, double __y) 24952: { return __builtin_islessgreater(__x, __y); } 24952: 24952: constexpr bool 24952: islessgreater(long double __x, long double __y) 24952: { return __builtin_islessgreater(__x, __y); } 24952: 24952: 24952: 24952: template 24952: constexpr typename 24952: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 24952: && __is_arithmetic<_Up>::__value), bool>::__type 24952: islessgreater(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return __builtin_islessgreater(__type(__x), __type(__y)); 24952: } 24952: 24952: 24952: 24952: constexpr bool 24952: isunordered(float __x, float __y) 24952: { return __builtin_isunordered(__x, __y); } 24952: 24952: constexpr bool 24952: isunordered(double __x, double __y) 24952: { return __builtin_isunordered(__x, __y); } 24952: 24952: constexpr bool 24952: isunordered(long double __x, long double __y) 24952: { return __builtin_isunordered(__x, __y); } 24952: 24952: 24952: 24952: template 24952: constexpr typename 24952: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 24952: && __is_arithmetic<_Up>::__value), bool>::__type 24952: isunordered(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return __builtin_isunordered(__type(__x), __type(__y)); 24952: } 24952: # 1881 "/usr/include/c++/13/cmath" 3 24952: using ::double_t; 24952: using ::float_t; 24952: 24952: 24952: using ::acosh; 24952: using ::acoshf; 24952: using ::acoshl; 24952: 24952: using ::asinh; 24952: using ::asinhf; 24952: using ::asinhl; 24952: 24952: using ::atanh; 24952: using ::atanhf; 24952: using ::atanhl; 24952: 24952: using ::cbrt; 24952: using ::cbrtf; 24952: using ::cbrtl; 24952: 24952: using ::copysign; 24952: using ::copysignf; 24952: using ::copysignl; 24952: 24952: using ::erf; 24952: using ::erff; 24952: using ::erfl; 24952: 24952: using ::erfc; 24952: using ::erfcf; 24952: using ::erfcl; 24952: 24952: using ::exp2; 24952: using ::exp2f; 24952: using ::exp2l; 24952: 24952: using ::expm1; 24952: using ::expm1f; 24952: using ::expm1l; 24952: 24952: using ::fdim; 24952: using ::fdimf; 24952: using ::fdiml; 24952: 24952: using ::fma; 24952: using ::fmaf; 24952: using ::fmal; 24952: 24952: using ::fmax; 24952: using ::fmaxf; 24952: using ::fmaxl; 24952: 24952: using ::fmin; 24952: using ::fminf; 24952: using ::fminl; 24952: 24952: using ::hypot; 24952: using ::hypotf; 24952: using ::hypotl; 24952: 24952: using ::ilogb; 24952: using ::ilogbf; 24952: using ::ilogbl; 24952: 24952: using ::lgamma; 24952: using ::lgammaf; 24952: using ::lgammal; 24952: 24952: 24952: using ::llrint; 24952: using ::llrintf; 24952: using ::llrintl; 24952: 24952: using ::llround; 24952: using ::llroundf; 24952: using ::llroundl; 24952: 24952: 24952: using ::log1p; 24952: using ::log1pf; 24952: using ::log1pl; 24952: 24952: using ::log2; 24952: using ::log2f; 24952: using ::log2l; 24952: 24952: using ::logb; 24952: using ::logbf; 24952: using ::logbl; 24952: 24952: using ::lrint; 24952: using ::lrintf; 24952: using ::lrintl; 24952: 24952: using ::lround; 24952: using ::lroundf; 24952: using ::lroundl; 24952: 24952: using ::nan; 24952: using ::nanf; 24952: using ::nanl; 24952: 24952: using ::nearbyint; 24952: using ::nearbyintf; 24952: using ::nearbyintl; 24952: 24952: using ::nextafter; 24952: using ::nextafterf; 24952: using ::nextafterl; 24952: 24952: using ::nexttoward; 24952: using ::nexttowardf; 24952: using ::nexttowardl; 24952: 24952: using ::remainder; 24952: using ::remainderf; 24952: using ::remainderl; 24952: 24952: using ::remquo; 24952: using ::remquof; 24952: using ::remquol; 24952: 24952: using ::rint; 24952: using ::rintf; 24952: using ::rintl; 24952: 24952: using ::round; 24952: using ::roundf; 24952: using ::roundl; 24952: 24952: using ::scalbln; 24952: using ::scalblnf; 24952: using ::scalblnl; 24952: 24952: using ::scalbn; 24952: using ::scalbnf; 24952: using ::scalbnl; 24952: 24952: using ::tgamma; 24952: using ::tgammaf; 24952: using ::tgammal; 24952: 24952: using ::trunc; 24952: using ::truncf; 24952: using ::truncl; 24952: 24952: 24952: 24952: constexpr float 24952: acosh(float __x) 24952: { return __builtin_acoshf(__x); } 24952: 24952: constexpr long double 24952: acosh(long double __x) 24952: { return __builtin_acoshl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: acosh(_Tp __x) 24952: { return __builtin_acosh(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: asinh(float __x) 24952: { return __builtin_asinhf(__x); } 24952: 24952: constexpr long double 24952: asinh(long double __x) 24952: { return __builtin_asinhl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: asinh(_Tp __x) 24952: { return __builtin_asinh(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: atanh(float __x) 24952: { return __builtin_atanhf(__x); } 24952: 24952: constexpr long double 24952: atanh(long double __x) 24952: { return __builtin_atanhl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: atanh(_Tp __x) 24952: { return __builtin_atanh(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: cbrt(float __x) 24952: { return __builtin_cbrtf(__x); } 24952: 24952: constexpr long double 24952: cbrt(long double __x) 24952: { return __builtin_cbrtl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: cbrt(_Tp __x) 24952: { return __builtin_cbrt(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: copysign(float __x, float __y) 24952: { return __builtin_copysignf(__x, __y); } 24952: 24952: constexpr long double 24952: copysign(long double __x, long double __y) 24952: { return __builtin_copysignl(__x, __y); } 24952: 24952: 24952: 24952: constexpr float 24952: erf(float __x) 24952: { return __builtin_erff(__x); } 24952: 24952: constexpr long double 24952: erf(long double __x) 24952: { return __builtin_erfl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: erf(_Tp __x) 24952: { return __builtin_erf(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: erfc(float __x) 24952: { return __builtin_erfcf(__x); } 24952: 24952: constexpr long double 24952: erfc(long double __x) 24952: { return __builtin_erfcl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: erfc(_Tp __x) 24952: { return __builtin_erfc(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: exp2(float __x) 24952: { return __builtin_exp2f(__x); } 24952: 24952: constexpr long double 24952: exp2(long double __x) 24952: { return __builtin_exp2l(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: exp2(_Tp __x) 24952: { return __builtin_exp2(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: expm1(float __x) 24952: { return __builtin_expm1f(__x); } 24952: 24952: constexpr long double 24952: expm1(long double __x) 24952: { return __builtin_expm1l(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: expm1(_Tp __x) 24952: { return __builtin_expm1(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: fdim(float __x, float __y) 24952: { return __builtin_fdimf(__x, __y); } 24952: 24952: constexpr long double 24952: fdim(long double __x, long double __y) 24952: { return __builtin_fdiml(__x, __y); } 24952: 24952: 24952: 24952: constexpr float 24952: fma(float __x, float __y, float __z) 24952: { return __builtin_fmaf(__x, __y, __z); } 24952: 24952: constexpr long double 24952: fma(long double __x, long double __y, long double __z) 24952: { return __builtin_fmal(__x, __y, __z); } 24952: 24952: 24952: 24952: constexpr float 24952: fmax(float __x, float __y) 24952: { return __builtin_fmaxf(__x, __y); } 24952: 24952: constexpr long double 24952: fmax(long double __x, long double __y) 24952: { return __builtin_fmaxl(__x, __y); } 24952: 24952: 24952: 24952: constexpr float 24952: fmin(float __x, float __y) 24952: { return __builtin_fminf(__x, __y); } 24952: 24952: constexpr long double 24952: fmin(long double __x, long double __y) 24952: { return __builtin_fminl(__x, __y); } 24952: 24952: 24952: 24952: constexpr float 24952: hypot(float __x, float __y) 24952: { return __builtin_hypotf(__x, __y); } 24952: 24952: constexpr long double 24952: hypot(long double __x, long double __y) 24952: { return __builtin_hypotl(__x, __y); } 24952: 24952: 24952: 24952: constexpr int 24952: ilogb(float __x) 24952: { return __builtin_ilogbf(__x); } 24952: 24952: constexpr int 24952: ilogb(long double __x) 24952: { return __builtin_ilogbl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr 24952: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: int>::__type 24952: ilogb(_Tp __x) 24952: { return __builtin_ilogb(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: lgamma(float __x) 24952: { return __builtin_lgammaf(__x); } 24952: 24952: constexpr long double 24952: lgamma(long double __x) 24952: { return __builtin_lgammal(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: lgamma(_Tp __x) 24952: { return __builtin_lgamma(__x); } 24952: 24952: 24952: 24952: constexpr long long 24952: llrint(float __x) 24952: { return __builtin_llrintf(__x); } 24952: 24952: constexpr long long 24952: llrint(long double __x) 24952: { return __builtin_llrintl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: long long>::__type 24952: llrint(_Tp __x) 24952: { return __builtin_llrint(__x); } 24952: 24952: 24952: 24952: constexpr long long 24952: llround(float __x) 24952: { return __builtin_llroundf(__x); } 24952: 24952: constexpr long long 24952: llround(long double __x) 24952: { return __builtin_llroundl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: long long>::__type 24952: llround(_Tp __x) 24952: { return __builtin_llround(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: log1p(float __x) 24952: { return __builtin_log1pf(__x); } 24952: 24952: constexpr long double 24952: log1p(long double __x) 24952: { return __builtin_log1pl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: log1p(_Tp __x) 24952: { return __builtin_log1p(__x); } 24952: 24952: 24952: 24952: 24952: constexpr float 24952: log2(float __x) 24952: { return __builtin_log2f(__x); } 24952: 24952: constexpr long double 24952: log2(long double __x) 24952: { return __builtin_log2l(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: log2(_Tp __x) 24952: { return __builtin_log2(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: logb(float __x) 24952: { return __builtin_logbf(__x); } 24952: 24952: constexpr long double 24952: logb(long double __x) 24952: { return __builtin_logbl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: logb(_Tp __x) 24952: { return __builtin_logb(__x); } 24952: 24952: 24952: 24952: constexpr long 24952: lrint(float __x) 24952: { return __builtin_lrintf(__x); } 24952: 24952: constexpr long 24952: lrint(long double __x) 24952: { return __builtin_lrintl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: long>::__type 24952: lrint(_Tp __x) 24952: { return __builtin_lrint(__x); } 24952: 24952: 24952: 24952: constexpr long 24952: lround(float __x) 24952: { return __builtin_lroundf(__x); } 24952: 24952: constexpr long 24952: lround(long double __x) 24952: { return __builtin_lroundl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: long>::__type 24952: lround(_Tp __x) 24952: { return __builtin_lround(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: nearbyint(float __x) 24952: { return __builtin_nearbyintf(__x); } 24952: 24952: constexpr long double 24952: nearbyint(long double __x) 24952: { return __builtin_nearbyintl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: nearbyint(_Tp __x) 24952: { return __builtin_nearbyint(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: nextafter(float __x, float __y) 24952: { return __builtin_nextafterf(__x, __y); } 24952: 24952: constexpr long double 24952: nextafter(long double __x, long double __y) 24952: { return __builtin_nextafterl(__x, __y); } 24952: 24952: 24952: 24952: constexpr float 24952: nexttoward(float __x, long double __y) 24952: { return __builtin_nexttowardf(__x, __y); } 24952: 24952: constexpr long double 24952: nexttoward(long double __x, long double __y) 24952: { return __builtin_nexttowardl(__x, __y); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: nexttoward(_Tp __x, long double __y) 24952: { return __builtin_nexttoward(__x, __y); } 24952: 24952: 24952: 24952: constexpr float 24952: remainder(float __x, float __y) 24952: { return __builtin_remainderf(__x, __y); } 24952: 24952: constexpr long double 24952: remainder(long double __x, long double __y) 24952: { return __builtin_remainderl(__x, __y); } 24952: 24952: 24952: 24952: inline float 24952: remquo(float __x, float __y, int* __pquo) 24952: { return __builtin_remquof(__x, __y, __pquo); } 24952: 24952: inline long double 24952: remquo(long double __x, long double __y, int* __pquo) 24952: { return __builtin_remquol(__x, __y, __pquo); } 24952: 24952: 24952: 24952: constexpr float 24952: rint(float __x) 24952: { return __builtin_rintf(__x); } 24952: 24952: constexpr long double 24952: rint(long double __x) 24952: { return __builtin_rintl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: rint(_Tp __x) 24952: { return __builtin_rint(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: round(float __x) 24952: { return __builtin_roundf(__x); } 24952: 24952: constexpr long double 24952: round(long double __x) 24952: { return __builtin_roundl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: round(_Tp __x) 24952: { return __builtin_round(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: scalbln(float __x, long __ex) 24952: { return __builtin_scalblnf(__x, __ex); } 24952: 24952: constexpr long double 24952: scalbln(long double __x, long __ex) 24952: { return __builtin_scalblnl(__x, __ex); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: scalbln(_Tp __x, long __ex) 24952: { return __builtin_scalbln(__x, __ex); } 24952: 24952: 24952: 24952: constexpr float 24952: scalbn(float __x, int __ex) 24952: { return __builtin_scalbnf(__x, __ex); } 24952: 24952: constexpr long double 24952: scalbn(long double __x, int __ex) 24952: { return __builtin_scalbnl(__x, __ex); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: scalbn(_Tp __x, int __ex) 24952: { return __builtin_scalbn(__x, __ex); } 24952: 24952: 24952: 24952: constexpr float 24952: tgamma(float __x) 24952: { return __builtin_tgammaf(__x); } 24952: 24952: constexpr long double 24952: tgamma(long double __x) 24952: { return __builtin_tgammal(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: tgamma(_Tp __x) 24952: { return __builtin_tgamma(__x); } 24952: 24952: 24952: 24952: constexpr float 24952: trunc(float __x) 24952: { return __builtin_truncf(__x); } 24952: 24952: constexpr long double 24952: trunc(long double __x) 24952: { return __builtin_truncl(__x); } 24952: 24952: 24952: 24952: template 24952: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 24952: double>::__type 24952: trunc(_Tp __x) 24952: { return __builtin_trunc(__x); } 24952: # 3469 "/usr/include/c++/13/cmath" 3 24952: template 24952: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 24952: copysign(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return copysign(__type(__x), __type(__y)); 24952: } 24952: 24952: template 24952: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 24952: fdim(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return fdim(__type(__x), __type(__y)); 24952: } 24952: 24952: template 24952: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 24952: fmax(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return fmax(__type(__x), __type(__y)); 24952: } 24952: 24952: template 24952: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 24952: fmin(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return fmin(__type(__x), __type(__y)); 24952: } 24952: 24952: template 24952: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 24952: hypot(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return hypot(__type(__x), __type(__y)); 24952: } 24952: 24952: template 24952: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 24952: nextafter(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return nextafter(__type(__x), __type(__y)); 24952: } 24952: 24952: template 24952: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 24952: remainder(_Tp __x, _Up __y) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return remainder(__type(__x), __type(__y)); 24952: } 24952: 24952: template 24952: inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 24952: remquo(_Tp __x, _Up __y, int* __pquo) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 24952: return remquo(__type(__x), __type(__y), __pquo); 24952: } 24952: 24952: template 24952: constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type 24952: fma(_Tp __x, _Up __y, _Vp __z) 24952: { 24952: typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; 24952: return fma(__type(__x), __type(__y), __type(__z)); 24952: } 24952: # 3550 "/usr/include/c++/13/cmath" 3 24952: template 24952: inline _Tp 24952: __hypot3(_Tp __x, _Tp __y, _Tp __z) 24952: { 24952: __x = std::abs(__x); 24952: __y = std::abs(__y); 24952: __z = std::abs(__z); 24952: if (_Tp __a = __x < __y ? __y < __z ? __z : __y : __x < __z ? __z : __x) 24952: return __a * std::sqrt((__x / __a) * (__x / __a) 24952: + (__y / __a) * (__y / __a) 24952: + (__z / __a) * (__z / __a)); 24952: else 24952: return {}; 24952: } 24952: 24952: inline float 24952: hypot(float __x, float __y, float __z) 24952: { return std::__hypot3(__x, __y, __z); } 24952: 24952: inline double 24952: hypot(double __x, double __y, double __z) 24952: { return std::__hypot3(__x, __y, __z); } 24952: 24952: inline long double 24952: hypot(long double __x, long double __y, long double __z) 24952: { return std::__hypot3(__x, __y, __z); } 24952: 24952: template 24952: __gnu_cxx::__promoted_t<_Tp, _Up, _Vp> 24952: hypot(_Tp __x, _Up __y, _Vp __z) 24952: { 24952: using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; 24952: return std::__hypot3<__type>(__x, __y, __z); 24952: } 24952: # 3695 "/usr/include/c++/13/cmath" 3 24952: 24952: } 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/specfun.h" 1 3 24952: # 47 "/usr/include/c++/13/bits/specfun.h" 3 24952: # 1 "/usr/include/c++/13/tr1/gamma.tcc" 1 3 24952: # 49 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: # 1 "/usr/include/c++/13/tr1/special_function_util.h" 1 3 24952: # 39 "/usr/include/c++/13/tr1/special_function_util.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 50 "/usr/include/c++/13/tr1/special_function_util.h" 3 24952: namespace __detail 24952: { 24952: 24952: 24952: 24952: template 24952: struct __floating_point_constant 24952: { 24952: static const _Tp __value; 24952: }; 24952: 24952: 24952: 24952: template 24952: struct __numeric_constants 24952: { 24952: 24952: static _Tp __pi() throw() 24952: { return static_cast<_Tp>(3.1415926535897932384626433832795029L); } 24952: 24952: static _Tp __pi_2() throw() 24952: { return static_cast<_Tp>(1.5707963267948966192313216916397514L); } 24952: 24952: static _Tp __pi_3() throw() 24952: { return static_cast<_Tp>(1.0471975511965977461542144610931676L); } 24952: 24952: static _Tp __pi_4() throw() 24952: { return static_cast<_Tp>(0.7853981633974483096156608458198757L); } 24952: 24952: static _Tp __1_pi() throw() 24952: { return static_cast<_Tp>(0.3183098861837906715377675267450287L); } 24952: 24952: static _Tp __2_sqrtpi() throw() 24952: { return static_cast<_Tp>(1.1283791670955125738961589031215452L); } 24952: 24952: static _Tp __sqrt2() throw() 24952: { return static_cast<_Tp>(1.4142135623730950488016887242096981L); } 24952: 24952: static _Tp __sqrt3() throw() 24952: { return static_cast<_Tp>(1.7320508075688772935274463415058723L); } 24952: 24952: static _Tp __sqrtpio2() throw() 24952: { return static_cast<_Tp>(1.2533141373155002512078826424055226L); } 24952: 24952: static _Tp __sqrt1_2() throw() 24952: { return static_cast<_Tp>(0.7071067811865475244008443621048490L); } 24952: 24952: static _Tp __lnpi() throw() 24952: { return static_cast<_Tp>(1.1447298858494001741434273513530587L); } 24952: 24952: static _Tp __gamma_e() throw() 24952: { return static_cast<_Tp>(0.5772156649015328606065120900824024L); } 24952: 24952: static _Tp __euler() throw() 24952: { return static_cast<_Tp>(2.7182818284590452353602874713526625L); } 24952: }; 24952: # 114 "/usr/include/c++/13/tr1/special_function_util.h" 3 24952: template 24952: inline bool __isnan(_Tp __x) 24952: { return std::isnan(__x); } 24952: # 133 "/usr/include/c++/13/tr1/special_function_util.h" 3 24952: } 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 50 "/usr/include/c++/13/tr1/gamma.tcc" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 65 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: namespace __detail 24952: { 24952: # 76 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: template 24952: _Tp 24952: __bernoulli_series(unsigned int __n) 24952: { 24952: 24952: static const _Tp __num[28] = { 24952: _Tp(1UL), -_Tp(1UL) / _Tp(2UL), 24952: _Tp(1UL) / _Tp(6UL), _Tp(0UL), 24952: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 24952: _Tp(1UL) / _Tp(42UL), _Tp(0UL), 24952: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 24952: _Tp(5UL) / _Tp(66UL), _Tp(0UL), 24952: -_Tp(691UL) / _Tp(2730UL), _Tp(0UL), 24952: _Tp(7UL) / _Tp(6UL), _Tp(0UL), 24952: -_Tp(3617UL) / _Tp(510UL), _Tp(0UL), 24952: _Tp(43867UL) / _Tp(798UL), _Tp(0UL), 24952: -_Tp(174611) / _Tp(330UL), _Tp(0UL), 24952: _Tp(854513UL) / _Tp(138UL), _Tp(0UL), 24952: -_Tp(236364091UL) / _Tp(2730UL), _Tp(0UL), 24952: _Tp(8553103UL) / _Tp(6UL), _Tp(0UL) 24952: }; 24952: 24952: if (__n == 0) 24952: return _Tp(1); 24952: 24952: if (__n == 1) 24952: return -_Tp(1) / _Tp(2); 24952: 24952: 24952: if (__n % 2 == 1) 24952: return _Tp(0); 24952: 24952: 24952: if (__n < 28) 24952: return __num[__n]; 24952: 24952: 24952: _Tp __fact = _Tp(1); 24952: if ((__n / 2) % 2 == 0) 24952: __fact *= _Tp(-1); 24952: for (unsigned int __k = 1; __k <= __n; ++__k) 24952: __fact *= __k / (_Tp(2) * __numeric_constants<_Tp>::__pi()); 24952: __fact *= _Tp(2); 24952: 24952: _Tp __sum = _Tp(0); 24952: for (unsigned int __i = 1; __i < 1000; ++__i) 24952: { 24952: _Tp __term = std::pow(_Tp(__i), -_Tp(__n)); 24952: if (__term < std::numeric_limits<_Tp>::epsilon()) 24952: break; 24952: __sum += __term; 24952: } 24952: 24952: return __fact * __sum; 24952: } 24952: # 139 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: template 24952: inline _Tp 24952: __bernoulli(int __n) 24952: { return __bernoulli_series<_Tp>(__n); } 24952: # 153 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: template 24952: _Tp 24952: __log_gamma_bernoulli(_Tp __x) 24952: { 24952: _Tp __lg = (__x - _Tp(0.5L)) * std::log(__x) - __x 24952: + _Tp(0.5L) * std::log(_Tp(2) 24952: * __numeric_constants<_Tp>::__pi()); 24952: 24952: const _Tp __xx = __x * __x; 24952: _Tp __help = _Tp(1) / __x; 24952: for ( unsigned int __i = 1; __i < 20; ++__i ) 24952: { 24952: const _Tp __2i = _Tp(2 * __i); 24952: __help /= __2i * (__2i - _Tp(1)) * __xx; 24952: __lg += __bernoulli<_Tp>(2 * __i) * __help; 24952: } 24952: 24952: return __lg; 24952: } 24952: # 181 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: template 24952: _Tp 24952: __log_gamma_lanczos(_Tp __x) 24952: { 24952: const _Tp __xm1 = __x - _Tp(1); 24952: 24952: static const _Tp __lanczos_cheb_7[9] = { 24952: _Tp( 0.99999999999980993227684700473478L), 24952: _Tp( 676.520368121885098567009190444019L), 24952: _Tp(-1259.13921672240287047156078755283L), 24952: _Tp( 771.3234287776530788486528258894L), 24952: _Tp(-176.61502916214059906584551354L), 24952: _Tp( 12.507343278686904814458936853L), 24952: _Tp(-0.13857109526572011689554707L), 24952: _Tp( 9.984369578019570859563e-6L), 24952: _Tp( 1.50563273514931155834e-7L) 24952: }; 24952: 24952: static const _Tp __LOGROOT2PI 24952: = _Tp(0.9189385332046727417803297364056176L); 24952: 24952: _Tp __sum = __lanczos_cheb_7[0]; 24952: for(unsigned int __k = 1; __k < 9; ++__k) 24952: __sum += __lanczos_cheb_7[__k] / (__xm1 + __k); 24952: 24952: const _Tp __term1 = (__xm1 + _Tp(0.5L)) 24952: * std::log((__xm1 + _Tp(7.5L)) 24952: / __numeric_constants<_Tp>::__euler()); 24952: const _Tp __term2 = __LOGROOT2PI + std::log(__sum); 24952: const _Tp __result = __term1 + (__term2 - _Tp(7)); 24952: 24952: return __result; 24952: } 24952: # 225 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: template 24952: _Tp 24952: __log_gamma(_Tp __x) 24952: { 24952: if (__x > _Tp(0.5L)) 24952: return __log_gamma_lanczos(__x); 24952: else 24952: { 24952: const _Tp __sin_fact 24952: = std::abs(std::sin(__numeric_constants<_Tp>::__pi() * __x)); 24952: if (__sin_fact == _Tp(0)) 24952: std::__throw_domain_error(("Argument is nonpositive integer " "in __log_gamma") 24952: ); 24952: return __numeric_constants<_Tp>::__lnpi() 24952: - std::log(__sin_fact) 24952: - __log_gamma_lanczos(_Tp(1) - __x); 24952: } 24952: } 24952: # 252 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: template 24952: _Tp 24952: __log_gamma_sign(_Tp __x) 24952: { 24952: if (__x > _Tp(0)) 24952: return _Tp(1); 24952: else 24952: { 24952: const _Tp __sin_fact 24952: = std::sin(__numeric_constants<_Tp>::__pi() * __x); 24952: if (__sin_fact > _Tp(0)) 24952: return (1); 24952: else if (__sin_fact < _Tp(0)) 24952: return -_Tp(1); 24952: else 24952: return _Tp(0); 24952: } 24952: } 24952: # 283 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: template 24952: _Tp 24952: __log_bincoef(unsigned int __n, unsigned int __k) 24952: { 24952: 24952: static const _Tp __max_bincoeff 24952: = std::numeric_limits<_Tp>::max_exponent10 24952: * std::log(_Tp(10)) - _Tp(1); 24952: 24952: _Tp __coeff = ::std::lgamma(_Tp(1 + __n)) 24952: - ::std::lgamma(_Tp(1 + __k)) 24952: - ::std::lgamma(_Tp(1 + __n - __k)); 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 314 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: template 24952: _Tp 24952: __bincoef(unsigned int __n, unsigned int __k) 24952: { 24952: 24952: static const _Tp __max_bincoeff 24952: = std::numeric_limits<_Tp>::max_exponent10 24952: * std::log(_Tp(10)) - _Tp(1); 24952: 24952: const _Tp __log_coeff = __log_bincoef<_Tp>(__n, __k); 24952: if (__log_coeff > __max_bincoeff) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else 24952: return std::exp(__log_coeff); 24952: } 24952: # 337 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: template 24952: inline _Tp 24952: __gamma(_Tp __x) 24952: { return std::exp(__log_gamma(__x)); } 24952: # 356 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: template 24952: _Tp 24952: __psi_series(_Tp __x) 24952: { 24952: _Tp __sum = -__numeric_constants<_Tp>::__gamma_e() - _Tp(1) / __x; 24952: const unsigned int __max_iter = 100000; 24952: for (unsigned int __k = 1; __k < __max_iter; ++__k) 24952: { 24952: const _Tp __term = __x / (__k * (__k + __x)); 24952: __sum += __term; 24952: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 24952: break; 24952: } 24952: return __sum; 24952: } 24952: # 386 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: template 24952: _Tp 24952: __psi_asymp(_Tp __x) 24952: { 24952: _Tp __sum = std::log(__x) - _Tp(0.5L) / __x; 24952: const _Tp __xx = __x * __x; 24952: _Tp __xp = __xx; 24952: const unsigned int __max_iter = 100; 24952: for (unsigned int __k = 1; __k < __max_iter; ++__k) 24952: { 24952: const _Tp __term = __bernoulli<_Tp>(2 * __k) / (2 * __k * __xp); 24952: __sum -= __term; 24952: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 24952: break; 24952: __xp *= __xx; 24952: } 24952: return __sum; 24952: } 24952: # 417 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: template 24952: _Tp 24952: __psi(_Tp __x) 24952: { 24952: const int __n = static_cast(__x + 0.5L); 24952: const _Tp __eps = _Tp(4) * std::numeric_limits<_Tp>::epsilon(); 24952: if (__n <= 0 && std::abs(__x - _Tp(__n)) < __eps) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__x < _Tp(0)) 24952: { 24952: const _Tp __pi = __numeric_constants<_Tp>::__pi(); 24952: return __psi(_Tp(1) - __x) 24952: - __pi * std::cos(__pi * __x) / std::sin(__pi * __x); 24952: } 24952: else if (__x > _Tp(100)) 24952: return __psi_asymp(__x); 24952: else 24952: return __psi_series(__x); 24952: } 24952: # 446 "/usr/include/c++/13/tr1/gamma.tcc" 3 24952: template 24952: _Tp 24952: __psi(unsigned int __n, _Tp __x) 24952: { 24952: if (__x <= _Tp(0)) 24952: std::__throw_domain_error(("Argument out of range " "in __psi") 24952: ); 24952: else if (__n == 0) 24952: return __psi(__x); 24952: else 24952: { 24952: const _Tp __hzeta = __hurwitz_zeta(_Tp(__n + 1), __x); 24952: 24952: const _Tp __ln_nfact = ::std::lgamma(_Tp(__n + 1)); 24952: 24952: 24952: 24952: _Tp __result = std::exp(__ln_nfact) * __hzeta; 24952: if (__n % 2 == 1) 24952: __result = -__result; 24952: return __result; 24952: } 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 48 "/usr/include/c++/13/bits/specfun.h" 2 3 24952: # 1 "/usr/include/c++/13/tr1/bessel_function.tcc" 1 3 24952: # 55 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 71 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 24952: namespace __detail 24952: { 24952: # 98 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 24952: template 24952: void 24952: __gamma_temme(_Tp __mu, 24952: _Tp & __gam1, _Tp & __gam2, _Tp & __gampl, _Tp & __gammi) 24952: { 24952: 24952: __gampl = _Tp(1) / ::std::tgamma(_Tp(1) + __mu); 24952: __gammi = _Tp(1) / ::std::tgamma(_Tp(1) - __mu); 24952: 24952: 24952: 24952: 24952: 24952: if (std::abs(__mu) < std::numeric_limits<_Tp>::epsilon()) 24952: __gam1 = -_Tp(__numeric_constants<_Tp>::__gamma_e()); 24952: else 24952: __gam1 = (__gammi - __gampl) / (_Tp(2) * __mu); 24952: 24952: __gam2 = (__gammi + __gampl) / (_Tp(2)); 24952: 24952: return; 24952: } 24952: # 136 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 24952: template 24952: void 24952: __bessel_jn(_Tp __nu, _Tp __x, 24952: _Tp & __Jnu, _Tp & __Nnu, _Tp & __Jpnu, _Tp & __Npnu) 24952: { 24952: if (__x == _Tp(0)) 24952: { 24952: if (__nu == _Tp(0)) 24952: { 24952: __Jnu = _Tp(1); 24952: __Jpnu = _Tp(0); 24952: } 24952: else if (__nu == _Tp(1)) 24952: { 24952: __Jnu = _Tp(0); 24952: __Jpnu = _Tp(0.5L); 24952: } 24952: else 24952: { 24952: __Jnu = _Tp(0); 24952: __Jpnu = _Tp(0); 24952: } 24952: __Nnu = -std::numeric_limits<_Tp>::infinity(); 24952: __Npnu = std::numeric_limits<_Tp>::infinity(); 24952: return; 24952: } 24952: 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: 24952: 24952: 24952: 24952: const _Tp __fp_min = std::sqrt(std::numeric_limits<_Tp>::min()); 24952: const int __max_iter = 15000; 24952: const _Tp __x_min = _Tp(2); 24952: 24952: const int __nl = (__x < __x_min 24952: ? static_cast(__nu + _Tp(0.5L)) 24952: : std::max(0, static_cast(__nu - __x + _Tp(1.5L)))); 24952: 24952: const _Tp __mu = __nu - __nl; 24952: const _Tp __mu2 = __mu * __mu; 24952: const _Tp __xi = _Tp(1) / __x; 24952: const _Tp __xi2 = _Tp(2) * __xi; 24952: _Tp __w = __xi2 / __numeric_constants<_Tp>::__pi(); 24952: int __isign = 1; 24952: _Tp __h = __nu * __xi; 24952: if (__h < __fp_min) 24952: __h = __fp_min; 24952: _Tp __b = __xi2 * __nu; 24952: _Tp __d = _Tp(0); 24952: _Tp __c = __h; 24952: int __i; 24952: for (__i = 1; __i <= __max_iter; ++__i) 24952: { 24952: __b += __xi2; 24952: __d = __b - __d; 24952: if (std::abs(__d) < __fp_min) 24952: __d = __fp_min; 24952: __c = __b - _Tp(1) / __c; 24952: if (std::abs(__c) < __fp_min) 24952: __c = __fp_min; 24952: __d = _Tp(1) / __d; 24952: const _Tp __del = __c * __d; 24952: __h *= __del; 24952: if (__d < _Tp(0)) 24952: __isign = -__isign; 24952: if (std::abs(__del - _Tp(1)) < __eps) 24952: break; 24952: } 24952: if (__i > __max_iter) 24952: std::__throw_runtime_error(("Argument x too large in __bessel_jn; " "try asymptotic expansion.") 24952: ); 24952: _Tp __Jnul = __isign * __fp_min; 24952: _Tp __Jpnul = __h * __Jnul; 24952: _Tp __Jnul1 = __Jnul; 24952: _Tp __Jpnu1 = __Jpnul; 24952: _Tp __fact = __nu * __xi; 24952: for ( int __l = __nl; __l >= 1; --__l ) 24952: { 24952: const _Tp __Jnutemp = __fact * __Jnul + __Jpnul; 24952: __fact -= __xi; 24952: __Jpnul = __fact * __Jnutemp - __Jnul; 24952: __Jnul = __Jnutemp; 24952: } 24952: if (__Jnul == _Tp(0)) 24952: __Jnul = __eps; 24952: _Tp __f= __Jpnul / __Jnul; 24952: _Tp __Nmu, __Nnu1, __Npmu, __Jmu; 24952: if (__x < __x_min) 24952: { 24952: const _Tp __x2 = __x / _Tp(2); 24952: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 24952: _Tp __fact = (std::abs(__pimu) < __eps 24952: ? _Tp(1) : __pimu / std::sin(__pimu)); 24952: _Tp __d = -std::log(__x2); 24952: _Tp __e = __mu * __d; 24952: _Tp __fact2 = (std::abs(__e) < __eps 24952: ? _Tp(1) : std::sinh(__e) / __e); 24952: _Tp __gam1, __gam2, __gampl, __gammi; 24952: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 24952: _Tp __ff = (_Tp(2) / __numeric_constants<_Tp>::__pi()) 24952: * __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 24952: __e = std::exp(__e); 24952: _Tp __p = __e / (__numeric_constants<_Tp>::__pi() * __gampl); 24952: _Tp __q = _Tp(1) / (__e * __numeric_constants<_Tp>::__pi() * __gammi); 24952: const _Tp __pimu2 = __pimu / _Tp(2); 24952: _Tp __fact3 = (std::abs(__pimu2) < __eps 24952: ? _Tp(1) : std::sin(__pimu2) / __pimu2 ); 24952: _Tp __r = __numeric_constants<_Tp>::__pi() * __pimu2 * __fact3 * __fact3; 24952: _Tp __c = _Tp(1); 24952: __d = -__x2 * __x2; 24952: _Tp __sum = __ff + __r * __q; 24952: _Tp __sum1 = __p; 24952: for (__i = 1; __i <= __max_iter; ++__i) 24952: { 24952: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 24952: __c *= __d / _Tp(__i); 24952: __p /= _Tp(__i) - __mu; 24952: __q /= _Tp(__i) + __mu; 24952: const _Tp __del = __c * (__ff + __r * __q); 24952: __sum += __del; 24952: const _Tp __del1 = __c * __p - __i * __del; 24952: __sum1 += __del1; 24952: if ( std::abs(__del) < __eps * (_Tp(1) + std::abs(__sum)) ) 24952: break; 24952: } 24952: if ( __i > __max_iter ) 24952: std::__throw_runtime_error(("Bessel y series failed to converge " "in __bessel_jn.") 24952: ); 24952: __Nmu = -__sum; 24952: __Nnu1 = -__sum1 * __xi2; 24952: __Npmu = __mu * __xi * __Nmu - __Nnu1; 24952: __Jmu = __w / (__Npmu - __f * __Nmu); 24952: } 24952: else 24952: { 24952: _Tp __a = _Tp(0.25L) - __mu2; 24952: _Tp __q = _Tp(1); 24952: _Tp __p = -__xi / _Tp(2); 24952: _Tp __br = _Tp(2) * __x; 24952: _Tp __bi = _Tp(2); 24952: _Tp __fact = __a * __xi / (__p * __p + __q * __q); 24952: _Tp __cr = __br + __q * __fact; 24952: _Tp __ci = __bi + __p * __fact; 24952: _Tp __den = __br * __br + __bi * __bi; 24952: _Tp __dr = __br / __den; 24952: _Tp __di = -__bi / __den; 24952: _Tp __dlr = __cr * __dr - __ci * __di; 24952: _Tp __dli = __cr * __di + __ci * __dr; 24952: _Tp __temp = __p * __dlr - __q * __dli; 24952: __q = __p * __dli + __q * __dlr; 24952: __p = __temp; 24952: int __i; 24952: for (__i = 2; __i <= __max_iter; ++__i) 24952: { 24952: __a += _Tp(2 * (__i - 1)); 24952: __bi += _Tp(2); 24952: __dr = __a * __dr + __br; 24952: __di = __a * __di + __bi; 24952: if (std::abs(__dr) + std::abs(__di) < __fp_min) 24952: __dr = __fp_min; 24952: __fact = __a / (__cr * __cr + __ci * __ci); 24952: __cr = __br + __cr * __fact; 24952: __ci = __bi - __ci * __fact; 24952: if (std::abs(__cr) + std::abs(__ci) < __fp_min) 24952: __cr = __fp_min; 24952: __den = __dr * __dr + __di * __di; 24952: __dr /= __den; 24952: __di /= -__den; 24952: __dlr = __cr * __dr - __ci * __di; 24952: __dli = __cr * __di + __ci * __dr; 24952: __temp = __p * __dlr - __q * __dli; 24952: __q = __p * __dli + __q * __dlr; 24952: __p = __temp; 24952: if (std::abs(__dlr - _Tp(1)) + std::abs(__dli) < __eps) 24952: break; 24952: } 24952: if (__i > __max_iter) 24952: std::__throw_runtime_error(("Lentz's method failed " "in __bessel_jn.") 24952: ); 24952: const _Tp __gam = (__p - __f) / __q; 24952: __Jmu = std::sqrt(__w / ((__p - __f) * __gam + __q)); 24952: 24952: __Jmu = ::std::copysign(__Jmu, __Jnul); 24952: 24952: 24952: 24952: 24952: __Nmu = __gam * __Jmu; 24952: __Npmu = (__p + __q / __gam) * __Nmu; 24952: __Nnu1 = __mu * __xi * __Nmu - __Npmu; 24952: } 24952: __fact = __Jmu / __Jnul; 24952: __Jnu = __fact * __Jnul1; 24952: __Jpnu = __fact * __Jpnu1; 24952: for (__i = 1; __i <= __nl; ++__i) 24952: { 24952: const _Tp __Nnutemp = (__mu + __i) * __xi2 * __Nnu1 - __Nmu; 24952: __Nmu = __Nnu1; 24952: __Nnu1 = __Nnutemp; 24952: } 24952: __Nnu = __Nmu; 24952: __Npnu = __nu * __xi * __Nmu - __Nnu1; 24952: 24952: return; 24952: } 24952: # 361 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 24952: template 24952: void 24952: __cyl_bessel_jn_asymp(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu) 24952: { 24952: const _Tp __mu = _Tp(4) * __nu * __nu; 24952: const _Tp __8x = _Tp(8) * __x; 24952: 24952: _Tp __P = _Tp(0); 24952: _Tp __Q = _Tp(0); 24952: 24952: _Tp __k = _Tp(0); 24952: _Tp __term = _Tp(1); 24952: 24952: int __epsP = 0; 24952: int __epsQ = 0; 24952: 24952: _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: 24952: do 24952: { 24952: __term *= (__k == 0 24952: ? _Tp(1) 24952: : -(__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x)); 24952: 24952: __epsP = std::abs(__term) < __eps * std::abs(__P); 24952: __P += __term; 24952: 24952: __k++; 24952: 24952: __term *= (__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x); 24952: __epsQ = std::abs(__term) < __eps * std::abs(__Q); 24952: __Q += __term; 24952: 24952: if (__epsP && __epsQ && __k > (__nu / 2.)) 24952: break; 24952: 24952: __k++; 24952: } 24952: while (__k < 1000); 24952: 24952: const _Tp __chi = __x - (__nu + _Tp(0.5L)) 24952: * __numeric_constants<_Tp>::__pi_2(); 24952: 24952: const _Tp __c = std::cos(__chi); 24952: const _Tp __s = std::sin(__chi); 24952: 24952: const _Tp __coef = std::sqrt(_Tp(2) 24952: / (__numeric_constants<_Tp>::__pi() * __x)); 24952: 24952: __Jnu = __coef * (__c * __P - __s * __Q); 24952: __Nnu = __coef * (__s * __P + __c * __Q); 24952: 24952: return; 24952: } 24952: # 444 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 24952: template 24952: _Tp 24952: __cyl_bessel_ij_series(_Tp __nu, _Tp __x, _Tp __sgn, 24952: unsigned int __max_iter) 24952: { 24952: if (__x == _Tp(0)) 24952: return __nu == _Tp(0) ? _Tp(1) : _Tp(0); 24952: 24952: const _Tp __x2 = __x / _Tp(2); 24952: _Tp __fact = __nu * std::log(__x2); 24952: 24952: __fact -= ::std::lgamma(__nu + _Tp(1)); 24952: 24952: 24952: 24952: __fact = std::exp(__fact); 24952: const _Tp __xx4 = __sgn * __x2 * __x2; 24952: _Tp __Jn = _Tp(1); 24952: _Tp __term = _Tp(1); 24952: 24952: for (unsigned int __i = 1; __i < __max_iter; ++__i) 24952: { 24952: __term *= __xx4 / (_Tp(__i) * (__nu + _Tp(__i))); 24952: __Jn += __term; 24952: if (std::abs(__term / __Jn) < std::numeric_limits<_Tp>::epsilon()) 24952: break; 24952: } 24952: 24952: return __fact * __Jn; 24952: } 24952: # 490 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 24952: template 24952: _Tp 24952: __cyl_bessel_j(_Tp __nu, _Tp __x) 24952: { 24952: if (__nu < _Tp(0) || __x < _Tp(0)) 24952: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_j.") 24952: ); 24952: else if (__isnan(__nu) || __isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 24952: return __cyl_bessel_ij_series(__nu, __x, -_Tp(1), 200); 24952: else if (__x > _Tp(1000)) 24952: { 24952: _Tp __J_nu, __N_nu; 24952: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 24952: return __J_nu; 24952: } 24952: else 24952: { 24952: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 24952: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 24952: return __J_nu; 24952: } 24952: } 24952: # 532 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 24952: template 24952: _Tp 24952: __cyl_neumann_n(_Tp __nu, _Tp __x) 24952: { 24952: if (__nu < _Tp(0) || __x < _Tp(0)) 24952: std::__throw_domain_error(("Bad argument " "in __cyl_neumann_n.") 24952: ); 24952: else if (__isnan(__nu) || __isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__x > _Tp(1000)) 24952: { 24952: _Tp __J_nu, __N_nu; 24952: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 24952: return __N_nu; 24952: } 24952: else 24952: { 24952: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 24952: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 24952: return __N_nu; 24952: } 24952: } 24952: # 569 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 24952: template 24952: void 24952: __sph_bessel_jn(unsigned int __n, _Tp __x, 24952: _Tp & __j_n, _Tp & __n_n, _Tp & __jp_n, _Tp & __np_n) 24952: { 24952: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 24952: 24952: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 24952: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 24952: 24952: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 24952: / std::sqrt(__x); 24952: 24952: __j_n = __factor * __J_nu; 24952: __n_n = __factor * __N_nu; 24952: __jp_n = __factor * __Jp_nu - __j_n / (_Tp(2) * __x); 24952: __np_n = __factor * __Np_nu - __n_n / (_Tp(2) * __x); 24952: 24952: return; 24952: } 24952: # 604 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 24952: template 24952: _Tp 24952: __sph_bessel(unsigned int __n, _Tp __x) 24952: { 24952: if (__x < _Tp(0)) 24952: std::__throw_domain_error(("Bad argument " "in __sph_bessel.") 24952: ); 24952: else if (__isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__x == _Tp(0)) 24952: { 24952: if (__n == 0) 24952: return _Tp(1); 24952: else 24952: return _Tp(0); 24952: } 24952: else 24952: { 24952: _Tp __j_n, __n_n, __jp_n, __np_n; 24952: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 24952: return __j_n; 24952: } 24952: } 24952: # 642 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 24952: template 24952: _Tp 24952: __sph_neumann(unsigned int __n, _Tp __x) 24952: { 24952: if (__x < _Tp(0)) 24952: std::__throw_domain_error(("Bad argument " "in __sph_neumann.") 24952: ); 24952: else if (__isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__x == _Tp(0)) 24952: return -std::numeric_limits<_Tp>::infinity(); 24952: else 24952: { 24952: _Tp __j_n, __n_n, __jp_n, __np_n; 24952: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 24952: return __n_n; 24952: } 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 49 "/usr/include/c++/13/bits/specfun.h" 2 3 24952: # 1 "/usr/include/c++/13/tr1/beta_function.tcc" 1 3 24952: # 49 "/usr/include/c++/13/tr1/beta_function.tcc" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 65 "/usr/include/c++/13/tr1/beta_function.tcc" 3 24952: namespace __detail 24952: { 24952: # 79 "/usr/include/c++/13/tr1/beta_function.tcc" 3 24952: template 24952: _Tp 24952: __beta_gamma(_Tp __x, _Tp __y) 24952: { 24952: 24952: _Tp __bet; 24952: 24952: if (__x > __y) 24952: { 24952: __bet = ::std::tgamma(__x) 24952: / ::std::tgamma(__x + __y); 24952: __bet *= ::std::tgamma(__y); 24952: } 24952: else 24952: { 24952: __bet = ::std::tgamma(__y) 24952: / ::std::tgamma(__x + __y); 24952: __bet *= ::std::tgamma(__x); 24952: } 24952: # 111 "/usr/include/c++/13/tr1/beta_function.tcc" 3 24952: return __bet; 24952: } 24952: # 127 "/usr/include/c++/13/tr1/beta_function.tcc" 3 24952: template 24952: _Tp 24952: __beta_lgamma(_Tp __x, _Tp __y) 24952: { 24952: 24952: _Tp __bet = ::std::lgamma(__x) 24952: + ::std::lgamma(__y) 24952: - ::std::lgamma(__x + __y); 24952: 24952: 24952: 24952: 24952: 24952: __bet = std::exp(__bet); 24952: return __bet; 24952: } 24952: # 158 "/usr/include/c++/13/tr1/beta_function.tcc" 3 24952: template 24952: _Tp 24952: __beta_product(_Tp __x, _Tp __y) 24952: { 24952: 24952: _Tp __bet = (__x + __y) / (__x * __y); 24952: 24952: unsigned int __max_iter = 1000000; 24952: for (unsigned int __k = 1; __k < __max_iter; ++__k) 24952: { 24952: _Tp __term = (_Tp(1) + (__x + __y) / __k) 24952: / ((_Tp(1) + __x / __k) * (_Tp(1) + __y / __k)); 24952: __bet *= __term; 24952: } 24952: 24952: return __bet; 24952: } 24952: # 189 "/usr/include/c++/13/tr1/beta_function.tcc" 3 24952: template 24952: inline _Tp 24952: __beta(_Tp __x, _Tp __y) 24952: { 24952: if (__isnan(__x) || __isnan(__y)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else 24952: return __beta_lgamma(__x, __y); 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 50 "/usr/include/c++/13/bits/specfun.h" 2 3 24952: # 1 "/usr/include/c++/13/tr1/ell_integral.tcc" 1 3 24952: # 45 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 59 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: namespace __detail 24952: { 24952: # 76 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: template 24952: _Tp 24952: __ellint_rf(_Tp __x, _Tp __y, _Tp __z) 24952: { 24952: const _Tp __min = std::numeric_limits<_Tp>::min(); 24952: const _Tp __lolim = _Tp(5) * __min; 24952: 24952: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 24952: std::__throw_domain_error(("Argument less than zero " "in __ellint_rf.") 24952: ); 24952: else if (__x + __y < __lolim || __x + __z < __lolim 24952: || __y + __z < __lolim) 24952: std::__throw_domain_error(("Argument too small in __ellint_rf")); 24952: else 24952: { 24952: const _Tp __c0 = _Tp(1) / _Tp(4); 24952: const _Tp __c1 = _Tp(1) / _Tp(24); 24952: const _Tp __c2 = _Tp(1) / _Tp(10); 24952: const _Tp __c3 = _Tp(3) / _Tp(44); 24952: const _Tp __c4 = _Tp(1) / _Tp(14); 24952: 24952: _Tp __xn = __x; 24952: _Tp __yn = __y; 24952: _Tp __zn = __z; 24952: 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: const _Tp __errtol = std::pow(__eps, _Tp(1) / _Tp(6)); 24952: _Tp __mu; 24952: _Tp __xndev, __yndev, __zndev; 24952: 24952: const unsigned int __max_iter = 100; 24952: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 24952: { 24952: __mu = (__xn + __yn + __zn) / _Tp(3); 24952: __xndev = 2 - (__mu + __xn) / __mu; 24952: __yndev = 2 - (__mu + __yn) / __mu; 24952: __zndev = 2 - (__mu + __zn) / __mu; 24952: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 24952: __epsilon = std::max(__epsilon, std::abs(__zndev)); 24952: if (__epsilon < __errtol) 24952: break; 24952: const _Tp __xnroot = std::sqrt(__xn); 24952: const _Tp __ynroot = std::sqrt(__yn); 24952: const _Tp __znroot = std::sqrt(__zn); 24952: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 24952: + __ynroot * __znroot; 24952: __xn = __c0 * (__xn + __lambda); 24952: __yn = __c0 * (__yn + __lambda); 24952: __zn = __c0 * (__zn + __lambda); 24952: } 24952: 24952: const _Tp __e2 = __xndev * __yndev - __zndev * __zndev; 24952: const _Tp __e3 = __xndev * __yndev * __zndev; 24952: const _Tp __s = _Tp(1) + (__c1 * __e2 - __c2 - __c3 * __e3) * __e2 24952: + __c4 * __e3; 24952: 24952: return __s / std::sqrt(__mu); 24952: } 24952: } 24952: # 153 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: template 24952: _Tp 24952: __comp_ellint_1_series(_Tp __k) 24952: { 24952: 24952: const _Tp __kk = __k * __k; 24952: 24952: _Tp __term = __kk / _Tp(4); 24952: _Tp __sum = _Tp(1) + __term; 24952: 24952: const unsigned int __max_iter = 1000; 24952: for (unsigned int __i = 2; __i < __max_iter; ++__i) 24952: { 24952: __term *= (2 * __i - 1) * __kk / (2 * __i); 24952: if (__term < std::numeric_limits<_Tp>::epsilon()) 24952: break; 24952: __sum += __term; 24952: } 24952: 24952: return __numeric_constants<_Tp>::__pi_2() * __sum; 24952: } 24952: # 191 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: template 24952: _Tp 24952: __comp_ellint_1(_Tp __k) 24952: { 24952: 24952: if (__isnan(__k)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (std::abs(__k) >= _Tp(1)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else 24952: return __ellint_rf(_Tp(0), _Tp(1) - __k * __k, _Tp(1)); 24952: } 24952: # 219 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: template 24952: _Tp 24952: __ellint_1(_Tp __k, _Tp __phi) 24952: { 24952: 24952: if (__isnan(__k) || __isnan(__phi)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (std::abs(__k) > _Tp(1)) 24952: std::__throw_domain_error(("Bad argument in __ellint_1.")); 24952: else 24952: { 24952: 24952: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 24952: + _Tp(0.5L)); 24952: const _Tp __phi_red = __phi 24952: - __n * __numeric_constants<_Tp>::__pi(); 24952: 24952: const _Tp __s = std::sin(__phi_red); 24952: const _Tp __c = std::cos(__phi_red); 24952: 24952: const _Tp __F = __s 24952: * __ellint_rf(__c * __c, 24952: _Tp(1) - __k * __k * __s * __s, _Tp(1)); 24952: 24952: if (__n == 0) 24952: return __F; 24952: else 24952: return __F + _Tp(2) * __n * __comp_ellint_1(__k); 24952: } 24952: } 24952: # 266 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: template 24952: _Tp 24952: __comp_ellint_2_series(_Tp __k) 24952: { 24952: 24952: const _Tp __kk = __k * __k; 24952: 24952: _Tp __term = __kk; 24952: _Tp __sum = __term; 24952: 24952: const unsigned int __max_iter = 1000; 24952: for (unsigned int __i = 2; __i < __max_iter; ++__i) 24952: { 24952: const _Tp __i2m = 2 * __i - 1; 24952: const _Tp __i2 = 2 * __i; 24952: __term *= __i2m * __i2m * __kk / (__i2 * __i2); 24952: if (__term < std::numeric_limits<_Tp>::epsilon()) 24952: break; 24952: __sum += __term / __i2m; 24952: } 24952: 24952: return __numeric_constants<_Tp>::__pi_2() * (_Tp(1) - __sum); 24952: } 24952: # 314 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: template 24952: _Tp 24952: __ellint_rd(_Tp __x, _Tp __y, _Tp __z) 24952: { 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 24952: const _Tp __max = std::numeric_limits<_Tp>::max(); 24952: const _Tp __lolim = _Tp(2) / std::pow(__max, _Tp(2) / _Tp(3)); 24952: 24952: if (__x < _Tp(0) || __y < _Tp(0)) 24952: std::__throw_domain_error(("Argument less than zero " "in __ellint_rd.") 24952: ); 24952: else if (__x + __y < __lolim || __z < __lolim) 24952: std::__throw_domain_error(("Argument too small " "in __ellint_rd.") 24952: ); 24952: else 24952: { 24952: const _Tp __c0 = _Tp(1) / _Tp(4); 24952: const _Tp __c1 = _Tp(3) / _Tp(14); 24952: const _Tp __c2 = _Tp(1) / _Tp(6); 24952: const _Tp __c3 = _Tp(9) / _Tp(22); 24952: const _Tp __c4 = _Tp(3) / _Tp(26); 24952: 24952: _Tp __xn = __x; 24952: _Tp __yn = __y; 24952: _Tp __zn = __z; 24952: _Tp __sigma = _Tp(0); 24952: _Tp __power4 = _Tp(1); 24952: 24952: _Tp __mu; 24952: _Tp __xndev, __yndev, __zndev; 24952: 24952: const unsigned int __max_iter = 100; 24952: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 24952: { 24952: __mu = (__xn + __yn + _Tp(3) * __zn) / _Tp(5); 24952: __xndev = (__mu - __xn) / __mu; 24952: __yndev = (__mu - __yn) / __mu; 24952: __zndev = (__mu - __zn) / __mu; 24952: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 24952: __epsilon = std::max(__epsilon, std::abs(__zndev)); 24952: if (__epsilon < __errtol) 24952: break; 24952: _Tp __xnroot = std::sqrt(__xn); 24952: _Tp __ynroot = std::sqrt(__yn); 24952: _Tp __znroot = std::sqrt(__zn); 24952: _Tp __lambda = __xnroot * (__ynroot + __znroot) 24952: + __ynroot * __znroot; 24952: __sigma += __power4 / (__znroot * (__zn + __lambda)); 24952: __power4 *= __c0; 24952: __xn = __c0 * (__xn + __lambda); 24952: __yn = __c0 * (__yn + __lambda); 24952: __zn = __c0 * (__zn + __lambda); 24952: } 24952: 24952: _Tp __ea = __xndev * __yndev; 24952: _Tp __eb = __zndev * __zndev; 24952: _Tp __ec = __ea - __eb; 24952: _Tp __ed = __ea - _Tp(6) * __eb; 24952: _Tp __ef = __ed + __ec + __ec; 24952: _Tp __s1 = __ed * (-__c1 + __c3 * __ed 24952: / _Tp(3) - _Tp(3) * __c4 * __zndev * __ef 24952: / _Tp(2)); 24952: _Tp __s2 = __zndev 24952: * (__c2 * __ef 24952: + __zndev * (-__c3 * __ec - __zndev * __c4 - __ea)); 24952: 24952: return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2) 24952: / (__mu * std::sqrt(__mu)); 24952: } 24952: } 24952: # 399 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: template 24952: _Tp 24952: __comp_ellint_2(_Tp __k) 24952: { 24952: 24952: if (__isnan(__k)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (std::abs(__k) == 1) 24952: return _Tp(1); 24952: else if (std::abs(__k) > _Tp(1)) 24952: std::__throw_domain_error(("Bad argument in __comp_ellint_2.")); 24952: else 24952: { 24952: const _Tp __kk = __k * __k; 24952: 24952: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 24952: - __kk * __ellint_rd(_Tp(0), _Tp(1) - __kk, _Tp(1)) / _Tp(3); 24952: } 24952: } 24952: # 433 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: template 24952: _Tp 24952: __ellint_2(_Tp __k, _Tp __phi) 24952: { 24952: 24952: if (__isnan(__k) || __isnan(__phi)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (std::abs(__k) > _Tp(1)) 24952: std::__throw_domain_error(("Bad argument in __ellint_2.")); 24952: else 24952: { 24952: 24952: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 24952: + _Tp(0.5L)); 24952: const _Tp __phi_red = __phi 24952: - __n * __numeric_constants<_Tp>::__pi(); 24952: 24952: const _Tp __kk = __k * __k; 24952: const _Tp __s = std::sin(__phi_red); 24952: const _Tp __ss = __s * __s; 24952: const _Tp __sss = __ss * __s; 24952: const _Tp __c = std::cos(__phi_red); 24952: const _Tp __cc = __c * __c; 24952: 24952: const _Tp __E = __s 24952: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 24952: - __kk * __sss 24952: * __ellint_rd(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 24952: / _Tp(3); 24952: 24952: if (__n == 0) 24952: return __E; 24952: else 24952: return __E + _Tp(2) * __n * __comp_ellint_2(__k); 24952: } 24952: } 24952: # 492 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: template 24952: _Tp 24952: __ellint_rc(_Tp __x, _Tp __y) 24952: { 24952: const _Tp __min = std::numeric_limits<_Tp>::min(); 24952: const _Tp __lolim = _Tp(5) * __min; 24952: 24952: if (__x < _Tp(0) || __y < _Tp(0) || __x + __y < __lolim) 24952: std::__throw_domain_error(("Argument less than zero " "in __ellint_rc.") 24952: ); 24952: else 24952: { 24952: const _Tp __c0 = _Tp(1) / _Tp(4); 24952: const _Tp __c1 = _Tp(1) / _Tp(7); 24952: const _Tp __c2 = _Tp(9) / _Tp(22); 24952: const _Tp __c3 = _Tp(3) / _Tp(10); 24952: const _Tp __c4 = _Tp(3) / _Tp(8); 24952: 24952: _Tp __xn = __x; 24952: _Tp __yn = __y; 24952: 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: const _Tp __errtol = std::pow(__eps / _Tp(30), _Tp(1) / _Tp(6)); 24952: _Tp __mu; 24952: _Tp __sn; 24952: 24952: const unsigned int __max_iter = 100; 24952: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 24952: { 24952: __mu = (__xn + _Tp(2) * __yn) / _Tp(3); 24952: __sn = (__yn + __mu) / __mu - _Tp(2); 24952: if (std::abs(__sn) < __errtol) 24952: break; 24952: const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) 24952: + __yn; 24952: __xn = __c0 * (__xn + __lambda); 24952: __yn = __c0 * (__yn + __lambda); 24952: } 24952: 24952: _Tp __s = __sn * __sn 24952: * (__c3 + __sn*(__c1 + __sn * (__c4 + __sn * __c2))); 24952: 24952: return (_Tp(1) + __s) / std::sqrt(__mu); 24952: } 24952: } 24952: # 561 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: template 24952: _Tp 24952: __ellint_rj(_Tp __x, _Tp __y, _Tp __z, _Tp __p) 24952: { 24952: const _Tp __min = std::numeric_limits<_Tp>::min(); 24952: const _Tp __lolim = std::pow(_Tp(5) * __min, _Tp(1)/_Tp(3)); 24952: 24952: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 24952: std::__throw_domain_error(("Argument less than zero " "in __ellint_rj.") 24952: ); 24952: else if (__x + __y < __lolim || __x + __z < __lolim 24952: || __y + __z < __lolim || __p < __lolim) 24952: std::__throw_domain_error(("Argument too small " "in __ellint_rj") 24952: ); 24952: else 24952: { 24952: const _Tp __c0 = _Tp(1) / _Tp(4); 24952: const _Tp __c1 = _Tp(3) / _Tp(14); 24952: const _Tp __c2 = _Tp(1) / _Tp(3); 24952: const _Tp __c3 = _Tp(3) / _Tp(22); 24952: const _Tp __c4 = _Tp(3) / _Tp(26); 24952: 24952: _Tp __xn = __x; 24952: _Tp __yn = __y; 24952: _Tp __zn = __z; 24952: _Tp __pn = __p; 24952: _Tp __sigma = _Tp(0); 24952: _Tp __power4 = _Tp(1); 24952: 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 24952: 24952: _Tp __mu; 24952: _Tp __xndev, __yndev, __zndev, __pndev; 24952: 24952: const unsigned int __max_iter = 100; 24952: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 24952: { 24952: __mu = (__xn + __yn + __zn + _Tp(2) * __pn) / _Tp(5); 24952: __xndev = (__mu - __xn) / __mu; 24952: __yndev = (__mu - __yn) / __mu; 24952: __zndev = (__mu - __zn) / __mu; 24952: __pndev = (__mu - __pn) / __mu; 24952: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 24952: __epsilon = std::max(__epsilon, std::abs(__zndev)); 24952: __epsilon = std::max(__epsilon, std::abs(__pndev)); 24952: if (__epsilon < __errtol) 24952: break; 24952: const _Tp __xnroot = std::sqrt(__xn); 24952: const _Tp __ynroot = std::sqrt(__yn); 24952: const _Tp __znroot = std::sqrt(__zn); 24952: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 24952: + __ynroot * __znroot; 24952: const _Tp __alpha1 = __pn * (__xnroot + __ynroot + __znroot) 24952: + __xnroot * __ynroot * __znroot; 24952: const _Tp __alpha2 = __alpha1 * __alpha1; 24952: const _Tp __beta = __pn * (__pn + __lambda) 24952: * (__pn + __lambda); 24952: __sigma += __power4 * __ellint_rc(__alpha2, __beta); 24952: __power4 *= __c0; 24952: __xn = __c0 * (__xn + __lambda); 24952: __yn = __c0 * (__yn + __lambda); 24952: __zn = __c0 * (__zn + __lambda); 24952: __pn = __c0 * (__pn + __lambda); 24952: } 24952: 24952: _Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev; 24952: _Tp __eb = __xndev * __yndev * __zndev; 24952: _Tp __ec = __pndev * __pndev; 24952: _Tp __e2 = __ea - _Tp(3) * __ec; 24952: _Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec); 24952: _Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4) 24952: - _Tp(3) * __c4 * __e3 / _Tp(2)); 24952: _Tp __s2 = __eb * (__c2 / _Tp(2) 24952: + __pndev * (-__c3 - __c3 + __pndev * __c4)); 24952: _Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3) 24952: - __c2 * __pndev * __ec; 24952: 24952: return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3) 24952: / (__mu * std::sqrt(__mu)); 24952: } 24952: } 24952: # 661 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: template 24952: _Tp 24952: __comp_ellint_3(_Tp __k, _Tp __nu) 24952: { 24952: 24952: if (__isnan(__k) || __isnan(__nu)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__nu == _Tp(1)) 24952: return std::numeric_limits<_Tp>::infinity(); 24952: else if (std::abs(__k) > _Tp(1)) 24952: std::__throw_domain_error(("Bad argument in __comp_ellint_3.")); 24952: else 24952: { 24952: const _Tp __kk = __k * __k; 24952: 24952: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 24952: + __nu 24952: * __ellint_rj(_Tp(0), _Tp(1) - __kk, _Tp(1), _Tp(1) - __nu) 24952: / _Tp(3); 24952: } 24952: } 24952: # 701 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 24952: template 24952: _Tp 24952: __ellint_3(_Tp __k, _Tp __nu, _Tp __phi) 24952: { 24952: 24952: if (__isnan(__k) || __isnan(__nu) || __isnan(__phi)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (std::abs(__k) > _Tp(1)) 24952: std::__throw_domain_error(("Bad argument in __ellint_3.")); 24952: else 24952: { 24952: 24952: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 24952: + _Tp(0.5L)); 24952: const _Tp __phi_red = __phi 24952: - __n * __numeric_constants<_Tp>::__pi(); 24952: 24952: const _Tp __kk = __k * __k; 24952: const _Tp __s = std::sin(__phi_red); 24952: const _Tp __ss = __s * __s; 24952: const _Tp __sss = __ss * __s; 24952: const _Tp __c = std::cos(__phi_red); 24952: const _Tp __cc = __c * __c; 24952: 24952: const _Tp __Pi = __s 24952: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 24952: + __nu * __sss 24952: * __ellint_rj(__cc, _Tp(1) - __kk * __ss, _Tp(1), 24952: _Tp(1) - __nu * __ss) / _Tp(3); 24952: 24952: if (__n == 0) 24952: return __Pi; 24952: else 24952: return __Pi + _Tp(2) * __n * __comp_ellint_3(__k, __nu); 24952: } 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 51 "/usr/include/c++/13/bits/specfun.h" 2 3 24952: # 1 "/usr/include/c++/13/tr1/exp_integral.tcc" 1 3 24952: # 50 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 64 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: namespace __detail 24952: { 24952: template _Tp __expint_E1(_Tp); 24952: # 81 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: template 24952: _Tp 24952: __expint_E1_series(_Tp __x) 24952: { 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: _Tp __term = _Tp(1); 24952: _Tp __esum = _Tp(0); 24952: _Tp __osum = _Tp(0); 24952: const unsigned int __max_iter = 1000; 24952: for (unsigned int __i = 1; __i < __max_iter; ++__i) 24952: { 24952: __term *= - __x / __i; 24952: if (std::abs(__term) < __eps) 24952: break; 24952: if (__term >= _Tp(0)) 24952: __esum += __term / __i; 24952: else 24952: __osum += __term / __i; 24952: } 24952: 24952: return - __esum - __osum 24952: - __numeric_constants<_Tp>::__gamma_e() - std::log(__x); 24952: } 24952: # 118 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: template 24952: _Tp 24952: __expint_E1_asymp(_Tp __x) 24952: { 24952: _Tp __term = _Tp(1); 24952: _Tp __esum = _Tp(1); 24952: _Tp __osum = _Tp(0); 24952: const unsigned int __max_iter = 1000; 24952: for (unsigned int __i = 1; __i < __max_iter; ++__i) 24952: { 24952: _Tp __prev = __term; 24952: __term *= - __i / __x; 24952: if (std::abs(__term) > std::abs(__prev)) 24952: break; 24952: if (__term >= _Tp(0)) 24952: __esum += __term; 24952: else 24952: __osum += __term; 24952: } 24952: 24952: return std::exp(- __x) * (__esum + __osum) / __x; 24952: } 24952: # 155 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: template 24952: _Tp 24952: __expint_En_series(unsigned int __n, _Tp __x) 24952: { 24952: const unsigned int __max_iter = 1000; 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: const int __nm1 = __n - 1; 24952: _Tp __ans = (__nm1 != 0 24952: ? _Tp(1) / __nm1 : -std::log(__x) 24952: - __numeric_constants<_Tp>::__gamma_e()); 24952: _Tp __fact = _Tp(1); 24952: for (int __i = 1; __i <= __max_iter; ++__i) 24952: { 24952: __fact *= -__x / _Tp(__i); 24952: _Tp __del; 24952: if ( __i != __nm1 ) 24952: __del = -__fact / _Tp(__i - __nm1); 24952: else 24952: { 24952: _Tp __psi = -__numeric_constants<_Tp>::gamma_e(); 24952: for (int __ii = 1; __ii <= __nm1; ++__ii) 24952: __psi += _Tp(1) / _Tp(__ii); 24952: __del = __fact * (__psi - std::log(__x)); 24952: } 24952: __ans += __del; 24952: if (std::abs(__del) < __eps * std::abs(__ans)) 24952: return __ans; 24952: } 24952: std::__throw_runtime_error(("Series summation failed " "in __expint_En_series.") 24952: ); 24952: } 24952: # 201 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: template 24952: _Tp 24952: __expint_En_cont_frac(unsigned int __n, _Tp __x) 24952: { 24952: const unsigned int __max_iter = 1000; 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: const _Tp __fp_min = std::numeric_limits<_Tp>::min(); 24952: const int __nm1 = __n - 1; 24952: _Tp __b = __x + _Tp(__n); 24952: _Tp __c = _Tp(1) / __fp_min; 24952: _Tp __d = _Tp(1) / __b; 24952: _Tp __h = __d; 24952: for ( unsigned int __i = 1; __i <= __max_iter; ++__i ) 24952: { 24952: _Tp __a = -_Tp(__i * (__nm1 + __i)); 24952: __b += _Tp(2); 24952: __d = _Tp(1) / (__a * __d + __b); 24952: __c = __b + __a / __c; 24952: const _Tp __del = __c * __d; 24952: __h *= __del; 24952: if (std::abs(__del - _Tp(1)) < __eps) 24952: { 24952: const _Tp __ans = __h * std::exp(-__x); 24952: return __ans; 24952: } 24952: } 24952: std::__throw_runtime_error(("Continued fraction failed " "in __expint_En_cont_frac.") 24952: ); 24952: } 24952: # 246 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: template 24952: _Tp 24952: __expint_En_recursion(unsigned int __n, _Tp __x) 24952: { 24952: _Tp __En; 24952: _Tp __E1 = __expint_E1(__x); 24952: if (__x < _Tp(__n)) 24952: { 24952: 24952: __En = __E1; 24952: for (unsigned int __j = 2; __j < __n; ++__j) 24952: __En = (std::exp(-__x) - __x * __En) / _Tp(__j - 1); 24952: } 24952: else 24952: { 24952: 24952: __En = _Tp(1); 24952: const int __N = __n + 20; 24952: _Tp __save = _Tp(0); 24952: for (int __j = __N; __j > 0; --__j) 24952: { 24952: __En = (std::exp(-__x) - __j * __En) / __x; 24952: if (__j == __n) 24952: __save = __En; 24952: } 24952: _Tp __norm = __En / __E1; 24952: __En /= __norm; 24952: } 24952: 24952: return __En; 24952: } 24952: # 290 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: template 24952: _Tp 24952: __expint_Ei_series(_Tp __x) 24952: { 24952: _Tp __term = _Tp(1); 24952: _Tp __sum = _Tp(0); 24952: const unsigned int __max_iter = 1000; 24952: for (unsigned int __i = 1; __i < __max_iter; ++__i) 24952: { 24952: __term *= __x / __i; 24952: __sum += __term / __i; 24952: if (__term < std::numeric_limits<_Tp>::epsilon() * __sum) 24952: break; 24952: } 24952: 24952: return __numeric_constants<_Tp>::__gamma_e() + __sum + std::log(__x); 24952: } 24952: # 321 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: template 24952: _Tp 24952: __expint_Ei_asymp(_Tp __x) 24952: { 24952: _Tp __term = _Tp(1); 24952: _Tp __sum = _Tp(1); 24952: const unsigned int __max_iter = 1000; 24952: for (unsigned int __i = 1; __i < __max_iter; ++__i) 24952: { 24952: _Tp __prev = __term; 24952: __term *= __i / __x; 24952: if (__term < std::numeric_limits<_Tp>::epsilon()) 24952: break; 24952: if (__term >= __prev) 24952: break; 24952: __sum += __term; 24952: } 24952: 24952: return std::exp(__x) * __sum / __x; 24952: } 24952: # 354 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: template 24952: _Tp 24952: __expint_Ei(_Tp __x) 24952: { 24952: if (__x < _Tp(0)) 24952: return -__expint_E1(-__x); 24952: else if (__x < -std::log(std::numeric_limits<_Tp>::epsilon())) 24952: return __expint_Ei_series(__x); 24952: else 24952: return __expint_Ei_asymp(__x); 24952: } 24952: # 378 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: template 24952: _Tp 24952: __expint_E1(_Tp __x) 24952: { 24952: if (__x < _Tp(0)) 24952: return -__expint_Ei(-__x); 24952: else if (__x < _Tp(1)) 24952: return __expint_E1_series(__x); 24952: else if (__x < _Tp(100)) 24952: return __expint_En_cont_frac(1, __x); 24952: else 24952: return __expint_E1_asymp(__x); 24952: } 24952: # 408 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: template 24952: _Tp 24952: __expint_asymp(unsigned int __n, _Tp __x) 24952: { 24952: _Tp __term = _Tp(1); 24952: _Tp __sum = _Tp(1); 24952: for (unsigned int __i = 1; __i <= __n; ++__i) 24952: { 24952: _Tp __prev = __term; 24952: __term *= -(__n - __i + 1) / __x; 24952: if (std::abs(__term) > std::abs(__prev)) 24952: break; 24952: __sum += __term; 24952: } 24952: 24952: return std::exp(-__x) * __sum / __x; 24952: } 24952: # 442 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: template 24952: _Tp 24952: __expint_large_n(unsigned int __n, _Tp __x) 24952: { 24952: const _Tp __xpn = __x + __n; 24952: const _Tp __xpn2 = __xpn * __xpn; 24952: _Tp __term = _Tp(1); 24952: _Tp __sum = _Tp(1); 24952: for (unsigned int __i = 1; __i <= __n; ++__i) 24952: { 24952: _Tp __prev = __term; 24952: __term *= (__n - 2 * (__i - 1) * __x) / __xpn2; 24952: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 24952: break; 24952: __sum += __term; 24952: } 24952: 24952: return std::exp(-__x) * __sum / __xpn; 24952: } 24952: # 476 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: template 24952: _Tp 24952: __expint(unsigned int __n, _Tp __x) 24952: { 24952: 24952: if (__isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__n <= 1 && __x == _Tp(0)) 24952: return std::numeric_limits<_Tp>::infinity(); 24952: else 24952: { 24952: _Tp __E0 = std::exp(__x) / __x; 24952: if (__n == 0) 24952: return __E0; 24952: 24952: _Tp __E1 = __expint_E1(__x); 24952: if (__n == 1) 24952: return __E1; 24952: 24952: if (__x == _Tp(0)) 24952: return _Tp(1) / static_cast<_Tp>(__n - 1); 24952: 24952: _Tp __En = __expint_En_recursion(__n, __x); 24952: 24952: return __En; 24952: } 24952: } 24952: # 516 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 24952: template 24952: inline _Tp 24952: __expint(_Tp __x) 24952: { 24952: if (__isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else 24952: return __expint_Ei(__x); 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 52 "/usr/include/c++/13/bits/specfun.h" 2 3 24952: # 1 "/usr/include/c++/13/tr1/hypergeometric.tcc" 1 3 24952: # 44 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 60 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 24952: namespace __detail 24952: { 24952: # 83 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 24952: template 24952: _Tp 24952: __conf_hyperg_series(_Tp __a, _Tp __c, _Tp __x) 24952: { 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: 24952: _Tp __term = _Tp(1); 24952: _Tp __Fac = _Tp(1); 24952: const unsigned int __max_iter = 100000; 24952: unsigned int __i; 24952: for (__i = 0; __i < __max_iter; ++__i) 24952: { 24952: __term *= (__a + _Tp(__i)) * __x 24952: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 24952: if (std::abs(__term) < __eps) 24952: { 24952: break; 24952: } 24952: __Fac += __term; 24952: } 24952: if (__i == __max_iter) 24952: std::__throw_runtime_error(("Series failed to converge " "in __conf_hyperg_series.") 24952: ); 24952: 24952: return __Fac; 24952: } 24952: # 120 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 24952: template 24952: _Tp 24952: __conf_hyperg_luke(_Tp __a, _Tp __c, _Tp __xin) 24952: { 24952: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 24952: const int __nmax = 20000; 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: const _Tp __x = -__xin; 24952: const _Tp __x3 = __x * __x * __x; 24952: const _Tp __t0 = __a / __c; 24952: const _Tp __t1 = (__a + _Tp(1)) / (_Tp(2) * __c); 24952: const _Tp __t2 = (__a + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); 24952: _Tp __F = _Tp(1); 24952: _Tp __prec; 24952: 24952: _Tp __Bnm3 = _Tp(1); 24952: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 24952: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 24952: 24952: _Tp __Anm3 = _Tp(1); 24952: _Tp __Anm2 = __Bnm2 - __t0 * __x; 24952: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 24952: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 24952: 24952: int __n = 3; 24952: while(1) 24952: { 24952: _Tp __npam1 = _Tp(__n - 1) + __a; 24952: _Tp __npcm1 = _Tp(__n - 1) + __c; 24952: _Tp __npam2 = _Tp(__n - 2) + __a; 24952: _Tp __npcm2 = _Tp(__n - 2) + __c; 24952: _Tp __tnm1 = _Tp(2 * __n - 1); 24952: _Tp __tnm3 = _Tp(2 * __n - 3); 24952: _Tp __tnm5 = _Tp(2 * __n - 5); 24952: _Tp __F1 = (_Tp(__n - 2) - __a) / (_Tp(2) * __tnm3 * __npcm1); 24952: _Tp __F2 = (_Tp(__n) + __a) * __npam1 24952: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 24952: _Tp __F3 = -__npam2 * __npam1 * (_Tp(__n - 2) - __a) 24952: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 24952: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 24952: _Tp __E = -__npam1 * (_Tp(__n - 1) - __c) 24952: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 24952: 24952: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 24952: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 24952: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 24952: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 24952: _Tp __r = __An / __Bn; 24952: 24952: __prec = std::abs((__F - __r) / __F); 24952: __F = __r; 24952: 24952: if (__prec < __eps || __n > __nmax) 24952: break; 24952: 24952: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 24952: { 24952: __An /= __big; 24952: __Bn /= __big; 24952: __Anm1 /= __big; 24952: __Bnm1 /= __big; 24952: __Anm2 /= __big; 24952: __Bnm2 /= __big; 24952: __Anm3 /= __big; 24952: __Bnm3 /= __big; 24952: } 24952: else if (std::abs(__An) < _Tp(1) / __big 24952: || std::abs(__Bn) < _Tp(1) / __big) 24952: { 24952: __An *= __big; 24952: __Bn *= __big; 24952: __Anm1 *= __big; 24952: __Bnm1 *= __big; 24952: __Anm2 *= __big; 24952: __Bnm2 *= __big; 24952: __Anm3 *= __big; 24952: __Bnm3 *= __big; 24952: } 24952: 24952: ++__n; 24952: __Bnm3 = __Bnm2; 24952: __Bnm2 = __Bnm1; 24952: __Bnm1 = __Bn; 24952: __Anm3 = __Anm2; 24952: __Anm2 = __Anm1; 24952: __Anm1 = __An; 24952: } 24952: 24952: if (__n >= __nmax) 24952: std::__throw_runtime_error(("Iteration failed to converge " "in __conf_hyperg_luke.") 24952: ); 24952: 24952: return __F; 24952: } 24952: # 227 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 24952: template 24952: _Tp 24952: __conf_hyperg(_Tp __a, _Tp __c, _Tp __x) 24952: { 24952: 24952: const _Tp __c_nint = ::std::nearbyint(__c); 24952: 24952: 24952: 24952: if (__isnan(__a) || __isnan(__c) || __isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__c_nint == __c && __c_nint <= 0) 24952: return std::numeric_limits<_Tp>::infinity(); 24952: else if (__a == _Tp(0)) 24952: return _Tp(1); 24952: else if (__c == __a) 24952: return std::exp(__x); 24952: else if (__x < _Tp(0)) 24952: return __conf_hyperg_luke(__a, __c, __x); 24952: else 24952: return __conf_hyperg_series(__a, __c, __x); 24952: } 24952: # 271 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 24952: template 24952: _Tp 24952: __hyperg_series(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 24952: { 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: 24952: _Tp __term = _Tp(1); 24952: _Tp __Fabc = _Tp(1); 24952: const unsigned int __max_iter = 100000; 24952: unsigned int __i; 24952: for (__i = 0; __i < __max_iter; ++__i) 24952: { 24952: __term *= (__a + _Tp(__i)) * (__b + _Tp(__i)) * __x 24952: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 24952: if (std::abs(__term) < __eps) 24952: { 24952: break; 24952: } 24952: __Fabc += __term; 24952: } 24952: if (__i == __max_iter) 24952: std::__throw_runtime_error(("Series failed to converge " "in __hyperg_series.") 24952: ); 24952: 24952: return __Fabc; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: _Tp 24952: __hyperg_luke(_Tp __a, _Tp __b, _Tp __c, _Tp __xin) 24952: { 24952: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 24952: const int __nmax = 20000; 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: const _Tp __x = -__xin; 24952: const _Tp __x3 = __x * __x * __x; 24952: const _Tp __t0 = __a * __b / __c; 24952: const _Tp __t1 = (__a + _Tp(1)) * (__b + _Tp(1)) / (_Tp(2) * __c); 24952: const _Tp __t2 = (__a + _Tp(2)) * (__b + _Tp(2)) 24952: / (_Tp(2) * (__c + _Tp(1))); 24952: 24952: _Tp __F = _Tp(1); 24952: 24952: _Tp __Bnm3 = _Tp(1); 24952: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 24952: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 24952: 24952: _Tp __Anm3 = _Tp(1); 24952: _Tp __Anm2 = __Bnm2 - __t0 * __x; 24952: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 24952: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 24952: 24952: int __n = 3; 24952: while (1) 24952: { 24952: const _Tp __npam1 = _Tp(__n - 1) + __a; 24952: const _Tp __npbm1 = _Tp(__n - 1) + __b; 24952: const _Tp __npcm1 = _Tp(__n - 1) + __c; 24952: const _Tp __npam2 = _Tp(__n - 2) + __a; 24952: const _Tp __npbm2 = _Tp(__n - 2) + __b; 24952: const _Tp __npcm2 = _Tp(__n - 2) + __c; 24952: const _Tp __tnm1 = _Tp(2 * __n - 1); 24952: const _Tp __tnm3 = _Tp(2 * __n - 3); 24952: const _Tp __tnm5 = _Tp(2 * __n - 5); 24952: const _Tp __n2 = __n * __n; 24952: const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n 24952: + _Tp(2) - __a * __b - _Tp(2) * (__a + __b)) 24952: / (_Tp(2) * __tnm3 * __npcm1); 24952: const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n 24952: + _Tp(2) - __a * __b) * __npam1 * __npbm1 24952: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 24952: const _Tp __F3 = (__npam2 * __npam1 * __npbm2 * __npbm1 24952: * (_Tp(__n - 2) - __a) * (_Tp(__n - 2) - __b)) 24952: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 24952: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 24952: const _Tp __E = -__npam1 * __npbm1 * (_Tp(__n - 1) - __c) 24952: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 24952: 24952: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 24952: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 24952: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 24952: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 24952: const _Tp __r = __An / __Bn; 24952: 24952: const _Tp __prec = std::abs((__F - __r) / __F); 24952: __F = __r; 24952: 24952: if (__prec < __eps || __n > __nmax) 24952: break; 24952: 24952: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 24952: { 24952: __An /= __big; 24952: __Bn /= __big; 24952: __Anm1 /= __big; 24952: __Bnm1 /= __big; 24952: __Anm2 /= __big; 24952: __Bnm2 /= __big; 24952: __Anm3 /= __big; 24952: __Bnm3 /= __big; 24952: } 24952: else if (std::abs(__An) < _Tp(1) / __big 24952: || std::abs(__Bn) < _Tp(1) / __big) 24952: { 24952: __An *= __big; 24952: __Bn *= __big; 24952: __Anm1 *= __big; 24952: __Bnm1 *= __big; 24952: __Anm2 *= __big; 24952: __Bnm2 *= __big; 24952: __Anm3 *= __big; 24952: __Bnm3 *= __big; 24952: } 24952: 24952: ++__n; 24952: __Bnm3 = __Bnm2; 24952: __Bnm2 = __Bnm1; 24952: __Bnm1 = __Bn; 24952: __Anm3 = __Anm2; 24952: __Anm2 = __Anm1; 24952: __Anm1 = __An; 24952: } 24952: 24952: if (__n >= __nmax) 24952: std::__throw_runtime_error(("Iteration failed to converge " "in __hyperg_luke.") 24952: ); 24952: 24952: return __F; 24952: } 24952: # 438 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 24952: template 24952: _Tp 24952: __hyperg_reflect(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 24952: { 24952: const _Tp __d = __c - __a - __b; 24952: const int __intd = std::floor(__d + _Tp(0.5L)); 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: const _Tp __toler = _Tp(1000) * __eps; 24952: const _Tp __log_max = std::log(std::numeric_limits<_Tp>::max()); 24952: const bool __d_integer = (std::abs(__d - __intd) < __toler); 24952: 24952: if (__d_integer) 24952: { 24952: const _Tp __ln_omx = std::log(_Tp(1) - __x); 24952: const _Tp __ad = std::abs(__d); 24952: _Tp __F1, __F2; 24952: 24952: _Tp __d1, __d2; 24952: if (__d >= _Tp(0)) 24952: { 24952: __d1 = __d; 24952: __d2 = _Tp(0); 24952: } 24952: else 24952: { 24952: __d1 = _Tp(0); 24952: __d2 = __d; 24952: } 24952: 24952: const _Tp __lng_c = __log_gamma(__c); 24952: 24952: 24952: if (__ad < __eps) 24952: { 24952: 24952: __F1 = _Tp(0); 24952: } 24952: else 24952: { 24952: 24952: bool __ok_d1 = true; 24952: _Tp __lng_ad, __lng_ad1, __lng_bd1; 24952: try 24952: { 24952: __lng_ad = __log_gamma(__ad); 24952: __lng_ad1 = __log_gamma(__a + __d1); 24952: __lng_bd1 = __log_gamma(__b + __d1); 24952: } 24952: catch(...) 24952: { 24952: __ok_d1 = false; 24952: } 24952: 24952: if (__ok_d1) 24952: { 24952: 24952: 24952: 24952: _Tp __sum1 = _Tp(1); 24952: _Tp __term = _Tp(1); 24952: _Tp __ln_pre1 = __lng_ad + __lng_c + __d2 * __ln_omx 24952: - __lng_ad1 - __lng_bd1; 24952: 24952: 24952: 24952: for (int __i = 1; __i < __ad; ++__i) 24952: { 24952: const int __j = __i - 1; 24952: __term *= (__a + __d2 + __j) * (__b + __d2 + __j) 24952: / (_Tp(1) + __d2 + __j) / __i * (_Tp(1) - __x); 24952: __sum1 += __term; 24952: } 24952: 24952: if (__ln_pre1 > __log_max) 24952: std::__throw_runtime_error(("Overflow of gamma functions" " in __hyperg_luke.") 24952: ); 24952: else 24952: __F1 = std::exp(__ln_pre1) * __sum1; 24952: } 24952: else 24952: { 24952: 24952: 24952: __F1 = _Tp(0); 24952: } 24952: } 24952: 24952: 24952: bool __ok_d2 = true; 24952: _Tp __lng_ad2, __lng_bd2; 24952: try 24952: { 24952: __lng_ad2 = __log_gamma(__a + __d2); 24952: __lng_bd2 = __log_gamma(__b + __d2); 24952: } 24952: catch(...) 24952: { 24952: __ok_d2 = false; 24952: } 24952: 24952: if (__ok_d2) 24952: { 24952: 24952: 24952: const int __maxiter = 2000; 24952: const _Tp __psi_1 = -__numeric_constants<_Tp>::__gamma_e(); 24952: const _Tp __psi_1pd = __psi(_Tp(1) + __ad); 24952: const _Tp __psi_apd1 = __psi(__a + __d1); 24952: const _Tp __psi_bpd1 = __psi(__b + __d1); 24952: 24952: _Tp __psi_term = __psi_1 + __psi_1pd - __psi_apd1 24952: - __psi_bpd1 - __ln_omx; 24952: _Tp __fact = _Tp(1); 24952: _Tp __sum2 = __psi_term; 24952: _Tp __ln_pre2 = __lng_c + __d1 * __ln_omx 24952: - __lng_ad2 - __lng_bd2; 24952: 24952: 24952: int __j; 24952: for (__j = 1; __j < __maxiter; ++__j) 24952: { 24952: 24952: 24952: const _Tp __term1 = _Tp(1) / _Tp(__j) 24952: + _Tp(1) / (__ad + __j); 24952: const _Tp __term2 = _Tp(1) / (__a + __d1 + _Tp(__j - 1)) 24952: + _Tp(1) / (__b + __d1 + _Tp(__j - 1)); 24952: __psi_term += __term1 - __term2; 24952: __fact *= (__a + __d1 + _Tp(__j - 1)) 24952: * (__b + __d1 + _Tp(__j - 1)) 24952: / ((__ad + __j) * __j) * (_Tp(1) - __x); 24952: const _Tp __delta = __fact * __psi_term; 24952: __sum2 += __delta; 24952: if (std::abs(__delta) < __eps * std::abs(__sum2)) 24952: break; 24952: } 24952: if (__j == __maxiter) 24952: std::__throw_runtime_error(("Sum F2 failed to converge " "in __hyperg_reflect") 24952: ); 24952: 24952: if (__sum2 == _Tp(0)) 24952: __F2 = _Tp(0); 24952: else 24952: __F2 = std::exp(__ln_pre2) * __sum2; 24952: } 24952: else 24952: { 24952: 24952: 24952: __F2 = _Tp(0); 24952: } 24952: 24952: const _Tp __sgn_2 = (__intd % 2 == 1 ? -_Tp(1) : _Tp(1)); 24952: const _Tp __F = __F1 + __sgn_2 * __F2; 24952: 24952: return __F; 24952: } 24952: else 24952: { 24952: 24952: 24952: 24952: 24952: bool __ok1 = true; 24952: _Tp __sgn_g1ca = _Tp(0), __ln_g1ca = _Tp(0); 24952: _Tp __sgn_g1cb = _Tp(0), __ln_g1cb = _Tp(0); 24952: try 24952: { 24952: __sgn_g1ca = __log_gamma_sign(__c - __a); 24952: __ln_g1ca = __log_gamma(__c - __a); 24952: __sgn_g1cb = __log_gamma_sign(__c - __b); 24952: __ln_g1cb = __log_gamma(__c - __b); 24952: } 24952: catch(...) 24952: { 24952: __ok1 = false; 24952: } 24952: 24952: bool __ok2 = true; 24952: _Tp __sgn_g2a = _Tp(0), __ln_g2a = _Tp(0); 24952: _Tp __sgn_g2b = _Tp(0), __ln_g2b = _Tp(0); 24952: try 24952: { 24952: __sgn_g2a = __log_gamma_sign(__a); 24952: __ln_g2a = __log_gamma(__a); 24952: __sgn_g2b = __log_gamma_sign(__b); 24952: __ln_g2b = __log_gamma(__b); 24952: } 24952: catch(...) 24952: { 24952: __ok2 = false; 24952: } 24952: 24952: const _Tp __sgn_gc = __log_gamma_sign(__c); 24952: const _Tp __ln_gc = __log_gamma(__c); 24952: const _Tp __sgn_gd = __log_gamma_sign(__d); 24952: const _Tp __ln_gd = __log_gamma(__d); 24952: const _Tp __sgn_gmd = __log_gamma_sign(-__d); 24952: const _Tp __ln_gmd = __log_gamma(-__d); 24952: 24952: const _Tp __sgn1 = __sgn_gc * __sgn_gd * __sgn_g1ca * __sgn_g1cb; 24952: const _Tp __sgn2 = __sgn_gc * __sgn_gmd * __sgn_g2a * __sgn_g2b; 24952: 24952: _Tp __pre1, __pre2; 24952: if (__ok1 && __ok2) 24952: { 24952: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 24952: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 24952: + __d * std::log(_Tp(1) - __x); 24952: if (__ln_pre1 < __log_max && __ln_pre2 < __log_max) 24952: { 24952: __pre1 = std::exp(__ln_pre1); 24952: __pre2 = std::exp(__ln_pre2); 24952: __pre1 *= __sgn1; 24952: __pre2 *= __sgn2; 24952: } 24952: else 24952: { 24952: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 24952: ); 24952: } 24952: } 24952: else if (__ok1 && !__ok2) 24952: { 24952: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 24952: if (__ln_pre1 < __log_max) 24952: { 24952: __pre1 = std::exp(__ln_pre1); 24952: __pre1 *= __sgn1; 24952: __pre2 = _Tp(0); 24952: } 24952: else 24952: { 24952: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 24952: ); 24952: } 24952: } 24952: else if (!__ok1 && __ok2) 24952: { 24952: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 24952: + __d * std::log(_Tp(1) - __x); 24952: if (__ln_pre2 < __log_max) 24952: { 24952: __pre1 = _Tp(0); 24952: __pre2 = std::exp(__ln_pre2); 24952: __pre2 *= __sgn2; 24952: } 24952: else 24952: { 24952: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 24952: ); 24952: } 24952: } 24952: else 24952: { 24952: __pre1 = _Tp(0); 24952: __pre2 = _Tp(0); 24952: std::__throw_runtime_error(("Underflow of gamma functions " "in __hyperg_reflect") 24952: ); 24952: } 24952: 24952: const _Tp __F1 = __hyperg_series(__a, __b, _Tp(1) - __d, 24952: _Tp(1) - __x); 24952: const _Tp __F2 = __hyperg_series(__c - __a, __c - __b, _Tp(1) + __d, 24952: _Tp(1) - __x); 24952: 24952: const _Tp __F = __pre1 * __F1 + __pre2 * __F2; 24952: 24952: return __F; 24952: } 24952: } 24952: # 728 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 24952: template 24952: _Tp 24952: __hyperg(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 24952: { 24952: 24952: const _Tp __a_nint = ::std::nearbyint(__a); 24952: const _Tp __b_nint = ::std::nearbyint(__b); 24952: const _Tp __c_nint = ::std::nearbyint(__c); 24952: 24952: 24952: 24952: 24952: 24952: const _Tp __toler = _Tp(1000) * std::numeric_limits<_Tp>::epsilon(); 24952: if (std::abs(__x) >= _Tp(1)) 24952: std::__throw_domain_error(("Argument outside unit circle " "in __hyperg.") 24952: ); 24952: else if (__isnan(__a) || __isnan(__b) 24952: || __isnan(__c) || __isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__c_nint == __c && __c_nint <= _Tp(0)) 24952: return std::numeric_limits<_Tp>::infinity(); 24952: else if (std::abs(__c - __b) < __toler || std::abs(__c - __a) < __toler) 24952: return std::pow(_Tp(1) - __x, __c - __a - __b); 24952: else if (__a >= _Tp(0) && __b >= _Tp(0) && __c >= _Tp(0) 24952: && __x >= _Tp(0) && __x < _Tp(0.995L)) 24952: return __hyperg_series(__a, __b, __c, __x); 24952: else if (std::abs(__a) < _Tp(10) && std::abs(__b) < _Tp(10)) 24952: { 24952: 24952: 24952: if (__a < _Tp(0) && std::abs(__a - __a_nint) < __toler) 24952: return __hyperg_series(__a_nint, __b, __c, __x); 24952: else if (__b < _Tp(0) && std::abs(__b - __b_nint) < __toler) 24952: return __hyperg_series(__a, __b_nint, __c, __x); 24952: else if (__x < -_Tp(0.25L)) 24952: return __hyperg_luke(__a, __b, __c, __x); 24952: else if (__x < _Tp(0.5L)) 24952: return __hyperg_series(__a, __b, __c, __x); 24952: else 24952: if (std::abs(__c) > _Tp(10)) 24952: return __hyperg_series(__a, __b, __c, __x); 24952: else 24952: return __hyperg_reflect(__a, __b, __c, __x); 24952: } 24952: else 24952: return __hyperg_luke(__a, __b, __c, __x); 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 53 "/usr/include/c++/13/bits/specfun.h" 2 3 24952: # 1 "/usr/include/c++/13/tr1/legendre_function.tcc" 1 3 24952: # 49 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 65 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 24952: namespace __detail 24952: { 24952: # 80 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 24952: template 24952: _Tp 24952: __poly_legendre_p(unsigned int __l, _Tp __x) 24952: { 24952: 24952: if (__isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__x == +_Tp(1)) 24952: return +_Tp(1); 24952: else if (__x == -_Tp(1)) 24952: return (__l % 2 == 1 ? -_Tp(1) : +_Tp(1)); 24952: else 24952: { 24952: _Tp __p_lm2 = _Tp(1); 24952: if (__l == 0) 24952: return __p_lm2; 24952: 24952: _Tp __p_lm1 = __x; 24952: if (__l == 1) 24952: return __p_lm1; 24952: 24952: _Tp __p_l = 0; 24952: for (unsigned int __ll = 2; __ll <= __l; ++__ll) 24952: { 24952: 24952: 24952: __p_l = _Tp(2) * __x * __p_lm1 - __p_lm2 24952: - (__x * __p_lm1 - __p_lm2) / _Tp(__ll); 24952: __p_lm2 = __p_lm1; 24952: __p_lm1 = __p_l; 24952: } 24952: 24952: return __p_l; 24952: } 24952: } 24952: # 136 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 24952: template 24952: _Tp 24952: __assoc_legendre_p(unsigned int __l, unsigned int __m, _Tp __x, 24952: _Tp __phase = _Tp(+1)) 24952: { 24952: 24952: if (__m > __l) 24952: return _Tp(0); 24952: else if (__isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__m == 0) 24952: return __poly_legendre_p(__l, __x); 24952: else 24952: { 24952: _Tp __p_mm = _Tp(1); 24952: if (__m > 0) 24952: { 24952: 24952: 24952: _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); 24952: _Tp __fact = _Tp(1); 24952: for (unsigned int __i = 1; __i <= __m; ++__i) 24952: { 24952: __p_mm *= __phase * __fact * __root; 24952: __fact += _Tp(2); 24952: } 24952: } 24952: if (__l == __m) 24952: return __p_mm; 24952: 24952: _Tp __p_mp1m = _Tp(2 * __m + 1) * __x * __p_mm; 24952: if (__l == __m + 1) 24952: return __p_mp1m; 24952: 24952: _Tp __p_lm2m = __p_mm; 24952: _Tp __P_lm1m = __p_mp1m; 24952: _Tp __p_lm = _Tp(0); 24952: for (unsigned int __j = __m + 2; __j <= __l; ++__j) 24952: { 24952: __p_lm = (_Tp(2 * __j - 1) * __x * __P_lm1m 24952: - _Tp(__j + __m - 1) * __p_lm2m) / _Tp(__j - __m); 24952: __p_lm2m = __P_lm1m; 24952: __P_lm1m = __p_lm; 24952: } 24952: 24952: return __p_lm; 24952: } 24952: } 24952: # 214 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 24952: template 24952: _Tp 24952: __sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 24952: { 24952: if (__isnan(__theta)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: 24952: const _Tp __x = std::cos(__theta); 24952: 24952: if (__m > __l) 24952: return _Tp(0); 24952: else if (__m == 0) 24952: { 24952: _Tp __P = __poly_legendre_p(__l, __x); 24952: _Tp __fact = std::sqrt(_Tp(2 * __l + 1) 24952: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 24952: __P *= __fact; 24952: return __P; 24952: } 24952: else if (__x == _Tp(1) || __x == -_Tp(1)) 24952: { 24952: 24952: return _Tp(0); 24952: } 24952: else 24952: { 24952: 24952: 24952: 24952: 24952: 24952: const _Tp __sgn = ( __m % 2 == 1 ? -_Tp(1) : _Tp(1)); 24952: const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); 24952: 24952: const _Tp __lncirc = ::std::log1p(-__x * __x); 24952: 24952: 24952: 24952: 24952: 24952: const _Tp __lnpoch = ::std::lgamma(_Tp(__m + _Tp(0.5L))) 24952: - ::std::lgamma(_Tp(__m)); 24952: 24952: 24952: 24952: 24952: const _Tp __lnpre_val = 24952: -_Tp(0.25L) * __numeric_constants<_Tp>::__lnpi() 24952: + _Tp(0.5L) * (__lnpoch + __m * __lncirc); 24952: const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) 24952: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 24952: _Tp __y_mm = __sgn * __sr * std::exp(__lnpre_val); 24952: _Tp __y_mp1m = __y_mp1m_factor * __y_mm; 24952: 24952: if (__l == __m) 24952: return __y_mm; 24952: else if (__l == __m + 1) 24952: return __y_mp1m; 24952: else 24952: { 24952: _Tp __y_lm = _Tp(0); 24952: 24952: 24952: for (unsigned int __ll = __m + 2; __ll <= __l; ++__ll) 24952: { 24952: const _Tp __rat1 = _Tp(__ll - __m) / _Tp(__ll + __m); 24952: const _Tp __rat2 = _Tp(__ll - __m - 1) / _Tp(__ll + __m - 1); 24952: const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) 24952: * _Tp(2 * __ll - 1)); 24952: const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) 24952: / _Tp(2 * __ll - 3)); 24952: __y_lm = (__x * __y_mp1m * __fact1 24952: - (__ll + __m - 1) * __y_mm * __fact2) / _Tp(__ll - __m); 24952: __y_mm = __y_mp1m; 24952: __y_mp1m = __y_lm; 24952: } 24952: 24952: return __y_lm; 24952: } 24952: } 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 54 "/usr/include/c++/13/bits/specfun.h" 2 3 24952: # 1 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 1 3 24952: # 51 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 65 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 24952: namespace __detail 24952: { 24952: # 83 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 24952: template 24952: void 24952: __bessel_ik(_Tp __nu, _Tp __x, 24952: _Tp & __Inu, _Tp & __Knu, _Tp & __Ipnu, _Tp & __Kpnu) 24952: { 24952: if (__x == _Tp(0)) 24952: { 24952: if (__nu == _Tp(0)) 24952: { 24952: __Inu = _Tp(1); 24952: __Ipnu = _Tp(0); 24952: } 24952: else if (__nu == _Tp(1)) 24952: { 24952: __Inu = _Tp(0); 24952: __Ipnu = _Tp(0.5L); 24952: } 24952: else 24952: { 24952: __Inu = _Tp(0); 24952: __Ipnu = _Tp(0); 24952: } 24952: __Knu = std::numeric_limits<_Tp>::infinity(); 24952: __Kpnu = -std::numeric_limits<_Tp>::infinity(); 24952: return; 24952: } 24952: 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: const _Tp __fp_min = _Tp(10) * std::numeric_limits<_Tp>::epsilon(); 24952: const int __max_iter = 15000; 24952: const _Tp __x_min = _Tp(2); 24952: 24952: const int __nl = static_cast(__nu + _Tp(0.5L)); 24952: 24952: const _Tp __mu = __nu - __nl; 24952: const _Tp __mu2 = __mu * __mu; 24952: const _Tp __xi = _Tp(1) / __x; 24952: const _Tp __xi2 = _Tp(2) * __xi; 24952: _Tp __h = __nu * __xi; 24952: if ( __h < __fp_min ) 24952: __h = __fp_min; 24952: _Tp __b = __xi2 * __nu; 24952: _Tp __d = _Tp(0); 24952: _Tp __c = __h; 24952: int __i; 24952: for ( __i = 1; __i <= __max_iter; ++__i ) 24952: { 24952: __b += __xi2; 24952: __d = _Tp(1) / (__b + __d); 24952: __c = __b + _Tp(1) / __c; 24952: const _Tp __del = __c * __d; 24952: __h *= __del; 24952: if (std::abs(__del - _Tp(1)) < __eps) 24952: break; 24952: } 24952: if (__i > __max_iter) 24952: std::__throw_runtime_error(("Argument x too large " "in __bessel_ik; " "try asymptotic expansion.") 24952: 24952: ); 24952: _Tp __Inul = __fp_min; 24952: _Tp __Ipnul = __h * __Inul; 24952: _Tp __Inul1 = __Inul; 24952: _Tp __Ipnu1 = __Ipnul; 24952: _Tp __fact = __nu * __xi; 24952: for (int __l = __nl; __l >= 1; --__l) 24952: { 24952: const _Tp __Inutemp = __fact * __Inul + __Ipnul; 24952: __fact -= __xi; 24952: __Ipnul = __fact * __Inutemp + __Inul; 24952: __Inul = __Inutemp; 24952: } 24952: _Tp __f = __Ipnul / __Inul; 24952: _Tp __Kmu, __Knu1; 24952: if (__x < __x_min) 24952: { 24952: const _Tp __x2 = __x / _Tp(2); 24952: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 24952: const _Tp __fact = (std::abs(__pimu) < __eps 24952: ? _Tp(1) : __pimu / std::sin(__pimu)); 24952: _Tp __d = -std::log(__x2); 24952: _Tp __e = __mu * __d; 24952: const _Tp __fact2 = (std::abs(__e) < __eps 24952: ? _Tp(1) : std::sinh(__e) / __e); 24952: _Tp __gam1, __gam2, __gampl, __gammi; 24952: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 24952: _Tp __ff = __fact 24952: * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 24952: _Tp __sum = __ff; 24952: __e = std::exp(__e); 24952: _Tp __p = __e / (_Tp(2) * __gampl); 24952: _Tp __q = _Tp(1) / (_Tp(2) * __e * __gammi); 24952: _Tp __c = _Tp(1); 24952: __d = __x2 * __x2; 24952: _Tp __sum1 = __p; 24952: int __i; 24952: for (__i = 1; __i <= __max_iter; ++__i) 24952: { 24952: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 24952: __c *= __d / __i; 24952: __p /= __i - __mu; 24952: __q /= __i + __mu; 24952: const _Tp __del = __c * __ff; 24952: __sum += __del; 24952: const _Tp __del1 = __c * (__p - __i * __ff); 24952: __sum1 += __del1; 24952: if (std::abs(__del) < __eps * std::abs(__sum)) 24952: break; 24952: } 24952: if (__i > __max_iter) 24952: std::__throw_runtime_error(("Bessel k series failed to converge " "in __bessel_ik.") 24952: ); 24952: __Kmu = __sum; 24952: __Knu1 = __sum1 * __xi2; 24952: } 24952: else 24952: { 24952: _Tp __b = _Tp(2) * (_Tp(1) + __x); 24952: _Tp __d = _Tp(1) / __b; 24952: _Tp __delh = __d; 24952: _Tp __h = __delh; 24952: _Tp __q1 = _Tp(0); 24952: _Tp __q2 = _Tp(1); 24952: _Tp __a1 = _Tp(0.25L) - __mu2; 24952: _Tp __q = __c = __a1; 24952: _Tp __a = -__a1; 24952: _Tp __s = _Tp(1) + __q * __delh; 24952: int __i; 24952: for (__i = 2; __i <= __max_iter; ++__i) 24952: { 24952: __a -= 2 * (__i - 1); 24952: __c = -__a * __c / __i; 24952: const _Tp __qnew = (__q1 - __b * __q2) / __a; 24952: __q1 = __q2; 24952: __q2 = __qnew; 24952: __q += __c * __qnew; 24952: __b += _Tp(2); 24952: __d = _Tp(1) / (__b + __a * __d); 24952: __delh = (__b * __d - _Tp(1)) * __delh; 24952: __h += __delh; 24952: const _Tp __dels = __q * __delh; 24952: __s += __dels; 24952: if ( std::abs(__dels / __s) < __eps ) 24952: break; 24952: } 24952: if (__i > __max_iter) 24952: std::__throw_runtime_error(("Steed's method failed " "in __bessel_ik.") 24952: ); 24952: __h = __a1 * __h; 24952: __Kmu = std::sqrt(__numeric_constants<_Tp>::__pi() / (_Tp(2) * __x)) 24952: * std::exp(-__x) / __s; 24952: __Knu1 = __Kmu * (__mu + __x + _Tp(0.5L) - __h) * __xi; 24952: } 24952: 24952: _Tp __Kpmu = __mu * __xi * __Kmu - __Knu1; 24952: _Tp __Inumu = __xi / (__f * __Kmu - __Kpmu); 24952: __Inu = __Inumu * __Inul1 / __Inul; 24952: __Ipnu = __Inumu * __Ipnu1 / __Inul; 24952: for ( __i = 1; __i <= __nl; ++__i ) 24952: { 24952: const _Tp __Knutemp = (__mu + __i) * __xi2 * __Knu1 + __Kmu; 24952: __Kmu = __Knu1; 24952: __Knu1 = __Knutemp; 24952: } 24952: __Knu = __Kmu; 24952: __Kpnu = __nu * __xi * __Kmu - __Knu1; 24952: 24952: return; 24952: } 24952: # 267 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 24952: template 24952: _Tp 24952: __cyl_bessel_i(_Tp __nu, _Tp __x) 24952: { 24952: if (__nu < _Tp(0) || __x < _Tp(0)) 24952: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_i.") 24952: ); 24952: else if (__isnan(__nu) || __isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 24952: return __cyl_bessel_ij_series(__nu, __x, +_Tp(1), 200); 24952: else 24952: { 24952: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 24952: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 24952: return __I_nu; 24952: } 24952: } 24952: # 303 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 24952: template 24952: _Tp 24952: __cyl_bessel_k(_Tp __nu, _Tp __x) 24952: { 24952: if (__nu < _Tp(0) || __x < _Tp(0)) 24952: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_k.") 24952: ); 24952: else if (__isnan(__nu) || __isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else 24952: { 24952: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 24952: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 24952: return __K_nu; 24952: } 24952: } 24952: # 337 "/usIn file included from /usr/include/c++/13/vector:72, from /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:16, from /build/reproducible-path/rocksdb-8.9.1/db/version_builder.h:14, from /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:62: /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ r/include/c++/13/tr1/modified_bessel_func.tcc" 3 24952: template 24952: void 24952: __sph_bessel_ik(unsigned int __n, _Tp __x, 24952: _Tp & __i_n, _Tp & __k_n, _Tp & __ip_n, _Tp & __kp_n) 24952: { 24952: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 24952: 24952: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 24952: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 24952: 24952: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 24952: / std::sqrt(__x); 24952: 24952: __i_n = __factor * __I_nu; 24952: __k_n = __factor * __K_nu; 24952: __ip_n = __factor * __Ip_nu - __i_n / (_Tp(2) * __x); 24952: __kp_n = __factor * __Kp_nu - __k_n / (_Tp(2) * __x); 24952: 24952: return; 24952: } 24952: # 373 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 24952: template 24952: void 24952: __airy(_Tp __x, _Tp & __Ai, _Tp & __Bi, _Tp & __Aip, _Tp & __Bip) 24952: { 24952: const _Tp __absx = std::abs(__x); 24952: const _Tp __rootx = std::sqrt(__absx); 24952: const _Tp __z = _Tp(2) * __absx * __rootx / _Tp(3); 24952: const _Tp _S_inf = std::numeric_limits<_Tp>::infinity(); 24952: 24952: if (__isnan(__x)) 24952: __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__z == _S_inf) 24952: { 24952: __Aip = __Ai = _Tp(0); 24952: __Bip = __Bi = _S_inf; 24952: } 24952: else if (__z == -_S_inf) 24952: __Bip = __Aip = __Bi = __Ai = _Tp(0); 24952: else if (__x > _Tp(0)) 24952: { 24952: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 24952: 24952: __bessel_ik(_Tp(1) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 24952: __Ai = __rootx * __K_nu 24952: / (__numeric_constants<_Tp>::__sqrt3() 24952: * __numeric_constants<_Tp>::__pi()); 24952: __Bi = __rootx * (__K_nu / __numeric_constants<_Tp>::__pi() 24952: + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); 24952: 24952: __bessel_ik(_Tp(2) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 24952: __Aip = -__x * __K_nu 24952: / (__numeric_constants<_Tp>::__sqrt3() 24952: * __numeric_constants<_Tp>::__pi()); 24952: __Bip = __x * (__K_nu / __numeric_constants<_Tp>::__pi() 24952: + _Tp(2) * __I_nu 24952: / __numeric_constants<_Tp>::__sqrt3()); 24952: } 24952: else if (__x < _Tp(0)) 24952: { 24952: _Tp __J_nu, __Jp_nu, __N_nu, __Np_nu; 24952: 24952: __bessel_jn(_Tp(1) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 24952: __Ai = __rootx * (__J_nu 24952: - __N_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 24952: __Bi = -__rootx * (__N_nu 24952: + __J_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 24952: 24952: __bessel_jn(_Tp(2) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 24952: __Aip = __absx * (__N_nu / __numeric_constants<_Tp>::__sqrt3() 24952: + __J_nu) / _Tp(2); 24952: __Bip = __absx * (__J_nu / __numeric_constants<_Tp>::__sqrt3() 24952: - __N_nu) / _Tp(2); 24952: } 24952: else 24952: { 24952: 24952: 24952: 24952: __Ai = _Tp(0.35502805388781723926L); 24952: __Bi = __Ai * __numeric_constants<_Tp>::__sqrt3(); 24952: 24952: 24952: 24952: 24952: __Aip = -_Tp(0.25881940379280679840L); 24952: __Bip = -__Aip * __numeric_constants<_Tp>::__sqrt3(); 24952: } 24952: 24952: return; 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 55 "/usr/include/c++/13/bits/specfun.h" 2 3 24952: # 1 "/usr/include/c++/13/tr1/poly_hermite.tcc" 1 3 24952: # 42 "/usr/include/c++/13/tr1/poly_hermite.tcc" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 56 "/usr/include/c++/13/tr1/poly_hermite.tcc" 3 24952: namespace __detail 24952: { 24952: # 72 "/usr/include/c++/13/tr1/poly_hermite.tcc" 3 24952: template 24952: _Tp 24952: __poly_hermite_recursion(unsigned int __n, _Tp __x) 24952: { 24952: 24952: _Tp __H_0 = 1; 24952: if (__n == 0) 24952: return __H_0; 24952: 24952: 24952: _Tp __H_1 = 2 * __x; 24952: if (__n == 1) 24952: return __H_1; 24952: 24952: 24952: _Tp __H_n, __H_nm1, __H_nm2; 24952: unsigned int __i; 24952: for (__H_nm2 = __H_0, __H_nm1 = __H_1, __i = 2; __i <= __n; ++__i) 24952: { 24952: __H_n = 2 * (__x * __H_nm1 - (__i - 1) * __H_nm2); 24952: __H_nm2 = __H_nm1; 24952: __H_nm1 = __H_n; 24952: } 24952: 24952: return __H_n; 24952: } 24952: # 114 "/usr/include/c++/13/tr1/poly_hermite.tcc" 3 24952: template 24952: inline _Tp 24952: __poly_hermite(unsigned int __n, _Tp __x) 24952: { 24952: if (__isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else 24952: return __poly_hermite_recursion(__n, __x); 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 56 "/usr/include/c++/13/bits/specfun.h" 2 3 24952: # 1 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 1 3 24952: # 44 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 60 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 24952: namespace __detail 24952: { 24952: # 75 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 24952: template 24952: _Tp 24952: __poly_laguerre_large_n(unsigned __n, _Tpa __alpha1, _Tp __x) 24952: { 24952: const _Tp __a = -_Tp(__n); 24952: const _Tp __b = _Tp(__alpha1) + _Tp(1); 24952: const _Tp __eta = _Tp(2) * __b - _Tp(4) * __a; 24952: const _Tp __cos2th = __x / __eta; 24952: const _Tp __sin2th = _Tp(1) - __cos2th; 24952: const _Tp __th = std::acos(std::sqrt(__cos2th)); 24952: const _Tp __pre_h = __numeric_constants<_Tp>::__pi_2() 24952: * __numeric_constants<_Tp>::__pi_2() 24952: * __eta * __eta * __cos2th * __sin2th; 24952: 24952: 24952: const _Tp __lg_b = ::std::lgamma(_Tp(__n) + __b); 24952: const _Tp __lnfact = ::std::lgamma(_Tp(__n + 1)); 24952: 24952: 24952: 24952: 24952: 24952: _Tp __pre_term1 = _Tp(0.5L) * (_Tp(1) - __b) 24952: * std::log(_Tp(0.25L) * __x * __eta); 24952: _Tp __pre_term2 = _Tp(0.25L) * std::log(__pre_h); 24952: _Tp __lnpre = __lg_b - __lnfact + _Tp(0.5L) * __x 24952: + __pre_term1 - __pre_term2; 24952: _Tp __ser_term1 = std::sin(__a * __numeric_constants<_Tp>::__pi()); 24952: _Tp __ser_term2 = std::sin(_Tp(0.25L) * __eta 24952: * (_Tp(2) * __th 24952: - std::sin(_Tp(2) * __th)) 24952: + __numeric_constants<_Tp>::__pi_4()); 24952: _Tp __ser = __ser_term1 + __ser_term2; 24952: 24952: return std::exp(__lnpre) * __ser; 24952: } 24952: # 129 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 24952: template 24952: _Tp 24952: __poly_laguerre_hyperg(unsigned int __n, _Tpa __alpha1, _Tp __x) 24952: { 24952: const _Tp __b = _Tp(__alpha1) + _Tp(1); 24952: const _Tp __mx = -__x; 24952: const _Tp __tc_sgn = (__x < _Tp(0) ? _Tp(1) 24952: : ((__n % 2 == 1) ? -_Tp(1) : _Tp(1))); 24952: 24952: _Tp __tc = _Tp(1); 24952: const _Tp __ax = std::abs(__x); 24952: for (unsigned int __k = 1; __k <= __n; ++__k) 24952: __tc *= (__ax / __k); 24952: 24952: _Tp __term = __tc * __tc_sgn; 24952: _Tp __sum = __term; 24952: for (int __k = int(__n) - 1; __k >= 0; --__k) 24952: { 24952: __term *= ((__b + _Tp(__k)) / _Tp(int(__n) - __k)) 24952: * _Tp(__k + 1) / __mx; 24952: __sum += __term; 24952: } 24952: 24952: return __sum; 24952: } 24952: # 185 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 24952: template 24952: _Tp 24952: __poly_laguerre_recursion(unsigned int __n, _Tpa __alpha1, _Tp __x) 24952: { 24952: 24952: _Tp __l_0 = _Tp(1); 24952: if (__n == 0) 24952: return __l_0; 24952: 24952: 24952: _Tp __l_1 = -__x + _Tp(1) + _Tp(__alpha1); 24952: if (__n == 1) 24952: return __l_1; 24952: 24952: 24952: _Tp __l_n2 = __l_0; 24952: _Tp __l_n1 = __l_1; 24952: _Tp __l_n = _Tp(0); 24952: for (unsigned int __nn = 2; __nn <= __n; ++__nn) 24952: { 24952: __l_n = (_Tp(2 * __nn - 1) + _Tp(__alpha1) - __x) 24952: * __l_n1 / _Tp(__nn) 24952: - (_Tp(__nn - 1) + _Tp(__alpha1)) * __l_n2 / _Tp(__nn); 24952: __l_n2 = __l_n1; 24952: __l_n1 = __l_n; 24952: } 24952: 24952: return __l_n; 24952: } 24952: # 244 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 24952: template 24952: _Tp 24952: __poly_laguerre(unsigned int __n, _Tpa __alpha1, _Tp __x) 24952: { 24952: if (__x < _Tp(0)) 24952: std::__throw_domain_error(("Negative argument " "in __poly_laguerre.") 24952: ); 24952: 24952: else if (__isnan(__x)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__n == 0) 24952: return _Tp(1); 24952: else if (__n == 1) 24952: return _Tp(1) + _Tp(__alpha1) - __x; 24952: else if (__x == _Tp(0)) 24952: { 24952: _Tp __prod = _Tp(__alpha1) + _Tp(1); 24952: for (unsigned int __k = 2; __k <= __n; ++__k) 24952: __prod *= (_Tp(__alpha1) + _Tp(__k)) / _Tp(__k); 24952: return __prod; 24952: } 24952: else if (__n > 10000000 && _Tp(__alpha1) > -_Tp(1) 24952: && __x < _Tp(2) * (_Tp(__alpha1) + _Tp(1)) + _Tp(4 * __n)) 24952: return __poly_laguerre_large_n(__n, __alpha1, __x); 24952: else if (_Tp(__alpha1) >= _Tp(0) 24952: || (__x > _Tp(0) && _Tp(__alpha1) < -_Tp(__n + 1))) 24952: return __poly_laguerre_recursion(__n, __alpha1, __x); 24952: else 24952: return __poly_laguerre_hyperg(__n, __alpha1, __x); 24952: } 24952: # 296 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 24952: template 24952: inline _Tp 24952: __assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 24952: { return __poly_laguerre(__n, __m, __x); } 24952: # 316 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 24952: template 24952: inline _Tp 24952: __laguerre(unsigned int __n, _Tp __x) 24952: { return __poly_laguerre(__n, 0, __x); } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 57 "/usr/include/c++/13/bits/specfun.h" 2 3 24952: # 1 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 1 3 24952: # 47 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 63 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 24952: namespace __detail 24952: { 24952: # 78 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 24952: template 24952: _Tp 24952: __riemann_zeta_sum(_Tp __s) 24952: { 24952: 24952: if (__s < _Tp(1)) 24952: std::__throw_domain_error(("Bad argument in zeta sum.")); 24952: 24952: const unsigned int max_iter = 10000; 24952: _Tp __zeta = _Tp(0); 24952: for (unsigned int __k = 1; __k < max_iter; ++__k) 24952: { 24952: _Tp __term = std::pow(static_cast<_Tp>(__k), -__s); 24952: if (__term < std::numeric_limits<_Tp>::epsilon()) 24952: { 24952: break; 24952: } 24952: __zeta += __term; 24952: } 24952: 24952: return __zeta; 24952: } 24952: # 115 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 24952: template 24952: _Tp 24952: __riemann_zeta_alt(_Tp __s) 24952: { 24952: _Tp __sgn = _Tp(1); 24952: _Tp __zeta = _Tp(0); 24952: for (unsigned int __i = 1; __i < 10000000; ++__i) 24952: { 24952: _Tp __term = __sgn / std::pow(__i, __s); 24952: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 24952: break; 24952: __zeta += __term; 24952: __sgn *= _Tp(-1); 24952: } 24952: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 24952: 24952: return __zeta; 24952: } 24952: # 157 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 24952: template 24952: _Tp 24952: __riemann_zeta_glob(_Tp __s) 24952: { 24952: _Tp __zeta = _Tp(0); 24952: 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: 24952: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 24952: * std::log(_Tp(10)) - _Tp(1); 24952: 24952: 24952: 24952: if (__s < _Tp(0)) 24952: { 24952: 24952: if (::std::fmod(__s,_Tp(2)) == _Tp(0)) 24952: return _Tp(0); 24952: else 24952: 24952: { 24952: _Tp __zeta = __riemann_zeta_glob(_Tp(1) - __s); 24952: __zeta *= std::pow(_Tp(2) 24952: * __numeric_constants<_Tp>::__pi(), __s) 24952: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 24952: 24952: * std::exp(::std::lgamma(_Tp(1) - __s)) 24952: 24952: 24952: 24952: / __numeric_constants<_Tp>::__pi(); 24952: return __zeta; 24952: } 24952: } 24952: 24952: _Tp __num = _Tp(0.5L); 24952: const unsigned int __maxit = 10000; 24952: for (unsigned int __i = 0; __i < __maxit; ++__i) 24952: { 24952: bool __punt = false; 24952: _Tp __sgn = _Tp(1); 24952: _Tp __term = _Tp(0); 24952: for (unsigned int __j = 0; __j <= __i; ++__j) 24952: { 24952: 24952: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 24952: - ::std::lgamma(_Tp(1 + __j)) 24952: - ::std::lgamma(_Tp(1 + __i - __j)); 24952: 24952: 24952: 24952: 24952: 24952: if (__bincoeff > __max_bincoeff) 24952: { 24952: 24952: __punt = true; 24952: break; 24952: } 24952: __bincoeff = std::exp(__bincoeff); 24952: __term += __sgn * __bincoeff * std::pow(_Tp(1 + __j), -__s); 24952: __sgn *= _Tp(-1); 24952: } 24952: if (__punt) 24952: break; 24952: __term *= __num; 24952: __zeta += __term; 24952: if (std::abs(__term/__zeta) < __eps) 24952: break; 24952: __num *= _Tp(0.5L); 24952: } 24952: 24952: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 24952: 24952: return __zeta; 24952: } 24952: # 252 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 24952: template 24952: _Tp 24952: __riemann_zeta_product(_Tp __s) 24952: { 24952: static const _Tp __prime[] = { 24952: _Tp(2), _Tp(3), _Tp(5), _Tp(7), _Tp(11), _Tp(13), _Tp(17), _Tp(19), 24952: _Tp(23), _Tp(29), _Tp(31), _Tp(37), _Tp(41), _Tp(43), _Tp(47), 24952: _Tp(53), _Tp(59), _Tp(61), _Tp(67), _Tp(71), _Tp(73), _Tp(79), 24952: _Tp(83), _Tp(89), _Tp(97), _Tp(101), _Tp(103), _Tp(107), _Tp(109) 24952: }; 24952: static const unsigned int __num_primes = sizeof(__prime) / sizeof(_Tp); 24952: 24952: _Tp __zeta = _Tp(1); 24952: for (unsigned int __i = 0; __i < __num_primes; ++__i) 24952: { 24952: const _Tp __fact = _Tp(1) - std::pow(__prime[__i], -__s); 24952: __zeta *= __fact; 24952: if (_Tp(1) - __fact < std::numeric_limits<_Tp>::epsilon()) 24952: break; 24952: } 24952: 24952: __zeta = _Tp(1) / __zeta; 24952: 24952: return __zeta; 24952: } 24952: # 293 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 24952: template 24952: _Tp 24952: __riemann_zeta(_Tp __s) 24952: { 24952: if (__isnan(__s)) 24952: return std::numeric_limits<_Tp>::quiet_NaN(); 24952: else if (__s == _Tp(1)) 24952: return std::numeric_limits<_Tp>::infinity(); 24952: else if (__s < -_Tp(19)) 24952: { 24952: _Tp __zeta = __riemann_zeta_product(_Tp(1) - __s); 24952: __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) 24952: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 24952: 24952: * std::exp(::std::lgamma(_Tp(1) - __s)) 24952: 24952: 24952: 24952: / __numeric_constants<_Tp>::__pi(); 24952: return __zeta; 24952: } 24952: else if (__s < _Tp(20)) 24952: { 24952: 24952: bool __glob = true; 24952: if (__glob) 24952: return __riemann_zeta_glob(__s); 24952: else 24952: { 24952: if (__s > _Tp(1)) 24952: return __riemann_zeta_sum(__s); 24952: else 24952: { 24952: _Tp __zeta = std::pow(_Tp(2) 24952: * __numeric_constants<_Tp>::__pi(), __s) 24952: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 24952: 24952: * ::std::tgamma(_Tp(1) - __s) 24952: 24952: 24952: 24952: * __riemann_zeta_sum(_Tp(1) - __s); 24952: return __zeta; 24952: } 24952: } 24952: } 24952: else 24952: return __riemann_zeta_product(__s); 24952: } 24952: # 365 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 24952: template 24952: _Tp 24952: __hurwitz_zeta_glob(_Tp __a, _Tp __s) 24952: { 24952: _Tp __zeta = _Tp(0); 24952: 24952: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 24952: 24952: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 24952: * std::log(_Tp(10)) - _Tp(1); 24952: 24952: const unsigned int __maxit = 10000; 24952: for (unsigned int __i = 0; __i < __maxit; ++__i) 24952: { 24952: bool __punt = false; 24952: _Tp __sgn = _Tp(1); 24952: _Tp __term = _Tp(0); 24952: for (unsigned int __j = 0; __j <= __i; ++__j) 24952: { 24952: 24952: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 24952: - ::std::lgamma(_Tp(1 + __j)) 24952: - ::std::lgamma(_Tp(1 + __i - __j)); 24952: 24952: 24952: 24952: 24952: 24952: if (__bincoeff > __max_bincoeff) 24952: { 24952: 24952: __punt = true; 24952: break; 24952: } 24952: __bincoeff = std::exp(__bincoeff); 24952: __term += __sgn * __bincoeff * std::pow(_Tp(__a + __j), -__s); 24952: __sgn *= _Tp(-1); 24952: } 24952: if (__punt) 24952: break; 24952: __term /= _Tp(__i + 1); 24952: if (std::abs(__term / __zeta) < __eps) 24952: break; 24952: __zeta += __term; 24952: } 24952: 24952: __zeta /= __s - _Tp(1); 24952: 24952: return __zeta; 24952: } 24952: # 430 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 24952: template 24952: inline _Tp 24952: __hurwitz_zeta(_Tp __a, _Tp __s) 24952: { return __hurwitz_zeta_glob(__a, __s); } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 58 "/usr/include/c++/13/bits/specfun.h" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 203 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: assoc_laguerref(unsigned int __n, unsigned int __m, float __x) 24952: { return __detail::__assoc_laguerre(__n, __m, __x); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: assoc_laguerrel(unsigned int __n, unsigned int __m, long double __x) 24952: { return __detail::__assoc_laguerre(__n, __m, __x); } 24952: # 248 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: return __detail::__assoc_laguerre<__type>(__n, __m, __x); 24952: } 24952: # 264 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: assoc_legendref(unsigned int __l, unsigned int __m, float __x) 24952: { return __detail::__assoc_legendre_p(__l, __m, __x); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: assoc_legendrel(unsigned int __l, unsigned int __m, long double __x) 24952: { return __detail::__assoc_legendre_p(__l, __m, __x); } 24952: # 294 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: return __detail::__assoc_legendre_p<__type>(__l, __m, __x); 24952: } 24952: # 309 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: betaf(float __a, float __b) 24952: { return __detail::__beta(__a, __b); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: betal(long double __a, long double __b) 24952: { return __detail::__beta(__a, __b); } 24952: # 339 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type 24952: beta(_Tpa __a, _Tpb __b) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type __type; 24952: return __detail::__beta<__type>(__a, __b); 24952: } 24952: # 355 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: comp_ellint_1f(float __k) 24952: { return __detail::__comp_ellint_1(__k); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: comp_ellint_1l(long double __k) 24952: { return __detail::__comp_ellint_1(__k); } 24952: # 387 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: comp_ellint_1(_Tp __k) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: return __detail::__comp_ellint_1<__type>(__k); 24952: } 24952: # 403 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: comp_ellint_2f(float __k) 24952: { return __detail::__comp_ellint_2(__k); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: comp_ellint_2l(long double __k) 24952: { return __detail::__comp_ellint_2(__k); } 24952: # 434 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: comp_ellint_2(_Tp __k) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: return __detail::__comp_ellint_2<__type>(__k); 24952: } 24952: # 450 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: comp_ellint_3f(float __k, float __nu) 24952: { return __detail::__comp_ellint_3(__k, __nu); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: comp_ellint_3l(long double __k, long double __nu) 24952: { return __detail::__comp_ellint_3(__k, __nu); } 24952: # 485 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type 24952: comp_ellint_3(_Tp __k, _Tpn __nu) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type __type; 24952: return __detail::__comp_ellint_3<__type>(__k, __nu); 24952: } 24952: # 501 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: cyl_bessel_if(float __nu, float __x) 24952: { return __detail::__cyl_bessel_i(__nu, __x); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: cyl_bessel_il(long double __nu, long double __x) 24952: { return __detail::__cyl_bessel_i(__nu, __x); } 24952: # 531 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 24952: cyl_bessel_i(_Tpnu __nu, _Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 24952: return __detail::__cyl_bessel_i<__type>(__nu, __x); 24952: } 24952: # 547 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: cyl_bessel_jf(float __nu, float __x) 24952: { return __detail::__cyl_bessel_j(__nu, __x); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: cyl_bessel_jl(long double __nu, long double __x) 24952: { return __detail::__cyl_bessel_j(__nu, __x); } 24952: # 577 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 24952: cyl_bessel_j(_Tpnu __nu, _Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 24952: return __detail::__cyl_bessel_j<__type>(__nu, __x); 24952: } 24952: # 593 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: cyl_bessel_kf(float __nu, float __x) 24952: { return __detail::__cyl_bessel_k(__nu, __x); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: cyl_bessel_kl(long double __nu, long double __x) 24952: { return __detail::__cyl_bessel_k(__nu, __x); } 24952: # 629 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 24952: cyl_bessel_k(_Tpnu __nu, _Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 24952: return __detail::__cyl_bessel_k<__type>(__nu, __x); 24952: } 24952: # 645 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: cyl_neumannf(float __nu, float __x) 24952: { return __detail::__cyl_neumann_n(__nu, __x); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: cyl_neumannl(long double __nu, long double __x) 24952: { return __detail::__cyl_neumann_n(__nu, __x); } 24952: # 677 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 24952: cyl_neumann(_Tpnu __nu, _Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 24952: return __detail::__cyl_neumann_n<__type>(__nu, __x); 24952: } 24952: # 693 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: ellint_1f(float __k, float __phi) 24952: { return __detail::__ellint_1(__k, __phi); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: ellint_1l(long double __k, long double __phi) 24952: { return __detail::__ellint_1(__k, __phi); } 24952: # 725 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 24952: ellint_1(_Tp __k, _Tpp __phi) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 24952: return __detail::__ellint_1<__type>(__k, __phi); 24952: } 24952: # 741 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: ellint_2f(float __k, float __phi) 24952: { return __detail::__ellint_2(__k, __phi); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: ellint_2l(long double __k, long double __phi) 24952: { return __detail::__ellint_2(__k, __phi); } 24952: # 773 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 24952: ellint_2(_Tp __k, _Tpp __phi) 24952: { 24952: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 24952: return __detail::__ellint_2<__type>(__k, __phi); 24952: } 24952: # 789 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: ellint_3f(float __k, float __nu, float __phi) 24952: { return __detail::__ellint_3(__k, __nu, __phi); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: ellint_3l(long double __k, long double __nu, long double __phi) 24952: { return __detail::__ellint_3(__k, __nu, __phi); } 24952: # 826 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type 24952: ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi) 24952: { 24952: typedef typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type __type; 24952: return __detail::__ellint_3<__type>(__k, __nu, __phi); 24952: } 24952: # 841 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: expintf(float __x) 24952: { return __detail::__expint(__x); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: expintl(long double __x) 24952: { return __detail::__expint(__x); } 24952: # 866 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: expint(_Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: return __detail::__expint<__type>(__x); 24952: } 24952: # 882 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: hermitef(unsigned int __n, float __x) 24952: { return __detail::__poly_hermite(__n, __x); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: hermitel(unsigned int __n, long double __x) 24952: { return __detail::__poly_hermite(__n, __x); } 24952: # 914 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: hermite(unsigned int __n, _Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: return __detail::__poly_hermite<__type>(__n, __x); 24952: } 24952: # 930 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: laguerref(unsigned int __n, float __x) 24952: { return __detail::__laguerre(__n, __x); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: laguerrel(unsigned int __n, long double __x) 24952: { return __detail::__laguerre(__n, __x); } 24952: # 958 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: laguerre(unsigned int __n, _Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: return __detail::__laguerre<__type>(__n, __x); 24952: } 24952: # 974 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: legendref(unsigned int __l, float __x) 24952: { return __detail::__poly_legendre_p(__l, __x); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: legendrel(unsigned int __l, long double __x) 24952: { return __detail::__poly_legendre_p(__l, __x); } 24952: # 1003 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: legendre(unsigned int __l, _Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: return __detail::__poly_legendre_p<__type>(__l, __x); 24952: } 24952: # 1019 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: riemann_zetaf(float __s) 24952: { return __detail::__riemann_zeta(__s); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: riemann_zetal(long double __s) 24952: { return __detail::__riemann_zeta(__s); } 24952: # 1054 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: riemann_zeta(_Tp __s) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: return __detail::__riemann_zeta<__type>(__s); 24952: } 24952: # 1070 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: sph_besself(unsigned int __n, float __x) 24952: { return __detail::__sph_bessel(__n, __x); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: sph_bessell(unsigned int __n, long double __x) 24952: { return __detail::__sph_bessel(__n, __x); } 24952: # 1098 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: sph_bessel(unsigned int __n, _Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: return __detail::__sph_bessel<__type>(__n, __x); 24952: } 24952: # 1114 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: sph_legendref(unsigned int __l, unsigned int __m, float __theta) 24952: { return __detail::__sph_legendre(__l, __m, __theta); } 24952: # 1125 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline long double 24952: sph_legendrel(unsigned int __l, unsigned int __m, long double __theta) 24952: { return __detail::__sph_legendre(__l, __m, __theta); } 24952: # 1145 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: return __detail::__sph_legendre<__type>(__l, __m, __theta); 24952: } 24952: # 1161 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: sph_neumannf(unsigned int __n, float __x) 24952: { return __detail::__sph_neumann(__n, __x); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline long double 24952: sph_neumannl(unsigned int __n, long double __x) 24952: { return __detail::__sph_neumann(__n, __x); } 24952: # 1189 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: sph_neumann(unsigned int __n, _Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: return __detail::__sph_neumann<__type>(__n, __x); 24952: } 24952: 24952: 24952: 24952: 24952: } 24952: 24952: 24952: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 1216 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: airy_aif(float __x) 24952: { 24952: float __Ai, __Bi, __Aip, __Bip; 24952: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 24952: return __Ai; 24952: } 24952: 24952: 24952: 24952: 24952: inline long double 24952: airy_ail(long double __x) 24952: { 24952: long double __Ai, __Bi, __Aip, __Bip; 24952: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 24952: return __Ai; 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: airy_ai(_Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: __type __Ai, __Bi, __Aip, __Bip; 24952: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 24952: return __Ai; 24952: } 24952: 24952: 24952: 24952: 24952: inline float 24952: airy_bif(float __x) 24952: { 24952: float __Ai, __Bi, __Aip, __Bip; 24952: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 24952: return __Bi; 24952: } 24952: 24952: 24952: 24952: 24952: inline long double 24952: airy_bil(long double __x) 24952: { 24952: long double __Ai, __Bi, __Aip, __Bip; 24952: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 24952: return __Bi; 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: inline typename __gnu_cxx::__promote<_Tp>::__type 24952: airy_bi(_Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 24952: __type __Ai, __Bi, __Aip, __Bip; 24952: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 24952: return __Bi; 24952: } 24952: # 1292 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: conf_hypergf(float __a, float __c, float __x) 24952: { return std::__detail::__conf_hyperg(__a, __c, __x); } 24952: # 1303 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline long double 24952: conf_hypergl(long double __a, long double __c, long double __x) 24952: { return std::__detail::__conf_hyperg(__a, __c, __x); } 24952: # 1323 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type 24952: conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type __type; 24952: return std::__detail::__conf_hyperg<__type>(__a, __c, __x); 24952: } 24952: # 1340 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline float 24952: hypergf(float __a, float __b, float __c, float __x) 24952: { return std::__detail::__hyperg(__a, __b, __c, __x); } 24952: # 1351 "/usr/include/c++/13/bits/specfun.h" 3 24952: inline long double 24952: hypergl(long double __a, long double __b, long double __c, long double __x) 24952: { return std::__detail::__hyperg(__a, __b, __c, __x); } 24952: # 1372 "/usr/include/c++/13/bits/specfun.h" 3 24952: template 24952: inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type 24952: hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x) 24952: { 24952: typedef typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp> 24952: ::__type __type; 24952: return std::__detail::__hyperg<__type>(__a, __b, __c, __x); 24952: } 24952: 24952: 24952: 24952: } 24952: # 3700 "/usr/include/c++/13/cmath" 2 3 24952: 24952: 24952: } 24952: # 41 "/usr/include/c++/13/random" 2 3 24952: # 1 "/usr/include/c++/13/cstdlib" 1 3 24952: # 39 "/usr/include/c++/13/cstdlib" 3 24952: 24952: # 40 "/usr/include/c++/13/cstdlib" 3 24952: # 42 "/usr/include/c++/13/random" 2 3 24952: # 51 "/usr/include/c++/13/random" 3 24952: # 1 "/usr/include/c++/13/bits/random.h" 1 3 24952: # 37 "/usr/include/c++/13/bits/random.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 58 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: _RealType 24952: generate_canonical(_UniformRandomNumberGenerator& __g); 24952: 24952: 24952: 24952: namespace __detail 24952: { 24952: template 24952: (std::numeric_limits<_UIntType>::digits)> 24952: struct _Shift 24952: { static constexpr _UIntType __value = 0; }; 24952: 24952: template 24952: struct _Shift<_UIntType, __w, true> 24952: { static constexpr _UIntType __value = _UIntType(1) << __w; }; 24952: 24952: template 24952: struct _Select_uint_least_t 24952: { 24952: static_assert(__which < 0, 24952: "sorry, would be too much trouble for a slow result"); 24952: }; 24952: 24952: template 24952: struct _Select_uint_least_t<__s, 4> 24952: { using type = unsigned int; }; 24952: 24952: template 24952: struct _Select_uint_least_t<__s, 3> 24952: { using type = unsigned long; }; 24952: 24952: template 24952: struct _Select_uint_least_t<__s, 2> 24952: { using type = unsigned long long; }; 24952: # 108 "/usr/include/c++/13/bits/random.h" 3 24952: template= __m - 1), 24952: bool __schrage_ok = __m % __a < __m / __a> 24952: struct _Mod 24952: { 24952: static _Tp 24952: __calc(_Tp __x) 24952: { 24952: using _Tp2 24952: = typename _Select_uint_least_t::type; 24952: return static_cast<_Tp>((_Tp2(__a) * __x + __c) % __m); 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct _Mod<_Tp, __m, __a, __c, false, true> 24952: { 24952: static _Tp 24952: __calc(_Tp __x); 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: struct _Mod<_Tp, __m, __a, __c, true, __s> 24952: { 24952: static _Tp 24952: __calc(_Tp __x) 24952: { 24952: _Tp __res = __a * __x + __c; 24952: if (__m) 24952: __res %= __m; 24952: return __res; 24952: } 24952: }; 24952: 24952: template 24952: inline _Tp 24952: __mod(_Tp __x) 24952: { 24952: if constexpr (__a == 0) 24952: return __c; 24952: else 24952: { 24952: 24952: constexpr _Tp __a1 = __a ? __a : 1; 24952: return _Mod<_Tp, __m, __a1, __c>::__calc(__x); 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Adaptor 24952: { 24952: static_assert(std::is_floating_point<_DInputType>::value, 24952: "template argument must be a floating point type"); 24952: 24952: public: 24952: _Adaptor(_Engine& __g) 24952: : _M_g(__g) { } 24952: 24952: _DInputType 24952: min() const 24952: { return _DInputType(0); } 24952: 24952: _DInputType 24952: max() const 24952: { return _DInputType(1); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: _DInputType 24952: operator()() 24952: { 24952: return std::generate_canonical<_DInputType, 24952: std::numeric_limits<_DInputType>::digits, 24952: _Engine>(_M_g); 24952: } 24952: 24952: private: 24952: _Engine& _M_g; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: using __seed_seq_generate_t = decltype( 24952: std::declval<_Sseq&>().generate(std::declval(), 24952: std::declval())); 24952: 24952: template> 24952: using _If_seed_seq_for = _Require< 24952: __not_, _Engine>>, 24952: is_unsigned, 24952: __not_> 24952: >; 24952: 24952: } 24952: # 263 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class linear_congruential_engine 24952: { 24952: static_assert(std::is_unsigned<_UIntType>::value, 24952: "result_type must be an unsigned integral type"); 24952: static_assert(__m == 0u || (__a < __m && __c < __m), 24952: "template argument substituting __m out of bounds"); 24952: 24952: template 24952: using _If_seed_seq 24952: = __detail::_If_seed_seq_for<_Sseq, linear_congruential_engine, 24952: _UIntType>; 24952: 24952: public: 24952: 24952: typedef _UIntType result_type; 24952: 24952: 24952: static constexpr result_type multiplier = __a; 24952: 24952: static constexpr result_type increment = __c; 24952: 24952: static constexpr result_type modulus = __m; 24952: static constexpr result_type default_seed = 1u; 24952: 24952: 24952: 24952: 24952: 24952: linear_congruential_engine() : linear_congruential_engine(default_seed) 24952: { } 24952: # 302 "/usr/include/c++/13/bits/random.h" 3 24952: explicit 24952: linear_congruential_engine(result_type __s) 24952: { seed(__s); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: explicit 24952: linear_congruential_engine(_Sseq& __q) 24952: { seed(__q); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: seed(result_type __s = default_seed); 24952: # 333 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: _If_seed_seq<_Sseq> 24952: seed(_Sseq& __q); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: static constexpr result_type 24952: min() 24952: { return __c == 0u ? 1u : 0u; } 24952: 24952: 24952: 24952: 24952: static constexpr result_type 24952: max() 24952: { return __m - 1u; } 24952: 24952: 24952: 24952: 24952: void 24952: discard(unsigned long long __z) 24952: { 24952: for (; __z != 0ULL; --__z) 24952: (*this)(); 24952: } 24952: 24952: 24952: 24952: 24952: result_type 24952: operator()() 24952: { 24952: _M_x = __detail::__mod<_UIntType, __m, __a, __c>(_M_x); 24952: return _M_x; 24952: } 24952: # 385 "/usr/include/c++/13/bits/random.h" 3 24952: friend bool 24952: operator==(const linear_congruential_engine& __lhs, 24952: const linear_congruential_engine& __rhs) 24952: { return __lhs._M_x == __rhs._M_x; } 24952: # 398 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::linear_congruential_engine<_UIntType1, 24952: __a1, __c1, __m1>& __lcr); 24952: # 418 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::linear_congruential_engine<_UIntType1, __a1, 24952: __c1, __m1>& __lcr); 24952: 24952: private: 24952: _UIntType _M_x; 24952: }; 24952: # 441 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: inline bool 24952: operator!=(const std::linear_congruential_engine<_UIntType, __a, 24952: __c, __m>& __lhs, 24952: const std::linear_congruential_engine<_UIntType, __a, 24952: __c, __m>& __rhs) 24952: { return !(__lhs == __rhs); } 24952: # 481 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class mersenne_twister_engine 24952: { 24952: static_assert(std::is_unsigned<_UIntType>::value, 24952: "result_type must be an unsigned integral type"); 24952: static_assert(1u <= __m && __m <= __n, 24952: "template argument substituting __m out of bounds"); 24952: static_assert(__r <= __w, "template argument substituting " 24952: "__r out of bound"); 24952: static_assert(__u <= __w, "template argument substituting " 24952: "__u out of bound"); 24952: static_assert(__s <= __w, "template argument substituting " 24952: "__s out of bound"); 24952: static_assert(__t <= __w, "template argument substituting " 24952: "__t out of bound"); 24952: static_assert(__l <= __w, "template argument substituting " 24952: "__l out of bound"); 24952: static_assert(__w <= std::numeric_limits<_UIntType>::digits, 24952: "template argument substituting __w out of bound"); 24952: static_assert(__a <= (__detail::_Shift<_UIntType, __w>::__value - 1), 24952: "template argument substituting __a out of bound"); 24952: static_assert(__b <= (__detail::_Shift<_UIntType, __w>::__value - 1), 24952: "template argument substituting __b out of bound"); 24952: static_assert(__c <= (__detail::_Shift<_UIntType, __w>::__value - 1), 24952: "template argument substituting __c out of bound"); 24952: static_assert(__d <= (__detail::_Shift<_UIntType, __w>::__value - 1), 24952: "template argument substituting __d out of bound"); 24952: static_assert(__f <= (__detail::_Shift<_UIntType, __w>::__value - 1), 24952: "template argument substituting __f out of bound"); 24952: 24952: template 24952: using _If_seed_seq 24952: = __detail::_If_seed_seq_for<_Sseq, mersenne_twister_engine, 24952: _UIntType>; 24952: 24952: public: 24952: 24952: typedef _UIntType result_type; 24952: 24952: 24952: static constexpr size_t word_size = __w; 24952: static constexpr size_t state_size = __n; 24952: static constexpr size_t shift_size = __m; 24952: static constexpr size_t mask_bits = __r; 24952: static constexpr result_type xor_mask = __a; 24952: static constexpr size_t tempering_u = __u; 24952: static constexpr result_type tempering_d = __d; 24952: static constexpr size_t tempering_s = __s; 24952: static constexpr result_type tempering_b = __b; 24952: static constexpr size_t tempering_t = __t; 24952: static constexpr result_type tempering_c = __c; 24952: static constexpr size_t tempering_l = __l; 24952: static constexpr result_type initialization_multiplier = __f; 24952: static constexpr result_type default_seed = 5489u; 24952: 24952: 24952: 24952: mersenne_twister_engine() : mersenne_twister_engine(default_seed) { } 24952: 24952: explicit 24952: mersenne_twister_engine(result_type __sd) 24952: { seed(__sd); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: explicit 24952: mersenne_twister_engine(_Sseq& __q) 24952: { seed(__q); } 24952: 24952: void 24952: seed(result_type __sd = default_seed); 24952: 24952: template 24952: _If_seed_seq<_Sseq> 24952: seed(_Sseq& __q); 24952: 24952: 24952: 24952: 24952: static constexpr result_type 24952: min() 24952: { return 0; } 24952: 24952: 24952: 24952: 24952: static constexpr result_type 24952: max() 24952: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 24952: 24952: 24952: 24952: 24952: void 24952: discard(unsigned long long __z); 24952: 24952: result_type 24952: operator()(); 24952: # 601 "/usr/include/c++/13/bits/random.h" 3 24952: friend bool 24952: operator==(const mersenne_twister_engine& __lhs, 24952: const mersenne_twister_engine& __rhs) 24952: { return (std::equal(__lhs._M_x, __lhs._M_x + state_size, __rhs._M_x) 24952: && __lhs._M_p == __rhs._M_p); } 24952: # 619 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::mersenne_twister_engine<_UIntType1, __w1, __n1, 24952: __m1, __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 24952: __l1, __f1>& __x); 24952: # 645 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::mersenne_twister_engine<_UIntType1, __w1, __n1, __m1, 24952: __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 24952: __l1, __f1>& __x); 24952: 24952: private: 24952: void _M_gen_rand(); 24952: 24952: _UIntType _M_x[state_size]; 24952: size_t _M_p; 24952: }; 24952: # 679 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: inline bool 24952: operator!=(const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 24952: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __lhs, 24952: const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 24952: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __rhs) 24952: { return !(__lhs == __rhs); } 24952: # 710 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class subtract_with_carry_engine 24952: { 24952: static_assert(std::is_unsigned<_UIntType>::value, 24952: "result_type must be an unsigned integral type"); 24952: static_assert(0u < __s && __s < __r, 24952: "0 < s < r"); 24952: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 24952: "template argument substituting __w out of bounds"); 24952: 24952: template 24952: using _If_seed_seq 24952: = __detail::_If_seed_seq_for<_Sseq, subtract_with_carry_engine, 24952: _UIntType>; 24952: 24952: public: 24952: 24952: typedef _UIntType result_type; 24952: 24952: 24952: static constexpr size_t word_size = __w; 24952: static constexpr size_t short_lag = __s; 24952: static constexpr size_t long_lag = __r; 24952: static constexpr uint_least32_t default_seed = 19780503u; 24952: 24952: subtract_with_carry_engine() : subtract_with_carry_engine(0u) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: subtract_with_carry_engine(result_type __sd) 24952: { seed(__sd); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: explicit 24952: subtract_with_carry_engine(_Sseq& __q) 24952: { seed(__q); } 24952: # 769 "/usr/include/c++/13/bits/random.h" 3 24952: void 24952: seed(result_type __sd = 0u); 24952: 24952: 24952: 24952: 24952: 24952: template 24952: _If_seed_seq<_Sseq> 24952: seed(_Sseq& __q); 24952: 24952: 24952: 24952: 24952: 24952: static constexpr result_type 24952: min() 24952: { return 0; } 24952: 24952: 24952: 24952: 24952: 24952: static constexpr result_type 24952: max() 24952: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 24952: 24952: 24952: 24952: 24952: void 24952: discard(unsigned long long __z) 24952: { 24952: for (; __z != 0ULL; --__z) 24952: (*this)(); 24952: } 24952: 24952: 24952: 24952: 24952: result_type 24952: operator()(); 24952: # 824 "/usr/include/c++/13/bits/random.h" 3 24952: friend bool 24952: operator==(const subtract_with_carry_engine& __lhs, 24952: const subtract_with_carry_engine& __rhs) 24952: { return (std::equal(__lhs._M_x, __lhs._M_x + long_lag, __rhs._M_x) 24952: && __lhs._M_carry == __rhs._M_carry 24952: && __lhs._M_p == __rhs._M_p); } 24952: # 843 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::subtract_with_carry_engine<_UIntType1, __w1, 24952: __s1, __r1>& __x); 24952: # 862 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::subtract_with_carry_engine<_UIntType1, __w1, 24952: __s1, __r1>& __x); 24952: 24952: private: 24952: 24952: _UIntType _M_x[long_lag]; 24952: _UIntType _M_carry; 24952: size_t _M_p; 24952: }; 24952: # 889 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: inline bool 24952: operator!=(const std::subtract_with_carry_engine<_UIntType, __w, 24952: __s, __r>& __lhs, 24952: const std::subtract_with_carry_engine<_UIntType, __w, 24952: __s, __r>& __rhs) 24952: { return !(__lhs == __rhs); } 24952: # 907 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class discard_block_engine 24952: { 24952: static_assert(1 <= __r && __r <= __p, 24952: "template argument substituting __r out of bounds"); 24952: 24952: public: 24952: 24952: typedef typename _RandomNumberEngine::result_type result_type; 24952: 24952: template 24952: using _If_seed_seq 24952: = __detail::_If_seed_seq_for<_Sseq, discard_block_engine, 24952: result_type>; 24952: 24952: 24952: static constexpr size_t block_size = __p; 24952: static constexpr size_t used_block = __r; 24952: 24952: 24952: 24952: 24952: 24952: 24952: discard_block_engine() 24952: : _M_b(), _M_n(0) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: discard_block_engine(const _RandomNumberEngine& __rng) 24952: : _M_b(__rng), _M_n(0) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: discard_block_engine(_RandomNumberEngine&& __rng) 24952: : _M_b(std::move(__rng)), _M_n(0) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: discard_block_engine(result_type __s) 24952: : _M_b(__s), _M_n(0) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: explicit 24952: discard_block_engine(_Sseq& __q) 24952: : _M_b(__q), _M_n(0) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: seed() 24952: { 24952: _M_b.seed(); 24952: _M_n = 0; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: seed(result_type __s) 24952: { 24952: _M_b.seed(__s); 24952: _M_n = 0; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: _If_seed_seq<_Sseq> 24952: seed(_Sseq& __q) 24952: { 24952: _M_b.seed(__q); 24952: _M_n = 0; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: const _RandomNumberEngine& 24952: base() const noexcept 24952: { return _M_b; } 24952: 24952: 24952: 24952: 24952: static constexpr result_type 24952: min() 24952: { return _RandomNumberEngine::min(); } 24952: 24952: 24952: 24952: 24952: static constexpr result_type 24952: max() 24952: { return _RandomNumberEngine::max(); } 24952: 24952: 24952: 24952: 24952: void 24952: discard(unsigned long long __z) 24952: { 24952: for (; __z != 0ULL; --__z) 24952: (*this)(); 24952: } 24952: 24952: 24952: 24952: 24952: result_type 24952: operator()(); 24952: # 1059 "/usr/include/c++/13/bits/random.h" 3 24952: friend bool 24952: operator==(const discard_block_engine& __lhs, 24952: const discard_block_engine& __rhs) 24952: { return __lhs._M_b == __rhs._M_b && __lhs._M_n == __rhs._M_n; } 24952: # 1075 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::discard_block_engine<_RandomNumberEngine1, 24952: __p1, __r1>& __x); 24952: # 1093 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::discard_block_engine<_RandomNumberEngine1, 24952: __p1, __r1>& __x); 24952: 24952: private: 24952: _RandomNumberEngine _M_b; 24952: size_t _M_n; 24952: }; 24952: # 1117 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: inline bool 24952: operator!=(const std::discard_block_engine<_RandomNumberEngine, __p, 24952: __r>& __lhs, 24952: const std::discard_block_engine<_RandomNumberEngine, __p, 24952: __r>& __rhs) 24952: { return !(__lhs == __rhs); } 24952: # 1133 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class independent_bits_engine 24952: { 24952: static_assert(std::is_unsigned<_UIntType>::value, 24952: "result_type must be an unsigned integral type"); 24952: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 24952: "template argument substituting __w out of bounds"); 24952: 24952: template 24952: using _If_seed_seq 24952: = __detail::_If_seed_seq_for<_Sseq, independent_bits_engine, 24952: _UIntType>; 24952: 24952: public: 24952: 24952: typedef _UIntType result_type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: independent_bits_engine() 24952: : _M_b() { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: independent_bits_engine(const _RandomNumberEngine& __rng) 24952: : _M_b(__rng) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: independent_bits_engine(_RandomNumberEngine&& __rng) 24952: : _M_b(std::move(__rng)) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: independent_bits_engine(result_type __s) 24952: : _M_b(__s) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: explicit 24952: independent_bits_engine(_Sseq& __q) 24952: : _M_b(__q) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: seed() 24952: { _M_b.seed(); } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: seed(result_type __s) 24952: { _M_b.seed(__s); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: _If_seed_seq<_Sseq> 24952: seed(_Sseq& __q) 24952: { _M_b.seed(__q); } 24952: 24952: 24952: 24952: 24952: 24952: const _RandomNumberEngine& 24952: base() const noexcept 24952: { return _M_b; } 24952: 24952: 24952: 24952: 24952: static constexpr result_type 24952: min() 24952: { return 0U; } 24952: 24952: 24952: 24952: 24952: static constexpr result_type 24952: max() 24952: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 24952: 24952: 24952: 24952: 24952: void 24952: discard(unsigned long long __z) 24952: { 24952: for (; __z != 0ULL; --__z) 24952: (*this)(); 24952: } 24952: 24952: 24952: 24952: 24952: result_type 24952: operator()(); 24952: # 1275 "/usr/include/c++/13/bits/random.h" 3 24952: friend bool 24952: operator==(const independent_bits_engine& __lhs, 24952: const independent_bits_engine& __rhs) 24952: { return __lhs._M_b == __rhs._M_b; } 24952: # 1292 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::independent_bits_engine<_RandomNumberEngine, 24952: __w, _UIntType>& __x) 24952: { 24952: __is >> __x._M_b; 24952: return __is; 24952: } 24952: 24952: private: 24952: _RandomNumberEngine _M_b; 24952: }; 24952: # 1319 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: inline bool 24952: operator!=(const std::independent_bits_engine<_RandomNumberEngine, __w, 24952: _UIntType>& __lhs, 24952: const std::independent_bits_engine<_RandomNumberEngine, __w, 24952: _UIntType>& __rhs) 24952: { return !(__lhs == __rhs); } 24952: # 1338 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::independent_bits_engine<_RandomNumberEngine, 24952: __w, _UIntType>& __x) 24952: { 24952: __os << __x.base(); 24952: return __os; 24952: } 24952: # 1360 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class shuffle_order_engine 24952: { 24952: static_assert(1u <= __k, "template argument substituting " 24952: "__k out of bound"); 24952: 24952: public: 24952: 24952: typedef typename _RandomNumberEngine::result_type result_type; 24952: 24952: template 24952: using _If_seed_seq 24952: = __detail::_If_seed_seq_for<_Sseq, shuffle_order_engine, 24952: result_type>; 24952: 24952: static constexpr size_t table_size = __k; 24952: 24952: 24952: 24952: 24952: 24952: 24952: shuffle_order_engine() 24952: : _M_b() 24952: { _M_initialize(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: shuffle_order_engine(const _RandomNumberEngine& __rng) 24952: : _M_b(__rng) 24952: { _M_initialize(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: shuffle_order_engine(_RandomNumberEngine&& __rng) 24952: : _M_b(std::move(__rng)) 24952: { _M_initialize(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: shuffle_order_engine(result_type __s) 24952: : _M_b(__s) 24952: { _M_initialize(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: explicit 24952: shuffle_order_engine(_Sseq& __q) 24952: : _M_b(__q) 24952: { _M_initialize(); } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: seed() 24952: { 24952: _M_b.seed(); 24952: _M_initialize(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: seed(result_type __s) 24952: { 24952: _M_b.seed(__s); 24952: _M_initialize(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: _If_seed_seq<_Sseq> 24952: seed(_Sseq& __q) 24952: { 24952: _M_b.seed(__q); 24952: _M_initialize(); 24952: } 24952: 24952: 24952: 24952: 24952: const _RandomNumberEngine& 24952: base() const noexcept 24952: { return _M_b; } 24952: 24952: 24952: 24952: 24952: static constexpr result_type 24952: min() 24952: { return _RandomNumberEngine::min(); } 24952: 24952: 24952: 24952: 24952: static constexpr result_type 24952: max() 24952: { return _RandomNumberEngine::max(); } 24952: 24952: 24952: 24952: 24952: void 24952: discard(unsigned long long __z) 24952: { 24952: for (; __z != 0ULL; --__z) 24952: (*this)(); 24952: } 24952: 24952: 24952: 24952: 24952: result_type 24952: operator()(); 24952: # 1513 "/usr/include/c++/13/bits/random.h" 3 24952: friend bool 24952: operator==(const shuffle_order_engine& __lhs, 24952: const shuffle_order_engine& __rhs) 24952: { return (__lhs._M_b == __rhs._M_b 24952: && std::equal(__lhs._M_v, __lhs._M_v + __k, __rhs._M_v) 24952: && __lhs._M_y == __rhs._M_y); } 24952: # 1531 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::shuffle_order_engine<_RandomNumberEngine1, 24952: __k1>& __x); 24952: # 1549 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::shuffle_order_engine<_RandomNumberEngine1, __k1>& __x); 24952: 24952: private: 24952: void _M_initialize() 24952: { 24952: for (size_t __i = 0; __i < __k; ++__i) 24952: _M_v[__i] = _M_b(); 24952: _M_y = _M_b(); 24952: } 24952: 24952: _RandomNumberEngine _M_b; 24952: result_type _M_v[__k]; 24952: result_type _M_y; 24952: }; 24952: # 1580 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: inline bool 24952: operator!=(const std::shuffle_order_engine<_RandomNumberEngine, 24952: __k>& __lhs, 24952: const std::shuffle_order_engine<_RandomNumberEngine, 24952: __k>& __rhs) 24952: { return !(__lhs == __rhs); } 24952: 24952: 24952: 24952: 24952: 24952: typedef linear_congruential_engine 24952: minstd_rand0; 24952: 24952: 24952: 24952: 24952: typedef linear_congruential_engine 24952: minstd_rand; 24952: # 1609 "/usr/include/c++/13/bits/random.h" 3 24952: typedef mersenne_twister_engine< 24952: uint_fast32_t, 24952: 32, 624, 397, 31, 24952: 0x9908b0dfUL, 11, 24952: 0xffffffffUL, 7, 24952: 0x9d2c5680UL, 15, 24952: 0xefc60000UL, 18, 1812433253UL> mt19937; 24952: 24952: 24952: 24952: 24952: typedef mersenne_twister_engine< 24952: uint_fast64_t, 24952: 64, 312, 156, 31, 24952: 0xb5026f5aa96619e9ULL, 29, 24952: 0x5555555555555555ULL, 17, 24952: 0x71d67fffeda60000ULL, 37, 24952: 0xfff7eee000000000ULL, 43, 24952: 6364136223846793005ULL> mt19937_64; 24952: 24952: typedef subtract_with_carry_engine 24952: ranlux24_base; 24952: 24952: typedef subtract_with_carry_engine 24952: ranlux48_base; 24952: 24952: typedef discard_block_engine ranlux24; 24952: 24952: typedef discard_block_engine ranlux48; 24952: 24952: typedef shuffle_order_engine knuth_b; 24952: 24952: typedef minstd_rand0 default_random_engine; 24952: # 1650 "/usr/include/c++/13/bits/random.h" 3 24952: class random_device 24952: { 24952: public: 24952: 24952: typedef unsigned int result_type; 24952: 24952: 24952: 24952: random_device() { _M_init("default"); } 24952: 24952: explicit 24952: random_device(const std::string& __token) { _M_init(__token); } 24952: 24952: ~random_device() 24952: { _M_fini(); } 24952: 24952: static constexpr result_type 24952: min() 24952: { return std::numeric_limits::min(); } 24952: 24952: static constexpr result_type 24952: max() 24952: { return std::numeric_limits::max(); } 24952: 24952: double 24952: entropy() const noexcept 24952: { return this->_M_getentropy(); } 24952: 24952: result_type 24952: operator()() 24952: { return this->_M_getval(); } 24952: 24952: 24952: random_device(const random_device&) = delete; 24952: void operator=(const random_device&) = delete; 24952: 24952: private: 24952: 24952: void _M_init(const std::string& __token); 24952: void _M_init_pretr1(const std::string& __token); 24952: void _M_fini(); 24952: 24952: result_type _M_getval(); 24952: result_type _M_getval_pretr1(); 24952: double _M_getentropy() const noexcept; 24952: 24952: void _M_init(const char*, size_t); 24952: 24952: __extension__ union 24952: { 24952: struct 24952: { 24952: void* _M_file; 24952: result_type (*_M_func)(void*); 24952: int _M_fd; 24952: }; 24952: mt19937 _M_mt; 24952: }; 24952: }; 24952: # 1731 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: inline bool 24952: operator!=(const std::uniform_int_distribution<_IntType>& __d1, 24952: const std::uniform_int_distribution<_IntType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 1748 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>&, 24952: const std::uniform_int_distribution<_IntType>&); 24952: # 1762 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>&, 24952: std::uniform_int_distribution<_IntType>&); 24952: # 1778 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class uniform_real_distribution 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "result_type must be a floating point type"); 24952: 24952: public: 24952: 24952: typedef _RealType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef uniform_real_distribution<_RealType> distribution_type; 24952: 24952: param_type() : param_type(0) { } 24952: 24952: explicit 24952: param_type(_RealType __a, _RealType __b = _RealType(1)) 24952: : _M_a(__a), _M_b(__b) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: result_type 24952: a() const 24952: { return _M_a; } 24952: 24952: result_type 24952: b() const 24952: { return _M_b; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: _RealType _M_a; 24952: _RealType _M_b; 24952: }; 24952: 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: uniform_real_distribution() : uniform_real_distribution(0.0) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: uniform_real_distribution(_RealType __a, _RealType __b = _RealType(1)) 24952: : _M_param(__a, __b) 24952: { } 24952: 24952: explicit 24952: uniform_real_distribution(const param_type& __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: reset() { } 24952: 24952: result_type 24952: a() const 24952: { return _M_param.a(); } 24952: 24952: result_type 24952: b() const 24952: { return _M_param.b(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return this->a(); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return this->b(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: return (__aurng() * (__p.b() - __p.a())) + __p.a(); 24952: } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const uniform_real_distribution& __d1, 24952: const uniform_real_distribution& __d2) 24952: { return __d1._M_param == __d2._M_param; } 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::uniform_real_distribution<_IntType>& __d1, 24952: const std::uniform_real_distribution<_IntType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 1976 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>&, 24952: const std::uniform_real_distribution<_RealType>&); 24952: # 1990 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>&, 24952: std::uniform_real_distribution<_RealType>&); 24952: # 2015 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class normal_distribution 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "result_type must be a floating point type"); 24952: 24952: public: 24952: 24952: typedef _RealType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef normal_distribution<_RealType> distribution_type; 24952: 24952: param_type() : param_type(0.0) { } 24952: 24952: explicit 24952: param_type(_RealType __mean, _RealType __stddev = _RealType(1)) 24952: : _M_mean(__mean), _M_stddev(__stddev) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_stddev > _RealType(0))) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: _RealType 24952: mean() const 24952: { return _M_mean; } 24952: 24952: _RealType 24952: stddev() const 24952: { return _M_stddev; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return (__p1._M_mean == __p2._M_mean 24952: && __p1._M_stddev == __p2._M_stddev); } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: _RealType _M_mean; 24952: _RealType _M_stddev; 24952: }; 24952: 24952: public: 24952: normal_distribution() : normal_distribution(0.0) { } 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: normal_distribution(result_type __mean, 24952: result_type __stddev = result_type(1)) 24952: : _M_param(__mean, __stddev) 24952: { } 24952: 24952: explicit 24952: normal_distribution(const param_type& __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { _M_saved_available = false; } 24952: 24952: 24952: 24952: 24952: _RealType 24952: mean() const 24952: { return _M_param.mean(); } 24952: 24952: 24952: 24952: 24952: _RealType 24952: stddev() const 24952: { return _M_param.stddev(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return std::numeric_limits::lowest(); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: friend bool 24952: operator==(const std::normal_distribution<_RealType1>& __d1, 24952: const std::normal_distribution<_RealType1>& __d2); 24952: # 2186 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::normal_distribution<_RealType1>& __x); 24952: # 2201 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::normal_distribution<_RealType1>& __x); 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: result_type _M_saved = 0; 24952: bool _M_saved_available = false; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::normal_distribution<_RealType>& __d1, 24952: const std::normal_distribution<_RealType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 2242 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class lognormal_distribution 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "result_type must be a floating point type"); 24952: 24952: public: 24952: 24952: typedef _RealType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef lognormal_distribution<_RealType> distribution_type; 24952: 24952: param_type() : param_type(0.0) { } 24952: 24952: explicit 24952: param_type(_RealType __m, _RealType __s = _RealType(1)) 24952: : _M_m(__m), _M_s(__s) 24952: { } 24952: 24952: _RealType 24952: m() const 24952: { return _M_m; } 24952: 24952: _RealType 24952: s() const 24952: { return _M_s; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_m == __p2._M_m && __p1._M_s == __p2._M_s; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: _RealType _M_m; 24952: _RealType _M_s; 24952: }; 24952: 24952: lognormal_distribution() : lognormal_distribution(0.0) { } 24952: 24952: explicit 24952: lognormal_distribution(_RealType __m, _RealType __s = _RealType(1)) 24952: : _M_param(__m, __s), _M_nd() 24952: { } 24952: 24952: explicit 24952: lognormal_distribution(const param_type& __p) 24952: : _M_param(__p), _M_nd() 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { _M_nd.reset(); } 24952: 24952: 24952: 24952: 24952: _RealType 24952: m() const 24952: { return _M_param.m(); } 24952: 24952: _RealType 24952: s() const 24952: { return _M_param.s(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return result_type(0); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { return std::exp(__p.s() * _M_nd(__urng) + __p.m()); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const lognormal_distribution& __d1, 24952: const lognormal_distribution& __d2) 24952: { return (__d1._M_param == __d2._M_param 24952: && __d1._M_nd == __d2._M_nd); } 24952: # 2403 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::lognormal_distribution<_RealType1>& __x); 24952: # 2418 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::lognormal_distribution<_RealType1>& __x); 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: 24952: std::normal_distribution _M_nd; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::lognormal_distribution<_RealType>& __d1, 24952: const std::lognormal_distribution<_RealType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 2467 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class gamma_distribution 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "result_type must be a floating point type"); 24952: 24952: public: 24952: 24952: typedef _RealType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef gamma_distribution<_RealType> distribution_type; 24952: friend class gamma_distribution<_RealType>; 24952: 24952: param_type() : param_type(1.0) { } 24952: 24952: explicit 24952: param_type(_RealType __alpha_val, _RealType __beta_val = _RealType(1)) 24952: : _M_alpha(__alpha_val), _M_beta(__beta_val) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_alpha > _RealType(0))) __builtin_unreachable(); } while (false); 24952: _M_initialize(); 24952: } 24952: 24952: _RealType 24952: alpha() const 24952: { return _M_alpha; } 24952: 24952: _RealType 24952: beta() const 24952: { return _M_beta; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return (__p1._M_alpha == __p2._M_alpha 24952: && __p1._M_beta == __p2._M_beta); } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: void 24952: _M_initialize(); 24952: 24952: _RealType _M_alpha; 24952: _RealType _M_beta; 24952: 24952: _RealType _M_malpha, _M_a2; 24952: }; 24952: 24952: public: 24952: 24952: 24952: 24952: gamma_distribution() : gamma_distribution(1.0) { } 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: gamma_distribution(_RealType __alpha_val, 24952: _RealType __beta_val = _RealType(1)) 24952: : _M_param(__alpha_val, __beta_val), _M_nd() 24952: { } 24952: 24952: explicit 24952: gamma_distribution(const param_type& __p) 24952: : _M_param(__p), _M_nd() 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { _M_nd.reset(); } 24952: 24952: 24952: 24952: 24952: _RealType 24952: alpha() const 24952: { return _M_param.alpha(); } 24952: 24952: 24952: 24952: 24952: _RealType 24952: beta() const 24952: { return _M_param.beta(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return result_type(0); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const gamma_distribution& __d1, 24952: const gamma_distribution& __d2) 24952: { return (__d1._M_param == __d2._M_param 24952: && __d1._M_nd == __d2._M_nd); } 24952: # 2649 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::gamma_distribution<_RealType1>& __x); 24952: # 2663 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::gamma_distribution<_RealType1>& __x); 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: 24952: std::normal_distribution _M_nd; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::gamma_distribution<_RealType>& __d1, 24952: const std::gamma_distribution<_RealType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 2709 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class chi_squared_distribution 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "result_type must be a floating point type"); 24952: 24952: public: 24952: 24952: typedef _RealType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef chi_squared_distribution<_RealType> distribution_type; 24952: 24952: param_type() : param_type(1) { } 24952: 24952: explicit 24952: param_type(_RealType __n) 24952: : _M_n(__n) 24952: { } 24952: 24952: _RealType 24952: n() const 24952: { return _M_n; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_n == __p2._M_n; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: _RealType _M_n; 24952: }; 24952: 24952: chi_squared_distribution() : chi_squared_distribution(1) { } 24952: 24952: explicit 24952: chi_squared_distribution(_RealType __n) 24952: : _M_param(__n), _M_gd(__n / 2) 24952: { } 24952: 24952: explicit 24952: chi_squared_distribution(const param_type& __p) 24952: : _M_param(__p), _M_gd(__p.n() / 2) 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { _M_gd.reset(); } 24952: 24952: 24952: 24952: 24952: _RealType 24952: n() const 24952: { return _M_param.n(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { 24952: _M_param = __param; 24952: typedef typename std::gamma_distribution::param_type 24952: param_type; 24952: _M_gd.param(param_type{__param.n() / 2}); 24952: } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return result_type(0); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return 2 * _M_gd(__urng); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: typedef typename std::gamma_distribution::param_type 24952: param_type; 24952: return 2 * _M_gd(__urng, param_type(__p.n() / 2)); 24952: } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate_impl(__f, __t, __urng); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { typename std::gamma_distribution::param_type 24952: __p2(__p.n() / 2); 24952: this->__generate_impl(__f, __t, __urng, __p2); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate_impl(__f, __t, __urng); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { typename std::gamma_distribution::param_type 24952: __p2(__p.n() / 2); 24952: this->__generate_impl(__f, __t, __urng, __p2); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const chi_squared_distribution& __d1, 24952: const chi_squared_distribution& __d2) 24952: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 24952: # 2879 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::chi_squared_distribution<_RealType1>& __x); 24952: # 2894 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::chi_squared_distribution<_RealType1>& __x); 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng); 24952: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const typename 24952: std::gamma_distribution::param_type& __p); 24952: 24952: param_type _M_param; 24952: 24952: std::gamma_distribution _M_gd; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::chi_squared_distribution<_RealType>& __d1, 24952: const std::chi_squared_distribution<_RealType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 2939 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class cauchy_distribution 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "result_type must be a floating point type"); 24952: 24952: public: 24952: 24952: typedef _RealType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef cauchy_distribution<_RealType> distribution_type; 24952: 24952: param_type() : param_type(0) { } 24952: 24952: explicit 24952: param_type(_RealType __a, _RealType __b = _RealType(1)) 24952: : _M_a(__a), _M_b(__b) 24952: { } 24952: 24952: _RealType 24952: a() const 24952: { return _M_a; } 24952: 24952: _RealType 24952: b() const 24952: { return _M_b; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: _RealType _M_a; 24952: _RealType _M_b; 24952: }; 24952: 24952: cauchy_distribution() : cauchy_distribution(0.0) { } 24952: 24952: explicit 24952: cauchy_distribution(_RealType __a, _RealType __b = 1.0) 24952: : _M_param(__a, __b) 24952: { } 24952: 24952: explicit 24952: cauchy_distribution(const param_type& __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { } 24952: 24952: 24952: 24952: 24952: _RealType 24952: a() const 24952: { return _M_param.a(); } 24952: 24952: _RealType 24952: b() const 24952: { return _M_param.b(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return std::numeric_limits::lowest(); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const cauchy_distribution& __d1, 24952: const cauchy_distribution& __d2) 24952: { return __d1._M_param == __d2._M_param; } 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::cauchy_distribution<_RealType>& __d1, 24952: const std::cauchy_distribution<_RealType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 3120 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::cauchy_distribution<_RealType>& __x); 24952: # 3135 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::cauchy_distribution<_RealType>& __x); 24952: # 3154 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class fisher_f_distribution 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "result_type must be a floating point type"); 24952: 24952: public: 24952: 24952: typedef _RealType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef fisher_f_distribution<_RealType> distribution_type; 24952: 24952: param_type() : param_type(1) { } 24952: 24952: explicit 24952: param_type(_RealType __m, _RealType __n = _RealType(1)) 24952: : _M_m(__m), _M_n(__n) 24952: { } 24952: 24952: _RealType 24952: m() const 24952: { return _M_m; } 24952: 24952: _RealType 24952: n() const 24952: { return _M_n; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_m == __p2._M_m && __p1._M_n == __p2._M_n; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: _RealType _M_m; 24952: _RealType _M_n; 24952: }; 24952: 24952: fisher_f_distribution() : fisher_f_distribution(1.0) { } 24952: 24952: explicit 24952: fisher_f_distribution(_RealType __m, 24952: _RealType __n = _RealType(1)) 24952: : _M_param(__m, __n), _M_gd_x(__m / 2), _M_gd_y(__n / 2) 24952: { } 24952: 24952: explicit 24952: fisher_f_distribution(const param_type& __p) 24952: : _M_param(__p), _M_gd_x(__p.m() / 2), _M_gd_y(__p.n() / 2) 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { 24952: _M_gd_x.reset(); 24952: _M_gd_y.reset(); 24952: } 24952: 24952: 24952: 24952: 24952: _RealType 24952: m() const 24952: { return _M_param.m(); } 24952: 24952: _RealType 24952: n() const 24952: { return _M_param.n(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return result_type(0); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return (_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m()); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: typedef typename std::gamma_distribution::param_type 24952: param_type; 24952: return ((_M_gd_x(__urng, param_type(__p.m() / 2)) * n()) 24952: / (_M_gd_y(__urng, param_type(__p.n() / 2)) * m())); 24952: } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate_impl(__f, __t, __urng); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate_impl(__f, __t, __urng); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const fisher_f_distribution& __d1, 24952: const fisher_f_distribution& __d2) 24952: { return (__d1._M_param == __d2._M_param 24952: && __d1._M_gd_x == __d2._M_gd_x 24952: && __d1._M_gd_y == __d2._M_gd_y); } 24952: # 3331 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::fisher_f_distribution<_RealType1>& __x); 24952: # 3346 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::fisher_f_distribution<_RealType1>& __x); 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng); 24952: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: 24952: std::gamma_distribution _M_gd_x, _M_gd_y; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::fisher_f_distribution<_RealType>& __d1, 24952: const std::fisher_f_distribution<_RealType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 3393 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class student_t_distribution 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "result_type must be a floating point type"); 24952: 24952: public: 24952: 24952: typedef _RealType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef student_t_distribution<_RealType> distribution_type; 24952: 24952: param_type() : param_type(1) { } 24952: 24952: explicit 24952: param_type(_RealType __n) 24952: : _M_n(__n) 24952: { } 24952: 24952: _RealType 24952: n() const 24952: { return _M_n; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_n == __p2._M_n; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: _RealType _M_n; 24952: }; 24952: 24952: student_t_distribution() : student_t_distribution(1.0) { } 24952: 24952: explicit 24952: student_t_distribution(_RealType __n) 24952: : _M_param(__n), _M_nd(), _M_gd(__n / 2, 2) 24952: { } 24952: 24952: explicit 24952: student_t_distribution(const param_type& __p) 24952: : _M_param(__p), _M_nd(), _M_gd(__p.n() / 2, 2) 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { 24952: _M_nd.reset(); 24952: _M_gd.reset(); 24952: } 24952: 24952: 24952: 24952: 24952: _RealType 24952: n() const 24952: { return _M_param.n(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return std::numeric_limits::lowest(); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: typedef typename std::gamma_distribution::param_type 24952: param_type; 24952: 24952: const result_type __g = _M_gd(__urng, param_type(__p.n() / 2, 2)); 24952: return _M_nd(__urng) * std::sqrt(__p.n() / __g); 24952: } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate_impl(__f, __t, __urng); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate_impl(__f, __t, __urng); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const student_t_distribution& __d1, 24952: const student_t_distribution& __d2) 24952: { return (__d1._M_param == __d2._M_param 24952: && __d1._M_nd == __d2._M_nd && __d1._M_gd == __d2._M_gd); } 24952: # 3560 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::student_t_distribution<_RealType1>& __x); 24952: # 3575 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::student_t_distribution<_RealType1>& __x); 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng); 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: 24952: std::normal_distribution _M_nd; 24952: std::gamma_distribution _M_gd; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::student_t_distribution<_RealType>& __d1, 24952: const std::student_t_distribution<_RealType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 3627 "/usr/include/c++/13/bits/random.h" 3 24952: class bernoulli_distribution 24952: { 24952: public: 24952: 24952: typedef bool result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef bernoulli_distribution distribution_type; 24952: 24952: param_type() : param_type(0.5) { } 24952: 24952: explicit 24952: param_type(double __p) 24952: : _M_p(__p) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool((_M_p >= 0.0) && (_M_p <= 1.0))) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: double 24952: p() const 24952: { return _M_p; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_p == __p2._M_p; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: double _M_p; 24952: }; 24952: 24952: public: 24952: 24952: 24952: 24952: bernoulli_distribution() : bernoulli_distribution(0.5) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: bernoulli_distribution(double __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: explicit 24952: bernoulli_distribution(const param_type& __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: reset() { } 24952: 24952: 24952: 24952: 24952: double 24952: p() const 24952: { return _M_param.p(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return std::numeric_limits::min(); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 24952: __aurng(__urng); 24952: if ((__aurng() - __aurng.min()) 24952: < __p.p() * (__aurng.max() - __aurng.min())) 24952: return true; 24952: return false; 24952: } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const bernoulli_distribution& __d1, 24952: const bernoulli_distribution& __d2) 24952: { return __d1._M_param == __d2._M_param; } 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline bool 24952: operator!=(const std::bernoulli_distribution& __d1, 24952: const std::bernoulli_distribution& __d2) 24952: { return !(__d1 == __d2); } 24952: # 3814 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::bernoulli_distribution& __x); 24952: # 3828 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: inline std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::bernoulli_distribution& __x) 24952: { 24952: double __p; 24952: if (__is >> __p) 24952: __x.param(bernoulli_distribution::param_type(__p)); 24952: return __is; 24952: } 24952: # 3850 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class binomial_distribution 24952: { 24952: static_assert(std::is_integral<_IntType>::value, 24952: "result_type must be an integral type"); 24952: 24952: public: 24952: 24952: typedef _IntType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef binomial_distribution<_IntType> distribution_type; 24952: friend class binomial_distribution<_IntType>; 24952: 24952: param_type() : param_type(1) { } 24952: 24952: explicit 24952: param_type(_IntType __t, double __p = 0.5) 24952: : _M_t(__t), _M_p(__p) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool((_M_t >= _IntType(0)) && (_M_p >= 0.0) && (_M_p <= 1.0))) __builtin_unreachable(); } while (false) 24952: 24952: ; 24952: _M_initialize(); 24952: } 24952: 24952: _IntType 24952: t() const 24952: { return _M_t; } 24952: 24952: double 24952: p() const 24952: { return _M_p; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_t == __p2._M_t && __p1._M_p == __p2._M_p; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: void 24952: _M_initialize(); 24952: 24952: _IntType _M_t; 24952: double _M_p; 24952: 24952: double _M_q; 24952: 24952: double _M_d1, _M_d2, _M_s1, _M_s2, _M_c, 24952: _M_a1, _M_a123, _M_s, _M_lf, _M_lp1p; 24952: 24952: bool _M_easy; 24952: }; 24952: 24952: 24952: 24952: binomial_distribution() : binomial_distribution(1) { } 24952: 24952: explicit 24952: binomial_distribution(_IntType __t, double __p = 0.5) 24952: : _M_param(__t, __p), _M_nd() 24952: { } 24952: 24952: explicit 24952: binomial_distribution(const param_type& __p) 24952: : _M_param(__p), _M_nd() 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { _M_nd.reset(); } 24952: 24952: 24952: 24952: 24952: _IntType 24952: t() const 24952: { return _M_param.t(); } 24952: 24952: 24952: 24952: 24952: double 24952: p() const 24952: { return _M_param.p(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return 0; } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return _M_param.t(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const binomial_distribution& __d1, 24952: const binomial_distribution& __d2) 24952: 24952: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 24952: # 4034 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::binomial_distribution<_IntType1>& __x); 24952: # 4050 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::binomial_distribution<_IntType1>& __x); 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: result_type 24952: _M_waiting(_UniformRandomNumberGenerator& __urng, 24952: _IntType __t, double __q); 24952: 24952: param_type _M_param; 24952: 24952: 24952: std::normal_distribution _M_nd; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::binomial_distribution<_IntType>& __d1, 24952: const std::binomial_distribution<_IntType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 4096 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class geometric_distribution 24952: { 24952: static_assert(std::is_integral<_IntType>::value, 24952: "result_type must be an integral type"); 24952: 24952: public: 24952: 24952: typedef _IntType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef geometric_distribution<_IntType> distribution_type; 24952: friend class geometric_distribution<_IntType>; 24952: 24952: param_type() : param_type(0.5) { } 24952: 24952: explicit 24952: param_type(double __p) 24952: : _M_p(__p) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool((_M_p > 0.0) && (_M_p < 1.0))) __builtin_unreachable(); } while (false); 24952: _M_initialize(); 24952: } 24952: 24952: double 24952: p() const 24952: { return _M_p; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_p == __p2._M_p; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: void 24952: _M_initialize() 24952: { _M_log_1_p = std::log(1.0 - _M_p); } 24952: 24952: double _M_p; 24952: 24952: double _M_log_1_p; 24952: }; 24952: 24952: 24952: 24952: geometric_distribution() : geometric_distribution(0.5) { } 24952: 24952: explicit 24952: geometric_distribution(double __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: explicit 24952: geometric_distribution(const param_type& __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: reset() { } 24952: 24952: 24952: 24952: 24952: double 24952: p() const 24952: { return _M_param.p(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return 0; } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const geometric_distribution& __d1, 24952: const geometric_distribution& __d2) 24952: { return __d1._M_param == __d2._M_param; } 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::geometric_distribution<_IntType>& __d1, 24952: const std::geometric_distribution<_IntType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 4281 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::geometric_distribution<_IntType>& __x); 24952: # 4296 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::geometric_distribution<_IntType>& __x); 24952: # 4313 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class negative_binomial_distribution 24952: { 24952: static_assert(std::is_integral<_IntType>::value, 24952: "result_type must be an integral type"); 24952: 24952: public: 24952: 24952: typedef _IntType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef negative_binomial_distribution<_IntType> distribution_type; 24952: 24952: param_type() : param_type(1) { } 24952: 24952: explicit 24952: param_type(_IntType __k, double __p = 0.5) 24952: : _M_k(__k), _M_p(__p) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool((_M_k > 0) && (_M_p > 0.0) && (_M_p <= 1.0))) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: _IntType 24952: k() const 24952: { return _M_k; } 24952: 24952: double 24952: p() const 24952: { return _M_p; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_k == __p2._M_k && __p1._M_p == __p2._M_p; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: _IntType _M_k; 24952: double _M_p; 24952: }; 24952: 24952: negative_binomial_distribution() : negative_binomial_distribution(1) { } 24952: 24952: explicit 24952: negative_binomial_distribution(_IntType __k, double __p = 0.5) 24952: : _M_param(__k, __p), _M_gd(__k, (1.0 - __p) / __p) 24952: { } 24952: 24952: explicit 24952: negative_binomial_distribution(const param_type& __p) 24952: : _M_param(__p), _M_gd(__p.k(), (1.0 - __p.p()) / __p.p()) 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { _M_gd.reset(); } 24952: 24952: 24952: 24952: 24952: _IntType 24952: k() const 24952: { return _M_param.k(); } 24952: 24952: 24952: 24952: 24952: double 24952: p() const 24952: { return _M_param.p(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return result_type(0); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng); 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate_impl(__f, __t, __urng); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate_impl(__f, __t, __urng); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const negative_binomial_distribution& __d1, 24952: const negative_binomial_distribution& __d2) 24952: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 24952: # 4483 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::negative_binomial_distribution<_IntType1>& __x); 24952: # 4498 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::negative_binomial_distribution<_IntType1>& __x); 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng); 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: 24952: std::gamma_distribution _M_gd; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::negative_binomial_distribution<_IntType>& __d1, 24952: const std::negative_binomial_distribution<_IntType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 4550 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class poisson_distribution 24952: { 24952: static_assert(std::is_integral<_IntType>::value, 24952: "result_type must be an integral type"); 24952: 24952: public: 24952: 24952: typedef _IntType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef poisson_distribution<_IntType> distribution_type; 24952: friend class poisson_distribution<_IntType>; 24952: 24952: param_type() : param_type(1.0) { } 24952: 24952: explicit 24952: param_type(double __mean) 24952: : _M_mean(__mean) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_mean > 0.0)) __builtin_unreachable(); } while (false); 24952: _M_initialize(); 24952: } 24952: 24952: double 24952: mean() const 24952: { return _M_mean; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_mean == __p2._M_mean; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: 24952: void 24952: _M_initialize(); 24952: 24952: double _M_mean; 24952: 24952: double _M_lm_thr; 24952: 24952: double _M_lfm, _M_sm, _M_d, _M_scx, _M_1cx, _M_c2b, _M_cb; 24952: 24952: }; 24952: 24952: 24952: 24952: poisson_distribution() : poisson_distribution(1.0) { } 24952: 24952: explicit 24952: poisson_distribution(double __mean) 24952: : _M_param(__mean), _M_nd() 24952: { } 24952: 24952: explicit 24952: poisson_distribution(const param_type& __p) 24952: : _M_param(__p), _M_nd() 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { _M_nd.reset(); } 24952: 24952: 24952: 24952: 24952: double 24952: mean() const 24952: { return _M_param.mean(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return 0; } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const poisson_distribution& __d1, 24952: const poisson_distribution& __d2) 24952: 24952: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 24952: # 4719 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::poisson_distribution<_IntType1>& __x); 24952: # 4734 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::poisson_distribution<_IntType1>& __x); 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: 24952: 24952: std::normal_distribution _M_nd; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::poisson_distribution<_IntType>& __d1, 24952: const std::poisson_distribution<_IntType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 4782 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class exponential_distribution 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "result_type must be a floating point type"); 24952: 24952: public: 24952: 24952: typedef _RealType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef exponential_distribution<_RealType> distribution_type; 24952: 24952: param_type() : param_type(1.0) { } 24952: 24952: explicit 24952: param_type(_RealType __lambda) 24952: : _M_lambda(__lambda) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(_M_lambda > _RealType(0))) __builtin_unreachable(); } while (false); 24952: } 24952: 24952: _RealType 24952: lambda() const 24952: { return _M_lambda; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_lambda == __p2._M_lambda; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: _RealType _M_lambda; 24952: }; 24952: 24952: public: 24952: 24952: 24952: 24952: 24952: exponential_distribution() : exponential_distribution(1.0) { } 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: exponential_distribution(_RealType __lambda) 24952: : _M_param(__lambda) 24952: { } 24952: 24952: explicit 24952: exponential_distribution(const param_type& __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: reset() { } 24952: 24952: 24952: 24952: 24952: _RealType 24952: lambda() const 24952: { return _M_param.lambda(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return result_type(0); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: return -std::log(result_type(1) - __aurng()) / __p.lambda(); 24952: } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const exponential_distribution& __d1, 24952: const exponential_distribution& __d2) 24952: { return __d1._M_param == __d2._M_param; } 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::exponential_distribution<_RealType>& __d1, 24952: const std::exponential_distribution<_RealType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 4971 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::exponential_distribution<_RealType>& __x); 24952: # 4986 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::exponential_distribution<_RealType>& __x); 24952: # 5004 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class weibull_distribution 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "result_type must be a floating point type"); 24952: 24952: public: 24952: 24952: typedef _RealType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef weibull_distribution<_RealType> distribution_type; 24952: 24952: param_type() : param_type(1.0) { } 24952: 24952: explicit 24952: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 24952: : _M_a(__a), _M_b(__b) 24952: { } 24952: 24952: _RealType 24952: a() const 24952: { return _M_a; } 24952: 24952: _RealType 24952: b() const 24952: { return _M_b; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: _RealType _M_a; 24952: _RealType _M_b; 24952: }; 24952: 24952: weibull_distribution() : weibull_distribution(1.0) { } 24952: 24952: explicit 24952: weibull_distribution(_RealType __a, _RealType __b = _RealType(1)) 24952: : _M_param(__a, __b) 24952: { } 24952: 24952: explicit 24952: weibull_distribution(const param_type& __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { } 24952: 24952: 24952: 24952: 24952: _RealType 24952: a() const 24952: { return _M_param.a(); } 24952: 24952: 24952: 24952: 24952: _RealType 24952: b() const 24952: { return _M_param.b(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return result_type(0); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const weibull_distribution& __d1, 24952: const weibull_distribution& __d2) 24952: { return __d1._M_param == __d2._M_param; } 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::weibull_distribution<_RealType>& __d1, 24952: const std::weibull_distribution<_RealType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 5188 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::weibull_distribution<_RealType>& __x); 24952: # 5203 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::weibull_distribution<_RealType>& __x); 24952: # 5221 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class extreme_value_distribution 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "result_type must be a floating point type"); 24952: 24952: public: 24952: 24952: typedef _RealType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef extreme_value_distribution<_RealType> distribution_type; 24952: 24952: param_type() : param_type(0.0) { } 24952: 24952: explicit 24952: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 24952: : _M_a(__a), _M_b(__b) 24952: { } 24952: 24952: _RealType 24952: a() const 24952: { return _M_a; } 24952: 24952: _RealType 24952: b() const 24952: { return _M_b; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: _RealType _M_a; 24952: _RealType _M_b; 24952: }; 24952: 24952: extreme_value_distribution() : extreme_value_distribution(0.0) { } 24952: 24952: explicit 24952: extreme_value_distribution(_RealType __a, _RealType __b = _RealType(1)) 24952: : _M_param(__a, __b) 24952: { } 24952: 24952: explicit 24952: extreme_value_distribution(const param_type& __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { } 24952: 24952: 24952: 24952: 24952: _RealType 24952: a() const 24952: { return _M_param.a(); } 24952: 24952: 24952: 24952: 24952: _RealType 24952: b() const 24952: { return _M_param.b(); } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return std::numeric_limits::lowest(); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { return std::numeric_limits::max(); } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const extreme_value_distribution& __d1, 24952: const extreme_value_distribution& __d2) 24952: { return __d1._M_param == __d2._M_param; } 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::extreme_value_distribution<_RealType>& __d1, 24952: const std::extreme_value_distribution<_RealType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 5405 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::extreme_value_distribution<_RealType>& __x); 24952: # 5420 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::extreme_value_distribution<_RealType>& __x); 24952: # 5443 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class discrete_distribution 24952: { 24952: static_assert(std::is_integral<_IntType>::value, 24952: "result_type must be an integral type"); 24952: 24952: public: 24952: 24952: typedef _IntType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef discrete_distribution<_IntType> distribution_type; 24952: friend class discrete_distribution<_IntType>; 24952: 24952: param_type() 24952: : _M_prob(), _M_cp() 24952: { } 24952: 24952: template 24952: param_type(_InputIterator __wbegin, 24952: _InputIterator __wend) 24952: : _M_prob(__wbegin, __wend), _M_cp() 24952: { _M_initialize(); } 24952: 24952: param_type(initializer_list __wil) 24952: : _M_prob(__wil.begin(), __wil.end()), _M_cp() 24952: { _M_initialize(); } 24952: 24952: template 24952: param_type(size_t __nw, double __xmin, double __xmax, 24952: _Func __fw); 24952: 24952: 24952: param_type(const param_type&) = default; 24952: param_type& operator=(const param_type&) = default; 24952: 24952: std::vector 24952: probabilities() const 24952: { return _M_prob.empty() ? std::vector(1, 1.0) : _M_prob; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_prob == __p2._M_prob; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: void 24952: _M_initialize(); 24952: 24952: std::vector _M_prob; 24952: std::vector _M_cp; 24952: }; 24952: 24952: discrete_distribution() 24952: : _M_param() 24952: { } 24952: 24952: template 24952: discrete_distribution(_InputIterator __wbegin, 24952: _InputIterator __wend) 24952: : _M_param(__wbegin, __wend) 24952: { } 24952: 24952: discrete_distribution(initializer_list __wl) 24952: : _M_param(__wl) 24952: { } 24952: 24952: template 24952: discrete_distribution(size_t __nw, double __xmin, double __xmax, 24952: _Func __fw) 24952: : _M_param(__nw, __xmin, __xmax, __fw) 24952: { } 24952: 24952: explicit 24952: discrete_distribution(const param_type& __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { } 24952: 24952: 24952: 24952: 24952: std::vector 24952: probabilities() const 24952: { 24952: return _M_param._M_prob.empty() 24952: ? std::vector(1, 1.0) : _M_param._M_prob; 24952: } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { return result_type(0); } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { 24952: return _M_param._M_prob.empty() 24952: ? result_type(0) : result_type(_M_param._M_prob.size() - 1); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const discrete_distribution& __d1, 24952: const discrete_distribution& __d2) 24952: { return __d1._M_param == __d2._M_param; } 24952: # 5631 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::discrete_distribution<_IntType1>& __x); 24952: # 5647 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::discrete_distribution<_IntType1>& __x); 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::discrete_distribution<_IntType>& __d1, 24952: const std::discrete_distribution<_IntType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 5691 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class piecewise_constant_distribution 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "result_type must be a floating point type"); 24952: 24952: public: 24952: 24952: typedef _RealType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef piecewise_constant_distribution<_RealType> distribution_type; 24952: friend class piecewise_constant_distribution<_RealType>; 24952: 24952: param_type() 24952: : _M_int(), _M_den(), _M_cp() 24952: { } 24952: 24952: template 24952: param_type(_InputIteratorB __bfirst, 24952: _InputIteratorB __bend, 24952: _InputIteratorW __wbegin); 24952: 24952: template 24952: param_type(initializer_list<_RealType> __bi, _Func __fw); 24952: 24952: template 24952: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 24952: _Func __fw); 24952: 24952: 24952: param_type(const param_type&) = default; 24952: param_type& operator=(const param_type&) = default; 24952: 24952: std::vector<_RealType> 24952: intervals() const 24952: { 24952: if (_M_int.empty()) 24952: { 24952: std::vector<_RealType> __tmp(2); 24952: __tmp[1] = _RealType(1); 24952: return __tmp; 24952: } 24952: else 24952: return _M_int; 24952: } 24952: 24952: std::vector 24952: densities() const 24952: { return _M_den.empty() ? std::vector(1, 1.0) : _M_den; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: void 24952: _M_initialize(); 24952: 24952: std::vector<_RealType> _M_int; 24952: std::vector _M_den; 24952: std::vector _M_cp; 24952: }; 24952: 24952: piecewise_constant_distribution() 24952: : _M_param() 24952: { } 24952: 24952: template 24952: piecewise_constant_distribution(_InputIteratorB __bfirst, 24952: _InputIteratorB __bend, 24952: _InputIteratorW __wbegin) 24952: : _M_param(__bfirst, __bend, __wbegin) 24952: { } 24952: 24952: template 24952: piecewise_constant_distribution(initializer_list<_RealType> __bl, 24952: _Func __fw) 24952: : _M_param(__bl, __fw) 24952: { } 24952: 24952: template 24952: piecewise_constant_distribution(size_t __nw, 24952: _RealType __xmin, _RealType __xmax, 24952: _Func __fw) 24952: : _M_param(__nw, __xmin, __xmax, __fw) 24952: { } 24952: 24952: explicit 24952: piecewise_constant_distribution(const param_type& __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { } 24952: 24952: 24952: 24952: 24952: std::vector<_RealType> 24952: intervals() const 24952: { 24952: if (_M_param._M_int.empty()) 24952: { 24952: std::vector<_RealType> __tmp(2); 24952: __tmp[1] = _RealType(1); 24952: return __tmp; 24952: } 24952: else 24952: return _M_param._M_int; 24952: } 24952: 24952: 24952: 24952: 24952: std::vector 24952: densities() const 24952: { 24952: return _M_param._M_den.empty() 24952: ? std::vector(1, 1.0) : _M_param._M_den; 24952: } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { 24952: return _M_param._M_int.empty() 24952: ? result_type(0) : _M_param._M_int.front(); 24952: } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { 24952: return _M_param._M_int.empty() 24952: ? result_type(1) : _M_param._M_int.back(); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const piecewise_constant_distribution& __d1, 24952: const piecewise_constant_distribution& __d2) 24952: { return __d1._M_param == __d2._M_param; } 24952: # 5915 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::piecewise_constant_distribution<_RealType1>& __x); 24952: # 5931 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::piecewise_constant_distribution<_RealType1>& __x); 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::piecewise_constant_distribution<_RealType>& __d1, 24952: const std::piecewise_constant_distribution<_RealType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 5971 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: class piecewise_linear_distribution 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "result_type must be a floating point type"); 24952: 24952: public: 24952: 24952: typedef _RealType result_type; 24952: 24952: 24952: struct param_type 24952: { 24952: typedef piecewise_linear_distribution<_RealType> distribution_type; 24952: friend class piecewise_linear_distribution<_RealType>; 24952: 24952: param_type() 24952: : _M_int(), _M_den(), _M_cp(), _M_m() 24952: { } 24952: 24952: template 24952: param_type(_InputIteratorB __bfirst, 24952: _InputIteratorB __bend, 24952: _InputIteratorW __wbegin); 24952: 24952: template 24952: param_type(initializer_list<_RealType> __bl, _Func __fw); 24952: 24952: template 24952: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 24952: _Func __fw); 24952: 24952: 24952: param_type(const param_type&) = default; 24952: param_type& operator=(const param_type&) = default; 24952: 24952: std::vector<_RealType> 24952: intervals() const 24952: { 24952: if (_M_int.empty()) 24952: { 24952: std::vector<_RealType> __tmp(2); 24952: __tmp[1] = _RealType(1); 24952: return __tmp; 24952: } 24952: else 24952: return _M_int; 24952: } 24952: 24952: std::vector 24952: densities() const 24952: { return _M_den.empty() ? std::vector(2, 1.0) : _M_den; } 24952: 24952: friend bool 24952: operator==(const param_type& __p1, const param_type& __p2) 24952: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 24952: 24952: 24952: friend bool 24952: operator!=(const param_type& __p1, const param_type& __p2) 24952: { return !(__p1 == __p2); } 24952: 24952: 24952: private: 24952: void 24952: _M_initialize(); 24952: 24952: std::vector<_RealType> _M_int; 24952: std::vector _M_den; 24952: std::vector _M_cp; 24952: std::vector _M_m; 24952: }; 24952: 24952: piecewise_linear_distribution() 24952: : _M_param() 24952: { } 24952: 24952: template 24952: piecewise_linear_distribution(_InputIteratorB __bfirst, 24952: _InputIteratorB __bend, 24952: _InputIteratorW __wbegin) 24952: : _M_param(__bfirst, __bend, __wbegin) 24952: { } 24952: 24952: template 24952: piecewise_linear_distribution(initializer_list<_RealType> __bl, 24952: _Func __fw) 24952: : _M_param(__bl, __fw) 24952: { } 24952: 24952: template 24952: piecewise_linear_distribution(size_t __nw, 24952: _RealType __xmin, _RealType __xmax, 24952: _Func __fw) 24952: : _M_param(__nw, __xmin, __xmax, __fw) 24952: { } 24952: 24952: explicit 24952: piecewise_linear_distribution(const param_type& __p) 24952: : _M_param(__p) 24952: { } 24952: 24952: 24952: 24952: 24952: void 24952: reset() 24952: { } 24952: 24952: 24952: 24952: 24952: std::vector<_RealType> 24952: intervals() const 24952: { 24952: if (_M_param._M_int.empty()) 24952: { 24952: std::vector<_RealType> __tmp(2); 24952: __tmp[1] = _RealType(1); 24952: return __tmp; 24952: } 24952: else 24952: return _M_param._M_int; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: std::vector 24952: densities() const 24952: { 24952: return _M_param._M_den.empty() 24952: ? std::vector(2, 1.0) : _M_param._M_den; 24952: } 24952: 24952: 24952: 24952: 24952: param_type 24952: param() const 24952: { return _M_param; } 24952: 24952: 24952: 24952: 24952: 24952: void 24952: param(const param_type& __param) 24952: { _M_param = __param; } 24952: 24952: 24952: 24952: 24952: result_type 24952: min() const 24952: { 24952: return _M_param._M_int.empty() 24952: ? result_type(0) : _M_param._M_int.front(); 24952: } 24952: 24952: 24952: 24952: 24952: result_type 24952: max() const 24952: { 24952: return _M_param._M_int.empty() 24952: ? result_type(1) : _M_param._M_int.back(); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { return this->operator()(__urng, _M_param); } 24952: 24952: template 24952: result_type 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { this->__generate(__f, __t, __urng, _M_param); } 24952: 24952: template 24952: void 24952: __generate(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: template 24952: void 24952: __generate(result_type* __f, result_type* __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { this->__generate_impl(__f, __t, __urng, __p); } 24952: 24952: 24952: 24952: 24952: 24952: friend bool 24952: operator==(const piecewise_linear_distribution& __d1, 24952: const piecewise_linear_distribution& __d2) 24952: { return __d1._M_param == __d2._M_param; } 24952: # 6197 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const std::piecewise_linear_distribution<_RealType1>& __x); 24952: # 6213 "/usr/include/c++/13/bits/random.h" 3 24952: template 24952: friend std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: std::piecewise_linear_distribution<_RealType1>& __x); 24952: 24952: private: 24952: template 24952: void 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p); 24952: 24952: param_type _M_param; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const std::piecewise_linear_distribution<_RealType>& __d1, 24952: const std::piecewise_linear_distribution<_RealType>& __d2) 24952: { return !(__d1 == __d2); } 24952: # 6258 "/usr/include/c++/13/bits/random.h" 3 24952: class seed_seq 24952: { 24952: public: 24952: 24952: typedef uint_least32_t result_type; 24952: 24952: 24952: seed_seq() noexcept 24952: : _M_v() 24952: { } 24952: 24952: template>> 24952: seed_seq(std::initializer_list<_IntType> __il); 24952: 24952: template 24952: seed_seq(_InputIterator __begin, _InputIterator __end); 24952: 24952: 24952: template 24952: void 24952: generate(_RandomAccessIterator __begin, _RandomAccessIterator __end); 24952: 24952: 24952: size_t size() const noexcept 24952: { return _M_v.size(); } 24952: 24952: template 24952: void 24952: param(_OutputIterator __dest) const 24952: { std::copy(_M_v.begin(), _M_v.end(), __dest); } 24952: 24952: 24952: seed_seq(const seed_seq&) = delete; 24952: seed_seq& operator=(const seed_seq&) = delete; 24952: 24952: private: 24952: std::vector _M_v; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 52 "/usr/include/c++/13/random" 2 3 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/opt_random.h" 1 3 24952: # 33 "/usr/include/arm-linux-gnueabihf/c++/13/bits/opt_random.h" 3 24952: 24952: # 34 "/usr/include/arm-linux-gnueabihf/c++/13/bits/opt_random.h" 3 24952: # 53 "/usr/include/c++/13/random" 2 3 24952: # 1 "/usr/include/c++/13/bits/random.tcc" 1 3 24952: # 33 "/usr/include/c++/13/bits/random.tcc" 3 24952: # 1 "/usr/include/c++/13/numeric" 1 3 24952: # 58 "/usr/include/c++/13/numeric" 3 24952: 24952: # 59 "/usr/include/c++/13/numeric" 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/stl_numeric.h" 1 3 24952: # 64 "/usr/include/c++/13/bits/stl_numeric.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 85 "/usr/include/c++/13/bits/stl_numeric.h" 3 24952: template 24952: 24952: void 24952: iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: for (; __first != __last; ++__first) 24952: { 24952: *__first = __value; 24952: ++__value; 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: # 131 "/usr/include/c++/13/bits/stl_numeric.h" 3 24952: template 24952: 24952: inline _Tp 24952: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init) 24952: { 24952: 24952: 24952: ; 24952: 24952: for (; __first != __last; ++__first) 24952: __init = __init + *__first; 24952: return __init; 24952: } 24952: # 158 "/usr/include/c++/13/bits/stl_numeric.h" 3 24952: template 24952: 24952: inline _Tp 24952: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init, 24952: _BinaryOperation __binary_op) 24952: { 24952: 24952: 24952: ; 24952: 24952: for (; __first != __last; ++__first) 24952: __init = __binary_op(__init, *__first); 24952: return __init; 24952: } 24952: # 187 "/usr/include/c++/13/bits/stl_numeric.h" 3 24952: template 24952: 24952: inline _Tp 24952: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _Tp __init) 24952: { 24952: 24952: 24952: 24952: ; 24952: 24952: for (; __first1 != __last1; ++__first1, (void)++__first2) 24952: __init = __init + (*__first1 * *__first2); 24952: return __init; 24952: } 24952: # 219 "/usr/include/c++/13/bits/stl_numeric.h" 3 24952: template 24952: 24952: inline _Tp 24952: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _Tp __init, 24952: _BinaryOperation1 __binary_op1, 24952: _BinaryOperation2 __binary_op2) 24952: { 24952: 24952: 24952: 24952: ; 24952: 24952: for (; __first1 != __last1; ++__first1, (void)++__first2) 24952: __init = __binary_op1(__init, 24952: __binary_op2(*__first1, *__first2)); 24952: return __init; 24952: } 24952: # 253 "/usr/include/c++/13/bits/stl_numeric.h" 3 24952: template 24952: 24952: _OutputIterator 24952: partial_sum(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result) 24952: { 24952: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: if (__first == __last) 24952: return __result; 24952: _ValueType __value = *__first; 24952: *__result = __value; 24952: while (++__first != __last) 24952: { 24952: __value = __value + *__first; 24952: *++__result = __value; 24952: } 24952: return ++__result; 24952: } 24952: # 294 "/usr/include/c++/13/bits/stl_numeric.h" 3 24952: template 24952: 24952: _OutputIterator 24952: partial_sum(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, _BinaryOperation __binary_op) 24952: { 24952: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: if (__first == __last) 24952: return __result; 24952: _ValueType __value = *__first; 24952: *__result = __value; 24952: while (++__first != __last) 24952: { 24952: __value = __binary_op(__value, *__first); 24952: *++__result = __value; 24952: } 24952: return ++__result; 24952: } 24952: # 334 "/usr/include/c++/13/bits/stl_numeric.h" 3 24952: template 24952: 24952: _OutputIterator 24952: adjacent_difference(_InputIterator __first, 24952: _InputIterator __last, _OutputIterator __result) 24952: { 24952: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: if (__first == __last) 24952: return __result; 24952: _ValueType __value = *__first; 24952: *__result = __value; 24952: while (++__first != __last) 24952: { 24952: _ValueType __tmp = *__first; 24952: *++__result = __tmp - __value; 24952: __value = std::move(__tmp); 24952: } 24952: return ++__result; 24952: } 24952: # 376 "/usr/include/c++/13/bits/stl_numeric.h" 3 24952: template 24952: 24952: _OutputIterator 24952: adjacent_difference(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, _BinaryOperation __binary_op) 24952: { 24952: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 24952: 24952: 24952: 24952: 24952: 24952: ; 24952: 24952: if (__first == __last) 24952: return __result; 24952: _ValueType __value = *__first; 24952: *__result = __value; 24952: while (++__first != __last) 24952: { 24952: _ValueType __tmp = *__first; 24952: *++__result = __binary_op(__tmp, __value); 24952: __value = std::move(__tmp); 24952: } 24952: return ++__result; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 63 "/usr/include/c++/13/numeric" 2 3 24952: # 90 "/usr/include/c++/13/numeric" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: namespace __detail 24952: { 24952: 24952: 24952: template 24952: constexpr _Res 24952: __abs_r(_Tp __val) 24952: { 24952: static_assert(sizeof(_Res) >= sizeof(_Tp), 24952: "result type must be at least as wide as the input type"); 24952: 24952: if (__val >= 0) 24952: return __val; 24952: 24952: 24952: 24952: 24952: return -static_cast<_Res>(__val); 24952: } 24952: 24952: template void __abs_r(bool) = delete; 24952: 24952: 24952: template 24952: constexpr _Tp 24952: __gcd(_Tp __m, _Tp __n) 24952: { 24952: static_assert(is_unsigned<_Tp>::value, "type must be unsigned"); 24952: 24952: if (__m == 0) 24952: return __n; 24952: if (__n == 0) 24952: return __m; 24952: 24952: const int __i = std::__countr_zero(__m); 24952: __m >>= __i; 24952: const int __j = std::__countr_zero(__n); 24952: __n >>= __j; 24952: const int __k = __i < __j ? __i : __j; 24952: 24952: while (true) 24952: { 24952: if (__m > __n) 24952: { 24952: _Tp __tmp = __m; 24952: __m = __n; 24952: __n = __tmp; 24952: } 24952: 24952: __n -= __m; 24952: 24952: if (__n == 0) 24952: return __m << __k; 24952: 24952: __n >>= std::__countr_zero(__n); 24952: } 24952: } 24952: } 24952: # 162 "/usr/include/c++/13/numeric" 3 24952: template 24952: constexpr common_type_t<_Mn, _Nn> 24952: gcd(_Mn __m, _Nn __n) noexcept 24952: { 24952: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 24952: "std::gcd arguments must be integers"); 24952: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 24952: "std::gcd arguments must not be bool"); 24952: using _Ct = common_type_t<_Mn, _Nn>; 24952: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 24952: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 24952: return __detail::__gcd>(__m2, __n2); 24952: } 24952: 24952: 24952: template 24952: constexpr common_type_t<_Mn, _Nn> 24952: lcm(_Mn __m, _Nn __n) noexcept 24952: { 24952: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 24952: "std::lcm arguments must be integers"); 24952: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 24952: "std::lcm arguments must not be bool"); 24952: using _Ct = common_type_t<_Mn, _Nn>; 24952: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 24952: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 24952: if (__m2 == 0 || __n2 == 0) 24952: return 0; 24952: _Ct __r = __m2 / __detail::__gcd>(__m2, __n2); 24952: 24952: if constexpr (is_signed_v<_Ct>) 24952: if (__is_constant_evaluated()) 24952: return __r * __n2; 24952: 24952: bool __overflow = __builtin_mul_overflow(__r, __n2, &__r); 24952: do { if (std::__is_constant_evaluated() && !bool(!__overflow)) __builtin_unreachable(); } while (false); 24952: return __r; 24952: } 24952: # 284 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: _Tp 24952: reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 24952: _BinaryOperation __binary_op) 24952: { 24952: using __ref = typename iterator_traits<_InputIterator>::reference; 24952: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, __ref>); 24952: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, _Tp&>); 24952: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, _Tp&>); 24952: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, __ref>); 24952: if constexpr (__is_random_access_iter<_InputIterator>::value) 24952: { 24952: while ((__last - __first) >= 4) 24952: { 24952: _Tp __v1 = __binary_op(__first[0], __first[1]); 24952: _Tp __v2 = __binary_op(__first[2], __first[3]); 24952: _Tp __v3 = __binary_op(__v1, __v2); 24952: __init = __binary_op(__init, __v3); 24952: __first += 4; 24952: } 24952: } 24952: for (; __first != __last; ++__first) 24952: __init = __binary_op(__init, *__first); 24952: return __init; 24952: } 24952: # 322 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: inline _Tp 24952: reduce(_InputIterator __first, _InputIterator __last, _Tp __init) 24952: { return std::reduce(__first, __last, std::move(__init), plus<>()); } 24952: # 339 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: inline typename iterator_traits<_InputIterator>::value_type 24952: reduce(_InputIterator __first, _InputIterator __last) 24952: { 24952: using value_type = typename iterator_traits<_InputIterator>::value_type; 24952: return std::reduce(__first, __last, value_type{}, plus<>()); 24952: } 24952: # 366 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: _Tp 24952: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _Tp __init, 24952: _BinaryOperation1 __binary_op1, 24952: _BinaryOperation2 __binary_op2) 24952: { 24952: if constexpr (__and_v<__is_random_access_iter<_InputIterator1>, 24952: __is_random_access_iter<_InputIterator2>>) 24952: { 24952: while ((__last1 - __first1) >= 4) 24952: { 24952: _Tp __v1 = __binary_op1(__binary_op2(__first1[0], __first2[0]), 24952: __binary_op2(__first1[1], __first2[1])); 24952: _Tp __v2 = __binary_op1(__binary_op2(__first1[2], __first2[2]), 24952: __binary_op2(__first1[3], __first2[3])); 24952: _Tp __v3 = __binary_op1(__v1, __v2); 24952: __init = __binary_op1(__init, __v3); 24952: __first1 += 4; 24952: __first2 += 4; 24952: } 24952: } 24952: for (; __first1 != __last1; ++__first1, (void) ++__first2) 24952: __init = __binary_op1(__init, __binary_op2(*__first1, *__first2)); 24952: return __init; 24952: } 24952: # 410 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: inline _Tp 24952: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 24952: _InputIterator2 __first2, _Tp __init) 24952: { 24952: return std::transform_reduce(__first1, __last1, __first2, 24952: std::move(__init), 24952: plus<>(), multiplies<>()); 24952: } 24952: # 435 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: _Tp 24952: transform_reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 24952: _BinaryOperation __binary_op, _UnaryOperation __unary_op) 24952: { 24952: if constexpr (__is_random_access_iter<_InputIterator>::value) 24952: { 24952: while ((__last - __first) >= 4) 24952: { 24952: _Tp __v1 = __binary_op(__unary_op(__first[0]), 24952: __unary_op(__first[1])); 24952: _Tp __v2 = __binary_op(__unary_op(__first[2]), 24952: __unary_op(__first[3])); 24952: _Tp __v3 = __binary_op(__v1, __v2); 24952: __init = __binary_op(__init, __v3); 24952: __first += 4; 24952: } 24952: } 24952: for (; __first != __last; ++__first) 24952: __init = __binary_op(__init, __unary_op(*__first)); 24952: return __init; 24952: } 24952: # 478 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: _OutputIterator 24952: exclusive_scan(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, _Tp __init, 24952: _BinaryOperation __binary_op) 24952: { 24952: while (__first != __last) 24952: { 24952: auto __v = __init; 24952: __init = __binary_op(__init, *__first); 24952: ++__first; 24952: *__result++ = std::move(__v); 24952: } 24952: return __result; 24952: } 24952: # 513 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: inline _OutputIterator 24952: exclusive_scan(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, _Tp __init) 24952: { 24952: return std::exclusive_scan(__first, __last, __result, std::move(__init), 24952: plus<>()); 24952: } 24952: # 541 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: _OutputIterator 24952: inclusive_scan(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, _BinaryOperation __binary_op, 24952: _Tp __init) 24952: { 24952: for (; __first != __last; ++__first) 24952: *__result++ = __init = __binary_op(__init, *__first); 24952: return __result; 24952: } 24952: # 570 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: _OutputIterator 24952: inclusive_scan(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, _BinaryOperation __binary_op) 24952: { 24952: if (__first != __last) 24952: { 24952: auto __init = *__first; 24952: *__result++ = __init; 24952: ++__first; 24952: if (__first != __last) 24952: __result = std::inclusive_scan(__first, __last, __result, 24952: __binary_op, std::move(__init)); 24952: } 24952: return __result; 24952: } 24952: # 604 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: inline _OutputIterator 24952: inclusive_scan(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result) 24952: { return std::inclusive_scan(__first, __last, __result, plus<>()); } 24952: # 631 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: _OutputIterator 24952: transform_exclusive_scan(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, _Tp __init, 24952: _BinaryOperation __binary_op, 24952: _UnaryOperation __unary_op) 24952: { 24952: while (__first != __last) 24952: { 24952: auto __v = __init; 24952: __init = __binary_op(__init, __unary_op(*__first)); 24952: ++__first; 24952: *__result++ = std::move(__v); 24952: } 24952: return __result; 24952: } 24952: # 670 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: _OutputIterator 24952: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, 24952: _BinaryOperation __binary_op, 24952: _UnaryOperation __unary_op, 24952: _Tp __init) 24952: { 24952: for (; __first != __last; ++__first) 24952: *__result++ = __init = __binary_op(__init, __unary_op(*__first)); 24952: return __result; 24952: } 24952: # 704 "/usr/include/c++/13/numeric" 3 24952: template 24952: 24952: _OutputIterator 24952: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, 24952: _BinaryOperation __binary_op, 24952: _UnaryOperation __unary_op) 24952: { 24952: if (__first != __last) 24952: { 24952: auto __init = __unary_op(*__first); 24952: *__result++ = __init; 24952: ++__first; 24952: if (__first != __last) 24952: __result = std::transform_inclusive_scan(__first, __last, __result, 24952: __binary_op, __unary_op, 24952: std::move(__init)); 24952: } 24952: return __result; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 739 "/usr/include/c++/13/numeric" 3 24952: # 1 "/usr/include/c++/13/pstl/glue_numeric_defs.h" 1 3 24952: # 15 "/usr/include/c++/13/pstl/glue_numeric_defs.h" 3 24952: namespace std 24952: { 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 24952: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 24952: _BinaryOperation __binary_op); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 24952: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 24952: typename iterator_traits<_ForwardIterator>::value_type> 24952: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 24952: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _Tp __init); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 24952: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 24952: _ForwardIterator2 __first2, _Tp __init, _BinaryOperation1 __binary_op1, 24952: _BinaryOperation2 __binary_op2); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 24952: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 24952: _BinaryOperation __binary_op, _UnaryOperation __unary_op); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __result, _Tp __init); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __result); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __result, _BinaryOperation __binary_op); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __result, _BinaryOperation __binary_op, _Tp __init); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: transform_exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op, 24952: _UnaryOperation __unary_op); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op, 24952: _Tp __init); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op); 24952: 24952: 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __d_first, _BinaryOperation __op); 24952: 24952: template 24952: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 24952: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 24952: _ForwardIterator2 __d_first); 24952: 24952: } 24952: # 740 "/usr/include/c++/13/numeric" 2 3 24952: # 34 "/usr/include/c++/13/bits/random.tcc" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: namespace __detail 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: _Tp 24952: _Mod<_Tp, __m, __a, __c, false, true>:: 24952: __calc(_Tp __x) 24952: { 24952: if (__a == 1) 24952: __x %= __m; 24952: else 24952: { 24952: static const _Tp __q = __m / __a; 24952: static const _Tp __r = __m % __a; 24952: 24952: _Tp __t1 = __a * (__x % __q); 24952: _Tp __t2 = __r * (__x / __q); 24952: if (__t1 >= __t2) 24952: __x = __t1 - __t2; 24952: else 24952: __x = __m - __t2 + __t1; 24952: } 24952: 24952: if (__c != 0) 24952: { 24952: const _Tp __d = __m - __x; 24952: if (__d > __c) 24952: __x += __c; 24952: else 24952: __x = __c - __d; 24952: } 24952: return __x; 24952: } 24952: 24952: template 24952: _OutputIterator 24952: __normalize(_InputIterator __first, _InputIterator __last, 24952: _OutputIterator __result, const _Tp& __factor) 24952: { 24952: for (; __first != __last; ++__first, ++__result) 24952: *__result = *__first / __factor; 24952: return __result; 24952: } 24952: 24952: } 24952: # 116 "/usr/include/c++/13/bits/random.tcc" 3 24952: template 24952: void 24952: linear_congruential_engine<_UIntType, __a, __c, __m>:: 24952: seed(result_type __s) 24952: { 24952: if ((__detail::__mod<_UIntType, __m>(__c) == 0) 24952: && (__detail::__mod<_UIntType, __m>(__s) == 0)) 24952: _M_x = 1; 24952: else 24952: _M_x = __detail::__mod<_UIntType, __m>(__s); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: template 24952: auto 24952: linear_congruential_engine<_UIntType, __a, __c, __m>:: 24952: seed(_Sseq& __q) 24952: -> _If_seed_seq<_Sseq> 24952: { 24952: const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits 24952: : std::__lg(__m); 24952: const _UIntType __k = (__k0 + 31) / 32; 24952: uint_least32_t __arr[__k + 3]; 24952: __q.generate(__arr + 0, __arr + __k + 3); 24952: _UIntType __factor = 1u; 24952: _UIntType __sum = 0u; 24952: for (size_t __j = 0; __j < __k; ++__j) 24952: { 24952: __sum += __arr[__j + 3] * __factor; 24952: __factor *= __detail::_Shift<_UIntType, 32>::__value; 24952: } 24952: seed(__sum); 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const linear_congruential_engine<_UIntType, 24952: __a, __c, __m>& __lcr) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 24952: __os.fill(__os.widen(' ')); 24952: 24952: __os << __lcr._M_x; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: linear_congruential_engine<_UIntType, __a, __c, __m>& __lcr) 24952: { 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec); 24952: 24952: __is >> __lcr._M_x; 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: # 320 "/usr/include/c++/13/bits/random.tcc" 3 24952: template 24952: void 24952: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 24952: __s, __b, __t, __c, __l, __f>:: 24952: seed(result_type __sd) 24952: { 24952: _M_x[0] = __detail::__mod<_UIntType, 24952: __detail::_Shift<_UIntType, __w>::__value>(__sd); 24952: 24952: for (size_t __i = 1; __i < state_size; ++__i) 24952: { 24952: _UIntType __x = _M_x[__i - 1]; 24952: __x ^= __x >> (__w - 2); 24952: __x *= __f; 24952: __x += __detail::__mod<_UIntType, __n>(__i); 24952: _M_x[__i] = __detail::__mod<_UIntType, 24952: __detail::_Shift<_UIntType, __w>::__value>(__x); 24952: } 24952: _M_p = state_size; 24952: } 24952: 24952: template 24952: template 24952: auto 24952: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 24952: __s, __b, __t, __c, __l, __f>:: 24952: seed(_Sseq& __q) 24952: -> _If_seed_seq<_Sseq> 24952: { 24952: const _UIntType __upper_mask = (~_UIntType()) << __r; 24952: const size_t __k = (__w + 31) / 32; 24952: uint_least32_t __arr[__n * __k]; 24952: __q.generate(__arr + 0, __arr + __n * __k); 24952: 24952: bool __zero = true; 24952: for (size_t __i = 0; __i < state_size; ++__i) 24952: { 24952: _UIntType __factor = 1u; 24952: _UIntType __sum = 0u; 24952: for (size_t __j = 0; __j < __k; ++__j) 24952: { 24952: __sum += __arr[__k * __i + __j] * __factor; 24952: __factor *= __detail::_Shift<_UIntType, 32>::__value; 24952: } 24952: _M_x[__i] = __detail::__mod<_UIntType, 24952: __detail::_Shift<_UIntType, __w>::__value>(__sum); 24952: 24952: if (__zero) 24952: { 24952: if (__i == 0) 24952: { 24952: if ((_M_x[0] & __upper_mask) != 0u) 24952: __zero = false; 24952: } 24952: else if (_M_x[__i] != 0u) 24952: __zero = false; 24952: } 24952: } 24952: if (__zero) 24952: _M_x[0] = __detail::_Shift<_UIntType, __w - 1>::__value; 24952: _M_p = state_size; 24952: } 24952: 24952: template 24952: void 24952: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 24952: __s, __b, __t, __c, __l, __f>:: 24952: _M_gen_rand(void) 24952: { 24952: const _UIntType __upper_mask = (~_UIntType()) << __r; 24952: const _UIntType __lower_mask = ~__upper_mask; 24952: 24952: for (size_t __k = 0; __k < (__n - __m); ++__k) 24952: { 24952: _UIntType __y = ((_M_x[__k] & __upper_mask) 24952: | (_M_x[__k + 1] & __lower_mask)); 24952: _M_x[__k] = (_M_x[__k + __m] ^ (__y >> 1) 24952: ^ ((__y & 0x01) ? __a : 0)); 24952: } 24952: 24952: for (size_t __k = (__n - __m); __k < (__n - 1); ++__k) 24952: { 24952: _UIntType __y = ((_M_x[__k] & __upper_mask) 24952: | (_M_x[__k + 1] & __lower_mask)); 24952: _M_x[__k] = (_M_x[__k + (__m - __n)] ^ (__y >> 1) 24952: ^ ((__y & 0x01) ? __a : 0)); 24952: } 24952: 24952: _UIntType __y = ((_M_x[__n - 1] & __upper_mask) 24952: | (_M_x[0] & __lower_mask)); 24952: _M_x[__n - 1] = (_M_x[__m - 1] ^ (__y >> 1) 24952: ^ ((__y & 0x01) ? __a : 0)); 24952: _M_p = 0; 24952: } 24952: 24952: template 24952: void 24952: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 24952: __s, __b, __t, __c, __l, __f>:: 24952: discard(unsigned long long __z) 24952: { 24952: while (__z > state_size - _M_p) 24952: { 24952: __z -= state_size - _M_p; 24952: _M_gen_rand(); 24952: } 24952: _M_p += __z; 24952: } 24952: 24952: template 24952: typename 24952: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 24952: __s, __b, __t, __c, __l, __f>::result_type 24952: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 24952: __s, __b, __t, __c, __l, __f>:: 24952: operator()() 24952: { 24952: 24952: if (_M_p >= state_size) 24952: _M_gen_rand(); 24952: 24952: 24952: result_type __z = _M_x[_M_p++]; 24952: __z ^= (__z >> __u) & __d; 24952: __z ^= (__z << __s) & __b; 24952: __z ^= (__z << __t) & __c; 24952: __z ^= (__z >> __l); 24952: 24952: return __z; 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const mersenne_twister_engine<_UIntType, __w, __n, __m, 24952: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 24952: __os.fill(__space); 24952: 24952: for (size_t __i = 0; __i < __n; ++__i) 24952: __os << __x._M_x[__i] << __space; 24952: __os << __x._M_p; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: mersenne_twister_engine<_UIntType, __w, __n, __m, 24952: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 24952: { 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: for (size_t __i = 0; __i < __n; ++__i) 24952: __is >> __x._M_x[__i]; 24952: __is >> __x._M_p; 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: # 539 "/usr/include/c++/13/bits/random.tcc" 3 24952: template 24952: void 24952: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 24952: seed(result_type __value) 24952: { 24952: std::linear_congruential_engine 24952: __lcg(__value == 0u ? default_seed : __value); 24952: 24952: const size_t __n = (__w + 31) / 32; 24952: 24952: for (size_t __i = 0; __i < long_lag; ++__i) 24952: { 24952: _UIntType __sum = 0u; 24952: _UIntType __factor = 1u; 24952: for (size_t __j = 0; __j < __n; ++__j) 24952: { 24952: __sum += __detail::__mod::__value> 24952: (__lcg()) * __factor; 24952: __factor *= __detail::_Shift<_UIntType, 32>::__value; 24952: } 24952: _M_x[__i] = __detail::__mod<_UIntType, 24952: __detail::_Shift<_UIntType, __w>::__value>(__sum); 24952: } 24952: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 24952: _M_p = 0; 24952: } 24952: 24952: template 24952: template 24952: auto 24952: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 24952: seed(_Sseq& __q) 24952: -> _If_seed_seq<_Sseq> 24952: { 24952: const size_t __k = (__w + 31) / 32; 24952: uint_least32_t __arr[__r * __k]; 24952: __q.generate(__arr + 0, __arr + __r * __k); 24952: 24952: for (size_t __i = 0; __i < long_lag; ++__i) 24952: { 24952: _UIntType __sum = 0u; 24952: _UIntType __factor = 1u; 24952: for (size_t __j = 0; __j < __k; ++__j) 24952: { 24952: __sum += __arr[__k * __i + __j] * __factor; 24952: __factor *= __detail::_Shift<_UIntType, 32>::__value; 24952: } 24952: _M_x[__i] = __detail::__mod<_UIntType, 24952: __detail::_Shift<_UIntType, __w>::__value>(__sum); 24952: } 24952: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 24952: _M_p = 0; 24952: } 24952: 24952: template 24952: typename subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 24952: result_type 24952: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 24952: operator()() 24952: { 24952: 24952: long __ps = _M_p - short_lag; 24952: if (__ps < 0) 24952: __ps += long_lag; 24952: 24952: 24952: 24952: 24952: _UIntType __xi; 24952: if (_M_x[__ps] >= _M_x[_M_p] + _M_carry) 24952: { 24952: __xi = _M_x[__ps] - _M_x[_M_p] - _M_carry; 24952: _M_carry = 0; 24952: } 24952: else 24952: { 24952: __xi = (__detail::_Shift<_UIntType, __w>::__value 24952: - _M_x[_M_p] - _M_carry + _M_x[__ps]); 24952: _M_carry = 1; 24952: } 24952: _M_x[_M_p] = __xi; 24952: 24952: 24952: if (++_M_p >= long_lag) 24952: _M_p = 0; 24952: 24952: return __xi; 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const subtract_with_carry_engine<_UIntType, 24952: __w, __s, __r>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 24952: __os.fill(__space); 24952: 24952: for (size_t __i = 0; __i < __r; ++__i) 24952: __os << __x._M_x[__i] << __space; 24952: __os << __x._M_carry << __space << __x._M_p; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: subtract_with_carry_engine<_UIntType, __w, __s, __r>& __x) 24952: { 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: for (size_t __i = 0; __i < __r; ++__i) 24952: __is >> __x._M_x[__i]; 24952: __is >> __x._M_carry; 24952: __is >> __x._M_p; 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: # 683 "/usr/include/c++/13/bits/random.tcc" 3 24952: template 24952: typename discard_block_engine<_RandomNumberEngine, 24952: __p, __r>::result_type 24952: discard_block_engine<_RandomNumberEngine, __p, __r>:: 24952: operator()() 24952: { 24952: if (_M_n >= used_block) 24952: { 24952: _M_b.discard(block_size - _M_n); 24952: _M_n = 0; 24952: } 24952: ++_M_n; 24952: return _M_b(); 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const discard_block_engine<_RandomNumberEngine, 24952: __p, __r>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 24952: __os.fill(__space); 24952: 24952: __os << __x.base() << __space << __x._M_n; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: discard_block_engine<_RandomNumberEngine, __p, __r>& __x) 24952: { 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: __is >> __x._M_b >> __x._M_n; 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: typename independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 24952: result_type 24952: independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 24952: operator()() 24952: { 24952: typedef typename _RandomNumberEngine::result_type _Eresult_type; 24952: const _Eresult_type __r 24952: = (_M_b.max() - _M_b.min() < std::numeric_limits<_Eresult_type>::max() 24952: ? _M_b.max() - _M_b.min() + 1 : 0); 24952: const unsigned __edig = std::numeric_limits<_Eresult_type>::digits; 24952: const unsigned __m = __r ? std::__lg(__r) : __edig; 24952: 24952: typedef typename std::common_type<_Eresult_type, result_type>::type 24952: __ctype; 24952: const unsigned __cdig = std::numeric_limits<__ctype>::digits; 24952: 24952: unsigned __n, __n0; 24952: __ctype __s0, __s1, __y0, __y1; 24952: 24952: for (size_t __i = 0; __i < 2; ++__i) 24952: { 24952: __n = (__w + __m - 1) / __m + __i; 24952: __n0 = __n - __w % __n; 24952: const unsigned __w0 = __w / __n; 24952: 24952: __s0 = 0; 24952: __s1 = 0; 24952: if (__w0 < __cdig) 24952: { 24952: __s0 = __ctype(1) << __w0; 24952: __s1 = __s0 << 1; 24952: } 24952: 24952: __y0 = 0; 24952: __y1 = 0; 24952: if (__r) 24952: { 24952: __y0 = __s0 * (__r / __s0); 24952: if (__s1) 24952: __y1 = __s1 * (__r / __s1); 24952: 24952: if (__r - __y0 <= __y0 / __n) 24952: break; 24952: } 24952: else 24952: break; 24952: } 24952: 24952: result_type __sum = 0; 24952: for (size_t __k = 0; __k < __n0; ++__k) 24952: { 24952: __ctype __u; 24952: do 24952: __u = _M_b() - _M_b.min(); 24952: while (__y0 && __u >= __y0); 24952: __sum = __s0 * __sum + (__s0 ? __u % __s0 : __u); 24952: } 24952: for (size_t __k = __n0; __k < __n; ++__k) 24952: { 24952: __ctype __u; 24952: do 24952: __u = _M_b() - _M_b.min(); 24952: while (__y1 && __u >= __y1); 24952: __sum = __s1 * __sum + (__s1 ? __u % __s1 : __u); 24952: } 24952: return __sum; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace __detail 24952: { 24952: 24952: template 24952: constexpr bool 24952: __representable_as_double(_Tp __x) noexcept 24952: { 24952: static_assert(numeric_limits<_Tp>::is_integer, ""); 24952: static_assert(!numeric_limits<_Tp>::is_signed, ""); 24952: 24952: return (__x <= (1ull << 53)) 24952: 24952: || (!(__x & 1) && __detail::__representable_as_double(__x >> 1)); 24952: } 24952: 24952: 24952: template 24952: constexpr bool 24952: __p1_representable_as_double(_Tp __x) noexcept 24952: { 24952: static_assert(numeric_limits<_Tp>::is_integer, ""); 24952: static_assert(!numeric_limits<_Tp>::is_signed, ""); 24952: return numeric_limits<_Tp>::digits < 53 24952: || (bool(__x + 1u) 24952: && __detail::__representable_as_double(__x + 1u)); 24952: } 24952: } 24952: 24952: template 24952: typename shuffle_order_engine<_RandomNumberEngine, __k>::result_type 24952: shuffle_order_engine<_RandomNumberEngine, __k>:: 24952: operator()() 24952: { 24952: constexpr result_type __range = max() - min(); 24952: size_t __j = __k; 24952: const result_type __y = _M_y - min(); 24952: 24952: if constexpr (__detail::__p1_representable_as_double(__range)) 24952: __j *= __y / (__range + 1.0); 24952: else 24952: __j *= __y / (__range + 1.0L); 24952: _M_y = _M_v[__j]; 24952: _M_v[__j] = _M_b(); 24952: 24952: return _M_y; 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const shuffle_order_engine<_RandomNumberEngine, __k>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 24952: __os.fill(__space); 24952: 24952: __os << __x.base(); 24952: for (size_t __i = 0; __i < __k; ++__i) 24952: __os << __space << __x._M_v[__i]; 24952: __os << __space << __x._M_y; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: shuffle_order_engine<_RandomNumberEngine, __k>& __x) 24952: { 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: __is >> __x._M_b; 24952: for (size_t __i = 0; __i < __k; ++__i) 24952: __is >> __x._M_v[__i]; 24952: __is >> __x._M_y; 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const uniform_int_distribution<_IntType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: 24952: __os << __x.a() << __space << __x.b(); 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: uniform_int_distribution<_IntType>& __x) 24952: { 24952: using param_type 24952: = typename uniform_int_distribution<_IntType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: _IntType __a, __b; 24952: if (__is >> __a >> __b) 24952: __x.param(param_type(__a, __b)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: template 24952: void 24952: uniform_real_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: auto __range = __p.b() - __p.a(); 24952: while (__f != __t) 24952: *__f++ = __aurng() * __range + __p.a(); 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const uniform_real_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits<_RealType>::max_digits10); 24952: 24952: __os << __x.a() << __space << __x.b(); 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: uniform_real_distribution<_RealType>& __x) 24952: { 24952: using param_type 24952: = typename uniform_real_distribution<_RealType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::skipws); 24952: 24952: _RealType __a, __b; 24952: if (__is >> __a >> __b) 24952: __x.param(param_type(__a, __b)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: void 24952: std::bernoulli_distribution:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 24952: __aurng(__urng); 24952: auto __limit = __p.p() * (__aurng.max() - __aurng.min()); 24952: 24952: while (__f != __t) 24952: *__f++ = (__aurng() - __aurng.min()) < __limit; 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const bernoulli_distribution& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__os.widen(' ')); 24952: __os.precision(std::numeric_limits::max_digits10); 24952: 24952: __os << __x.p(); 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: 24952: template 24952: template 24952: typename geometric_distribution<_IntType>::result_type 24952: geometric_distribution<_IntType>:: 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: 24952: 24952: const double __naf = 24952: (1 - std::numeric_limits::epsilon()) / 2; 24952: 24952: const double __thr = 24952: std::numeric_limits<_IntType>::max() + __naf; 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 24952: __aurng(__urng); 24952: 24952: double __cand; 24952: do 24952: __cand = std::floor(std::log(1.0 - __aurng()) / __param._M_log_1_p); 24952: while (__cand >= __thr); 24952: 24952: return result_type(__cand + __naf); 24952: } 24952: 24952: template 24952: template 24952: void 24952: geometric_distribution<_IntType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: 24952: 24952: 24952: const double __naf = 24952: (1 - std::numeric_limits::epsilon()) / 2; 24952: 24952: const double __thr = 24952: std::numeric_limits<_IntType>::max() + __naf; 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 24952: __aurng(__urng); 24952: 24952: while (__f != __t) 24952: { 24952: double __cand; 24952: do 24952: __cand = std::floor(std::log(1.0 - __aurng()) 24952: / __param._M_log_1_p); 24952: while (__cand >= __thr); 24952: 24952: *__f++ = __cand + __naf; 24952: } 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const geometric_distribution<_IntType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__os.widen(' ')); 24952: __os.precision(std::numeric_limits::max_digits10); 24952: 24952: __os << __x.p(); 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: geometric_distribution<_IntType>& __x) 24952: { 24952: using param_type = typename geometric_distribution<_IntType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::skipws); 24952: 24952: double __p; 24952: if (__is >> __p) 24952: __x.param(param_type(__p)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: template 24952: typename negative_binomial_distribution<_IntType>::result_type 24952: negative_binomial_distribution<_IntType>:: 24952: operator()(_UniformRandomNumberGenerator& __urng) 24952: { 24952: const double __y = _M_gd(__urng); 24952: 24952: 24952: std::poisson_distribution __poisson(__y); 24952: return __poisson(__urng); 24952: } 24952: 24952: template 24952: template 24952: typename negative_binomial_distribution<_IntType>::result_type 24952: negative_binomial_distribution<_IntType>:: 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: typedef typename std::gamma_distribution::param_type 24952: param_type; 24952: 24952: const double __y = 24952: _M_gd(__urng, param_type(__p.k(), (1.0 - __p.p()) / __p.p())); 24952: 24952: std::poisson_distribution __poisson(__y); 24952: return __poisson(__urng); 24952: } 24952: 24952: template 24952: template 24952: void 24952: negative_binomial_distribution<_IntType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { 24952: 24952: while (__f != __t) 24952: { 24952: const double __y = _M_gd(__urng); 24952: 24952: 24952: std::poisson_distribution __poisson(__y); 24952: *__f++ = __poisson(__urng); 24952: } 24952: } 24952: 24952: template 24952: template 24952: void 24952: negative_binomial_distribution<_IntType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: 24952: typename std::gamma_distribution::param_type 24952: __p2(__p.k(), (1.0 - __p.p()) / __p.p()); 24952: 24952: while (__f != __t) 24952: { 24952: const double __y = _M_gd(__urng, __p2); 24952: 24952: std::poisson_distribution __poisson(__y); 24952: *__f++ = __poisson(__urng); 24952: } 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const negative_binomial_distribution<_IntType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__os.widen(' ')); 24952: __os.precision(std::numeric_limits::max_digits10); 24952: 24952: __os << __x.k() << __space << __x.p() 24952: << __space << __x._M_gd; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: negative_binomial_distribution<_IntType>& __x) 24952: { 24952: using param_type 24952: = typename negative_binomial_distribution<_IntType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::skipws); 24952: 24952: _IntType __k; 24952: double __p; 24952: if (__is >> __k >> __p >> __x._M_gd) 24952: __x.param(param_type(__k, __p)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: void 24952: poisson_distribution<_IntType>::param_type:: 24952: _M_initialize() 24952: { 24952: 24952: if (_M_mean >= 12) 24952: { 24952: const double __m = std::floor(_M_mean); 24952: _M_lm_thr = std::log(_M_mean); 24952: _M_lfm = std::lgamma(__m + 1); 24952: _M_sm = std::sqrt(__m); 24952: 24952: const double __pi_4 = 0.7853981633974483096156608458198757L; 24952: const double __dx = std::sqrt(2 * __m * std::log(32 * __m 24952: / __pi_4)); 24952: _M_d = std::round(std::max(6.0, std::min(__m, __dx))); 24952: const double __cx = 2 * __m + _M_d; 24952: _M_scx = std::sqrt(__cx / 2); 24952: _M_1cx = 1 / __cx; 24952: 24952: _M_c2b = std::sqrt(__pi_4 * __cx) * std::exp(_M_1cx); 24952: _M_cb = 2 * __cx * std::exp(-_M_d * _M_1cx * (1 + _M_d / 2)) 24952: / _M_d; 24952: } 24952: else 24952: 24952: _M_lm_thr = std::exp(-_M_mean); 24952: } 24952: # 1305 "/usr/include/c++/13/bits/random.tcc" 3 24952: template 24952: template 24952: typename poisson_distribution<_IntType>::result_type 24952: poisson_distribution<_IntType>:: 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 24952: __aurng(__urng); 24952: 24952: if (__param.mean() >= 12) 24952: { 24952: double __x; 24952: 24952: 24952: const double __naf = 24952: (1 - std::numeric_limits::epsilon()) / 2; 24952: const double __thr = 24952: std::numeric_limits<_IntType>::max() + __naf; 24952: 24952: const double __m = std::floor(__param.mean()); 24952: 24952: const double __spi_2 = 1.2533141373155002512078826424055226L; 24952: const double __c1 = __param._M_sm * __spi_2; 24952: const double __c2 = __param._M_c2b + __c1; 24952: const double __c3 = __c2 + 1; 24952: const double __c4 = __c3 + 1; 24952: 24952: const double __178 = 0.0128205128205128205128205128205128L; 24952: 24952: const double __e178 = 1.0129030479320018583185514777512983L; 24952: const double __c5 = __c4 + __e178; 24952: const double __c = __param._M_cb + __c5; 24952: const double __2cx = 2 * (2 * __m + __param._M_d); 24952: 24952: bool __reject = true; 24952: do 24952: { 24952: const double __u = __c * __aurng(); 24952: const double __e = -std::log(1.0 - __aurng()); 24952: 24952: double __w = 0.0; 24952: 24952: if (__u <= __c1) 24952: { 24952: const double __n = _M_nd(__urng); 24952: const double __y = -std::abs(__n) * __param._M_sm - 1; 24952: __x = std::floor(__y); 24952: __w = -__n * __n / 2; 24952: if (__x < -__m) 24952: continue; 24952: } 24952: else if (__u <= __c2) 24952: { 24952: const double __n = _M_nd(__urng); 24952: const double __y = 1 + std::abs(__n) * __param._M_scx; 24952: __x = std::ceil(__y); 24952: __w = __y * (2 - __y) * __param._M_1cx; 24952: if (__x > __param._M_d) 24952: continue; 24952: } 24952: else if (__u <= __c3) 24952: 24952: 24952: __x = -1; 24952: else if (__u <= __c4) 24952: __x = 0; 24952: else if (__u <= __c5) 24952: { 24952: __x = 1; 24952: 24952: __w = __178; 24952: } 24952: else 24952: { 24952: const double __v = -std::log(1.0 - __aurng()); 24952: const double __y = __param._M_d 24952: + __v * __2cx / __param._M_d; 24952: __x = std::ceil(__y); 24952: __w = -__param._M_d * __param._M_1cx * (1 + __y / 2); 24952: } 24952: 24952: __reject = (__w - __e - __x * __param._M_lm_thr 24952: > __param._M_lfm - std::lgamma(__x + __m + 1)); 24952: 24952: __reject |= __x + __m >= __thr; 24952: 24952: } while (__reject); 24952: 24952: return result_type(__x + __m + __naf); 24952: } 24952: else 24952: 24952: { 24952: _IntType __x = 0; 24952: double __prod = 1.0; 24952: 24952: do 24952: { 24952: __prod *= __aurng(); 24952: __x += 1; 24952: } 24952: while (__prod > __param._M_lm_thr); 24952: 24952: return __x - 1; 24952: } 24952: } 24952: 24952: template 24952: template 24952: void 24952: poisson_distribution<_IntType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: 24952: 24952: while (__f != __t) 24952: *__f++ = this->operator()(__urng, __param); 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const poisson_distribution<_IntType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits::max_digits10); 24952: 24952: __os << __x.mean() << __space << __x._M_nd; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: poisson_distribution<_IntType>& __x) 24952: { 24952: using param_type = typename poisson_distribution<_IntType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::skipws); 24952: 24952: double __mean; 24952: if (__is >> __mean >> __x._M_nd) 24952: __x.param(param_type(__mean)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: void 24952: binomial_distribution<_IntType>::param_type:: 24952: _M_initialize() 24952: { 24952: const double __p12 = _M_p <= 0.5 ? _M_p : 1.0 - _M_p; 24952: 24952: _M_easy = true; 24952: 24952: 24952: if (_M_t * __p12 >= 8) 24952: { 24952: _M_easy = false; 24952: const double __np = std::floor(_M_t * __p12); 24952: const double __pa = __np / _M_t; 24952: const double __1p = 1 - __pa; 24952: 24952: const double __pi_4 = 0.7853981633974483096156608458198757L; 24952: const double __d1x = 24952: std::sqrt(__np * __1p * std::log(32 * __np 24952: / (81 * __pi_4 * __1p))); 24952: _M_d1 = std::round(std::max(1.0, __d1x)); 24952: const double __d2x = 24952: std::sqrt(__np * __1p * std::log(32 * _M_t * __1p 24952: / (__pi_4 * __pa))); 24952: _M_d2 = std::round(std::max(1.0, __d2x)); 24952: 24952: 24952: const double __spi_2 = 1.2533141373155002512078826424055226L; 24952: _M_s1 = std::sqrt(__np * __1p) * (1 + _M_d1 / (4 * __np)); 24952: _M_s2 = std::sqrt(__np * __1p) * (1 + _M_d2 / (4 * _M_t * __1p)); 24952: _M_c = 2 * _M_d1 / __np; 24952: _M_a1 = std::exp(_M_c) * _M_s1 * __spi_2; 24952: const double __a12 = _M_a1 + _M_s2 * __spi_2; 24952: const double __s1s = _M_s1 * _M_s1; 24952: _M_a123 = __a12 + (std::exp(_M_d1 / (_M_t * __1p)) 24952: * 2 * __s1s / _M_d1 24952: * std::exp(-_M_d1 * _M_d1 / (2 * __s1s))); 24952: const double __s2s = _M_s2 * _M_s2; 24952: _M_s = (_M_a123 + 2 * __s2s / _M_d2 24952: * std::exp(-_M_d2 * _M_d2 / (2 * __s2s))); 24952: _M_lf = (std::lgamma(__np + 1) 24952: + std::lgamma(_M_t - __np + 1)); 24952: _M_lp1p = std::log(__pa / __1p); 24952: 24952: _M_q = -std::log(1 - (__p12 - __pa) / __1p); 24952: } 24952: else 24952: 24952: _M_q = -std::log(1 - __p12); 24952: } 24952: 24952: template 24952: template 24952: typename binomial_distribution<_IntType>::result_type 24952: binomial_distribution<_IntType>:: 24952: _M_waiting(_UniformRandomNumberGenerator& __urng, 24952: _IntType __t, double __q) 24952: { 24952: _IntType __x = 0; 24952: double __sum = 0.0; 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 24952: __aurng(__urng); 24952: 24952: do 24952: { 24952: if (__t == __x) 24952: return __x; 24952: const double __e = -std::log(1.0 - __aurng()); 24952: __sum += __e / (__t - __x); 24952: __x += 1; 24952: } 24952: while (__sum <= __q); 24952: 24952: return __x - 1; 24952: } 24952: # 1560 "/usr/include/c++/13/bits/random.tcc" 3 24952: template 24952: template 24952: typename binomial_distribution<_IntType>::result_type 24952: binomial_distribution<_IntType>:: 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: result_type __ret; 24952: const _IntType __t = __param.t(); 24952: const double __p = __param.p(); 24952: const double __p12 = __p <= 0.5 ? __p : 1.0 - __p; 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 24952: __aurng(__urng); 24952: 24952: 24952: if (!__param._M_easy) 24952: { 24952: double __x; 24952: 24952: 24952: const double __naf = 24952: (1 - std::numeric_limits::epsilon()) / 2; 24952: const double __thr = 24952: std::numeric_limits<_IntType>::max() + __naf; 24952: 24952: const double __np = std::floor(__t * __p12); 24952: 24952: 24952: const double __spi_2 = 1.2533141373155002512078826424055226L; 24952: const double __a1 = __param._M_a1; 24952: const double __a12 = __a1 + __param._M_s2 * __spi_2; 24952: const double __a123 = __param._M_a123; 24952: const double __s1s = __param._M_s1 * __param._M_s1; 24952: const double __s2s = __param._M_s2 * __param._M_s2; 24952: 24952: bool __reject; 24952: do 24952: { 24952: const double __u = __param._M_s * __aurng(); 24952: 24952: double __v; 24952: 24952: if (__u <= __a1) 24952: { 24952: const double __n = _M_nd(__urng); 24952: const double __y = __param._M_s1 * std::abs(__n); 24952: __reject = __y >= __param._M_d1; 24952: if (!__reject) 24952: { 24952: const double __e = -std::log(1.0 - __aurng()); 24952: __x = std::floor(__y); 24952: __v = -__e - __n * __n / 2 + __param._M_c; 24952: } 24952: } 24952: else if (__u <= __a12) 24952: { 24952: const double __n = _M_nd(__urng); 24952: const double __y = __param._M_s2 * std::abs(__n); 24952: __reject = __y >= __param._M_d2; 24952: if (!__reject) 24952: { 24952: const double __e = -std::log(1.0 - __aurng()); 24952: __x = std::floor(-__y); 24952: __v = -__e - __n * __n / 2; 24952: } 24952: } 24952: else if (__u <= __a123) 24952: { 24952: const double __e1 = -std::log(1.0 - __aurng()); 24952: const double __e2 = -std::log(1.0 - __aurng()); 24952: 24952: const double __y = __param._M_d1 24952: + 2 * __s1s * __e1 / __param._M_d1; 24952: __x = std::floor(__y); 24952: __v = (-__e2 + __param._M_d1 * (1 / (__t - __np) 24952: -__y / (2 * __s1s))); 24952: __reject = false; 24952: } 24952: else 24952: { 24952: const double __e1 = -std::log(1.0 - __aurng()); 24952: const double __e2 = -std::log(1.0 - __aurng()); 24952: 24952: const double __y = __param._M_d2 24952: + 2 * __s2s * __e1 / __param._M_d2; 24952: __x = std::floor(-__y); 24952: __v = -__e2 - __param._M_d2 * __y / (2 * __s2s); 24952: __reject = false; 24952: } 24952: 24952: __reject = __reject || __x < -__np || __x > __t - __np; 24952: if (!__reject) 24952: { 24952: const double __lfx = 24952: std::lgamma(__np + __x + 1) 24952: + std::lgamma(__t - (__np + __x) + 1); 24952: __reject = __v > __param._M_lf - __lfx 24952: + __x * __param._M_lp1p; 24952: } 24952: 24952: __reject |= __x + __np >= __thr; 24952: } 24952: while (__reject); 24952: 24952: __x += __np + __naf; 24952: 24952: const _IntType __z = _M_waiting(__urng, __t - _IntType(__x), 24952: __param._M_q); 24952: __ret = _IntType(__x) + __z; 24952: } 24952: else 24952: 24952: __ret = _M_waiting(__urng, __t, __param._M_q); 24952: 24952: if (__p12 != __p) 24952: __ret = __t - __ret; 24952: return __ret; 24952: } 24952: 24952: template 24952: template 24952: void 24952: binomial_distribution<_IntType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: 24952: 24952: while (__f != __t) 24952: *__f++ = this->operator()(__urng, __param); 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const binomial_distribution<_IntType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits::max_digits10); 24952: 24952: __os << __x.t() << __space << __x.p() 24952: << __space << __x._M_nd; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: binomial_distribution<_IntType>& __x) 24952: { 24952: using param_type = typename binomial_distribution<_IntType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: _IntType __t; 24952: double __p; 24952: if (__is >> __t >> __p >> __x._M_nd) 24952: __x.param(param_type(__t, __p)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: template 24952: void 24952: std::exponential_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: while (__f != __t) 24952: *__f++ = -std::log(result_type(1) - __aurng()) / __p.lambda(); 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const exponential_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__os.widen(' ')); 24952: __os.precision(std::numeric_limits<_RealType>::max_digits10); 24952: 24952: __os << __x.lambda(); 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: exponential_distribution<_RealType>& __x) 24952: { 24952: using param_type 24952: = typename exponential_distribution<_RealType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: _RealType __lambda; 24952: if (__is >> __lambda) 24952: __x.param(param_type(__lambda)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: # 1806 "/usr/include/c++/13/bits/random.tcc" 3 24952: template 24952: template 24952: typename normal_distribution<_RealType>::result_type 24952: normal_distribution<_RealType>:: 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: result_type __ret; 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: 24952: if (_M_saved_available) 24952: { 24952: _M_saved_available = false; 24952: __ret = _M_saved; 24952: } 24952: else 24952: { 24952: result_type __x, __y, __r2; 24952: do 24952: { 24952: __x = result_type(2.0) * __aurng() - 1.0; 24952: __y = result_type(2.0) * __aurng() - 1.0; 24952: __r2 = __x * __x + __y * __y; 24952: } 24952: while (__r2 > 1.0 || __r2 == 0.0); 24952: 24952: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 24952: _M_saved = __x * __mult; 24952: _M_saved_available = true; 24952: __ret = __y * __mult; 24952: } 24952: 24952: __ret = __ret * __param.stddev() + __param.mean(); 24952: return __ret; 24952: } 24952: 24952: template 24952: template 24952: void 24952: normal_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: 24952: 24952: if (__f == __t) 24952: return; 24952: 24952: if (_M_saved_available) 24952: { 24952: _M_saved_available = false; 24952: *__f++ = _M_saved * __param.stddev() + __param.mean(); 24952: 24952: if (__f == __t) 24952: return; 24952: } 24952: 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: 24952: while (__f + 1 < __t) 24952: { 24952: result_type __x, __y, __r2; 24952: do 24952: { 24952: __x = result_type(2.0) * __aurng() - 1.0; 24952: __y = result_type(2.0) * __aurng() - 1.0; 24952: __r2 = __x * __x + __y * __y; 24952: } 24952: while (__r2 > 1.0 || __r2 == 0.0); 24952: 24952: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 24952: *__f++ = __y * __mult * __param.stddev() + __param.mean(); 24952: *__f++ = __x * __mult * __param.stddev() + __param.mean(); 24952: } 24952: 24952: if (__f != __t) 24952: { 24952: result_type __x, __y, __r2; 24952: do 24952: { 24952: __x = result_type(2.0) * __aurng() - 1.0; 24952: __y = result_type(2.0) * __aurng() - 1.0; 24952: __r2 = __x * __x + __y * __y; 24952: } 24952: while (__r2 > 1.0 || __r2 == 0.0); 24952: 24952: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 24952: _M_saved = __x * __mult; 24952: _M_saved_available = true; 24952: *__f = __y * __mult * __param.stddev() + __param.mean(); 24952: } 24952: } 24952: 24952: template 24952: bool 24952: operator==(const std::normal_distribution<_RealType>& __d1, 24952: const std::normal_distribution<_RealType>& __d2) 24952: { 24952: if (__d1._M_param == __d2._M_param 24952: && __d1._M_saved_available == __d2._M_saved_available) 24952: return __d1._M_saved_available ? __d1._M_saved == __d2._M_saved : true; 24952: else 24952: return false; 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const normal_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits<_RealType>::max_digits10); 24952: 24952: __os << __x.mean() << __space << __x.stddev() 24952: << __space << __x._M_saved_available; 24952: if (__x._M_saved_available) 24952: __os << __space << __x._M_saved; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: normal_distribution<_RealType>& __x) 24952: { 24952: using param_type = typename normal_distribution<_RealType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: double __mean, __stddev; 24952: bool __saved_avail; 24952: if (__is >> __mean >> __stddev >> __saved_avail) 24952: { 24952: if (!__saved_avail || (__is >> __x._M_saved)) 24952: { 24952: __x._M_saved_available = __saved_avail; 24952: __x.param(param_type(__mean, __stddev)); 24952: } 24952: } 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: template 24952: void 24952: lognormal_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: 24952: while (__f != __t) 24952: *__f++ = std::exp(__p.s() * _M_nd(__urng) + __p.m()); 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const lognormal_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits<_RealType>::max_digits10); 24952: 24952: __os << __x.m() << __space << __x.s() 24952: << __space << __x._M_nd; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: lognormal_distribution<_RealType>& __x) 24952: { 24952: using param_type 24952: = typename lognormal_distribution<_RealType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: _RealType __m, __s; 24952: if (__is >> __m >> __s >> __x._M_nd) 24952: __x.param(param_type(__m, __s)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: template 24952: template 24952: void 24952: std::chi_squared_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { 24952: 24952: while (__f != __t) 24952: *__f++ = 2 * _M_gd(__urng); 24952: } 24952: 24952: template 24952: template 24952: void 24952: std::chi_squared_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const typename 24952: std::gamma_distribution::param_type& __p) 24952: { 24952: 24952: while (__f != __t) 24952: *__f++ = 2 * _M_gd(__urng, __p); 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const chi_squared_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits<_RealType>::max_digits10); 24952: 24952: __os << __x.n() << __space << __x._M_gd; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: chi_squared_distribution<_RealType>& __x) 24952: { 24952: using param_type 24952: = typename chi_squared_distribution<_RealType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: _RealType __n; 24952: if (__is >> __n >> __x._M_gd) 24952: __x.param(param_type(__n)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: template 24952: typename cauchy_distribution<_RealType>::result_type 24952: cauchy_distribution<_RealType>:: 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: _RealType __u; 24952: do 24952: __u = __aurng(); 24952: while (__u == 0.5); 24952: 24952: const _RealType __pi = 3.1415926535897932384626433832795029L; 24952: return __p.a() + __p.b() * std::tan(__pi * __u); 24952: } 24952: 24952: template 24952: template 24952: void 24952: cauchy_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: 24952: const _RealType __pi = 3.1415926535897932384626433832795029L; 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: while (__f != __t) 24952: { 24952: _RealType __u; 24952: do 24952: __u = __aurng(); 24952: while (__u == 0.5); 24952: 24952: *__f++ = __p.a() + __p.b() * std::tan(__pi * __u); 24952: } 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const cauchy_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits<_RealType>::max_digits10); 24952: 24952: __os << __x.a() << __space << __x.b(); 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: cauchy_distribution<_RealType>& __x) 24952: { 24952: using param_type = typename cauchy_distribution<_RealType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: _RealType __a, __b; 24952: if (__is >> __a >> __b) 24952: __x.param(param_type(__a, __b)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: template 24952: void 24952: std::fisher_f_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { 24952: 24952: while (__f != __t) 24952: *__f++ = ((_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m())); 24952: } 24952: 24952: template 24952: template 24952: void 24952: std::fisher_f_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: 24952: typedef typename std::gamma_distribution::param_type 24952: param_type; 24952: param_type __p1(__p.m() / 2); 24952: param_type __p2(__p.n() / 2); 24952: while (__f != __t) 24952: *__f++ = ((_M_gd_x(__urng, __p1) * n()) 24952: / (_M_gd_y(__urng, __p2) * m())); 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const fisher_f_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits<_RealType>::max_digits10); 24952: 24952: __os << __x.m() << __space << __x.n() 24952: << __space << __x._M_gd_x << __space << __x._M_gd_y; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: fisher_f_distribution<_RealType>& __x) 24952: { 24952: using param_type 24952: = typename fisher_f_distribution<_RealType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: _RealType __m, __n; 24952: if (__is >> __m >> __n >> __x._M_gd_x >> __x._M_gd_y) 24952: __x.param(param_type(__m, __n)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: template 24952: void 24952: std::student_t_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng) 24952: { 24952: 24952: while (__f != __t) 24952: *__f++ = _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); 24952: } 24952: 24952: template 24952: template 24952: void 24952: std::student_t_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: 24952: typename std::gamma_distribution::param_type 24952: __p2(__p.n() / 2, 2); 24952: while (__f != __t) 24952: *__f++ = _M_nd(__urng) * std::sqrt(__p.n() / _M_gd(__urng, __p2)); 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const student_t_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits<_RealType>::max_digits10); 24952: 24952: __os << __x.n() << __space << __x._M_nd << __space << __x._M_gd; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: student_t_distribution<_RealType>& __x) 24952: { 24952: using param_type 24952: = typename student_t_distribution<_RealType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: _RealType __n; 24952: if (__is >> __n >> __x._M_nd >> __x._M_gd) 24952: __x.param(param_type(__n)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: void 24952: gamma_distribution<_RealType>::param_type:: 24952: _M_initialize() 24952: { 24952: _M_malpha = _M_alpha < 1.0 ? _M_alpha + _RealType(1.0) : _M_alpha; 24952: 24952: const _RealType __a1 = _M_malpha - _RealType(1.0) / _RealType(3.0); 24952: _M_a2 = _RealType(1.0) / std::sqrt(_RealType(9.0) * __a1); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: template 24952: typename gamma_distribution<_RealType>::result_type 24952: gamma_distribution<_RealType>:: 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: 24952: result_type __u, __v, __n; 24952: const result_type __a1 = (__param._M_malpha 24952: - _RealType(1.0) / _RealType(3.0)); 24952: 24952: do 24952: { 24952: do 24952: { 24952: __n = _M_nd(__urng); 24952: __v = result_type(1.0) + __param._M_a2 * __n; 24952: } 24952: while (__v <= 0.0); 24952: 24952: __v = __v * __v * __v; 24952: __u = __aurng(); 24952: } 24952: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 24952: && (std::log(__u) > (0.5 * __n * __n + __a1 24952: * (1.0 - __v + std::log(__v))))); 24952: 24952: if (__param.alpha() == __param._M_malpha) 24952: return __a1 * __v * __param.beta(); 24952: else 24952: { 24952: do 24952: __u = __aurng(); 24952: while (__u == 0.0); 24952: 24952: return (std::pow(__u, result_type(1.0) / __param.alpha()) 24952: * __a1 * __v * __param.beta()); 24952: } 24952: } 24952: 24952: template 24952: template 24952: void 24952: gamma_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: 24952: result_type __u, __v, __n; 24952: const result_type __a1 = (__param._M_malpha 24952: - _RealType(1.0) / _RealType(3.0)); 24952: 24952: if (__param.alpha() == __param._M_malpha) 24952: while (__f != __t) 24952: { 24952: do 24952: { 24952: do 24952: { 24952: __n = _M_nd(__urng); 24952: __v = result_type(1.0) + __param._M_a2 * __n; 24952: } 24952: while (__v <= 0.0); 24952: 24952: __v = __v * __v * __v; 24952: __u = __aurng(); 24952: } 24952: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 24952: && (std::log(__u) > (0.5 * __n * __n + __a1 24952: * (1.0 - __v + std::log(__v))))); 24952: 24952: *__f++ = __a1 * __v * __param.beta(); 24952: } 24952: else 24952: while (__f != __t) 24952: { 24952: do 24952: { 24952: do 24952: { 24952: __n = _M_nd(__urng); 24952: __v = result_type(1.0) + __param._M_a2 * __n; 24952: } 24952: while (__v <= 0.0); 24952: 24952: __v = __v * __v * __v; 24952: __u = __aurng(); 24952: } 24952: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 24952: && (std::log(__u) > (0.5 * __n * __n + __a1 24952: * (1.0 - __v + std::log(__v))))); 24952: 24952: do 24952: __u = __aurng(); 24952: while (__u == 0.0); 24952: 24952: *__f++ = (std::pow(__u, result_type(1.0) / __param.alpha()) 24952: * __a1 * __v * __param.beta()); 24952: } 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const gamma_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits<_RealType>::max_digits10); 24952: 24952: __os << __x.alpha() << __space << __x.beta() 24952: << __space << __x._M_nd; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: gamma_distribution<_RealType>& __x) 24952: { 24952: using param_type = typename gamma_distribution<_RealType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: _RealType __alpha_val, __beta_val; 24952: if (__is >> __alpha_val >> __beta_val >> __x._M_nd) 24952: __x.param(param_type(__alpha_val, __beta_val)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: template 24952: typename weibull_distribution<_RealType>::result_type 24952: weibull_distribution<_RealType>:: 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: return __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 24952: result_type(1) / __p.a()); 24952: } 24952: 24952: template 24952: template 24952: void 24952: weibull_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: auto __inv_a = result_type(1) / __p.a(); 24952: 24952: while (__f != __t) 24952: *__f++ = __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 24952: __inv_a); 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const weibull_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits<_RealType>::max_digits10); 24952: 24952: __os << __x.a() << __space << __x.b(); 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: weibull_distribution<_RealType>& __x) 24952: { 24952: using param_type = typename weibull_distribution<_RealType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: _RealType __a, __b; 24952: if (__is >> __a >> __b) 24952: __x.param(param_type(__a, __b)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: template 24952: typename extreme_value_distribution<_RealType>::result_type 24952: extreme_value_distribution<_RealType>:: 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: return __p.a() - __p.b() * std::log(-std::log(result_type(1) 24952: - __aurng())); 24952: } 24952: 24952: template 24952: template 24952: void 24952: extreme_value_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __p) 24952: { 24952: 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 24952: __aurng(__urng); 24952: 24952: while (__f != __t) 24952: *__f++ = __p.a() - __p.b() * std::log(-std::log(result_type(1) 24952: - __aurng())); 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const extreme_value_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits<_RealType>::max_digits10); 24952: 24952: __os << __x.a() << __space << __x.b(); 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: extreme_value_distribution<_RealType>& __x) 24952: { 24952: using param_type 24952: = typename extreme_value_distribution<_RealType>::param_type; 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: _RealType __a, __b; 24952: if (__is >> __a >> __b) 24952: __x.param(param_type(__a, __b)); 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: void 24952: discrete_distribution<_IntType>::param_type:: 24952: _M_initialize() 24952: { 24952: if (_M_prob.size() < 2) 24952: { 24952: _M_prob.clear(); 24952: return; 24952: } 24952: 24952: const double __sum = std::accumulate(_M_prob.begin(), 24952: _M_prob.end(), 0.0); 24952: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) __builtin_unreachable(); } while (false); 24952: 24952: __detail::__normalize(_M_prob.begin(), _M_prob.end(), _M_prob.begin(), 24952: __sum); 24952: 24952: _M_cp.reserve(_M_prob.size()); 24952: std::partial_sum(_M_prob.begin(), _M_prob.end(), 24952: std::back_inserter(_M_cp)); 24952: 24952: _M_cp[_M_cp.size() - 1] = 1.0; 24952: } 24952: 24952: template 24952: template 24952: discrete_distribution<_IntType>::param_type:: 24952: param_type(size_t __nw, double __xmin, double __xmax, _Func __fw) 24952: : _M_prob(), _M_cp() 24952: { 24952: const size_t __n = __nw == 0 ? 1 : __nw; 24952: const double __delta = (__xmax - __xmin) / __n; 24952: 24952: _M_prob.reserve(__n); 24952: for (size_t __k = 0; __k < __nw; ++__k) 24952: _M_prob.push_back(__fw(__xmin + __k * __delta + 0.5 * __delta)); 24952: 24952: _M_initialize(); 24952: } 24952: 24952: template 24952: template 24952: typename discrete_distribution<_IntType>::result_type 24952: discrete_distribution<_IntType>:: 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: if (__param._M_cp.empty()) 24952: return result_type(0); 24952: 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 24952: __aurng(__urng); 24952: 24952: const double __p = __aurng(); 24952: auto __pos = std::lower_bound(__param._M_cp.begin(), 24952: __param._M_cp.end(), __p); 24952: 24952: return __pos - __param._M_cp.begin(); 24952: } 24952: 24952: template 24952: template 24952: void 24952: discrete_distribution<_IntType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: 24952: 24952: if (__param._M_cp.empty()) 24952: { 24952: while (__f != __t) 24952: *__f++ = result_type(0); 24952: return; 24952: } 24952: 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 24952: __aurng(__urng); 24952: 24952: while (__f != __t) 24952: { 24952: const double __p = __aurng(); 24952: auto __pos = std::lower_bound(__param._M_cp.begin(), 24952: __param._M_cp.end(), __p); 24952: 24952: *__f++ = __pos - __param._M_cp.begin(); 24952: } 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const discrete_distribution<_IntType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits::max_digits10); 24952: 24952: std::vector __prob = __x.probabilities(); 24952: __os << __prob.size(); 24952: for (auto __dit = __prob.begin(); __dit != __prob.end(); ++__dit) 24952: __os << __space << *__dit; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: namespace __detail 24952: { 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: __extract_params(basic_istream<_CharT, _Traits>& __is, 24952: vector<_ValT>& __vals, size_t __n) 24952: { 24952: __vals.reserve(__n); 24952: while (__n--) 24952: { 24952: _ValT __val; 24952: if (__is >> __val) 24952: __vals.push_back(__val); 24952: else 24952: break; 24952: } 24952: return __is; 24952: } 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: discrete_distribution<_IntType>& __x) 24952: { 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: size_t __n; 24952: if (__is >> __n) 24952: { 24952: std::vector __prob_vec; 24952: if (__detail::__extract_params(__is, __prob_vec, __n)) 24952: __x.param({__prob_vec.begin(), __prob_vec.end()}); 24952: } 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: void 24952: piecewise_constant_distribution<_RealType>::param_type:: 24952: _M_initialize() 24952: { 24952: if (_M_int.size() < 2 24952: || (_M_int.size() == 2 24952: && _M_int[0] == _RealType(0) 24952: && _M_int[1] == _RealType(1))) 24952: { 24952: _M_int.clear(); 24952: _M_den.clear(); 24952: return; 24952: } 24952: 24952: const double __sum = std::accumulate(_M_den.begin(), 24952: _M_den.end(), 0.0); 24952: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) __builtin_unreachable(); } while (false); 24952: 24952: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 24952: __sum); 24952: 24952: _M_cp.reserve(_M_den.size()); 24952: std::partial_sum(_M_den.begin(), _M_den.end(), 24952: std::back_inserter(_M_cp)); 24952: 24952: 24952: _M_cp[_M_cp.size() - 1] = 1.0; 24952: 24952: for (size_t __k = 0; __k < _M_den.size(); ++__k) 24952: _M_den[__k] /= _M_int[__k + 1] - _M_int[__k]; 24952: } 24952: 24952: template 24952: template 24952: piecewise_constant_distribution<_RealType>::param_type:: 24952: param_type(_InputIteratorB __bbegin, 24952: _InputIteratorB __bend, 24952: _InputIteratorW __wbegin) 24952: : _M_int(), _M_den(), _M_cp() 24952: { 24952: if (__bbegin != __bend) 24952: { 24952: for (;;) 24952: { 24952: _M_int.push_back(*__bbegin); 24952: ++__bbegin; 24952: if (__bbegin == __bend) 24952: break; 24952: 24952: _M_den.push_back(*__wbegin); 24952: ++__wbegin; 24952: } 24952: } 24952: 24952: _M_initialize(); 24952: } 24952: 24952: template 24952: template 24952: piecewise_constant_distribution<_RealType>::param_type:: 24952: param_type(initializer_list<_RealType> __bl, _Func __fw) 24952: : _M_int(), _M_den(), _M_cp() 24952: { 24952: _M_int.reserve(__bl.size()); 24952: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 24952: _M_int.push_back(*__biter); 24952: 24952: _M_den.reserve(_M_int.size() - 1); 24952: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 24952: _M_den.push_back(__fw(0.5 * (_M_int[__k + 1] + _M_int[__k]))); 24952: 24952: _M_initialize(); 24952: } 24952: 24952: template 24952: template 24952: piecewise_constant_distribution<_RealType>::param_type:: 24952: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 24952: : _M_int(), _M_den(), _M_cp() 24952: { 24952: const size_t __n = __nw == 0 ? 1 : __nw; 24952: const _RealType __delta = (__xmax - __xmin) / __n; 24952: 24952: _M_int.reserve(__n + 1); 24952: for (size_t __k = 0; __k <= __nw; ++__k) 24952: _M_int.push_back(__xmin + __k * __delta); 24952: 24952: _M_den.reserve(__n); 24952: for (size_t __k = 0; __k < __nw; ++__k) 24952: _M_den.push_back(__fw(_M_int[__k] + 0.5 * __delta)); 24952: 24952: _M_initialize(); 24952: } 24952: 24952: template 24952: template 24952: typename piecewise_constant_distribution<_RealType>::result_type 24952: piecewise_constant_distribution<_RealType>:: 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 24952: __aurng(__urng); 24952: 24952: const double __p = __aurng(); 24952: if (__param._M_cp.empty()) 24952: return __p; 24952: 24952: auto __pos = std::lower_bound(__param._M_cp.begin(), 24952: __param._M_cp.end(), __p); 24952: const size_t __i = __pos - __param._M_cp.begin(); 24952: 24952: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 24952: 24952: return __param._M_int[__i] + (__p - __pref) / __param._M_den[__i]; 24952: } 24952: 24952: template 24952: template 24952: void 24952: piecewise_constant_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 24952: __aurng(__urng); 24952: 24952: if (__param._M_cp.empty()) 24952: { 24952: while (__f != __t) 24952: *__f++ = __aurng(); 24952: return; 24952: } 24952: 24952: while (__f != __t) 24952: { 24952: const double __p = __aurng(); 24952: 24952: auto __pos = std::lower_bound(__param._M_cp.begin(), 24952: __param._M_cp.end(), __p); 24952: const size_t __i = __pos - __param._M_cp.begin(); 24952: 24952: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 24952: 24952: *__f++ = (__param._M_int[__i] 24952: + (__p - __pref) / __param._M_den[__i]); 24952: } 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const piecewise_constant_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits<_RealType>::max_digits10); 24952: 24952: std::vector<_RealType> __int = __x.intervals(); 24952: __os << __int.size() - 1; 24952: 24952: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 24952: __os << __space << *__xit; 24952: 24952: std::vector __den = __x.densities(); 24952: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 24952: __os << __space << *__dit; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: piecewise_constant_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: size_t __n; 24952: if (__is >> __n) 24952: { 24952: std::vector<_RealType> __int_vec; 24952: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 24952: { 24952: std::vector __den_vec; 24952: if (__detail::__extract_params(__is, __den_vec, __n)) 24952: { 24952: __x.param({ __int_vec.begin(), __int_vec.end(), 24952: __den_vec.begin() }); 24952: } 24952: } 24952: } 24952: 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: void 24952: piecewise_linear_distribution<_RealType>::param_type:: 24952: _M_initialize() 24952: { 24952: if (_M_int.size() < 2 24952: || (_M_int.size() == 2 24952: && _M_int[0] == _RealType(0) 24952: && _M_int[1] == _RealType(1) 24952: && _M_den[0] == _M_den[1])) 24952: { 24952: _M_int.clear(); 24952: _M_den.clear(); 24952: return; 24952: } 24952: 24952: double __sum = 0.0; 24952: _M_cp.reserve(_M_int.size() - 1); 24952: _M_m.reserve(_M_int.size() - 1); 24952: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 24952: { 24952: const _RealType __delta = _M_int[__k + 1] - _M_int[__k]; 24952: __sum += 0.5 * (_M_den[__k + 1] + _M_den[__k]) * __delta; 24952: _M_cp.push_back(__sum); 24952: _M_m.push_back((_M_den[__k + 1] - _M_den[__k]) / __delta); 24952: } 24952: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) __builtin_unreachable(); } while (false); 24952: 24952: 24952: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 24952: __sum); 24952: 24952: __detail::__normalize(_M_cp.begin(), _M_cp.end(), _M_cp.begin(), __sum); 24952: 24952: __detail::__normalize(_M_m.begin(), _M_m.end(), _M_m.begin(), __sum); 24952: 24952: 24952: _M_cp[_M_cp.size() - 1] = 1.0; 24952: } 24952: 24952: template 24952: template 24952: piecewise_linear_distribution<_RealType>::param_type:: 24952: param_type(_InputIteratorB __bbegin, 24952: _InputIteratorB __bend, 24952: _InputIteratorW __wbegin) 24952: : _M_int(), _M_den(), _M_cp(), _M_m() 24952: { 24952: for (; __bbegin != __bend; ++__bbegin, ++__wbegin) 24952: { 24952: _M_int.push_back(*__bbegin); 24952: _M_den.push_back(*__wbegin); 24952: } 24952: 24952: _M_initialize(); 24952: } 24952: 24952: template 24952: template 24952: piecewise_linear_distribution<_RealType>::param_type:: 24952: param_type(initializer_list<_RealType> __bl, _Func __fw) 24952: : _M_int(), _M_den(), _M_cp(), _M_m() 24952: { 24952: _M_int.reserve(__bl.size()); 24952: _M_den.reserve(__bl.size()); 24952: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 24952: { 24952: _M_int.push_back(*__biter); 24952: _M_den.push_back(__fw(*__biter)); 24952: } 24952: 24952: _M_initialize(); 24952: } 24952: 24952: template 24952: template 24952: piecewise_linear_distribution<_RealType>::param_type:: 24952: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 24952: : _M_int(), _M_den(), _M_cp(), _M_m() 24952: { 24952: const size_t __n = __nw == 0 ? 1 : __nw; 24952: const _RealType __delta = (__xmax - __xmin) / __n; 24952: 24952: _M_int.reserve(__n + 1); 24952: _M_den.reserve(__n + 1); 24952: for (size_t __k = 0; __k <= __nw; ++__k) 24952: { 24952: _M_int.push_back(__xmin + __k * __delta); 24952: _M_den.push_back(__fw(_M_int[__k] + __delta)); 24952: } 24952: 24952: _M_initialize(); 24952: } 24952: 24952: template 24952: template 24952: typename piecewise_linear_distribution<_RealType>::result_type 24952: piecewise_linear_distribution<_RealType>:: 24952: operator()(_UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 24952: __aurng(__urng); 24952: 24952: const double __p = __aurng(); 24952: if (__param._M_cp.empty()) 24952: return __p; 24952: 24952: auto __pos = std::lower_bound(__param._M_cp.begin(), 24952: __param._M_cp.end(), __p); 24952: const size_t __i = __pos - __param._M_cp.begin(); 24952: 24952: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 24952: 24952: const double __a = 0.5 * __param._M_m[__i]; 24952: const double __b = __param._M_den[__i]; 24952: const double __cm = __p - __pref; 24952: 24952: _RealType __x = __param._M_int[__i]; 24952: if (__a == 0) 24952: __x += __cm / __b; 24952: else 24952: { 24952: const double __d = __b * __b + 4.0 * __a * __cm; 24952: __x += 0.5 * (std::sqrt(__d) - __b) / __a; 24952: } 24952: 24952: return __x; 24952: } 24952: 24952: template 24952: template 24952: void 24952: piecewise_linear_distribution<_RealType>:: 24952: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 24952: _UniformRandomNumberGenerator& __urng, 24952: const param_type& __param) 24952: { 24952: 24952: 24952: while (__f != __t) 24952: *__f++ = this->operator()(__urng, __param); 24952: } 24952: 24952: template 24952: std::basic_ostream<_CharT, _Traits>& 24952: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 24952: const piecewise_linear_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __os.flags(); 24952: const _CharT __fill = __os.fill(); 24952: const std::streamsize __precision = __os.precision(); 24952: const _CharT __space = __os.widen(' '); 24952: __os.flags(__ios_base::scientific | __ios_base::left); 24952: __os.fill(__space); 24952: __os.precision(std::numeric_limits<_RealType>::max_digits10); 24952: 24952: std::vector<_RealType> __int = __x.intervals(); 24952: __os << __int.size() - 1; 24952: 24952: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 24952: __os << __space << *__xit; 24952: 24952: std::vector __den = __x.densities(); 24952: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 24952: __os << __space << *__dit; 24952: 24952: __os.flags(__flags); 24952: __os.fill(__fill); 24952: __os.precision(__precision); 24952: return __os; 24952: } 24952: 24952: template 24952: std::basic_istream<_CharT, _Traits>& 24952: operator>>(std::basic_istream<_CharT, _Traits>& __is, 24952: piecewise_linear_distribution<_RealType>& __x) 24952: { 24952: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 24952: 24952: const typename __ios_base::fmtflags __flags = __is.flags(); 24952: __is.flags(__ios_base::dec | __ios_base::skipws); 24952: 24952: size_t __n; 24952: if (__is >> __n) 24952: { 24952: vector<_RealType> __int_vec; 24952: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 24952: { 24952: vector __den_vec; 24952: if (__detail::__extract_params(__is, __den_vec, __n + 1)) 24952: { 24952: __x.param({ __int_vec.begin(), __int_vec.end(), 24952: __den_vec.begin() }); 24952: } 24952: } 24952: } 24952: __is.flags(__flags); 24952: return __is; 24952: } 24952: 24952: 24952: template 24952: seed_seq::seed_seq(std::initializer_list<_IntType> __il) 24952: { 24952: _M_v.reserve(__il.size()); 24952: for (auto __iter = __il.begin(); __iter != __il.end(); ++__iter) 24952: _M_v.push_back(__detail::__mod::__value>(*__iter)); 24952: } 24952: 24952: template 24952: seed_seq::seed_seq(_InputIterator __begin, _InputIterator __end) 24952: { 24952: if constexpr (__is_random_access_iter<_InputIterator>::value) 24952: _M_v.reserve(std::distance(__begin, __end)); 24952: 24952: for (_InputIterator __iter = __begin; __iter != __end; ++__iter) 24952: _M_v.push_back(__detail::__mod::__value>(*__iter)); 24952: } 24952: 24952: template 24952: void 24952: seed_seq::generate(_RandomAccessIterator __begin, 24952: _RandomAccessIterator __end) 24952: { 24952: typedef typename iterator_traits<_RandomAccessIterator>::value_type 24952: _Type; 24952: 24952: if (__begin == __end) 24952: return; 24952: 24952: std::fill(__begin, __end, _Type(0x8b8b8b8bu)); 24952: 24952: const size_t __n = __end - __begin; 24952: const size_t __s = _M_v.size(); 24952: const size_t __t = (__n >= 623) ? 11 24952: : (__n >= 68) ? 7 24952: : (__n >= 39) ? 5 24952: : (__n >= 7) ? 3 24952: : (__n - 1) / 2; 24952: const size_t __p = (__n - __t) / 2; 24952: const size_t __q = __p + __t; 24952: const size_t __m = std::max(size_t(__s + 1), __n); 24952: # 3289 "/usr/include/c++/13/bits/random.tcc" 3 24952: { 24952: uint32_t __r1 = 1371501266u; 24952: uint32_t __r2 = __r1 + __s; 24952: __begin[__p] += __r1; 24952: __begin[__q] = (uint32_t)__begin[__q] + __r2; 24952: __begin[0] = __r2; 24952: } 24952: 24952: for (size_t __k = 1; __k <= __s; ++__k) 24952: { 24952: const size_t __kn = __k % __n; 24952: const size_t __kpn = (__k + __p) % __n; 24952: const size_t __kqn = (__k + __q) % __n; 24952: uint32_t __arg = (__begin[__kn] 24952: ^ __begin[__kpn] 24952: ^ __begin[(__k - 1) % __n]); 24952: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 24952: uint32_t __r2 = __r1 + (uint32_t)__kn + _M_v[__k - 1]; 24952: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 24952: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 24952: __begin[__kn] = __r2; 24952: } 24952: 24952: for (size_t __k = __s + 1; __k < __m; ++__k) 24952: { 24952: const size_t __kn = __k % __n; 24952: const size_t __kpn = (__k + __p) % __n; 24952: const size_t __kqn = (__k + __q) % __n; 24952: uint32_t __arg = (__begin[__kn] 24952: ^ __begin[__kpn] 24952: ^ __begin[(__k - 1) % __n]); 24952: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 24952: uint32_t __r2 = __r1 + (uint32_t)__kn; 24952: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 24952: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 24952: __begin[__kn] = __r2; 24952: } 24952: 24952: for (size_t __k = __m; __k < __m + __n; ++__k) 24952: { 24952: const size_t __kn = __k % __n; 24952: const size_t __kpn = (__k + __p) % __n; 24952: const size_t __kqn = (__k + __q) % __n; 24952: uint32_t __arg = (__begin[__kn] 24952: + __begin[__kpn] 24952: + __begin[(__k - 1) % __n]); 24952: uint32_t __r3 = 1566083941u * (__arg ^ (__arg >> 27)); 24952: uint32_t __r4 = __r3 - __kn; 24952: __begin[__kpn] ^= __r3; 24952: __begin[__kqn] ^= __r4; 24952: __begin[__kn] = __r4; 24952: } 24952: } 24952: 24952: template 24952: _RealType 24952: generate_canonical(_UniformRandomNumberGenerator& __urng) 24952: { 24952: static_assert(std::is_floating_point<_RealType>::value, 24952: "template argument must be a floating point type"); 24952: 24952: const size_t __b 24952: = std::min(static_cast(std::numeric_limits<_RealType>::digits), 24952: __bits); 24952: const long double __r = static_cast(__urng.max()) 24952: - static_cast(__urng.min()) + 1.0L; 24952: const size_t __log2r = std::log(__r) / std::log(2.0L); 24952: const size_t __m = std::max(1UL, 24952: (__b + __log2r - 1UL) / __log2r); 24952: _RealType __ret; 24952: _RealType __sum = _RealType(0); 24952: _RealType __tmp = _RealType(1); 24952: for (size_t __k = __m; __k != 0; --__k) 24952: { 24952: __sum += _RealType(__urng() - __urng.min()) * __tmp; 24952: __tmp *= __r; 24952: } 24952: __ret = __sum / __tmp; 24952: if (__builtin_expect(__ret >= _RealType(1), 0)) 24952: { 24952: 24952: __ret = std::nextafter(_RealType(1), _RealType(0)); 24952: 24952: 24952: 24952: 24952: } 24952: return __ret; 24952: } 24952: 24952: 24952: } 24952: # 54 "/usr/include/c++/13/random" 2 3 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/util/random.h" 2 24952: 24952: 24952: 24952: 24952: # 18 "/build/reproducible-path/rocksdb-8.9.1/util/random.h" 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: class Random { 24952: private: 24952: enum : uint32_t { 24952: M = 2147483647L 24952: }; 24952: enum : uint64_t { 24952: A = 16807 24952: }; 24952: 24952: uint32_t seed_; 24952: 24952: static uint32_t GoodSeed(uint32_t s) { return (s & M) != 0 ? (s & M) : 1; } 24952: 24952: public: 24952: 24952: enum : uint32_t { kMaxNext = M }; 24952: 24952: explicit Random(uint32_t s) : seed_(GoodSeed(s)) {} 24952: 24952: void Reset(uint32_t s) { seed_ = GoodSeed(s); } 24952: 24952: uint32_t Next() { 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint64_t product = seed_ * A; 24952: 24952: 24952: seed_ = static_cast((product >> 31) + (product & M)); 24952: 24952: 24952: 24952: if (seed_ > M) { 24952: seed_ -= M; 24952: } 24952: return seed_; 24952: } 24952: 24952: uint64_t Next64() { return (uint64_t{Next()} << 32) | Next(); } 24952: 24952: 24952: 24952: uint32_t Uniform(int n) { return Next() % n; } 24952: 24952: 24952: 24952: bool OneIn(int n) { return Uniform(n) == 0; } 24952: 24952: 24952: 24952: bool OneInOpt(int n) { return n > 0 && OneIn(n); } 24952: 24952: 24952: 24952: 24952: bool PercentTrue(int percentage) { 24952: return static_cast(Uniform(100)) < percentage; 24952: } 24952: 24952: 24952: 24952: 24952: uint32_t Skewed(int max_log) { return Uniform(1 << Uniform(max_log + 1)); } 24952: 24952: 24952: std::string RandomString(int len); 24952: 24952: 24952: std::string HumanReadableString(int len); 24952: 24952: 24952: std::string RandomBinaryString(int len); 24952: 24952: 24952: 24952: static Random* GetTLSInstance(); 24952: }; 24952: 24952: 24952: 24952: 24952: class Random32 { 24952: private: 24952: std::mt19937 generator_; 24952: 24952: public: 24952: explicit Random32(uint32_t s) : generator_(s) {} 24952: 24952: 24952: uint32_t Next() { return static_cast(generator_()); } 24952: 24952: 24952: 24952: uint32_t Uniform(uint32_t n) { 24952: return static_cast( 24952: std::uniform_int_distribution( 24952: 0, n - 1)(generator_)); 24952: } 24952: 24952: 24952: 24952: 24952: uint32_t Uniformish(uint32_t n) { 24952: 24952: return static_cast((uint64_t(generator_()) * uint64_t(n)) >> 32); 24952: } 24952: 24952: 24952: 24952: bool OneIn(uint32_t n) { return Uniform(n) == 0; } 24952: 24952: 24952: 24952: 24952: uint32_t Skewed(int max_log) { 24952: return Uniform(uint32_t{1} << Uniform(max_log + 1)); 24952: } 24952: 24952: 24952: void Seed(uint32_t new_seed) { generator_.seed(new_seed); } 24952: }; 24952: 24952: 24952: class Random64 { 24952: private: 24952: std::mt19937_64 generator_; 24952: 24952: public: 24952: explicit Random64(uint64_t s) : generator_(s) {} 24952: 24952: 24952: uint64_t Next() { return generator_(); } 24952: 24952: 24952: 24952: uint64_t Uniform(uint64_t n) { 24952: return std::uniform_int_distribution(0, n - 1)(generator_); 24952: } 24952: 24952: 24952: 24952: bool OneIn(uint64_t n) { return Uniform(n) == 0; } 24952: 24952: 24952: 24952: 24952: uint64_t Skewed(int max_log) { 24952: return Uniform(uint64_t(1) << Uniform(max_log + 1)); 24952: } 24952: }; 24952: 24952: 24952: template 24952: void RandomShuffle(RandomIt first, RandomIt last, uint32_t seed) { 24952: std::mt19937 rng(seed); 24952: std::shuffle(first, last, rng); 24952: } 24952: 24952: 24952: template 24952: void RandomShuffle(RandomIt first, RandomIt last) { 24952: RandomShuffle(first, last, std::random_device{}()); 24952: } 24952: 24952: } 24952: # 18 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: template 24952: class CoreLocalArray { 24952: public: 24952: CoreLocalArray(); 24952: 24952: size_t Size() const; 24952: 24952: 24952: T* Access() const; 24952: 24952: 24952: 24952: std::pair AccessElementAndIndex() const; 24952: 24952: 24952: T* AccessAtCore(size_t core_idx) const; 24952: 24952: private: 24952: std::unique_ptr data_; 24952: int size_shift_; 24952: }; 24952: 24952: template 24952: CoreLocalArray::CoreLocalArray() { 24952: int num_cpus = static_cast(std::thread::hardware_concurrency()); 24952: 24952: size_shift_ = 3; 24952: while (1 << size_shift_ < num_cpus) { 24952: ++size_shift_; 24952: } 24952: data_.reset(new T[static_cast(1) << size_shift_]); 24952: } 24952: 24952: template 24952: size_t CoreLocalArray::Size() const { 24952: return static_cast(1) << size_shift_; 24952: } 24952: 24952: template 24952: T* CoreLocalArray::Access() const { 24952: return AccessElementAndIndex().first; 24952: } 24952: 24952: template 24952: std::pair CoreLocalArray::AccessElementAndIndex() const { 24952: int cpuid = port::PhysicalCoreID(); 24952: size_t core_idx; 24952: if ((__builtin_expect((cpuid < 0), 0))) { 24952: 24952: core_idx = Random::GetTLSInstance()->Uniform(1 << size_shift_); 24952: } else { 24952: core_idx = static_cast(BottomNBits(cpuid, size_shift_)); 24952: } 24952: return {AccessAtCore(core_idx), core_idx}; 24952: } 24952: 24952: template 24952: T* CoreLocalArray::AccessAtCore(size_t core_idx) const { 24952: 24952: # 81 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 3 4 24952: (static_cast ( 24952: # 81 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 24952: core_idx < static_cast(1) << size_shift_ 24952: # 81 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 81 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 24952: "core_idx < static_cast(1) << size_shift_" 24952: # 81 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 3 4 24952: , "./util/core_local.h", 81, __extension__ __PRETTY_FUNCTION__)) 24952: # 81 "/build/reproducible-path/rocksdb-8.9.1/util/core_local.h" 24952: ; 24952: return &data_[core_idx]; 24952: } 24952: 24952: } 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 24952: 24952: # 1 "/usr/include/assert.h" 1 3 4 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 2 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/fastrange.h" 1 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/util/fastrange.h" 24952: 24952: # 31 "/build/reproducible-path/rocksdb-8.9.1/util/fastrange.h" 24952: namespace rocksdb { 24952: 24952: namespace detail { 24952: 24952: 24952: template 24952: struct FastRangeGenericImpl { 24952: 24952: }; 24952: 24952: template 24952: struct FastRangeGenericImpl { 24952: static inline Range Fn(uint32_t hash, Range range) { 24952: static_assert(std::is_unsigned::value, "must be unsigned"); 24952: static_assert(sizeof(Range) <= sizeof(uint32_t), 24952: "cannot be larger than hash (32 bits)"); 24952: 24952: uint64_t product = uint64_t{range} * hash; 24952: return static_cast(product >> 32); 24952: } 24952: }; 24952: 24952: template 24952: struct FastRangeGenericImpl { 24952: static inline Range Fn(uint64_t hash, Range range) { 24952: static_assert(std::is_unsigned::value, "must be unsigned"); 24952: static_assert(sizeof(Range) <= sizeof(uint64_t), 24952: "cannot be larger than hash (64 bits)"); 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/util/fastrange.h" 24952: uint64_t range64 = range; 24952: uint64_t tmp = uint64_t{range64 & 0xffffFFFF} * uint64_t{hash & 0xffffFFFF}; 24952: tmp >>= 32; 24952: tmp += uint64_t{range64 & 0xffffFFFF} * uint64_t{hash >> 32}; 24952: 24952: uint64_t tmp2 = uint64_t{range64 >> 32} * uint64_t{hash & 0xffffFFFF}; 24952: tmp += static_cast(tmp2); 24952: tmp >>= 32; 24952: tmp += (tmp2 >> 32); 24952: tmp += uint64_t{range64 >> 32} * uint64_t{hash >> 32}; 24952: return static_cast(tmp); 24952: 24952: } 24952: }; 24952: 24952: } 24952: # 96 "/build/reproducible-path/rocksdb-8.9.1/util/fastrange.h" 24952: template 24952: inline Range FastRangeGeneric(Hash hash, Range range) { 24952: return detail::FastRangeGenericImpl::Fn(hash, range); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: inline size_t FastRange64(uint64_t hash, size_t range) { 24952: return FastRangeGeneric(hash, range); 24952: } 24952: 24952: 24952: inline uint32_t FastRange32(uint32_t hash, uint32_t range) { 24952: return FastRangeGeneric(hash, range); 24952: } 24952: 24952: } 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/hash.h" 1 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/util/hash.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: extern uint64_t Hash64(const char* data, size_t n, uint64_t seed); 24952: 24952: 24952: extern uint64_t Hash64(const char* data, size_t n); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline uint64_t NPHash64(const char* data, size_t n, uint64_t seed) { 24952: 24952: 24952: 24952: 24952: 24952: return Hash64(data, n, seed); 24952: 24952: } 24952: 24952: 24952: inline uint64_t NPHash64(const char* data, size_t n) { 24952: 24952: 24952: 24952: 24952: 24952: return Hash64(data, n); 24952: 24952: } 24952: 24952: 24952: 24952: void Hash2x64(const char* data, size_t n, uint64_t* high64, uint64_t* low64); 24952: void Hash2x64(const char* data, size_t n, uint64_t seed, uint64_t* high64, 24952: uint64_t* low64); 24952: 24952: 24952: 24952: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, 24952: uint64_t* out_high64, uint64_t* out_low64); 24952: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 24952: uint64_t* out_high64, uint64_t* out_low64); 24952: 24952: 24952: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, 24952: uint64_t* out_high64, uint64_t* out_low64); 24952: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 24952: uint64_t* out_high64, uint64_t* out_low64); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern uint32_t Hash(const char* data, size_t n, uint32_t seed); 24952: 24952: 24952: inline uint32_t BloomHash(const Slice& key) { 24952: return Hash(key.data(), key.size(), 0xbc9f1d34); 24952: } 24952: 24952: inline uint64_t GetSliceHash64(const Slice& key) { 24952: return Hash64(key.data(), key.size()); 24952: } 24952: 24952: 24952: extern uint64_t (*kGetSliceNPHash64UnseededFnPtr)(const Slice&); 24952: 24952: inline uint64_t GetSliceNPHash64(const Slice& s) { 24952: return NPHash64(s.data(), s.size()); 24952: } 24952: 24952: inline uint64_t GetSliceNPHash64(const Slice& s, uint64_t seed) { 24952: return NPHash64(s.data(), s.size(), seed); 24952: } 24952: 24952: 24952: 24952: extern uint64_t GetSlicePartsNPHash64(const SliceParts& data, uint64_t seed); 24952: 24952: inline size_t GetSliceRangedNPHash(const Slice& s, size_t range) { 24952: return FastRange64(NPHash64(s.data(), s.size()), range); 24952: } 24952: 24952: 24952: inline uint32_t GetSliceHash(const Slice& s) { 24952: return Hash(s.data(), s.size(), 397); 24952: } 24952: 24952: 24952: inline uint32_t Upper32of64(uint64_t v) { 24952: return static_cast(v >> 32); 24952: } 24952: inline uint32_t Lower32of64(uint64_t v) { return static_cast(v); } 24952: 24952: 24952: struct SliceHasher32 { 24952: uint32_t operator()(const Slice& s) const { return GetSliceHash(s); } 24952: }; 24952: struct SliceNPHasher64 { 24952: uint64_t operator()(const Slice& s, uint64_t seed = 0) const { 24952: return GetSliceNPHash64(s, seed); 24952: } 24952: }; 24952: 24952: } 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 2 24952: 24952: namespace rocksdb { 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 24952: class MutexLock { 24952: public: 24952: explicit MutexLock(port::Mutex *mu) : mu_(mu) { this->mu_->Lock(); } 24952: 24952: MutexLock(const MutexLock &) = delete; 24952: void operator=(const MutexLock &) = delete; 24952: 24952: ~MutexLock() { this->mu_->Unlock(); } 24952: 24952: private: 24952: port::Mutex *const mu_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class ReadLock { 24952: public: 24952: explicit ReadLock(port::RWMutex *mu) : mu_(mu) { this->mu_->ReadLock(); } 24952: 24952: ReadLock(const ReadLock &) = delete; 24952: void operator=(const ReadLock &) = delete; 24952: 24952: ~ReadLock() { this->mu_->ReadUnlock(); } 24952: 24952: private: 24952: port::RWMutex *const mu_; 24952: }; 24952: 24952: 24952: 24952: 24952: class ReadUnlock { 24952: public: 24952: explicit ReadUnlock(port::RWMutex *mu) : mu_(mu) { mu->AssertHeld(); } 24952: 24952: ReadUnlock(const ReadUnlock &) = delete; 24952: ReadUnlock &operator=(const ReadUnlock &) = delete; 24952: 24952: ~ReadUnlock() { mu_->ReadUnlock(); } 24952: 24952: private: 24952: port::RWMutex *const mu_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class WriteLock { 24952: public: 24952: explicit WriteLock(port::RWMutex *mu) : mu_(mu) { this->mu_->WriteLock(); } 24952: 24952: WriteLock(const WriteLock &) = delete; 24952: void operator=(const WriteLock &) = delete; 24952: 24952: ~WriteLock() { this->mu_->WriteUnlock(); } 24952: 24952: private: 24952: port::RWMutex *const mu_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: class SpinMutex { 24952: public: 24952: SpinMutex() : locked_(false) {} 24952: 24952: bool try_lock() { 24952: auto currently_locked = locked_.load(std::memory_order_relaxed); 24952: return !currently_locked && 24952: locked_.compare_exchange_weak(currently_locked, true, 24952: std::memory_order_acquire, 24952: std::memory_order_relaxed); 24952: } 24952: 24952: void lock() { 24952: for (size_t tries = 0;; ++tries) { 24952: if (try_lock()) { 24952: 24952: break; 24952: } 24952: port::AsmVolatilePause(); 24952: if (tries > 100) { 24952: std::this_thread::yield(); 24952: } 24952: } 24952: } 24952: 24952: void unlock() { locked_.store(false, std::memory_order_release); } 24952: 24952: private: 24952: std::atomic locked_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct alignas(64U) CacheAlignedWrapper { 24952: T obj_; 24952: }; 24952: template 24952: struct Unwrap { 24952: using type = T; 24952: static type &Go(T &t) { return t; } 24952: }; 24952: template 24952: struct Unwrap> { 24952: using type = T; 24952: static type &Go(CacheAlignedWrapper &t) { return t.obj_; } 24952: }; 24952: # 165 "/build/reproducible-path/rocksdb-8.9.1/util/mutexlock.h" 24952: template 24952: class Striped { 24952: public: 24952: explicit Striped(size_t stripe_count) 24952: : stripe_count_(stripe_count), data_(new T[stripe_count]) {} 24952: 24952: using Unwrapped = typename Unwrap::type; 24952: Unwrapped &Get(const Key &key, uint64_t seed = 0) { 24952: size_t index = FastRangeGeneric(hash_(key, seed), stripe_count_); 24952: return Unwrap::Go(data_[index]); 24952: } 24952: 24952: size_t ApproximateMemoryUsage() const { 24952: 24952: 24952: return sizeof(*this) + stripe_count_ * sizeof(T); 24952: } 24952: 24952: private: 24952: size_t stripe_count_; 24952: std::unique_ptr data_; 24952: Hash hash_; 24952: }; 24952: 24952: } 24952: # 18 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 2 24952: # 30 "/build/reproducible-path/rocksdb-8.9.1/monitoring/statistics_impl.h" 24952: namespace rocksdb { 24952: 24952: enum TickersInternal : uint32_t { 24952: INTERNAL_TICKER_ENUM_START = TICKER_ENUM_MAX, 24952: INTERNAL_TICKER_ENUM_MAX 24952: }; 24952: 24952: enum HistogramsInternal : uint32_t { 24952: INTERNAL_HISTOGRAM_START = HISTOGRAM_ENUM_MAX, 24952: INTERNAL_HISTOGRAM_ENUM_MAX 24952: }; 24952: 24952: class StatisticsImpl : public Statistics { 24952: public: 24952: StatisticsImpl(std::shared_ptr stats); 24952: virtual ~StatisticsImpl(); 24952: const char* Name() const override { return kClassName(); } 24952: static const char* kClassName() { return "BasicStatistics"; } 24952: 24952: virtual uint64_t getTickerCount(uint32_t ticker_type) const override; 24952: virtual void histogramData(uint32_t histogram_type, 24952: HistogramData* const data) const override; 24952: std::string getHistogramString(uint32_t histogram_type) const override; 24952: 24952: virtual void setTickerCount(uint32_t ticker_type, uint64_t count) override; 24952: virtual uint64_t getAndResetTickerCount(uint32_t ticker_type) override; 24952: virtual void recordTick(uint32_t ticker_type, uint64_t count) override; 24952: 24952: 24952: 24952: 24952: void measureTime(uint32_t histogramType, uint64_t time) override { 24952: recordInHistogram(histogramType, time); 24952: } 24952: virtual void recordInHistogram(uint32_t histogram_type, 24952: uint64_t value) override; 24952: 24952: virtual Status Reset() override; 24952: virtual std::string ToString() const override; 24952: virtual bool getTickerMap(std::map*) const override; 24952: virtual bool HistEnabledForType(uint32_t type) const override; 24952: 24952: const Customizable* Inner() const override { return stats_.get(); } 24952: 24952: private: 24952: 24952: std::shared_ptr stats_; 24952: 24952: 24952: mutable port::Mutex aggregate_lock_; 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct alignas(64U) StatisticsData { 24952: std::atomic_uint_fast64_t tickers_[INTERNAL_TICKER_ENUM_MAX] = {{0}}; 24952: HistogramImpl histograms_[INTERNAL_HISTOGRAM_ENUM_MAX]; 24952: 24952: char 24952: padding[(64U - 24952: (INTERNAL_TICKER_ENUM_MAX * sizeof(std::atomic_uint_fast64_t) + 24952: INTERNAL_HISTOGRAM_ENUM_MAX * sizeof(HistogramImpl)) % 24952: 64U)] ; 24952: 24952: void* operator new(size_t s) { return port::cacheline_aligned_alloc(s); } 24952: void* operator new[](size_t s) { return port::cacheline_aligned_alloc(s); } 24952: void operator delete(void* p) { port::cacheline_aligned_free(p); } 24952: void operator delete[](void* p) { port::cacheline_aligned_free(p); } 24952: }; 24952: 24952: 24952: static_assert(sizeof(StatisticsData) % 64U == 0, 24952: "Expected " "64U" "-byte aligned"); 24952: 24952: 24952: CoreLocalArray per_core_stats_; 24952: 24952: uint64_t getTickerCountLocked(uint32_t ticker_type) const; 24952: std::unique_ptr getHistogramImplLocked( 24952: uint32_t histogram_type) const; 24952: void setTickerCountLocked(uint32_t ticker_type, uint64_t count); 24952: }; 24952: 24952: 24952: inline void RecordInHistogram(Statistics* statistics, uint32_t histogram_type, 24952: uint64_t value) { 24952: if (statistics) { 24952: statistics->recordInHistogram(histogram_type, value); 24952: } 24952: } 24952: 24952: inline void RecordTimeToHistogram(Statistics* statistics, 24952: uint32_t histogram_type, uint64_t value) { 24952: if (statistics) { 24952: statistics->reportTimeToHistogram(histogram_type, value); 24952: } 24952: } 24952: 24952: inline void RecordTick(Statistics* statistics, uint32_t ticker_type, 24952: uint64_t count = 1) { 24952: if (statistics) { 24952: statistics->recordTick(ticker_type, count); 24952: } 24952: } 24952: 24952: inline void SetTickerCount(Statistics* statistics, uint32_t ticker_type, 24952: uint64_t count) { 24952: if (statistics) { 24952: statistics->setTickerCount(ticker_type, count); 24952: } 24952: } 24952: 24952: } 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_step_timer.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/system_clock.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/system_clock.h" 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/chrono" 1 3 24952: # 33 "/usr/include/c++/13/chrono" 3 24952: 24952: # 34 "/usr/include/c++/13/chrono" 3 24952: # 59 "/usr/include/c++/13/chrono" 3 24952: 24952: # 59 "/usr/include/c++/13/chrono" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 76 "/usr/include/c++/13/chrono" 3 24952: namespace chrono 24952: { 24952: # 3298 "/usr/include/c++/13/chrono" 3 24952: } 24952: # 3326 "/usr/include/c++/13/chrono" 3 24952: 24952: } 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/system_clock.h" 2 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/system_clock.h" 24952: 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/system_clock.h" 24952: namespace rocksdb { 24952: struct ConfigOptions; 24952: 24952: 24952: 24952: class SystemClock : public Customizable { 24952: public: 24952: ~SystemClock() override {} 24952: 24952: static const char* Type() { return "SystemClock"; } 24952: static Status CreateFromString(const ConfigOptions& options, 24952: const std::string& value, 24952: std::shared_ptr* result); 24952: 24952: virtual const char* Name() const override = 0; 24952: 24952: 24952: 24952: static const char* kDefaultName() { return "DefaultClock"; } 24952: 24952: 24952: 24952: static const std::shared_ptr& Default(); 24952: 24952: 24952: 24952: 24952: virtual uint64_t NowMicros() = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 24952: 24952: 24952: 24952: virtual uint64_t CPUMicros() { return 0; } 24952: 24952: 24952: 24952: 24952: virtual uint64_t CPUNanos() { return CPUMicros() * 1000; } 24952: 24952: 24952: virtual void SleepForMicroseconds(int micros) = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual bool TimedWait(port::CondVar* cv, std::chrono::microseconds deadline); 24952: 24952: 24952: 24952: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 24952: 24952: 24952: virtual std::string TimeToString(uint64_t time) = 0; 24952: }; 24952: 24952: 24952: 24952: class SystemClockWrapper : public SystemClock { 24952: public: 24952: explicit SystemClockWrapper(const std::shared_ptr& t); 24952: 24952: uint64_t NowMicros() override { return target_->NowMicros(); } 24952: 24952: uint64_t NowNanos() override { return target_->NowNanos(); } 24952: 24952: uint64_t CPUMicros() override { return target_->CPUMicros(); } 24952: 24952: uint64_t CPUNanos() override { return target_->CPUNanos(); } 24952: 24952: virtual void SleepForMicroseconds(int micros) override { 24952: return target_->SleepForMicroseconds(micros); 24952: } 24952: 24952: virtual bool TimedWait(port::CondVar* cv, 24952: std::chrono::microseconds deadline) override { 24952: return target_->TimedWait(cv, deadline); 24952: } 24952: 24952: Status GetCurrentTime(int64_t* unix_time) override { 24952: return target_->GetCurrentTime(unix_time); 24952: } 24952: 24952: std::string TimeToString(uint64_t time) override { 24952: return target_->TimeToString(time); 24952: } 24952: 24952: Status PrepareOptions(const ConfigOptions& options) override; 24952: std::string SerializeOptions(const ConfigOptions& config_options, 24952: const std::string& header) const override; 24952: const Customizable* Inner() const override { return target_.get(); } 24952: 24952: protected: 24952: std::shared_ptr target_; 24952: }; 24952: 24952: } 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_step_timer.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: class PerfStepTimer { 24952: public: 24952: explicit PerfStepTimer( 24952: uint64_t* metric, SystemClock* clock = nullptr, bool use_cpu_time = false, 24952: PerfLevel enable_level = PerfLevel::kEnableTimeExceptForMutex, 24952: Statistics* statistics = nullptr, uint32_t ticker_type = 0) 24952: : perf_counter_enabled_(perf_level >= enable_level), 24952: use_cpu_time_(use_cpu_time), 24952: ticker_type_(ticker_type), 24952: clock_((perf_counter_enabled_ || statistics != nullptr) 24952: ? (clock ? clock : SystemClock::Default().get()) 24952: : nullptr), 24952: start_(0), 24952: metric_(metric), 24952: statistics_(statistics) {} 24952: 24952: ~PerfStepTimer() { Stop(); } 24952: 24952: void Start() { 24952: if (perf_counter_enabled_ || statistics_ != nullptr) { 24952: start_ = time_now(); 24952: } 24952: } 24952: 24952: void Measure() { 24952: if (start_) { 24952: uint64_t now = time_now(); 24952: *metric_ += now - start_; 24952: start_ = now; 24952: } 24952: } 24952: 24952: void Stop() { 24952: if (start_) { 24952: uint64_t duration = time_now() - start_; 24952: if (perf_counter_enabled_) { 24952: *metric_ += duration; 24952: } 24952: 24952: if (statistics_ != nullptr) { 24952: RecordTick(statistics_, ticker_type_, duration); 24952: } 24952: start_ = 0; 24952: } 24952: } 24952: 24952: private: 24952: uint64_t time_now() { 24952: if (!use_cpu_time_) { 24952: return clock_->NowNanos(); 24952: } else { 24952: return clock_->CPUNanos(); 24952: } 24952: } 24952: 24952: const bool perf_counter_enabled_; 24952: const bool use_cpu_time_; 24952: uint32_t ticker_type_; 24952: SystemClock* const clock_; 24952: uint64_t start_; 24952: uint64_t* metric_; 24952: Statistics* statistics_; 24952: }; 24952: 24952: } 24952: # 8 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_context_imp.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_context.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_context.h" 24952: namespace rocksdb { 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_context.h" 24952: struct PerfContextByLevelBase { 24952: 24952: 24952: 24952: uint64_t bloom_filter_useful = 0; 24952: 24952: uint64_t bloom_filter_full_positive = 0; 24952: 24952: 24952: uint64_t bloom_filter_full_true_positive = 0; 24952: 24952: 24952: 24952: uint64_t user_key_return_count = 0; 24952: 24952: 24952: uint64_t get_from_table_nanos = 0; 24952: 24952: uint64_t block_cache_hit_count = 0; 24952: uint64_t block_cache_miss_count = 0; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct PerfContextByLevel : public PerfContextByLevelBase { 24952: void Reset(); 24952: }; 24952: # 67 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_context.h" 24952: struct PerfContextBase { 24952: uint64_t user_key_comparison_count; 24952: uint64_t block_cache_hit_count; 24952: uint64_t block_read_count; 24952: uint64_t block_read_byte; 24952: uint64_t block_read_time; 24952: 24952: uint64_t block_read_cpu_time; 24952: uint64_t block_cache_index_hit_count; 24952: 24952: uint64_t block_cache_standalone_handle_count; 24952: 24952: 24952: uint64_t block_cache_real_handle_count; 24952: uint64_t index_block_read_count; 24952: uint64_t block_cache_filter_hit_count; 24952: uint64_t filter_block_read_count; 24952: uint64_t compression_dict_block_read_count; 24952: 24952: 24952: uint64_t secondary_cache_hit_count; 24952: 24952: uint64_t compressed_sec_cache_insert_real_count; 24952: 24952: uint64_t compressed_sec_cache_insert_dummy_count; 24952: 24952: uint64_t compressed_sec_cache_uncompressed_bytes; 24952: 24952: uint64_t compressed_sec_cache_compressed_bytes; 24952: 24952: uint64_t block_checksum_time; 24952: uint64_t block_decompress_time; 24952: 24952: uint64_t get_read_bytes; 24952: uint64_t multiget_read_bytes; 24952: uint64_t iter_read_bytes; 24952: 24952: uint64_t blob_cache_hit_count; 24952: uint64_t blob_read_count; 24952: uint64_t blob_read_byte; 24952: uint64_t blob_read_time; 24952: uint64_t blob_checksum_time; 24952: uint64_t blob_decompress_time; 24952: # 128 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_context.h" 24952: uint64_t internal_key_skipped_count; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint64_t internal_delete_skipped_count; 24952: 24952: 24952: 24952: uint64_t internal_recent_skipped_count; 24952: 24952: 24952: 24952: uint64_t internal_merge_count; 24952: 24952: 24952: 24952: uint64_t internal_merge_point_lookup_count; 24952: 24952: 24952: 24952: uint64_t internal_range_del_reseek_count; 24952: 24952: uint64_t get_snapshot_time; 24952: uint64_t get_from_memtable_time; 24952: uint64_t get_from_memtable_count; 24952: 24952: uint64_t get_post_process_time; 24952: uint64_t get_from_output_files_time; 24952: 24952: uint64_t seek_on_memtable_time; 24952: 24952: 24952: uint64_t seek_on_memtable_count; 24952: 24952: uint64_t next_on_memtable_count; 24952: 24952: uint64_t prev_on_memtable_count; 24952: 24952: uint64_t seek_child_seek_time; 24952: 24952: uint64_t seek_child_seek_count; 24952: uint64_t seek_min_heap_time; 24952: uint64_t seek_max_heap_time; 24952: 24952: uint64_t seek_internal_seek_time; 24952: 24952: uint64_t find_next_user_entry_time; 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint64_t write_wal_time; 24952: 24952: uint64_t write_memtable_time; 24952: 24952: uint64_t write_delay_time; 24952: 24952: 24952: uint64_t write_scheduling_flushes_compactions_time; 24952: 24952: uint64_t write_pre_and_post_process_time; 24952: 24952: 24952: uint64_t write_thread_wait_nanos; 24952: 24952: 24952: uint64_t db_mutex_lock_nanos; 24952: 24952: uint64_t db_condition_wait_nanos; 24952: 24952: uint64_t merge_operator_time_nanos; 24952: 24952: 24952: uint64_t read_index_block_nanos; 24952: 24952: uint64_t read_filter_block_nanos; 24952: 24952: uint64_t new_table_block_iter_nanos; 24952: 24952: uint64_t new_table_iterator_nanos; 24952: 24952: uint64_t block_seek_nanos; 24952: 24952: uint64_t find_table_nanos; 24952: 24952: uint64_t bloom_memtable_hit_count; 24952: 24952: uint64_t bloom_memtable_miss_count; 24952: 24952: uint64_t bloom_sst_hit_count; 24952: 24952: uint64_t bloom_sst_miss_count; 24952: 24952: 24952: uint64_t key_lock_wait_time; 24952: 24952: uint64_t key_lock_wait_count; 24952: 24952: 24952: 24952: uint64_t env_new_sequential_file_nanos; 24952: uint64_t env_new_random_access_file_nanos; 24952: uint64_t env_new_writable_file_nanos; 24952: uint64_t env_reuse_writable_file_nanos; 24952: uint64_t env_new_random_rw_file_nanos; 24952: uint64_t env_new_directory_nanos; 24952: uint64_t env_file_exists_nanos; 24952: uint64_t env_get_children_nanos; 24952: uint64_t env_get_children_file_attributes_nanos; 24952: uint64_t env_delete_file_nanos; 24952: uint64_t env_create_dir_nanos; 24952: uint64_t env_create_dir_if_missing_nanos; 24952: uint64_t env_delete_dir_nanos; 24952: uint64_t env_get_file_size_nanos; 24952: uint64_t env_get_file_modification_time_nanos; 24952: uint64_t env_rename_file_nanos; 24952: uint64_t env_link_file_nanos; 24952: uint64_t env_lock_file_nanos; 24952: uint64_t env_unlock_file_nanos; 24952: uint64_t env_new_logger_nanos; 24952: 24952: uint64_t get_cpu_nanos; 24952: uint64_t iter_next_cpu_nanos; 24952: uint64_t iter_prev_cpu_nanos; 24952: uint64_t iter_seek_cpu_nanos; 24952: 24952: 24952: 24952: 24952: uint64_t iter_next_count; 24952: uint64_t iter_prev_count; 24952: uint64_t iter_seek_count; 24952: 24952: 24952: uint64_t encrypt_data_nanos; 24952: 24952: uint64_t decrypt_data_nanos; 24952: 24952: uint64_t number_async_seek; 24952: }; 24952: 24952: struct PerfContext : public PerfContextBase { 24952: ~PerfContext(); 24952: 24952: PerfContext() {} 24952: 24952: PerfContext(const PerfContext&); 24952: PerfContext& operator=(const PerfContext&); 24952: PerfContext(PerfContext&&) noexcept; 24952: 24952: void Reset(); 24952: 24952: std::string ToString(bool exclude_zero_counters = false) const; 24952: 24952: 24952: void EnablePerLevelPerfContext(); 24952: 24952: 24952: void DisablePerLevelPerfContext(); 24952: 24952: 24952: void ClearPerLevelPerfContext(); 24952: 24952: std::map* level_to_perf_context = nullptr; 24952: bool per_level_perf_context_enabled = false; 24952: 24952: void copyMetrics(const PerfContext* other) noexcept; 24952: }; 24952: # 312 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/perf_context.h" 24952: PerfContext* get_perf_context(); 24952: 24952: } 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_context_imp.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/stop_watch.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: 24952: class StopWatch { 24952: public: 24952: StopWatch(SystemClock* clock, Statistics* statistics, 24952: const uint32_t hist_type_1, 24952: const uint32_t hist_type_2 = Histograms::HISTOGRAM_ENUM_MAX, 24952: uint64_t* elapsed = nullptr, bool overwrite = true, 24952: bool delay_enabled = false) 24952: : clock_(clock), 24952: statistics_(statistics), 24952: hist_type_1_(statistics && statistics->HistEnabledForType(hist_type_1) 24952: ? hist_type_1 24952: : Histograms::HISTOGRAM_ENUM_MAX), 24952: hist_type_2_(statistics && statistics->HistEnabledForType(hist_type_2) 24952: ? hist_type_2 24952: : Histograms::HISTOGRAM_ENUM_MAX), 24952: elapsed_(elapsed), 24952: overwrite_(overwrite), 24952: stats_enabled_(statistics && 24952: statistics->get_stats_level() > 24952: StatsLevel::kExceptTimers && 24952: (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX || 24952: hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX)), 24952: delay_enabled_(delay_enabled), 24952: total_delay_(0), 24952: delay_start_time_(0), 24952: start_time_((stats_enabled_ || elapsed != nullptr) ? clock->NowMicros() 24952: : 0) {} 24952: 24952: ~StopWatch() { 24952: if (elapsed_) { 24952: if (overwrite_) { 24952: *elapsed_ = clock_->NowMicros() - start_time_; 24952: } else { 24952: *elapsed_ += clock_->NowMicros() - start_time_; 24952: } 24952: } 24952: if (elapsed_ && delay_enabled_) { 24952: *elapsed_ -= total_delay_; 24952: } 24952: if (stats_enabled_) { 24952: const auto time = (elapsed_ != nullptr) 24952: ? *elapsed_ 24952: : (clock_->NowMicros() - start_time_); 24952: if (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX) { 24952: statistics_->reportTimeToHistogram(hist_type_1_, time); 24952: } 24952: if (hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX) { 24952: statistics_->reportTimeToHistogram(hist_type_2_, time); 24952: } 24952: } 24952: } 24952: 24952: void DelayStart() { 24952: 24952: 24952: if (elapsed_ && delay_enabled_ && delay_start_time_ == 0) { 24952: delay_start_time_ = clock_->NowMicros(); 24952: } 24952: } 24952: 24952: void DelayStop() { 24952: if (elapsed_ && delay_enabled_ && delay_start_time_ != 0) { 24952: total_delay_ += clock_->NowMicros() - delay_start_time_; 24952: } 24952: 24952: 24952: delay_start_time_ = 0; 24952: } 24952: 24952: uint64_t GetDelay() const { return delay_enabled_ ? total_delay_ : 0; } 24952: 24952: uint64_t start_time() const { return start_time_; } 24952: 24952: private: 24952: SystemClock* clock_; 24952: Statistics* statistics_; 24952: const uint32_t hist_type_1_; 24952: const uint32_t hist_type_2_; 24952: uint64_t* elapsed_; 24952: bool overwrite_; 24952: bool stats_enabled_; 24952: bool delay_enabled_; 24952: uint64_t total_delay_; 24952: uint64_t delay_start_time_; 24952: const uint64_t start_time_; 24952: }; 24952: 24952: 24952: class StopWatchNano { 24952: public: 24952: explicit StopWatchNano(SystemClock* clock, bool auto_start = false) 24952: : clock_(clock), start_(0) { 24952: if (auto_start) { 24952: Start(); 24952: } 24952: } 24952: 24952: void Start() { start_ = clock_->NowNanos(); } 24952: 24952: uint64_t ElapsedNanos(bool reset = false) { 24952: auto now = clock_->NowNanos(); 24952: auto elapsed = now - start_; 24952: if (reset) { 24952: start_ = now; 24952: } 24952: return elapsed; 24952: } 24952: 24952: uint64_t ElapsedNanosSafe(bool reset = false) { 24952: return (clock_ != nullptr) ? ElapsedNanos(reset) : 0U; 24952: } 24952: 24952: bool IsStarted() { return start_ != 0; } 24952: 24952: private: 24952: SystemClock* clock_; 24952: uint64_t start_; 24952: }; 24952: 24952: } 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_context_imp.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern thread_local PerfContext perf_context; 24952: # 96 "/build/reproducible-path/rocksdb-8.9.1/monitoring/perf_context_imp.h" 24952: } 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/util/user_comparator_wrapper.h" 2 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: class UserComparatorWrapper { 24952: public: 24952: 24952: 24952: UserComparatorWrapper() : user_comparator_(nullptr) {} 24952: 24952: explicit UserComparatorWrapper(const Comparator* const user_cmp) 24952: : user_comparator_(user_cmp) {} 24952: 24952: ~UserComparatorWrapper() = default; 24952: 24952: const Comparator* user_comparator() const { return user_comparator_; } 24952: 24952: int Compare(const Slice& a, const Slice& b) const { 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 24952: return user_comparator_->Compare(a, b); 24952: } 24952: 24952: bool Equal(const Slice& a, const Slice& b) const { 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 24952: return user_comparator_->Equal(a, b); 24952: } 24952: 24952: int CompareTimestamp(const Slice& ts1, const Slice& ts2) const { 24952: return user_comparator_->CompareTimestamp(ts1, ts2); 24952: } 24952: 24952: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 24952: return user_comparator_->CompareWithoutTimestamp(a, b); 24952: } 24952: 24952: int CompareWithoutTimestamp(const Slice& a, bool a_has_ts, const Slice& b, 24952: bool b_has_ts) const { 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 24952: return user_comparator_->CompareWithoutTimestamp(a, a_has_ts, b, b_has_ts); 24952: } 24952: 24952: bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 24952: return user_comparator_->EqualWithoutTimestamp(a, b); 24952: } 24952: 24952: private: 24952: const Comparator* user_comparator_; 24952: }; 24952: 24952: } 24952: # 23 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class InternalKey; 24952: 24952: 24952: 24952: 24952: 24952: 24952: enum ValueType : unsigned char { 24952: kTypeDeletion = 0x0, 24952: kTypeValue = 0x1, 24952: kTypeMerge = 0x2, 24952: kTypeLogData = 0x3, 24952: kTypeColumnFamilyDeletion = 0x4, 24952: kTypeColumnFamilyValue = 0x5, 24952: kTypeColumnFamilyMerge = 0x6, 24952: kTypeSingleDeletion = 0x7, 24952: kTypeColumnFamilySingleDeletion = 0x8, 24952: kTypeBeginPrepareXID = 0x9, 24952: kTypeEndPrepareXID = 0xA, 24952: kTypeCommitXID = 0xB, 24952: kTypeRollbackXID = 0xC, 24952: kTypeNoop = 0xD, 24952: kTypeColumnFamilyRangeDeletion = 0xE, 24952: kTypeRangeDeletion = 0xF, 24952: kTypeColumnFamilyBlobIndex = 0x10, 24952: kTypeBlobIndex = 0x11, 24952: 24952: 24952: 24952: 24952: kTypeBeginPersistedPrepareXID = 0x12, 24952: 24952: 24952: 24952: kTypeBeginUnprepareXID = 0x13, 24952: kTypeDeletionWithTimestamp = 0x14, 24952: kTypeCommitXIDAndTimestamp = 0x15, 24952: kTypeWideColumnEntity = 0x16, 24952: kTypeColumnFamilyWideColumnEntity = 0x17, 24952: kTypeMaxValid, 24952: 24952: kMaxValue = 0x7F 24952: }; 24952: 24952: 24952: extern const ValueType kValueTypeForSeek; 24952: extern const ValueType kValueTypeForSeekForPrev; 24952: 24952: 24952: 24952: inline bool IsValueType(ValueType t) { 24952: return t <= kTypeMerge || kTypeSingleDeletion == t || kTypeBlobIndex == t || 24952: kTypeDeletionWithTimestamp == t || kTypeWideColumnEntity == t; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: inline bool IsExtendedValueType(ValueType t) { 24952: return IsValueType(t) || t == kTypeRangeDeletion || t == kTypeMaxValid; 24952: } 24952: 24952: 24952: 24952: static const SequenceNumber kMaxSequenceNumber = ((0x1ull << 56) - 1); 24952: 24952: static const SequenceNumber kDisableGlobalSequenceNumber = 24952: std::numeric_limits::max(); 24952: 24952: constexpr uint64_t kNumInternalBytes = 8; 24952: 24952: 24952: extern const std::string kDisableUserTimestamp; 24952: 24952: 24952: 24952: struct ParsedInternalKey { 24952: Slice user_key; 24952: SequenceNumber sequence; 24952: ValueType type; 24952: 24952: ParsedInternalKey() 24952: : sequence(kMaxSequenceNumber), 24952: type(kTypeDeletion) 24952: {} 24952: 24952: ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t) 24952: : user_key(u), sequence(seq), type(t) {} 24952: std::string DebugString(bool log_err_key, bool hex) const; 24952: 24952: void clear() { 24952: user_key.clear(); 24952: sequence = 0; 24952: type = kTypeDeletion; 24952: } 24952: 24952: void SetTimestamp(const Slice& ts) { 24952: 24952: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ts.size() <= user_key.size() 24952: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "ts.size() <= user_key.size()" 24952: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 130, __extension__ __PRETTY_FUNCTION__)) 24952: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: const char* addr = user_key.data() + user_key.size() - ts.size(); 24952: memcpy(const_cast(addr), ts.data(), ts.size()); 24952: } 24952: 24952: Slice GetTimestamp(size_t ts_sz) { 24952: 24952: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ts_sz <= user_key.size() 24952: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "ts_sz <= user_key.size()" 24952: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 136, __extension__ __PRETTY_FUNCTION__)) 24952: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: const char* addr = user_key.data() + user_key.size() - ts_sz; 24952: return Slice(const_cast(addr), ts_sz); 24952: } 24952: }; 24952: 24952: 24952: inline size_t InternalKeyEncodingLength(const ParsedInternalKey& key) { 24952: return key.user_key.size() + kNumInternalBytes; 24952: } 24952: 24952: 24952: inline uint64_t PackSequenceAndType(uint64_t seq, ValueType t) { 24952: 24952: # 149 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 149 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: seq <= kMaxSequenceNumber 24952: # 149 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 149 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "seq <= kMaxSequenceNumber" 24952: # 149 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 149, __extension__ __PRETTY_FUNCTION__)) 24952: # 149 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: 24952: 24952: # 151 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 151 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: IsExtendedValueType(t) || t == kTypeMaxValid 24952: # 151 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 151 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "IsExtendedValueType(t) || t == kTypeMaxValid" 24952: # 151 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 151, __extension__ __PRETTY_FUNCTION__)) 24952: # 151 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: return (seq << 8) | t; 24952: } 24952: 24952: 24952: 24952: inline void UnPackSequenceAndType(uint64_t packed, uint64_t* seq, 24952: ValueType* t) { 24952: *seq = packed >> 8; 24952: *t = static_cast(packed & 0xff); 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: EntryType GetEntryType(ValueType value_type); 24952: 24952: 24952: 24952: 24952: 24952: 24952: void AppendInternalKey(std::string* result, const ParsedInternalKey& key); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void AppendInternalKeyWithDifferentTimestamp(std::string* result, 24952: const ParsedInternalKey& key, 24952: const Slice& ts); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void AppendInternalKeyFooter(std::string* result, SequenceNumber s, 24952: ValueType t); 24952: 24952: 24952: 24952: 24952: 24952: 24952: void AppendKeyWithMinTimestamp(std::string* result, const Slice& key, 24952: size_t ts_sz); 24952: 24952: 24952: 24952: 24952: 24952: 24952: void AppendKeyWithMaxTimestamp(std::string* result, const Slice& key, 24952: size_t ts_sz); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void AppendUserKeyWithMinTimestamp(std::string* result, const Slice& key, 24952: size_t ts_sz); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void AppendUserKeyWithMaxTimestamp(std::string* result, const Slice& key, 24952: size_t ts_sz); 24952: # 237 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: void PadInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 24952: size_t ts_sz); 24952: # 247 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: void StripTimestampFromInternalKey(std::string* result, const Slice& key, 24952: size_t ts_sz); 24952: # 257 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: void ReplaceInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 24952: size_t ts_sz); 24952: 24952: 24952: 24952: 24952: 24952: Status ParseInternalKey(const Slice& internal_key, ParsedInternalKey* result, 24952: bool log_err_key); 24952: 24952: 24952: 24952: 24952: 24952: inline Slice ExtractUserKey(const Slice& internal_key) { 24952: 24952: # 272 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 272 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: internal_key.size() >= kNumInternalBytes 24952: # 272 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 272 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "internal_key.size() >= kNumInternalBytes" 24952: # 272 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 272, __extension__ __PRETTY_FUNCTION__)) 24952: # 272 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: return Slice(internal_key.data(), internal_key.size() - kNumInternalBytes); 24952: } 24952: 24952: 24952: 24952: inline Slice ExtractUserKeyAndStripTimestamp(const Slice& internal_key, 24952: size_t ts_sz) { 24952: Slice ret = internal_key; 24952: ret.remove_suffix(kNumInternalBytes + ts_sz); 24952: return ret; 24952: } 24952: 24952: 24952: 24952: inline Slice StripTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 24952: Slice ret = user_key; 24952: ret.remove_suffix(ts_sz); 24952: return ret; 24952: } 24952: 24952: 24952: 24952: inline Slice ExtractTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 24952: 24952: # 296 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 296 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: user_key.size() >= ts_sz 24952: # 296 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 296 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "user_key.size() >= ts_sz" 24952: # 296 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 296, __extension__ __PRETTY_FUNCTION__)) 24952: # 296 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: return Slice(user_key.data() + user_key.size() - ts_sz, ts_sz); 24952: } 24952: 24952: 24952: 24952: inline Slice ExtractTimestampFromKey(const Slice& internal_key, size_t ts_sz) { 24952: const size_t key_size = internal_key.size(); 24952: 24952: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: key_size >= kNumInternalBytes + ts_sz 24952: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "key_size >= kNumInternalBytes + ts_sz" 24952: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 304, __extension__ __PRETTY_FUNCTION__)) 24952: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: return Slice(internal_key.data() + key_size - ts_sz - kNumInternalBytes, 24952: ts_sz); 24952: } 24952: 24952: 24952: 24952: inline uint64_t ExtractInternalKeyFooter(const Slice& internal_key) { 24952: 24952: # 312 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 312 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: internal_key.size() >= kNumInternalBytes 24952: # 312 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 312 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "internal_key.size() >= kNumInternalBytes" 24952: # 312 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 312, __extension__ __PRETTY_FUNCTION__)) 24952: # 312 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: const size_t n = internal_key.size(); 24952: return DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 24952: } 24952: 24952: 24952: 24952: inline ValueType ExtractValueType(const Slice& internal_key) { 24952: uint64_t num = ExtractInternalKeyFooter(internal_key); 24952: unsigned char c = num & 0xff; 24952: return static_cast(c); 24952: } 24952: 24952: 24952: 24952: class InternalKeyComparator 24952: 24952: 24952: 24952: : public CompareInterface { 24952: private: 24952: UserComparatorWrapper user_comparator_; 24952: 24952: public: 24952: 24952: 24952: InternalKeyComparator() = default; 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit InternalKeyComparator(const Comparator* c) : user_comparator_(c) {} 24952: virtual ~InternalKeyComparator() {} 24952: 24952: int Compare(const Slice& a, const Slice& b) const override; 24952: 24952: bool Equal(const Slice& a, const Slice& b) const { 24952: 24952: 24952: return Compare(a, b) == 0; 24952: } 24952: 24952: 24952: int CompareKeySeq(const Slice& a, const Slice& b) const; 24952: int CompareKeySeq(const ParsedInternalKey& a, const Slice& b) const; 24952: 24952: const Comparator* user_comparator() const { 24952: return user_comparator_.user_comparator(); 24952: } 24952: 24952: int Compare(const InternalKey& a, const InternalKey& b) const; 24952: int Compare(const ParsedInternalKey& a, const ParsedInternalKey& b) const; 24952: int Compare(const Slice& a, const ParsedInternalKey& b) const; 24952: int Compare(const ParsedInternalKey& a, const Slice& b) const; 24952: 24952: 24952: 24952: 24952: int Compare(const Slice& a, SequenceNumber a_global_seqno, const Slice& b, 24952: SequenceNumber b_global_seqno) const; 24952: }; 24952: 24952: 24952: class InternalKey { 24952: private: 24952: std::string rep_; 24952: 24952: public: 24952: InternalKey() {} 24952: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t) { 24952: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, s, t)); 24952: } 24952: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t, Slice ts) { 24952: AppendInternalKeyWithDifferentTimestamp( 24952: &rep_, ParsedInternalKey(_user_key, s, t), ts); 24952: } 24952: 24952: 24952: 24952: void SetMaxPossibleForUserKey(const Slice& _user_key) { 24952: AppendInternalKey( 24952: &rep_, ParsedInternalKey(_user_key, 0, static_cast(0))); 24952: } 24952: 24952: 24952: 24952: void SetMinPossibleForUserKey(const Slice& _user_key) { 24952: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, kMaxSequenceNumber, 24952: kValueTypeForSeek)); 24952: } 24952: 24952: bool Valid() const { 24952: ParsedInternalKey parsed; 24952: return (ParseInternalKey(Slice(rep_), &parsed, false ) 24952: .ok()); 24952: } 24952: 24952: void DecodeFrom(const Slice& s) { rep_.assign(s.data(), s.size()); } 24952: Slice Encode() const { 24952: 24952: # 413 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 413 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: !rep_.empty() 24952: # 413 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 413 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "!rep_.empty()" 24952: # 413 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 413, __extension__ __PRETTY_FUNCTION__)) 24952: # 413 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: return rep_; 24952: } 24952: 24952: Slice user_key() const { return ExtractUserKey(rep_); } 24952: size_t size() const { return rep_.size(); } 24952: 24952: void Set(const Slice& _user_key, SequenceNumber s, ValueType t) { 24952: SetFrom(ParsedInternalKey(_user_key, s, t)); 24952: } 24952: 24952: void Set(const Slice& _user_key_with_ts, SequenceNumber s, ValueType t, 24952: const Slice& ts) { 24952: ParsedInternalKey pik = ParsedInternalKey(_user_key_with_ts, s, t); 24952: 24952: 24952: SetFrom(pik, ts); 24952: } 24952: 24952: void SetFrom(const ParsedInternalKey& p) { 24952: rep_.clear(); 24952: AppendInternalKey(&rep_, p); 24952: } 24952: 24952: void SetFrom(const ParsedInternalKey& p, const Slice& ts) { 24952: rep_.clear(); 24952: AppendInternalKeyWithDifferentTimestamp(&rep_, p, ts); 24952: } 24952: 24952: void Clear() { rep_.clear(); } 24952: 24952: 24952: 24952: std::string* rep() { return &rep_; } 24952: 24952: 24952: 24952: void ConvertFromUserKey(SequenceNumber s, ValueType t) { 24952: AppendInternalKeyFooter(&rep_, s, t); 24952: } 24952: 24952: std::string DebugString(bool hex) const; 24952: }; 24952: 24952: inline int InternalKeyComparator::Compare(const InternalKey& a, 24952: const InternalKey& b) const { 24952: return Compare(a.Encode(), b.Encode()); 24952: } 24952: 24952: inline Status ParseInternalKey(const Slice& internal_key, 24952: ParsedInternalKey* result, bool log_err_key) { 24952: const size_t n = internal_key.size(); 24952: 24952: if (n < kNumInternalBytes) { 24952: return Status::Corruption("Corrupted Key: Internal Key too small. Size=" + 24952: std::to_string(n) + ". "); 24952: } 24952: 24952: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 24952: unsigned char c = num & 0xff; 24952: result->sequence = num >> 8; 24952: result->type = static_cast(c); 24952: 24952: # 475 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 475 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: result->type <= ValueType::kMaxValue 24952: # 475 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 475 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "result->type <= ValueType::kMaxValue" 24952: # 475 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 475, __extension__ __PRETTY_FUNCTION__)) 24952: # 475 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: result->user_key = Slice(internal_key.data(), n - kNumInternalBytes); 24952: 24952: if (IsExtendedValueType(result->type)) { 24952: return Status::OK(); 24952: } else { 24952: return Status::Corruption("Corrupted Key", 24952: result->DebugString(log_err_key, true)); 24952: } 24952: } 24952: 24952: 24952: 24952: inline void UpdateInternalKey(std::string* ikey, uint64_t seq, ValueType t) { 24952: size_t ikey_sz = ikey->size(); 24952: 24952: # 490 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 490 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ikey_sz >= kNumInternalBytes 24952: # 490 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 490 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "ikey_sz >= kNumInternalBytes" 24952: # 490 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 490, __extension__ __PRETTY_FUNCTION__)) 24952: # 490 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: uint64_t newval = (seq << 8) | t; 24952: 24952: 24952: 24952: EncodeFixed64(&(*ikey)[ikey_sz - kNumInternalBytes], newval); 24952: } 24952: 24952: 24952: inline uint64_t GetInternalKeySeqno(const Slice& internal_key) { 24952: const size_t n = internal_key.size(); 24952: 24952: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: n >= kNumInternalBytes 24952: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "n >= kNumInternalBytes" 24952: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 501, __extension__ __PRETTY_FUNCTION__)) 24952: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 24952: return num >> 8; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class IterKey { 24952: public: 24952: IterKey() 24952: : buf_(space_), 24952: key_(buf_), 24952: key_size_(0), 24952: buf_size_(sizeof(space_)), 24952: is_user_key_(true) {} 24952: 24952: IterKey(const IterKey&) = delete; 24952: void operator=(const IterKey&) = delete; 24952: 24952: ~IterKey() { ResetBuffer(); } 24952: 24952: 24952: void SetIsUserKey(bool is_user_key) { is_user_key_ = is_user_key; } 24952: 24952: 24952: 24952: 24952: Slice GetKey() const { return Slice(key_, key_size_); } 24952: 24952: Slice GetInternalKey() const { 24952: 24952: # 535 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 535 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: !IsUserKey() 24952: # 535 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 535 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "!IsUserKey()" 24952: # 535 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 535, __extension__ __PRETTY_FUNCTION__)) 24952: # 535 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: return Slice(key_, key_size_); 24952: } 24952: 24952: 24952: 24952: Slice GetUserKey() const { 24952: if (IsUserKey()) { 24952: return Slice(key_, key_size_); 24952: } else { 24952: 24952: # 545 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 545 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: key_size_ >= kNumInternalBytes 24952: # 545 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 545 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "key_size_ >= kNumInternalBytes" 24952: # 545 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 545, __extension__ __PRETTY_FUNCTION__)) 24952: # 545 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: return Slice(key_, key_size_ - kNumInternalBytes); 24952: } 24952: } 24952: 24952: size_t Size() const { return key_size_; } 24952: 24952: void Clear() { key_size_ = 0; } 24952: 24952: 24952: 24952: 24952: 24952: void TrimAppend(const size_t shared_len, const char* non_shared_data, 24952: const size_t non_shared_len) { 24952: 24952: # 560 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 560 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: shared_len <= key_size_ 24952: # 560 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 560 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "shared_len <= key_size_" 24952: # 560 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 560, __extension__ __PRETTY_FUNCTION__)) 24952: # 560 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: size_t total_size = shared_len + non_shared_len; 24952: 24952: if (IsKeyPinned() ) { 24952: 24952: EnlargeBufferIfNeeded(total_size); 24952: memcpy(buf_, key_, shared_len); 24952: } else if (total_size > buf_size_) { 24952: 24952: char* p = new char[total_size]; 24952: memcpy(p, key_, shared_len); 24952: 24952: if (buf_ != space_) { 24952: delete[] buf_; 24952: } 24952: 24952: buf_ = p; 24952: buf_size_ = total_size; 24952: } 24952: 24952: memcpy(buf_ + shared_len, non_shared_data, non_shared_len); 24952: key_ = buf_; 24952: key_size_ = total_size; 24952: } 24952: 24952: 24952: 24952: 24952: void TrimAppendWithTimestamp(const size_t shared_len, 24952: const char* non_shared_data, 24952: const size_t non_shared_len, 24952: const size_t ts_sz) { 24952: std::string kTsMin(ts_sz, static_cast(0)); 24952: std::string key_with_ts; 24952: std::vector key_parts_with_ts; 24952: if (IsUserKey()) { 24952: key_parts_with_ts = {Slice(key_, shared_len), 24952: Slice(non_shared_data, non_shared_len), 24952: Slice(kTsMin)}; 24952: } else { 24952: 24952: # 600 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 600 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: shared_len + non_shared_len >= kNumInternalBytes 24952: # 600 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 600 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "shared_len + non_shared_len >= kNumInternalBytes" 24952: # 600 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 600, __extension__ __PRETTY_FUNCTION__)) 24952: # 600 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: 24952: 24952: 24952: 24952: 24952: 24952: const size_t user_key_len = key_size_ - kNumInternalBytes; 24952: const size_t sharable_user_key_len = user_key_len - ts_sz; 24952: const size_t shared_user_key_len = 24952: std::min(shared_len, sharable_user_key_len); 24952: const size_t shared_internal_bytes_len = shared_len - shared_user_key_len; 24952: 24952: 24952: 24952: key_parts_with_ts.reserve(5); 24952: bool ts_added = false; 24952: 24952: MaybeAddKeyPartsWithTimestamp( 24952: key_, shared_user_key_len, 24952: shared_internal_bytes_len + non_shared_len < kNumInternalBytes, 24952: shared_len + non_shared_len - kNumInternalBytes, kTsMin, 24952: key_parts_with_ts, &ts_added); 24952: MaybeAddKeyPartsWithTimestamp( 24952: key_ + user_key_len, shared_internal_bytes_len, 24952: non_shared_len < kNumInternalBytes, 24952: shared_internal_bytes_len + non_shared_len - kNumInternalBytes, 24952: kTsMin, key_parts_with_ts, &ts_added); 24952: MaybeAddKeyPartsWithTimestamp(non_shared_data, non_shared_len, 24952: non_shared_len >= kNumInternalBytes, 24952: non_shared_len - kNumInternalBytes, kTsMin, 24952: key_parts_with_ts, &ts_added); 24952: 24952: # 632 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 632 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ts_added 24952: # 632 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 632 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "ts_added" 24952: # 632 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 632, __extension__ __PRETTY_FUNCTION__)) 24952: # 632 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: } 24952: 24952: Slice new_key(SliceParts(&key_parts_with_ts.front(), 24952: static_cast(key_parts_with_ts.size())), 24952: &key_with_ts); 24952: SetKey(new_key); 24952: } 24952: 24952: Slice SetKey(const Slice& key, bool copy = true) { 24952: 24952: return SetKeyImpl(key, copy); 24952: } 24952: 24952: 24952: 24952: 24952: Slice SetUserKey(const Slice& key, bool copy = true) { 24952: is_user_key_ = true; 24952: return SetKeyImpl(key, copy); 24952: } 24952: 24952: Slice SetInternalKey(const Slice& key, bool copy = true) { 24952: is_user_key_ = false; 24952: return SetKeyImpl(key, copy); 24952: } 24952: 24952: 24952: 24952: Slice SetInternalKey(const Slice& key, ParsedInternalKey* ikey) { 24952: size_t key_n = key.size(); 24952: 24952: # 663 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 663 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: key_n >= kNumInternalBytes 24952: # 663 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 663 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "key_n >= kNumInternalBytes" 24952: # 663 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 663, __extension__ __PRETTY_FUNCTION__)) 24952: # 663 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: SetInternalKey(key); 24952: ikey->user_key = Slice(key_, key_n - kNumInternalBytes); 24952: return Slice(key_, key_n); 24952: } 24952: 24952: 24952: void OwnKey() { 24952: 24952: # 671 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 671 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: IsKeyPinned() == true 24952: # 671 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 671 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "IsKeyPinned() == true" 24952: # 671 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 671, __extension__ __PRETTY_FUNCTION__)) 24952: # 671 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: 24952: Reserve(key_size_); 24952: memcpy(buf_, key_, key_size_); 24952: key_ = buf_; 24952: } 24952: 24952: 24952: 24952: void UpdateInternalKey(uint64_t seq, ValueType t, const Slice* ts = nullptr) { 24952: 24952: # 681 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 681 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: !IsKeyPinned() 24952: # 681 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 681 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "!IsKeyPinned()" 24952: # 681 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 681, __extension__ __PRETTY_FUNCTION__)) 24952: # 681 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: 24952: # 682 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 682 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: key_size_ >= kNumInternalBytes 24952: # 682 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 682 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "key_size_ >= kNumInternalBytes" 24952: # 682 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 682, __extension__ __PRETTY_FUNCTION__)) 24952: # 682 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: if (ts) { 24952: 24952: # 684 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 684 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: key_size_ >= kNumInternalBytes + ts->size() 24952: # 684 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 684 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "key_size_ >= kNumInternalBytes + ts->size()" 24952: # 684 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 684, __extension__ __PRETTY_FUNCTION__)) 24952: # 684 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: memcpy(&buf_[key_size_ - kNumInternalBytes - ts->size()], ts->data(), 24952: ts->size()); 24952: } 24952: uint64_t newval = (seq << 8) | t; 24952: EncodeFixed64(&buf_[key_size_ - kNumInternalBytes], newval); 24952: } 24952: 24952: bool IsKeyPinned() const { return (key_ != buf_); } 24952: 24952: 24952: 24952: 24952: void SetInternalKey(const Slice& key_prefix, const Slice& user_key, 24952: SequenceNumber s, 24952: ValueType value_type = kValueTypeForSeek, 24952: const Slice* ts = nullptr) { 24952: size_t psize = key_prefix.size(); 24952: size_t usize = user_key.size(); 24952: size_t ts_sz = (ts != nullptr ? ts->size() : 0); 24952: EnlargeBufferIfNeeded(psize + usize + sizeof(uint64_t) + ts_sz); 24952: if (psize > 0) { 24952: memcpy(buf_, key_prefix.data(), psize); 24952: } 24952: memcpy(buf_ + psize, user_key.data(), usize); 24952: if (ts) { 24952: memcpy(buf_ + psize + usize, ts->data(), ts_sz); 24952: } 24952: EncodeFixed64(buf_ + usize + psize + ts_sz, 24952: PackSequenceAndType(s, value_type)); 24952: 24952: key_ = buf_; 24952: key_size_ = psize + usize + sizeof(uint64_t) + ts_sz; 24952: is_user_key_ = false; 24952: } 24952: 24952: void SetInternalKey(const Slice& user_key, SequenceNumber s, 24952: ValueType value_type = kValueTypeForSeek, 24952: const Slice* ts = nullptr) { 24952: SetInternalKey(Slice(), user_key, s, value_type, ts); 24952: } 24952: 24952: void Reserve(size_t size) { 24952: EnlargeBufferIfNeeded(size); 24952: key_size_ = size; 24952: } 24952: 24952: void SetInternalKey(const ParsedInternalKey& parsed_key) { 24952: SetInternalKey(Slice(), parsed_key); 24952: } 24952: 24952: void SetInternalKey(const Slice& key_prefix, 24952: const ParsedInternalKey& parsed_key_suffix) { 24952: SetInternalKey(key_prefix, parsed_key_suffix.user_key, 24952: parsed_key_suffix.sequence, parsed_key_suffix.type); 24952: } 24952: 24952: void EncodeLengthPrefixedKey(const Slice& key) { 24952: auto size = key.size(); 24952: EnlargeBufferIfNeeded(size + static_cast(VarintLength(size))); 24952: char* ptr = EncodeVarint32(buf_, static_cast(size)); 24952: memcpy(ptr, key.data(), size); 24952: key_ = buf_; 24952: is_user_key_ = true; 24952: } 24952: 24952: bool IsUserKey() const { return is_user_key_; } 24952: 24952: private: 24952: char* buf_; 24952: const char* key_; 24952: size_t key_size_; 24952: size_t buf_size_; 24952: char space_[39]; 24952: bool is_user_key_; 24952: 24952: Slice SetKeyImpl(const Slice& key, bool copy) { 24952: size_t size = key.size(); 24952: if (copy) { 24952: 24952: EnlargeBufferIfNeeded(size); 24952: memcpy(buf_, key.data(), size); 24952: key_ = buf_; 24952: } else { 24952: 24952: key_ = key.data(); 24952: } 24952: key_size_ = size; 24952: return Slice(key_, key_size_); 24952: } 24952: 24952: void ResetBuffer() { 24952: if (buf_ != space_) { 24952: delete[] buf_; 24952: buf_ = space_; 24952: } 24952: buf_size_ = sizeof(space_); 24952: key_size_ = 0; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: void EnlargeBufferIfNeeded(size_t key_size) { 24952: 24952: 24952: if (key_size > buf_size_) { 24952: EnlargeBuffer(key_size); 24952: } 24952: } 24952: 24952: void EnlargeBuffer(size_t key_size); 24952: 24952: void MaybeAddKeyPartsWithTimestamp(const char* slice_data, 24952: const size_t slice_sz, bool add_timestamp, 24952: const size_t left_sz, 24952: const std::string& min_timestamp, 24952: std::vector& key_parts, 24952: bool* ts_added) { 24952: if (add_timestamp && !*ts_added) { 24952: 24952: # 806 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 806 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: slice_sz >= left_sz 24952: # 806 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 806 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "slice_sz >= left_sz" 24952: # 806 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 806, __extension__ __PRETTY_FUNCTION__)) 24952: # 806 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: key_parts.emplace_back(slice_data, left_sz); 24952: key_parts.emplace_back(min_timestamp); 24952: key_parts.emplace_back(slice_data + left_sz, slice_sz - left_sz); 24952: *ts_added = true; 24952: } else { 24952: key_parts.emplace_back(slice_data, slice_sz); 24952: } 24952: } 24952: }; 24952: 24952: 24952: 24952: class InternalKeySliceTransform : public SliceTransform { 24952: public: 24952: explicit InternalKeySliceTransform(const SliceTransform* transform) 24952: : transform_(transform) {} 24952: 24952: virtual const char* Name() const override { return transform_->Name(); } 24952: 24952: virtual Slice Transform(const Slice& src) const override { 24952: auto user_key = ExtractUserKey(src); 24952: return transform_->Transform(user_key); 24952: } 24952: 24952: virtual bool InDomain(const Slice& src) const override { 24952: auto user_key = ExtractUserKey(src); 24952: return transform_->InDomain(user_key); 24952: } 24952: 24952: virtual bool InRange(const Slice& dst) const override { 24952: auto user_key = ExtractUserKey(dst); 24952: return transform_->InRange(user_key); 24952: } 24952: 24952: const SliceTransform* user_prefix_extractor() const { return transform_; } 24952: 24952: private: 24952: 24952: 24952: const SliceTransform* const transform_; 24952: }; 24952: 24952: 24952: 24952: 24952: bool ReadKeyFromWriteBatchEntry(Slice* input, Slice* key, bool cf_record); 24952: # 861 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: Status ReadRecordFromWriteBatch(Slice* input, char* tag, 24952: uint32_t* column_family, Slice* key, 24952: Slice* value, Slice* blob, Slice* xid); 24952: 24952: 24952: 24952: 24952: 24952: struct RangeTombstone { 24952: Slice start_key_; 24952: Slice end_key_; 24952: SequenceNumber seq_; 24952: 24952: 24952: Slice ts_; 24952: std::string pinned_start_key_; 24952: std::string pinned_end_key_; 24952: 24952: RangeTombstone() = default; 24952: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn) 24952: : start_key_(sk), end_key_(ek), seq_(sn) {} 24952: 24952: 24952: 24952: 24952: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn, Slice ts) 24952: : seq_(sn), ts_(ts) { 24952: 24952: # 888 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: (static_cast ( 24952: # 888 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: !ts.empty() 24952: # 888 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 888 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: "!ts.empty()" 24952: # 888 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 3 4 24952: , "./db/dbformat.h", 888, __extension__ __PRETTY_FUNCTION__)) 24952: # 888 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: ; 24952: pinned_start_key_.reserve(sk.size()); 24952: pinned_start_key_.append(sk.data(), sk.size() - ts.size()); 24952: pinned_start_key_.append(ts.data(), ts.size()); 24952: pinned_end_key_.reserve(ek.size()); 24952: pinned_end_key_.append(ek.data(), ek.size() - ts.size()); 24952: pinned_end_key_.append(ts.data(), ts.size()); 24952: start_key_ = pinned_start_key_; 24952: end_key_ = pinned_end_key_; 24952: } 24952: 24952: RangeTombstone(ParsedInternalKey parsed_key, Slice value) { 24952: start_key_ = parsed_key.user_key; 24952: seq_ = parsed_key.sequence; 24952: end_key_ = value; 24952: } 24952: 24952: 24952: std::pair Serialize() const { 24952: auto key = InternalKey(start_key_, seq_, kTypeRangeDeletion); 24952: return std::make_pair(std::move(key), end_key_); 24952: } 24952: 24952: 24952: InternalKey SerializeKey() const { 24952: return InternalKey(start_key_, seq_, kTypeRangeDeletion); 24952: } 24952: # 923 "/build/reproducible-path/rocksdb-8.9.1/db/dbformat.h" 24952: InternalKey SerializeEndKey() const { 24952: if (!ts_.empty()) { 24952: static constexpr char kTsMax[] = "\xff\xff\xff\xff\xff\xff\xff\xff\xff"; 24952: if (ts_.size() <= strlen(kTsMax)) { 24952: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 24952: Slice(kTsMax, ts_.size())); 24952: } else { 24952: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 24952: std::string(ts_.size(), '\xff')); 24952: } 24952: } 24952: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion); 24952: } 24952: }; 24952: 24952: inline int InternalKeyComparator::Compare(const Slice& akey, 24952: const Slice& bkey) const { 24952: 24952: 24952: 24952: 24952: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 24952: if (r == 0) { 24952: const uint64_t anum = 24952: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes); 24952: const uint64_t bnum = 24952: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes); 24952: if (anum > bnum) { 24952: r = -1; 24952: } else if (anum < bnum) { 24952: r = +1; 24952: } 24952: } 24952: return r; 24952: } 24952: 24952: inline int InternalKeyComparator::CompareKeySeq(const Slice& akey, 24952: const Slice& bkey) const { 24952: 24952: 24952: 24952: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 24952: if (r == 0) { 24952: 24952: const uint64_t anum = 24952: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes) >> 8; 24952: const uint64_t bnum = 24952: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes) >> 8; 24952: if (anum > bnum) { 24952: r = -1; 24952: } else if (anum < bnum) { 24952: r = +1; 24952: } 24952: } 24952: return r; 24952: } 24952: 24952: inline int InternalKeyComparator::CompareKeySeq(const ParsedInternalKey& a, 24952: const Slice& b) const { 24952: 24952: 24952: 24952: int r = user_comparator_.Compare(a.user_key, ExtractUserKey(b)); 24952: if (r == 0) { 24952: 24952: const uint64_t anum = a.sequence; 24952: const uint64_t bnum = 24952: DecodeFixed64(b.data() + b.size() - kNumInternalBytes) >> 8; 24952: if (anum > bnum) { 24952: r = -1; 24952: } else if (anum < bnum) { 24952: r = +1; 24952: } 24952: } 24952: return r; 24952: } 24952: 24952: inline int InternalKeyComparator::Compare(const Slice& a, 24952: SequenceNumber a_global_seqno, 24952: const Slice& b, 24952: SequenceNumber b_global_seqno) const { 24952: int r = user_comparator_.Compare(ExtractUserKey(a), ExtractUserKey(b)); 24952: if (r == 0) { 24952: uint64_t a_footer, b_footer; 24952: if (a_global_seqno == kDisableGlobalSequenceNumber) { 24952: a_footer = ExtractInternalKeyFooter(a); 24952: } else { 24952: a_footer = PackSequenceAndType(a_global_seqno, ExtractValueType(a)); 24952: } 24952: if (b_global_seqno == kDisableGlobalSequenceNumber) { 24952: b_footer = ExtractInternalKeyFooter(b); 24952: } else { 24952: b_footer = PackSequenceAndType(b_global_seqno, ExtractValueType(b)); 24952: } 24952: if (a_footer > b_footer) { 24952: r = -1; 24952: } else if (a_footer < b_footer) { 24952: r = +1; 24952: } 24952: } 24952: return r; 24952: } 24952: 24952: 24952: struct ParsedInternalKeyComparator { 24952: explicit ParsedInternalKeyComparator(const InternalKeyComparator* c) 24952: : cmp(c) {} 24952: 24952: bool operator()(const ParsedInternalKey& a, 24952: const ParsedInternalKey& b) const { 24952: return cmp->Compare(a, b) < 0; 24952: } 24952: 24952: const InternalKeyComparator* cmp; 24952: }; 24952: 24952: } 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 1 24952: # 31 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: template 24952: class ProtectionInfo; 24952: template 24952: class ProtectionInfoKVO; 24952: template 24952: class ProtectionInfoKVOC; 24952: template 24952: class ProtectionInfoKVOS; 24952: template 24952: class ProtectionInfoKV; 24952: 24952: 24952: using ProtectionInfo64 = ProtectionInfo; 24952: using ProtectionInfoKVO64 = ProtectionInfoKVO; 24952: using ProtectionInfoKVOC64 = ProtectionInfoKVOC; 24952: using ProtectionInfoKVOS64 = ProtectionInfoKVOS; 24952: 24952: template 24952: class ProtectionInfo { 24952: public: 24952: ProtectionInfo() = default; 24952: 24952: Status GetStatus() const; 24952: ProtectionInfoKVO ProtectKVO(const Slice& key, const Slice& value, 24952: ValueType op_type) const; 24952: ProtectionInfoKVO ProtectKVO(const SliceParts& key, 24952: const SliceParts& value, 24952: ValueType op_type) const; 24952: ProtectionInfoKV ProtectKV(const Slice& key, const Slice& value) const; 24952: 24952: private: 24952: friend class ProtectionInfoKVO; 24952: friend class ProtectionInfoKVOS; 24952: friend class ProtectionInfoKVOC; 24952: friend class ProtectionInfoKV; 24952: # 84 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: static const uint64_t kSeedK = 0; 24952: static const uint64_t kSeedV = 0xD28AAD72F49BD50B; 24952: static const uint64_t kSeedO = 0xA5155AE5E937AA16; 24952: static const uint64_t kSeedS = 0x77A00858DDD37F21; 24952: static const uint64_t kSeedC = 0x4A2AB5CBD26F542C; 24952: 24952: ProtectionInfo(T val) : val_(val) { 24952: static_assert(sizeof(ProtectionInfo) == sizeof(T), ""); 24952: } 24952: 24952: T GetVal() const { return val_; } 24952: void SetVal(T val) { val_ = val; } 24952: 24952: void Encode(uint8_t len, char* dst) const { 24952: 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 24952: (static_cast ( 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: sizeof(val_) >= len 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: "sizeof(val_) >= len" 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 24952: , "./db/kv_checksum.h", 98, __extension__ __PRETTY_FUNCTION__)) 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: ; 24952: switch (len) { 24952: case 1: 24952: dst[0] = static_cast(val_); 24952: break; 24952: case 2: 24952: EncodeFixed16(dst, static_cast(val_)); 24952: break; 24952: case 4: 24952: EncodeFixed32(dst, static_cast(val_)); 24952: break; 24952: case 8: 24952: EncodeFixed64(dst, static_cast(val_)); 24952: break; 24952: default: 24952: 24952: # 113 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 24952: (static_cast ( 24952: # 113 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: false 24952: # 113 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 113 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: "false" 24952: # 113 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 24952: , "./db/kv_checksum.h", 113, __extension__ __PRETTY_FUNCTION__)) 24952: # 113 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: ; 24952: } 24952: } 24952: 24952: bool Verify(uint8_t len, const char* checksum_ptr) const { 24952: 24952: # 118 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 24952: (static_cast ( 24952: # 118 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: sizeof(val_) >= len 24952: # 118 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 118 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: "sizeof(val_) >= len" 24952: # 118 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 24952: , "./db/kv_checksum.h", 118, __extension__ __PRETTY_FUNCTION__)) 24952: # 118 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: ; 24952: switch (len) { 24952: case 1: 24952: return static_cast(checksum_ptr[0]) == 24952: static_cast(val_); 24952: case 2: 24952: return DecodeFixed16(checksum_ptr) == static_cast(val_); 24952: case 4: 24952: return DecodeFixed32(checksum_ptr) == static_cast(val_); 24952: case 8: 24952: return DecodeFixed64(checksum_ptr) == static_cast(val_); 24952: default: 24952: 24952: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 24952: (static_cast ( 24952: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: false 24952: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: "false" 24952: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 3 4 24952: , "./db/kv_checksum.h", 130, __extension__ __PRETTY_FUNCTION__)) 24952: # 130 "/build/reproducible-path/rocksdb-8.9.1/db/kv_checksum.h" 24952: ; 24952: return false; 24952: } 24952: } 24952: 24952: T val_ = 0; 24952: }; 24952: 24952: template 24952: class ProtectionInfoKVO { 24952: public: 24952: ProtectionInfoKVO() = default; 24952: 24952: ProtectionInfo StripKVO(const Slice& key, const Slice& value, 24952: ValueType op_type) const; 24952: ProtectionInfo StripKVO(const SliceParts& key, const SliceParts& value, 24952: ValueType op_type) const; 24952: 24952: ProtectionInfoKVOC ProtectC(ColumnFamilyId column_family_id) const; 24952: ProtectionInfoKVOS ProtectS(SequenceNumber sequence_number) const; 24952: 24952: void UpdateK(const Slice& old_key, const Slice& new_key); 24952: void UpdateK(const SliceParts& old_key, const SliceParts& new_key); 24952: void UpdateV(const Slice& old_value, const Slice& new_value); 24952: void UpdateV(const SliceParts& old_value, const SliceParts& new_value); 24952: void UpdateO(ValueType old_op_type, ValueType new_op_type); 24952: 24952: 24952: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 24952: 24952: 24952: 24952: bool Verify(uint8_t len, const char* checksum_ptr) const { 24952: return info_.Verify(len, checksum_ptr); 24952: } 24952: 24952: private: 24952: friend class ProtectionInfo; 24952: friend class ProtectionInfoKVOS; 24952: friend class ProtectionInfoKVOC; 24952: 24952: explicit ProtectionInfoKVO(T val) : info_(val) { 24952: static_assert(sizeof(ProtectionInfoKVO) == sizeof(T), ""); 24952: } 24952: 24952: T GetVal() const { return info_.GetVal(); } 24952: void SetVal(T val) { info_.SetVal(val); } 24952: 24952: ProtectionInfo info_; 24952: }; 24952: 24952: template 24952: class ProtectionInfoKVOC { 24952: public: 24952: ProtectionInfoKVOC() = default; 24952: 24952: ProtectionInfoKVO StripC(ColumnFamilyId column_family_id) const; 24952: 24952: void UpdateK(const Slice& old_key, const Slice& new_key) { 24952: kvo_.UpdateK(old_key, new_key); 24952: } 24952: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 24952: kvo_.UpdateK(old_key, new_key); 24952: } 24952: void UpdateV(const Slice& old_value, const Slice& new_value) { 24952: kvo_.UpdateV(old_value, new_value); 24952: } 24952: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 24952: kvo_.UpdateV(old_value, new_value); 24952: } 24952: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 24952: kvo_.UpdateO(old_op_type, new_op_type); 24952: } 24952: void UpdateC(ColumnFamilyId old_column_family_id, 24952: ColumnFamilyId new_column_family_id); 24952: 24952: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 24952: bool Verify(uint8_t len, const char* checksum_ptr) const { 24952: return kvo_.Verify(len, checksum_ptr); 24952: } 24952: 24952: private: 24952: friend class ProtectionInfoKVO; 24952: 24952: explicit ProtectionInfoKVOC(T val) : kvo_(val) { 24952: static_assert(sizeof(ProtectionInfoKVOC) == sizeof(T), ""); 24952: } 24952: 24952: T GetVal() const { return kvo_.GetVal(); } 24952: void SetVal(T val) { kvo_.SetVal(val); } 24952: 24952: ProtectionInfoKVO kvo_; 24952: }; 24952: 24952: template 24952: class ProtectionInfoKVOS { 24952: public: 24952: ProtectionInfoKVOS() = default; 24952: 24952: ProtectionInfoKVO StripS(SequenceNumber sequence_number) const; 24952: 24952: void UpdateK(const Slice& old_key, const Slice& new_key) { 24952: kvo_.UpdateK(old_key, new_key); 24952: } 24952: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 24952: kvo_.UpdateK(old_key, new_key); 24952: } 24952: void UpdateV(const Slice& old_value, const Slice& new_value) { 24952: kvo_.UpdateV(old_value, new_value); 24952: } 24952: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 24952: kvo_.UpdateV(old_value, new_value); 24952: } 24952: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 24952: kvo_.UpdateO(old_op_type, new_op_type); 24952: } 24952: void UpdateS(SequenceNumber old_sequence_number, 24952: SequenceNumber new_sequence_number); 24952: 24952: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 24952: bool Verify(uint8_t len, const char* checksum_ptr) const { 24952: return kvo_.Verify(len, checksum_ptr); 24952: } 24952: 24952: private: 24952: friend class ProtectionInfoKVO; 24952: 24952: explicit ProtectionInfoKVOS(T val) : kvo_(val) { 24952: static_assert(sizeof(ProtectionInfoKVOS) == sizeof(T), ""); 24952: } 24952: 24952: T GetVal() const { return kvo_.GetVal(); } 24952: void SetVal(T val) { kvo_.SetVal(val); } 24952: 24952: ProtectionInfoKVO kvo_; 24952: }; 24952: 24952: template 24952: class ProtectionInfoKV { 24952: public: 24952: ProtectionInfoKV() = default; 24952: 24952: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 24952: bool Verify(uint8_t len, const char* checksum_ptr) const { 24952: return info_.Verify(len, checksum_ptr); 24952: } 24952: 24952: private: 24952: friend class ProtectionInfo; 24952: 24952: explicit ProtectionInfoKV(T val) : info_(val) { 24952: static_assert(sizeof(ProtectionInfoKV) == sizeof(T)); 24952: } 24952: 24952: ProtectionInfo info_; 24952: }; 24952: 24952: template 24952: Status ProtectionInfo::GetStatus() const { 24952: if (val_ != 0) { 24952: return Status::Corruption("ProtectionInfo mismatch"); 24952: } 24952: return Status::OK(); 24952: } 24952: 24952: template 24952: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const Slice& key, 24952: const Slice& value, 24952: ValueType op_type) const { 24952: T val = GetVal(); 24952: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 24952: val = 24952: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 24952: val = val ^ 24952: static_cast(NPHash64(reinterpret_cast(&op_type), 24952: sizeof(op_type), ProtectionInfo::kSeedO)); 24952: return ProtectionInfoKVO(val); 24952: } 24952: 24952: template 24952: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const SliceParts& key, 24952: const SliceParts& value, 24952: ValueType op_type) const { 24952: T val = GetVal(); 24952: val = val ^ 24952: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 24952: val = val ^ 24952: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 24952: val = val ^ 24952: static_cast(NPHash64(reinterpret_cast(&op_type), 24952: sizeof(op_type), ProtectionInfo::kSeedO)); 24952: return ProtectionInfoKVO(val); 24952: } 24952: 24952: template 24952: ProtectionInfoKV ProtectionInfo::ProtectKV(const Slice& key, 24952: const Slice& value) const { 24952: T val = GetVal(); 24952: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 24952: val = 24952: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 24952: return ProtectionInfoKV(val); 24952: } 24952: 24952: template 24952: void ProtectionInfoKVO::UpdateK(const Slice& old_key, const Slice& new_key) { 24952: T val = GetVal(); 24952: val = val ^ 24952: static_cast(GetSliceNPHash64(old_key, ProtectionInfo::kSeedK)); 24952: val = val ^ 24952: static_cast(GetSliceNPHash64(new_key, ProtectionInfo::kSeedK)); 24952: SetVal(val); 24952: } 24952: 24952: template 24952: void ProtectionInfoKVO::UpdateK(const SliceParts& old_key, 24952: const SliceParts& new_key) { 24952: T val = GetVal(); 24952: val = val ^ static_cast( 24952: GetSlicePartsNPHash64(old_key, ProtectionInfo::kSeedK)); 24952: val = val ^ static_cast( 24952: GetSlicePartsNPHash64(new_key, ProtectionInfo::kSeedK)); 24952: SetVal(val); 24952: } 24952: 24952: template 24952: void ProtectionInfoKVO::UpdateV(const Slice& old_value, 24952: const Slice& new_value) { 24952: T val = GetVal(); 24952: val = val ^ 24952: static_cast(GetSliceNPHash64(old_value, ProtectionInfo::kSeedV)); 24952: val = val ^ 24952: static_cast(GetSliceNPHash64(new_value, ProtectionInfo::kSeedV)); 24952: SetVal(val); 24952: } 24952: 24952: template 24952: void ProtectionInfoKVO::UpdateV(const SliceParts& old_value, 24952: const SliceParts& new_value) { 24952: T val = GetVal(); 24952: val = val ^ static_cast( 24952: GetSlicePartsNPHash64(old_value, ProtectionInfo::kSeedV)); 24952: val = val ^ static_cast( 24952: GetSlicePartsNPHash64(new_value, ProtectionInfo::kSeedV)); 24952: SetVal(val); 24952: } 24952: 24952: template 24952: void ProtectionInfoKVO::UpdateO(ValueType old_op_type, 24952: ValueType new_op_type) { 24952: T val = GetVal(); 24952: val = val ^ static_cast(NPHash64(reinterpret_cast(&old_op_type), 24952: sizeof(old_op_type), 24952: ProtectionInfo::kSeedO)); 24952: val = val ^ static_cast(NPHash64(reinterpret_cast(&new_op_type), 24952: sizeof(new_op_type), 24952: ProtectionInfo::kSeedO)); 24952: SetVal(val); 24952: } 24952: 24952: template 24952: ProtectionInfo ProtectionInfoKVO::StripKVO(const Slice& key, 24952: const Slice& value, 24952: ValueType op_type) const { 24952: T val = GetVal(); 24952: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 24952: val = 24952: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 24952: val = val ^ 24952: static_cast(NPHash64(reinterpret_cast(&op_type), 24952: sizeof(op_type), ProtectionInfo::kSeedO)); 24952: return ProtectionInfo(val); 24952: } 24952: 24952: template 24952: ProtectionInfo ProtectionInfoKVO::StripKVO(const SliceParts& key, 24952: const SliceParts& value, 24952: ValueType op_type) const { 24952: T val = GetVal(); 24952: val = val ^ 24952: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 24952: val = val ^ 24952: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 24952: val = val ^ 24952: static_cast(NPHash64(reinterpret_cast(&op_type), 24952: sizeof(op_type), ProtectionInfo::kSeedO)); 24952: return ProtectionInfo(val); 24952: } 24952: 24952: template 24952: ProtectionInfoKVOC ProtectionInfoKVO::ProtectC( 24952: ColumnFamilyId column_family_id) const { 24952: T val = GetVal(); 24952: val = val ^ static_cast(NPHash64( 24952: reinterpret_cast(&column_family_id), 24952: sizeof(column_family_id), ProtectionInfo::kSeedC)); 24952: return ProtectionInfoKVOC(val); 24952: } 24952: 24952: template 24952: ProtectionInfoKVO ProtectionInfoKVOC::StripC( 24952: ColumnFamilyId column_family_id) const { 24952: T val = GetVal(); 24952: val = val ^ static_cast(NPHash64( 24952: reinterpret_cast(&column_family_id), 24952: sizeof(column_family_id), ProtectionInfo::kSeedC)); 24952: return ProtectionInfoKVO(val); 24952: } 24952: 24952: template 24952: void ProtectionInfoKVOC::UpdateC(ColumnFamilyId old_column_family_id, 24952: ColumnFamilyId new_column_family_id) { 24952: T val = GetVal(); 24952: val = val ^ static_cast(NPHash64( 24952: reinterpret_cast(&old_column_family_id), 24952: sizeof(old_column_family_id), ProtectionInfo::kSeedC)); 24952: val = val ^ static_cast(NPHash64( 24952: reinterpret_cast(&new_column_family_id), 24952: sizeof(new_column_family_id), ProtectionInfo::kSeedC)); 24952: SetVal(val); 24952: } 24952: 24952: template 24952: ProtectionInfoKVOS ProtectionInfoKVO::ProtectS( 24952: SequenceNumber sequence_number) const { 24952: T val = GetVal(); 24952: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 24952: sizeof(sequence_number), 24952: ProtectionInfo::kSeedS)); 24952: return ProtectionInfoKVOS(val); 24952: } 24952: 24952: template 24952: ProtectionInfoKVO ProtectionInfoKVOS::StripS( 24952: SequenceNumber sequence_number) const { 24952: T val = GetVal(); 24952: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 24952: sizeof(sequence_number), 24952: ProtectionInfo::kSeedS)); 24952: return ProtectionInfoKVO(val); 24952: } 24952: 24952: template 24952: void ProtectionInfoKVOS::UpdateS(SequenceNumber old_sequence_number, 24952: SequenceNumber new_sequence_number) { 24952: T val = GetVal(); 24952: val = val ^ static_cast(NPHash64( 24952: reinterpret_cast(&old_sequence_number), 24952: sizeof(old_sequence_number), ProtectionInfo::kSeedS)); 24952: val = val ^ static_cast(NPHash64( 24952: reinterpret_cast(&new_sequence_number), 24952: sizeof(new_sequence_number), ProtectionInfo::kSeedS)); 24952: SetVal(val); 24952: } 24952: } 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/list" 1 3 24952: # 58 "/usr/include/c++/13/list" 3 24952: 24952: # 59 "/usr/include/c++/13/list" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/stl_list.h" 1 3 24952: # 68 "/usr/include/c++/13/bits/stl_list.h" 3 24952: 24952: # 68 "/usr/include/c++/13/bits/stl_list.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: namespace __detail 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct _List_node_base 24952: { 24952: _List_node_base* _M_next; 24952: _List_node_base* _M_prev; 24952: 24952: static void 24952: swap(_List_node_base& __x, _List_node_base& __y) noexcept; 24952: 24952: void 24952: _M_transfer(_List_node_base* const __first, 24952: _List_node_base* const __last) noexcept; 24952: 24952: void 24952: _M_reverse() noexcept; 24952: 24952: void 24952: _M_hook(_List_node_base* const __position) noexcept; 24952: 24952: void 24952: _M_unhook() noexcept; 24952: }; 24952: 24952: 24952: struct _List_node_header : public _List_node_base 24952: { 24952: 24952: std::size_t _M_size; 24952: 24952: 24952: _List_node_header() noexcept 24952: { _M_init(); } 24952: 24952: 24952: _List_node_header(_List_node_header&& __x) noexcept 24952: : _List_node_base{ __x._M_next, __x._M_prev } 24952: 24952: , _M_size(__x._M_size) 24952: 24952: { 24952: if (__x._M_base()->_M_next == __x._M_base()) 24952: this->_M_next = this->_M_prev = this; 24952: else 24952: { 24952: this->_M_next->_M_prev = this->_M_prev->_M_next = this->_M_base(); 24952: __x._M_init(); 24952: } 24952: } 24952: 24952: void 24952: _M_move_nodes(_List_node_header&& __x) 24952: { 24952: _List_node_base* const __xnode = __x._M_base(); 24952: if (__xnode->_M_next == __xnode) 24952: _M_init(); 24952: else 24952: { 24952: _List_node_base* const __node = this->_M_base(); 24952: __node->_M_next = __xnode->_M_next; 24952: __node->_M_prev = __xnode->_M_prev; 24952: __node->_M_next->_M_prev = __node->_M_prev->_M_next = __node; 24952: 24952: _M_size = __x._M_size; 24952: 24952: __x._M_init(); 24952: } 24952: } 24952: 24952: 24952: void 24952: _M_init() noexcept 24952: { 24952: this->_M_next = this->_M_prev = this; 24952: 24952: this->_M_size = 0; 24952: 24952: } 24952: 24952: private: 24952: _List_node_base* _M_base() { return this; } 24952: }; 24952: 24952: 24952: struct _Scratch_list : _List_node_base 24952: { 24952: _Scratch_list() { _M_next = _M_prev = this; } 24952: 24952: bool empty() const { return _M_next == this; } 24952: 24952: void swap(_List_node_base& __l) { _List_node_base::swap(*this, __l); } 24952: 24952: template 24952: struct _Ptr_cmp 24952: { 24952: _Cmp _M_cmp; 24952: 24952: bool 24952: operator()(__detail::_List_node_base* __lhs, 24952: __detail::_List_node_base* __rhs) 24952: { return _M_cmp(*_Iter(__lhs), *_Iter(__rhs)); } 24952: }; 24952: 24952: template 24952: struct _Ptr_cmp<_Iter, void> 24952: { 24952: bool 24952: operator()(__detail::_List_node_base* __lhs, 24952: __detail::_List_node_base* __rhs) const 24952: { return *_Iter(__lhs) < *_Iter(__rhs); } 24952: }; 24952: 24952: 24952: template 24952: void 24952: merge(_List_node_base& __x, _Cmp __comp) 24952: { 24952: _List_node_base* __first1 = _M_next; 24952: _List_node_base* const __last1 = this; 24952: _List_node_base* __first2 = __x._M_next; 24952: _List_node_base* const __last2 = std::__addressof(__x); 24952: 24952: while (__first1 != __last1 && __first2 != __last2) 24952: { 24952: if (__comp(__first2, __first1)) 24952: { 24952: _List_node_base* __next = __first2->_M_next; 24952: __first1->_M_transfer(__first2, __next); 24952: __first2 = __next; 24952: } 24952: else 24952: __first1 = __first1->_M_next; 24952: } 24952: if (__first2 != __last2) 24952: this->_M_transfer(__first2, __last2); 24952: } 24952: 24952: 24952: void _M_take_one(_List_node_base* __i) 24952: { this->_M_transfer(__i, __i->_M_next); } 24952: 24952: 24952: void _M_put_all(_List_node_base* __i) 24952: { 24952: if (!empty()) 24952: __i->_M_transfer(_M_next, this); 24952: } 24952: }; 24952: 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: struct _List_node : public __detail::_List_node_base 24952: { 24952: 24952: __gnu_cxx::__aligned_membuf<_Tp> _M_storage; 24952: _Tp* _M_valptr() { return _M_storage._M_ptr(); } 24952: _Tp const* _M_valptr() const { return _M_storage._M_ptr(); } 24952: 24952: 24952: 24952: 24952: 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _List_iterator 24952: { 24952: typedef _List_iterator<_Tp> _Self; 24952: typedef _List_node<_Tp> _Node; 24952: 24952: typedef ptrdiff_t difference_type; 24952: typedef std::bidirectional_iterator_tag iterator_category; 24952: typedef _Tp value_type; 24952: typedef _Tp* pointer; 24952: typedef _Tp& reference; 24952: 24952: _List_iterator() noexcept 24952: : _M_node() { } 24952: 24952: explicit 24952: _List_iterator(__detail::_List_node_base* __x) noexcept 24952: : _M_node(__x) { } 24952: 24952: _Self 24952: _M_const_cast() const noexcept 24952: { return *this; } 24952: 24952: 24952: [[__nodiscard__]] 24952: reference 24952: operator*() const noexcept 24952: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 24952: 24952: [[__nodiscard__]] 24952: pointer 24952: operator->() const noexcept 24952: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 24952: 24952: _Self& 24952: operator++() noexcept 24952: { 24952: _M_node = _M_node->_M_next; 24952: return *this; 24952: } 24952: 24952: _Self 24952: operator++(int) noexcept 24952: { 24952: _Self __tmp = *this; 24952: _M_node = _M_node->_M_next; 24952: return __tmp; 24952: } 24952: 24952: _Self& 24952: operator--() noexcept 24952: { 24952: _M_node = _M_node->_M_prev; 24952: return *this; 24952: } 24952: 24952: _Self 24952: operator--(int) noexcept 24952: { 24952: _Self __tmp = *this; 24952: _M_node = _M_node->_M_prev; 24952: return __tmp; 24952: } 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator==(const _Self& __x, const _Self& __y) noexcept 24952: { return __x._M_node == __y._M_node; } 24952: 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator!=(const _Self& __x, const _Self& __y) noexcept 24952: { return __x._M_node != __y._M_node; } 24952: 24952: 24952: 24952: __detail::_List_node_base* _M_node; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _List_const_iterator 24952: { 24952: typedef _List_const_iterator<_Tp> _Self; 24952: typedef const _List_node<_Tp> _Node; 24952: typedef _List_iterator<_Tp> iterator; 24952: 24952: typedef ptrdiff_t difference_type; 24952: typedef std::bidirectional_iterator_tag iterator_category; 24952: typedef _Tp value_type; 24952: typedef const _Tp* pointer; 24952: typedef const _Tp& reference; 24952: 24952: _List_const_iterator() noexcept 24952: : _M_node() { } 24952: 24952: explicit 24952: _List_const_iterator(const __detail::_List_node_base* __x) 24952: noexcept 24952: : _M_node(__x) { } 24952: 24952: _List_const_iterator(const iterator& __x) noexcept 24952: : _M_node(__x._M_node) { } 24952: 24952: iterator 24952: _M_const_cast() const noexcept 24952: { return iterator(const_cast<__detail::_List_node_base*>(_M_node)); } 24952: 24952: 24952: [[__nodiscard__]] 24952: reference 24952: operator*() const noexcept 24952: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 24952: 24952: [[__nodiscard__]] 24952: pointer 24952: operator->() const noexcept 24952: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 24952: 24952: _Self& 24952: operator++() noexcept 24952: { 24952: _M_node = _M_node->_M_next; 24952: return *this; 24952: } 24952: 24952: _Self 24952: operator++(int) noexcept 24952: { 24952: _Self __tmp = *this; 24952: _M_node = _M_node->_M_next; 24952: return __tmp; 24952: } 24952: 24952: _Self& 24952: operator--() noexcept 24952: { 24952: _M_node = _M_node->_M_prev; 24952: return *this; 24952: } 24952: 24952: _Self 24952: operator--(int) noexcept 24952: { 24952: _Self __tmp = *this; 24952: _M_node = _M_node->_M_prev; 24952: return __tmp; 24952: } 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator==(const _Self& __x, const _Self& __y) noexcept 24952: { return __x._M_node == __y._M_node; } 24952: 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator!=(const _Self& __x, const _Self& __y) noexcept 24952: { return __x._M_node != __y._M_node; } 24952: 24952: 24952: 24952: const __detail::_List_node_base* _M_node; 24952: }; 24952: 24952: namespace __cxx11 { 24952: 24952: template 24952: class _List_base 24952: { 24952: protected: 24952: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 24952: rebind<_Tp>::other _Tp_alloc_type; 24952: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tp_alloc_traits; 24952: typedef typename _Tp_alloc_traits::template 24952: rebind<_List_node<_Tp> >::other _Node_alloc_type; 24952: typedef __gnu_cxx::__alloc_traits<_Node_alloc_type> _Node_alloc_traits; 24952: 24952: 24952: static size_t 24952: _S_distance(const __detail::_List_node_base* __first, 24952: const __detail::_List_node_base* __last) 24952: { 24952: size_t __n = 0; 24952: while (__first != __last) 24952: { 24952: __first = __first->_M_next; 24952: ++__n; 24952: } 24952: return __n; 24952: } 24952: 24952: 24952: struct _List_impl 24952: : public _Node_alloc_type 24952: { 24952: __detail::_List_node_header _M_node; 24952: 24952: _List_impl() noexcept(is_nothrow_default_constructible<_Node_alloc_type>::value) 24952: 24952: : _Node_alloc_type() 24952: { } 24952: 24952: _List_impl(const _Node_alloc_type& __a) noexcept 24952: : _Node_alloc_type(__a) 24952: { } 24952: 24952: 24952: _List_impl(_List_impl&&) = default; 24952: 24952: _List_impl(_Node_alloc_type&& __a, _List_impl&& __x) 24952: : _Node_alloc_type(std::move(__a)), _M_node(std::move(__x._M_node)) 24952: { } 24952: 24952: _List_impl(_Node_alloc_type&& __a) noexcept 24952: : _Node_alloc_type(std::move(__a)) 24952: { } 24952: 24952: }; 24952: 24952: _List_impl _M_impl; 24952: 24952: 24952: size_t _M_get_size() const { return _M_impl._M_node._M_size; } 24952: 24952: void _M_set_size(size_t __n) { _M_impl._M_node._M_size = __n; } 24952: 24952: void _M_inc_size(size_t __n) { _M_impl._M_node._M_size += __n; } 24952: 24952: void _M_dec_size(size_t __n) { _M_impl._M_node._M_size -= __n; } 24952: 24952: 24952: size_t 24952: _M_distance(const __detail::_List_node_base* __first, 24952: const __detail::_List_node_base* __last) const 24952: { return _S_distance(__first, __last); } 24952: 24952: 24952: size_t _M_node_count() const { return _M_get_size(); } 24952: # 516 "/usr/include/c++/13/bits/stl_list.h" 3 24952: typename _Node_alloc_traits::pointer 24952: _M_get_node() 24952: { return _Node_alloc_traits::allocate(_M_impl, 1); } 24952: 24952: void 24952: _M_put_node(typename _Node_alloc_traits::pointer __p) noexcept 24952: { _Node_alloc_traits::deallocate(_M_impl, __p, 1); } 24952: 24952: public: 24952: typedef _Alloc allocator_type; 24952: 24952: _Node_alloc_type& 24952: _M_get_Node_allocator() noexcept 24952: { return _M_impl; } 24952: 24952: const _Node_alloc_type& 24952: _M_get_Node_allocator() const noexcept 24952: { return _M_impl; } 24952: 24952: 24952: _List_base() = default; 24952: 24952: 24952: 24952: 24952: _List_base(const _Node_alloc_type& __a) noexcept 24952: : _M_impl(__a) 24952: { } 24952: 24952: 24952: _List_base(_List_base&&) = default; 24952: 24952: 24952: _List_base(_List_base&& __x, _Node_alloc_type&& __a) 24952: : _M_impl(std::move(__a)) 24952: { 24952: if (__x._M_get_Node_allocator() == _M_get_Node_allocator()) 24952: _M_move_nodes(std::move(__x)); 24952: 24952: } 24952: 24952: 24952: 24952: _List_base(_Node_alloc_type&& __a, _List_base&& __x) 24952: : _M_impl(std::move(__a), std::move(__x._M_impl)) 24952: { } 24952: 24952: 24952: _List_base(_Node_alloc_type&& __a) 24952: : _M_impl(std::move(__a)) 24952: { } 24952: 24952: void 24952: _M_move_nodes(_List_base&& __x) 24952: { _M_impl._M_node._M_move_nodes(std::move(__x._M_impl._M_node)); } 24952: 24952: 24952: 24952: ~_List_base() noexcept 24952: { _M_clear(); } 24952: 24952: void 24952: _M_clear() noexcept; 24952: 24952: void 24952: _M_init() noexcept 24952: { this->_M_impl._M_node._M_init(); } 24952: }; 24952: # 631 "/usr/include/c++/13/bits/stl_list.h" 3 24952: template > 24952: class list : protected _List_base<_Tp, _Alloc> 24952: { 24952: # 644 "/usr/include/c++/13/bits/stl_list.h" 3 24952: static_assert(is_same::type, _Tp>::value, 24952: "std::list must have a non-const, non-volatile value_type"); 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef _List_base<_Tp, _Alloc> _Base; 24952: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 24952: typedef typename _Base::_Tp_alloc_traits _Tp_alloc_traits; 24952: typedef typename _Base::_Node_alloc_type _Node_alloc_type; 24952: typedef typename _Base::_Node_alloc_traits _Node_alloc_traits; 24952: 24952: public: 24952: typedef _Tp value_type; 24952: typedef typename _Tp_alloc_traits::pointer pointer; 24952: typedef typename _Tp_alloc_traits::const_pointer const_pointer; 24952: typedef typename _Tp_alloc_traits::reference reference; 24952: typedef typename _Tp_alloc_traits::const_reference const_reference; 24952: typedef _List_iterator<_Tp> iterator; 24952: typedef _List_const_iterator<_Tp> const_iterator; 24952: typedef std::reverse_iterator const_reverse_iterator; 24952: typedef std::reverse_iterator reverse_iterator; 24952: typedef size_t size_type; 24952: typedef ptrdiff_t difference_type; 24952: typedef _Alloc allocator_type; 24952: 24952: protected: 24952: 24952: 24952: typedef _List_node<_Tp> _Node; 24952: 24952: using _Base::_M_impl; 24952: using _Base::_M_put_node; 24952: using _Base::_M_get_node; 24952: using _Base::_M_get_Node_allocator; 24952: # 706 "/usr/include/c++/13/bits/stl_list.h" 3 24952: template 24952: _Node* 24952: _M_create_node(_Args&&... __args) 24952: { 24952: auto __p = this->_M_get_node(); 24952: auto& __alloc = _M_get_Node_allocator(); 24952: __allocated_ptr<_Node_alloc_type> __guard{__alloc, __p}; 24952: _Node_alloc_traits::construct(__alloc, __p->_M_valptr(), 24952: std::forward<_Args>(__args)...); 24952: __guard = nullptr; 24952: return __p; 24952: } 24952: 24952: 24952: 24952: static size_t 24952: _S_distance(const_iterator __first, const_iterator __last) 24952: { return std::distance(__first, __last); } 24952: 24952: 24952: size_t 24952: _M_node_count() const 24952: { return this->_M_get_size(); } 24952: # 741 "/usr/include/c++/13/bits/stl_list.h" 3 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: list() = default; 24952: # 758 "/usr/include/c++/13/bits/stl_list.h" 3 24952: explicit 24952: list(const allocator_type& __a) noexcept 24952: : _Base(_Node_alloc_type(__a)) { } 24952: # 771 "/usr/include/c++/13/bits/stl_list.h" 3 24952: explicit 24952: list(size_type __n, const allocator_type& __a = allocator_type()) 24952: : _Base(_Node_alloc_type(__a)) 24952: { _M_default_initialize(__n); } 24952: # 784 "/usr/include/c++/13/bits/stl_list.h" 3 24952: list(size_type __n, const value_type& __value, 24952: const allocator_type& __a = allocator_type()) 24952: : _Base(_Node_alloc_type(__a)) 24952: { _M_fill_initialize(__n, __value); } 24952: # 811 "/usr/include/c++/13/bits/stl_list.h" 3 24952: list(const list& __x) 24952: : _Base(_Node_alloc_traits:: 24952: _S_select_on_copy(__x._M_get_Node_allocator())) 24952: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 24952: # 824 "/usr/include/c++/13/bits/stl_list.h" 3 24952: list(list&&) = default; 24952: # 834 "/usr/include/c++/13/bits/stl_list.h" 3 24952: list(initializer_list __l, 24952: const allocator_type& __a = allocator_type()) 24952: : _Base(_Node_alloc_type(__a)) 24952: { _M_initialize_dispatch(__l.begin(), __l.end(), __false_type()); } 24952: 24952: list(const list& __x, const __type_identity_t& __a) 24952: : _Base(_Node_alloc_type(__a)) 24952: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 24952: 24952: private: 24952: list(list&& __x, const allocator_type& __a, true_type) noexcept 24952: : _Base(_Node_alloc_type(__a), std::move(__x)) 24952: { } 24952: 24952: list(list&& __x, const allocator_type& __a, false_type) 24952: : _Base(_Node_alloc_type(__a)) 24952: { 24952: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 24952: this->_M_move_nodes(std::move(__x)); 24952: else 24952: insert(begin(), std::__make_move_if_noexcept_iterator(__x.begin()), 24952: std::__make_move_if_noexcept_iterator(__x.end())); 24952: } 24952: 24952: public: 24952: list(list&& __x, const __type_identity_t& __a) 24952: noexcept(_Node_alloc_traits::_S_always_equal()) 24952: : list(std::move(__x), __a, 24952: typename _Node_alloc_traits::is_always_equal{}) 24952: { } 24952: # 877 "/usr/include/c++/13/bits/stl_list.h" 3 24952: template> 24952: list(_InputIterator __first, _InputIterator __last, 24952: const allocator_type& __a = allocator_type()) 24952: : _Base(_Node_alloc_type(__a)) 24952: { _M_initialize_dispatch(__first, __last, __false_type()); } 24952: # 903 "/usr/include/c++/13/bits/stl_list.h" 3 24952: ~list() = default; 24952: # 914 "/usr/include/c++/13/bits/stl_list.h" 3 24952: list& 24952: operator=(const list& __x); 24952: # 928 "/usr/include/c++/13/bits/stl_list.h" 3 24952: list& 24952: operator=(list&& __x) 24952: noexcept(_Node_alloc_traits::_S_nothrow_move()) 24952: { 24952: constexpr bool __move_storage = 24952: _Node_alloc_traits::_S_propagate_on_move_assign() 24952: || _Node_alloc_traits::_S_always_equal(); 24952: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 24952: return *this; 24952: } 24952: # 946 "/usr/include/c++/13/bits/stl_list.h" 3 24952: list& 24952: operator=(initializer_list __l) 24952: { 24952: this->assign(__l.begin(), __l.end()); 24952: return *this; 24952: } 24952: # 964 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: assign(size_type __n, const value_type& __val) 24952: { _M_fill_assign(__n, __val); } 24952: # 981 "/usr/include/c++/13/bits/stl_list.h" 3 24952: template> 24952: void 24952: assign(_InputIterator __first, _InputIterator __last) 24952: { _M_assign_dispatch(__first, __last, __false_type()); } 24952: # 1005 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: assign(initializer_list __l) 24952: { this->_M_assign_dispatch(__l.begin(), __l.end(), __false_type()); } 24952: 24952: 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return allocator_type(_Base::_M_get_Node_allocator()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: iterator 24952: begin() noexcept 24952: { return iterator(this->_M_impl._M_node._M_next); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: begin() const noexcept 24952: { return const_iterator(this->_M_impl._M_node._M_next); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: iterator 24952: end() noexcept 24952: { return iterator(&this->_M_impl._M_node); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: end() const noexcept 24952: { return const_iterator(&this->_M_impl._M_node); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reverse_iterator 24952: rbegin() noexcept 24952: { return reverse_iterator(end()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: rbegin() const noexcept 24952: { return const_reverse_iterator(end()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reverse_iterator 24952: rend() noexcept 24952: { return reverse_iterator(begin()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: rend() const noexcept 24952: { return const_reverse_iterator(begin()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: cbegin() const noexcept 24952: { return const_iterator(this->_M_impl._M_node._M_next); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_iterator 24952: cend() const noexcept 24952: { return const_iterator(&this->_M_impl._M_node); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: crbegin() const noexcept 24952: { return const_reverse_iterator(end()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reverse_iterator 24952: crend() const noexcept 24952: { return const_reverse_iterator(begin()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] bool 24952: empty() const noexcept 24952: { return this->_M_impl._M_node._M_next == &this->_M_impl._M_node; } 24952: 24952: 24952: [[__nodiscard__]] 24952: size_type 24952: size() const noexcept 24952: { return _M_node_count(); } 24952: 24952: 24952: [[__nodiscard__]] 24952: size_type 24952: max_size() const noexcept 24952: { return _Node_alloc_traits::max_size(_M_get_Node_allocator()); } 24952: # 1168 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: resize(size_type __new_size); 24952: # 1181 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: resize(size_type __new_size, const value_type& __x); 24952: # 1203 "/usr/include/c++/13/bits/stl_list.h" 3 24952: [[__nodiscard__]] 24952: reference 24952: front() noexcept 24952: { return *begin(); } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reference 24952: front() const noexcept 24952: { return *begin(); } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: reference 24952: back() noexcept 24952: { 24952: iterator __tmp = end(); 24952: --__tmp; 24952: return *__tmp; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: const_reference 24952: back() const noexcept 24952: { 24952: const_iterator __tmp = end(); 24952: --__tmp; 24952: return *__tmp; 24952: } 24952: # 1254 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: push_front(const value_type& __x) 24952: { this->_M_insert(begin(), __x); } 24952: 24952: 24952: void 24952: push_front(value_type&& __x) 24952: { this->_M_insert(begin(), std::move(__x)); } 24952: 24952: template 24952: 24952: reference 24952: 24952: 24952: 24952: emplace_front(_Args&&... __args) 24952: { 24952: this->_M_insert(begin(), std::forward<_Args>(__args)...); 24952: 24952: return front(); 24952: 24952: } 24952: # 1290 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: pop_front() noexcept 24952: { this->_M_erase(begin()); } 24952: # 1304 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: push_back(const value_type& __x) 24952: { this->_M_insert(end(), __x); } 24952: 24952: 24952: void 24952: push_back(value_type&& __x) 24952: { this->_M_insert(end(), std::move(__x)); } 24952: 24952: template 24952: 24952: reference 24952: 24952: 24952: 24952: emplace_back(_Args&&... __args) 24952: { 24952: this->_M_insert(end(), std::forward<_Args>(__args)...); 24952: 24952: return back(); 24952: 24952: } 24952: # 1339 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: pop_back() noexcept 24952: { this->_M_erase(iterator(this->_M_impl._M_node._M_prev)); } 24952: # 1356 "/usr/include/c++/13/bits/stl_list.h" 3 24952: template 24952: iterator 24952: emplace(const_iterator __position, _Args&&... __args); 24952: # 1371 "/usr/include/c++/13/bits/stl_list.h" 3 24952: iterator 24952: insert(const_iterator __position, const value_type& __x); 24952: # 1401 "/usr/include/c++/13/bits/stl_list.h" 3 24952: iterator 24952: insert(const_iterator __position, value_type&& __x) 24952: { return emplace(__position, std::move(__x)); } 24952: # 1420 "/usr/include/c++/13/bits/stl_list.h" 3 24952: iterator 24952: insert(const_iterator __p, initializer_list __l) 24952: { return this->insert(__p, __l.begin(), __l.end()); } 24952: # 1440 "/usr/include/c++/13/bits/stl_list.h" 3 24952: iterator 24952: insert(const_iterator __position, size_type __n, const value_type& __x); 24952: # 1479 "/usr/include/c++/13/bits/stl_list.h" 3 24952: template> 24952: iterator 24952: insert(const_iterator __position, _InputIterator __first, 24952: _InputIterator __last); 24952: # 1523 "/usr/include/c++/13/bits/stl_list.h" 3 24952: iterator 24952: 24952: erase(const_iterator __position) noexcept; 24952: # 1548 "/usr/include/c++/13/bits/stl_list.h" 3 24952: iterator 24952: 24952: erase(const_iterator __first, const_iterator __last) noexcept 24952: 24952: 24952: 24952: { 24952: while (__first != __last) 24952: __first = erase(__first); 24952: return __last._M_const_cast(); 24952: } 24952: # 1571 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: swap(list& __x) noexcept 24952: { 24952: __detail::_List_node_base::swap(this->_M_impl._M_node, 24952: __x._M_impl._M_node); 24952: 24952: size_t __xsize = __x._M_get_size(); 24952: __x._M_set_size(this->_M_get_size()); 24952: this->_M_set_size(__xsize); 24952: 24952: _Node_alloc_traits::_S_on_swap(this->_M_get_Node_allocator(), 24952: __x._M_get_Node_allocator()); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: clear() noexcept 24952: { 24952: _Base::_M_clear(); 24952: _Base::_M_init(); 24952: } 24952: # 1610 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: 24952: splice(const_iterator __position, list&& __x) noexcept 24952: 24952: 24952: 24952: { 24952: if (!__x.empty()) 24952: { 24952: _M_check_equal_allocators(__x); 24952: 24952: this->_M_transfer(__position._M_const_cast(), 24952: __x.begin(), __x.end()); 24952: 24952: this->_M_inc_size(__x._M_get_size()); 24952: __x._M_set_size(0); 24952: } 24952: } 24952: 24952: 24952: void 24952: splice(const_iterator __position, list& __x) noexcept 24952: { splice(__position, std::move(__x)); } 24952: # 1646 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: splice(const_iterator __position, list&& __x, const_iterator __i) noexcept 24952: # 1661 "/usr/include/c++/13/bits/stl_list.h" 3 24952: { 24952: iterator __j = __i._M_const_cast(); 24952: ++__j; 24952: if (__position == __i || __position == __j) 24952: return; 24952: 24952: if (this != std::__addressof(__x)) 24952: _M_check_equal_allocators(__x); 24952: 24952: this->_M_transfer(__position._M_const_cast(), 24952: __i._M_const_cast(), __j); 24952: 24952: this->_M_inc_size(1); 24952: __x._M_dec_size(1); 24952: } 24952: # 1688 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: splice(const_iterator __position, list& __x, const_iterator __i) noexcept 24952: { splice(__position, std::move(__x), __i); } 24952: # 1707 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: splice(const_iterator __position, list&& __x, const_iterator __first, 24952: const_iterator __last) noexcept 24952: # 1727 "/usr/include/c++/13/bits/stl_list.h" 3 24952: { 24952: if (__first != __last) 24952: { 24952: if (this != std::__addressof(__x)) 24952: _M_check_equal_allocators(__x); 24952: 24952: size_t __n = _S_distance(__first, __last); 24952: this->_M_inc_size(__n); 24952: __x._M_dec_size(__n); 24952: 24952: this->_M_transfer(__position._M_const_cast(), 24952: __first._M_const_cast(), 24952: __last._M_const_cast()); 24952: } 24952: } 24952: # 1757 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: splice(const_iterator __position, list& __x, const_iterator __first, 24952: const_iterator __last) noexcept 24952: { splice(__position, std::move(__x), __first, __last); } 24952: 24952: 24952: private: 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef void __remove_return_type; 24952: 24952: 24952: public: 24952: # 1786 "/usr/include/c++/13/bits/stl_list.h" 3 24952: 24952: __remove_return_type 24952: remove(const _Tp& __value); 24952: # 1801 "/usr/include/c++/13/bits/stl_list.h" 3 24952: template 24952: __remove_return_type 24952: remove_if(_Predicate); 24952: # 1815 "/usr/include/c++/13/bits/stl_list.h" 3 24952: 24952: __remove_return_type 24952: unique(); 24952: # 1831 "/usr/include/c++/13/bits/stl_list.h" 3 24952: template 24952: __remove_return_type 24952: unique(_BinaryPredicate); 24952: # 1847 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: merge(list&& __x); 24952: 24952: void 24952: merge(list& __x) 24952: { merge(std::move(__x)); } 24952: # 1872 "/usr/include/c++/13/bits/stl_list.h" 3 24952: template 24952: void 24952: merge(list&& __x, _StrictWeakOrdering __comp); 24952: 24952: template 24952: void 24952: merge(list& __x, _StrictWeakOrdering __comp) 24952: { merge(std::move(__x), __comp); } 24952: # 1891 "/usr/include/c++/13/bits/stl_list.h" 3 24952: void 24952: reverse() noexcept 24952: { this->_M_impl._M_node._M_reverse(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: sort(); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: void 24952: sort(_StrictWeakOrdering); 24952: 24952: protected: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: void 24952: _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) 24952: { _M_fill_initialize(static_cast(__n), __x); } 24952: 24952: 24952: template 24952: void 24952: _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, 24952: __false_type) 24952: { 24952: for (; __first != __last; ++__first) 24952: 24952: emplace_back(*__first); 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: void 24952: _M_fill_initialize(size_type __n, const value_type& __x) 24952: { 24952: for (; __n; --__n) 24952: push_back(__x); 24952: } 24952: 24952: 24952: 24952: void 24952: _M_default_initialize(size_type __n) 24952: { 24952: for (; __n; --__n) 24952: emplace_back(); 24952: } 24952: 24952: 24952: void 24952: _M_default_append(size_type __n); 24952: # 1969 "/usr/include/c++/13/bits/stl_list.h" 3 24952: template 24952: void 24952: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 24952: { _M_fill_assign(__n, __val); } 24952: 24952: 24952: template 24952: void 24952: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 24952: __false_type); 24952: 24952: 24952: 24952: void 24952: _M_fill_assign(size_type __n, const value_type& __val); 24952: 24952: 24952: 24952: void 24952: _M_transfer(iterator __position, iterator __first, iterator __last) 24952: { __position._M_node->_M_transfer(__first._M_node, __last._M_node); } 24952: # 2001 "/usr/include/c++/13/bits/stl_list.h" 3 24952: template 24952: void 24952: _M_insert(iterator __position, _Args&&... __args) 24952: { 24952: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 24952: __tmp->_M_hook(__position._M_node); 24952: this->_M_inc_size(1); 24952: } 24952: 24952: 24952: 24952: void 24952: _M_erase(iterator __position) noexcept 24952: { 24952: this->_M_dec_size(1); 24952: __position._M_node->_M_unhook(); 24952: _Node* __n = static_cast<_Node*>(__position._M_node); 24952: 24952: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __n->_M_valptr()); 24952: 24952: 24952: 24952: 24952: _M_put_node(__n); 24952: } 24952: 24952: 24952: void 24952: _M_check_equal_allocators(const list& __x) noexcept 24952: { 24952: if (_M_get_Node_allocator() != __x._M_get_Node_allocator()) 24952: __builtin_abort(); 24952: } 24952: 24952: 24952: const_iterator 24952: _M_resize_pos(size_type& __new_size) const; 24952: 24952: 24952: void 24952: _M_move_assign(list&& __x, true_type) noexcept 24952: { 24952: this->clear(); 24952: this->_M_move_nodes(std::move(__x)); 24952: std::__alloc_on_move(this->_M_get_Node_allocator(), 24952: __x._M_get_Node_allocator()); 24952: } 24952: 24952: void 24952: _M_move_assign(list&& __x, false_type) 24952: { 24952: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 24952: _M_move_assign(std::move(__x), true_type{}); 24952: else 24952: 24952: 24952: _M_assign_dispatch(std::make_move_iterator(__x.begin()), 24952: std::make_move_iterator(__x.end()), 24952: __false_type{}); 24952: } 24952: 24952: 24952: 24952: 24952: struct _Finalize_merge 24952: { 24952: explicit 24952: _Finalize_merge(list& __dest, list& __src, const iterator& __src_next) 24952: : _M_dest(__dest), _M_src(__src), _M_next(__src_next) 24952: { } 24952: 24952: ~_Finalize_merge() 24952: { 24952: 24952: 24952: 24952: const size_t __num_unmerged = std::distance(_M_next, _M_src.end()); 24952: const size_t __orig_size = _M_src._M_get_size(); 24952: _M_dest._M_inc_size(__orig_size - __num_unmerged); 24952: _M_src._M_set_size(__num_unmerged); 24952: } 24952: 24952: list& _M_dest; 24952: list& _M_src; 24952: const iterator& _M_next; 24952: 24952: 24952: _Finalize_merge(const _Finalize_merge&) = delete; 24952: 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: }; 24952: 24952: 24952: template::value_type, 24952: typename _Allocator = allocator<_ValT>, 24952: typename = _RequireInputIter<_InputIterator>, 24952: typename = _RequireAllocator<_Allocator>> 24952: list(_InputIterator, _InputIterator, _Allocator = _Allocator()) 24952: -> list<_ValT, _Allocator>; 24952: 24952: 24952: } 24952: # 2120 "/usr/include/c++/13/bits/stl_list.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 24952: { 24952: 24952: if (__x.size() != __y.size()) 24952: return false; 24952: 24952: 24952: typedef typename list<_Tp, _Alloc>::const_iterator const_iterator; 24952: const_iterator __end1 = __x.end(); 24952: const_iterator __end2 = __y.end(); 24952: 24952: const_iterator __i1 = __x.begin(); 24952: const_iterator __i2 = __y.begin(); 24952: while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) 24952: { 24952: ++__i1; 24952: ++__i2; 24952: } 24952: return __i1 == __end1 && __i2 == __end2; 24952: } 24952: # 2177 "/usr/include/c++/13/bits/stl_list.h" 3 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 24952: { return std::lexicographical_compare(__x.begin(), __x.end(), 24952: __y.begin(), __y.end()); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator!=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 24952: { return !(__x == __y); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 24952: { return __y < __x; } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator<=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 24952: { return !(__y < __x); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator>=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 24952: { return !(__x < __y); } 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline ptrdiff_t 24952: __distance(std::_List_iterator<_Tp> __first, 24952: std::_List_iterator<_Tp> __last, 24952: input_iterator_tag __tag) 24952: { 24952: typedef std::_List_const_iterator<_Tp> _CIter; 24952: return std::__distance(_CIter(__first), _CIter(__last), __tag); 24952: } 24952: 24952: template 24952: inline ptrdiff_t 24952: __distance(std::_List_const_iterator<_Tp> __first, 24952: std::_List_const_iterator<_Tp> __last, 24952: input_iterator_tag) 24952: { 24952: typedef __detail::_List_node_header _Sentinel; 24952: std::_List_const_iterator<_Tp> __beyond = __last; 24952: ++__beyond; 24952: const bool __whole = __first == __beyond; 24952: if (__builtin_constant_p (__whole) && __whole) 24952: return static_cast(__last._M_node)->_M_size; 24952: 24952: ptrdiff_t __n = 0; 24952: while (__first != __last) 24952: { 24952: ++__first; 24952: ++__n; 24952: } 24952: return __n; 24952: } 24952: 24952: 24952: 24952: } 24952: # 66 "/usr/include/c++/13/list" 2 3 24952: # 1 "/usr/include/c++/13/bits/list.tcc" 1 3 24952: # 59 "/usr/include/c++/13/bits/list.tcc" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: void 24952: _List_base<_Tp, _Alloc>:: 24952: _M_clear() noexcept 24952: { 24952: typedef _List_node<_Tp> _Node; 24952: __detail::_List_node_base* __cur = _M_impl._M_node._M_next; 24952: while (__cur != &_M_impl._M_node) 24952: { 24952: _Node* __tmp = static_cast<_Node*>(__cur); 24952: __cur = __tmp->_M_next; 24952: _Tp* __val = __tmp->_M_valptr(); 24952: 24952: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __val); 24952: 24952: 24952: 24952: _M_put_node(__tmp); 24952: } 24952: } 24952: 24952: 24952: template 24952: template 24952: typename list<_Tp, _Alloc>::iterator 24952: list<_Tp, _Alloc>:: 24952: emplace(const_iterator __position, _Args&&... __args) 24952: { 24952: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 24952: __tmp->_M_hook(__position._M_const_cast()._M_node); 24952: this->_M_inc_size(1); 24952: return iterator(__tmp); 24952: } 24952: 24952: 24952: template 24952: typename list<_Tp, _Alloc>::iterator 24952: list<_Tp, _Alloc>:: 24952: 24952: insert(const_iterator __position, const value_type& __x) 24952: 24952: 24952: 24952: { 24952: _Node* __tmp = _M_create_node(__x); 24952: __tmp->_M_hook(__position._M_const_cast()._M_node); 24952: this->_M_inc_size(1); 24952: return iterator(__tmp); 24952: } 24952: 24952: 24952: template 24952: typename list<_Tp, _Alloc>::iterator 24952: list<_Tp, _Alloc>:: 24952: insert(const_iterator __position, size_type __n, const value_type& __x) 24952: { 24952: if (__n) 24952: { 24952: list __tmp(__n, __x, get_allocator()); 24952: iterator __it = __tmp.begin(); 24952: splice(__position, __tmp); 24952: return __it; 24952: } 24952: return __position._M_const_cast(); 24952: } 24952: 24952: template 24952: template 24952: typename list<_Tp, _Alloc>::iterator 24952: list<_Tp, _Alloc>:: 24952: insert(const_iterator __position, _InputIterator __first, 24952: _InputIterator __last) 24952: { 24952: list __tmp(__first, __last, get_allocator()); 24952: if (!__tmp.empty()) 24952: { 24952: iterator __it = __tmp.begin(); 24952: splice(__position, __tmp); 24952: return __it; 24952: } 24952: return __position._M_const_cast(); 24952: } 24952: 24952: 24952: template 24952: typename list<_Tp, _Alloc>::iterator 24952: list<_Tp, _Alloc>:: 24952: 24952: erase(const_iterator __position) noexcept 24952: 24952: 24952: 24952: { 24952: iterator __ret = iterator(__position._M_node->_M_next); 24952: _M_erase(__position._M_const_cast()); 24952: return __ret; 24952: } 24952: # 173 "/usr/include/c++/13/bits/list.tcc" 3 24952: template 24952: typename list<_Tp, _Alloc>::const_iterator 24952: list<_Tp, _Alloc>:: 24952: _M_resize_pos(size_type& __new_size) const 24952: { 24952: const_iterator __i; 24952: 24952: const size_type __len = size(); 24952: if (__new_size < __len) 24952: { 24952: if (__new_size <= __len / 2) 24952: { 24952: __i = begin(); 24952: std::advance(__i, __new_size); 24952: } 24952: else 24952: { 24952: __i = end(); 24952: ptrdiff_t __num_erase = __len - __new_size; 24952: std::advance(__i, -__num_erase); 24952: } 24952: __new_size = 0; 24952: return __i; 24952: } 24952: else 24952: __i = end(); 24952: 24952: 24952: 24952: 24952: 24952: __new_size -= __len; 24952: return __i; 24952: } 24952: 24952: 24952: template 24952: void 24952: list<_Tp, _Alloc>:: 24952: _M_default_append(size_type __n) 24952: { 24952: size_type __i = 0; 24952: try 24952: { 24952: for (; __i < __n; ++__i) 24952: emplace_back(); 24952: } 24952: catch(...) 24952: { 24952: for (; __i; --__i) 24952: pop_back(); 24952: throw; 24952: } 24952: } 24952: 24952: template 24952: void 24952: list<_Tp, _Alloc>:: 24952: resize(size_type __new_size) 24952: { 24952: const_iterator __i = _M_resize_pos(__new_size); 24952: if (__new_size) 24952: _M_default_append(__new_size); 24952: else 24952: erase(__i, end()); 24952: } 24952: 24952: template 24952: void 24952: list<_Tp, _Alloc>:: 24952: resize(size_type __new_size, const value_type& __x) 24952: { 24952: const_iterator __i = _M_resize_pos(__new_size); 24952: if (__new_size) 24952: insert(end(), __new_size, __x); 24952: else 24952: erase(__i, end()); 24952: } 24952: # 265 "/usr/include/c++/13/bits/list.tcc" 3 24952: template 24952: list<_Tp, _Alloc>& 24952: list<_Tp, _Alloc>:: 24952: operator=(const list& __x) 24952: { 24952: if (this != std::__addressof(__x)) 24952: { 24952: 24952: if (_Node_alloc_traits::_S_propagate_on_copy_assign()) 24952: { 24952: auto& __this_alloc = this->_M_get_Node_allocator(); 24952: auto& __that_alloc = __x._M_get_Node_allocator(); 24952: if (!_Node_alloc_traits::_S_always_equal() 24952: && __this_alloc != __that_alloc) 24952: { 24952: 24952: clear(); 24952: } 24952: std::__alloc_on_copy(__this_alloc, __that_alloc); 24952: } 24952: 24952: _M_assign_dispatch(__x.begin(), __x.end(), __false_type()); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: void 24952: list<_Tp, _Alloc>:: 24952: _M_fill_assign(size_type __n, const value_type& __val) 24952: { 24952: iterator __i = begin(); 24952: for (; __i != end() && __n > 0; ++__i, --__n) 24952: *__i = __val; 24952: if (__n > 0) 24952: insert(end(), __n, __val); 24952: else 24952: erase(__i, end()); 24952: } 24952: 24952: template 24952: template 24952: void 24952: list<_Tp, _Alloc>:: 24952: _M_assign_dispatch(_InputIterator __first2, _InputIterator __last2, 24952: __false_type) 24952: { 24952: iterator __first1 = begin(); 24952: iterator __last1 = end(); 24952: for (; __first1 != __last1 && __first2 != __last2; 24952: ++__first1, (void)++__first2) 24952: *__first1 = *__first2; 24952: if (__first2 == __last2) 24952: erase(__first1, __last1); 24952: else 24952: insert(__last1, __first2, __last2); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: typename list<_Tp, _Alloc>::__remove_return_type 24952: list<_Tp, _Alloc>:: 24952: remove(const value_type& __value) 24952: { 24952: 24952: 24952: 24952: list __to_destroy(get_allocator()); 24952: iterator __first = begin(); 24952: iterator __last = end(); 24952: while (__first != __last) 24952: { 24952: iterator __next = __first; 24952: ++__next; 24952: if (*__first == __value) 24952: { 24952: 24952: 24952: 24952: __to_destroy.splice(__to_destroy.begin(), *this, __first); 24952: 24952: 24952: 24952: } 24952: 24952: __first = __next; 24952: } 24952: 24952: 24952: 24952: 24952: return ; 24952: 24952: } 24952: 24952: template 24952: typename list<_Tp, _Alloc>::__remove_return_type 24952: list<_Tp, _Alloc>:: 24952: unique() 24952: { 24952: iterator __first = begin(); 24952: iterator __last = end(); 24952: if (__first == __last) 24952: return ; 24952: 24952: 24952: 24952: list __to_destroy(get_allocator()); 24952: iterator __next = __first; 24952: while (++__next != __last) 24952: { 24952: if (*__first == *__next) 24952: { 24952: __to_destroy.splice(__to_destroy.begin(), *this, __next); 24952: 24952: 24952: 24952: } 24952: else 24952: __first = __next; 24952: __next = __first; 24952: } 24952: 24952: 24952: 24952: 24952: return ; 24952: 24952: } 24952: 24952: template 24952: void 24952: list<_Tp, _Alloc>:: 24952: 24952: merge(list&& __x) 24952: 24952: 24952: 24952: { 24952: 24952: 24952: if (this != std::__addressof(__x)) 24952: { 24952: _M_check_equal_allocators(__x); 24952: 24952: iterator __first1 = begin(); 24952: iterator __last1 = end(); 24952: iterator __first2 = __x.begin(); 24952: iterator __last2 = __x.end(); 24952: 24952: const _Finalize_merge __fin(*this, __x, __first2); 24952: 24952: while (__first1 != __last1 && __first2 != __last2) 24952: if (*__first2 < *__first1) 24952: { 24952: iterator __next = __first2; 24952: _M_transfer(__first1, __first2, ++__next); 24952: __first2 = __next; 24952: } 24952: else 24952: ++__first1; 24952: if (__first2 != __last2) 24952: { 24952: _M_transfer(__last1, __first2, __last2); 24952: __first2 = __last2; 24952: } 24952: } 24952: } 24952: 24952: template 24952: template 24952: void 24952: list<_Tp, _Alloc>:: 24952: 24952: merge(list&& __x, _StrictWeakOrdering __comp) 24952: 24952: 24952: 24952: { 24952: 24952: 24952: if (this != std::__addressof(__x)) 24952: { 24952: _M_check_equal_allocators(__x); 24952: 24952: iterator __first1 = begin(); 24952: iterator __last1 = end(); 24952: iterator __first2 = __x.begin(); 24952: iterator __last2 = __x.end(); 24952: 24952: const _Finalize_merge __fin(*this, __x, __first2); 24952: 24952: while (__first1 != __last1 && __first2 != __last2) 24952: if (__comp(*__first2, *__first1)) 24952: { 24952: iterator __next = __first2; 24952: _M_transfer(__first1, __first2, ++__next); 24952: __first2 = __next; 24952: } 24952: else 24952: ++__first1; 24952: if (__first2 != __last2) 24952: { 24952: _M_transfer(__last1, __first2, __last2); 24952: __first2 = __last2; 24952: } 24952: } 24952: } 24952: 24952: template 24952: void 24952: list<_Tp, _Alloc>:: 24952: sort() 24952: { 24952: 24952: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 24952: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 24952: { 24952: using __detail::_Scratch_list; 24952: # 497 "/usr/include/c++/13/bits/list.tcc" 3 24952: _Scratch_list __carry; 24952: _Scratch_list __tmp[64]; 24952: _Scratch_list* __fill = __tmp; 24952: _Scratch_list* __counter; 24952: 24952: _Scratch_list::_Ptr_cmp __ptr_comp; 24952: 24952: try 24952: { 24952: do 24952: { 24952: __carry._M_take_one(begin()._M_node); 24952: 24952: for(__counter = __tmp; 24952: __counter != __fill && !__counter->empty(); 24952: ++__counter) 24952: { 24952: 24952: __counter->merge(__carry, __ptr_comp); 24952: __carry.swap(*__counter); 24952: } 24952: __carry.swap(*__counter); 24952: if (__counter == __fill) 24952: ++__fill; 24952: } 24952: while ( !empty() ); 24952: 24952: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 24952: __counter->merge(__counter[-1], __ptr_comp); 24952: __fill[-1].swap(this->_M_impl._M_node); 24952: } 24952: catch(...) 24952: { 24952: 24952: __carry._M_put_all(end()._M_node); 24952: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 24952: __tmp[__i]._M_put_all(end()._M_node); 24952: throw; 24952: } 24952: } 24952: } 24952: 24952: template 24952: template 24952: typename list<_Tp, _Alloc>::__remove_return_type 24952: list<_Tp, _Alloc>:: 24952: remove_if(_Predicate __pred) 24952: { 24952: 24952: 24952: 24952: list __to_destroy(get_allocator()); 24952: iterator __first = begin(); 24952: iterator __last = end(); 24952: while (__first != __last) 24952: { 24952: iterator __next = __first; 24952: ++__next; 24952: if (__pred(*__first)) 24952: { 24952: __to_destroy.splice(__to_destroy.begin(), *this, __first); 24952: 24952: 24952: 24952: } 24952: __first = __next; 24952: } 24952: 24952: 24952: 24952: 24952: return ; 24952: 24952: } 24952: 24952: template 24952: template 24952: typename list<_Tp, _Alloc>::__remove_return_type 24952: list<_Tp, _Alloc>:: 24952: unique(_BinaryPredicate __binary_pred) 24952: { 24952: iterator __first = begin(); 24952: iterator __last = end(); 24952: if (__first == __last) 24952: return ; 24952: 24952: 24952: 24952: list __to_destroy(get_allocator()); 24952: iterator __next = __first; 24952: while (++__next != __last) 24952: { 24952: if (__binary_pred(*__first, *__next)) 24952: { 24952: __to_destroy.splice(__to_destroy.begin(), *this, __next); 24952: 24952: 24952: 24952: } 24952: else 24952: __first = __next; 24952: __next = __first; 24952: } 24952: 24952: 24952: 24952: 24952: return ; 24952: 24952: } 24952: 24952: 24952: 24952: template 24952: template 24952: void 24952: list<_Tp, _Alloc>:: 24952: sort(_StrictWeakOrdering __comp) 24952: { 24952: 24952: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 24952: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 24952: { 24952: using __detail::_Scratch_list; 24952: _Scratch_list __carry; 24952: _Scratch_list __tmp[64]; 24952: _Scratch_list* __fill = __tmp; 24952: _Scratch_list* __counter; 24952: 24952: _Scratch_list::_Ptr_cmp __ptr_comp 24952: = { __comp }; 24952: 24952: try 24952: { 24952: do 24952: { 24952: __carry._M_take_one(begin()._M_node); 24952: 24952: for(__counter = __tmp; 24952: __counter != __fill && !__counter->empty(); 24952: ++__counter) 24952: { 24952: 24952: __counter->merge(__carry, __ptr_comp); 24952: __carry.swap(*__counter); 24952: } 24952: __carry.swap(*__counter); 24952: if (__counter == __fill) 24952: ++__fill; 24952: } 24952: while ( !empty() ); 24952: 24952: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 24952: __counter->merge(__counter[-1], __ptr_comp); 24952: __fill[-1].swap(this->_M_impl._M_node); 24952: } 24952: catch(...) 24952: { 24952: 24952: __carry._M_put_all(end()._M_node); 24952: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 24952: __tmp[__i]._M_put_all(end()._M_node); 24952: throw; 24952: } 24952: } 24952: } 24952: 24952: 24952: 24952: } 24952: # 67 "/usr/include/c++/13/list" 2 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: namespace pmr 24952: { 24952: template 24952: using list = std::list<_Tp, polymorphic_allocator<_Tp>>; 24952: } 24952: 24952: } 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 2 24952: 24952: # 1 "/usr/include/c++/13/set" 1 3 24952: # 58 "/usr/include/c++/13/set" 3 24952: 24952: # 59 "/usr/include/c++/13/set" 3 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/stl_set.h" 1 3 24952: # 64 "/usr/include/c++/13/bits/stl_set.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: class multiset; 24952: # 94 "/usr/include/c++/13/bits/stl_set.h" 3 24952: template, 24952: typename _Alloc = std::allocator<_Key> > 24952: class set 24952: { 24952: # 110 "/usr/include/c++/13/bits/stl_set.h" 3 24952: static_assert(is_same::type, _Key>::value, 24952: "std::set must have a non-const, non-volatile value_type"); 24952: 24952: 24952: 24952: 24952: 24952: 24952: public: 24952: 24952: 24952: 24952: typedef _Key key_type; 24952: typedef _Key value_type; 24952: typedef _Compare key_compare; 24952: typedef _Compare value_compare; 24952: typedef _Alloc allocator_type; 24952: 24952: 24952: private: 24952: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 24952: rebind<_Key>::other _Key_alloc_type; 24952: 24952: typedef _Rb_tree, 24952: key_compare, _Key_alloc_type> _Rep_type; 24952: _Rep_type _M_t; 24952: 24952: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 24952: 24952: public: 24952: 24952: 24952: typedef typename _Alloc_traits::pointer pointer; 24952: typedef typename _Alloc_traits::const_pointer const_pointer; 24952: typedef typename _Alloc_traits::reference reference; 24952: typedef typename _Alloc_traits::const_reference const_reference; 24952: 24952: 24952: 24952: typedef typename _Rep_type::const_iterator iterator; 24952: typedef typename _Rep_type::const_iterator const_iterator; 24952: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 24952: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 24952: typedef typename _Rep_type::size_type size_type; 24952: typedef typename _Rep_type::difference_type difference_type; 24952: 24952: 24952: 24952: using node_type = typename _Rep_type::node_type; 24952: using insert_return_type = typename _Rep_type::insert_return_type; 24952: # 169 "/usr/include/c++/13/bits/stl_set.h" 3 24952: set() = default; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: set(const _Compare& __comp, 24952: const allocator_type& __a = allocator_type()) 24952: : _M_t(__comp, _Key_alloc_type(__a)) { } 24952: # 192 "/usr/include/c++/13/bits/stl_set.h" 3 24952: template 24952: set(_InputIterator __first, _InputIterator __last) 24952: : _M_t() 24952: { _M_t._M_insert_range_unique(__first, __last); } 24952: # 209 "/usr/include/c++/13/bits/stl_set.h" 3 24952: template 24952: set(_InputIterator __first, _InputIterator __last, 24952: const _Compare& __comp, 24952: const allocator_type& __a = allocator_type()) 24952: : _M_t(__comp, _Key_alloc_type(__a)) 24952: { _M_t._M_insert_range_unique(__first, __last); } 24952: # 225 "/usr/include/c++/13/bits/stl_set.h" 3 24952: set(const set&) = default; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: set(set&&) = default; 24952: # 245 "/usr/include/c++/13/bits/stl_set.h" 3 24952: set(initializer_list __l, 24952: const _Compare& __comp = _Compare(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_t(__comp, _Key_alloc_type(__a)) 24952: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 24952: 24952: 24952: explicit 24952: set(const allocator_type& __a) 24952: : _M_t(_Key_alloc_type(__a)) { } 24952: 24952: 24952: set(const set& __x, const __type_identity_t& __a) 24952: : _M_t(__x._M_t, _Key_alloc_type(__a)) { } 24952: 24952: 24952: set(set&& __x, const __type_identity_t& __a) 24952: noexcept(is_nothrow_copy_constructible<_Compare>::value 24952: && _Alloc_traits::_S_always_equal()) 24952: : _M_t(std::move(__x._M_t), _Key_alloc_type(__a)) { } 24952: 24952: 24952: set(initializer_list __l, const allocator_type& __a) 24952: : _M_t(_Key_alloc_type(__a)) 24952: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 24952: 24952: 24952: template 24952: set(_InputIterator __first, _InputIterator __last, 24952: const allocator_type& __a) 24952: : _M_t(_Key_alloc_type(__a)) 24952: { _M_t._M_insert_range_unique(__first, __last); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: ~set() = default; 24952: # 299 "/usr/include/c++/13/bits/stl_set.h" 3 24952: set& 24952: operator=(const set&) = default; 24952: 24952: 24952: set& 24952: operator=(set&&) = default; 24952: # 317 "/usr/include/c++/13/bits/stl_set.h" 3 24952: set& 24952: operator=(initializer_list __l) 24952: { 24952: _M_t._M_assign_unique(__l.begin(), __l.end()); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: key_compare 24952: key_comp() const 24952: { return _M_t.key_comp(); } 24952: 24952: value_compare 24952: value_comp() const 24952: { return _M_t.key_comp(); } 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return allocator_type(_M_t.get_allocator()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: begin() const noexcept 24952: { return _M_t.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: end() const noexcept 24952: { return _M_t.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: reverse_iterator 24952: rbegin() const noexcept 24952: { return _M_t.rbegin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: reverse_iterator 24952: rend() const noexcept 24952: { return _M_t.rend(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: cbegin() const noexcept 24952: { return _M_t.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: cend() const noexcept 24952: { return _M_t.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: reverse_iterator 24952: crbegin() const noexcept 24952: { return _M_t.rbegin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: reverse_iterator 24952: crend() const noexcept 24952: { return _M_t.rend(); } 24952: 24952: 24952: 24952: [[__nodiscard__]] bool 24952: empty() const noexcept 24952: { return _M_t.empty(); } 24952: 24952: 24952: size_type 24952: size() const noexcept 24952: { return _M_t.size(); } 24952: 24952: 24952: size_type 24952: max_size() const noexcept 24952: { return _M_t.max_size(); } 24952: # 442 "/usr/include/c++/13/bits/stl_set.h" 3 24952: void 24952: swap(set& __x) 24952: noexcept(__is_nothrow_swappable<_Compare>::value) 24952: { _M_t.swap(__x._M_t); } 24952: # 462 "/usr/include/c++/13/bits/stl_set.h" 3 24952: template 24952: std::pair 24952: emplace(_Args&&... __args) 24952: { return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); } 24952: # 488 "/usr/include/c++/13/bits/stl_set.h" 3 24952: template 24952: iterator 24952: emplace_hint(const_iterator __pos, _Args&&... __args) 24952: { 24952: return _M_t._M_emplace_hint_unique(__pos, 24952: std::forward<_Args>(__args)...); 24952: } 24952: # 510 "/usr/include/c++/13/bits/stl_set.h" 3 24952: std::pair 24952: insert(const value_type& __x) 24952: { 24952: std::pair __p = 24952: _M_t._M_insert_unique(__x); 24952: return std::pair(__p.first, __p.second); 24952: } 24952: 24952: 24952: std::pair 24952: insert(value_type&& __x) 24952: { 24952: std::pair __p = 24952: _M_t._M_insert_unique(std::move(__x)); 24952: return std::pair(__p.first, __p.second); 24952: } 24952: # 547 "/usr/include/c++/13/bits/stl_set.h" 3 24952: iterator 24952: insert(const_iterator __position, const value_type& __x) 24952: { return _M_t._M_insert_unique_(__position, __x); } 24952: 24952: 24952: iterator 24952: insert(const_iterator __position, value_type&& __x) 24952: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 24952: # 566 "/usr/include/c++/13/bits/stl_set.h" 3 24952: template 24952: void 24952: insert(_InputIterator __first, _InputIterator __last) 24952: { _M_t._M_insert_range_unique(__first, __last); } 24952: # 579 "/usr/include/c++/13/bits/stl_set.h" 3 24952: void 24952: insert(initializer_list __l) 24952: { this->insert(__l.begin(), __l.end()); } 24952: 24952: 24952: 24952: 24952: node_type 24952: extract(const_iterator __pos) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 24952: return _M_t.extract(__pos); 24952: } 24952: 24952: 24952: node_type 24952: extract(const key_type& __x) 24952: { return _M_t.extract(__x); } 24952: 24952: 24952: insert_return_type 24952: insert(node_type&& __nh) 24952: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 24952: 24952: 24952: iterator 24952: insert(const_iterator __hint, node_type&& __nh) 24952: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 24952: 24952: template 24952: friend struct std::_Rb_tree_merge_helper; 24952: 24952: template 24952: void 24952: merge(set<_Key, _Compare1, _Alloc>& __source) 24952: { 24952: using _Merge_helper = _Rb_tree_merge_helper; 24952: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(set<_Key, _Compare1, _Alloc>&& __source) 24952: { merge(__source); } 24952: 24952: template 24952: void 24952: merge(multiset<_Key, _Compare1, _Alloc>& __source) 24952: { 24952: using _Merge_helper = _Rb_tree_merge_helper; 24952: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 24952: { merge(__source); } 24952: # 654 "/usr/include/c++/13/bits/stl_set.h" 3 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: iterator 24952: erase(const_iterator __position) 24952: { return _M_t.erase(__position); } 24952: # 685 "/usr/include/c++/13/bits/stl_set.h" 3 24952: size_type 24952: erase(const key_type& __x) 24952: { return _M_t.erase(__x); } 24952: # 706 "/usr/include/c++/13/bits/stl_set.h" 3 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: iterator 24952: erase(const_iterator __first, const_iterator __last) 24952: { return _M_t.erase(__first, __last); } 24952: # 734 "/usr/include/c++/13/bits/stl_set.h" 3 24952: void 24952: clear() noexcept 24952: { _M_t.clear(); } 24952: # 749 "/usr/include/c++/13/bits/stl_set.h" 3 24952: size_type 24952: count(const key_type& __x) const 24952: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 24952: 24952: 24952: template 24952: auto 24952: count(const _Kt& __x) const 24952: -> decltype(_M_t._M_count_tr(__x)) 24952: { return _M_t._M_count_tr(__x); } 24952: # 795 "/usr/include/c++/13/bits/stl_set.h" 3 24952: iterator 24952: find(const key_type& __x) 24952: { return _M_t.find(__x); } 24952: 24952: const_iterator 24952: find(const key_type& __x) const 24952: { return _M_t.find(__x); } 24952: 24952: 24952: template 24952: auto 24952: find(const _Kt& __x) 24952: -> decltype(iterator{_M_t._M_find_tr(__x)}) 24952: { return iterator{_M_t._M_find_tr(__x)}; } 24952: 24952: template 24952: auto 24952: find(const _Kt& __x) const 24952: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 24952: { return const_iterator{_M_t._M_find_tr(__x)}; } 24952: # 830 "/usr/[ 24%] Building CXX object CMakeFiles/rocksdb.dir/db/transaction_log_impl.cc.o include/c++/13/bits/stl_set.h" 3 24952: iterator 24952: lower_bound(const key_type& __x) 24952: { return _M_t.lower_bound(__x); } 24952: 24952: const_iterator 24952: lower_bound(const key_type& __x) const 24952: { return _M_t.lower_bound(__x); } 24952: 24952: 24952: template 24952: auto 24952: lower_bound(const _Kt& __x) 24952: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 24952: { return iterator(_M_t._M_lower_bound_tr(__x)); } 24952: 24952: template 24952: auto 24952: lower_bound(const _Kt& __x) const 24952: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 24952: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 24952: # 860 "/usr/include/c++/13/bits/stl_set.h" 3 24952: iterator 24952: upper_bound(const key_type& __x) 24952: { return _M_t.upper_bound(__x); } 24952: 24952: const_iterator 24952: upper_bound(const key_type& __x) const 24952: { return _M_t.upper_bound(__x); } 24952: 24952: 24952: template 24952: auto 24952: upper_bound(const _Kt& __x) 24952: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 24952: { return iterator(_M_t._M_upper_bound_tr(__x)); } 24952: 24952: template 24952: auto 24952: upper_bound(const _Kt& __x) const 24952: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 24952: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 24952: # 899 "/usr/include/c++/13/bits/stl_set.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) 24952: { return _M_t.equal_range(__x); } 24952: 24952: std::pair 24952: equal_range(const key_type& __x) const 24952: { return _M_t.equal_range(__x); } 24952: 24952: 24952: template 24952: auto 24952: equal_range(const _Kt& __x) 24952: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 24952: { return pair(_M_t._M_equal_range_tr(__x)); } 24952: 24952: template 24952: auto 24952: equal_range(const _Kt& __x) const 24952: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 24952: { return pair(_M_t._M_equal_range_tr(__x)); } 24952: 24952: 24952: 24952: template 24952: friend bool 24952: operator==(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: friend bool 24952: operator<(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 24952: 24952: }; 24952: 24952: 24952: 24952: template::value_type>, 24952: typename _Allocator = 24952: allocator::value_type>, 24952: typename = _RequireInputIter<_InputIterator>, 24952: typename = _RequireNotAllocator<_Compare>, 24952: typename = _RequireAllocator<_Allocator>> 24952: set(_InputIterator, _InputIterator, 24952: _Compare = _Compare(), _Allocator = _Allocator()) 24952: -> set::value_type, 24952: _Compare, _Allocator>; 24952: 24952: template, 24952: typename _Allocator = allocator<_Key>, 24952: typename = _RequireNotAllocator<_Compare>, 24952: typename = _RequireAllocator<_Allocator>> 24952: set(initializer_list<_Key>, 24952: _Compare = _Compare(), _Allocator = _Allocator()) 24952: -> set<_Key, _Compare, _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: set(_InputIterator, _InputIterator, _Allocator) 24952: -> set::value_type, 24952: less::value_type>, 24952: _Allocator>; 24952: 24952: template> 24952: set(initializer_list<_Key>, _Allocator) 24952: -> set<_Key, less<_Key>, _Allocator>; 24952: # 985 "/usr/include/c++/13/bits/stl_set.h" 3 24952: template 24952: inline bool 24952: operator==(const set<_Key, _Compare, _Alloc>& __x, 24952: const set<_Key, _Compare, _Alloc>& __y) 24952: { return __x._M_t == __y._M_t; } 24952: # 1023 "/usr/include/c++/13/bits/stl_set.h" 3 24952: template 24952: inline bool 24952: operator<(const set<_Key, _Compare, _Alloc>& __x, 24952: const set<_Key, _Compare, _Alloc>& __y) 24952: { return __x._M_t < __y._M_t; } 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const set<_Key, _Compare, _Alloc>& __x, 24952: const set<_Key, _Compare, _Alloc>& __y) 24952: { return !(__x == __y); } 24952: 24952: 24952: template 24952: inline bool 24952: operator>(const set<_Key, _Compare, _Alloc>& __x, 24952: const set<_Key, _Compare, _Alloc>& __y) 24952: { return __y < __x; } 24952: 24952: 24952: template 24952: inline bool 24952: operator<=(const set<_Key, _Compare, _Alloc>& __x, 24952: const set<_Key, _Compare, _Alloc>& __y) 24952: { return !(__y < __x); } 24952: 24952: 24952: template 24952: inline bool 24952: operator>=(const set<_Key, _Compare, _Alloc>& __x, 24952: const set<_Key, _Compare, _Alloc>& __y) 24952: { return !(__x < __y); } 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct 24952: _Rb_tree_merge_helper, _Cmp2> 24952: { 24952: private: 24952: friend class std::set<_Val, _Cmp1, _Alloc>; 24952: 24952: static auto& 24952: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 24952: { return __set._M_t; } 24952: 24952: static auto& 24952: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 24952: { return __set._M_t; } 24952: }; 24952: 24952: 24952: 24952: } 24952: # 64 "/usr/include/c++/13/set" 2 3 24952: # 1 "/usr/include/c++/13/bits/stl_multiset.h" 1 3 24952: # 64 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: class set; 24952: # 95 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: template , 24952: typename _Alloc = std::allocator<_Key> > 24952: class multiset 24952: { 24952: # 111 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: static_assert(is_same::type, _Key>::value, 24952: "std::multiset must have a non-const, non-volatile value_type"); 24952: 24952: 24952: 24952: 24952: 24952: 24952: public: 24952: 24952: typedef _Key key_type; 24952: typedef _Key value_type; 24952: typedef _Compare key_compare; 24952: typedef _Compare value_compare; 24952: typedef _Alloc allocator_type; 24952: 24952: private: 24952: 24952: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 24952: rebind<_Key>::other _Key_alloc_type; 24952: 24952: typedef _Rb_tree, 24952: key_compare, _Key_alloc_type> _Rep_type; 24952: 24952: _Rep_type _M_t; 24952: 24952: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 24952: 24952: public: 24952: typedef typename _Alloc_traits::pointer pointer; 24952: typedef typename _Alloc_traits::const_pointer const_pointer; 24952: typedef typename _Alloc_traits::reference reference; 24952: typedef typename _Alloc_traits::const_reference const_reference; 24952: 24952: 24952: 24952: typedef typename _Rep_type::const_iterator iterator; 24952: typedef typename _Rep_type::const_iterator const_iterator; 24952: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 24952: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 24952: typedef typename _Rep_type::size_type size_type; 24952: typedef typename _Rep_type::difference_type difference_type; 24952: 24952: 24952: using node_type = typename _Rep_type::node_type; 24952: # 165 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: multiset() = default; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: multiset(const _Compare& __comp, 24952: const allocator_type& __a = allocator_type()) 24952: : _M_t(__comp, _Key_alloc_type(__a)) { } 24952: # 187 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: template 24952: multiset(_InputIterator __first, _InputIterator __last) 24952: : _M_t() 24952: { _M_t._M_insert_range_equal(__first, __last); } 24952: # 203 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: template 24952: multiset(_InputIterator __first, _InputIterator __last, 24952: const _Compare& __comp, 24952: const allocator_type& __a = allocator_type()) 24952: : _M_t(__comp, _Key_alloc_type(__a)) 24952: { _M_t._M_insert_range_equal(__first, __last); } 24952: # 219 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: multiset(const multiset&) = default; 24952: # 228 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: multiset(multiset&&) = default; 24952: # 240 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: multiset(initializer_list __l, 24952: const _Compare& __comp = _Compare(), 24952: const allocator_type& __a = allocator_type()) 24952: : _M_t(__comp, _Key_alloc_type(__a)) 24952: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 24952: 24952: 24952: explicit 24952: multiset(const allocator_type& __a) 24952: : _M_t(_Key_alloc_type(__a)) { } 24952: 24952: 24952: multiset(const multiset& __m, 24952: const __type_identity_t& __a) 24952: : _M_t(__m._M_t, _Key_alloc_type(__a)) { } 24952: 24952: 24952: multiset(multiset&& __m, const __type_identity_t& __a) 24952: noexcept(is_nothrow_copy_constructible<_Compare>::value 24952: && _Alloc_traits::_S_always_equal()) 24952: : _M_t(std::move(__m._M_t), _Key_alloc_type(__a)) { } 24952: 24952: 24952: multiset(initializer_list __l, const allocator_type& __a) 24952: : _M_t(_Key_alloc_type(__a)) 24952: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 24952: 24952: 24952: template 24952: multiset(_InputIterator __first, _InputIterator __last, 24952: const allocator_type& __a) 24952: : _M_t(_Key_alloc_type(__a)) 24952: { _M_t._M_insert_range_equal(__first, __last); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: ~multiset() = default; 24952: # 295 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: multiset& 24952: operator=(const multiset&) = default; 24952: 24952: 24952: multiset& 24952: operator=(multiset&&) = default; 24952: # 313 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: multiset& 24952: operator=(initializer_list __l) 24952: { 24952: _M_t._M_assign_equal(__l.begin(), __l.end()); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: key_compare 24952: key_comp() const 24952: { return _M_t.key_comp(); } 24952: 24952: value_compare 24952: value_comp() const 24952: { return _M_t.key_comp(); } 24952: 24952: allocator_type 24952: get_allocator() const noexcept 24952: { return allocator_type(_M_t.get_allocator()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: begin() const noexcept 24952: { return _M_t.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: end() const noexcept 24952: { return _M_t.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: reverse_iterator 24952: rbegin() const noexcept 24952: { return _M_t.rbegin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: reverse_iterator 24952: rend() const noexcept 24952: { return _M_t.rend(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: cbegin() const noexcept 24952: { return _M_t.begin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: iterator 24952: cend() const noexcept 24952: { return _M_t.end(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: reverse_iterator 24952: crbegin() const noexcept 24952: { return _M_t.rbegin(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: reverse_iterator 24952: crend() const noexcept 24952: { return _M_t.rend(); } 24952: 24952: 24952: 24952: [[__nodiscard__]] bool 24952: empty() const noexcept 24952: { return _M_t.empty(); } 24952: 24952: 24952: size_type 24952: size() const noexcept 24952: { return _M_t.size(); } 24952: 24952: 24952: size_type 24952: max_size() const noexcept 24952: { return _M_t.max_size(); } 24952: # 438 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: void 24952: swap(multiset& __x) 24952: noexcept(__is_nothrow_swappable<_Compare>::value) 24952: { _M_t.swap(__x._M_t); } 24952: # 457 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: template 24952: iterator 24952: emplace(_Args&&... __args) 24952: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 24952: # 483 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: template 24952: iterator 24952: emplace_hint(const_iterator __pos, _Args&&... __args) 24952: { 24952: return _M_t._M_emplace_hint_equal(__pos, 24952: std::forward<_Args>(__args)...); 24952: } 24952: # 503 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: iterator 24952: insert(const value_type& __x) 24952: { return _M_t._M_insert_equal(__x); } 24952: 24952: 24952: iterator 24952: insert(value_type&& __x) 24952: { return _M_t._M_insert_equal(std::move(__x)); } 24952: # 533 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: iterator 24952: insert(const_iterator __position, const value_type& __x) 24952: { return _M_t._M_insert_equal_(__position, __x); } 24952: 24952: 24952: iterator 24952: insert(const_iterator __position, value_type&& __x) 24952: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 24952: # 551 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: template 24952: void 24952: insert(_InputIterator __first, _InputIterator __last) 24952: { _M_t._M_insert_range_equal(__first, __last); } 24952: # 564 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: void 24952: insert(initializer_list __l) 24952: { this->insert(__l.begin(), __l.end()); } 24952: 24952: 24952: 24952: 24952: node_type 24952: extract(const_iterator __pos) 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 24952: return _M_t.extract(__pos); 24952: } 24952: 24952: 24952: node_type 24952: extract(const key_type& __x) 24952: { return _M_t.extract(__x); } 24952: 24952: 24952: iterator 24952: insert(node_type&& __nh) 24952: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 24952: 24952: 24952: iterator 24952: insert(const_iterator __hint, node_type&& __nh) 24952: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 24952: 24952: template 24952: friend struct std::_Rb_tree_merge_helper; 24952: 24952: template 24952: void 24952: merge(multiset<_Key, _Compare1, _Alloc>& __source) 24952: { 24952: using _Merge_helper = _Rb_tree_merge_helper; 24952: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 24952: { merge(__source); } 24952: 24952: template 24952: void 24952: merge(set<_Key, _Compare1, _Alloc>& __source) 24952: { 24952: using _Merge_helper = _Rb_tree_merge_helper; 24952: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 24952: } 24952: 24952: template 24952: void 24952: merge(set<_Key, _Compare1, _Alloc>&& __source) 24952: { merge(__source); } 24952: # 639 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: iterator 24952: erase(const_iterator __position) 24952: { return _M_t.erase(__position); } 24952: # 670 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: size_type 24952: erase(const key_type& __x) 24952: { return _M_t.erase(__x); } 24952: # 691 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: iterator 24952: erase(const_iterator __first, const_iterator __last) 24952: { return _M_t.erase(__first, __last); } 24952: # 719 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: void 24952: clear() noexcept 24952: { _M_t.clear(); } 24952: # 731 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: size_type 24952: count(const key_type& __x) const 24952: { return _M_t.count(__x); } 24952: 24952: 24952: template 24952: auto 24952: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 24952: { return _M_t._M_count_tr(__x); } 24952: # 776 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: iterator 24952: find(const key_type& __x) 24952: { return _M_t.find(__x); } 24952: 24952: const_iterator 24952: find(const key_type& __x) const 24952: { return _M_t.find(__x); } 24952: 24952: 24952: template 24952: auto 24952: find(const _Kt& __x) 24952: -> decltype(iterator{_M_t._M_find_tr(__x)}) 24952: { return iterator{_M_t._M_find_tr(__x)}; } 24952: 24952: template 24952: auto 24952: find(const _Kt& __x) const 24952: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 24952: { return const_iterator{_M_t._M_find_tr(__x)}; } 24952: # 811 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: iterator 24952: lower_bound(const key_type& __x) 24952: { return _M_t.lower_bound(__x); } 24952: 24952: const_iterator 24952: lower_bound(const key_type& __x) const 24952: { return _M_t.lower_bound(__x); } 24952: 24952: 24952: template 24952: auto 24952: lower_bound(const _Kt& __x) 24952: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 24952: { return iterator(_M_t._M_lower_bound_tr(__x)); } 24952: 24952: template 24952: auto 24952: lower_bound(const _Kt& __x) const 24952: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 24952: { return iterator(_M_t._M_lower_bound_tr(__x)); } 24952: # 841 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: iterator 24952: upper_bound(const key_type& __x) 24952: { return _M_t.upper_bound(__x); } 24952: 24952: const_iterator 24952: upper_bound(const key_type& __x) const 24952: { return _M_t.upper_bound(__x); } 24952: 24952: 24952: template 24952: auto 24952: upper_bound(const _Kt& __x) 24952: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 24952: { return iterator(_M_t._M_upper_bound_tr(__x)); } 24952: 24952: template 24952: auto 24952: upper_bound(const _Kt& __x) const 24952: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 24952: { return iterator(_M_t._M_upper_bound_tr(__x)); } 24952: # 880 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: std::pair 24952: equal_range(const key_type& __x) 24952: { return _M_t.equal_range(__x); } 24952: 24952: std::pair 24952: equal_range(const key_type& __x) const 24952: { return _M_t.equal_range(__x); } 24952: 24952: 24952: template 24952: auto 24952: equal_range(const _Kt& __x) 24952: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 24952: { return pair(_M_t._M_equal_range_tr(__x)); } 24952: 24952: template 24952: auto 24952: equal_range(const _Kt& __x) const 24952: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 24952: { return pair(_M_t._M_equal_range_tr(__x)); } 24952: 24952: 24952: 24952: template 24952: friend bool 24952: operator==(const multiset<_K1, _C1, _A1>&, 24952: const multiset<_K1, _C1, _A1>&); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: friend bool 24952: operator< (const multiset<_K1, _C1, _A1>&, 24952: const multiset<_K1, _C1, _A1>&); 24952: 24952: }; 24952: 24952: 24952: 24952: template::value_type>, 24952: typename _Allocator = 24952: allocator::value_type>, 24952: typename = _RequireInputIter<_InputIterator>, 24952: typename = _RequireNotAllocator<_Compare>, 24952: typename = _RequireAllocator<_Allocator>> 24952: multiset(_InputIterator, _InputIterator, 24952: _Compare = _Compare(), _Allocator = _Allocator()) 24952: -> multiset::value_type, 24952: _Compare, _Allocator>; 24952: 24952: template, 24952: typename _Allocator = allocator<_Key>, 24952: typename = _RequireNotAllocator<_Compare>, 24952: typename = _RequireAllocator<_Allocator>> 24952: multiset(initializer_list<_Key>, 24952: _Compare = _Compare(), _Allocator = _Allocator()) 24952: -> multiset<_Key, _Compare, _Allocator>; 24952: 24952: template, 24952: typename = _RequireAllocator<_Allocator>> 24952: multiset(_InputIterator, _InputIterator, _Allocator) 24952: -> multiset::value_type, 24952: less::value_type>, 24952: _Allocator>; 24952: 24952: template> 24952: multiset(initializer_list<_Key>, _Allocator) 24952: -> multiset<_Key, less<_Key>, _Allocator>; 24952: # 971 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: template 24952: inline bool 24952: operator==(const multiset<_Key, _Compare, _Alloc>& __x, 24952: const multiset<_Key, _Compare, _Alloc>& __y) 24952: { return __x._M_t == __y._M_t; } 24952: # 1009 "/usr/include/c++/13/bits/stl_multiset.h" 3 24952: template 24952: inline bool 24952: operator<(const multiset<_Key, _Compare, _Alloc>& __x, 24952: const multiset<_Key, _Compare, _Alloc>& __y) 24952: { return __x._M_t < __y._M_t; } 24952: 24952: 24952: template 24952: inline bool 24952: operator!=(const multiset<_Key, _Compare, _Alloc>& __x, 24952: const multiset<_Key, _Compare, _Alloc>& __y) 24952: { return !(__x == __y); } 24952: 24952: 24952: template 24952: inline bool 24952: operator>(const multiset<_Key,_Compare,_Alloc>& __x, 24952: const multiset<_Key,_Compare,_Alloc>& __y) 24952: { return __y < __x; } 24952: 24952: 24952: template 24952: inline bool 24952: operator<=(const multiset<_Key, _Compare, _Alloc>& __x, 24952: const multiset<_Key, _Compare, _Alloc>& __y) 24952: { return !(__y < __x); } 24952: 24952: 24952: template 24952: inline bool 24952: operator>=(const multiset<_Key, _Compare, _Alloc>& __x, 24952: const multiset<_Key, _Compare, _Alloc>& __y) 24952: { return !(__x < __y); } 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(multiset<_Key, _Compare, _Alloc>& __x, 24952: multiset<_Key, _Compare, _Alloc>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct 24952: _Rb_tree_merge_helper, 24952: _Cmp2> 24952: { 24952: private: 24952: friend class std::multiset<_Val, _Cmp1, _Alloc>; 24952: 24952: static auto& 24952: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 24952: { return __set._M_t; } 24952: 24952: static auto& 24952: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 24952: { return __set._M_t; } 24952: }; 24952: 24952: 24952: 24952: } 24952: # 65 "/usr/include/c++/13/set" 2 3 24952: # 74 "/usr/include/c++/13/set" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: namespace pmr 24952: { 24952: template> 24952: using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>; 24952: template> 24952: using multiset = std::multiset<_Key, _Cmp, polymorphic_allocator<_Key>>; 24952: } 24952: 24952: } 24952: # 11 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 2 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/file/readahead_file_info.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/file/readahead_file_info.h" 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct ReadaheadFileInfo { 24952: struct ReadaheadInfo { 24952: size_t readahead_size = 0; 24952: int64_t num_file_reads = 0; 24952: }; 24952: 24952: 24952: ReadaheadInfo data_block_readahead_info; 24952: 24952: 24952: ReadaheadInfo index_block_readahead_info; 24952: }; 24952: 24952: } 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 1 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/ostream" 1 3 24952: # 36 "/usr/include/c++/13/ostream" 3 24952: 24952: # 37 "/usr/include/c++/13/ostream" 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/ios" 1 3 24952: # 36 "/usr/include/c++/13/ios" 3 24952: 24952: # 37 "/usr/include/c++/13/ios" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/ios_base.h" 1 3 24952: # 37 "/usr/include/c++/13/bits/ios_base.h" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/ios_base.h" 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/locale_classes.h" 1 3 24952: # 37 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 43 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 62 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: class locale 24952: { 24952: public: 24952: 24952: 24952: typedef int category; 24952: 24952: 24952: class facet; 24952: class id; 24952: class _Impl; 24952: 24952: friend class facet; 24952: friend class _Impl; 24952: 24952: template 24952: friend bool 24952: has_facet(const locale&) throw(); 24952: 24952: template 24952: friend const _Facet& 24952: use_facet(const locale&); 24952: 24952: template 24952: friend const _Facet* 24952: __try_use_facet(const locale&) noexcept; 24952: 24952: template 24952: friend struct __use_cache; 24952: # 102 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: static const category none = 0; 24952: static const category ctype = 1L << 0; 24952: static const category numeric = 1L << 1; 24952: static const category collate = 1L << 2; 24952: static const category time = 1L << 3; 24952: static const category monetary = 1L << 4; 24952: static const category messages = 1L << 5; 24952: static const category all = (ctype | numeric | collate | 24952: time | monetary | messages); 24952: # 121 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: locale() throw(); 24952: # 130 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: locale(const locale& __other) throw(); 24952: # 140 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: explicit 24952: locale(const char* __s); 24952: # 155 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: locale(const locale& __base, const char* __s, category __cat); 24952: # 166 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: explicit 24952: locale(const std::string& __s) : locale(__s.c_str()) { } 24952: # 181 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: locale(const locale& __base, const std::string& __s, category __cat) 24952: : locale(__base, __s.c_str(), __cat) { } 24952: # 196 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: locale(const locale& __base, const locale& __add, category __cat); 24952: # 209 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: template 24952: locale(const locale& __other, _Facet* __f); 24952: 24952: 24952: ~locale() throw(); 24952: # 223 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: const locale& 24952: operator=(const locale& __other) throw(); 24952: # 238 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: template 24952: locale 24952: combine(const locale& __other) const; 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: string 24952: name() const; 24952: # 258 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: bool 24952: operator==(const locale& __other) const throw(); 24952: # 268 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: bool 24952: operator!=(const locale& __other) const throw() 24952: { return !(this->operator==(__other)); } 24952: # 288 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: template 24952: bool 24952: operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, 24952: const basic_string<_Char, _Traits, _Alloc>& __s2) const; 24952: # 304 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: static locale 24952: global(const locale& __loc); 24952: 24952: 24952: 24952: 24952: static const locale& 24952: classic(); 24952: 24952: private: 24952: 24952: _Impl* _M_impl; 24952: 24952: 24952: static _Impl* _S_classic; 24952: 24952: 24952: static _Impl* _S_global; 24952: 24952: 24952: 24952: 24952: 24952: static const char* const* const _S_categories; 24952: # 339 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: enum { _S_categories_size = 6 + 6 }; 24952: 24952: 24952: static __gthread_once_t _S_once; 24952: 24952: 24952: explicit 24952: locale(_Impl*) throw(); 24952: 24952: static void 24952: _S_initialize(); 24952: 24952: static void 24952: _S_initialize_once() throw(); 24952: 24952: static category 24952: _S_normalize_category(category); 24952: 24952: void 24952: _M_coalesce(const locale& __base, const locale& __add, category __cat); 24952: 24952: 24952: static const id* const _S_twinned_facets[]; 24952: 24952: }; 24952: # 377 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: class locale::facet 24952: { 24952: private: 24952: friend class locale; 24952: friend class locale::_Impl; 24952: 24952: mutable _Atomic_word _M_refcount; 24952: 24952: 24952: static __c_locale _S_c_locale; 24952: 24952: 24952: static const char _S_c_name[2]; 24952: 24952: 24952: static __gthread_once_t _S_once; 24952: 24952: 24952: static void 24952: _S_initialize_once(); 24952: 24952: protected: 24952: # 408 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: explicit 24952: facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) 24952: { } 24952: 24952: 24952: virtual 24952: ~facet(); 24952: 24952: static void 24952: _S_create_c_locale(__c_locale& __cloc, const char* __s, 24952: __c_locale __old = 0); 24952: 24952: static __c_locale 24952: _S_clone_c_locale(__c_locale& __cloc) throw(); 24952: 24952: static void 24952: _S_destroy_c_locale(__c_locale& __cloc); 24952: 24952: static __c_locale 24952: _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); 24952: 24952: 24952: 24952: static __c_locale 24952: _S_get_c_locale(); 24952: 24952: __attribute__ ((__const__)) static const char* 24952: _S_get_c_name() throw(); 24952: # 444 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: facet(const facet&) = delete; 24952: 24952: facet& 24952: operator=(const facet&) = delete; 24952: 24952: 24952: private: 24952: void 24952: _M_add_reference() const throw() 24952: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 24952: 24952: void 24952: _M_remove_reference() const throw() 24952: { 24952: 24952: ; 24952: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 24952: { 24952: ; 24952: try 24952: { delete this; } 24952: catch(...) 24952: { } 24952: } 24952: } 24952: 24952: const facet* _M_sso_shim(const id*) const; 24952: const facet* _M_cow_shim(const id*) const; 24952: 24952: protected: 24952: class __shim; 24952: }; 24952: # 489 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: class locale::id 24952: { 24952: private: 24952: friend class locale; 24952: friend class locale::_Impl; 24952: 24952: template 24952: friend const _Facet& 24952: use_facet(const locale&); 24952: 24952: template 24952: friend bool 24952: has_facet(const locale&) throw(); 24952: 24952: template 24952: friend const _Facet* 24952: __try_use_facet(const locale&) noexcept; 24952: 24952: 24952: 24952: 24952: mutable size_t _M_index; 24952: 24952: 24952: static _Atomic_word _S_refcount; 24952: 24952: void 24952: operator=(const id&); 24952: 24952: id(const id&); 24952: 24952: public: 24952: 24952: 24952: 24952: id() { } 24952: 24952: size_t 24952: _M_id() const throw(); 24952: }; 24952: 24952: 24952: 24952: class locale::_Impl 24952: { 24952: public: 24952: 24952: friend class locale; 24952: friend class locale::facet; 24952: 24952: template 24952: friend bool 24952: has_facet(const locale&) throw(); 24952: 24952: template 24952: friend const _Facet& 24952: use_facet(const locale&); 24952: 24952: template 24952: friend const _Facet* 24952: __try_use_facet(const locale&) noexcept; 24952: 24952: template 24952: friend struct __use_cache; 24952: 24952: private: 24952: 24952: _Atomic_word _M_refcount; 24952: const facet** _M_facets; 24952: size_t _M_facets_size; 24952: const facet** _M_caches; 24952: char** _M_names; 24952: static const locale::id* const _S_id_ctype[]; 24952: static const locale::id* const _S_id_numeric[]; 24952: static const locale::id* const _S_id_collate[]; 24952: static const locale::id* const _S_id_time[]; 24952: static const locale::id* const _S_id_monetary[]; 24952: static const locale::id* const _S_id_messages[]; 24952: static const locale::id* const* const _S_facet_categories[]; 24952: 24952: void 24952: _M_add_reference() throw() 24952: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 24952: 24952: void 24952: _M_remove_reference() throw() 24952: { 24952: 24952: ; 24952: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 24952: { 24952: ; 24952: try 24952: { delete this; } 24952: catch(...) 24952: { } 24952: } 24952: } 24952: 24952: _Impl(const _Impl&, size_t); 24952: _Impl(const char*, size_t); 24952: _Impl(size_t) throw(); 24952: 24952: ~_Impl() throw(); 24952: 24952: _Impl(const _Impl&); 24952: 24952: void 24952: operator=(const _Impl&); 24952: 24952: bool 24952: _M_check_same_name() 24952: { 24952: bool __ret = true; 24952: if (_M_names[1]) 24952: 24952: for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) 24952: __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; 24952: return __ret; 24952: } 24952: 24952: void 24952: _M_replace_categories(const _Impl*, category); 24952: 24952: void 24952: _M_replace_category(const _Impl*, const locale::id* const*); 24952: 24952: void 24952: _M_replace_facet(const _Impl*, const locale::id*); 24952: 24952: void 24952: _M_install_facet(const locale::id*, const facet*); 24952: 24952: template 24952: void 24952: _M_init_facet(_Facet* __facet) 24952: { _M_install_facet(&_Facet::id, __facet); } 24952: 24952: template 24952: void 24952: _M_init_facet_unchecked(_Facet* __facet) 24952: { 24952: __facet->_M_add_reference(); 24952: _M_facets[_Facet::id._M_id()] = __facet; 24952: } 24952: 24952: void 24952: _M_install_cache(const facet*, size_t); 24952: 24952: void _M_init_extra(facet**); 24952: void _M_init_extra(void*, void*, const char*, const char*); 24952: 24952: 24952: 24952: 24952: }; 24952: # 659 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: template 24952: class __cxx11:: collate : public locale::facet 24952: { 24952: public: 24952: 24952: 24952: 24952: typedef _CharT char_type; 24952: typedef basic_string<_CharT> string_type; 24952: 24952: 24952: protected: 24952: 24952: 24952: __c_locale _M_c_locale_collate; 24952: 24952: public: 24952: 24952: static locale::id id; 24952: # 686 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: explicit 24952: collate(size_t __refs = 0) 24952: : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) 24952: { } 24952: # 700 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: explicit 24952: collate(__c_locale __cloc, size_t __refs = 0) 24952: : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) 24952: { } 24952: # 717 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: int 24952: compare(const _CharT* __lo1, const _CharT* __hi1, 24952: const _CharT* __lo2, const _CharT* __hi2) const 24952: { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } 24952: # 736 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: string_type 24952: transform(const _CharT* __lo, const _CharT* __hi) const 24952: { return this->do_transform(__lo, __hi); } 24952: # 750 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: long 24952: hash(const _CharT* __lo, const _CharT* __hi) const 24952: { return this->do_hash(__lo, __hi); } 24952: 24952: 24952: int 24952: _M_compare(const _CharT*, const _CharT*) const throw(); 24952: 24952: size_t 24952: _M_transform(_CharT*, const _CharT*, size_t) const throw(); 24952: 24952: protected: 24952: 24952: virtual 24952: ~collate() 24952: { _S_destroy_c_locale(_M_c_locale_collate); } 24952: # 779 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: virtual int 24952: do_compare(const _CharT* __lo1, const _CharT* __hi1, 24952: const _CharT* __lo2, const _CharT* __hi2) const; 24952: # 793 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: virtual string_type 24952: do_transform(const _CharT* __lo, const _CharT* __hi) const; 24952: # 806 "/usr/include/c++/13/bits/locale_classes.h" 3 24952: virtual long 24952: do_hash(const _CharT* __lo, const _CharT* __hi) const; 24952: }; 24952: 24952: template 24952: locale::id collate<_CharT>::id; 24952: 24952: 24952: template<> 24952: int 24952: collate::_M_compare(const char*, const char*) const throw(); 24952: 24952: template<> 24952: size_t 24952: collate::_M_transform(char*, const char*, size_t) const throw(); 24952: 24952: 24952: template<> 24952: int 24952: collate::_M_compare(const wchar_t*, const wchar_t*) const throw(); 24952: 24952: template<> 24952: size_t 24952: collate::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); 24952: 24952: 24952: 24952: template 24952: class __cxx11:: collate_byname : public collate<_CharT> 24952: { 24952: public: 24952: 24952: 24952: typedef _CharT char_type; 24952: typedef basic_string<_CharT> string_type; 24952: 24952: 24952: explicit 24952: collate_byname(const char* __s, size_t __refs = 0) 24952: : collate<_CharT>(__refs) 24952: { 24952: if (__builtin_strcmp(__s, "C") != 0 24952: && __builtin_strcmp(__s, "POSIX") != 0) 24952: { 24952: this->_S_destroy_c_locale(this->_M_c_locale_collate); 24952: this->_S_create_c_locale(this->_M_c_locale_collate, __s); 24952: } 24952: } 24952: 24952: 24952: explicit 24952: collate_byname(const string& __s, size_t __refs = 0) 24952: : collate_byname(__s.c_str(), __refs) { } 24952: 24952: 24952: protected: 24952: virtual 24952: ~collate_byname() { } 24952: }; 24952: 24952: 24952: } 24952: 24952: # 1 "/usr/include/c++/13/bits/locale_classes.tcc" 1 3 24952: # 37 "/usr/include/c++/13/bits/locale_classes.tcc" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/locale_classes.tcc" 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template 24952: locale:: 24952: locale(const locale& __other, _Facet* __f) 24952: { 24952: _M_impl = new _Impl(*__other._M_impl, 1); 24952: 24952: try 24952: { _M_impl->_M_install_facet(&_Facet::id, __f); } 24952: catch(...) 24952: { 24952: _M_impl->_M_remove_reference(); 24952: throw; 24952: } 24952: delete [] _M_impl->_M_names[0]; 24952: _M_impl->_M_names[0] = 0; 24952: } 24952: 24952: template 24952: locale 24952: locale:: 24952: combine(const locale& __other) const 24952: { 24952: _Impl* __tmp = new _Impl(*_M_impl, 1); 24952: try 24952: { 24952: __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); 24952: } 24952: catch(...) 24952: { 24952: __tmp->_M_remove_reference(); 24952: throw; 24952: } 24952: return locale(__tmp); 24952: } 24952: 24952: template 24952: bool 24952: locale:: 24952: operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, 24952: const basic_string<_CharT, _Traits, _Alloc>& __s2) const 24952: { 24952: typedef std::collate<_CharT> __collate_type; 24952: const __collate_type& __collate = use_facet<__collate_type>(*this); 24952: return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), 24952: __s2.data(), __s2.data() + __s2.length()) < 0); 24952: } 24952: 24952: template 24952: inline const _Facet* 24952: __try_use_facet(const locale& __loc) noexcept 24952: { 24952: const size_t __i = _Facet::id._M_id(); 24952: const locale::facet** __facets = __loc._M_impl->_M_facets; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 24952: 24952: 24952: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 24952: 24952: 24952: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 24952: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 24952: 24952: 24952: 24952: 24952: if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) 24952: return 0; 24952: 24952: 24952: return dynamic_cast(__facets[__i]); 24952: 24952: 24952: 24952: } 24952: # 161 "/usr/include/c++/13/bits/locale_classes.tcc" 3 24952: template 24952: inline bool 24952: has_facet(const locale& __loc) throw() 24952: { 24952: 24952: static_assert(__is_base_of(locale::facet, _Facet), 24952: "template argument must be derived from locale::facet"); 24952: 24952: 24952: 24952: return std::__try_use_facet<_Facet>(__loc) != 0; 24952: } 24952: # 188 "/usr/include/c++/13/bits/locale_classes.tcc" 3 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdangling-reference" 24952: template 24952: inline const _Facet& 24952: use_facet(const locale& __loc) 24952: { 24952: 24952: static_assert(__is_base_of(locale::facet, _Facet), 24952: "template argument must be derived from locale::facet"); 24952: 24952: 24952: 24952: if (const _Facet* __f = std::__try_use_facet<_Facet>(__loc)) 24952: return *__f; 24952: __throw_bad_cast(); 24952: } 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: 24952: template 24952: int 24952: collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () 24952: { return 0; } 24952: 24952: 24952: template 24952: size_t 24952: collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () 24952: { return 0; } 24952: 24952: template 24952: int 24952: collate<_CharT>:: 24952: do_compare(const _CharT* __lo1, const _CharT* __hi1, 24952: const _CharT* __lo2, const _CharT* __hi2) const 24952: { 24952: 24952: 24952: const string_type __one(__lo1, __hi1); 24952: const string_type __two(__lo2, __hi2); 24952: 24952: const _CharT* __p = __one.c_str(); 24952: const _CharT* __pend = __one.data() + __one.length(); 24952: const _CharT* __q = __two.c_str(); 24952: const _CharT* __qend = __two.data() + __two.length(); 24952: 24952: 24952: 24952: 24952: for (;;) 24952: { 24952: const int __res = _M_compare(__p, __q); 24952: if (__res) 24952: return __res; 24952: 24952: __p += char_traits<_CharT>::length(__p); 24952: __q += char_traits<_CharT>::length(__q); 24952: if (__p == __pend && __q == __qend) 24952: return 0; 24952: else if (__p == __pend) 24952: return -1; 24952: else if (__q == __qend) 24952: return 1; 24952: 24952: __p++; 24952: __q++; 24952: } 24952: } 24952: 24952: template 24952: typename collate<_CharT>::string_type 24952: collate<_CharT>:: 24952: do_transform(const _CharT* __lo, const _CharT* __hi) const 24952: { 24952: string_type __ret; 24952: 24952: 24952: const string_type __str(__lo, __hi); 24952: 24952: const _CharT* __p = __str.c_str(); 24952: const _CharT* __pend = __str.data() + __str.length(); 24952: 24952: size_t __len = (__hi - __lo) * 2; 24952: 24952: _CharT* __c = new _CharT[__len]; 24952: 24952: try 24952: { 24952: 24952: 24952: 24952: for (;;) 24952: { 24952: 24952: size_t __res = _M_transform(__c, __p, __len); 24952: 24952: 24952: if (__res >= __len) 24952: { 24952: __len = __res + 1; 24952: delete [] __c, __c = 0; 24952: __c = new _CharT[__len]; 24952: __res = _M_transform(__c, __p, __len); 24952: } 24952: 24952: __ret.append(__c, __res); 24952: __p += char_traits<_CharT>::length(__p); 24952: if (__p == __pend) 24952: break; 24952: 24952: __p++; 24952: __ret.push_back(_CharT()); 24952: } 24952: } 24952: catch(...) 24952: { 24952: delete [] __c; 24952: throw; 24952: } 24952: 24952: delete [] __c; 24952: 24952: return __ret; 24952: } 24952: 24952: template 24952: long 24952: collate<_CharT>:: 24952: do_hash(const _CharT* __lo, const _CharT* __hi) const 24952: { 24952: unsigned long __val = 0; 24952: for (; __lo < __hi; ++__lo) 24952: __val = 24952: *__lo + ((__val << 7) 24952: | (__val >> (__gnu_cxx::__numeric_traits:: 24952: __digits - 7))); 24952: return static_cast(__val); 24952: } 24952: 24952: 24952: 24952: 24952: extern template class collate; 24952: extern template class collate_byname; 24952: 24952: extern template 24952: const collate* 24952: __try_use_facet >(const locale&) noexcept; 24952: 24952: extern template 24952: const collate& 24952: use_facet >(const locale&); 24952: 24952: extern template 24952: bool 24952: has_facet >(const locale&); 24952: 24952: 24952: extern template class collate; 24952: extern template class collate_byname; 24952: 24952: extern template 24952: const collate* 24952: __try_use_facet >(const locale&) noexcept; 24952: 24952: extern template 24952: const collate& 24952: use_facet >(const locale&); 24952: 24952: extern template 24952: bool 24952: has_facet >(const locale&); 24952: 24952: 24952: 24952: 24952: } 24952: # 870 "/usr/include/c++/13/bits/locale_classes.h" 2 3 24952: # 42 "/usr/include/c++/13/bits/ios_base.h" 2 3 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/system_error" 1 3 24952: # 32 "/usr/include/c++/13/system_error" 3 24952: 24952: # 33 "/usr/include/c++/13/system_error" 3 24952: # 43 "/usr/include/c++/13/system_error" 3 24952: # 1 "/usr/include/c++/13/stdexcept" 1 3 24952: # 36 "/usr/include/c++/13/stdexcept" 3 24952: 24952: # 37 "/usr/include/c++/13/stdexcept" 3 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: struct __cow_string 24952: { 24952: union { 24952: const char* _M_p; 24952: char _M_bytes[sizeof(const char*)]; 24952: }; 24952: 24952: __cow_string(); 24952: __cow_string(const std::string&); 24952: __cow_string(const char*, size_t); 24952: __cow_string(const __cow_string&) noexcept; 24952: __cow_string& operator=(const __cow_string&) noexcept; 24952: ~__cow_string(); 24952: 24952: __cow_string(__cow_string&&) noexcept; 24952: __cow_string& operator=(__cow_string&&) noexcept; 24952: 24952: }; 24952: 24952: typedef basic_string __sso_string; 24952: # 113 "/usr/include/c++/13/stdexcept" 3 24952: class logic_error : public exception 24952: { 24952: __cow_string _M_msg; 24952: 24952: public: 24952: 24952: explicit 24952: logic_error(const string& __arg) ; 24952: 24952: 24952: explicit 24952: logic_error(const char*) ; 24952: 24952: logic_error(logic_error&&) noexcept; 24952: logic_error& operator=(logic_error&&) noexcept; 24952: 24952: 24952: 24952: logic_error(const logic_error&) noexcept; 24952: logic_error& operator=(const logic_error&) noexcept; 24952: 24952: 24952: 24952: 24952: 24952: virtual ~logic_error() noexcept; 24952: 24952: 24952: 24952: virtual const char* 24952: what() const noexcept; 24952: 24952: 24952: 24952: 24952: 24952: }; 24952: 24952: 24952: 24952: class domain_error : public logic_error 24952: { 24952: public: 24952: explicit domain_error(const string& __arg) ; 24952: 24952: explicit domain_error(const char*) ; 24952: domain_error(const domain_error&) = default; 24952: domain_error& operator=(const domain_error&) = default; 24952: domain_error(domain_error&&) = default; 24952: domain_error& operator=(domain_error&&) = default; 24952: 24952: virtual ~domain_error() noexcept; 24952: }; 24952: 24952: 24952: class invalid_argument : public logic_error 24952: { 24952: public: 24952: explicit invalid_argument(const string& __arg) ; 24952: 24952: explicit invalid_argument(const char*) ; 24952: invalid_argument(const invalid_argument&) = default; 24952: invalid_argument& operator=(const invalid_argument&) = default; 24952: invalid_argument(invalid_argument&&) = default; 24952: invalid_argument& operator=(invalid_argument&&) = default; 24952: 24952: virtual ~invalid_argument() noexcept; 24952: }; 24952: 24952: 24952: 24952: class length_error : public logic_error 24952: { 24952: public: 24952: explicit length_error(const string& __arg) ; 24952: 24952: explicit length_error(const char*) ; 24952: length_error(const length_error&) = default; 24952: length_error& operator=(const length_error&) = default; 24952: length_error(length_error&&) = default; 24952: length_error& operator=(length_error&&) = default; 24952: 24952: virtual ~length_error() noexcept; 24952: }; 24952: 24952: 24952: 24952: class out_of_range : public logic_error 24952: { 24952: public: 24952: explicit out_of_range(const string& __arg) ; 24952: 24952: explicit out_of_range(const char*) ; 24952: out_of_range(const out_of_range&) = default; 24952: out_of_range& operator=(const out_of_range&) = default; 24952: out_of_range(out_of_range&&) = default; 24952: out_of_range& operator=(out_of_range&&) = default; 24952: 24952: virtual ~out_of_range() noexcept; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class runtime_error : public exception 24952: { 24952: __cow_string _M_msg; 24952: 24952: public: 24952: 24952: explicit 24952: runtime_error(const string& __arg) ; 24952: 24952: 24952: explicit 24952: runtime_error(const char*) ; 24952: 24952: runtime_error(runtime_error&&) noexcept; 24952: runtime_error& operator=(runtime_error&&) noexcept; 24952: 24952: 24952: 24952: runtime_error(const runtime_error&) noexcept; 24952: runtime_error& operator=(const runtime_error&) noexcept; 24952: 24952: 24952: 24952: 24952: 24952: virtual ~runtime_error() noexcept; 24952: 24952: 24952: 24952: virtual const char* 24952: what() const noexcept; 24952: 24952: 24952: 24952: 24952: 24952: }; 24952: 24952: 24952: class range_error : public runtime_error 24952: { 24952: public: 24952: explicit range_error(const string& __arg) ; 24952: 24952: explicit range_error(const char*) ; 24952: range_error(const range_error&) = default; 24952: range_error& operator=(const range_error&) = default; 24952: range_error(range_error&&) = default; 24952: range_error& operator=(range_error&&) = default; 24952: 24952: virtual ~range_error() noexcept; 24952: }; 24952: 24952: 24952: class overflow_error : public runtime_error 24952: { 24952: public: 24952: explicit overflow_error(const string& __arg) ; 24952: 24952: explicit overflow_error(const char*) ; 24952: overflow_error(const overflow_error&) = default; 24952: overflow_error& operator=(const overflow_error&) = default; 24952: overflow_error(overflow_error&&) = default; 24952: overflow_error& operator=(overflow_error&&) = default; 24952: 24952: virtual ~overflow_error() noexcept; 24952: }; 24952: 24952: 24952: class underflow_error : public runtime_error 24952: { 24952: public: 24952: explicit underflow_error(const string& __arg) ; 24952: 24952: explicit underflow_error(const char*) ; 24952: underflow_error(const underflow_error&) = default; 24952: underflow_error& operator=(const underflow_error&) = default; 24952: underflow_error(underflow_error&&) = default; 24952: underflow_error& operator=(underflow_error&&) = default; 24952: 24952: virtual ~underflow_error() noexcept; 24952: }; 24952: 24952: 24952: 24952: 24952: } 24952: # 44 "/usr/include/c++/13/system_error" 2 3 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: class error_code; 24952: class error_condition; 24952: class system_error; 24952: 24952: 24952: template 24952: struct is_error_code_enum : public false_type { }; 24952: 24952: 24952: template 24952: struct is_error_condition_enum : public false_type { }; 24952: 24952: template<> 24952: struct is_error_condition_enum 24952: : public true_type { }; 24952: 24952: 24952: template 24952: inline constexpr bool is_error_code_enum_v = 24952: is_error_code_enum<_Tp>::value; 24952: template 24952: inline constexpr bool is_error_condition_enum_v = 24952: is_error_condition_enum<_Tp>::value; 24952: 24952: 24952: 24952: inline namespace _V2 { 24952: # 106 "/usr/include/c++/13/system_error" 3 24952: class error_category 24952: { 24952: public: 24952: constexpr error_category() noexcept = default; 24952: 24952: virtual ~error_category(); 24952: 24952: error_category(const error_category&) = delete; 24952: error_category& operator=(const error_category&) = delete; 24952: 24952: 24952: virtual const char* 24952: name() const noexcept = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: private: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: virtual __cow_string 24952: _M_message(int) const; 24952: 24952: public: 24952: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: virtual string 24952: message(int) const = 0; 24952: # 144 "/usr/include/c++/13/system_error" 3 24952: public: 24952: 24952: virtual error_condition 24952: default_error_condition(int __i) const noexcept; 24952: 24952: 24952: virtual bool 24952: equivalent(int __i, const error_condition& __cond) const noexcept; 24952: 24952: 24952: virtual bool 24952: equivalent(const error_code& __code, int __i) const noexcept; 24952: 24952: 24952: [[__nodiscard__]] 24952: bool 24952: operator==(const error_category& __other) const noexcept 24952: { return this == &__other; } 24952: # 170 "/usr/include/c++/13/system_error" 3 24952: bool 24952: operator<(const error_category& __other) const noexcept 24952: { return less()(this, &__other); } 24952: 24952: bool 24952: operator!=(const error_category& __other) const noexcept 24952: { return this != &__other; } 24952: 24952: }; 24952: 24952: 24952: 24952: 24952: [[__nodiscard__, __gnu__::__const__]] 24952: const error_category& 24952: generic_category() noexcept; 24952: 24952: 24952: [[__nodiscard__, __gnu__::__const__]] 24952: const error_category& 24952: system_category() noexcept; 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: namespace __adl_only 24952: { 24952: void make_error_code() = delete; 24952: void make_error_condition() = delete; 24952: } 24952: # 223 "/usr/include/c++/13/system_error" 3 24952: class error_code 24952: { 24952: template 24952: using _Check 24952: = __enable_if_t::value>; 24952: 24952: public: 24952: error_code() noexcept 24952: : _M_value(0), _M_cat(&system_category()) { } 24952: 24952: error_code(int __v, const error_category& __cat) noexcept 24952: : _M_value(__v), _M_cat(&__cat) { } 24952: 24952: 24952: template> 24952: error_code(_ErrorCodeEnum __e) noexcept 24952: { 24952: using __adl_only::make_error_code; 24952: *this = make_error_code(__e); 24952: } 24952: 24952: error_code(const error_code&) = default; 24952: error_code& operator=(const error_code&) = default; 24952: 24952: void 24952: assign(int __v, const error_category& __cat) noexcept 24952: { 24952: _M_value = __v; 24952: _M_cat = &__cat; 24952: } 24952: 24952: void 24952: clear() noexcept 24952: { assign(0, system_category()); } 24952: 24952: 24952: [[__nodiscard__]] 24952: int 24952: value() const noexcept { return _M_value; } 24952: 24952: 24952: [[__nodiscard__]] 24952: const error_category& 24952: category() const noexcept { return *_M_cat; } 24952: 24952: 24952: error_condition 24952: default_error_condition() const noexcept; 24952: 24952: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: string 24952: message() const 24952: { return category().message(value()); } 24952: 24952: 24952: [[__nodiscard__]] 24952: explicit operator bool() const noexcept 24952: { return _M_value != 0; } 24952: 24952: 24952: private: 24952: int _M_value; 24952: const error_category* _M_cat; 24952: }; 24952: # 300 "/usr/include/c++/13/system_error" 3 24952: [[__nodiscard__]] 24952: inline error_code 24952: make_error_code(errc __e) noexcept 24952: { return error_code(static_cast(__e), generic_category()); } 24952: # 323 "/usr/include/c++/13/system_error" 3 24952: inline bool 24952: operator<(const error_code& __lhs, const error_code& __rhs) noexcept 24952: { 24952: return (__lhs.category() < __rhs.category() 24952: || (__lhs.category() == __rhs.category() 24952: && __lhs.value() < __rhs.value())); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: basic_ostream<_CharT, _Traits>& 24952: operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) 24952: { return (__os << __e.category().name() << ':' << __e.value()); } 24952: # 354 "/usr/include/c++/13/system_error" 3 24952: class error_condition 24952: { 24952: template 24952: using _Check 24952: = __enable_if_t::value>; 24952: 24952: public: 24952: 24952: error_condition() noexcept 24952: : _M_value(0), _M_cat(&generic_category()) { } 24952: 24952: 24952: error_condition(int __v, const error_category& __cat) noexcept 24952: : _M_value(__v), _M_cat(&__cat) { } 24952: 24952: 24952: template> 24952: error_condition(_ErrorConditionEnum __e) noexcept 24952: { 24952: using __adl_only::make_error_condition; 24952: *this = make_error_condition(__e); 24952: } 24952: 24952: error_condition(const error_condition&) = default; 24952: error_condition& operator=(const error_condition&) = default; 24952: 24952: 24952: void 24952: assign(int __v, const error_category& __cat) noexcept 24952: { 24952: _M_value = __v; 24952: _M_cat = &__cat; 24952: } 24952: 24952: 24952: void 24952: clear() noexcept 24952: { assign(0, generic_category()); } 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: int 24952: value() const noexcept { return _M_value; } 24952: 24952: 24952: [[__nodiscard__]] 24952: const error_category& 24952: category() const noexcept { return *_M_cat; } 24952: 24952: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: string 24952: message() const 24952: { return category().message(value()); } 24952: 24952: 24952: [[__nodiscard__]] 24952: explicit operator bool() const noexcept 24952: { return _M_value != 0; } 24952: 24952: 24952: private: 24952: int _M_value; 24952: const error_category* _M_cat; 24952: }; 24952: # 433 "/usr/include/c++/13/system_error" 3 24952: [[__nodiscard__]] 24952: inline error_condition 24952: make_error_condition(errc __e) noexcept 24952: { return error_condition(static_cast(__e), generic_category()); } 24952: # 447 "/usr/include/c++/13/system_error" 3 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(const error_code& __lhs, const error_code& __rhs) noexcept 24952: { 24952: return __lhs.category() == __rhs.category() 24952: && __lhs.value() == __rhs.value(); 24952: } 24952: # 463 "/usr/include/c++/13/system_error" 3 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(const error_code& __lhs, const error_condition& __rhs) noexcept 24952: { 24952: return __lhs.category().equivalent(__lhs.value(), __rhs) 24952: || __rhs.category().equivalent(__lhs, __rhs.value()); 24952: } 24952: # 478 "/usr/include/c++/13/system_error" 3 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(const error_condition& __lhs, 24952: const error_condition& __rhs) noexcept 24952: { 24952: return __lhs.category() == __rhs.category() 24952: && __lhs.value() == __rhs.value(); 24952: } 24952: # 506 "/usr/include/c++/13/system_error" 3 24952: inline bool 24952: operator<(const error_condition& __lhs, 24952: const error_condition& __rhs) noexcept 24952: { 24952: return (__lhs.category() < __rhs.category() 24952: || (__lhs.category() == __rhs.category() 24952: && __lhs.value() < __rhs.value())); 24952: } 24952: 24952: 24952: inline bool 24952: operator==(const error_condition& __lhs, const error_code& __rhs) noexcept 24952: { 24952: return (__rhs.category().equivalent(__rhs.value(), __lhs) 24952: || __lhs.category().equivalent(__rhs, __lhs.value())); 24952: } 24952: 24952: 24952: inline bool 24952: operator!=(const error_code& __lhs, const error_code& __rhs) noexcept 24952: { return !(__lhs == __rhs); } 24952: 24952: 24952: inline bool 24952: operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept 24952: { return !(__lhs == __rhs); } 24952: 24952: 24952: inline bool 24952: operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept 24952: { return !(__lhs == __rhs); } 24952: 24952: 24952: inline bool 24952: operator!=(const error_condition& __lhs, 24952: const error_condition& __rhs) noexcept 24952: { return !(__lhs == __rhs); } 24952: # 556 "/usr/include/c++/13/system_error" 3 24952: class system_error : public std::runtime_error 24952: { 24952: private: 24952: error_code _M_code; 24952: 24952: public: 24952: system_error(error_code __ec = error_code()) 24952: : runtime_error(__ec.message()), _M_code(__ec) { } 24952: 24952: system_error(error_code __ec, const string& __what) 24952: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 24952: 24952: system_error(error_code __ec, const char* __what) 24952: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 24952: 24952: system_error(int __v, const error_category& __ecat, const char* __what) 24952: : system_error(error_code(__v, __ecat), __what) { } 24952: 24952: system_error(int __v, const error_category& __ecat) 24952: : runtime_error(error_code(__v, __ecat).message()), 24952: _M_code(__v, __ecat) { } 24952: 24952: system_error(int __v, const error_category& __ecat, const string& __what) 24952: : runtime_error(__what + (": " + error_code(__v, __ecat).message())), 24952: _M_code(__v, __ecat) { } 24952: 24952: 24952: system_error (const system_error &) = default; 24952: system_error &operator= (const system_error &) = default; 24952: 24952: 24952: virtual ~system_error() noexcept; 24952: 24952: const error_code& 24952: code() const noexcept { return _M_code; } 24952: }; 24952: 24952: 24952: } 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: template<> 24952: struct hash 24952: : public __hash_base 24952: { 24952: size_t 24952: operator()(const error_code& __e) const noexcept 24952: { 24952: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 24952: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template<> 24952: struct hash 24952: : public __hash_base 24952: { 24952: size_t 24952: operator()(const error_condition& __e) const noexcept 24952: { 24952: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 24952: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 24952: } 24952: }; 24952: 24952: 24952: 24952: } 24952: # 47 "/usr/include/c++/13/bits/ios_base.h" 2 3 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: enum _Ios_Fmtflags 24952: { 24952: _S_boolalpha = 1L << 0, 24952: _S_dec = 1L << 1, 24952: _S_fixed = 1L << 2, 24952: _S_hex = 1L << 3, 24952: _S_internal = 1L << 4, 24952: _S_left = 1L << 5, 24952: _S_oct = 1L << 6, 24952: _S_right = 1L << 7, 24952: _S_scientific = 1L << 8, 24952: _S_showbase = 1L << 9, 24952: _S_showpoint = 1L << 10, 24952: _S_showpos = 1L << 11, 24952: _S_skipws = 1L << 12, 24952: _S_unitbuf = 1L << 13, 24952: _S_uppercase = 1L << 14, 24952: _S_adjustfield = _S_left | _S_right | _S_internal, 24952: _S_basefield = _S_dec | _S_oct | _S_hex, 24952: _S_floatfield = _S_scientific | _S_fixed, 24952: _S_ios_fmtflags_end = 1L << 16, 24952: _S_ios_fmtflags_max = 0x7fffffff, 24952: _S_ios_fmtflags_min = ~0x7fffffff 24952: }; 24952: 24952: inline constexpr _Ios_Fmtflags 24952: operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 24952: { return _Ios_Fmtflags(static_cast(__a) & static_cast(__b)); } 24952: 24952: inline constexpr _Ios_Fmtflags 24952: operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 24952: { return _Ios_Fmtflags(static_cast(__a) | static_cast(__b)); } 24952: 24952: inline constexpr _Ios_Fmtflags 24952: operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 24952: { return _Ios_Fmtflags(static_cast(__a) ^ static_cast(__b)); } 24952: 24952: inline constexpr _Ios_Fmtflags 24952: operator~(_Ios_Fmtflags __a) 24952: { return _Ios_Fmtflags(~static_cast(__a)); } 24952: 24952: inline const _Ios_Fmtflags& 24952: operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 24952: { return __a = __a | __b; } 24952: 24952: inline const _Ios_Fmtflags& 24952: operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 24952: { return __a = __a & __b; } 24952: 24952: inline const _Ios_Fmtflags& 24952: operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 24952: { return __a = __a ^ __b; } 24952: 24952: 24952: enum _Ios_Openmode 24952: { 24952: _S_app = 1L << 0, 24952: _S_ate = 1L << 1, 24952: _S_bin = 1L << 2, 24952: _S_in = 1L << 3, 24952: _S_out = 1L << 4, 24952: _S_trunc = 1L << 5, 24952: _S_noreplace = 1L << 6, 24952: _S_ios_openmode_end = 1L << 16, 24952: _S_ios_openmode_max = 0x7fffffff, 24952: _S_ios_openmode_min = ~0x7fffffff 24952: }; 24952: 24952: inline constexpr _Ios_Openmode 24952: operator&(_Ios_Openmode __a, _Ios_Openmode __b) 24952: { return _Ios_Openmode(static_cast(__a) & static_cast(__b)); } 24952: 24952: inline constexpr _Ios_Openmode 24952: operator|(_Ios_Openmode __a, _Ios_Openmode __b) 24952: { return _Ios_Openmode(static_cast(__a) | static_cast(__b)); } 24952: 24952: inline constexpr _Ios_Openmode 24952: operator^(_Ios_Openmode __a, _Ios_Openmode __b) 24952: { return _Ios_Openmode(static_cast(__a) ^ static_cast(__b)); } 24952: 24952: inline constexpr _Ios_Openmode 24952: operator~(_Ios_Openmode __a) 24952: { return _Ios_Openmode(~static_cast(__a)); } 24952: 24952: inline const _Ios_Openmode& 24952: operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) 24952: { return __a = __a | __b; } 24952: 24952: inline const _Ios_Openmode& 24952: operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) 24952: { return __a = __a & __b; } 24952: 24952: inline const _Ios_Openmode& 24952: operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) 24952: { return __a = __a ^ __b; } 24952: 24952: 24952: enum _Ios_Iostate 24952: { 24952: _S_goodbit = 0, 24952: _S_badbit = 1L << 0, 24952: _S_eofbit = 1L << 1, 24952: _S_failbit = 1L << 2, 24952: _S_ios_iostate_end = 1L << 16, 24952: _S_ios_iostate_max = 0x7fffffff, 24952: _S_ios_iostate_min = ~0x7fffffff 24952: }; 24952: 24952: inline constexpr _Ios_Iostate 24952: operator&(_Ios_Iostate __a, _Ios_Iostate __b) 24952: { return _Ios_Iostate(static_cast(__a) & static_cast(__b)); } 24952: 24952: inline constexpr _Ios_Iostate 24952: operator|(_Ios_Iostate __a, _Ios_Iostate __b) 24952: { return _Ios_Iostate(static_cast(__a) | static_cast(__b)); } 24952: 24952: inline constexpr _Ios_Iostate 24952: operator^(_Ios_Iostate __a, _Ios_Iostate __b) 24952: { return _Ios_Iostate(static_cast(__a) ^ static_cast(__b)); } 24952: 24952: inline constexpr _Ios_Iostate 24952: operator~(_Ios_Iostate __a) 24952: { return _Ios_Iostate(~static_cast(__a)); } 24952: 24952: inline const _Ios_Iostate& 24952: operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) 24952: { return __a = __a | __b; } 24952: 24952: inline const _Ios_Iostate& 24952: operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) 24952: { return __a = __a & __b; } 24952: 24952: inline const _Ios_Iostate& 24952: operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) 24952: { return __a = __a ^ __b; } 24952: 24952: 24952: enum _Ios_Seekdir 24952: { 24952: _S_beg = 0, 24952: _S_cur = 1, 24952: _S_end = 2, 24952: _S_ios_seekdir_end = 1L << 16 24952: }; 24952: 24952: 24952: 24952: enum class io_errc { stream = 1 }; 24952: 24952: template <> struct is_error_code_enum : public true_type { }; 24952: 24952: [[__nodiscard__, __gnu__::__const__]] 24952: const error_category& 24952: iostream_category() noexcept; 24952: 24952: [[__nodiscard__]] 24952: inline error_code 24952: make_error_code(io_errc __e) noexcept 24952: { return error_code(static_cast(__e), iostream_category()); } 24952: 24952: [[__nodiscard__]] 24952: inline error_condition 24952: make_error_condition(io_errc __e) noexcept 24952: { return error_condition(static_cast(__e), iostream_category()); } 24952: # 233 "/usr/include/c++/13/bits/ios_base.h" 3 24952: class ios_base 24952: { 24952: # 251 "/usr/include/c++/13/bits/ios_base.h" 3 24952: public: 24952: # 260 "/usr/include/c++/13/bits/ios_base.h" 3 24952: class __attribute ((__abi_tag__ ("cxx11"))) failure : public system_error 24952: { 24952: public: 24952: explicit 24952: failure(const string& __str); 24952: 24952: 24952: explicit 24952: failure(const string&, const error_code&); 24952: 24952: explicit 24952: failure(const char*, const error_code& = io_errc::stream); 24952: 24952: 24952: virtual 24952: ~failure() throw(); 24952: 24952: virtual const char* 24952: what() const throw(); 24952: }; 24952: # 346 "/usr/include/c++/13/bits/ios_base.h" 3 24952: typedef _Ios_Fmtflags fmtflags; 24952: 24952: 24952: static const fmtflags boolalpha = _S_boolalpha; 24952: 24952: 24952: static const fmtflags dec = _S_dec; 24952: 24952: 24952: static const fmtflags fixed = _S_fixed; 24952: 24952: 24952: static const fmtflags hex = _S_hex; 24952: 24952: 24952: 24952: 24952: static const fmtflags internal = _S_internal; 24952: 24952: 24952: 24952: static const fmtflags left = _S_left; 24952: 24952: 24952: static const fmtflags oct = _S_oct; 24952: 24952: 24952: 24952: static const fmtflags right = _S_right; 24952: 24952: 24952: static const fmtflags scientific = _S_scientific; 24952: 24952: 24952: 24952: static const fmtflags showbase = _S_showbase; 24952: 24952: 24952: 24952: static const fmtflags showpoint = _S_showpoint; 24952: 24952: 24952: static const fmtflags showpos = _S_showpos; 24952: 24952: 24952: static const fmtflags skipws = _S_skipws; 24952: 24952: 24952: static const fmtflags unitbuf = _S_unitbuf; 24952: 24952: 24952: 24952: static const fmtflags uppercase = _S_uppercase; 24952: 24952: 24952: static const fmtflags adjustfield = _S_adjustfield; 24952: 24952: 24952: static const fmtflags basefield = _S_basefield; 24952: 24952: 24952: static const fmtflags floatfield = _S_floatfield; 24952: # 421 "/usr/include/c++/13/bits/ios_base.h" 3 24952: typedef _Ios_Iostate iostate; 24952: 24952: 24952: 24952: static const iostate badbit = _S_badbit; 24952: 24952: 24952: static const iostate eofbit = _S_eofbit; 24952: 24952: 24952: 24952: 24952: static const iostate failbit = _S_failbit; 24952: 24952: 24952: static const iostate goodbit = _S_goodbit; 24952: # 452 "/usr/include/c++/13/bits/ios_base.h" 3 24952: typedef _Ios_Openmode openmode; 24952: 24952: 24952: static const openmode app = _S_app; 24952: 24952: 24952: static const openmode ate = _S_ate; 24952: 24952: 24952: 24952: 24952: static const openmode binary = _S_bin; 24952: 24952: 24952: static const openmode in = _S_in; 24952: 24952: 24952: static const openmode out = _S_out; 24952: 24952: 24952: static const openmode trunc = _S_trunc; 24952: 24952: static const openmode __noreplace = _S_noreplace; 24952: # 492 "/usr/include/c++/13/bits/ios_base.h" 3 24952: typedef _Ios_Seekdir seekdir; 24952: 24952: 24952: static const seekdir beg = _S_beg; 24952: 24952: 24952: static const seekdir cur = _S_cur; 24952: 24952: 24952: static const seekdir end = _S_end; 24952: # 525 "/usr/include/c++/13/bits/ios_base.h" 3 24952: enum event 24952: { 24952: erase_event, 24952: imbue_event, 24952: copyfmt_event 24952: }; 24952: # 542 "/usr/include/c++/13/bits/ios_base.h" 3 24952: typedef void (*event_callback) (event __e, ios_base& __b, int __i); 24952: # 554 "/usr/include/c++/13/bits/ios_base.h" 3 24952: void 24952: register_callback(event_callback __fn, int __index); 24952: 24952: protected: 24952: streamsize _M_precision; 24952: streamsize _M_width; 24952: fmtflags _M_flags; 24952: iostate _M_exception; 24952: iostate _M_streambuf_state; 24952: 24952: 24952: 24952: struct _Callback_list 24952: { 24952: 24952: _Callback_list* _M_next; 24952: ios_base::event_callback _M_fn; 24952: int _M_index; 24952: _Atomic_word _M_refcount; 24952: 24952: _Callback_list(ios_base::event_callback __fn, int __index, 24952: _Callback_list* __cb) 24952: : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } 24952: 24952: void 24952: _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 24952: 24952: 24952: int 24952: _M_remove_reference() 24952: { 24952: 24952: ; 24952: int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); 24952: if (__res == 0) 24952: { 24952: ; 24952: } 24952: return __res; 24952: } 24952: }; 24952: 24952: _Callback_list* _M_callbacks; 24952: 24952: void 24952: _M_call_callbacks(event __ev) throw(); 24952: 24952: void 24952: _M_dispose_callbacks(void) throw(); 24952: 24952: 24952: struct _Words 24952: { 24952: void* _M_pword; 24952: long _M_iword; 24952: _Words() : _M_pword(0), _M_iword(0) { } 24952: }; 24952: 24952: 24952: _Words _M_word_zero; 24952: 24952: 24952: 24952: enum { _S_local_word_size = 8 }; 24952: _Words _M_local_word[_S_local_word_size]; 24952: 24952: 24952: int _M_word_size; 24952: _Words* _M_word; 24952: 24952: _Words& 24952: _M_grow_words(int __index, bool __iword); 24952: 24952: 24952: locale _M_ios_locale; 24952: 24952: void 24952: _M_init() throw(); 24952: 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: class Init 24952: { 24952: friend class ios_base; 24952: public: 24952: Init(); 24952: ~Init(); 24952: 24952: 24952: Init(const Init&) = default; 24952: Init& operator=(const Init&) = default; 24952: 24952: 24952: private: 24952: static _Atomic_word _S_refcount; 24952: static bool _S_synced_with_stdio; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: fmtflags 24952: flags() const 24952: { return _M_flags; } 24952: # 672 "/usr/include/c++/13/bits/ios_base.h" 3 24952: fmtflags 24952: flags(fmtflags __fmtfl) 24952: { 24952: fmtflags __old = _M_flags; 24952: _M_flags = __fmtfl; 24952: return __old; 24952: } 24952: # 688 "/usr/include/c++/13/bits/ios_base.h" 3 24952: fmtflags 24952: setf(fmtflags __fmtfl) 24952: { 24952: fmtflags __old = _M_flags; 24952: _M_flags |= __fmtfl; 24952: return __old; 24952: } 24952: # 705 "/usr/include/c++/13/bits/ios_base.h" 3 24952: fmtflags 24952: setf(fmtflags __fmtfl, fmtflags __mask) 24952: { 24952: fmtflags __old = _M_flags; 24952: _M_flags &= ~__mask; 24952: _M_flags |= (__fmtfl & __mask); 24952: return __old; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: unsetf(fmtflags __mask) 24952: { _M_flags &= ~__mask; } 24952: # 731 "/usr/include/c++/13/bits/ios_base.h" 3 24952: streamsize 24952: precision() const 24952: { return _M_precision; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: streamsize 24952: precision(streamsize __prec) 24952: { 24952: streamsize __old = _M_precision; 24952: _M_precision = __prec; 24952: return __old; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: streamsize 24952: width() const 24952: { return _M_width; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: streamsize 24952: width(streamsize __wide) 24952: { 24952: streamsize __old = _M_width; 24952: _M_width = __wide; 24952: return __old; 24952: } 24952: # 782 "/usr/include/c++/13/bits/ios_base.h" 3 24952: static bool 24952: sync_with_stdio(bool __sync = true); 24952: # 794 "/usr/include/c++/13/bits/ios_base.h" 3 24952: locale 24952: imbue(const locale& __loc) throw(); 24952: # 805 "/usr/include/c++/13/bits/ios_base.h" 3 24952: locale 24952: getloc() const 24952: { return _M_ios_locale; } 24952: # 816 "/usr/include/c++/13/bits/ios_base.h" 3 24952: const locale& 24952: _M_getloc() const 24952: { return _M_ios_locale; } 24952: # 835 "/usr/include/c++/13/bits/ios_base.h" 3 24952: static int 24952: xalloc() throw(); 24952: # 851 "/usr/include/c++/13/bits/ios_base.h" 3 24952: long& 24952: iword(int __ix) 24952: { 24952: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 24952: ? _M_word[__ix] : _M_grow_words(__ix, true); 24952: return __word._M_iword; 24952: } 24952: # 872 "/usr/include/c++/13/bits/ios_base.h" 3 24952: void*& 24952: pword(int __ix) 24952: { 24952: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 24952: ? _M_word[__ix] : _M_grow_words(__ix, false); 24952: return __word._M_pword; 24952: } 24952: # 889 "/usr/include/c++/13/bits/ios_base.h" 3 24952: virtual ~ios_base(); 24952: 24952: protected: 24952: ios_base() throw (); 24952: # 903 "/usr/include/c++/13/bits/ios_base.h" 3 24952: public: 24952: ios_base(const ios_base&) = delete; 24952: 24952: ios_base& 24952: operator=(const ios_base&) = delete; 24952: 24952: protected: 24952: void 24952: _M_move(ios_base&) noexcept; 24952: 24952: void 24952: _M_swap(ios_base& __rhs) noexcept; 24952: 24952: }; 24952: 24952: 24952: 24952: inline ios_base& 24952: boolalpha(ios_base& __base) 24952: { 24952: __base.setf(ios_base::boolalpha); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: noboolalpha(ios_base& __base) 24952: { 24952: __base.unsetf(ios_base::boolalpha); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: showbase(ios_base& __base) 24952: { 24952: __base.setf(ios_base::showbase); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: noshowbase(ios_base& __base) 24952: { 24952: __base.unsetf(ios_base::showbase); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: showpoint(ios_base& __base) 24952: { 24952: __base.setf(ios_base::showpoint); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: noshowpoint(ios_base& __base) 24952: { 24952: __base.unsetf(ios_base::showpoint); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: showpos(ios_base& __base) 24952: { 24952: __base.setf(ios_base::showpos); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: noshowpos(ios_base& __base) 24952: { 24952: __base.unsetf(ios_base::showpos); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: skipws(ios_base& __base) 24952: { 24952: __base.setf(ios_base::skipws); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: noskipws(ios_base& __base) 24952: { 24952: __base.unsetf(ios_base::skipws); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: uppercase(ios_base& __base) 24952: { 24952: __base.setf(ios_base::uppercase); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: nouppercase(ios_base& __base) 24952: { 24952: __base.unsetf(ios_base::uppercase); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: unitbuf(ios_base& __base) 24952: { 24952: __base.setf(ios_base::unitbuf); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: nounitbuf(ios_base& __base) 24952: { 24952: __base.unsetf(ios_base::unitbuf); 24952: return __base; 24952: } 24952: 24952: 24952: 24952: inline ios_base& 24952: internal(ios_base& __base) 24952: { 24952: __base.setf(ios_base::internal, ios_base::adjustfield); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: left(ios_base& __base) 24952: { 24952: __base.setf(ios_base::left, ios_base::adjustfield); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: right(ios_base& __base) 24952: { 24952: __base.setf(ios_base::right, ios_base::adjustfield); 24952: return __base; 24952: } 24952: 24952: 24952: 24952: inline ios_base& 24952: dec(ios_base& __base) 24952: { 24952: __base.setf(ios_base::dec, ios_base::basefield); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: hex(ios_base& __base) 24952: { 24952: __base.setf(ios_base::hex, ios_base::basefield); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: oct(ios_base& __base) 24952: { 24952: __base.setf(ios_base::oct, ios_base::basefield); 24952: return __base; 24952: } 24952: 24952: 24952: 24952: inline ios_base& 24952: fixed(ios_base& __base) 24952: { 24952: __base.setf(ios_base::fixed, ios_base::floatfield); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: scientific(ios_base& __base) 24952: { 24952: __base.setf(ios_base::scientific, ios_base::floatfield); 24952: return __base; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline ios_base& 24952: hexfloat(ios_base& __base) 24952: { 24952: __base.setf(ios_base::fixed | ios_base::scientific, ios_base::floatfield); 24952: return __base; 24952: } 24952: 24952: 24952: inline ios_base& 24952: defaultfloat(ios_base& __base) 24952: { 24952: __base.unsetf(ios_base::floatfield); 24952: return __base; 24952: } 24952: 24952: 24952: 24952: } 24952: # 45 "/usr/include/c++/13/ios" 2 3 24952: # 1 "/usr/include/c++/13/streambuf" 1 3 24952: # 36 "/usr/include/c++/13/streambuf" 3 24952: 24952: # 37 "/usr/include/c++/13/streambuf" 3 24952: # 47 "/usr/include/c++/13/streambuf" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: template 24952: streamsize 24952: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, 24952: basic_streambuf<_CharT, _Traits>*, bool&); 24952: # 123 "/usr/include/c++/13/streambuf" 3 24952: template 24952: class basic_streambuf 24952: { 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef _CharT char_type; 24952: typedef _Traits traits_type; 24952: typedef typename traits_type::int_type int_type; 24952: typedef typename traits_type::pos_type pos_type; 24952: typedef typename traits_type::off_type off_type; 24952: 24952: 24952: 24952: 24952: typedef basic_streambuf __streambuf_type; 24952: 24952: 24952: friend class basic_ios; 24952: friend class basic_istream; 24952: friend class basic_ostream; 24952: friend class istreambuf_iterator; 24952: friend class ostreambuf_iterator; 24952: 24952: friend streamsize 24952: __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); 24952: 24952: template 24952: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 24952: _CharT2*>::__type 24952: __copy_move_a2(istreambuf_iterator<_CharT2>, 24952: istreambuf_iterator<_CharT2>, _CharT2*); 24952: 24952: template 24952: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 24952: istreambuf_iterator<_CharT2> >::__type 24952: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 24952: const _CharT2&); 24952: 24952: template 24952: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 24952: void>::__type 24952: advance(istreambuf_iterator<_CharT2>&, _Distance); 24952: 24952: friend void __istream_extract(istream&, char*, streamsize); 24952: 24952: template 24952: friend basic_istream<_CharT2, _Traits2>& 24952: operator>>(basic_istream<_CharT2, _Traits2>&, 24952: basic_string<_CharT2, _Traits2, _Alloc>&); 24952: 24952: template 24952: friend basic_istream<_CharT2, _Traits2>& 24952: getline(basic_istream<_CharT2, _Traits2>&, 24/usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-8.9.1 -I/build/reproducible-path/rocksdb-8.9.1/include -isystem /build/reproducible-path/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-8.9.1=. -fstack-protector-strong -fstack-clash-protection -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/transaction_log_impl.cc.o -MF CMakeFiles/rocksdb.dir/db/transaction_log_impl.cc.o.d -o CMakeFiles/rocksdb.dir/db/transaction_log_impl.cc.o -c /build/reproducible-path/rocksdb-8.9.1/db/transaction_log_impl.cc 952: basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); 24952: 24952: protected: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: char_type* _M_in_beg; 24952: char_type* _M_in_cur; 24952: char_type* _M_in_end; 24952: char_type* _M_out_beg; 24952: char_type* _M_out_cur; 24952: char_type* _M_out_end; 24952: 24952: 24952: locale _M_buf_locale; 24952: 24952: public: 24952: 24952: virtual 24952: ~basic_streambuf() 24952: { } 24952: # 215 "/usr/include/c++/13/streambuf" 3 24952: locale 24952: pubimbue(const locale& __loc) 24952: { 24952: locale __tmp(this->getloc()); 24952: this->imbue(__loc); 24952: _M_buf_locale = __loc; 24952: return __tmp; 24952: } 24952: # 232 "/usr/include/c++/13/streambuf" 3 24952: locale 24952: getloc() const 24952: { return _M_buf_locale; } 24952: # 245 "/usr/include/c++/13/streambuf" 3 24952: basic_streambuf* 24952: pubsetbuf(char_type* __s, streamsize __n) 24952: { return this->setbuf(__s, __n); } 24952: # 257 "/usr/include/c++/13/streambuf" 3 24952: pos_type 24952: pubseekoff(off_type __off, ios_base::seekdir __way, 24952: ios_base::openmode __mode = ios_base::in | ios_base::out) 24952: { return this->seekoff(__off, __way, __mode); } 24952: # 269 "/usr/include/c++/13/streambuf" 3 24952: pos_type 24952: pubseekpos(pos_type __sp, 24952: ios_base::openmode __mode = ios_base::in | ios_base::out) 24952: { return this->seekpos(__sp, __mode); } 24952: 24952: 24952: 24952: 24952: int 24952: pubsync() { return this->sync(); } 24952: # 290 "/usr/include/c++/13/streambuf" 3 24952: streamsize 24952: in_avail() 24952: { 24952: const streamsize __ret = this->egptr() - this->gptr(); 24952: return __ret ? __ret : this->showmanyc(); 24952: } 24952: # 304 "/usr/include/c++/13/streambuf" 3 24952: int_type 24952: snextc() 24952: { 24952: int_type __ret = traits_type::eof(); 24952: if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), 24952: __ret), true)) 24952: __ret = this->sgetc(); 24952: return __ret; 24952: } 24952: # 322 "/usr/include/c++/13/streambuf" 3 24952: int_type 24952: sbumpc() 24952: { 24952: int_type __ret; 24952: if (__builtin_expect(this->gptr() < this->egptr(), true)) 24952: { 24952: __ret = traits_type::to_int_type(*this->gptr()); 24952: this->gbump(1); 24952: } 24952: else 24952: __ret = this->uflow(); 24952: return __ret; 24952: } 24952: # 344 "/usr/include/c++/13/streambuf" 3 24952: int_type 24952: sgetc() 24952: { 24952: int_type __ret; 24952: if (__builtin_expect(this->gptr() < this->egptr(), true)) 24952: __ret = traits_type::to_int_type(*this->gptr()); 24952: else 24952: __ret = this->underflow(); 24952: return __ret; 24952: } 24952: # 363 "/usr/include/c++/13/streambuf" 3 24952: streamsize 24952: sgetn(char_type* __s, streamsize __n) 24952: { return this->xsgetn(__s, __n); } 24952: # 378 "/usr/include/c++/13/streambuf" 3 24952: int_type 24952: sputbackc(char_type __c) 24952: { 24952: int_type __ret; 24952: const bool __testpos = this->eback() < this->gptr(); 24952: if (__builtin_expect(!__testpos || 24952: !traits_type::eq(__c, this->gptr()[-1]), false)) 24952: __ret = this->pbackfail(traits_type::to_int_type(__c)); 24952: else 24952: { 24952: this->gbump(-1); 24952: __ret = traits_type::to_int_type(*this->gptr()); 24952: } 24952: return __ret; 24952: } 24952: # 403 "/usr/include/c++/13/streambuf" 3 24952: int_type 24952: sungetc() 24952: { 24952: int_type __ret; 24952: if (__builtin_expect(this->eback() < this->gptr(), true)) 24952: { 24952: this->gbump(-1); 24952: __ret = traits_type::to_int_type(*this->gptr()); 24952: } 24952: else 24952: __ret = this->pbackfail(); 24952: return __ret; 24952: } 24952: # 430 "/usr/include/c++/13/streambuf" 3 24952: int_type 24952: sputc(char_type __c) 24952: { 24952: int_type __ret; 24952: if (__builtin_expect(this->pptr() < this->epptr(), true)) 24952: { 24952: *this->pptr() = __c; 24952: this->pbump(1); 24952: __ret = traits_type::to_int_type(__c); 24952: } 24952: else 24952: __ret = this->overflow(traits_type::to_int_type(__c)); 24952: return __ret; 24952: } 24952: # 456 "/usr/include/c++/13/streambuf" 3 24952: streamsize 24952: sputn(const char_type* __s, streamsize __n) 24952: { return this->xsputn(__s, __n); } 24952: 24952: protected: 24952: # 470 "/usr/include/c++/13/streambuf" 3 24952: basic_streambuf() 24952: : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), 24952: _M_out_beg(0), _M_out_cur(0), _M_out_end(0), 24952: _M_buf_locale(locale()) 24952: { } 24952: # 488 "/usr/include/c++/13/streambuf" 3 24952: char_type* 24952: eback() const { return _M_in_beg; } 24952: 24952: char_type* 24952: gptr() const { return _M_in_cur; } 24952: 24952: char_type* 24952: egptr() const { return _M_in_end; } 24952: # 504 "/usr/include/c++/13/streambuf" 3 24952: void 24952: gbump(int __n) { _M_in_cur += __n; } 24952: # 515 "/usr/include/c++/13/streambuf" 3 24952: void 24952: setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) 24952: { 24952: _M_in_beg = __gbeg; 24952: _M_in_cur = __gnext; 24952: _M_in_end = __gend; 24952: } 24952: # 535 "/usr/include/c++/13/streambuf" 3 24952: char_type* 24952: pbase() const { return _M_out_beg; } 24952: 24952: char_type* 24952: pptr() const { return _M_out_cur; } 24952: 24952: char_type* 24952: epptr() const { return _M_out_end; } 24952: # 551 "/usr/include/c++/13/streambuf" 3 24952: void 24952: pbump(int __n) { _M_out_cur += __n; } 24952: # 561 "/usr/include/c++/13/streambuf" 3 24952: void 24952: setp(char_type* __pbeg, char_type* __pend) 24952: { 24952: _M_out_beg = _M_out_cur = __pbeg; 24952: _M_out_end = __pend; 24952: } 24952: # 582 "/usr/include/c++/13/streambuf" 3 24952: virtual void 24952: imbue(const locale& __loc __attribute__ ((__unused__))) 24952: { } 24952: # 597 "/usr/include/c++/13/streambuf" 3 24952: virtual basic_streambuf* 24952: setbuf(char_type*, streamsize) 24952: { return this; } 24952: # 608 "/usr/include/c++/13/streambuf" 3 24952: virtual pos_type 24952: seekoff(off_type, ios_base::seekdir, 24952: ios_base::openmode = ios_base::in | ios_base::out) 24952: { return pos_type(off_type(-1)); } 24952: # 620 "/usr/include/c++/13/streambuf" 3 24952: virtual pos_type 24952: seekpos(pos_type, 24952: ios_base::openmode = ios_base::in | ios_base::out) 24952: { return pos_type(off_type(-1)); } 24952: # 633 "/usr/include/c++/13/streambuf" 3 24952: virtual int 24952: sync() { return 0; } 24952: # 655 "/usr/include/c++/13/streambuf" 3 24952: virtual streamsize 24952: showmanyc() { return 0; } 24952: # 671 "/usr/include/c++/13/streambuf" 3 24952: virtual streamsize 24952: xsgetn(char_type* __s, streamsize __n); 24952: # 693 "/usr/include/c++/13/streambuf" 3 24952: virtual int_type 24952: underflow() 24952: { return traits_type::eof(); } 24952: # 706 "/usr/include/c++/13/streambuf" 3 24952: virtual int_type 24952: uflow() 24952: { 24952: int_type __ret = traits_type::eof(); 24952: const bool __testeof = traits_type::eq_int_type(this->underflow(), 24952: __ret); 24952: if (!__testeof) 24952: { 24952: __ret = traits_type::to_int_type(*this->gptr()); 24952: this->gbump(1); 24952: } 24952: return __ret; 24952: } 24952: # 730 "/usr/include/c++/13/streambuf" 3 24952: virtual int_type 24952: pbackfail(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 24952: { return traits_type::eof(); } 24952: # 748 "/usr/include/c++/13/streambuf" 3 24952: virtual streamsize 24952: xsputn(const char_type* __s, streamsize __n); 24952: # 774 "/usr/include/c++/13/streambuf" 3 24952: virtual int_type 24952: overflow(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 24952: { return traits_type::eof(); } 24952: # 801 "/usr/include/c++/13/streambuf" 3 24952: void 24952: __safe_gbump(streamsize __n) { _M_in_cur += __n; } 24952: 24952: void 24952: __safe_pbump(streamsize __n) { _M_out_cur += __n; } 24952: 24952: 24952: 24952: 24952: protected: 24952: 24952: basic_streambuf(const basic_streambuf&); 24952: 24952: basic_streambuf& 24952: operator=(const basic_streambuf&); 24952: 24952: 24952: void 24952: swap(basic_streambuf& __sb) 24952: { 24952: std::swap(_M_in_beg, __sb._M_in_beg); 24952: std::swap(_M_in_cur, __sb._M_in_cur); 24952: std::swap(_M_in_end, __sb._M_in_end); 24952: std::swap(_M_out_beg, __sb._M_out_beg); 24952: std::swap(_M_out_cur, __sb._M_out_cur); 24952: std::swap(_M_out_end, __sb._M_out_end); 24952: std::swap(_M_buf_locale, __sb._M_buf_locale); 24952: } 24952: 24952: }; 24952: 24952: 24952: template 24952: std::basic_streambuf<_CharT, _Traits>:: 24952: basic_streambuf(const basic_streambuf&) = default; 24952: 24952: template 24952: std::basic_streambuf<_CharT, _Traits>& 24952: std::basic_streambuf<_CharT, _Traits>:: 24952: operator=(const basic_streambuf&) = default; 24952: 24952: 24952: 24952: template<> 24952: streamsize 24952: __copy_streambufs_eof(basic_streambuf* __sbin, 24952: basic_streambuf* __sbout, bool& __ineof); 24952: 24952: template<> 24952: streamsize 24952: __copy_streambufs_eof(basic_streambuf* __sbin, 24952: basic_streambuf* __sbout, bool& __ineof); 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: # 1 "/usr/include/c++/13/bits/streambuf.tcc" 1 3 24952: # 37 "/usr/include/c++/13/bits/streambuf.tcc" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/streambuf.tcc" 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template 24952: streamsize 24952: basic_streambuf<_CharT, _Traits>:: 24952: xsgetn(char_type* __s, streamsize __n) 24952: { 24952: streamsize __ret = 0; 24952: while (__ret < __n) 24952: { 24952: const streamsize __buf_len = this->egptr() - this->gptr(); 24952: if (__buf_len) 24952: { 24952: const streamsize __remaining = __n - __ret; 24952: const streamsize __len = std::min(__buf_len, __remaining); 24952: traits_type::copy(__s, this->gptr(), __len); 24952: __ret += __len; 24952: __s += __len; 24952: this->__safe_gbump(__len); 24952: } 24952: 24952: if (__ret < __n) 24952: { 24952: const int_type __c = this->uflow(); 24952: if (!traits_type::eq_int_type(__c, traits_type::eof())) 24952: { 24952: traits_type::assign(*__s++, traits_type::to_char_type(__c)); 24952: ++__ret; 24952: } 24952: else 24952: break; 24952: } 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: streamsize 24952: basic_streambuf<_CharT, _Traits>:: 24952: xsputn(const char_type* __s, streamsize __n) 24952: { 24952: streamsize __ret = 0; 24952: while (__ret < __n) 24952: { 24952: const streamsize __buf_len = this->epptr() - this->pptr(); 24952: if (__buf_len) 24952: { 24952: const streamsize __remaining = __n - __ret; 24952: const streamsize __len = std::min(__buf_len, __remaining); 24952: traits_type::copy(this->pptr(), __s, __len); 24952: __ret += __len; 24952: __s += __len; 24952: this->__safe_pbump(__len); 24952: } 24952: 24952: if (__ret < __n) 24952: { 24952: int_type __c = this->overflow(traits_type::to_int_type(*__s)); 24952: if (!traits_type::eq_int_type(__c, traits_type::eof())) 24952: { 24952: ++__ret; 24952: ++__s; 24952: } 24952: else 24952: break; 24952: } 24952: } 24952: return __ret; 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: streamsize 24952: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, 24952: basic_streambuf<_CharT, _Traits>* __sbout, 24952: bool& __ineof) 24952: { 24952: streamsize __ret = 0; 24952: __ineof = true; 24952: typename _Traits::int_type __c = __sbin->sgetc(); 24952: while (!_Traits::eq_int_type(__c, _Traits::eof())) 24952: { 24952: __c = __sbout->sputc(_Traits::to_char_type(__c)); 24952: if (_Traits::eq_int_type(__c, _Traits::eof())) 24952: { 24952: __ineof = false; 24952: break; 24952: } 24952: ++__ret; 24952: __c = __sbin->snextc(); 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: inline streamsize 24952: __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, 24952: basic_streambuf<_CharT, _Traits>* __sbout) 24952: { 24952: bool __ineof; 24952: return __copy_streambufs_eof(__sbin, __sbout, __ineof); 24952: } 24952: 24952: 24952: 24952: 24952: extern template class basic_streambuf; 24952: 24952: extern template 24952: streamsize 24952: __copy_streambufs(basic_streambuf*, 24952: basic_streambuf*); 24952: 24952: 24952: extern template class basic_streambuf; 24952: 24952: extern template 24952: streamsize 24952: __copy_streambufs(basic_streambuf*, 24952: basic_streambuf*); 24952: 24952: 24952: 24952: 24952: } 24952: # 861 "/usr/include/c++/13/streambuf" 2 3 24952: # 46 "/usr/include/c++/13/ios" 2 3 24952: # 1 "/usr/include/c++/13/bits/basic_ios.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/locale_facets.h" 1 3 24952: # 37 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: 24952: # 1 "/usr/include/c++/13/cwctype" 1 3 24952: # 39 "/usr/include/c++/13/cwctype" 3 24952: 24952: # 40 "/usr/include/c++/13/cwctype" 3 24952: # 50 "/usr/include/c++/13/cwctype" 3 24952: # 1 "/usr/include/wctype.h" 1 3 4 24952: # 38 "/usr/include/wctype.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 1 3 4 24952: # 38 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 24952: typedef unsigned long int wctype_t; 24952: # 56 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 24952: enum 24952: { 24952: __ISwupper = 0, 24952: __ISwlower = 1, 24952: __ISwalpha = 2, 24952: __ISwdigit = 3, 24952: __ISwxdigit = 4, 24952: __ISwspace = 5, 24952: __ISwprint = 6, 24952: __ISwgraph = 7, 24952: __ISwblank = 8, 24952: __ISwcntrl = 9, 24952: __ISwpunct = 10, 24952: __ISwalnum = 11, 24952: 24952: _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), 24952: _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), 24952: _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), 24952: _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), 24952: _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), 24952: _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), 24952: _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), 24952: _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), 24952: _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), 24952: _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), 24952: _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), 24952: _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) 24952: }; 24952: 24952: 24952: 24952: extern "C" { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int iswalnum (wint_t __wc) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern int iswalpha (wint_t __wc) noexcept (true); 24952: 24952: 24952: extern int iswcntrl (wint_t __wc) noexcept (true); 24952: 24952: 24952: 24952: extern int iswdigit (wint_t __wc) noexcept (true); 24952: 24952: 24952: 24952: extern int iswgraph (wint_t __wc) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int iswlower (wint_t __wc) noexcept (true); 24952: 24952: 24952: extern int iswprint (wint_t __wc) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int iswpunct (wint_t __wc) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int iswspace (wint_t __wc) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int iswupper (wint_t __wc) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int iswxdigit (wint_t __wc) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern int iswblank (wint_t __wc) noexcept (true); 24952: # 155 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 24952: extern wctype_t wctype (const char *__property) noexcept (true); 24952: 24952: 24952: 24952: extern int iswctype (wint_t __wc, wctype_t __desc) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern wint_t towlower (wint_t __wc) noexcept (true); 24952: 24952: 24952: extern wint_t towupper (wint_t __wc) noexcept (true); 24952: 24952: } 24952: # 39 "/usr/include/wctype.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: extern "C" { 24952: 24952: 24952: 24952: typedef const __int32_t *wctrans_t; 24952: 24952: 24952: 24952: extern wctrans_t wctrans (const char *__property) noexcept (true); 24952: 24952: 24952: extern wint_t towctrans (wint_t __wc, wctrans_t __desc) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int iswalnum_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern int iswalpha_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: extern int iswcntrl_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: 24952: extern int iswdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: 24952: extern int iswgraph_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int iswlower_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: extern int iswprint_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int iswpunct_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int iswspace_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int iswupper_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int iswxdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int iswblank_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: 24952: extern wctype_t wctype_l (const char *__property, locale_t __locale) 24952: noexcept (true); 24952: 24952: 24952: 24952: extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale) 24952: noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern wint_t towlower_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: extern wint_t towupper_l (wint_t __wc, locale_t __locale) noexcept (true); 24952: 24952: 24952: 24952: extern wctrans_t wctrans_l (const char *__property, locale_t __locale) 24952: noexcept (true); 24952: 24952: 24952: extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, 24952: locale_t __locale) noexcept (true); 24952: 24952: 24952: 24952: } 24952: # 51 "/usr/include/c++/13/cwctype" 2 3 24952: # 80 "/usr/include/c++/13/cwctype" 3 24952: namespace std 24952: { 24952: using ::wctrans_t; 24952: using ::wctype_t; 24952: using ::wint_t; 24952: 24952: using ::iswalnum; 24952: using ::iswalpha; 24952: 24952: using ::iswblank; 24952: 24952: using ::iswcntrl; 24952: using ::iswctype; 24952: using ::iswdigit; 24952: using ::iswgraph; 24952: using ::iswlower; 24952: using ::iswprint; 24952: using ::iswpunct; 24952: using ::iswspace; 24952: using ::iswupper; 24952: using ::iswxdigit; 24952: using ::towctrans; 24952: using ::towlower; 24952: using ::towupper; 24952: using ::wctrans; 24952: using ::wctype; 24952: } 24952: # 40 "/usr/include/c++/13/bits/locale_facets.h" 2 3 24952: # 1 "/usr/include/c++/13/cctype" 1 3 24952: # 39 "/usr/include/c++/13/cctype" 3 24952: 24952: # 40 "/usr/include/c++/13/cctype" 3 24952: # 41 "/usr/include/c++/13/bits/locale_facets.h" 2 3 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/ctype_base.h" 1 3 24952: # 36 "/usr/include/arm-linux-gnueabihf/c++/13/bits/ctype_base.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: struct ctype_base 24952: { 24952: 24952: typedef const int* __to_type; 24952: 24952: 24952: 24952: typedef unsigned short mask; 24952: static const mask upper = _ISupper; 24952: static const mask lower = _ISlower; 24952: static const mask alpha = _ISalpha; 24952: static const mask digit = _ISdigit; 24952: static const mask xdigit = _ISxdigit; 24952: static const mask space = _ISspace; 24952: static const mask print = _ISprint; 24952: static const mask graph = _ISalpha | _ISdigit | _ISpunct; 24952: static const mask cntrl = _IScntrl; 24952: static const mask punct = _ISpunct; 24952: static const mask alnum = _ISalpha | _ISdigit; 24952: 24952: static const mask blank = _ISblank; 24952: 24952: }; 24952: 24952: 24952: } 24952: # 42 "/usr/include/c++/13/bits/locale_facets.h" 2 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/streambuf_iterator.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 24952: 24952: 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 49 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: 24952: template 24952: class istreambuf_iterator 24952: : public iterator 24952: { 24952: public: 24952: # 70 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 24952: typedef _CharT char_type; 24952: typedef _Traits traits_type; 24952: typedef typename _Traits::int_type int_type; 24952: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 24952: typedef basic_istream<_CharT, _Traits> istream_type; 24952: 24952: 24952: template 24952: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 24952: ostreambuf_iterator<_CharT2> >::__type 24952: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 24952: ostreambuf_iterator<_CharT2>); 24952: 24952: template 24952: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 24952: _CharT2*>::__type 24952: __copy_move_a2(istreambuf_iterator<_CharT2>, 24952: istreambuf_iterator<_CharT2>, _CharT2*); 24952: 24952: template 24952: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 24952: _CharT2*>::__type 24952: __copy_n_a(istreambuf_iterator<_CharT2>, _Size, _CharT2*, bool); 24952: 24952: template 24952: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 24952: istreambuf_iterator<_CharT2> >::__type 24952: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 24952: const _CharT2&); 24952: 24952: template 24952: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 24952: void>::__type 24952: advance(istreambuf_iterator<_CharT2>&, _Distance); 24952: 24952: private: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: mutable streambuf_type* _M_sbuf; 24952: int_type _M_c; 24952: 24952: public: 24952: 24952: constexpr istreambuf_iterator() noexcept 24952: : _M_sbuf(0), _M_c(traits_type::eof()) { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: istreambuf_iterator(const istreambuf_iterator&) noexcept = default; 24952: 24952: ~istreambuf_iterator() = default; 24952: 24952: 24952: 24952: istreambuf_iterator(istream_type& __s) noexcept 24952: : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } 24952: 24952: 24952: istreambuf_iterator(streambuf_type* __s) noexcept 24952: : _M_sbuf(__s), _M_c(traits_type::eof()) { } 24952: 24952: 24952: istreambuf_iterator& 24952: operator=(const istreambuf_iterator&) noexcept = default; 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: char_type 24952: operator*() const 24952: { 24952: int_type __c = _M_get(); 24952: # 161 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 24952: return traits_type::to_char_type(__c); 24952: } 24952: 24952: 24952: istreambuf_iterator& 24952: operator++() 24952: { 24952: 24952: 24952: 24952: ; 24952: 24952: _M_sbuf->sbumpc(); 24952: _M_c = traits_type::eof(); 24952: return *this; 24952: } 24952: 24952: 24952: istreambuf_iterator 24952: operator++(int) 24952: { 24952: 249In file included from /usr/include/c++/13/memory:69, from /build/reproducible-path/rocksdb-8.9.1/db/version_builder.h:12: /usr/include/c++/13/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++/13/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, | ^~~~~~~~~~~~~~~~ 52: 24952: 24952: ; 24952: 24952: istreambuf_iterator __old = *this; 24952: __old._M_c = _M_sbuf->sbumpc(); 24952: _M_c = traits_type::eof(); 24952: return __old; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: bool 24952: equal(const istreambuf_iterator& __b) const 24952: { return _M_at_eof() == __b._M_at_eof(); } 24952: 24952: private: 24952: int_type 24952: _M_get() const 24952: { 24952: int_type __ret = _M_c; 24952: if (_M_sbuf && _S_is_eof(__ret) && _S_is_eof(__ret = _M_sbuf->sgetc())) 24952: _M_sbuf = 0; 24952: return __ret; 24952: } 24952: 24952: bool 24952: _M_at_eof() const 24952: { return _S_is_eof(_M_get()); } 24952: 24952: static bool 24952: _S_is_eof(int_type __c) 24952: { 24952: const int_type __eof = traits_type::eof(); 24952: return traits_type::eq_int_type(__c, __eof); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: }; 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator==(const istreambuf_iterator<_CharT, _Traits>& __a, 24952: const istreambuf_iterator<_CharT, _Traits>& __b) 24952: { return __a.equal(__b); } 24952: 24952: 24952: template 24952: [[__nodiscard__]] 24952: inline bool 24952: operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, 24952: const istreambuf_iterator<_CharT, _Traits>& __b) 24952: { return !__a.equal(__b); } 24952: 24952: 24952: 24952: template 24952: class ostreambuf_iterator 24952: : public iterator 24952: { 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef _CharT char_type; 24952: typedef _Traits traits_type; 24952: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 24952: typedef basic_ostream<_CharT, _Traits> ostream_type; 24952: 24952: 24952: template 24952: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 24952: ostreambuf_iterator<_CharT2> >::__type 24952: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 24952: ostreambuf_iterator<_CharT2>); 24952: 24952: private: 24952: streambuf_type* _M_sbuf; 24952: bool _M_failed; 24952: 24952: public: 24952: # 284 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 24952: ostreambuf_iterator(ostream_type& __s) noexcept 24952: : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } 24952: 24952: 24952: ostreambuf_iterator(streambuf_type* __s) noexcept 24952: : _M_sbuf(__s), _M_failed(!_M_sbuf) { } 24952: 24952: 24952: ostreambuf_iterator& 24952: operator=(_CharT __c) 24952: { 24952: if (!_M_failed && 24952: _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) 24952: _M_failed = true; 24952: return *this; 24952: } 24952: 24952: 24952: [[__nodiscard__]] 24952: ostreambuf_iterator& 24952: operator*() 24952: { return *this; } 24952: 24952: 24952: ostreambuf_iterator& 24952: operator++(int) 24952: { return *this; } 24952: 24952: 24952: ostreambuf_iterator& 24952: operator++() 24952: { return *this; } 24952: 24952: 24952: [[__nodiscard__]] 24952: bool 24952: failed() const noexcept 24952: { return _M_failed; } 24952: 24952: ostreambuf_iterator& 24952: _M_put(const _CharT* __ws, streamsize __len) 24952: { 24952: if (__builtin_expect(!_M_failed, true) 24952: && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, 24952: false)) 24952: _M_failed = true; 24952: return *this; 24952: } 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: template 24952: typename __gnu_cxx::__enable_if<__is_char<_CharT>::_/usr/include/c++/13/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 _value, 24952: ostreambuf_iterator<_CharT> >::__type 24952: copy(istreambuf_iterator<_CharT> __first, 24952: istreambuf_iterator<_CharT> __last, 24952: ostreambuf_iterator<_CharT> __result) 24952: { 24952: if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) 24952: { 24952: bool __ineof; 24952: __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); 24952: if (!__ineof) 24952: __result._M_failed = true; 24952: } 24952: return __result; 24952: } 24952: 24952: template 24952: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 24952: ostreambuf_iterator<_CharT> >::__type 24952: __copy_move_a2(_CharT* __first, _CharT* __last, 24952: ostreambuf_iterator<_CharT> __result) 24952: { 24952: const streamsize __num = __last - __first; 24952: if (__num > 0) 24952: __result._M_put(__first, __num); 24952: return __result; 24952: } 24952: 24952: template 24952: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 24952: ostreambuf_iterator<_CharT> >::__type 24952: __copy_move_a2(const _CharT* __first, const _CharT* __last, 24952: ostreambuf_iterator<_CharT> __result) 24952: { 24952: const streamsize __num = __last - __first; 24952: if (__num > 0) 24952: __result._M_put(__first, __num); 24952: return __result; 24952: } 24952: 24952: template 24952: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 24952: _CharT*>::__type 24952: __copy_move_a2(istreambuf_iterator<_CharT> __first, 24952: istreambuf_iterator<_CharT> __last, _CharT* __result) 24952: { 24952: typedef istreambuf_iterator<_CharT> __is_iterator_type; 24952: typedef typename __is_iterator_type::traits_type traits_type; 24952: typedef typename __is_iterator_type::streambuf_type streambuf_type; 24952: typedef typename traits_type::int_type int_type; 24952: 24952: if (__first._M_sbuf && !__last._M_sbuf) 24952: { 24952: streambuf_type* __sb = __first._M_sbuf; 24952: int_type __c = __sb->sgetc(); 24952: while (!traits_type::eq_int_type(__c, traits_type::eof())) 24952: { 24952: const streamsize __n = __sb->egptr() - __sb->gptr(); 24952: if (__n > 1) 24952: { 24952: traits_type::copy(__result, __sb->gptr(), __n); 24952: __sb->__safe_gbump(__n); 24952: __result += __n; 24952: __c = __sb->underflow(); 24952: } 24952: else 24952: { 24952: *__result++ = traits_type::to_char_type(__c); 24952: __c = __sb->snextc(); 24952: } 24952: } 24952: } 24952: return __result; 24952: } 24952: 24952: template 24952: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 24952: _CharT*>::__type 24952: __copy_n_a(istreambuf_iterator<_CharT> __it, _Size __n, _CharT* __result, 24952: bool __strict __attribute__((__unused__))) 24952: { 24952: if (__n == 0) 24952: return __result; 24952: 24952: 24952: 24952: ; 24952: _CharT* __beg = __result; 24952: __result += __it._M_sbuf->sgetn(__beg, __n); 24952: 24952: 24952: ; 24952: return __result; 24952: } 24952: 24952: template 24952: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 24952: istreambuf_iterator<_CharT> >::__type 24952: find(istreambuf_iterator<_CharT> __first, 24952: istreambuf_iterator<_CharT> __last, const _CharT& __val) 24952: { 24952: typedef istreambuf_iterator<_CharT> __is_iterator_type; 24952: typedef typename __is_iterator_type::traits_type traits_type; 24952: typedef typename __is_iterator_type::streambuf_type streambuf_type; 24952: typedef typename traits_type::int_type int_type; 24952: const int_type __eof = traits_type::eof(); 24952: 24952: if (__first._M_sbuf && !__last._M_sbuf) 24952: { 24952: const int_type __ival = traits_type::to_int_type(__val); 24952: streambuf_type* __sb = __first._M_sbuf; 24952: int_type __c = __sb->sgetc(); 24952: while (!traits_type::eq_int_type(__c, __eof) 24952: && !traits_type::eq_int_type(__c, __ival)) 24952: { 24952: streamsize __n = __sb->egptr() - __sb->gptr(); 24952: if (__n > 1) 24952: { 24952: const _CharT* __p = traits_type::find(__sb->gptr(), 24952: __n, __val); 24952: if (__p) 24952: __n = __p - __sb->gptr(); 24952: __sb->__safe_gbump(__n); 24952: __c = __sb->sgetc(); 24952: } 24952: else 24952: __c = __sb->snextc(); 24952: } 24952: 24952: __first._M_c = __eof; 24952: } 24952: 24952: return __first; 24952: } 24952: 24952: template 24952: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 24952: void>::__type 24952: advance(istreambuf_iterator<_CharT>& __i, _Distance __n) 24952: { 24952: if (__n == 0) 24952: return; 24952: 24952: do { if (std::__is_constant_evaluated() && !bool(__n > 0)) __builtin_unreachable(); } while (false); 24952: 24952: 24952: ; 24952: 24952: typedef istreambuf_iterator<_CharT> __is_iterator_type; 24952: typedef typename __is_iterator_type::traits_type traits_type; 24952: typedef typename __is_iterator_type::streambuf_type streambuf_type; 24952: typedef typename traits_type::int_type int_type; 24952: const int_type __eof = traits_type::eof(); 24952: 24952: streambuf_type* __sb = __i._M_sbuf; 24952: while (__n > 0) 24952: { 24952: streamsize __size = __sb->egptr() - __sb->gptr(); 24952: if (__size > __n) 24952: { 24952: __sb->__safe_gbump(__n); 24952: break; 24952: } 24952: 24952: __sb->__safe_gbump(__size); 24952: __n -= __size; 24952: if (traits_type::eq_int_type(__sb->underflow(), __eof)) 24952: { 24952: 24952: 24952: ; 24952: break; 24952: } 24952: } 24952: 24952: __i._M_c = __eof; 24952: } 24952: 24952: 24952: 24952: 24952: } 24952: # 49 "/usr/include/c++/13/bits/locale_facets.h" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 74 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: template 24952: void 24952: __convert_to_v(const char*, _Tp&, ios_base::iostate&, 24952: const __c_locale&) throw(); 24952: 24952: 24952: template<> 24952: void 24952: __convert_to_v(const char*, float&, ios_base::iostate&, 24952: const __c_locale&) throw(); 24952: 24952: template<> 24952: void 24952: __convert_to_v(const char*, double&, ios_base::iostate&, 24952: const __c_locale&) throw(); 24952: 24952: template<> 24952: void 24952: __convert_to_v(const char*, long double&, ios_base::iostate&, 24952: const __c_locale&) throw(); 24952: 24952: 24952: 24952: template 24952: struct __pad 24952: { 24952: static void 24952: _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, 24952: const _CharT* __olds, streamsize __newlen, streamsize __oldlen); 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: _CharT* 24952: __add_grouping(_CharT* __s, _CharT __sep, 24952: const char* __gbeg, size_t __gsize, 24952: const _CharT* __first, const _CharT* __last); 24952: 24952: 24952: 24952: 24952: template 24952: inline 24952: ostreambuf_iterator<_CharT> 24952: __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) 24952: { 24952: __s._M_put(__ws, __len); 24952: return __s; 24952: } 24952: 24952: 24952: template 24952: inline 24952: _OutIter 24952: __write(_OutIter __s, const _CharT* __ws, int __len) 24952: { 24952: for (int __j = 0; __j < __len; __j++, ++__s) 24952: *__s = __ws[__j]; 24952: return __s; 24952: } 24952: # 152 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: template 24952: class __ctype_abstract_base : public locale::facet, public ctype_base 24952: { 24952: public: 24952: 24952: 24952: typedef _CharT char_type; 24952: # 171 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: bool 24952: is(mask __m, char_type __c) const 24952: { return this->do_is(__m, __c); } 24952: # 188 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: const char_type* 24952: is(const char_type *__lo, const char_type *__hi, mask *__vec) const 24952: { return this->do_is(__lo, __hi, __vec); } 24952: # 204 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: const char_type* 24952: scan_is(mask __m, const char_type* __lo, const char_type* __hi) const 24952: { return this->do_scan_is(__m, __lo, __hi); } 24952: # 220 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: const char_type* 24952: scan_not(mask __m, const char_type* __lo, const char_type* __hi) const 24952: { return this->do_scan_not(__m, __lo, __hi); } 24952: # 234 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: char_type 24952: toupper(char_type __c) const 24952: { return this->do_toupper(__c); } 24952: # 249 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: const char_type* 24952: toupper(char_type *__lo, const char_type* __hi) const 24952: { return this->do_toupper(__lo, __hi); } 24952: # 263 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: char_type 24952: tolower(char_type __c) const 24952: { return this->do_tolower(__c); } 24952: # 278 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: const char_type* 24952: tolower(char_type* __lo, const char_type* __hi) const 24952: { return this->do_tolower(__lo, __hi); } 24952: # 295 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: char_type 24952: widen(char __c) const 24952: { return this->do_widen(__c); } 24952: # 314 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: const char* 24952: widen(const char* __lo, const char* __hi, char_type* __to) const 24952: { return this->do_widen(__lo, __hi, __to); } 24952: # 333 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: char 24952: narrow(char_type __c, char __dfault) const 24952: { return this->do_narrow(__c, __dfault); } 24952: # 355 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: const char_type* 24952: narrow(const char_type* __lo, const char_type* __hi, 24952: char __dfault, char* __to) const 24952: { return this->do_narrow(__lo, __hi, __dfault, __to); } 24952: 24952: protected: 24952: explicit 24952: __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } 24952: 24952: virtual 24952: ~__ctype_abstract_base() { } 24952: # 380 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual bool 24952: do_is(mask __m, char_type __c) const = 0; 24952: # 399 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_is(const char_type* __lo, const char_type* __hi, 24952: mask* __vec) const = 0; 24952: # 418 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_scan_is(mask __m, const char_type* __lo, 24952: const char_type* __hi) const = 0; 24952: # 437 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_scan_not(mask __m, const char_type* __lo, 24952: const char_type* __hi) const = 0; 24952: # 455 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char_type 24952: do_toupper(char_type __c) const = 0; 24952: # 472 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_toupper(char_type* __lo, const char_type* __hi) const = 0; 24952: # 488 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char_type 24952: do_tolower(char_type __c) const = 0; 24952: # 505 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_tolower(char_type* __lo, const char_type* __hi) const = 0; 24952: # 524 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char_type 24952: do_widen(char __c) const = 0; 24952: # 545 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char* 24952: do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; 24952: # 566 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char 24952: do_narrow(char_type __c, char __dfault) const = 0; 24952: # 591 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_narrow(const char_type* __lo, const char_type* __hi, 24952: char __dfault, char* __to) const = 0; 24952: }; 24952: # 614 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: template 24952: class ctype : public __ctype_abstract_base<_CharT> 24952: { 24952: public: 24952: 24952: typedef _CharT char_type; 24952: typedef typename __ctype_abstract_base<_CharT>::mask mask; 24952: 24952: 24952: static locale::id id; 24952: 24952: explicit 24952: ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } 24952: 24952: protected: 24952: virtual 24952: ~ctype(); 24952: 24952: virtual bool 24952: do_is(mask __m, char_type __c) const; 24952: 24952: virtual const char_type* 24952: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 24952: 24952: virtual const char_type* 24952: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 24952: 24952: virtual const char_type* 24952: do_scan_not(mask __m, const char_type* __lo, 24952: const char_type* __hi) const; 24952: 24952: virtual char_type 24952: do_toupper(char_type __c) const; 24952: 24952: virtual const char_type* 24952: do_toupper(char_type* __lo, const char_type* __hi) const; 24952: 24952: virtual char_type 24952: do_tolower(char_type __c) const; 24952: 24952: virtual const char_type* 24952: do_tolower(char_type* __lo, const char_type* __hi) const; 24952: 24952: virtual char_type 24952: do_widen(char __c) const; 24952: 24952: virtual const char* 24952: do_widen(const char* __lo, const char* __hi, char_type* __dest) const; 24952: 24952: virtual char 24952: do_narrow(char_type, char __dfault) const; 24952: 24952: virtual const char_type* 24952: do_narrow(const char_type* __lo, const char_type* __hi, 24952: char __dfault, char* __to) const; 24952: }; 24952: 24952: template 24952: locale::id ctype<_CharT>::id; 24952: 24952: 24952: 24952: template 24952: class ctype >; 24952: # 688 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: template<> 24952: class ctype : public locale::facet, public ctype_base 24952: { 24952: public: 24952: 24952: 24952: typedef char char_type; 24952: 24952: protected: 24952: 24952: __c_locale _M_c_locale_ctype; 24952: bool _M_del; 24952: __to_type _M_toupper; 24952: __to_type _M_tolower; 24952: const mask* _M_table; 24952: mutable char _M_widen_ok; 24952: mutable char _M_widen[1 + static_cast(-1)]; 24952: mutable char _M_narrow[1 + static_cast(-1)]; 24952: mutable char _M_narrow_ok; 24952: 24952: 24952: public: 24952: 24952: static locale::id id; 24952: 24952: static const size_t table_size = 1 + static_cast(-1); 24952: # 725 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: explicit 24952: ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); 24952: # 738 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: explicit 24952: ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, 24952: size_t __refs = 0); 24952: # 751 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: inline bool 24952: is(mask __m, char __c) const; 24952: # 766 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: inline const char* 24952: is(const char* __lo, const char* __hi, mask* __vec) const; 24952: # 780 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: inline const char* 24952: scan_is(mask __m, const char* __lo, const char* __hi) const; 24952: # 794 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: inline const char* 24952: scan_not(mask __m, const char* __lo, const char* __hi) const; 24952: # 809 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: char_type 24952: toupper(char_type __c) const 24952: { return this->do_toupper(__c); } 24952: # 826 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: const char_type* 24952: toupper(char_type *__lo, const char_type* __hi) const 24952: { return this->do_toupper(__lo, __hi); } 24952: # 842 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: char_type 24952: tolower(char_type __c) const 24952: { return this->do_tolower(__c); } 24952: # 859 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: const char_type* 24952: tolower(char_type* __lo, const char_type* __hi) const 24952: { return this->do_tolower(__lo, __hi); } 24952: # 879 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: char_type 24952: widen(char __c) const 24952: { 24952: if (_M_widen_ok) 24952: return _M_widen[static_cast(__c)]; 24952: this->_M_widen_init(); 24952: return this->do_widen(__c); 24952: } 24952: # 906 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: const char* 24952: widen(const char* __lo, const char* __hi, char_type* __to) const 24952: { 24952: if (_M_widen_ok == 1) 24952: { 24952: if (__builtin_expect(__hi != __lo, true)) 24952: __builtin_memcpy(__to, __lo, __hi - __lo); 24952: return __hi; 24952: } 24952: if (!_M_widen_ok) 24952: _M_widen_init(); 24952: return this->do_widen(__lo, __hi, __to); 24952: } 24952: # 938 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: char 24952: narrow(char_type __c, char __dfault) const 24952: { 24952: if (_M_narrow[static_cast(__c)]) 24952: return _M_narrow[static_cast(__c)]; 24952: const char __t = do_narrow(__c, __dfault); 24952: if (__t != __dfault) 24952: _M_narrow[static_cast(__c)] = __t; 24952: return __t; 24952: } 24952: # 971 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: const char_type* 24952: narrow(const char_type* __lo, const char_type* __hi, 24952: char __dfault, char* __to) const 24952: { 24952: if (__builtin_expect(_M_narrow_ok == 1, true)) 24952: { 24952: if (__builtin_expect(__hi != __lo, true)) 24952: __builtin_memcpy(__to, __lo, __hi - __lo); 24952: return __hi; 24952: } 24952: if (!_M_narrow_ok) 24952: _M_narrow_init(); 24952: return this->do_narrow(__lo, __hi, __dfault, __to); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: const mask* 24952: table() const throw() 24952: { return _M_table; } 24952: 24952: 24952: static const mask* 24952: classic_table() throw(); 24952: protected: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual 24952: ~ctype(); 24952: # 1021 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char_type 24952: do_toupper(char_type __c) const; 24952: # 1038 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_toupper(char_type* __lo, const char_type* __hi) const; 24952: # 1054 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char_type 24952: do_tolower(char_type __c) const; 24952: # 1071 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_tolower(char_type* __lo, const char_type* __hi) const; 24952: # 1091 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char_type 24952: do_widen(char __c) const 24952: { return __c; } 24952: # 1114 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char* 24952: do_widen(const char* __lo, const char* __hi, char_type* __to) const 24952: { 24952: if (__builtin_expect(__hi != __lo, true)) 24952: __builtin_memcpy(__to, __lo, __hi - __lo); 24952: return __hi; 24952: } 24952: # 1141 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char 24952: do_narrow(char_type __c, char __dfault __attribute__((__unused__))) const 24952: { return __c; } 24952: # 1167 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_narrow(const char_type* __lo, const char_type* __hi, 24952: char __dfault __attribute__((__unused__)), char* __to) const 24952: { 24952: if (__builtin_expect(__hi != __lo, true)) 24952: __builtin_memcpy(__to, __lo, __hi - __lo); 24952: return __hi; 24952: } 24952: 24952: private: 24952: void _M_narrow_init() const; 24952: void _M_widen_init() const; 24952: }; 24952: # 1193 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: template<> 24952: class ctype : public __ctype_abstract_base 24952: { 24952: public: 24952: 24952: 24952: typedef wchar_t char_type; 24952: typedef wctype_t __wmask_type; 24952: 24952: protected: 24952: __c_locale _M_c_locale_ctype; 24952: 24952: 24952: bool _M_narrow_ok; 24952: char _M_narrow[128]; 24952: wint_t _M_widen[1 + static_cast(-1)]; 24952: 24952: 24952: mask _M_bit[16]; 24952: __wmask_type _M_wmask[16]; 24952: 24952: public: 24952: 24952: 24952: static locale::id id; 24952: # 1226 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: explicit 24952: ctype(size_t __refs = 0); 24952: # 1237 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: explicit 24952: ctype(__c_locale __cloc, size_t __refs = 0); 24952: 24952: protected: 24952: __wmask_type 24952: _M_convert_to_wmask(const mask __m) const throw(); 24952: 24952: 24952: virtual 24952: ~ctype(); 24952: # 1261 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual bool 24952: do_is(mask __m, char_type __c) const; 24952: # 1280 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 24952: # 1298 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 24952: # 1316 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_scan_not(mask __m, const char_type* __lo, 24952: const char_type* __hi) const; 24952: # 1333 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char_type 24952: do_toupper(char_type __c) const; 24952: # 1350 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_toupper(char_type* __lo, const char_type* __hi) const; 24952: # 1366 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char_type 24952: do_tolower(char_type __c) const; 24952: # 1383 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_tolower(char_type* __lo, const char_type* __hi) const; 24952: # 1403 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char_type 24952: do_widen(char __c) const; 24952: # 1425 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char* 24952: do_widen(const char* __lo, const char* __hi, char_type* __to) const; 24952: # 1448 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char 24952: do_narrow(char_type __c, char __dfault) const; 24952: # 1474 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual const char_type* 24952: do_narrow(const char_type* __lo, const char_type* __hi, 24952: char __dfault, char* __to) const; 24952: 24952: 24952: void 24952: _M_initialize_ctype() throw(); 24952: }; 24952: 24952: 24952: 24952: template 24952: class ctype_byname : public ctype<_CharT> 24952: { 24952: public: 24952: typedef typename ctype<_CharT>::mask mask; 24952: 24952: explicit 24952: ctype_byname(const char* __s, size_t __refs = 0); 24952: 24952: 24952: explicit 24952: ctype_byname(const string& __s, size_t __refs = 0) 24952: : ctype_byname(__s.c_str(), __refs) { } 24952: 24952: 24952: protected: 24952: virtual 24952: ~ctype_byname() { } 24952: }; 24952: 24952: 24952: template<> 24952: class ctype_byname : public ctype 24952: { 24952: public: 24952: explicit 24952: ctype_byname(const char* __s, size_t __refs = 0); 24952: 24952: 24952: explicit 24952: ctype_byname(const string& __s, size_t __refs = 0); 24952: 24952: 24952: protected: 24952: virtual 24952: ~ctype_byname(); 24952: }; 24952: 24952: 24952: template<> 24952: class ctype_byname : public ctype 24952: { 24952: public: 24952: explicit 24952: ctype_byname(const char* __s, size_t __refs = 0); 24952: 24952: 24952: explicit 24952: ctype_byname(const string& __s, size_t __refs = 0); 24952: 24952: 24952: protected: 24952: virtual 24952: ~ctype_byname(); 24952: }; 24952: 24952: 24952: 24952: } 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/ctype_inline.h" 1 3 24952: # 37 "/usr/include/arm-linux-gnueabihf/c++/13/bits/ctype_inline.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: bool 24952: ctype:: 24952: is(mask __m, char __c) const 24952: { return _M_table[static_cast(__c)] & __m; } 24952: 24952: const char* 24952: ctype:: 24952: is(const char* __low, const char* __high, mask* __vec) const 24952: { 24952: while (__low < __high) 24952: *__vec++ = _M_table[static_cast(*__low++)]; 24952: return __high; 24952: } 24952: 24952: const char* 24952: ctype:: 24952: scan_is(mask __m, const char* __low, const char* __high) const 24952: { 24952: while (__low < __high 24952: && !(_M_table[static_cast(*__low)] & __m)) 24952: ++__low; 24952: return __low; 24952: } 24952: 24952: const char* 24952: ctype:: 24952: scan_not(mask __m, const char* __low, const char* __high) const 24952: { 24952: while (__low < __high 24952: && (_M_table[static_cast(*__low)] & __m) != 0) 24952: ++__low; 24952: return __low; 24952: } 24952: 24952: 24952: } 24952: # 1547 "/usr/include/c++/13/bits/locale_facets.h" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: class __num_base 24952: { 24952: public: 24952: 24952: 24952: enum 24952: { 24952: _S_ominus, 24952: _S_oplus, 24952: _S_ox, 24952: _S_oX, 24952: _S_odigits, 24952: _S_odigits_end = _S_odigits + 16, 24952: _S_oudigits = _S_odigits_end, 24952: _S_oudigits_end = _S_oudigits + 16, 24952: _S_oe = _S_odigits + 14, 24952: _S_oE = _S_oudigits + 14, 24952: _S_oend = _S_oudigits_end 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: static const char* _S_atoms_out; 24952: 24952: 24952: 24952: static const char* _S_atoms_in; 24952: 24952: enum 24952: { 24952: _S_iminus, 24952: _S_iplus, 24952: _S_ix, 24952: _S_iX, 24952: _S_izero, 24952: _S_ie = _S_izero + 14, 24952: _S_iE = _S_izero + 20, 24952: _S_iend = 26 24952: }; 24952: 24952: 24952: 24952: static void 24952: _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); 24952: }; 24952: 24952: template 24952: struct __numpunct_cache : public locale::facet 24952: { 24952: const char* _M_grouping; 24952: size_t _M_grouping_size; 24952: bool _M_use_grouping; 24952: const _CharT* _M_truename; 24952: size_t _M_truename_size; 24952: const _CharT* _M_falsename; 24952: size_t _M_falsename_size; 24952: _CharT _M_decimal_point; 24952: _CharT _M_thousands_sep; 24952: 24952: 24952: 24952: 24952: 24952: _CharT _M_atoms_out[__num_base::_S_oend]; 24952: 24952: 24952: 24952: 24952: 24952: _CharT _M_atoms_in[__num_base::_S_iend]; 24952: 24952: bool _M_allocated; 24952: 24952: __numpunct_cache(size_t __refs = 0) 24952: : facet(__refs), _M_grouping(0), _M_grouping_size(0), 24952: _M_use_grouping(false), 24952: _M_truename(0), _M_truename_size(0), _M_falsename(0), 24952: _M_falsename_size(0), _M_decimal_point(_CharT()), 24952: _M_thousands_sep(_CharT()), _M_allocated(false) 24952: { } 24952: 24952: ~__numpunct_cache(); 24952: 24952: void 24952: _M_cache(const locale& __loc); 24952: 24952: private: 24952: __numpunct_cache& 24952: operator=(const __numpunct_cache&); 24952: 24952: explicit 24952: __numpunct_cache(const __numpunct_cache&); 24952: }; 24952: 24952: template 24952: __numpunct_cache<_CharT>::~__numpunct_cache() 24952: { 24952: if (_M_allocated) 24952: { 24952: delete [] _M_grouping; 24952: delete [] _M_truename; 24952: delete [] _M_falsename; 24952: } 24952: } 24952: 24952: namespace __cxx11 { 24952: # 1677 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: template 24952: class numpunct : public locale::facet 24952: { 24952: public: 24952: 24952: 24952: 24952: typedef _CharT char_type; 24952: typedef basic_string<_CharT> string_type; 24952: 24952: typedef __numpunct_cache<_CharT> __cache_type; 24952: 24952: protected: 24952: __cache_type* _M_data; 24952: 24952: public: 24952: 24952: static locale::id id; 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: numpunct(size_t __refs = 0) 24952: : facet(__refs), _M_data(0) 24952: { _M_initialize_numpunct(); } 24952: # 1715 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: explicit 24952: numpunct(__cache_type* __cache, size_t __refs = 0) 24952: : facet(__refs), _M_data(__cache) 24952: { _M_initialize_numpunct(); } 24952: # 1729 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: explicit 24952: numpunct(__c_locale __cloc, size_t __refs = 0) 24952: : facet(__refs), _M_data(0) 24952: { _M_initialize_numpunct(__cloc); } 24952: # 1743 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: char_type 24952: decimal_point() const 24952: { return this->do_decimal_point(); } 24952: # 1756 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: char_type 24952: thousands_sep() const 24952: { return this->do_thousands_sep(); } 24952: # 1787 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: string 24952: grouping() const 24952: { return this->do_grouping(); } 24952: # 1800 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: string_type 24952: truename() const 24952: { return this->do_truename(); } 24952: # 1813 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: string_type 24952: falsename() const 24952: { return this->do_falsename(); } 24952: 24952: protected: 24952: 24952: virtual 24952: ~numpunct(); 24952: # 1830 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char_type 24952: do_decimal_point() const 24952: { return _M_data->_M_decimal_point; } 24952: # 1842 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual char_type 24952: do_thousands_sep() const 24952: { return _M_data->_M_thousands_sep; } 24952: # 1855 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual string 24952: do_grouping() const 24952: { return _M_data->_M_grouping; } 24952: # 1868 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual string_type 24952: do_truename() const 24952: { return _M_data->_M_truename; } 24952: # 1881 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual string_type 24952: do_falsename() const 24952: { return _M_data->_M_falsename; } 24952: 24952: 24952: void 24952: _M_initialize_numpunct(__c_locale __cloc = 0); 24952: }; 24952: 24952: template 24952: locale::id numpunct<_CharT>::id; 24952: 24952: template<> 24952: numpunct::~numpunct(); 24952: 24952: template<> 24952: void 24952: numpunct::_M_initialize_numpunct(__c_locale __cloc); 24952: 24952: 24952: template<> 24952: numpunct::~numpunct(); 24952: 24952: template<> 24952: void 24952: numpunct::_M_initialize_numpunct(__c_locale __cloc); 24952: 24952: 24952: 24952: template 24952: class numpunct_byname : public numpunct<_CharT> 24952: { 24952: public: 24952: typedef _CharT char_type; 24952: typedef basic_string<_CharT> string_type; 24952: 24952: explicit 24952: numpunct_byname(const char* __s, size_t __refs = 0) 24952: : numpunct<_CharT>(__refs) 24952: { 24952: if (__builtin_strcmp(__s, "C") != 0 24952: && __builtin_strcmp(__s, "POSIX") != 0) 24952: { 24952: __c_locale __tmp; 24952: this->_S_create_c_locale(__tmp, __s); 24952: this->_M_initialize_numpunct(__tmp); 24952: this->_S_destroy_c_locale(__tmp); 24952: } 24952: } 24952: 24952: 24952: explicit 24952: numpunct_byname(const string& __s, size_t __refs = 0) 24952: : numpunct_byname(__s.c_str(), __refs) { } 24952: 24952: 24952: protected: 24952: virtual 24952: ~numpunct_byname() { } 24952: }; 24952: 24952: } 24952: 24952: 24952: # 1959 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: template 24952: class num_get : public locale::facet 24952: { 24952: public: 24952: 24952: 24952: 24952: typedef _CharT char_type; 24952: typedef _InIter iter_type; 24952: 24952: 24952: 24952: static locale::id id; 24952: # 1980 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: explicit 24952: num_get(size_t __refs = 0) : facet(__refs) { } 24952: # 2006 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: iter_type 24952: get(iter_type __in, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, bool& __v) const 24952: { return this->do_get(__in, __end, __io, __err, __v); } 24952: # 2043 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: iter_type 24952: get(iter_type __in, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, long& __v) const 24952: { return this->do_get(__in, __end, __io, __err, __v); } 24952: 24952: iter_type 24952: get(iter_type __in, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, unsigned short& __v) const 24952: { return this->do_get(__in, __end, __io, __err, __v); } 24952: 24952: iter_type 24952: get(iter_type __in, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, unsigned int& __v) const 24952: { return this->do_get(__in, __end, __io, __err, __v); } 24952: 24952: iter_type 24952: get(iter_type __in, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, unsigned long& __v) const 24952: { return this->do_get(__in, __end, __io, __err, __v); } 24952: 24952: 24952: iter_type 24952: get(iter_type __in, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, long long& __v) const 24952: { return this->do_get(__in, __end, __io, __err, __v); } 24952: 24952: iter_type 24952: get(iter_type __in, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, unsigned long long& __v) const 24952: { return this->do_get(__in, __end, __io, __err, __v); } 24952: # 2103 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: iter_type 24952: get(iter_type __in, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, float& __v) const 24952: { return this->do_get(__in, __end, __io, __err, __v); } 24952: 24952: iter_type 24952: get(iter_type __in, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, double& __v) const 24952: { return this->do_get(__in, __end, __io, __err, __v); } 24952: 24952: iter_type 24952: get(iter_type __in, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, long double& __v) const 24952: { return this->do_get(__in, __end, __io, __err, __v); } 24952: # 2146 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: iter_type 24952: get(iter_type __in, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, void*& __v) const 24952: { return this->do_get(__in, __end, __io, __err, __v); } 24952: 24952: protected: 24952: 24952: virtual ~num_get() { } 24952: 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: iter_type 24952: _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, 24952: string&) const; 24952: 24952: template 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: iter_type 24952: _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, 24952: _ValueT&) const; 24952: 24952: template 24952: typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type 24952: _M_find(const _CharT2*, size_t __len, _CharT2 __c) const 24952: { 24952: int __ret = -1; 24952: if (__len <= 10) 24952: { 24952: if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) 24952: __ret = __c - _CharT2('0'); 24952: } 24952: else 24952: { 24952: if (__c >= _CharT2('0') && __c <= _CharT2('9')) 24952: __ret = __c - _CharT2('0'); 24952: else if (__c >= _CharT2('a') && __c <= _CharT2('f')) 24952: __ret = 10 + (__c - _CharT2('a')); 24952: else if (__c >= _CharT2('A') && __c <= _CharT2('F')) 24952: __ret = 10 + (__c - _CharT2('A')); 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: typename __gnu_cxx::__enable_if::__value, 24952: int>::__type 24952: _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const 24952: { 24952: int __ret = -1; 24952: const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); 24952: if (__q) 24952: { 24952: __ret = __q - __zero; 24952: if (__ret > 15) 24952: __ret -= 6; 24952: } 24952: return __ret; 24952: } 24952: # 2219 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual iter_type 24952: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; 24952: 24952: virtual iter_type 24952: do_get(iter_type __beg, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, long& __v) const 24952: { return _M_extract_int(__beg, __end, __io, __err, __v); } 24952: 24952: virtual iter_type 24952: do_get(iter_type __beg, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, unsigned short& __v) const 24952: { return _M_extract_int(__beg, __end, __io, __err, __v); } 24952: 24952: virtual iter_type 24952: do_get(iter_type __beg, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, unsigned int& __v) const 24952: { return _M_extract_int(__beg, __end, __io, __err, __v); } 24952: 24952: virtual iter_type 24952: do_get(iter_type __beg, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, unsigned long& __v) const 24952: { return _M_extract_int(__beg, __end, __io, __err, __v); } 24952: 24952: 24952: virtual iter_type 24952: do_get(iter_type __beg, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, long long& __v) const 24952: { return _M_extract_int(__beg, __end, __io, __err, __v); } 24952: 24952: virtual iter_type 24952: do_get(iter_type __beg, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, unsigned long long& __v) const 24952: { return _M_extract_int(__beg, __end, __io, __err, __v); } 24952: 24952: 24952: virtual iter_type 24952: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; 24952: 24952: virtual iter_type 24952: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 24952: double&) const; 24952: # 2271 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual iter_type 24952: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 24952: long double&) const; 24952: 24952: 24952: virtual iter_type 24952: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; 24952: # 2299 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: }; 24952: 24952: template 24952: locale::id num_get<_CharT, _InIter>::id; 24952: # 2317 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: template 24952: class num_put : public locale::facet 24952: { 24952: public: 24952: 24952: 24952: 24952: typedef _CharT char_type; 24952: typedef _OutIter iter_type; 24952: 24952: 24952: 24952: static locale::id id; 24952: # 2338 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: explicit 24952: num_put(size_t __refs = 0) : facet(__refs) { } 24952: # 2356 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: iter_type 24952: put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 24952: { return this->do_put(__s, __io, __fill, __v); } 24952: # 2398 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: iter_type 24952: put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 24952: { return this->do_put(__s, __io, __fill, __v); } 24952: 24952: iter_type 24952: put(iter_type __s, ios_base& __io, char_type __fill, 24952: unsigned long __v) const 24952: { return this->do_put(__s, __io, __fill, __v); } 24952: 24952: 24952: iter_type 24952: put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const 24952: { return this->do_put(__s, __io, __fill, __v); } 24952: 24952: iter_type 24952: put(iter_type __s, ios_base& __io, char_type __fill, 24952: unsigned long long __v) const 24952: { return this->do_put(__s, __io, __fill, __v); } 24952: # 2461 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: iter_type 24952: put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 24952: { return this->do_put(__s, __io, __fill, __v); } 24952: 24952: iter_type 24952: put(iter_type __s, ios_base& __io, char_type __fill, 24952: long double __v) const 24952: { return this->do_put(__s, __io, __fill, __v); } 24952: # 2486 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: iter_type 24952: put(iter_type __s, ios_base& __io, char_type __fill, 24952: const void* __v) const 24952: { return this->do_put(__s, __io, __fill, __v); } 24952: 24952: protected: 24952: template 24952: iter_type 24952: _M_insert_float(iter_type, ios_base& __io, char_type __fill, 24952: char __mod, _ValueT __v) const; 24952: 24952: void 24952: _M_group_float(const char* __grouping, size_t __grouping_size, 24952: char_type __sep, const char_type* __p, char_type* __new, 24952: char_type* __cs, int& __len) const; 24952: 24952: template 24952: iter_type 24952: _M_insert_int(iter_type, ios_base& __io, char_type __fill, 24952: _ValueT __v) const; 24952: 24952: void 24952: _M_group_int(const char* __grouping, size_t __grouping_size, 24952: char_type __sep, ios_base& __io, char_type* __new, 24952: char_type* __cs, int& __len) const; 24952: 24952: void 24952: _M_pad(char_type __fill, streamsize __w, ios_base& __io, 24952: char_type* __new, const char_type* __cs, int& __len) const; 24952: 24952: 24952: virtual 24952: ~num_put() { } 24952: # 2534 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: virtual iter_type 24952: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; 24952: 24952: virtual iter_type 24952: do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 24952: { return _M_insert_int(__s, __io, __fill, __v); } 24952: 24952: virtual iter_type 24952: do_put(iter_type __s, ios_base& __io, char_type __fill, 24952: unsigned long __v) const 24952: { return _M_insert_int(__s, __io, __fill, __v); } 24952: 24952: 24952: virtual iter_type 24952: do_put(iter_type __s, ios_base& __io, char_type __fill, 24952: long long __v) const 24952: { return _M_insert_int(__s, __io, __fill, __v); } 24952: 24952: virtual iter_type 24952: do_put(iter_type __s, ios_base& __io, char_type __fill, 24952: unsigned long long __v) const 24952: { return _M_insert_int(__s, __io, __fill, __v); } 24952: 24952: 24952: virtual iter_type 24952: do_put(iter_type, ios_base&, char_type, double) const; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual iter_type 24952: do_put(iter_type, ios_base&, char_type, long double) const; 24952: 24952: 24952: virtual iter_type 24952: do_put(iter_type, ios_base&, char_type, const void*) const; 24952: # 2586 "/usr/include/c++/13/bits/locale_facets.h" 3 24952: }; 24952: 24952: template 24952: locale::id num_put<_CharT, _OutIter>::id; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline bool 24952: isspace(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).is(ctype_base::space, __c); } 24952: 24952: 24952: template 24952: inline bool 24952: isprint(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).is(ctype_base::print, __c); } 24952: 24952: 24952: template 24952: inline bool 24952: iscntrl(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).is(ctype_base::cntrl, __c); } 24952: 24952: 24952: template 24952: inline bool 24952: isupper(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).is(ctype_base::upper, __c); } 24952: 24952: 24952: template 24952: inline bool 24952: islower(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).is(ctype_base::lower, __c); } 24952: 24952: 24952: template 24952: inline bool 24952: isalpha(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).is(ctype_base::alpha, __c); } 24952: 24952: 24952: template 24952: inline bool 24952: isdigit(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).is(ctype_base::digit, __c); } 24952: 24952: 24952: template 24952: inline bool 24952: ispunct(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).is(ctype_base::punct, __c); } 24952: 24952: 24952: template 24952: inline bool 24952: isxdigit(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).is(ctype_base::xdigit, __c); } 24952: 24952: 24952: template 24952: inline bool 24952: isalnum(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).is(ctype_base::alnum, __c); } 24952: 24952: 24952: template 24952: inline bool 24952: isgraph(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).is(ctype_base::graph, __c); } 24952: 24952: 24952: 24952: template 24952: inline bool 24952: isblank(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).is(ctype_base::blank, __c); } 24952: 24952: 24952: 24952: template 24952: inline _CharT 24952: toupper(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).toupper(__c); } 24952: 24952: 24952: template 24952: inline _CharT 24952: tolower(_CharT __c, const locale& __loc) 24952: { return use_facet >(__loc).tolower(__c); } 24952: 24952: 24952: } 24952: 24952: # 1 "/usr/include/c++/13/bits/locale_facets.tcc" 1 3 24952: # 33 "/usr/include/c++/13/bits/locale_facets.tcc" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/locale_facets.tcc" 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: template 24952: struct __use_cache 24952: { 24952: const _Facet* 24952: operator() (const locale& __loc) const; 24952: }; 24952: 24952: 24952: template 24952: struct __use_cache<__numpunct_cache<_CharT> > 24952: { 24952: const __numpunct_cache<_CharT>* 24952: operator() (const locale& __loc) const 24952: { 24952: const size_t __i = numpunct<_CharT>::id._M_id(); 24952: const locale::facet** __caches = __loc._M_impl->_M_caches; 24952: if (!__caches[__i]) 24952: { 24952: __numpunct_cache<_CharT>* __tmp = 0; 24952: try 24952: { 24952: __tmp = new __numpunct_cache<_CharT>; 24952: __tmp->_M_cache(__loc); 24952: } 24952: catch(...) 24952: { 24952: delete __tmp; 24952: throw; 24952: } 24952: __loc._M_impl->_M_install_cache(__tmp, __i); 24952: } 24952: return static_cast*>(__caches[__i]); 24952: } 24952: }; 24952: 24952: template 24952: void 24952: __numpunct_cache<_CharT>::_M_cache(const locale& __loc) 24952: { 24952: const numpunct<_CharT>& __np = use_facet >(__loc); 24952: 24952: char* __grouping = 0; 24952: _CharT* __truename = 0; 24952: _CharT* __falsename = 0; 24952: try 24952: { 24952: const string& __g = __np.grouping(); 24952: _M_grouping_size = __g.size(); 24952: __grouping = new char[_M_grouping_size]; 24952: __g.copy(__grouping, _M_grouping_size); 24952: _M_use_grouping = (_M_grouping_size 24952: && static_cast(__grouping[0]) > 0 24952: && (__grouping[0] 24952: != __gnu_cxx::__numeric_traits::__max)); 24952: 24952: const basic_string<_CharT>& __tn = __np.truename(); 24952: _M_truename_size = __tn.size(); 24952: __truename = new _CharT[_M_truename_size]; 24952: __tn.copy(__truename, _M_truename_size); 24952: 24952: const basic_string<_CharT>& __fn = __np.falsename(); 24952: _M_falsename_size = __fn.size(); 24952: __falsename = new _CharT[_M_falsename_size]; 24952: __fn.copy(__falsename, _M_falsename_size); 24952: 24952: _M_decimal_point = __np.decimal_point(); 24952: _M_thousands_sep = __np.thousands_sep(); 24952: 24952: const ctype<_CharT>& __ct = use_facet >(__loc); 24952: __ct.widen(__num_base::_S_atoms_out, 24952: __num_base::_S_atoms_out 24952: + __num_base::_S_oend, _M_atoms_out); 24952: __ct.widen(__num_base::_S_atoms_in, 24952: __num_base::_S_atoms_in 24952: + __num_base::_S_iend, _M_atoms_in); 24952: 24952: _M_grouping = __grouping; 24952: _M_truename = __truename; 24952: _M_falsename = __falsename; 24952: _M_allocated = true; 24952: } 24952: catch(...) 24952: { 24952: delete [] __grouping; 24952: delete [] __truename; 24952: delete [] __falsename; 24952: throw; 24952: } 24952: } 24952: # 139 "/usr/include/c++/13/bits/locale_facets.tcc" 3 24952: __attribute__ ((__pure__)) bool 24952: __verify_grouping(const char* __grouping, size_t __grouping_size, 24952: const string& __grouping_tmp) throw (); 24952: 24952: 24952: 24952: template 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: _InIter 24952: num_get<_CharT, _InIter>:: 24952: _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, 24952: ios_base::iostate& __err, string& __xtrc) const 24952: { 24952: typedef char_traits<_CharT> __traits_type; 24952: typedef __numpunct_cache<_CharT> __cache_type; 24952: __use_cache<__cache_type> __uc; 24952: const locale& __loc = __io._M_getloc(); 24952: const __cache_type* __lc = __uc(__loc); 24952: const _CharT* __lit = __lc->_M_atoms_in; 24952: char_type __c = char_type(); 24952: 24952: 24952: bool __testeof = __beg == __end; 24952: 24952: 24952: if (!__testeof) 24952: { 24952: __c = *__beg; 24952: const bool __plus = __c == __lit[__num_base::_S_iplus]; 24952: if ((__plus || __c == __lit[__num_base::_S_iminus]) 24952: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 24952: && !(__c == __lc->_M_decimal_point)) 24952: { 24952: __xtrc += __plus ? '+' : '-'; 24952: if (++__beg != __end) 24952: __c = *__beg; 24952: else 24952: __testeof = true; 24952: } 24952: } 24952: 24952: 24952: bool __found_mantissa = false; 24952: int __sep_pos = 0; 24952: while (!__testeof) 24952: { 24952: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 24952: || __c == __lc->_M_decimal_point) 24952: break; 24952: else if (__c == __lit[__num_base::_S_izero]) 24952: { 24952: if (!__found_mantissa) 24952: { 24952: __xtrc += '0'; 24952: __found_mantissa = true; 24952: } 24952: ++__sep_pos; 24952: 24952: if (++__beg != __end) 24952: __c = *__beg; 24952: else 24952: __testeof = true; 24952: } 24952: else 24952: break; 24952: } 24952: 24952: 24952: bool __found_dec = false; 24952: bool __found_sci = false; 24952: string __found_grouping; 24952: if (__lc->_M_use_grouping) 24952: __found_grouping.reserve(32); 24952: const char_type* __lit_zero = __lit + __num_base::_S_izero; 24952: 24952: if (!__lc->_M_allocated) 24952: 24952: while (!__testeof) 24952: { 24952: const int __digit = _M_find(__lit_zero, 10, __c); 24952: if (__digit != -1) 24952: { 24952: __xtrc += '0' + __digit; 24952: __found_mantissa = true; 24952: } 24952: else if (__c == __lc->_M_decimal_point 24952: && !__found_dec && !__found_sci) 24952: { 24952: __xtrc += '.'; 24952: __found_dec = true; 24952: } 24952: else if ((__c == __lit[__num_base::_S_ie] 24952: || __c == __lit[__num_base::_S_iE]) 24952: && !__found_sci && __found_mantissa) 24952: { 24952: 24952: __xtrc += 'e'; 24952: __found_sci = true; 24952: 24952: 24952: if (++__beg != __end) 24952: { 24952: __c = *__beg; 24952: const bool __plus = __c == __lit[__num_base::_S_iplus]; 24952: if (__plus || __c == __lit[__num_base::_S_iminus]) 24952: __xtrc += __plus ? '+' : '-'; 24952: else 24952: continue; 24952: } 24952: else 24952: { 24952: __testeof = true; 24952: break; 24952: } 24952: } 24952: else 24952: break; 24952: 24952: if (++__beg != __end) 24952: __c = *__beg; 24952: else 24952: __testeof = true; 24952: } 24952: else 24952: while (!__testeof) 24952: { 24952: 24952: 24952: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 24952: { 24952: if (!__found_dec && !__found_sci) 24952: { 24952: 24952: 24952: if (__sep_pos) 24952: { 24952: __found_grouping += static_cast(__sep_pos); 24952: __sep_pos = 0; 24952: } 24952: else 24952: { 24952: 24952: 24952: __xtrc.clear(); 24952: break; 24952: } 24952: } 24952: else 24952: break; 24952: } 24952: else if (__c == __lc->_M_decimal_point) 24952: { 24952: if (!__found_dec && !__found_sci) 24952: { 24952: 24952: 24952: 24952: if (__found_grouping.size()) 24952: __found_grouping += static_cast(__sep_pos); 24952: __xtrc += '.'; 24952: __found_dec = true; 24952: } 24952: else 24952: break; 24952: } 24952: else 24952: { 24952: const char_type* __q = 24952: __traits_type::find(__lit_zero, 10, __c); 24952: if (__q) 24952: { 24952: __xtrc += '0' + (__q - __lit_zero); 24952: __found_mantissa = true; 24952: ++__sep_pos; 24952: } 24952: else if ((__c == __lit[__num_base::_S_ie] 24952: || __c == __lit[__num_base::_S_iE]) 24952: && !__found_sci && __found_mantissa) 24952: { 24952: 24952: if (__found_grouping.size() && !__found_dec) 24952: __found_grouping += static_cast(__sep_pos); 24952: __xtrc += 'e'; 24952: __found_sci = true; 24952: 24952: 24952: if (++__beg != __end) 24952: { 24952: __c = *__beg; 24952: const bool __plus = __c == __lit[__num_base::_S_iplus]; 24952: if ((__plus || __c == __lit[__num_base::_S_iminus]) 24952: && !(__lc->_M_use_grouping 24952: && __c == __lc->_M_thousands_sep) 24952: && !(__c == __lc->_M_decimal_point)) 24952: __xtrc += __plus ? '+' : '-'; 24952: else 24952: continue; 24952: } 24952: else 24952: { 24952: __testeof = true; 24952: break; 24952: } 24952: } 24952: else 24952: break; 24952: } 24952: 24952: if (++__beg != __end) 24952: __c = *__beg; 24952: else 24952: __testeof = true; 24952: } 24952: 24952: 24952: 24952: if (__found_grouping.size()) 24952: { 24952: 24952: if (!__found_dec && !__found_sci) 24952: __found_grouping += static_cast(__sep_pos); 24952: 24952: if (!std::__verify_grouping(__lc->_M_grouping, 24952: __lc->_M_grouping_size, 24952: __found_grouping)) 24952: __err = ios_base::failbit; 24952: } 24952: 24952: return __beg; 24952: } 24952: 24952: template 24952: template 24952: __attribute ((__abi_tag__ ("cxx11"))) 24952: _InIter 24952: num_get<_CharT, _InIter>:: 24952: _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, 24952: ios_base::iostate& __err, _ValueT& __v) const 24952: { 24952: typedef char_traits<_CharT> __traits_type; 24952: using __gnu_cxx::__add_unsigned; 24952: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 24952: typedef __numpunct_cache<_CharT> __cache_type; 24952: __use_cache<__cache_type> __uc; 24952: const locale& __loc = __io._M_getloc(); 24952: const __cache_type* __lc = __uc(__loc); 24952: const _CharT* __lit = __lc->_M_atoms_in; 24952: char_type __c = char_type(); 24952: 24952: 24952: const ios_base::fmtflags __basefield = __io.flags() 24952: & ios_base::basefield; 24952: const bool __oct = __basefield == ios_base::oct; 24952: int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); 24952: 24952: 24952: bool __testeof = __beg == __end; 24952: 24952: 24952: bool __negative = false; 24952: if (!__testeof) 24952: { 24952: __c = *__beg; 24952: __negative = __c == __lit[__num_base::_S_iminus]; 24952: if ((__negative || __c == __lit[__num_base::_S_iplus]) 24952: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 24952: && !(__c == __lc->_M_decimal_point)) 24952: { 24952: if (++__beg != __end) 24952: __c = *__beg; 24952: else 24952: __testeof = true; 24952: } 24952: } 24952: 24952: 24952: 24952: bool __found_zero = false; 24952: int __sep_pos = 0; 24952: while (!__testeof) 24952: { 24952: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 24952: || __c == __lc->_M_decimal_point) 24952: break; 24952: else if (__c == __lit[__num_base::_S_izero] 24952: && (!__found_zero || __base == 10)) 24952: { 24952: __found_zero = true; 24952: ++__sep_pos; 24952: if (__basefield == 0) 24952: __base = 8; 24952: if (__base == 8) 24952: __sep_pos = 0; 24952: } 24952: else if (__found_zero 24952: && (__c == __lit[__num_base::_S_ix] 24952: || __c == __lit[__num_base::_S_iX])) 24952: { 24952: if (__basefield == 0) 24952: __base = 16; 24952: if (__base == 16) 24952: { 24952: __found_zero = false; 24952: __sep_pos = 0; 24952: } 24952: else 24952: break; 24952: } 24952: else 24952: break; 24952: 24952: if (++__beg != __end) 24952: { 24952: __c = *__beg; 24952: if (!__found_zero) 24952: break; 24952: } 24952: else 24952: __testeof = true; 24952: } 24952: 24952: 24952: 24952: const size_t __len = (__base == 16 ? __num_base::_S_iend 24952: - __num_base::_S_izero : __base); 24952: 24952: 24952: typedef __gnu_cxx::__numeric_traits<_ValueT> __num_traits; 24952: string __found_grouping; 24952: if (__lc->_M_use_grouping) 24952: __found_grouping.reserve(32); 24952: bool __testfail = false; 24952: bool __testoverflow = false; 24952: const __unsigned_type __max = 24952: (__negative && __num_traits::__is_signed) 24952: ? -static_cast<__unsigned_type>(__num_traits::__min) 24952: : __num_traits::__max; 24952: const __unsigned_type __smax = __max / __base; 24952: __unsigned_type __result = 0; 24952: int __digit = 0; 24952: const char_type* __lit_zero = __lit + __num_base::_S_izero; 24952: 24952: if (!__lc->_M_allocated) 24952: 24952: while (!__testeof) 24952: { 24952: __digit = _M_find(__lit_zero, __len, __c); 24952: if (__digit == -1) 24952: break; 24952: 24952: if (__result > __smax) 24952: __testoverflow = true; 24952: else 24952: { 24952: __result *= __base; 24952: __testoverflow |= __result > __max - __digit; 24952: __result += __digit; 24952: ++__sep_pos; 24952: } 24952: 24952: if (++__beg != __end) 24952: __c = *__beg; 24952: else 24952: __testeof = true; 24952: } 24952: else 24952: while (!__testeof) 24952: { 24952: 24952: 24952: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 24952: { 24952: 24952: 24952: if (__sep_pos) 24952: { 24952: __found_grouping += static_cast(__sep_pos); 24952: __sep_pos = 0; 24952: } 24952: else 24952: { 24952: __testfail = true; 24952: break; 24952: } 24952: } 24952: else if (__c == __lc->_M_decimal_point) 24952: break; 24952: else 24952: { 24952: const char_type* __q = 24952: __traits_type::find(__lit_zero, __len, __c); 24952: if (!__q) 24952: break; 24952: 24952: __digit = __q - __lit_zero; 24952: if (__digit > 15) 24952: __digit -= 6; 24952: if (__result > __smax) 24952: __testoverflow = true; 24952: else 24952: { 24952: __result *= __base; 24952: __testoverflow |= __result > __max - __digit; 24952: __result += __digit; 24952: ++__sep_pos; 24952: } 24952: } 24952: 24952: if (++__beg != __end) 24952: __c = *__beg; 24952: else 24952: __testeof = true; 24952: } 24952: 24952: 24952: 24952: if (__found_grouping.size()) 24952: { 24952: 24952: __found_grouping += static_cast(__sep_pos); 24952: 24952: if (!std::__verify_grouping(__lc->_M_grouping, 24952: __lc->_M_grouping_size, 24952: __found_grouping)) 24952: __err = ios_base::failbit; 24952: } 24952: 24952: 24952: 24952: if ((!__sep_pos && !__found_zero && !__found_grouping.size()) 24952: || __testfail) 24952: { 24952: __v = 0; 24952: __err = ios_base::failbit; 24952: } 24952: else if (__testoverflow) 24952: { 24952: if (__negative && __num_traits::__is_signed) 24952: __v = __num_traits::__min; 24952: else 24952: __v = __num_traits::__max; 24952: __err = ios_base::failbit; 24952: } 24952: else 24952: __v = __negative ? -__result : __result; 24952: 24952: if (__testeof) 24952: __err |= ios_base::eofbit; 24952: return __beg; 24952: } 24952: 24952: 24952: 24952: template 24952: _InIter 24952: num_get<_CharT, _InIter>:: 24952: do_get(iter_type __beg, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, bool& __v) const 24952: { 24952: if (!(__io.flags() & ios_base::boolalpha)) 24952: { 24952: 24952: 24952: 24952: long __l = -1; 24952: __beg = _M_extract_int(__beg, __end, __io, __err, __l); 24952: if (__l == 0 || __l == 1) 24952: __v = bool(__l); 24952: else 24952: { 24952: 24952: 24952: __v = true; 24952: __err = ios_base::failbit; 24952: if (__beg == __end) 24952: __err |= ios_base::eofbit; 24952: } 24952: } 24952: else 24952: { 24952: 24952: typedef __numpunct_cache<_CharT> __cache_type; 24952: __use_cache<__cache_type> __uc; 24952: const locale& __loc = __io._M_getloc(); 24952: const __cache_type* __lc = __uc(__loc); 24952: 24952: bool __testf = true; 24952: bool __testt = true; 24952: bool __donef = __lc->_M_falsename_size == 0; 24952: bool __donet = __lc->_M_truename_size == 0; 24952: bool __testeof = false; 24952: size_t __n = 0; 24952: while (!__donef || !__donet) 24952: { 24952: if (__beg == __end) 24952: { 24952: __testeof = true; 24952: break; 24952: } 24952: 24952: const char_type __c = *__beg; 24952: 24952: if (!__donef) 24952: __testf = __c == __lc->_M_falsename[__n]; 24952: 24952: if (!__testf && __donet) 24952: break; 24952: 24952: if (!__donet) 24952: __testt = __c == __lc->_M_truename[__n]; 24952: 24952: if (!__testt && __donef) 24952: break; 24952: 24952: if (!__testt && !__testf) 24952: break; 24952: 24952: ++__n; 24952: ++__beg; 24952: 24952: __donef = !__testf || __n >= __lc->_M_falsename_size; 24952: __donet = !__testt || __n >= __lc->_M_truename_size; 24952: } 24952: if (__testf && __n == __lc->_M_falsename_size && __n) 24952: { 24952: __v = false; 24952: if (__testt && __n == __lc->_M_truename_size) 24952: __err = ios_base::failbit; 24952: else 24952: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 24952: } 24952: else if (__testt && __n == __lc->_M_truename_size && __n) 24952: { 24952: __v = true; 24952: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 24952: } 24952: else 24952: { 24952: 24952: 24952: __v = false; 24952: __err = ios_base::failbit; 24952: if (__testeof) 24952: __err |= ios_base::eofbit; 24952: } 24952: } 24952: return __beg; 24952: } 24952: 24952: template 24952: _InIter 24952: num_get<_CharT, _InIter>:: 24952: do_get(iter_type __beg, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, float& __v) const 24952: { 24952: string __xtrc; 24952: __xtrc.reserve(32); 24952: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 24952: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 24952: if (__beg == __end) 24952: __err |= ios_base::eofbit; 24952: return __beg; 24952: } 24952: 24952: template 24952: _InIter 24952: num_get<_CharT, _InIter>:: 24952: do_get(iter_type __beg, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, double& __v) const 24952: { 24952: string __xtrc; 24952: __xtrc.reserve(32); 24952: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 24952: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 24952: if (__beg == __end) 24952: __err |= ios_base::eofbit; 24952: return __beg; 24952: } 24952: # 735 "/usr/include/c++/13/bits/locale_facets.tcc" 3 24952: template 24952: _InIter 24952: num_get<_CharT, _InIter>:: 24952: do_get(iter_type __beg, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, long double& __v) const 24952: { 24952: string __xtrc; 24952: __xtrc.reserve(32); 24952: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 24952: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 24952: if (__beg == __end) 24952: __err |= ios_base::eofbit; 24952: return __beg; 24952: } 24952: 24952: template 24952: _InIter 24952: num_get<_CharT, _InIter>:: 24952: do_get(iter_type __beg, iter_type __end, ios_base& __io, 24952: ios_base::iostate& __err, void*& __v) const 24952: { 24952: 24952: typedef ios_base::fmtflags fmtflags; 24952: const fmtflags __fmt = __io.flags(); 24952: __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); 24952: 24952: typedef __gnu_cxx::__conditional_type<(sizeof(void*) 24952: <= sizeof(unsigned long)), 24952: unsigned long, unsigned long long>::__type _UIntPtrType; 24952: 24952: _UIntPtrType __ul; 24952: __beg = _M_extract_int(__beg, __end, __io, __err, __ul); 24952: 24952: 24952: __io.flags(__fmt); 24952: 24952: __v = reinterpret_cast(__ul); 24952: return __beg; 24952: } 24952: # 795 "/usr/include/c++/13/bits/locale_facets.tcc" 3 24952: template 24952: void 24952: num_put<_CharT, _OutIter>:: 24952: _M_pad(_CharT __fill, streamsize __w, ios_base& __io, 24952: _CharT* __new, const _CharT* __cs, int& __len) const 24952: { 24952: 24952: 24952: __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, 24952: __cs, __w, __len); 24952: __len = static_cast(__w); 24952: } 24952: 24952: 24952: 24952: template 24952: int 24952: __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, 24952: ios_base::fmtflags __flags, bool __dec) 24952: { 24952: _CharT* __buf = __bufend; 24952: if (__builtin_expect(__dec, true)) 24952: { 24952: 24952: do 24952: { 24952: *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; 24952: __v /= 10; 24952: } 24952: while (__v != 0); 24952: } 24952: else if ((__flags & ios_base::basefield) == ios_base::oct) 24952: { 24952: 24952: do 24952: { 24952: *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; 24952: __v >>= 3; 24952: } 24952: while (__v != 0); 24952: } 24952: else 24952: { 24952: 24952: const bool __uppercase = __flags & ios_base::uppercase; 24952: const int __case_offset = __uppercase ? __num_base::_S_oudigits 24952: : __num_base::_S_odigits; 24952: do 24952: { 24952: *--__buf = __lit[(__v & 0xf) + __case_offset]; 24952: __v >>= 4; 24952: } 24952: while (__v != 0); 24952: } 24952: return __bufend - __buf; 24952: } 24952: 24952: 24952: 24952: template 24952: void 24952: num_put<_CharT, _OutIter>:: 24952: _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, 24952: ios_base&, _CharT* __new, _CharT* __cs, int& __len) const 24952: { 24952: _CharT* __p = std::__add_grouping(__new, __sep, __grouping, 24952: __grouping_size, __cs, __cs + __len); 24952: __len = __p - __new; 24952: } 24952: 24952: template 24952: template 24952: _OutIter 24952: num_put<_CharT, _OutIter>:: 24952: _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, 24952: _ValueT __v) const 24952: { 24952: using __gnu_cxx::__add_unsigned; 24952: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 24952: typedef __numpunct_cache<_CharT> __cache_type; 24952: __use_cache<__cache_type> __uc; 24952: const locale& __loc = __io._M_getloc(); 24952: const __cache_type* __lc = __uc(__loc); 24952: const _CharT* __lit = __lc->_M_atoms_out; 24952: const ios_base::fmtflags __flags = __io.flags(); 24952: 24952: 24952: const int __ilen = 5 * sizeof(_ValueT); 24952: _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 24952: * __ilen)); 24952: 24952: 24952: 24952: const ios_base::fmtflags __basefield = __flags & ios_base::basefield; 24952: const bool __dec = (__basefield != ios_base::oct 24952: && __basefield != ios_base::hex); 24952: const __unsigned_type __u = ((__v > 0 || !__dec) 24952: ? __unsigned_type(__v) 24952: : -__unsigned_type(__v)); 24952: int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); 24952: __cs += __ilen - __len; 24952: 24952: 24952: if (__lc->_M_use_grouping) 24952: { 24952: 24952: 24952: _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 24952: * (__len + 1) 24952: * 2)); 24952: _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, 24952: __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); 24952: __cs = __cs2 + 2; 24952: } 24952: 24952: 24952: if (__builtin_expect(__dec, true)) 24952: { 24952: 24952: if (__v >= 0) 24952: { 24952: if (bool(__flags & ios_base::showpos) 24952: && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) 24952: *--__cs = __lit[__num_base::_S_oplus], ++__len; 24952: } 24952: else 24952: *--__cs = __lit[__num_base::_S_ominus], ++__len; 24952: } 24952: else if (bool(__flags & ios_base::showbase) && __v) 24952: { 24952: if (__basefield == ios_base::oct) 24952: *--__cs = __lit[__num_base::_S_odigits], ++__len; 24952: else 24952: { 24952: 24952: const bool __uppercase = __flags & ios_base::uppercase; 24952: *--__cs = __lit[__num_base::_S_ox + __uppercase]; 24952: 24952: *--__cs = __lit[__num_base::_S_odigits]; 24952: __len += 2; 24952: } 24952: } 24952: 24952: 24952: const streamsize __w = __io.width(); 24952: if (__w > static_cast(__len)) 24952: { 24952: _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 24952: * __w)); 24952: _M_pad(__fill, __w, __io, __cs3, __cs, __len); 24952: __cs = __cs3; 24952: } 24952: __io.width(0); 24952: 24952: 24952: 24952: return std::__write(__s, __cs, __len); 24952: } 24952: 24952: template 24952: void 24952: num_put<_CharT, _OutIter>:: 24952: _M_group_float(const char* __grouping, size_t __grouping_size, 24952: _CharT __sep, const _CharT* __p, _CharT* __new, 24952: _CharT* __cs, int& __len) const 24952: { 24952: 24952: 24952: 24952: const int __declen = __p ? __p - __cs : __len; 24952: _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, 24952: __grouping_size, 24952: __cs, __cs + __declen); 24952: 24952: 24952: int __newlen = __p2 - __new; 24952: if (__p) 24952: { 24952: char_traits<_CharT>::copy(__p2, __p, __len - __declen); 24952: __newlen += __len - __declen; 24952: } 24952: __len = __newlen; 24952: } 24952: # 989 "/usr/include/c++/13/bits/locale_facets.tcc" 3 24952: template 24952: template 24952: _OutIter 24952: num_put<_CharT, _OutIter>:: 24952: _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, 24952: _ValueT __v) const 24952: { 24952: typedef __numpunct_cache<_CharT> __cache_type; 24952: __use_cache<__cache_type> __uc; 24952: const locale& __loc = __io._M_getloc(); 24952: const __cache_type* __lc = __uc(__loc); 24952: 24952: 24952: const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); 24952: 24952: const int __max_digits = 24952: __gnu_cxx::__numeric_traits<_ValueT>::__digits10; 24952: 24952: 24952: int __len; 24952: 24952: char __fbuf[16]; 24952: __num_base::_S_format_float(__io, __fbuf, __mod); 24952: 24952: 24952: 24952: const bool __use_prec = 24952: (__io.flags() & ios_base::floatfield) != ios_base::floatfield; 24952: 24952: 24952: 24952: int __cs_size = __max_digits * 3; 24952: char* __cs = static_cast(__builtin_alloca(__cs_size)); 24952: if (__use_prec) 24952: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 24952: __fbuf, __prec, __v); 24952: else 24952: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 24952: __fbuf, __v); 24952: 24952: 24952: if (__len >= __cs_size) 24952: { 24952: __cs_size = __len + 1; 24952: __cs = static_cast(__builtin_alloca(__cs_size)); 24952: if (__use_prec) 24952: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 24952: __fbuf, __prec, __v); 24952: else 24952: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 24952: __fbuf, __v); 24952: } 24952: # 1062 "/usr/include/c++/13/bits/locale_facets.tcc" 3 24952: const ctype<_CharT>& __ctype = use_facet >(__loc); 24952: 24952: _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 24952: * __len)); 24952: __ctype.widen(__cs, __cs + __len, __ws); 24952: 24952: 24952: _CharT* __wp = 0; 24952: const char* __p = char_traits::find(__cs, __len, '.'); 24952: if (__p) 24952: { 24952: __wp = __ws + (__p - __cs); 24952: *__wp = __lc->_M_decimal_point; 24952: } 24952: 24952: 24952: 24952: 24952: if (__lc->_M_use_grouping 24952: && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' 24952: && __cs[1] >= '0' && __cs[2] >= '0'))) 24952: { 24952: 24952: 24952: _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 24952: * __len * 2)); 24952: 24952: streamsize __off = 0; 24952: if (__cs[0] == '-' || __cs[0] == '+') 24952: { 24952: __off = 1; 24952: __ws2[0] = __ws[0]; 24952: __len -= 1; 24952: } 24952: 24952: _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, 24952: __lc->_M_thousands_sep, __wp, __ws2 + __off, 24952: __ws + __off, __len); 24952: __len += __off; 24952: 24952: __ws = __ws2; 24952: } 24952: 24952: 24952: const streamsize __w = __io.width(); 24952: if (__w > static_cast(__len)) 24952: { 24952: _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 24952: * __w)); 24952: _M_pad(__fill, __w, __io, __ws3, __ws, __len); 24952: __ws = __ws3; 24952: } 24952: __io.width(0); 24952: 24952: 24952: 24952: return std::__write(__s, __ws, __len); 24952: } 24952: 24952: template 24952: _OutIter 24952: num_put<_CharT, _OutIter>:: 24952: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 24952: { 24952: const ios_base::fmtflags __flags = __io.flags(); 24952: if ((__flags & ios_base::boolalpha) == 0) 24952: { 24952: const long __l = __v; 24952: __s = _M_insert_int(__s, __io, __fill, __l); 24952: } 24952: else 24952: { 24952: typedef __numpunct_cache<_CharT> __cache_type; 24952: __use_cache<__cache_type> __uc; 24952: const locale& __loc = __io._M_getloc(); 24952: const __cache_type* __lc = __uc(__loc); 24952: 24952: const _CharT* __name = __v ? __lc->_M_truename 24952: : __lc->_M_falsename; 24952: int __len = __v ? __lc->_M_truename_size 24952: : __lc->_M_falsename_size; 24952: 24952: const streamsize __w = __io.width(); 24952: if (__w > static_cast(__len)) 24952: { 24952: const streamsize __plen = __w - __len; 24952: _CharT* __ps 24952: = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 24952: * __plen)); 24952: 24952: char_traits<_CharT>::assign(__ps, __plen, __fill); 24952: __io.width(0); 24952: 24952: if ((__flags & ios_base::adjustfield) == ios_base::left) 24952: { 24952: __s = std::__write(__s, __name, __len); 24952: __s = std::__write(__s, __ps, __plen); 24952: } 24952: else 24952: { 24952: __s = std::__write(__s, __ps, __plen); 24952: __s = std::__write(__s, __name, __len); 24952: } 24952: return __s; 24952: } 24952: __io.width(0); 24952: __s = std::__write(__s, __name, __len); 24952: } 24952: return __s; 24952: } 24952: 24952: template 24952: _OutIter 24952: num_put<_CharT, _OutIter>:: 24952: do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 24952: { return _M_insert_float(__s, __io, __fill, char(), __v); } 24952: # 1187 "/usr/include/c++/13/bits/locale_facets.tcc" 3 24952: template 24952: _OutIter 24952: num_put<_CharT, _OutIter>:: 24952: do_put(iter_type __s, ios_base& __io, char_type __fill, 24952: long double __v) const 24952: { return _M_insert_float(__s, __io, __fill, 'L', __v); } 24952: 24952: template 24952: _OutIter 24952: num_put<_CharT, _OutIter>:: 24952: do_put(iter_type __s, ios_base& __io, char_type __fill, 24952: const void* __v) const 24952: { 24952: const ios_base::fmtflags __flags = __io.flags(); 24952: const ios_base::fmtflags __fmt = ~(ios_base::basefield 24952: | ios_base::uppercase); 24952: __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); 24952: 24952: typedef __gnu_cxx::__conditional_type<(sizeof(const void*) 24952: <= sizeof(unsigned long)), 24952: unsigned long, unsigned long long>::__type _UIntPtrType; 24952: 24952: __s = _M_insert_int(__s, __io, __fill, 24952: reinterpret_cast<_UIntPtrType>(__v)); 24952: __io.flags(__flags); 24952: return __s; 24952: } 24952: # 1224 "/usr/include/c++/13/bits/locale_facets.tcc" 3 24952: 24952: # 1233 "/usr/include/c++/13/bits/locale_facets.tcc" 3 24952: template 24952: void 24952: __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, 24952: _CharT* __news, const _CharT* __olds, 24952: streamsize __newlen, streamsize __oldlen) 24952: { 24952: const size_t __plen = static_cast(__newlen - __oldlen); 24952: const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; 24952: 24952: 24952: if (__adjust == ios_base::left) 24952: { 24952: _Traits::copy(__news, __olds, __oldlen); 24952: _Traits::assign(__news + __oldlen, __plen, __fill); 24952: return; 24952: } 24952: 24952: size_t __mod = 0; 24952: if (__adjust == ios_base::internal) 24952: { 24952: 24952: 24952: 24952: const locale& __loc = __io._M_getloc(); 24952: const ctype<_CharT>& __ctype = use_facet >(__loc); 24952: 24952: if (__ctype.widen('-') == __olds[0] 24952: || __ctype.widen('+') == __olds[0]) 24952: { 24952: __news[0] = __olds[0]; 24952: __mod = 1; 24952: ++__news; 24952: } 24952: else if (__ctype.widen('0') == __olds[0] 24952: && __oldlen > 1 24952: && (__ctype.widen('x') == __olds[1] 24952: || __ctype.widen('X') == __olds[1])) 24952: { 24952: __news[0] = __olds[0]; 24952: __news[1] = __olds[1]; 24952: __mod = 2; 24952: __news += 2; 24952: } 24952: 24952: } 24952: _Traits::assign(__news, __plen, __fill); 24952: _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); 24952: } 24952: 24952: template 24952: _CharT* 24952: __add_grouping(_CharT* __s, _CharT __sep, 24952: const char* __gbeg, size_t __gsize, 24952: const _CharT* __first, const _CharT* __last) 24952: { 24952: size_t __idx = 0; 24952: size_t __ctr = 0; 24952: 24952: while (__last - __first > __gbeg[__idx] 24952: && static_cast(__gbeg[__idx]) > 0 24952: && __gbeg[__idx] != __gnu_cxx::__numeric_traits::__max) 24952: { 24952: __last -= __gbeg[__idx]; 24952: __idx < __gsize - 1 ? ++__idx : ++__ctr; 24952: } 24952: 24952: while (__first != __last) 24952: *__s++ = *__first++; 24952: 24952: while (__ctr--) 24952: { 24952: *__s++ = __sep; 24952: for (char __i = __gbeg[__idx]; __i > 0; --__i) 24952: *__s++ = *__first++; 24952: } 24952: 24952: while (__idx--) 24952: { 24952: *__s++ = __sep; 24952: for (char __i = __gbeg[__idx]; __i > 0; --__i) 24952: *__s++ = *__first++; 24952: } 24952: 24952: return __s; 24952: } 24952: 24952: 24952: 24952: 24952: extern template class __cxx11:: numpunct; 24952: extern template class __cxx11:: numpunct_byname; 24952: extern template class num_get; 24952: extern template class num_put; 24952: extern template class ctype_byname; 24952: 24952: extern template 24952: const ctype* 24952: __try_use_facet >(const locale&) noexcept; 24952: 24952: extern template 24952: const numpunct* 24952: __try_use_facet >(const locale&) noexcept; 24952: 24952: extern template 24952: const num_put* 24952: __try_use_facet >(const locale&) noexcept; 24952: 24952: extern template 24952: const num_get* 24952: __try_use_facet >(const locale&) noexcept; 24952: 24952: extern template 24952: const ctype& 24952: use_facet >(const locale&); 24952: 24952: extern template 24952: const numpunct& 24952: use_facet >(const locale&); 24952: 24952: extern template 24952: const num_put& 24952: use_facet >(const locale&); 24952: 24952: extern template 24952: const num_get& 24952: use_facet >(const locale&); 24952: 24952: extern template 24952: bool 24952: has_facet >(const locale&); 24952: 24952: extern template 24952: bool 24952: has_facet >(const locale&); 24952: 24952: extern template 24952: bool 24952: has_facet >(const locale&); 24952: 24952: extern template 24952: bool 24952: has_facet >(const locale&); 24952: 24952: 24952: extern template class __cxx11:: numpunct; 24952: extern template class __cxx11:: numpunct_byname; 24952: extern template class num_get; 24952: extern template class num_put; 24952: extern template class ctype_byname; 24952: 24952: extern template 24952: const ctype* 24952: __try_use_facet >(const locale&) noexcept; 24952: 24952: extern template 24952: const numpunct* 24952: __try_use_facet >(const locale&) noexcept; 24952: 24952: extern template 24952: const num_put* 24952: __try_use_facet >(const locale&) noexcept; 24952: 24952: extern template 24952: const num_get* 24952: __try_use_facet >(const locale&) noexcept; 24952: 24952: extern template 24952: const ctype& 24952: use_facet >(const locale&); 24952: 24952: extern template 24952: const numpunct& 24952: use_facet >(const locale&); 24952: 24952: extern template 24952: const num_put& 24952: use_facet >(const locale&); 24952: 24952: extern template 24952: const num_get& 24952: use_facet >(const locale&); 24952: 24952: extern template 24952: bool 24952: has_facet >(const locale&); 24952: 24952: extern template 24952: bool 24952: has_facet >(const locale&); 24952: 24952: extern template 24952: bool 24952: has_facet >(const locale&); 24952: 24952: extern template 24952: bool 24952: has_facet >(const locale&); 24952: 24952: 24952: 24952: 24952: } 24952: # 2688 "/usr/include/c++/13/bits/locale_facets.h" 2 3 24952: # 38 "/usr/include/c++/13/bits/basic_ios.h" 2 3 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template 24952: inline const _Facet& 24952: __check_facet(const _Facet* __f) 24952: { 24952: if (!__f) 24952: __throw_bad_cast(); 24952: return *__f; 24952: } 24952: # 66 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: template 24952: class basic_ios : public ios_base 24952: { 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef _CharT char_type; 24952: typedef typename _Traits::int_type int_type; 24952: typedef typename _Traits::pos_type pos_type; 24952: typedef typename _Traits::off_type off_type; 24952: typedef _Traits traits_type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef ctype<_CharT> __ctype_type; 24952: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 24952: __num_put_type; 24952: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 24952: __num_get_type; 24952: 24952: 24952: 24952: protected: 24952: basic_ostream<_CharT, _Traits>* _M_tie; 24952: mutable char_type _M_fill; 24952: mutable bool _M_fill_init; 24952: basic_streambuf<_CharT, _Traits>* _M_streambuf; 24952: 24952: 24952: const __ctype_type* _M_ctype; 24952: 24952: const __num_put_type* _M_num_put; 24952: 24952: const __num_get_type* _M_num_get; 24952: 24952: public: 24952: # 117 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: explicit operator bool() const 24952: { return !this->fail(); } 24952: 24952: 24952: 24952: 24952: 24952: bool 24952: operator!() const 24952: { return this->fail(); } 24952: # 136 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: iostate 24952: rdstate() const 24952: { return _M_streambuf_state; } 24952: # 147 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: void 24952: clear(iostate __state = goodbit); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: setstate(iostate __state) 24952: { this->clear(this->rdstate() | __state); } 24952: 24952: 24952: 24952: 24952: void 24952: _M_setstate(iostate __state) 24952: { 24952: 24952: 24952: _M_streambuf_state |= __state; 24952: if (this->exceptions() & __state) 24952: throw; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool 24952: good() const 24952: { return this->rdstate() == 0; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool 24952: eof() const 24952: { return (this->rdstate() & eofbit) != 0; } 24952: # 200 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: bool 24952: fail() const 24952: { return (this->rdstate() & (badbit | failbit)) != 0; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool 24952: bad() const 24952: { return (this->rdstate() & badbit) != 0; } 24952: # 221 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: iostate 24952: exceptions() const 24952: { return _M_exception; } 24952: # 256 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: void 24952: exceptions(iostate __except) 24952: { 24952: _M_exception = __except; 24952: this->clear(_M_streambuf_state); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: basic_ios(basic_streambuf<_CharT, _Traits>* __sb) 24952: : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), 24952: _M_ctype(0), _M_num_put(0), _M_num_get(0) 24952: { this->init(__sb); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual 24952: ~basic_ios() { } 24952: # 294 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: basic_ostream<_CharT, _Traits>* 24952: tie() const 24952: { return _M_tie; } 24952: # 306 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: basic_ostream<_CharT, _Traits>* 24952: tie(basic_ostream<_CharT, _Traits>* __tiestr) 24952: { 24952: basic_ostream<_CharT, _Traits>* __old = _M_tie; 24952: _M_tie = __tiestr; 24952: return __old; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_streambuf<_CharT, _Traits>* 24952: rdbuf() const 24952: { return _M_streambuf; } 24952: # 346 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: basic_streambuf<_CharT, _Traits>* 24952: rdbuf(basic_streambuf<_CharT, _Traits>* __sb); 24952: # 360 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: basic_ios& 24952: copyfmt(const basic_ios& __rhs); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: char_type 24952: fill() const 24952: { 24952: if (!_M_fill_init) 24952: { 24952: _M_fill = this->widen(' '); 24952: _M_fill_init = true; 24952: } 24952: return _M_fill; 24952: } 24952: # 389 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: char_type 24952: fill(char_type __ch) 24952: { 24952: char_type __old = this->fill(); 24952: _M_fill = __ch; 24952: return __old; 24952: } 24952: # 409 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: locale 24952: imbue(const locale& __loc); 24952: # 429 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: char 24952: narrow(char_type __c, char __dfault) const 24952: { return __check_facet(_M_ctype).narrow(__c, __dfault); } 24952: # 448 "/usr/include/c++/13/bits/basic_ios.h" 3 24952: char_type 24952: widen(char __c) const 24952: { return __check_facet(_M_ctype).widen(__c); } 24952: 24952: protected: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_ios() 24952: : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), 24952: _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) 24952: { } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: init(basic_streambuf<_CharT, _Traits>* __sb); 24952: 24952: 24952: basic_ios(const basic_ios&) = delete; 24952: basic_ios& operator=(const basic_ios&) = delete; 24952: 24952: void 24952: move(basic_ios& __rhs) 24952: { 24952: ios_base::_M_move(__rhs); 24952: _M_cache_locale(_M_ios_locale); 24952: this->tie(__rhs.tie(nullptr)); 24952: _M_fill = __rhs._M_fill; 24952: _M_fill_init = __rhs._M_fill_init; 24952: _M_streambuf = nullptr; 24952: } 24952: 24952: void 24952: move(basic_ios&& __rhs) 24952: { this->move(__rhs); } 24952: 24952: void 24952: swap(basic_ios& __rhs) noexcept 24952: { 24952: ios_base::_M_swap(__rhs); 24952: _M_cache_locale(_M_ios_locale); 24952: __rhs._M_cache_locale(__rhs._M_ios_locale); 24952: std::swap(_M_tie, __rhs._M_tie); 24952: std::swap(_M_fill, __rhs._M_fill); 24952: std::swap(_M_fill_init, __rhs._M_fill_init); 24952: } 24952: 24952: void 24952: set_rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 24952: { _M_streambuf = __sb; } 24952: 24952: 24952: void 24952: _M_cache_locale(const locale& __loc); 24952: }; 24952: 24952: 24952: } 24952: 24952: # 1 "/usr/include/c++/13/bits/basic_ios.tcc" 1 3 24952: # 33 "/usr/include/c++/13/bits/basic_ios.tcc" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/basic_ios.tcc" 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template 24952: void 24952: basic_ios<_CharT, _Traits>::clear(iostate __state) 24952: { 24952: if (this->rdbuf()) 24952: _M_streambuf_state = __state; 24952: else 24952: _M_streambuf_state = __state | badbit; 24952: if (this->exceptions() & this->rdstate()) 24952: __throw_ios_failure(("basic_ios::clear")); 24952: } 24952: 24952: template 24952: basic_streambuf<_CharT, _Traits>* 24952: basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 24952: { 24952: basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; 24952: _M_streambuf = __sb; 24952: this->clear(); 24952: return __old; 24952: } 24952: 24952: template 24952: basic_ios<_CharT, _Traits>& 24952: basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) 24952: { 24952: 24952: 24952: if (this != std::__addressof(__rhs)) 24952: { 24952: 24952: 24952: 24952: 24952: _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? 24952: _M_local_word : new _Words[__rhs._M_word_size]; 24952: 24952: 24952: _Callback_list* __cb = __rhs._M_callbacks; 24952: if (__cb) 24952: __cb->_M_add_reference(); 24952: _M_call_callbacks(erase_event); 24952: if (_M_word != _M_local_word) 24952: { 24952: delete [] _M_word; 24952: _M_word = 0; 24952: } 24952: _M_dispose_callbacks(); 24952: 24952: 24952: _M_callbacks = __cb; 24952: for (int __i = 0; __i < __rhs._M_word_size; ++__i) 24952: __words[__i] = __rhs._M_word[__i]; 24952: _M_word = __words; 24952: _M_word_size = __rhs._M_word_size; 24952: 24952: this->flags(__rhs.flags()); 24952: this->width(__rhs.width()); 24952: this->precision(__rhs.precision()); 24952: this->tie(__rhs.tie()); 24952: this->fill(__rhs.fill()); 24952: _M_ios_locale = __rhs.getloc(); 24952: _M_cache_locale(_M_ios_locale); 24952: 24952: _M_call_callbacks(copyfmt_event); 24952: 24952: 24952: this->exceptions(__rhs.exceptions()); 24952: } 24952: return *this; 24952: } 24952: 24952: 24952: template 24952: locale 24952: basic_ios<_CharT, _Traits>::imbue(const locale& __loc) 24952: { 24952: locale __old(this->getloc()); 24952: ios_base::imbue(__loc); 24952: _M_cache_locale(__loc); 24952: if (this->rdbuf() != 0) 24952: this->rdbuf()->pubimbue(__loc); 24952: return __old; 24952: } 24952: 24952: template 24952: void 24952: basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) 24952: { 24952: 24952: ios_base::_M_init(); 24952: 24952: 24952: _M_cache_locale(_M_ios_locale); 24952: # 146 "/usr/include/c++/13/bits/basic_ios.tcc" 3 24952: _M_fill = _CharT(); 24952: _M_fill_init = false; 24952: 24952: _M_tie = 0; 24952: _M_exception = goodbit; 24952: _M_streambuf = __sb; 24952: _M_streambuf_state = __sb ? goodbit : badbit; 24952: } 24952: 24952: template 24952: void 24952: basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) 24952: { 24952: _M_ctype = std::__try_use_facet<__ctype_type>(__loc); 24952: _M_num_put = std::__try_use_facet<__num_put_type>(__loc); 24952: _M_num_get = std::__try_use_facet<__num_get_type>(__loc); 24952: } 24952: 24952: 24952: 24952: 24952: extern template class basic_ios; 24952: 24952: 24952: extern template class basic_ios; 24952: 24952: 24952: 24952: 24952: } 24952: # 517 "/usr/include/c++/13/bits/basic_ios.h" 2 3 24952: # 47 "/usr/include/c++/13/ios" 2 3 24952: # 41 "/usr/include/c++/13/ostream" 2 3 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 59 "/usr/include/c++/13/ostream" 3 24952: template 24952: class basic_ostream : virtual public basic_ios<_CharT, _Traits> 24952: { 24952: public: 24952: 24952: typedef _CharT char_type; 24952: typedef typename _Traits::int_type int_type; 24952: typedef typename _Traits::pos_type pos_type; 24952: typedef typename _Traits::off_type off_type; 24952: typedef _Traits traits_type; 24952: 24952: 24952: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 24952: typedef basic_ios<_CharT, _Traits> __ios_type; 24952: typedef basic_ostream<_CharT, _Traits> __ostream_type; 24952: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 24952: __num_put_type; 24952: typedef ctype<_CharT> __ctype_type; 24952: # 85 "/usr/include/c++/13/ostream" 3 24952: explicit 24952: basic_ostream(__streambuf_type* __sb) 24952: { this->init(__sb); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual 24952: ~basic_ostream() { } 24952: 24952: 24952: class sentry; 24952: friend class sentry; 24952: # 109 "/usr/include/c++/13/ostream" 3 24952: __ostream_type& 24952: operator<<(__ostream_type& (*__pf)(__ostream_type&)) 24952: { 24952: 24952: 24952: 24952: return __pf(*this); 24952: } 24952: 24952: __ostream_type& 24952: operator<<(__ios_type& (*__pf)(__ios_type&)) 24952: { 24952: 24952: 24952: 24952: __pf(*this); 24952: return *this; 24952: } 24952: 24952: __ostream_type& 24952: operator<<(ios_base& (*__pf) (ios_base&)) 24952: { 24952: 24952: 24952: 24952: __pf(*this); 24952: return *this; 24952: } 24952: # 167 "/usr/include/c++/13/ostream" 3 24952: __ostream_type& 24952: operator<<(long __n) 24952: { return _M_insert(__n); } 24952: 24952: __ostream_type& 24952: operator<<(unsigned long __n) 24952: { return _M_insert(__n); } 24952: 24952: __ostream_type& 24952: operator<<(bool __n) 24952: { return _M_insert(__n); } 24952: 24952: __ostream_type& 24952: operator<<(short __n); 24952: 24952: __ostream_type& 24952: operator<<(unsigned short __n) 24952: { 24952: 24952: 24952: return _M_insert(static_cast(__n)); 24952: } 24952: 24952: __ostream_type& 24952: operator<<(int __n); 24952: 24952: __ostream_type& 24952: operator<<(unsigned int __n) 24952: { 24952: 24952: 24952: return _M_insert(static_cast(__n)); 24952: } 24952: 24952: 24952: __ostream_type& 24952: operator<<(long long __n) 24952: { return _M_insert(__n); } 24952: 24952: __ostream_type& 24952: operator<<(unsigned long long __n) 24952: { return _M_insert(__n); } 24952: # 221 "/usr/include/c++/13/ostream" 3 24952: __ostream_type& 24952: operator<<(double __f) 24952: { return _M_insert(__f); } 24952: 24952: __ostream_type& 24952: operator<<(float __f) 24952: { 24952: 24952: 24952: return _M_insert(static_cast(__f)); 24952: } 24952: 24952: __ostream_type& 24952: operator<<(long double __f) 24952: { return _M_insert(__f); } 24952: # 291 "/usr/include/c++/13/ostream" 3 24952: __ostream_type& 24952: operator<<(const void* __p) 24952: { return _M_insert(__p); } 24952: 24952: 24952: __ostream_type& 24952: operator<<(nullptr_t) 24952: { return *this << "nullptr"; } 24952: # 329 "/usr/include/c++/13/ostream" 3 24952: __ostream_type& 24952: operator<<(__streambuf_type* __sb); 24952: # 362 "/usr/include/c++/13/ostream" 3 24952: __ostream_type& 24952: put(char_type __c); 24952: # 381 "/usr/include/c++/13/ostream" 3 24952: __ostream_type& 24952: write(const char_type* __s, streamsize __n); 24952: # 394 "/usr/include/c++/13/ostream" 3 24952: __ostream_type& 24952: flush(); 24952: # 404 "/usr/include/c++/13/ostream" 3 24952: pos_type 24952: tellp(); 24952: # 415 "/usr/include/c++/13/ostream" 3 24952: __ostream_type& 24952: seekp(pos_type); 24952: # 427 "/usr/include/c++/13/ostream" 3 24952: __ostream_type& 24952: seekp(off_type, ios_base::seekdir); 24952: 24952: protected: 24952: basic_ostream() 24952: { this->init(0); } 24952: 24952: 24952: 24952: basic_ostream(basic_iostream<_CharT, _Traits>&) { } 24952: 24952: basic_ostream(const basic_ostream&) = delete; 24952: 24952: basic_ostream(basic_ostream&& __rhs) 24952: : __ios_type() 24952: { __ios_type::move(__rhs); } 24952: 24952: 24952: 24952: basic_ostream& operator=(const basic_ostream&) = delete; 24952: 24952: basic_ostream& 24952: operator=(basic_ostream&& __rhs) 24952: { 24952: swap(__rhs); 24952: return *this; 24952: } 24952: 24952: void 24952: swap(basic_ostream& __rhs) 24952: { __ios_type::swap(__rhs); } 24952: 24952: 24952: template 24952: __ostream_type& 24952: _M_insert(_ValueT __v); 24952: 24952: private: 24952: 24952: void 24952: _M_write(const char_type* __s, streamsize __n) 24952: { std::__ostream_insert(*this, __s, __n); } 24952: 24952: }; 24952: # 479 "/usr/include/c++/13/ostream" 3 24952: template 24952: class basic_ostream<_CharT, _Traits>::sentry 24952: { 24952: 24952: bool _M_ok; 24952: basic_ostream<_CharT, _Traits>& _M_os; 24952: 24952: public: 24952: # 498 "/usr/include/c++/13/ostream" 3 24952: explicit 24952: sentry(basic_ostream<_CharT, _Traits>& __os); 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ~sentry() 24952: { 24952: 24952: if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) 24952: { 24952: 24952: if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) 24952: _M_os.setstate(ios_base::badbit); 24952: } 24952: } 24952: #pragma GCC diagnostic pop 24952: # 530 "/usr/include/c++/13/ostream" 3 24952: explicit 24952: 24952: operator bool() const 24952: { return _M_ok; } 24952: }; 24952: # 552 "/usr/include/c++/13/ostream" 3 24952: template 24952: inline basic_ostream<_CharT, _Traits>& 24952: operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) 24952: { 24952: if (__out.width() != 0) 24952: return __ostream_insert(__out, &__c, 1); 24952: __out.put(__c); 24952: return __out; 24952: } 24952: 24952: template 24952: inline basic_ostream<_CharT, _Traits>& 24952: operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) 24952: { return (__out << __out.widen(__c)); } 24952: 24952: 24952: template 24952: inline basic_ostream& 24952: operator<<(basic_ostream& __out, char __c) 24952: { 24952: if (__out.width() != 0) 24952: return __ostream_insert(__out, &__c, 1); 24952: __out.put(__c); 24952: return __out; 24952: } 24952: 24952: 24952: template 24952: inline basic_ostream& 24952: operator<<(basic_ostream& __out, signed char __c) 24952: { return (__out << static_cast(__c)); } 24952: 24952: template 24952: inline basic_ostream& 24952: operator<<(basic_ostream& __out, unsigned char __c) 24952: { return (__out << static_cast(__c)); } 24952: # 643 "/usr/include/c++/13/ostream" 3 24952: template 24952: inline basic_ostream<_CharT, _Traits>& 24952: operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) 24952: { 24952: if (!__s) 24952: __out.setstate(ios_base::badbit); 24952: else 24952: __ostream_insert(__out, __s, 24952: static_cast(_Traits::length(__s))); 24952: return __out; 24952: } 24952: 24952: template 24952: basic_ostream<_CharT, _Traits> & 24952: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); 24952: 24952: 24952: template 24952: inline basic_ostream& 24952: operator<<(basic_ostream& __out, const char* __s) 24952: { 24952: if (!__s) 24952: __out.setstate(ios_base::badbit); 24952: else 24952: __ostream_insert(__out, __s, 24952: static_cast(_Traits::length(__s))); 24952: return __out; 24952: } 24952: 24952: 24952: template 24952: inline basic_ostream& 24952: operator<<(basic_ostream& __out, const signed char* __s) 24952: { return (__out << reinterpret_cast(__s)); } 24952: 24952: template 24952: inline basic_ostream & 24952: operator<<(basic_ostream& __out, const unsigned char* __s) 24952: { return (__out << reinterpret_cast(__s)); } 24952: # 733 "/usr/include/c++/13/ostream" 3 24952: template 24952: inline basic_ostream<_CharT, _Traits>& 24952: endl(basic_ostream<_CharT, _Traits>& __os) 24952: { return flush(__os.put(__os.widen('\n'))); } 24952: # 745 "/usr/include/c++/13/ostream" 3 24952: template 24952: inline basic_ostream<_CharT, _Traits>& 24952: ends(basic_ostream<_CharT, _Traits>& __os) 24952: { return __os.put(_CharT()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: inline basic_ostream<_CharT, _Traits>& 24952: flush(basic_ostream<_CharT, _Traits>& __os) 24952: { return __os.flush(); } 24952: # 777 "/usr/include/c++/13/ostream" 3 24952: template 24952: using _Require_derived_from_ios_base 24952: = _Require, __not_>, 24952: is_convertible::type, ios_base*>>; 24952: 24952: template, 24952: typename 24952: = decltype(std::declval<_Os&>() << std::declval())> 24952: using __rvalue_stream_insertion_t = _Os&&; 24952: # 799 "/usr/include/c++/13/ostream" 3 24952: template 24952: inline __rvalue_stream_insertion_t<_Ostream, _Tp> 24952: operator<<(_Ostream&& __os, const _Tp& __x) 24952: { 24952: __os << __x; 24952: return std::move(__os); 24952: } 24952: # 877 "/usr/include/c++/13/ostream" 3 24952: 24952: } 24952: 24952: # 1 "/usr/include/c++/13/bits/ostream.tcc" 1 3 24952: # 37 "/usr/include/c++/13/bits/ostream.tcc" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/ostream.tcc" 3 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template 24952: basic_ostream<_CharT, _Traits>::sentry:: 24952: sentry(basic_ostream<_CharT, _Traits>& __os) 24952: : _M_ok(false), _M_os(__os) 24952: { 24952: 24952: if (__os.tie() && __os.good()) 24952: __os.tie()->flush(); 24952: 24952: if (__os.good()) 24952: _M_ok = true; 24952: else if (__os.bad()) 24952: __os.setstate(ios_base::failbit); 24952: } 24952: 24952: template 24952: template 24952: basic_ostream<_CharT, _Traits>& 24952: basic_ostream<_CharT, _Traits>:: 24952: _M_insert(_ValueT __v) 24952: { 24952: sentry __cerb(*this); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: 24952: const __num_put_type& __np = __check_facet(this->_M_num_put); 24952: 24952: 24952: 24952: 24952: if (__np.put(*this, *this, this->fill(), __v).failed()) 24952: __err |= ios_base::badbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: basic_ostream<_CharT, _Traits>& 24952: basic_ostream<_CharT, _Traits>:: 24952: operator<<(short __n) 24952: { 24952: 24952: 24952: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 24952: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 24952: return _M_insert(static_cast(static_cast(__n))); 24952: else 24952: return _M_insert(static_cast(__n)); 24952: } 24952: 24952: template 24952: basic_ostream<_CharT, _Traits>& 24952: basic_ostream<_CharT, _Traits>:: 24952: operator<<(int __n) 24952: { 24952: 24952: 24952: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 24952: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 24952: return _M_insert(static_cast(static_cast(__n))); 24952: else 24952: return _M_insert(static_cast(__n)); 24952: } 24952: 24952: template 24952: basic_ostream<_CharT, _Traits>& 24952: basic_ostream<_CharT, _Traits>:: 24952: operator<<(__streambuf_type* __sbin) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: sentry __cerb(*this); 24952: if (__cerb && __sbin) 24952: { 24952: try 24952: { 24952: if (!__copy_streambufs(__sbin, this->rdbuf())) 24952: __err |= ios_base::failbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::failbit); } 24952: } 24952: else if (!__sbin) 24952: __err |= ios_base::badbit; 24952: if (__err) 24952: this->setstate(__err); 24952: return *this; 24952: } 24952: 24952: template 24952: basic_ostream<_CharT, _Traits>& 24952: basic_ostream<_CharT, _Traits>:: 24952: put(char_type __c) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: sentry __cerb(*this); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: const int_type __put = this->rdbuf()->sputc(__c); 24952: if (traits_type::eq_int_type(__put, traits_type::eof())) 24952: __err |= ios_base::badbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: basic_ostream<_CharT, _Traits>& 24952: basic_ostream<_CharT, _Traits>:: 24952: write(const _CharT* __s, streamsize __n) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: sentry __cerb(*this); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: if (this->rdbuf()->sputn(__s, __n) != __n) 24952: __err = ios_base::badbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(ios_base::badbit); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: basic_ostream<_CharT, _Traits>& 24952: basic_ostream<_CharT, _Traits>:: 24952: flush() 24952: { 24952: 24952: 24952: 24952: 24952: 24952: if (__streambuf_type* __buf = this->rdbuf()) 24952: { 24952: sentry __cerb(*this); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: if (this->rdbuf()->pubsync() == -1) 24952: __err |= ios_base::badbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: typename basic_ostream<_CharT, _Traits>::pos_type 24952: basic_ostream<_CharT, _Traits>:: 24952: tellp() 24952: { 24952: sentry __cerb(*this); 24952: pos_type __ret = pos_type(-1); 24952: if (!this->fail()) 24952: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); 24952: return __ret; 24952: } 24952: 24952: template 24952: basic_ostream<_CharT, _Traits>& 24952: basic_ostream<_CharT, _Traits>:: 24952: seekp(pos_type __pos) 24952: { 24952: sentry __cerb(*this); 24952: if (!this->fail()) 24952: { 24952: 24952: 24952: const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::out); 24952: 24952: 24952: if (__p == pos_type(off_type(-1))) 24952: this->setstate(ios_base::failbit); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: basic_ostream<_CharT, _Traits>& 24952: basic_ostream<_CharT, _Traits>:: 24952: seekp(off_type __off, ios_base::seekdir __dir) 24952: { 24952: sentry __cerb(*this); 24952: if (!this->fail()) 24952: { 24952: 24952: 24952: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 24952: ios_base::out); 24952: 24952: 24952: if (__p == pos_type(off_type(-1))) 24952: this->setstate(ios_base::failbit); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: basic_ostream<_CharT, _Traits>& 24952: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) 24952: { 24952: if (!__s) 24952: __out.setstate(ios_base::badbit); 24952: else 24952: { 24952: 24952: 24952: const size_t __clen = char_traits::length(__s); 24952: try 24952: { 24952: struct __ptr_guard 24952: { 24952: _CharT *__p; 24952: __ptr_guard (_CharT *__ip): __p(__ip) { } 24952: ~__ptr_guard() { delete[] __p; } 24952: _CharT* __get() { return __p; } 24952: } __pg (new _CharT[__clen]); 24952: 24952: _CharT *__ws = __pg.__get(); 24952: for (size_t __i = 0; __i < __clen; ++__i) 24952: __ws[__i] = __out.widen(__s[__i]); 24952: __ostream_insert(__out, __ws, __clen); 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: __out._M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { __out._M_setstate(ios_base::badbit); } 24952: } 24952: return __out; 24952: } 24952: 24952: 24952: 24952: 24952: extern template class basic_ostream; 24952: extern template ostream& endl(ostream&); 24952: extern template ostream& ends(ostream&); 24952: extern template ostream& flush(ostream&); 24952: extern template ostream& operator<<(ostream&, char); 24952: extern template ostream& operator<<(ostream&, unsigned char); 24952: extern template ostream& operator<<(ostream&, signed char); 24952: extern template ostream& operator<<(ostream&, const char*); 24952: extern template ostream& operator<<(ostream&, const unsigned char*); 24952: extern template ostream& operator<<(ostream&, const signed char*); 24952: 24952: extern template ostream& ostream::_M_insert(long); 24952: extern template ostream& ostream::_M_insert(unsigned long); 24952: extern template ostream& ostream::_M_insert(bool); 24952: 24952: extern template ostream& ostream::_M_insert(long long); 24952: extern template ostream& ostream::_M_insert(unsigned long long); 24952: 24952: extern template ostream& ostream::_M_insert(double); 24952: extern template ostream& ostream::_M_insert(long double); 24952: extern template ostream& ostream::_M_insert(const void*); 24952: 24952: 24952: extern template class basic_ostream; 24952: extern template wostream& endl(wostream&); 24952: extern template wostream& ends(wostream&); 24952: extern template wostream& flush(wostream&); 24952: extern template wostream& operator<<(wostream&, wchar_t); 24952: extern template wostream& operator<<(wostream&, char); 24952: extern template wostream& operator<<(wostream&, const wchar_t*); 24952: extern template wostream& operator<<(wostream&, const char*); 24952: 24952: extern template wostream& wostream::_M_insert(long); 24952: extern template wostream& wostream::_M_insert(unsigned long); 24952: extern template wostream& wostream::_M_insert(bool); 24952: 24952: extern template wostream& wostream::_M_insert(long long); 24952: extern template wostream& wostream::_M_insert(unsigned long long); 24952: 24952: extern template wostream& wostream::_M_insert(double); 24952: extern template wostream& wostream::_M_insert(long double); 24952: extern template wostream& wostream::_M_insert(const void*); 24952: 24952: 24952: 24952: 24952: } 24952: # 881 "/usr/include/c++/13/ostream" 2 3 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 2 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 24952: 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 24952: namespace rocksdb { 24952: 24952: class ColumnFamilyHandle; 24952: 24952: 24952: 24952: class WideColumn { 24952: public: 24952: WideColumn() = default; 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 24952: template 24952: WideColumn(N&& name, V&& value) 24952: : name_(std::forward(name)), value_(std::forward(value)) {} 24952: # 49 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 24952: template 24952: WideColumn(std::piecewise_construct_t, NTuple&& name_tuple, 24952: VTuple&& value_tuple) 24952: : name_(std::make_from_tuple(std::forward(name_tuple))), 24952: value_(std::make_from_tuple(std::forward(value_tuple))) { 24952: } 24952: 24952: const Slice& name() const { return name_; } 24952: const Slice& value() const { return value_; } 24952: 24952: Slice& name() { return name_; } 24952: Slice& value() { return value_; } 24952: 24952: private: 24952: Slice name_; 24952: Slice value_; 24952: }; 24952: 24952: 24952: inline bool operator==(const WideColumn& lhs, const WideColumn& rhs) { 24952: return lhs.name() == rhs.name() && lhs.value() == rhs.value(); 24952: } 24952: 24952: inline bool operator!=(const WideColumn& lhs, const WideColumn& rhs) { 24952: return !(lhs == rhs); 24952: } 24952: 24952: inline std::ostream& operator<<(std::ostream& os, const WideColumn& column) { 24952: const bool hex = 24952: (os.flags() & std::ios_base::basefield) == std::ios_base::hex; 24952: if (!column.name().empty()) { 24952: if (hex) { 24952: os << "0x"; 24952: } 24952: os << column.name().ToString(hex); 24952: } 24952: os << ':'; 24952: if (!column.value().empty()) { 24952: if (hex) { 24952: os << "0x"; 24952: } 24952: os << column.value().ToString(hex); 24952: } 24952: return os; 24952: } 24952: 24952: 24952: using WideColumns = std::vector; 24952: 24952: 24952: extern const Slice kDefaultWideColumnName; 24952: 24952: 24952: extern const WideColumns kNoWideColumns; 24952: 24952: 24952: 24952: class PinnableWideColumns { 24952: public: 24952: const WideColumns& columns() const { return columns_; } 24952: size_t serialized_size() const { return value_.size(); } 24952: 24952: void SetPlainValue(const Slice& value); 24952: void SetPlainValue(const Slice& value, Cleanable* cleanable); 24952: void SetPlainValue(PinnableSlice&& value); 24952: void SetPlainValue(std::string&& value); 24952: 24952: Status SetWideColumnValue(const Slice& value); 24952: Status SetWideColumnValue(const Slice& value, Cleanable* cleanable); 24952: Status SetWideColumnValue(PinnableSlice&& value); 24952: Status SetWideColumnValue(std::string&& value); 24952: 24952: void Reset(); 24952: 24952: private: 24952: void CopyValue(const Slice& value); 24952: void PinOrCopyValue(const Slice& value, Cleanable* cleanable); 24952: void MoveValue(PinnableSlice&& value); 24952: void MoveValue(std::string&& value); 24952: 24952: void CreateIndexForPlainValue(); 24952: Status CreateIndexForWideColumns(); 24952: 24952: PinnableSlice value_; 24952: WideColumns columns_; 24952: }; 24952: 24952: inline void PinnableWideColumns::CopyValue(const Slice& value) { 24952: value_.PinSelf(value); 24952: } 24952: 24952: inline void PinnableWideColumns::PinOrCopyValue(const Slice& value, 24952: Cleanable* cleanable) { 24952: if (!cleanable) { 24952: CopyValue(value); 24952: return; 24952: } 24952: 24952: value_.PinSlice(value, cleanable); 24952: } 24952: 24952: inline void PinnableWideColumns::MoveValue(PinnableSlice&& value) { 24952: value_ = std::move(value); 24952: } 24952: 24952: inline void PinnableWideColumns::MoveValue(std::string&& value) { 24952: std::string* const buf = value_.GetSelf(); 24952: 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 3 4 24952: (static_cast ( 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 24952: buf 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 24952: "buf" 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 3 4 24952: , "./include/rocksdb/wide_columns.h", 156, __extension__ __PRETTY_FUNCTION__)) 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/wide_columns.h" 24952: ; 24952: 24952: *buf = std::move(value); 24952: value_.PinSelf(); 24952: } 24952: 24952: inline void PinnableWideColumns::CreateIndexForPlainValue() { 24952: columns_ = WideColumns{{kDefaultWideColumnName, value_}}; 24952: } 24952: 24952: inline void PinnableWideColumns::SetPlainValue(const Slice& value) { 24952: CopyValue(value); 24952: CreateIndexForPlainValue(); 24952: } 24952: 24952: inline void PinnableWideColumns::SetPlainValue(const Slice& value, 24952: Cleanable* cleanable) { 24952: PinOrCopyValue(value, cleanable); 24952: CreateIndexForPlainValue(); 24952: } 24952: 24952: inline void PinnableWideColumns::SetPlainValue(PinnableSlice&& value) { 24952: MoveValue(stdIn 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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:1619: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++/13/bits/vector.tcc:238:44: /usr/include/c++/13/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ::move(value)); 24952: CreateIndexForPlainValue(); 24952: } 24952: 24952: inline void PinnableWideColumns::SetPlainValue(std::string&& value) { 24952: MoveValue(std::move(value)); 24952: CreateIndexForPlainValue(); 24952: } 24952: 24952: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value) { 24952: CopyValue(value); 24952: return CreateIndexForWideColumns(); 24952: } 24952: 24952: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value, 24952: Cleanable* cleanable) { 24952: PinOrCopyValue(value, cleanable); 24952: return CreateIndexForWideColumns(); 24952: } 24952: 24952: inline Status PinnableWideColumns::SetWideColumnValue(PinnableSlice&& value) { 24952: MoveValue(std::move(value)); 24952: return CreateIndexForWideColumns(); 24952: } 24952: 24952: inline Status PinnableWideColumns::SetWideColumnValue(std::string&& value) { 24952: MoveValue(std::move(value)); 24952: return CreateIndexForWideColumns(); 24952: } 24952: 24952: inline void PinnableWideColumns::Reset() { 24952: value_.Reset(); 24952: columns_.clear(); 24952: } 24952: 24952: inline bool operator==(const PinnableWideColumns& lhs, 24952: const PinnableWideColumns& rhs) { 24952: return lhs.columns() == rhs.columns(); 24952: } 24952: 24952: inline bool operator!=(const PinnableWideColumns& lhs, 24952: const PinnableWideColumns& rhs) { 24952: return !(lhs == rhs); 24952: } 24952: 24952: 24952: 24952: 24952: class AttributeGroup { 24952: public: 24952: ColumnFamilyHandle* column_family() const { return column_family_; } 24952: const WideColumns& columns() const { return columns_; } 24952: WideColumns& columns() { return columns_; } 24952: 24952: explicit AttributeGroup(ColumnFamilyHandle* column_family, 24952: const WideColumns& columns) 24952: : column_family_(column_family), columns_(columns) {} 24952: 24952: private: 24952: ColumnFamilyHandle* column_family_; 24952: WideColumns columns_; 24952: }; 24952: 24952: 24952: using AttributeGroups = std::vector; 24952: 24952: 24952: class PinnableAttributeGroup { 24952: public: 24952: ColumnFamilyHandle* column_family() const { return column_family_; } 24952: const Status& status() const { return status_; } 24952: const WideColumns& columns() const { return columns_.columns(); } 24952: 24952: explicit PinnableAttributeGroup(ColumnFamilyHandle* column_family) 24952: : column_family_(column_family), status_(Status::OK()) {} 24952: 24952: void SetStatus(const Status& status); 24952: void SetColumns(PinnableWideColumns&& columns); 24952: 24952: void Reset(); 24952: 24952: private: 24952: ColumnFamilyHandle* column_family_; 24952: Status status_; 24952: PinnableWideColumns columns_; 24952: }; 24952: 24952: inline void PinnableAttributeGroup::SetStatus(const Status& status) { 24952: status_ = status; 24952: } 24952: inline void PinnableAttributeGroup::SetColumns(PinnableWideColumns&& columns) { 24952: columns_ = std::move(columns); 24952: } 24952: 24952: inline void PinnableAttributeGroup::Reset() { 24952: SetStatus(Status::OK()); 24952: columns_.Reset(); 24952: } 24952: 24952: 24952: using PinnableAttributeGroups = std::vector; 24952: 24952: } 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: class Iterator : public Cleanable { 24952: public: 24952: Iterator() {} 24952: 24952: Iterator(const Iterator&) = delete; 24952: void operator=(const Iterator&) = delete; 24952: 24952: virtual ~Iterator() {} 24952: 24952: 24952: 24952: 24952: virtual bool Valid() const = 0; 24952: 24952: 24952: 24952: virtual void SeekToFirst() = 0; 24952: 24952: 24952: 24952: virtual void SeekToLast() = 0; 24952: # 59 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 24952: virtual void Seek(const Slice& target) = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual void SeekForPrev(const Slice& target) = 0; 24952: 24952: 24952: 24952: 24952: virtual void Next() = 0; 24952: 24952: 24952: 24952: 24952: virtual void Prev() = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Slice key() const = 0; 24952: # 91 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 24952: virtual Slice value() const = 0; 24952: # 100 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 24952: virtual const WideColumns& columns() const { 24952: 24952: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 3 4 24952: (static_cast ( 24952: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 24952: false 24952: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 24952: "false" 24952: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 3 4 24952: , "./include/rocksdb/iterator.h", 101, __extension__ __PRETTY_FUNCTION__)) 24952: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 24952: ; 24952: return kNoWideColumns; 24952: } 24952: 24952: 24952: 24952: 24952: virtual Status status() const = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Refresh() { return Refresh(nullptr); } 24952: 24952: 24952: 24952: virtual Status Refresh(const class Snapshot*) { 24952: return Status::NotSupported("Refresh() is not supported"); 24952: } 24952: # 146 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 24952: virtual Status GetProperty(std::string prop_name, std::string* prop); 24952: 24952: virtual Slice timestamp() const { 24952: 24952: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 3 4 24952: (static_cast ( 24952: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 24952: false 24952: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 24952: "false" 24952: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 3 4 24952: , "./include/rocksdb/iterator.h", 149, __extension__ __PRETTY_FUNCTION__)) 24952: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/iterator.h" 24952: ; 24952: return Slice(); 24952: } 24952: }; 24952: 24952: 24952: extern Iterator* NewEmptyIterator(); 24952: 24952: 24952: extern Iterator* NewErrorIterator(const Status& status); 24952: 24952: } 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/sstream" 1 3 24952: # 36 "/usr/include/c++/13/sstream" 3 24952: 24952: # 37 "/usr/include/c++/13/sstream" 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/istream" 1 3 24952: # 36 "/usr/include/c++/13/istream" 3 24952: 24952: # 37 "/usr/include/c++/13/istream" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 43 "/usr/include/c++/13/istream" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 59 "/usr/include/c++/13/istream" 3 24952: template 24952: class basic_istream : virtual public basic_ios<_CharT, _Traits> 24952: { 24952: public: 24952: 24952: typedef _CharT char_type; 24952: typedef typename _Traits::int_type int_type; 24952: typedef typename _Traits::pos_type pos_type; 24952: typedef typename _Traits::off_type off_type; 24952: typedef _Traits traits_type; 24952: 24952: 24952: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 24952: typedef basic_ios<_CharT, _Traits> __ios_type; 24952: typedef basic_istream<_CharT, _Traits> __istream_type; 24952: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 24952: __num_get_type; 24952: typedef ctype<_CharT> __ctype_type; 24952: 24952: protected: 24952: 24952: 24952: 24952: 24952: 24952: streamsize _M_gcount; 24952: 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: basic_istream(__streambuf_type* __sb) 24952: : _M_gcount(streamsize(0)) 24952: { this->init(__sb); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual 24952: ~basic_istream() 24952: { _M_gcount = streamsize(0); } 24952: 24952: 24952: class sentry; 24952: friend class sentry; 24952: # 121 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: operator>>(__istream_type& (*__pf)(__istream_type&)) 24952: { return __pf(*this); } 24952: 24952: __istream_type& 24952: operator>>(__ios_type& (*__pf)(__ios_type&)) 24952: { 24952: __pf(*this); 24952: return *this; 24952: } 24952: 24952: __istream_type& 24952: operator>>(ios_base& (*__pf)(ios_base&)) 24952: { 24952: __pf(*this); 24952: return *this; 24952: } 24952: # 169 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: operator>>(bool& __n) 24952: { return _M_extract(__n); } 24952: 24952: __istream_type& 24952: operator>>(short& __n); 24952: 24952: __istream_type& 24952: operator>>(unsigned short& __n) 24952: { return _M_extract(__n); } 24952: 24952: __istream_type& 24952: operator>>(int& __n); 24952: 24952: __istream_type& 24952: operator>>(unsigned int& __n) 24952: { return _M_extract(__n); } 24952: 24952: __istream_type& 24952: operator>>(long& __n) 24952: { return _M_extract(__n); } 24952: 24952: __istream_type& 24952: operator>>(unsigned long& __n) 24952: { return _M_extract(__n); } 24952: 24952: 24952: __istream_type& 24952: operator>>(long long& __n) 24952: { return _M_extract(__n); } 24952: 24952: __istream_type& 24952: operator>>(unsigned long long& __n) 24952: { return _M_extract(__n); } 24952: # 215 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: operator>>(float& __f) 24952: { return _M_extract(__f); } 24952: 24952: __istream_type& 24952: operator>>(double& __f) 24952: { return _M_extract(__f); } 24952: 24952: __istream_type& 24952: operator>>(long double& __f) 24952: { return _M_extract(__f); } 24952: # 324 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: operator>>(void*& __p) 24952: { return _M_extract(__p); } 24952: # 348 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: operator>>(__streambuf_type* __sb); 24952: # 358 "/usr/include/c++/13/istream" 3 24952: streamsize 24952: gcount() const 24952: { return _M_gcount; } 24952: # 391 "/usr/include/c++/13/istream" 3 24952: int_type 24952: get(); 24952: # 405 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: get(char_type& __c); 24952: # 432 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: get(char_type* __s, streamsize __n, char_type __delim); 24952: # 443 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: get(char_type* __s, streamsize __n) 24952: { return this->get(__s, __n, this->widen('\n')); } 24952: # 466 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: get(__streambuf_type& __sb, char_type __delim); 24952: # 476 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: get(__streambuf_type& __sb) 24952: { return this->get(__sb, this->widen('\n')); } 24952: # 505 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: getline(char_type* __s, streamsize __n, char_type __delim); 24952: # 516 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: getline(char_type* __s, streamsize __n) 24952: { return this->getline(__s, __n, this->widen('\n')); } 24952: # 540 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: ignore(streamsize __n, int_type __delim); 24952: 24952: __istream_type& 24952: ignore(streamsize __n); 24952: 24952: __istream_type& 24952: ignore(); 24952: # 557 "/usr/include/c++/13/istream" 3 24952: int_type 24952: peek(); 24952: # 575 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: read(char_type* __s, streamsize __n); 24952: # 594 "/usr/include/c++/13/istream" 3 24952: streamsize 24952: readsome(char_type* __s, streamsize __n); 24952: # 611 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: putback(char_type __c); 24952: # 627 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: unget(); 24952: # 645 "/usr/include/c++/13/istream" 3 24952: int 24952: sync(); 24952: # 660 "/usr/include/c++/13/istream" 3 24952: pos_type 24952: tellg(); 24952: # 675 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: seekg(pos_type); 24952: # 691 "/usr/include/c++/13/istream" 3 24952: __istream_type& 24952: seekg(off_type, ios_base::seekdir); 24952: 24952: 24952: protected: 24952: basic_istream() 24952: : _M_gcount(streamsize(0)) 24952: { this->init(0); } 24952: 24952: 24952: basic_istream(const basic_istream&) = delete; 24952: 24952: basic_istream(basic_istream&& __rhs) 24952: : __ios_type(), _M_gcount(__rhs._M_gcount) 24952: { 24952: __ios_type::move(__rhs); 24952: __rhs._M_gcount = 0; 24952: } 24952: 24952: 24952: 24952: basic_istream& operator=(const basic_istream&) = delete; 24952: 24952: basic_istream& 24952: operator=(basic_istream&& __rhs) 24952: { 24952: swap(__rhs); 24952: return *this; 24952: } 24952: 24952: void 24952: swap(basic_istream& __rhs) 24952: { 24952: __ios_type::swap(__rhs); 24952: std::swap(_M_gcount, __rhs._M_gcount); 24952: } 24952: 24952: 24952: template 24952: __istream_type& 24952: _M_extract(_ValueT& __v); 24952: }; 24952: 24952: 24952: template<> 24952: basic_istream& 24952: basic_istream:: 24952: getline(char_type* __s, streamsize __n, char_type __delim); 24952: 24952: template<> 24952: basic_istream& 24952: basic_istream:: 24952: ignore(streamsize __n); 24952: 24952: template<> 24952: basic_istream& 24952: basic_istream:: 24952: ignore(streamsize __n, int_type __delim); 24952: 24952: 24952: template<> 24952: basic_istream& 24952: basic_istream:: 24952: getline(char_type* __s, streamsize __n, char_type __delim); 24952: 24952: template<> 24952: basic_istream& 24952: basic_istream:: 24952: ignore(streamsize __n); 24952: 24952: template<> 24952: basic_istream& 24952: basic_istream:: 24952: ignore(streamsize __n, int_type __delim); 24952: # 775 "/usr/include/c++/13/istream" 3 24952: template 24952: class basic_istream<_CharT, _Traits>::sentry 24952: { 24952: 24952: bool _M_ok; 24952: 24952: public: 24952: 24952: typedef _Traits traits_type; 24952: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 24952: typedef basic_istream<_CharT, _Traits> __istream_type; 24952: typedef typename __istream_type::__ctype_type __ctype_type; 24952: typedef typename _Traits::int_type __int_type; 24952: # 811 "/usr/include/c++/13/istream" 3 24952: explicit 24952: sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); 24952: # 822 "/usr/include/c++/13/istream" 3 24952: explicit 24952: 24952: operator bool() const 24952: { return _M_ok; } 24952: }; 24952: # 840 "/usr/include/c++/13/istream" 3 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); 24952: 24952: template 24952: inline basic_istream& 24952: operator>>(basic_istream& __in, unsigned char& __c) 24952: { return (__in >> reinterpret_cast(__c)); } 24952: 24952: template 24952: inline basic_istream& 24952: operator>>(basic_istream& __in, signed char& __c) 24952: { return (__in >> reinterpret_cast(__c)); } 24952: 24952: 24952: 24952: template 24952: void 24952: __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize); 24952: 24952: void __istream_extract(istream&, char*, streamsize); 24952: # 890 "/usr/include/c++/13/istream" 3 24952: template 24952: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 24952: inline basic_istream<_CharT, _Traits>& 24952: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) 24952: { 24952: 24952: 24952: 24952: size_t __n = __builtin_object_size(__s, 0); 24952: if (__n < sizeof(_CharT)) 24952: { 24952: 24952: do { if (std::__is_constant_evaluated() && !bool(__n >= sizeof(_CharT))) __builtin_unreachable(); } while (false); 24952: 24952: __in.width(0); 24952: __in.setstate(ios_base::failbit); 24952: } 24952: else if (__n != (size_t)-1) 24952: { 24952: __n /= sizeof(_CharT); 24952: streamsize __w = __in.width(); 24952: std::__istream_extract(__in, __s, __n); 24952: if (__in.good() && (__w <= 0 || __n < __w)) 24952: { 24952: 24952: 24952: const typename _Traits::int_type __c = __in.rdbuf()->sgetc(); 24952: const bool __eof = _Traits::eq_int_type(__c, _Traits::eof()); 24952: if (__builtin_expect(__eof, true)) 24952: __in.setstate(ios_base::eofbit); 24952: } 24952: } 24952: else 24952: 24952: { 24952: 24952: streamsize __n = __gnu_cxx::__numeric_traits::__max; 24952: __n /= sizeof(_CharT); 24952: std::__istream_extract(__in, __s, __n); 24952: } 24952: return __in; 24952: } 24952: 24952: template 24952: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 24952: inline basic_istream& 24952: operator>>(basic_istream& __in, unsigned char* __s) 24952: { return __in >> reinterpret_cast(__s); } 24952: 24952: template 24952: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 24952: inline basic_istream& 24952: operator>>(basic_istream& __in, signed char* __s) 24952: { return __in >> reinterpret_cast(__s); } 24952: # 979 "/usr/include/c++/13/istream" 3 24952: template 24952: class basic_iostream 24952: : public basic_istream<_CharT, _Traits>, 24952: public basic_ostream<_CharT, _Traits> 24952: { 24952: public: 24952: 24952: 24952: 24952: typedef _CharT char_type; 24952: typedef typename _Traits::int_type int_type; 24952: typedef typename _Traits::pos_type pos_type; 24952: typedef typename _Traits::off_type off_type; 24952: typedef _Traits traits_type; 24952: 24952: 24952: typedef basic_istream<_CharT, _Traits> __istream_type; 24952: typedef basic_ostream<_CharT, _Traits> __ostream_type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) 24952: : __istream_type(__sb), __ostream_type(__sb) { } 24952: 24952: 24952: 24952: 24952: virtual 24952: ~basic_iostream() { } 24952: 24952: protected: 24952: basic_iostream() 24952: : __istream_type(), __ostream_type() { } 24952: 24952: 24952: basic_iostream(const basic_iostream&) = delete; 24952: 24952: basic_iostream(basic_iostream&& __rhs) 24952: : __istream_type(std::move(__rhs)), __ostream_type(*this) 24952: { } 24952: 24952: 24952: 24952: basic_iostream& operator=(const basic_iostream&) = delete; 24952: 24952: basic_iostream& 24952: operator=(basic_iostream&& __rhs) 24952: { 24952: swap(__rhs); 24952: return *this; 24952: } 24952: 24952: void 24952: swap(basic_iostream& __rhs) 24952: { __istream_type::swap(__rhs); } 24952: 24952: }; 24952: # 1062 "/usr/include/c++/13/istream" 3 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: ws(basic_istream<_CharT, _Traits>& __is); 24952: # 1078 "/usr/include/c++/13/istream" 3 24952: template, 24952: typename = decltype(std::declval<_Is&>() >> std::declval<_Tp>())> 24952: using __rvalue_stream_extraction_t = _Is&&; 24952: # 1094 "/usr/include/c++/13/istream" 3 24952: template 24952: inline __rvalue_stream_extraction_t<_Istream, _Tp> 24952: operator>>(_Istream&& __is, _Tp&& __x) 24952: { 24952: __is >> std::forward<_Tp>(__x); 24952: return std::move(__is); 24952: } 24952: 24952: 24952: 24952: } 24952: 24952: # 1 "/usr/include/c++/13/bits/istream.tcc" 1 3 24952: # 37 "/usr/include/c++/13/bits/istream.tcc" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/istream.tcc" 3 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template 24952: basic_istream<_CharT, _Traits>::sentry:: 24952: sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: if (__in.good()) 24952: { 24952: try 24952: { 24952: if (__in.tie()) 24952: __in.tie()->flush(); 24952: if (!__noskip && bool(__in.flags() & ios_base::skipws)) 24952: { 24952: const __int_type __eof = traits_type::eof(); 24952: __streambuf_type* __sb = __in.rdbuf(); 24952: __int_type __c = __sb->sgetc(); 24952: 24952: const __ctype_type& __ct = __check_facet(__in._M_ctype); 24952: while (!traits_type::eq_int_type(__c, __eof) 24952: && __ct.is(ctype_base::space, 24952: traits_type::to_char_type(__c))) 24952: __c = __sb->snextc(); 24952: 24952: 24952: 24952: 24952: if (traits_type::eq_int_type(__c, __eof)) 24952: __err |= ios_base::eofbit; 24952: } 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: __in._M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { __in._M_setstate(ios_base::badbit); } 24952: } 24952: 24952: if (__in.good() && __err == ios_base::goodbit) 24952: _M_ok = true; 24952: else 24952: { 24952: __err |= ios_base::failbit; 24952: __in.setstate(__err); 24952: } 24952: } 24952: 24952: template 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: _M_extract(_ValueT& __v) 24952: { 24952: sentry __cerb(*this, false); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: 24952: const __num_get_type& __ng = __check_facet(this->_M_num_get); 24952: 24952: 24952: 24952: 24952: __ng.get(*this, 0, *this, __err, __v); 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: operator>>(short& __n) 24952: { 24952: 24952: 24952: sentry __cerb(*this, false); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: long __l; 24952: 24952: const __num_get_type& __ng = __check_facet(this->_M_num_get); 24952: 24952: 24952: 24952: 24952: __ng.get(*this, 0, *this, __err, __l); 24952: 24952: 24952: 24952: if (__l < __gnu_cxx::__numeric_traits::__min) 24952: { 24952: __err |= ios_base::failbit; 24952: __n = __gnu_cxx::__numeric_traits::__min; 24952: } 24952: else if (__l > __gnu_cxx::__numeric_traits::__max) 24952: { 24952: __err |= ios_base::failbit; 24952: __n = __gnu_cxx::__numeric_traits::__max; 24952: } 24952: else 24952: __n = short(__l); 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: operator>>(int& __n) 24952: { 24952: 24952: 24952: sentry __cerb(*this, false); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: long __l; 24952: 24952: const __num_get_type& __ng = __check_facet(this->_M_num_get); 24952: 24952: 24952: 24952: 24952: __ng.get(*this, 0, *this, __err, __l); 24952: 24952: 24952: 24952: if (__l < __gnu_cxx::__numeric_traits::__min) 24952: { 24952: __err |= ios_base::failbit; 24952: __n = __gnu_cxx::__numeric_traits::__min; 24952: } 24952: else if (__l > __gnu_cxx::__numeric_traits::__max) 24952: { 24952: __err |= ios_base::failbit; 24952: __n = __gnu_cxx::__numeric_traits::__max; 24952: } 24952: else 24952: __n = int(__l); 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: operator>>(__streambuf_type* __sbout) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: sentry __cerb(*this, false); 24952: if (__cerb && __sbout) 24952: { 24952: try 24952: { 24952: bool __ineof; 24952: if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) 24952: __err |= ios_base::failbit; 24952: if (__ineof) 24952: __err |= ios_base::eofbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::failbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::failbit); } 24952: } 24952: else if (!__sbout) 24952: __err |= ios_base::failbit; 24952: if (__err) 24952: this->setstate(__err); 24952: return *this; 24952: } 24952: 24952: template 24952: typename basic_istream<_CharT, _Traits>::int_type 24952: basic_istream<_CharT, _Traits>:: 24952: get(void) 24952: { 24952: const int_type __eof = traits_type::eof(); 24952: int_type __c = __eof; 24952: _M_gcount = 0; 24952: ios_base::iostate __err = ios_base::goodbit; 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: try 24952: { 24952: __c = this->rdbuf()->sbumpc(); 24952: 24952: if (!traits_type::eq_int_type(__c, __eof)) 24952: _M_gcount = 1; 24952: else 24952: __err |= ios_base::eofbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: } 24952: if (!_M_gcount) 24952: __err |= ios_base::failbit; 24952: if (__err) 24952: this->setstate(__err); 24952: return __c; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: get(char_type& __c) 24952: { 24952: _M_gcount = 0; 24952: ios_base::iostate __err = ios_base::goodbit; 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: try 24952: { 24952: const int_type __cb = this->rdbuf()->sbumpc(); 24952: 24952: if (!traits_type::eq_int_type(__cb, traits_type::eof())) 24952: { 24952: _M_gcount = 1; 24952: __c = traits_type::to_char_type(__cb); 24952: } 24952: else 24952: __err |= ios_base::eofbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: } 24952: if (!_M_gcount) 24952: __err |= ios_base::failbit; 24952: if (__err) 24952: this->setstate(__err); 24952: return *this; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: get(char_type* __s, streamsize __n, char_type __delim) 24952: { 24952: _M_gcount = 0; 24952: ios_base::iostate __err = ios_base::goodbit; 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: try 24952: { 24952: const int_type __idelim = traits_type::to_int_type(__delim); 24952: const int_type __eof = traits_type::eof(); 24952: __streambuf_type* __sb = this->rdbuf(); 24952: int_type __c = __sb->sgetc(); 24952: 24952: while (_M_gcount + 1 < __n 24952: && !traits_type::eq_int_type(__c, __eof) 24952: && !traits_type::eq_int_type(__c, __idelim)) 24952: { 24952: *__s++ = traits_type::to_char_type(__c); 24952: ++_M_gcount; 24952: __c = __sb->snextc(); 24952: } 24952: if (traits_type::eq_int_type(__c, __eof)) 24952: __err |= ios_base::eofbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: } 24952: 24952: 24952: if (__n > 0) 24952: *__s = char_type(); 24952: if (!_M_gcount) 24952: __err |= ios_base::failbit; 24952: if (__err) 24952: this->setstate(__err); 24952: return *this; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: get(__streambuf_type& __sb, char_type __delim) 24952: { 24952: _M_gcount = 0; 24952: ios_base::iostate __err = ios_base::goodbit; 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: try 24952: { 24952: const int_type __idelim = traits_type::to_int_type(__delim); 24952: const int_type __eof = traits_type::eof(); 24952: __streambuf_type* __this_sb = this->rdbuf(); 24952: int_type __c = __this_sb->sgetc(); 24952: char_type __c2 = traits_type::to_char_type(__c); 24952: unsigned long long __gcount = 0; 24952: 24952: while (!traits_type::eq_int_type(__c, __eof) 24952: && !traits_type::eq_int_type(__c, __idelim) 24952: && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) 24952: { 24952: ++__gcount; 24952: __c = __this_sb->snextc(); 24952: __c2 = traits_type::to_char_type(__c); 24952: } 24952: if (traits_type::eq_int_type(__c, __eof)) 24952: __err |= ios_base::eofbit; 24952: 24952: 24952: if (__gcount <= __gnu_cxx::__numeric_traits::__max) 24952: _M_gcount = __gcount; 24952: else 24952: _M_gcount = __gnu_cxx::__numeric_traits::__max; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: } 24952: if (!_M_gcount) 24952: __err |= ios_base::failbit; 24952: if (__err) 24952: this->setstate(__err); 24952: return *this; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: getline(char_type* __s, streamsize __n, char_type __delim) 24952: { 24952: _M_gcount = 0; 24952: ios_base::iostate __err = ios_base::goodbit; 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: try 24952: { 24952: const int_type __idelim = traits_type::to_int_type(__delim); 24952: const int_type __eof = traits_type::eof(); 24952: __streambuf_type* __sb = this->rdbuf(); 24952: int_type __c = __sb->sgetc(); 24952: 24952: while (_M_gcount + 1 < __n 24952: && !traits_type::eq_int_type(__c, __eof) 24952: && !traits_type::eq_int_type(__c, __idelim)) 24952: { 24952: *__s++ = traits_type::to_char_type(__c); 24952: __c = __sb->snextc(); 24952: ++_M_gcount; 24952: } 24952: if (traits_type::eq_int_type(__c, __eof)) 24952: __err |= ios_base::eofbit; 24952: else 24952: { 24952: if (traits_type::eq_int_type(__c, __idelim)) 24952: { 24952: __sb->sbumpc(); 24952: ++_M_gcount; 24952: } 24952: else 24952: __err |= ios_base::failbit; 24952: } 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: } 24952: 24952: 24952: if (__n > 0) 24952: *__s = char_type(); 24952: if (!_M_gcount) 24952: __err |= ios_base::failbit; 24952: if (__err) 24952: this->setstate(__err); 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: ignore(void) 24952: { 24952: _M_gcount = 0; 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: const int_type __eof = traits_type::eof(); 24952: __streambuf_type* __sb = this->rdbuf(); 24952: 24952: if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) 24952: __err |= ios_base::eofbit; 24952: else 24952: _M_gcount = 1; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: ignore(streamsize __n) 24952: { 24952: _M_gcount = 0; 24952: sentry __cerb(*this, true); 24952: if (__cerb && __n > 0) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: const int_type __eof = traits_type::eof(); 24952: __streambuf_type* __sb = this->rdbuf(); 24952: int_type __c = __sb->sgetc(); 24952: # 545 "/usr/include/c++/13/bits/istream.tcc" 3 24952: bool __large_ignore = false; 24952: while (true) 24952: { 24952: while (_M_gcount < __n 24952: && !traits_type::eq_int_type(__c, __eof)) 24952: { 24952: ++_M_gcount; 24952: __c = __sb->snextc(); 24952: } 24952: if (__n == __gnu_cxx::__numeric_traits::__max 24952: && !traits_type::eq_int_type(__c, __eof)) 24952: { 24952: _M_gcount = 24952: __gnu_cxx::__numeric_traits::__min; 24952: __large_ignore = true; 24952: } 24952: else 24952: break; 24952: } 24952: 24952: if (__n == __gnu_cxx::__numeric_traits::__max) 24952: { 24952: if (__large_ignore) 24952: _M_gcount = __gnu_cxx::__numeric_traits::__max; 24952: 24952: if (traits_type::eq_int_type(__c, __eof)) 24952: __err |= ios_base::eofbit; 24952: } 24952: else if (_M_gcount < __n) 24952: { 24952: if (traits_type::eq_int_type(__c, __eof)) 24952: __err |= ios_base::eofbit; 24952: } 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: ignore(streamsize __n, int_type __delim) 24952: { 24952: _M_gcount = 0; 24952: sentry __cerb(*this, true); 24952: if (__cerb && __n > 0) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: const int_type __eof = traits_type::eof(); 24952: __streambuf_type* __sb = this->rdbuf(); 24952: int_type __c = __sb->sgetc(); 24952: 24952: 24952: bool __large_ignore = false; 24952: while (true) 24952: { 24952: while (_M_gcount < __n 24952: && !traits_type::eq_int_type(__c, __eof) 24952: && !traits_type::eq_int_type(__c, __delim)) 24952: { 24952: ++_M_gcount; 24952: __c = __sb->snextc(); 24952: } 24952: if (__n == __gnu_cxx::__numeric_traits::__max 24952: && !traits_type::eq_int_type(__c, __eof) 24952: && !traits_type::eq_int_type(__c, __delim)) 24952: { 24952: _M_gcount = 24952: __gnu_cxx::__numeric_traits::__min; 24952: __large_ignore = true; 24952: } 24952: else 24952: break; 24952: } 24952: 24952: if (__n == __gnu_cxx::__numeric_traits::__max) 24952: { 24952: if (__large_ignore) 24952: _M_gcount = __gnu_cxx::__numeric_traits::__max; 24952: 24952: if (traits_type::eq_int_type(__c, __eof)) 24952: __err |= ios_base::eofbit; 24952: else 24952: { 24952: if (_M_gcount != __n) 24952: ++_M_gcount; 24952: __sb->sbumpc(); 24952: } 24952: } 24952: else if (_M_gcount < __n) 24952: { 24952: if (traits_type::eq_int_type(__c, __eof)) 24952: __err |= ios_base::eofbit; 24952: else 24952: { 24952: ++_M_gcount; 24952: __sb->sbumpc(); 24952: } 24952: } 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: typename basic_istream<_CharT, _Traits>::int_type 24952: basic_istream<_CharT, _Traits>:: 24952: peek(void) 24952: { 24952: int_type __c = traits_type::eof(); 24952: _M_gcount = 0; 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: __c = this->rdbuf()->sgetc(); 24952: if (traits_type::eq_int_type(__c, traits_type::eof())) 24952: __err |= ios_base::eofbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return __c; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: read(char_type* __s, streamsize __n) 24952: { 24952: _M_gcount = 0; 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: _M_gcount = this->rdbuf()->sgetn(__s, __n); 24952: if (_M_gcount != __n) 24952: __err |= (ios_base::eofbit | ios_base::failbit); 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: streamsize 24952: basic_istream<_CharT, _Traits>:: 24952: readsome(char_type* __s, streamsize __n) 24952: { 24952: _M_gcount = 0; 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: 24952: const streamsize __num = this->rdbuf()->in_avail(); 24952: if (__num > 0) 24952: _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); 24952: else if (__num == -1) 24952: __err |= ios_base::eofbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return _M_gcount; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: putback(char_type __c) 24952: { 24952: 24952: 24952: _M_gcount = 0; 24952: 24952: this->clear(this->rdstate() & ~ios_base::eofbit); 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: const int_type __eof = traits_type::eof(); 24952: __streambuf_type* __sb = this->rdbuf(); 24952: if (!__sb 24952: || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) 24952: __err |= ios_base::badbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: unget(void) 24952: { 24952: 24952: 24952: _M_gcount = 0; 24952: 24952: this->clear(this->rdstate() & ~ios_base::eofbit); 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: const int_type __eof = traits_type::eof(); 24952: __streambuf_type* __sb = this->rdbuf(); 24952: if (!__sb 24952: || traits_type::eq_int_type(__sb->sungetc(), __eof)) 24952: __err |= ios_base::badbit; 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: int 24952: basic_istream<_CharT, _Traits>:: 24952: sync(void) 24952: { 24952: 24952: 24952: int __ret = -1; 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: __streambuf_type* __sb = this->rdbuf(); 24952: if (__sb) 24952: { 24952: if (__sb->pubsync() == -1) 24952: __err |= ios_base::badbit; 24952: else 24952: __ret = 0; 24952: } 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: typename basic_istream<_CharT, _Traits>::pos_type 24952: basic_istream<_CharT, _Traits>:: 24952: tellg(void) 24952: { 24952: 24952: 24952: pos_type __ret = pos_type(-1); 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: try 24952: { 24952: if (!this->fail()) 24952: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, 24952: ios_base::in); 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: seekg(pos_type __pos) 24952: { 24952: 24952: 24952: 24952: this->clear(this->rdstate() & ~ios_base::eofbit); 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: if (!this->fail()) 24952: { 24952: 24952: const pos_type __p = this->rdbuf()->pubseekpos(__pos, 24952: ios_base::in); 24952: 24952: 24952: if (__p == pos_type(off_type(-1))) 24952: __err |= ios_base::failbit; 24952: } 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: basic_istream<_CharT, _Traits>:: 24952: seekg(off_type __off, ios_base::seekdir __dir) 24952: { 24952: 24952: 24952: 24952: this->clear(this->rdstate() & ~ios_base::eofbit); 24952: sentry __cerb(*this, true); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: if (!this->fail()) 24952: { 24952: 24952: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 24952: ios_base::in); 24952: 24952: 24952: if (__p == pos_type(off_type(-1))) 24952: __err |= ios_base::failbit; 24952: } 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: this->_M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { this->_M_setstate(ios_base::badbit); } 24952: if (__err) 24952: this->setstate(__err); 24952: } 24952: return *this; 24952: } 24952: 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) 24952: { 24952: typedef basic_istream<_CharT, _Traits> __istream_type; 24952: typedef typename __istream_type::int_type __int_type; 24952: 24952: typename __istream_type::sentry __cerb(__in, false); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: const __int_type __cb = __in.rdbuf()->sbumpc(); 24952: if (!_Traits::eq_int_type(__cb, _Traits::eof())) 24952: __c = _Traits::to_char_type(__cb); 24952: else 24952: __err |= (ios_base::eofbit | ios_base::failbit); 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: __in._M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { __in._M_setstate(ios_base::badbit); } 24952: if (__err) 24952: __in.setstate(__err); 24952: } 24952: return __in; 24952: } 24952: 24952: template 24952: void 24952: __istream_extract(basic_istream<_CharT, _Traits>& __in, _CharT* __s, 24952: streamsize __num) 24952: { 24952: typedef basic_istream<_CharT, _Traits> __istream_type; 24952: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 24952: typedef typename _Traits::int_type int_type; 24952: typedef _CharT char_type; 24952: typedef ctype<_CharT> __ctype_type; 24952: 24952: streamsize __extracted = 0; 24952: ios_base::iostate __err = ios_base::goodbit; 24952: typename __istream_type::sentry __cerb(__in, false); 24952: if (__cerb) 24952: { 24952: try 24952: { 24952: 24952: streamsize __width = __in.width(); 24952: if (0 < __width && __width < __num) 24952: __num = __width; 24952: 24952: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 24952: 24952: const int_type __eof = _Traits::eof(); 24952: __streambuf_type* __sb = __in.rdbuf(); 24952: int_type __c = __sb->sgetc(); 24952: 24952: while (__extracted < __num - 1 24952: && !_Traits::eq_int_type(__c, __eof) 24952: && !__ct.is(ctype_base::space, 24952: _Traits::to_char_type(__c))) 24952: { 24952: *__s++ = _Traits::to_char_type(__c); 24952: ++__extracted; 24952: __c = __sb->snextc(); 24952: } 24952: 24952: if (__extracted < __num - 1 24952: && _Traits::eq_int_type(__c, __eof)) 24952: __err |= ios_base::eofbit; 24952: 24952: 24952: 24952: *__s = char_type(); 24952: __in.width(0); 24952: } 24952: catch(__cxxabiv1::__forced_unwind&) 24952: { 24952: __in._M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { __in._M_setstate(ios_base::badbit); } 24952: } 24952: if (!__extracted) 24952: __err |= ios_base::failbit; 24952: if (__err) 24952: __in.setstate(__err); 24952: } 24952: 24952: 24952: template 24952: basic_istream<_CharT, _Traits>& 24952: ws(basic_istream<_CharT, _Traits>& __in) 24952: { 24952: typedef basic_istream<_CharT, _Traits> __istream_type; 24952: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 24952: typedef typename __istream_type::int_type __int_type; 24952: typedef ctype<_CharT> __ctype_type; 24952: 24952: 24952: 24952: typename __istream_type::sentry __cerb(__in, true); 24952: if (__cerb) 24952: { 24952: ios_base::iostate __err = ios_base::goodbit; 24952: try 24952: { 24952: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 24952: const __int_type __eof = _Traits::eof(); 24952: __streambuf_type* __sb = __in.rdbuf(); 24952: __int_type __c = __sb->sgetc(); 24952: 24952: while (true) 24952: { 24952: if (_Traits::eq_int_type(__c, __eof)) 24952: { 24952: __err = ios_base::eofbit; 24952: break; 24952: } 24952: if (!__ct.is(ctype_base::space, _Traits::to_char_type(__c))) 24952: break; 24952: __c = __sb->snextc(); 24952: } 24952: } 24952: catch(const __cxxabiv1::__forced_unwind&) 24952: { 24952: __in._M_setstate(ios_base::badbit); 24952: throw; 24952: } 24952: catch(...) 24952: { 24952: __in._M_setstate(ios_base::badbit); 24952: } 24952: if (__err) 24952: __in.setstate(__err); 24952: } 24952: return __in; 24952: } 24952: 24952: 24952: 24952: 24952: extern template class basic_istream; 24952: extern template istream& ws(istream&); 24952: extern template istream& operator>>(istream&, char&); 24952: extern template istream& operator>>(istream&, unsigned char&); 24952: extern template istream& operator>>(istream&, signed char&); 24952: 24952: extern template istream& istream::_M_extract(unsigned short&); 24952: extern template istream& istream::_M_extract(unsigned int&); 24952: extern template istream& istream::_M_extract(long&); 24952: extern template istream& istream::_M_extract(unsigned long&); 24952: extern template istream& istream::_M_extract(bool&); 24952: 24952: extern template istream& istream::_M_extract(long long&); 24952: extern template istream& istream::_M_extract(unsigned long long&); 24952: 24952: extern template istream& istream::_M_extract(float&); 24952: extern template istream& istream::_M_extract(double&); 24952: extern template istream& istream::_M_extract(long double&); 24952: extern template istream& istream::_M_extract(void*&); 24952: 24952: extern template class basic_iostream; 24952: 24952: 24952: extern template class basic_istream; 24952: extern template wistream& ws(wistream&); 24952: extern template wistream& operator>>(wistream&, wchar_t&); 24952: extern template void __istream_extract(wistream&, wchar_t*, streamsize); 24952: 24952: extern template wistream& wistream::_M_extract(unsigned short&); 24952: extern template wistream& wistream::_M_extract(unsigned int&); 24952: extern template wistream& wistream::_M_extract(long&); 24952: extern template wistream& wistream::_M_extract(unsigned long&); 24952: extern template wistream& wistream::_M_extract(bool&); 24952: 24952: extern template wistream& wistream::_M_extract(long long&); 24952: extern template wistream& wistream::_M_extract(unsigned long long&); 24952: 24952: extern template wistream& wistream::_M_extract(float&); 24952: extern template wistream& wistream::_M_extract(double&); 24952: extern template wistream& wistream::_M_extract(long double&); 24952: extern template wistream& wistream::_M_extract(void*&); 24952: 24952: extern template class basic_iostream; 24952: 24952: 24952: 24952: 24952: } 24952: # 1107 "/usr/include/c++/13/istream" 2 3 24952: # 41 "/usr/include/c++/13/sstream" 2 3 24952: # 55 "/usr/include/c++/13/sstream" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: namespace __cxx11 { 24952: # 78 "/usr/include/c++/13/sstream" 3 24952: template 24952: class basic_stringbuf : public basic_streambuf<_CharT, _Traits> 24952: { 24952: struct __xfer_bufptrs; 24952: 24952: 24952: using allocator_traits = std::allocator_traits<_Alloc>; 24952: using _Noexcept_swap 24952: = __or_; 24952: 24952: 24952: public: 24952: 24952: typedef _CharT char_type; 24952: typedef _Traits traits_type; 24952: 24952: 24952: typedef _Alloc allocator_type; 24952: typedef typename traits_type::int_type int_type; 24952: typedef typename traits_type::pos_type pos_type; 24952: typedef typename traits_type::off_type off_type; 24952: 24952: typedef basic_streambuf __streambuf_type; 24952: typedef basic_string __string_type; 24952: typedef typename __string_type::size_type __size_type; 24952: 24952: protected: 24952: 24952: ios_base::openmode _M_mode; 24952: 24952: 24952: __string_type _M_string; 24952: 24952: public: 24952: # 121 "/usr/include/c++/13/sstream" 3 24952: basic_stringbuf() 24952: : __streambuf_type(), _M_mode(ios_base::in | ios_base::out), _M_string() 24952: { } 24952: # 132 "/usr/include/c++/13/sstream" 3 24952: explicit 24952: basic_stringbuf(ios_base::openmode __mode) 24952: : __streambuf_type(), _M_mode(__mode), _M_string() 24952: { } 24952: # 145 "/usr/include/c++/13/sstream" 3 24952: explicit 24952: basic_stringbuf(const __string_type& __str, 24952: ios_base::openmode __mode = ios_base::in | ios_base::out) 24952: : __streambuf_type(), _M_mode(), 24952: _M_string(__str.data(), __str.size(), __str.get_allocator()) 24952: { _M_stringbuf_init(__mode); } 24952: 24952: 24952: basic_stringbuf(const basic_stringbuf&) = delete; 24952: 24952: basic_stringbuf(basic_stringbuf&& __rhs) 24952: : basic_stringbuf(std::move(__rhs), __xfer_bufptrs(__rhs, this)) 24952: { __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); } 24952: # 209 "/usr/include/c++/13/sstream" 3 24952: basic_stringbuf& 24952: operator=(const basic_stringbuf&) = delete; 24952: 24952: basic_stringbuf& 24952: operator=(basic_stringbuf&& __rhs) 24952: { 24952: __xfer_bufptrs __st{__rhs, this}; 24952: const __streambuf_type& __base = __rhs; 24952: __streambuf_type::operator=(__base); 24952: this->pubimbue(__rhs.getloc()); 24952: _M_mode = __rhs._M_mode; 24952: _M_string = std::move(__rhs._M_string); 24952: __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); 24952: return *this; 24952: } 24952: 24952: void 24952: swap(basic_stringbuf& __rhs) noexcept(_Noexcept_swap::value) 24952: { 24952: __xfer_bufptrs __l_st{*this, std::__addressof(__rhs)}; 24952: __xfer_bufptrs __r_st{__rhs, this}; 24952: __streambuf_type& __base = __rhs; 24952: __streambuf_type::swap(__base); 24952: __rhs.pubimbue(this->pubimbue(__rhs.getloc())); 24952: std::swap(_M_mode, __rhs._M_mode); 24952: std::swap(_M_string, __rhs._M_string); 24952: } 24952: # 248 "/usr/include/c++/13/sstream" 3 24952: __string_type 24952: str() const 24952: { 24952: __string_type __ret(_M_string.get_allocator()); 24952: if (char_type* __hi = _M_high_mark()) 24952: __ret.assign(this->pbase(), __hi); 24952: else 24952: __ret = _M_string; 24952: return __ret; 24952: } 24952: # 304 "/usr/include/c++/13/sstream" 3 24952: void 24952: str(const __string_type& __s) 24952: { 24952: 24952: 24952: _M_string.assign(__s.data(), __s.size()); 24952: _M_stringbuf_init(_M_mode); 24952: } 24952: # 333 "/usr/include/c++/13/sstream" 3 24952: protected: 24952: 24952: void 24952: _M_stringbuf_init(ios_base::openmode __mode) 24952: { 24952: _M_mode = __mode; 24952: __size_type __len = 0; 24952: if (_M_mode & (ios_base::ate | ios_base::app)) 24952: __len = _M_string.size(); 24952: _M_sync(const_cast(_M_string.data()), 0, __len); 24952: } 24952: 24952: virtual streamsize 24952: showmanyc() 24952: { 24952: streamsize __ret = -1; 24952: if (_M_mode & ios_base::in) 24952: { 24952: _M_update_egptr(); 24952: __ret = this->egptr() - this->gptr(); 24952: } 24952: return __ret; 24952: } 24952: 24952: virtual int_type 24952: underflow(); 24952: 24952: virtual int_type 24952: pbackfail(int_type __c = traits_type::eof()); 24952: 24952: virtual int_type 24952: overflow(int_type __c = traits_type::eof()); 24952: # 377 "/usr/include/c++/13/sstream" 3 24952: virtual __streambuf_type* 24952: setbuf(char_type* __s, streamsize __n) 24952: { 24952: if (__s && __n >= 0) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: _M_string.clear(); 24952: 24952: 24952: _M_sync(__s, __n, 0); 24952: } 24952: return this; 24952: } 24952: 24952: virtual pos_type 24952: seekoff(off_type __off, ios_base::seekdir __way, 24952: ios_base::openmode __mode = ios_base::in | ios_base::out); 24952: 24952: virtual pos_type 24952: seekpos(pos_type __sp, 24952: ios_base::openmode __mode = ios_base::in | ios_base::out); 24952: 24952: 24952: 24952: 24952: void 24952: _M_sync(char_type* __base, __size_type __i, __size_type __o); 24952: 24952: 24952: 24952: void 24952: _M_update_egptr() 24952: { 24952: if (char_type* __pptr = this->pptr()) 24952: { 24952: char_type* __egptr = this->egptr(); 24952: if (!__egptr || __pptr > __egptr) 24952: { 24952: if (_M_mode & ios_base::in) 24952: this->setg(this->eback(), this->gptr(), __pptr); 24952: else 24952: this->setg(__pptr, __pptr, __pptr); 24952: } 24952: } 24952: } 24952: 24952: 24952: 24952: void 24952: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); 24952: 24952: private: 24952: 24952: 24952: 24952: 24952: __attribute__((__always_inline__)) 24952: char_type* 24952: _M_high_mark() const noexcept 24952: { 24952: if (char_type* __pptr = this->pptr()) 24952: { 24952: char_type* __egptr = this->egptr(); 24952: if (!__egptr || __pptr > __egptr) 24952: return __pptr; 24952: else 24952: return __egptr; 24952: } 24952: return 0; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: struct __xfer_bufptrs 24952: { 24952: __xfer_bufptrs(const basic_stringbuf& __from, basic_stringbuf* __to) 24952: : _M_to{__to}, _M_goff{-1, -1, -1}, _M_poff{-1, -1, -1} 24952: { 24952: const _CharT* const __str = __from._M_string.data(); 24952: const _CharT* __end = nullptr; 24952: if (__from.eback()) 24952: { 24952: _M_goff[0] = __from.eback() - __str; 24952: _M_goff[1] = __from.gptr() - __str; 24952: _M_goff[2] = __from.egptr() - __str; 24952: __end = __from.egptr(); 24952: } 24952: if (__from.pbase()) 24952: { 24952: _M_poff[0] = __from.pbase() - __str; 24952: _M_poff[1] = __from.pptr() - __from.pbase(); 24952: _M_poff[2] = __from.epptr() - __str; 24952: if (!__end || __from.pptr() > __end) 24952: __end = __from.pptr(); 24952: } 24952: 24952: 24952: if (__end) 24952: { 24952: 24952: 24952: auto& __mut_from = const_cast(__from); 24952: __mut_from._M_string._M_length(__end - __str); 24952: } 24952: } 24952: 24952: ~__xfer_bufptrs() 24952: { 24952: char_type* __str = const_cast(_M_to->_M_string.data()); 24952: if (_M_goff[0] != -1) 24952: _M_to->setg(__str+_M_goff[0], __str+_M_goff[1], __str+_M_goff[2]); 24952: if (_M_poff[0] != -1) 24952: _M_to->_M_pbump(__str+_M_poff[0], __str+_M_poff[2], _M_poff[1]); 24952: } 24952: 24952: basic_stringbuf* _M_to; 24952: off_type _M_goff[3]; 24952: off_type _M_poff[3]; 24952: }; 24952: # 513 "/usr/include/c++/13/sstream" 3 24952: basic_stringbuf(basic_stringbuf&& __rhs, __xfer_bufptrs&&) 24952: : __streambuf_type(static_cast(__rhs)), 24952: _M_mode(__rhs._M_mode), _M_string(std::move(__rhs._M_string)) 24952: { } 24952: # 528 "/usr/include/c++/13/sstream" 3 24952: }; 24952: # 546 "/usr/include/c++/13/sstream" 3 24952: template 24952: class basic_istringstream : public basic_istream<_CharT, _Traits> 24952: { 24952: public: 24952: 24952: typedef _CharT char_type; 24952: typedef _Traits traits_type; 24952: 24952: 24952: typedef _Alloc allocator_type; 24952: typedef typename traits_type::int_type int_type; 24952: typedef typename traits_type::pos_type pos_type; 24952: typedef typename traits_type::off_type off_type; 24952: 24952: 24952: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 24952: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 24952: typedef basic_istream __istream_type; 24952: 24952: private: 24952: __stringbuf_type _M_stringbuf; 24952: 24952: public: 24952: # 580 "/usr/include/c++/13/sstream" 3 24952: basic_istringstream() 24952: : __istream_type(), _M_stringbuf(ios_base::in) 24952: { this->init(&_M_stringbuf); } 24952: # 596 "/usr/include/c++/13/sstream" 3 24952: explicit 24952: basic_istringstream(ios_base::openmode __mode) 24952: : __istream_type(), _M_stringbuf(__mode | ios_base::in) 24952: { this->init(&_M_stringbuf); } 24952: # 614 "/usr/include/c++/13/sstream" 3 24952: explicit 24952: basic_istringstream(const __string_type& __str, 24952: ios_base::openmode __mode = ios_base::in) 24952: : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) 24952: { this->init(&_M_stringbuf); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ~basic_istringstream() 24952: { } 24952: 24952: 24952: basic_istringstream(const basic_istringstream&) = delete; 24952: 24952: basic_istringstream(basic_istringstream&& __rhs) 24952: : __istream_type(std::move(__rhs)), 24952: _M_stringbuf(std::move(__rhs._M_stringbuf)) 24952: { __istream_type::set_rdbuf(&_M_stringbuf); } 24952: # 671 "/usr/include/c++/13/sstream" 3 24952: basic_istringstream& 24952: operator=(const basic_istringstream&) = delete; 24952: 24952: basic_istringstream& 24952: operator=(basic_istringstream&& __rhs) 24952: { 24952: __istream_type::operator=(std::move(__rhs)); 24952: _M_stringbuf = std::move(__rhs._M_stringbuf); 24952: return *this; 24952: } 24952: 24952: void 24952: swap(basic_istringstream& __rhs) 24952: { 24952: __istream_type::swap(__rhs); 24952: _M_stringbuf.swap(__rhs._M_stringbuf); 24952: } 24952: # 697 "/usr/include/c++/13/sstream" 3 24952: __stringbuf_type* 24952: rdbuf() const 24952: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 24952: 24952: 24952: 24952: 24952: 24952: __string_type 24952: str() const 24952: { return _M_stringbuf.str(); } 24952: # 735 "/usr/include/c++/13/sstream" 3 24952: void 24952: str(const __string_type& __s) 24952: { _M_stringbuf.str(__s); } 24952: # 752 "/usr/include/c++/13/sstream" 3 24952: }; 24952: # 770 "/usr/include/c++/13/sstream" 3 24952: template 24952: class basic_ostringstream : public basic_ostream<_CharT, _Traits> 24952: { 24952: public: 24952: 24952: typedef _CharT char_type; 24952: typedef _Traits traits_type; 24952: 24952: 24952: typedef _Alloc allocator_type; 24952: typedef typename traits_type::int_type int_type; 24952: typedef typename traits_type::pos_type pos_type; 24952: typedef typename traits_type::off_type off_type; 24952: 24952: 24952: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 24952: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 24952: typedef basic_ostream __ostream_type; 24952: 24952: private: 24952: __stringbuf_type _M_stringbuf; 24952: 24952: public: 24952: # 804 "/usr/include/c++/13/sstream" 3 24952: basic_ostringstream() 24952: : __ostream_type(), _M_stringbuf(ios_base::out) 24952: { this->init(&_M_stringbuf); } 24952: # 820 "/usr/include/c++/13/sstream" 3 24952: explicit 24952: basic_ostringstream(ios_base::openmode __mode) 24952: : __ostream_type(), _M_stringbuf(__mode | ios_base::out) 24952: { this->init(&_M_stringbuf); } 24952: # 838 "/usr/include/c++/13/sstream" 3 24952: explicit 24952: basic_ostringstream(const __string_type& __str, 24952: ios_base::openmode __mode = ios_base::out) 24952: : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) 24952: { this->init(&_M_stringbuf); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ~basic_ostringstream() 24952: { } 24952: 24952: 24952: basic_ostringstream(const basic_ostringstream&) = delete; 24952: 24952: basic_ostringstream(basic_ostringstream&& __rhs) 24952: : __ostream_type(std::move(__rhs)), 24952: _M_stringbuf(std::move(__rhs._M_stringbuf)) 24952: { __ostream_type::set_rdbuf(&_M_stringbuf); } 24952: # 895 "/usr/include/c++/13/sstream" 3 24952: basic_ostringstream& 24952: operator=(const basic_ostringstream&) = delete; 24952: 24952: basic_ostringstream& 24952: operator=(basic_ostringstream&& __rhs) 24952: { 24952: __ostream_type::operator=(std::move(__rhs)); 24952: _M_stringbuf = std::move(__rhs._M_stringbuf); 24952: return *this; 24952: } 24952: 24952: void 24952: swap(basic_ostringstream& __rhs) 24952: { 24952: __ostream_type::swap(__rhs); 24952: _M_stringbuf.swap(__rhs._M_stringbuf); 24952: } 24952: # 921 "/usr/include/c++/13/sstream" 3 24952: __stringbuf_type* 24952: rdbuf() const 24952: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 24952: 24952: 24952: 24952: 24952: 24952: __string_type 24952: str() const 24952: { return _M_stringbuf.str(); } 24952: # 959 "/usr/include/c++/13/sstream" 3 24952: void 24952: str(const __string_type& __s) 24952: { _M_stringbuf.str(__s); } 24952: # 976 "/usr/include/c++/13/sstream" 3 24952: }; 24952: # 994 "/usr/include/c++/13/sstream" 3 24952: template 24952: class basic_stringstream : public basic_iostream<_CharT, _Traits> 24952: { 24952: public: 24952: 24952: typedef _CharT char_type; 24952: typedef _Traits traits_type; 24952: 24952: 24952: typedef _Alloc allocator_type; 24952: typedef typename traits_type::int_type int_type; 24952: typedef typename traits_type::pos_type pos_type; 24952: typedef typename traits_type::off_type off_type; 24952: 24952: 24952: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 24952: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 24952: typedef basic_iostream __iostream_type; 24952: 24952: private: 24952: __stringbuf_type _M_stringbuf; 24952: 24952: public: 24952: # 1028 "/usr/include/c++/13/sstream" 3 24952: basic_stringstream() 24952: : __iostream_type(), _M_stringbuf(ios_base::out | ios_base::in) 24952: { this->init(&_M_stringbuf); } 24952: # 1042 "/usr/include/c++/13/sstream" 3 24952: explicit 24952: basic_stringstream(ios_base::openmode __m) 24952: : __iostream_type(), _M_stringbuf(__m) 24952: { this->init(&_M_stringbuf); } 24952: # 1058 "/usr/include/c++/13/sstream" 3 24952: explicit 24952: basic_stringstream(const __string_type& __str, 24952: ios_base::openmode __m = ios_base::out | ios_base::in) 24952: : __iostream_type(), _M_stringbuf(__str, __m) 24952: { this->init(&_M_stringbuf); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ~basic_stringstream() 24952: { } 24952: 24952: 24952: basic_stringstream(const basic_stringstream&) = delete; 24952: 24952: basic_stringstream(basic_stringstream&& __rhs) 24952: : __iostream_type(std::move(__rhs)), 24952: _M_stringbuf(std::move(__rhs._M_stringbuf)) 24952: { __iostream_type::set_rdbuf(&_M_stringbuf); } 24952: # 1117 "/usr/include/c++/13/sstream" 3 24952: basic_stringstream& 24952: operator=(const basic_stringstream&) = delete; 24952: 24952: basic_stringstream& 24952: operator=(basic_stringstream&& __rhs) 24952: { 24952: __iostream_type::operator=(std::move(__rhs)); 24952: _M_stringbuf = std::move(__rhs._M_stringbuf); 24952: return *this; 24952: } 24952: 24952: void 24952: swap(basic_stringstream& __rhs) 24952: { 24952: __iostream_type::swap(__rhs); 24952: _M_stringbuf.swap(__rhs._M_stringbuf); 24952: } 24952: # 1143 "/usr/include/c++/13/sstream" 3 24952: __stringbuf_type* 24952: rdbuf() const 24952: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 24952: 24952: 24952: 24952: 24952: 24952: __string_type 24952: str() const 24952: { return _M_stringbuf.str(); } 24952: # 1181 "/usr/include/c++/13/sstream" 3 24952: void 24952: str(const __string_type& __s) 24952: { _M_stringbuf.str(__s); } 24952: # 1198 "/usr/include/c++/13/sstream" 3 24952: }; 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, 24952: basic_stringbuf<_CharT, _Traits, _Allocator>& __y) 24952: noexcept(noexcept(__x.swap(__y))) 24952: { __x.swap(__y); } 24952: 24952: 24952: template 24952: inline void 24952: swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, 24952: basic_istringstream<_CharT, _Traits, _Allocator>& __y) 24952: { __x.swap(__y); } 24952: 24952: 24952: template 24952: inline void 24952: swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, 24952: basic_ostringstream<_CharT, _Traits, _Allocator>& __y) 24952: { __x.swap(__y); } 24952: 24952: 24952: template 24952: inline void 24952: swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, 24952: basic_stringstream<_CharT, _Traits, _Allocator>& __y) 24952: { __x.swap(__y); } 24952: 24952: 24952: } 24952: 24952: } 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/sstream.tcc" 1 3 24952: # 37 "/usr/include/c++/13/bits/sstream.tcc" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/sstream.tcc" 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template 24952: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 24952: basic_stringbuf<_CharT, _Traits, _Alloc>:: 24952: pbackfail(int_type __c) 24952: { 24952: int_type __ret = traits_type::eof(); 24952: if (this->eback() < this->gptr()) 24952: { 24952: 24952: 24952: const bool __testeof = traits_type::eq_int_type(__c, __ret); 24952: if (!__testeof) 24952: { 24952: const bool __testeq = traits_type::eq(traits_type:: 24952: to_char_type(__c), 24952: this->gptr()[-1]); 24952: const bool __testout = this->_M_mode & ios_base::out; 24952: if (__testeq || __testout) 24952: { 24952: this->gbump(-1); 24952: if (!__testeq) 24952: *this->gptr() = traits_type::to_char_type(__c); 24952: __ret = __c; 24952: } 24952: } 24952: else 24952: { 24952: this->gbump(-1); 24952: __ret = traits_type::not_eof(__c); 24952: } 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 24952: basic_stringbuf<_CharT, _Traits, _Alloc>:: 24952: overflow(int_type __c) 24952: { 24952: const bool __testout = this->_M_mode & ios_base::out; 24952: if (__builtin_expect(!__testout, false)) 24952: return traits_type::eof(); 24952: 24952: const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); 24952: if (__builtin_expect(__testeof, false)) 24952: return traits_type::not_eof(__c); 24952: 24952: const __size_type __capacity = _M_string.capacity(); 24952: 24952: 24952: if (size_t(this->epptr() - this->pbase()) < __capacity) 24952: { 24952: 24952: char_type* __base = const_cast(_M_string.data()); 24952: _M_pbump(__base, __base + __capacity, this->pptr() - this->pbase()); 24952: if (_M_mode & ios_base::in) 24952: { 24952: const __size_type __nget = this->gptr() - this->eback(); 24952: const __size_type __eget = this->egptr() - this->eback(); 24952: this->setg(__base, __base + __nget, __base + __eget + 1); 24952: } 24952: *this->pptr() = traits_type::to_char_type(__c); 24952: this->pbump(1); 24952: return __c; 24952: } 24952: 24952: 24952: const __size_type __max_size = _M_string.max_size(); 24952: const bool __testput = this->pptr() < this->epptr(); 24952: if (__builtin_expect(!__testput && __capacity == __max_size, false)) 24952: return traits_type::eof(); 24952: 24952: 24952: 24952: const char_type __conv = traits_type::to_char_type(__c); 24952: if (!__testput) 24952: { 24952: # 129 "/usr/include/c++/13/bits/sstream.tcc" 3 24952: const __size_type __opt_len = std::max(__size_type(2 * __capacity), 24952: __size_type(512)); 24952: const __size_type __len = std::min(__opt_len, __max_size); 24952: __string_type __tmp(_M_string.get_allocator()); 24952: __tmp.reserve(__len); 24952: if (this->pbase()) 24952: __tmp.assign(this->pbase(), this->epptr() - this->pbase()); 24952: __tmp.push_back(__conv); 24952: _M_string.swap(__tmp); 24952: _M_sync(const_cast(_M_string.data()), 24952: this->gptr() - this->eback(), this->pptr() - this->pbase()); 24952: } 24952: else 24952: *this->pptr() = __conv; 24952: this->pbump(1); 24952: return __c; 24952: } 24952: 24952: template 24952: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 24952: basic_stringbuf<_CharT, _Traits, _Alloc>:: 24952: underflow() 24952: { 24952: int_type __ret = traits_type::eof(); 24952: const bool __testin = this->_M_mode & ios_base::in; 24952: if (__testin) 24952: { 24952: 24952: _M_update_egptr(); 24952: 24952: if (this->gptr() < this->egptr()) 24952: __ret = traits_type::to_int_type(*this->gptr()); 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 24952: basic_stringbuf<_CharT, _Traits, _Alloc>:: 24952: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) 24952: { 24952: pos_type __ret = pos_type(off_type(-1)); 24952: bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 24952: bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 24952: const bool __testboth = __testin && __testout && __way != ios_base::cur; 24952: __testin &= !(__mode & ios_base::out); 24952: __testout &= !(__mode & ios_base::in); 24952: 24952: 24952: 24952: const char_type* __beg = __testin ? this->eback() : this->pbase(); 24952: if ((__beg || !__off) && (__testin || __testout || __testboth)) 24952: { 24952: _M_update_egptr(); 24952: 24952: off_type __newoffi = __off; 24952: off_type __newoffo = __newoffi; 24952: if (__way == ios_base::cur) 24952: { 24952: __newoffi += this->gptr() - __beg; 24952: __newoffo += this->pptr() - __beg; 24952: } 24952: else if (__way == ios_base::end) 24952: __newoffo = __newoffi += this->egptr() - __beg; 24952: 24952: if ((__testin || __testboth) 24952: && __newoffi >= 0 24952: && this->egptr() - __beg >= __newoffi) 24952: { 24952: this->setg(this->eback(), this->eback() + __newoffi, 24952: this->egptr()); 24952: __ret = pos_type(__newoffi); 24952: } 24952: if ((__testout || __testboth) 24952: && __newoffo >= 0 24952: && this->egptr() - __beg >= __newoffo) 24952: { 24952: _M_pbump(this->pbase(), this->epptr(), __newoffo); 24952: __ret = pos_type(__newoffo); 24952: } 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 24952: basic_stringbuf<_CharT, _Traits, _Alloc>:: 24952: seekpos(pos_type __sp, ios_base::openmode __mode) 24952: { 24952: pos_type __ret = pos_type(off_type(-1)); 24952: const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 24952: const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 24952: 24952: const char_type* __beg = __testin ? this->eback() : this->pbase(); 24952: if ((__beg || !off_type(__sp)) && (__testin || __testout)) 24952: { 24952: _M_update_egptr(); 24952: 24952: const off_type __pos(__sp); 24952: const bool __testpos = (0 <= __pos 24952: && __pos <= this->egptr() - __beg); 24952: if (__testpos) 24952: { 24952: if (__testin) 24952: this->setg(this->eback(), this->eback() + __pos, 24952: this->egptr()); 24952: if (__testout) 24952: _M_pbump(this->pbase(), this->epptr(), __pos); 24952: __ret = __sp; 24952: } 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: void 24952: basic_stringbuf<_CharT, _Traits, _Alloc>:: 24952: _M_sync(char_type* __base, __size_type __i, __size_type __o) 24952: { 24952: const bool __testin = _M_mode & ios_base::in; 24952: const bool __testout = _M_mode & ios_base::out; 24952: char_type* __endg = __base + _M_string.size(); 24952: char_type* __endp = __base + _M_string.capacity(); 24952: 24952: if (__base != _M_string.data()) 24952: { 24952: 24952: __endg += __i; 24952: __i = 0; 24952: __endp = __endg; 24952: } 24952: 24952: if (__testin) 24952: this->setg(__base, __base + __i, __endg); 24952: if (__testout) 24952: { 24952: _M_pbump(__base, __endp, __o); 24952: 24952: 24952: 24952: if (!__testin) 24952: this->setg(__endg, __endg, __endg); 24952: } 24952: } 24952: 24952: template 24952: void 24952: basic_stringbuf<_CharT, _Traits, _Alloc>:: 24952: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) 24952: { 24952: this->setp(__pbeg, __pend); 24952: while (__off > __gnu_cxx::__numeric_traits::__max) 24952: { 24952: this->pbump(__gnu_cxx::__numeric_traits::__max); 24952: __off -= __gnu_cxx::__numeric_traits::__max; 24952: } 24952: this->pbump(__off); 24952: } 24952: 24952: 24952: 24952: 24952: extern template class basic_stringbuf; 24952: extern template class basic_istringstream; 24952: extern template class basic_ostringstream; 24952: extern template class basic_stringstream; 24952: 24952: 24952: extern template class basic_stringbuf; 24952: extern template class basic_istringstream; 24952: extern template class basic_ostringstream; 24952: extern template class basic_stringstream; 24952: 24952: 24952: 24952: 24952: } 24952: # 1239 "/usr/include/c++/13/sstream" 2 3 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 2 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 1 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/cstdarg" 1 3 24952: # 39 "/usr/include/c++/13/cstdarg" 3 24952: 24952: # 40 "/usr/include/c++/13/cstdarg" 3 24952: 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stdarg.h" 1 3 4 24952: # 44 "/usr/include/c++/13/cstdarg" 2 3 24952: # 53 "/usr/include/c++/13/cstdarg" 3 24952: namespace std 24952: { 24952: using ::va_list; 24952: } 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 2 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/functor_wrapper.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/functor_wrapper.h" 24952: namespace rocksdb { 24952: 24952: namespace detail { 24952: template 24952: struct IndexSequence {}; 24952: 24952: template 24952: struct IndexSequenceHelper 24952: : public IndexSequenceHelper {}; 24952: 24952: template 24952: struct IndexSequenceHelper<0U, Next...> { 24952: using type = IndexSequence; 24952: }; 24952: 24952: template 24952: using make_index_sequence = typename IndexSequenceHelper::type; 24952: 24952: template 24952: void call(Function f, Tuple t, IndexSequence) { 24952: f(std::get(t)...); 24952: } 24952: 24952: template 24952: void call(Function f, Tuple t) { 24952: static constexpr auto size = std::tuple_size::value; 24952: call(f, t, make_index_sequence{}); 24952: } 24952: } 24952: 24952: template 24952: class FunctorWrapper { 24952: public: 24952: explicit FunctorWrapper(std::function functor, Args &&...args) 24952: : functor_(std::move(functor)), args_(std::forward(args)...) {} 24952: 24952: void invoke() { detail::call(functor_, args_); } 24952: 24952: private: 24952: std::function functor_; 24952: std::tuple args_; 24952: }; 24952: } 24952: # 30 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 2 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/thread_status.h" 1 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/thread_status.h" 24952: 24952: # 29 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/thread_status.h" 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: template 24952: struct constexpr_max { 24952: static const int result = (A > B) ? A : B; 24952: }; 24952: 24952: 24952: 24952: 24952: struct ThreadStatus { 24952: 24952: enum ThreadType : int { 24952: HIGH_PRIORITY = 0, 24952: LOW_PRIORITY, 24952: USER, 24952: BOTTOM_PRIORITY, 24952: NUM_THREAD_TYPES 24952: }; 24952: 24952: 24952: 24952: 24952: enum OperationType : int { 24952: OP_UNKNOWN = 0, 24952: OP_COMPACTION, 24952: OP_FLUSH, 24952: OP_DBOPEN, 24952: OP_GET, 24952: OP_MULTIGET, 24952: OP_DBITERATOR, 24952: OP_VERIFY_DB_CHECKSUM, 24952: OP_VERIFY_FILE_CHECKSUMS, 24952: OP_GETENTITY, 24952: OP_MULTIGETENTITY, 24952: NUM_OP_TYPES 24952: }; 24952: 24952: enum OperationStage : int { 24952: STAGE_UNKNOWN = 0, 24952: STAGE_FLUSH_RUN, 24952: STAGE_FLUSH_WRITE_L0, 24952: STAGE_COMPACTION_PREPARE, 24952: STAGE_COMPACTION_RUN, 24952: STAGE_COMPACTION_PROCESS_KV, 24952: STAGE_COMPACTION_INSTALL, 24952: STAGE_COMPACTION_SYNC_FILE, 24952: STAGE_PICK_MEMTABLES_TO_FLUSH, 24952: STAGE_MEMTABLE_ROLLBACK, 24952: STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 24952: NUM_OP_STAGES 24952: }; 24952: 24952: enum CompactionPropertyType : int { 24952: COMPACTION_JOB_ID = 0, 24952: COMPACTION_INPUT_OUTPUT_LEVEL, 24952: COMPACTION_PROP_FLAGS, 24952: COMPACTION_TOTAL_INPUT_BYTES, 24952: COMPACTION_BYTES_READ, 24952: COMPACTION_BYTES_WRITTEN, 24952: NUM_COMPACTION_PROPERTIES 24952: }; 24952: 24952: enum FlushPropertyType : int { 24952: FLUSH_JOB_ID = 0, 24952: FLUSH_BYTES_MEMTABLES, 24952: FLUSH_BYTES_WRITTEN, 24952: NUM_FLUSH_PROPERTIES 24952: }; 24952: 24952: 24952: 24952: static const int kNumOperationProperties = 24952: constexpr_max::result; 24952: 24952: 24952: 24952: 24952: enum StateType : int { 24952: STATE_UNKNOWN = 0, 24952: STATE_MUTEX_WAIT = 1, 24952: NUM_STATE_TYPES 24952: }; 24952: 24952: ThreadStatus(const uint64_t _id, const ThreadType _thread_type, 24952: const std::string& _db_name, const std::string& _cf_name, 24952: const OperationType _operation_type, 24952: const uint64_t _op_elapsed_micros, 24952: const OperationStage _operation_stage, 24952: const uint64_t _op_props[], const StateType _state_type) 24952: : thread_id(_id), 24952: thread_type(_thread_type), 24952: db_name(_db_name), 24952: cf_name(_cf_name), 24952: operation_type(_operation_type), 24952: op_elapsed_micros(_op_elapsed_micros), 24952: operation_stage(_operation_stage), 24952: state_type(_state_type) { 24952: for (int i = 0; i < kNumOperationProperties; ++i) { 24952: op_properties[i] = _op_props[i]; 24952: } 24952: } 24952: 24952: 24952: const uint64_t thread_id; 24952: 24952: 24952: 24952: const ThreadType thread_type; 24952: 24952: 24952: 24952: 24952: const std::string db_name; 24952: 24952: 24952: 24952: 24952: const std::string cf_name; 24952: 24952: 24952: const OperationType operation_type; 24952: 24952: 24952: const uint64_t op_elapsed_micros; 24952: 24952: 24952: 24952: const OperationStage operation_stage; 24952: 24952: 24952: 24952: 24952: uint64_t op_properties[kNumOperationProperties]; 24952: 24952: 24952: const StateType state_type; 24952: 24952: 24952: 24952: 24952: static std::string GetThreadTypeName(ThreadType thread_type); 24952: 24952: 24952: static const std::string& GetOperationName(OperationType op_type); 24952: 24952: static const std::string MicrosToString(uint64_t op_elapsed_time); 24952: 24952: 24952: static const std::string& GetOperationStageName(OperationStage stage); 24952: 24952: 24952: 24952: static const std::string& GetOperationPropertyName(OperationType op_type, 24952: int i); 24952: 24952: 24952: 24952: static std::map InterpretOperationProperties( 24952: OperationType op_type, const uint64_t* op_properties); 24952: 24952: 24952: static const std::string& GetStateName(StateType state_type); 24952: }; 24952: 24952: } 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 2 24952: # 48 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: namespace rocksdb { 24952: 24952: class DynamicLibrary; 24952: class FileLock; 24952: class Logger; 24952: class RandomAccessFile; 24952: class SequentialFile; 24952: class Slice; 24952: struct DataVerificationInfo; 24952: class WritableFile; 24952: class RandomRWFile; 24952: class MemoryMappedFileBuffer; 24952: class Directory; 24952: struct DBOptions; 24952: struct ImmutableDBOptions; 24952: struct MutableDBOptions; 24952: class RateLimiter; 24952: class ThreadStatusUpdater; 24952: struct ThreadStatus; 24952: class FileSystem; 24952: class SystemClock; 24952: struct ConfigOptions; 24952: 24952: const size_t kDefaultPageSize = 4 * 1024; 24952: 24952: 24952: struct EnvOptions { 24952: 24952: EnvOptions(); 24952: 24952: 24952: explicit EnvOptions(const DBOptions& options); 24952: 24952: 24952: 24952: bool use_mmap_reads = false; 24952: 24952: 24952: bool use_mmap_writes = true; 24952: 24952: 24952: bool use_direct_reads = false; 24952: 24952: 24952: bool use_direct_writes = false; 24952: 24952: 24952: bool allow_fallocate = true; 24952: 24952: 24952: bool set_fd_cloexec = true; 24952: 24952: 24952: 24952: 24952: 24952: uint64_t bytes_per_sync = 0; 24952: # 121 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: bool strict_bytes_per_sync = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool fallocate_with_keep_size = true; 24952: 24952: 24952: size_t compaction_readahead_size = 0; 24952: 24952: 24952: size_t random_access_max_buffer_size = 0; 24952: 24952: 24952: size_t writable_file_max_buffer_size = 1024 * 1024; 24952: 24952: 24952: RateLimiter* rate_limiter = nullptr; 24952: }; 24952: 24952: 24952: 24952: 24952: class Env : public Customizable { 24952: public: 24952: static const char* kDefaultName() { return "DefaultEnv"; } 24952: struct FileAttributes { 24952: 24952: std::string name; 24952: 24952: 24952: uint64_t size_bytes; 24952: }; 24952: 24952: Env(); 24952: 24952: 24952: explicit Env(const std::shared_ptr& fs); 24952: Env(const std::shared_ptr& fs, 24952: const std::shared_ptr& clock); 24952: 24952: Env(const Env&) = delete; 24952: void operator=(const Env&) = delete; 24952: 24952: ~Env() override; 24952: 24952: static const char* Type() { return "Environment"; } 24952: 24952: 24952: 24952: const char* Name() const override { return ""; } 24952: # 189 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: static Status CreateFromString(const ConfigOptions& config_options, 24952: const std::string& value, Env** result); 24952: static Status CreateFromString(const ConfigOptions& config_options, 24952: const std::string& value, Env** result, 24952: std::shared_ptr* guard); 24952: 24952: 24952: 24952: 24952: 24952: static Status CreateFromUri(const ConfigOptions& options, 24952: const std::string& env_uri, 24952: const std::string& fs_uri, Env** result, 24952: std::shared_ptr* guard); 24952: 24952: 24952: 24952: 24952: 24952: 24952: static Env* Default(); 24952: 24952: 24952: virtual Status RegisterDbPaths(const std::vector& ) { 24952: return Status::OK(); 24952: } 24952: 24952: virtual Status UnregisterDbPaths(const std::vector& ) { 24952: return Status::OK(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status NewSequentialFile(const std::string& fname, 24952: std::unique_ptr* result, 24952: const EnvOptions& options) = 0; 24952: # 237 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status NewRandomAccessFile(const std::string& fname, 24952: std::unique_ptr* result, 24952: const EnvOptions& options) = 0; 24952: 24952: 24952: enum WriteLifeTimeHint { 24952: WLTH_NOT_SET = 0, 24952: WLTH_NONE, 24952: WLTH_SHORT, 24952: WLTH_MEDIUM, 24952: WLTH_LONG, 24952: WLTH_EXTREME, 24952: }; 24952: # 258 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status NewWritableFile(const std::string& fname, 24952: std::unique_ptr* result, 24952: const EnvOptions& options) = 0; 24952: # 270 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status ReopenWritableFile(const std::string& , 24952: std::unique_ptr* , 24952: const EnvOptions& ) { 24952: return Status::NotSupported("Env::ReopenWritableFile() not supported."); 24952: } 24952: 24952: 24952: virtual Status ReuseWritableFile(const std::string& fname, 24952: const std::string& old_fname, 24952: std::unique_ptr* result, 24952: const EnvOptions& options); 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status NewRandomRWFile(const std::string& , 24952: std::unique_ptr* , 24952: const EnvOptions& ) { 24952: return Status::NotSupported("RandomRWFile is not implemented in this Env"); 24952: } 24952: 24952: 24952: 24952: 24952: virtual Status NewMemoryMappedFileBuffer( 24952: const std::string& , 24952: std::unique_ptr* ) { 24952: return Status::NotSupported( 24952: "MemoryMappedFileBuffer is not implemented in this Env"); 24952: } 24952: # 310 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status NewDirectory(const std::string& name, 24952: std::unique_ptr* result) = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status FileExists(const std::string& fname) = 0; 24952: # 328 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status GetChildren(const std::string& dir, 24952: std::vector* result) = 0; 24952: # 342 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status GetChildrenFileAttributes(const std::string& dir, 24952: std::vector* result); 24952: 24952: 24952: virtual Status DeleteFile(const std::string& fname) = 0; 24952: 24952: 24952: virtual Status Truncate(const std::string& , size_t ) { 24952: return Status::NotSupported("Truncate is not supported for this Env"); 24952: } 24952: 24952: 24952: virtual Status CreateDir(const std::string& dirname) = 0; 24952: 24952: 24952: 24952: virtual Status CreateDirIfMissing(const std::string& dirname) = 0; 24952: 24952: 24952: 24952: 24952: virtual Status DeleteDir(const std::string& dirname) = 0; 24952: 24952: 24952: virtual Status GetFileSize(const std::string& fname, uint64_t* file_size) = 0; 24952: 24952: 24952: virtual Status GetFileModificationTime(const std::string& fname, 24952: uint64_t* file_mtime) = 0; 24952: 24952: virtual Status RenameFile(const std::string& src, 24952: const std::string& target) = 0; 24952: 24952: 24952: virtual Status LinkFile(const std::string& , 24952: const std::string& ) { 24952: return Status::NotSupported("LinkFile is not supported for this Env"); 24952: } 24952: 24952: virtual Status NumFileLinks(const std::string& , 24952: uint64_t* ) { 24952: return Status::NotSupported( 24952: "Getting number of file links is not supported for this Env"); 24952: } 24952: 24952: virtual Status AreFilesSame(const std::string& , 24952: const std::string& , bool* ) { 24952: return Status::NotSupported("AreFilesSame is not supported for this Env"); 24952: } 24952: # 406 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status LockFile(const std::string& fname, FileLock** lock) = 0; 24952: 24952: 24952: 24952: 24952: virtual Status UnlockFile(FileLock* lock) = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status LoadLibrary(const std::string& , 24952: const std::string& , 24952: std::shared_ptr* ) { 24952: return Status::NotSupported("LoadLibrary is not implemented in this Env"); 24952: } 24952: 24952: 24952: enum Priority { BOTTOM, LOW, HIGH, USER, TOTAL }; 24952: 24952: static std::string PriorityToString(Priority priority); 24952: 24952: 24952: enum IOPriority { 24952: IO_LOW = 0, 24952: IO_MID = 1, 24952: IO_HIGH = 2, 24952: IO_USER = 3, 24952: IO_TOTAL = 4 24952: }; 24952: 24952: 24952: enum class IOActivity : uint8_t { 24952: kFlush = 0, 24952: kCompaction = 1, 24952: kDBOpen = 2, 24952: kGet = 3, 24952: kMultiGet = 4, 24952: kDBIterator = 5, 24952: kVerifyDBChecksum = 6, 24952: kVerifyFileChecksums = 7, 24952: kGetEntity = 8, 24952: kMultiGetEntity = 9, 24952: kUnknown, 24952: }; 24952: # 464 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual void Schedule(void (*function)(void* arg), void* arg, 24952: Priority pri = LOW, void* tag = nullptr, 24952: void (*unschedFunction)(void* arg) = nullptr) = 0; 24952: 24952: 24952: 24952: virtual int UnSchedule(void* , Priority ) { return 0; } 24952: 24952: 24952: 24952: virtual void StartThread(void (*function)(void* arg), void* arg) = 0; 24952: 24952: 24952: 24952: template 24952: void StartThreadTyped(FunctionT function, Args&&... args) { 24952: using FWType = FunctorWrapper; 24952: StartThread( 24952: [](void* arg) { 24952: auto* functor = static_cast(arg); 24952: functor->invoke(); 24952: delete functor; 24952: }, 24952: new FWType(std::function(function), 24952: std::forward(args)...)); 24952: } 24952: 24952: 24952: virtual void WaitForJoin() {} 24952: 24952: 24952: virtual int ReserveThreads(int , Priority ) { 24952: return 0; 24952: } 24952: 24952: 24952: 24952: virtual int ReleaseThreads(int , Priority ) { 24952: return 0; 24952: } 24952: 24952: 24952: virtual unsigned int GetThreadPoolQueueLen(Priority = LOW) const { 24952: return 0; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual Status GetTestDirectory(std::string* path) = 0; 24952: 24952: 24952: 24952: 24952: virtual Status NewLogger(const std::string& fname, 24952: std::shared_ptr* result); 24952: 24952: 24952: 24952: 24952: virtual uint64_t NowMicros() = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 24952: 24952: 24952: virtual uint64_t NowCPUNanos() { return 0; } 24952: 24952: 24952: virtual void SleepForMicroseconds(int micros) = 0; 24952: 24952: 24952: 24952: virtual Status GetHostName(char* name, uint64_t len) = 0; 24952: 24952: 24952: 24952: 24952: virtual Status GetHostNameString(std::string* result); 24952: 24952: 24952: 24952: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 24952: 24952: 24952: virtual Status GetAbsolutePath(const std::string& db_path, 24952: std::string* output_path) = 0; 24952: 24952: 24952: 24952: 24952: virtual void SetBackgroundThreads(int number, Priority pri = LOW) = 0; 24952: virtual int GetBackgroundThreads(Priority pri = LOW) = 0; 24952: 24952: virtual Status SetAllowNonOwnerAccess(bool ) { 24952: return Status::NotSupported("Env::SetAllowNonOwnerAccess() not supported."); 24952: } 24952: 24952: 24952: 24952: 24952: virtual void IncBackgroundThreadsIfNeeded(int number, Priority pri) = 0; 24952: 24952: 24952: virtual void LowerThreadPoolIOPriority(Priority = LOW) {} 24952: 24952: 24952: virtual Status LowerThreadPoolCPUPriority(Priority , 24952: CpuPriority ) { 24952: return Status::NotSupported( 24952: "Env::LowerThreadPoolCPUPriority(Priority, CpuPriority) not supported"); 24952: } 24952: 24952: 24952: virtual void LowerThreadPoolCPUPriority(Priority = LOW) {} 24952: 24952: 24952: virtual std::string TimeToString(uint64_t time) = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual std::string GenerateUniqueId(); 24952: 24952: 24952: 24952: virtual EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const; 24952: 24952: 24952: 24952: 24952: virtual EnvOptions OptimizeForManifestRead( 24952: const EnvOptions& env_options) const; 24952: 24952: 24952: 24952: 24952: virtual EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 24952: const DBOptions& db_options) const; 24952: 24952: 24952: 24952: virtual EnvOptions OptimizeForManifestWrite( 24952: const EnvOptions& env_options) const; 24952: 24952: 24952: 24952: 24952: virtual EnvOptions OptimizeForCompactionTableWrite( 24952: const EnvOptions& env_options, 24952: const ImmutableDBOptions& immutable_ops) const; 24952: 24952: 24952: 24952: 24952: virtual EnvOptions OptimizeForCompactionTableRead( 24952: const EnvOptions& env_options, 24952: const ImmutableDBOptions& db_options) const; 24952: 24952: 24952: 24952: 24952: virtual EnvOptions OptimizeForBlobFileRead( 24952: const EnvOptions& env_options, 24952: const ImmutableDBOptions& db_options) const; 24952: 24952: 24952: virtual Status GetThreadList(std::vector* ) { 24952: return Status::NotSupported("Env::GetThreadList() not supported."); 24952: } 24952: 24952: 24952: 24952: 24952: virtual ThreadStatusUpdater* GetThreadStatusUpdater() const { 24952: return thread_status_updater_; 24952: } 24952: 24952: 24952: virtual uint64_t GetThreadID() const; 24952: 24952: 24952: 24952: 24952: 24952: virtual Status GetFreeSpace(const std::string& , 24952: uint64_t* ) { 24952: return Status::NotSupported("Env::GetFreeSpace() not supported."); 24952: } 24952: 24952: 24952: virtual Status IsDirectory(const std::string& , bool* ) { 24952: return Status::NotSupported("Env::IsDirectory() not supported."); 24952: } 24952: 24952: virtual void SanitizeEnvOptions(EnvOptions* ) const {} 24952: 24952: 24952: 24952: const std::shared_ptr& GetFileSystem() const; 24952: 24952: 24952: 24952: const std::shared_ptr& GetSystemClock() const; 24952: 24952: 24952: 24952: protected: 24952: 24952: 24952: ThreadStatusUpdater* thread_status_updater_; 24952: 24952: 24952: std::shared_ptr file_system_; 24952: 24952: 24952: std::shared_ptr system_clock_; 24952: 24952: private: 24952: static const size_t kMaxHostNameLen = 256; 24952: }; 24952: 24952: 24952: 24952: 24952: ThreadStatusUpdater* CreateThreadStatusUpdater(); 24952: 24952: 24952: class SequentialFile { 24952: public: 24952: SequentialFile() {} 24952: virtual ~SequentialFile(); 24952: # 715 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status Read(size_t n, Slice* result, char* scratch) = 0; 24952: # 724 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status Skip(uint64_t n) = 0; 24952: 24952: 24952: 24952: virtual bool use_direct_io() const { return false; } 24952: 24952: 24952: 24952: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 24952: 24952: 24952: 24952: 24952: virtual Status InvalidateCache(size_t , size_t ) { 24952: return Status::NotSupported( 24952: "SequentialFile::InvalidateCache not supported."); 24952: } 24952: 24952: 24952: 24952: virtual Status PositionedRead(uint64_t , size_t , 24952: Slice* , char* ) { 24952: return Status::NotSupported( 24952: "SequentialFile::PositionedRead() not supported."); 24952: } 24952: 24952: 24952: 24952: }; 24952: 24952: 24952: struct ReadRequest { 24952: 24952: uint64_t offset; 24952: 24952: 24952: 24952: size_t len; 24952: 24952: 24952: 24952: char* scratch; 24952: 24952: 24952: 24952: Slice result; 24952: 24952: 24952: Status status; 24952: }; 24952: 24952: 24952: class RandomAccessFile { 24952: public: 24952: RandomAccessFile() {} 24952: virtual ~RandomAccessFile(); 24952: # 795 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status Read(uint64_t offset, size_t n, Slice* result, 24952: char* scratch) const = 0; 24952: 24952: 24952: virtual Status Prefetch(uint64_t , size_t ) { 24952: return Status::OK(); 24952: } 24952: # 810 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status MultiRead(ReadRequest* reqs, size_t num_reqs) { 24952: 24952: # 811 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 24952: (static_cast ( 24952: # 811 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: reqs != nullptr 24952: # 811 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 811 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: "reqs != nullptr" 24952: # 811 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 24952: , "./include/rocksdb/env.h", 811, __extension__ __PRETTY_FUNCTION__)) 24952: # 811 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: ; 24952: for (size_t i = 0; i < num_reqs; ++i) { 24952: ReadRequest& req = reqs[i]; 24952: req.status = Read(req.offset, req.len, &req.result, req.scratch); 24952: } 24952: return Status::OK(); 24952: } 24952: # 834 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual size_t GetUniqueId(char* , size_t ) const { 24952: return 0; 24952: 24952: } 24952: 24952: enum AccessPattern { NORMAL, RANDOM, SEQUENTIAL, WILLNEED, DONTNEED }; 24952: 24952: virtual void Hint(AccessPattern ) {} 24952: 24952: 24952: 24952: virtual bool use_direct_io() const { return false; } 24952: 24952: 24952: 24952: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 24952: 24952: 24952: 24952: 24952: virtual Status InvalidateCache(size_t , size_t ) { 24952: return Status::NotSupported( 24952: "RandomAccessFile::InvalidateCache not supported."); 24952: } 24952: 24952: 24952: 24952: }; 24952: 24952: 24952: 24952: 24952: class WritableFile { 24952: public: 24952: WritableFile() 24952: : last_preallocated_block_(0), 24952: preallocation_block_size_(0), 24952: io_priority_(Env::IO_TOTAL), 24952: write_hint_(Env::WLTH_NOT_SET), 24952: strict_bytes_per_sync_(false) {} 24952: 24952: explicit WritableFile(const EnvOptions& options) 24952: : last_preallocated_block_(0), 24952: preallocation_block_size_(0), 24952: io_priority_(Env::IO_TOTAL), 24952: write_hint_(Env::WLTH_NOT_SET), 24952: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 24952: 24952: WritableFile(const WritableFile&) = delete; 24952: void operator=(const WritableFile&) = delete; 24952: 24952: 24952: 24952: 24952: virtual ~WritableFile(); 24952: 24952: 24952: 24952: 24952: virtual Status Append(const Slice& data) = 0; 24952: # 902 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status Append(const Slice& data, 24952: const DataVerificationInfo& ) { 24952: return Append(data); 24952: } 24952: # 927 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status PositionedAppend(const Slice& , 24952: uint64_t ) { 24952: return Status::NotSupported( 24952: "WritableFile::PositionedAppend() not supported."); 24952: } 24952: # 940 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status PositionedAppend( 24952: const Slice& , uint64_t , 24952: const DataVerificationInfo& ) { 24952: return Status::NotSupported("PositionedAppend"); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Truncate(uint64_t ) { return Status::OK(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Close() = 0; 24952: virtual Status Flush() = 0; 24952: virtual Status Sync() = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Fsync() { return Sync(); } 24952: 24952: 24952: 24952: virtual bool IsSyncThreadSafe() const { return false; } 24952: 24952: 24952: 24952: virtual bool use_direct_io() const { return false; } 24952: 24952: 24952: 24952: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 24952: # 992 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 24952: 24952: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 24952: 24952: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 24952: write_hint_ = hint; 24952: } 24952: 24952: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 24952: 24952: 24952: 24952: virtual uint64_t GetFileSize() { return 0; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void SetPreallocationBlockSize(size_t size) { 24952: preallocation_block_size_ = size; 24952: } 24952: 24952: virtual void GetPreallocationStatus(size_t* block_size, 24952: size_t* last_allocated_block) { 24952: *last_allocated_block = last_preallocated_block_; 24952: *block_size = preallocation_block_size_; 24952: } 24952: 24952: 24952: virtual size_t GetUniqueId(char* , size_t ) const { 24952: return 0; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual Status InvalidateCache(size_t , size_t ) { 24952: return Status::NotSupported("WritableFile::InvalidateCache not supported."); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status RangeSync(uint64_t , uint64_t ) { 24952: if (strict_bytes_per_sync_) { 24952: return Sync(); 24952: } 24952: return Status::OK(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void PrepareWrite(size_t offset, size_t len) { 24952: if (preallocation_block_size_ == 0) { 24952: return; 24952: } 24952: 24952: 24952: 24952: const auto block_size = preallocation_block_size_; 24952: size_t new_last_preallocated_block = 24952: (offset + len + block_size - 1) / block_size; 24952: if (new_last_preallocated_block > last_preallocated_block_) { 24952: size_t num_spanned_blocks = 24952: new_last_preallocated_block - last_preallocated_block_; 24952: 24952: Allocate(block_size * last_preallocated_block_, 24952: block_size * num_spanned_blocks) 24952: .PermitUncheckedError(); 24952: last_preallocated_block_ = new_last_preallocated_block; 24952: } 24952: } 24952: 24952: 24952: virtual Status Allocate(uint64_t , uint64_t ) { 24952: return Status::OK(); 24952: } 24952: 24952: 24952: 24952: 24952: protected: 24952: size_t preallocation_block_size() { return preallocation_block_size_; } 24952: 24952: private: 24952: size_t last_preallocated_block_; 24952: size_t preallocation_block_size_; 24952: 24952: protected: 24952: Env::IOPriority io_priority_; 24952: Env::WriteLifeTimeHint write_hint_; 24952: const bool strict_bytes_per_sync_; 24952: }; 24952: 24952: 24952: class RandomRWFile { 24952: public: 24952: RandomRWFile() {} 24952: 24952: RandomRWFile(const RandomRWFile&) = delete; 24952: RandomRWFile& operator=(const RandomRWFile&) = delete; 24952: 24952: 24952: 24952: 24952: virtual ~RandomRWFile() {} 24952: 24952: 24952: 24952: virtual bool use_direct_io() const { return false; } 24952: 24952: 24952: 24952: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 24952: 24952: 24952: 24952: virtual Status Write(uint64_t offset, const Slice& data) = 0; 24952: # 1128 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: virtual Status Read(uint64_t offset, size_t n, Slice* result, 24952: char* scratch) const = 0; 24952: 24952: virtual Status Flush() = 0; 24952: 24952: virtual Status Sync() = 0; 24952: 24952: virtual Status Fsync() { return Sync(); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Close() = 0; 24952: 24952: 24952: 24952: }; 24952: 24952: 24952: 24952: class MemoryMappedFileBuffer { 24952: public: 24952: MemoryMappedFileBuffer(void* _base, size_t _length) 24952: : base_(_base), length_(_length) {} 24952: 24952: virtual ~MemoryMappedFileBuffer() = 0; 24952: 24952: 24952: 24952: MemoryMappedFileBuffer(const MemoryMappedFileBuffer&) = delete; 24952: MemoryMappedFileBuffer& operator=(const MemoryMappedFileBuffer&) = delete; 24952: 24952: void* GetBase() const { return base_; } 24952: size_t GetLen() const { return length_; } 24952: 24952: protected: 24952: void* base_; 24952: const size_t length_; 24952: }; 24952: 24952: 24952: 24952: class Directory { 24952: public: 24952: 24952: 24952: virtual ~Directory() {} 24952: 24952: virtual Status Fsync() = 0; 24952: 24952: 24952: 24952: virtual Status Close() { return Status::NotSupported("Close"); } 24952: 24952: virtual size_t GetUniqueId(char* , size_t ) const { 24952: return 0; 24952: } 24952: 24952: 24952: 24952: }; 24952: 24952: enum InfoLogLevel : unsigned char { 24952: DEBUG_LEVEL = 0, 24952: INFO_LEVEL, 24952: WARN_LEVEL, 24952: ERROR_LEVEL, 24952: FATAL_LEVEL, 24952: HEADER_LEVEL, 24952: NUM_INFO_LOG_LEVELS, 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class Logger { 24952: public: 24952: size_t kDoNotSupportGetLogFileSize = (std::numeric_limits::max)(); 24952: 24952: explicit Logger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL) 24952: : closed_(false), log_level_(log_level) {} 24952: 24952: Logger(const Logger&) = delete; 24952: void operator=(const Logger&) = delete; 24952: 24952: virtual ~Logger(); 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Close(); 24952: 24952: 24952: 24952: 24952: virtual void LogHeader(const char* format, va_list ap) { 24952: 24952: 24952: Logv(InfoLogLevel::INFO_LEVEL, format, ap); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void Logv(const char* , va_list ) { 24952: 24952: # 1241 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 24952: (static_cast ( 24952: # 1241 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: false 24952: # 1241 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1241 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: "false" 24952: # 1241 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 24952: , "./include/rocksdb/env.h", 1241, __extension__ __PRETTY_FUNCTION__)) 24952: # 1241 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: ; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual void Logv(const InfoLogLevel log_level, const char* format, 24952: va_list ap); 24952: 24952: virtual size_t GetLogFileSize() const { return kDoNotSupportGetLogFileSize; } 24952: 24952: virtual void Flush() {} 24952: virtual InfoLogLevel GetInfoLogLevel() const { return log_level_; } 24952: virtual void SetInfoLogLevel(const InfoLogLevel log_level) { 24952: log_level_ = log_level; 24952: } 24952: 24952: 24952: 24952: protected: 24952: virtual Status CloseImpl(); 24952: bool closed_; 24952: 24952: private: 24952: InfoLogLevel log_level_; 24952: }; 24952: 24952: 24952: 24952: 24952: class FileLock { 24952: public: 24952: FileLock() {} 24952: virtual ~FileLock(); 24952: 24952: private: 24952: 24952: FileLock(const FileLock&) = delete; 24952: void operator=(const FileLock&) = delete; 24952: }; 24952: 24952: class DynamicLibrary { 24952: public: 24952: virtual ~DynamicLibrary() {} 24952: 24952: 24952: virtual const char* Name() const = 0; 24952: 24952: 24952: 24952: template 24952: Status LoadFunction(const std::string& sym_name, std::function* function) { 24952: 24952: # 1294 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 24952: (static_cast ( 24952: # 1294 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: nullptr != function 24952: # 1294 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1294 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: "nullptr != function" 24952: # 1294 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 3 4 24952: , "./include/rocksdb/env.h", 1294, __extension__ __PRETTY_FUNCTION__)) 24952: # 1294 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: ; 24952: void* ptr = nullptr; 24952: Status s = LoadSymbol(sym_name, &ptr); 24952: *function = reinterpret_cast(ptr); 24952: return s; 24952: } 24952: 24952: virtual Status LoadSymbol(const std::string& sym_name, void** func) = 0; 24952: }; 24952: 24952: extern void LogFlush(const std::shared_ptr& info_log); 24952: 24952: extern void Log(const InfoLogLevel log_level, 24952: const std::shared_ptr& info_log, const char* format, 24952: ...) __attribute__((__format__(__printf__, 3, 4))); 24952: 24952: 24952: extern void Header(const std::shared_ptr& info_log, const char* format, 24952: ...) __attribute__((__format__(__printf__, 2, 3))); 24952: extern void Debug(const std::shared_ptr& info_log, const char* format, 24952: ...) __attribute__((__format__(__printf__, 2, 3))); 24952: extern void Info(const std::shared_ptr& info_log, const char* format, 24952: ...) __attribute__((__format__(__printf__, 2, 3))); 24952: extern void Warn(const std::shared_ptr& info_log, const char* format, 24952: ...) __attribute__((__format__(__printf__, 2, 3))); 24952: extern void Error(const std::shared_ptr& info_log, const char* format, 24952: ...) __attribute__((__format__(__printf__, 2, 3))); 24952: extern void Fatal(const std::shared_ptr& info_log, const char* format, 24952: ...) __attribute__((__format__(__printf__, 2, 3))); 24952: 24952: 24952: 24952: extern void Log(const std::shared_ptr& info_log, const char* format, 24952: ...) __attribute__((__format__(__printf__, 2, 3))); 24952: 24952: extern void LogFlush(Logger* info_log); 24952: 24952: extern void Log(const InfoLogLevel log_level, Logger* info_log, 24952: const char* format, ...) __attribute__((__format__(__printf__, 3, 4))); 24952: 24952: 24952: extern void Log(Logger* info_log, const char* format, ...) 24952: __attribute__((__format__(__printf__, 2, 3))); 24952: 24952: 24952: extern void Header(Logger* info_log, const char* format, ...) 24952: __attribute__((__format__(__printf__, 2, 3))); 24952: extern void Debug(Logger* info_log, const char* format, ...) 24952: __attribute__((__format__(__printf__, 2, 3))); 24952: extern void Info(Logger* info_log, const char* format, ...) 24952: __attribute__((__format__(__printf__, 2, 3))); 24952: extern void Warn(Logger* info_log, const char* format, ...) 24952: __attribute__((__format__(__printf__, 2, 3))); 24952: extern void Error(Logger* info_log, const char* format, ...) 24952: __attribute__((__format__(__printf__, 2, 3))); 24952: extern void Fatal(Logger* info_log, const char* format, ...) 24952: __attribute__((__format__(__printf__, 2, 3))); 24952: 24952: 24952: extern Status WriteStringToFile(Env* env, const Slice& data, 24952: const std::string& fname, 24952: bool should_sync = false); 24952: 24952: 24952: extern Status ReadFileToString(Env* env, const std::string& fname, 24952: std::string* data); 24952: # 1389 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/env.h" 24952: class EnvWrapper : public Env { 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: struct Target { 24952: Env* env; 24952: std::shared_ptr guard; 24952: 24952: 24952: explicit Target(Env* t) : env(t) {} 24952: 24952: 24952: explicit Target(std::unique_ptr&& t) : guard(t.release()) { 24952: env = guard.get(); 24952: } 24952: 24952: 24952: explicit Target(const std::shared_ptr& t) : guard(t) { 24952: env = guard.get(); 24952: } 24952: 24952: 24952: void Prepare() { 24952: if (guard.get() != nullptr) { 24952: env = guard.get(); 24952: } else if (env == nullptr) { 24952: env = Env::Default(); 24952: } 24952: } 24952: }; 24952: 24952: 24952: explicit EnvWrapper(Env* t); 24952: explicit EnvWrapper(std::unique_ptr&& t); 24952: explicit EnvWrapper(const std::shared_ptr& t); 24952: ~EnvWrapper() override; 24952: 24952: 24952: Env* target() const { return target_.env; } 24952: 24952: 24952: 24952: const char* Name() const override { return target_.env->Name(); } 24952: 24952: 24952: Status RegisterDbPaths(const std::vector& paths) override { 24952: return target_.env->RegisterDbPaths(paths); 24952: } 24952: 24952: Status UnregisterDbPaths(const std::vector& paths) override { 24952: return target_.env->UnregisterDbPaths(paths); 24952: } 24952: 24952: Status NewSequentialFile(const std::string& f, 24952: std::unique_ptr* r, 24952: const EnvOptions& options) override { 24952: return target_.env->NewSequentialFile(f, r, options); 24952: } 24952: Status NewRandomAccessFile(const std::string& f, 24952: std::unique_ptr* r, 24952: const EnvOptions& options) override { 24952: return target_.env->NewRandomAccessFile(f, r, options); 24952: } 24952: Status NewWritableFile(const std::string& f, std::unique_ptr* r, 24952: const EnvOptions& options) override { 24952: return target_.env->NewWritableFile(f, r, options); 24952: } 24952: Status ReopenWritableFile(const std::string& fname, 24952: std::unique_ptr* result, 24952: const EnvOptions& options) override { 24952: return target_.env->ReopenWritableFile(fname, result, options); 24952: } 24952: Status ReuseWritableFile(const std::string& fname, 24952: const std::string& old_fname, 24952: std::unique_ptr* r, 24952: const EnvOptions& options) override { 24952: return target_.env->ReuseWritableFile(fname, old_fname, r, options); 24952: } 24952: Status NewRandomRWFile(const std::string& fname, 24952: std::unique_ptr* result, 24952: const EnvOptions& options) override { 24952: return target_.env->NewRandomRWFile(fname, result, options); 24952: } 24952: Status NewMemoryMappedFileBuffer( 24952: const std::string& fname, 24952: std::unique_ptr* result) override { 24952: return target_.env->NewMemoryMappedFileBuffer(fname, result); 24952: } 24952: Status NewDirectory(const std::string& name, 24952: std::unique_ptr* result) override { 24952: return target_.env->NewDirectory(name, result); 24952: } 24952: Status FileExists(const std::string& f) override { 24952: return target_.env->FileExists(f); 24952: } 24952: Status GetChildren(const std::string& dir, 24952: std::vector* r) override { 24952: return target_.env->GetChildren(dir, r); 24952: } 24952: Status GetChildrenFileAttributes( 24952: const std::string& dir, std::vector* result) override { 24952: return target_.env->GetChildrenFileAttributes(dir, result); 24952: } 24952: Status DeleteFile(const std::string& f) override { 24952: return target_.env->DeleteFile(f); 24952: } 24952: Status Truncate(const std::string& fname, size_t size) override { 24952: return target_.env->Truncate(fname, size); 24952: } 24952: Status CreateDir(const std::string& d) override { 24952: return target_.env->CreateDir(d); 24952: } 24952: Status CreateDirIfMissing(const std::string& d) override { 24952: return target_.env->CreateDirIfMissing(d); 24952: } 24952: Status DeleteDir(const std::string& d) override { 24952: return target_.env->DeleteDir(d); 24952: } 24952: Status GetFileSize(const std::string& f, uint64_t* s) override { 24952: return target_.env->GetFileSize(f, s); 24952: } 24952: 24952: Status GetFileModificationTime(const std::string& fname, 24952: uint64_t* file_mtime) override { 24952: return target_.env->GetFileModificationTime(fname, file_mtime); 24952: } 24952: 24952: Status RenameFile(const std::string& s, const std::string& t) override { 24952: return target_.env->RenameFile(s, t); 24952: } 24952: 24952: Status LinkFile(const std::string& s, const std::string& t) override { 24952: return target_.env->LinkFile(s, t); 24952: } 24952: 24952: Status NumFileLinks(const std::string& fname, uint64_t* count) override { 24952: return target_.env->NumFileLinks(fname, count); 24952: } 24952: 24952: Status AreFilesSame(const std::string& first, const std::string& second, 24952: bool* res) override { 24952: return target_.env->AreFilesSame(first, second, res); 24952: } 24952: 24952: Status LockFile(const std::string& f, FileLock** l) override { 24952: return target_.env->LockFile(f, l); 24952: } 24952: 24952: Status UnlockFile(FileLock* l) override { return target_.env->UnlockFile(l); } 24952: 24952: Status IsDirectory(const std::string& path, bool* is_dir) override { 24952: return target_.env->IsDirectory(path, is_dir); 24952: } 24952: 24952: Status LoadLibrary(const std::string& lib_name, 24952: const std::string& search_path, 24952: std::shared_ptr* result) override { 24952: return target_.env->LoadLibrary(lib_name, search_path, result); 24952: } 24952: 24952: void Schedule(void (*f)(void* arg), void* a, Priority pri, 24952: void* tag = nullptr, void (*u)(void* arg) = nullptr) override { 24952: return target_.env->Schedule(f, a, pri, tag, u); 24952: } 24952: 24952: int UnSchedule(void* tag, Priority pri) override { 24952: return target_.env->UnSchedule(tag, pri); 24952: } 24952: 24952: void StartThread(void (*f)(void*), void* a) override { 24952: return target_.env->StartThread(f, a); 24952: } 24952: void WaitForJoin() override { return target_.env->WaitForJoin(); } 24952: unsigned int GetThreadPoolQueueLen(Priority pri = LOW) const override { 24952: return target_.env->GetThreadPoolQueueLen(pri); 24952: } 24952: 24952: int ReserveThreads(int threads_to_be_reserved, Priority pri) override { 24952: return target_.env->ReserveThreads(threads_to_be_reserved, pri); 24952: } 24952: 24952: int ReleaseThreads(int threads_to_be_released, Priority pri) override { 24952: return target_.env->ReleaseThreads(threads_to_be_released, pri); 24952: } 24952: 24952: Status GetTestDirectory(std::string* path) override { 24952: return target_.env->GetTestDirectory(path); 24952: } 24952: Status NewLogger(const std::string& fname, 24952: std::shared_ptr* result) override { 24952: return target_.env->NewLogger(fname, result); 24952: } 24952: uint64_t NowMicros() override { return target_.env->NowMicros(); } 24952: uint64_t NowNanos() override { return target_.env->NowNanos(); } 24952: uint64_t NowCPUNanos() override { return target_.env->NowCPUNanos(); } 24952: 24952: void SleepForMicroseconds(int micros) override { 24952: target_.env->SleepForMicroseconds(micros); 24952: } 24952: Status GetHostName(char* name, uint64_t len) override { 24952: return target_.env->GetHostName(name, len); 24952: } 24952: Status GetCurrentTime(int64_t* unix_time) override { 24952: return target_.env->GetCurrentTime(unix_time); 24952: } 24952: Status GetAbsolutePath(const std::string& db_path, 24952: std::string* output_path) override { 24952: return target_.env->GetAbsolutePath(db_path, output_path); 24952: } 24952: void SetBackgroundThreads(int num, Priority pri) override { 24952: return target_.env->SetBackgroundThreads(num, pri); 24952: } 24952: int GetBackgroundThreads(Priority pri) override { 24952: return target_.env->GetBackgroundThreads(pri); 24952: } 24952: 24952: Status SetAllowNonOwnerAccess(bool allow_non_owner_access) override { 24952: return target_.env->SetAllowNonOwnerAccess(allow_non_owner_access); 24952: } 24952: 24952: void IncBackgroundThreadsIfNeeded(int num, Priority pri) override { 24952: return target_.env->IncBackgroundThreadsIfNeeded(num, pri); 24952: } 24952: 24952: void LowerThreadPoolIOPriority(Priority pool) override { 24952: target_.env->LowerThreadPoolIOPriority(pool); 24952: } 24952: 24952: void LowerThreadPoolCPUPriority(Priority pool) override { 24952: target_.env->LowerThreadPoolCPUPriority(pool); 24952: } 24952: 24952: Status LowerThreadPoolCPUPriority(Priority pool, CpuPriority pri) override { 24952: return target_.env->LowerThreadPoolCPUPriority(pool, pri); 24952: } 24952: 24952: std::string TimeToString(uint64_t time) override { 24952: return target_.env->TimeToString(time); 24952: } 24952: 24952: Status GetThreadList(std::vector* thread_list) override { 24952: return target_.env->GetThreadList(thread_list); 24952: } 24952: 24952: ThreadStatusUpdater* GetThreadStatusUpdater() const override { 24952: return target_.env->GetThreadStatusUpdater(); 24952: } 24952: 24952: uint64_t GetThreadID() const override { return target_.env->GetThreadID(); } 24952: 24952: std::string GenerateUniqueId() override { 24952: return target_.env->GenerateUniqueId(); 24952: } 24952: 24952: EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const override { 24952: return target_.env->OptimizeForLogRead(env_options); 24952: } 24952: EnvOptions OptimizeForManifestRead( 24952: const EnvOptions& env_options) const override { 24952: return target_.env->OptimizeForManifestRead(env_options); 24952: } 24952: EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 24952: const DBOptions& db_options) const override { 24952: return target_.env->OptimizeForLogWrite(env_options, db_options); 24952: } 24952: EnvOptions OptimizeForManifestWrite( 24952: const EnvOptions& env_options) const override { 24952: return target_.env->OptimizeForManifestWrite(env_options); 24952: } 24952: EnvOptions OptimizeForCompactionTableWrite( 24952: const EnvOptions& env_options, 24952: const ImmutableDBOptions& immutable_ops) const override { 24952: return target_.env->OptimizeForCompactionTableWrite(env_options, 24952: immutable_ops); 24952: } 24952: EnvOptions OptimizeForCompactionTableRead( 24952: const EnvOptions& env_options, 24952: const ImmutableDBOptions& db_options) const override { 24952: return target_.env->OptimizeForCompactionTableRead(env_options, db_options); 24952: } 24952: EnvOptions OptimizeForBlobFileRead( 24952: const EnvOptions& env_options, 24952: const ImmutableDBOptions& db_options) const override { 24952: return target_.env->OptimizeForBlobFileRead(env_options, db_options); 24952: } 24952: Status GetFreeSpace(const std::string& path, uint64_t* diskfree) override { 24952: return target_.env->GetFreeSpace(path, diskfree); 24952: } 24952: void SanitizeEnvOptions(EnvOptions* env_opts) const override { 24952: target_.env->SanitizeEnvOptions(env_opts); 24952: } 24952: Status PrepareOptions(const ConfigOptions& options) override; 24952: std::string SerializeOptions(const ConfigOptions& config_options, 24952: const std::string& header) const override; 24952: 24952: private: 24952: Target target_; 24952: }; 24952: 24952: class SequentialFileWrapper : public SequentialFile { 24952: public: 24952: explicit SequentialFileWrapper(SequentialFile* target) : target_(target) {} 24952: 24952: Status Read(size_t n, Slice* result, char* scratch) override { 24952: return target_->Read(n, result, scratch); 24952: } 24952: Status Skip(uint64_t n) override { return target_->Skip(n); } 24952: bool use_direct_io() const override { return target_->use_direct_io(); } 24952: size_t GetRequiredBufferAlignment() const override { 24952: return target_->GetRequiredBufferAlignment(); 24952: } 24952: Status InvalidateCache(size_t offset, size_t length) override { 24952: return target_->InvalidateCache(offset, length); 24952: } 24952: Status PositionedRead(uint64_t offset, size_t n, Slice* result, 24952: char* scratch) override { 24952: return target_->PositionedRead(offset, n, result, scratch); 24952: } 24952: 24952: private: 24952: SequentialFile* target_; 24952: }; 24952: 24952: class RandomAccessFileWrapper : public RandomAccessFile { 24952: public: 24952: explicit RandomAccessFileWrapper(RandomAccessFile* target) 24952: : target_(target) {} 24952: 24952: Status Read(uint64_t offset, size_t n, Slice* result, 24952: char* scratch) const override { 24952: return target_->Read(offset, n, result, scratch); 24952: } 24952: Status MultiRead(ReadRequest* reqs, size_t num_reqs) override { 24952: return target_->MultiRead(reqs, num_reqs); 24952: } 24952: Status Prefetch(uint64_t offset, size_t n) override { 24952: return target_->Prefetch(offset, n); 24952: } 24952: size_t GetUniqueId(char* id, size_t max_size) const override { 24952: return target_->GetUniqueId(id, max_size); 24952: } 24952: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 24952: bool use_direct_io() const override { return target_->use_direct_io(); } 24952: size_t GetRequiredBufferAlignment() const override { 24952: return target_->GetRequiredBufferAlignment(); 24952: } 24952: Status InvalidateCache(size_t offset, size_t length) override { 24952: return target_->InvalidateCache(offset, length); 24952: } 24952: 24952: private: 24952: RandomAccessFile* target_; 24952: }; 24952: 24952: class WritableFileWrapper : public WritableFile { 24952: public: 24952: explicit WritableFileWrapper(WritableFile* t) : target_(t) {} 24952: 24952: Status Append(const Slice& data) override { return target_->Append(data); } 24952: Status Append(const Slice& data, 24952: const DataVerificationInfo& verification_info) override { 24952: return target_->Append(data, verification_info); 24952: } 24952: Status PositionedAppend(const Slice& data, uint64_t offset) override { 24952: return target_->PositionedAppend(data, offset); 24952: } 24952: Status PositionedAppend( 24952: const Slice& data, uint64_t offset, 24952: const DataVerificationInfo& verification_info) override { 24952: return target_->PositionedAppend(data, offset, verification_info); 24952: } 24952: Status Truncate(uint64_t size) override { return target_->Truncate(size); } 24952: Status Close() override { return target_->Close(); } 24952: Status Flush() override { return target_->Flush(); } 24952: Status Sync() override { return target_->Sync(); } 24952: Status Fsync() override { return target_->Fsync(); } 24952: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 24952: 24952: bool use_direct_io() const override { return target_->use_direct_io(); } 24952: 24952: size_t GetRequiredBufferAlignment() const override { 24952: return target_->GetRequiredBufferAlignment(); 24952: } 24952: 24952: void SetIOPriority(Env::IOPriority pri) override { 24952: target_->SetIOPriority(pri); 24952: } 24952: 24952: Env::IOPriority GetIOPriority() override { return target_->GetIOPriority(); } 24952: 24952: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 24952: target_->SetWriteLifeTimeHint(hint); 24952: } 24952: 24952: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 24952: return target_->GetWriteLifeTimeHint(); 24952: } 24952: 24952: uint64_t GetFileSize() override { return target_->GetFileSize(); } 24952: 24952: void SetPreallocationBlockSize(size_t size) override { 24952: target_->SetPreallocationBlockSize(size); 24952: } 24952: 24952: void GetPreallocationStatus(size_t* block_size, 24952: size_t* last_allocated_block) override { 24952: target_->GetPreallocationStatus(block_size, last_allocated_block); 24952: } 24952: 24952: size_t GetUniqueId(char* id, size_t max_size) const override { 24952: return target_->GetUniqueId(id, max_size); 24952: } 24952: 24952: Status InvalidateCache(size_t offset, size_t length) override { 24952: return target_->InvalidateCache(offset, length); 24952: } 24952: 24952: Status RangeSync(uint64_t offset, uint64_t nbytes) override { 24952: return target_->RangeSync(offset, nbytes); 24952: } 24952: 24952: void PrepareWrite(size_t offset, size_t len) override { 24952: target_->PrepareWrite(offset, len); 24952: } 24952: 24952: Status Allocate(uint64_t offset, uint64_t len) override { 24952: return target_->Allocate(offset, len); 24952: } 24952: 24952: private: 24952: WritableFile* target_; 24952: }; 24952: 24952: class RandomRWFileWrapper : public RandomRWFile { 24952: public: 24952: explicit RandomRWFileWrapper(RandomRWFile* target) : target_(target) {} 24952: 24952: bool use_direct_io() const override { return target_->use_direct_io(); } 24952: size_t GetRequiredBufferAlignment() const override { 24952: return target_->GetRequiredBufferAlignment(); 24952: } 24952: Status Write(uint64_t offset, const Slice& data) override { 24952: return target_->Write(offset, data); 24952: } 24952: Status Read(uint64_t offset, size_t n, Slice* result, 24952: char* scratch) const override { 24952: return target_->Read(offset, n, result, scratch); 24952: } 24952: Status Flush() override { return target_->Flush(); } 24952: Status Sync() override { return target_->Sync(); } 24952: Status Fsync() override { return target_->Fsync(); } 24952: Status Close() override { return target_->Close(); } 24952: 24952: private: 24952: RandomRWFile* target_; 24952: }; 24952: 24952: class DirectoryWrapper : public Directory { 24952: public: 24952: explicit DirectoryWrapper(Directory* target) : target_(target) {} 24952: 24952: Status Fsync() override { return target_->Fsync(); } 24952: Status Close() override { return target_->Close(); } 24952: size_t GetUniqueId(char* id, size_t max_size) const override { 24952: return target_->GetUniqueId(id, max_size); 24952: } 24952: 24952: private: 24952: Directory* target_; 24952: }; 24952: 24952: class LoggerWrapper : public Logger { 24952: public: 24952: explicit LoggerWrapper(Logger* target) : target_(target) {} 24952: 24952: Status Close() override { return target_->Close(); } 24952: void LogHeader(const char* format, va_list ap) override { 24952: return target_->LogHeader(format, ap); 24952: } 24952: void Logv(const char* format, va_list ap) override { 24952: return target_->Logv(format, ap); 24952: } 24952: void Logv(const InfoLogLevel log_level, const char* format, 24952: va_list ap) override { 24952: return target_->Logv(log_level, format, ap); 24952: } 24952: size_t GetLogFileSize() const override { return target_->GetLogFileSize(); } 24952: void Flush() override { return target_->Flush(); } 24952: InfoLogLevel GetInfoLogLevel() const override { 24952: return target_->GetInfoLogLevel(); 24952: } 24952: void SetInfoLogLevel(const InfoLogLevel log_level) override { 24952: return target_->SetInfoLogLevel(log_level); 24952: } 24952: 24952: private: 24952: Logger* target_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: Env* NewMemEnv(Env* base_env); 24952: 24952: 24952: 24952: 24952: Env* NewTimedEnv(Env* base_env); 24952: 24952: 24952: 24952: 24952: Status NewEnvLogger(const std::string& fname, Env* env, 24952: std::shared_ptr* result); 24952: 24952: 24952: 24952: std::unique_ptr NewCompositeEnv(const std::shared_ptr& fs); 24952: 24952: } 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 1 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/cstdarg" 1 3 24952: # 39 "/usr/include/c++/13/cstdarg" 3 24952: 24952: # 40 "/usr/include/c++/13/cstdarg" 3 24952: # 23 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 2 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 1 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/cstring" 1 3 24952: # 39 "/usr/include/c++/13/cstring" 3 24952: 24952: # 40 "/usr/include/c++/13/cstring" 3 24952: # 23 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 2 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class IOStatus : public Status { 24952: public: 24952: using Code = Status::Code; 24952: using SubCode = Status::SubCode; 24952: 24952: enum IOErrorScope : unsigned char { 24952: kIOErrorScopeFileSystem, 24952: kIOErrorScopeFile, 24952: kIOErrorScopeRange, 24952: kIOErrorScopeMax, 24952: }; 24952: 24952: 24952: IOStatus() : IOStatus(kOk, kNone) {} 24952: ~IOStatus() {} 24952: 24952: 24952: IOStatus(const IOStatus& s); 24952: IOStatus& operator=(const IOStatus& s); 24952: IOStatus(IOStatus&& s) noexcept; 24952: IOStatus& operator=(IOStatus&& s) noexcept; 24952: bool operator==(const IOStatus& rhs) const; 24952: bool operator!=(const IOStatus& rhs) const; 24952: 24952: void SetRetryable(bool retryable) { retryable_ = retryable; } 24952: void SetDataLoss(bool data_loss) { data_loss_ = data_loss; } 24952: void SetScope(IOErrorScope scope) { 24952: scope_ = static_cast(scope); 24952: } 24952: 24952: bool GetRetryable() const { return retryable_; } 24952: bool GetDataLoss() const { return data_loss_; } 24952: IOErrorScope GetScope() const { return static_cast(scope_); } 24952: 24952: 24952: static IOStatus OK() { return IOStatus(); } 24952: 24952: static IOStatus NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return IOStatus(kNotSupported, msg, msg2); 24952: } 24952: static IOStatus NotSupported(SubCode msg = kNone) { 24952: return IOStatus(kNotSupported, msg); 24952: } 24952: 24952: 24952: static IOStatus NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return IOStatus(kNotFound, msg, msg2); 24952: } 24952: 24952: static IOStatus NotFound(SubCode msg = kNone) { 24952: return IOStatus(kNotFound, msg); 24952: } 24952: 24952: static IOStatus Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return IOStatus(kCorruption, msg, msg2); 24952: } 24952: static IOStatus Corruption(SubCode msg = kNone) { 24952: return IOStatus(kCorruption, msg); 24952: } 24952: 24952: static IOStatus InvalidArgument(const Slice& msg, 24952: const Slice& msg2 = Slice()) { 24952: return IOStatus(kInvalidArgument, msg, msg2); 24952: } 24952: static IOStatus InvalidArgument(SubCode msg = kNone) { 24952: return IOStatus(kInvalidArgument, msg); 24952: } 24952: 24952: static IOStatus IOError(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return IOStatus(kIOError, msg, msg2); 24952: } 24952: static IOStatus IOError(SubCode msg = kNone) { 24952: return IOStatus(kIOError, msg); 24952: } 24952: 24952: static IOStatus Busy(SubCode msg = kNone) { return IOStatus(kBusy, msg); } 24952: static IOStatus Busy(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return IOStatus(kBusy, msg, msg2); 24952: } 24952: 24952: static IOStatus TimedOut(SubCode msg = kNone) { 24952: return IOStatus(kTimedOut, msg); 24952: } 24952: static IOStatus TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return IOStatus(kTimedOut, msg, msg2); 24952: } 24952: 24952: static IOStatus NoSpace() { return IOStatus(kIOError, kNoSpace); } 24952: static IOStatus NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return IOStatus(kIOError, kNoSpace, msg, msg2); 24952: } 24952: 24952: static IOStatus PathNotFound() { return IOStatus(kIOError, kPathNotFound); } 24952: static IOStatus PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return IOStatus(kIOError, kPathNotFound, msg, msg2); 24952: } 24952: 24952: static IOStatus IOFenced() { return IOStatus(kIOError, kIOFenced); } 24952: static IOStatus IOFenced(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return IOStatus(kIOError, kIOFenced, msg, msg2); 24952: } 24952: 24952: static IOStatus Aborted(SubCode msg = kNone) { 24952: return IOStatus(kAborted, msg); 24952: } 24952: static IOStatus Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 24952: return IOStatus(kAborted, msg, msg2); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: private: 24952: friend IOStatus status_to_io_status(Status&&); 24952: 24952: explicit IOStatus(Code _code, SubCode _subcode = kNone) 24952: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) {} 24952: 24952: IOStatus(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2); 24952: IOStatus(Code _code, const Slice& msg, const Slice& msg2) 24952: : IOStatus(_code, kNone, msg, msg2) {} 24952: }; 24952: 24952: inline IOStatus::IOStatus(Code _code, SubCode _subcode, const Slice& msg, 24952: const Slice& msg2) 24952: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) { 24952: 24952: # 155 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 3 4 24952: (static_cast ( 24952: # 155 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 24952: code_ != kOk 24952: # 155 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 155 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 24952: "code_ != kOk" 24952: # 155 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 3 4 24952: , "./include/rocksdb/io_status.h", 155, __extension__ __PRETTY_FUNCTION__)) 24952: # 155 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 24952: ; 24952: 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 3 4 24952: (static_cast ( 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 24952: subcode_ != kMaxSubCode 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 24952: "subcode_ != kMaxSubCode" 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 3 4 24952: , "./include/rocksdb/io_status.h", 156, __extension__ __PRETTY_FUNCTION__)) 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/io_status.h" 24952: ; 24952: const size_t len1 = msg.size(); 24952: const size_t len2 = msg2.size(); 24952: const size_t size = len1 + (len2 ? (2 + len2) : 0); 24952: char* const result = new char[size + 1]; 24952: memcpy(result, msg.data(), len1); 24952: if (len2) { 24952: result[len1] = ':'; 24952: result[len1 + 1] = ' '; 24952: memcpy(result + len1 + 2, msg2.data(), len2); 24952: } 24952: result[size] = '\0'; 24952: state_.reset(result); 24952: } 24952: 24952: inline IOStatus::IOStatus(const IOStatus& s) : Status(s.code_, s.subcode_) { 24952: 24952: 24952: 24952: retryable_ = s.retryable_; 24952: data_loss_ = s.data_loss_; 24952: scope_ = s.scope_; 24952: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 24952: } 24952: inline IOStatus& IOStatus::operator=(const IOStatus& s) { 24952: 24952: 24952: if (this != &s) { 24952: 24952: 24952: 24952: 24952: code_ = s.code_; 24952: subcode_ = s.subcode_; 24952: retryable_ = s.retryable_; 24952: data_loss_ = s.data_loss_; 24952: scope_ = s.scope_; 24952: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 24952: } 24952: return *this; 24952: } 24952: 24952: inline IOStatus::IOStatus(IOStatus&& s) noexcept : IOStatus() { 24952: *this = std::move(s); 24952: } 24952: 24952: inline IOStatus& IOStatus::operator=(IOStatus&& s) noexcept { 24952: if (this != &s) { 24952: 24952: 24952: 24952: 24952: code_ = std::move(s.code_); 24952: s.code_ = kOk; 24952: subcode_ = std::move(s.subcode_); 24952: s.subcode_ = kNone; 24952: retryable_ = s.retryable_; 24952: data_loss_ = s.data_loss_; 24952: scope_ = s.scope_; 24952: s.scope_ = kIOErrorScopeFileSystem; 24952: state_ = std::move(s.state_); 24952: } 24952: return *this; 24952: } 24952: 24952: inline bool IOStatus::operator==(const IOStatus& rhs) const { 24952: 24952: 24952: 24952: 24952: return (code_ == rhs.code_); 24952: } 24952: 24952: inline bool IOStatus::operator!=(const IOStatus& rhs) const { 24952: 24952: 24952: 24952: 24952: return !(*this == rhs); 24952: } 24952: 24952: inline IOStatus status_to_io_status(Status&& status) { 24952: IOStatus io_s; 24952: Status& s = io_s; 24952: s = std::move(status); 24952: return io_s; 24952: } 24952: 24952: } 24952: # 34 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/optional" 1 3 24952: # 33 "/usr/include/c++/13/optional" 3 24952: 24952: # 34 "/usr/include/c++/13/optional" 3 24952: # 54 "/usr/include/c++/13/optional" 3 24952: 24952: # 54 "/usr/include/c++/13/optional" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 71 "/usr/include/c++/13/optional" 3 24952: template 24952: class optional; 24952: 24952: 24952: struct nullopt_t 24952: { 24952: 24952: 24952: 24952: 24952: 24952: enum class _Construct { _Token }; 24952: 24952: 24952: explicit constexpr nullopt_t(_Construct) noexcept { } 24952: }; 24952: 24952: 24952: inline constexpr nullopt_t nullopt { nullopt_t::_Construct::_Token }; 24952: 24952: template struct _Optional_func { _Fn& _M_f; }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class bad_optional_access : public exception 24952: { 24952: public: 24952: bad_optional_access() = default; 24952: virtual ~bad_optional_access() = default; 24952: 24952: const char* what() const noexcept override 24952: { return "bad optional access"; } 24952: }; 24952: 24952: 24952: [[__noreturn__]] inline void 24952: __throw_bad_optional_access() 24952: { (throw (bad_optional_access())); } 24952: 24952: 24952: 24952: template 24952: struct _Optional_payload_base 24952: { 24952: using _Stored_type = remove_const_t<_Tp>; 24952: 24952: _Optional_payload_base() = default; 24952: ~_Optional_payload_base() = default; 24952: 24952: template 24952: constexpr 24952: _Optional_payload_base(in_place_t __tag, _Args&&... __args) 24952: : _M_payload(__tag, std::forward<_Args>(__args)...), 24952: _M_engaged(true) 24952: { } 24952: 24952: template 24952: constexpr 24952: _Optional_payload_base(std::initializer_list<_Up> __il, 24952: _Args&&... __args) 24952: : _M_payload(__il, std::forward<_Args>(__args)...), 24952: _M_engaged(true) 24952: { } 24952: 24952: 24952: 24952: constexpr 24952: _Optional_payload_base(bool , 24952: const _Optional_payload_base& __other) 24952: { 24952: if (__other._M_engaged) 24952: this->_M_construct(__other._M_get()); 24952: } 24952: 24952: 24952: 24952: constexpr 24952: _Optional_payload_base(bool , 24952: _Optional_payload_base&& __other) 24952: { 24952: if (__other._M_engaged) 24952: this->_M_construct(std::move(__other._M_get())); 24952: } 24952: 24952: 24952: 24952: _Optional_payload_base(const _Optional_payload_base&) = default; 24952: 24952: 24952: 24952: _Optional_payload_base(_Optional_payload_base&&) = default; 24952: 24952: _Optional_payload_base& 24952: operator=(const _Optional_payload_base&) = default; 24952: 24952: _Optional_payload_base& 24952: operator=(_Optional_payload_base&&) = default; 24952: 24952: 24952: constexpr void 24952: _M_copy_assign(const _Optional_payload_base& __other) 24952: { 24952: if (this->_M_engaged && __other._M_engaged) 24952: this->_M_get() = __other._M_get(); 24952: else 24952: { 24952: if (__other._M_engaged) 24952: this->_M_construct(__other._M_get()); 24952: else 24952: this->_M_reset(); 24952: } 24952: } 24952: 24952: 24952: constexpr void 24952: _M_move_assign(_Optional_payload_base&& __other) 24952: noexcept(__and_v, 24952: is_nothrow_move_assignable<_Tp>>) 24952: { 24952: if (this->_M_engaged && __other._M_engaged) 24952: this->_M_get() = std::move(__other._M_get()); 24952: else 24952: { 24952: if (__other._M_engaged) 24952: this->_M_construct(std::move(__other._M_get())); 24952: else 24952: this->_M_reset(); 24952: } 24952: } 24952: 24952: struct _Empty_byte { }; 24952: 24952: template> 24952: union _Storage 24952: { 24952: constexpr _Storage() noexcept : _M_empty() { } 24952: 24952: template 24952: constexpr 24952: _Storage(in_place_t, _Args&&... __args) 24952: : _M_value(std::forward<_Args>(__args)...) 24952: { } 24952: 24952: template 24952: constexpr 24952: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 24952: : _M_value(__il, std::forward<_Args>(__args)...) 24952: { } 24952: # 232 "/usr/include/c++/13/optional" 3 24952: _Empty_byte _M_empty; 24952: _Up _M_value; 24952: }; 24952: 24952: template 24952: union _Storage<_Up, false> 24952: { 24952: constexpr _Storage() noexcept : _M_empty() { } 24952: 24952: template 24952: constexpr 24952: _Storage(in_place_t, _Args&&... __args) 24952: : _M_value(std::forward<_Args>(__args)...) 24952: { } 24952: 24952: template 24952: constexpr 24952: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 24952: : _M_value(__il, std::forward<_Args>(__args)...) 24952: { } 24952: # 263 "/usr/include/c++/13/optional" 3 24952: ~_Storage() { } 24952: 24952: _Empty_byte _M_empty; 24952: _Up _M_value; 24952: }; 24952: 24952: _Storage<_Stored_type> _M_payload; 24952: 24952: bool _M_engaged = false; 24952: 24952: template 24952: constexpr void 24952: _M_construct(_Args&&... __args) 24952: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 24952: { 24952: std::_Construct(std::__addressof(this->_M_payload._M_value), 24952: std::forward<_Args>(__args)...); 24952: this->_M_engaged = true; 24952: } 24952: 24952: constexpr void 24952: _M_destroy() noexcept 24952: { 24952: _M_engaged = false; 24952: _M_payload._M_value.~_Stored_type(); 24952: } 24952: # 305 "/usr/include/c++/13/optional" 3 24952: constexpr _Tp& 24952: _M_get() noexcept 24952: { return this->_M_payload._M_value; } 24952: 24952: constexpr const _Tp& 24952: _M_get() const noexcept 24952: { return this->_M_payload._M_value; } 24952: 24952: 24952: constexpr void 24952: _M_reset() noexcept 24952: { 24952: if (this->_M_engaged) 24952: _M_destroy(); 24952: else 24952: this->_M_engaged = false; 24952: } 24952: }; 24952: 24952: 24952: template , 24952: bool = 24952: is_trivially_copy_assignable_v<_Tp> 24952: && is_trivially_copy_constructible_v<_Tp>, 24952: bool = 24952: is_trivially_move_assignable_v<_Tp> 24952: && is_trivially_move_constructible_v<_Tp>> 24952: struct _Optional_payload; 24952: 24952: 24952: template 24952: struct _Optional_payload<_Tp, true, true, true> 24952: : _Optional_payload_base<_Tp> 24952: { 24952: using _Optional_payload_base<_Tp>::_Optional_payload_base; 24952: 24952: _Optional_payload() = default; 24952: }; 24952: 24952: 24952: template 24952: struct _Optional_payload<_Tp, true, false, true> 24952: : _Optional_payload_base<_Tp> 24952: { 24952: using _Optional_payload_base<_Tp>::_Optional_payload_base; 24952: 24952: _Optional_payload() = default; 24952: ~_Optional_payload() = default; 24952: _Optional_payload(const _Optional_payload&) = default; 24952: _Optional_payload(_Optional_payload&&) = default; 24952: _Optional_payload& operator=(_Optional_payload&&) = default; 24952: 24952: 24952: constexpr 24952: _Optional_payload& 24952: operator=(const _Optional_payload& __other) 24952: { 24952: this->_M_copy_assign(__other); 24952: return *this; 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct _Optional_payload<_Tp, true, true, false> 24952: : _Optional_payload_base<_Tp> 24952: { 24952: using _Optional_payload_base<_Tp>::_Optional_payload_base; 24952: 24952: _Optional_payload() = default; 24952: ~_Optional_payload() = default; 24952: _Optional_payload(const _Optional_payload&) = default; 24952: _Optional_payload(_Optional_payload&&) = default; 24952: _Optional_payload& operator=(const _Optional_payload&) = default; 24952: 24952: 24952: constexpr 24952: _Optional_payload& 24952: operator=(_Optional_payload&& __other) 24952: noexcept(__and_v, 24952: is_nothrow_move_assignable<_Tp>>) 24952: { 24952: this->_M_move_assign(std::move(__other)); 24952: return *this; 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct _Optional_payload<_Tp, true, false, false> 24952: : _Optional_payload_base<_Tp> 24952: { 24952: using _Optional_payload_base<_Tp>::_Optional_payload_base; 24952: 24952: _Optional_payload() = default; 24952: ~_Optional_payload() = default; 24952: _Optional_payload(const _Optional_payload&) = default; 24952: _Optional_payload(_Optional_payload&&) = default; 24952: 24952: 24952: constexpr 24952: _Optional_payload& 24952: operator=(const _Optional_payload& __other) 24952: { 24952: this->_M_copy_assign(__other); 24952: return *this; 24952: } 24952: 24952: 24952: constexpr 24952: _Optional_payload& 24952: operator=(_Optional_payload&& __other) 24952: noexcept(__and_v, 24952: is_nothrow_move_assignable<_Tp>>) 24952: { 24952: this->_M_move_assign(std::move(__other)); 24952: return *this; 24952: } 24952: }; 24952: 24952: 24952: template 24952: struct _Optional_payload<_Tp, false, _Copy, _Move> 24952: : _Optional_payload<_Tp, true, false, false> 24952: { 24952: 24952: using _Optional_payload<_Tp, true, false, false>::_Optional_payload; 24952: _Optional_payload() = default; 24952: _Optional_payload(const _Optional_payload&) = default; 24952: _Optional_payload(_Optional_payload&&) = default; 24952: _Optional_payload& operator=(const _Optional_payload&) = default; 24952: _Optional_payload& operator=(_Optional_payload&&) = default; 24952: 24952: 24952: ~_Optional_payload() { this->_M_reset(); } 24952: }; 24952: 24952: 24952: 24952: template 24952: class _Optional_base_impl 24952: { 24952: protected: 24952: using _Stored_type = remove_const_t<_Tp>; 24952: 24952: 24952: 24952: template 24952: constexpr void 24952: _M_construct(_Args&&... __args) 24952: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 24952: { 24952: static_cast<_Dp*>(this)->_M_payload._M_construct( 24952: std::forward<_Args>(__args)...); 24952: } 24952: 24952: constexpr void 24952: _M_destruct() noexcept 24952: { static_cast<_Dp*>(this)->_M_payload._M_destroy(); } 24952: 24952: 24952: constexpr void 24952: _M_reset() noexcept 24952: { static_cast<_Dp*>(this)->_M_payload._M_reset(); } 24952: 24952: constexpr bool _M_is_engaged() const noexcept 24952: { return static_cast(this)->_M_payload._M_engaged; } 24952: 24952: 24952: constexpr _Tp& 24952: _M_get() noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) __builtin_unreachable(); } while (false); 24952: return static_cast<_Dp*>(this)->_M_payload._M_get(); 24952: } 24952: 24952: constexpr const _Tp& 24952: _M_get() const noexcept 24952: { 24952: do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) __builtin_unreachable(); } while (false); 24952: return static_cast(this)->_M_payload._M_get(); 24952: } 24952: }; 24952: # 509 "/usr/include/c++/13/optional" 3 24952: template, 24952: bool = is_trivially_move_constructible_v<_Tp>> 24952: struct _Optional_base 24952: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 24952: { 24952: 24952: constexpr _Optional_base() = default; 24952: 24952: 24952: template, bool> = false> 24952: constexpr explicit 24952: _Optional_base(in_place_t, _Args&&... __args) 24952: : _M_payload(in_place, std::forward<_Args>(__args)...) 24952: { } 24952: 24952: template&, 24952: _Args...>, bool> = false> 24952: constexpr explicit 24952: _Optional_base(in_place_t, 24952: initializer_list<_Up> __il, 24952: _Args&&... __args) 24952: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 24952: { } 24952: 24952: 24952: constexpr 24952: _Optional_base(const _Optional_base& __other) 24952: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 24952: { } 24952: 24952: constexpr 24952: _Optional_base(_Optional_base&& __other) 24952: noexcept(is_nothrow_move_constructible_v<_Tp>) 24952: : _M_payload(__other._M_payload._M_engaged, 24952: std::move(__other._M_payload)) 24952: { } 24952: 24952: 24952: _Optional_base& operator=(const _Optional_base&) = default; 24952: _Optional_base& operator=(_Optional_base&&) = default; 24952: 24952: _Optional_payload<_Tp> _M_payload; 24952: }; 24952: 24952: template 24952: struct _Optional_base<_Tp, false, true> 24952: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 24952: { 24952: 24952: constexpr _Optional_base() = default; 24952: 24952: 24952: template, bool> = false> 24952: constexpr explicit 24952: _Optional_base(in_place_t, _Args&&... __args) 24952: : _M_payload(in_place, std::forward<_Args>(__args)...) 24952: { } 24952: 24952: template&, 24952: _Args...>, bool> = false> 24952: constexpr explicit 24952: _Optional_base(in_place_t, 24952: initializer_list<_Up> __il, 24952: _Args... __args) 24952: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 24952: { } 24952: 24952: 24952: constexpr _Optional_base(const _Optional_base& __other) 24952: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 24952: { } 24952: 24952: constexpr _Optional_base(_Optional_base&& __other) = default; 24952: 24952: 24952: _Optional_base& operator=(const _Optional_base&) = default; 24952: _Optional_base& operator=(_Optional_base&&) = default; 24952: 24952: _Optional_payload<_Tp> _M_payload; 24952: }; 24952: 24952: template 24952: struct _Optional_base<_Tp, true, false> 24952: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 24952: { 24952: 24952: constexpr _Optional_base() = default; 24952: 24952: 24952: template, bool> = false> 24952: constexpr explicit 24952: _Optional_base(in_place_t, _Args&&... __args) 24952: : _M_payload(in_place, std::forward<_Args>(__args)...) 24952: { } 24952: 24952: template&, 24952: _Args...>, bool> = false> 24952: constexpr explicit 24952: _Optional_base(in_place_t, 24952: initializer_list<_Up> __il, 24952: _Args&&... __args) 24952: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 24952: { } 24952: 24952: 24952: constexpr _Optional_base(const _Optional_base& __other) = default; 24952: 24952: constexpr 24952: _Optional_base(_Optional_base&& __other) 24952: noexcept(is_nothrow_move_constructible_v<_Tp>) 24952: : _M_payload(__other._M_payload._M_engaged, 24952: std::move(__other._M_payload)) 24952: { } 24952: 24952: 24952: _Optional_base& operator=(const _Optional_base&) = default; 24952: _Optional_base& operator=(_Optional_base&&) = default; 24952: 24952: _Optional_payload<_Tp> _M_payload; 24952: }; 24952: 24952: template 24952: struct _Optional_base<_Tp, true, true> 24952: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 24952: { 24952: 24952: constexpr _Optional_base() = default; 24952: 24952: 24952: template, bool> = false> 24952: constexpr explicit 24952: _Optional_base(in_place_t, _Args&&... __args) 24952: : _M_payload(in_place, std::forward<_Args>(__args)...) 24952: { } 24952: 24952: template&, 24952: _Args...>, bool> = false> 24952: constexpr explicit 24952: _Optional_base(in_place_t, 24952: initializer_list<_Up> __il, 24952: _Args&&... __args) 24952: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 24952: { } 24952: 24952: 24952: constexpr _Optional_base(const _Optional_base& __other) = default; 24952: constexpr _Optional_base(_Optional_base&& __other) = default; 24952: 24952: 24952: _Optional_base& operator=(const _Optional_base&) = default; 24952: _Optional_base& operator=(_Optional_base&&) = default; 24952: 24952: _Optional_payload<_Tp> _M_payload; 24952: }; 24952: 24952: template 24952: class optional; 24952: 24952: template 24952: inline constexpr bool __is_optional_v = false; 24952: template 24952: inline constexpr bool __is_optional_v> = true; 24952: 24952: template 24952: using __converts_from_optional = 24952: __or_&>, 24952: is_constructible<_Tp, optional<_Up>&>, 24952: is_constructible<_Tp, const optional<_Up>&&>, 24952: is_constructible<_Tp, optional<_Up>&&>, 24952: is_convertible&, _Tp>, 24952: is_convertible&, _Tp>, 24952: is_convertible&&, _Tp>, 24952: is_convertible&&, _Tp>>; 24952: 24952: template 24952: using __assigns_from_optional = 24952: __or_&>, 24952: is_assignable<_Tp&, optional<_Up>&>, 24952: is_assignable<_Tp&, const optional<_Up>&&>, 24952: is_assignable<_Tp&, optional<_Up>&&>>; 24952: 24952: 24952: 24952: 24952: template 24952: class optional 24952: : private _Optional_base<_Tp>, 24952: private _Enable_copy_move< 24952: 24952: is_copy_constructible_v<_Tp>, 24952: 24952: __and_v, is_copy_assignable<_Tp>>, 24952: 24952: is_move_constructible_v<_Tp>, 24952: 24952: __and_v, is_move_assignable<_Tp>>, 24952: 24952: optional<_Tp>> 24952: { 24952: static_assert(!is_same_v, nullopt_t>); 24952: static_assert(!is_same_v, in_place_t>); 24952: static_assert(is_object_v<_Tp> && !is_array_v<_Tp>); 24952: 24952: private: 24952: using _Base = _Optional_base<_Tp>; 24952: 24952: 24952: template 24952: using __not_self = __not_>>; 24952: template 24952: using __not_tag = __not_>>; 24952: template 24952: using _Requires = enable_if_t<__and_v<_Cond...>, bool>; 24952: 24952: public: 24952: using value_type = _Tp; 24952: 24952: constexpr optional() noexcept { } 24952: 24952: constexpr optional(nullopt_t) noexcept { } 24952: 24952: 24952: template, __not_tag<_Up>, 24952: is_constructible<_Tp, _Up>, 24952: is_convertible<_Up, _Tp>> = true> 24952: constexpr 24952: optional(_Up&& __t) 24952: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 24952: : _Base(std::in_place, std::forward<_Up>(__t)) { } 24952: 24952: template, __not_tag<_Up>, 24952: is_constructible<_Tp, _Up>, 24952: __not_>> = false> 24952: explicit constexpr 24952: optional(_Up&& __t) 24952: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 24952: : _Base(std::in_place, std::forward<_Up>(__t)) { } 24952: 24952: template>, 24952: is_constructible<_Tp, const _Up&>, 24952: is_convertible, 24952: __not_<__converts_from_optional<_Tp, _Up>>> = true> 24952: constexpr 24952: optional(const optional<_Up>& __t) 24952: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 24952: { 24952: if (__t) 24952: emplace(*__t); 24952: } 24952: 24952: template>, 24952: is_constructible<_Tp, const _Up&>, 24952: __not_>, 24952: __not_<__converts_from_optional<_Tp, _Up>>> = false> 24952: explicit constexpr 24952: optional(const optional<_Up>& __t) 24952: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 24952: { 24952: if (__t) 24952: emplace(*__t); 24952: } 24952: 24952: template>, 24952: is_constructible<_Tp, _Up>, 24952: is_convertible<_Up, _Tp>, 24952: __not_<__converts_from_optional<_Tp, _Up>>> = true> 24952: constexpr 24952: optional(optional<_Up>&& __t) 24952: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 24952: { 24952: if (__t) 24952: emplace(std::move(*__t)); 24952: } 24952: 24952: template>, 24952: is_constructible<_Tp, _Up>, 24952: __not_>, 24952: __not_<__converts_from_optional<_Tp, _Up>>> = false> 24952: explicit constexpr 24952: optional(optional<_Up>&& __t) 24952: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 24952: { 24952: if (__t) 24952: emplace(std::move(*__t)); 24952: } 24952: 24952: template> = false> 24952: explicit constexpr 24952: optional(in_place_t, _Args&&... __args) 24952: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 24952: : _Base(std::in_place, std::forward<_Args>(__args)...) { } 24952: 24952: template&, 24952: _Args...>> = false> 24952: explicit constexpr 24952: optional(in_place_t, initializer_list<_Up> __il, _Args&&... __args) 24952: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 24952: _Args...>) 24952: : _Base(std::in_place, __il, std::forward<_Args>(__args)...) { } 24952: 24952: 24952: 24952: optional& 24952: operator=(nullopt_t) noexcept 24952: { 24952: this->_M_reset(); 24952: return *this; 24952: } 24952: 24952: template 24952: 24952: enable_if_t<__and_v<__not_self<_Up>, 24952: __not_<__and_, 24952: is_same<_Tp, decay_t<_Up>>>>, 24952: is_constructible<_Tp, _Up>, 24952: is_assignable<_Tp&, _Up>>, 24952: optional&> 24952: operator=(_Up&& __u) 24952: noexcept(__and_v, 24952: is_nothrow_assignable<_Tp&, _Up>>) 24952: { 24952: if (this->_M_is_engaged()) 24952: this->_M_get() = std::forward<_Up>(__u); 24952: else 24952: this->_M_construct(std::forward<_Up>(__u)); 24952: 24952: return *this; 24952: } 24952: 24952: template 24952: 24952: enable_if_t<__and_v<__not_>, 24952: is_constructible<_Tp, const _Up&>, 24952: is_assignable<_Tp&, const _Up&>, 24952: __not_<__converts_from_optional<_Tp, _Up>>, 24952: __not_<__assigns_from_optional<_Tp, _Up>>>, 24952: optional&> 24952: operator=(const optional<_Up>& __u) 24952: noexcept(__and_v, 24952: is_nothrow_assignable<_Tp&, const _Up&>>) 24952: { 24952: if (__u) 24952: { 24952: if (this->_M_is_engaged()) 24952: this->_M_get() = *__u; 24952: else 24952: this->_M_construct(*__u); 24952: } 24952: else 24952: { 24952: this->_M_reset(); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: 24952: enable_if_t<__and_v<__not_>, 24952: is_constructible<_Tp, _Up>, 24952: is_assignable<_Tp&, _Up>, 24952: __not_<__converts_from_optional<_Tp, _Up>>, 24952: __not_<__assigns_from_optional<_Tp, _Up>>>, 24952: optional&> 24952: operator=(optional<_Up>&& __u) 24952: noexcept(__and_v, 24952: is_nothrow_assignable<_Tp&, _Up>>) 24952: { 24952: if (__u) 24952: { 24952: if (this->_M_is_engaged()) 24952: this->_M_get() = std::move(*__u); 24952: else 24952: this->_M_construct(std::move(*__u)); 24952: } 24952: else 24952: { 24952: this->_M_reset(); 24952: } 24952: 24952: return *this; 24952: } 24952: 24952: template 24952: 24952: enable_if_t, _Tp&> 24952: emplace(_Args&&... __args) 24952: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 24952: { 24952: this->_M_reset(); 24952: this->_M_construct(std::forward<_Args>(__args)...); 24952: return this->_M_get(); 24952: } 24952: 24952: template 24952: 24952: enable_if_t&, _Args...>, 24952: _Tp&> 24952: emplace(initializer_list<_Up> __il, _Args&&... __args) 24952: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 24952: _Args...>) 24952: { 24952: this->_M_reset(); 24952: this->_M_construct(__il, std::forward<_Args>(__args)...); 24952: return this->_M_get(); 24952: } 24952: 24952: 24952: 24952: 24952: void 24952: swap(optional& __other) 24952: noexcept(is_nothrow_move_constructible_v<_Tp> 24952: && is_nothrow_swappable_v<_Tp>) 24952: { 24952: using std::swap; 24952: 24952: if (this->_M_is_engaged() && __other._M_is_engaged()) 24952: swap(this->_M_get(), __other._M_get()); 24952: else if (this->_M_is_engaged()) 24952: { 24952: __other._M_construct(std::move(this->_M_get())); 24952: this->_M_destruct(); 24952: } 24952: else if (__other._M_is_engaged()) 24952: { 24952: this->_M_construct(std::move(__other._M_get())); 24952: __other._M_destruct(); 24952: } 24952: } 24952: 24952: 24952: constexpr const _Tp* 24952: operator->() const noexcept 24952: { return std::__addressof(this->_M_get()); } 24952: 24952: constexpr _Tp* 24952: operator->() noexcept 24952: { return std::__addressof(this->_M_get()); } 24952: 24952: constexpr const _Tp& 24952: operator*() const& noexcept 24952: { return this->_M_get(); } 24952: 24952: constexpr _Tp& 24952: operator*()& noexcept 24952: { return this->_M_get(); } 24952: 24952: constexpr _Tp&& 24952: operator*()&& noexcept 24952: { return std::move(this->_M_get()); } 24952: 24952: constexpr const _Tp&& 24952: operator*() const&& noexcept 24952: { return std::move(this->_M_get()); } 24952: 24952: constexpr explicit operator bool() const noexcept 24952: { return this->_M_is_engaged(); } 24952: 24952: constexpr bool has_value() const noexcept 24952: { return this->_M_is_engaged(); } 24952: 24952: constexpr const _Tp& 24952: value() const& 24952: { 24952: if (this->_M_is_engaged()) 24952: return this->_M_get(); 24952: __throw_bad_optional_access(); 24952: } 24952: 24952: constexpr _Tp& 24952: value()& 24952: { 24952: if (this->_M_is_engaged()) 24952: return this->_M_get(); 24952: __throw_bad_optional_access(); 24952: } 24952: 24952: constexpr _Tp&& 24952: value()&& 24952: { 24952: if (this->_M_is_engaged()) 24952: return std::move(this->_M_get()); 24952: __throw_bad_optional_access(); 24952: } 24952: 24952: constexpr const _Tp&& 24952: value() const&& 24952: { 24952: if (this->_M_is_engaged()) 24952: return std::move(this->_M_get()); 24952: __throw_bad_optional_access(); 24952: } 24952: 24952: template 24952: constexpr _Tp 24952: value_or(_Up&& __u) const& 24952: { 24952: static_assert(is_copy_constructible_v<_Tp>); 24952: static_assert(is_convertible_v<_Up&&, _Tp>); 24952: 24952: if (this->_M_is_engaged()) 24952: return this->_M_get(); 24952: else 24952: return static_cast<_Tp>(std::forward<_Up>(__u)); 24952: } 24952: 24952: template 24952: constexpr _Tp 24952: value_or(_Up&& __u) && 24952: { 24952: static_assert(is_move_constructible_v<_Tp>); 24952: static_assert(is_convertible_v<_Up&&, _Tp>); 24952: 24952: if (this->_M_is_engaged()) 24952: return std::move(this->_M_get()); 24952: else 24952: return static_cast<_Tp>(std::forward<_Up>(__u)); 24952: } 24952: # 1184 "/usr/include/c++/13/optional" 3 24952: void reset() noexcept { this->_M_reset(); } 24952: 24952: private: 24952: # 1197 "/usr/include/c++/13/optional" 3 24952: }; 24952: 24952: template 24952: using __optional_relop_t = 24952: enable_if_t::value, bool>; 24952: 24952: template 24952: using __optional_eq_t = __optional_relop_t< 24952: decltype(std::declval() == std::declval()) 24952: >; 24952: 24952: template 24952: using __optional_ne_t = __optional_relop_t< 24952: decltype(std::declval() != std::declval()) 24952: >; 24952: 24952: template 24952: using __optional_lt_t = __optional_relop_t< 24952: decltype(std::declval() < std::declval()) 24952: >; 24952: 24952: template 24952: using __optional_gt_t = __optional_relop_t< 24952: decltype(std::declval() > std::declval()) 24952: >; 24952: 24952: template 24952: using __optional_le_t = __optional_relop_t< 24952: decltype(std::declval() <= std::declval()) 24952: >; 24952: 24952: template 24952: using __optional_ge_t = __optional_relop_t< 24952: decltype(std::declval() >= std::declval()) 24952: >; 24952: 24952: 24952: template 24952: constexpr auto 24952: operator==(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 24952: -> __optional_eq_t<_Tp, _Up> 24952: { 24952: return static_cast(__lhs) == static_cast(__rhs) 24952: && (!__lhs || *__lhs == *__rhs); 24952: } 24952: 24952: template 24952: constexpr auto 24952: operator!=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 24952: -> __optional_ne_t<_Tp, _Up> 24952: { 24952: return static_cast(__lhs) != static_cast(__rhs) 24952: || (static_cast(__lhs) && *__lhs != *__rhs); 24952: } 24952: 24952: template 24952: constexpr auto 24952: operator<(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 24952: -> __optional_lt_t<_Tp, _Up> 24952: { 24952: return static_cast(__rhs) && (!__lhs || *__lhs < *__rhs); 24952: } 24952: 24952: template 24952: constexpr auto 24952: operator>(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 24952: -> __optional_gt_t<_Tp, _Up> 24952: { 24952: return static_cast(__lhs) && (!__rhs || *__lhs > *__rhs); 24952: } 24952: 24952: template 24952: constexpr auto 24952: operator<=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 24952: -> __optional_le_t<_Tp, _Up> 24952: { 24952: return !__lhs || (static_cast(__rhs) && *__lhs <= *__rhs); 24952: } 24952: 24952: template 24952: constexpr auto 24952: operator>=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 24952: -> __optional_ge_t<_Tp, _Up> 24952: { 24952: return !__rhs || (static_cast(__lhs) && *__lhs >= *__rhs); 24952: } 24952: # 1294 "/usr/include/c++/13/optional" 3 24952: template 24952: constexpr bool 24952: operator==(const optional<_Tp>& __lhs, nullopt_t) noexcept 24952: { return !__lhs; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: constexpr bool 24952: operator==(nullopt_t, const optional<_Tp>& __rhs) noexcept 24952: { return !__rhs; } 24952: 24952: template 24952: constexpr bool 24952: operator!=(const optional<_Tp>& __lhs, nullopt_t) noexcept 24952: { return static_cast(__lhs); } 24952: 24952: template 24952: constexpr bool 24952: operator!=(nullopt_t, const optional<_Tp>& __rhs) noexcept 24952: { return static_cast(__rhs); } 24952: 24952: template 24952: constexpr bool 24952: operator<(const optional<_Tp>& , nullopt_t) noexcept 24952: { return false; } 24952: 24952: template 24952: constexpr bool 24952: operator<(nullopt_t, const optional<_Tp>& __rhs) noexcept 24952: { return static_cast(__rhs); } 24952: 24952: template 24952: constexpr bool 24952: operator>(const optional<_Tp>& __lhs, nullopt_t) noexcept 24952: { return static_cast(__lhs); } 24952: 24952: template 24952: constexpr bool 24952: operator>(nullopt_t, const optional<_Tp>& ) noexcept 24952: { return false; } 24952: 24952: template 24952: constexpr bool 24952: operator<=(const optional<_Tp>& __lhs, nullopt_t) noexcept 24952: { return !__lhs; } 24952: 24952: template 24952: constexpr bool 24952: operator<=(nullopt_t, const optional<_Tp>& ) noexcept 24952: { return true; } 24952: 24952: template 24952: constexpr bool 24952: operator>=(const optional<_Tp>& , nullopt_t) noexcept 24952: { return true; } 24952: 24952: template 24952: constexpr bool 24952: operator>=(nullopt_t, const optional<_Tp>& __rhs) noexcept 24952: { return !__rhs; } 24952: 24952: 24952: 24952: template 24952: constexpr auto 24952: operator==(const optional<_Tp>& __lhs, const _Up& __rhs) 24952: -> __optional_eq_t<_Tp, _Up> 24952: { return __lhs && *__lhs == __rhs; } 24952: 24952: template 24952: constexpr auto 24952: operator==(const _Up& __lhs, const optional<_Tp>& __rhs) 24952: -> __optional_eq_t<_Up, _Tp> 24952: { return __rhs && __lhs == *__rhs; } 24952: 24952: template 24952: constexpr auto 24952: operator!=(const optional<_Tp>& __lhs, const _Up& __rhs) 24952: -> __optional_ne_t<_Tp, _Up> 24952: { return !__lhs || *__lhs != __rhs; } 24952: 24952: template 24952: constexpr auto 24952: operator!=(const _Up& __lhs, const optional<_Tp>& __rhs) 24952: -> __optional_ne_t<_Up, _Tp> 24952: { return !__rhs || __lhs != *__rhs; } 24952: 24952: template 24952: constexpr auto 24952: operator<(const optional<_Tp>& __lhs, const _Up& __rhs) 24952: -> __optional_lt_t<_Tp, _Up> 24952: { return !__lhs || *__lhs < __rhs; } 24952: 24952: template 24952: constexpr auto 24952: operator<(const _Up& __lhs, const optional<_Tp>& __rhs) 24952: -> __optional_lt_t<_Up, _Tp> 24952: { return __rhs && __lhs < *__rhs; } 24952: 24952: template 24952: constexpr auto 24952: operator>(const optional<_Tp>& __lhs, const _Up& __rhs) 24952: -> __optional_gt_t<_Tp, _Up> 24952: { return __lhs && *__lhs > __rhs; } 24952: 24952: template 24952: constexpr auto 24952: operator>(const _Up& __lhs, const optional<_Tp>& __rhs) 24952: -> __optional_gt_t<_Up, _Tp> 24952: { return !__rhs || __lhs > *__rhs; } 24952: 24952: template 24952: constexpr auto 24952: operator<=(const optional<_Tp>& __lhs, const _Up& __rhs) 24952: -> __optional_le_t<_Tp, _Up> 24952: { return !__lhs || *__lhs <= __rhs; } 24952: 24952: template 24952: constexpr auto 24952: operator<=(const _Up& __lhs, const optional<_Tp>& __rhs) 24952: -> __optional_le_t<_Up, _Tp> 24952: { return __rhs && __lhs <= *__rhs; } 24952: 24952: template 24952: constexpr auto 24952: operator>=(const optional<_Tp>& __lhs, const _Up& __rhs) 24952: -> __optional_ge_t<_Tp, _Up> 24952: { return __lhs && *__lhs >= __rhs; } 24952: 24952: template 24952: constexpr auto 24952: operator>=(const _Up& __lhs, const optional<_Tp>& __rhs) 24952: -> __optional_ge_t<_Up, _Tp> 24952: { return !__rhs || __lhs >= *__rhs; } 24952: # 1447 "/usr/include/c++/13/optional" 3 24952: template 24952: 24952: inline enable_if_t && is_swappable_v<_Tp>> 24952: swap(optional<_Tp>& __lhs, optional<_Tp>& __rhs) 24952: noexcept(noexcept(__lhs.swap(__rhs))) 24952: { __lhs.swap(__rhs); } 24952: 24952: template 24952: enable_if_t && is_swappable_v<_Tp>)> 24952: swap(optional<_Tp>&, optional<_Tp>&) = delete; 24952: 24952: template 24952: constexpr 24952: enable_if_t, _Tp>, 24952: optional>> 24952: make_optional(_Tp&& __t) 24952: noexcept(is_nothrow_constructible_v>, _Tp>) 24952: { return optional>{ std::forward<_Tp>(__t) }; } 24952: 24952: template 24952: constexpr 24952: enable_if_t, 24952: optional<_Tp>> 24952: make_optional(_Args&&... __args) 24952: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 24952: { return optional<_Tp>{ in_place, std::forward<_Args>(__args)... }; } 24952: 24952: template 24952: constexpr 24952: enable_if_t&, _Args...>, 24952: optional<_Tp>> 24952: make_optional(initializer_list<_Up> __il, _Args&&... __args) 24952: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, _Args...>) 24952: { return optional<_Tp>{ in_place, __il, std::forward<_Args>(__args)... }; } 24952: 24952: 24952: 24952: template, 24952: bool = __poison_hash<_Up>::__enable_hash_call> 24952: struct __optional_hash_call_base 24952: { 24952: size_t 24952: operator()(const optional<_Tp>& __t) const 24952: noexcept(noexcept(hash<_Up>{}(*__t))) 24952: { 24952: 24952: 24952: constexpr size_t __magic_disengaged_hash = static_cast(-3333); 24952: return __t ? hash<_Up>{}(*__t) : __magic_disengaged_hash; 24952: } 24952: }; 24952: 24952: template 24952: struct __optional_hash_call_base<_Tp, _Up, false> {}; 24952: 24952: template 24952: struct hash> 24952: : private __poison_hash>, 24952: public __optional_hash_call_base<_Tp> 24952: { 24952: using result_type [[__deprecated__]] = size_t; 24952: using argument_type [[__deprecated__]] = optional<_Tp>; 24952: }; 24952: 24952: template 24952: struct __is_fast_hash>> : __is_fast_hash> 24952: { }; 24952: 24952: 24952: 24952: 24952: template optional(_Tp) -> optional<_Tp>; 24952: 24952: 24952: 24952: } 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 1 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compression_type.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compression_type.h" 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: 24952: enum CompressionType : unsigned char { 24952: 24952: 24952: kNoCompression = 0x0, 24952: kSnappyCompression = 0x1, 24952: kZlibCompression = 0x2, 24952: kBZip2Compression = 0x3, 24952: kLZ4Compression = 0x4, 24952: kLZ4HCCompression = 0x5, 24952: kXpressCompression = 0x6, 24952: kZSTD = 0x7, 24952: 24952: 24952: 24952: 24952: 24952: 24952: kZSTDNotFinalCompression = 0x40, 24952: 24952: 24952: kDisableCompressionOption = 0xff, 24952: }; 24952: 24952: } 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/assert.h" 1 3 4 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 2 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: namespace detail { 24952: int CountTrailingZeroBitsForSmallEnumSet(uint64_t); 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: class SmallEnumSet { 24952: private: 24952: using StateT = uint64_t; 24952: static constexpr int kStateBits = sizeof(StateT) * 8; 24952: static constexpr int kMaxMax = kStateBits - 1; 24952: static constexpr int kMaxValue = static_cast(MAX_ENUMERATOR); 24952: static_assert(kMaxValue >= 0); 24952: static_assert(kMaxValue <= kMaxMax); 24952: 24952: public: 24952: 24952: SmallEnumSet() : state_(0) {} 24952: 24952: template 24952: constexpr SmallEnumSet(const ENUM_TYPE e, TRest... rest) { 24952: *this = SmallEnumSet(rest...).With(e); 24952: } 24952: 24952: 24952: 24952: static constexpr SmallEnumSet All() { 24952: StateT tmp = StateT{1} << kMaxValue; 24952: return SmallEnumSet(RawStateMarker(), tmp | (tmp - 1)); 24952: } 24952: 24952: 24952: bool operator==(const SmallEnumSet& that) const { 24952: return this->state_ == that.state_; 24952: } 24952: bool operator!=(const SmallEnumSet& that) const { return !(*this == that); } 24952: 24952: 24952: 24952: 24952: bool Contains(const ENUM_TYPE e) const { 24952: int value = static_cast(e); 24952: 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: (static_cast ( 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: value >= 0 && value <= kMaxValue 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: "value >= 0 && value <= kMaxValue" 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: , "./include/rocksdb/data_structure.h", 62, __extension__ __PRETTY_FUNCTION__)) 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: ; 24952: StateT tmp = 1; 24952: return state_ & (tmp << value); 24952: } 24952: 24952: bool empty() const { return state_ == 0; } 24952: 24952: 24952: class const_iterator { 24952: public: 24952: 24952: const_iterator(const const_iterator& that) = default; 24952: const_iterator& operator=(const const_iterator& that) = default; 24952: 24952: 24952: const_iterator(const_iterator&& that) noexcept = default; 24952: const_iterator& operator=(const_iterator&& that) noexcept = default; 24952: 24952: 24952: bool operator==(const const_iterator& that) const { 24952: 24952: # 82 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: (static_cast ( 24952: # 82 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: set_ == that.set_ 24952: # 82 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 82 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: "set_ == that.set_" 24952: # 82 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: , "./include/rocksdb/data_structure.h", 82, __extension__ __PRETTY_FUNCTION__)) 24952: # 82 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: ; 24952: return this->pos_ == that.pos_; 24952: } 24952: 24952: bool operator!=(const const_iterator& that) const { 24952: return !(*this == that); 24952: } 24952: 24952: 24952: const_iterator& operator++() { 24952: if (pos_ < kMaxValue) { 24952: pos_ = set_->SkipUnset(pos_ + 1); 24952: } else { 24952: pos_ = kStateBits; 24952: } 24952: return *this; 24952: } 24952: 24952: 24952: const_iterator operator++(int) { 24952: auto old = *this; 24952: ++*this; 24952: return old; 24952: } 24952: 24952: ENUM_TYPE operator*() const { 24952: 24952: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: (static_cast ( 24952: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: pos_ <= kMaxValue 24952: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: "pos_ <= kMaxValue" 24952: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: , "./include/rocksdb/data_structure.h", 108, __extension__ __PRETTY_FUNCTION__)) 24952: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: ; 24952: return static_cast(pos_); 24952: } 24952: 24952: private: 24952: friend class SmallEnumSet; 24952: const_iterator(const SmallEnumSet* set, int pos) : set_(set), pos_(pos) {} 24952: const SmallEnumSet* set_; 24952: int pos_; 24952: }; 24952: 24952: const_iterator begin() const { return const_iterator(this, SkipUnset(0)); } 24952: 24952: const_iterator end() const { return const_iterator(this, kStateBits); } 24952: 24952: 24952: 24952: 24952: 24952: bool Add(const ENUM_TYPE e) { 24952: int value = static_cast(e); 24952: 24952: # 129 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: (static_cast ( 24952: # 129 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: value >= 0 && value <= kMaxValue 24952: # 129 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 129 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: "value >= 0 && value <= kMaxValue" 24952: # 129 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: , "./include/rocksdb/data_structure.h", 129, __extension__ __PRETTY_FUNCTION__)) 24952: # 129 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: ; 24952: StateT old_state = state_; 24952: state_ |= (StateT{1} << value); 24952: return old_state != state_; 24952: } 24952: 24952: 24952: 24952: bool Remove(const ENUM_TYPE e) { 24952: int value = static_cast(e); 24952: 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: (static_cast ( 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: value >= 0 && value <= kMaxValue 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: "value >= 0 && value <= kMaxValue" 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: , "./include/rocksdb/data_structure.h", 139, __extension__ __PRETTY_FUNCTION__)) 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: ; 24952: StateT old_state = state_; 24952: state_ &= ~(StateT{1} << value); 24952: return old_state != state_; 24952: } 24952: 24952: 24952: 24952: 24952: constexpr SmallEnumSet With(const ENUM_TYPE e) const { 24952: int value = static_cast(e); 24952: 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: (static_cast ( 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: value >= 0 && value <= kMaxValue 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: "value >= 0 && value <= kMaxValue" 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: , "./include/rocksdb/data_structure.h", 150, __extension__ __PRETTY_FUNCTION__)) 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: ; 24952: return SmallEnumSet(RawStateMarker(), state_ | (StateT{1} << value)); 24952: } 24952: template 24952: constexpr SmallEnumSet With(const ENUM_TYPE e1, const ENUM_TYPE e2, 24952: TRest... rest) const { 24952: return With(e1).With(e2, rest...); 24952: } 24952: 24952: 24952: constexpr SmallEnumSet Without(const ENUM_TYPE e) const { 24952: int value = static_cast(e); 24952: 24952: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: (static_cast ( 24952: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: value >= 0 && value <= kMaxValue 24952: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: "value >= 0 && value <= kMaxValue" 24952: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 3 4 24952: , "./include/rocksdb/data_structure.h", 162, __extension__ __PRETTY_FUNCTION__)) 24952: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/data_structure.h" 24952: ; 24952: return SmallEnumSet(RawStateMarker(), state_ & ~(StateT{1} << value)); 24952: } 24952: template 24952: constexpr SmallEnumSet Without(const ENUM_TYPE e1, const ENUM_TYPE e2, 24952: TRest... rest) const { 24952: return Without(e1).Without(e2, rest...); 24952: } 24952: 24952: private: 24952: int SkipUnset(int pos) const { 24952: StateT tmp = state_ >> pos; 24952: if (tmp == 0) { 24952: return kStateBits; 24952: } else { 24952: return pos + detail::CountTrailingZeroBitsForSmallEnumSet(tmp); 24952: } 24952: } 24952: struct RawStateMarker {}; 24952: explicit SmallEnumSet(RawStateMarker, StateT state) : state_(state) {} 24952: 24952: StateT state_; 24952: }; 24952: 24952: } 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memory_allocator.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: class MemoryAllocator : public Customizable { 24952: public: 24952: static const char* Type() { return "MemoryAllocator"; } 24952: static Status CreateFromString(const ConfigOptions& options, 24952: const std::string& value, 24952: std::shared_ptr* result); 24952: 24952: 24952: virtual void* Allocate(size_t size) = 0; 24952: 24952: 24952: virtual void Deallocate(void* p) = 0; 24952: 24952: 24952: 24952: virtual size_t UsableSize(void* , size_t allocation_size) const { 24952: 24952: return allocation_size; 24952: } 24952: 24952: std::string GetId() const override { return GenerateIndividualId(); } 24952: }; 24952: 24952: struct JemallocAllocatorOptions { 24952: static const char* kName() { return "JemallocAllocatorOptions"; } 24952: 24952: 24952: 24952: 24952: 24952: bool limit_tcache_size = false; 24952: 24952: 24952: 24952: size_t tcache_size_lower_bound = 1024; 24952: 24952: 24952: 24952: size_t tcache_size_upper_bound = 16 * 1024; 24952: 24952: 24952: 24952: 24952: size_t num_arenas = 1; 24952: }; 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memory_allocator.h" 24952: extern Status NewJemallocNodumpAllocator( 24952: const JemallocAllocatorOptions& options, 24952: std::shared_ptr* memory_allocator); 24952: 24952: } 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: class Cache; 24952: struct ConfigOptions; 24952: class SecondaryCache; 24952: # 46 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 24952: using BlockCache = Cache; 24952: using RowCache = Cache; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: enum class CacheEntryRole { 24952: 24952: kDataBlock, 24952: 24952: kFilterBlock, 24952: 24952: kFilterMetaBlock, 24952: 24952: kDeprecatedFilterBlock, 24952: 24952: kIndexBlock, 24952: 24952: kOtherBlock, 24952: 24952: kWriteBuffer, 24952: 24952: 24952: kCompressionDictionaryBuildingBuffer, 24952: 24952: 24952: kFilterConstruction, 24952: 24952: kBlockBasedTableReader, 24952: 24952: kFileMetadata, 24952: 24952: kBlobValue, 24952: 24952: 24952: kBlobCache, 24952: 24952: 24952: kMisc, 24952: }; 24952: constexpr uint32_t kNumCacheEntryRoles = 24952: static_cast(CacheEntryRole::kMisc) + 1; 24952: 24952: 24952: const std::string& GetCacheEntryRoleName(CacheEntryRole); 24952: 24952: 24952: using CacheEntryRoleSet = SmallEnumSet; 24952: 24952: 24952: 24952: 24952: struct BlockCacheEntryStatsMapKeys { 24952: static const std::string& CacheId(); 24952: static const std::string& CacheCapacityBytes(); 24952: static const std::string& LastCollectionDurationSeconds(); 24952: static const std::string& LastCollectionAgeSeconds(); 24952: 24952: static std::string EntryCount(CacheEntryRole); 24952: static std::string UsedBytes(CacheEntryRole); 24952: static std::string UsedPercent(CacheEntryRole); 24952: }; 24952: 24952: extern const bool kDefaultToAdaptiveMutex; 24952: 24952: enum CacheMetadataChargePolicy { 24952: 24952: 24952: kDontChargeCacheMetadata, 24952: 24952: 24952: 24952: kFullChargeCacheMetadata 24952: }; 24952: const CacheMetadataChargePolicy kDefaultCacheMetadataChargePolicy = 24952: kFullChargeCacheMetadata; 24952: 24952: 24952: 24952: struct ShardedCacheOptions { 24952: 24952: 24952: 24952: size_t capacity = 0; 24952: 24952: 24952: 24952: 24952: 24952: int num_shard_bits = -1; 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool strict_capacity_limit = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: std::shared_ptr memory_allocator; 24952: 24952: 24952: CacheMetadataChargePolicy metadata_charge_policy = 24952: kDefaultCacheMetadataChargePolicy; 24952: 24952: 24952: 24952: std::shared_ptr secondary_cache; 24952: 24952: 24952: static constexpr int32_t kQuasiRandomHashSeed = -1; 24952: static constexpr int32_t kHostHashSeed = -2; 24952: # 190 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 24952: int32_t hash_seed = kHostHashSeed; 24952: 24952: ShardedCacheOptions() {} 24952: ShardedCacheOptions( 24952: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 24952: std::shared_ptr _memory_allocator = nullptr, 24952: CacheMetadataChargePolicy _metadata_charge_policy = 24952: kDefaultCacheMetadataChargePolicy) 24952: : capacity(_capacity), 24952: num_shard_bits(_num_shard_bits), 24952: strict_capacity_limit(_strict_capacity_limit), 24952: memory_allocator(std::move(_memory_allocator)), 24952: metadata_charge_policy(_metadata_charge_policy) {} 24952: 24952: virtual ~ShardedCacheOptions() = default; 24952: }; 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 24952: struct LRUCacheOptions : public ShardedCacheOptions { 24952: # 237 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 24952: double high_pri_pool_ratio = 0.5; 24952: double low_pri_pool_ratio = 0.0; 24952: 24952: 24952: 24952: 24952: 24952: bool use_adaptive_mutex = kDefaultToAdaptiveMutex; 24952: 24952: LRUCacheOptions() {} 24952: LRUCacheOptions(size_t _capacity, int _num_shard_bits, 24952: bool _strict_capacity_limit, double _high_pri_pool_ratio, 24952: std::shared_ptr _memory_allocator = nullptr, 24952: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 24952: CacheMetadataChargePolicy _metadata_charge_policy = 24952: kDefaultCacheMetadataChargePolicy, 24952: double _low_pri_pool_ratio = 0.0) 24952: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 24952: std::move(_memory_allocator), 24952: _metadata_charge_policy), 24952: high_pri_pool_ratio(_high_pri_pool_ratio), 24952: low_pri_pool_ratio(_low_pri_pool_ratio), 24952: use_adaptive_mutex(_use_adaptive_mutex) {} 24952: 24952: 24952: std::shared_ptr MakeSharedCache() const; 24952: 24952: 24952: 24952: std::shared_ptr MakeSharedRowCache() const; 24952: }; 24952: 24952: 24952: inline std::shared_ptr NewLRUCache( 24952: size_t capacity, int num_shard_bits = -1, 24952: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 24952: std::shared_ptr memory_allocator = nullptr, 24952: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 24952: CacheMetadataChargePolicy metadata_charge_policy = 24952: kDefaultCacheMetadataChargePolicy, 24952: double low_pri_pool_ratio = 0.0) { 24952: return LRUCacheOptions(capacity, num_shard_bits, strict_capacity_limit, 24952: high_pri_pool_ratio, memory_allocator, 24952: use_adaptive_mutex, metadata_charge_policy, 24952: low_pri_pool_ratio) 24952: .MakeSharedCache(); 24952: } 24952: 24952: 24952: inline std::shared_ptr NewLRUCache(const LRUCacheOptions& cache_opts) { 24952: return cache_opts.MakeSharedCache(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: struct CompressedSecondaryCacheOptions : LRUCacheOptions { 24952: 24952: CompressionType compression_type = CompressionType::kLZ4Compression; 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint32_t compress_format_version = 2; 24952: 24952: 24952: 24952: bool enable_custom_split_merge = false; 24952: 24952: 24952: 24952: CacheEntryRoleSet do_not_compress_roles = {CacheEntryRole::kFilterBlock}; 24952: 24952: CompressedSecondaryCacheOptions() {} 24952: CompressedSecondaryCacheOptions( 24952: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 24952: double _high_pri_pool_ratio, double _low_pri_pool_ratio = 0.0, 24952: std::shared_ptr _memory_allocator = nullptr, 24952: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 24952: CacheMetadataChargePolicy _metadata_charge_policy = 24952: kDefaultCacheMetadataChargePolicy, 24952: CompressionType _compression_type = CompressionType::kLZ4Compression, 24952: uint32_t _compress_format_version = 2, 24952: bool _enable_custom_split_merge = false, 24952: const CacheEntryRoleSet& _do_not_compress_roles = 24952: {CacheEntryRole::kFilterBlock}) 24952: : LRUCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 24952: _high_pri_pool_ratio, std::move(_memory_allocator), 24952: _use_adaptive_mutex, _metadata_charge_policy, 24952: _low_pri_pool_ratio), 24952: compression_type(_compression_type), 24952: compress_format_version(_compress_format_version), 24952: enable_custom_split_merge(_enable_custom_split_merge), 24952: do_not_compress_roles(_do_not_compress_roles) {} 24952: 24952: 24952: std::shared_ptr MakeSharedSecondaryCache() const; 24952: 24952: 24952: std::shared_ptr MakeSharedCache() const = delete; 24952: }; 24952: 24952: 24952: inline std::shared_ptr NewCompressedSecondaryCache( 24952: size_t capacity, int num_shard_bits = -1, 24952: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 24952: double low_pri_pool_ratio = 0.0, 24952: std::shared_ptr memory_allocator = nullptr, 24952: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 24952: CacheMetadataChargePolicy metadata_charge_policy = 24952: kDefaultCacheMetadataChargePolicy, 24952: CompressionType compression_type = CompressionType::kLZ4Compression, 24952: uint32_t compress_format_version = 2, 24952: bool enable_custom_split_merge = false, 24952: const CacheEntryRoleSet& _do_not_compress_roles = { 24952: CacheEntryRole::kFilterBlock}) { 24952: return CompressedSecondaryCacheOptions( 24952: capacity, num_shard_bits, strict_capacity_limit, 24952: high_pri_pool_ratio, low_pri_pool_ratio, memory_allocator, 24952: use_adaptive_mutex, metadata_charge_policy, compression_type, 24952: compress_format_version, enable_custom_split_merge, 24952: _do_not_compress_roles) 24952: .MakeSharedSecondaryCache(); 24952: } 24952: 24952: 24952: inline std::shared_ptr NewCompressedSecondaryCache( 24952: const CompressedSecondaryCacheOptions& opts) { 24952: return opts.MakeSharedSecondaryCache(); 24952: } 24952: # 388 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 24952: struct HyperClockCacheOptions : public ShardedCacheOptions { 24952: # 425 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 24952: size_t estimated_entry_charge; 24952: # 442 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 24952: size_t min_avg_entry_charge = 450; 24952: 24952: HyperClockCacheOptions( 24952: size_t _capacity, size_t _estimated_entry_charge, 24952: int _num_shard_bits = -1, bool _strict_capacity_limit = false, 24952: std::shared_ptr _memory_allocator = nullptr, 24952: CacheMetadataChargePolicy _metadata_charge_policy = 24952: kDefaultCacheMetadataChargePolicy) 24952: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 24952: std::move(_memory_allocator), 24952: _metadata_charge_policy), 24952: estimated_entry_charge(_estimated_entry_charge) {} 24952: 24952: 24952: std::shared_ptr MakeSharedCache() const; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: extern std::shared_ptr NewClockCache( 24952: size_t capacity, int num_shard_bits = -1, 24952: bool strict_capacity_limit = false, 24952: CacheMetadataChargePolicy metadata_charge_policy = 24952: kDefaultCacheMetadataChargePolicy); 24952: 24952: enum PrimaryCacheType { 24952: kCacheTypeLRU, 24952: kCacheTypeHCC, 24952: kCacheTypeMax, 24952: }; 24952: 24952: enum TieredAdmissionPolicy { 24952: 24952: kAdmPolicyAuto, 24952: 24952: 24952: 24952: kAdmPolicyPlaceholder, 24952: 24952: 24952: kAdmPolicyAllowCacheHits, 24952: 24952: 24952: 24952: kAdmPolicyThreeQueue, 24952: kAdmPolicyMax, 24952: }; 24952: # 501 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 24952: struct TieredCacheOptions { 24952: ShardedCacheOptions* cache_opts = nullptr; 24952: PrimaryCacheType cache_type = PrimaryCacheType::kCacheTypeLRU; 24952: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyAuto; 24952: CompressedSecondaryCacheOptions comp_cache_opts; 24952: 24952: 24952: 24952: 24952: size_t total_capacity = 0; 24952: double compressed_secondary_ratio = 0.0; 24952: 24952: 24952: 24952: std::shared_ptr nvm_sec_cache; 24952: }; 24952: 24952: extern std::shared_ptr NewTieredCache( 24952: const TieredCacheOptions& cache_opts); 24952: # 530 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/cache.h" 24952: extern Status UpdateTieredCache( 24952: const std::shared_ptr& cache, int64_t total_capacity = -1, 24952: double compressed_secondary_ratio = std::numeric_limits::max(), 24952: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyMax); 24952: } 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 1 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/stdlib.h" 1 3 24952: # 36 "/usr/include/c++/13/stdlib.h" 3 24952: # 1 "/usr/include/c++/13/cstdlib" 1 3 24952: # 39 "/usr/include/c++/13/cstdlib" 3 24952: 24952: # 40 "/usr/include/c++/13/cstdlib" 3 24952: # 37 "/usr/include/c++/13/stdlib.h" 2 3 24952: 24952: 24952: # 38 "/usr/include/c++/13/stdlib.h" 3 24952: using std::abort; 24952: using std::atexit; 24952: using std::exit; 24952: 24952: 24952: using std::at_quick_exit; 24952: 24952: 24952: using std::quick_exit; 24952: 24952: 24952: using std::_Exit; 24952: 24952: 24952: 24952: 24952: using std::div_t; 24952: using std::ldiv_t; 24952: 24952: using std::abs; 24952: using std::atof; 24952: using std::atoi; 24952: using std::atol; 24952: using std::bsearch; 24952: using std::calloc; 24952: using std::div; 24952: using std::free; 24952: using std::getenv; 24952: using std::labs; 24952: using std::ldiv; 24952: using std::malloc; 24952: 24952: using std::mblen; 24952: using std::mbstowcs; 24952: using std::mbtowc; 24952: 24952: using std::qsort; 24952: using std::rand; 24952: using std::realloc; 24952: using std::srand; 24952: using std::strtod; 24952: using std::strtol; 24952: using std::strtoul; 24952: using std::system; 24952: 24952: using std::wcstombs; 24952: using std::wctomb; 24952: # 40 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 2 24952: # 48 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 24952: 24952: # 48 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 24952: namespace rocksdb { 24952: 24952: class Arena; 24952: class Allocator; 24952: class LookupKey; 24952: class SliceTransform; 24952: class Logger; 24952: struct DBOptions; 24952: 24952: using KeyHandle = void*; 24952: 24952: extern Slice GetLengthPrefixedSlice(const char* data); 24952: 24952: class MemTableRep { 24952: public: 24952: 24952: 24952: class KeyComparator { 24952: public: 24952: using DecodedType = rocksdb::Slice; 24952: 24952: virtual DecodedType decode_key(const char* key) const { 24952: 24952: 24952: return GetLengthPrefixedSlice(key); 24952: } 24952: 24952: 24952: 24952: virtual int operator()(const char* prefix_len_key1, 24952: const char* prefix_len_key2) const = 0; 24952: 24952: virtual int operator()(const char* prefix_len_key, 24952: const Slice& key) const = 0; 24952: 24952: virtual ~KeyComparator() {} 24952: }; 24952: 24952: explicit MemTableRep(Allocator* allocator) : allocator_(allocator) {} 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual KeyHandle Allocate(const size_t len, char** buf); 24952: 24952: 24952: 24952: 24952: 24952: virtual void Insert(KeyHandle handle) = 0; 24952: 24952: 24952: 24952: 24952: virtual bool InsertKey(KeyHandle handle) { 24952: Insert(handle); 24952: return true; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void InsertWithHint(KeyHandle handle, void** ) { 24952: 24952: Insert(handle); 24952: } 24952: 24952: 24952: 24952: 24952: virtual bool InsertKeyWithHint(KeyHandle handle, void** hint) { 24952: InsertWithHint(handle, hint); 24952: return true; 24952: } 24952: # 137 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 24952: virtual void InsertWithHintConcurrently(KeyHandle handle, void** ) { 24952: 24952: InsertConcurrently(handle); 24952: } 24952: 24952: 24952: 24952: 24952: virtual bool InsertKeyWithHintConcurrently(KeyHandle handle, void** hint) { 24952: InsertWithHintConcurrently(handle, hint); 24952: return true; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void InsertConcurrently(KeyHandle handle); 24952: 24952: 24952: 24952: 24952: virtual bool InsertKeyConcurrently(KeyHandle handle) { 24952: InsertConcurrently(handle); 24952: return true; 24952: } 24952: 24952: 24952: virtual bool Contains(const char* key) const = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual void MarkReadOnly() {} 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void MarkFlushed() {} 24952: # 194 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 24952: virtual void Get(const LookupKey& k, void* callback_args, 24952: bool (*callback_func)(void* arg, const char* entry)); 24952: 24952: virtual uint64_t ApproximateNumEntries(const Slice& , 24952: const Slice& ) { 24952: return 0; 24952: } 24952: 24952: 24952: 24952: virtual void UniqueRandomSample(const uint64_t num_entries, 24952: const uint64_t target_sample_size, 24952: std::unordered_set* entries) { 24952: (void)num_entries; 24952: (void)target_sample_size; 24952: (void)entries; 24952: 24952: # 210 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 3 4 24952: (static_cast ( 24952: # 210 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 24952: false 24952: # 210 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 210 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 24952: "false" 24952: # 210 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 3 4 24952: , "./include/rocksdb/memtablerep.h", 210, __extension__ __PRETTY_FUNCTION__)) 24952: # 210 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 24952: ; 24952: } 24952: 24952: 24952: 24952: virtual size_t ApproximateMemoryUsage() = 0; 24952: 24952: virtual ~MemTableRep() {} 24952: 24952: 24952: class Iterator { 24952: public: 24952: 24952: 24952: 24952: virtual ~Iterator() {} 24952: 24952: 24952: virtual bool Valid() const = 0; 24952: 24952: 24952: 24952: virtual const char* key() const = 0; 24952: 24952: 24952: 24952: virtual void Next() = 0; 24952: 24952: 24952: 24952: virtual void Prev() = 0; 24952: 24952: 24952: virtual void Seek(const Slice& internal_key, const char* memtable_key) = 0; 24952: 24952: 24952: virtual void SeekForPrev(const Slice& internal_key, 24952: const char* memtable_key) = 0; 24952: 24952: virtual void RandomSeek() {} 24952: 24952: 24952: 24952: virtual void SeekToFirst() = 0; 24952: 24952: 24952: 24952: virtual void SeekToLast() = 0; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Iterator* GetIterator(Arena* arena = nullptr) = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Iterator* GetDynamicPrefixIterator(Arena* arena = nullptr) { 24952: return GetIterator(arena); 24952: } 24952: 24952: 24952: 24952: virtual bool IsMergeOperatorSupported() const { return true; } 24952: 24952: 24952: 24952: virtual bool IsSnapshotSupported() const { return true; } 24952: 24952: protected: 24952: 24952: 24952: virtual Slice UserKey(const char* key) const; 24952: 24952: Allocator* allocator_; 24952: }; 24952: 24952: 24952: 24952: class MemTableRepFactory : public Customizable { 24952: public: 24952: ~MemTableRepFactory() override {} 24952: 24952: static const char* Type() { return "MemTableRepFactory"; } 24952: static Status CreateFromString(const ConfigOptions& config_options, 24952: const std::string& id, 24952: std::unique_ptr* factory); 24952: static Status CreateFromString(const ConfigOptions& config_options, 24952: const std::string& id, 24952: std::shared_ptr* factory); 24952: 24952: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 24952: Allocator*, const SliceTransform*, 24952: Logger* logger) = 0; 24952: virtual MemTableRep* CreateMemTableRep( 24952: const MemTableRep::KeyComparator& key_cmp, Allocator* allocator, 24952: const SliceTransform* slice_transform, Logger* logger, 24952: uint32_t ) { 24952: return CreateMemTableRep(key_cmp, allocator, slice_transform, logger); 24952: } 24952: 24952: const char* Name() const override = 0; 24952: 24952: 24952: 24952: virtual bool IsInsertConcurrentlySupported() const { return false; } 24952: 24952: 24952: 24952: 24952: 24952: virtual bool CanHandleDuplicatedKey() const { return false; } 24952: }; 24952: # 337 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 24952: class SkipListFactory : public MemTableRepFactory { 24952: public: 24952: explicit SkipListFactory(size_t lookahead = 0); 24952: 24952: 24952: static const char* kClassName() { return "SkipListFactory"; } 24952: static const char* kNickName() { return "skip_list"; } 24952: virtual const char* Name() const override { return kClassName(); } 24952: virtual const char* NickName() const override { return kNickName(); } 24952: std::string GetId() const override; 24952: 24952: 24952: using MemTableRepFactory::CreateMemTableRep; 24952: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 24952: Allocator*, const SliceTransform*, 24952: Logger* logger) override; 24952: 24952: bool IsInsertConcurrentlySupported() const override { return true; } 24952: 24952: bool CanHandleDuplicatedKey() const override { return true; } 24952: 24952: private: 24952: size_t lookahead_; 24952: }; 24952: # 370 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 24952: class VectorRepFactory : public MemTableRepFactory { 24952: size_t count_; 24952: 24952: public: 24952: explicit VectorRepFactory(size_t count = 0); 24952: 24952: 24952: static const char* kClassName() { return "VectorRepFactory"; } 24952: static const char* kNickName() { return "vector"; } 24952: const char* Name() const override { return kClassName(); } 24952: const char* NickName() const override { return kNickName(); } 24952: 24952: 24952: using MemTableRepFactory::CreateMemTableRep; 24952: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 24952: Allocator*, const SliceTransform*, 24952: Logger* logger) override; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern MemTableRepFactory* NewHashSkipListRepFactory( 24952: size_t bucket_count = 1000000, int32_t skiplist_height = 4, 24952: int32_t skiplist_branching_factor = 4); 24952: # 415 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/memtablerep.h" 24952: extern MemTableRepFactory* NewHashLinkListRepFactory( 24952: size_t bucket_count = 50000, size_t huge_page_tlb_size = 0, 24952: int bucket_entries_logging_threshold = 4096, 24952: bool if_log_bucket_dist_when_flash = true, 24952: uint32_t threshold_use_skiplist = 256); 24952: 24952: } 24952: # 16 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/universal_compaction.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/climits" 1 3 24952: # 39 "/usr/include/c++/13/climits" 3 24952: 24952: # 40 "/usr/include/c++/13/climits" 3 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 1 3 4 24952: # 34 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 3 4 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/syslimits.h" 1 3 4 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 1 3 4 24952: # 205 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 3 4 24952: # 1 "/usr/include/limits.h" 1 3 4 24952: # 26 "/usr/include/limits.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 24952: # 27 "/usr/include/limits.h" 2 3 4 24952: # 195 "/usr/include/limits.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 1 3 4 24952: # 27 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 24952: # 28 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 24952: # 161 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 1 3 4 24952: # 38 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 3 4 24952: # 1 "/usr/include/linux/limits.h" 1 3 4 24952: # 39 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 2 3 4 24952: # 162 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 24952: # 196 "/usr/include/limits.h" 2 3 4 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix2_lim.h" 1 3 4 24952: # 200 "/usr/include/limits.h" 2 3 4 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 1 3 4 24952: # 64 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio_lim.h" 1 3 4 24952: # 65 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 2 3 4 24952: # 204 "/usr/include/limits.h" 2 3 4 24952: # 206 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 2 3 4 24952: # 8 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/syslimits.h" 2 3 4 24952: # 35 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 2 3 4 24952: # 43 "/usr/include/c++/13/climits" 2 3 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/universal_compaction.h" 2 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: enum CompactionStopStyle { 24952: kCompactionStopStyleSimilarSize, 24952: kCompactionStopStyleTotalSize 24952: }; 24952: 24952: class CompactionOptionsUniversal { 24952: public: 24952: 24952: 24952: 24952: unsigned int size_ratio; 24952: 24952: 24952: unsigned int min_merge_width; 24952: 24952: 24952: unsigned int max_merge_width; 24952: # 48 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/universal_compaction.h" 24952: unsigned int max_size_amplification_percent; 24952: # 66 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/universal_compaction.h" 24952: int compression_size_percent; 24952: 24952: 24952: 24952: CompactionStopStyle stop_style; 24952: 24952: 24952: 24952: 24952: bool allow_trivial_move; 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool incremental; 24952: 24952: 24952: CompactionOptionsUniversal() 24952: : size_ratio(1), 24952: min_merge_width(2), 24952: max_merge_width( 24952: # 88 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/universal_compaction.h" 3 4 24952: (0x7fffffff * 2U + 1U) 24952: # 88 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/universal_compaction.h" 24952: ), 24952: max_size_amplification_percent(200), 24952: compression_size_percent(-1), 24952: stop_style(kCompactionStopStyleTotalSize), 24952: allow_trivial_move(false), 24952: incremental(false) {} 24952: }; 24952: 24952: } 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: class Slice; 24952: class SliceTransform; 24952: class TablePropertiesCollectorFactory; 24952: class TableFactory; 24952: struct Options; 24952: 24952: enum CompactionStyle : char { 24952: 24952: kCompactionStyleLevel = 0x0, 24952: 24952: kCompactionStyleUniversal = 0x1, 24952: 24952: kCompactionStyleFIFO = 0x2, 24952: 24952: 24952: kCompactionStyleNone = 0x3, 24952: }; 24952: 24952: 24952: 24952: 24952: enum CompactionPri : char { 24952: 24952: kByCompensatedSize = 0x0, 24952: 24952: 24952: kOldestLargestSeqFirst = 0x1, 24952: 24952: 24952: 24952: kOldestSmallestSeqFirst = 0x2, 24952: 24952: 24952: 24952: kMinOverlappingRatio = 0x3, 24952: 24952: 24952: 24952: 24952: kRoundRobin = 0x4, 24952: }; 24952: 24952: 24952: struct CompressionOptions { 24952: # 74 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: static constexpr int kDefaultCompressionLevel = 32767; 24952: 24952: 24952: int window_bits = -14; 24952: # 89 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: int level = kDefaultCompressionLevel; 24952: 24952: 24952: int strategy = 0; 24952: # 114 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint32_t max_dict_bytes = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint32_t zstd_max_train_bytes = 0; 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint32_t parallel_threads = 1; 24952: # 143 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: bool enabled = false; 24952: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint64_t max_dict_buffer_bytes = 0; 24952: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: bool use_zstd_dict_trainer = true; 24952: # 189 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: int max_compressed_bytes_per_kb = 1024 * 7 / 8; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool checksum = false; 24952: 24952: 24952: 24952: 24952: void SetMinRatio(double min_ratio) { 24952: max_compressed_bytes_per_kb = static_cast(1024.0 / min_ratio + 0.5); 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: enum class Temperature : uint8_t { 24952: kUnknown = 0, 24952: kHot = 0x04, 24952: kWarm = 0x08, 24952: kCold = 0x0C, 24952: kLastTemperature, 24952: }; 24952: 24952: struct FileTemperatureAge { 24952: Temperature temperature = Temperature::kUnknown; 24952: uint64_t age = 0; 24952: }; 24952: 24952: struct CompactionOptionsFIFO { 24952: 24952: 24952: 24952: uint64_t max_table_files_size; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool allow_compaction = false; 24952: 24952: 24952: 24952: 24952: uint64_t age_for_warm = 0; 24952: # 265 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: std::vector file_temperature_age_thresholds{}; 24952: 24952: CompactionOptionsFIFO() : max_table_files_size(1 * 1024 * 1024 * 1024) {} 24952: CompactionOptionsFIFO(uint64_t _max_table_files_size, bool _allow_compaction) 24952: : max_table_files_size(_max_table_files_size), 24952: allow_compaction(_allow_compaction) {} 24952: }; 24952: 24952: 24952: 24952: 24952: enum class CacheTier : uint8_t { 24952: kVolatileTier = 0, 24952: kVolatileCompressedTier = 0x01, 24952: kNonVolatileBlockTier = 0x02, 24952: }; 24952: 24952: enum UpdateStatus { 24952: UPDATE_FAILED = 0, 24952: UPDATED_INPLACE = 1, 24952: UPDATED = 2, 24952: }; 24952: 24952: enum class PrepopulateBlobCache : uint8_t { 24952: kDisable = 0x0, 24952: kFlushOnly = 0x1, 24952: }; 24952: 24952: struct AdvancedColumnFamilyOptions { 24952: # 305 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: int max_write_buffer_number = 2; 24952: # 317 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: int min_write_buffer_number_to_merge = 1; 24952: # 326 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: int max_write_buffer_number_to_maintain = 0; 24952: # 373 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: int64_t max_write_buffer_size_to_maintain = 0; 24952: # 387 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: bool inplace_update_support = false; 24952: 24952: 24952: 24952: 24952: 24952: size_t inplace_update_num_locks = 10000; 24952: # 410 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: double experimental_mempurge_threshold = 0.0; 24952: # 453 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: UpdateStatus (*inplace_callback)(char* existing_value, 24952: uint32_t* existing_value_size, 24952: Slice delta_value, 24952: std::string* merged_value) = nullptr; 24952: # 472 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: double memtable_prefix_bloom_size_ratio = 0.0; 24952: # 481 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: bool memtable_whole_key_filtering = false; 24952: # 493 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: size_t memtable_huge_page_size = 0; 24952: # 514 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: std::shared_ptr 24952: memtable_insert_with_hint_prefix_extractor = nullptr; 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint32_t bloom_locality = 0; 24952: # 540 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: size_t arena_block_size = 0; 24952: # 571 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: std::vector compression_per_level; 24952: 24952: 24952: int num_levels = 7; 24952: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: int level0_slowdown_writes_trigger = 20; 24952: 24952: 24952: 24952: 24952: 24952: 24952: int level0_stop_writes_trigger = 36; 24952: # 604 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint64_t target_file_size_base = 64 * 1048576; 24952: 24952: 24952: 24952: 24952: 24952: int target_file_size_multiplier = 1; 24952: # 691 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: bool level_compaction_dynamic_level_bytes = true; 24952: # 700 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: bool level_compaction_dynamic_file_size = true; 24952: 24952: 24952: 24952: 24952: double max_bytes_for_level_multiplier = 10; 24952: # 716 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: std::vector max_bytes_for_level_multiplier_additional = 24952: std::vector(static_cast(num_levels), 1); 24952: # 726 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint64_t max_compaction_bytes = 0; 24952: # 737 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: bool ignore_max_compaction_bytes_for_input = true; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint64_t soft_pending_compaction_bytes_limit = 64 * 1073741824ull; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint64_t hard_pending_compaction_bytes_limit = 256 * 1073741824ull; 24952: 24952: 24952: CompactionStyle compaction_style = kCompactionStyleLevel; 24952: 24952: 24952: 24952: 24952: CompactionPri compaction_pri = kMinOverlappingRatio; 24952: 24952: 24952: 24952: 24952: 24952: 24952: CompactionOptionsUniversal compaction_options_universal; 24952: 24952: 24952: 24952: 24952: 24952: 24952: CompactionOptionsFIFO compaction_options_fifo; 24952: # 785 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint64_t max_sequential_skip_in_iterations = 8; 24952: 24952: 24952: 24952: 24952: std::shared_ptr memtable_factory = 24952: std::shared_ptr(new SkipListFactory); 24952: # 810 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: using TablePropertiesCollectorFactories = 24952: std::vector>; 24952: TablePropertiesCollectorFactories table_properties_collector_factories; 24952: # 825 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: size_t max_successive_merges = 0; 24952: # 841 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: bool optimize_filters_for_hits = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool check_flush_compaction_key_order = true; 24952: # 858 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: bool paranoid_file_checks = false; 24952: # 868 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: bool force_consistency_checks = true; 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool report_bg_io_stats = false; 24952: # 909 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint64_t ttl = 0xfffffffffffffffe; 24952: # 955 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint64_t periodic_compaction_seconds = 0xfffffffffffffffe; 24952: 24952: 24952: 24952: 24952: 24952: uint64_t sample_for_compression = 0; 24952: # 976 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: Temperature bottommost_temperature = Temperature::kUnknown; 24952: Temperature last_level_temperature = Temperature::kUnknown; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: Temperature default_temperature = Temperature::kUnknown; 24952: # 1002 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint64_t preclude_last_level_data_seconds = 0; 24952: # 1025 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint64_t preserve_internal_time_seconds = 0; 24952: # 1039 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: bool enable_blob_files = false; 24952: # 1051 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint64_t min_blob_size = 0; 24952: # 1060 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint64_t blob_file_size = 1ULL << 28; 24952: # 1069 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: CompressionType blob_compression_type = kNoCompression; 24952: # 1081 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: bool enable_blob_garbage_collection = false; 24952: # 1092 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: double blob_garbage_collection_age_cutoff = 0.25; 24952: # 1105 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: double blob_garbage_collection_force_threshold = 1.0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint64_t blob_compaction_readahead_size = 0; 24952: # 1127 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: int blob_file_starting_level = 0; 24952: # 1137 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: std::shared_ptr blob_cache = nullptr; 24952: # 1148 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: PrepopulateBlobCache prepopulate_blob_cache = PrepopulateBlobCache::kDisable; 24952: # 1164 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint32_t memtable_protection_bytes_per_key = 0; 24952: # 1212 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: bool persist_user_defined_timestamps = true; 24952: # 1227 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint8_t block_protection_bytes_per_key = 0; 24952: # 1239 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_options.h" 24952: uint32_t bottommost_file_compaction_delay = 0; 24952: 24952: 24952: AdvancedColumnFamilyOptions(); 24952: 24952: explicit AdvancedColumnFamilyOptions(const Options& options); 24952: 24952: 24952: }; 24952: 24952: } 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 24952: 24952: 24952: # 1 "/usr/include/c++/13/cassert" 1 3 24952: # 41 "/usr/include/c++/13/cassert" 3 24952: 24952: # 42 "/usr/include/c++/13/cassert" 3 24952: 24952: 24952: # 1 "/usr/include/assert.h" 1 3 4 24952: # 45 "/usr/include/c++/13/cassert" 2 3 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 2 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 24952: namespace rocksdb { 24952: 24952: 24952: constexpr char kUnknownFileChecksum[] = ""; 24952: 24952: constexpr char kUnknownFileChecksumFuncName[] = "Unknown"; 24952: 24952: 24952: 24952: constexpr char kStandardDbFileChecksumFuncName[] = "FileChecksumCrc32c"; 24952: 24952: struct FileChecksumGenContext { 24952: std::string file_name; 24952: 24952: 24952: 24952: 24952: std::string requested_checksum_func_name; 24952: }; 24952: # 50 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 24952: class FileChecksumGenerator { 24952: public: 24952: virtual ~FileChecksumGenerator() {} 24952: 24952: 24952: 24952: 24952: virtual void Update(const char* data, size_t n) = 0; 24952: 24952: 24952: virtual void Finalize() = 0; 24952: 24952: 24952: 24952: virtual std::string GetChecksum() const = 0; 24952: 24952: 24952: virtual const char* Name() const = 0; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class FileChecksumGenFactory : public Customizable { 24952: public: 24952: ~FileChecksumGenFactory() override {} 24952: static const char* Type() { return "FileChecksumGenFactory"; } 24952: static Status CreateFromString( 24952: const ConfigOptions& options, const std::string& value, 24952: std::shared_ptr* result); 24952: 24952: 24952: virtual std::unique_ptr CreateFileChecksumGenerator( 24952: const FileChecksumGenContext& context) = 0; 24952: 24952: 24952: const char* Name() const override = 0; 24952: }; 24952: # 101 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 24952: class FileChecksumList { 24952: public: 24952: virtual ~FileChecksumList() {} 24952: 24952: 24952: virtual void reset() = 0; 24952: 24952: 24952: virtual size_t size() const = 0; 24952: 24952: 24952: 24952: 24952: virtual Status GetAllFileChecksums( 24952: std::vector* file_numbers, std::vector* checksums, 24952: std::vector* checksum_func_names) = 0; 24952: 24952: 24952: 24952: virtual Status SearchOneFileChecksum(uint64_t file_number, 24952: std::string* checksum, 24952: std::string* checksum_func_name) = 0; 24952: 24952: 24952: virtual Status InsertOneFileChecksum( 24952: uint64_t file_number, const std::string& checksum, 24952: const std::string& checksum_func_name) = 0; 24952: 24952: 24952: virtual Status RemoveOneFileChecksum(uint64_t file_number) = 0; 24952: }; 24952: 24952: 24952: extern FileChecksumList* NewFileChecksumList(); 24952: # 143 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_checksum.h" 24952: extern std::shared_ptr 24952: GetFileChecksumGenCrc32cFactory(); 24952: 24952: } 24952: # 28 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 16 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_job_stats.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 8 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_job_stats.h" 2 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: struct CompactionJobStats { 24952: CompactionJobStats() { Reset(); } 24952: void Reset(); 24952: 24952: void Add(const CompactionJobStats& stats); 24952: 24952: 24952: uint64_t elapsed_micros; 24952: 24952: 24952: uint64_t cpu_micros; 24952: 24952: 24952: 24952: bool has_num_input_records; 24952: 24952: uint64_t num_input_records; 24952: 24952: uint64_t num_blobs_read; 24952: 24952: size_t num_input_files; 24952: 24952: size_t num_input_files_at_output_level; 24952: 24952: 24952: uint64_t num_output_records; 24952: 24952: size_t num_output_files; 24952: 24952: size_t num_output_files_blob; 24952: 24952: 24952: bool is_full_compaction; 24952: 24952: bool is_manual_compaction; 24952: 24952: 24952: uint64_t total_input_bytes; 24952: 24952: uint64_t total_blob_bytes_read; 24952: 24952: uint64_t total_output_bytes; 24952: 24952: uint64_t total_output_bytes_blob; 24952: 24952: 24952: 24952: 24952: uint64_t num_records_replaced; 24952: 24952: 24952: uint64_t total_input_raw_key_bytes; 24952: 24952: uint64_t total_input_raw_value_bytes; 24952: 24952: 24952: 24952: uint64_t num_input_deletion_records; 24952: 24952: 24952: 24952: uint64_t num_expired_deletion_records; 24952: 24952: 24952: 24952: uint64_t num_corrupt_keys; 24952: 24952: 24952: 24952: 24952: 24952: uint64_t file_write_nanos; 24952: 24952: 24952: uint64_t file_range_sync_nanos; 24952: 24952: 24952: uint64_t file_fsync_nanos; 24952: 24952: 24952: uint64_t file_prepare_write_nanos; 24952: 24952: 24952: 24952: static const size_t kMaxPrefixLength = 8; 24952: 24952: std::string smallest_output_key_prefix; 24952: std::string largest_output_key_prefix; 24952: 24952: 24952: uint64_t num_single_del_fallthru; 24952: 24952: 24952: uint64_t num_single_del_mismatch; 24952: 24952: 24952: }; 24952: } 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 2 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h" 1 24952: 24952: 24952: 24952: 24952: 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h" 24952: namespace rocksdb { 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h" 24952: using UserCollectedProperties = std::map; 24952: 24952: 24952: struct TablePropertiesNames { 24952: static const std::string kDbId; 24952: static const std::string kDbSessionId; 24952: static const std::string kDbHostId; 24952: static const std::string kOriginalFileNumber; 24952: static const std::string kDataSize; 24952: static const std::string kIndexSize; 24952: static const std::string kIndexPartitions; 24952: static const std::string kTopLevelIndexSize; 24952: static const std::string kIndexKeyIsUserKey; 24952: static const std::string kIndexValueIsDeltaEncoded; 24952: static const std::string kFilterSize; 24952: static const std::string kRawKeySize; 24952: static const std::string kRawValueSize; 24952: static const std::string kNumDataBlocks; 24952: static const std::string kNumEntries; 24952: static const std::string kNumFilterEntries; 24952: static const std::string kDeletedKeys; 24952: static const std::string kMergeOperands; 24952: static const std::string kNumRangeDeletions; 24952: static const std::string kFormatVersion; 24952: static const std::string kFixedKeyLen; 24952: static const std::string kFilterPolicy; 24952: static const std::string kColumnFamilyName; 24952: static const std::string kColumnFamilyId; 24952: static const std::string kComparator; 24952: static const std::string kMergeOperator; 24952: static const std::string kPrefixExtractorName; 24952: static const std::string kPropertyCollectors; 24952: static const std::string kCompression; 24952: static const std::string kCompressionOptions; 24952: static const std::string kCreationTime; 24952: static const std::string kOldestKeyTime; 24952: static const std::string kFileCreationTime; 24952: static const std::string kSlowCompressionEstimatedDataSize; 24952: static const std::string kFastCompressionEstimatedDataSize; 24952: static const std::string kSequenceNumberTimeMapping; 24952: static const std::string kTailStartOffset; 24952: static const std::string kUserDefinedTimestampsPersisted; 24952: }; 24952: # 90 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h" 24952: class TablePropertiesCollector { 24952: public: 24952: virtual ~TablePropertiesCollector() {} 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Add(const Slice& , const Slice& ) { 24952: return Status::InvalidArgument( 24952: "TablePropertiesCollector::Add() deprecated."); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual Status AddUserKey(const Slice& key, const Slice& value, 24952: EntryType , SequenceNumber , 24952: uint64_t ) { 24952: 24952: return Add(key, value); 24952: } 24952: 24952: 24952: virtual void BlockAdd(uint64_t , 24952: uint64_t , 24952: uint64_t ) { 24952: 24952: return; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Finish(UserCollectedProperties* properties) = 0; 24952: 24952: 24952: 24952: 24952: virtual UserCollectedProperties GetReadableProperties() const = 0; 24952: 24952: 24952: virtual const char* Name() const = 0; 24952: 24952: 24952: virtual bool NeedCompact() const { return false; } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class TablePropertiesCollectorFactory : public Customizable { 24952: public: 24952: struct Context { 24952: uint32_t column_family_id; 24952: 24952: 24952: int level_at_creation = kUnknownLevelAtCreation; 24952: static const uint32_t kUnknownColumnFamily; 24952: static const int kUnknownLevelAtCreation = -1; 24952: }; 24952: 24952: ~TablePropertiesCollectorFactory() override {} 24952: static const char* Type() { return "TablePropertiesCollectorFactory"; } 24952: static Status CreateFromString( 24952: const ConfigOptions& options, const std::string& value, 24952: std::shared_ptr* result); 24952: 24952: 24952: virtual TablePropertiesCollector* CreateTablePropertiesCollector( 24952: TablePropertiesCollectorFactory::Context context) = 0; 24952: 24952: 24952: const char* Name() const override = 0; 24952: 24952: 24952: 24952: 24952: virtual std::string ToString() const { return Name(); } 24952: }; 24952: 24952: 24952: 24952: struct TableProperties { 24952: public: 24952: 24952: 24952: uint64_t orig_file_number = 0; 24952: 24952: uint64_t data_size = 0; 24952: 24952: uint64_t index_size = 0; 24952: 24952: uint64_t index_partitions = 0; 24952: 24952: uint64_t top_level_index_size = 0; 24952: 24952: 24952: uint64_t index_key_is_user_key = 0; 24952: 24952: uint64_t index_value_is_delta_encoded = 0; 24952: 24952: uint64_t filter_size = 0; 24952: 24952: uint64_t raw_key_size = 0; 24952: 24952: uint64_t raw_value_size = 0; 24952: 24952: uint64_t num_data_blocks = 0; 24952: 24952: uint64_t num_entries = 0; 24952: 24952: uint64_t num_filter_entries = 0; 24952: 24952: uint64_t num_deletions = 0; 24952: 24952: uint64_t num_merge_operands = 0; 24952: 24952: uint64_t num_range_deletions = 0; 24952: 24952: uint64_t format_version = 0; 24952: 24952: uint64_t fixed_key_len = 0; 24952: 24952: 24952: uint64_t column_family_id = rocksdb:: 24952: TablePropertiesCollectorFactory::Context::kUnknownColumnFamily; 24952: # 239 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h" 24952: uint64_t creation_time = 0; 24952: 24952: 24952: uint64_t oldest_key_time = 0; 24952: 24952: uint64_t file_creation_time = 0; 24952: 24952: 24952: 24952: uint64_t slow_compression_estimated_data_size = 0; 24952: 24952: 24952: 24952: uint64_t fast_compression_estimated_data_size = 0; 24952: 24952: 24952: 24952: uint64_t external_sst_file_global_seqno_offset = 0; 24952: 24952: 24952: 24952: uint64_t tail_start_offset = 0; 24952: 24952: 24952: 24952: 24952: uint64_t user_defined_timestamps_persisted = 1; 24952: 24952: 24952: 24952: 24952: std::string db_id; 24952: 24952: 24952: 24952: 24952: 24952: std::string db_session_id; 24952: 24952: 24952: 24952: 24952: 24952: std::string db_host_id; 24952: 24952: 24952: 24952: std::string column_family_name; 24952: 24952: 24952: 24952: std::string filter_policy_name; 24952: 24952: 24952: std::string comparator_name; 24952: 24952: 24952: 24952: std::string merge_operator_name; 24952: 24952: 24952: 24952: std::string prefix_extractor_name; 24952: 24952: 24952: 24952: 24952: std::string property_collectors_names; 24952: 24952: 24952: std::string compression_name; 24952: 24952: 24952: std::string compression_options; 24952: 24952: 24952: std::string seqno_to_time_mapping; 24952: 24952: 24952: UserCollectedProperties user_collected_properties; 24952: UserCollectedProperties readable_properties; 24952: 24952: 24952: 24952: std::string ToString(const std::string& prop_delim = "; ", 24952: const std::string& kv_delim = "=") const; 24952: 24952: 24952: 24952: void Add(const TableProperties& tp); 24952: 24952: 24952: 24952: 24952: std::map GetAggregatablePropertiesAsMap() const; 24952: 24952: 24952: 24952: std::size_t ApproximateMemoryUsage() const; 24952: }; 24952: # 348 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_properties.h" 24952: extern uint64_t GetDeletedKeys(const UserCollectedProperties& props); 24952: extern uint64_t GetMergeOperands(const UserCollectedProperties& props, 24952: bool* property_present); 24952: 24952: } 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 2 24952: 24952: 24952: namespace rocksdb { 24952: 24952: using TablePropertiesCollection = 24952: std::unordered_map>; 24952: 24952: class DB; 24952: class ColumnFamilyHandle; 24952: class Status; 24952: struct CompactionJobStats; 24952: 24952: struct FileCreationBriefInfo { 24952: FileCreationBriefInfo() = default; 24952: FileCreationBriefInfo(const std::string& _db_name, 24952: const std::string& _cf_name, 24952: const std::string& _file_path, int _job_id) 24952: : db_name(_db_name), 24952: cf_name(_cf_name), 24952: file_path(_file_path), 24952: job_id(_job_id) {} 24952: 24952: std::string db_name; 24952: 24952: std::string cf_name; 24952: 24952: std::string file_path; 24952: 24952: 24952: int job_id = 0; 24952: }; 24952: 24952: struct TableFileCreationBriefInfo : public FileCreationBriefInfo { 24952: 24952: TableFileCreationReason reason; 24952: }; 24952: 24952: struct TableFileCreationInfo : public TableFileCreationBriefInfo { 24952: TableFileCreationInfo() = default; 24952: explicit TableFileCreationInfo(TableProperties&& prop) 24952: : table_properties(prop) {} 24952: 24952: uint64_t file_size; 24952: 24952: TableProperties table_properties; 24952: 24952: Status status; 24952: 24952: std::string file_checksum; 24952: 24952: std::string file_checksum_func_name; 24952: }; 24952: 24952: struct BlobFileCreationBriefInfo : public FileCreationBriefInfo { 24952: BlobFileCreationBriefInfo(const std::string& _db_name, 24952: const std::string& _cf_name, 24952: const std::string& _file_path, int _job_id, 24952: BlobFileCreationReason _reason) 24952: : FileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id), 24952: reason(_reason) {} 24952: 24952: BlobFileCreationReason reason; 24952: }; 24952: 24952: struct BlobFileCreationInfo : public BlobFileCreationBriefInfo { 24952: BlobFileCreationInfo(const std::string& _db_name, const std::string& _cf_name, 24952: const std::string& _file_path, int _job_id, 24952: BlobFileCreationReason _reason, 24952: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 24952: Status _status, const std::string& _file_checksum, 24952: const std::string& _file_checksum_func_name) 24952: : BlobFileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id, 24952: _reason), 24952: total_blob_count(_total_blob_count), 24952: total_blob_bytes(_total_blob_bytes), 24952: status(_status), 24952: file_checksum(_file_checksum), 24952: file_checksum_func_name(_file_checksum_func_name) {} 24952: 24952: 24952: uint64_t total_blob_count; 24952: 24952: uint64_t total_blob_bytes; 24952: 24952: Status status; 24952: 24952: std::string file_checksum; 24952: 24952: std::string file_checksum_func_name; 24952: }; 24952: 24952: enum class CompactionReason : int { 24952: kUnknown = 0, 24952: 24952: kLevelL0FilesNum, 24952: 24952: kLevelMaxLevelSize, 24952: 24952: kUniversalSizeAmplification, 24952: 24952: kUniversalSizeRatio, 24952: 24952: kUniversalSortedRunNum, 24952: 24952: kFIFOMaxSize, 24952: 24952: kFIFOReduceNumFiles, 24952: 24952: kFIFOTtl, 24952: 24952: kManualCompaction, 24952: 24952: kFilesMarkedForCompaction, 24952: 24952: 24952: kBottommostFiles, 24952: 24952: kTtl, 24952: 24952: 24952: kFlush, 24952: 24952: 24952: 24952: 24952: kExternalSstIngestion, 24952: 24952: kPeriodicCompaction, 24952: 24952: kChangeTemperature, 24952: 24952: kForcedBlobGC, 24952: 24952: 24952: kRoundRobinTtl, 24952: 24952: 24952: kRefitLevel, 24952: 24952: kNumOfReasons, 24952: }; 24952: 24952: const char* GetCompactionReasonString(CompactionReason compaction_reason); 24952: 24952: 24952: enum class FlushReason : int { 24952: kOthers = 0x00, 24952: kGetLiveFiles = 0x01, 24952: kShutDown = 0x02, 24952: kExternalFileIngestion = 0x03, 24952: kManualCompaction = 0x04, 24952: kWriteBufferManager = 0x05, 24952: kWriteBufferFull = 0x06, 24952: kTest = 0x07, 24952: kDeleteFiles = 0x08, 24952: kAutoCompaction = 0x09, 24952: kManualFlush = 0x0a, 24952: kErrorRecovery = 0xb, 24952: 24952: 24952: kErrorRecoveryRetryFlush = 0xc, 24952: kWalFull = 0xd, 24952: 24952: kCatchUpAfterErrorRecovery = 0xe, 24952: }; 24952: 24952: const char* GetFlushReasonString(FlushReason flush_reason); 24952: 24952: 24952: 24952: 24952: 24952: enum class BackgroundErrorReason { 24952: kFlush, 24952: kCompaction, 24952: kWriteCallback, 24952: kMemTable, 24952: kManifestWrite, 24952: kFlushNoWAL, 24952: kManifestWriteNoWAL, 24952: }; 24952: 24952: struct WriteStallInfo { 24952: 24952: std::string cf_name; 24952: 24952: struct { 24952: WriteStallCondition cur; 24952: WriteStallCondition prev; 24952: } condition; 24952: }; 24952: 24952: 24952: struct FileDeletionInfo { 24952: FileDeletionInfo() = default; 24952: 24952: FileDeletionInfo(const std::string& _db_name, const std::string& _file_path, 24952: int _job_id, Status _status) 24952: : db_name(_db_name), 24952: file_path(_file_path), 24952: job_id(_job_id), 24952: status(_status) {} 24952: 24952: std::string db_name; 24952: 24952: std::string file_path; 24952: 24952: int job_id = 0; 24952: 24952: Status status; 24952: }; 24952: 24952: struct TableFileDeletionInfo : public FileDeletionInfo {}; 24952: 24952: struct BlobFileDeletionInfo : public FileDeletionInfo { 24952: BlobFileDeletionInfo(const std::string& _db_name, 24952: const std::string& _file_path, int _job_id, 24952: Status _status) 24952: : FileDeletionInfo(_db_name, _file_path, _job_id, _status) {} 24952: }; 24952: 24952: enum class FileOperationType { 24952: kRead, 24952: kWrite, 24952: kTruncate, 24952: kClose, 24952: kFlush, 24952: kSync, 24952: kFsync, 24952: kRangeSync, 24952: kAppend, 24952: kPositionedAppend, 24952: kOpen 24952: }; 24952: 24952: struct FileOperationInfo { 24952: using Duration = std::chrono::nanoseconds; 24952: using SteadyTimePoint = 24952: std::chrono::time_point; 24952: using SystemTimePoint = 24952: std::chrono::time_point; 24952: using StartTimePoint = std::pair; 24952: using FinishTimePoint = SteadyTimePoint; 24952: 24952: FileOperationType type; 24952: const std::string& path; 24952: 24952: 24952: Temperature temperature; 24952: uint64_t offset; 24952: size_t length; 24952: const Duration duration; 24952: const SystemTimePoint& start_ts; 24952: Status status; 24952: 24952: FileOperationInfo(const FileOperationType _type, const std::string& _path, 24952: const StartTimePoint& _start_ts, 24952: const FinishTimePoint& _finish_ts, const Status& _status, 24952: const Temperature _temperature = Temperature::kUnknown) 24952: : type(_type), 24952: path(_path), 24952: temperature(_temperature), 24952: duration(std::chrono::duration_cast( 24952: _finish_ts - _start_ts.second)), 24952: start_ts(_start_ts.first), 24952: status(_status) {} 24952: static StartTimePoint StartNow() { 24952: return std::make_pair( 24952: std::chrono::system_clock::now(), std::chrono::steady_clock::now()); 24952: } 24952: static FinishTimePoint FinishNow() { 24952: return std::chrono::steady_clock::now(); 24952: } 24952: }; 24952: 24952: struct BlobFileInfo { 24952: BlobFileInfo(const std::string& _blob_file_path, 24952: const uint64_t _blob_file_number) 24952: : blob_file_path(_blob_file_path), blob_file_number(_blob_file_number) {} 24952: 24952: std::string blob_file_path; 24952: uint64_t blob_file_number; 24952: }; 24952: 24952: struct BlobFileAdditionInfo : public BlobFileInfo { 24952: BlobFileAdditionInfo(const std::string& _blob_file_path, 24952: const uint64_t _blob_file_number, 24952: const uint64_t _total_blob_count, 24952: const uint64_t _total_blob_bytes) 24952: : BlobFileInfo(_blob_file_path, _blob_file_number), 24952: total_blob_count(_total_blob_count), 24952: total_blob_bytes(_total_blob_bytes) {} 24952: uint64_t total_blob_count; 24952: uint64_t total_blob_bytes; 24952: }; 24952: 24952: struct BlobFileGarbageInfo : public BlobFileInfo { 24952: BlobFileGarbageInfo(const std::string& _blob_file_path, 24952: const uint64_t _blob_file_number, 24952: const uint64_t _garbage_blob_count, 24952: const uint64_t _garbage_blob_bytes) 24952: : BlobFileInfo(_blob_file_path, _blob_file_number), 24952: garbage_blob_count(_garbage_blob_count), 24952: garbage_blob_bytes(_garbage_blob_bytes) {} 24952: uint64_t garbage_blob_count; 24952: uint64_t garbage_blob_bytes; 24952: }; 24952: 24952: struct FlushJobInfo { 24952: 24952: uint32_t cf_id; 24952: 24952: std::string cf_name; 24952: 24952: std::string file_path; 24952: 24952: uint64_t file_number; 24952: 24952: uint64_t oldest_blob_file_number; 24952: 24952: uint64_t thread_id; 24952: 24952: int job_id; 24952: 24952: 24952: 24952: 24952: bool triggered_writes_slowdown; 24952: 24952: 24952: 24952: 24952: bool triggered_writes_stop; 24952: 24952: SequenceNumber smallest_seqno; 24952: 24952: SequenceNumber largest_seqno; 24952: 24952: TableProperties table_properties; 24952: 24952: FlushReason flush_reason; 24952: 24952: 24952: CompressionType blob_compression_type; 24952: 24952: 24952: std::vector blob_file_addition_infos; 24952: }; 24952: 24952: struct CompactionFileInfo { 24952: 24952: int level; 24952: 24952: 24952: uint64_t file_number; 24952: 24952: 24952: uint64_t oldest_blob_file_number; 24952: }; 24952: 24952: struct SubcompactionJobInfo { 24952: ~SubcompactionJobInfo() { status.PermitUncheckedError(); } 24952: 24952: uint32_t cf_id; 24952: 24952: std::string cf_name; 24952: 24952: Status status; 24952: 24952: uint64_t thread_id; 24952: 24952: int job_id; 24952: 24952: 24952: 24952: 24952: 24952: int subcompaction_job_id; 24952: 24952: int base_input_level; 24952: 24952: int output_level; 24952: 24952: 24952: CompactionReason compaction_reason; 24952: 24952: 24952: CompressionType compression; 24952: 24952: 24952: CompactionJobStats stats; 24952: 24952: 24952: CompressionType blob_compression_type; 24952: }; 24952: 24952: struct CompactionJobInfo { 24952: ~CompactionJobInfo() { status.PermitUncheckedError(); } 24952: 24952: uint32_t cf_id; 24952: 24952: std::string cf_name; 24952: 24952: Status status; 24952: 24952: uint64_t thread_id; 24952: 24952: int job_id; 24952: 24952: 24952: int base_input_level; 24952: 24952: int output_level; 24952: # 443 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: std::vector input_files; 24952: 24952: 24952: std::vector input_file_infos; 24952: 24952: 24952: std::vector output_files; 24952: 24952: 24952: std::vector output_file_infos; 24952: 24952: 24952: 24952: TablePropertiesCollection table_properties; 24952: 24952: 24952: CompactionReason compaction_reason; 24952: 24952: 24952: CompressionType compression; 24952: 24952: 24952: CompactionJobStats stats; 24952: 24952: 24952: CompressionType blob_compression_type; 24952: 24952: 24952: 24952: std::vector blob_file_addition_infos; 24952: 24952: 24952: 24952: std::vector blob_file_garbage_infos; 24952: }; 24952: 24952: struct MemTableInfo { 24952: 24952: std::string cf_name; 24952: 24952: 24952: SequenceNumber first_seqno; 24952: 24952: 24952: 24952: 24952: SequenceNumber earliest_seqno; 24952: 24952: uint64_t num_entries; 24952: 24952: uint64_t num_deletes; 24952: }; 24952: 24952: struct ExternalFileIngestionInfo { 24952: 24952: std::string cf_name; 24952: 24952: std::string external_file_path; 24952: 24952: std::string internal_file_path; 24952: 24952: SequenceNumber global_seqno; 24952: 24952: TableProperties table_properties; 24952: }; 24952: 24952: 24952: struct BackgroundErrorRecoveryInfo { 24952: 24952: Status old_bg_error; 24952: 24952: 24952: 24952: Status new_bg_error; 24952: }; 24952: 24952: struct IOErrorInfo { 24952: IOErrorInfo(const IOStatus& _io_status, FileOperationType _operation, 24952: const std::string& _file_path, size_t _length, uint64_t _offset) 24952: : io_status(_io_status), 24952: operation(_operation), 24952: file_path(_file_path), 24952: length(_length), 24952: offset(_offset) {} 24952: 24952: IOStatus io_status; 24952: FileOperationType operation; 24952: std::string file_path; 24952: size_t length; 24952: uint64_t offset; 24952: }; 24952: # 566 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: class EventListener : public Customizable { 24952: public: 24952: static const char* Type() { return "EventListener"; } 24952: static Status CreateFromString(const ConfigOptions& options, 24952: const std::string& id, 24952: std::shared_ptr* result); 24952: const char* Name() const override { 24952: 24952: 24952: return ""; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void OnFlushCompleted(DB* , 24952: const FlushJobInfo& ) {} 24952: # 594 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: virtual void OnFlushBegin(DB* , 24952: const FlushJobInfo& ) {} 24952: # 608 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: virtual void OnTableFileDeleted(const TableFileDeletionInfo& ) {} 24952: # 617 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: virtual void OnCompactionBegin(DB* , const CompactionJobInfo& ) {} 24952: # 632 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: virtual void OnCompactionCompleted(DB* , 24952: const CompactionJobInfo& ) {} 24952: # 652 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: virtual void OnSubcompactionBegin(const SubcompactionJobInfo& ) {} 24952: # 670 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: virtual void OnSubcompactionCompleted(const SubcompactionJobInfo& ) {} 24952: # 687 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: virtual void OnTableFileCreated(const TableFileCreationInfo& ) {} 24952: # 696 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: virtual void OnTableFileCreationStarted( 24952: const TableFileCreationBriefInfo& ) {} 24952: # 709 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: virtual void OnMemTableSealed(const MemTableInfo& ) {} 24952: # 719 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: virtual void OnColumnFamilyHandleDeletionStarted( 24952: ColumnFamilyHandle* ) {} 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void OnExternalFileIngested( 24952: DB* , const ExternalFileIngestionInfo& ) {} 24952: # 742 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: virtual void OnBackgroundError(BackgroundErrorReason , 24952: Status* ) {} 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void OnStallConditionsChanged(const WriteStallInfo& ) {} 24952: 24952: 24952: 24952: virtual void OnFileReadFinish(const FileOperationInfo& ) {} 24952: 24952: 24952: 24952: virtual void OnFileWriteFinish(const FileOperationInfo& ) {} 24952: 24952: 24952: 24952: virtual void OnFileFlushFinish(const FileOperationInfo& ) {} 24952: 24952: 24952: 24952: virtual void OnFileSyncFinish(const FileOperationInfo& ) {} 24952: 24952: 24952: 24952: virtual void OnFileRangeSyncFinish(const FileOperationInfo& ) {} 24952: 24952: 24952: 24952: virtual void OnFileTruncateFinish(const FileOperationInfo& ) {} 24952: 24952: 24952: 24952: virtual void OnFileCloseFinish(const FileOperationInfo& ) {} 24952: 24952: 24952: 24952: virtual bool ShouldBeNotifiedOnFileIO() { return false; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void OnErrorRecoveryBegin(BackgroundErrorReason , 24952: Status , 24952: bool* ) {} 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void OnErrorRecoveryCompleted(Status old_bg_error) { 24952: old_bg_error.PermitUncheckedError(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void OnErrorRecoveryEnd(const BackgroundErrorRecoveryInfo& ) { 24952: } 24952: # 818 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: virtual void OnBlobFileCreationStarted( 24952: const BlobFileCreationBriefInfo& ) {} 24952: # 829 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/listener.h" 24952: virtual void OnBlobFileCreated(const BlobFileCreationInfo& ) {} 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void OnBlobFileDeleted(const BlobFileDeletionInfo& ) {} 24952: 24952: 24952: 24952: virtual void OnIOError(const IOErrorInfo& ) {} 24952: 24952: ~EventListener() override {} 24952: }; 24952: 24952: 24952: } 24952: # 29 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_partitioner.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 16 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_partitioner.h" 24952: namespace rocksdb { 24952: 24952: class Slice; 24952: 24952: enum PartitionerResult : char { 24952: 24952: kNotRequired = 0x0, 24952: 24952: kRequired = 0x1 24952: 24952: }; 24952: 24952: struct PartitionerRequest { 24952: PartitionerRequest(const Slice& prev_user_key_, 24952: const Slice& current_user_key_, 24952: uint64_t current_output_file_size_) 24952: : prev_user_key(&prev_user_key_), 24952: current_user_key(¤t_user_key_), 24952: current_output_file_size(current_output_file_size_) {} 24952: const Slice* prev_user_key; 24952: const Slice* current_user_key; 24952: uint64_t current_output_file_size; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class SstPartitioner { 24952: public: 24952: virtual ~SstPartitioner() {} 24952: 24952: 24952: virtual const char* Name() const = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual PartitionerResult ShouldPartition( 24952: const PartitionerRequest& request) = 0; 24952: 24952: 24952: 24952: virtual bool CanDoTrivialMove(const Slice& smallest_user_key, 24952: const Slice& largest_user_key) = 0; 24952: 24952: 24952: struct Context { 24952: 24952: bool is_full_compaction; 24952: 24952: 24952: bool is_manual_compaction; 24952: 24952: int output_level; 24952: 24952: Slice smallest_user_key; 24952: 24952: Slice largest_user_key; 24952: }; 24952: }; 24952: 24952: 24952: 24952: 24952: class SstPartitionerFactory : public Customizable { 24952: public: 24952: ~SstPartitionerFactory() override {} 24952: static const char* Type() { return "SstPartitionerFactory"; } 24952: static Status CreateFromString( 24952: const ConfigOptions& options, const std::string& value, 24952: std::shared_ptr* result); 24952: 24952: virtual std::unique_ptr CreatePartitioner( 24952: const SstPartitioner::Context& context) const = 0; 24952: 24952: 24952: const char* Name() const override = 0; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: class SstPartitionerFixedPrefix : public SstPartitioner { 24952: public: 24952: explicit SstPartitionerFixedPrefix(size_t len) : len_(len) {} 24952: 24952: virtual ~SstPartitionerFixedPrefix() override {} 24952: 24952: const char* Name() const override { return "SstPartitionerFixedPrefix"; } 24952: 24952: PartitionerResult ShouldPartition(const PartitionerRequest& request) override; 24952: 24952: bool CanDoTrivialMove(const Slice& smallest_user_key, 24952: const Slice& largest_user_key) override; 24952: 24952: private: 24952: size_t len_; 24952: }; 24952: 24952: 24952: 24952: 24952: class SstPartitionerFixedPrefixFactory : public SstPartitionerFactory { 24952: public: 24952: explicit SstPartitionerFixedPrefixFactory(size_t len); 24952: 24952: ~SstPartitionerFixedPrefixFactory() override {} 24952: 24952: static const char* kClassName() { return "SstPartitionerFixedPrefixFactory"; } 24952: const char* Name() const override { return kClassName(); } 24952: 24952: std::unique_ptr CreatePartitioner( 24952: const SstPartitioner::Context& ) const override; 24952: 24952: private: 24952: size_t len_; 24952: }; 24952: 24952: extern std::shared_ptr 24952: NewSstPartitionerFixedPrefixFactory(size_t prefix_len); 24952: 24952: } 24952: # 30 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/version.h" 1 24952: 24952: 24952: 24952: 24952: 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/version.h" 24952: namespace rocksdb { 24952: 24952: 24952: const std::unordered_map& GetRocksBuildProperties(); 24952: 24952: 24952: 24952: 24952: std::string GetRocksVersionAsString(bool with_patch = true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: std::string GetRocksBuildInfoAsString(const std::string& program, 24952: bool verbose = false); 24952: } 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 1 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/condition_variable" 1 3 24952: # 32 "/usr/include/c++/13/condition_variable" 3 24952: 24952: # 33 "/usr/include/c++/13/condition_variable" 3 24952: # 54 "/usr/include/c++/13/condition_variable" 3 24952: 24952: # 54 "/usr/include/c++/13/condition_variable" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: # 67 "/usr/include/c++/13/condition_variable" 3 24952: enum class cv_status { no_timeout, timeout }; 24952: 24952: 24952: class condition_variable 24952: { 24952: using steady_clock = chrono::steady_clock; 24952: using system_clock = chrono::system_clock; 24952: 24952: using __clock_t = steady_clock; 24952: 24952: 24952: 24952: 24952: __condvar _M_cond; 24952: 24952: public: 24952: typedef __gthread_cond_t* native_handle_type; 24952: 24952: condition_variable() noexcept; 24952: ~condition_variable() noexcept; 24952: 24952: condition_variable(const condition_variable&) = delete; 24952: condition_variable& operator=(const condition_variable&) = delete; 24952: 24952: void 24952: notify_one() noexcept; 24952: 24952: void 24952: notify_all() noexcept; 24952: 24952: void 24952: wait(unique_lock& __lock); 24952: 24952: template 24952: void 24952: wait(unique_lock& __lock, _Predicate __p) 24952: { 24952: while (!__p()) 24952: wait(__lock); 24952: } 24952: 24952: 24952: template 24952: cv_status 24952: wait_until(unique_lock& __lock, 24952: const chrono::time_point& __atime) 24952: { return __wait_until_impl(__lock, __atime); } 24952: 24952: 24952: template 24952: cv_status 24952: wait_until(unique_lock& __lock, 24952: const chrono::time_point& __atime) 24952: { return __wait_until_impl(__lock, __atime); } 24952: 24952: template 24952: cv_status 24952: wait_until(unique_lock& __lock, 24952: const chrono::time_point<_Clock, _Duration>& __atime) 24952: { 24952: 24952: 24952: 24952: using __s_dur = typename __clock_t::duration; 24952: const typename _Clock::time_point __c_entry = _Clock::now(); 24952: const __clock_t::time_point __s_entry = __clock_t::now(); 24952: const auto __delta = __atime - __c_entry; 24952: const auto __s_atime = __s_entry + 24952: chrono::__detail::ceil<__s_dur>(__delta); 24952: 24952: if (__wait_until_impl(__lock, __s_atime) == cv_status::no_timeout) 24952: return cv_status::no_timeout; 24952: 24952: 24952: 24952: if (_Clock::now() < __atime) 24952: return cv_status::no_timeout; 24952: return cv_status::timeout; 24952: } 24952: 24952: template 24952: bool 24952: wait_until(unique_lock& __lock, 24952: const chrono::time_point<_Clock, _Duration>& __atime, 24952: _Predicate __p) 24952: { 24952: while (!__p()) 24952: if (wait_until(__lock, __atime) == cv_status::timeout) 24952: return __p(); 24952: return true; 24952: } 24952: 24952: template 24952: cv_status 24952: wait_for(unique_lock& __lock, 24952: const chrono::duration<_Rep, _Period>& __rtime) 24952: { 24952: using __dur = typename steady_clock::duration; 24952: return wait_until(__lock, 24952: steady_clock::now() + 24952: chrono::__detail::ceil<__dur>(__rtime)); 24952: } 24952: 24952: template 24952: bool 24952: wait_for(unique_lock& __lock, 24952: const chrono::duration<_Rep, _Period>& __rtime, 24952: _Predicate __p) 24952: { 24952: using __dur = typename steady_clock::duration; 24952: return wait_until(__lock, 24952: steady_clock::now() + 24952: chrono::__detail::ceil<__dur>(__rtime), 24952: std::move(__p)); 24952: } 24952: 24952: native_handle_type 24952: native_handle() 24952: { return _M_cond.native_handle(); } 24952: 24952: private: 24952: 24952: template 24952: cv_status 24952: __wait_until_impl(unique_lock& __lock, 24952: const chrono::time_point& __atime) 24952: { 24952: auto __s = chrono::time_point_cast(__atime); 24952: auto __ns = chrono::duration_cast(__atime - __s); 24952: 24952: __gthread_time_t __ts = 24952: { 24952: static_cast(__s.time_since_epoch().count()), 24952: static_cast(__ns.count()) 24952: }; 24952: 24952: _M_cond.wait_until(*__lock.mutex(), 1, __ts); 24952: 24952: return (steady_clock::now() < __atime 24952: ? cv_status::no_timeout : cv_status::timeout); 24952: } 24952: 24952: 24952: template 24952: cv_status 24952: __wait_until_impl(unique_lock& __lock, 24952: const chrono::time_point& __atime) 24952: { 24952: auto __s = chrono::time_point_cast(__atime); 24952: auto __ns = chrono::duration_cast(__atime - __s); 24952: 24952: __gthread_time_t __ts = 24952: { 24952: static_cast(__s.time_since_epoch().count()), 24952: static_cast(__ns.count()) 24952: }; 24952: 24952: _M_cond.wait_until(*__lock.mutex(), __ts); 24952: 24952: return (system_clock::now() < __atime 24952: ? cv_status::no_timeout : cv_status::timeout); 24952: } 24952: }; 24952: 24952: void 24952: notify_all_at_thread_exit(condition_variable&, unique_lock); 24952: 24952: struct __at_thread_exit_elt 24952: { 24952: __at_thread_exit_elt* _M_next; 24952: void (*_M_cb)(void*); 24952: }; 24952: 24952: inline namespace _V2 { 24952: 24952: 24952: 24952: class condition_variable_any 24952: { 24952: 24952: using __clock_t = chrono::steady_clock; 24952: 24952: 24952: 24952: condition_variable _M_cond; 24952: shared_ptr _M_mutex; 24952: 24952: 24952: template 24952: struct _Unlock 24952: { 24952: explicit _Unlock(_Lock& __lk) : _M_lock(__lk) { __lk.unlock(); } 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: ~_Unlock() noexcept(false) 24952: { 24952: if (uncaught_exception()) 24952: { 24952: try 24952: { _M_lock.lock(); } 24952: catch(const __cxxabiv1::__forced_unwind&) 24952: { throw; } 24952: catch(...) 24952: { } 24952: } 24952: else 24952: _M_lock.lock(); 24952: } 24952: #pragma GCC diagnostic pop 24952: 24952: _Unlock(const _Unlock&) = delete; 24952: _Unlock& operator=(const _Unlock&) = delete; 24952: 24952: _Lock& _M_lock; 24952: }; 24952: 24952: public: 24952: condition_variable_any() : _M_mutex(std::make_shared()) { } 24952: ~condition_variable_any() = default; 24952: 24952: condition_variable_any(const condition_variable_any&) = delete; 24952: condition_variable_any& operator=(const condition_variable_any&) = delete; 24952: 24952: void 24952: notify_one() noexcept 24952: { 24952: lock_guard __lock(*_M_mutex); 24952: _M_cond.notify_one(); 24952: } 24952: 24952: void 24952: notify_all() noexcept 24952: { 24952: lock_guard __lock(*_M_mutex); 24952: _M_cond.notify_all(); 24952: } 24952: 24952: template 24952: void 24952: wait(_Lock& __lock) 24952: { 24952: shared_ptr __mutex = _M_mutex; 24952: unique_lock __my_lock(*__mutex); 24952: _Unlock<_Lock> __unlock(__lock); 24952: 24952: 24952: unique_lock __my_lock2(std::move(__my_lock)); 24952: _M_cond.wait(__my_lock2); 24952: } 24952: 24952: 24952: template 24952: void 24952: wait(_Lock& __lock, _Predicate __p) 24952: { 24952: while (!__p()) 24952: wait(__lock); 24952: } 24952: 24952: template 24952: cv_status 24952: wait_until(_Lock& __lock, 24952: const chrono::time_point<_Clock, _Duration>& __atime) 24952: { 24952: shared_ptr __mutex = _M_mutex; 24952: unique_lock __my_lock(*__mutex); 24952: _Unlock<_Lock> __unlock(__lock); 24952: 24952: 24952: unique_lock __my_lock2(std::move(__my_lock)); 24952: return _M_cond.wait_until(__my_lock2, __atime); 24952: } 24952: 24952: template 24952: bool 24952: wait_until(_Lock& __lock, 24952: const chrono::time_point<_Clock, _Duration>& __atime, 24952: _Predicate __p) 24952: { 24952: while (!__p()) 24952: if (wait_until(__lock, __atime) == cv_status::timeout) 24952: return __p(); 24952: return true; 24952: } 24952: 24952: template 24952: cv_status 24952: wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime) 24952: { return wait_until(__lock, __clock_t::now() + __rtime); } 24952: 24952: template 24952: bool 24952: wait_for(_Lock& __lock, 24952: const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) 24952: { return wait_until(__lock, __clock_t::now() + __rtime, std::move(__p)); } 24952: # 443 "/usr/include/c++/13/condition_variable" 3 24952: }; 24952: 24952: } 24952: 24952: 24952: 24952: } 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 2 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 23 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 24952: namespace rocksdb { 24952: class CacheReservationManager; 24952: 24952: 24952: 24952: class StallInterface { 24952: public: 24952: virtual ~StallInterface() {} 24952: 24952: virtual void Block() = 0; 24952: 24952: virtual void Signal() = 0; 24952: }; 24952: 24952: class WriteBufferManager final { 24952: public: 24952: # 50 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 24952: explicit WriteBufferManager(size_t _buffer_size, 24952: std::shared_ptr cache = {}, 24952: bool allow_stall = false); 24952: 24952: WriteBufferManager(const WriteBufferManager&) = delete; 24952: WriteBufferManager& operator=(const WriteBufferManager&) = delete; 24952: 24952: ~WriteBufferManager(); 24952: 24952: 24952: 24952: bool enabled() const { return buffer_size() > 0; } 24952: 24952: 24952: bool cost_to_cache() const { return cache_res_mgr_ != nullptr; } 24952: 24952: 24952: 24952: size_t memory_usage() const { 24952: return memory_used_.load(std::memory_order_relaxed); 24952: } 24952: 24952: 24952: size_t mutable_memtable_memory_usage() const { 24952: return memory_active_.load(std::memory_order_relaxed); 24952: } 24952: 24952: size_t dummy_entries_in_cache_usage() const; 24952: 24952: 24952: size_t buffer_size() const { 24952: return buffer_size_.load(std::memory_order_relaxed); 24952: } 24952: 24952: 24952: void SetBufferSize(size_t new_size) { 24952: 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 3 4 24952: (static_cast ( 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 24952: new_size > 0 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 24952: "new_size > 0" 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 3 4 24952: , "./include/rocksdb/write_buffer_manager.h", 86, __extension__ __PRETTY_FUNCTION__)) 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 24952: ; 24952: buffer_size_.store(new_size, std::memory_order_relaxed); 24952: mutable_limit_.store(new_size * 7 / 8, std::memory_order_relaxed); 24952: 24952: MaybeEndWriteStall(); 24952: } 24952: 24952: void SetAllowStall(bool new_allow_stall) { 24952: allow_stall_.store(new_allow_stall, std::memory_order_relaxed); 24952: MaybeEndWriteStall(); 24952: } 24952: 24952: 24952: 24952: 24952: bool ShouldFlush() const { 24952: if (enabled()) { 24952: if (mutable_memtable_memory_usage() > 24952: mutable_limit_.load(std::memory_order_relaxed)) { 24952: return true; 24952: } 24952: size_t local_size = buffer_size(); 24952: if (memory_usage() >= local_size && 24952: mutable_memtable_memory_usage() >= local_size / 2) { 24952: 24952: 24952: 24952: return true; 24952: } 24952: } 24952: return false; 24952: } 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_buffer_manager.h" 24952: bool ShouldStall() const { 24952: if (!allow_stall_.load(std::memory_order_relaxed) || !enabled()) { 24952: return false; 24952: } 24952: 24952: return IsStallActive() || IsStallThresholdExceeded(); 24952: } 24952: 24952: 24952: bool IsStallActive() const { 24952: return stall_active_.load(std::memory_order_relaxed); 24952: } 24952: 24952: 24952: bool IsStallThresholdExceeded() const { 24952: return memory_usage() >= buffer_size_; 24952: } 24952: 24952: void ReserveMem(size_t mem); 24952: 24952: 24952: 24952: void ScheduleFreeMem(size_t mem); 24952: 24952: void FreeMem(size_t mem); 24952: 24952: 24952: 24952: void BeginWriteStall(StallInterface* wbm_stall); 24952: 24952: 24952: 24952: void MaybeEndWriteStall(); 24952: 24952: void RemoveDBFromQueue(StallInterface* wbm_stall); 24952: 24952: private: 24952: std::atomic buffer_size_; 24952: std::atomic mutable_limit_; 24952: std::atomic memory_used_; 24952: 24952: std::atomic memory_active_; 24952: std::shared_ptr cache_res_mgr_; 24952: 24952: std::mutex cache_res_mgr_mu_; 24952: 24952: std::list queue_; 24952: 24952: std::mutex mu_; 24952: std::atomic allow_stall_; 24952: 24952: 24952: std::atomic stall_active_; 24952: 24952: void ReserveMemWithCache(size_t mem); 24952: void FreeMemWithCache(size_t mem); 24952: }; 24952: } 24952: # 34 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 2 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class Cache; 24952: class CompactionFilter; 24952: class CompactionFilterFactory; 24952: class Comparator; 24952: class ConcurrentTaskLimiter; 24952: class Env; 24952: enum InfoLogLevel : unsigned char; 24952: class SstFileManager; 24952: class FilterPolicy; 24952: class Logger; 24952: class MergeOperator; 24952: class Snapshot; 24952: class MemTableRepFactory; 24952: class RateLimiter; 24952: class Slice; 24952: class Statistics; 24952: class InternalKeyComparator; 24952: class WalFilter; 24952: class FileSystem; 24952: 24952: struct Options; 24952: struct DbPath; 24952: 24952: using FileTypeSet = SmallEnumSet; 24952: 24952: struct ColumnFamilyOptions : public AdvancedColumnFamilyOptions { 24952: 24952: 24952: 24952: 24952: 24952: 24952: ColumnFamilyOptions* OldDefaults(int rocksdb_major_version = 4, 24952: int rocksdb_minor_version = 6); 24952: 24952: 24952: 24952: 24952: 24952: ColumnFamilyOptions* OptimizeForSmallDb( 24952: std::shared_ptr* cache = nullptr); 24952: 24952: 24952: 24952: 24952: ColumnFamilyOptions* OptimizeForPointLookup(uint64_t block_cache_size_mb); 24952: # 102 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: ColumnFamilyOptions* OptimizeLevelStyleCompaction( 24952: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 24952: ColumnFamilyOptions* OptimizeUniversalStyleCompaction( 24952: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 24952: # 116 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: const Comparator* comparator = BytewiseComparator(); 24952: # 128 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::shared_ptr merge_operator = nullptr; 24952: # 146 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: const CompactionFilter* compaction_filter = nullptr; 24952: # 165 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::shared_ptr compaction_filter_factory = nullptr; 24952: # 186 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: size_t write_buffer_size = 64 << 20; 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: CompressionType compression; 24952: # 223 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: CompressionType bottommost_compression = kDisableCompressionOption; 24952: 24952: 24952: 24952: 24952: 24952: CompressionOptions bottommost_compression_opts; 24952: 24952: 24952: CompressionOptions compression_opts; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: int level0_file_num_compaction_trigger = 4; 24952: # 274 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::shared_ptr prefix_extractor = nullptr; 24952: # 288 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: uint64_t max_bytes_for_level_base = 256 * 1048576; 24952: 24952: 24952: uint64_t snap_refresh_nanos = 0; 24952: 24952: 24952: 24952: 24952: 24952: bool disable_auto_compactions = false; 24952: 24952: 24952: 24952: 24952: 24952: std::shared_ptr table_factory; 24952: # 317 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::vector cf_paths; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: std::shared_ptr compaction_thread_limiter = nullptr; 24952: # 334 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::shared_ptr sst_partitioner_factory = nullptr; 24952: # 345 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: uint32_t memtable_max_range_deletions = 0; 24952: 24952: 24952: ColumnFamilyOptions(); 24952: 24952: explicit ColumnFamilyOptions(const Options& options); 24952: 24952: void Dump(Logger* log) const; 24952: }; 24952: 24952: enum class WALRecoveryMode : char { 24952: # 375 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: kTolerateCorruptedTailRecords = 0x00, 24952: 24952: 24952: 24952: 24952: kAbsoluteConsistency = 0x01, 24952: 24952: 24952: 24952: 24952: kPointInTimeRecovery = 0x02, 24952: 24952: 24952: 24952: 24952: 24952: kSkipAnyCorruptedRecords = 0x03, 24952: }; 24952: 24952: struct DbPath { 24952: std::string path; 24952: uint64_t target_size; 24952: 24952: DbPath() : target_size(0) {} 24952: DbPath(const std::string& p, uint64_t t) : path(p), target_size(t) {} 24952: }; 24952: 24952: extern const char* kHostnameForDbHostId; 24952: 24952: enum class CompactionServiceJobStatus : char { 24952: kSuccess, 24952: kFailure, 24952: kUseLocal, 24952: }; 24952: 24952: struct CompactionServiceJobInfo { 24952: std::string db_name; 24952: std::string db_id; 24952: std::string db_session_id; 24952: uint64_t job_id; 24952: 24952: 24952: 24952: 24952: Env::Priority priority; 24952: 24952: CompactionServiceJobInfo(std::string db_name_, std::string db_id_, 24952: std::string db_session_id_, uint64_t job_id_, 24952: Env::Priority priority_) 24952: : db_name(std::move(db_name_)), 24952: db_id(std::move(db_id_)), 24952: db_session_id(std::move(db_session_id_)), 24952: job_id(job_id_), 24952: priority(priority_) {} 24952: }; 24952: 24952: 24952: 24952: 24952: class CompactionService : public Customizable { 24952: public: 24952: static const char* Type() { return "CompactionService"; } 24952: 24952: 24952: const char* Name() const override = 0; 24952: 24952: 24952: 24952: 24952: virtual CompactionServiceJobStatus StartV2( 24952: const CompactionServiceJobInfo& , 24952: const std::string& ) { 24952: return CompactionServiceJobStatus::kUseLocal; 24952: } 24952: 24952: 24952: virtual CompactionServiceJobStatus WaitForCompleteV2( 24952: const CompactionServiceJobInfo& , 24952: std::string* ) { 24952: return CompactionServiceJobStatus::kUseLocal; 24952: } 24952: 24952: ~CompactionService() override = default; 24952: }; 24952: 24952: struct DBOptions { 24952: 24952: 24952: 24952: 24952: 24952: DBOptions* OldDefaults(int rocksdb_major_version = 4, 24952: int rocksdb_minor_version = 6); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: DBOptions* OptimizeForSmallDb(std::shared_ptr* cache = nullptr); 24952: 24952: 24952: 24952: 24952: 24952: 24952: DBOptions* IncreaseParallelism(int total_threads = 16); 24952: 24952: 24952: 24952: bool create_if_missing = false; 24952: 24952: 24952: 24952: 24952: bool create_missing_column_families = false; 24952: 24952: 24952: 24952: bool error_if_exists = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool paranoid_checks = true; 24952: # 513 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool flush_verify_memtable_count = true; 24952: # 528 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool compaction_verify_record_count = true; 24952: # 544 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool track_and_verify_wals_in_manifest = false; 24952: # 564 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool verify_sst_unique_id_in_manifest = true; 24952: 24952: 24952: 24952: 24952: 24952: 24952: Env* env = Env::Default(); 24952: # 589 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::shared_ptr rate_limiter = nullptr; 24952: # 605 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::shared_ptr sst_file_manager = nullptr; 24952: 24952: 24952: 24952: 24952: 24952: std::shared_ptr info_log = nullptr; 24952: 24952: 24952: 24952: 24952: InfoLogLevel info_log_level = DEBUG_LEVEL; 24952: # 632 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: int max_open_files = -1; 24952: 24952: 24952: 24952: 24952: int max_file_opening_threads = 16; 24952: # 660 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: uint64_t max_total_wal_size = 0; 24952: 24952: 24952: std::shared_ptr statistics = nullptr; 24952: # 673 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool use_fsync = false; 24952: # 699 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::vector db_paths; 24952: 24952: 24952: 24952: 24952: 24952: 24952: std::string db_log_dir = ""; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: std::string wal_dir = ""; 24952: # 724 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: uint64_t delete_obsolete_files_period_micros = 6ULL * 60 * 60 * 1000000; 24952: 24952: 24952: 24952: 24952: 24952: 24952: int max_background_jobs = 2; 24952: # 749 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: int max_background_compactions = -1; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint32_t max_subcompactions = 1; 24952: # 779 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: int max_background_flushes = -1; 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t max_log_file_size = 0; 24952: 24952: 24952: 24952: 24952: 24952: size_t log_file_time_to_roll = 0; 24952: 24952: 24952: 24952: size_t keep_log_file_num = 1000; 24952: # 806 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: size_t recycle_log_file_num = 0; 24952: 24952: 24952: 24952: 24952: 24952: uint64_t max_manifest_file_size = 1024 * 1024 * 1024; 24952: 24952: 24952: int table_cache_numshardbits = 6; 24952: # 834 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: uint64_t WAL_ttl_seconds = 0; 24952: uint64_t WAL_size_limit_MB = 0; 24952: 24952: 24952: 24952: 24952: 24952: size_t manifest_preallocation_size = 4 * 1024 * 1024; 24952: # 854 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool allow_mmap_reads = false; 24952: 24952: 24952: 24952: 24952: bool allow_mmap_writes = false; 24952: # 871 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool use_direct_reads = false; 24952: 24952: 24952: 24952: bool use_direct_io_for_flush_and_compaction = false; 24952: # 886 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool allow_fallocate = true; 24952: 24952: 24952: bool is_fd_close_on_exec = true; 24952: 24952: 24952: 24952: 24952: 24952: 24952: unsigned int stats_dump_period_sec = 600; 24952: 24952: 24952: 24952: unsigned int stats_persist_period_sec = 600; 24952: # 912 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool persist_stats_to_disk = false; 24952: 24952: 24952: 24952: 24952: size_t stats_history_buffer_size = 1024 * 1024; 24952: 24952: 24952: 24952: 24952: bool advise_random_on_open = true; 24952: # 934 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: size_t db_write_buffer_size = 0; 24952: # 951 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::shared_ptr write_buffer_manager = nullptr; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: enum AccessHint { NONE, NORMAL, SEQUENTIAL, WILLNEED }; 24952: AccessHint access_hint_on_compaction_start = NORMAL; 24952: # 969 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: size_t compaction_readahead_size = 2 * 1024 * 1024; 24952: # 986 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: size_t random_access_max_buffer_size = 1024 * 1024; 24952: # 997 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: size_t writable_file_max_buffer_size = 1024 * 1024; 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool use_adaptive_mutex = false; 24952: 24952: 24952: DBOptions(); 24952: 24952: explicit DBOptions(const Options& options); 24952: 24952: void Dump(Logger* log) const; 24952: # 1029 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: uint64_t bytes_per_sync = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint64_t wal_bytes_per_sync = 0; 24952: # 1057 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool strict_bytes_per_sync = false; 24952: 24952: 24952: 24952: std::vector> listeners; 24952: 24952: 24952: 24952: 24952: 24952: bool enable_thread_tracking = false; 24952: # 1085 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: uint64_t delayed_write_rate = 0; 24952: # 1100 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool enable_pipelined_write = false; 24952: # 1126 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool unordered_write = false; 24952: # 1136 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool allow_concurrent_memtable_write = true; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool enable_write_thread_adaptive_yield = true; 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint64_t max_write_batch_group_size_bytes = 1 << 20; 24952: # 1160 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: uint64_t write_thread_max_yield_usec = 100; 24952: # 1170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: uint64_t write_thread_slow_yield_usec = 3; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool skip_stats_update_on_db_open = false; 24952: # 1188 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool skip_checking_sst_file_sizes_on_db_open = false; 24952: 24952: 24952: 24952: WALRecoveryMode wal_recovery_mode = WALRecoveryMode::kPointInTimeRecovery; 24952: 24952: 24952: 24952: bool allow_2pc = false; 24952: 24952: 24952: 24952: std::shared_ptr row_cache = nullptr; 24952: 24952: 24952: 24952: 24952: 24952: 24952: WalFilter* wal_filter = nullptr; 24952: 24952: 24952: 24952: 24952: 24952: bool fail_if_options_file_error = true; 24952: 24952: 24952: 24952: 24952: bool dump_malloc_stats = false; 24952: # 1227 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool avoid_flush_during_recovery = false; 24952: # 1236 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool avoid_flush_during_shutdown = false; 24952: # 1251 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool allow_ingest_behind = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool two_write_queues = false; 24952: 24952: 24952: 24952: 24952: bool manual_wal_flush = false; 24952: 24952: 24952: 24952: 24952: 24952: CompressionType wal_compression = kNoCompression; 24952: # 1283 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool atomic_flush = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool avoid_unnecessary_blocking_io = false; 24952: # 1302 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool write_dbid_to_manifest = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t log_readahead_size = 0; 24952: # 1318 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::shared_ptr file_checksum_gen_factory = nullptr; 24952: # 1352 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool best_efforts_recovery = false; 24952: # 1362 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: int max_bgerror_resume_count = 0x7fffffff 24952: # 1362 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: ; 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint64_t bgerror_resume_retry_interval = 1000000; 24952: # 1378 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool allow_data_in_errors = false; 24952: # 1391 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::string db_host_id = kHostnameForDbHostId; 24952: # 1401 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: FileTypeSet checksum_handoff_file_types; 24952: # 1410 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::shared_ptr compaction_service = nullptr; 24952: # 1422 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: CacheTier lowest_used_cache_tier = CacheTier::kNonVolatileBlockTier; 24952: # 1435 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool enforce_single_del_contracts = true; 24952: # 1453 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::string daily_offpeak_time_utc = ""; 24952: }; 24952: 24952: 24952: struct Options : public DBOptions, public ColumnFamilyOptions { 24952: 24952: Options() : DBOptions(), ColumnFamilyOptions() {} 24952: 24952: Options(const DBOptions& db_options, 24952: const ColumnFamilyOptions& column_family_options) 24952: : DBOptions(db_options), ColumnFamilyOptions(column_family_options) {} 24952: 24952: 24952: 24952: 24952: 24952: 24952: Options* OldDefaults(int rocksdb_major_version = 4, 24952: int rocksdb_minor_version = 6); 24952: 24952: void Dump(Logger* log) const; 24952: 24952: void DumpCFOptions(Logger* log) const; 24952: # 1487 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: Options* PrepareForBulkLoad(); 24952: 24952: 24952: 24952: Options* OptimizeForSmallDb(); 24952: 24952: 24952: 24952: 24952: 24952: Options* DisableExtraChecks(); 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: enum ReadTier { 24952: kReadAllTier = 0x0, 24952: kBlockCacheTier = 0x1, 24952: kPersistedTier = 0x2, 24952: 24952: 24952: 24952: kMemtableTier = 0x3 24952: }; 24952: 24952: 24952: struct ReadOptions { 24952: 24952: 24952: 24952: 24952: 24952: 24952: const Snapshot* snapshot = nullptr; 24952: # 1536 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: const Slice* timestamp = nullptr; 24952: const Slice* iter_start_ts = nullptr; 24952: # 1548 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: std::chrono::microseconds deadline = std::chrono::microseconds::zero(); 24952: 24952: 24952: 24952: 24952: 24952: std::chrono::microseconds io_timeout = std::chrono::microseconds::zero(); 24952: 24952: 24952: 24952: 24952: ReadTier read_tier = kReadAllTier; 24952: # 1573 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 24952: 24952: 24952: 24952: 24952: uint64_t value_size_soft_limit = std::numeric_limits::max(); 24952: 24952: 24952: 24952: 24952: 24952: std::optional merge_operand_count_threshold; 24952: 24952: 24952: 24952: bool verify_checksums = true; 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool fill_cache = true; 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool ignore_range_deletions = false; 24952: 24952: 24952: 24952: 24952: bool async_io = false; 24952: # 1616 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool optimize_multiget_for_io = true; 24952: # 1629 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: size_t readahead_size = 0; 24952: 24952: 24952: 24952: 24952: uint64_t max_skippable_internal_keys = 0; 24952: # 1647 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: const Slice* iterate_lower_bound = nullptr; 24952: # 1667 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: const Slice* iterate_upper_bound = nullptr; 24952: 24952: 24952: 24952: 24952: 24952: bool tailing = false; 24952: 24952: 24952: 24952: bool managed = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool total_order_seek = false; 24952: # 1700 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool auto_prefix_mode = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool prefix_same_as_start = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool pin_data = false; 24952: # 1725 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool adaptive_readahead = false; 24952: 24952: 24952: 24952: 24952: bool background_purge_on_iterator_cleanup = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: std::function table_filter; 24952: # 1756 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool auto_readahead_size = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 24952: 24952: 24952: 24952: ReadOptions() {} 24952: ReadOptions(bool _verify_checksums, bool _fill_cache); 24952: explicit ReadOptions(Env::IOActivity _io_activity); 24952: }; 24952: 24952: 24952: struct WriteOptions { 24952: # 1790 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool sync; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool disableWAL; 24952: 24952: 24952: 24952: 24952: 24952: bool ignore_missing_column_families; 24952: 24952: 24952: 24952: 24952: bool no_slowdown; 24952: # 1818 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool low_pri; 24952: # 1827 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool memtable_insert_hint_per_batch; 24952: # 1842 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: Env::IOPriority rate_limiter_priority; 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t protection_bytes_per_key; 24952: 24952: WriteOptions() 24952: : sync(false), 24952: disableWAL(false), 24952: ignore_missing_column_families(false), 24952: no_slowdown(false), 24952: low_pri(false), 24952: memtable_insert_hint_per_batch(false), 24952: rate_limiter_priority(Env::IO_TOTAL), 24952: protection_bytes_per_key(0) {} 24952: }; 24952: 24952: 24952: struct FlushOptions { 24952: 24952: 24952: bool wait; 24952: 24952: 24952: 24952: 24952: 24952: bool allow_write_stall; 24952: FlushOptions() : wait(true), allow_write_stall(false) {} 24952: }; 24952: 24952: 24952: extern Status CreateLoggerFromOptions(const std::string& dbname, 24952: const DBOptions& options, 24952: std::shared_ptr* logger); 24952: 24952: 24952: struct CompactionOptions { 24952: 24952: 24952: 24952: 24952: 24952: CompressionType compression; 24952: 24952: 24952: uint64_t output_file_size_limit; 24952: 24952: uint32_t max_subcompactions; 24952: 24952: CompactionOptions() 24952: : compression(kSnappyCompression), 24952: output_file_size_limit(std::numeric_limits::max()), 24952: max_subcompactions(0) {} 24952: }; 24952: 24952: 24952: 24952: enum class BottommostLevelCompaction { 24952: 24952: kSkip, 24952: 24952: 24952: 24952: 24952: 24952: kIfHaveCompactionFilter, 24952: 24952: kForce, 24952: 24952: 24952: kForceOptimized, 24952: }; 24952: 24952: 24952: 24952: enum class BlobGarbageCollectionPolicy { 24952: 24952: kForce, 24952: 24952: kDisable, 24952: 24952: kUseDefault, 24952: }; 24952: 24952: 24952: struct CompactRangeOptions { 24952: 24952: 24952: 24952: 24952: bool exclusive_manual_compaction = false; 24952: 24952: 24952: 24952: bool change_level = false; 24952: 24952: 24952: int target_level = -1; 24952: 24952: 24952: uint32_t target_path_id = 0; 24952: 24952: 24952: BottommostLevelCompaction bottommost_level_compaction = 24952: BottommostLevelCompaction::kIfHaveCompactionFilter; 24952: 24952: 24952: bool allow_write_stall = false; 24952: 24952: uint32_t max_subcompactions = 0; 24952: 24952: 24952: const Slice* full_history_ts_low = nullptr; 24952: 24952: 24952: 24952: 24952: 24952: std::atomic* canceled = nullptr; 24952: # 1977 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: BlobGarbageCollectionPolicy blob_garbage_collection_policy = 24952: BlobGarbageCollectionPolicy::kUseDefault; 24952: 24952: 24952: 24952: 24952: 24952: double blob_garbage_collection_age_cutoff = -1; 24952: }; 24952: 24952: 24952: struct IngestExternalFileOptions { 24952: 24952: bool move_files = false; 24952: 24952: bool failed_move_fall_back_to_copy = true; 24952: 24952: 24952: bool snapshot_consistency = true; 24952: 24952: 24952: 24952: 24952: bool allow_global_seqno = true; 24952: 24952: 24952: bool allow_blocking_flush = true; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool ingest_behind = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool write_global_seqno = false; 24952: 24952: 24952: 24952: 24952: bool verify_checksums_before_ingest = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t verify_checksums_readahead_size = 0; 24952: # 2051 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: bool verify_file_checksum = true; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool fail_if_not_bottommost_level = false; 24952: }; 24952: 24952: enum TraceFilterType : uint64_t { 24952: 24952: kTraceFilterNone = 0x0, 24952: 24952: kTraceFilterGet = 0x1 << 0, 24952: 24952: kTraceFilterWrite = 0x1 << 1, 24952: 24952: kTraceFilterIteratorSeek = 0x1 << 2, 24952: 24952: kTraceFilterIteratorSeekForPrev = 0x1 << 3, 24952: 24952: kTraceFilterMultiGet = 0x1 << 4, 24952: }; 24952: 24952: 24952: struct TraceOptions { 24952: 24952: 24952: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 24952: 24952: 24952: uint64_t sampling_frequency = 1; 24952: 24952: uint64_t filter = kTraceFilterNone; 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool preserve_write_order = false; 24952: }; 24952: 24952: 24952: struct ImportColumnFamilyOptions { 24952: 24952: bool move_files = false; 24952: }; 24952: 24952: 24952: struct SizeApproximationOptions { 24952: 24952: 24952: bool include_memtables = false; 24952: 24952: 24952: bool include_files = true; 24952: # 2119 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h" 24952: double files_size_error_margin = -1.0; 24952: }; 24952: 24952: struct CompactionServiceOptionsOverride { 24952: 24952: 24952: 24952: Env* env = Env::Default(); 24952: std::shared_ptr file_checksum_gen_factory = nullptr; 24952: 24952: const Comparator* comparator = BytewiseComparator(); 24952: std::shared_ptr merge_operator = nullptr; 24952: const CompactionFilter* compaction_filter = nullptr; 24952: std::shared_ptr compaction_filter_factory = nullptr; 24952: std::shared_ptr prefix_extractor = nullptr; 24952: std::shared_ptr table_factory; 24952: std::shared_ptr sst_partitioner_factory = nullptr; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: std::vector> listeners; 24952: 24952: 24952: 24952: 24952: std::shared_ptr statistics = nullptr; 24952: 24952: 24952: 24952: std::vector> 24952: table_properties_collector_factories; 24952: }; 24952: 24952: struct OpenAndCompactOptions { 24952: 24952: std::atomic* canceled = nullptr; 24952: }; 24952: 24952: struct LiveFilesStorageInfoOptions { 24952: 24952: bool include_checksum_info = false; 24952: 24952: 24952: 24952: uint64_t wal_size_for_flush = 0; 24952: }; 24952: 24952: struct WaitForCompactOptions { 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool abort_on_pause = false; 24952: 24952: 24952: bool flush = false; 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool close_db = false; 24952: 24952: 24952: 24952: 24952: 24952: std::chrono::microseconds timeout = std::chrono::microseconds::zero(); 24952: }; 24952: 24952: } 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 1 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: 24952: # 31 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: namespace rocksdb { 24952: 24952: 24952: class Cache; 24952: class FilterPolicy; 24952: class FlushBlockPolicyFactory; 24952: class PersistentCache; 24952: class RandomAccessFile; 24952: struct TableReaderOptions; 249In 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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::DBOptions::DBOptions(const rocksdb::DBOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:460:8: /usr/include/c++/13/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 52: struct TableBuilderOptions; 24952: class TableBuilder; 24952: class TableFactory; 24952: class TableReader; 24952: class WritableFileWriter; 24952: struct ConfigOptions; 24952: struct EnvOptions; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: enum ChecksumType : char { 24952: kNoChecksum = 0x0, 24952: kCRC32c = 0x1, 24952: kxxHash = 0x2, 24952: kxxHash64 = 0x3, 24952: kXXH3 = 0x4, 24952: }; 24952: 24952: 24952: 24952: 24952: enum class PinningTier { 24952: 24952: 24952: 24952: 24952: kFallback, 24952: 24952: 24952: kNone, 24952: 24952: 24952: 24952: 24952: 24952: 24952: kFlushedAndSimilar, 24952: 24952: 24952: kAll, 24952: }; 24952: 24952: 24952: 24952: struct MetadataCacheOptions { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: PinningTier top_level_index_pinning = PinningTier::kFallback; 24952: 24952: 24952: 24952: PinningTier partition_pinning = PinningTier::kFallback; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: PinningTier unpartitioned_pinning = PinningTier::kFallback; 24952: }; 24952: 24952: struct CacheEntryRoleOptions { 24952: enum class Decision { 24952: kEnabled, 24952: kDisabled, 24952: kFallback, 24952: }; 24952: Decision charged = Decision::kFallback; 24952: bool operator==(const CacheEntryRoleOptions& other) const { 24952: return charged == other.charged; 24952: } 24952: }; 24952: 24952: struct CacheUsageOptions { 24952: CacheEntryRoleOptions options; 24952: std::map options_overrides; 24952: }; 24952: 24952: 24952: struct BlockBasedTableOptions { 24952: static const char* kName() { return "BlockTableOptions"; }; 24952: 24952: 24952: 24952: 24952: 24952: std::shared_ptr flush_block_policy_factory; 24952: # 149 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: bool cache_index_and_filter_blocks = false; 24952: 24952: 24952: 24952: 24952: 24952: bool cache_index_and_filter_blocks_with_high_priority = true; 24952: # 178 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: bool pin_l0_filter_and_index_blocks_in_cache = false; 24952: # 200 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: bool pin_top_level_index_and_filter = true; 24952: 24952: 24952: 24952: 24952: 24952: MetadataCacheOptions metadata_cache_options; 24952: 24952: 24952: enum IndexType : char { 24952: 24952: 24952: kBinarySearch = 0x00, 24952: 24952: 24952: 24952: kHashSearch = 0x01, 24952: 24952: 24952: 24952: 24952: kTwoLevelIndexSearch = 0x02, 24952: # 234 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: kBinarySearchWithFirstKey = 0x03, 24952: }; 24952: 24952: IndexType index_type = kBinarySearch; 24952: 24952: 24952: enum DataBlockIndexType : char { 24952: kDataBlockBinarySearch = 0, 24952: kDataBlockBinaryAndHash = 1, 24952: }; 24952: 24952: DataBlockIndexType data_block_index_type = kDataBlockBinarySearch; 24952: 24952: 24952: 24952: double data_block_hash_table_util_ratio = 0.75; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ChecksumType checksum = kXXH3; 24952: 24952: 24952: 24952: 24952: bool no_block_cache = false; 24952: 24952: 24952: 24952: std::shared_ptr block_cache = nullptr; 24952: 24952: 24952: 24952: std::shared_ptr persistent_cache = nullptr; 24952: 24952: 24952: 24952: 24952: 24952: uint64_t block_size = 4 * 1024; 24952: 24952: 24952: 24952: 24952: 24952: 24952: int block_size_deviation = 10; 24952: 24952: 24952: 24952: 24952: 24952: int block_restart_interval = 16; 24952: 24952: 24952: int index_block_restart_interval = 1; 24952: # 303 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: uint64_t metadata_block_size = 4096; 24952: # 391 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: CacheUsageOptions cache_usage_options; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool partition_filters = false; 24952: # 434 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: bool optimize_filters_for_memory = false; 24952: 24952: 24952: 24952: 24952: 24952: bool use_delta_encoding = true; 24952: 24952: 24952: 24952: 24952: std::shared_ptr filter_policy = nullptr; 24952: 24952: 24952: 24952: bool whole_key_filtering = true; 24952: # 463 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: bool detect_filter_construct_corruption = false; 24952: 24952: 24952: 24952: 24952: bool verify_compression = false; 24952: # 491 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: uint32_t read_amp_bytes_per_bit = 0; 24952: # 521 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: uint32_t format_version = 5; 24952: 24952: 24952: 24952: 24952: bool enable_index_compression = true; 24952: 24952: 24952: bool block_align = false; 24952: # 553 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: enum class IndexShorteningMode : char { 24952: 24952: kNoShortening, 24952: 24952: 24952: kShortenSeparators, 24952: 24952: kShortenSeparatorsAndSuccessor, 24952: }; 24952: 24952: IndexShorteningMode index_shortening = 24952: IndexShorteningMode::kShortenSeparators; 24952: # 592 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: size_t max_auto_readahead_size = 256 * 1024; 24952: # 606 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: enum class PrepopulateBlockCache : char { 24952: 24952: kDisable, 24952: 24952: kFlushOnly, 24952: }; 24952: 24952: PrepopulateBlockCache prepopulate_block_cache = 24952: PrepopulateBlockCache::kDisable; 24952: # 643 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: size_t initial_auto_readahead_size = 8 * 1024; 24952: # 663 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: uint64_t num_file_reads_for_auto_readahead = 2; 24952: }; 24952: 24952: 24952: struct BlockBasedTablePropertyNames { 24952: 24952: static const std::string kIndexType; 24952: 24952: static const std::string kWholeKeyFiltering; 24952: 24952: static const std::string kPrefixFiltering; 24952: }; 24952: 24952: 24952: extern TableFactory* NewBlockBasedTableFactory( 24952: const BlockBasedTableOptions& table_options = BlockBasedTableOptions()); 24952: 24952: 24952: enum EncodingType : char { 24952: 24952: kPlain, 24952: # 695 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: kPrefix, 24952: }; 24952: 24952: 24952: struct PlainTablePropertyNames { 24952: static const std::string kEncodingType; 24952: static const std::string kBloomVersion; 24952: static const std::string kNumBloomBlocks; 24952: }; 24952: 24952: const uint32_t kPlainTableVariableLength = 0; 24952: 24952: struct PlainTableOptions { 24952: static const char* kName() { return "PlainTableOptions"; }; 24952: 24952: 24952: 24952: 24952: uint32_t user_key_len = kPlainTableVariableLength; 24952: 24952: 24952: 24952: int bloom_bits_per_key = 10; 24952: 24952: 24952: 24952: 24952: 24952: double hash_table_ratio = 0.75; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t index_sparseness = 16; 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t huge_page_tlb_size = 0; 24952: # 748 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: EncodingType encoding_type = kPlain; 24952: 24952: 24952: 24952: bool full_scan_mode = false; 24952: 24952: 24952: 24952: 24952: bool store_index_in_file = false; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern TableFactory* NewPlainTableFactory( 24952: const PlainTableOptions& options = PlainTableOptions()); 24952: 24952: struct CuckooTablePropertyNames { 24952: 24952: static const std::string kEmptyKey; 24952: 24952: static const std::string kValueLength; 24952: 24952: static const std::string kNumHashFunc; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kCuckooBlockSize; 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kHashTableSize; 24952: 24952: 24952: static const std::string kIsLastLevel; 24952: 24952: static const std::string kIdentityAsFirstHash; 24952: 24952: static const std::string kUseModuleHash; 24952: 24952: static const std::string kUserKeyLength; 24952: }; 24952: 24952: struct CuckooTableOptions { 24952: static const char* kName() { return "CuckooTableOptions"; }; 24952: 24952: 24952: 24952: double hash_table_ratio = 0.9; 24952: 24952: 24952: 24952: 24952: 24952: uint32_t max_search_depth = 100; 24952: 24952: 24952: 24952: 24952: 24952: uint32_t cuckoo_block_size = 5; 24952: 24952: 24952: 24952: 24952: bool identity_as_first_hash = false; 24952: 24952: 24952: 24952: 24952: 24952: bool use_module_hash = true; 24952: }; 24952: 24952: 24952: extern TableFactory* NewCuckooTableFactory( 24952: const CuckooTableOptions& table_options = CuckooTableOptions()); 24952: 24952: 24952: class RandomAccessFileReader; 24952: 24952: 24952: class TableFactory : public Customizable { 24952: public: 24952: virtual ~TableFactory() override {} 24952: 24952: static const char* kBlockCacheOpts() { return "BlockCache"; }; 24952: static const char* kBlockBasedTableName() { return "BlockBasedTable"; }; 24952: static const char* kPlainTableName() { return "PlainTable"; } 24952: static const char* kCuckooTableName() { return "CuckooTable"; }; 24952: 24952: 24952: static Status CreateFromString(const ConfigOptions& config_options, 24952: const std::string& id, 24952: std::shared_ptr* factory); 24952: 24952: static const char* Type() { return "TableFactory"; } 24952: # 873 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: virtual Status NewTableReader( 24952: const TableReaderOptions& table_reader_options, 24952: std::unique_ptr&& file, uint64_t file_size, 24952: std::unique_ptr* table_reader, 24952: bool prefetch_index_and_filter_in_cache = true) const { 24952: ReadOptions ro; 24952: return NewTableReader(ro, table_reader_options, std::move(file), file_size, 24952: table_reader, prefetch_index_and_filter_in_cache); 24952: } 24952: 24952: 24952: 24952: virtual Status NewTableReader( 24952: const ReadOptions& ro, const TableReaderOptions& table_reader_options, 24952: std::unique_ptr&& file, uint64_t file_size, 24952: std::unique_ptr* table_reader, 24952: bool prefetch_index_and_filter_in_cache) const = 0; 24952: # 909 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: virtual TableBuilder* NewTableBuilder( 24952: const TableBuilderOptions& table_builder_options, 24952: WritableFileWriter* file) const = 0; 24952: 24952: 24952: virtual bool IsDeleteRangeSupported() const { return false; } 24952: }; 24952: # 926 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table.h" 24952: extern TableFactory* NewAdaptiveTableFactory( 24952: std::shared_ptr table_factory_to_write = nullptr, 24952: std::shared_ptr block_based_table_factory = nullptr, 24952: std::shared_ptr plain_table_factory = nullptr, 24952: std::shared_ptr cuckoo_table_factory = nullptr); 24952: 24952: 24952: } 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 2 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class FileLock; 24952: class FSDirectory; 24952: class FSRandomAccessFile; 24952: class FSRandomRWFile; 24952: class FSSequentialFile; 24952: class FSWritableFile; 24952: class Logger; 24952: class Slice; 24952: struct ImmutableDBOptions; 24952: struct MutableDBOptions; 24952: class RateLimiter; 24952: struct ConfigOptions; 24952: 24952: using AccessPattern = RandomAccessFile::AccessPattern; 24952: using FileAttributes = Env::FileAttributes; 24952: 24952: 24952: 24952: 24952: 24952: 24952: enum class IOPriority : uint8_t { 24952: kIOLow, 24952: kIOHigh, 24952: kIOTotal, 24952: }; 24952: 24952: 24952: 24952: 24952: enum class IOType : uint8_t { 24952: kData, 24952: kFilter, 24952: kIndex, 24952: kMetadata, 24952: kWAL, 24952: kManifest, 24952: kLog, 24952: kUnknown, 24952: kInvalid, 24952: }; 24952: 24952: 24952: 24952: enum FSSupportedOps { kAsyncIO, kFSBuffer }; 24952: 24952: 24952: 24952: 24952: 24952: struct IOOptions { 24952: 24952: std::chrono::microseconds timeout; 24952: 24952: 24952: 24952: IOPriority prio; 24952: 24952: 24952: 24952: 24952: 24952: Env::IOPriority rate_limiter_priority; 24952: 24952: 24952: IOType type; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: std::unordered_map property_bag; 24952: 24952: 24952: 24952: bool force_dir_fsync; 24952: 24952: 24952: 24952: bool do_not_recurse; 24952: 24952: 24952: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 24952: 24952: IOOptions() : IOOptions(false) {} 24952: 24952: explicit IOOptions(bool force_dir_fsync_) 24952: : timeout(std::chrono::microseconds::zero()), 24952: prio(IOPriority::kIOLow), 24952: rate_limiter_priority(Env::IO_TOTAL), 24952: type(IOType::kUnknown), 24952: force_dir_fsync(force_dir_fsync_), 24952: do_not_recurse(false) {} 24952: }; 24952: 24952: struct DirFsyncOptions { 24952: enum FsyncReason : uint8_t { 24952: kNewFileSynced, 24952: kFileRenamed, 24952: kDirRenamed, 24952: kFileDeleted, 24952: kDefault, 24952: } reason; 24952: 24952: std::string renamed_new_name; 24952: 24952: 24952: DirFsyncOptions(); 24952: 24952: explicit DirFsyncOptions(std::string file_renamed_new_name); 24952: 24952: explicit DirFsyncOptions(FsyncReason fsync_reason); 24952: }; 24952: 24952: 24952: 24952: 24952: struct FileOptions : EnvOptions { 24952: 24952: 24952: IOOptions io_options; 24952: 24952: 24952: 24952: 24952: 24952: 24952: Temperature temperature = Temperature::kUnknown; 24952: 24952: 24952: 24952: ChecksumType handoff_checksum_type; 24952: 24952: FileOptions() : EnvOptions(), handoff_checksum_type(ChecksumType::kCRC32c) {} 24952: 24952: FileOptions(const DBOptions& opts) 24952: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 24952: 24952: FileOptions(const EnvOptions& opts) 24952: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 24952: 24952: FileOptions(const FileOptions& opts) 24952: : EnvOptions(opts), 24952: io_options(opts.io_options), 24952: temperature(opts.temperature), 24952: handoff_checksum_type(opts.handoff_checksum_type) {} 24952: 24952: FileOptions& operator=(const FileOptions&) = default; 24952: }; 24952: 24952: 24952: 24952: struct IODebugContext { 24952: 24952: std::string file_path; 24952: 24952: 24952: std::map counters; 24952: 24952: 24952: std::string msg; 24952: 24952: 24952: std::string request_id; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: enum TraceData : char { 24952: 24952: 24952: 24952: kRequestID = 0, 24952: }; 24952: uint64_t trace_data = 0; 24952: 24952: IODebugContext() {} 24952: 24952: void AddCounter(std::string& name, uint64_t value) { 24952: counters.emplace(name, value); 24952: } 24952: 24952: 24952: 24952: void SetRequestId(const std::string& _request_id) { 24952: request_id = _request_id; 24952: trace_data |= (1 << TraceData::kRequestID); 24952: } 24952: 24952: std::string ToString() { 24952: std::ostringstream ss; 24952: ss << file_path << ", "; 24952: for (auto counter : counters) { 24952: ss << counter.first << " = " << counter.second << ","; 24952: } 24952: ss << msg; 24952: return ss.str(); 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: using IOHandleDeleter = std::function; 24952: # 270 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: class FileSystem : public Customizable { 24952: public: 24952: FileSystem(); 24952: 24952: 24952: FileSystem(const FileSystem&) = delete; 24952: 24952: virtual ~FileSystem(); 24952: 24952: static const char* Type() { return "FileSystem"; } 24952: static const char* kDefaultName() { return "DefaultFileSystem"; } 24952: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: static Status CreateFromString(const ConfigOptions& options, 24952: const std::string& value, 24952: std::shared_ptr* result); 24952: 24952: 24952: 24952: static std::shared_ptr Default(); 24952: # 314 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual Status RegisterDbPaths(const std::vector& ) { 24952: return Status::OK(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status UnregisterDbPaths(const std::vector& ) { 24952: return Status::OK(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual IOStatus NewSequentialFile(const std::string& fname, 24952: const FileOptions& file_opts, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg) = 0; 24952: # 346 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus NewRandomAccessFile( 24952: const std::string& fname, const FileOptions& file_opts, 24952: std::unique_ptr* result, IODebugContext* dbg) = 0; 24952: 24952: 24952: enum WriteLifeTimeHint { 24952: kWLTHNotSet = 0, 24952: kWLTHNone, 24952: kWLTHShort, 24952: kWLTHMedium, 24952: kWLTHLong, 24952: kWLTHExtreme, 24952: }; 24952: # 367 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus NewWritableFile(const std::string& fname, 24952: const FileOptions& file_opts, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg) = 0; 24952: # 380 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus ReopenWritableFile( 24952: const std::string& , const FileOptions& , 24952: std::unique_ptr* , IODebugContext* ) { 24952: return IOStatus::NotSupported("ReopenWritableFile"); 24952: } 24952: 24952: 24952: virtual IOStatus ReuseWritableFile(const std::string& fname, 24952: const std::string& old_fname, 24952: const FileOptions& file_opts, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg); 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual IOStatus NewRandomRWFile(const std::string& , 24952: const FileOptions& , 24952: std::unique_ptr* , 24952: IODebugContext* ) { 24952: return IOStatus::NotSupported( 24952: "RandomRWFile is not implemented in this FileSystem"); 24952: } 24952: 24952: 24952: 24952: 24952: virtual IOStatus NewMemoryMappedFileBuffer( 24952: const std::string& , 24952: std::unique_ptr* ) { 24952: return IOStatus::NotSupported( 24952: "MemoryMappedFileBuffer is not implemented in this FileSystem"); 24952: } 24952: # 423 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus NewDirectory(const std::string& name, 24952: const IOOptions& io_opts, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg) = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual IOStatus FileExists(const std::string& fname, 24952: const IOOptions& options, 24952: IODebugContext* dbg) = 0; 24952: # 444 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus GetChildren(const std::string& dir, const IOOptions& options, 24952: std::vector* result, 24952: IODebugContext* dbg) = 0; 24952: # 458 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus GetChildrenFileAttributes( 24952: const std::string& dir, const IOOptions& options, 24952: std::vector* result, IODebugContext* dbg) { 24952: 24952: # 461 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 3 4 24952: (static_cast ( 24952: # 461 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: result != nullptr 24952: # 461 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 461 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: "result != nullptr" 24952: # 461 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 3 4 24952: , "./include/rocksdb/file_system.h", 461, __extension__ __PRETTY_FUNCTION__)) 24952: # 461 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: ; 24952: std::vector child_fnames; 24952: IOStatus s = GetChildren(dir, options, &child_fnames, dbg); 24952: if (!s.ok()) { 24952: return s; 24952: } 24952: result->resize(child_fnames.size()); 24952: size_t result_size = 0; 24952: for (size_t i = 0; i < child_fnames.size(); ++i) { 24952: const std::string path = dir + "/" + child_fnames[i]; 24952: if (!(s = GetFileSize(path, options, &(*result)[result_size].size_bytes, 24952: dbg)) 24952: .ok()) { 24952: if (FileExists(path, options, dbg).IsNotFound()) { 24952: 24952: continue; 24952: } 24952: return s; 24952: } 24952: (*result)[result_size].name = std::move(child_fnames[i]); 24952: result_size++; 24952: } 24952: result->resize(result_size); 24952: return IOStatus::OK(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual IOStatus DeleteFile(const std::string& fname, 24952: const IOOptions& options, 24952: IODebugContext* dbg) = 0; 24952: 24952: 24952: virtual IOStatus Truncate(const std::string& , size_t , 24952: const IOOptions& , 24952: IODebugContext* ) { 24952: return IOStatus::NotSupported( 24952: "Truncate is not supported for this FileSystem"); 24952: } 24952: 24952: 24952: virtual IOStatus CreateDir(const std::string& dirname, 24952: const IOOptions& options, IODebugContext* dbg) = 0; 24952: 24952: 24952: 24952: virtual IOStatus CreateDirIfMissing(const std::string& dirname, 24952: const IOOptions& options, 24952: IODebugContext* dbg) = 0; 24952: 24952: 24952: virtual IOStatus DeleteDir(const std::string& dirname, 24952: const IOOptions& options, IODebugContext* dbg) = 0; 24952: 24952: 24952: virtual IOStatus GetFileSize(const std::string& fname, 24952: const IOOptions& options, uint64_t* file_size, 24952: IODebugContext* dbg) = 0; 24952: 24952: 24952: virtual IOStatus GetFileModificationTime(const std::string& fname, 24952: const IOOptions& options, 24952: uint64_t* file_mtime, 24952: IODebugContext* dbg) = 0; 24952: 24952: virtual IOStatus RenameFile(const std::string& src, const std::string& target, 24952: const IOOptions& options, 24952: IODebugContext* dbg) = 0; 24952: 24952: 24952: virtual IOStatus LinkFile(const std::string& , 24952: const std::string& , 24952: const IOOptions& , 24952: IODebugContext* ) { 24952: return IOStatus::NotSupported( 24952: "LinkFile is not supported for this FileSystem"); 24952: } 24952: 24952: virtual IOStatus NumFileLinks(const std::string& , 24952: const IOOptions& , 24952: uint64_t* , IODebugContext* ) { 24952: return IOStatus::NotSupported( 24952: "Getting number of file links is not supported for this FileSystem"); 24952: } 24952: 24952: virtual IOStatus AreFilesSame(const std::string& , 24952: const std::string& , 24952: const IOOptions& , bool* , 24952: IODebugContext* ) { 24952: return IOStatus::NotSupported( 24952: "AreFilesSame is not supported for this FileSystem"); 24952: } 24952: # 571 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus LockFile(const std::string& fname, const IOOptions& options, 24952: FileLock** lock, IODebugContext* dbg) = 0; 24952: 24952: 24952: 24952: 24952: virtual IOStatus UnlockFile(FileLock* lock, const IOOptions& options, 24952: IODebugContext* dbg) = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 24952: IODebugContext* dbg) = 0; 24952: 24952: 24952: 24952: 24952: virtual IOStatus NewLogger(const std::string& fname, const IOOptions& io_opts, 24952: std::shared_ptr* result, 24952: IODebugContext* dbg); 24952: 24952: 24952: virtual IOStatus GetAbsolutePath(const std::string& db_path, 24952: const IOOptions& options, 24952: std::string* output_path, 24952: IODebugContext* dbg) = 0; 24952: 24952: 24952: 24952: virtual void SanitizeFileOptions(FileOptions* ) const {} 24952: 24952: 24952: 24952: virtual FileOptions OptimizeForLogRead(const FileOptions& file_options) const; 24952: 24952: 24952: 24952: 24952: virtual FileOptions OptimizeForManifestRead( 24952: const FileOptions& file_options) const; 24952: 24952: 24952: 24952: 24952: virtual FileOptions OptimizeForLogWrite(const FileOptions& file_options, 24952: const DBOptions& db_options) const; 24952: 24952: 24952: 24952: 24952: 24952: virtual FileOptions OptimizeForManifestWrite( 24952: const FileOptions& file_options) const; 24952: 24952: 24952: 24952: 24952: virtual FileOptions OptimizeForCompactionTableWrite( 24952: const FileOptions& file_options, 24952: const ImmutableDBOptions& immutable_ops) const; 24952: 24952: 24952: 24952: 24952: virtual FileOptions OptimizeForCompactionTableRead( 24952: const FileOptions& file_options, 24952: const ImmutableDBOptions& db_options) const; 24952: 24952: 24952: 24952: 24952: virtual FileOptions OptimizeForBlobFileRead( 24952: const FileOptions& file_options, 24952: const ImmutableDBOptions& db_options) const; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual IOStatus GetFreeSpace(const std::string& , 24952: const IOOptions& , 24952: uint64_t* , 24952: IODebugContext* ) { 24952: return IOStatus::NotSupported("GetFreeSpace"); 24952: } 24952: 24952: virtual IOStatus IsDirectory(const std::string& , 24952: const IOOptions& options, bool* is_dir, 24952: IODebugContext* ) = 0; 24952: # 672 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus Poll(std::vector& , 24952: size_t ) { 24952: return IOStatus::OK(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual IOStatus AbortIO(std::vector& ) { 24952: return IOStatus::OK(); 24952: } 24952: # 695 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual void SupportedOps(int64_t& supported_ops) { 24952: supported_ops = 0; 24952: supported_ops |= (1 << FSSupportedOps::kAsyncIO); 24952: } 24952: 24952: 24952: 24952: private: 24952: void operator=(const FileSystem&); 24952: }; 24952: 24952: 24952: class FSSequentialFile { 24952: public: 24952: FSSequentialFile() {} 24952: 24952: virtual ~FSSequentialFile() {} 24952: # 725 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus Read(size_t n, const IOOptions& options, Slice* result, 24952: char* scratch, IODebugContext* dbg) = 0; 24952: # 735 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus Skip(uint64_t n) = 0; 24952: 24952: 24952: 24952: virtual bool use_direct_io() const { return false; } 24952: 24952: 24952: 24952: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 24952: 24952: 24952: 24952: 24952: virtual IOStatus InvalidateCache(size_t , size_t ) { 24952: return IOStatus::NotSupported("InvalidateCache not supported."); 24952: } 24952: 24952: 24952: 24952: virtual IOStatus PositionedRead(uint64_t , size_t , 24952: const IOOptions& , 24952: Slice* , char* , 24952: IODebugContext* ) { 24952: return IOStatus::NotSupported("PositionedRead"); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 24952: 24952: 24952: 24952: }; 24952: 24952: 24952: struct FSReadRequest { 24952: 24952: uint64_t offset; 24952: 24952: 24952: 24952: size_t len; 24952: # 788 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: char* scratch; 24952: # 798 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: Slice result; 24952: 24952: 24952: 24952: IOStatus status; 24952: # 838 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: std::unique_ptr> fs_scratch; 24952: }; 24952: 24952: 24952: class FSRandomAccessFile { 24952: public: 24952: FSRandomAccessFile() {} 24952: 24952: virtual ~FSRandomAccessFile() {} 24952: # 862 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 24952: Slice* result, char* scratch, 24952: IODebugContext* dbg) const = 0; 24952: 24952: 24952: 24952: 24952: virtual IOStatus Prefetch(uint64_t , size_t , 24952: const IOOptions& , 24952: IODebugContext* ) { 24952: return IOStatus::NotSupported("Prefetch"); 24952: } 24952: # 883 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 24952: const IOOptions& options, IODebugContext* dbg) { 24952: 24952: # 885 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 3 4 24952: (static_cast ( 24952: # 885 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: reqs != nullptr 24952: # 885 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 885 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: "reqs != nullptr" 24952: # 885 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 3 4 24952: , "./include/rocksdb/file_system.h", 885, __extension__ __PRETTY_FUNCTION__)) 24952: # 885 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: ; 24952: for (size_t i = 0; i < num_reqs; ++i) { 24952: FSReadRequest& req = reqs[i]; 24952: req.status = 24952: Read(req.offset, req.len, options, &req.result, req.scratch, dbg); 24952: } 24952: return IOStatus::OK(); 24952: } 24952: # 909 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual size_t GetUniqueId(char* , size_t ) const { 24952: return 0; 24952: 24952: }; 24952: 24952: enum AccessPattern { kNormal, kRandom, kSequential, kWillNeed, kWontNeed }; 24952: 24952: virtual void Hint(AccessPattern ) {} 24952: 24952: 24952: 24952: virtual bool use_direct_io() const { return false; } 24952: 24952: 24952: 24952: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 24952: 24952: 24952: 24952: 24952: virtual IOStatus InvalidateCache(size_t , size_t ) { 24952: return IOStatus::NotSupported("InvalidateCache not supported."); 24952: } 24952: # 965 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus ReadAsync( 24952: FSReadRequest& req, const IOOptions& opts, 24952: std::function cb, void* cb_arg, 24952: void** , IOHandleDeleter* , IODebugContext* dbg) { 24952: req.status = 24952: Read(req.offset, req.len, opts, &(req.result), req.scratch, dbg); 24952: cb(req, cb_arg); 24952: return IOStatus::OK(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 24952: 24952: 24952: 24952: }; 24952: 24952: 24952: 24952: struct DataVerificationInfo { 24952: 24952: Slice checksum; 24952: }; 24952: 24952: 24952: 24952: 24952: class FSWritableFile { 24952: public: 24952: FSWritableFile() 24952: : last_preallocated_block_(0), 24952: preallocation_block_size_(0), 24952: io_priority_(Env::IO_TOTAL), 24952: write_hint_(Env::WLTH_NOT_SET), 24952: strict_bytes_per_sync_(false) {} 24952: 24952: explicit FSWritableFile(const FileOptions& options) 24952: : last_preallocated_block_(0), 24952: preallocation_block_size_(0), 24952: io_priority_(Env::IO_TOTAL), 24952: write_hint_(Env::WLTH_NOT_SET), 24952: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 24952: 24952: 24952: 24952: 24952: virtual ~FSWritableFile() {} 24952: 24952: 24952: 24952: 24952: virtual IOStatus Append(const Slice& data, const IOOptions& options, 24952: IODebugContext* dbg) = 0; 24952: # 1031 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus Append(const Slice& data, const IOOptions& options, 24952: const DataVerificationInfo& , 24952: IODebugContext* dbg) { 24952: return Append(data, options, dbg); 24952: } 24952: # 1057 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus PositionedAppend(const Slice& , 24952: uint64_t , 24952: const IOOptions& , 24952: IODebugContext* ) { 24952: return IOStatus::NotSupported("PositionedAppend"); 24952: } 24952: # 1072 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus PositionedAppend( 24952: const Slice& , uint64_t , 24952: const IOOptions& , 24952: const DataVerificationInfo& , 24952: IODebugContext* ) { 24952: return IOStatus::NotSupported("PositionedAppend"); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual IOStatus Truncate(uint64_t , const IOOptions& , 24952: IODebugContext* ) { 24952: return IOStatus::OK(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual IOStatus Close(const IOOptions& , 24952: IODebugContext* ) = 0; 24952: 24952: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 24952: virtual IOStatus Sync(const IOOptions& options, 24952: IODebugContext* dbg) = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 24952: return Sync(options, dbg); 24952: } 24952: 24952: 24952: 24952: virtual bool IsSyncThreadSafe() const { return false; } 24952: 24952: 24952: 24952: virtual bool use_direct_io() const { return false; } 24952: 24952: 24952: 24952: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 24952: 24952: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 24952: write_hint_ = hint; 24952: } 24952: # 1138 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 24952: 24952: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 24952: 24952: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 24952: 24952: 24952: 24952: virtual uint64_t GetFileSize(const IOOptions& , 24952: IODebugContext* ) { 24952: return 0; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void SetPreallocationBlockSize(size_t size) { 24952: preallocation_block_size_ = size; 24952: } 24952: 24952: virtual void GetPreallocationStatus(size_t* block_size, 24952: size_t* last_allocated_block) { 24952: *last_allocated_block = last_preallocated_block_; 24952: *block_size = preallocation_block_size_; 24952: } 24952: 24952: 24952: virtual size_t GetUniqueId(char* , size_t ) const { 24952: return 0; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual IOStatus InvalidateCache(size_t , size_t ) { 24952: return IOStatus::NotSupported("InvalidateCache not supported."); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual IOStatus RangeSync(uint64_t , uint64_t , 24952: const IOOptions& options, IODebugContext* dbg) { 24952: if (strict_bytes_per_sync_) { 24952: return Sync(options, dbg); 24952: } 24952: return IOStatus::OK(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 24952: IODebugContext* dbg) { 24952: if (preallocation_block_size_ == 0) { 24952: return; 24952: } 24952: 24952: 24952: 24952: const auto block_size = preallocation_block_size_; 24952: size_t new_last_preallocated_block = 24952: (offset + len + block_size - 1) / block_size; 24952: if (new_last_preallocated_block > last_preallocated_block_) { 24952: size_t num_spanned_blocks = 24952: new_last_preallocated_block - last_preallocated_block_; 24952: Allocate(block_size * last_preallocated_block_, 24952: block_size * num_spanned_blocks, options, dbg) 24952: .PermitUncheckedError(); 24952: last_preallocated_block_ = new_last_preallocated_block; 24952: } 24952: } 24952: 24952: 24952: virtual IOStatus Allocate(uint64_t , uint64_t , 24952: const IOOptions& , 24952: IODebugContext* ) { 24952: return IOStatus::OK(); 24952: } 24952: 24952: 24952: 24952: 24952: protected: 24952: size_t preallocation_block_size() { return preallocation_block_size_; } 24952: 24952: private: 24952: size_t last_preallocated_block_; 24952: size_t preallocation_block_size_; 24952: 24952: FSWritableFile(const FSWritableFile&); 24952: void operator=(const FSWritableFile&); 24952: 24952: protected: 24952: Env::IOPriority io_priority_; 24952: Env::WriteLifeTimeHint write_hint_; 24952: const bool strict_bytes_per_sync_; 24952: }; 24952: 24952: 24952: class FSRandomRWFile { 24952: public: 24952: FSRandomRWFile() {} 24952: 24952: 24952: 24952: 24952: virtual ~FSRandomRWFile() {} 24952: 24952: 24952: 24952: virtual bool use_direct_io() const { return false; } 24952: 24952: 24952: 24952: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 24952: 24952: 24952: 24952: virtual IOStatus Write(uint64_t offset, const Slice& data, 24952: const IOOptions& options, IODebugContext* dbg) = 0; 24952: # 1277 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 24952: Slice* result, char* scratch, 24952: IODebugContext* dbg) const = 0; 24952: 24952: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 24952: 24952: virtual IOStatus Sync(const IOOptions& options, IODebugContext* dbg) = 0; 24952: 24952: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 24952: return Sync(options, dbg); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual IOStatus Close(const IOOptions& options, IODebugContext* dbg) = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 24952: 24952: 24952: 24952: 24952: 24952: FSRandomRWFile(const RandomRWFile&) = delete; 24952: FSRandomRWFile& operator=(const RandomRWFile&) = delete; 24952: }; 24952: 24952: 24952: 24952: class FSMemoryMappedFileBuffer { 24952: public: 24952: FSMemoryMappedFileBuffer(void* _base, size_t _length) 24952: : base_(_base), length_(_length) {} 24952: 24952: virtual ~FSMemoryMappedFileBuffer() = 0; 24952: 24952: 24952: 24952: FSMemoryMappedFileBuffer(const FSMemoryMappedFileBuffer&) = delete; 24952: FSMemoryMappedFileBuffer& operator=(const FSMemoryMappedFileBuffer&) = delete; 24952: 24952: void* GetBase() const { return base_; } 24952: size_t GetLen() const { return length_; } 24952: 24952: protected: 24952: void* base_; 24952: const size_t length_; 24952: }; 24952: 24952: 24952: 24952: class FSDirectory { 24952: public: 24952: 24952: 24952: 24952: virtual ~FSDirectory() {} 24952: 24952: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) = 0; 24952: 24952: 24952: 24952: 24952: virtual IOStatus FsyncWithDirOptions( 24952: const IOOptions& options, IODebugContext* dbg, 24952: const DirFsyncOptions& ) { 24952: return Fsync(options, dbg); 24952: } 24952: 24952: 24952: 24952: 24952: virtual IOStatus Close(const IOOptions& , 24952: IODebugContext* ) { 24952: return IOStatus::NotSupported("Close"); 24952: } 24952: 24952: virtual size_t GetUniqueId(char* , size_t ) const { 24952: return 0; 24952: } 24952: 24952: 24952: 24952: }; 24952: # 1399 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/file_system.h" 24952: class FileSystemWrapper : public FileSystem { 24952: public: 24952: 24952: explicit FileSystemWrapper(const std::shared_ptr& t); 24952: ~FileSystemWrapper() override {} 24952: 24952: 24952: FileSystem* target() const { return target_.get(); } 24952: 24952: 24952: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 24952: std::unique_ptr* r, 24952: IODebugContext* dbg) override { 24952: return target_->NewSequentialFile(f, file_opts, r, dbg); 24952: } 24952: IOStatus NewRandomAccessFile(const std::string& f, 24952: const FileOptions& file_opts, 24952: std::unique_ptr* r, 24952: IODebugContext* dbg) override { 24952: return target_->NewRandomAccessFile(f, file_opts, r, dbg); 24952: } 24952: IOStatus NewWritableFile(const std::string& f, const FileOptions& file_opts, 24952: std::unique_ptr* r, 24952: IODebugContext* dbg) override { 24952: return target_->NewWritableFile(f, file_opts, r, dbg); 24952: } 24952: IOStatus ReopenWritableFile(const std::string& fname, 24952: const FileOptions& file_opts, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg) override { 24952: return target_->ReopenWritableFile(fname, file_opts, result, dbg); 24952: } 24952: IOStatus ReuseWritableFile(const std::string& fname, 24952: const std::string& old_fname, 24952: const FileOptions& file_opts, 24952: std::unique_ptr* r, 24952: IODebugContext* dbg) override { 24952: return target_->ReuseWritableFile(fname, old_fname, file_opts, r, dbg); 24952: } 24952: IOStatus NewRandomRWFile(const std::string& fname, 24952: const FileOptions& file_opts, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg) override { 24952: return target_->NewRandomRWFile(fname, file_opts, result, dbg); 24952: } 24952: IOStatus NewMemoryMappedFileBuffer( 24952: const std::string& fname, 24952: std::unique_ptr* result) override { 24952: return target_->NewMemoryMappedFileBuffer(fname, result); 24952: } 24952: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg) override { 24952: return target_->NewDirectory(name, io_opts, result, dbg); 24952: } 24952: IOStatus FileExists(const std::string& f, const IOOptions& io_opts, 24952: IODebugContext* dbg) override { 24952: return target_->FileExists(f, io_opts, dbg); 24952: } 24952: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 24952: std::vector* r, 24952: IODebugContext* dbg) override { 24952: return target_->GetChildren(dir, io_opts, r, dbg); 24952: } 24952: IOStatus GetChildrenFileAttributes(const std::string& dir, 24952: const IOOptions& options, 24952: std::vector* result, 24952: IODebugContext* dbg) override { 24952: return target_->GetChildrenFileAttributes(dir, options, result, dbg); 24952: } 24952: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 24952: IODebugContext* dbg) override { 24952: return target_->DeleteFile(f, options, dbg); 24952: } 24952: IOStatus Truncate(const std::string& fname, size_t size, 24952: const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->Truncate(fname, size, options, dbg); 24952: } 24952: IOStatus CreateDir(const std::string& d, const IOOptions& options, 24952: IODebugContext* dbg) override { 24952: return target_->CreateDir(d, options, dbg); 24952: } 24952: IOStatus CreateDirIfMissing(const std::string& d, const IOOptions& options, 24952: IODebugContext* dbg) override { 24952: return target_->CreateDirIfMissing(d, options, dbg); 24952: } 24952: IOStatus DeleteDir(const std::string& d, const IOOptions& options, 24952: IODebugContext* dbg) override { 24952: return target_->DeleteDir(d, options, dbg); 24952: } 24952: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 24952: uint64_t* s, IODebugContext* dbg) override { 24952: return target_->GetFileSize(f, options, s, dbg); 24952: } 24952: 24952: IOStatus GetFileModificationTime(const std::string& fname, 24952: const IOOptions& options, 24952: uint64_t* file_mtime, 24952: IODebugContext* dbg) override { 24952: return target_->GetFileModificationTime(fname, options, file_mtime, dbg); 24952: } 24952: 24952: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 24952: std::string* output_path, 24952: IODebugContext* dbg) override { 24952: return target_->GetAbsolutePath(db_path, options, output_path, dbg); 24952: } 24952: 24952: IOStatus RenameFile(const std::string& s, const std::string& t, 24952: const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->RenameFile(s, t, options, dbg); 24952: } 24952: 24952: IOStatus LinkFile(const std::string& s, const std::string& t, 24952: const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->LinkFile(s, t, options, dbg); 24952: } 24952: 24952: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 24952: uint64_t* count, IODebugContext* dbg) override { 24952: return target_->NumFileLinks(fname, options, count, dbg); 24952: } 24952: 24952: IOStatus AreFilesSame(const std::string& first, const std::string& second, 24952: const IOOptions& options, bool* res, 24952: IODebugContext* dbg) override { 24952: return target_->AreFilesSame(first, second, options, res, dbg); 24952: } 24952: 24952: IOStatus LockFile(const std::string& f, const IOOptions& options, 24952: FileLock** l, IODebugContext* dbg) override { 24952: return target_->LockFile(f, options, l, dbg); 24952: } 24952: 24952: IOStatus UnlockFile(FileLock* l, const IOOptions& options, 24952: IODebugContext* dbg) override { 24952: return target_->UnlockFile(l, options, dbg); 24952: } 24952: 24952: IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 24952: IODebugContext* dbg) override { 24952: return target_->GetTestDirectory(options, path, dbg); 24952: } 24952: IOStatus NewLogger(const std::string& fname, const IOOptions& options, 24952: std::shared_ptr* result, 24952: IODebugContext* dbg) override { 24952: return target_->NewLogger(fname, options, result, dbg); 24952: } 24952: 24952: void SanitizeFileOptions(FileOptions* opts) const override { 24952: target_->SanitizeFileOptions(opts); 24952: } 24952: 24952: FileOptions OptimizeForLogRead( 24952: const FileOptions& file_options) const override { 24952: return target_->OptimizeForLogRead(file_options); 24952: } 24952: FileOptions OptimizeForManifestRead( 24952: const FileOptions& file_options) const override { 24952: return target_->OptimizeForManifestRead(file_options); 24952: } 24952: FileOptions OptimizeForLogWrite(const FileOptions& file_options, 24952: const DBOptions& db_options) const override { 24952: return target_->OptimizeForLogWrite(file_options, db_options); 24952: } 24952: FileOptions OptimizeForManifestWrite( 24952: const FileOptions& file_options) const override { 24952: return target_->OptimizeForManifestWrite(file_options); 24952: } 24952: FileOptions OptimizeForCompactionTableWrite( 24952: const FileOptions& file_options, 24952: const ImmutableDBOptions& immutable_ops) const override { 24952: return target_->OptimizeForCompactionTableWrite(file_options, 24952: immutable_ops); 24952: } 24952: FileOptions OptimizeForCompactionTableRead( 24952: const FileOptions& file_options, 24952: const ImmutableDBOptions& db_options) const override { 24952: return target_->OptimizeForCompactionTableRead(file_options, db_options); 24952: } 24952: FileOptions OptimizeForBlobFileRead( 24952: const FileOptions& file_options, 24952: const ImmutableDBOptions& db_options) const override { 24952: return target_->OptimizeForBlobFileRead(file_options, db_options); 24952: } 24952: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 24952: uint64_t* diskfree, IODebugContext* dbg) override { 24952: return target_->GetFreeSpace(path, options, diskfree, dbg); 24952: } 24952: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 24952: bool* is_dir, IODebugContext* dbg) override { 24952: return target_->IsDirectory(path, options, is_dir, dbg); 24952: } 24952: 24952: const Customizable* Inner() const override { return target_.get(); } 24952: Status PrepareOptions(const ConfigOptions& options) override; 24952: std::string SerializeOptions(const ConfigOptions& config_options, 24952: const std::string& header) const override; 24952: 24952: virtual IOStatus Poll(std::vector& io_handles, 24952: size_t min_completions) override { 24952: return target_->Poll(io_handles, min_completions); 24952: } 24952: 24952: virtual IOStatus AbortIO(std::vector& io_handles) override { 24952: return target_->AbortIO(io_handles); 24952: } 24952: 24952: virtual void SupportedOps(int64_t& supported_ops) override { 24952: return target_->SupportedOps(supported_ops); 24952: } 24952: 24952: protected: 24952: std::shared_ptr target_; 24952: }; 24952: 24952: class FSSequentialFileWrapper : public FSSequentialFile { 24952: public: 24952: 24952: 24952: explicit FSSequentialFileWrapper(FSSequentialFile* t) : target_(t) {} 24952: 24952: FSSequentialFile* target() const { return target_; } 24952: 24952: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 24952: char* scratch, IODebugContext* dbg) override { 24952: return target_->Read(n, options, result, scratch, dbg); 24952: } 24952: IOStatus Skip(uint64_t n) override { return target_->Skip(n); } 24952: bool use_direct_io() const override { return target_->use_direct_io(); } 24952: size_t GetRequiredBufferAlignment() const override { 24952: return target_->GetRequiredBufferAlignment(); 24952: } 24952: IOStatus InvalidateCache(size_t offset, size_t length) override { 24952: return target_->InvalidateCache(offset, length); 24952: } 24952: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 24952: Slice* result, char* scratch, 24952: IODebugContext* dbg) override { 24952: return target_->PositionedRead(offset, n, options, result, scratch, dbg); 24952: } 24952: Temperature GetTemperature() const override { 24952: return target_->GetTemperature(); 24952: } 24952: 24952: private: 24952: FSSequentialFile* target_; 24952: }; 24952: 24952: class FSSequentialFileOwnerWrapper : public FSSequentialFileWrapper { 24952: public: 24952: 24952: 24952: explicit FSSequentialFileOwnerWrapper(std::unique_ptr&& t) 24952: : FSSequentialFileWrapper(t.get()), guard_(std::move(t)) {} 24952: 24952: private: 24952: std::unique_ptr guard_; 24952: }; 24952: 24952: class FSRandomAccessFileWrapper : public FSRandomAccessFile { 24952: public: 24952: 24952: 24952: explicit FSRandomAccessFileWrapper(FSRandomAccessFile* t) : target_(t) {} 24952: 24952: FSRandomAccessFile* target() const { return target_; } 24952: 24952: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 24952: Slice* result, char* scratch, 24952: IODebugContext* dbg) const override { 24952: return target_->Read(offset, n, options, result, scratch, dbg); 24952: } 24952: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 24952: const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->MultiRead(reqs, num_reqs, options, dbg); 24952: } 24952: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 24952: IODebugContext* dbg) override { 24952: return target_->Prefetch(offset, n, options, dbg); 24952: } 24952: size_t GetUniqueId(char* id, size_t max_size) const override { 24952: return target_->GetUniqueId(id, max_size); 24952: }; 24952: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 24952: bool use_direct_io() const override { return target_->use_direct_io(); } 24952: size_t GetRequiredBufferAlignment() const override { 24952: return target_->GetRequiredBufferAlignment(); 24952: } 24952: IOStatus InvalidateCache(size_t offset, size_t length) override { 24952: return target_->InvalidateCache(offset, length); 24952: } 24952: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 24952: std::function cb, 24952: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 24952: IODebugContext* dbg) override { 24952: return target()->ReadAsync(req, opts, cb, cb_arg, io_handle, del_fn, dbg); 24952: } 24952: Temperature GetTemperature() const override { 24952: return target_->GetTemperature(); 24952: } 24952: 24952: private: 24952: std::unique_ptr guard_; 24952: FSRandomAccessFile* target_; 24952: }; 24952: 24952: class FSRandomAccessFileOwnerWrapper : public FSRandomAccessFileWrapper { 24952: public: 24952: 24952: 24952: explicit FSRandomAccessFileOwnerWrapper( 24952: std::unique_ptr&& t) 24952: : FSRandomAccessFileWrapper(t.get()), guard_(std::move(t)) {} 24952: 24952: private: 24952: std::unique_ptr guard_; 24952: }; 24952: 24952: class FSWritableFileWrapper : public FSWritableFile { 24952: public: 24952: 24952: 24952: explicit FSWritableFileWrapper(FSWritableFile* t) : target_(t) {} 24952: 24952: FSWritableFile* target() const { return target_; } 24952: 24952: IOStatus Append(const Slice& data, const IOOptions& options, 24952: IODebugContext* dbg) override { 24952: return target_->Append(data, options, dbg); 24952: } 24952: IOStatus Append(const Slice& data, const IOOptions& options, 24952: const DataVerificationInfo& verification_info, 24952: IODebugContext* dbg) override { 24952: return target_->Append(data, options, verification_info, dbg); 24952: } 24952: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 24952: const IOOptions& options, 24952: IODebugContext* dbg) override { 24952: return target_->PositionedAppend(data, offset, options, dbg); 24952: } 24952: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 24952: const IOOptions& options, 24952: const DataVerificationInfo& verification_info, 24952: IODebugContext* dbg) override { 24952: return target_->PositionedAppend(data, offset, options, verification_info, 24952: dbg); 24952: } 24952: IOStatus Truncate(uint64_t size, const IOOptions& options, 24952: IODebugContext* dbg) override { 24952: return target_->Truncate(size, options, dbg); 24952: } 24952: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->Close(options, dbg); 24952: } 24952: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->Flush(options, dbg); 24952: } 24952: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->Sync(options, dbg); 24952: } 24952: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->Fsync(options, dbg); 24952: } 24952: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 24952: 24952: bool use_direct_io() const override { return target_->use_direct_io(); } 24952: 24952: size_t GetRequiredBufferAlignment() const override { 24952: return target_->GetRequiredBufferAlignment(); 24952: } 24952: 24952: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 24952: target_->SetWriteLifeTimeHint(hint); 24952: } 24952: 24952: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 24952: return target_->GetWriteLifeTimeHint(); 24952: } 24952: 24952: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->GetFileSize(options, dbg); 24952: } 24952: 24952: void SetPreallocationBlockSize(size_t size) override { 24952: target_->SetPreallocationBlockSize(size); 24952: } 24952: 24952: void GetPreallocationStatus(size_t* block_size, 24952: size_t* last_allocated_block) override { 24952: target_->GetPreallocationStatus(block_size, last_allocated_block); 24952: } 24952: 24952: size_t GetUniqueId(char* id, size_t max_size) const override { 24952: return target_->GetUniqueId(id, max_size); 24952: } 24952: 24952: IOStatus InvalidateCache(size_t offset, size_t length) override { 24952: return target_->InvalidateCache(offset, length); 24952: } 24952: 24952: IOStatus RangeSync(uint64_t offset, uint64_t nbytes, const IOOptions& options, 24952: IODebugContext* dbg) override { 24952: return target_->RangeSync(offset, nbytes, options, dbg); 24952: } 24952: 24952: void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 24952: IODebugContext* dbg) override { 24952: target_->PrepareWrite(offset, len, options, dbg); 24952: } 24952: 24952: IOStatus Allocate(uint64_t offset, uint64_t len, const IOOptions& options, 24952: IODebugContext* dbg) override { 24952: return target_->Allocate(offset, len, options, dbg); 24952: } 24952: 24952: private: 24952: FSWritableFile* target_; 24952: }; 24952: 24952: class FSWritableFileOwnerWrapper : public FSWritableFileWrapper { 24952: public: 24952: 24952: 24952: explicit FSWritableFileOwnerWrapper(std::unique_ptr&& t) 24952: : FSWritableFileWrapper(t.get()), guard_(std::move(t)) {} 24952: 24952: private: 24952: std::unique_ptr guard_; 24952: }; 24952: 24952: class FSRandomRWFileWrapper : public FSRandomRWFile { 24952: public: 24952: 24952: 24952: explicit FSRandomRWFileWrapper(FSRandomRWFile* t) : target_(t) {} 24952: 24952: FSRandomRWFile* target() const { return target_; } 24952: 24952: bool use_direct_io() const override { return target_->use_direct_io(); } 24952: size_t GetRequiredBufferAlignment() const override { 24952: return target_->GetRequiredBufferAlignment(); 24952: } 24952: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 24952: IODebugContext* dbg) override { 24952: return target_->Write(offset, data, options, dbg); 24952: } 24952: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 24952: Slice* result, char* scratch, 24952: IODebugContext* dbg) const override { 24952: return target_->Read(offset, n, options, result, scratch, dbg); 24952: } 24952: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->Flush(options, dbg); 24952: } 24952: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->Sync(options, dbg); 24952: } 24952: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->Fsync(options, dbg); 24952: } 24952: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->Close(options, dbg); 24952: } 24952: Temperature GetTemperature() const override { 24952: return target_->GetTemperature(); 24952: } 24952: 24952: private: 24952: FSRandomRWFile* target_; 24952: }; 24952: 24952: class FSRandomRWFileOwnerWrapper : public FSRandomRWFileWrapper { 24952: public: 24952: 24952: 24952: explicit FSRandomRWFileOwnerWrapper(std::unique_ptr&& t) 24952: : FSRandomRWFileWrapper(t.get()), guard_(std::move(t)) {} 24952: 24952: private: 24952: std::unique_ptr guard_; 24952: }; 24952: 24952: class FSDirectoryWrapper : public FSDirectory { 24952: public: 24952: 24952: 24952: explicit FSDirectoryWrapper(std::unique_ptr&& t) 24952: : guard_(std::move(t)) { 24952: target_ = guard_.get(); 24952: } 24952: 24952: 24952: 24952: explicit FSDirectoryWrapper(FSDirectory* t) : target_(t) {} 24952: 24952: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->Fsync(options, dbg); 24952: } 24952: 24952: IOStatus FsyncWithDirOptions( 24952: const IOOptions& options, IODebugContext* dbg, 24952: const DirFsyncOptions& dir_fsync_options) override { 24952: return target_->FsyncWithDirOptions(options, dbg, dir_fsync_options); 24952: } 24952: 24952: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 24952: return target_->Close(options, dbg); 24952: } 24952: 24952: size_t GetUniqueId(char* id, size_t max_size) const override { 24952: return target_->GetUniqueId(id, max_size); 24952: } 24952: 24952: private: 24952: std::unique_ptr guard_; 24952: FSDirectory* target_; 24952: }; 24952: 24952: 24952: extern IOStatus WriteStringToFile(FileSystem* fs, const Slice& data, 24952: const std::string& fname, 24952: bool should_sync = false); 24952: 24952: 24952: extern IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 24952: std::string* data); 24952: 24952: } 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/cassert" 1 3 24952: # 41 "/usr/include/c++/13/cassert" 3 24952: 24952: # 42 "/usr/include/c++/13/cassert" 3 24952: 24952: 24952: # 1 "/usr/include/assert.h" 1 3 4 24952: # 45 "/usr/include/c++/13/cassert" 2 3 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 2 24952: 24952: 24952: 24952: namespace rocksdb { 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: inline size_t TruncateToPageBoundary(size_t page_size, size_t s) { 24952: s -= (s & (page_size - 1)); 24952: 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: (static_cast ( 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: (s % page_size) == 0 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: "(s % page_size) == 0" 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: , "./util/aligned_buffer.h", 27, __extension__ __PRETTY_FUNCTION__)) 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: ; 24952: return s; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: inline size_t Roundup(size_t x, size_t y) { return ((x + y - 1) / y) * y; } 24952: 24952: 24952: 24952: 24952: 24952: inline size_t Rounddown(size_t x, size_t y) { return (x / y) * y; } 24952: # 57 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: class AlignedBuffer { 24952: size_t alignment_; 24952: std::unique_ptr buf_; 24952: size_t capacity_; 24952: size_t cursize_; 24952: char* bufstart_; 24952: 24952: public: 24952: AlignedBuffer() 24952: : alignment_(), capacity_(0), cursize_(0), bufstart_(nullptr) {} 24952: 24952: AlignedBuffer(AlignedBuffer&& o) noexcept { *this = std::move(o); } 24952: 24952: AlignedBuffer& operator=(AlignedBuffer&& o) noexcept { 24952: alignment_ = std::move(o.alignment_); 24952: buf_ = std::move(o.buf_); 24952: capacity_ = std::move(o.capacity_); 24952: cursize_ = std::move(o.cursize_); 24952: bufstart_ = std::move(o.bufstart_); 24952: return *this; 24952: } 24952: 24952: AlignedBuffer(const AlignedBuffer&) = delete; 24952: 24952: AlignedBuffer& operator=(const AlignedBuffer&) = delete; 24952: 24952: static bool isAligned(const void* ptr, size_t alignment) { 24952: return reinterpret_cast(ptr) % alignment == 0; 24952: } 24952: 24952: static bool isAligned(size_t n, size_t alignment) { 24952: return n % alignment == 0; 24952: } 24952: 24952: size_t Alignment() const { return alignment_; } 24952: 24952: size_t Capacity() const { return capacity_; } 24952: 24952: size_t CurrentSize() const { return cursize_; } 24952: 24952: const char* BufferStart() const { return bufstart_; } 24952: 24952: char* BufferStart() { return bufstart_; } 24952: 24952: void Clear() { cursize_ = 0; } 24952: 24952: char* Release() { 24952: cursize_ = 0; 24952: capacity_ = 0; 24952: bufstart_ = nullptr; 24952: return buf_.release(); 24952: } 24952: 24952: void Alignment(size_t alignment) { 24952: 24952: # 111 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: (static_cast ( 24952: # 111 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: alignment > 0 24952: # 111 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 111 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: "alignment > 0" 24952: # 111 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: , "./util/aligned_buffer.h", 111, __extension__ __PRETTY_FUNCTION__)) 24952: # 111 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: ; 24952: 24952: # 112 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: (static_cast ( 24952: # 112 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: (alignment & (alignment - 1)) == 0 24952: # 112 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 112 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: "(alignment & (alignment - 1)) == 0" 24952: # 112 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: , "./util/aligned_buffer.h", 112, __extension__ __PRETTY_FUNCTION__)) 24952: # 112 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: ; 24952: alignment_ = alignment; 24952: } 24952: # 131 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: void AllocateNewBuffer(size_t requested_capacity, bool copy_data = false, 24952: uint64_t copy_offset = 0, size_t copy_len = 0) { 24952: 24952: # 133 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: (static_cast ( 24952: # 133 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: alignment_ > 0 24952: # 133 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 133 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: "alignment_ > 0" 24952: # 133 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: , "./util/aligned_buffer.h", 133, __extension__ __PRETTY_FUNCTION__)) 24952: # 133 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: ; 24952: 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: (static_cast ( 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: (alignment_ & (alignment_ - 1)) == 0 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: "(alignment_ & (alignment_ - 1)) == 0" 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: , "./util/aligned_buffer.h", 134, __extension__ __PRETTY_FUNCTION__)) 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: ; 24952: 24952: copy_len = copy_len > 0 ? copy_len : cursize_; 24952: if (copy_data && requested_capacity < copy_len) { 24952: 24952: 24952: return; 24952: } 24952: 24952: size_t new_capacity = Roundup(requested_capacity, alignment_); 24952: char* new_buf = new char[new_capacity + alignment_]; 24952: char* new_bufstart = reinterpret_cast( 24952: (reinterpret_cast(new_buf) + (alignment_ - 1)) & 24952: ~static_cast(alignment_ - 1)); 24952: 24952: if (copy_data) { 24952: 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: (static_cast ( 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_ 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: "bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_" 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: , "./util/aligned_buffer.h", 150, __extension__ __PRETTY_FUNCTION__)) 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: ; 24952: memcpy(new_bufstart, bufstart_ + copy_offset, copy_len); 24952: cursize_ = copy_len; 24952: } else { 24952: cursize_ = 0; 24952: } 24952: 24952: bufstart_ = new_bufstart; 24952: capacity_ = new_capacity; 24952: buf_.reset(new_buf); 24952: } 24952: # 170 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: size_t Append(const char* src, size_t append_size) { 24952: size_t buffer_remaining = capacity_ - cursize_; 24952: size_t to_copy = std::min(append_size, buffer_remaining); 24952: 24952: if (to_copy > 0) { 24952: memcpy(bufstart_ + cursize_, src, to_copy); 24952: cursize_ += to_copy; 24952: } 24952: return to_copy; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t Read(char* dest, size_t offset, size_t read_size) const { 24952: 24952: # 188 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: (static_cast ( 24952: # 188 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: offset < cursize_ 24952: # 188 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 188 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: "offset < cursize_" 24952: # 188 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: , "./util/aligned_buffer.h", 188, __extension__ __PRETTY_FUNCTION__)) 24952: # 188 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: ; 24952: 24952: size_t to_read = 0; 24952: if (offset < cursize_) { 24952: to_read = std::min(cursize_ - offset, read_size); 24952: } 24952: if (to_read > 0) { 24952: memcpy(dest, bufstart_ + offset, to_read); 24952: } 24952: return to_read; 24952: } 24952: 24952: 24952: void PadToAlignmentWith(int padding) { 24952: size_t total_size = Roundup(cursize_, alignment_); 24952: size_t pad_size = total_size - cursize_; 24952: 24952: if (pad_size > 0) { 24952: 24952: # 206 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: (static_cast ( 24952: # 206 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: (pad_size + cursize_) <= capacity_ 24952: # 206 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 206 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: "(pad_size + cursize_) <= capacity_" 24952: # 206 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: , "./util/aligned_buffer.h", 206, __extension__ __PRETTY_FUNCTION__)) 24952: # 206 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: ; 24952: memset(bufstart_ + cursize_, padding, pad_size); 24952: cursize_ += pad_size; 24952: } 24952: } 24952: 24952: void PadWith(size_t pad_size, int padding) { 24952: 24952: # 213 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: (static_cast ( 24952: # 213 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: (pad_size + cursize_) <= capacity_ 24952: # 213 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 213 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: "(pad_size + cursize_) <= capacity_" 24952: # 213 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 3 4 24952: , "./util/aligned_buffer.h", 213, __extension__ __PRETTY_FUNCTION__)) 24952: # 213 "/build/reproducible-path/rocksdb-8.9.1/util/aligned_buffer.h" 24952: ; 24952: memset(bufstart_ + cursize_, padding, pad_size); 24952: cursize_ += pad_size; 24952: } 24952: 24952: 24952: void RefitTail(size_t tail_offset, size_t tail_size) { 24952: if (tail_size > 0) { 24952: memmove(bufstart_, bufstart_ + tail_offset, tail_size); 24952: } 24952: cursize_ = tail_size; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: char* Destination() { return bufstart_ + cursize_; } 24952: 24952: void Size(size_t cursize) { cursize_ = cursize; } 24952: }; 24952: } 24952: # 24 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/cassert" 1 3 24952: # 41 "/usr/include/c++/13/cassert" 3 24952: 24952: # 42 "/usr/include/c++/13/cassert" 3 24952: 24952: 24952: # 1 "/usr/include/assert.h" 1 3 4 24952: # 45 "/usr/include/c++/13/cassert" 2 3 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 2 24952: 24952: # 1 "/usr/include/c++/13/iterator" 1 3 24952: # 58 "/usr/include/c++/13/iterator" 3 24952: 24952: # 59 "/usr/include/c++/13/iterator" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/stream_iterator.h" 1 3 24952: # 33 "/usr/include/c++/13/bits/stream_iterator.h" 3 24952: 24952: # 34 "/usr/include/c++/13/bits/stream_iterator.h" 3 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 40 "/usr/include/c++/13/bits/stream_iterator.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 50 "/usr/include/c++/13/bits/stream_iterator.h" 3 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 24952: 24952: 24952: template, typename _Dist = ptrdiff_t> 24952: class istream_iterator 24952: : public iterator 24952: { 24952: public: 24952: typedef _CharT char_type; 24952: typedef _Traits traits_type; 24952: typedef basic_istream<_CharT, _Traits> istream_type; 24952: 24952: private: 24952: istream_type* _M_stream; 24952: _Tp _M_value; 24952: 24952: 24952: 24952: bool _M_ok; 24952: 24952: public: 24952: 24952: constexpr istream_iterator() 24952: noexcept(is_nothrow_default_constructible<_Tp>::value) 24952: : _M_stream(0), _M_value(), _M_ok(false) {} 24952: 24952: 24952: istream_iterator(istream_type& __s) 24952: : _M_stream(std::__addressof(__s)), _M_ok(true) 24952: { _M_read(); } 24952: 24952: constexpr 24952: istream_iterator(const istream_iterator& __obj) 24952: noexcept(is_nothrow_copy_constructible<_Tp>::value) 24952: : _M_stream(__obj._M_stream), _M_value(__obj._M_value), 24952: _M_ok(__obj._M_ok) 24952: { } 24952: # 98 "/usr/include/c++/13/bits/stream_iterator.h" 3 24952: istream_iterator& operator=(const istream_iterator&) = default; 24952: ~istream_iterator() = default; 24952: 24952: 24952: [[__nodiscard__]] 24952: const _Tp& 24952: operator*() const noexcept 24952: { 24952: 24952: 24952: ; 24952: return _M_value; 24952: } 24952: 24952: [[__nodiscard__]] 24952: const _Tp* 24952: operator->() const noexcept 24952: { return std::__addressof((operator*())); } 24952: 24952: istream_iterator& 24952: operator++() 24952: { 24952: 24952: 24952: ; 24952: _M_read(); 24952: return *this; 24952: } 24952: 24952: istream_iterator 24952: operator++(int) 24952: { 24952: 24952: 24952: ; 24952: istream_iterator __tmp = *this; 24952: _M_read(); 24952: return __tmp; 24952: } 24952: 24952: private: 24952: bool 24952: _M_equal(const istream_iterator& __x) const noexcept 24952: { 24952: 24952: 24952: return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); 24952: } 24952: 24952: void 24952: _M_read() 24952: { 24952: if (_M_stream && !(*_M_stream >> _M_value)) 24952: { 24952: _M_stream = 0; 24952: _M_ok = false; 24952: } 24952: } 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator==(const istream_iterator& __x, const istream_iterator& __y) 24952: noexcept 24952: { return __x._M_equal(__y); } 24952: 24952: 24952: 24952: 24952: [[__nodiscard__]] 24952: friend bool 24952: operator!=(const istream_iterator& __x, const istream_iterator& __y) 24952: noexcept 24952: { return !__x._M_equal(__y); } 24952: # 181 "/usr/include/c++/13/bits/stream_iterator.h" 3 24952: }; 24952: # 194 "/usr/include/c++/13/bits/stream_iterator.h" 3 24952: template > 24952: class ostream_iterator 24952: : public iterator 24952: { 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: typedef _CharT char_type; 24952: typedef _Traits traits_type; 24952: typedef basic_ostream<_CharT, _Traits> ostream_type; 24952: 24952: 24952: private: 24952: ostream_type* _M_stream; 24952: const _CharT* _M_string; 24952: 24952: public: 24952: 24952: ostream_iterator(ostream_type& __s) noexcept 24952: : _M_stream(std::__addressof(__s)), _M_string(0) {} 24952: # 229 "/usr/include/c++/13/bits/stream_iterator.h" 3 24952: ostream_iterator(ostream_type& __s, const _CharT* __c) noexcept 24952: : _M_stream(std::__addressof(__s)), _M_string(__c) { } 24952: 24952: 24952: ostream_iterator(const ostream_iterator& __obj) noexcept 24952: : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { } 24952: 24952: 24952: ostream_iterator& operator=(const ostream_iterator&) = default; 24952: 24952: 24952: 24952: 24952: ostream_iterator& 24952: operator=(const _Tp& __value) 24952: { 24952: 24952: 24952: ; 24952: *_M_stream << __value; 24952: if (_M_string) 24952: *_M_stream << _M_string; 24952: return *this; 24952: } 24952: 24952: [[__nodiscard__]] 24952: ostream_iterator& 24952: operator*() noexcept 24952: { return *this; } 24952: 24952: ostream_iterator& 24952: operator++() noexcept 24952: { return *this; } 24952: 24952: ostream_iterator& 24952: operator++(int) noexcept 24952: { return *this; } 24952: }; 24952: #pragma GCC diagnostic pop 24952: 24952: 24952: 24952: 24952: } 24952: # 66 "/usr/include/c++/13/iterator" 2 3 24952: # 11 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 2 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: namespace rocksdb { 24952: # 39 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: template 24952: class autovector { 24952: public: 24952: 24952: using value_type = T; 24952: using difference_type = typename std::vector::difference_type; 24952: using size_type = typename std::vector::size_type; 24952: using reference = value_type&; 24952: using const_reference = const value_type&; 24952: using pointer = value_type*; 24952: using const_pointer = const value_type*; 24952: 24952: 24952: template 24952: class iterator_impl { 24952: public: 24952: 24952: using self_type = iterator_impl; 24952: using value_type = TValueType; 24952: using reference = TValueType&; 24952: using pointer = TValueType*; 24952: using difference_type = typename TAutoVector::difference_type; 24952: using iterator_category = std::random_access_iterator_tag; 24952: 24952: iterator_impl(TAutoVector* vect, size_t index) 24952: : vect_(vect), index_(index){}; 24952: iterator_impl(const iterator_impl&) = default; 24952: ~iterator_impl() {} 24952: iterator_impl& operator=(const iterator_impl&) = default; 24952: 24952: 24952: 24952: self_type& operator++() { 24952: ++index_; 24952: return *this; 24952: } 24952: 24952: 24952: self_type operator++(int) { 24952: auto old = *this; 24952: ++index_; 24952: return old; 24952: } 24952: 24952: 24952: self_type& operator--() { 24952: --index_; 24952: return *this; 24952: } 24952: 24952: 24952: self_type operator--(int) { 24952: auto old = *this; 24952: --index_; 24952: return old; 24952: } 24952: 24952: self_type operator-(difference_type len) const { 24952: return self_type(vect_, index_ - len); 24952: } 24952: 24952: difference_type operator-(const self_type& other) const { 24952: 24952: # 101 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 101 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: vect_ == other.vect_ 24952: # 101 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 101 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "vect_ == other.vect_" 24952: # 101 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 101, __extension__ __PRETTY_FUNCTION__)) 24952: # 101 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return index_ - other.index_; 24952: } 24952: 24952: self_type operator+(difference_type len) const { 24952: return self_type(vect_, index_ + len); 24952: } 24952: 24952: self_type& operator+=(difference_type len) { 24952: index_ += len; 24952: return *this; 24952: } 24952: 24952: self_type& operator-=(difference_type len) { 24952: index_ -= len; 24952: return *this; 24952: } 24952: 24952: 24952: reference operator*() const { 24952: 24952: # 121 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 121 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: vect_->size() >= index_ 24952: # 121 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 121 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "vect_->size() >= index_" 24952: # 121 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 121, __extension__ __PRETTY_FUNCTION__)) 24952: # 121 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return (*vect_)[index_]; 24952: } 24952: 24952: pointer operator->() const { 24952: 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: vect_->size() >= index_ 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "vect_->size() >= index_" 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 126, __extension__ __PRETTY_FUNCTION__)) 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return &(*vect_)[index_]; 24952: } 24952: 24952: reference operator[](difference_type len) const { return *(*this + len); } 24952: 24952: 24952: bool operator==(const self_type& other) const { 24952: 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: vect_ == other.vect_ 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "vect_ == other.vect_" 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 134, __extension__ __PRETTY_FUNCTION__)) 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return index_ == other.index_; 24952: } 24952: 24952: bool operator!=(const self_type& other) const { return !(*this == other); } 24952: 24952: bool operator>(const self_type& other) const { 24952: 24952: # 141 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 141 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: vect_ == other.vect_ 24952: # 141 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 141 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "vect_ == other.vect_" 24952: # 141 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 141, __extension__ __PRETTY_FUNCTION__)) 24952: # 141 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return index_ > other.index_; 24952: } 24952: 24952: bool operator<(const self_type& other) const { 24952: 24952: # 146 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 146 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: vect_ == other.vect_ 24952: # 146 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 146 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "vect_ == other.vect_" 24952: # 146 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 146, __extension__ __PRETTY_FUNCTION__)) 24952: # 146 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return index_ < other.index_; 24952: } 24952: 24952: bool operator>=(const self_type& other) const { 24952: 24952: # 151 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 151 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: vect_ == other.vect_ 24952: # 151 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 151 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "vect_ == other.vect_" 24952: # 151 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 151, __extension__ __PRETTY_FUNCTION__)) 24952: # 151 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return index_ >= other.index_; 24952: } 24952: 24952: bool operator<=(const self_type& other) const { 24952: 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: vect_ == other.vect_ 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "vect_ == other.vect_" 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 156, __extension__ __PRETTY_FUNCTION__)) 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return index_ <= other.index_; 24952: } 24952: 24952: private: 24952: TAutoVector* vect_ = nullptr; 24952: size_t index_ = 0; 24952: }; 24952: 24952: using iterator = iterator_impl; 24952: using const_iterator = iterator_impl; 24952: using reverse_iterator = std::reverse_iterator; 24952: using const_reverse_iterator = std::reverse_iterator; 24952: 24952: autovector() : values_(reinterpret_cast(buf_)) {} 24952: 24952: autovector(std::initializer_list init_list) 24952: : values_(reinterpret_cast(buf_)) { 24952: for (const T& item : init_list) { 24952: push_back(item); 24952: } 24952: } 24952: 24952: ~autovector() { clear(); } 24952: 24952: 24952: 24952: bool only_in_stack() const { 24952: 24952: return vect_.capacity() == 0; 24952: } 24952: 24952: size_type size() const { return num_stack_items_ + vect_.size(); } 24952: 24952: 24952: 24952: void resize(size_type n) { 24952: if (n > kSize) { 24952: vect_.resize(n - kSize); 24952: while (num_stack_items_ < kSize) { 24952: new ((void*)(&values_[num_stack_items_++])) value_type(); 24952: } 24952: num_stack_items_ = kSize; 24952: } else { 24952: vect_.clear(); 24952: while (num_stack_items_ < n) { 24952: new ((void*)(&values_[num_stack_items_++])) value_type(); 24952: } 24952: while (num_stack_items_ > n) { 24952: values_[--num_stack_items_].~value_type(); 24952: } 24952: } 24952: } 24952: 24952: bool empty() const { return size() == 0; } 24952: 24952: size_type capacity() const { return kSize + vect_.capacity(); } 24952: 24952: void reserve(size_t cap) { 24952: if (cap > kSize) { 24952: vect_.reserve(cap - kSize); 24952: } 24952: 24952: 24952: # 219 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 219 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: cap <= capacity() 24952: # 219 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 219 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "cap <= capacity()" 24952: # 219 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 219, __extension__ __PRETTY_FUNCTION__)) 24952: # 219 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: } 24952: 24952: const_reference operator[](size_type n) const { 24952: 24952: # 223 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 223 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: n < size() 24952: # 223 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 223 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "n < size()" 24952: # 223 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 223, __extension__ __PRETTY_FUNCTION__)) 24952: # 223 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: if (n < kSize) { 24952: return values_[n]; 24952: } 24952: return vect_[n - kSize]; 24952: } 24952: 24952: reference operator[](size_type n) { 24952: 24952: # 231 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 231 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: n < size() 24952: # 231 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 231 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "n < size()" 24952: # 231 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 231, __extension__ __PRETTY_FUNCTION__)) 24952: # 231 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: if (n < kSize) { 24952: return values_[n]; 24952: } 24952: return vect_[n - kSize]; 24952: } 24952: 24952: const_reference at(size_type n) const { 24952: 24952: # 239 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 239 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: n < size() 24952: # 239 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 239 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "n < size()" 24952: # 239 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 239, __extension__ __PRETTY_FUNCTION__)) 24952: # 239 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return (*this)[n]; 24952: } 24952: 24952: reference at(size_type n) { 24952: 24952: # 244 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 244 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: n < size() 24952: # 244 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 244 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "n < size()" 24952: # 244 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 244, __extension__ __PRETTY_FUNCTION__)) 24952: # 244 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return (*this)[n]; 24952: } 24952: 24952: reference front() { 24952: 24952: # 249 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 249 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: !empty() 24952: # 249 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 249 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "!empty()" 24952: # 249 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 249, __extension__ __PRETTY_FUNCTION__)) 24952: # 249 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return *begin(); 24952: } 24952: 24952: const_reference front() const { 24952: 24952: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: !empty() 24952: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "!empty()" 24952: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 254, __extension__ __PRETTY_FUNCTION__)) 24952: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return *begin(); 24952: } 24952: 24952: reference back() { 24952: 24952: # 259 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 259 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: !empty() 24952: # 259 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 259 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "!empty()" 24952: # 259 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 259, __extension__ __PRETTY_FUNCTION__)) 24952: # 259 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return *(end() - 1); 24952: } 24952: 24952: const_reference back() const { 24952: 24952: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: !empty() 24952: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "!empty()" 24952: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 264, __extension__ __PRETTY_FUNCTION__)) 24952: # 264 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: return *(end() - 1); 24952: } 24952: 24952: 24952: void push_back(T&& item) { 24952: if (num_stack_items_ < kSize) { 24952: new ((void*)(&values_[num_stack_items_])) value_type(); 24952: values_[num_stack_items_++] = std::move(item); 24952: } else { 24952: vect_.push_back(item); 24952: } 24952: } 24952: 24952: void push_back(const T& item) { 24952: if (num_stack_items_ < kSize) { 24952: new ((void*)(&values_[num_stack_items_])) value_type(); 24952: values_[num_stack_items_++] = item; 24952: } else { 24952: vect_.push_back(item); 24952: } 24952: } 24952: 24952: template 24952: # 298 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: void emplace_back(Args&&... args) { 24952: if (num_stack_items_ < kSize) { 24952: new ((void*)(&values_[num_stack_items_++])) 24952: value_type(std::forward(args)...); 24952: } else { 24952: vect_.emplace_back(std::forward(args)...); 24952: } 24952: } 24952: 24952: 24952: void pop_back() { 24952: 24952: # 309 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: (static_cast ( 24952: # 309 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: !empty() 24952: # 309 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 309 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: "!empty()" 24952: # 309 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 3 4 24952: , "./util/autovector.h", 309, __extension__ __PRETTY_FUNCTION__)) 24952: # 309 "/build/reproducible-path/rocksdb-8.9.1/util/autovector.h" 24952: ; 24952: if (!vect_.empty()) { 24952: vect_.pop_back(); 24952: } else { 24952: values_[--num_stack_items_].~value_type(); 24952: } 24952: } 24952: 24952: void clear() { 24952: while (num_stack_items_ > 0) { 24952: values_[--num_stack_items_].~value_type(); 24952: } 24952: vect_.clear(); 24952: } 24952: 24952: 24952: autovector& assign(const autovector& other); 24952: 24952: autovector(const autovector& other) { assign(other); } 24952: 24952: autovector& operator=(const autovector& other) { return assign(other); } 24952: 24952: autovector(autovector&& other) noexcept { *this = std::move(other); } 24952: autovector& operator=(autovector&& other); 24952: 24952: 24952: iterator begin() { return iterator(this, 0); } 24952: 24952: const_iterator begin() const { return const_iterator(this, 0); } 24952: 24952: iterator end() { return iterator(this, this->size()); } 24952: 24952: const_iterator end() const { return const_iterator(this, this->size()); } 24952: 24952: reverse_iterator rbegin() { return reverse_iterator(end()); } 24952: 24952: const_reverse_iterator rbegin() const { 24952: return const_reverse_iterator(end()); 24952: } 24952: 24952: reverse_iterator rend() { return reverse_iterator(begin()); } 24952: 24952: const_reverse_iterator rend() const { 24952: return const_reverse_iterator(begin()); 24952: } 24952: 24952: private: 24952: size_type num_stack_items_ = 0; 24952: alignas(alignof( 24952: value_type)) char buf_[kSize * 24952: sizeof(value_type)]; 24952: pointer values_; 24952: 24952: std::vector vect_; 24952: }; 24952: 24952: template 24952: autovector& autovector::assign( 24952: const autovector& other) { 24952: values_ = reinterpret_cast(buf_); 24952: 24952: vect_.assign(other.vect_.begin(), other.vect_.end()); 24952: 24952: 24952: num_stack_items_ = other.num_stack_items_; 24952: std::copy(other.values_, other.values_ + num_stack_items_, values_); 24952: 24952: return *this; 24952: } 24952: 24952: template 24952: autovector& autovector::operator=( 24952: autovector&& other) { 24952: values_ = reinterpret_cast(buf_); 24952: vect_ = std::move(other.vect_); 24952: size_t n = other.num_stack_items_; 24952: num_stack_items_ = n; 24952: other.num_stack_items_ = 0; 24952: for (size_t i = 0; i < n; ++i) { 24952: values_[i] = std::move(other.values_[i]); 24952: } 24952: return *this; 24952: } 24952: 24952: } 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 2 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: struct IOOptions; 24952: class RandomAccessFileReader; 24952: 24952: struct BufferInfo { 24952: AlignedBuffer buffer_; 24952: 24952: uint64_t offset_ = 0; 24952: 24952: 24952: 24952: size_t async_req_len_ = 0; 24952: 24952: 24952: 24952: bool async_read_in_progress_ = false; 24952: 24952: 24952: 24952: void* io_handle_ = nullptr; 24952: 24952: IOHandleDeleter del_fn_ = nullptr; 24952: 24952: 24952: uint32_t pos_ = 0; 24952: }; 24952: 24952: enum class FilePrefetchBufferUsage { 24952: kTableOpenPrefetchTail, 24952: kUserScanPrefetch, 24952: kUnknown, 24952: }; 24952: 24952: 24952: class FilePrefetchBuffer { 24952: public: 24952: # 87 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: FilePrefetchBuffer( 24952: size_t readahead_size = 0, size_t max_readahead_size = 0, 24952: bool enable = true, bool track_min_offset = false, 24952: bool implicit_auto_readahead = false, uint64_t num_file_reads = 0, 24952: uint64_t num_file_reads_for_auto_readahead = 0, 24952: uint64_t upper_bound_offset = 0, FileSystem* fs = nullptr, 24952: SystemClock* clock = nullptr, Statistics* stats = nullptr, 24952: const std::function& cb = nullptr, 24952: FilePrefetchBufferUsage usage = FilePrefetchBufferUsage::kUnknown) 24952: : curr_(0), 24952: readahead_size_(readahead_size), 24952: initial_auto_readahead_size_(readahead_size), 24952: max_readahead_size_(max_readahead_size), 24952: min_offset_read_(std::numeric_limits::max()), 24952: enable_(enable), 24952: track_min_offset_(track_min_offset), 24952: implicit_auto_readahead_(implicit_auto_readahead), 24952: prev_offset_(0), 24952: prev_len_(0), 24952: num_file_reads_for_auto_readahead_(num_file_reads_for_auto_readahead), 24952: num_file_reads_(num_file_reads), 24952: explicit_prefetch_submitted_(false), 24952: fs_(fs), 24952: clock_(clock), 24952: stats_(stats), 24952: usage_(usage), 24952: upper_bound_offset_(upper_bound_offset), 24952: readaheadsize_cb_(cb) { 24952: 24952: # 115 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 24952: (static_cast ( 24952: # 115 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: (num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0) 24952: # 115 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 115 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: "(num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0)" 24952: # 115 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 24952: , "./file/file_prefetch_buffer.h", 115, __extension__ __PRETTY_FUNCTION__)) 24952: 24952: # 116 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: ; 24952: 24952: 24952: 24952: bufs_.resize(3); 24952: for (uint32_t i = 0; i < 2; i++) { 24952: bufs_[i].pos_ = i; 24952: } 24952: } 24952: 24952: ~FilePrefetchBuffer() { 24952: 24952: if (fs_ != nullptr) { 24952: std::vector handles; 24952: for (uint32_t i = 0; i < 2; i++) { 24952: if (bufs_[i].async_read_in_progress_ && 24952: bufs_[i].io_handle_ != nullptr) { 24952: handles.emplace_back(bufs_[i].io_handle_); 24952: } 24952: } 24952: if (!handles.empty()) { 24952: StopWatch sw(clock_, stats_, ASYNC_PREFETCH_ABORT_MICROS); 24952: Status s = fs_->AbortIO(handles); 24952: 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 24952: (static_cast ( 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: s.ok() 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: "s.ok()" 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 24952: , "./file/file_prefetch_buffer.h", 139, __extension__ __PRETTY_FUNCTION__)) 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: ; 24952: } 24952: } 24952: 24952: 24952: uint64_t bytes_discarded = 0; 24952: 24952: for (int i = 0; i < 2; i++) { 24952: int first = i; 24952: int second = i ^ 1; 24952: 24952: if (DoesBufferContainData(first)) { 24952: 24952: 24952: if (prev_offset_ >= bufs_[first].offset_ && 24952: prev_offset_ + prev_len_ < 24952: bufs_[first].offset_ + bufs_[first].buffer_.CurrentSize()) { 24952: bytes_discarded += bufs_[first].buffer_.CurrentSize() - 24952: (prev_offset_ + prev_len_ - bufs_[first].offset_); 24952: } 24952: 24952: 24952: else if (prev_offset_ < bufs_[first].offset_ && 24952: !DoesBufferContainData(second)) { 24952: 24952: 24952: if (prev_offset_ + prev_len_ <= bufs_[first].offset_) { 24952: bytes_discarded += bufs_[first].buffer_.CurrentSize(); 24952: } 24952: 24952: 24952: else if (prev_offset_ + prev_len_ > bufs_[first].offset_ && 24952: bufs_[first].offset_ + bufs_[first].buffer_.CurrentSize() == 24952: bufs_[second].offset_) { 24952: bytes_discarded += bufs_[first].buffer_.CurrentSize() - 24952: ( prev_len_ - 24952: (bufs_[first].offset_ - prev_offset_)); 24952: } 24952: } 24952: } 24952: } 24952: 24952: for (uint32_t i = 0; i < 2; i++) { 24952: 24952: DestroyAndClearIOHandle(i); 24952: } 24952: RecordInHistogram(stats_, PREFETCHED_BYTES_DISCARDED, bytes_discarded); 24952: } 24952: 24952: bool Enabled() const { return enable_; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: Status Prefetch(const IOOptions& opts, RandomAccessFileReader* reader, 24952: uint64_t offset, size_t n); 24952: # 208 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: Status PrefetchAsync(const IOOptions& opts, RandomAccessFileReader* reader, 24952: uint64_t offset, size_t n, Slice* result); 24952: # 224 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: bool TryReadFromCache(const IOOptions& opts, RandomAccessFileReader* reader, 24952: uint64_t offset, size_t n, Slice* result, Status* s, 24952: bool for_compaction = false); 24952: 24952: bool TryReadFromCacheAsync(const IOOptions& opts, 24952: RandomAccessFileReader* reader, uint64_t offset, 24952: size_t n, Slice* result, Status* status); 24952: 24952: 24952: 24952: size_t min_offset_read() const { return min_offset_read_; } 24952: 24952: size_t GetPrefetchOffset() const { return bufs_[curr_].offset_; } 24952: 24952: 24952: void UpdateReadPattern(const uint64_t& offset, const size_t& len, 24952: bool decrease_readaheadsize) { 24952: if (decrease_readaheadsize) { 24952: 24952: 24952: 24952: DecreaseReadAheadIfEligible(offset, len); 24952: } 24952: prev_offset_ = offset; 24952: prev_len_ = len; 24952: explicit_prefetch_submitted_ = false; 24952: } 24952: 24952: void GetReadaheadState(ReadaheadFileInfo::ReadaheadInfo* readahead_info) { 24952: readahead_info->readahead_size = readahead_size_; 24952: readahead_info->num_file_reads = num_file_reads_; 24952: } 24952: 24952: void DecreaseReadAheadIfEligible(uint64_t offset, size_t size, 24952: size_t value = 8 * 1024) { 24952: # 268 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: size_t curr_size = bufs_[curr_].async_read_in_progress_ 24952: ? bufs_[curr_].async_req_len_ 24952: : bufs_[curr_].buffer_.CurrentSize(); 24952: if (implicit_auto_readahead_ && readahead_size_ > 0) { 24952: if ((offset + size > bufs_[curr_].offset_ + curr_size) && 24952: IsBlockSequential(offset) && 24952: (num_file_reads_ + 1 > num_file_reads_for_auto_readahead_)) { 24952: readahead_size_ = 24952: std::max(initial_auto_readahead_size_, 24952: (readahead_size_ >= value ? readahead_size_ - value : 0)); 24952: } 24952: } 24952: } 24952: 24952: 24952: void PrefetchAsyncCallback(const FSReadRequest& req, void* cb_arg); 24952: 24952: void ResetUpperBoundOffset(uint64_t upper_bound_offset) { 24952: upper_bound_offset_ = upper_bound_offset; 24952: readahead_size_ = initial_auto_readahead_size_; 24952: } 24952: 24952: private: 24952: 24952: 24952: 24952: void CalculateOffsetAndLen(size_t alignment, uint64_t offset, 24952: size_t roundup_len, uint32_t index, 24952: bool refit_tail, uint64_t& chunk_len); 24952: 24952: void AbortIOIfNeeded(uint64_t offset); 24952: 24952: void AbortAllIOs(); 24952: 24952: void UpdateBuffersIfNeeded(uint64_t offset); 24952: 24952: 24952: 24952: 24952: void PollAndUpdateBuffersIfNeeded(uint64_t offset); 24952: 24952: Status PrefetchAsyncInternal(const IOOptions& opts, 24952: RandomAccessFileReader* reader, uint64_t offset, 24952: size_t length, size_t readahead_size, 24952: bool& copy_to_third_buffer); 24952: 24952: Status Read(const IOOptions& opts, RandomAccessFileReader* reader, 24952: uint64_t read_len, uint64_t chunk_len, uint64_t rounddown_start, 24952: uint32_t index); 24952: 24952: Status ReadAsync(const IOOptions& opts, RandomAccessFileReader* reader, 24952: uint64_t read_len, uint64_t rounddown_start, uint32_t index); 24952: 24952: 24952: void CopyDataToBuffer(uint32_t src, uint64_t& offset, size_t& length); 24952: 24952: bool IsBlockSequential(const size_t& offset) { 24952: return (prev_len_ == 0 || (prev_offset_ + prev_len_ == offset)); 24952: } 24952: 24952: 24952: void ResetValues() { 24952: num_file_reads_ = 1; 24952: readahead_size_ = initial_auto_readahead_size_; 24952: } 24952: 24952: 24952: bool IsEligibleForPrefetch(uint64_t offset, size_t n) { 24952: 24952: 24952: if (!IsBlockSequential(offset)) { 24952: UpdateReadPattern(offset, n, false ); 24952: ResetValues(); 24952: return false; 24952: } 24952: num_file_reads_++; 24952: 24952: 24952: 24952: 24952: if (explicit_prefetch_submitted_) { 24952: return true; 24952: } 24952: if (num_file_reads_ <= num_file_reads_for_auto_readahead_) { 24952: UpdateReadPattern(offset, n, false ); 24952: return false; 24952: } 24952: return true; 24952: } 24952: 24952: 24952: bool IsDataBlockInBuffer(uint64_t offset, size_t length, uint32_t index) { 24952: return (offset >= bufs_[index].offset_ && 24952: offset + length <= 24952: bufs_[index].offset_ + bufs_[index].buffer_.CurrentSize()); 24952: } 24952: bool IsOffsetInBuffer(uint64_t offset, uint32_t index) { 24952: return (offset >= bufs_[index].offset_ && 24952: offset < bufs_[index].offset_ + bufs_[index].buffer_.CurrentSize()); 24952: } 24952: bool DoesBufferContainData(uint32_t index) { 24952: return bufs_[index].buffer_.CurrentSize() > 0; 24952: } 24952: bool IsBufferOutdated(uint64_t offset, uint32_t index) { 24952: return ( 24952: !bufs_[index].async_read_in_progress_ && DoesBufferContainData(index) && 24952: offset >= bufs_[index].offset_ + bufs_[index].buffer_.CurrentSize()); 24952: } 24952: bool IsBufferOutdatedWithAsyncProgress(uint64_t offset, uint32_t index) { 24952: return (bufs_[index].async_read_in_progress_ && 24952: bufs_[index].io_handle_ != nullptr && 24952: offset >= bufs_[index].offset_ + bufs_[index].async_req_len_); 24952: } 24952: bool IsOffsetInBufferWithAsyncProgress(uint64_t offset, uint32_t index) { 24952: return (bufs_[index].async_read_in_progress_ && 24952: offset >= bufs_[index].offset_ && 24952: offset < bufs_[index].offset_ + bufs_[index].async_req_len_); 24952: } 24952: 24952: bool IsSecondBuffEligibleForPrefetching() { 24952: uint32_t second = curr_ ^ 1; 24952: if (bufs_[second].async_read_in_progress_) { 24952: return false; 24952: } 24952: 24952: # 392 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 24952: (static_cast ( 24952: # 392 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: !bufs_[curr_].async_read_in_progress_ 24952: # 392 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 392 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: "!bufs_[curr_].async_read_in_progress_" 24952: # 392 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 3 4 24952: , "./file/file_prefetch_buffer.h", 392, __extension__ __PRETTY_FUNCTION__)) 24952: # 392 "/build/reproducible-path/rocksdb-8.9.1/file/file_prefetch_buffer.h" 24952: ; 24952: 24952: if (DoesBufferContainData(curr_) && DoesBufferContainData(second) && 24952: (bufs_[curr_].offset_ + bufs_[curr_].buffer_.CurrentSize() == 24952: bufs_[second].offset_)) { 24952: return false; 24952: } 24952: 24952: 24952: if (readahead_size_ == 0) { 24952: return false; 24952: } 24952: 24952: bufs_[second].buffer_.Clear(); 24952: return true; 24952: } 24952: 24952: void DestroyAndClearIOHandle(uint32_t index) { 24952: if (bufs_[index].io_handle_ != nullptr && bufs_[index].del_fn_ != nullptr) { 24952: bufs_[index].del_fn_(bufs_[index].io_handle_); 24952: bufs_[index].io_handle_ = nullptr; 24952: bufs_[index].del_fn_ = nullptr; 24952: } 24952: bufs_[index].async_read_in_progress_ = false; 24952: } 24952: 24952: Status HandleOverlappingData(const IOOptions& opts, 24952: RandomAccessFileReader* reader, uint64_t offset, 24952: size_t length, size_t readahead_size, 24952: bool& copy_to_third_buffer, uint64_t& tmp_offset, 24952: size_t& tmp_length); 24952: 24952: bool TryReadFromCacheUntracked(const IOOptions& opts, 24952: RandomAccessFileReader* reader, 24952: uint64_t offset, size_t n, Slice* result, 24952: Status* s, 24952: bool for_compaction = false); 24952: 24952: bool TryReadFromCacheAsyncUntracked(const IOOptions& opts, 24952: RandomAccessFileReader* reader, 24952: uint64_t offset, size_t n, Slice* result, 24952: Status* status); 24952: 24952: void UpdateReadAheadSizeForUpperBound(uint64_t offset, size_t n) { 24952: 24952: 24952: if (readahead_size_ > 0 && upper_bound_offset_ > 0 && 24952: upper_bound_offset_ > offset) { 24952: if (upper_bound_offset_ < offset + n + readahead_size_) { 24952: readahead_size_ = (upper_bound_offset_ - offset) - n; 24952: RecordTick(stats_, READAHEAD_TRIMMED); 24952: } 24952: } 24952: } 24952: 24952: inline bool IsOffsetOutOfBound(uint64_t offset) { 24952: if (upper_bound_offset_ > 0) { 24952: return (offset >= upper_bound_offset_); 24952: } 24952: return false; 24952: } 24952: 24952: 24952: size_t ReadAheadSizeTuning(uint64_t offset, size_t n) { 24952: UpdateReadAheadSizeForUpperBound(offset, n); 24952: 24952: if (readaheadsize_cb_ != nullptr && readahead_size_ > 0) { 24952: size_t updated_readahead_size = 0; 24952: readaheadsize_cb_(offset, readahead_size_, updated_readahead_size); 24952: if (readahead_size_ != updated_readahead_size) { 24952: RecordTick(stats_, READAHEAD_TRIMMED); 24952: } 24952: return updated_readahead_size; 24952: } 24952: return readahead_size_; 24952: } 24952: 24952: std::vector bufs_; 24952: 24952: 24952: uint32_t curr_; 24952: 24952: size_t readahead_size_; 24952: size_t initial_auto_readahead_size_; 24952: 24952: 24952: size_t max_readahead_size_; 24952: 24952: 24952: size_t min_offset_read_; 24952: 24952: 24952: bool enable_; 24952: 24952: 24952: bool track_min_offset_; 24952: 24952: 24952: 24952: bool implicit_auto_readahead_; 24952: uint64_t prev_offset_; 24952: size_t prev_len_; 24952: 24952: 24952: uint64_t num_file_reads_for_auto_readahead_; 24952: uint64_t num_file_reads_; 24952: 24952: 24952: 24952: 24952: 24952: bool explicit_prefetch_submitted_; 24952: 24952: FileSystem* fs_; 24952: SystemClock* clock_; 24952: Statistics* stats_; 24952: 24952: FilePrefetchBufferUsage usage_; 24952: 24952: 24952: 24952: 24952: uint64_t upper_bound_offset_ = 0; 24952: std::function readaheadsize_cb_; 24952: }; 24952: } 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/file/random_access_file_reader.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/file/random_access_file_reader.h" 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/env/file_system_tracer.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/fstream" 1 3 24952: # 36 "/usr/include/c++/13/fstream" 3 24952: 24952: # 37 "/usr/include/c++/13/fstream" 3 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/bits/codecvt.h" 1 3 24952: # 39 "/usr/include/c++/13/bits/codecvt.h" 3 24952: 24952: # 40 "/usr/include/c++/13/bits/codecvt.h" 3 24952: 24952: 24952: 24952: 24952: 24952: # 44 "/usr/include/c++/13/bits/codecvt.h" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: class codecvt_base 24952: { 24952: public: 24952: enum result 24952: { 24952: ok, 24952: partial, 24952: error, 24952: noconv 24952: }; 24952: }; 24952: # 70 "/usr/include/c++/13/bits/codecvt.h" 3 24952: template 24952: class __codecvt_abstract_base 24952: : public locale::facet, public codecvt_base 24952: { 24952: public: 24952: 24952: typedef codecvt_base::result result; 24952: typedef _InternT intern_type; 24952: typedef _ExternT extern_type; 24952: typedef _StateT state_type; 24952: # 118 "/usr/include/c++/13/bits/codecvt.h" 3 24952: result 24952: out(state_type& __state, const intern_type* __from, 24952: const intern_type* __from_end, const intern_type*& __from_next, 24952: extern_type* __to, extern_type* __to_end, 24952: extern_type*& __to_next) const 24952: { 24952: return this->do_out(__state, __from, __from_end, __from_next, 24952: __to, __to_end, __to_next); 24952: } 24952: # 157 "/usr/include/c++/13/bits/codecvt.h" 3 24952: result 24952: unshift(state_type& __state, extern_type* __to, extern_type* __to_end, 24952: extern_type*& __to_next) const 24952: { return this->do_unshift(__state, __to,__to_end,__to_next); } 24952: # 198 "/usr/include/c++/13/bits/codecvt.h" 3 24952: result 24952: in(state_type& __state, const extern_type* __from, 24952: const extern_type* __from_end, const extern_type*& __from_next, 24952: intern_type* __to, intern_type* __to_end, 24952: intern_type*& __to_next) const 24952: { 24952: return this->do_in(__state, __from, __from_end, __from_next, 24952: __to, __to_end, __to_next); 24952: } 24952: 24952: int 24952: encoding() const throw() 24952: { return this->do_encoding(); } 24952: 24952: bool 24952: always_noconv() const throw() 24952: { return this->do_always_noconv(); } 24952: 24952: int 24952: length(state_type& __state, const extern_type* __from, 24952: const extern_type* __end, size_t __max) const 24952: { return this->do_length(__state, __from, __end, __max); } 24952: 24952: int 24952: max_length() const throw() 24952: { return this->do_max_length(); } 24952: 24952: protected: 24952: explicit 24952: __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { } 24952: 24952: virtual 24952: ~__codecvt_abstract_base() { } 24952: # 239 "/usr/include/c++/13/bits/codecvt.h" 3 24952: virtual result 24952: do_out(state_type& __state, const intern_type* __from, 24952: const intern_type* __from_end, const intern_type*& __from_next, 24952: extern_type* __to, extern_type* __to_end, 24952: extern_type*& __to_next) const = 0; 24952: 24952: virtual result 24952: do_unshift(state_type& __state, extern_type* __to, 24952: extern_type* __to_end, extern_type*& __to_next) const = 0; 24952: 24952: virtual result 24952: do_in(state_type& __state, const extern_type* __from, 24952: const extern_type* __from_end, const extern_type*& __from_next, 24952: intern_type* __to, intern_type* __to_end, 24952: intern_type*& __to_next) const = 0; 24952: 24952: virtual int 24952: do_encoding() const throw() = 0; 24952: 24952: virtual bool 24952: do_always_noconv() const throw() = 0; 24952: 24952: virtual int 24952: do_length(state_type&, const extern_type* __from, 24952: const extern_type* __end, size_t __max) const = 0; 24952: 24952: virtual int 24952: do_max_length() const throw() = 0; 24952: }; 24952: # 276 "/usr/include/c++/13/bits/codecvt.h" 3 24952: template 24952: class codecvt 24952: : public __codecvt_abstract_base<_InternT, _ExternT, _StateT> 24952: { 24952: public: 24952: 24952: typedef codecvt_base::result result; 24952: typedef _InternT intern_type; 24952: typedef _ExternT extern_type; 24952: typedef _StateT state_type; 24952: 24952: protected: 24952: __c_locale _M_c_locale_codecvt; 24952: 24952: public: 24952: static locale::id id; 24952: 24952: explicit 24952: codecvt(size_t __refs = 0) 24952: : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs), 24952: _M_c_locale_codecvt(0) 24952: { } 24952: 24952: explicit 24952: codecvt(__c_locale __cloc, size_t __refs = 0); 24952: 24952: protected: 24952: virtual 24952: ~codecvt() { } 24952: 24952: virtual result 24952: do_out(state_type& __state, const intern_type* __from, 24952: const intern_type* __from_end, const intern_type*& __from_next, 24952: extern_type* __to, extern_type* __to_end, 24952: extern_type*& __to_next) const; 24952: 24952: virtual result 24952: do_unshift(state_type& __state, extern_type* __to, 24952: extern_type* __to_end, extern_type*& __to_next) const; 24952: 24952: virtual result 24952: do_in(state_type& __state, const extern_type* __from, 24952: const extern_type* __from_end, const extern_type*& __from_next, 24952: intern_type* __to, intern_type* __to_end, 24952: intern_type*& __to_next) const; 24952: 24952: virtual int 24952: do_encoding() const throw(); 24952: 24952: virtual bool 24952: do_always_noconv() const throw(); 24952: 24952: virtual int 24952: do_length(state_type&, const extern_type* __from, 24952: const extern_type* __end, size_t __max) const; 24952: 24952: virtual int 24952: do_max_length() const throw(); 24952: }; 24952: 24952: template 24952: locale::id codecvt<_InternT, _ExternT, _StateT>::id; 24952: 24952: 24952: template<> 24952: class codecvt 24952: : public __codecvt_abstract_base 24952: { 24952: friend class messages; 24952: 24952: public: 24952: 24952: typedef char intern_type; 24952: typedef char extern_type; 24952: typedef mbstate_t state_type; 24952: 24952: protected: 24952: __c_locale _M_c_locale_codecvt; 24952: 24952: public: 24952: static locale::id id; 24952: 24952: explicit 24952: codecvt(size_t __refs = 0); 24952: 24952: explicit 24952: codecvt(__c_locale __cloc, size_t __refs = 0); 24952: 24952: protected: 24952: virtual 24952: ~codecvt(); 24952: 24952: virtual result 24952: do_out(state_type& __state, const intern_type* __from, 24952: const intern_type* __from_end, const intern_type*& __from_next, 24952: extern_type* __to, extern_type* __to_end, 24952: extern_type*& __to_next) const; 24952: 24952: virtual result 24952: do_unshift(state_type& __state, extern_type* __to, 24952: extern_type* __to_end, extern_type*& __to_next) const; 24952: 24952: virtual result 24952: do_in(state_type& __state, const extern_type* __from, 24952: const extern_type* __from_end, const extern_type*& __from_next, 24952: intern_type* __to, intern_type* __to_end, 24952: intern_type*& __to_next) const; 24952: 24952: virtual int 24952: do_encoding() const throw(); 24952: 24952: virtual bool 24952: do_always_noconv() const throw(); 24952: 24952: virtual int 24952: do_length(state_type&, const extern_type* __from, 24952: const extern_type* __end, size_t __max) const; 24952: 24952: virtual int 24952: do_max_length() const throw(); 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template<> 24952: class codecvt 24952: : public __codecvt_abstract_base 24952: { 24952: friend class messages; 24952: 24952: public: 24952: 24952: typedef wchar_t intern_type; 24952: typedef char extern_type; 24952: typedef mbstate_t state_type; 24952: 24952: protected: 24952: __c_locale _M_c_locale_codecvt; 24952: 24952: public: 24952: static locale::id id; 24952: 24952: explicit 24952: codecvt(size_t __refs = 0); 24952: 24952: explicit 24952: codecvt(__c_locale __cloc, size_t __refs = 0); 24952: 24952: protected: 24952: virtual 24952: ~codecvt(); 24952: 24952: virtual result 24952: do_out(state_type& __state, const intern_type* __from, 24952: const intern_type* __from_end, const intern_type*& __from_next, 24952: extern_type* __to, extern_type* __to_end, 24952: extern_type*& __to_next) const; 24952: 24952: virtual result 24952: do_unshift(state_type& __state, 24952: extern_type* __to, extern_type* __to_end, 24952: extern_type*& __to_next) const; 24952: 24952: virtual result 24952: do_in(state_type& __state, 24952: const extern_type* __from, const extern_type* __from_end, 24952: const extern_type*& __from_next, 24952: intern_type* __to, intern_type* __to_end, 24952: intern_type*& __to_next) const; 24952: 24952: virtual 24952: int do_encoding() const throw(); 24952: 24952: virtual 24952: bool do_always_noconv() const throw(); 24952: 24952: virtual 24952: int do_length(state_type&, const extern_type* __from, 24952: const extern_type* __end, size_t __max) const; 24952: 24952: virtual int 24952: do_max_length() const throw(); 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template<> 24952: class codecvt 24952: : public __codecvt_abstract_base 24952: { 24952: public: 24952: 24952: typedef char16_t intern_type; 24952: typedef char extern_type; 24952: typedef mbstate_t state_type; 24952: 24952: public: 24952: static locale::id id; 24952: 24952: explicit 24952: codecvt(size_t __refs = 0) 24952: : __codecvt_abstract_base(__refs) { } 24952: 24952: protected: 24952: virtual 24952: ~codecvt(); 24952: 24952: virtual result 24952: do_out(state_type& __state, const intern_type* __from, 24952: const intern_type* __from_end, const intern_type*& __from_next, 24952: extern_type* __to, extern_type* __to_end, 24952: extern_type*& __to_next) const; 24952: 24952: virtual result 24952: do_unshift(state_type& __state, 24952: extern_type* __to, extern_type* __to_end, 24952: extern_type*& __to_next) const; 24952: 24952: virtual result 24952: do_in(state_type& __state, 24952: const extern_type* __from, const extern_type* __from_end, 24952: const extern_type*& __from_next, 24952: intern_type* __to, intern_type* __to_end, 24952: intern_type*& __to_next) const; 24952: 24952: virtual 24952: int do_encoding() const throw(); 24952: 24952: virtual 24952: bool do_always_noconv() const throw(); 24952: 24952: virtual 24952: int do_length(state_type&, const extern_type* __from, 24952: const extern_type* __end, size_t __max) const; 24952: 24952: virtual int 24952: do_max_length() const throw(); 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: template<> 24952: class codecvt 24952: : public __codecvt_abstract_base 24952: { 24952: public: 24952: 24952: typedef char32_t intern_type; 24952: typedef char extern_type; 24952: typedef mbstate_t state_type; 24952: 24952: public: 24952: static locale::id id; 24952: 24952: explicit 24952: codecvt(size_t __refs = 0) 24952: : __codecvt_abstract_base(__refs) { } 24952: 24952: protected: 24952: virtual 24952: ~codecvt(); 24952: 24952: virtual result 24952: do_out(state_type& __state, const intern_type* __from, 24952: const intern_type* __from_end, const intern_type*& __from_next, 24952: extern_type* __to, extern_type* __to_end, 24952: extern_type*& __to_next) const; 24952: 24952: virtual result 24952: do_unshift(state_type& __state, 24952: extern_type* __to, extern_type* __to_end, 24952: extern_type*& __to_next) const; 24952: 24952: virtual result 24952: do_in(state_type& __state, 24952: const extern_type* __from, const extern_type* __from_end, 24952: const extern_type*& __from_next, 24952: intern_type* __to, intern_type* __to_end, 24952: intern_type*& __to_next) const; 24952: 24952: virtual 24952: int do_encoding() const throw(); 24952: 24952: virtual 24952: bool do_always_noconv() const throw(); 24952: 24952: virtual 24952: int do_length(state_type&, const extern_type* __from, 24952: const extern_type* __end, size_t __max) const; 24952: 24952: virtual int 24952: do_max_length() const throw(); 24952: }; 24952: # 698 "/usr/include/c++/13/bits/codecvt.h" 3 24952: template 24952: class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT> 24952: { 24952: public: 24952: explicit 24952: codecvt_byname(const char* __s, size_t __refs = 0) 24952: : codecvt<_InternT, _ExternT, _StateT>(__refs) 24952: { 24952: if (__builtin_strcmp(__s, "C") != 0 24952: && __builtin_strcmp(__s, "POSIX") != 0) 24952: { 24952: this->_S_destroy_c_locale(this->_M_c_locale_codecvt); 24952: this->_S_create_c_locale(this->_M_c_locale_codecvt, __s); 24952: } 24952: } 24952: 24952: 24952: explicit 24952: codecvt_byname(const string& __s, size_t __refs = 0) 24952: : codecvt_byname(__s.c_str(), __refs) { } 24952: 24952: 24952: protected: 24952: virtual 24952: ~codecvt_byname() { } 24952: }; 24952: 24952: 24952: template<> 24952: class codecvt_byname 24952: : public codecvt 24952: { 24952: public: 24952: explicit 24952: codecvt_byname(const char*, size_t __refs = 0) 24952: : codecvt(__refs) { } 24952: 24952: explicit 24952: codecvt_byname(const string& __s, size_t __refs = 0) 24952: : codecvt_byname(__s.c_str(), __refs) { } 24952: 24952: protected: 24952: virtual 24952: ~codecvt_byname() { } 24952: }; 24952: 24952: template<> 24952: class codecvt_byname 24952: : public codecvt 24952: { 24952: public: 24952: explicit 24952: codecvt_byname(const char*, size_t __refs = 0) 24952: : codecvt(__refs) { } 24952: 24952: explicit 24952: codecvt_byname(const string& __s, size_t __refs = 0) 24952: : codecvt_byname(__s.c_str(), __refs) { } 24952: 24952: protected: 24952: virtual 24952: ~codecvt_byname() { } 24952: }; 24952: # 805 "/usr/include/c++/13/bits/codecvt.h" 3 24952: extern template class codecvt_byname; 24952: 24952: extern template 24952: const codecvt& 24952: use_facet >(const locale&); 24952: 24952: extern template 24952: bool 24952: has_facet >(const locale&); 24952: 24952: 24952: extern template class codecvt_byname; 24952: 24952: extern template 24952: const codecvt& 24952: use_facet >(const locale&); 24952: 24952: extern template 24952: bool 24952: has_facet >(const locale&); 24952: 24952: 24952: 24952: extern template class codecvt_byname; 24952: extern template class codecvt_byname; 24952: # 840 "/usr/include/c++/13/bits/codecvt.h" 3 24952: 24952: } 24952: # 43 "/usr/include/c++/13/fstream" 2 3 24952: # 1 "/usr/include/c++/13/cstdio" 1 3 24952: # 39 "/usr/include/c++/13/cstdio" 3 24952: 24952: # 40 "/usr/include/c++/13/cstdio" 3 24952: # 44 "/usr/include/c++/13/fstream" 2 3 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/basic_file.h" 1 3 24952: # 37 "/usr/include/arm-linux-gnueabihf/c++/13/bits/basic_file.h" 3 24952: 24952: # 38 "/usr/include/arm-linux-gnueabihf/c++/13/bits/basic_file.h" 3 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++io.h" 1 3 24952: # 35 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++io.h" 3 24952: # 1 "/usr/include/c++/13/cstdio" 1 3 24952: # 39 "/usr/include/c++/13/cstdio" 3 24952: 24952: # 40 "/usr/include/c++/13/cstdio" 3 24952: # 36 "/usr/include/arm-linux-gnueabihf/c++/13/bits/c++io.h" 2 3 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef __gthread_mutex_t __c_lock; 24952: 24952: 24952: 24952: typedef FILE __c_file; 24952: 24952: 24952: } 24952: # 41 "/usr/include/arm-linux-gnueabihf/c++/13/bits/basic_file.h" 2 3 24952: 24952: 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: template 24952: class __basic_file; 24952: 24952: 24952: template<> 24952: class __basic_file 24952: { 24952: 24952: __c_file* _M_cfile; 24952: 24952: 24952: bool _M_cfile_created; 24952: 24952: public: 24952: __basic_file(__c_lock* __lock = 0) throw (); 24952: 24952: 24952: __basic_file(__basic_file&& __rv, __c_lock* = 0) noexcept 24952: : _M_cfile(__rv._M_cfile), _M_cfile_created(__rv._M_cfile_created) 24952: { 24952: __rv._M_cfile = nullptr; 24952: __rv._M_cfile_created = false; 24952: } 24952: 24952: __basic_file& operator=(const __basic_file&) = delete; 24952: __basic_file& operator=(__basic_file&&) = delete; 24952: 24952: void 24952: swap(__basic_file& __f) noexcept 24952: { 24952: std::swap(_M_cfile, __f._M_cfile); 24952: std::swap(_M_cfile_created, __f._M_cfile_created); 24952: } 24952: 24952: 24952: __basic_file* 24952: open(const char* __name, ios_base::openmode __mode, int __prot = 0664); 24952: 24952: 24952: 24952: 24952: 24952: 24952: __basic_file* 24952: sys_open(__c_file* __file, ios_base::openmode); 24952: 24952: __basic_file* 24952: sys_open(int __fd, ios_base::openmode __mode) throw (); 24952: 24952: __basic_file* 24952: close(); 24952: 24952: __attribute__ ((__pure__)) bool 24952: is_open() const throw (); 24952: 24952: __attribute__ ((__pure__)) int 24952: fd() throw (); 24952: 24952: __attribute__ ((__pure__)) __c_file* 24952: file() throw (); 24952: 24952: ~__basic_file(); 24952: 24952: streamsize 24952: xsputn(const char* __s, streamsize __n); 24952: 24952: streamsize 24952: xsputn_2(const char* __s1, streamsize __n1, 24952: const char* __s2, streamsize __n2); 24952: 24952: streamsize 24952: xsgetn(char* __s, streamsize __n); 24952: 24952: streamoff 24952: seekoff(streamoff __off, ios_base::seekdir __way) throw (); 24952: 24952: int 24952: sync(); 24952: 24952: streamsize 24952: showmanyc(); 24952: }; 24952: 24952: 24952: } 24952: # 45 "/usr/include/c++/13/fstream" 2 3 24952: # 54 "/usr/include/c++/13/fstream" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: 24952: 24952: template().make_preferred().filename())> 24952: using _If_fs_path = enable_if_t, _Result>; 24952: # 86 "/usr/include/c++/13/fstream" 3 24952: template 24952: class basic_filebuf : public basic_streambuf<_CharT, _Traits> 24952: { 24952: 24952: template 24952: using __chk_state = __and_, 24952: is_copy_constructible<_Tp>, 24952: is_default_constructible<_Tp>>; 24952: 24952: static_assert(__chk_state::value, 24952: "state_type must be CopyAssignable, CopyConstructible" 24952: " and DefaultConstructible"); 24952: 24952: static_assert(is_same>::value, 24952: "pos_type must be fpos"); 24952: 24952: public: 24952: 24952: typedef _CharT char_type; 24952: typedef _Traits traits_type; 24952: typedef typename traits_type::int_type int_type; 24952: typedef typename traits_type::pos_type pos_type; 24952: typedef typename traits_type::off_type off_type; 24952: 24952: typedef basic_streambuf __streambuf_type; 24952: typedef basic_filebuf __filebuf_type; 24952: typedef __basic_file __file_type; 24952: typedef typename traits_type::state_type __state_type; 24952: typedef codecvt __codecvt_type; 24952: 24952: friend class ios_base; 24952: 24952: protected: 24952: 24952: 24952: __c_lock _M_lock; 24952: 24952: 24952: __file_type _M_file; 24952: 24952: 24952: ios_base::openmode _M_mode; 24952: 24952: 24952: __state_type _M_state_beg; 24952: 24952: 24952: 24952: 24952: __state_type _M_state_cur; 24952: 24952: 24952: 24952: __state_type _M_state_last; 24952: 24952: 24952: char_type* _M_buf; 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t _M_buf_size; 24952: 24952: 24952: bool _M_buf_allocated; 24952: # 162 "/usr/include/c++/13/fstream" 3 24952: bool _M_reading; 24952: bool _M_writing; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: char_type _M_pback; 24952: char_type* _M_pback_cur_save; 24952: char_type* _M_pback_end_save; 24952: bool _M_pback_init; 24952: 24952: 24952: 24952: const __codecvt_type* _M_codecvt; 24952: 24952: 24952: 24952: 24952: 24952: 24952: char* _M_ext_buf; 24952: 24952: 24952: 24952: 24952: streamsize _M_ext_buf_size; 24952: 24952: 24952: 24952: 24952: 24952: 24952: const char* _M_ext_next; 24952: char* _M_ext_end; 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: _M_create_pback() 24952: { 24952: if (!_M_pback_init) 24952: { 24952: _M_pback_cur_save = this->gptr(); 24952: _M_pback_end_save = this->egptr(); 24952: this->setg(&_M_pback, &_M_pback, &_M_pback + 1); 24952: _M_pback_init = true; 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: void 24952: _M_destroy_pback() throw() 24952: { 24952: if (_M_pback_init) 24952: { 24952: 24952: _M_pback_cur_save += this->gptr() != this->eback(); 24952: this->setg(_M_buf, _M_pback_cur_save, _M_pback_end_save); 24952: _M_pback_init = false; 24952: } 24952: } 24952: 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: basic_filebuf(); 24952: 24952: 24952: basic_filebuf(const basic_filebuf&) = delete; 24952: basic_filebuf(basic_filebuf&&); 24952: 24952: 24952: 24952: 24952: 24952: virtual 24952: ~basic_filebuf() 24952: { 24952: try 24952: { this->close(); } 24952: catch(...) 24952: { } 24952: } 24952: 24952: 24952: basic_filebuf& operator=(const basic_filebuf&) = delete; 24952: basic_filebuf& operator=(basic_filebuf&&); 24952: void swap(basic_filebuf&); 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool 24952: is_open() const throw() 24952: { return _M_file.is_open(); } 24952: # 316 "/usr/include/c++/13/fstream" 3 24952: __filebuf_type* 24952: open(const char* __s, ios_base::openmode __mode); 24952: # 337 "/usr/include/c++/13/fstream" 3 24952: __filebuf_type* 24952: open(const std::string& __s, ios_base::openmode __mode) 24952: { return open(__s.c_str(), __mode); } 24952: # 348 "/usr/include/c++/13/fstream" 3 24952: template 24952: _If_fs_path<_Path, __filebuf_type*> 24952: open(const _Path& __s, ios_base::openmode __mode) 24952: { return open(__s.c_str(), __mode); } 24952: # 367 "/usr/include/c++/13/fstream" 3 24952: __filebuf_type* 24952: close(); 24952: 24952: protected: 24952: void 24952: _M_allocate_internal_buffer(); 24952: 24952: void 24952: _M_destroy_internal_buffer() throw(); 24952: 24952: 24952: virtual streamsize 24952: showmanyc(); 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual int_type 24952: underflow(); 24952: 24952: virtual int_type 24952: pbackfail(int_type __c = _Traits::eof()); 24952: # 399 "/usr/include/c++/13/fstream" 3 24952: virtual int_type 24952: overflow(int_type __c = _Traits::eof()); 24952: 24952: 24952: 24952: bool 24952: _M_convert_to_external(char_type*, streamsize); 24952: # 419 "/usr/include/c++/13/fstream" 3 24952: virtual __streambuf_type* 24952: setbuf(char_type* __s, streamsize __n); 24952: 24952: virtual pos_type 24952: seekoff(off_type __off, ios_base::seekdir __way, 24952: ios_base::openmode __mode = ios_base::in | ios_base::out); 24952: 24952: virtual pos_type 24952: seekpos(pos_type __pos, 24952: ios_base::openmode __mode = ios_base::in | ios_base::out); 24952: 24952: 24952: pos_type 24952: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state); 24952: 24952: int 24952: _M_get_ext_pos(__state_type &__state); 24952: 24952: virtual int 24952: sync(); 24952: 24952: virtual void 24952: imbue(const locale& __loc); 24952: 24952: virtual streamsize 24952: xsgetn(char_type* __s, streamsize __n); 24952: 24952: virtual streamsize 24952: xsputn(const char_type* __s, streamsize __n); 24952: 24952: 24952: bool 24952: _M_terminate_output(); 24952: # 465 "/usr/include/c++/13/fstream" 3 24952: void 24952: _M_set_buffer(streamsize __off) 24952: { 24952: const bool __testin = _M_mode & ios_base::in; 24952: const bool __testout = (_M_mode & ios_base::out 24952: || _M_mode & ios_base::app); 24952: 24952: if (__testin && __off > 0) 24952: this->setg(_M_buf, _M_buf, _M_buf + __off); 24952: else 24952: this->setg(_M_buf, _M_buf, _M_buf); 24952: 24952: if (__testout && __off == 0 && _M_buf_size > 1 ) 24952: this->setp(_M_buf, _M_buf + _M_buf_size - 1); 24952: else 24952: this->setp(0, 0); 24952: } 24952: }; 24952: # 498 "/usr/include/c++/13/fstream" 3 24952: template 24952: class basic_ifstream : public basic_istream<_CharT, _Traits> 24952: { 24952: public: 24952: 24952: typedef _CharT char_type; 24952: typedef _Traits traits_type; 24952: typedef typename traits_type::int_type int_type; 24952: typedef typename traits_type::pos_type pos_type; 24952: typedef typename traits_type::off_type off_type; 24952: 24952: 24952: typedef basic_filebuf __filebuf_type; 24952: typedef basic_istream __istream_type; 24952: 24952: private: 24952: __filebuf_type _M_filebuf; 24952: 24952: public: 24952: # 525 "/usr/include/c++/13/fstream" 3 24952: basic_ifstream() : __istream_type(), _M_filebuf() 24952: { this->init(&_M_filebuf); } 24952: # 535 "/usr/include/c++/13/fstream" 3 24952: explicit 24952: basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) 24952: : __istream_type(), _M_filebuf() 24952: { 24952: this->init(&_M_filebuf); 24952: this->open(__s, __mode); 24952: } 24952: # 568 "/usr/include/c++/13/fstream" 3 24952: explicit 24952: basic_ifstream(const std::string& __s, 24952: ios_base::openmode __mode = ios_base::in) 24952: : __istream_type(), _M_filebuf() 24952: { 24952: this->init(&_M_filebuf); 24952: this->open(__s, __mode); 24952: } 24952: # 585 "/usr/include/c++/13/fstream" 3 24952: template> 24952: basic_ifstream(const _Path& __s, 24952: ios_base::openmode __mode = ios_base::in) 24952: : basic_ifstream(__s.c_str(), __mode) 24952: { } 24952: 24952: 24952: basic_ifstream(const basic_ifstream&) = delete; 24952: 24952: basic_ifstream(basic_ifstream&& __rhs) 24952: : __istream_type(std::move(__rhs)), 24952: _M_filebuf(std::move(__rhs._M_filebuf)) 24952: { __istream_type::set_rdbuf(&_M_filebuf); } 24952: # 606 "/usr/include/c++/13/fstream" 3 24952: ~basic_ifstream() 24952: { } 24952: 24952: 24952: 24952: 24952: basic_ifstream& 24952: operator=(const basic_ifstream&) = delete; 24952: 24952: basic_ifstream& 24952: operator=(basic_ifstream&& __rhs) 24952: { 24952: __istream_type::operator=(std::move(__rhs)); 24952: _M_filebuf = std::move(__rhs._M_filebuf); 24952: return *this; 24952: } 24952: 24952: void 24952: swap(basic_ifstream& __rhs) 24952: { 24952: __istream_type::swap(__rhs); 24952: _M_filebuf.swap(__rhs._M_filebuf); 24952: } 24952: # 638 "/usr/include/c++/13/fstream" 3 24952: __filebuf_type* 24952: rdbuf() const 24952: { return const_cast<__filebuf_type*>(&_M_filebuf); } 24952: 24952: 24952: 24952: 24952: 24952: bool 24952: is_open() 24952: { return _M_filebuf.is_open(); } 24952: 24952: 24952: 24952: bool 24952: is_open() const 24952: { return _M_filebuf.is_open(); } 24952: # 664 "/usr/include/c++/13/fstream" 3 24952: void 24952: open(const char* __s, ios_base::openmode __mode = ios_base::in) 24952: { 24952: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 24952: this->setstate(ios_base::failbit); 24952: else 24952: 24952: 24952: this->clear(); 24952: } 24952: # 703 "/usr/include/c++/13/fstream" 3 24952: void 24952: open(const std::string& __s, ios_base::openmode __mode = ios_base::in) 24952: { 24952: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 24952: this->setstate(ios_base::failbit); 24952: else 24952: 24952: 24952: this->clear(); 24952: } 24952: # 723 "/usr/include/c++/13/fstream" 3 24952: template 24952: _If_fs_path<_Path, void> 24952: open(const _Path& __s, ios_base::openmode __mode = ios_base::in) 24952: { open(__s.c_str(), __mode); } 24952: # 736 "/usr/include/c++/13/fstream" 3 24952: void 24952: close() 24952: { 24952: if (!_M_filebuf.close()) 24952: this->setstate(ios_base::failbit); 24952: } 24952: }; 24952: # 759 "/usr/include/c++/13/fstream" 3 24952: template 24952: class basic_ofstream : public basic_ostream<_CharT,_Traits> 24952: { 24952: public: 24952: 24952: typedef _CharT char_type; 24952: typedef _Traits traits_type; 24952: typedef typename traits_type::int_type int_type; 24952: typedef typename traits_type::pos_type pos_type; 24952: typedef typename traits_type::off_type off_type; 24952: 24952: 24952: typedef basic_filebuf __filebuf_type; 24952: typedef basic_ostream __ostream_type; 24952: 24952: private: 24952: __filebuf_type _M_filebuf; 24952: 24952: public: 24952: # 786 "/usr/include/c++/13/fstream" 3 24952: basic_ofstream(): __ostream_type(), _M_filebuf() 24952: { this->init(&_M_filebuf); } 24952: # 796 "/usr/include/c++/13/fstream" 3 24952: explicit 24952: basic_ofstream(const char* __s, 24952: ios_base::openmode __mode = ios_base::out) 24952: : __ostream_type(), _M_filebuf() 24952: { 24952: this->init(&_M_filebuf); 24952: this->open(__s, __mode); 24952: } 24952: # 831 "/usr/include/c++/13/fstream" 3 24952: explicit 24952: basic_ofstream(const std::string& __s, 24952: ios_base::openmode __mode = ios_base::out) 24952: : __ostream_type(), _M_filebuf() 24952: { 24952: this->init(&_M_filebuf); 24952: this->open(__s, __mode); 24952: } 24952: # 848 "/usr/include/c++/13/fstream" 3 24952: template> 24952: basic_ofstream(const _Path& __s, 24952: ios_base::openmode __mode = ios_base::out) 24952: : basic_ofstream(__s.c_str(), __mode) 24952: { } 24952: 24952: 24952: basic_ofstream(const basic_ofstream&) = delete; 24952: 24952: basic_ofstream(basic_ofstream&& __rhs) 24952: : __ostream_type(std::move(__rhs)), 24952: _M_filebuf(std::move(__rhs._M_filebuf)) 24952: { __ostream_type::set_rdbuf(&_M_filebuf); } 24952: # 869 "/usr/include/c++/13/fstream" 3 24952: ~basic_ofstream() 24952: { } 24952: 24952: 24952: 24952: 24952: basic_ofstream& 24952: operator=(const basic_ofstream&) = delete; 24952: 24952: basic_ofstream& 24952: operator=(basic_ofstream&& __rhs) 24952: { 24952: __ostream_type::operator=(std::move(__rhs)); 24952: _M_filebuf = std::move(__rhs._M_filebuf); 24952: return *this; 24952: } 24952: 24952: void 24952: swap(basic_ofstream& __rhs) 24952: { 24952: __ostream_type::swap(__rhs); 24952: _M_filebuf.swap(__rhs._M_filebuf); 24952: } 24952: # 901 "/usr/include/c++/13/fstream" 3 24952: __filebuf_type* 24952: rdbuf() const 24952: { return const_cast<__filebuf_type*>(&_M_filebuf); } 24952: 24952: 24952: 24952: 24952: 24952: bool 24952: is_open() 24952: { return _M_filebuf.is_open(); } 24952: 24952: 24952: 24952: bool 24952: is_open() const 24952: { return _M_filebuf.is_open(); } 24952: # 927 "/usr/include/c++/13/fstream" 3 24952: void 24952: open(const char* __s, ios_base::openmode __mode = ios_base::out) 24952: { 24952: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 24952: this->setstate(ios_base::failbit); 24952: else 24952: 24952: 24952: this->clear(); 24952: } 24952: # 966 "/usr/include/c++/13/fstream" 3 24952: void 24952: open(const std::string& __s, ios_base::openmode __mode = ios_base::out) 24952: { 24952: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 24952: this->setstate(ios_base::failbit); 24952: else 24952: 24952: 24952: this->clear(); 24952: } 24952: # 986 "/usr/include/c++/13/fstream" 3 24952: template 24952: _If_fs_path<_Path, void> 24952: open(const _Path& __s, ios_base::openmode __mode = ios_base::out) 24952: { open(__s.c_str(), __mode); } 24952: # 999 "/usr/include/c++/13/fstream" 3 24952: void 24952: close() 24952: { 24952: if (!_M_filebuf.close()) 24952: this->setstate(ios_base::failbit); 24952: } 24952: }; 24952: # 1022 "/usr/include/c++/13/fstream" 3 24952: template 24952: class basic_fstream : public basic_iostream<_CharT, _Traits> 24952: { 24952: public: 24952: 24952: typedef _CharT char_type; 24952: typedef _Traits traits_type; 24952: typedef typename traits_type::int_type int_type; 24952: typedef typename traits_type::pos_type pos_type; 24952: typedef typename traits_type::off_type off_type; 24952: 24952: 24952: typedef basic_filebuf __filebuf_type; 24952: typedef basic_ios __ios_type; 24952: typedef basic_iostream __iostream_type; 24952: 24952: private: 24952: __filebuf_type _M_filebuf; 24952: 24952: public: 24952: # 1050 "/usr/include/c++/13/fstream" 3 24952: basic_fstream() 24952: : __iostream_type(), _M_filebuf() 24952: { this->init(&_M_filebuf); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: explicit 24952: basic_fstream(const char* __s, 24952: ios_base::openmode __mode = ios_base::in | ios_base::out) 24952: : __iostream_type(0), _M_filebuf() 24952: { 24952: this->init(&_M_filebuf); 24952: this->open(__s, __mode); 24952: } 24952: # 1089 "/usr/include/c++/13/fstream" 3 24952: explicit 24952: basic_fstream(const std::string& __s, 24952: ios_base::openmode __mode = ios_base::in | ios_base::out) 24952: : __iostream_type(0), _M_filebuf() 24952: { 24952: this->init(&_M_filebuf); 24952: this->open(__s, __mode); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: basic_fstream(const _Path& __s, 24952: ios_base::openmode __mode = ios_base::in | ios_base::out) 24952: : basic_fstream(__s.c_str(), __mode) 24952: { } 24952: 24952: 24952: basic_fstream(const basic_fstream&) = delete; 24952: 24952: basic_fstream(basic_fstream&& __rhs) 24952: : __iostream_type(std::move(__rhs)), 24952: _M_filebuf(std::move(__rhs._M_filebuf)) 24952: { __iostream_type::set_rdbuf(&_M_filebuf); } 24952: # 1125 "/usr/include/c++/13/fstream" 3 24952: ~basic_fstream() 24952: { } 24952: 24952: 24952: 24952: 24952: basic_fstream& 24952: operator=(const basic_fstream&) = delete; 24952: 24952: basic_fstream& 24952: operator=(basic_fstream&& __rhs) 24952: { 24952: __iostream_type::operator=(std::move(__rhs)); 24952: _M_filebuf = std::move(__rhs._M_filebuf); 24952: return *this; 24952: } 24952: 24952: void 24952: swap(basic_fstream& __rhs) 24952: { 24952: __iostream_type::swap(__rhs); 24952: _M_filebuf.swap(__rhs._M_filebuf); 24952: } 24952: # 1157 "/usr/include/c++/13/fstream" 3 24952: __filebuf_type* 24952: rdbuf() const 24952: { return const_cast<__filebuf_type*>(&_M_filebuf); } 24952: 24952: 24952: 24952: 24952: 24952: bool 24952: is_open() 24952: { return _M_filebuf.is_open(); } 24952: 24952: 24952: 24952: bool 24952: is_open() const 24952: { return _M_filebuf.is_open(); } 24952: # 1183 "/usr/include/c++/13/fstream" 3 24952: void 24952: open(const char* __s, 24952: ios_base::openmode __mode = ios_base::in | ios_base::out) 24952: { 24952: if (!_M_filebuf.open(__s, __mode)) 24952: this->setstate(ios_base::failbit); 24952: else 24952: 24952: 24952: this->clear(); 24952: } 24952: # 1224 "/usr/include/c++/13/fstream" 3 24952: void 24952: open(const std::string& __s, 24952: ios_base::openmode __mode = ios_base::in | ios_base::out) 24952: { 24952: if (!_M_filebuf.open(__s, __mode)) 24952: this->setstate(ios_base::failbit); 24952: else 24952: 24952: 24952: this->clear(); 24952: } 24952: # 1245 "/usr/include/c++/13/fstream" 3 24952: template 24952: _If_fs_path<_Path, void> 24952: open(const _Path& __s, 24952: ios_base::openmode __mode = ios_base::in | ios_base::out) 24952: { open(__s.c_str(), __mode); } 24952: # 1259 "/usr/include/c++/13/fstream" 3 24952: void 24952: close() 24952: { 24952: if (!_M_filebuf.close()) 24952: this->setstate(ios_base::failbit); 24952: } 24952: }; 24952: 24952: 24952: 24952: template 24952: inline void 24952: swap(basic_filebuf<_CharT, _Traits>& __x, 24952: basic_filebuf<_CharT, _Traits>& __y) 24952: { __x.swap(__y); } 24952: 24952: 24952: template 24952: inline void 24952: swap(basic_ifstream<_CharT, _Traits>& __x, 24952: basic_ifstream<_CharT, _Traits>& __y) 24952: { __x.swap(__y); } 24952: 24952: 24952: template 24952: inline void 24952: swap(basic_ofstream<_CharT, _Traits>& __x, 24952: basic_ofstream<_CharT, _Traits>& __y) 24952: { __x.swap(__y); } 24952: 24952: 24952: template 24952: inline void 24952: swap(basic_fstream<_CharT, _Traits>& __x, 24952: basic_fstream<_CharT, _Traits>& __y) 24952: { __x.swap(__y); } 24952: 24952: 24952: 24952: } 24952: 24952: # 1 "/usr/include/c++/13/bits/fstream.tcc" 1 3 24952: # 37 "/usr/include/c++/13/bits/fstream.tcc" 3 24952: 24952: # 38 "/usr/include/c++/13/bits/fstream.tcc" 3 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/cerrno" 1 3 24952: # 39 "/usr/include/c++/13/cerrno" 3 24952: 24952: # 40 "/usr/include/c++/13/cerrno" 3 24952: # 42 "/usr/include/c++/13/bits/fstream.tcc" 2 3 24952: 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template 24952: void 24952: basic_filebuf<_CharT, _Traits>:: 24952: _M_allocate_internal_buffer() 24952: { 24952: 24952: 24952: if (!_M_buf_allocated && !_M_buf) 24952: { 24952: _M_buf = new char_type[_M_buf_size]; 24952: _M_buf_allocated = true; 24952: } 24952: } 24952: 24952: template 24952: void 24952: basic_filebuf<_CharT, _Traits>:: 24952: _M_destroy_internal_buffer() throw() 24952: { 24952: if (_M_buf_allocated) 24952: { 24952: delete [] _M_buf; 24952: _M_buf = 0; 24952: _M_buf_allocated = false; 24952: } 24952: delete [] _M_ext_buf; 24952: _M_ext_buf = 0; 24952: _M_ext_buf_size = 0; 24952: _M_ext_next = 0; 24952: _M_ext_end = 0; 24952: } 24952: 24952: template 24952: basic_filebuf<_CharT, _Traits>:: 24952: basic_filebuf() : __streambuf_type(), _M_lock(), _M_file(&_M_lock), 24952: _M_mode(ios_base::openmode(0)), _M_state_beg(), _M_state_cur(), 24952: _M_state_last(), _M_buf(0), _M_buf_size(8192), 24952: _M_buf_allocated(false), _M_reading(false), _M_writing(false), _M_pback(), 24952: _M_pback_cur_save(0), _M_pback_end_save(0), _M_pback_init(false), 24952: _M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0), 24952: _M_ext_end(0) 24952: { 24952: _M_codecvt = std::__try_use_facet<__codecvt_type>(this->_M_buf_locale); 24952: } 24952: 24952: 24952: template 24952: basic_filebuf<_CharT, _Traits>:: 24952: basic_filebuf(basic_filebuf&& __rhs) 24952: : __streambuf_type(__rhs), 24952: _M_lock(), _M_file(std::move(__rhs._M_file), &_M_lock), 24952: _M_mode(std::__exchange(__rhs._M_mode, ios_base::openmode(0))), 24952: _M_state_beg(std::move(__rhs._M_state_beg)), 24952: _M_state_cur(std::move(__rhs._M_state_cur)), 24952: _M_state_last(std::move(__rhs._M_state_last)), 24952: _M_buf(std::__exchange(__rhs._M_buf, nullptr)), 24952: _M_buf_size(std::__exchange(__rhs._M_buf_size, 1)), 24952: _M_buf_allocated(std::__exchange(__rhs._M_buf_allocated, false)), 24952: _M_reading(std::__exchange(__rhs._M_reading, false)), 24952: _M_writing(std::__exchange(__rhs._M_writing, false)), 24952: _M_pback(__rhs._M_pback), 24952: _M_pback_cur_save(std::__exchange(__rhs._M_pback_cur_save, nullptr)), 24952: _M_pback_end_save(std::__exchange(__rhs._M_pback_end_save, nullptr)), 24952: _M_pback_init(std::__exchange(__rhs._M_pback_init, false)), 24952: _M_codecvt(__rhs._M_codecvt), 24952: _M_ext_buf(std::__exchange(__rhs._M_ext_buf, nullptr)), 24952: _M_ext_buf_size(std::__exchange(__rhs._M_ext_buf_size, 0)), 24952: _M_ext_next(std::__exchange(__rhs._M_ext_next, nullptr)), 24952: _M_ext_end(std::__exchange(__rhs._M_ext_end, nullptr)) 24952: { 24952: __rhs._M_set_buffer(-1); 24952: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 24952: } 24952: 24952: template 24952: basic_filebuf<_CharT, _Traits>& 24952: basic_filebuf<_CharT, _Traits>:: 24952: operator=(basic_filebuf&& __rhs) 24952: { 24952: this->close(); 24952: __streambuf_type::operator=(__rhs); 24952: _M_file.swap(__rhs._M_file); 24952: _M_mode = std::__exchange(__rhs._M_mode, ios_base::openmode(0)); 24952: _M_state_beg = std::move(__rhs._M_state_beg); 24952: _M_state_cur = std::move(__rhs._M_state_cur); 24952: _M_state_last = std::move(__rhs._M_state_last); 24952: _M_buf = std::__exchange(__rhs._M_buf, nullptr); 24952: _M_buf_size = std::__exchange(__rhs._M_buf_size, 1); 24952: _M_buf_allocated = std::__exchange(__rhs._M_buf_allocated, false); 24952: _M_ext_buf = std::__exchange(__rhs._M_ext_buf, nullptr); 24952: _M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0); 24952: _M_ext_next = std::__exchange(__rhs._M_ext_next, nullptr); 24952: _M_ext_end = std::__exchange(__rhs._M_ext_end, nullptr); 24952: _M_reading = std::__exchange(__rhs._M_reading, false); 24952: _M_writing = std::__exchange(__rhs._M_writing, false); 24952: _M_pback_cur_save = std::__exchange(__rhs._M_pback_cur_save, nullptr); 24952: _M_pback_end_save = std::__exchange(__rhs._M_pback_end_save, nullptr); 24952: _M_pback_init = std::__exchange(__rhs._M_pback_init, false); 24952: __rhs._M_set_buffer(-1); 24952: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 24952: return *this; 24952: } 24952: 24952: template 24952: void 24952: basic_filebuf<_CharT, _Traits>:: 24952: swap(basic_filebuf& __rhs) 24952: { 24952: __streambuf_type::swap(__rhs); 24952: _M_file.swap(__rhs._M_file); 24952: std::swap(_M_mode, __rhs._M_mode); 24952: std::swap(_M_state_beg, __rhs._M_state_beg); 24952: std::swap(_M_state_cur, __rhs._M_state_cur); 24952: std::swap(_M_state_last, __rhs._M_state_last); 24952: std::swap(_M_buf, __rhs._M_buf); 24952: std::swap(_M_buf_size, __rhs._M_buf_size); 24952: std::swap(_M_buf_allocated, __rhs._M_buf_allocated); 24952: std::swap(_M_ext_buf, __rhs._M_ext_buf); 24952: std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size); 24952: std::swap(_M_ext_next, __rhs._M_ext_next); 24952: std::swap(_M_ext_end, __rhs._M_ext_end); 24952: std::swap(_M_reading, __rhs._M_reading); 24952: std::swap(_M_writing, __rhs._M_writing); 24952: std::swap(_M_pback_cur_save, __rhs._M_pback_cur_save); 24952: std::swap(_M_pback_end_save, __rhs._M_pback_end_save); 24952: std::swap(_M_pback_init, __rhs._M_pback_init); 24952: } 24952: 24952: 24952: template 24952: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 24952: basic_filebuf<_CharT, _Traits>:: 24952: open(const char* __s, ios_base::openmode __mode) 24952: { 24952: __filebuf_type *__ret = 0; 24952: if (!this->is_open()) 24952: { 24952: _M_file.open(__s, __mode); 24952: if (this->is_open()) 24952: { 24952: _M_allocate_internal_buffer(); 24952: _M_mode = __mode; 24952: 24952: 24952: _M_reading = false; 24952: _M_writing = false; 24952: _M_set_buffer(-1); 24952: 24952: 24952: _M_state_last = _M_state_cur = _M_state_beg; 24952: 24952: 24952: if ((__mode & ios_base::ate) 24952: && this->seekoff(0, ios_base::end, __mode) 24952: == pos_type(off_type(-1))) 24952: this->close(); 24952: else 24952: __ret = this; 24952: } 24952: } 24952: return __ret; 24952: } 24952: # 246 "/usr/include/c++/13/bits/fstream.tcc" 3 24952: template 24952: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 24952: basic_filebuf<_CharT, _Traits>:: 24952: close() 24952: { 24952: if (!this->is_open()) 24952: return 0; 24952: 24952: bool __testfail = false; 24952: { 24952: 24952: struct __close_sentry 24952: { 24952: basic_filebuf *__fb; 24952: __close_sentry (basic_filebuf *__fbi): __fb(__fbi) { } 24952: ~__close_sentry () 24952: { 24952: __fb->_M_mode = ios_base::openmode(0); 24952: __fb->_M_pback_init = false; 24952: __fb->_M_destroy_internal_buffer(); 24952: __fb->_M_reading = false; 24952: __fb->_M_writing = false; 24952: __fb->_M_set_buffer(-1); 24952: __fb->_M_state_last = __fb->_M_state_cur = __fb->_M_state_beg; 24952: } 24952: } __cs (this); 24952: 24952: try 24952: { 24952: if (!_M_terminate_output()) 24952: __testfail = true; 24952: } 24952: catch(...) 24952: { 24952: _M_file.close(); 24952: throw; 24952: } 24952: } 24952: 24952: if (!_M_file.close()) 24952: __testfail = true; 24952: 24952: if (__testfail) 24952: return 0; 24952: else 24952: return this; 24952: } 24952: 24952: template 24952: streamsize 24952: basic_filebuf<_CharT, _Traits>:: 24952: showmanyc() 24952: { 24952: streamsize __ret = -1; 24952: const bool __testin = _M_mode & ios_base::in; 24952: if (__testin && this->is_open()) 24952: { 24952: 24952: 24952: __ret = this->egptr() - this->gptr(); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: if (__check_facet(_M_codecvt).encoding() >= 0) 24952: 24952: __ret += _M_file.showmanyc() / _M_codecvt->max_length(); 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: typename basic_filebuf<_CharT, _Traits>::int_type 24952: basic_filebuf<_CharT, _Traits>:: 24952: underflow() 24952: { 24952: int_type __ret = traits_type::eof(); 24952: const bool __testin = _M_mode & ios_base::in; 24952: if (__testin) 24952: { 24952: if (_M_writing) 24952: { 24952: if (overflow() == traits_type::eof()) 24952: return __ret; 24952: _M_set_buffer(-1); 24952: _M_writing = false; 24952: } 24952: 24952: 24952: 24952: _M_destroy_pback(); 24952: 24952: if (this->gptr() < this->egptr()) 24952: return traits_type::to_int_type(*this->gptr()); 24952: 24952: 24952: const size_t __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 24952: 24952: 24952: bool __got_eof = false; 24952: 24952: streamsize __ilen = 0; 24952: codecvt_base::result __r = codecvt_base::ok; 24952: if (__check_facet(_M_codecvt).always_noconv()) 24952: { 24952: __ilen = _M_file.xsgetn(reinterpret_cast(this->eback()), 24952: __buflen); 24952: if (__ilen == 0) 24952: __got_eof = true; 24952: } 24952: else 24952: { 24952: 24952: 24952: const int __enc = _M_codecvt->encoding(); 24952: streamsize __blen; 24952: streamsize __rlen; 24952: if (__enc > 0) 24952: __blen = __rlen = __buflen * __enc; 24952: else 24952: { 24952: __blen = __buflen + _M_codecvt->max_length() - 1; 24952: __rlen = __buflen; 24952: } 24952: const streamsize __remainder = _M_ext_end - _M_ext_next; 24952: __rlen = __rlen > __remainder ? __rlen - __remainder : 0; 24952: 24952: 24952: 24952: if (_M_reading && this->egptr() == this->eback() && __remainder) 24952: __rlen = 0; 24952: 24952: 24952: 24952: if (_M_ext_buf_size < __blen) 24952: { 24952: char* __buf = new char[__blen]; 24952: if (__remainder) 24952: __builtin_memcpy(__buf, _M_ext_next, __remainder); 24952: 24952: delete [] _M_ext_buf; 24952: _M_ext_buf = __buf; 24952: _M_ext_buf_size = __blen; 24952: } 24952: else if (__remainder) 24952: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 24952: 24952: _M_ext_next = _M_ext_buf; 24952: _M_ext_end = _M_ext_buf + __remainder; 24952: _M_state_last = _M_state_cur; 24952: 24952: do 24952: { 24952: if (__rlen > 0) 24952: { 24952: 24952: 24952: 24952: if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size) 24952: { 24952: __throw_ios_failure(("basic_filebuf::underflow " "codecvt::max_length() " "is not valid") 24952: 24952: ); 24952: } 24952: streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen); 24952: if (__elen == 0) 24952: __got_eof = true; 24952: else if (__elen == -1) 24952: break; 24952: _M_ext_end += __elen; 24952: } 24952: 24952: char_type* __iend = this->eback(); 24952: if (_M_ext_next < _M_ext_end) 24952: __r = _M_codecvt->in(_M_state_cur, _M_ext_next, 24952: _M_ext_end, _M_ext_next, 24952: this->eback(), 24952: this->eback() + __buflen, __iend); 24952: if (__r == codecvt_base::noconv) 24952: { 24952: size_t __avail = _M_ext_end - _M_ext_buf; 24952: __ilen = std::min(__avail, __buflen); 24952: traits_type::copy(this->eback(), 24952: reinterpret_cast 24952: (_M_ext_buf), __ilen); 24952: _M_ext_next = _M_ext_buf + __ilen; 24952: } 24952: else 24952: __ilen = __iend - this->eback(); 24952: 24952: 24952: 24952: 24952: if (__r == codecvt_base::error) 24952: break; 24952: 24952: __rlen = 1; 24952: } 24952: while (__ilen == 0 && !__got_eof); 24952: } 24952: 24952: if (__ilen > 0) 24952: { 24952: _M_set_buffer(__ilen); 24952: _M_reading = true; 24952: __ret = traits_type::to_int_type(*this->gptr()); 24952: } 24952: else if (__got_eof) 24952: { 24952: 24952: 24952: 24952: _M_set_buffer(-1); 24952: _M_reading = false; 24952: 24952: 24952: if (__r == codecvt_base::partial) 24952: __throw_ios_failure(("basic_filebuf::underflow " "incomplete character in file") 24952: ); 24952: } 24952: else if (__r == codecvt_base::error) 24952: __throw_ios_failure(("basic_filebuf::underflow " "invalid byte sequence in file") 24952: ); 24952: else 24952: __throw_ios_failure(("basic_filebuf::underflow " "error reading the file") 24952: , (*__errno_location ())); 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: typename basic_filebuf<_CharT, _Traits>::int_type 24952: basic_filebuf<_CharT, _Traits>:: 24952: pbackfail(int_type __i) 24952: { 24952: int_type __ret = traits_type::eof(); 24952: const bool __testin = _M_mode & ios_base::in; 24952: if (__testin) 24952: { 24952: if (_M_writing) 24952: { 24952: if (overflow() == traits_type::eof()) 24952: return __ret; 24952: _M_set_buffer(-1); 24952: _M_writing = false; 24952: } 24952: 24952: 24952: const bool __testpb = _M_pback_init; 24952: const bool __testeof = traits_type::eq_int_type(__i, __ret); 24952: int_type __tmp; 24952: if (this->eback() < this->gptr()) 24952: { 24952: this->gbump(-1); 24952: __tmp = traits_type::to_int_type(*this->gptr()); 24952: } 24952: else if (this->seekoff(-1, ios_base::cur) != pos_type(off_type(-1))) 24952: { 24952: __tmp = this->underflow(); 24952: if (traits_type::eq_int_type(__tmp, __ret)) 24952: return __ret; 24952: } 24952: else 24952: { 24952: 24952: 24952: 24952: 24952: 24952: return __ret; 24952: } 24952: 24952: 24952: 24952: if (!__testeof && traits_type::eq_int_type(__i, __tmp)) 24952: __ret = __i; 24952: else if (__testeof) 24952: __ret = traits_type::not_eof(__i); 24952: else if (!__testpb) 24952: { 24952: _M_create_pback(); 24952: _M_reading = true; 24952: *this->gptr() = traits_type::to_char_type(__i); 24952: __ret = __i; 24952: } 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: typename basic_filebuf<_CharT, _Traits>::int_type 24952: basic_filebuf<_CharT, _Traits>:: 24952: overflow(int_type __c) 24952: { 24952: int_type __ret = traits_type::eof(); 24952: const bool __testeof = traits_type::eq_int_type(__c, __ret); 24952: const bool __testout = (_M_mode & ios_base::out 24952: || _M_mode & ios_base::app); 24952: if (__testout) 24952: { 24952: if (_M_reading) 24952: { 24952: _M_destroy_pback(); 24952: const int __gptr_off = _M_get_ext_pos(_M_state_last); 24952: if (_M_seek(__gptr_off, ios_base::cur, _M_state_last) 24952: == pos_type(off_type(-1))) 24952: return __ret; 24952: } 24952: if (this->pbase() < this->pptr()) 24952: { 24952: 24952: if (!__testeof) 24952: { 24952: *this->pptr() = traits_type::to_char_type(__c); 24952: this->pbump(1); 24952: } 24952: 24952: 24952: 24952: if (_M_convert_to_external(this->pbase(), 24952: this->pptr() - this->pbase())) 24952: { 24952: _M_set_buffer(0); 24952: __ret = traits_type::not_eof(__c); 24952: } 24952: } 24952: else if (_M_buf_size > 1) 24952: { 24952: 24952: 24952: 24952: _M_set_buffer(0); 24952: _M_writing = true; 24952: if (!__testeof) 24952: { 24952: *this->pptr() = traits_type::to_char_type(__c); 24952: this->pbump(1); 24952: } 24952: __ret = traits_type::not_eof(__c); 24952: } 24952: else 24952: { 24952: 24952: char_type __conv = traits_type::to_char_type(__c); 24952: if (__testeof || _M_convert_to_external(&__conv, 1)) 24952: { 24952: _M_writing = true; 24952: __ret = traits_type::not_eof(__c); 24952: } 24952: } 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: bool 24952: basic_filebuf<_CharT, _Traits>:: 24952: _M_convert_to_external(_CharT* __ibuf, streamsize __ilen) 24952: { 24952: 24952: streamsize __elen; 24952: streamsize __plen; 24952: if (__check_facet(_M_codecvt).always_noconv()) 24952: { 24952: __elen = _M_file.xsputn(reinterpret_cast(__ibuf), __ilen); 24952: __plen = __ilen; 24952: } 24952: else 24952: { 24952: 24952: 24952: streamsize __blen = __ilen * _M_codecvt->max_length(); 24952: char* __buf = static_cast(__builtin_alloca(__blen)); 24952: 24952: char* __bend; 24952: const char_type* __iend; 24952: codecvt_base::result __r; 24952: __r = _M_codecvt->out(_M_state_cur, __ibuf, __ibuf + __ilen, 24952: __iend, __buf, __buf + __blen, __bend); 24952: 24952: if (__r == codecvt_base::ok || __r == codecvt_base::partial) 24952: __blen = __bend - __buf; 24952: else if (__r == codecvt_base::noconv) 24952: { 24952: 24952: __buf = reinterpret_cast(__ibuf); 24952: __blen = __ilen; 24952: } 24952: else 24952: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 24952: ); 24952: 24952: __elen = _M_file.xsputn(__buf, __blen); 24952: __plen = __blen; 24952: 24952: 24952: if (__r == codecvt_base::partial && __elen == __plen) 24952: { 24952: const char_type* __iresume = __iend; 24952: streamsize __rlen = this->pptr() - __iend; 24952: __r = _M_codecvt->out(_M_state_cur, __iresume, 24952: __iresume + __rlen, __iend, __buf, 24952: __buf + __blen, __bend); 24952: if (__r != codecvt_base::error) 24952: { 24952: __rlen = __bend - __buf; 24952: __elen = _M_file.xsputn(__buf, __rlen); 24952: __plen = __rlen; 24952: } 24952: else 24952: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 24952: ); 24952: } 24952: } 24952: return __elen == __plen; 24952: } 24952: 24952: template 24952: streamsize 24952: basic_filebuf<_CharT, _Traits>:: 24952: xsgetn(_CharT* __s, streamsize __n) 24952: { 24952: 24952: streamsize __ret = 0; 24952: if (_M_pback_init) 24952: { 24952: if (__n > 0 && this->gptr() == this->eback()) 24952: { 24952: *__s++ = *this->gptr(); 24952: this->gbump(1); 24952: __ret = 1; 24952: --__n; 24952: } 24952: _M_destroy_pback(); 24952: } 24952: else if (_M_writing) 24952: { 24952: if (overflow() == traits_type::eof()) 24952: return __ret; 24952: _M_set_buffer(-1); 24952: _M_writing = false; 24952: } 24952: 24952: 24952: 24952: 24952: const bool __testin = _M_mode & ios_base::in; 24952: const streamsize __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 24952: 24952: if (__n > __buflen && __check_facet(_M_codecvt).always_noconv() 24952: && __testin) 24952: { 24952: 24952: const streamsize __avail = this->egptr() - this->gptr(); 24952: if (__avail != 0) 24952: { 24952: traits_type::copy(__s, this->gptr(), __avail); 24952: __s += __avail; 24952: this->setg(this->eback(), this->gptr() + __avail, this->egptr()); 24952: __ret += __avail; 24952: __n -= __avail; 24952: } 24952: 24952: 24952: 24952: streamsize __len; 24952: for (;;) 24952: { 24952: __len = _M_file.xsgetn(reinterpret_cast(__s), __n); 24952: if (__len == -1) 24952: __throw_ios_failure(("basic_filebuf::xsgetn " "error reading the file") 24952: , (*__errno_location ())); 24952: if (__len == 0) 24952: break; 24952: 24952: __n -= __len; 24952: __ret += __len; 24952: if (__n == 0) 24952: break; 24952: 24952: __s += __len; 24952: } 24952: 24952: if (__n == 0) 24952: { 24952: 24952: _M_reading = true; 24952: } 24952: else if (__len == 0) 24952: { 24952: 24952: 24952: 24952: _M_set_buffer(-1); 24952: _M_reading = false; 24952: } 24952: } 24952: else 24952: __ret += __streambuf_type::xsgetn(__s, __n); 24952: 24952: return __ret; 24952: } 24952: 24952: template 24952: streamsize 24952: basic_filebuf<_CharT, _Traits>:: 24952: xsputn(const _CharT* __s, streamsize __n) 24952: { 24952: streamsize __ret = 0; 24952: 24952: 24952: 24952: const bool __testout = (_M_mode & ios_base::out 24952: || _M_mode & ios_base::app); 24952: if (__check_facet(_M_codecvt).always_noconv() 24952: && __testout && !_M_reading) 24952: { 24952: streamsize __bufavail = this->epptr() - this->pptr(); 24952: 24952: 24952: if (!_M_writing && _M_buf_size > 1) 24952: __bufavail = _M_buf_size - 1; 24952: 24952: if (__n >= __bufavail) 24952: { 24952: const streamsize __buffill = this->pptr() - this->pbase(); 24952: const char* __buf = reinterpret_cast(this->pbase()); 24952: __ret = _M_file.xsputn_2(__buf, __buffill, 24952: reinterpret_cast(__s), 24952: __n); 24952: if (__ret == __buffill + __n) 24952: { 24952: _M_set_buffer(0); 24952: _M_writing = true; 24952: } 24952: if (__ret > __buffill) 24952: __ret -= __buffill; 24952: else 24952: __ret = 0; 24952: } 24952: else 24952: __ret = __streambuf_type::xsputn(__s, __n); 24952: } 24952: else 24952: __ret = __streambuf_type::xsputn(__s, __n); 24952: return __ret; 24952: } 24952: 24952: template 24952: typename basic_filebuf<_CharT, _Traits>::__streambuf_type* 24952: basic_filebuf<_CharT, _Traits>:: 24952: setbuf(char_type* __s, streamsize __n) 24952: { 24952: if (!this->is_open()) 24952: { 24952: if (__s == 0 && __n == 0) 24952: _M_buf_size = 1; 24952: else if (__s && __n > 0) 24952: { 24952: # 816 "/usr/include/c++/13/bits/fstream.tcc" 3 24952: _M_buf = __s; 24952: _M_buf_size = __n; 24952: } 24952: } 24952: return this; 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: typename basic_filebuf<_CharT, _Traits>::pos_type 24952: basic_filebuf<_CharT, _Traits>:: 24952: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode) 24952: { 24952: int __width = 0; 24952: if (_M_codecvt) 24952: __width = _M_codecvt->encoding(); 24952: if (__width < 0) 24952: __width = 0; 24952: 24952: pos_type __ret = pos_type(off_type(-1)); 24952: const bool __testfail = __off != 0 && __width <= 0; 24952: if (this->is_open() && !__testfail) 24952: { 24952: 24952: 24952: 24952: 24952: bool __no_movement = __way == ios_base::cur && __off == 0 24952: && (!_M_writing || _M_codecvt->always_noconv()); 24952: 24952: 24952: if (!__no_movement) 24952: _M_destroy_pback(); 24952: 24952: 24952: 24952: 24952: 24952: 24952: __state_type __state = _M_state_beg; 24952: off_type __computed_off = __off * __width; 24952: if (_M_reading && __way == ios_base::cur) 24952: { 24952: __state = _M_state_last; 24952: __computed_off += _M_get_ext_pos(__state); 24952: } 24952: if (!__no_movement) 24952: __ret = _M_seek(__computed_off, __way, __state); 24952: else 24952: { 24952: if (_M_writing) 24952: __computed_off = this->pptr() - this->pbase(); 24952: 24952: off_type __file_off = _M_file.seekoff(0, ios_base::cur); 24952: if (__file_off != off_type(-1)) 24952: { 24952: __ret = __file_off + __computed_off; 24952: __ret.state(__state); 24952: } 24952: } 24952: } 24952: return __ret; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: template 24952: typename basic_filebuf<_CharT, _Traits>::pos_type 24952: basic_filebuf<_CharT, _Traits>:: 24952: seekpos(pos_type __pos, ios_base::openmode) 24952: { 24952: pos_type __ret = pos_type(off_type(-1)); 24952: if (this->is_open()) 24952: { 24952: 24952: _M_destroy_pback(); 24952: __ret = _M_seek(off_type(__pos), ios_base::beg, __pos.state()); 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: typename basic_filebuf<_CharT, _Traits>::pos_type 24952: basic_filebuf<_CharT, _Traits>:: 24952: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state) 24952: { 24952: pos_type __ret = pos_type(off_type(-1)); 24952: if (_M_terminate_output()) 24952: { 24952: off_type __file_off = _M_file.seekoff(__off, __way); 24952: if (__file_off != off_type(-1)) 24952: { 24952: _M_reading = false; 24952: _M_writing = false; 24952: _M_ext_next = _M_ext_end = _M_ext_buf; 24952: _M_set_buffer(-1); 24952: _M_state_cur = __state; 24952: __ret = __file_off; 24952: __ret.state(_M_state_cur); 24952: } 24952: } 24952: return __ret; 24952: } 24952: 24952: 24952: 24952: 24952: template 24952: int basic_filebuf<_CharT, _Traits>:: 24952: _M_get_ext_pos(__state_type& __state) 24952: { 24952: if (_M_codecvt->always_noconv()) 24952: return this->gptr() - this->egptr(); 24952: else 24952: { 24952: 24952: 24952: 24952: const int __gptr_off = 24952: _M_codecvt->length(__state, _M_ext_buf, _M_ext_next, 24952: this->gptr() - this->eback()); 24952: return _M_ext_buf + __gptr_off - _M_ext_end; 24952: } 24952: } 24952: 24952: template 24952: bool 24952: basic_filebuf<_CharT, _Traits>:: 24952: _M_terminate_output() 24952: { 24952: 24952: bool __testvalid = true; 24952: if (this->pbase() < this->pptr()) 24952: { 24952: const int_type __tmp = this->overflow(); 24952: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 24952: __testvalid = false; 24952: } 24952: 24952: 24952: if (_M_writing && !__check_facet(_M_codecvt).always_noconv() 24952: && __testvalid) 24952: { 24952: 24952: 24952: 24952: const size_t __blen = 128; 24952: char __buf[__blen]; 24952: codecvt_base::result __r; 24952: streamsize __ilen = 0; 24952: 24952: do 24952: { 24952: char* __next; 24952: __r = _M_codecvt->unshift(_M_state_cur, __buf, 24952: __buf + __blen, __next); 24952: if (__r == codecvt_base::error) 24952: __testvalid = false; 24952: else if (__r == codecvt_base::ok || 24952: __r == codecvt_base::partial) 24952: { 24952: __ilen = __next - __buf; 24952: if (__ilen > 0) 24952: { 24952: const streamsize __elen = _M_file.xsputn(__buf, __ilen); 24952: if (__elen != __ilen) 24952: __testvalid = false; 24952: } 24952: } 24952: } 24952: while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); 24952: 24952: if (__testvalid) 24952: { 24952: 24952: 24952: 24952: 24952: const int_type __tmp = this->overflow(); 24952: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 24952: __testvalid = false; 24952: } 24952: } 24952: return __testvalid; 24952: } 24952: 24952: template 24952: int 24952: basic_filebuf<_CharT, _Traits>:: 24952: sync() 24952: { 24952: 24952: 24952: int __ret = 0; 24952: if (this->pbase() < this->pptr()) 24952: { 24952: const int_type __tmp = this->overflow(); 24952: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 24952: __ret = -1; 24952: } 24952: return __ret; 24952: } 24952: 24952: template 24952: void 24952: basic_filebuf<_CharT, _Traits>:: 24952: imbue(const locale& __loc) 24952: { 24952: bool __testvalid = true; 24952: 24952: const __codecvt_type* const _M_codecvt_tmp 24952: = __try_use_facet<__codecvt_type>(__loc); 24952: 24952: if (this->is_open()) 24952: { 24952: 24952: if ((_M_reading || _M_writing) 24952: && __check_facet(_M_codecvt).encoding() == -1) 24952: __testvalid = false; 24952: else 24952: { 24952: if (_M_reading) 24952: { 24952: if (__check_facet(_M_codecvt).always_noconv()) 24952: { 24952: if (_M_codecvt_tmp 24952: && !__check_facet(_M_codecvt_tmp).always_noconv()) 24952: __testvalid = this->seekoff(0, ios_base::cur, _M_mode) 24952: != pos_type(off_type(-1)); 24952: } 24952: else 24952: { 24952: 24952: _M_ext_next = _M_ext_buf 24952: + _M_codecvt->length(_M_state_last, _M_ext_buf, 24952: _M_ext_next, 24952: this->gptr() - this->eback()); 24952: const streamsize __remainder = _M_ext_end - _M_ext_next; 24952: if (__remainder) 24952: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 24952: 24952: _M_ext_next = _M_ext_buf; 24952: _M_ext_end = _M_ext_buf + __remainder; 24952: _M_set_buffer(-1); 24952: _M_state_last = _M_state_cur = _M_state_beg; 24952: } 24952: } 24952: else if (_M_writing && (__testvalid = _M_terminate_output())) 24952: _M_set_buffer(-1); 24952: } 24952: } 24952: 24952: if (__testvalid) 24952: _M_codecvt = _M_codecvt_tmp; 24952: else 24952: _M_codecvt = 0; 24952: } 24952: 24952: 24952: 24952: 24952: extern template class basic_filebuf; 24952: extern template class basic_ifstream; 24952: extern template class basic_ofstream; 24952: extern template class basic_fstream; 24952: 24952: 24952: extern template class basic_filebuf; 24952: extern template class basic_ifstream; 24952: extern template class basic_ofstream; 24952: extern template class basic_fstream; 24952: 24952: 24952: 24952: 24952: } 24952: # 1301 "/usr/include/c++/13/fstream" 2 3 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/monitoring/instrumented_mutex.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/monitoring/instrumented_mutex.h" 24952: 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/monitoring/instrumented_mutex.h" 24952: namespace rocksdb { 24952: class InstrumentedCondVar; 24952: 24952: 24952: 24952: class InstrumentedMutex { 24952: public: 24952: explicit InstrumentedMutex(bool adaptive = false) 24952: : mutex_(adaptive), stats_(nullptr), clock_(nullptr), stats_code_(0) {} 24952: 24952: explicit InstrumentedMutex(SystemClock* clock, bool adaptive = false) 24952: : mutex_(adaptive), stats_(nullptr), clock_(clock), stats_code_(0) {} 24952: 24952: InstrumentedMutex(Statistics* stats, SystemClock* clock, int stats_code, 24952: bool adaptive = false) 24952: : mutex_(adaptive), 24952: stats_(stats), 24952: clock_(clock), 24952: stats_code_(stats_code) {} 24952: # 45 "/build/reproducible-path/rocksdb-8.9.1/monitoring/instrumented_mutex.h" 24952: void Lock(); 24952: 24952: void Unlock() { mutex_.Unlock(); } 24952: 24952: void AssertHeld() const { mutex_.AssertHeld(); } 24952: 24952: private: 24952: void LockInternal(); 24952: friend class InstrumentedCondVar; 24952: port::Mutex mutex_; 24952: Statistics* stats_; 24952: SystemClock* clock_; 24952: int stats_code_; 24952: 24952: 24952: 24952: }; 24952: 24952: class alignas(64U) CacheAlignedInstrumentedMutex 24952: : public InstrumentedMutex { 24952: using InstrumentedMutex::InstrumentedMutex; 24952: }; 24952: static_assert(alignof(CacheAlignedInstrumentedMutex) != 64U || 24952: sizeof(CacheAlignedInstrumentedMutex) % 64U == 0); 24952: 24952: 24952: class InstrumentedMutexLock { 24952: public: 24952: explicit InstrumentedMutexLock(InstrumentedMutex* mutex) : mutex_(mutex) { 24952: mutex_->Lock(); 24952: } 24952: 24952: ~InstrumentedMutexLock() { mutex_->Unlock(); } 24952: 24952: private: 24952: InstrumentedMutex* const mutex_; 24952: InstrumentedMutexLock(const InstrumentedMutexLock&) = delete; 24952: void operator=(const InstrumentedMutexLock&) = delete; 24952: }; 24952: 24952: 24952: 24952: class InstrumentedMutexUnlock { 24952: public: 24952: explicit InstrumentedMutexUnlock(InstrumentedMutex* mutex) : mutex_(mutex) { 24952: mutex_->Unlock(); 24952: } 24952: 24952: ~InstrumentedMutexUnlock() { mutex_->Lock(); } 24952: 24952: private: 24952: InstrumentedMutex* const mutex_; 24952: InstrumentedMutexUnlock(const InstrumentedMutexUnlock&) = delete; 24952: void operator=(const InstrumentedMutexUnlock&) = delete; 24952: }; 24952: 24952: class InstrumentedCondVar { 24952: public: 24952: explicit InstrumentedCondVar(InstrumentedMutex* instrumented_mutex) 24952: : cond_(&(instrumented_mutex->mutex_)), 24952: stats_(instrumented_mutex->stats_), 24952: clock_(instrumented_mutex->clock_), 24952: stats_code_(instrumented_mutex->stats_code_) {} 24952: 24952: void Wait(); 24952: 24952: bool TimedWait(uint64_t abs_time_us); 24952: 24952: void Signal() { cond_.Signal(); } 24952: 24952: void SignalAll() { cond_.SignalAll(); } 24952: 24952: private: 24952: void WaitInternal(); 24952: bool TimedWaitInternal(uint64_t abs_time_us); 24952: port::CondVar cond_; 24952: Statistics* stats_; 24952: SystemClock* clock_; 24952: int stats_code_; 24952: }; 24952: 24952: } 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 2 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/trace_record.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 16 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/trace_record.h" 24952: namespace rocksdb { 24952: 24952: class ColumnFamilyHandle; 24952: class DB; 24952: 24952: 24952: enum TraceType : char { 24952: kTraceNone = 0, 24952: kTraceBegin = 1, 24952: kTraceEnd = 2, 24952: 24952: kTraceWrite = 3, 24952: kTraceGet = 4, 24952: kTraceIteratorSeek = 5, 24952: kTraceIteratorSeekForPrev = 6, 24952: 24952: kBlockTraceIndexBlock = 7, 24952: 24952: kBlockTraceFilterBlock = 8, 24952: kBlockTraceDataBlock = 9, 24952: kBlockTraceUncompressionDictBlock = 10, 24952: kBlockTraceRangeDeletionBlock = 11, 24952: 24952: kIOTracer = 12, 24952: 24952: kTraceMultiGet = 13, 24952: 24952: kTraceMax, 24952: }; 24952: 24952: class GetQueryTraceRecord; 24952: class IteratorSeekQueryTraceRecord; 24952: class MultiGetQueryTraceRecord; 24952: class TraceRecordResult; 24952: class WriteQueryTraceRecord; 24952: 24952: 24952: class TraceRecord { 24952: public: 24952: explicit TraceRecord(uint64_t timestamp); 24952: 24952: virtual ~TraceRecord() = default; 24952: 24952: 24952: virtual TraceType GetTraceType() const = 0; 24952: 24952: 24952: virtual uint64_t GetTimestamp() const; 24952: 24952: class Handler { 24952: public: 24952: virtual ~Handler() = default; 24952: 24952: virtual Status Handle(const WriteQueryTraceRecord& record, 24952: std::unique_ptr* result) = 0; 24952: 24952: virtual Status Handle(const GetQueryTraceRecord& record, 24952: std::unique_ptr* result) = 0; 24952: 24952: virtual Status Handle(const IteratorSeekQueryTraceRecord& record, 24952: std::unique_ptr* result) = 0; 24952: 24952: virtual Status Handle(const MultiGetQueryTraceRecord& record, 24952: std::unique_ptr* result) = 0; 24952: }; 24952: 24952: 24952: virtual Status Accept(Handler* handler, 24952: std::unique_ptr* result) = 0; 24952: 24952: 24952: static Handler* NewExecutionHandler( 24952: DB* db, const std::vector& handles); 24952: 24952: private: 24952: uint64_t timestamp_; 24952: }; 24952: 24952: 24952: class QueryTraceRecord : public TraceRecord { 24952: public: 24952: explicit QueryTraceRecord(uint64_t timestamp); 24952: }; 24952: 24952: 24952: class WriteQueryTraceRecord : public QueryTraceRecord { 24952: public: 24952: WriteQueryTraceRecord(PinnableSlice&& write_batch_rep, uint64_t timestamp); 24952: 24952: WriteQueryTraceRecord(const std::string& write_batch_rep, uint64_t timestamp); 24952: 24952: virtual ~WriteQueryTraceRecord() override; 24952: 24952: TraceType GetTraceType() const override { return kTraceWrite; } 24952: 24952: 24952: virtual Slice GetWriteBatchRep() const; 24952: 24952: Status Accept(Handler* handler, 24952: std::unique_ptr* result) override; 24952: 24952: private: 24952: PinnableSlice rep_; 24952: }; 24952: 24952: 24952: class GetQueryTraceRecord : public QueryTraceRecord { 24952: public: 24952: GetQueryTraceRecord(uint32_t column_family_id, PinnableSlice&& key, 24952: uint64_t timestamp); 24952: 24952: GetQueryTraceRecord(uint32_t column_family_id, const std::string& key, 24952: uint64_t timestamp); 24952: 24952: virtual ~GetQueryTraceRecord() override; 24952: 24952: TraceType GetTraceType() const override { return kTraceGet; } 24952: 24952: 24952: virtual uint32_t GetColumnFamilyID() const; 24952: 24952: 24952: virtual Slice GetKey() const; 24952: 24952: Status Accept(Handler* handler, 24952: std::unique_ptr* result) override; 24952: 24952: private: 24952: uint32_t cf_id_; 24952: PinnableSlice key_; 24952: }; 24952: 24952: 24952: class IteratorQueryTraceRecord : public QueryTraceRecord { 24952: public: 24952: explicit IteratorQueryTraceRecord(uint64_t timestamp); 24952: 24952: IteratorQueryTraceRecord(PinnableSlice&& lower_bound, 24952: PinnableSlice&& upper_bound, uint64_t timestamp); 24952: 24952: IteratorQueryTraceRecord(const std::string& lower_bound, 24952: const std::string& upper_bound, uint64_t timestamp); 24952: 24952: virtual ~IteratorQueryTraceRecord() override; 24952: 24952: 24952: 24952: virtual Slice GetLowerBound() const; 24952: virtual Slice GetUpperBound() const; 24952: 24952: private: 24952: PinnableSlice lower_; 24952: PinnableSlice upper_; 24952: }; 24952: 24952: 24952: class IteratorSeekQueryTraceRecord : public IteratorQueryTraceRecord { 24952: public: 24952: 24952: enum SeekType { 24952: kSeek = kTraceIteratorSeek, 24952: kSeekForPrev = kTraceIteratorSeekForPrev 24952: }; 24952: 24952: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 24952: PinnableSlice&& key, uint64_t timestamp); 24952: 24952: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 24952: const std::string& key, uint64_t timestamp); 24952: 24952: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 24952: PinnableSlice&& key, PinnableSlice&& lower_bound, 24952: PinnableSlice&& upper_bound, uint64_t timestamp); 24952: 24952: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 24952: const std::string& key, 24952: const std::string& lower_bound, 24952: const std::string& upper_bound, 24952: uint64_t timestamp); 24952: 24952: virtual ~IteratorSeekQueryTraceRecord() override; 24952: 24952: 24952: TraceType GetTraceType() const override; 24952: 24952: 24952: virtual SeekType GetSeekType() const; 24952: 24952: 24952: virtual uint32_t GetColumnFamilyID() const; 24952: 24952: 24952: virtual Slice GetKey() const; 24952: 24952: Status Accept(Handler* handler, 24952: std::unique_ptr* result) override; 24952: 24952: private: 24952: SeekType type_; 24952: uint32_t cf_id_; 24952: PinnableSlice key_; 24952: }; 24952: 24952: 24952: class MultiGetQueryTraceRecord : public QueryTraceRecord { 24952: public: 24952: MultiGetQueryTraceRecord(std::vector column_family_ids, 24952: std::vector&& keys, 24952: uint64_t timestamp); 24952: 24952: MultiGetQueryTraceRecord(std::vector column_family_ids, 24952: const std::vector& keys, 24952: uint64_t timestamp); 24952: 24952: virtual ~MultiGetQueryTraceRecord() override; 24952: 24952: TraceType GetTraceType() const override { return kTraceMultiGet; } 24952: 24952: 24952: virtual std::vector GetColumnFamilyIDs() const; 24952: 24952: 24952: virtual std::vector GetKeys() const; 24952: 24952: Status Accept(Handler* handler, 24952: std::unique_ptr* result) override; 24952: 24952: private: 24952: std::vector cf_ids_; 24952: std::vector keys_; 24952: }; 24952: 24952: } 24952: # 16 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/trace_replay.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 18 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/trace_replay.h" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/utilities/replayer.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class TraceRecord; 24952: class TraceRecordResult; 24952: 24952: struct ReplayOptions { 24952: 24952: 24952: uint32_t num_threads; 24952: 24952: 24952: 24952: 24952: 24952: 24952: double fast_forward; 24952: 24952: ReplayOptions() : num_threads(1), fast_forward(1.0) {} 24952: 24952: ReplayOptions(uint32_t num_of_threads, double fast_forward_ratio) 24952: : num_threads(num_of_threads), fast_forward(fast_forward_ratio) {} 24952: }; 24952: 24952: 24952: 24952: 24952: class Replayer { 24952: public: 24952: virtual ~Replayer() = default; 24952: 24952: 24952: 24952: virtual Status Prepare() = 0; 24952: 24952: 24952: virtual uint64_t GetHeaderTimestamp() const = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Next(std::unique_ptr* record) = 0; 24952: # 71 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/utilities/replayer.h" 24952: virtual Status Execute(const std::unique_ptr& record, 24952: std::unique_ptr* result) = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Replay( 24952: const ReplayOptions& options, 24952: const std::function&&)>& 24952: result_callback) = 0; 24952: }; 24952: 24952: } 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/trace_replay.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: class ColumnFamilyHandle; 24952: class ColumnFamilyData; 24952: class DB; 24952: class DBImpl; 24952: class Env; 24952: class Slice; 24952: class SystemClock; 24952: class TraceReader; 24952: class TraceWriter; 24952: class WriteBatch; 24952: 24952: struct ReadOptions; 24952: struct TraceOptions; 24952: struct WriteOptions; 24952: 24952: extern const std::string kTraceMagic; 24952: const unsigned int kTraceTimestampSize = 8; 24952: const unsigned int kTraceTypeSize = 1; 24952: const unsigned int kTracePayloadLengthSize = 4; 24952: const unsigned int kTraceMetadataSize = 24952: kTraceTimestampSize + kTraceTypeSize + kTracePayloadLengthSize; 24952: 24952: static const int kTraceFileMajorVersion = 0; 24952: static const int kTraceFileMinorVersion = 2; 24952: 24952: 24952: struct Trace { 24952: uint64_t ts; 24952: TraceType type; 24952: 24952: 24952: 24952: 24952: uint64_t payload_map = 0; 24952: 24952: 24952: std::string payload; 24952: 24952: void reset() { 24952: ts = 0; 24952: type = kTraceMax; 24952: payload_map = 0; 24952: payload.clear(); 24952: } 24952: }; 24952: 24952: enum TracePayloadType : char { 24952: 24952: 24952: kEmptyPayload = 0, 24952: kWriteBatchData = 1, 24952: kGetCFID = 2, 24952: kGetKey = 3, 24952: kIterCFID = 4, 24952: kIterKey = 5, 24952: kIterLowerBound = 6, 24952: kIterUpperBound = 7, 24952: kMultiGetSize = 8, 24952: kMultiGetCFIDs = 9, 24952: kMultiGetKeys = 10, 24952: }; 24952: 24952: class TracerHelper { 24952: public: 24952: 24952: static Status ParseVersionStr(std::string& v_string, int* v_num); 24952: 24952: 24952: static Status ParseTraceHeader(const Trace& header, int* trace_version, 24952: int* db_version); 24952: 24952: 24952: static void EncodeTrace(const Trace& trace, std::string* encoded_trace); 24952: 24952: 24952: static Status DecodeTrace(const std::string& encoded_trace, Trace* trace); 24952: 24952: 24952: static Status DecodeHeader(const std::string& encoded_trace, Trace* header); 24952: 24952: 24952: static bool SetPayloadMap(uint64_t& payload_map, 24952: const TracePayloadType payload_type); 24952: 24952: 24952: 24952: 24952: 24952: static Status DecodeTraceRecord(Trace* trace, int trace_file_version, 24952: std::unique_ptr* record); 24952: }; 24952: 24952: 24952: 24952: 24952: class Tracer { 24952: public: 24952: Tracer(SystemClock* clock, const TraceOptions& trace_options, 24952: std::unique_ptr&& trace_writer); 24952: ~Tracer(); 24952: 24952: 24952: Status Write(WriteBatch* write_batch); 24952: 24952: 24952: Status Get(ColumnFamilyHandle* cfname, const Slice& key); 24952: 24952: 24952: Status IteratorSeek(const uint32_t& cf_id, const Slice& key, 24952: const Slice& lower_bound, const Slice upper_bound); 24952: Status IteratorSeekForPrev(const uint32_t& cf_id, const Slice& key, 24952: const Slice& lower_bound, const Slice upper_bound); 24952: 24952: 24952: 24952: Status MultiGet(const size_t num_keys, ColumnFamilyHandle** column_families, 24952: const Slice* keys); 24952: 24952: Status MultiGet(const size_t num_keys, ColumnFamilyHandle* column_family, 24952: const Slice* keys); 24952: 24952: Status MultiGet(const std::vector& column_family, 24952: const std::vector& keys); 24952: 24952: 24952: 24952: bool IsTraceFileOverMax(); 24952: 24952: 24952: 24952: bool IsWriteOrderPreserved() { return trace_options_.preserve_write_order; } 24952: 24952: 24952: Status Close(); 24952: 24952: private: 24952: 24952: 24952: 24952: Status WriteHeader(); 24952: 24952: 24952: Status WriteFooter(); 24952: 24952: 24952: 24952: Status WriteTrace(const Trace& trace); 24952: 24952: 24952: 24952: bool ShouldSkipTrace(const TraceType& type); 24952: 24952: SystemClock* clock_; 24952: TraceOptions trace_options_; 24952: std::unique_ptr trace_writer_; 24952: uint64_t trace_request_count_; 24952: Status trace_write_status_; 24952: }; 24952: 24952: } 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 2 24952: 24952: namespace rocksdb { 24952: class SystemClock; 24952: class TraceReader; 24952: class TraceWriter; 24952: # 32 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 24952: enum IOTraceOp : char { 24952: 24952: 24952: kIOFileSize = 0, 24952: kIOLen = 1, 24952: kIOOffset = 2, 24952: }; 24952: 24952: struct IOTraceRecord { 24952: 24952: uint64_t access_timestamp = 0; 24952: TraceType trace_type = TraceType::kTraceMax; 24952: 24952: 24952: 24952: uint64_t io_op_data = 0; 24952: std::string file_operation; 24952: uint64_t latency = 0; 24952: std::string io_status; 24952: 24952: std::string file_name; 24952: 24952: 24952: uint64_t len = 0; 24952: uint64_t offset = 0; 24952: uint64_t file_size = 0; 24952: 24952: 24952: uint64_t trace_data = 0; 24952: std::string request_id; 24952: 24952: IOTraceRecord() {} 24952: 24952: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 24952: const uint64_t& _io_op_data, const std::string& _file_operation, 24952: const uint64_t& _latency, const std::string& _io_status, 24952: const std::string& _file_name, const uint64_t& _file_size = 0) 24952: : access_timestamp(_access_timestamp), 24952: trace_type(_trace_type), 24952: io_op_data(_io_op_data), 24952: file_operation(_file_operation), 24952: latency(_latency), 24952: io_status(_io_status), 24952: file_name(_file_name), 24952: file_size(_file_size) {} 24952: 24952: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 24952: const uint64_t& _io_op_data, const std::string& _file_operation, 24952: const uint64_t& _latency, const std::string& _io_status, 24952: const std::string& _file_name, const uint64_t& _len, 24952: const uint64_t& _offset) 24952: : access_timestamp(_access_timestamp), 24952: trace_type(_trace_type), 24952: io_op_data(_io_op_data), 24952: file_operation(_file_operation), 24952: latency(_latency), 24952: io_status(_io_status), 24952: file_name(_file_name), 24952: len(_len), 24952: offset(_offset) {} 24952: }; 24952: 24952: struct IOTraceHeader { 24952: uint64_t start_time; 24952: uint32_t rocksdb_major_version; 24952: uint32_t rocksdb_minor_version; 24952: }; 24952: 24952: 24952: 24952: class IOTraceWriter { 24952: public: 24952: IOTraceWriter(SystemClock* clock, const TraceOptions& trace_options, 24952: std::unique_ptr&& trace_writer); 24952: ~IOTraceWriter() = default; 24952: 24952: IOTraceWriter(const IOTraceWriter&) = delete; 24952: IOTraceWriter& operator=(const IOTraceWriter&) = delete; 24952: IOTraceWriter(IOTraceWriter&&) = delete; 24952: IOTraceWriter& operator=(IOTraceWriter&&) = delete; 24952: 24952: Status WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 24952: 24952: 24952: 24952: Status WriteHeader(); 24952: 24952: private: 24952: SystemClock* clock_; 24952: TraceOptions trace_options_; 24952: std::unique_ptr trace_writer_; 24952: }; 24952: 24952: 24952: class IOTraceReader { 24952: public: 24952: explicit IOTraceReader(std::unique_ptr&& reader); 24952: ~IOTraceReader() = default; 24952: 24952: IOTraceReader(const IOTraceReader&) = delete; 24952: IOTraceReader& operator=(const IOTraceReader&) = delete; 24952: IOTraceReader(IOTraceReader&&) = delete; 24952: IOTraceReader& operator=(IOTraceReader&&) = delete; 24952: 24952: Status ReadHeader(IOTraceHeader* header); 24952: 24952: Status ReadIOOp(IOTraceRecord* record); 24952: 24952: private: 24952: std::unique_ptr trace_reader_; 24952: }; 24952: 24952: 24952: 24952: class IOTracer { 24952: public: 24952: IOTracer(); 24952: ~IOTracer(); 24952: 24952: IOTracer(const IOTracer&) = delete; 24952: IOTracer& operator=(const IOTracer&) = delete; 24952: IOTracer(IOTracer&&) = delete; 24952: IOTracer& operator=(IOTracer&&) = delete; 24952: # 163 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/io_tracer.h" 24952: Status 24952: StartIOTrace(SystemClock* clock, const TraceOptions& trace_options, 24952: std::unique_ptr&& trace_writer); 24952: 24952: 24952: void EndIOTrace(); 24952: 24952: bool is_tracing_enabled() const { return tracing_enabled; } 24952: 24952: void WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 24952: 24952: private: 24952: TraceOptions trace_options_; 24952: 24952: InstrumentedMutex trace_writer_mutex_; 24952: std::atomic writer_; 24952: 24952: 24952: 24952: bool tracing_enabled; 24952: }; 24952: 24952: } 24952: # 11 "/build/reproducible-path/rocksdb-8.9.1/env/file_system_tracer.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class FileSystemTracingWrapper : public FileSystemWrapper { 24952: public: 24952: FileSystemTracingWrapper(const std::shared_ptr& t, 24952: const std::shared_ptr& io_tracer) 24952: : FileSystemWrapper(t), 24952: io_tracer_(io_tracer), 24952: clock_(SystemClock::Default().get()) {} 24952: 24952: ~FileSystemTracingWrapper() override {} 24952: 24952: static const char* kClassName() { return "FileSystemTracing"; } 24952: const char* Name() const override { return kClassName(); } 24952: 24952: IOStatus NewSequentialFile(const std::string& fname, 24952: const FileOptions& file_opts, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus NewRandomAccessFile(const std::string& fname, 24952: const FileOptions& file_opts, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus NewWritableFile(const std::string& fname, 24952: const FileOptions& file_opts, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus ReopenWritableFile(const std::string& fname, 24952: const FileOptions& file_opts, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus ReuseWritableFile(const std::string& fname, 24952: const std::string& old_fname, 24952: const FileOptions& file_opts, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus NewRandomRWFile(const std::string& fname, const FileOptions& options, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 24952: std::unique_ptr* result, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 24952: std::vector* r, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus DeleteFile(const std::string& fname, const IOOptions& options, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus CreateDir(const std::string& dirname, const IOOptions& options, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus CreateDirIfMissing(const std::string& dirname, 24952: const IOOptions& options, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus DeleteDir(const std::string& dirname, const IOOptions& options, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus GetFileSize(const std::string& fname, const IOOptions& options, 24952: uint64_t* file_size, IODebugContext* dbg) override; 24952: 24952: IOStatus Truncate(const std::string& fname, size_t size, 24952: const IOOptions& options, IODebugContext* dbg) override; 24952: 24952: private: 24952: std::shared_ptr io_tracer_; 24952: SystemClock* clock_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class FileSystemPtr { 24952: public: 24952: FileSystemPtr(std::shared_ptr fs, 24952: const std::shared_ptr& io_tracer) 24952: : fs_(fs), io_tracer_(io_tracer) { 24952: fs_tracer_ = std::make_shared(fs_, io_tracer_); 24952: } 24952: 24952: std::shared_ptr operator->() const { 24952: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 24952: return fs_tracer_; 24952: } else { 24952: return fs_; 24952: } 24952: } 24952: 24952: 24952: FileSystem* get() const { 24952: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 24952: return fs_tracer_.get(); 24952: } else { 24952: return fs_.get(); 24952: } 24952: } 24952: 24952: private: 24952: std::shared_ptr fs_; 24952: std::shared_ptr io_tracer_; 24952: std::shared_ptr fs_tracer_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class FSSequentialFileTracingWrapper : public FSSequentialFileOwnerWrapper { 24952: public: 24952: FSSequentialFileTracingWrapper(std::unique_ptr&& t, 24952: std::shared_ptr io_tracer, 24952: const std::string& file_name) 24952: : FSSequentialFileOwnerWrapper(std::move(t)), 24952: io_tracer_(io_tracer), 24952: clock_(SystemClock::Default().get()), 24952: file_name_(file_name) {} 24952: 24952: ~FSSequentialFileTracingWrapper() override {} 24952: 24952: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 24952: char* scratch, IODebugContext* dbg) override; 24952: 24952: IOStatus InvalidateCache(size_t offset, size_t length) override; 24952: 24952: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 24952: Slice* result, char* scratch, 24952: IODebugContext* dbg) override; 24952: 24952: private: 24952: std::shared_ptr io_tracer_; 24952: SystemClock* clock_; 24952: std::string file_name_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class FSSequentialFilePtr { 24952: public: 24952: FSSequentialFilePtr() = delete; 24952: FSSequentialFilePtr(std::unique_ptr&& fs, 24952: const std::shared_ptr& io_tracer, 24952: const std::string& file_name) 24952: : io_tracer_(io_tracer), 24952: fs_tracer_(std::move(fs), io_tracer_, 24952: file_name.substr(file_name.find_last_of("/\\") + 24952: 1) ) {} 24952: 24952: FSSequentialFile* operator->() const { 24952: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 24952: return const_cast(&fs_tracer_); 24952: } else { 24952: return fs_tracer_.target(); 24952: } 24952: } 24952: 24952: FSSequentialFile* get() const { 24952: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 24952: return const_cast(&fs_tracer_); 24952: } else { 24952: return fs_tracer_.target(); 24952: } 24952: } 24952: 24952: private: 24952: std::shared_ptr io_tracer_; 24952: FSSequentialFileTracingWrapper fs_tracer_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class FSRandomAccessFileTracingWrapper : public FSRandomAccessFileOwnerWrapper { 24952: public: 24952: FSRandomAccessFileTracingWrapper(std::unique_ptr&& t, 24952: std::shared_ptr io_tracer, 24952: const std::string& file_name) 24952: : FSRandomAccessFileOwnerWrapper(std::move(t)), 24952: io_tracer_(io_tracer), 24952: clock_(SystemClock::Default().get()), 24952: file_name_(file_name) {} 24952: 24952: ~FSRandomAccessFileTracingWrapper() override {} 24952: 24952: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 24952: Slice* result, char* scratch, 24952: IODebugContext* dbg) const override; 24952: 24952: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 24952: const IOOptions& options, IODebugContext* dbg) override; 24952: 24952: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus InvalidateCache(size_t offset, size_t length) override; 24952: 24952: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 24952: std::function cb, 24952: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 24952: IODebugContext* dbg) override; 24952: 24952: void ReadAsyncCallback(const FSReadRequest& req, void* cb_arg); 24952: 24952: private: 24952: std::shared_ptr io_tracer_; 24952: SystemClock* clock_; 24952: 24952: std::string file_name_; 24952: 24952: struct ReadAsyncCallbackInfo { 24952: uint64_t start_time_; 24952: std::function cb_; 24952: void* cb_arg_; 24952: std::string file_op_; 24952: }; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class FSRandomAccessFilePtr { 24952: public: 24952: FSRandomAccessFilePtr(std::unique_ptr&& fs, 24952: const std::shared_ptr& io_tracer, 24952: const std::string& file_name) 24952: : io_tracer_(io_tracer), 24952: fs_tracer_(std::move(fs), io_tracer_, 24952: file_name.substr(file_name.find_last_of("/\\") + 24952: 1) ) {} 24952: 24952: FSRandomAccessFile* operator->() const { 24952: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 24952: return const_cast(&fs_tracer_); 24952: } else { 24952: return fs_tracer_.target(); 24952: } 24952: } 24952: 24952: FSRandomAccessFile* get() const { 24952: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 24952: return const_cast(&fs_tracer_); 24952: } else { 24952: return fs_tracer_.target(); 24952: } 24952: } 24952: 24952: private: 24952: std::shared_ptr io_tracer_; 24952: FSRandomAccessFileTracingWrapper fs_tracer_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class FSWritableFileTracingWrapper : public FSWritableFileOwnerWrapper { 24952: public: 24952: FSWritableFileTracingWrapper(std::unique_ptr&& t, 24952: std::shared_ptr io_tracer, 24952: const std::string& file_name) 24952: : FSWritableFileOwnerWrapper(std::move(t)), 24952: io_tracer_(io_tracer), 24952: clock_(SystemClock::Default().get()), 24952: file_name_(file_name) {} 24952: 24952: ~FSWritableFileTracingWrapper() override {} 24952: 24952: IOStatus Append(const Slice& data, const IOOptions& options, 24952: IODebugContext* dbg) override; 24952: IOStatus Append(const Slice& data, const IOOptions& options, 24952: const DataVerificationInfo& , 24952: IODebugContext* dbg) override { 24952: return Append(data, options, dbg); 24952: } 24952: 24952: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 24952: const IOOptions& options, 24952: IODebugContext* dbg) override; 24952: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 24952: const IOOptions& options, 24952: const DataVerificationInfo& , 24952: IODebugContext* dbg) override { 24952: return PositionedAppend(data, offset, options, dbg); 24952: } 24952: 24952: IOStatus Truncate(uint64_t size, const IOOptions& options, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 24952: 24952: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override; 24952: 24952: IOStatus InvalidateCache(size_t offset, size_t length) override; 24952: 24952: private: 24952: std::shared_ptr io_tracer_; 24952: SystemClock* clock_; 24952: 24952: std::string file_name_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class FSWritableFilePtr { 24952: public: 24952: FSWritableFilePtr(std::unique_ptr&& fs, 24952: const std::shared_ptr& io_tracer, 24952: const std::string& file_name) 24952: : io_tracer_(io_tracer) { 24952: fs_tracer_.reset(new FSWritableFileTracingWrapper( 24952: std::move(fs), io_tracer_, 24952: file_name.substr(file_name.find_last_of("/\\") + 24952: 1) )); 24952: } 24952: 24952: FSWritableFile* operator->() const { 24952: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 24952: return fs_tracer_.get(); 24952: } else { 24952: return fs_tracer_->target(); 24952: } 24952: } 24952: 24952: FSWritableFile* get() const { 24952: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 24952: return fs_tracer_.get(); 24952: } else if (fs_tracer_) { 24952: return fs_tracer_->target(); 24952: } else { 24952: return nullptr; 24952: } 24952: } 24952: 24952: void reset() { 24952: fs_tracer_.reset(); 24952: io_tracer_ = nullptr; 24952: } 24952: 24952: private: 24952: std::shared_ptr io_tracer_; 24952: std::unique_ptr fs_tracer_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class FSRandomRWFileTracingWrapper : public FSRandomRWFileOwnerWrapper { 24952: public: 24952: FSRandomRWFileTracingWrapper(std::unique_ptr&& t, 24952: std::shared_ptr io_tracer, 24952: const std::string& file_name) 24952: : FSRandomRWFileOwnerWrapper(std::move(t)), 24952: io_tracer_(io_tracer), 24952: clock_(SystemClock::Default().get()), 24952: file_name_(file_name) {} 24952: 24952: ~FSRandomRWFileTracingWrapper() override {} 24952: 24952: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 24952: IODebugContext* dbg) override; 24952: 24952: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 24952: Slice* result, char* scratch, 24952: IODebugContext* dbg) const override; 24952: 24952: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 24952: 24952: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 24952: 24952: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 24952: 24952: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 24952: 24952: private: 24952: std::shared_ptr io_tracer_; 24952: SystemClock* clock_; 24952: 24952: std::string file_name_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class FSRandomRWFilePtr { 24952: public: 24952: FSRandomRWFilePtr(std::unique_ptr&& fs, 24952: std::shared_ptr io_tracer, 24952: const std::string& file_name) 24952: : io_tracer_(io_tracer), 24952: fs_tracer_(std::move(fs), io_tracer_, 24952: file_name.substr(file_name.find_last_of("/\\") + 24952: 1) ) {} 24952: 24952: FSRandomRWFile* operator->() const { 24952: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 24952: return const_cast(&fs_tracer_); 24952: } else { 24952: return fs_tracer_.target(); 24952: } 24952: } 24952: 24952: FSRandomRWFile* get() const { 24952: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 24952: return const_cast(&fs_tracer_); 24952: } else { 24952: return fs_tracer_.target(); 24952: } 24952: } 24952: 24952: private: 24952: std::shared_ptr io_tracer_; 24952: FSRandomRWFileTracingWrapper fs_tracer_; 24952: }; 24952: 24952: } 24952: # 16 "/build/reproducible-path/rocksdb-8.9.1/file/random_access_file_reader.h" 2 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: class RateLimiter { 24952: public: 24952: enum class OpType { 24952: kRead, 24952: kWrite, 24952: }; 24952: 24952: enum class Mode { 24952: kReadsOnly, 24952: kWritesOnly, 24952: kAllIo, 24952: }; 24952: 24952: 24952: explicit RateLimiter(Mode mode = Mode::kWritesOnly) : mode_(mode) {} 24952: 24952: virtual ~RateLimiter() {} 24952: 24952: 24952: 24952: virtual void SetBytesPerSecond(int64_t bytes_per_second) = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status SetSingleBurstBytes(int64_t ) { 24952: return Status::NotSupported(); 24952: } 24952: # 61 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 24952: virtual void Request(const int64_t , const Env::IOPriority ) { 24952: 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 3 4 24952: (static_cast ( 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 24952: false 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 24952: "false" 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 3 4 24952: , "./include/rocksdb/rate_limiter.h", 62, __extension__ __PRETTY_FUNCTION__)) 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 24952: ; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 24952: Statistics* ) { 24952: 24952: 24952: Request(bytes, pri); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 24952: Statistics* stats, OpType op_type) { 24952: if (IsRateLimited(op_type)) { 24952: Request(bytes, pri, stats); 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual size_t RequestToken(size_t bytes, size_t alignment, 24952: Env::IOPriority io_priority, Statistics* stats, 24952: RateLimiter::OpType op_type); 24952: 24952: 24952: virtual int64_t GetSingleBurstBytes() const = 0; 24952: 24952: 24952: virtual int64_t GetTotalBytesThrough( 24952: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 24952: 24952: 24952: virtual int64_t GetTotalRequests( 24952: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status GetTotalPendingRequests( 24952: int64_t* total_pending_requests, 24952: const Env::IOPriority pri = Env::IO_TOTAL) const { 24952: 24952: # 115 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 3 4 24952: (static_cast ( 24952: # 115 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 24952: total_pending_requests != nullptr 24952: # 115 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 115 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 24952: "total_pending_requests != nullptr" 24952: # 115 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 3 4 24952: , "./include/rocksdb/rate_limiter.h", 115, __extension__ __PRETTY_FUNCTION__)) 24952: # 115 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 24952: ; 24952: (void)total_pending_requests; 24952: (void)pri; 24952: return Status::NotSupported(); 24952: } 24952: 24952: virtual int64_t GetBytesPerSecond() const = 0; 24952: 24952: virtual bool IsRateLimited(OpType op_type) { 24952: if ((mode_ == RateLimiter::Mode::kWritesOnly && 24952: op_type == RateLimiter::OpType::kRead) || 24952: (mode_ == RateLimiter::Mode::kReadsOnly && 24952: op_type == RateLimiter::OpType::kWrite)) { 24952: return false; 24952: } 24952: return true; 24952: } 24952: 24952: protected: 24952: Mode GetMode() { return mode_; } 24952: 24952: private: 24952: const Mode mode_; 24952: }; 24952: # 162 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/rate_limiter.h" 24952: extern RateLimiter* NewGenericRateLimiter( 24952: int64_t rate_bytes_per_sec, int64_t refill_period_us = 100 * 1000, 24952: int32_t fairness = 10, 24952: RateLimiter::Mode mode = RateLimiter::Mode::kWritesOnly, 24952: bool auto_tuned = false); 24952: 24952: } 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/file/random_access_file_reader.h" 2 24952: 24952: 24952: namespace rocksdb { 24952: class Statistics; 24952: class HistogramImpl; 24952: class SystemClock; 24952: 24952: using AlignedBuf = std::unique_ptr; 24952: 24952: 24952: FSReadRequest Align(const FSReadRequest& r, size_t alignment); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool TryMerge(FSReadRequest* dest, const FSReadRequest& src); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class RandomAccessFileReader { 24952: private: 24952: void NotifyOnFileReadFinish( 24952: uint64_t offset, size_t length, 24952: const FileOperationInfo::StartTimePoint& start_ts, 24952: const FileOperationInfo::FinishTimePoint& finish_ts, 24952: const Status& status) const { 24952: FileOperationInfo info(FileOperationType::kRead, file_name_, start_ts, 24952: finish_ts, status, file_temperature_); 24952: info.offset = offset; 24952: info.length = length; 24952: 24952: for (auto& listener : listeners_) { 24952: listener->OnFileReadFinish(info); 24952: } 24952: info.status.PermitUncheckedError(); 24952: } 24952: 24952: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 24952: const std::string& file_path, size_t length, 24952: uint64_t offset) const { 24952: if (listeners_.empty()) { 24952: return; 24952: } 24952: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 24952: 24952: for (auto& listener : listeners_) { 24952: listener->OnIOError(io_error_info); 24952: } 24952: io_status.PermitUncheckedError(); 24952: } 24952: 24952: 24952: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 24952: 24952: FSRandomAccessFilePtr file_; 24952: std::string file_name_; 24952: SystemClock* clock_; 24952: Statistics* stats_; 24952: uint32_t hist_type_; 24952: HistogramImpl* file_read_hist_; 24952: RateLimiter* rate_limiter_; 24952: std::vector> listeners_; 24952: const Temperature file_temperature_; 24952: const bool is_last_level_; 24952: 24952: struct ReadAsyncInfo { 24952: ReadAsyncInfo(std::function cb, 24952: void* cb_arg, uint64_t start_time) 24952: : cb_(cb), 24952: cb_arg_(cb_arg), 24952: start_time_(start_time), 24952: user_scratch_(nullptr), 24952: user_aligned_buf_(nullptr), 24952: user_offset_(0), 24952: user_len_(0), 24952: is_aligned_(false) {} 24952: 24952: std::function cb_; 24952: void* cb_arg_; 24952: uint64_t start_time_; 24952: FileOperationInfo::StartTimePoint fs_start_ts_; 24952: 24952: char* user_scratch_; 24952: AlignedBuf* user_aligned_buf_; 24952: uint64_t user_offset_; 24952: size_t user_len_; 24952: Slice user_result_; 24952: 24952: AlignedBuffer buf_; 24952: bool is_aligned_; 24952: }; 24952: 24952: public: 24952: explicit RandomAccessFileReader( 24952: std::unique_ptr&& raf, const std::string& _file_name, 24952: SystemClock* clock = nullptr, 24952: const std::shared_ptr& io_tracer = nullptr, 24952: Statistics* stats = nullptr, 24952: uint32_t hist_type = Histograms::HISTOGRAM_ENUM_MAX, 24952: HistogramImpl* file_read_hist = nullptr, 24952: RateLimiter* rate_limiter = nullptr, 24952: const std::vector>& listeners = {}, 24952: Temperature file_temperature = Temperature::kUnknown, 24952: bool is_last_level = false) 24952: : file_(std::move(raf), io_tracer, _file_name), 24952: file_name_(std::move(_file_name)), 24952: clock_(clock), 24952: stats_(stats), 24952: hist_type_(hist_type), 24952: file_read_hist_(file_read_hist), 24952: rate_limiter_(rate_limiter), 24952: listeners_(), 24952: file_temperature_(file_temperature), 24952: is_last_level_(is_last_level) { 24952: std::for_each(listeners.begin(), listeners.end(), 24952: [this](const std::shared_ptr& e) { 24952: if (e->ShouldBeNotifiedOnFileIO()) { 24952: listeners_.emplace_back(e); 24952: } 24952: }); 24952: } 24952: 24952: static IOStatus Create(const std::shared_ptr& fs, 24952: const std::string& fname, const FileOptions& file_opts, 24952: std::unique_ptr* reader, 24952: IODebugContext* dbg); 24952: RandomAccessFileReader(const RandomAccessFileReader&) = delete; 24952: RandomAccessFileReader& operator=(const RandomAccessFileReader&) = delete; 24952: # 167 "/build/reproducible-path/rocksdb-8.9.1/file/random_access_file_reader.h" 24952: IOStatus Read(const IOOptions& opts, uint64_t offset, size_t n, Slice* result, 24952: char* scratch, AlignedBuf* aligned_buf) const; 24952: 24952: 24952: 24952: 24952: 24952: 24952: IOStatus MultiRead(const IOOptions& opts, FSReadRequest* reqs, 24952: size_t num_reqs, AlignedBuf* aligned_buf) const; 24952: 24952: IOStatus Prefetch(const IOOptions& opts, uint64_t offset, size_t n) const { 24952: return file_->Prefetch(offset, n, opts, nullptr); 24952: } 24952: 24952: FSRandomAccessFile* file() { return file_.get(); } 24952: 24952: const std::string& file_name() const { return file_name_; } 24952: 24952: bool use_direct_io() const { return file_->use_direct_io(); } 24952: 24952: IOStatus PrepareIOOptions(const ReadOptions& ro, IOOptions& opts) const; 24952: 24952: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 24952: std::function cb, 24952: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 24952: AlignedBuf* aligned_buf); 24952: 24952: void ReadAsyncCallback(const FSReadRequest& req, void* cb_arg); 24952: }; 24952: } 24952: # 18 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/memory/memory_allocator_impl.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: struct CustomDeleter { 24952: CustomDeleter(MemoryAllocator* a = nullptr) : allocator(a) {} 24952: 24952: void operator()(char* ptr) const { 24952: if (allocator) { 24952: allocator->Deallocate(reinterpret_cast(ptr)); 24952: } else { 24952: delete[] ptr; 24952: } 24952: } 24952: 24952: MemoryAllocator* allocator; 24952: }; 24952: 24952: using CacheAllocationPtr = std::unique_ptr; 24952: 24952: inline CacheAllocationPtr AllocateBlock(size_t size, 24952: MemoryAllocator* allocator) { 24952: if (allocator) { 24952: auto block = reinterpret_cast(allocator->Allocate(size)); 24952: return CacheAllocationPtr(block, allocator); 24952: } 24952: return CacheAllocationPtr(new char[size]); 24952: } 24952: 24952: inline CacheAllocationPtr AllocateAndCopyBlock(const Slice& data, 24952: MemoryAllocator* allocator) { 24952: CacheAllocationPtr cap = AllocateBlock(data.size(), allocator); 24952: std::copy_n(data.data(), data.size(), cap.get()); 24952: return cap; 24952: } 24952: 24952: } 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/options/cf_options.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/options/db_options.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: class SystemClock; 24952: 24952: struct ImmutableDBOptions { 24952: static const char* kName() { return "ImmutableDBOptions"; } 24952: ImmutableDBOptions(); 24952: explicit ImmutableDBOptions(const DBOptions& options); 24952: 24952: void Dump(Logger* log) const; 24952: 24952: bool create_if_missing; 24952: bool create_missing_column_families; 24952: bool error_if_exists; 24952: bool paranoid_checks; 24952: bool flush_verify_memtable_count; 24952: bool compaction_verify_record_count; 24952: bool track_and_verify_wals_in_manifest; 24952: bool verify_sst_unique_id_in_manifest; 24952: Env* env; 24952: std::shared_ptr rate_limiter; 24952: std::shared_ptr sst_file_manager; 24952: std::shared_ptr info_log; 24952: InfoLogLevel info_log_level; 24952: int max_file_opening_threads; 24952: std::shared_ptr statistics; 24952: bool use_fsync; 24952: std::vector db_paths; 24952: std::string db_log_dir; 24952: 24952: 24952: 24952: std::string wal_dir; 24952: size_t max_log_file_size; 24952: size_t log_file_time_to_roll; 24952: size_t keep_log_file_num; 24952: size_t recycle_log_file_num; 24952: uint64_t max_manifest_file_size; 24952: int table_cache_numshardbits; 24952: uint64_t WAL_ttl_seconds; 24952: uint64_t WAL_size_limit_MB; 24952: uint64_t max_write_batch_group_size_bytes; 24952: size_t manifest_preallocation_size; 24952: bool allow_mmap_reads; 24952: bool allow_mmap_writes; 24952: bool use_direct_reads; 24952: bool use_direct_io_for_flush_and_compaction; 24952: bool allow_fallocate; 24952: bool is_fd_close_on_exec; 24952: bool advise_random_on_open; 24952: size_t db_write_buffer_size; 24952: std::shared_ptr write_buffer_manager; 24952: DBOptions::AccessHint access_hint_on_compaction_start; 24952: size_t random_access_max_buffer_size; 24952: bool use_adaptive_mutex; 24952: std::vector> listeners; 24952: bool enable_thread_tracking; 24952: bool enable_pipelined_write; 24952: bool unordered_write; 24952: bool allow_concurrent_memtable_write; 24952: bool enable_write_thread_adaptive_yield; 24952: uint64_t write_thread_max_yield_usec; 24952: uint64_t write_thread_slow_yield_usec; 24952: bool skip_stats_update_on_db_open; 24952: bool skip_checking_sst_file_sizes_on_db_open; 24952: WALRecoveryMode wal_recovery_mode; 24952: bool allow_2pc; 24952: std::shared_ptr row_cache; 24952: WalFilter* wal_filter; 24952: bool fail_if_options_file_error; 24952: bool dump_malloc_stats; 24952: bool avoid_flush_during_recovery; 24952: bool allow_ingest_behind; 24952: bool two_write_queues; 24952: bool manual_wal_flush; 24952: CompressionType wal_compression; 24952: bool atomic_flush; 24952: bool avoid_unnecessary_blocking_io; 24952: bool persist_stats_to_disk; 24952: bool write_dbid_to_manifest; 24952: size_t log_readahead_size; 24952: std::shared_ptr file_checksum_gen_factory; 24952: bool best_efforts_recovery; 24952: int max_bgerror_resume_count; 24952: uint64_t bgerror_resume_retry_interval; 24952: bool allow_data_in_errors; 24952: std::string db_host_id; 24952: FileTypeSet checksum_handoff_file_types; 24952: CacheTier lowest_used_cache_tier; 24952: 24952: std::shared_ptr fs; 24952: SystemClock* clock; 24952: Statistics* stats; 24952: Logger* logger; 24952: std::shared_ptr compaction_service; 24952: bool enforce_single_del_contracts; 24952: 24952: bool IsWalDirSameAsDBPath() const; 24952: bool IsWalDirSameAsDBPath(const std::string& path) const; 24952: const std::string& GetWalDir() const; 24952: const std::string& GetWalDir(const std::string& path) const; 24952: }; 24952: 24952: struct MutableDBOptions { 24952: static const char* kName() { return "MutableDBOptions"; } 24952: MutableDBOptions(); 24952: explicit MutableDBOptions(const DBOptions& options); 24952: 24952: void Dump(Logger* log) const; 24952: 24952: int max_background_jobs; 24952: int max_background_compactions; 24952: uint32_t max_subcompactions; 24952: bool avoid_flush_during_shutdown; 24952: size_t writable_file_max_buffer_size; 24952: uint64_t delayed_write_rate; 24952: uint64_t max_total_wal_size; 24952: uint64_t delete_obsolete_files_period_micros; 24952: unsigned int stats_dump_period_sec; 24952: unsigned int stats_persist_period_sec; 24952: size_t stats_history_buffer_size; 24952: int max_open_files; 24952: uint64_t bytes_per_sync; 24952: uint64_t wal_bytes_per_sync; 24952: bool strict_bytes_per_sync; 24952: size_t compaction_readahead_size; 24952: int max_background_flushes; 24952: std::string daily_offpeak_time_utc; 24952: }; 24952: 24952: Status GetStringFromMutableDBOptions(const ConfigOptions& config_options, 24952: const MutableDBOptions& mutable_opts, 24952: std::string* opt_string); 24952: 24952: Status GetMutableDBOptionsFromStrings( 24952: const MutableDBOptions& base_options, 24952: const std::unordered_map& options_map, 24952: MutableDBOptions* new_options); 24952: 24952: bool MutableDBOptionsAreEqual(const MutableDBOptions& this_options, 24952: const MutableDBOptions& that_options); 24952: 24952: } 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/options/cf_options.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/malloc.h" 1 3 4 24952: # 24 "/usr/include/malloc.h" 3 4 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 25 "/usr/include/malloc.h" 2 3 4 24952: # 36 "/usr/include/malloc.h" 3 4 24952: 24952: # 36 "/usr/include/malloc.h" 3 4 24952: extern "C" { 24952: 24952: 24952: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 24952: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: extern void *calloc (size_t __nmemb, size_t __size) 24952: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern void *realloc (void *__ptr, size_t __size) 24952: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 24952: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2, 3))) 24952: __attribute__ ((__malloc__ (__builtin_free, 1))); 24952: 24952: 24952: extern void free (void *__ptr) noexcept (true); 24952: 24952: 24952: extern void *memalign (size_t __alignment, size_t __size) 24952: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 24952: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 24952: 24952: 24952: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 24952: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 24952: 24952: 24952: 24952: extern void *pvalloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 24952: 24952: 24952: 24952: struct mallinfo 24952: { 24952: int arena; 24952: int ordblks; 24952: int smblks; 24952: int hblks; 24952: int hblkhd; 24952: int usmblks; 24952: int fsmblks; 24952: int uordblks; 24952: int fordblks; 24952: int keepcost; 24952: }; 24952: 24952: 24952: 24952: 24952: struct mallinfo2 24952: { 24952: size_t arena; 24952: size_t ordblks; 24952: size_t smblks; 24952: size_t hblks; 24952: size_t hblkhd; 24952: size_t usmblks; 24952: size_t fsmblks; 24952: size_t uordblks; 24952: size_t fordblks; 24952: size_t keepcost; 24952: }; 24952: 24952: 24952: extern struct mallinfo mallinfo (void) noexcept (true) __attribute__ ((__deprecated__)); 24952: 24952: 24952: extern struct mallinfo2 mallinfo2 (void) noexcept (true); 24952: # 144 "/usr/include/malloc.h" 3 4 24952: extern int mallopt (int __param, int __val) noexcept (true); 24952: 24952: 24952: 24952: extern int malloc_trim (size_t __pad) noexcept (true); 24952: 24952: 24952: 24952: extern size_t malloc_usable_size (void *__ptr) noexcept (true); 24952: 24952: 24952: extern void malloc_stats (void) noexcept (true); 24952: 24952: 24952: extern int malloc_info (int __options, FILE *__fp) noexcept (true); 24952: 24952: } 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/block_based/block_type.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/table/block_based/block_type.h" 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: 24952: enum class BlockType : uint8_t { 24952: kData, 24952: kFilter, 24952: kFilterPartitionIndex, 24952: kProperties, 24952: kCompressionDictionary, 24952: kRangeDeletion, 24952: kHashIndexPrefixes, 24952: kHashIndexMetadata, 24952: kMetaIndex, 24952: kIndex, 24952: 24952: kInvalid 24952: }; 24952: 24952: } 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/assert.h" 1 3 4 24952: # 8 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 2 24952: # 24 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct KillPoint { 24952: public: 24952: 24952: 24952: int rocksdb_kill_odds = 0; 24952: 24952: std::vector rocksdb_kill_exclude_prefixes; 24952: 24952: void TestKillRandom(std::string kill_point, int odds, 24952: const std::string& srcfile, int srcline); 24952: 24952: static KillPoint* GetInstance(); 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 63 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 24952: namespace rocksdb { 24952: # 74 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 24952: class SyncPoint { 24952: public: 24952: static SyncPoint* GetInstance(); 24952: 24952: SyncPoint(const SyncPoint&) = delete; 24952: SyncPoint& operator=(const SyncPoint&) = delete; 24952: ~SyncPoint(); 24952: 24952: struct SyncPointPair { 24952: std::string predecessor; 24952: std::string successor; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: void LoadDependency(const std::vector& dependencies); 24952: 24952: 24952: 24952: 24952: 24952: void LoadDependencyAndMarkers(const std::vector& dependencies, 24952: const std::vector& markers); 24952: 24952: 24952: 24952: 24952: void SetCallBack(const std::string& point, 24952: const std::function& callback); 24952: 24952: 24952: void ClearCallBack(const std::string& point); 24952: 24952: 24952: void ClearAllCallBacks(); 24952: 24952: 24952: void EnableProcessing(); 24952: 24952: 24952: void DisableProcessing(); 24952: 24952: 24952: void ClearTrace(); 24952: 24952: 24952: 24952: 24952: void Process(const Slice& point, void* cb_arg = nullptr); 24952: 24952: 24952: 24952: template 24952: void Process(const char (&point)[kLen], void* cb_arg = nullptr) { 24952: static_assert(kLen > 0, "Must not be empty"); 24952: 24952: # 131 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 3 4 24952: (static_cast ( 24952: # 131 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 24952: point[kLen - 1] == '\0' 24952: # 131 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 131 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 24952: "point[kLen - 1] == '\\0'" 24952: # 131 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 3 4 24952: , "./test_util/sync_point.h", 131, __extension__ __PRETTY_FUNCTION__)) 24952: # 131 "/build/reproducible-path/rocksdb-8.9.1/test_util/sync_point.h" 24952: ; 24952: Process(Slice(point, kLen - 1), cb_arg); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct Data; 24952: 24952: private: 24952: 24952: SyncPoint(); 24952: Data* impl_; 24952: }; 24952: 24952: 24952: 24952: void SetupSyncPointsToMockDirectIO(); 24952: } 24952: # 28 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/compression_context_cache.h" 1 24952: # 18 "/build/reproducible-path/rocksdb-8.9.1/util/compression_context_cache.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: class ZSTDUncompressCachedData; 24952: 24952: class CompressionContextCache { 24952: public: 24952: 24952: static CompressionContextCache* Instance(); 24952: static void InitSingleton(); 24952: CompressionContextCache(const CompressionContextCache&) = delete; 24952: CompressionContextCache& operator=(const CompressionContextCache&) = delete; 24952: 24952: ZSTDUncompressCachedData GetCachedZSTDUncompressData(); 24952: void ReturnCachedZSTDUncompressData(int64_t idx); 24952: 24952: private: 24952: 24952: CompressionContextCache(); 24952: ~CompressionContextCache(); 24952: 24952: class Rep; 24952: Rep* rep_; 24952: }; 24952: 24952: } 24952: # 30 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/string_util.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/util/string_util.h" 24952: namespace rocksdb { 24952: 24952: class Slice; 24952: 24952: extern std::vector StringSplit(const std::string& arg, char delim); 24952: 24952: 24952: extern void AppendNumberTo(std::string* str, uint64_t num); 24952: 24952: 24952: 24952: extern void AppendEscapedStringTo(std::string* str, const Slice& value); 24952: 24952: 24952: 24952: template 24952: inline void PutBaseChars(char** buf, size_t n, uint64_t v, bool uppercase) { 24952: const char* digitChars = uppercase ? "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" 24952: : "0123456789abcdefghijklmnopqrstuvwxyz"; 24952: for (size_t i = n; i > 0; --i) { 24952: (*buf)[i - 1] = digitChars[static_cast(v % kBase)]; 24952: v /= kBase; 24952: } 24952: *buf += n; 24952: } 24952: # 52 "/build/reproducible-path/rocksdb-8.9.1/util/string_util.h" 24952: template 24952: inline bool ParseBaseChars(const char** buf, size_t n, uint64_t* v) { 24952: while (n) { 24952: char c = **buf; 24952: *v *= static_cast(kBase); 24952: if (c >= '0' && (kBase >= 10 ? c <= '9' : c < '0' + kBase)) { 24952: *v += static_cast(c - '0'); 24952: } else if (kBase > 10 && c >= 'A' && c < 'A' + kBase - 10) { 24952: *v += static_cast(c - 'A' + 10); 24952: } else if (kBase > 10 && c >= 'a' && c < 'a' + kBase - 10) { 24952: *v += static_cast(c - 'a' + 10); 24952: } else { 24952: return false; 24952: } 24952: --n; 24952: ++*buf; 24952: } 24952: return true; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: extern std::string NumberToHumanString(int64_t num); 24952: 24952: 24952: 24952: extern std::string BytesToHumanString(uint64_t bytes); 24952: 24952: 24952: 24952: extern std::string TimeToHumanString(int unixtime); 24952: 24952: 24952: int AppendHumanMicros(uint64_t micros, char* output, int len, 24952: bool fixed_format); 24952: 24952: 24952: int AppendHumanBytes(uint64_t bytes, char* output, int len); 24952: 24952: 24952: 24952: extern std::string EscapeString(const Slice& value); 24952: 24952: 24952: 24952: 24952: 24952: extern bool ConsumeDecimalNumber(Slice* in, uint64_t* val); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool isSpecialChar(const char c); 24952: 24952: 24952: 24952: 24952: char UnescapeChar(const char c); 24952: 24952: 24952: 24952: 24952: char EscapeChar(const char c); 24952: # 130 "/build/reproducible-path/rocksdb-8.9.1/util/string_util.h" 24952: std::string EscapeOptionString(const std::string& raw_string); 24952: 24952: 24952: 24952: 24952: 24952: 24952: std::string UnescapeOptionString(const std::string& escaped_string); 24952: 24952: std::string trim(const std::string& str); 24952: 24952: 24952: bool EndsWith(const std::string& string, const std::string& pattern); 24952: 24952: 24952: bool StartsWith(const std::string& string, const std::string& pattern); 24952: 24952: bool ParseBoolean(const std::string& type, const std::string& value); 24952: 24952: uint8_t ParseUint8(const std::string& value); 24952: 24952: uint32_t ParseUint32(const std::string& value); 24952: 24952: int32_t ParseInt32(const std::string& value); 24952: 24952: uint64_t ParseUint64(const std::string& value); 24952: 24952: int ParseInt(const std::string& value); 24952: 24952: int64_t ParseInt64(const std::string& value); 24952: 24952: double ParseDouble(const std::string& value); 24952: 24952: size_t ParseSizeT(const std::string& value); 24952: 24952: std::vector ParseVectorInt(const std::string& value); 24952: 24952: bool SerializeIntVector(const std::vector& vec, std::string* value); 24952: 24952: 24952: 24952: int ParseTimeStringToSeconds(const std::string& value); 24952: 24952: 24952: 24952: 24952: bool TryParseTimeRangeString(const std::string& value, int& start_time, 24952: int& end_time); 24952: 24952: extern const std::string kNullptrString; 24952: 24952: 24952: 24952: extern std::string errnoStr(int err); 24952: 24952: } 24952: # 31 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 24952: 24952: 24952: # 1 "/usr/include/snappy.h" 1 3 4 24952: # 42 "/usr/include/snappy.h" 3 4 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 43 "/usr/include/snappy.h" 2 3 4 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/snappy-stubs-public.h" 1 3 4 24952: # 41 "/usr/include/snappy-stubs-public.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 1 3 4 24952: # 23 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 1 3 4 24952: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 2 3 4 24952: 24952: 24952: 24952: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 24952: struct iovec 24952: { 24952: void *iov_base; 24952: size_t iov_len; 24952: }; 24952: # 24 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern "C" { 24952: # 41 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 24952: extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 24952: # 52 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 24952: extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 24952: # 67 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 24952: extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, 24952: __off_t __offset) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 24952: # 80 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 24952: extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, 24952: __off_t __offset) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 24952: # 110 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 24952: extern ssize_t preadv64 (int __fd, const struct iovec *__iovec, int __count, 24952: __off64_t __offset) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 24952: # 123 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 24952: extern ssize_t pwritev64 (int __fd, const struct iovec *__iovec, int __count, 24952: __off64_t __offset) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern ssize_t preadv2 (int __fp, const struct iovec *__iovec, int __count, 24952: __off_t __offset, int ___flags) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 24952: 24952: 24952: extern ssize_t pwritev2 (int __fd, const struct iovec *__iodev, int __count, 24952: __off_t __offset, int __flags) __attribute__ ((__warn_unused_result__)); 24952: # 161 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 24952: extern ssize_t preadv64v2 (int __fp, const struct iovec *__iovec, 24952: int __count, __off64_t __offset, 24952: int ___flags) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 24952: 24952: 24952: extern ssize_t pwritev64v2 (int __fd, const struct iovec *__iodev, 24952: int __count, __off64_t __offset, 24952: int __flags) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 1 3 4 24952: # 26 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 24952: extern "C" { 24952: 24952: 24952: extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, 24952: unsigned long int __liovcnt, 24952: const struct iovec *__rvec, 24952: unsigned long int __riovcnt, 24952: unsigned long int __flags) 24952: noexcept (true); 24952: 24952: 24952: extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, 24952: unsigned long int __liovcnt, 24952: const struct iovec *__rvec, 24952: unsigned long int __riovcnt, 24952: unsigned long int __flags) 24952: noexcept (true); 24952: # 51 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 24952: } 24952: # 180 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 24952: # 42 "/usr/include/snappy-stubs-public.h" 2 3 4 24952: # 50 "/usr/include/snappy-stubs-public.h" 3 4 24952: namespace snappy { 24952: # 61 "/usr/include/snappy-stubs-public.h" 3 4 24952: } 24952: # 48 "/usr/include/snappy.h" 2 3 4 24952: 24952: namespace snappy { 24952: class Source; 24952: class Sink; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t Compress(Source* source, Sink* sink); 24952: # 68 "/usr/include/snappy.h" 3 4 24952: bool GetUncompressedLength(Source* source, uint32_t* result); 24952: # 78 "/usr/include/snappy.h" 3 4 24952: size_t Compress(const char* input, size_t input_length, 24952: std::string* compressed); 24952: 24952: 24952: 24952: 24952: 24952: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 24952: std::string* compressed); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool Uncompress(const char* compressed, size_t compressed_length, 24952: std::string* uncompressed); 24952: 24952: 24952: 24952: 24952: bool Uncompress(Source* compressed, Sink* uncompressed); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t UncompressAsMuchAsPossible(Source* compressed, Sink* uncompressed); 24952: # 129 "/usr/include/snappy.h" 3 4 24952: void RawCompress(const char* input, 24952: size_t input_length, 24952: char* compressed, 24952: size_t* compressed_length); 24952: 24952: 24952: 24952: 24952: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 24952: char* compressed, size_t* compressed_length); 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool RawUncompress(const char* compressed, size_t compressed_length, 24952: char* uncompressed); 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool RawUncompress(Source* compressed, char* uncompressed); 24952: # 163 "/usr/include/snappy.h" 3 4 24952: bool RawUncompressToIOVec(const char* compressed, size_t compressed_length, 24952: const struct iovec* iov, size_t iov_cnt); 24952: # 174 "/usr/include/snappy.h" 3 4 24952: bool RawUncompressToIOVec(Source* compressed, const struct iovec* iov, 24952: size_t iov_cnt); 24952: 24952: 24952: 24952: size_t MaxCompressedLength(size_t source_bytes); 24952: 24952: 24952: 24952: 24952: 24952: bool GetUncompressedLength(const char* compressed, size_t compressed_length, 24952: size_t* result); 24952: 24952: 24952: 24952: 24952: 24952: bool IsValidCompressedBuffer(const char* compressed, 24952: size_t compressed_length); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool IsValidCompressed(Source* compressed); 24952: # 212 "/usr/include/snappy.h" 3 4 24952: static constexpr int kBlockLog = 16; 24952: static constexpr size_t kBlockSize = 1 << kBlockLog; 24952: 24952: static constexpr int kMinHashTableBits = 8; 24952: static constexpr size_t kMinHashTableSize = 1 << kMinHashTableBits; 24952: 24952: static constexpr int kMaxHashTableBits = 14; 24952: static constexpr size_t kMaxHashTableSize = 1 << kMaxHashTableBits; 24952: } 24952: # 34 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 24952: 24952: 24952: 24952: # 1 "/usr/include/zlib.h" 1 3 4 24952: # 34 "/usr/include/zlib.h" 3 4 24952: # 1 "/usr/include/zconf.h" 1 3 4 24952: # 254 "/usr/include/zconf.h" 3 4 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 255 "/usr/include/zconf.h" 2 3 4 24952: typedef size_t z_size_t; 24952: # 401 "/usr/include/zconf.h" 3 4 24952: typedef unsigned char Byte; 24952: 24952: typedef unsigned int uInt; 24952: typedef unsigned long uLong; 24952: 24952: 24952: 24952: 24952: 24952: typedef Byte Bytef; 24952: 24952: typedef char charf; 24952: typedef int intf; 24952: typedef uInt uIntf; 24952: typedef uLong uLongf; 24952: 24952: 24952: typedef void const *voidpc; 24952: typedef void *voidpf; 24952: typedef void *voidp; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 1 3 4 24952: # 429 "/usr/include/zconf.h" 2 3 4 24952: # 439 "/usr/include/zconf.h" 3 4 24952: typedef unsigned z_crc_t; 24952: # 492 "/usr/include/zconf.h" 3 4 24952: # 1 "/usr/include/unistd.h" 1 3 4 24952: # 27 "/usr/include/unistd.h" 3 4 24952: extern "C" { 24952: # 202 "/usr/include/unistd.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix_opt.h" 1 3 4 24952: # 203 "/usr/include/unistd.h" 2 3 4 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 1 3 4 24952: # 22 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 24952: # 23 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 2 3 4 24952: # 207 "/usr/include/unistd.h" 2 3 4 24952: # 226 "/usr/include/unistd.h" 3 4 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 227 "/usr/include/unistd.h" 2 3 4 24952: # 274 "/usr/include/unistd.h" 3 4 24952: typedef __socklen_t socklen_t; 24952: # 287 "/usr/include/unistd.h" 3 4 24952: extern int access (const char *__name, int __type) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: extern int euidaccess (const char *__name, int __type) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int eaccess (const char *__name, int __type) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int execveat (int __fd, const char *__path, char *const __argv[], 24952: char *const __envp[], int __flags) 24952: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int faccessat (int __fd, const char *__file, int __type, int __flag) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 24952: # 339 "/usr/include/unistd.h" 3 4 24952: extern __off_t lseek (int __fd, __off_t __offset, int __whence) noexcept (true); 24952: # 350 "/usr/include/unistd.h" 3 4 24952: extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) 24952: noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int close (int __fd); 24952: 24952: 24952: 24952: 24952: extern void closefrom (int __lowfd) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: 24952: 24952: 24952: 24952: 24952: extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__read_only__, 2, 3))); 24952: # 389 "/usr/include/unistd.h" 3 4 24952: extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, 24952: __off_t __offset) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern ssize_t pwrite (int __fd, const void *__buf, size_t __n, 24952: __off_t __offset) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__read_only__, 2, 3))); 24952: # 422 "/usr/include/unistd.h" 3 4 24952: extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, 24952: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: 24952: 24952: extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, 24952: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__read_only__, 2, 3))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int pipe (int __pipedes[2]) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern int pipe2 (int __pipedes[2], int __flags) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: # 452 "/usr/include/unistd.h" 3 4 24952: extern unsigned int alarm (unsigned int __seconds) noexcept (true); 24952: # 464 "/usr/include/unistd.h" 3 4 24952: extern unsigned int sleep (unsigned int __seconds); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) 24952: noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int usleep (__useconds_t __useconds); 24952: # 489 "/usr/include/unistd.h" 3 4 24952: extern int pause (void); 24952: 24952: 24952: 24952: extern int chown (const char *__file, __uid_t __owner, __gid_t __group) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: extern int fchown (int __fd, __uid_t __owner, __gid_t __group) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int fchownat (int __fd, const char *__file, __uid_t __owner, 24952: __gid_t __group, int __flag) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: extern int chdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: extern int fchdir (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: # 531 "/usr/include/unistd.h" 3 4 24952: extern char *getcwd (char *__buf, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: extern char *get_current_dir_name (void) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern char *getwd (char *__buf) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__write_only__, 1))); 24952: 24952: 24952: 24952: 24952: extern int dup (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: extern int dup2 (int __fd, int __fd2) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int dup3 (int __fd, int __fd2, int __flags) noexcept (true); 24952: 24952: 24952: 24952: extern char **__environ; 24952: 24952: extern char **environ; 24952: 24952: 24952: 24952: 24952: 24952: extern int execve (const char *__path, char *const __argv[], 24952: char *const __envp[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: 24952: extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: 24952: 24952: extern int execv (const char *__path, char *const __argv[]) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: extern int execle (const char *__path, const char *__arg, ...) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: extern int execl (const char *__path, const char *__arg, ...) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: extern int execvp (const char *__file, char *const __argv[]) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: 24952: extern int execlp (const char *__file, const char *__arg, ...) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: 24952: extern int execvpe (const char *__file, char *const __argv[], 24952: char *const __envp[]) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: 24952: 24952: extern int nice (int __inc) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern void _exit (int __status) __attribute__ ((__noreturn__)); 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 3 4 24952: enum 24952: { 24952: _PC_LINK_MAX, 24952: 24952: _PC_MAX_CANON, 24952: 24952: _PC_MAX_INPUT, 24952: 24952: _PC_NAME_MAX, 24952: 24952: _PC_PATH_MAX, 24952: 24952: _PC_PIPE_BUF, 24952: 24952: _PC_CHOWN_RESTRICTED, 24952: 24952: _PC_NO_TRUNC, 24952: 24952: _PC_VDISABLE, 24952: 24952: _PC_SYNC_IO, 24952: 24952: _PC_ASYNC_IO, 24952: 24952: _PC_PRIO_IO, 24952: 24952: _PC_SOCK_MAXBUF, 24952: 24952: _PC_FILESIZEBITS, 24952: 24952: _PC_REC_INCR_XFER_SIZE, 24952: 24952: _PC_REC_MAX_XFER_SIZE, 24952: 24952: _PC_REC_MIN_XFER_SIZE, 24952: 24952: _PC_REC_XFER_ALIGN, 24952: 24952: _PC_ALLOC_SIZE_MIN, 24952: 24952: _PC_SYMLINK_MAX, 24952: 24952: _PC_2_SYMLINKS 24952: 24952: }; 24952: 24952: 24952: enum 24952: { 24952: _SC_ARG_MAX, 24952: 24952: _SC_CHILD_MAX, 24952: 24952: _SC_CLK_TCK, 24952: 24952: _SC_NGROUPS_MAX, 24952: 24952: _SC_OPEN_MAX, 24952: 24952: _SC_STREAM_MAX, 24952: 24952: _SC_TZNAME_MAX, 24952: 24952: _SC_JOB_CONTROL, 24952: 24952: _SC_SAVED_IDS, 24952: 24952: _SC_REALTIME_SIGNALS, 24952: 24952: _SC_PRIORITY_SCHEDULING, 24952: 24952: _SC_TIMERS, 24952: 24952: _SC_ASYNCHRONOUS_IO, 24952: 24952: _SC_PRIORITIZED_IO, 24952: 24952: _SC_SYNCHRONIZED_IO, 24952: 24952: _SC_FSYNC, 24952: 24952: _SC_MAPPED_FILES, 24952: 24952: _SC_MEMLOCK, 24952: 24952: _SC_MEMLOCK_RANGE, 24952: 24952: _SC_MEMORY_PROTECTION, 24952: 24952: _SC_MESSAGE_PASSING, 24952: 24952: _SC_SEMAPHORES, 24952: 24952: _SC_SHARED_MEMORY_OBJECTS, 24952: 24952: _SC_AIO_LISTIO_MAX, 24952: 24952: _SC_AIO_MAX, 24952: 24952: _SC_AIO_PRIO_DELTA_MAX, 24952: 24952: _SC_DELAYTIMER_MAX, 24952: 24952: _SC_MQ_OPEN_MAX, 24952: 24952: _SC_MQ_PRIO_MAX, 24952: 24952: _SC_VERSION, 24952: 24952: _SC_PAGESIZE, 24952: 24952: 24952: _SC_RTSIG_MAX, 24952: 24952: _SC_SEM_NSEMS_MAX, 24952: 24952: _SC_SEM_VALUE_MAX, 24952: 24952: _SC_SIGQUEUE_MAX, 24952: 24952: _SC_TIMER_MAX, 24952: 24952: 24952: 24952: 24952: _SC_BC_BASE_MAX, 24952: 24952: _SC_BC_DIM_MAX, 24952: 24952: _SC_BC_SCALE_MAX, 24952: 24952: _SC_BC_STRING_MAX, 24952: 24952: _SC_COLL_WEIGHTS_MAX, 24952: 24952: _SC_EQUIV_CLASS_MAX, 24952: 24952: _SC_EXPR_NEST_MAX, 24952: 24952: _SC_LINE_MAX, 24952: 24952: _SC_RE_DUP_MAX, 24952: 24952: _SC_CHARCLASS_NAME_MAX, 24952: 24952: 24952: _SC_2_VERSION, 24952: 24952: _SC_2_C_BIND, 24952: 24952: _SC_2_C_DEV, 24952: 24952: _SC_2_FORT_DEV, 24952: 24952: _SC_2_FORT_RUN, 24952: 24952: _SC_2_SW_DEV, 24952: 24952: _SC_2_LOCALEDEF, 24952: 24952: 24952: _SC_PII, 24952: 24952: _SC_PII_XTI, 24952: 24952: _SC_PII_SOCKET, 24952: 24952: _SC_PII_INTERNET, 24952: 24952: _SC_PII_OSI, 24952: 24952: _SC_POLL, 24952: 24952: _SC_SELECT, 24952: 24952: _SC_UIO_MAXIOV, 24952: 24952: _SC_IOV_MAX = _SC_UIO_MAXIOV, 24952: 24952: _SC_PII_INTERNET_STREAM, 24952: 24952: _SC_PII_INTERNET_DGRAM, 24952: 24952: _SC_PII_OSI_COTS, 24952: 24952: _SC_PII_OSI_CLTS, 24952: 24952: _SC_PII_OSI_M, 24952: 24952: _SC_T_IOV_MAX, 24952: 24952: 24952: 24952: _SC_THREADS, 24952: 24952: _SC_THREAD_SAFE_FUNCTIONS, 24952: 24952: _SC_GETGR_R_SIZE_MAX, 24952: 24952: _SC_GETPW_R_SIZE_MAX, 24952: 24952: _SC_LOGIN_NAME_MAX, 24952: 24952: _SC_TTY_NAME_MAX, 24952: 24952: _SC_THREAD_DESTRUCTOR_ITERATIONS, 24952: 24952: _SC_THREAD_KEYS_MAX, 24952: 24952: _SC_THREAD_STACK_MIN, 24952: 24952: _SC_THREAD_THREADS_MAX, 24952: 24952: _SC_THREAD_ATTR_STACKADDR, 24952: 24952: _SC_THREAD_ATTR_STACKSIZE, 24952: 24952: _SC_THREAD_PRIORITY_SCHEDULING, 24952: 24952: _SC_THREAD_PRIO_INHERIT, 24952: 24952: _SC_THREAD_PRIO_PROTECT, 24952: 24952: _SC_THREAD_PROCESS_SHARED, 24952: 24952: 24952: _SC_NPROCESSORS_CONF, 24952: 24952: _SC_NPROCESSORS_ONLN, 24952: 24952: _SC_PHYS_PAGES, 24952: 24952: _SC_AVPHYS_PAGES, 24952: 24952: _SC_ATEXIT_MAX, 24952: 24952: _SC_PASS_MAX, 24952: 24952: 24952: _SC_XOPEN_VERSION, 24952: 24952: _SC_XOPEN_XCU_VERSION, 24952: 24952: _SC_XOPEN_UNIX, 24952: 24952: _SC_XOPEN_CRYPT, 24952: 24952: _SC_XOPEN_ENH_I18N, 24952: 24952: _SC_XOPEN_SHM, 24952: 24952: 24952: _SC_2_CHAR_TERM, 24952: 24952: _SC_2_C_VERSION, 24952: 24952: _SC_2_UPE, 24952: 24952: 24952: _SC_XOPEN_XPG2, 24952: 24952: _SC_XOPEN_XPG3, 24952: 24952: _SC_XOPEN_XPG4, 24952: 24952: 24952: _SC_CHAR_BIT, 24952: 24952: _SC_CHAR_MAX, 24952: 24952: _SC_CHAR_MIN, 24952: 24952: _SC_INT_MAX, 24952: 24952: _SC_INT_MIN, 24952: 24952: _SC_LONG_BIT, 24952: 24952: _SC_WORD_BIT, 24952: 24952: _SC_MB_LEN_MAX, 24952: 24952: _SC_NZERO, 24952: 24952: _SC_SSIZE_MAX, 24952: 24952: _SC_SCHAR_MAX, 24952: 24952: _SC_SCHAR_MIN, 24952: 24952: _SC_SHRT_MAX, 24952: 24952: _SC_SHRT_MIN, 24952: 24952: _SC_UCHAR_MAX, 24952: 24952: _SC_UINT_MAX, 24952: 24952: _SC_ULONG_MAX, 24952: 24952: _SC_USHRT_MAX, 24952: 24952: 24952: _SC_NL_ARGMAX, 24952: 24952: _SC_NL_LANGMAX, 24952: 24952: _SC_NL_MSGMAX, 24952: 24952: _SC_NL_NMAX, 24952: 24952: _SC_NL_SETMAX, 24952: 24952: _SC_NL_TEXTMAX, 24952: 24952: 24952: _SC_XBS5_ILP32_OFF32, 24952: 24952: _SC_XBS5_ILP32_OFFBIG, 24952: 24952: _SC_XBS5_LP64_OFF64, 24952: 24952: _SC_XBS5_LPBIG_OFFBIG, 24952: 24952: 24952: _SC_XOPEN_LEGACY, 24952: 24952: _SC_XOPEN_REALTIME, 24952: 24952: _SC_XOPEN_REALTIME_THREADS, 24952: 24952: 24952: _SC_ADVISORY_INFO, 24952: 24952: _SC_BARRIERS, 24952: 24952: _SC_BASE, 24952: 24952: _SC_C_LANG_SUPPORT, 24952: 24952: _SC_C_LANG_SUPPORT_R, 24952: 24952: _SC_CLOCK_SELECTION, 24952: 24952: _SC_CPUTIME, 24952: 24952: _SC_THREAD_CPUTIME, 24952: 24952: _SC_DEVICE_IO, 24952: 24952: _SC_DEVICE_SPECIFIC, 24952: 24952: _SC_DEVICE_SPECIFIC_R, 24952: 24952: _SC_FD_MGMT, 24952: 24952: _SC_FIFO, 24952: 24952: _SC_PIPE, 24952: 24952: _SC_FILE_ATTRIBUTES, 24952: 24952: _SC_FILE_LOCKING, 24952: 24952: _SC_FILE_SYSTEM, 24952: 24952: _SC_MONOTONIC_CLOCK, 24952: 24952: _SC_MULTI_PROCESS, 24952: 24952: _SC_SINGLE_PROCESS, 24952: 24952: _SC_NETWORKING, 24952: 24952: _SC_READER_WRITER_LOCKS, 24952: 24952: _SC_SPIN_LOCKS, 24952: 24952: _SC_REGEXP, 24952: 24952: _SC_REGEX_VERSION, 24952: 24952: _SC_SHELL, 24952: 24952: _SC_SIGNALS, 24952: 24952: _SC_SPAWN, 24952: 24952: _SC_SPORADIC_SERVER, 24952: 24952: _SC_THREAD_SPORADIC_SERVER, 24952: 24952: _SC_SYSTEM_DATABASE, 24952: 24952: _SC_SYSTEM_DATABASE_R, 24952: 24952: _SC_TIMEOUTS, 24952: 24952: _SC_TYPED_MEMORY_OBJECTS, 24952: 24952: _SC_USER_GROUPS, 24952: 24952: _SC_USER_GROUPS_R, 24952: 24952: _SC_2_PBS, 24952: 24952: _SC_2_PBS_ACCOUNTING, 24952: 24952: _SC_2_PBS_LOCATE, 24952: 24952: _SC_2_PBS_MESSAGE, 24952: 24952: _SC_2_PBS_TRACK, 24952: 24952: _SC_SYMLOOP_MAX, 24952: 24952: _SC_STREAMS, 24952: 24952: _SC_2_PBS_CHECKPOINT, 24952: 24952: 24952: _SC_V6_ILP32_OFF32, 24952: 24952: _SC_V6_ILP32_OFFBIG, 24952: 24952: _SC_V6_LP64_OFF64, 24952: 24952: _SC_V6_LPBIG_OFFBIG, 24952: 24952: 24952: _SC_HOST_NAME_MAX, 24952: 24952: _SC_TRACE, 24952: 24952: _SC_TRACE_EVENT_FILTER, 24952: 24952: _SC_TRACE_INHERIT, 24952: 24952: _SC_TRACE_LOG, 24952: 24952: 24952: _SC_LEVEL1_ICACHE_SIZE, 24952: 24952: _SC_LEVEL1_ICACHE_ASSOC, 24952: 24952: _SC_LEVEL1_ICACHE_LINESIZE, 24952: 24952: _SC_LEVEL1_DCACHE_SIZE, 24952: 24952: _SC_LEVEL1_DCACHE_ASSOC, 24952: 24952: _SC_LEVEL1_DCACHE_LINESIZE, 24952: 24952: _SC_LEVEL2_CACHE_SIZE, 24952: 24952: _SC_LEVEL2_CACHE_ASSOC, 24952: 24952: _SC_LEVEL2_CACHE_LINESIZE, 24952: 24952: _SC_LEVEL3_CACHE_SIZE, 24952: 24952: _SC_LEVEL3_CACHE_ASSOC, 24952: 24952: _SC_LEVEL3_CACHE_LINESIZE, 24952: 24952: _SC_LEVEL4_CACHE_SIZE, 24952: 24952: _SC_LEVEL4_CACHE_ASSOC, 24952: 24952: _SC_LEVEL4_CACHE_LINESIZE, 24952: 24952: 24952: 24952: _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, 24952: 24952: _SC_RAW_SOCKETS, 24952: 24952: 24952: _SC_V7_ILP32_OFF32, 24952: 24952: _SC_V7_ILP32_OFFBIG, 24952: 24952: _SC_V7_LP64_OFF64, 24952: 24952: _SC_V7_LPBIG_OFFBIG, 24952: 24952: 24952: _SC_SS_REPL_MAX, 24952: 24952: 24952: _SC_TRACE_EVENT_NAME_MAX, 24952: 24952: _SC_TRACE_NAME_MAX, 24952: 24952: _SC_TRACE_SYS_MAX, 24952: 24952: _SC_TRACE_USER_EVENT_MAX, 24952: 24952: 24952: _SC_XOPEN_STREAMS, 24952: 24952: 24952: _SC_THREAD_ROBUST_PRIO_INHERIT, 24952: 24952: _SC_THREAD_ROBUST_PRIO_PROTECT, 24952: 24952: 24952: _SC_MINSIGSTKSZ, 24952: 24952: 24952: _SC_SIGSTKSZ 24952: 24952: }; 24952: 24952: 24952: enum 24952: { 24952: _CS_PATH, 24952: 24952: 24952: _CS_V6_WIDTH_RESTRICTED_ENVS, 24952: 24952: 24952: 24952: _CS_GNU_LIBC_VERSION, 24952: 24952: _CS_GNU_LIBPTHREAD_VERSION, 24952: 24952: 24952: _CS_V5_WIDTH_RESTRICTED_ENVS, 24952: 24952: 24952: 24952: _CS_V7_WIDTH_RESTRICTED_ENVS, 24952: 24952: 24952: 24952: _CS_LFS_CFLAGS = 1000, 24952: 24952: _CS_LFS_LDFLAGS, 24952: 24952: _CS_LFS_LIBS, 24952: 24952: _CS_LFS_LINTFLAGS, 24952: 24952: _CS_LFS64_CFLAGS, 24952: 24952: _CS_LFS64_LDFLAGS, 24952: 24952: _CS_LFS64_LIBS, 24952: 24952: _CS_LFS64_LINTFLAGS, 24952: 24952: 24952: _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, 24952: 24952: _CS_XBS5_ILP32_OFF32_LDFLAGS, 24952: 24952: _CS_XBS5_ILP32_OFF32_LIBS, 24952: 24952: _CS_XBS5_ILP32_OFF32_LINTFLAGS, 24952: 24952: _CS_XBS5_ILP32_OFFBIG_CFLAGS, 24952: 24952: _CS_XBS5_ILP32_OFFBIG_LDFLAGS, 24952: 24952: _CS_XBS5_ILP32_OFFBIG_LIBS, 24952: 24952: _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, 24952: 24952: _CS_XBS5_LP64_OFF64_CFLAGS, 24952: 24952: _CS_XBS5_LP64_OFF64_LDFLAGS, 24952: 24952: _CS_XBS5_LP64_OFF64_LIBS, 24952: 24952: _CS_XBS5_LP64_OFF64_LINTFLAGS, 24952: 24952: _CS_XBS5_LPBIG_OFFBIG_CFLAGS, 24952: 24952: _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, 24952: 24952: _CS_XBS5_LPBIG_OFFBIG_LIBS, 24952: 24952: _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, 24952: 24952: 24952: _CS_POSIX_V6_ILP32_OFF32_CFLAGS, 24952: 24952: _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, 24952: 24952: _CS_POSIX_V6_ILP32_OFF32_LIBS, 24952: 24952: _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, 24952: 24952: _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, 24952: 24952: _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, 24952: 24952: _CS_POSIX_V6_ILP32_OFFBIG_LIBS, 24952: 24952: _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, 24952: 24952: _CS_POSIX_V6_LP64_OFF64_CFLAGS, 24952: 24952: _CS_POSIX_V6_LP64_OFF64_LDFLAGS, 24952: 24952: _CS_POSIX_V6_LP64_OFF64_LIBS, 24952: 24952: _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, 24952: 24952: _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, 24952: 24952: _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, 24952: 24952: _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, 24952: 24952: _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, 24952: 24952: 24952: _CS_POSIX_V7_ILP32_OFF32_CFLAGS, 24952: 24952: _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, 24952: 24952: _CS_POSIX_V7_ILP32_OFF32_LIBS, 24952: 24952: _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, 24952: 24952: _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, 24952: 24952: _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, 24952: 24952: _CS_POSIX_V7_ILP32_OFFBIG_LIBS, 24952: 24952: _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, 24952: 24952: _CS_POSIX_V7_LP64_OFF64_CFLAGS, 24952: 24952: _CS_POSIX_V7_LP64_OFF64_LDFLAGS, 24952: 24952: _CS_POSIX_V7_LP64_OFF64_LIBS, 24952: 24952: _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, 24952: 24952: _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, 24952: 24952: _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, 24952: 24952: _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, 24952: 24952: _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, 24952: 24952: 24952: _CS_V6_ENV, 24952: 24952: _CS_V7_ENV 24952: 24952: }; 24952: # 631 "/usr/include/unistd.h" 2 3 4 24952: 24952: 24952: extern long int pathconf (const char *__path, int __name) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern long int fpathconf (int __fd, int __name) noexcept (true); 24952: 24952: 24952: extern long int sysconf (int __name) noexcept (true); 24952: 24952: 24952: 24952: extern size_t confstr (int __name, char *__buf, size_t __len) noexcept (true) 24952: __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: 24952: 24952: 24952: 24952: extern __pid_t getpid (void) noexcept (true); 24952: 24952: 24952: extern __pid_t getppid (void) noexcept (true); 24952: 24952: 24952: extern __pid_t getpgrp (void) noexcept (true); 24952: 24952: 24952: extern __pid_t __getpgid (__pid_t __pid) noexcept (true); 24952: 24952: extern __pid_t getpgid (__pid_t __pid) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int setpgid (__pid_t __pid, __pid_t __pgid) noexcept (true); 24952: # 682 "/usr/include/unistd.h" 3 4 24952: extern int setpgrp (void) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern __pid_t setsid (void) noexcept (true); 24952: 24952: 24952: 24952: extern __pid_t getsid (__pid_t __pid) noexcept (true); 24952: 24952: 24952: 24952: extern __uid_t getuid (void) noexcept (true); 24952: 24952: 24952: extern __uid_t geteuid (void) noexcept (true); 24952: 24952: 24952: extern __gid_t getgid (void) noexcept (true); 24952: 24952: 24952: extern __gid_t getegid (void) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int getgroups (int __size, __gid_t __list[]) noexcept (true) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__write_only__, 2, 1))); 24952: 24952: 24952: extern int group_member (__gid_t __gid) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int setuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern int setreuid (__uid_t __ruid, __uid_t __euid) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern int seteuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int setgid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern int setregid (__gid_t __rgid, __gid_t __egid) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern int setegid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) 24952: noexcept (true); 24952: 24952: 24952: 24952: extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) 24952: noexcept (true); 24952: 24952: 24952: 24952: extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) 24952: noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) 24952: noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern __pid_t fork (void) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern __pid_t vfork (void) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern __pid_t _Fork (void) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern char *ttyname (int __fd) noexcept (true); 24952: 24952: 24952: 24952: extern int ttyname_r (int __fd, char *__buf, size_t __buflen) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: 24952: 24952: 24952: extern int isatty (int __fd) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int ttyslot (void) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int link (const char *__from, const char *__to) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern int linkat (int __fromfd, const char *__from, int __tofd, 24952: const char *__to, int __flags) 24952: noexcept (true) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern int symlink (const char *__from, const char *__to) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: extern ssize_t readlink (const char *__restrict __path, 24952: char *__restrict __buf, size_t __len) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: 24952: 24952: 24952: 24952: 24952: extern int symlinkat (const char *__from, int __tofd, 24952: const char *__to) noexcept (true) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: extern ssize_t readlinkat (int __fd, const char *__restrict __path, 24952: char *__restrict __buf, size_t __len) 24952: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__write_only__, 3, 4))); 24952: 24952: 24952: 24952: extern int unlink (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern int unlinkat (int __fd, const char *__name, int __flag) 24952: noexcept (true) __attribute__ ((__nonnull__ (2))); 24952: 24952: 24952: 24952: extern int rmdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: extern __pid_t tcgetpgrp (int __fd) noexcept (true); 24952: 24952: 24952: extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern char *getlogin (void); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))) 24952: __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: 24952: 24952: 24952: 24952: extern int setlogin (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 1 3 4 24952: # 27 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 1 3 4 24952: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 24952: extern "C" { 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern char *optarg; 24952: # 50 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 24952: extern int optind; 24952: 24952: 24952: 24952: 24952: extern int opterr; 24952: 24952: 24952: 24952: extern int optopt; 24952: # 91 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 24952: extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) 24952: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 24952: 24952: } 24952: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 2 3 4 24952: 24952: extern "C" { 24952: # 49 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 24952: } 24952: # 904 "/usr/include/unistd.h" 2 3 4 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int gethostname (char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) 24952: __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int sethostname (const char *__name, size_t __len) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 24952: 24952: 24952: 24952: extern int sethostid (long int __id) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: extern int getdomainname (char *__name, size_t __len) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: extern int setdomainname (const char *__name, size_t __len) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 24952: 24952: 24952: 24952: 24952: extern int vhangup (void) noexcept (true); 24952: 24952: 24952: extern int revoke (const char *__file) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int profil (unsigned short int *__sample_buffer, size_t __size, 24952: size_t __offset, unsigned int __scale) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: extern int acct (const char *__name) noexcept (true); 24952: 24952: 24952: 24952: extern char *getusershell (void) noexcept (true); 24952: extern void endusershell (void) noexcept (true); 24952: extern void setusershell (void) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern int daemon (int __nochdir, int __noclose) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int chroot (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int fsync (int __fd); 24952: 24952: 24952: 24952: 24952: 24952: extern int syncfs (int __fd) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern long int gethostid (void); 24952: 24952: 24952: extern void sync (void) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern int getpagesize (void) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: 24952: 24952: extern int getdtablesize (void) noexcept (true); 24952: # 1026 "/usr/include/unistd.h" 3 4 24952: extern int truncate (const char *__file, __off_t __length) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: # 1038 "/usr/include/unistd.h" 3 4 24952: extern int truncate64 (const char *__file, __off64_t __length) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 24952: # 1049 "/usr/include/unistd.h" 3 4 24952: extern int ftruncate (int __fd, __off_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: # 1059 "/usr/include/unistd.h" 3 4 24952: extern int ftruncate64 (int __fd, __off64_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: # 1070 "/usr/include/unistd.h" 3 4 24952: extern int brk (void *__addr) noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: 24952: 24952: 24952: 24952: 24952: extern void *sbrk (intptr_t __delta) noexcept (true); 24952: # 1091 "/usr/include/unistd.h" 3 4 24952: extern long int syscall (long int __sysno, ...) noexcept (true); 24952: # 1114 "/usr/include/unistd.h" 3 4 24952: extern int lockf (int __fd, int __cmd, __off_t __len) __attribute__ ((__warn_unused_result__)); 24952: # 1124 "/usr/include/unistd.h" 3 4 24952: extern int lockf64 (int __fd, int __cmd, __off64_t __len) __attribute__ ((__warn_unused_result__)); 24952: # 1142 "/usr/include/unistd.h" 3 4 24952: ssize_t copy_file_range (int __infd, __off64_t *__pinoff, 24952: int __outfd, __off64_t *__poutoff, 24952: size_t __length, unsigned int __flags); 24952: 24952: 24952: 24952: 24952: 24952: extern int fdatasync (int __fildes); 24952: # 1159 "/usr/include/unistd.h" 3 4 24952: extern char *crypt (const char *__key, const char *__salt) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern void swab (const void *__restrict __from, void *__restrict __to, 24952: ssize_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) 24952: __attribute__ ((__access__ (__read_only__, 1, 3))) 24952: __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: # 1198 "/usr/include/unistd.h" 3 4 24952: int getentropy (void *__buffer, size_t __length) __attribute__ ((__warn_unused_result__)) 24952: __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: # 1208 "/usr/include/unistd.h" 3 4 24952: extern int close_range (unsigned int __fd, unsigned int __max_fd, 24952: int __flags) noexcept (true); 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 1 3 4 24952: # 23 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 24952: extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, 24952: size_t __buflen) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: extern ssize_t __read_alias (int __fd, void *__buf, size_t __nbytes) __asm__ ("" "read") 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: extern ssize_t __read_chk_warn (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __asm__ ("" "__read_chk") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 24952: read (int __fd, void *__buf, size_t __nbytes) 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: 24952: 24952: extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes, 24952: __off_t __offset, size_t __bufsize) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, 24952: __off64_t __offset, size_t __bufsize) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: extern ssize_t __pread_alias (int __fd, void *__buf, size_t __nbytes, __off_t __offset) __asm__ ("" "pread") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: extern ssize_t __pread64_alias (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: extern ssize_t __pread_chk_warn (int __fd, void *__buf, size_t __nbytes, __off_t __offset, size_t __bufsize) __asm__ ("" "__pread_chk") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread called with bigger length than size of " "the destination buffer"))) 24952: ; 24952: extern ssize_t __pread64_chk_warn (int __fd, void *__buf, size_t __nbytes, __off64_t __offset, size_t __bufsize) __asm__ ("" "__pread64_chk") 24952: 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread64 called with bigger length than size of " "the destination buffer"))) 24952: ; 24952: 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 24952: pread (int __fd, void *__buf, size_t __nbytes, __off_t __offset) 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: # 89 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 24952: pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: 24952: 24952: 24952: 24952: extern ssize_t __readlink_chk (const char *__restrict __path, 24952: char *__restrict __buf, size_t __len, 24952: size_t __buflen) 24952: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: extern ssize_t __readlink_alias (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlink") 24952: 24952: 24952: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: extern ssize_t __readlink_chk_warn (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlink_chk") 24952: 24952: 24952: 24952: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) ssize_t 24952: __attribute__ ((__leaf__)) readlink (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) 24952: 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: 24952: 24952: 24952: extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, 24952: char *__restrict __buf, size_t __len, 24952: size_t __buflen) 24952: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 24952: extern ssize_t __readlinkat_alias (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlinkat") 24952: 24952: 24952: 24952: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 24952: 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") 24952: 24952: 24952: 24952: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer"))) 24952: 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) ssize_t 24952: __attribute__ ((__leaf__)) readlinkat (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) 24952: 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: 24952: 24952: extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) 24952: noexcept (true) __attribute__ ((__warn_unused_result__)); 24952: extern char *__getcwd_alias (char *__buf, size_t __size) noexcept (true) __asm__ ("" "getcwd") 24952: __attribute__ ((__warn_unused_result__)); 24952: extern char *__getcwd_chk_warn (char *__buf, size_t __size, size_t __buflen) noexcept (true) __asm__ ("" "__getcwd_chk") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 24952: __attribute__ ((__leaf__)) getcwd (char *__buf, size_t __size) noexcept (true) 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: 24952: 24952: extern char *__getwd_chk (char *__buf, size_t buflen) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: extern char *__getwd_warn (char *__buf) noexcept (true) __asm__ ("" "getwd") 24952: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use getcwd instead, as getwd " "doesn't specify buffer size"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) char * 24952: __attribute__ ((__leaf__)) getwd (char *__buf) noexcept (true) 24952: { 24952: if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) 24952: return __getwd_chk (__buf, __builtin_object_size (__buf, 2 > 1)); 24952: return __getwd_warn (__buf); 24952: } 24952: 24952: 24952: extern size_t __confstr_chk (int __name, char *__buf, size_t __len, 24952: size_t __buflen) noexcept (true) 24952: __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: extern size_t __confstr_alias (int __name, char *__buf, size_t __len) noexcept (true) __asm__ ("" "confstr") 24952: 24952: __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__confstr_chk") 24952: 24952: 24952: __attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 24952: __attribute__ ((__leaf__)) confstr (int __name, char *__buf, size_t __len) noexcept (true) 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: 24952: 24952: extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) 24952: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 24952: extern int __getgroups_alias (int __size, __gid_t __list[]) noexcept (true) __asm__ ("" "getgroups") 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 24952: extern int __getgroups_chk_warn (int __size, __gid_t __list[], size_t __listlen) noexcept (true) __asm__ ("" "__getgroups_chk") 24952: 24952: 24952: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) getgroups (int __size, __gid_t __list[]) noexcept (true) 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: 24952: 24952: extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, 24952: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 24952: __attribute__ ((__access__ (__write_only__, 2, 3))); 24952: extern int __ttyname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ttyname_r") 24952: 24952: __attribute__ ((__nonnull__ (2))); 24952: extern int __ttyname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ttyname_r_chk") 24952: 24952: 24952: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) ttyname_r (int __fd, char *__buf, size_t __buflen) noexcept (true) 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: 24952: 24952: 24952: extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) 24952: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: extern int __getlogin_r_alias (char *__buf, size_t __buflen) __asm__ ("" "getlogin_r") 24952: __attribute__ ((__nonnull__ (1))); 24952: extern int __getlogin_r_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getlogin_r_chk") 24952: 24952: 24952: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: getlogin_r (char *__buf, size_t __buflen) 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: 24952: 24952: 24952: 24952: extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: extern int __gethostname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "gethostname") 24952: 24952: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: extern int __gethostname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__gethostname_chk") 24952: 24952: 24952: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer"))) 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) gethostname (char *__buf, size_t __buflen) noexcept (true) 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: 24952: 24952: 24952: 24952: extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: extern int __getdomainname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "getdomainname") 24952: 24952: __attribute__ ((__nonnull__ (1))) 24952: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 24952: extern int __getdomainname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__getdomainname_chk") 24952: 24952: 24952: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer"))) 24952: 24952: ; 24952: 24952: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 24952: __attribute__ ((__leaf__)) getdomainname (char *__buf, size_t __buflen) noexcept (true) 24952: { 24952: 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)))) 24952: 24952: ; 24952: } 24952: # 1215 "/usr/include/unistd.h" 2 3 4 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 1 3 4 24952: # 34 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 3 4 24952: extern __pid_t gettid (void) noexcept (true); 24952: 24952: 24952: 24952: # 1 "/usr/include/linux/close_range.h" 1 3 4 24952: # 39 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 2 3 4 24952: # 1219 "/usr/include/unistd.h" 2 3 4 24952: 24952: } 24952: # 493 "/usr/include/zconf.h" 2 3 4 24952: # 35 "/usr/include/zlib.h" 2 3 4 24952: 24952: 24952: extern "C" { 24952: # 81 "/usr/include/zlib.h" 3 4 24952: typedef voidpf (*alloc_func)(voidpf opaque, uInt items, uInt size); 24952: typedef void (*free_func)(voidpf opaque, voidpf address); 24952: 24952: struct internal_state; 24952: 24952: typedef struct z_stream_s { 24952: Bytef *next_in; 24952: uInt avail_in; 24952: uLong total_in; 24952: 24952: Bytef *next_out; 24952: uInt avail_out; 24952: uLong total_out; 24952: 24952: char *msg; 24952: struct internal_state *state; 24952: 24952: alloc_func zalloc; 24952: free_func zfree; 24952: voidpf opaque; 24952: 24952: int data_type; 24952: 24952: uLong adler; 24952: uLong reserved; 24952: } z_stream; 24952: 24952: typedef z_stream *z_streamp; 24952: 24952: 24952: 24952: 24952: 24952: typedef struct gz_header_s { 24952: int text; 24952: uLong time; 24952: int xflags; 24952: int os; 24952: Bytef *extra; 24952: uInt extra_len; 24952: uInt extra_max; 24952: Bytef *name; 24952: uInt name_max; 24952: Bytef *comment; 24952: uInt comm_max; 24952: int hcrc; 24952: int done; 24952: 24952: } gz_header; 24952: 24952: typedef gz_header *gz_headerp; 24952: # 220 "/usr/include/zlib.h" 3 4 24952: extern const char * zlibVersion(void); 24952: # 250 "/usr/include/zlib.h" 3 4 24952: extern int deflate(z_streamp strm, int flush); 24952: # 363 "/usr/include/zlib.h" 3 4 24952: extern int deflateEnd(z_streamp strm); 24952: # 401 "/usr/include/zlib.h" 3 4 24952: extern int inflate(z_streamp strm, int flush); 24952: # 521 "/usr/include/zlib.h" 3 4 24952: extern int inflateEnd(z_streamp strm); 24952: # 611 "/usr/include/zlib.h" 3 4 24952: extern int deflateSetDictionary(z_streamp strm, 24952: const Bytef *dictionary, 24952: uInt dictLength); 24952: # 655 "/usr/include/zlib.h" 3 4 24952: extern int deflateGetDictionary(z_streamp strm, 24952: Bytef *dictionary, 24952: uInt *dictLength); 24952: # 677 "/usr/include/zlib.h" 3 4 24952: extern int deflateCopy(z_streamp dest, 24952: z_streamp source); 24952: # 695 "/usr/include/zlib.h" 3 4 24952: extern int deflateReset(z_streamp strm); 24952: # 706 "/usr/include/zlib.h" 3 4 24952: extern int deflateParams(z_streamp strm, 24952: int level, 24952: int strategy); 24952: # 744 "/usr/include/zlib.h" 3 4 24952: extern int deflateTune(z_streamp strm, 24952: int good_length, 24952: int max_lazy, 24952: int nice_length, 24952: int max_chain); 24952: # 761 "/usr/include/zlib.h" 3 4 24952: extern uLong deflateBound(z_streamp strm, 24952: uLong sourceLen); 24952: # 776 "/usr/include/zlib.h" 3 4 24952: extern int deflatePending(z_streamp strm, 24952: unsigned *pending, 24952: int *bits); 24952: # 791 "/usr/include/zlib.h" 3 4 24952: extern int deflatePrime(z_streamp strm, 24952: int bits, 24952: int value); 24952: # 808 "/usr/include/zlib.h" 3 4 24952: extern int deflateSetHeader(z_streamp strm, 24952: gz_headerp head); 24952: # 888 "/usr/include/zlib.h" 3 4 24952: extern int inflateSetDictionary(z_streamp strm, 24952: const Bytef *dictionary, 24952: uInt dictLength); 24952: # 911 "/usr/include/zlib.h" 3 4 24952: extern int inflateGetDictionary(z_streamp strm, 24952: Bytef *dictionary, 24952: uInt *dictLength); 24952: # 926 "/usr/include/zlib.h" 3 4 24952: extern int inflateSync(z_streamp strm); 24952: # 945 "/usr/include/zlib.h" 3 4 24952: extern int inflateCopy(z_streamp dest, 24952: z_streamp source); 24952: # 961 "/usr/include/zlib.h" 3 4 24952: extern int inflateReset(z_streamp strm); 24952: # 972 "/usr/include/zlib.h" 3 4 24952: extern int inflateReset2(z_streamp strm, 24952: int windowBits); 24952: # 986 "/usr/include/zlib.h" 3 4 24952: extern int inflatePrime(z_streamp strm, 24952: int bits, 24952: int value); 24952: # 1007 "/usr/include/zlib.h" 3 4 24952: extern long inflateMark(z_streamp strm); 24952: # 1035 "/usr/include/zlib.h" 3 4 24952: extern int inflateGetHeader(z_streamp strm, 24952: gz_headerp head); 24952: # 1097 "/usr/include/zlib.h" 3 4 24952: typedef unsigned (*in_func)(void *, 24952: unsigned char * *); 24952: typedef int (*out_func)(void *, unsigned char *, unsigned); 24952: 24952: extern int inflateBack(z_streamp strm, 24952: in_func in, void *in_desc, 24952: out_func out, void *out_desc); 24952: # 1171 "/usr/include/zlib.h" 3 4 24952: extern int inflateBackEnd(z_streamp strm); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern uLong zlibCompileFlags(void); 24952: # 1232 "/usr/include/zlib.h" 3 4 24952: extern int compress(Bytef *dest, uLongf *destLen, 24952: const Bytef *source, uLong sourceLen); 24952: # 1247 "/usr/include/zlib.h" 3 4 24952: extern int compress2(Bytef *dest, uLongf *destLen, 24952: const Bytef *source, uLong sourceLen, 24952: int level); 24952: # 1263 "/usr/include/zlib.h" 3 4 24952: extern uLong compressBound(uLong sourceLen); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int uncompress(Bytef *dest, uLongf *destLen, 24952: const Bytef *source, uLong sourceLen); 24952: # 1288 "/usr/include/zlib.h" 3 4 24952: extern int uncompress2(Bytef *dest, uLongf *destLen, 24952: const Bytef *source, uLong *sourceLen); 24952: # 1305 "/usr/include/zlib.h" 3 4 24952: typedef struct gzFile_s *gzFile; 24952: # 1345 "/usr/include/zlib.h" 3 4 24952: extern gzFile gzdopen(int fd, const char *mode); 24952: # 1368 "/usr/include/zlib.h" 3 4 24952: extern int gzbuffer(gzFile file, unsigned size); 24952: # 1384 "/usr/include/zlib.h" 3 4 24952: extern int gzsetparams(gzFile file, int level, int strategy); 24952: # 1395 "/usr/include/zlib.h" 3 4 24952: extern int gzread(gzFile file, voidp buf, unsigned len); 24952: # 1425 "/usr/include/zlib.h" 3 4 24952: extern z_size_t gzfread(voidp buf, z_size_t size, z_size_t nitems, 24952: gzFile file); 24952: # 1451 "/usr/include/zlib.h" 3 4 24952: extern int gzwrite(gzFile file, voidpc buf, unsigned len); 24952: 24952: 24952: 24952: 24952: 24952: extern z_size_t gzfwrite(voidpc buf, z_size_t size, 24952: z_size_t nitems, gzFile file); 24952: # 1471 "/usr/include/zlib.h" 3 4 24952: extern int gzprintf(gzFile file, const char *format, ...); 24952: # 1486 "/usr/include/zlib.h" 3 4 24952: extern int gzputs(gzFile file, const char *s); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern char * gzgets(gzFile file, char *buf, int len); 24952: # 1508 "/usr/include/zlib.h" 3 4 24952: extern int gzputc(gzFile file, int c); 24952: 24952: 24952: 24952: 24952: 24952: extern int gzgetc(gzFile file); 24952: # 1523 "/usr/include/zlib.h" 3 4 24952: extern int gzungetc(int c, gzFile file); 24952: # 1535 "/usr/include/zlib.h" 3 4 24952: extern int gzflush(gzFile file, int flush); 24952: # 1570 "/usr/include/zlib.h" 3 4 24952: extern int gzrewind(gzFile file); 24952: # 1598 "/usr/include/zlib.h" 3 4 24952: extern int gzeof(gzFile file); 24952: # 1613 "/usr/include/zlib.h" 3 4 24952: extern int gzdirect(gzFile file); 24952: # 1634 "/usr/include/zlib.h" 3 4 24952: extern int gzclose(gzFile file); 24952: # 1647 "/usr/include/zlib.h" 3 4 24952: extern int gzclose_r(gzFile file); 24952: extern int gzclose_w(gzFile file); 24952: # 1659 "/usr/include/zlib.h" 3 4 24952: extern const char * gzerror(gzFile file, int *errnum); 24952: # 1675 "/usr/include/zlib.h" 3 4 24952: extern void gzclearerr(gzFile file); 24952: # 1692 "/usr/include/zlib.h" 3 4 24952: extern uLong adler32(uLong adler, const Bytef *buf, uInt len); 24952: # 1712 "/usr/include/zlib.h" 3 4 24952: extern uLong adler32_z(uLong adler, const Bytef *buf, 24952: z_size_t len); 24952: # 1730 "/usr/include/zlib.h" 3 4 24952: extern uLong crc32(uLong crc, const Bytef *buf, uInt len); 24952: # 1748 "/usr/include/zlib.h" 3 4 24952: extern uLong crc32_z(uLong crc, const Bytef *buf, 24952: z_size_t len); 24952: # 1771 "/usr/include/zlib.h" 3 4 24952: extern uLong crc32_combine_op(uLong crc1, uLong crc2, uLong op); 24952: # 1784 "/usr/include/zlib.h" 3 4 24952: extern int deflateInit_(z_streamp strm, int level, 24952: const char *version, int stream_size); 24952: extern int inflateInit_(z_streamp strm, 24952: const char *version, int stream_size); 24952: extern int deflateInit2_(z_streamp strm, int level, int method, 24952: int windowBits, int memLevel, 24952: int strategy, const char *version, 24952: int stream_size); 24952: extern int inflateInit2_(z_streamp strm, int windowBits, 24952: const char *version, int stream_size); 24952: extern int inflateBackInit_(z_streamp strm, int windowBits, 24952: unsigned char *window, 24952: const char *version, 24952: int stream_size); 24952: # 1837 "/usr/include/zlib.h" 3 4 24952: struct gzFile_s { 24952: unsigned have; 24952: unsigned char *next; 24952: off64_t pos; 24952: }; 24952: extern int gzgetc_(gzFile file); 24952: # 1859 "/usr/include/zlib.h" 3 4 24952: extern gzFile gzopen64(const char *, const char *); 24952: extern off64_t gzseek64(gzFile, off64_t, int); 24952: extern off64_t gztell64(gzFile); 24952: extern off64_t gzoffset64(gzFile); 24952: extern uLong adler32_combine64(uLong, uLong, off64_t); 24952: extern uLong crc32_combine64(uLong, uLong, off64_t); 24952: extern uLong crc32_combine_gen64(off64_t); 24952: # 1896 "/usr/include/zlib.h" 3 4 24952: extern gzFile gzopen(const char *, const char *); 24952: extern off_t gzseek(gzFile, off_t, int); 24952: extern off_t gztell(gzFile); 24952: extern off_t gzoffset(gzFile); 24952: extern uLong adler32_combine(uLong, uLong, off_t); 24952: extern uLong crc32_combine(uLong, uLong, off_t); 24952: extern uLong crc32_combine_gen(off_t); 24952: # 1914 "/usr/include/zlib.h" 3 4 24952: extern const char * zError(int); 24952: extern int inflateSyncPoint(z_streamp); 24952: extern const z_crc_t * get_crc_table(void); 24952: extern int inflateUndermine(z_streamp, int); 24952: extern int inflateValidate(z_streamp, int); 24952: extern unsigned long inflateCodesUsed(z_streamp); 24952: extern int inflateResetKeep(z_streamp); 24952: extern int deflateResetKeep(z_streamp); 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int gzvprintf(gzFile file, 24952: const char *format, 24952: va_list va); 24952: 24952: 24952: 24952: 24952: } 24952: # 38 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 24952: 24952: 24952: 24952: # 1 "/usr/include/bzlib.h" 1 3 4 24952: # 26 "/usr/include/bzlib.h" 3 4 24952: extern "C" { 24952: # 48 "/usr/include/bzlib.h" 3 4 24952: typedef 24952: struct { 24952: char *next_in; 24952: unsigned int avail_in; 24952: unsigned int total_in_lo32; 24952: unsigned int total_in_hi32; 24952: 24952: char *next_out; 24952: unsigned int avail_out; 24952: unsigned int total_out_lo32; 24952: unsigned int total_out_hi32; 24952: 24952: void *state; 24952: 24952: void *(*bzalloc)(void *,int,int); 24952: void (*bzfree)(void *,void *); 24952: void *opaque; 24952: } 24952: bz_stream; 24952: # 100 "/usr/include/bzlib.h" 3 4 24952: extern int BZ2_bzCompressInit ( 24952: bz_stream* strm, 24952: int blockSize100k, 24952: int verbosity, 24952: int workFactor 24952: ); 24952: 24952: extern int BZ2_bzCompress ( 24952: bz_stream* strm, 24952: int action 24952: ); 24952: 24952: extern int BZ2_bzCompressEnd ( 24952: bz_stream* strm 24952: ); 24952: 24952: extern int BZ2_bzDecompressInit ( 24952: bz_stream *strm, 24952: int verbosity, 24952: int small 24952: ); 24952: 24952: extern int BZ2_bzDecompress ( 24952: bz_stream* strm 24952: ); 24952: 24952: extern int BZ2_bzDecompressEnd ( 24952: bz_stream *strm 24952: ); 24952: # 137 "/usr/include/bzlib.h" 3 4 24952: typedef void BZFILE; 24952: 24952: extern BZFILE* BZ2_bzReadOpen ( 24952: int* bzerror, 24952: FILE* f, 24952: int verbosity, 24952: int small, 24952: void* unused, 24952: int nUnused 24952: ); 24952: 24952: extern void BZ2_bzReadClose ( 24952: int* bzerror, 24952: BZFILE* b 24952: ); 24952: 24952: extern void BZ2_bzReadGetUnused ( 24952: int* bzerror, 24952: BZFILE* b, 24952: void** unused, 24952: int* nUnused 24952: ); 24952: 24952: extern int BZ2_bzRead ( 24952: int* bzerror, 24952: BZFILE* b, 24952: void* buf, 24952: int len 24952: ); 24952: 24952: extern BZFILE* BZ2_bzWriteOpen ( 24952: int* bzerror, 24952: FILE* f, 24952: int blockSize100k, 24952: int verbosity, 24952: int workFactor 24952: ); 24952: 24952: extern void BZ2_bzWrite ( 24952: int* bzerror, 24952: BZFILE* b, 24952: void* buf, 24952: int len 24952: ); 24952: 24952: extern void BZ2_bzWriteClose ( 24952: int* bzerror, 24952: BZFILE* b, 24952: int abandon, 24952: unsigned int* nbytes_in, 24952: unsigned int* nbytes_out 24952: ); 24952: 24952: extern void BZ2_bzWriteClose64 ( 24952: int* bzerror, 24952: BZFILE* b, 24952: int abandon, 24952: unsigned int* nbytes_in_lo32, 24952: unsigned int* nbytes_in_hi32, 24952: unsigned int* nbytes_out_lo32, 24952: unsigned int* nbytes_out_hi32 24952: ); 24952: 24952: 24952: 24952: 24952: 24952: extern int BZ2_bzBuffToBuffCompress ( 24952: char* dest, 24952: unsigned int* destLen, 24952: char* source, 24952: unsigned int sourceLen, 24952: int blockSize100k, 24952: int verbosity, 24952: int workFactor 24952: ); 24952: 24952: extern int BZ2_bzBuffToBuffDecompress ( 24952: char* dest, 24952: unsigned int* destLen, 24952: char* source, 24952: unsigned int sourceLen, 24952: int small, 24952: int verbosity 24952: ); 24952: # 233 "/usr/include/bzlib.h" 3 4 24952: extern const char * BZ2_bzlibVersion ( 24952: void 24952: ); 24952: 24952: 24952: extern BZFILE * BZ2_bzopen ( 24952: const char *path, 24952: const char *mode 24952: ); 24952: 24952: extern BZFILE * BZ2_bzdopen ( 24952: int fd, 24952: const char *mode 24952: ); 24952: 24952: extern int BZ2_bzread ( 24952: BZFILE* b, 24952: void* buf, 24952: int len 24952: ); 24952: 24952: extern int BZ2_bzwrite ( 24952: BZFILE* b, 24952: void* buf, 24952: int len 24952: ); 24952: 24952: extern int BZ2_bzflush ( 24952: BZFILE* b 24952: ); 24952: 24952: extern void BZ2_bzclose ( 24952: BZFILE* b 24952: ); 24952: 24952: extern const char * BZ2_bzerror ( 24952: BZFILE *b, 24952: int *errnum 24952: ); 24952: 24952: 24952: 24952: } 24952: # 42 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 24952: 24952: 24952: 24952: # 1 "/usr/include/lz4.h" 1 3 4 24952: # 36 "/usr/include/lz4.h" 3 4 24952: extern "C" { 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 44 "/usr/include/lz4.h" 2 3 4 24952: # 142 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_versionNumber (void); 24952: __attribute__ ((visibility ("default"))) const char* LZ4_versionString (void); 24952: # 189 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity); 24952: # 205 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity); 24952: # 223 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_compressBound(int inputSize); 24952: # 233 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 24952: # 242 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_sizeofState(void); 24952: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_extState (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 24952: # 269 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_compress_destSize (const char* src, char* dst, int* srcSizePtr, int targetDstSize); 24952: # 306 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_partial (const char* src, char* dst, int srcSize, int targetOutputSize, int dstCapacity); 24952: 24952: 24952: 24952: 24952: 24952: typedef union LZ4_stream_u LZ4_stream_t; 24952: # 329 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_createStream(void); 24952: __attribute__ ((visibility ("default"))) int LZ4_freeStream (LZ4_stream_t* streamPtr); 24952: # 356 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) void LZ4_resetStream_fast (LZ4_stream_t* streamPtr); 24952: # 369 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 24952: # 394 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_continue (LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 24952: # 403 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_saveDict (LZ4_stream_t* streamPtr, char* safeBuffer, int maxDictSize); 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef union LZ4_streamDecode_u LZ4_streamDecode_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) LZ4_streamDecode_t* LZ4_createStreamDecode(void); 24952: __attribute__ ((visibility ("default"))) int LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream); 24952: # 430 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize); 24952: # 443 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_decoderRingBufferSize(int maxBlockSize); 24952: # 471 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int 24952: LZ4_decompress_safe_continue (LZ4_streamDecode_t* LZ4_streamDecode, 24952: const char* src, char* dst, 24952: int srcSize, int dstCapacity); 24952: # 485 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) int 24952: LZ4_decompress_safe_usingDict(const char* src, char* dst, 24952: int srcSize, int dstCapacity, 24952: const char* dictStart, int dictSize); 24952: 24952: __attribute__ ((visibility ("default"))) int 24952: LZ4_decompress_safe_partial_usingDict(const char* src, char* dst, 24952: int compressedSize, 24952: int targetOutputSize, int maxOutputSize, 24952: const char* dictStart, int dictSize); 24952: # 660 "/usr/include/lz4.h" 3 4 24952: typedef int8_t LZ4_i8; 24952: typedef uint8_t LZ4_byte; 24952: typedef uint16_t LZ4_u16; 24952: typedef uint32_t LZ4_u32; 24952: # 677 "/usr/include/lz4.h" 3 4 24952: typedef struct LZ4_stream_t_internal LZ4_stream_t_internal; 24952: struct LZ4_stream_t_internal { 24952: LZ4_u32 hashTable[(1 << (14 -2))]; 24952: const LZ4_byte* dictionary; 24952: const LZ4_stream_t_internal* dictCtx; 24952: LZ4_u32 currentOffset; 24952: LZ4_u32 tableType; 24952: LZ4_u32 dictSize; 24952: 24952: }; 24952: 24952: 24952: union LZ4_stream_u { 24952: char minStateSize[((1UL << 14) + 32)]; 24952: LZ4_stream_t_internal internal_donotuse; 24952: }; 24952: # 709 "/usr/include/lz4.h" 3 4 24952: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_initStream (void* buffer, size_t size); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef struct { 24952: const LZ4_byte* externalDict; 24952: const LZ4_byte* prefixEnd; 24952: size_t extDictSize; 24952: size_t prefixSize; 24952: } LZ4_streamDecode_t_internal; 24952: 24952: 24952: union LZ4_streamDecode_u { 24952: char minStateSize[32]; 24952: LZ4_streamDecode_t_internal internal_donotuse; 24952: } ; 24952: # 765 "/usr/include/lz4.h" 3 4 24952: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress (const char* src, char* dest, int srcSize); 24952: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput (const char* src, char* dest, int srcSize, int maxOutputSize); 24952: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_withState (void* state, const char* source, char* dest, int inputSize); 24952: [[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); 24952: [[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); 24952: [[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); 24952: 24952: 24952: [[deprecated("use LZ4_decompress_fast() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress (const char* source, char* dest, int outputSize); 24952: [[deprecated("use LZ4_decompress_safe() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize); 24952: # 786 "/usr/include/lz4.h" 3 4 24952: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_create (char* inputBuffer); 24952: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamState(void); 24952: [[deprecated("Use LZ4_resetStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamState(void* state, char* inputBuffer); 24952: [[deprecated("Use LZ4_saveDict() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBuffer (void* state); 24952: 24952: 24952: [[deprecated("use LZ4_decompress_safe_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_withPrefix64k (const char* src, char* dst, int compressedSize, int maxDstSize); 24952: [[deprecated("use LZ4_decompress_fast_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_withPrefix64k (const char* src, char* dst, int originalSize); 24952: # 821 "/usr/include/lz4.h" 3 4 24952: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe() instead")]] 24952: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast (const char* src, char* dst, int originalSize); 24952: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_continue() instead")]] 24952: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* src, char* dst, int originalSize); 24952: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_usingDict() instead")]] 24952: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_usingDict (const char* src, char* dst, int originalSize, const char* dictStart, int dictSize); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) void LZ4_resetStream (LZ4_stream_t* streamPtr); 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: # 46 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 24952: # 1 "/usr/include/lz4hc.h" 1 3 4 24952: # 38 "/usr/include/lz4hc.h" 3 4 24952: extern "C" { 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/lz4.h" 1 3 4 24952: # 36 "/usr/include/lz4.h" 3 4 24952: extern "C" { 24952: # 841 "/usr/include/lz4.h" 3 4 24952: } 24952: # 44 "/usr/include/lz4hc.h" 2 3 4 24952: # 66 "/usr/include/lz4hc.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel); 24952: # 79 "/usr/include/lz4hc.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_sizeofStateHC(void); 24952: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_extStateHC(void* stateHC, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel); 24952: # 91 "/usr/include/lz4hc.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_destSize(void* stateHC, 24952: const char* src, char* dst, 24952: int* srcSizePtr, int targetDstSize, 24952: int compressionLevel); 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef union LZ4_streamHC_u LZ4_streamHC_t; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_createStreamHC(void); 24952: __attribute__ ((visibility ("default"))) int LZ4_freeStreamHC (LZ4_streamHC_t* streamHCPtr); 24952: # 155 "/usr/include/lz4hc.h" 3 4 24952: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC_fast(LZ4_streamHC_t* streamHCPtr, int compressionLevel); 24952: __attribute__ ((visibility ("default"))) int LZ4_loadDictHC (LZ4_streamHC_t* streamHCPtr, const char* dictionary, int dictSize); 24952: 24952: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue (LZ4_streamHC_t* streamHCPtr, 24952: const char* src, char* dst, 24952: int srcSize, int maxDstSize); 24952: # 172 "/usr/include/lz4hc.h" 3 4 24952: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue_destSize(LZ4_streamHC_t* LZ4_streamHCPtr, 24952: const char* src, char* dst, 24952: int* srcSizePtr, int targetDstSize); 24952: 24952: __attribute__ ((visibility ("default"))) int LZ4_saveDictHC (LZ4_streamHC_t* streamHCPtr, char* safeBuffer, int maxDictSize); 24952: # 204 "/usr/include/lz4hc.h" 3 4 24952: typedef struct LZ4HC_CCtx_internal LZ4HC_CCtx_internal; 24952: struct LZ4HC_CCtx_internal 24952: { 24952: LZ4_u32 hashTable[(1 << 15)]; 24952: LZ4_u16 chainTable[(1<<16)]; 24952: const LZ4_byte* end; 24952: const LZ4_byte* prefixStart; 24952: const LZ4_byte* dictStart; 24952: LZ4_u32 dictLimit; 24952: LZ4_u32 lowLimit; 24952: LZ4_u32 nextToUpdate; 24952: short compressionLevel; 24952: LZ4_i8 favorDecSpeed; 24952: 24952: LZ4_i8 dirty; 24952: const LZ4HC_CCtx_internal* dictCtx; 24952: }; 24952: 24952: 24952: union LZ4_streamHC_u { 24952: char minStateSize[262200]; 24952: LZ4HC_CCtx_internal internal_donotuse; 24952: }; 24952: # 245 "/usr/include/lz4hc.h" 3 4 24952: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_initStreamHC(void* buffer, size_t size); 24952: # 254 "/usr/include/lz4hc.h" 3 4 24952: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC (const char* source, char* dest, int inputSize); 24952: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize); 24952: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2 (const char* source, char* dest, int inputSize, int compressionLevel); 24952: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput(const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 24952: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_withStateHC (void* state, const char* source, char* dest, int inputSize); 24952: [[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); 24952: [[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); 24952: [[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); 24952: [[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); 24952: [[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); 24952: # 274 "/usr/include/lz4hc.h" 3 4 24952: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_createHC (const char* inputBuffer); 24952: [[deprecated("use LZ4_freeStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_freeHC (void* LZ4HC_Data); 24952: 24952: [[deprecated("use LZ4_saveDictHC() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBufferHC (void* LZ4HC_Data); 24952: [[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); 24952: [[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); 24952: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamStateHC(void); 24952: [[deprecated("use LZ4_initStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamStateHC(void* state, char* inputBuffer); 24952: # 292 "/usr/include/lz4hc.h" 3 4 24952: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC (LZ4_streamHC_t* streamHCPtr, int compressionLevel); 24952: 24952: 24952: 24952: } 24952: # 47 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 24952: 24952: 24952: 24952: # 1 "/usr/include/zstd.h" 1 3 4 24952: # 11 "/usr/include/zstd.h" 3 4 24952: extern "C" { 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/limits.h" 1 3 4 24952: # 19 "/usr/include/zstd.h" 2 3 4 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 20 "/usr/include/zstd.h" 2 3 4 24952: # 114 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) unsigned ZSTD_versionNumber(void); 24952: # 123 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) const char* ZSTD_versionString(void); 24952: # 155 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_compress( void* dst, size_t dstCapacity, 24952: const void* src, size_t srcSize, 24952: int compressionLevel); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress( void* dst, size_t dstCapacity, 24952: const void* src, size_t compressedSize); 24952: # 193 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: [[deprecated("Replaced by ZSTD_getFrameContentSize")]] 24952: __attribute__ ((visibility ("default"))) 24952: unsigned long long ZSTD_getDecompressedSize(const void* src, size_t srcSize); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_findFrameCompressedSize(const void* src, size_t srcSize); 24952: # 233 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_compressBound(size_t srcSize); 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) unsigned ZSTD_isError(size_t code); 24952: __attribute__ ((visibility ("default"))) const char* ZSTD_getErrorName(size_t code); 24952: __attribute__ ((visibility ("default"))) int ZSTD_minCLevel(void); 24952: __attribute__ ((visibility ("default"))) int ZSTD_maxCLevel(void); 24952: __attribute__ ((visibility ("default"))) int ZSTD_defaultCLevel(void); 24952: # 259 "/usr/include/zstd.h" 3 4 24952: typedef struct ZSTD_CCtx_s ZSTD_CCtx; 24952: __attribute__ ((visibility ("default"))) ZSTD_CCtx* ZSTD_createCCtx(void); 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); 24952: # 271 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, 24952: void* dst, size_t dstCapacity, 24952: const void* src, size_t srcSize, 24952: int compressionLevel); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef struct ZSTD_DCtx_s ZSTD_DCtx; 24952: __attribute__ ((visibility ("default"))) ZSTD_DCtx* ZSTD_createDCtx(void); 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx, 24952: void* dst, size_t dstCapacity, 24952: const void* src, size_t srcSize); 24952: # 315 "/usr/include/zstd.h" 3 4 24952: typedef enum { ZSTD_fast=1, 24952: ZSTD_dfast=2, 24952: ZSTD_greedy=3, 24952: ZSTD_lazy=4, 24952: ZSTD_lazy2=5, 24952: ZSTD_btlazy2=6, 24952: ZSTD_btopt=7, 24952: ZSTD_btultra=8, 24952: ZSTD_btultra2=9 24952: 24952: 24952: } ZSTD_strategy; 24952: 24952: typedef enum { 24952: 24952: 24952: 24952: 24952: 24952: ZSTD_c_compressionLevel=100, 24952: # 347 "/usr/include/zstd.h" 3 4 24952: ZSTD_c_windowLog=101, 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ZSTD_c_hashLog=102, 24952: 24952: 24952: 24952: 24952: 24952: ZSTD_c_chainLog=103, 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ZSTD_c_searchLog=104, 24952: 24952: 24952: 24952: ZSTD_c_minMatch=105, 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ZSTD_c_targetLength=106, 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ZSTD_c_strategy=107, 24952: 24952: 24952: 24952: 24952: ZSTD_c_enableLongDistanceMatching=160, 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ZSTD_c_ldmHashLog=161, 24952: 24952: 24952: 24952: 24952: 24952: ZSTD_c_ldmMinMatch=162, 24952: 24952: 24952: 24952: ZSTD_c_ldmBucketSizeLog=163, 24952: 24952: 24952: 24952: ZSTD_c_ldmHashRateLog=164, 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ZSTD_c_contentSizeFlag=200, 24952: 24952: 24952: 24952: ZSTD_c_checksumFlag=201, 24952: ZSTD_c_dictIDFlag=202, 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: ZSTD_c_nbWorkers=400, 24952: # 446 "/usr/include/zstd.h" 3 4 24952: ZSTD_c_jobSize=401, 24952: 24952: 24952: 24952: 24952: ZSTD_c_overlapLog=402, 24952: # 488 "/usr/include/zstd.h" 3 4 24952: ZSTD_c_experimentalParam1=500, 24952: ZSTD_c_experimentalParam2=10, 24952: ZSTD_c_experimentalParam3=1000, 24952: ZSTD_c_experimentalParam4=1001, 24952: ZSTD_c_experimentalParam5=1002, 24952: ZSTD_c_experimentalParam6=1003, 24952: ZSTD_c_experimentalParam7=1004, 24952: ZSTD_c_experimentalParam8=1005, 24952: ZSTD_c_experimentalParam9=1006, 24952: ZSTD_c_experimentalParam10=1007, 24952: ZSTD_c_experimentalParam11=1008, 24952: ZSTD_c_experimentalParam12=1009, 24952: ZSTD_c_experimentalParam13=1010, 24952: ZSTD_c_experimentalParam14=1011, 24952: ZSTD_c_experimentalParam15=1012, 24952: ZSTD_c_experimentalParam16=1013, 24952: ZSTD_c_experimentalParam17=1014, 24952: ZSTD_c_experimentalParam18=1015, 24952: ZSTD_c_experimentalParam19=1016 24952: } ZSTD_cParameter; 24952: 24952: typedef struct { 24952: size_t error; 24952: int lowerBound; 24952: int upperBound; 24952: } ZSTD_bounds; 24952: # 522 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam); 24952: # 535 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value); 24952: # 552 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize); 24952: 24952: typedef enum { 24952: ZSTD_reset_session_only = 1, 24952: ZSTD_reset_parameters = 2, 24952: ZSTD_reset_session_and_parameters = 3 24952: } ZSTD_ResetDirective; 24952: # 574 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset); 24952: # 587 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_compress2( ZSTD_CCtx* cctx, 24952: void* dst, size_t dstCapacity, 24952: const void* src, size_t srcSize); 24952: # 604 "/usr/include/zstd.h" 3 4 24952: typedef enum { 24952: 24952: ZSTD_d_windowLogMax=100, 24952: # 624 "/usr/include/zstd.h" 3 4 24952: ZSTD_d_experimentalParam1=1000, 24952: ZSTD_d_experimentalParam2=1001, 24952: ZSTD_d_experimentalParam3=1002, 24952: ZSTD_d_experimentalParam4=1003, 24952: ZSTD_d_experimentalParam5=1004 24952: 24952: } ZSTD_dParameter; 24952: # 639 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam); 24952: # 648 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int value); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset); 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef struct ZSTD_inBuffer_s { 24952: const void* src; 24952: size_t size; 24952: size_t pos; 24952: } ZSTD_inBuffer; 24952: 24952: typedef struct ZSTD_outBuffer_s { 24952: void* dst; 24952: size_t size; 24952: size_t pos; 24952: } ZSTD_outBuffer; 24952: # 738 "/usr/include/zstd.h" 3 4 24952: typedef ZSTD_CCtx ZSTD_CStream; 24952: 24952: 24952: __attribute__ ((visibility ("default"))) ZSTD_CStream* ZSTD_createCStream(void); 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCStream(ZSTD_CStream* zcs); 24952: 24952: 24952: typedef enum { 24952: ZSTD_e_continue=0, 24952: ZSTD_e_flush=1, 24952: 24952: 24952: 24952: ZSTD_e_end=2 24952: 24952: 24952: 24952: 24952: } ZSTD_EndDirective; 24952: # 780 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, 24952: ZSTD_outBuffer* output, 24952: ZSTD_inBuffer* input, 24952: ZSTD_EndDirective endOp); 24952: # 799 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamInSize(void); 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamOutSize(void); 24952: # 819 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel); 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 24952: # 860 "/usr/include/zstd.h" 3 4 24952: typedef ZSTD_DCtx ZSTD_DStream; 24952: 24952: 24952: __attribute__ ((visibility ("default"))) ZSTD_DStream* ZSTD_createDStream(void); 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDStream(ZSTD_DStream* zds); 24952: # 876 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_initDStream(ZSTD_DStream* zds); 24952: # 893 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamInSize(void); 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamOutSize(void); 24952: # 909 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingDict(ZSTD_CCtx* ctx, 24952: void* dst, size_t dstCapacity, 24952: const void* src, size_t srcSize, 24952: const void* dict,size_t dictSize, 24952: int compressionLevel); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx, 24952: void* dst, size_t dstCapacity, 24952: const void* src, size_t srcSize, 24952: const void* dict,size_t dictSize); 24952: 24952: 24952: 24952: 24952: 24952: typedef struct ZSTD_CDict_s ZSTD_CDict; 24952: # 944 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, 24952: int compressionLevel); 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCDict(ZSTD_CDict* CDict); 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, 24952: void* dst, size_t dstCapacity, 24952: const void* src, size_t srcSize, 24952: const ZSTD_CDict* cdict); 24952: 24952: 24952: typedef struct ZSTD_DDict_s ZSTD_DDict; 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) ZSTD_DDict* ZSTD_createDDict(const void* dictBuffer, size_t dictSize); 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDDict(ZSTD_DDict* ddict); 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, 24952: void* dst, size_t dstCapacity, 24952: const void* src, size_t srcSize, 24952: const ZSTD_DDict* ddict); 24952: # 992 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize); 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict* cdict); 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict* ddict); 24952: # 1016 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromFrame(const void* src, size_t srcSize); 24952: # 1053 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize); 24952: # 1067 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); 24952: # 1088 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, 24952: const void* prefix, size_t prefixSize); 24952: # 1106 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); 24952: # 1125 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); 24952: # 1143 "/usr/include/zstd.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx, 24952: const void* prefix, size_t prefixSize); 24952: 24952: 24952: 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx); 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CStream(const ZSTD_CStream* zcs); 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DStream(const ZSTD_DStream* zds); 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict); 24952: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DDict(const ZSTD_DDict* ddict); 24952: # 3019 "/usr/include/zstd.h" 3 4 24952: } 24952: # 51 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 24952: 24952: 24952: # 1 "/usr/include/zdict.h" 1 3 4 24952: # 12 "/usr/include/zdict.h" 3 4 24952: extern "C" { 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 20 "/usr/include/zdict.h" 2 3 4 24952: # 210 "/usr/include/zdict.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZDICT_trainFromBuffer(void* dictBuffer, size_t dictBufferCapacity, 24952: const void* samplesBuffer, 24952: const size_t* samplesSizes, unsigned nbSamples); 24952: 24952: typedef struct { 24952: int compressionLevel; 24952: unsigned notificationLevel; 24952: unsigned dictID; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } ZDICT_params_t; 24952: # 262 "/usr/include/zdict.h" 3 4 24952: __attribute__ ((visibility ("default"))) size_t ZDICT_finalizeDictionary(void* dstDictBuffer, size_t maxDictSize, 24952: const void* dictContent, size_t dictContentSize, 24952: const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, 24952: ZDICT_params_t parameters); 24952: 24952: 24952: 24952: __attribute__ ((visibility ("default"))) unsigned ZDICT_getDictID(const void* dictBuffer, size_t dictSize); 24952: __attribute__ ((visibility ("default"))) size_t ZDICT_getDictHeaderSize(const void* dictBuffer, size_t dictSize); 24952: __attribute__ ((visibility ("default"))) unsigned ZDICT_isError(size_t errorCode); 24952: __attribute__ ((visibility ("default"))) const char* ZDICT_getErrorName(size_t errorCode); 24952: # 473 "/usr/include/zdict.h" 3 4 24952: } 24952: # 54 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 2 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: namespace rocksdb { 24952: # 88 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: class ZSTDUncompressCachedData { 24952: public: 24952: using ZSTDNativeContext = ZSTD_DCtx*; 24952: ZSTDUncompressCachedData() {} 24952: 24952: ZSTDUncompressCachedData(const ZSTDUncompressCachedData& o) = delete; 24952: ZSTDUncompressCachedData& operator=(const ZSTDUncompressCachedData&) = delete; 24952: ZSTDUncompressCachedData(ZSTDUncompressCachedData&& o) noexcept 24952: : ZSTDUncompressCachedData() { 24952: *this = std::move(o); 24952: } 24952: ZSTDUncompressCachedData& operator=(ZSTDUncompressCachedData&& o) noexcept { 24952: 24952: # 100 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 100 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: zstd_ctx_ == nullptr 24952: # 100 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 100 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "zstd_ctx_ == nullptr" 24952: # 100 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 100, __extension__ __PRETTY_FUNCTION__)) 24952: # 100 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: std::swap(zstd_ctx_, o.zstd_ctx_); 24952: std::swap(cache_idx_, o.cache_idx_); 24952: return *this; 24952: } 24952: ZSTDNativeContext Get() const { return zstd_ctx_; } 24952: int64_t GetCacheIndex() const { return cache_idx_; } 24952: void CreateIfNeeded() { 24952: if (zstd_ctx_ == nullptr) { 24952: 24952: 24952: 24952: 24952: zstd_ctx_ = ZSTD_createDCtx(); 24952: 24952: cache_idx_ = -1; 24952: } 24952: } 24952: void InitFromCache(const ZSTDUncompressCachedData& o, int64_t idx) { 24952: zstd_ctx_ = o.zstd_ctx_; 24952: cache_idx_ = idx; 24952: } 24952: ~ZSTDUncompressCachedData() { 24952: if (zstd_ctx_ != nullptr && cache_idx_ == -1) { 24952: ZSTD_freeDCtx(zstd_ctx_); 24952: } 24952: } 24952: 24952: private: 24952: ZSTDNativeContext zstd_ctx_ = nullptr; 24952: int64_t cache_idx_ = -1; 24952: }; 24952: 24952: } 24952: # 163 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: namespace rocksdb { 24952: 24952: 24952: 24952: struct CompressionDict { 24952: 24952: ZSTD_CDict* zstd_cdict_ = nullptr; 24952: 24952: std::string dict_; 24952: 24952: public: 24952: 24952: CompressionDict(std::string dict, CompressionType type, int level) { 24952: 24952: 24952: 24952: dict_ = std::move(dict); 24952: 24952: zstd_cdict_ = nullptr; 24952: if (!dict_.empty() && (type == kZSTD || type == kZSTDNotFinalCompression)) { 24952: if (level == CompressionOptions::kDefaultCompressionLevel) { 24952: 24952: 24952: 24952: 24952: 24952: level = 3; 24952: } 24952: 24952: 24952: zstd_cdict_ = ZSTD_createCDict(dict_.data(), dict_.size(), level); 24952: 24952: # 194 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 194 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: zstd_cdict_ != nullptr 24952: # 194 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 194 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "zstd_cdict_ != nullptr" 24952: # 194 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 194, __extension__ __PRETTY_FUNCTION__)) 24952: # 194 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: } 24952: 24952: } 24952: 24952: ~CompressionDict() { 24952: 24952: size_t res = 0; 24952: if (zstd_cdict_ != nullptr) { 24952: res = ZSTD_freeCDict(zstd_cdict_); 24952: } 24952: 24952: # 205 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 205 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: res == 0 24952: # 205 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 205 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "res == 0" 24952: # 205 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 205, __extension__ __PRETTY_FUNCTION__)) 24952: # 205 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: (void)res; 24952: 24952: } 24952: 24952: 24952: const ZSTD_CDict* GetDigestedZstdCDict() const { return zstd_cdict_; } 24952: 24952: 24952: Slice GetRawDict() const { return dict_; } 24952: 24952: static const CompressionDict& GetEmptyDict() { 24952: static CompressionDict empty_dict{}; 24952: return empty_dict; 24952: } 24952: 24952: CompressionDict() = default; 24952: 24952: CompressionDict(const CompressionDict&) = delete; 24952: CompressionDict& operator=(const CompressionDict&) = delete; 24952: CompressionDict(CompressionDict&&) = delete; 24952: CompressionDict& operator=(CompressionDict&&) = delete; 24952: }; 24952: 24952: 24952: 24952: struct UncompressionDict { 24952: 24952: 24952: std::string dict_; 24952: 24952: 24952: 24952: 24952: CacheAllocationPtr allocation_; 24952: 24952: 24952: 24952: 24952: Slice slice_; 24952: # 254 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: UncompressionDict(std::string dict, bool ) 24952: 24952: : dict_(std::move(dict)), slice_(dict_) { 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: UncompressionDict(Slice slice, CacheAllocationPtr&& allocation, 24952: bool ) 24952: 24952: : allocation_(std::move(allocation)), slice_(std::move(slice)) { 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: UncompressionDict(UncompressionDict&& rhs) 24952: : dict_(std::move(rhs.dict_)), 24952: allocation_(std::move(rhs.allocation_)), 24952: slice_(std::move(rhs.slice_)) 24952: 24952: 24952: 24952: 24952: { 24952: 24952: 24952: 24952: } 24952: 24952: ~UncompressionDict() { 24952: # 304 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: } 24952: 24952: UncompressionDict& operator=(UncompressionDict&& rhs) { 24952: if (this == &rhs) { 24952: return *this; 24952: } 24952: 24952: dict_ = std::move(rhs.dict_); 24952: allocation_ = std::move(rhs.allocation_); 24952: slice_ = std::move(rhs.slice_); 24952: 24952: 24952: 24952: 24952: 24952: 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: bool own_bytes() const { return !dict_.empty() || allocation_; } 24952: 24952: const Slice& GetRawDict() const { return slice_; } 24952: 24952: 24952: const Slice& ContentSlice() const { return slice_; } 24952: static constexpr CacheEntryRole kCacheEntryRole = CacheEntryRole::kOtherBlock; 24952: static constexpr BlockType kBlockType = BlockType::kCompressionDictionary; 24952: 24952: 24952: 24952: 24952: 24952: static const UncompressionDict& GetEmptyDict() { 24952: static UncompressionDict empty_dict{}; 24952: return empty_dict; 24952: } 24952: 24952: size_t ApproximateMemoryUsage() const { 24952: size_t usage = sizeof(struct UncompressionDict); 24952: usage += dict_.size(); 24952: if (allocation_) { 24952: auto allocator = allocation_.get_deleter().allocator; 24952: if (allocator) { 24952: usage += allocator->UsableSize(allocation_.get(), slice_.size()); 24952: } else { 24952: usage += slice_.size(); 24952: } 24952: } 24952: 24952: 24952: 24952: return usage; 24952: } 24952: 24952: UncompressionDict() = default; 24952: 24952: UncompressionDict(const CompressionDict&) = delete; 24952: UncompressionDict& operator=(const CompressionDict&) = delete; 24952: }; 24952: 24952: class CompressionContext { 24952: private: 24952: 24952: ZSTD_CCtx* zstd_ctx_ = nullptr; 24952: 24952: ZSTD_CCtx* CreateZSTDContext() { 24952: 24952: 24952: 24952: return ZSTD_createCCtx(); 24952: 24952: } 24952: 24952: void CreateNativeContext(CompressionType type, int level, bool checksum) { 24952: if (type == kZSTD || type == kZSTDNotFinalCompression) { 24952: zstd_ctx_ = CreateZSTDContext(); 24952: 24952: if (level == CompressionOptions::kDefaultCompressionLevel) { 24952: 24952: 24952: level = 3; 24952: } 24952: size_t err = 24952: ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_compressionLevel, level); 24952: if (ZSTD_isError(err)) { 24952: 24952: # 393 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 393 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: false 24952: # 393 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 393 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "false" 24952: # 393 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 393, __extension__ __PRETTY_FUNCTION__)) 24952: # 393 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: ZSTD_freeCCtx(zstd_ctx_); 24952: zstd_ctx_ = CreateZSTDContext(); 24952: } 24952: if (checksum) { 24952: err = ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_checksumFlag, 1); 24952: if (ZSTD_isError(err)) { 24952: 24952: # 400 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 400 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: false 24952: # 400 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 400 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "false" 24952: # 400 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 400, __extension__ __PRETTY_FUNCTION__)) 24952: # 400 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: ZSTD_freeCCtx(zstd_ctx_); 24952: zstd_ctx_ = CreateZSTDContext(); 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: } 24952: } 24952: void DestroyNativeContext() { 24952: if (zstd_ctx_ != nullptr) { 24952: ZSTD_freeCCtx(zstd_ctx_); 24952: } 24952: } 24952: 24952: public: 24952: 24952: ZSTD_CCtx* ZSTDPreallocCtx() const { 24952: 24952: # 420 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 420 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: zstd_ctx_ != nullptr 24952: # 420 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 420 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "zstd_ctx_ != nullptr" 24952: # 420 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 420, __extension__ __PRETTY_FUNCTION__)) 24952: # 420 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: return zstd_ctx_; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: public: 24952: explicit CompressionContext(CompressionType type, 24952: const CompressionOptions& options) { 24952: CreateNativeContext(type, options.level, options.checksum); 24952: } 24952: ~CompressionContext() { DestroyNativeContext(); } 24952: CompressionContext(const CompressionContext&) = delete; 24952: CompressionContext& operator=(const CompressionContext&) = delete; 24952: }; 24952: 24952: class CompressionInfo { 24952: const CompressionOptions& opts_; 24952: const CompressionContext& context_; 24952: const CompressionDict& dict_; 24952: const CompressionType type_; 24952: const uint64_t sample_for_compression_; 24952: 24952: public: 24952: CompressionInfo(const CompressionOptions& _opts, 24952: const CompressionContext& _context, 24952: const CompressionDict& _dict, CompressionType _type, 24952: uint64_t _sample_for_compression) 24952: : opts_(_opts), 24952: context_(_context), 24952: dict_(_dict), 24952: type_(_type), 24952: sample_for_compression_(_sample_for_compression) {} 24952: 24952: const CompressionOptions& options() const { return opts_; } 24952: const CompressionContext& context() const { return context_; } 24952: const CompressionDict& dict() const { return dict_; } 24952: CompressionType type() const { return type_; } 24952: uint64_t SampleForCompression() const { return sample_for_compression_; } 24952: }; 24952: 24952: class UncompressionContext { 24952: private: 24952: CompressionContextCache* ctx_cache_ = nullptr; 24952: ZSTDUncompressCachedData uncomp_cached_data_; 24952: 24952: public: 24952: explicit UncompressionContext(CompressionType type) { 24952: if (type == kZSTD || type == kZSTDNotFinalCompression) { 24952: ctx_cache_ = CompressionContextCache::Instance(); 24952: uncomp_cached_data_ = ctx_cache_->GetCachedZSTDUncompressData(); 24952: } 24952: } 24952: ~UncompressionContext() { 24952: if (uncomp_cached_data_.GetCacheIndex() != -1) { 24952: 24952: # 479 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 479 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ctx_cache_ != nullptr 24952: # 479 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 479 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "ctx_cache_ != nullptr" 24952: # 479 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 479, __extension__ __PRETTY_FUNCTION__)) 24952: # 479 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: ctx_cache_->ReturnCachedZSTDUncompressData( 24952: uncomp_cached_data_.GetCacheIndex()); 24952: } 24952: } 24952: UncompressionContext(const UncompressionContext&) = delete; 24952: UncompressionContext& operator=(const UncompressionContext&) = delete; 24952: 24952: ZSTDUncompressCachedData::ZSTDNativeContext GetZSTDContext() const { 24952: return uncomp_cached_data_.Get(); 24952: } 24952: }; 24952: 24952: class UncompressionInfo { 24952: const UncompressionContext& context_; 24952: const UncompressionDict& dict_; 24952: const CompressionType type_; 24952: 24952: public: 24952: UncompressionInfo(const UncompressionContext& _context, 24952: const UncompressionDict& _dict, CompressionType _type) 24952: : context_(_context), dict_(_dict), type_(_type) {} 24952: 24952: const UncompressionContext& context() const { return context_; } 24952: const UncompressionDict& dict() const { return dict_; } 24952: CompressionType type() const { return type_; } 24952: }; 24952: 24952: inline bool Snappy_Supported() { 24952: 24952: return true; 24952: 24952: 24952: 24952: } 24952: 24952: inline bool Zlib_Supported() { 24952: 24952: return true; 24952: 24952: 24952: 24952: } 24952: 24952: inline bool BZip2_Supported() { 24952: 24952: return true; 24952: 24952: 24952: 24952: } 24952: 24952: inline bool LZ4_Supported() { 24952: 24952: return true; 24952: 24952: 24952: 24952: } 24952: 24952: inline bool XPRESS_Supported() { 24952: 24952: 24952: 24952: return false; 24952: 24952: } 24952: 24952: inline bool ZSTD_Supported() { 24952: 24952: 24952: return (ZSTD_versionNumber() >= 800); 24952: 24952: 24952: 24952: } 24952: 24952: inline bool ZSTDNotFinal_Supported() { 24952: 24952: return true; 24952: 24952: 24952: 24952: } 24952: 24952: inline bool ZSTD_Streaming_Supported() { 24952: 24952: return true; 24952: 24952: 24952: 24952: } 24952: 24952: inline bool StreamingCompressionTypeSupported( 24952: CompressionType compression_type) { 24952: switch (compression_type) { 24952: case kNoCompression: 24952: return true; 24952: case kZSTD: 24952: return ZSTD_Streaming_Supported(); 24952: default: 24952: return false; 24952: } 24952: } 24952: 24952: inline bool CompressionTypeSupported(CompressionType compression_type) { 24952: switch (compression_type) { 24952: case kNoCompression: 24952: return true; 24952: case kSnappyCompression: 24952: return Snappy_Supported(); 24952: case kZlibCompression: 24952: return Zlib_Supported(); 24952: case kBZip2Compression: 24952: return BZip2_Supported(); 24952: case kLZ4Compression: 24952: return LZ4_Supported(); 24952: case kLZ4HCCompression: 24952: return LZ4_Supported(); 24952: case kXpressCompression: 24952: return XPRESS_Supported(); 24952: case kZSTDNotFinalCompression: 24952: return ZSTDNotFinal_Supported(); 24952: case kZSTD: 24952: return ZSTD_Supported(); 24952: default: 24952: 24952: # 605 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 605 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: false 24952: # 605 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 605 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "false" 24952: # 605 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 605, __extension__ __PRETTY_FUNCTION__)) 24952: # 605 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: return false; 24952: } 24952: } 24952: 24952: inline bool DictCompressionTypeSupported(CompressionType compression_type) { 24952: switch (compression_type) { 24952: case kNoCompression: 24952: return false; 24952: case kSnappyCompression: 24952: return false; 24952: case kZlibCompression: 24952: return Zlib_Supported(); 24952: case kBZip2Compression: 24952: return false; 24952: case kLZ4Compression: 24952: case kLZ4HCCompression: 24952: 24952: return LZ4_Supported(); 24952: 24952: 24952: 24952: case kXpressCompression: 24952: return false; 24952: case kZSTDNotFinalCompression: 24952: 24952: return ZSTDNotFinal_Supported(); 24952: 24952: 24952: 24952: case kZSTD: 24952: 24952: return ZSTD_Supported(); 24952: 24952: 24952: 24952: default: 24952: 24952: # 642 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 642 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: false 24952: # 642 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 642 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "false" 24952: # 642 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 642, __extension__ __PRETTY_FUNCTION__)) 24952: # 642 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: return false; 24952: } 24952: } 24952: 24952: inline std::string CompressionTypeToString(CompressionType compression_type) { 24952: switch (compression_type) { 24952: case kNoCompression: 24952: return "NoCompression"; 24952: case kSnappyCompression: 24952: return "Snappy"; 24952: case kZlibCompression: 24952: return "Zlib"; 24952: case kBZip2Compression: 24952: return "BZip2"; 24952: case kLZ4Compression: 24952: return "LZ4"; 24952: case kLZ4HCCompression: 24952: return "LZ4HC"; 24952: case kXpressCompression: 24952: return "Xpress"; 24952: case kZSTD: 24952: return "ZSTD"; 24952: case kZSTDNotFinalCompression: 24952: return "ZSTDNotFinal"; 24952: case kDisableCompressionOption: 24952: return "DisableOption"; 24952: default: 24952: 24952: # 670 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 670 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: false 24952: # 670 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 670 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "false" 24952: # 670 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 670, __extension__ __PRETTY_FUNCTION__)) 24952: # 670 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: return ""; 24952: } 24952: } 24952: 24952: inline std::string CompressionOptionsToString( 24952: CompressionOptions& compression_options) { 24952: std::string result; 24952: result.reserve(512); 24952: result.append("window_bits=") 24952: .append(std::to_string(compression_options.window_bits)) 24952: .append("; "); 24952: result.append("level=") 24952: .append(std::to_string(compression_options.level)) 24952: .append("; "); 24952: result.append("strategy=") 24952: .append(std::to_string(compression_options.strategy)) 24952: .append("; "); 24952: result.append("max_dict_bytes=") 24952: .append(std::to_string(compression_options.max_dict_bytes)) 24952: .append("; "); 24952: result.append("zstd_max_train_bytes=") 24952: .append(std::to_string(compression_options.zstd_max_train_bytes)) 24952: .append("; "); 24952: result.append("enabled=") 24952: .append(std::to_string(compression_options.enabled)) 24952: .append("; "); 24952: result.append("max_dict_buffer_bytes=") 24952: .append(std::to_string(compression_options.max_dict_buffer_bytes)) 24952: .append("; "); 24952: result.append("use_zstd_dict_trainer=") 24952: .append(std::to_string(compression_options.use_zstd_dict_trainer)) 24952: .append("; "); 24952: return result; 24952: } 24952: # 713 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: inline bool Snappy_Compress(const CompressionInfo& , const char* input, 24952: size_t length, ::std::string* output) { 24952: 24952: output->resize(snappy::MaxCompressedLength(length)); 24952: size_t outlen; 24952: snappy::RawCompress(input, length, &(*output)[0], &outlen); 24952: output->resize(outlen); 24952: return true; 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: inline CacheAllocationPtr Snappy_Uncompress( 24952: const char* input, size_t length, size_t* uncompressed_size, 24952: MemoryAllocator* allocator = nullptr) { 24952: 24952: size_t uncompressed_length = 0; 24952: if (!snappy::GetUncompressedLength(input, length, &uncompressed_length)) { 24952: return nullptr; 24952: } 24952: 24952: CacheAllocationPtr output = AllocateBlock(uncompressed_length, allocator); 24952: 24952: if (!snappy::RawUncompress(input, length, output.get())) { 24952: return nullptr; 24952: } 24952: 24952: *uncompressed_size = uncompressed_length; 24952: 24952: return output; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: namespace compression { 24952: 24952: inline size_t PutDecompressedSizeInfo(std::string* output, uint32_t length) { 24952: PutVarint32(output, length); 24952: return output->size(); 24952: } 24952: 24952: inline bool GetDecompressedSizeInfo(const char** input_data, 24952: size_t* input_length, 24952: uint32_t* output_len) { 24952: auto new_input_data = 24952: GetVarint32Ptr(*input_data, *input_data + *input_length, output_len); 24952: if (new_input_data == nullptr) { 24952: return false; 24952: } 24952: *input_length -= (new_input_data - *input_data); 24952: *input_data = new_input_data; 24952: return true; 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline bool Zlib_Compress(const CompressionInfo& info, 24952: uint32_t compress_format_version, const char* input, 24952: size_t length, ::std::string* output) { 24952: 24952: if (length > std::numeric_limits::max()) { 24952: 24952: return false; 24952: } 24952: 24952: size_t output_header_len = 0; 24952: if (compress_format_version == 2) { 24952: output_header_len = compression::PutDecompressedSizeInfo( 24952: output, static_cast(length)); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: static const int memLevel = 8; 24952: int level; 24952: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 24952: level = 24952: # 806 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (-1) 24952: # 806 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: } else { 24952: level = info.options().level; 24952: } 24952: z_stream _stream; 24952: memset(&_stream, 0, sizeof(z_stream)); 24952: int st = 24952: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: deflateInit2_(( 24952: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: &_stream 24952: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ),( 24952: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: level 24952: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ),(8),( 24952: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: info.options().window_bits 24952: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ),( 24952: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: memLevel 24952: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ), ( 24952: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: info.options().strategy 24952: # 812 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ), "1.3", (int)sizeof(z_stream)) 24952: 24952: # 813 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: if (st != 24952: # 814 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 0 24952: # 814 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ) { 24952: return false; 24952: } 24952: 24952: Slice compression_dict = info.dict().GetRawDict(); 24952: if (compression_dict.size()) { 24952: 24952: st = deflateSetDictionary( 24952: &_stream, reinterpret_cast(compression_dict.data()), 24952: static_cast(compression_dict.size())); 24952: if (st != 24952: # 824 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 0 24952: # 824 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ) { 24952: deflateEnd(&_stream); 24952: return false; 24952: } 24952: } 24952: 24952: 24952: size_t upper_bound = 24952: deflateBound(&_stream, static_cast(length)); 24952: output->resize(output_header_len + upper_bound); 24952: 24952: 24952: _stream.next_in = (Bytef*)input; 24952: _stream.avail_in = static_cast(length); 24952: 24952: 24952: _stream.avail_out = static_cast(upper_bound); 24952: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 24952: 24952: bool compressed = false; 24952: st = deflate(&_stream, 24952: # 844 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 4 24952: # 844 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ); 24952: if (st == 24952: # 845 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 1 24952: # 845 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ) { 24952: compressed = true; 24952: output->resize(output->size() - _stream.avail_out); 24952: } 24952: 24952: 24952: 24952: 24952: deflateEnd(&_stream); 24952: return compressed; 24952: # 863 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline CacheAllocationPtr Zlib_Uncompress( 24952: const UncompressionInfo& info, const char* input_data, size_t input_length, 24952: size_t* uncompressed_size, uint32_t compress_format_version, 24952: MemoryAllocator* allocator = nullptr, int windowBits = -14) { 24952: 24952: uint32_t output_len = 0; 24952: if (compress_format_version == 2) { 24952: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 24952: &output_len)) { 24952: return nullptr; 24952: } 24952: } else { 24952: 24952: 24952: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 24952: output_len = static_cast( 24952: std::min(proposed_output_len, 24952: static_cast(std::numeric_limits::max()))); 24952: } 24952: 24952: z_stream _stream; 24952: memset(&_stream, 0, sizeof(z_stream)); 24952: 24952: 24952: 24952: 24952: int st = 24952: 24952: # 898 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: inflateInit2_(( 24952: # 898 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: &_stream 24952: # 898 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ), ( 24952: # 898 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: windowBits > 0 ? windowBits + 32 : windowBits 24952: # 898 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ), "1.3", (int)sizeof(z_stream)) 24952: # 898 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: if (st != 24952: # 899 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 0 24952: # 899 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ) { 24952: return nullptr; 24952: } 24952: 24952: const Slice& compression_dict = info.dict().GetRawDict(); 24952: if (compression_dict.size()) { 24952: 24952: st = inflateSetDictionary( 24952: &_stream, reinterpret_cast(compression_dict.data()), 24952: static_cast(compression_dict.size())); 24952: if (st != 24952: # 909 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 0 24952: # 909 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ) { 24952: return nullptr; 24952: } 24952: } 24952: 24952: _stream.next_in = (Bytef*)input_data; 24952: _stream.avail_in = static_cast(input_length); 24952: 24952: auto output = AllocateBlock(output_len, allocator); 24952: 24952: _stream.next_out = (Bytef*)output.get(); 24952: _stream.avail_out = static_cast(output_len); 24952: 24952: bool done = false; 24952: while (!done) { 24952: st = inflate(&_stream, 24952: # 924 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 2 24952: # 924 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ); 24952: switch (st) { 24952: case 24952: # 926 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 1 24952: # 926 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: : 24952: done = true; 24952: break; 24952: case 24952: # 929 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 0 24952: # 929 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: : { 24952: 24952: 24952: 24952: 24952: # 933 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 933 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: compress_format_version != 2 24952: # 933 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 933 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "compress_format_version != 2" 24952: # 933 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 933, __extension__ __PRETTY_FUNCTION__)) 24952: # 933 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: size_t old_sz = output_len; 24952: uint32_t output_len_delta = output_len / 5; 24952: output_len += output_len_delta < 10 ? 10 : output_len_delta; 24952: auto tmp = AllocateBlock(output_len, allocator); 24952: memcpy(tmp.get(), output.get(), old_sz); 24952: output = std::move(tmp); 24952: 24952: 24952: _stream.next_out = (Bytef*)(output.get() + old_sz); 24952: _stream.avail_out = static_cast(output_len - old_sz); 24952: break; 24952: } 24952: case 24952: # 946 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (-5) 24952: # 946 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: : 24952: default: 24952: inflateEnd(&_stream); 24952: return nullptr; 24952: } 24952: } 24952: 24952: 24952: 24952: # 954 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 954 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: compress_format_version != 2 || _stream.avail_out == 0 24952: # 954 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 954 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "compress_format_version != 2 || _stream.avail_out == 0" 24952: # 954 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 954, __extension__ __PRETTY_FUNCTION__)) 24952: # 954 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: 24952: # 955 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 955 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: output_len >= _stream.avail_out 24952: # 955 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 955 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "output_len >= _stream.avail_out" 24952: # 955 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 955, __extension__ __PRETTY_FUNCTION__)) 24952: # 955 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: *uncompressed_size = output_len - _stream.avail_out; 24952: inflateEnd(&_stream); 24952: return output; 24952: # 969 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: } 24952: 24952: 24952: 24952: 24952: 24952: inline bool BZip2_Compress(const CompressionInfo& , 24952: uint32_t compress_format_version, const char* input, 24952: size_t length, ::std::string* output) { 24952: 24952: if (length > std::numeric_limits::max()) { 24952: 24952: return false; 24952: } 24952: size_t output_header_len = 0; 24952: if (compress_format_version == 2) { 24952: output_header_len = compression::PutDecompressedSizeInfo( 24952: output, static_cast(length)); 24952: } 24952: 24952: 24952: output->resize(output_header_len + length); 24952: 24952: bz_stream _stream; 24952: memset(&_stream, 0, sizeof(bz_stream)); 24952: 24952: 24952: 24952: 24952: int st = BZ2_bzCompressInit(&_stream, 1, 0, 30); 24952: if (st != 24952: # 999 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 0 24952: # 999 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ) { 24952: return false; 24952: } 24952: 24952: 24952: _stream.next_in = (char*)input; 24952: _stream.avail_in = static_cast(length); 24952: 24952: 24952: _stream.avail_out = static_cast(length); 24952: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 24952: 24952: bool compressed = false; 24952: st = BZ2_bzCompress(&_stream, 24952: # 1012 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 2 24952: # 1012 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ); 24952: if (st == 24952: # 1013 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 4 24952: # 1013 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ) { 24952: compressed = true; 24952: output->resize(output->size() - _stream.avail_out); 24952: } 24952: 24952: 24952: 24952: 24952: BZ2_bzCompressEnd(&_stream); 24952: return compressed; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: inline CacheAllocationPtr BZip2_Uncompress( 24952: const char* input_data, size_t input_length, size_t* uncompressed_size, 24952: uint32_t compress_format_version, MemoryAllocator* allocator = nullptr) { 24952: 24952: uint32_t output_len = 0; 24952: if (compress_format_version == 2) { 24952: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 24952: &output_len)) { 24952: return nullptr; 24952: } 24952: } else { 24952: 24952: 24952: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 24952: output_len = static_cast( 24952: std::min(proposed_output_len, 24952: static_cast(std::numeric_limits::max()))); 24952: } 24952: 24952: bz_stream _stream; 24952: memset(&_stream, 0, sizeof(bz_stream)); 24952: 24952: int st = BZ2_bzDecompressInit(&_stream, 0, 0); 24952: if (st != 24952: # 1059 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 0 24952: # 1059 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ) { 24952: return nullptr; 24952: } 24952: 24952: _stream.next_in = (char*)input_data; 24952: _stream.avail_in = static_cast(input_length); 24952: 24952: auto output = AllocateBlock(output_len, allocator); 24952: 24952: _stream.next_out = (char*)output.get(); 24952: _stream.avail_out = static_cast(output_len); 24952: 24952: bool done = false; 24952: while (!done) { 24952: st = BZ2_bzDecompress(&_stream); 24952: switch (st) { 24952: case 24952: # 1075 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 4 24952: # 1075 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: : 24952: done = true; 24952: break; 24952: case 24952: # 1078 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: 0 24952: # 1078 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: : { 24952: 24952: 24952: 24952: 24952: # 1082 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 1082 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: compress_format_version != 2 24952: # 1082 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1082 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "compress_format_version != 2" 24952: # 1082 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 1082, __extension__ __PRETTY_FUNCTION__)) 24952: # 1082 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: uint32_t old_sz = output_len; 24952: output_len = output_len * 1.2; 24952: auto tmp = AllocateBlock(output_len, allocator); 24952: memcpy(tmp.get(), output.get(), old_sz); 24952: output = std::move(tmp); 24952: 24952: 24952: _stream.next_out = (char*)(output.get() + old_sz); 24952: _stream.avail_out = static_cast(output_len - old_sz); 24952: break; 24952: } 24952: default: 24952: BZ2_bzDecompressEnd(&_stream); 24952: return nullptr; 24952: } 24952: } 24952: 24952: 24952: 24952: # 1101 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 1101 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: compress_format_version != 2 || _stream.avail_out == 0 24952: # 1101 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1101 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "compress_format_version != 2 || _stream.avail_out == 0" 24952: # 1101 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 1101, __extension__ __PRETTY_FUNCTION__)) 24952: # 1101 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: 24952: # 1102 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 1102 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: output_len >= _stream.avail_out 24952: # 1102 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1102 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "output_len >= _stream.avail_out" 24952: # 1102 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 1102, __extension__ __PRETTY_FUNCTION__)) 24952: # 1102 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: *uncompressed_size = output_len - _stream.avail_out; 24952: BZ2_bzDecompressEnd(&_stream); 24952: return output; 24952: # 1114 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline bool LZ4_Compress(const CompressionInfo& info, 24952: uint32_t compress_format_version, const char* input, 24952: size_t length, ::std::string* output) { 24952: 24952: if (length > std::numeric_limits::max()) { 24952: 24952: return false; 24952: } 24952: 24952: size_t output_header_len = 0; 24952: if (compress_format_version == 2) { 24952: 24952: output_header_len = compression::PutDecompressedSizeInfo( 24952: output, static_cast(length)); 24952: } else { 24952: 24952: 24952: output_header_len = 8; 24952: output->resize(output_header_len); 24952: char* p = const_cast(output->c_str()); 24952: memcpy(p, &length, sizeof(length)); 24952: } 24952: int compress_bound = LZ4_compressBound(static_cast(length)); 24952: output->resize(static_cast(output_header_len + compress_bound)); 24952: 24952: int outlen; 24952: 24952: LZ4_stream_t* stream = LZ4_createStream(); 24952: Slice compression_dict = info.dict().GetRawDict(); 24952: if (compression_dict.size()) { 24952: LZ4_loadDict(stream, compression_dict.data(), 24952: static_cast(compression_dict.size())); 24952: } 24952: 24952: int acceleration; 24952: if (info.options().level < 0) { 24952: acceleration = -info.options().level; 24952: } else { 24952: acceleration = 1; 24952: } 24952: outlen = LZ4_compress_fast_continue( 24952: stream, input, &(*output)[output_header_len], static_cast(length), 24952: compress_bound, acceleration); 24952: 24952: 24952: 24952: 24952: 24952: LZ4_freeStream(stream); 24952: 24952: 24952: 24952: 24952: 24952: if (outlen == 0) { 24952: return false; 24952: } 24952: output->resize(static_cast(output_header_len + outlen)); 24952: return true; 24952: # 1189 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline CacheAllocationPtr LZ4_Uncompress(const UncompressionInfo& info, 24952: const char* input_data, 24952: size_t input_length, 24952: size_t* uncompressed_size, 24952: uint32_t compress_format_version, 24952: MemoryAllocator* allocator = nullptr) { 24952: 24952: uint32_t output_len = 0; 24952: if (compress_format_version == 2) { 24952: 24952: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 24952: &output_len)) { 24952: return nullptr; 24952: } 24952: } else { 24952: 24952: 24952: if (input_length < 8) { 24952: return nullptr; 24952: } 24952: if (port::kLittleEndian) { 24952: memcpy(&output_len, input_data, sizeof(output_len)); 24952: } else { 24952: memcpy(&output_len, input_data + 4, sizeof(output_len)); 24952: } 24952: input_length -= 8; 24952: input_data += 8; 24952: } 24952: 24952: auto output = AllocateBlock(output_len, allocator); 24952: 24952: int decompress_bytes = 0; 24952: 24952: 24952: LZ4_streamDecode_t* stream = LZ4_createStreamDecode(); 24952: const Slice& compression_dict = info.dict().GetRawDict(); 24952: if (compression_dict.size()) { 24952: LZ4_setStreamDecode(stream, compression_dict.data(), 24952: static_cast(compression_dict.size())); 24952: } 24952: decompress_bytes = LZ4_decompress_safe_continue( 24952: stream, input_data, output.get(), static_cast(input_length), 24952: static_cast(output_len)); 24952: LZ4_freeStreamDecode(stream); 24952: 24952: 24952: 24952: 24952: 24952: 24952: if (decompress_bytes < 0) { 24952: return nullptr; 24952: } 24952: 24952: # 1250 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 1250 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: decompress_bytes == static_cast(output_len) 24952: # 1250 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1250 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "decompress_bytes == static_cast(output_len)" 24952: # 1250 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 1250, __extension__ __PRETTY_FUNCTION__)) 24952: # 1250 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: *uncompressed_size = decompress_bytes; 24952: return output; 24952: # 1262 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline bool LZ4HC_Compress(const CompressionInfo& info, 24952: uint32_t compress_format_version, const char* input, 24952: size_t length, ::std::string* output) { 24952: 24952: if (length > std::numeric_limits::max()) { 24952: 24952: return false; 24952: } 24952: 24952: size_t output_header_len = 0; 24952: if (compress_format_version == 2) { 24952: 24952: output_header_len = compression::PutDecompressedSizeInfo( 24952: output, static_cast(length)); 24952: } else { 24952: 24952: 24952: output_header_len = 8; 24952: output->resize(output_header_len); 24952: char* p = const_cast(output->c_str()); 24952: memcpy(p, &length, sizeof(length)); 24952: } 24952: int compress_bound = LZ4_compressBound(static_cast(length)); 24952: output->resize(static_cast(output_header_len + compress_bound)); 24952: 24952: int outlen; 24952: int level; 24952: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 24952: level = 0; 24952: } else { 24952: level = info.options().level; 24952: } 24952: 24952: LZ4_streamHC_t* stream = LZ4_createStreamHC(); 24952: LZ4_resetStreamHC(stream, level); 24952: Slice compression_dict = info.dict().GetRawDict(); 24952: const char* compression_dict_data = 24952: compression_dict.size() > 0 ? compression_dict.data() : nullptr; 24952: size_t compression_dict_size = compression_dict.size(); 24952: if (compression_dict_data != nullptr) { 24952: LZ4_loadDictHC(stream, compression_dict_data, 24952: static_cast(compression_dict_size)); 24952: } 24952: 24952: 24952: outlen = 24952: LZ4_compress_HC_continue(stream, input, &(*output)[output_header_len], 24952: static_cast(length), compress_bound); 24952: 24952: 24952: 24952: 24952: 24952: LZ4_freeStreamHC(stream); 24952: # 1335 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: if (outlen == 0) { 24952: return false; 24952: } 24952: output->resize(static_cast(output_header_len + outlen)); 24952: return true; 24952: # 1348 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline bool XPRESS_Compress(const char* , size_t , 24952: std::string* ) { 24952: return false; 24952: } 24952: # 1368 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: inline char* XPRESS_Uncompress(const char* , 24952: size_t , 24952: size_t* ) { 24952: return nullptr; 24952: } 24952: 24952: 24952: inline bool ZSTD_Compress(const CompressionInfo& info, const char* input, 24952: size_t length, ::std::string* output) { 24952: 24952: if (length > std::numeric_limits::max()) { 24952: 24952: return false; 24952: } 24952: 24952: size_t output_header_len = compression::PutDecompressedSizeInfo( 24952: output, static_cast(length)); 24952: 24952: size_t compressBound = ZSTD_compressBound(length); 24952: output->resize(static_cast(output_header_len + compressBound)); 24952: size_t outlen = 0; 24952: 24952: ZSTD_CCtx* context = info.context().ZSTDPreallocCtx(); 24952: 24952: # 1391 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 1391 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: context != nullptr 24952: # 1391 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1391 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "context != nullptr" 24952: # 1391 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 1391, __extension__ __PRETTY_FUNCTION__)) 24952: # 1391 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: 24952: if (info.dict().GetDigestedZstdCDict() != nullptr) { 24952: ZSTD_CCtx_refCDict(context, info.dict().GetDigestedZstdCDict()); 24952: } else { 24952: ZSTD_CCtx_loadDictionary(context, info.dict().GetRawDict().data(), 24952: info.dict().GetRawDict().size()); 24952: } 24952: 24952: 24952: outlen = ZSTD_compress2(context, &(*output)[output_header_len], compressBound, 24952: input, length); 24952: # 1431 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: if (outlen == 0) { 24952: return false; 24952: } 24952: output->resize(output_header_len + outlen); 24952: return true; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline CacheAllocationPtr ZSTD_Uncompress( 24952: const UncompressionInfo& info, const char* input_data, size_t input_length, 24952: size_t* uncompressed_size, MemoryAllocator* allocator = nullptr, 24952: const char** error_message = nullptr) { 24952: 24952: static const char* const kErrorDecodeOutputSize = 24952: "Cannot decode output size."; 24952: static const char* const kErrorOutputLenMismatch = 24952: "Decompressed size does not match header."; 24952: uint32_t output_len = 0; 24952: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 24952: &output_len)) { 24952: if (error_message) { 24952: *error_message = kErrorDecodeOutputSize; 24952: } 24952: return nullptr; 24952: } 24952: 24952: CacheAllocationPtr output = AllocateBlock(output_len, allocator); 24952: size_t actual_output_length = 0; 24952: 24952: ZSTD_DCtx* context = info.context().GetZSTDContext(); 24952: 24952: # 1472 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 1472 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: context != nullptr 24952: # 1472 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1472 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "context != nullptr" 24952: # 1472 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 1472, __extension__ __PRETTY_FUNCTION__)) 24952: # 1472 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: actual_output_length = ZSTD_decompress_usingDict( 24952: context, output.get(), output_len, input_data, input_length, 24952: info.dict().GetRawDict().data(), info.dict().GetRawDict().size()); 24952: # 1491 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: if (ZSTD_isError(actual_output_length)) { 24952: if (error_message) { 24952: *error_message = ZSTD_getErrorName(actual_output_length); 24952: } 24952: return nullptr; 24952: } else if (actual_output_length != output_len) { 24952: if (error_message) { 24952: *error_message = kErrorOutputLenMismatch; 24952: } 24952: return nullptr; 24952: } 24952: 24952: *uncompressed_size = actual_output_length; 24952: return output; 24952: # 1514 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: } 24952: 24952: inline bool ZSTD_TrainDictionarySupported() { 24952: 24952: 24952: 24952: 24952: return (ZSTD_versionNumber() >= 10103); 24952: 24952: 24952: 24952: } 24952: 24952: inline std::string ZSTD_TrainDictionary(const std::string& samples, 24952: const std::vector& sample_lens, 24952: size_t max_dict_bytes) { 24952: 24952: 24952: 24952: 24952: 24952: # 1534 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 1534 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: samples.empty() == sample_lens.empty() 24952: # 1534 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1534 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "samples.empty() == sample_lens.empty()" 24952: # 1534 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 1534, __extension__ __PRETTY_FUNCTION__)) 24952: # 1534 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: if (samples.empty()) { 24952: return ""; 24952: } 24952: std::string dict_data(max_dict_bytes, '\0'); 24952: size_t dict_len = ZDICT_trainFromBuffer( 24952: &dict_data[0], max_dict_bytes, &samples[0], &sample_lens[0], 24952: static_cast(sample_lens.size())); 24952: if (ZDICT_isError(dict_len)) { 24952: return ""; 24952: } 24952: 24952: # 1545 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 1545 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: dict_len <= max_dict_bytes 24952: # 1545 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1545 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "dict_len <= max_dict_bytes" 24952: # 1545 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 1545, __extension__ __PRETTY_FUNCTION__)) 24952: # 1545 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: dict_data.resize(dict_len); 24952: return dict_data; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: inline std::string ZSTD_TrainDictionary(const std::string& samples, 24952: size_t sample_len_shift, 24952: size_t max_dict_bytes) { 24952: 24952: 24952: 24952: 24952: size_t num_samples = samples.size() >> sample_len_shift; 24952: std::vector sample_lens(num_samples, size_t(1) << sample_len_shift); 24952: return ZSTD_TrainDictionary(samples, sample_lens, max_dict_bytes); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: } 24952: 24952: inline bool ZSTD_FinalizeDictionarySupported() { 24952: 24952: 24952: return (ZSTD_versionNumber() >= 10405); 24952: 24952: 24952: 24952: } 24952: 24952: inline std::string ZSTD_FinalizeDictionary( 24952: const std::string& samples, const std::vector& sample_lens, 24952: size_t max_dict_bytes, int level) { 24952: 24952: 24952: 24952: # 1590 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 1590 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: samples.empty() == sample_lens.empty() 24952: # 1590 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1590 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "samples.empty() == sample_lens.empty()" 24952: # 1590 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 1590, __extension__ __PRETTY_FUNCTION__)) 24952: # 1590 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: if (samples.empty()) { 24952: return ""; 24952: } 24952: if (level == CompressionOptions::kDefaultCompressionLevel) { 24952: 24952: 24952: level = 3; 24952: } 24952: std::string dict_data(max_dict_bytes, '\0'); 24952: size_t dict_len = ZDICT_finalizeDictionary( 24952: dict_data.data(), max_dict_bytes, samples.data(), 24952: std::min(static_cast(samples.size()), max_dict_bytes), 24952: samples.data(), sample_lens.data(), 24952: static_cast(sample_lens.size()), 24952: {level, 0 , 0 }); 24952: if (ZDICT_isError(dict_len)) { 24952: return ""; 24952: } else { 24952: 24952: # 1609 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 1609 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: dict_len <= max_dict_bytes 24952: # 1609 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1609 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "dict_len <= max_dict_bytes" 24952: # 1609 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 1609, __extension__ __PRETTY_FUNCTION__)) 24952: # 1609 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: dict_data.resize(dict_len); 24952: return dict_data; 24952: } 24952: # 1621 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: } 24952: 24952: inline bool CompressData(const Slice& raw, 24952: const CompressionInfo& compression_info, 24952: uint32_t compress_format_version, 24952: std::string* compressed_output) { 24952: bool ret = false; 24952: 24952: 24952: 24952: switch (compression_info.type()) { 24952: case kSnappyCompression: 24952: ret = Snappy_Compress(compression_info, raw.data(), raw.size(), 24952: compressed_output); 24952: break; 24952: case kZlibCompression: 24952: ret = Zlib_Compress(compression_info, compress_format_version, raw.data(), 24952: raw.size(), compressed_output); 24952: break; 24952: case kBZip2Compression: 24952: ret = BZip2_Compress(compression_info, compress_format_version, 24952: raw.data(), raw.size(), compressed_output); 24952: break; 24952: case kLZ4Compression: 24952: ret = LZ4_Compress(compression_info, compress_format_version, raw.data(), 24952: raw.size(), compressed_output); 24952: break; 24952: case kLZ4HCCompression: 24952: ret = LZ4HC_Compress(compression_info, compress_format_version, 24952: raw.data(), raw.size(), compressed_output); 24952: break; 24952: case kXpressCompression: 24952: ret = XPRESS_Compress(raw.data(), raw.size(), compressed_output); 24952: break; 24952: case kZSTD: 24952: case kZSTDNotFinalCompression: 24952: ret = ZSTD_Compress(compression_info, raw.data(), raw.size(), 24952: compressed_output); 24952: break; 24952: default: 24952: 24952: break; 24952: } 24952: 24952: rocksdb::SyncPoint::GetInstance()->Process("CompressData:TamperWithReturnValue", static_cast(&ret)) 24952: ; 24952: 24952: return ret; 24952: } 24952: 24952: inline CacheAllocationPtr UncompressData( 24952: const UncompressionInfo& uncompression_info, const char* data, size_t n, 24952: size_t* uncompressed_size, uint32_t compress_format_version, 24952: MemoryAllocator* allocator = nullptr, 24952: const char** error_message = nullptr) { 24952: switch (uncompression_info.type()) { 24952: case kSnappyCompression: 24952: return Snappy_Uncompress(data, n, uncompressed_size, allocator); 24952: case kZlibCompression: 24952: return Zlib_Uncompress(uncompression_info, data, n, uncompressed_size, 24952: compress_format_version, allocator); 24952: case kBZip2Compression: 24952: return BZip2_Uncompress(data, n, uncompressed_size, 24952: compress_format_version, allocator); 24952: case kLZ4Compression: 24952: case kLZ4HCCompression: 24952: return LZ4_Uncompress(uncompression_info, data, n, uncompressed_size, 24952: compress_format_version, allocator); 24952: case kXpressCompression: 24952: 24952: 24952: return CacheAllocationPtr(XPRESS_Uncompress(data, n, uncompressed_size)); 24952: case kZSTD: 24952: case kZSTDNotFinalCompression: 24952: 24952: return ZSTD_Uncompress(uncompression_info, data, n, uncompressed_size, 24952: allocator, error_message); 24952: default: 24952: return CacheAllocationPtr(); 24952: } 24952: } 24952: 24952: 24952: class CompressionTypeRecord { 24952: public: 24952: explicit CompressionTypeRecord(CompressionType compression_type) 24952: : compression_type_(compression_type) {} 24952: 24952: CompressionType GetCompressionType() const { return compression_type_; } 24952: 24952: inline void EncodeTo(std::string* dst) const { 24952: 24952: # 1712 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 1712 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: dst != nullptr 24952: # 1712 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1712 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "dst != nullptr" 24952: # 1712 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 1712, __extension__ __PRETTY_FUNCTION__)) 24952: # 1712 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: PutFixed32(dst, compression_type_); 24952: } 24952: 24952: inline Status DecodeFrom(Slice* src) { 24952: constexpr char class_name[] = "CompressionTypeRecord"; 24952: 24952: uint32_t val; 24952: if (!GetFixed32(src, &val)) { 24952: return Status::Corruption(class_name, 24952: "Error decoding WAL compression type"); 24952: } 24952: CompressionType compression_type = static_cast(val); 24952: if (!StreamingCompressionTypeSupported(compression_type)) { 24952: return Status::Corruption(class_name, 24952: "WAL compression type not supported"); 24952: } 24952: compression_type_ = compression_type; 24952: return Status::OK(); 24952: } 24952: 24952: inline std::string DebugString() const { 24952: return "compression_type: " + CompressionTypeToString(compression_type_); 24952: } 24952: 24952: private: 24952: CompressionType compression_type_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class StreamingCompress { 24952: public: 24952: StreamingCompress(CompressionType compression_type, 24952: const CompressionOptions& opts, 24952: uint32_t compress_format_version, size_t max_output_len) 24952: : compression_type_(compression_type), 24952: opts_(opts), 24952: compress_format_version_(compress_format_version), 24952: max_output_len_(max_output_len) {} 24952: virtual ~StreamingCompress() = default; 24952: # 1767 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: virtual int Compress(const char* input, size_t input_size, char* output, 24952: size_t* output_pos) = 0; 24952: 24952: 24952: static StreamingCompress* Create(CompressionType compression_type, 24952: const CompressionOptions& opts, 24952: uint32_t compress_format_version, 24952: size_t max_output_len); 24952: virtual void Reset() = 0; 24952: 24952: protected: 24952: const CompressionType compression_type_; 24952: const CompressionOptions opts_; 24952: const uint32_t compress_format_version_; 24952: const size_t max_output_len_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class StreamingUncompress { 24952: public: 24952: StreamingUncompress(CompressionType compression_type, 24952: uint32_t compress_format_version, size_t max_output_len) 24952: : compression_type_(compression_type), 24952: compress_format_version_(compress_format_version), 24952: max_output_len_(max_output_len) {} 24952: virtual ~StreamingUncompress() = default; 24952: # 1810 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: virtual int Uncompress(const char* input, size_t input_size, char* output, 24952: size_t* output_pos) = 0; 24952: static StreamingUncompress* Create(CompressionType compression_type, 24952: uint32_t compress_format_version, 24952: size_t max_output_len); 24952: virtual void Reset() = 0; 24952: 24952: protected: 24952: CompressionType compression_type_; 24952: uint32_t compress_format_version_; 24952: size_t max_output_len_; 24952: }; 24952: 24952: class ZSTDStreamingCompress final : public StreamingCompress { 24952: public: 24952: explicit ZSTDStreamingCompress(const CompressionOptions& opts, 24952: uint32_t compress_format_version, 24952: size_t max_output_len) 24952: : StreamingCompress(kZSTD, opts, compress_format_version, 24952: max_output_len) { 24952: 24952: cctx_ = ZSTD_createCCtx(); 24952: 24952: ZSTD_CCtx_setParameter(cctx_, ZSTD_c_checksumFlag, 1); 24952: 24952: # 1834 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 1834 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: cctx_ != nullptr 24952: # 1834 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1834 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "cctx_ != nullptr" 24952: # 1834 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 1834, __extension__ __PRETTY_FUNCTION__)) 24952: # 1834 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: input_buffer_ = { nullptr, 0, 0}; 24952: 24952: } 24952: ~ZSTDStreamingCompress() override { 24952: 24952: ZSTD_freeCCtx(cctx_); 24952: 24952: } 24952: int Compress(const char* input, size_t input_size, char* output, 24952: size_t* output_pos) override; 24952: void Reset() override; 24952: 24952: ZSTD_CCtx* cctx_; 24952: ZSTD_inBuffer input_buffer_; 24952: 24952: }; 24952: 24952: class ZSTDStreamingUncompress final : public StreamingUncompress { 24952: public: 24952: explicit ZSTDStreamingUncompress(uint32_t compress_format_version, 24952: size_t max_output_len) 24952: : StreamingUncompress(kZSTD, compress_format_version, max_output_len) { 24952: 24952: dctx_ = ZSTD_createDCtx(); 24952: 24952: # 1859 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: (static_cast ( 24952: # 1859 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: dctx_ != nullptr 24952: # 1859 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1859 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: "dctx_ != nullptr" 24952: # 1859 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 3 4 24952: , "./util/compression.h", 1859, __extension__ __PRETTY_FUNCTION__)) 24952: # 1859 "/build/reproducible-path/rocksdb-8.9.1/util/compression.h" 24952: ; 24952: input_buffer_ = { nullptr, 0, 0}; 24952: 24952: } 24952: ~ZSTDStreamingUncompress() override { 24952: 24952: ZSTD_freeDCtx(dctx_); 24952: 24952: } 24952: int Uncompress(const char* input, size_t input_size, char* output, 24952: size_t* output_size) override; 24952: void Reset() override; 24952: 24952: private: 24952: 24952: ZSTD_DCtx* dctx_; 24952: ZSTD_inBuffer input_buffer_; 24952: 24952: }; 24952: 24952: } 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/options/cf_options.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: struct ImmutableCFOptions { 24952: public: 24952: static const char* kName() { return "ImmutableCFOptions"; } 24952: explicit ImmutableCFOptions(); 24952: explicit ImmutableCFOptions(const ColumnFamilyOptions& cf_options); 24952: 24952: CompactionStyle compaction_style; 24952: 24952: CompactionPri compaction_pri; 24952: 24952: const Comparator* user_comparator; 24952: InternalKeyComparator internal_comparator; 24952: 24952: std::shared_ptr merge_operator; 24952: 24952: const CompactionFilter* compaction_filter; 24952: 24952: std::shared_ptr compaction_filter_factory; 24952: 24952: int min_write_buffer_number_to_merge; 24952: 24952: int max_write_buffer_number_to_maintain; 24952: 24952: int64_t max_write_buffer_size_to_maintain; 24952: 24952: bool inplace_update_support; 24952: 24952: UpdateStatus (*inplace_callback)(char* existing_value, 24952: uint32_t* existing_value_size, 24952: Slice delta_value, 24952: std::string* merged_value); 24952: 24952: std::shared_ptr memtable_factory; 24952: 24952: std::shared_ptr table_factory; 24952: 24952: Options::TablePropertiesCollectorFactories 24952: table_properties_collector_factories; 24952: 24952: 24952: 24952: uint32_t bloom_locality; 24952: 24952: bool level_compaction_dynamic_level_bytes; 24952: 24952: bool level_compaction_dynamic_file_size; 24952: 24952: int num_levels; 24952: 24952: bool optimize_filters_for_hits; 24952: 24952: bool force_consistency_checks; 24952: 24952: Temperature default_temperature; 24952: 24952: uint64_t preclude_last_level_data_seconds; 24952: 24952: uint64_t preserve_internal_time_seconds; 24952: 24952: std::shared_ptr 24952: memtable_insert_with_hint_prefix_extractor; 24952: 24952: std::vector cf_paths; 24952: 24952: std::shared_ptr compaction_thread_limiter; 24952: 24952: std::shared_ptr sst_partitioner_factory; 24952: 24952: std::shared_ptr blob_cache; 24952: 24952: bool persist_user_defined_timestamps; 24952: }; 24952: 24952: struct ImmutableOptions : public ImmutableDBOptions, public ImmutableCFOptions { 24952: explicit ImmutableOptions(); 24952: explicit ImmutableOptions(const Options& options); 24952: 24952: ImmutableOptions(const DBOptions& db_options, 24952: const ColumnFamilyOptions& cf_options); 24952: 24952: ImmutableOptions(const ImmutableDBOptions& db_options, 24952: const ImmutableCFOptions& cf_options); 24952: 24952: ImmutableOptions(const DBOptions& db_options, 24952: const ImmutableCFOptions& cf_options); 24952: 24952: ImmutableOptions(const ImmutableDBOptions& db_options, 24952: const ColumnFamilyOptions& cf_options); 24952: }; 24952: 24952: struct MutableCFOptions { 24952: static const char* kName() { return "MutableCFOptions"; } 24952: explicit MutableCFOptions(const ColumnFamilyOptions& options) 24952: : write_buffer_size(options.write_buffer_size), 24952: max_write_buffer_number(options.max_write_buffer_number), 24952: arena_block_size(options.arena_block_size), 24952: memtable_prefix_bloom_size_ratio( 24952: options.memtable_prefix_bloom_size_ratio), 24952: memtable_whole_key_filtering(options.memtable_whole_key_filtering), 24952: memtable_huge_page_size(options.memtable_huge_page_size), 24952: max_successive_merges(options.max_successive_merges), 24952: inplace_update_num_locks(options.inplace_update_num_locks), 24952: prefix_extractor(options.prefix_extractor), 24952: experimental_mempurge_threshold( 24952: options.experimental_mempurge_threshold), 24952: disable_auto_compactions(options.disable_auto_compactions), 24952: soft_pending_compaction_bytes_limit( 24952: options.soft_pending_compaction_bytes_limit), 24952: hard_pending_compaction_bytes_limit( 24952: options.hard_pending_compaction_bytes_limit), 24952: level0_file_num_compaction_trigger( 24952: options.level0_file_num_compaction_trigger), 24952: level0_slowdown_writes_trigger(options.level0_slowdown_writes_trigger), 24952: level0_stop_writes_trigger(options.level0_stop_writes_trigger), 24952: max_compaction_bytes(options.max_compaction_bytes), 24952: ignore_max_compaction_bytes_for_input( 24952: options.ignore_max_compaction_bytes_for_input), 24952: target_file_size_base(options.target_file_size_base), 24952: target_file_size_multiplier(options.target_file_size_multiplier), 24952: max_bytes_for_level_base(options.max_bytes_for_level_base), 24952: max_bytes_for_level_multiplier(options.max_bytes_for_level_multiplier), 24952: ttl(options.ttl), 24952: periodic_compaction_seconds(options.periodic_compaction_seconds), 24952: max_bytes_for_level_multiplier_additional( 24952: options.max_bytes_for_level_multiplier_additional), 24952: compaction_options_fifo(options.compaction_options_fifo), 24952: compaction_options_universal(options.compaction_options_universal), 24952: enable_blob_files(options.enable_blob_files), 24952: min_blob_size(options.min_blob_size), 24952: blob_file_size(options.blob_file_size), 24952: blob_compression_type(options.blob_compression_type), 24952: enable_blob_garbage_collection(options.enable_blob_garbage_collection), 24952: blob_garbage_collection_age_cutoff( 24952: options.blob_garbage_collection_age_cutoff), 24952: blob_garbage_collection_force_threshold( 24952: options.blob_garbage_collection_force_threshold), 24952: blob_compaction_readahead_size(options.blob_compaction_readahead_size), 24952: blob_file_starting_level(options.blob_file_starting_level), 24952: prepopulate_blob_cache(options.prepopulate_blob_cache), 24952: max_sequential_skip_in_iterations( 24952: options.max_sequential_skip_in_iterations), 24952: check_flush_compaction_key_order( 24952: options.check_flush_compaction_key_order), 24952: paranoid_file_checks(options.paranoid_file_checks), 24952: report_bg_io_stats(options.report_bg_io_stats), 24952: compression(options.compression), 24952: bottommost_compression(options.bottommost_compression), 24952: compression_opts(options.compression_opts), 24952: bottommost_compression_opts(options.bottommost_compression_opts), 24952: last_level_temperature(options.last_level_temperature == 24952: Temperature::kUnknown 24952: ? options.bottommost_temperature 24952: : options.last_level_temperature), 24952: memtable_protection_bytes_per_key( 24952: options.memtable_protection_bytes_per_key), 24952: block_protection_bytes_per_key(options.block_protection_bytes_per_key), 24952: sample_for_compression( 24952: options.sample_for_compression), 24952: compression_per_level(options.compression_per_level), 24952: memtable_max_range_deletions(options.memtable_max_range_deletions), 24952: bottommost_file_compaction_delay( 24952: options.bottommost_file_compaction_delay) { 24952: RefreshDerivedOptions(options.num_levels, options.compaction_style); 24952: } 24952: 24952: MutableCFOptions() 24952: : write_buffer_size(0), 24952: max_write_buffer_number(0), 24952: arena_block_size(0), 24952: memtable_prefix_bloom_size_ratio(0), 24952: memtable_whole_key_filtering(false), 24952: memtable_huge_page_size(0), 24952: max_successive_merges(0), 24952: inplace_update_num_locks(0), 24952: prefix_extractor(nullptr), 24952: experimental_mempurge_threshold(0.0), 24952: disable_auto_compactions(false), 24952: soft_pending_compaction_bytes_limit(0), 24952: hard_pending_compaction_bytes_limit(0), 24952: level0_file_num_compaction_trigger(0), 24952: level0_slowdown_writes_trigger(0), 24952: level0_stop_writes_trigger(0), 24952: max_compaction_bytes(0), 24952: ignore_max_compaction_bytes_for_input(true), 24952: target_file_size_base(0), 24952: target_file_size_multiplier(0), 24952: max_bytes_for_level_base(0), 24952: max_bytes_for_level_multiplier(0), 24952: ttl(0), 24952: periodic_compaction_seconds(0), 24952: compaction_options_fifo(), 24952: enable_blob_files(false), 24952: min_blob_size(0), 24952: blob_file_size(0), 24952: blob_compression_type(kNoCompression), 24952: enable_blob_garbage_collection(false), 24952: blob_garbage_collection_age_cutoff(0.0), 24952: blob_garbage_collection_force_threshold(0.0), 24952: blob_compaction_readahead_size(0), 24952: blob_file_starting_level(0), 24952: prepopulate_blob_cache(PrepopulateBlobCache::kDisable), 24952: max_sequential_skip_in_iterations(0), 24952: check_flush_compaction_key_order(true), 24952: paranoid_file_checks(false), 24952: report_bg_io_stats(false), 24952: compression(Snappy_Supported() ? kSnappyCompression : kNoCompression), 24952: bottommost_compression(kDisableCompressionOption), 24952: last_level_temperature(Temperature::kUnknown), 24952: memtable_protection_bytes_per_key(0), 24952: block_protection_bytes_per_key(0), 24952: sample_for_compression(0), 24952: memtable_max_range_deletions(0) {} 24952: 24952: explicit MutableCFOptions(const Options& options); 24952: 24952: 24952: void RefreshDerivedOptions(int num_levels, CompactionStyle compaction_style); 24952: 24952: void RefreshDerivedOptions(const ImmutableCFOptions& ioptions) { 24952: RefreshDerivedOptions(ioptions.num_levels, ioptions.compaction_style); 24952: } 24952: 24952: int MaxBytesMultiplerAdditional(int level) const { 24952: if (level >= 24952: static_cast(max_bytes_for_level_multiplier_additional.size())) { 24952: return 1; 24952: } 24952: return max_bytes_for_level_multiplier_additional[level]; 24952: } 24952: 24952: void Dump(Logger* log) const; 24952: 24952: 24952: size_t write_buffer_size; 24952: int max_write_buffer_number; 24952: size_t arena_block_size; 24952: double memtable_prefix_bloom_size_ratio; 24952: bool memtable_whole_key_filtering; 24952: size_t memtable_huge_page_size; 24952: size_t max_successive_merges; 24952: size_t inplace_update_num_locks; 24952: std::shared_ptr prefix_extractor; 24952: # 279 "/build/reproducible-path/rocksdb-8.9.1/options/cf_options.h" 24952: double experimental_mempurge_threshold; 24952: 24952: 24952: bool disable_auto_compactions; 24952: uint64_t soft_pending_compaction_bytes_limit; 24952: uint64_t hard_pending_compaction_bytes_limit; 24952: int level0_file_num_compaction_trigger; 24952: int level0_slowdown_writes_trigger; 24952: int level0_stop_writes_trigger; 24952: uint64_t max_compaction_bytes; 24952: bool ignore_max_compaction_bytes_for_input; 24952: uint64_t target_file_size_base; 24952: int target_file_size_multiplier; 24952: uint64_t max_bytes_for_level_base; 24952: double max_bytes_for_level_multiplier; 24952: uint64_t ttl; 24952: uint64_t periodic_compaction_seconds; 24952: std::vector max_bytes_for_level_multiplier_additional; 24952: CompactionOptionsFIFO compaction_options_fifo; 24952: CompactionOptionsUniversal compaction_options_universal; 24952: 24952: 24952: bool enable_blob_files; 24952: uint64_t min_blob_size; 24952: uint64_t blob_file_size; 24952: CompressionType blob_compression_type; 24952: bool enable_blob_garbage_collection; 24952: double blob_garbage_collection_age_cutoff; 24952: double blob_garbage_collection_force_threshold; 24952: uint64_t blob_compaction_readahead_size; 24952: int blob_file_starting_level; 24952: PrepopulateBlobCache prepopulate_blob_cache; 24952: 24952: 24952: uint64_t max_sequential_skip_in_iterations; 24952: bool check_flush_compaction_key_order; 24952: bool paranoid_file_checks; 24952: bool report_bg_io_stats; 24952: CompressionType compression; 24952: CompressionType bottommost_compression; 24952: CompressionOptions compression_opts; 24952: CompressionOptions bottommost_compression_opts; 24952: Temperature last_level_temperature; 24952: uint32_t memtable_protection_bytes_per_key; 24952: uint8_t block_protection_bytes_per_key; 24952: 24952: uint64_t sample_for_compression; 24952: std::vector compression_per_level; 24952: uint32_t memtable_max_range_deletions; 24952: uint32_t bottommost_file_compaction_delay; 24952: 24952: 24952: 24952: std::vector max_file_size; 24952: }; 24952: 24952: uint64_t MultiplyCheckOverflow(uint64_t op1, double op2); 24952: 24952: 24952: uint64_t MaxFileSizeForLevel(const MutableCFOptions& cf_options, 24952: int level, CompactionStyle compaction_style, int base_level = 1, 24952: bool level_compaction_dynamic_level_bytes = false); 24952: 24952: 24952: 24952: size_t MaxFileSizeForL0MetaPin(const MutableCFOptions& cf_options); 24952: 24952: Status GetStringFromMutableCFOptions(const ConfigOptions& config_options, 24952: const MutableCFOptions& mutable_opts, 24952: std::string* opt_string); 24952: 24952: Status GetMutableOptionsFromStrings( 24952: const MutableCFOptions& base_options, 24952: const std::unordered_map& options_map, 24952: Logger* info_log, MutableCFOptions* new_options); 24952: 24952: } 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/malloc.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/port/malloc.h" 24952: 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 2 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class RandomAccessFile; 24952: struct ReadOptions; 24952: 24952: bool ShouldReportDetailedTime(Env* env, Statistics* stats); 24952: 24952: 24952: constexpr uint32_t kMagicNumberLengthByte = 8; 24952: 24952: 24952: 24952: class BlockHandle { 24952: public: 24952: 24952: 24952: BlockHandle(); 24952: BlockHandle(uint64_t offset, uint64_t size); 24952: 24952: 24952: uint64_t offset() const { return offset_; } 24952: void set_offset(uint64_t _offset) { offset_ = _offset; } 24952: 24952: 24952: uint64_t size() const { return size_; } 24952: void set_size(uint64_t _size) { size_ = _size; } 24952: 24952: void EncodeTo(std::string* dst) const; 24952: char* EncodeTo(char* dst) const; 24952: Status DecodeFrom(Slice* input); 24952: Status DecodeSizeFrom(uint64_t offset, Slice* input); 24952: 24952: 24952: std::string ToString(bool hex = true) const; 24952: 24952: 24952: 24952: bool IsNull() const { return offset_ == 0 && size_ == 0; } 24952: 24952: static const BlockHandle& NullBlockHandle() { return kNullBlockHandle; } 24952: 24952: 24952: static constexpr uint32_t kMaxEncodedLength = 2 * kMaxVarint64Length; 24952: 24952: inline bool operator==(const BlockHandle& rhs) const { 24952: return offset_ == rhs.offset_ && size_ == rhs.size_; 24952: } 24952: inline bool operator!=(const BlockHandle& rhs) const { 24952: return !(*this == rhs); 24952: } 24952: 24952: private: 24952: uint64_t offset_; 24952: uint64_t size_; 24952: 24952: static const BlockHandle kNullBlockHandle; 24952: }; 24952: # 92 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 24952: struct IndexValue { 24952: BlockHandle handle; 24952: 24952: Slice first_internal_key; 24952: 24952: IndexValue() = default; 24952: IndexValue(BlockHandle _handle, Slice _first_internal_key) 24952: : handle(_handle), first_internal_key(_first_internal_key) {} 24952: 24952: 24952: 24952: 24952: 24952: 24952: void EncodeTo(std::string* dst, bool have_first_key, 24952: const BlockHandle* previous_handle) const; 24952: Status DecodeFrom(Slice* input, bool have_first_key, 24952: const BlockHandle* previous_handle); 24952: 24952: std::string ToString(bool hex, bool have_first_key) const; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline uint32_t ChecksumModifierForContext(uint32_t base_context_checksum, 24952: uint64_t offset) { 24952: 24952: 24952: 24952: 24952: 24952: uint32_t all_or_nothing = uint32_t{0} - (base_context_checksum != 0); 24952: # 142 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 24952: uint32_t modifier = 24952: base_context_checksum ^ (Lower32of64(offset) + Upper32of64(offset)); 24952: 24952: return modifier & all_or_nothing; 24952: } 24952: 24952: inline uint32_t GetCompressFormatForVersion(uint32_t format_version) { 24952: 24952: 24952: 24952: return format_version >= 2 ? 2 : 1; 24952: } 24952: 24952: constexpr uint32_t kLatestFormatVersion = 6; 24952: 24952: inline bool IsSupportedFormatVersion(uint32_t version) { 24952: return version <= kLatestFormatVersion; 24952: } 24952: 24952: 24952: inline bool FormatVersionUsesContextChecksum(uint32_t version) { 24952: return version >= 6; 24952: } 24952: 24952: inline bool FormatVersionUsesIndexHandleInFooter(uint32_t version) { 24952: return version < 6; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class Footer { 24952: public: 24952: 24952: Footer() {} 24952: 24952: 24952: 24952: 24952: 24952: 24952: Status DecodeFrom(Slice input, uint64_t input_offset, 24952: uint64_t enforce_table_magic_number = 0); 24952: 24952: 24952: 24952: uint64_t table_magic_number() const { return table_magic_number_; } 24952: 24952: 24952: 24952: 24952: uint32_t format_version() const { return format_version_; } 24952: 24952: 24952: uint32_t base_context_checksum() const { return base_context_checksum_; } 24952: 24952: 24952: const BlockHandle& metaindex_handle() const { return metaindex_handle_; } 24952: 24952: 24952: 24952: const BlockHandle& index_handle() const { return index_handle_; } 24952: 24952: 24952: ChecksumType checksum_type() const { 24952: return static_cast(checksum_type_); 24952: } 24952: 24952: 24952: 24952: 24952: inline size_t GetBlockTrailerSize() const { return block_trailer_size_; } 24952: 24952: 24952: std::string ToString() const; 24952: 24952: 24952: 24952: 24952: 24952: 24952: static constexpr uint32_t kVersion0EncodedLength = 24952: 2 * BlockHandle::kMaxEncodedLength + kMagicNumberLengthByte; 24952: static constexpr uint32_t kMinEncodedLength = kVersion0EncodedLength; 24952: 24952: 24952: 24952: 24952: 24952: static constexpr uint32_t kNewVersionsEncodedLength = 24952: 1 + 2 * BlockHandle::kMaxEncodedLength + 4 + kMagicNumberLengthByte; 24952: static constexpr uint32_t kMaxEncodedLength = kNewVersionsEncodedLength; 24952: 24952: static constexpr uint64_t kNullTableMagicNumber = 0; 24952: 24952: static constexpr uint32_t kInvalidFormatVersion = 0xffffffffU; 24952: 24952: private: 24952: static constexpr int kInvalidChecksumType = 24952: (1 << (sizeof(ChecksumType) * 8)) | kNoChecksum; 24952: 24952: uint64_t table_magic_number_ = kNullTableMagicNumber; 24952: uint32_t format_version_ = kInvalidFormatVersion; 24952: uint32_t base_context_checksum_ = 0; 24952: BlockHandle metaindex_handle_; 24952: BlockHandle index_handle_; 24952: int checksum_type_ = kInvalidChecksumType; 24952: uint8_t block_trailer_size_ = 0; 24952: }; 24952: 24952: 24952: class FooterBuilder { 24952: public: 24952: # 275 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 24952: Status Build(uint64_t table_magic_number, uint32_t format_version, 24952: uint64_t footer_offset, ChecksumType checksum_type, 24952: const BlockHandle& metaindex_handle, 24952: const BlockHandle& index_handle = BlockHandle::NullBlockHandle(), 24952: uint32_t base_context_checksum = 0); 24952: 24952: 24952: 24952: const Slice& GetSlice() const { 24952: 24952: # 284 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 3 4 24952: (static_cast ( 24952: # 284 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 24952: slice_.size() 24952: # 284 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 284 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 24952: "slice_.size()" 24952: # 284 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 3 4 24952: , "./table/format.h", 284, __extension__ __PRETTY_FUNCTION__)) 24952: # 284 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 24952: ; 24952: return slice_; 24952: } 24952: 24952: private: 24952: Slice slice_; 24952: std::array data_; 24952: }; 24952: 24952: 24952: 24952: 24952: Status ReadFooterFromFile(const IOOptions& opts, RandomAccessFileReader* file, 24952: FileSystem& fs, FilePrefetchBuffer* prefetch_buffer, 24952: uint64_t file_size, Footer* footer, 24952: uint64_t enforce_table_magic_number = 0); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint32_t ComputeBuiltinChecksum(ChecksumType type, const char* data, 24952: size_t size); 24952: uint32_t ComputeBuiltinChecksumWithLastByte(ChecksumType type, const char* data, 24952: size_t size, char last_byte); 24952: # 335 "/build/reproducible-path/rocksdb-8.9.1/table/format.h" 24952: struct BlockContents { 24952: 24952: Slice data; 24952: CacheAllocationPtr allocation; 24952: 24952: 24952: 24952: 24952: bool has_trailer = false; 24952: 24952: 24952: BlockContents() {} 24952: 24952: 24952: BlockContents(const Slice& _data) : data(_data) {} 24952: 24952: 24952: BlockContents(CacheAllocationPtr&& _data, size_t _size) 24952: : data(_data.get(), _size), allocation(std::move(_data)) {} 24952: 24952: 24952: BlockContents(std::unique_ptr&& _data, size_t _size) 24952: : data(_data.get(), _size) { 24952: allocation.reset(_data.release()); 24952: } 24952: 24952: 24952: bool own_bytes() const { return allocation.get() != nullptr; } 24952: 24952: 24952: size_t usable_size() const { 24952: if (allocation.get() != nullptr) { 24952: auto allocator = allocation.get_deleter().allocator; 24952: if (allocator) { 24952: return allocator->UsableSize(allocation.get(), data.size()); 24952: } 24952: 24952: return malloc_usable_size(allocation.get()); 24952: 24952: 24952: 24952: } else { 24952: return 0; 24952: } 24952: } 24952: 24952: size_t ApproximateMemoryUsage() const { 24952: return usable_size() + sizeof(*this); 24952: } 24952: 24952: BlockContents(BlockContents&& other) noexcept { *this = std::move(other); } 24952: 24952: BlockContents& operator=(BlockContents&& other) { 24952: data = std::move(other.data); 24952: allocation = std::move(other.allocation); 24952: 24952: has_trailer = other.has_trailer; 24952: 24952: return *this; 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: Status UncompressSerializedBlock(const UncompressionInfo& info, 24952: const char* data, size_t size, 24952: BlockContents* out_contents, 24952: uint32_t format_version, 24952: const ImmutableOptions& ioptions, 24952: MemoryAllocator* allocator = nullptr); 24952: 24952: 24952: 24952: Status UncompressBlockData(const UncompressionInfo& info, const char* data, 24952: size_t size, BlockContents* out_contents, 24952: uint32_t format_version, 24952: const ImmutableOptions& ioptions, 24952: MemoryAllocator* allocator = nullptr); 24952: 24952: 24952: Status ReifyDbHostIdProperty(Env* env, std::string* db_host_id); 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline BlockHandle::BlockHandle() : BlockHandle(~uint64_t{0}, ~uint64_t{0}) {} 24952: 24952: inline BlockHandle::BlockHandle(uint64_t _offset, uint64_t _size) 24952: : offset_(_offset), size_(_size) {} 24952: 24952: } 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: class PinnedIteratorsManager; 24952: 24952: enum class IterBoundCheck : char { 24952: kUnknown = 0, 24952: kOutOfBound, 24952: kInbound, 24952: }; 24952: 24952: struct IterateResult { 24952: Slice key; 24952: IterBoundCheck bound_check_result = IterBoundCheck::kUnknown; 24952: 24952: bool value_prepared = true; 24952: }; 24952: 24952: template 24952: class InternalIteratorBase : public Cleanable { 24952: public: 24952: InternalIteratorBase() {} 24952: 24952: 24952: InternalIteratorBase(const InternalIteratorBase&) = delete; 24952: InternalIteratorBase& operator=(const InternalIteratorBase&) = delete; 24952: 24952: virtual ~InternalIteratorBase() {} 24952: # 55 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 24952: virtual void SetRangeDelReadSeqno(SequenceNumber ) {} 24952: 24952: 24952: 24952: 24952: virtual bool Valid() const = 0; 24952: 24952: 24952: 24952: virtual void SeekToFirst() = 0; 24952: 24952: 24952: 24952: virtual void SeekToLast() = 0; 24952: # 77 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 24952: virtual void Seek(const Slice& target) = 0; 24952: 24952: 24952: 24952: 24952: virtual void SeekForPrev(const Slice& target) = 0; 24952: 24952: 24952: 24952: 24952: virtual void Next() = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual bool NextAndGetResult(IterateResult* result) { 24952: Next(); 24952: bool is_valid = Valid(); 24952: if (is_valid) { 24952: result->key = key(); 24952: 24952: 24952: 24952: result->bound_check_result = IterBoundCheck::kUnknown; 24952: result->value_prepared = false; 24952: 24952: # 103 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 3 4 24952: (static_cast ( 24952: # 103 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 24952: UpperBoundCheckResult() != IterBoundCheck::kOutOfBound 24952: # 103 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 103 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 24952: "UpperBoundCheckResult() != IterBoundCheck::kOutOfBound" 24952: # 103 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 3 4 24952: , "./table/internal_iterator.h", 103, __extension__ __PRETTY_FUNCTION__)) 24952: # 103 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 24952: ; 24952: } 24952: return is_valid; 24952: } 24952: 24952: 24952: 24952: 24952: virtual void Prev() = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual Slice key() const = 0; 24952: 24952: 24952: 24952: virtual Slice user_key() const { return ExtractUserKey(key()); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual TValue value() const = 0; 24952: 24952: 24952: 24952: 24952: virtual Status status() const = 0; 24952: # 146 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 24952: virtual bool PrepareValue() { return true; } 24952: 24952: 24952: virtual bool MayBeOutOfLowerBound() { return true; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual IterBoundCheck UpperBoundCheckResult() { 24952: return IterBoundCheck::kUnknown; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void SetPinnedItersMgr(PinnedIteratorsManager* ) { 24952: } 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 24952: virtual bool IsKeyPinned() const { return false; } 24952: 24952: 24952: 24952: 24952: 24952: virtual bool IsValuePinned() const { return false; } 24952: 24952: virtual Status GetProperty(std::string , std::string* ) { 24952: return Status::NotSupported(""); 24952: } 24952: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/internal_iterator.h" 24952: virtual void GetReadaheadState(ReadaheadFileInfo* ) {} 24952: 24952: 24952: virtual void SetReadaheadState(ReadaheadFileInfo* ) {} 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual bool IsDeleteRangeSentinelKey() const { return false; } 24952: 24952: protected: 24952: void SeekForPrevImpl(const Slice& target, const CompareInterface* cmp) { 24952: Seek(target); 24952: if (!Valid()) { 24952: SeekToLast(); 24952: } 24952: while (Valid() && cmp->Compare(target, key()) < 0) { 24952: Prev(); 24952: } 24952: } 24952: }; 24952: 24952: using InternalIterator = InternalIteratorBase; 24952: 24952: 24952: template 24952: extern InternalIteratorBase* NewEmptyInternalIterator(); 24952: 24952: 24952: template 24952: extern InternalIteratorBase* NewErrorInternalIterator( 24952: const Status& status); 24952: 24952: 24952: template 24952: extern InternalIteratorBase* NewErrorInternalIterator( 24952: const Status& status, Arena* arena); 24952: 24952: } 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: class PinnedIteratorsManager : public Cleanable { 24952: public: 24952: PinnedIteratorsManager() : pinning_enabled(false) {} 24952: ~PinnedIteratorsManager() { 24952: if (pinning_enabled) { 24952: ReleasePinnedData(); 24952: } 24952: } 24952: 24952: 24952: PinnedIteratorsManager(PinnedIteratorsManager&& other) noexcept = default; 24952: PinnedIteratorsManager& operator=(PinnedIteratorsManager&& other) noexcept = 24952: default; 24952: 24952: 24952: void StartPinning() { 24952: 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 24952: (static_cast ( 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 24952: pinning_enabled == false 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 24952: "pinning_enabled == false" 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 24952: , "./db/pinned_iterators_manager.h", 35, __extension__ __PRETTY_FUNCTION__)) 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 24952: ; 24952: pinning_enabled = true; 24952: } 24952: 24952: 24952: bool PinningEnabled() { return pinning_enabled; } 24952: 24952: 24952: void PinIterator(InternalIterator* iter, bool arena = false) { 24952: if (arena) { 24952: PinPtr(iter, &PinnedIteratorsManager::ReleaseArenaInternalIterator); 24952: } else { 24952: PinPtr(iter, &PinnedIteratorsManager::ReleaseInternalIterator); 24952: } 24952: } 24952: 24952: using ReleaseFunction = void (*)(void* arg1); 24952: void PinPtr(void* ptr, ReleaseFunction release_func) { 24952: 24952: # 53 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 24952: (static_cast ( 24952: # 53 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 24952: pinning_enabled 24952: # 53 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 53 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 24952: "pinning_enabled" 24952: # 53 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 24952: , "./db/pinned_iterators_manager.h", 53, __extension__ __PRETTY_FUNCTION__)) 24952: # 53 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 24952: ; 24952: if (ptr == nullptr) { 24952: return; 24952: } 24952: pinned_ptrs_.emplace_back(ptr, release_func); 24952: } 24952: 24952: 24952: inline void ReleasePinnedData() { 24952: 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 24952: (static_cast ( 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 24952: pinning_enabled == true 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 24952: "pinning_enabled == true" 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 3 4 24952: , "./db/pinned_iterators_manager.h", 62, __extension__ __PRETTY_FUNCTION__)) 24952: # 62 "/build/reproducible-path/rocksdb-8.9.1/db/pinned_iterators_manager.h" 24952: ; 24952: pinning_enabled = false; 24952: 24952: 24952: std::sort(pinned_ptrs_.begin(), pinned_ptrs_.end()); 24952: auto unique_end = std::unique(pinned_ptrs_.begin(), pinned_ptrs_.end()); 24952: 24952: for (auto i = pinned_ptrs_.begin(); i != unique_end; ++i) { 24952: void* ptr = i->first; 24952: ReleaseFunction release_func = i->second; 24952: release_func(ptr); 24952: } 24952: pinned_ptrs_.clear(); 24952: 24952: Cleanable::Reset(); 24952: } 24952: 24952: private: 24952: static void ReleaseInternalIterator(void* ptr) { 24952: delete reinterpret_cast(ptr); 24952: } 24952: 24952: static void ReleaseArenaInternalIterator(void* ptr) { 24952: reinterpret_cast(ptr)->~InternalIterator(); 24952: } 24952: 24952: bool pinning_enabled; 24952: std::vector> pinned_ptrs_; 24952: }; 24952: 24952: } 24952: # 16 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 2 24952: 24952: 24952: 24952: namespace rocksdb { 24952: struct FragmentedRangeTombstoneList; 24952: 24952: struct FragmentedRangeTombstoneListCache { 24952: 24952: std::mutex reader_mutex; 24952: std::unique_ptr tombstones = nullptr; 24952: 24952: std::atomic initialized = false; 24952: }; 24952: 24952: struct FragmentedRangeTombstoneList { 24952: public: 24952: # 40 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 24952: struct RangeTombstoneStack { 24952: RangeTombstoneStack(const Slice& start, const Slice& end, size_t start_idx, 24952: size_t end_idx) 24952: : start_key(start), 24952: end_key(end), 24952: seq_start_idx(start_idx), 24952: seq_end_idx(end_idx) {} 24952: Slice start_key; 24952: Slice end_key; 24952: size_t seq_start_idx; 24952: size_t seq_end_idx; 24952: }; 24952: 24952: 24952: FragmentedRangeTombstoneList( 24952: std::unique_ptr unfragmented_tombstones, 24952: const InternalKeyComparator& icmp, bool for_compaction = false, 24952: const std::vector& snapshots = {}); 24952: 24952: std::vector::const_iterator begin() const { 24952: return tombstones_.begin(); 24952: } 24952: 24952: std::vector::const_iterator end() const { 24952: return tombstones_.end(); 24952: } 24952: 24952: std::vector::const_iterator seq_iter(size_t idx) const { 24952: return std::next(tombstone_seqs_.begin(), idx); 24952: } 24952: 24952: std::vector::const_iterator ts_iter(size_t idx) const { 24952: return std::next(tombstone_timestamps_.begin(), idx); 24952: } 24952: 24952: std::vector::const_iterator seq_begin() const { 24952: return tombstone_seqs_.begin(); 24952: } 24952: 24952: std::vector::const_iterator seq_end() const { 24952: return tombstone_seqs_.end(); 24952: } 24952: 24952: bool empty() const { return tombstones_.empty(); } 24952: 24952: 24952: 24952: 24952: 24952: bool ContainsRange(SequenceNumber lower, SequenceNumber upper); 24952: 24952: uint64_t num_unfragmented_tombstones() const { 24952: return num_unfragmented_tombstones_; 24952: } 24952: 24952: uint64_t total_tombstone_payload_bytes() const { 24952: return total_tombstone_payload_bytes_; 24952: } 24952: 24952: private: 24952: # 110 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 24952: void FragmentTombstones( 24952: std::unique_ptr unfragmented_tombstones, 24952: const InternalKeyComparator& icmp, bool for_compaction, 24952: const std::vector& snapshots); 24952: 24952: std::vector tombstones_; 24952: std::vector tombstone_seqs_; 24952: std::vector tombstone_timestamps_; 24952: std::once_flag seq_set_init_once_flag_; 24952: std::set seq_set_; 24952: std::list pinned_slices_; 24952: PinnedIteratorsManager pinned_iters_mgr_; 24952: uint64_t num_unfragmented_tombstones_; 24952: uint64_t total_tombstone_payload_bytes_; 24952: }; 24952: # 135 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 24952: class FragmentedRangeTombstoneIterator : public InternalIterator { 24952: public: 24952: FragmentedRangeTombstoneIterator(FragmentedRangeTombstoneList* tombstones, 24952: const InternalKeyComparator& icmp, 24952: SequenceNumber upper_bound, 24952: const Slice* ts_upper_bound = nullptr, 24952: SequenceNumber lower_bound = 0); 24952: FragmentedRangeTombstoneIterator( 24952: const std::shared_ptr& tombstones, 24952: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 24952: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 24952: FragmentedRangeTombstoneIterator( 24952: const std::shared_ptr& tombstones, 24952: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 24952: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 24952: 24952: void SetRangeDelReadSeqno(SequenceNumber read_seqno) override { 24952: upper_bound_ = read_seqno; 24952: } 24952: 24952: void SeekToFirst() override; 24952: void SeekToLast() override; 24952: 24952: void SeekToTopFirst(); 24952: void SeekToTopLast(); 24952: # 169 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 24952: void Seek(const Slice& target) override; 24952: 24952: 24952: 24952: void SeekForPrev(const Slice& target) override; 24952: 24952: void Next() override; 24952: void Prev() override; 24952: 24952: void TopNext(); 24952: void TopPrev(); 24952: 24952: bool Valid() const override; 24952: 24952: 24952: Slice key() const override { 24952: MaybePinKey(); 24952: return current_start_key_.Encode(); 24952: } 24952: Slice value() const override { return pos_->end_key; } 24952: bool IsKeyPinned() const override { return false; } 24952: bool IsValuePinned() const override { return true; } 24952: Status status() const override { return Status::OK(); } 24952: 24952: bool empty() const { return tombstones_->empty(); } 24952: void Invalidate() { 24952: pos_ = tombstones_->end(); 24952: seq_pos_ = tombstones_->seq_end(); 24952: pinned_pos_ = tombstones_->end(); 24952: pinned_seq_pos_ = tombstones_->seq_end(); 24952: } 24952: 24952: RangeTombstone Tombstone() const { 24952: 24952: # 202 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 3 4 24952: (static_cast ( 24952: # 202 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 24952: Valid() 24952: # 202 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 202 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 24952: "Valid()" 24952: # 202 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 3 4 24952: , "./db/range_tombstone_fragmenter.h", 202, __extension__ __PRETTY_FUNCTION__)) 24952: # 202 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 24952: ; 24952: if (icmp_->user_comparator()->timestamp_size()) { 24952: return RangeTombstone(start_key(), end_key(), seq(), timestamp()); 24952: } 24952: return RangeTombstone(start_key(), end_key(), seq()); 24952: } 24952: 24952: 24952: 24952: Slice start_key() const { return pos_->start_key; } 24952: Slice end_key() const { return pos_->end_key; } 24952: SequenceNumber seq() const { return *seq_pos_; } 24952: Slice timestamp() const { 24952: 24952: return *tombstones_->ts_iter(seq_pos_ - tombstones_->seq_begin()); 24952: } 24952: 24952: 24952: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 24952: ts_upper_bound_ = ts_upper_bound; 24952: } 24952: 24952: ParsedInternalKey parsed_start_key() const { 24952: return ParsedInternalKey(pos_->start_key, seq(), kTypeRangeDeletion); 24952: } 24952: ParsedInternalKey parsed_end_key() const { 24952: return ParsedInternalKey(pos_->end_key, kMaxSequenceNumber, 24952: kTypeRangeDeletion); 24952: } 24952: 24952: 24952: 24952: 24952: SequenceNumber MaxCoveringTombstoneSeqnum(const Slice& user_key); 24952: # 246 "/build/reproducible-path/rocksdb-8.9.1/db/range_tombstone_fragmenter.h" 24952: std::map> 24952: SplitBySnapshot(const std::vector& snapshots); 24952: 24952: SequenceNumber upper_bound() const { return upper_bound_; } 24952: SequenceNumber lower_bound() const { return lower_bound_; } 24952: 24952: uint64_t num_unfragmented_tombstones() const { 24952: return tombstones_->num_unfragmented_tombstones(); 24952: } 24952: uint64_t total_tombstone_payload_bytes() const { 24952: return tombstones_->total_tombstone_payload_bytes(); 24952: } 24952: 24952: private: 24952: using RangeTombstoneStack = FragmentedRangeTombstoneList::RangeTombstoneStack; 24952: 24952: struct RangeTombstoneStackStartComparator { 24952: explicit RangeTombstoneStackStartComparator(const Comparator* c) : cmp(c) {} 24952: 24952: bool operator()(const RangeTombstoneStack& a, 24952: const RangeTombstoneStack& b) const { 24952: return cmp->CompareWithoutTimestamp(a.start_key, b.start_key) < 0; 24952: } 24952: 24952: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 24952: return cmp->CompareWithoutTimestamp(a.start_key, b) < 0; 24952: } 24952: 24952: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 24952: return cmp->CompareWithoutTimestamp(a, b.start_key) < 0; 24952: } 24952: 24952: const Comparator* cmp; 24952: }; 24952: 24952: struct RangeTombstoneStackEndComparator { 24952: explicit RangeTombstoneStackEndComparator(const Comparator* c) : cmp(c) {} 24952: 24952: bool operator()(const RangeTombstoneStack& a, 24952: const RangeTombstoneStack& b) const { 24952: return cmp->CompareWithoutTimestamp(a.end_key, b.end_key) < 0; 24952: } 24952: 24952: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 24952: return cmp->CompareWithoutTimestamp(a.end_key, b) < 0; 24952: } 24952: 24952: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 24952: return cmp->CompareWithoutTimestamp(a, b.end_key) < 0; 24952: } 24952: 24952: const Comparator* cmp; 24952: }; 24952: 24952: void MaybePinKey() const { 24952: if (pos_ != tombstones_->end() && seq_pos_ != tombstones_->seq_end() && 24952: (pinned_pos_ != pos_ || pinned_seq_pos_ != seq_pos_)) { 24952: current_start_key_.Set(pos_->start_key, *seq_pos_, kTypeRangeDeletion); 24952: pinned_pos_ = pos_; 24952: pinned_seq_pos_ = seq_pos_; 24952: } 24952: } 24952: 24952: void SeekToCoveringTombstone(const Slice& key); 24952: void SeekForPrevToCoveringTombstone(const Slice& key); 24952: void ScanForwardToVisibleTombstone(); 24952: void ScanBackwardToVisibleTombstone(); 24952: bool ValidPos() const { 24952: return Valid() && seq_pos_ != tombstones_->seq_iter(pos_->seq_end_idx); 24952: } 24952: 24952: const RangeTombstoneStackStartComparator tombstone_start_cmp_; 24952: const RangeTombstoneStackEndComparator tombstone_end_cmp_; 24952: const InternalKeyComparator* icmp_; 24952: const Comparator* ucmp_; 24952: std::shared_ptr tombstones_ref_; 24952: std::shared_ptr tombstones_cache_ref_; 24952: FragmentedRangeTombstoneList* tombstones_; 24952: SequenceNumber upper_bound_; 24952: SequenceNumber lower_bound_; 24952: 24952: const Slice* ts_upper_bound_; 24952: std::vector::const_iterator pos_; 24952: std::vector::const_iterator seq_pos_; 24952: mutable std::vector::const_iterator pinned_pos_; 24952: mutable std::vector::const_iterator pinned_seq_pos_; 24952: mutable InternalKey current_start_key_; 24952: 24952: 24952: 24952: 24952: 24952: void SetMaxVisibleSeqAndTimestamp() { 24952: seq_pos_ = std::lower_bound(tombstones_->seq_iter(pos_->seq_start_idx), 24952: tombstones_->seq_iter(pos_->seq_end_idx), 24952: upper_bound_, std::greater()); 24952: if (ts_upper_bound_ && !ts_upper_bound_->empty()) { 24952: auto ts_pos = std::lower_bound( 24952: tombstones_->ts_iter(pos_->seq_start_idx), 24952: tombstones_->ts_iter(pos_->seq_end_idx), *ts_upper_bound_, 24952: [this](const Slice& s1, const Slice& s2) { 24952: return ucmp_->CompareTimestamp(s1, s2) > 0; 24952: }); 24952: auto ts_idx = ts_pos - tombstones_->ts_iter(pos_->seq_start_idx); 24952: auto seq_idx = seq_pos_ - tombstones_->seq_iter(pos_->seq_start_idx); 24952: if (seq_idx < ts_idx) { 24952: 24952: 24952: seq_pos_ = tombstones_->seq_iter(pos_->seq_start_idx + ts_idx); 24952: } 24952: } 24952: } 24952: }; 24952: 24952: } 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class ReadCallback { 24952: public: 24952: explicit ReadCallback(SequenceNumber last_visible_seq) 24952: : max_visible_seq_(last_visible_seq) {} 24952: ReadCallback(SequenceNumber last_visible_seq, SequenceNumber min_uncommitted) 24952: : max_visible_seq_(last_visible_seq), min_uncommitted_(min_uncommitted) {} 24952: 24952: virtual ~ReadCallback() {} 24952: 24952: 24952: 24952: virtual bool IsVisibleFullCheck(SequenceNumber seq) = 0; 24952: 24952: inline bool IsVisible(SequenceNumber seq) { 24952: 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: (static_cast ( 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: min_uncommitted_ > 0 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: "min_uncommitted_ > 0" 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: , "./db/read_callback.h", 27, __extension__ __PRETTY_FUNCTION__)) 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: ; 24952: 24952: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: (static_cast ( 24952: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: min_uncommitted_ >= kMinUnCommittedSeq 24952: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: "min_uncommitted_ >= kMinUnCommittedSeq" 24952: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: , "./db/read_callback.h", 28, __extension__ __PRETTY_FUNCTION__)) 24952: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: ; 24952: if (seq < min_uncommitted_) { 24952: 24952: # 30 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: (static_cast ( 24952: # 30 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: seq <= max_visible_seq_ 24952: # 30 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 30 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: "seq <= max_visible_seq_" 24952: # 30 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: , "./db/read_callback.h", 30, __extension__ __PRETTY_FUNCTION__)) 24952: # 30 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: ; 24952: return true; 24952: } else if (max_visible_seq_ < seq) { 24952: 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: (static_cast ( 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: seq != 0 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: "seq != 0" 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: , "./db/read_callback.h", 33, __extension__ __PRETTY_FUNCTION__)) 24952: # 33 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: ; 24952: return false; 24952: } else { 24952: 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: (static_cast ( 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: seq != 0 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: "seq != 0" 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 3 4 24952: , "./db/read_callback.h", 36, __extension__ __PRETTY_FUNCTION__)) 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/db/read_callback.h" 24952: ; 24952: return IsVisibleFullCheck(seq); 24952: } 24952: } 24952: 24952: inline SequenceNumber max_visible_seq() { return max_visible_seq_; } 24952: 24952: 24952: virtual void Refresh(SequenceNumber seq) { max_visible_seq_ = seq; } 24952: 24952: protected: 24952: 24952: 24952: SequenceNumber max_visible_seq_ = kMaxSequenceNumber; 24952: 24952: const SequenceNumber min_uncommitted_ = kMinUnCommittedSeq; 24952: }; 24952: 24952: } 24952: # 23 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/cassert" 1 3 24952: # 41 "/usr/include/c++/13/cassert" 3 24952: 24952: # 42 "/usr/include/c++/13/cassert" 3 24952: 24952: 24952: # 1 "/usr/include/assert.h" 1 3 4 24952: # 45 "/usr/include/c++/13/cassert" 2 3 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 2 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_constants.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: constexpr uint64_t kInvalidBlobFileNumber = 0; 24952: 24952: } 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 2 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class JSONWriter; 24952: class Slice; 24952: class Status; 24952: 24952: class BlobFileAddition { 24952: public: 24952: BlobFileAddition() = default; 24952: 24952: BlobFileAddition(uint64_t blob_file_number, uint64_t total_blob_count, 24952: uint64_t total_blob_bytes, std::string checksum_method, 24952: std::string checksum_value) 24952: : blob_file_number_(blob_file_number), 24952: total_blob_count_(total_blob_count), 24952: total_blob_bytes_(total_blob_bytes), 24952: checksum_method_(std::move(checksum_method)), 24952: checksum_value_(std::move(checksum_value)) { 24952: 24952: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 3 4 24952: (static_cast ( 24952: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 24952: checksum_method_.empty() == checksum_value_.empty() 24952: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 24952: "checksum_method_.empty() == checksum_value_.empty()" 24952: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 3 4 24952: , "./db/blob/blob_file_addition.h", 34, __extension__ __PRETTY_FUNCTION__)) 24952: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_addition.h" 24952: ; 24952: } 24952: 24952: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 24952: uint64_t GetTotalBlobCount() const { return total_blob_count_; } 24952: uint64_t GetTotalBlobBytes() const { return total_blob_bytes_; } 24952: const std::string& GetChecksumMethod() const { return checksum_method_; } 24952: const std::string& GetChecksumValue() const { return checksum_value_; } 24952: 24952: void EncodeTo(std::string* output) const; 24952: Status DecodeFrom(Slice* input); 24952: 24952: std::string DebugString() const; 24952: std::string DebugJSON() const; 24952: 24952: private: 24952: enum CustomFieldTags : uint32_t; 24952: 24952: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 24952: uint64_t total_blob_count_ = 0; 24952: uint64_t total_blob_bytes_ = 0; 24952: std::string checksum_method_; 24952: std::string checksum_value_; 24952: }; 24952: 24952: bool operator==(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 24952: bool operator!=(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 24952: 24952: std::ostream& operator<<(std::ostream& os, 24952: const BlobFileAddition& blob_file_addition); 24952: JSONWriter& operator<<(JSONWriter& jw, 24952: const BlobFileAddition& blob_file_addition); 24952: 24952: } 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_garbage.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/db/blob/blob_file_garbage.h" 24952: namespace rocksdb { 24952: 24952: class JSONWriter; 24952: class Slice; 24952: class Status; 24952: 24952: class BlobFileGarbage { 24952: public: 24952: BlobFileGarbage() = default; 24952: 24952: BlobFileGarbage(uint64_t blob_file_number, uint64_t garbage_blob_count, 24952: uint64_t garbage_blob_bytes) 24952: : blob_file_number_(blob_file_number), 24952: garbage_blob_count_(garbage_blob_count), 24952: garbage_blob_bytes_(garbage_blob_bytes) {} 24952: 24952: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 24952: uint64_t GetGarbageBlobCount() const { return garbage_blob_count_; } 24952: uint64_t GetGarbageBlobBytes() const { return garbage_blob_bytes_; } 24952: 24952: void EncodeTo(std::string* output) const; 24952: Status DecodeFrom(Slice* input); 24952: 24952: std::string DebugString() const; 24952: std::string DebugJSON() const; 24952: 24952: private: 24952: enum CustomFieldTags : uint32_t; 24952: 24952: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 24952: uint64_t garbage_blob_count_ = 0; 24952: uint64_t garbage_blob_bytes_ = 0; 24952: }; 24952: 24952: bool operator==(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 24952: bool operator!=(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 24952: 24952: std::ostream& operator<<(std::ostream& os, 24952: const BlobFileGarbage& blob_file_garbage); 24952: JSONWriter& operator<<(JSONWriter& jw, 24952: const BlobFileGarbage& blob_file_garbage); 24952: 24952: } 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/wal_edit.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/db/wal_edit.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/logging/log_buffer.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/ctime" 1 3 24952: # 39 "/usr/include/c++/13/ctime" 3 24952: 24952: # 40 "/usr/include/c++/13/ctime" 3 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/logging/log_buffer.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 1 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/memory/allocator.h" 1 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/memory/allocator.h" 24952: 24952: # 1 "/usr/include/c++/13/cerrno" 1 3 24952: # 39 "/usr/include/c++/13/cerrno" 3 24952: 24952: # 40 "/usr/include/c++/13/cerrno" 3 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/memory/allocator.h" 2 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class Logger; 24952: 24952: class Allocator { 24952: public: 24952: virtual ~Allocator() {} 24952: 24952: virtual char* Allocate(size_t bytes) = 0; 24952: virtual char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 24952: Logger* logger = nullptr) = 0; 24952: 24952: virtual size_t BlockSize() const = 0; 24952: }; 24952: 24952: class AllocTracker { 24952: public: 24952: explicit AllocTracker(WriteBufferManager* write_buffer_manager); 24952: 24952: AllocTracker(const AllocTracker&) = delete; 24952: void operator=(const AllocTracker&) = delete; 24952: 24952: ~AllocTracker(); 24952: void Allocate(size_t bytes); 24952: 24952: 24952: void DoneAllocating(); 24952: 24952: void FreeMem(); 24952: 24952: bool is_freed() const { return write_buffer_manager_ == nullptr || freed_; } 24952: 24952: private: 24952: WriteBufferManager* write_buffer_manager_; 24952: std::atomic bytes_allocated_; 24952: bool done_allocating_; 24952: bool freed_; 24952: }; 24952: 24952: } 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/mmap.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 1 3 4 24952: # 25 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 24952: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/13/include/stddef.h" 1 3 4 24952: # 26 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 24952: # 41 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 1 3 4 24952: # 29 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-map-flags-generic.h" 1 3 4 24952: # 30 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 1 3 4 24952: # 116 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 3 4 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 1 3 4 24952: # 47 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 24952: 24952: # 47 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 24952: extern "C" { 24952: 24952: 24952: 24952: int memfd_create (const char *__name, unsigned int __flags) noexcept (true); 24952: 24952: 24952: 24952: int mlock2 (const void *__addr, size_t __length, unsigned int __flags) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: int pkey_alloc (unsigned int __flags, unsigned int __access_rights) noexcept (true); 24952: 24952: 24952: 24952: int pkey_set (int __key, unsigned int __access_rights) noexcept (true); 24952: 24952: 24952: 24952: int pkey_get (int __key) noexcept (true); 24952: 24952: 24952: 24952: int pkey_free (int __key) noexcept (true); 24952: 24952: 24952: 24952: int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) noexcept (true); 24952: 24952: } 24952: # 117 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 2 3 4 24952: # 33 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 24952: # 42 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 24952: 24952: 24952: 24952: 24952: extern "C" { 24952: # 57 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 24952: extern void *mmap (void *__addr, size_t __len, int __prot, 24952: int __flags, int __fd, __off_t __offset) noexcept (true); 24952: # 70 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 24952: extern void *mmap64 (void *__addr, size_t __len, int __prot, 24952: int __flags, int __fd, __off64_t __offset) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int munmap (void *__addr, size_t __len) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int mprotect (void *__addr, size_t __len, int __prot) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int msync (void *__addr, size_t __len, int __flags); 24952: 24952: 24952: 24952: 24952: extern int madvise (void *__addr, size_t __len, int __advice) noexcept (true); 24952: 24952: 24952: 24952: extern int posix_madvise (void *__addr, size_t __len, int __advice) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int mlock (const void *__addr, size_t __len) noexcept (true); 24952: 24952: 24952: extern int munlock (const void *__addr, size_t __len) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int mlockall (int __flags) noexcept (true); 24952: 24952: 24952: 24952: extern int munlockall (void) noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: extern int mincore (void *__start, size_t __len, unsigned char *__vec) 24952: noexcept (true); 24952: # 133 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 24952: extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, 24952: int __flags, ...) noexcept (true); 24952: 24952: 24952: 24952: extern int remap_file_pages (void *__start, size_t __size, int __prot, 24952: size_t __pgoff, int __flags) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int shm_open (const char *__name, int __oflag, mode_t __mode); 24952: 24952: 24952: extern int shm_unlink (const char *__name); 24952: 24952: 24952: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 1 3 4 24952: # 24 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 3 4 24952: struct iovec; 24952: extern __ssize_t process_madvise (int __pid_fd, const struct iovec *__iov, 24952: size_t __count, int __advice, 24952: unsigned __flags) 24952: noexcept (true); 24952: 24952: extern int process_mrelease (int pidfd, unsigned int flags) noexcept (true); 24952: # 151 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 24952: 24952: } 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/port/mmap.h" 2 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/port/mmap.h" 24952: namespace rocksdb { 24952: 24952: 24952: class MemMapping { 24952: public: 24952: static constexpr bool kHugePageSupported = 24952: 24952: true; 24952: 24952: 24952: 24952: 24952: 24952: static MemMapping AllocateHuge(size_t length); 24952: 24952: 24952: 24952: 24952: 24952: 24952: static MemMapping AllocateLazyZeroed(size_t length); 24952: 24952: 24952: MemMapping(const MemMapping&) = delete; 24952: MemMapping& operator=(const MemMapping&) = delete; 24952: 24952: MemMapping(MemMapping&&) noexcept; 24952: MemMapping& operator=(MemMapping&&) noexcept; 24952: 24952: 24952: ~MemMapping(); 24952: 24952: inline void* Get() const { return addr_; } 24952: inline size_t Length() const { return length_; } 24952: 24952: private: 24952: MemMapping() {} 24952: 24952: 24952: void* addr_ = nullptr; 24952: 24952: size_t length_ = 0; 24952: 24952: 24952: 24952: 24952: 24952: static MemMapping AllocateAnonymous(size_t length, bool huge); 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: class TypedMemMapping : public MemMapping { 24952: public: 24952: TypedMemMapping(MemMapping&& v) noexcept 24952: : MemMapping(std::move(v)) {} 24952: TypedMemMapping& operator=(MemMapping&& v) noexcept { 24952: MemMapping& base = *this; 24952: base = std::move(v); 24952: } 24952: 24952: inline T* Get() const { return static_cast(MemMapping::Get()); } 24952: inline size_t Count() const { return MemMapping::Length() / sizeof(T); } 24952: 24952: inline T& operator[](size_t index) const { return Get()[index]; } 24952: }; 24952: 24952: } 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 2 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class Arena : public Allocator { 24952: public: 24952: 24952: Arena(const Arena&) = delete; 24952: void operator=(const Arena&) = delete; 24952: 24952: static constexpr size_t kInlineSize = 2048; 24952: static constexpr size_t kMinBlockSize = 4096; 24952: static constexpr size_t kMaxBlockSize = 2u << 30; 24952: 24952: static constexpr unsigned kAlignUnit = alignof(std::max_align_t); 24952: static_assert((kAlignUnit & (kAlignUnit - 1)) == 0, 24952: "Pointer size should be power of 2"); 24952: 24952: 24952: 24952: 24952: explicit Arena(size_t block_size = kMinBlockSize, 24952: AllocTracker* tracker = nullptr, size_t huge_page_size = 0); 24952: ~Arena(); 24952: 24952: char* Allocate(size_t bytes) override; 24952: # 60 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 24952: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 24952: Logger* logger = nullptr) override; 24952: 24952: 24952: 24952: 24952: size_t ApproximateMemoryUsage() const { 24952: return blocks_memory_ + blocks_.size() * sizeof(char*) - 24952: alloc_bytes_remaining_; 24952: } 24952: 24952: size_t MemoryAllocatedBytes() const { return blocks_memory_; } 24952: 24952: size_t AllocatedAndUnused() const { return alloc_bytes_remaining_; } 24952: 24952: 24952: 24952: size_t IrregularBlockNum() const { return irregular_block_num; } 24952: 24952: size_t BlockSize() const override { return kBlockSize; } 24952: 24952: bool IsInInlineBlock() const { 24952: return blocks_.empty() && huge_blocks_.empty(); 24952: } 24952: 24952: 24952: 24952: 24952: static size_t OptimizeBlockSize(size_t block_size); 24952: 24952: private: 24952: alignas(std::max_align_t) char inline_block_[kInlineSize]; 24952: 24952: const size_t kBlockSize; 24952: 24952: std::deque> blocks_; 24952: 24952: std::deque huge_blocks_; 24952: size_t irregular_block_num = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: char* unaligned_alloc_ptr_ = nullptr; 24952: char* aligned_alloc_ptr_ = nullptr; 24952: 24952: size_t alloc_bytes_remaining_ = 0; 24952: 24952: size_t hugetlb_size_ = 0; 24952: 24952: char* AllocateFromHugePage(size_t bytes); 24952: char* AllocateFallback(size_t bytes, bool aligned); 24952: char* AllocateNewBlock(size_t block_bytes); 24952: 24952: 24952: size_t blocks_memory_ = 0; 24952: 24952: AllocTracker* tracker_; 24952: }; 24952: 24952: inline char* Arena::Allocate(size_t bytes) { 24952: 24952: 24952: 24952: 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 3 4 24952: (static_cast ( 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 24952: bytes > 0 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 24952: "bytes > 0" 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 3 4 24952: , "./memory/arena.h", 126, __extension__ __PRETTY_FUNCTION__)) 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/memory/arena.h" 24952: ; 24952: if (bytes <= alloc_bytes_remaining_) { 24952: unaligned_alloc_ptr_ -= bytes; 24952: alloc_bytes_remaining_ -= bytes; 24952: return unaligned_alloc_ptr_; 24952: } 24952: return AllocateFallback(bytes, false ); 24952: } 24952: 24952: } 24952: # 11 "/build/reproducible-path/rocksdb-8.9.1/logging/log_buffer.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/port/sys_time.h" 1 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/port/sys_time.h" 24952: 24952: # 42 "/build/reproducible-path/rocksdb-8.9.1/port/sys_time.h" 24952: # 1 "/usr/include/arm-linux-gnueabihf/sys/time.h" 1 3 4 24952: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 24952: 24952: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 24952: extern "C" { 24952: # 52 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 24952: struct timezone 24952: { 24952: int tz_minuteswest; 24952: int tz_dsttime; 24952: }; 24952: # 67 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 24952: extern int gettimeofday (struct timeval *__restrict __tv, 24952: void *__restrict __tz) noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: # 86 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 24952: extern int settimeofday (const struct timeval *__tv, 24952: const struct timezone *__tz) 24952: noexcept (true); 24952: 24952: 24952: 24952: 24952: 24952: extern int adjtime (const struct timeval *__delta, 24952: struct timeval *__olddelta) noexcept (true); 24952: # 114 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 24952: enum __itimer_which 24952: { 24952: 24952: ITIMER_REAL = 0, 24952: 24952: 24952: ITIMER_VIRTUAL = 1, 24952: 24952: 24952: 24952: ITIMER_PROF = 2 24952: 24952: }; 24952: 24952: 24952: 24952: struct itimerval 24952: { 24952: 24952: struct timeval it_interval; 24952: 24952: struct timeval it_value; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: typedef int __itimer_which_t; 24952: 24952: 24952: 24952: 24952: 24952: extern int getitimer (__itimer_which_t __which, 24952: struct itimerval *__value) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int setitimer (__itimer_which_t __which, 24952: const struct itimerval *__restrict __new, 24952: struct itimerval *__restrict __old) noexcept (true); 24952: 24952: 24952: 24952: 24952: extern int utimes (const char *__file, const struct timeval __tvp[2]) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: # 189 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 24952: extern int lutimes (const char *__file, const struct timeval __tvp[2]) 24952: noexcept (true) __attribute__ ((__nonnull__ (1))); 24952: 24952: 24952: extern int futimes (int __fd, const struct timeval __tvp[2]) noexcept (true); 24952: # 214 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 24952: extern int futimesat (int __fd, const char *__file, 24952: const struct timeval __tvp[2]) noexcept (true); 24952: # 258 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 24952: } 24952: # 43 "/build/reproducible-path/rocksdb-8.9.1/port/sys_time.h" 2 24952: 24952: 24952: 24952: # 45 "/build/reproducible-path/rocksdb-8.9.1/port/sys_time.h" 24952: namespace rocksdb { 24952: 24952: namespace port { 24952: 24952: using TimeVal = struct timeval; 24952: 24952: inline void GetTimeOfDay(TimeVal* tv, struct timezone* tz) { 24952: gettimeofday(tv, tz); 24952: } 24952: 24952: inline struct tm* LocalTimeR(const time_t* timep, struct tm* result) { 24952: return localtime_r(timep, result); 24952: } 24952: 24952: } 24952: 24952: } 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/logging/log_buffer.h" 2 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class Logger; 24952: 24952: 24952: class LogBuffer { 24952: public: 24952: 24952: 24952: LogBuffer(const InfoLogLevel log_level, Logger* info_log); 24952: 24952: 24952: 24952: void AddLogToBuffer(size_t max_log_size, const char* format, va_list ap); 24952: 24952: size_t IsEmpty() const { return logs_.empty(); } 24952: 24952: 24952: void FlushBufferToLog(); 24952: static const size_t kDefaultMaxLogSize = 512; 24952: 24952: private: 24952: 24952: struct BufferedLog { 24952: port::TimeVal now_tv; 24952: char message[1]; 24952: }; 24952: 24952: const InfoLogLevel log_level_; 24952: Logger* info_log_; 24952: Arena arena_; 24952: autovector logs_; 24952: }; 24952: 24952: 24952: 24952: 24952: extern void LogToBuffer(LogBuffer* log_buffer, size_t max_log_size, 24952: const char* format, ...); 24952: 24952: extern void LogToBuffer(LogBuffer* log_buffer, const char* format, ...); 24952: 24952: } 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 2 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class JSONWriter { 24952: public: 24952: JSONWriter() : state_(kExpectKey), first_element_(true), in_array_(false) { 24952: stream_ << "{"; 24952: } 24952: 24952: void AddKey(const std::string& key) { 24952: 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: (static_cast ( 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: state_ == kExpectKey 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: "state_ == kExpectKey" 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: , "./logging/event_logger.h", 25, __extension__ __PRETTY_FUNCTION__)) 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: ; 24952: if (!first_element_) { 24952: stream_ << ", "; 24952: } 24952: stream_ << "\"" << key << "\": "; 24952: state_ = kExpectValue; 24952: first_element_ = false; 24952: } 24952: 24952: void AddValue(const char* value) { 24952: 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: (static_cast ( 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: state_ == kExpectValue || state_ == kInArray 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: "state_ == kExpectValue || state_ == kInArray" 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: , "./logging/event_logger.h", 35, __extension__ __PRETTY_FUNCTION__)) 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: ; 24952: if (state_ == kInArray && !first_element_) { 24952: stream_ << ", "; 24952: } 24952: stream_ << "\"" << value << "\""; 24952: if (state_ != kInArray) { 24952: state_ = kExpectKey; 24952: } 24952: first_element_ = false; 24952: } 24952: 24952: template 24952: void AddValue(const T& value) { 24952: 24952: # 48 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: (static_cast ( 24952: # 48 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: state_ == kExpectValue || state_ == kInArray 24952: # 48 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 48 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: "state_ == kExpectValue || state_ == kInArray" 24952: # 48 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: , "./logging/event_logger.h", 48, __extension__ __PRETTY_FUNCTION__)) 24952: # 48 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: ; 24952: if (state_ == kInArray && !first_element_) { 24952: stream_ << ", "; 24952: } 24952: stream_ << value; 24952: if (state_ != kInArray) { 24952: state_ = kExpectKey; 24952: } 24952: first_element_ = false; 24952: } 24952: 24952: void StartArray() { 24952: 24952: # 60 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: (static_cast ( 24952: # 60 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: state_ == kExpectValue 24952: # 60 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 60 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: "state_ == kExpectValue" 24952: # 60 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: , "./logging/event_logger.h", 60, __extension__ __PRETTY_FUNCTION__)) 24952: # 60 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: ; 24952: state_ = kInArray; 24952: in_array_ = true; 24952: stream_ << "["; 24952: first_element_ = true; 24952: } 24952: 24952: void EndArray() { 24952: 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: (static_cast ( 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: state_ == kInArray 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: "state_ == kInArray" 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: , "./logging/event_logger.h", 68, __extension__ __PRETTY_FUNCTION__)) 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: ; 24952: state_ = kExpectKey; 24952: in_array_ = false; 24952: stream_ << "]"; 24952: first_element_ = false; 24952: } 24952: 24952: void StartObject() { 24952: 24952: # 76 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: (static_cast ( 24952: # 76 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: state_ == kExpectValue 24952: # 76 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 76 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: "state_ == kExpectValue" 24952: # 76 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: , "./logging/event_logger.h", 76, __extension__ __PRETTY_FUNCTION__)) 24952: # 76 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: ; 24952: state_ = kExpectKey; 24952: stream_ << "{"; 24952: first_element_ = true; 24952: } 24952: 24952: void EndObject() { 24952: 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: (static_cast ( 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: state_ == kExpectKey 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: "state_ == kExpectKey" 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: , "./logging/event_logger.h", 83, __extension__ __PRETTY_FUNCTION__)) 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: ; 24952: stream_ << "}"; 24952: first_element_ = false; 24952: } 24952: 24952: void StartArrayedObject() { 24952: 24952: # 89 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: (static_cast ( 24952: # 89 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: state_ == kInArray && in_array_ 24952: # 89 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 89 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: "state_ == kInArray && in_array_" 24952: # 89 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: , "./logging/event_logger.h", 89, __extension__ __PRETTY_FUNCTION__)) 24952: # 89 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: ; 24952: state_ = kExpectValue; 24952: if (!first_element_) { 24952: stream_ << ", "; 24952: } 24952: StartObject(); 24952: } 24952: 24952: void EndArrayedObject() { 24952: 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: (static_cast ( 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: in_array_ 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: "in_array_" 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: , "./logging/event_logger.h", 98, __extension__ __PRETTY_FUNCTION__)) 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: ; 24952: EndObject(); 24952: state_ = kInArray; 24952: } 24952: 24952: std::string Get() const { return stream_.str(); } 24952: 24952: JSONWriter& operator<<(const char* val) { 24952: if (state_ == kExpectKey) { 24952: AddKey(val); 24952: } else { 24952: AddValue(val); 24952: } 24952: return *this; 24952: } 24952: 24952: JSONWriter& operator<<(const std::string& val) { 24952: return *this << val.c_str(); 24952: } 24952: 24952: template 24952: JSONWriter& operator<<(const T& val) { 24952: 24952: # 120 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: (static_cast ( 24952: # 120 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: state_ != kExpectKey 24952: # 120 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 120 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: "state_ != kExpectKey" 24952: # 120 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 3 4 24952: , "./logging/event_logger.h", 120, __extension__ __PRETTY_FUNCTION__)) 24952: # 120 "/build/reproducible-path/rocksdb-8.9.1/logging/event_logger.h" 24952: ; 24952: AddValue(val); 24952: return *this; 24952: } 24952: 24952: private: 24952: enum JSONWriterState { 24952: kExpectKey, 24952: kExpectValue, 24952: kInArray, 24952: kInArrayedObject, 24952: }; 24952: JSONWriterState state_; 24952: bool first_element_; 24952: bool in_array_; 24952: std::ostringstream stream_; 24952: }; 24952: 24952: class EventLoggerStream { 24952: public: 24952: template 24952: EventLoggerStream& operator<<(const T& val) { 24952: MakeStream(); 24952: *json_writer_ << val; 24952: return *this; 24952: } 24952: 24952: void StartArray() { json_writer_->StartArray(); } 24952: void EndArray() { json_writer_->EndArray(); } 24952: void StartObject() { json_writer_->StartObject(); } 24952: void EndObject() { json_writer_->EndObject(); } 24952: 24952: ~EventLoggerStream(); 24952: 24952: private: 24952: void MakeStream() { 24952: if (!json_writer_) { 24952: json_writer_ = new JSONWriter(); 24952: *this << "time_micros" 24952: << std::chrono::duration_cast( 24952: std::chrono::system_clock::now().time_since_epoch()) 24952: .count(); 24952: } 24952: } 24952: friend class EventLogger; 24952: explicit EventLoggerStream(Logger* logger); 24952: explicit EventLoggerStream(LogBuffer* log_buffer, const size_t max_log_size); 24952: 24952: Logger* const logger_; 24952: LogBuffer* const log_buffer_; 24952: const size_t max_log_size_; 24952: 24952: JSONWriter* json_writer_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: class EventLogger { 24952: public: 24952: static const char* Prefix() { return "EVENT_LOG_v1"; } 24952: 24952: explicit EventLogger(Logger* logger) : logger_(logger) {} 24952: EventLoggerStream Log() { return EventLoggerStream(logger_); } 24952: EventLoggerStream LogToBuffer(LogBuffer* log_buffer) { 24952: return EventLoggerStream(log_buffer, LogBuffer::kDefaultMaxLogSize); 24952: } 24952: EventLoggerStream LogToBuffer(LogBuffer* log_buffer, 24952: const size_t max_log_size) { 24952: return EventLoggerStream(log_buffer, max_log_size); 24952: } 24952: void Log(const JSONWriter& jwriter); 24952: static void Log(Logger* logger, const JSONWriter& jwriter); 24952: static void LogToBuffer( 24952: LogBuffer* log_buffer, const JSONWriter& jwriter, 24952: const size_t max_log_size = LogBuffer::kDefaultMaxLogSize); 24952: 24952: private: 24952: Logger* logger_; 24952: }; 24952: 24952: } 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/db/wal_edit.h" 2 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class JSONWriter; 24952: class Slice; 24952: class Status; 24952: 24952: using WalNumber = uint64_t; 24952: 24952: 24952: class WalMetadata { 24952: public: 24952: WalMetadata() = default; 24952: 24952: explicit WalMetadata(uint64_t synced_size_bytes) 24952: : synced_size_bytes_(synced_size_bytes) {} 24952: 24952: bool HasSyncedSize() const { return synced_size_bytes_ != kUnknownWalSize; } 24952: 24952: void SetSyncedSizeInBytes(uint64_t bytes) { synced_size_bytes_ = bytes; } 24952: 24952: uint64_t GetSyncedSizeInBytes() const { return synced_size_bytes_; } 24952: 24952: private: 24952: friend bool operator==(const WalMetadata& lhs, const WalMetadata& rhs); 24952: friend bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs); 24952: 24952: 24952: constexpr static uint64_t kUnknownWalSize = 24952: std::numeric_limits::max(); 24952: 24952: 24952: uint64_t synced_size_bytes_ = kUnknownWalSize; 24952: }; 24952: 24952: inline bool operator==(const WalMetadata& lhs, const WalMetadata& rhs) { 24952: return lhs.synced_size_bytes_ == rhs.synced_size_bytes_; 24952: } 24952: 24952: inline bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs) { 24952: return !(lhs == rhs); 24952: } 24952: 24952: 24952: enum class WalAdditionTag : uint32_t { 24952: 24952: kTerminate = 1, 24952: 24952: kSyncedSize = 2, 24952: 24952: }; 24952: 24952: 24952: class WalAddition { 24952: public: 24952: WalAddition() : number_(0), metadata_() {} 24952: 24952: explicit WalAddition(WalNumber number) : number_(number), metadata_() {} 24952: 24952: WalAddition(WalNumber number, WalMetadata meta) 24952: : number_(number), metadata_(std::move(meta)) {} 24952: 24952: WalNumber GetLogNumber() const { return number_; } 24952: 24952: const WalMetadata& GetMetadata() const { return metadata_; } 24952: 24952: void EncodeTo(std::string* dst) const; 24952: 24952: Status DecodeFrom(Slice* src); 24952: 24952: std::string DebugString() const; 24952: 24952: private: 24952: WalNumber number_; 24952: WalMetadata metadata_; 24952: }; 24952: 24952: std::ostream& operator<<(std::ostream& os, const WalAddition& wal); 24952: JSONWriter& operator<<(JSONWriter& jw, const WalAddition& wal); 24952: 24952: using WalAdditions = std::vector; 24952: 24952: 24952: class WalDeletion { 24952: public: 24952: WalDeletion() : number_(kEmpty) {} 24952: 24952: explicit WalDeletion(WalNumber number) : number_(number) {} 24952: 24952: WalNumber GetLogNumber() const { return number_; } 24952: 24952: void EncodeTo(std::string* dst) const; 24952: 24952: Status DecodeFrom(Slice* src); 24952: 24952: std::string DebugString() const; 24952: 24952: bool IsEmpty() const { return number_ == kEmpty; } 24952: 24952: void Reset() { number_ = kEmpty; } 24952: 24952: private: 24952: static constexpr WalNumber kEmpty = 0; 24952: 24952: WalNumber number_; 24952: }; 24952: 24952: std::ostream& operator<<(std::ostream& os, const WalDeletion& wal); 24952: JSONWriter& operator<<(JSONWriter& jw, const WalDeletion& wal); 24952: # 138 "/build/reproducible-path/rocksdb-8.9.1/db/wal_edit.h" 24952: class WalSet { 24952: public: 24952: 24952: 24952: 24952: 24952: 24952: Status AddWal(const WalAddition& wal); 24952: Status AddWals(const WalAdditions& wals); 24952: 24952: 24952: 24952: Status DeleteWalsBefore(WalNumber wal); 24952: 24952: 24952: void Reset(); 24952: 24952: 24952: WalNumber GetMinWalNumberToKeep() const { return min_wal_number_to_keep_; } 24952: 24952: const std::map& GetWals() const { return wals_; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: Status CheckWals( 24952: Env* env, 24952: const std::unordered_map& logs_on_disk) const; 24952: 24952: private: 24952: std::map wals_; 24952: 24952: 24952: WalNumber min_wal_number_to_keep_ = 0; 24952: }; 24952: 24952: } 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 2 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: namespace rocksdb { 24952: 24952: class Logger; 24952: class SecondaryCacheResultHandle; 24952: class Statistics; 24952: # 44 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: class Cache { 24952: public: 24952: 24952: struct Handle {}; 24952: 24952: public: 24952: 24952: 24952: using ObjectPtr = void*; 24952: 24952: 24952: 24952: struct CreateContext {}; 24952: 24952: public: 24952: # 68 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: enum class Priority { HIGH, LOW, BOTTOM }; 24952: # 97 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: using SizeCallback = size_t (*)(ObjectPtr obj); 24952: 24952: 24952: 24952: 24952: 24952: using SaveToCallback = Status (*)(ObjectPtr from_obj, size_t from_offset, 24952: size_t length, char* out_buf); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: using DeleterFn = void (*)(ObjectPtr obj, MemoryAllocator* allocator); 24952: # 124 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: using CreateCallback = Status (*)(const Slice& data, CompressionType type, 24952: CacheTier source, CreateContext* context, 24952: MemoryAllocator* allocator, 24952: ObjectPtr* out_obj, size_t* out_charge); 24952: 24952: 24952: 24952: 24952: struct CacheItemHelper { 24952: 24952: 24952: 24952: DeleterFn del_cb; 24952: 24952: 24952: 24952: SizeCallback size_cb; 24952: SaveToCallback saveto_cb; 24952: CreateCallback create_cb; 24952: 24952: CacheEntryRole role; 24952: 24952: 24952: 24952: 24952: const CacheItemHelper* without_secondary_compat; 24952: 24952: CacheItemHelper() : CacheItemHelper(CacheEntryRole::kMisc) {} 24952: 24952: 24952: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb = nullptr) 24952: : CacheItemHelper(_role, _del_cb, nullptr, nullptr, nullptr, this) {} 24952: 24952: 24952: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb, 24952: SizeCallback _size_cb, SaveToCallback _saveto_cb, 24952: CreateCallback _create_cb, 24952: const CacheItemHelper* _without_secondary_compat) 24952: : del_cb(_del_cb), 24952: size_cb(_size_cb), 24952: saveto_cb(_saveto_cb), 24952: create_cb(_create_cb), 24952: role(_role), 24952: without_secondary_compat(_without_secondary_compat) { 24952: 24952: 24952: 24952: # 170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: (static_cast ( 24952: # 170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: (size_cb != nullptr) == (saveto_cb != nullptr) 24952: # 170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: "(size_cb != nullptr) == (saveto_cb != nullptr)" 24952: # 170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: , "./include/rocksdb/advanced_cache.h", 170, __extension__ __PRETTY_FUNCTION__)) 24952: # 170 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: ; 24952: 24952: # 171 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: (static_cast ( 24952: # 171 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: (size_cb != nullptr) == (create_cb != nullptr) 24952: # 171 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 171 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: "(size_cb != nullptr) == (create_cb != nullptr)" 24952: # 171 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: , "./include/rocksdb/advanced_cache.h", 171, __extension__ __PRETTY_FUNCTION__)) 24952: # 171 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: ; 24952: 24952: 24952: 24952: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: (static_cast ( 24952: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: role == without_secondary_compat->role 24952: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: "role == without_secondary_compat->role" 24952: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: , "./include/rocksdb/advanced_cache.h", 174, __extension__ __PRETTY_FUNCTION__)) 24952: # 174 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: ; 24952: 24952: # 175 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: (static_cast ( 24952: # 175 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: del_cb == without_secondary_compat->del_cb 24952: # 175 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 175 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: "del_cb == without_secondary_compat->del_cb" 24952: # 175 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: , "./include/rocksdb/advanced_cache.h", 175, __extension__ __PRETTY_FUNCTION__)) 24952: # 175 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: ; 24952: 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: (static_cast ( 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: !without_secondary_compat->IsSecondaryCacheCompatible() 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: "!without_secondary_compat->IsSecondaryCacheCompatible()" 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: , "./include/rocksdb/advanced_cache.h", 176, __extension__ __PRETTY_FUNCTION__)) 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: ; 24952: } 24952: inline bool IsSecondaryCacheCompatible() const { 24952: return size_cb != nullptr; 24952: } 24952: }; 24952: 24952: public: 24952: Cache(std::shared_ptr allocator = nullptr) 24952: : memory_allocator_(std::move(allocator)) {} 24952: 24952: Cache(const Cache&) = delete; 24952: Cache& operator=(const Cache&) = delete; 24952: 24952: 24952: virtual ~Cache() {} 24952: # 204 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: static Status CreateFromString(const ConfigOptions& config_options, 24952: const std::string& value, 24952: std::shared_ptr* result); 24952: 24952: public: 24952: 24952: virtual const char* Name() const = 0; 24952: # 260 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: virtual Status Insert( 24952: const Slice& key, ObjectPtr obj, const CacheItemHelper* helper, 24952: size_t charge, Handle** handle = nullptr, 24952: Priority priority = Priority::LOW, const Slice& compressed = Slice(), 24952: CompressionType type = CompressionType::kNoCompression) = 0; 24952: # 275 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: virtual Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 24952: const CacheItemHelper* helper, size_t charge, 24952: bool allow_uncharged) = 0; 24952: # 289 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: virtual Handle* Lookup(const Slice& key, 24952: const CacheItemHelper* helper = nullptr, 24952: CreateContext* create_context = nullptr, 24952: Priority priority = Priority::LOW, 24952: Statistics* stats = nullptr) = 0; 24952: 24952: 24952: inline Handle* BasicLookup(const Slice& key, Statistics* stats) { 24952: return Lookup(key, nullptr, nullptr, Priority::LOW, stats); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual bool Ref(Handle* handle) = 0; 24952: # 317 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: virtual bool Release(Handle* handle, bool erase_if_last_ref = false) = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual ObjectPtr Value(Handle* handle) = 0; 24952: 24952: 24952: 24952: 24952: virtual void Erase(const Slice& key) = 0; 24952: 24952: 24952: 24952: 24952: virtual uint64_t NewId() = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual void SetCapacity(size_t capacity) = 0; 24952: 24952: 24952: 24952: virtual void SetStrictCapacityLimit(bool strict_capacity_limit) = 0; 24952: 24952: 24952: 24952: virtual bool HasStrictCapacityLimit() const = 0; 24952: 24952: 24952: virtual size_t GetCapacity() const = 0; 24952: 24952: 24952: virtual size_t GetUsage() const = 0; 24952: 24952: 24952: 24952: 24952: virtual size_t GetOccupancyCount() const { return 24952: # 359 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: (4294967295U) 24952: # 359 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: ; } 24952: 24952: 24952: 24952: 24952: virtual size_t GetTableAddressCount() const { return 0; } 24952: 24952: 24952: virtual size_t GetUsage(Handle* handle) const = 0; 24952: 24952: 24952: virtual size_t GetPinnedUsage() const = 0; 24952: 24952: 24952: virtual size_t GetCharge(Handle* handle) const = 0; 24952: 24952: 24952: virtual const CacheItemHelper* GetCacheItemHelper(Handle* handle) const = 0; 24952: 24952: virtual Status GetSecondaryCacheCapacity(size_t& ) const { 24952: return Status::NotSupported(); 24952: } 24952: 24952: virtual Status GetSecondaryCachePinnedUsage(size_t& ) const { 24952: return Status::NotSupported(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void DisownData() { 24952: 24952: } 24952: 24952: struct ApplyToAllEntriesOptions { 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t average_entries_per_lock = 256; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: virtual void ApplyToAllEntries( 24952: const std::function& callback, 24952: const ApplyToAllEntriesOptions& opts) = 0; 24952: 24952: 24952: 24952: virtual void EraseUnRefEntries() = 0; 24952: 24952: virtual std::string GetPrintableOptions() const { return ""; } 24952: 24952: 24952: 24952: 24952: 24952: virtual void ReportProblems( 24952: const std::shared_ptr& ) const {} 24952: 24952: MemoryAllocator* memory_allocator() const { return memory_allocator_.get(); } 24952: 24952: 24952: virtual uint32_t GetHashSeed() const { return 0; } 24952: # 440 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: virtual bool Release(Handle* handle, bool , 24952: bool erase_if_last_ref) { 24952: return Release(handle, erase_if_last_ref); 24952: } 24952: 24952: 24952: 24952: 24952: struct AsyncLookupHandle { 24952: 24952: 24952: 24952: Slice key; 24952: const CacheItemHelper* helper = nullptr; 24952: CreateContext* create_context = nullptr; 24952: Priority priority = Priority::LOW; 24952: Statistics* stats = nullptr; 24952: 24952: AsyncLookupHandle() {} 24952: AsyncLookupHandle(const Slice& _key, const CacheItemHelper* _helper, 24952: CreateContext* _create_context, 24952: Priority _priority = Priority::LOW, 24952: Statistics* _stats = nullptr) 24952: : key(_key), 24952: helper(_helper), 24952: create_context(_create_context), 24952: priority(_priority), 24952: stats(_stats) {} 24952: 24952: 24952: ~AsyncLookupHandle() { 24952: # 470 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: (static_cast ( 24952: # 470 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: !IsPending() 24952: # 470 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 470 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: "!IsPending()" 24952: # 470 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 3 4 24952: , "./include/rocksdb/advanced_cache.h", 470, __extension__ __PRETTY_FUNCTION__)) 24952: # 470 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: ; } 24952: 24952: 24952: AsyncLookupHandle(const AsyncLookupHandle&) = delete; 24952: AsyncLookupHandle operator=(const AsyncLookupHandle&) = delete; 24952: AsyncLookupHandle(AsyncLookupHandle&&) = delete; 24952: AsyncLookupHandle operator=(AsyncLookupHandle&&) = delete; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool IsReady(); 24952: 24952: 24952: bool IsPending(); 24952: 24952: 24952: 24952: 24952: 24952: Handle* Result(); 24952: 24952: 24952: Handle* result_handle = nullptr; 24952: SecondaryCacheResultHandle* pending_handle = nullptr; 24952: SecondaryCache* pending_cache = nullptr; 24952: bool found_dummy_entry = false; 24952: bool kept_in_sec_cache = false; 24952: }; 24952: # 521 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/advanced_cache.h" 24952: virtual void StartAsyncLookup(AsyncLookupHandle& async_handle); 24952: 24952: 24952: 24952: Handle* Wait(AsyncLookupHandle& async_handle); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual void WaitAll(AsyncLookupHandle* , size_t ); 24952: 24952: 24952: 24952: 24952: 24952: using EvictionCallback = 24952: std::function; 24952: 24952: 24952: 24952: void SetEvictionCallback(EvictionCallback&& fn); 24952: 24952: protected: 24952: std::shared_ptr memory_allocator_; 24952: EvictionCallback eviction_callback_; 24952: }; 24952: 24952: 24952: 24952: class CacheWrapper : public Cache { 24952: public: 24952: explicit CacheWrapper(std::shared_ptr target) 24952: : target_(std::move(target)) {} 24952: 24952: 24952: 24952: 24952: Status Insert( 24952: const Slice& key, ObjectPtr value, const CacheItemHelper* helper, 24952: size_t charge, Handle** handle = nullptr, 24952: Priority priority = Priority::LOW, 24952: const Slice& compressed_value = Slice(), 24952: CompressionType type = CompressionType::kNoCompression) override { 24952: return target_->Insert(key, value, helper, charge, handle, priority, 24952: compressed_value, type); 24952: } 24952: 24952: Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 24952: const CacheItemHelper* helper, size_t charge, 24952: bool allow_uncharged) override { 24952: return target_->CreateStandalone(key, obj, helper, charge, allow_uncharged); 24952: } 24952: 24952: Handle* Lookup(const Slice& key, const CacheItemHelper* helper, 24952: CreateContext* create_context, 24952: Priority priority = Priority::LOW, 24952: Statistics* stats = nullptr) override { 24952: return target_->Lookup(key, helper, create_context, priority, stats); 24952: } 24952: 24952: bool Ref(Handle* handle) override { return target_->Ref(handle); } 24952: 24952: using Cache::Release; 24952: bool Release(Handle* handle, bool erase_if_last_ref = false) override { 24952: return target_->Release(handle, erase_if_last_ref); 24952: } 24952: 24952: ObjectPtr Value(Handle* handle) override { return target_->Value(handle); } 24952: 24952: void Erase(const Slice& key) override { target_->Erase(key); } 24952: uint64_t NewId() override { return target_->NewId(); } 24952: 24952: void SetCapacity(size_t capacity) override { target_->SetCapacity(capacity); } 24952: 24952: void SetStrictCapacityLimit(bool strict_capacity_limit) override { 24952: target_->SetStrictCapacityLimit(strict_capacity_limit); 24952: } 24952: 24952: bool HasStrictCapacityLimit() const override { 24952: return target_->HasStrictCapacityLimit(); 24952: } 24952: 24952: size_t GetOccupancyCount() const override { 24952: return target_->GetOccupancyCount(); 24952: } 24952: 24952: size_t GetTableAddressCount() const override { 24952: return target_->GetTableAddressCount(); 24952: } 24952: 24952: size_t GetCapacity() const override { return target_->GetCapacity(); } 24952: 24952: size_t GetUsage() const override { return target_->GetUsage(); } 24952: 24952: size_t GetUsage(Handle* handle) const override { 24952: return target_->GetUsage(handle); 24952: } 24952: 24952: size_t GetPinnedUsage() const override { return target_->GetPinnedUsage(); } 24952: 24952: size_t GetCharge(Handle* handle) const override { 24952: return target_->GetCharge(handle); 24952: } 24952: 24952: const CacheItemHelper* GetCacheItemHelper(Handle* handle) const override { 24952: return target_->GetCacheItemHelper(handle); 24952: } 24952: 24952: void ApplyToAllEntries( 24952: const std::function& callback, 24952: const ApplyToAllEntriesOptions& opts) override { 24952: target_->ApplyToAllEntries(callback, opts); 24952: } 24952: 24952: void EraseUnRefEntries() override { target_->EraseUnRefEntries(); } 24952: 24952: void StartAsyncLookup(AsyncLookupHandle& async_handle) override { 24952: target_->StartAsyncLookup(async_handle); 24952: } 24952: 24952: void WaitAll(AsyncLookupHandle* async_handles, size_t count) override { 24952: target_->WaitAll(async_handles, count); 24952: } 24952: 24952: uint32_t GetHashSeed() const override { return target_->GetHashSeed(); } 24952: 24952: void ReportProblems(const std::shared_ptr& info_log) const override { 24952: target_->ReportProblems(info_log); 24952: } 24952: 24952: const std::shared_ptr& GetTarget() { return target_; } 24952: 24952: protected: 24952: std::shared_ptr target_; 24952: }; 24952: 24952: 24952: 24952: extern const Cache::CacheItemHelper kNoopCacheItemHelper; 24952: 24952: } 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 24952: 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/table_reader_caller.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: enum TableReaderCaller : char { 24952: kUserGet = 1, 24952: kUserMultiGet = 2, 24952: kUserIterator = 3, 24952: kUserApproximateSize = 4, 24952: kUserVerifyChecksum = 5, 24952: kSSTDumpTool = 6, 24952: kExternalSSTIngestion = 7, 24952: kRepair = 8, 24952: kPrefetch = 9, 24952: kCompaction = 10, 24952: 24952: 24952: kCompactionRefill = 11, 24952: 24952: 24952: kFlush = 12, 24952: 24952: kSSTFileReader = 13, 24952: 24952: 24952: kUncategorized = 14, 24952: 24952: kMaxBlockCacheLookupCaller 24952: }; 24952: } 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: class BlobFetcher; 24952: class Comparator; 24952: class Logger; 24952: class MergeContext; 24952: class MergeOperator; 24952: class PinnableWideColumns; 24952: class PinnedIteratorsManager; 24952: class Statistics; 24952: class SystemClock; 24952: struct ParsedInternalKey; 24952: 24952: 24952: 24952: 24952: struct GetContextStats { 24952: uint64_t num_cache_hit = 0; 24952: uint64_t num_cache_index_hit = 0; 24952: uint64_t num_cache_data_hit = 0; 24952: uint64_t num_cache_filter_hit = 0; 24952: uint64_t num_cache_compression_dict_hit = 0; 24952: uint64_t num_cache_index_miss = 0; 24952: uint64_t num_cache_filter_miss = 0; 24952: uint64_t num_cache_data_miss = 0; 24952: uint64_t num_cache_compression_dict_miss = 0; 24952: uint64_t num_cache_bytes_read = 0; 24952: uint64_t num_cache_miss = 0; 24952: uint64_t num_cache_add = 0; 24952: uint64_t num_cache_add_redundant = 0; 24952: uint64_t num_cache_bytes_write = 0; 24952: uint64_t num_cache_index_add = 0; 24952: uint64_t num_cache_index_add_redundant = 0; 24952: uint64_t num_cache_index_bytes_insert = 0; 24952: uint64_t num_cache_data_add = 0; 24952: uint64_t num_cache_data_add_redundant = 0; 24952: uint64_t num_cache_data_bytes_insert = 0; 24952: uint64_t num_cache_filter_add = 0; 24952: uint64_t num_cache_filter_add_redundant = 0; 24952: uint64_t num_cache_filter_bytes_insert = 0; 24952: uint64_t num_cache_compression_dict_add = 0; 24952: uint64_t num_cache_compression_dict_add_redundant = 0; 24952: uint64_t num_cache_compression_dict_bytes_insert = 0; 24952: 24952: uint64_t num_filter_read = 0; 24952: uint64_t num_index_read = 0; 24952: uint64_t num_sst_read = 0; 24952: }; 24952: # 67 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 24952: class GetContext { 24952: public: 24952: 24952: 24952: enum GetState { 24952: kNotFound, 24952: kFound, 24952: kDeleted, 24952: kCorrupt, 24952: kMerge, 24952: kUnexpectedBlobIndex, 24952: kMergeOperatorFailed, 24952: }; 24952: GetContextStats get_context_stats_; 24952: # 102 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 24952: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 24952: Logger* logger, Statistics* statistics, GetState init_state, 24952: const Slice& user_key, PinnableSlice* value, 24952: PinnableWideColumns* columns, bool* value_found, 24952: MergeContext* merge_context, bool do_merge, 24952: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 24952: SequenceNumber* seq = nullptr, 24952: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 24952: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 24952: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 24952: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 24952: Logger* logger, Statistics* statistics, GetState init_state, 24952: const Slice& user_key, PinnableSlice* value, 24952: PinnableWideColumns* columns, std::string* timestamp, 24952: bool* value_found, MergeContext* merge_context, bool do_merge, 24952: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 24952: SequenceNumber* seq = nullptr, 24952: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 24952: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 24952: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 24952: 24952: GetContext() = delete; 24952: 24952: 24952: 24952: void MarkKeyMayExist(); 24952: # 137 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 24952: bool SaveValue(const ParsedInternalKey& parsed_key, const Slice& value, 24952: bool* matched, Cleanable* value_pinner = nullptr); 24952: 24952: 24952: 24952: void SaveValue(const Slice& value, SequenceNumber seq); 24952: 24952: GetState State() const { return state_; } 24952: 24952: SequenceNumber* max_covering_tombstone_seq() { 24952: return max_covering_tombstone_seq_; 24952: } 24952: 24952: bool NeedTimestamp() { return timestamp_ != nullptr; } 24952: 24952: void SetTimestampFromRangeTombstone(const Slice& timestamp) { 24952: 24952: # 153 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 3 4 24952: (static_cast ( 24952: # 153 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 24952: timestamp_ 24952: # 153 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 153 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 24952: "timestamp_" 24952: # 153 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 3 4 24952: , "./table/get_context.h", 153, __extension__ __PRETTY_FUNCTION__)) 24952: # 153 "/build/reproducible-path/rocksdb-8.9.1/table/get_context.h" 24952: ; 24952: timestamp_->assign(timestamp.data(), timestamp.size()); 24952: ts_from_rangetombstone_ = true; 24952: } 24952: 24952: PinnedIteratorsManager* pinned_iters_mgr() { return pinned_iters_mgr_; } 24952: 24952: 24952: 24952: 24952: void SetReplayLog(std::string* replay_log) { replay_log_ = replay_log; } 24952: 24952: 24952: bool NeedToReadSequence() const { return (seq_ != nullptr); } 24952: 24952: bool sample() const { return sample_; } 24952: 24952: bool CheckCallback(SequenceNumber seq) { 24952: if (callback_) { 24952: return callback_->IsVisible(seq); 24952: } 24952: return true; 24952: } 24952: 24952: void ReportCounters(); 24952: 24952: bool has_callback() const { return callback_ != nullptr; } 24952: 24952: const Slice& ukey_to_get_blob_value() const { 24952: if (!ukey_with_ts_found_.empty()) { 24952: return ukey_with_ts_found_; 24952: } else { 24952: return user_key_; 24952: } 24952: } 24952: 24952: uint64_t get_tracing_get_id() const { return tracing_get_id_; } 24952: 24952: void push_operand(const Slice& value, Cleanable* value_pinner); 24952: 24952: private: 24952: 24952: 24952: void PostprocessMerge(const Status& merge_status); 24952: 24952: 24952: 24952: void MergeWithNoBaseValue(); 24952: void MergeWithPlainBaseValue(const Slice& value); 24952: void MergeWithWideColumnBaseValue(const Slice& entity); 24952: 24952: bool GetBlobValue(const Slice& user_key, const Slice& blob_index, 24952: PinnableSlice* blob_value); 24952: 24952: const Comparator* ucmp_; 24952: const MergeOperator* merge_operator_; 24952: 24952: Logger* logger_; 24952: Statistics* statistics_; 24952: 24952: GetState state_; 24952: Slice user_key_; 24952: 24952: 24952: 24952: PinnableSlice ukey_with_ts_found_; 24952: PinnableSlice* pinnable_val_; 24952: PinnableWideColumns* columns_; 24952: std::string* timestamp_; 24952: bool ts_from_rangetombstone_{false}; 24952: bool* value_found_; 24952: MergeContext* merge_context_; 24952: SequenceNumber* max_covering_tombstone_seq_; 24952: SystemClock* clock_; 24952: 24952: 24952: SequenceNumber* seq_; 24952: std::string* replay_log_; 24952: 24952: PinnedIteratorsManager* pinned_iters_mgr_; 24952: ReadCallback* callback_; 24952: bool sample_; 24952: 24952: 24952: 24952: bool do_merge_; 24952: bool* is_blob_index_; 24952: 24952: 24952: const uint64_t tracing_get_id_; 24952: BlobFetcher* blob_fetcher_; 24952: }; 24952: 24952: 24952: 24952: 24952: void replayGetContextLog(const Slice& replay_log, const Slice& user_key, 24952: GetContext* get_context, 24952: Cleanable* value_pinner = nullptr, 24952: SequenceNumber seq_no = kMaxSequenceNumber); 24952: 24952: } 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/lookup_key.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/db/lookup_key.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: class LookupKey { 24952: public: 24952: 24952: 24952: LookupKey(const Slice& _user_key, SequenceNumber sequence, 24952: const Slice* ts = nullptr); 24952: 24952: ~LookupKey(); 24952: 24952: 24952: Slice memtable_key() const { 24952: return Slice(start_, static_cast(end_ - start_)); 24952: } 24952: 24952: 24952: Slice internal_key() const { 24952: return Slice(kstart_, static_cast(end_ - kstart_)); 24952: } 24952: 24952: 24952: 24952: 24952: Slice user_key() const { 24952: return Slice(kstart_, static_cast(end_ - kstart_ - 8)); 24952: } 24952: 24952: private: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: const char* start_; 24952: const char* kstart_; 24952: const char* end_; 24952: char space_[200]; 24952: 24952: 24952: LookupKey(const LookupKey&); 24952: void operator=(const LookupKey&); 24952: }; 24952: 24952: inline LookupKey::~LookupKey() { 24952: if (start_ != space_) delete[] start_; 24952: } 24952: 24952: } 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: const std::vector empty_operand_list; 24952: 24952: 24952: 24952: 24952: 24952: class MergeContext { 24952: public: 24952: 24952: void Clear() { 24952: if (operand_list_) { 24952: operand_list_->clear(); 24952: copied_operands_->clear(); 24952: } 24952: } 24952: 24952: 24952: void PushOperand(const Slice& operand_slice, bool operand_pinned = false) { 24952: Initialize(); 24952: SetDirectionBackward(); 24952: 24952: if (operand_pinned) { 24952: operand_list_->push_back(operand_slice); 24952: } else { 24952: 24952: copied_operands_->emplace_back( 24952: new std::string(operand_slice.data(), operand_slice.size())); 24952: operand_list_->push_back(*copied_operands_->back()); 24952: } 24952: } 24952: 24952: 24952: void PushOperandBack(const Slice& operand_slice, 24952: bool operand_pinned = false) { 24952: Initialize(); 24952: SetDirectionForward(); 24952: 24952: if (operand_pinned) { 24952: operand_list_->push_back(operand_slice); 24952: } else { 24952: 24952: copied_operands_->emplace_back( 24952: new std::string(operand_slice.data(), operand_slice.size())); 24952: operand_list_->push_back(*copied_operands_->back()); 24952: } 24952: } 24952: 24952: 24952: size_t GetNumOperands() const { 24952: if (!operand_list_) { 24952: return 0; 24952: } 24952: return operand_list_->size(); 24952: } 24952: 24952: 24952: Slice GetOperand(int index) const { 24952: 24952: # 73 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 3 4 24952: (static_cast ( 24952: # 73 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 24952: operand_list_ 24952: # 73 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 73 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 24952: "operand_list_" 24952: # 73 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 3 4 24952: , "./db/merge_context.h", 73, __extension__ __PRETTY_FUNCTION__)) 24952: # 73 "/build/reproducible-path/rocksdb-8.9.1/db/merge_context.h" 24952: ; 24952: 24952: SetDirectionForward(); 24952: return (*operand_list_)[index]; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: const std::vector& GetOperands() const { 24952: return GetOperandsDirectionForward(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: const std::vector& GetOperandsDirectionForward() const { 24952: if (!operand_list_) { 24952: return empty_operand_list; 24952: } 24952: 24952: SetDirectionForward(); 24952: return *operand_list_; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: const std::vector& GetOperandsDirectionBackward() const { 24952: if (!operand_list_) { 24952: return empty_operand_list; 24952: } 24952: 24952: SetDirectionBackward(); 24952: return *operand_list_; 24952: } 24952: 24952: private: 24952: void Initialize() { 24952: if (!operand_list_) { 24952: operand_list_.reset(new std::vector()); 24952: copied_operands_.reset(new std::vector>()); 24952: } 24952: } 24952: 24952: void SetDirectionForward() const { 24952: if (operands_reversed_ == true) { 24952: std::reverse(operand_list_->begin(), operand_list_->end()); 24952: operands_reversed_ = false; 24952: } 24952: } 24952: 24952: void SetDirectionBackward() const { 24952: if (operands_reversed_ == false) { 24952: std::reverse(operand_list_->begin(), operand_list_->end()); 24952: operands_reversed_ = true; 24952: } 24952: } 24952: 24952: 24952: mutable std::unique_ptr> operand_list_; 24952: 24952: std::unique_ptr>> copied_operands_; 24952: mutable bool operands_reversed_ = true; 24952: }; 24952: 24952: } 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 2 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/async_file_reader.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 2 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/single_thread_executor.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 2 24952: 24952: namespace rocksdb { 24952: class GetContext; 24952: class PinnableWideColumns; 24952: 24952: struct KeyContext { 24952: const Slice* key; 24952: LookupKey* lkey; 24952: Slice ukey_with_ts; 24952: Slice ukey_without_ts; 24952: Slice ikey; 24952: ColumnFamilyHandle* column_family; 24952: Status* s; 24952: MergeContext merge_context; 24952: SequenceNumber max_covering_tombstone_seq; 24952: bool key_exists; 24952: bool is_blob_index; 24952: void* cb_arg; 24952: PinnableSlice* value; 24952: PinnableWideColumns* columns; 24952: std::string* timestamp; 24952: GetContext* get_context; 24952: 24952: KeyContext(ColumnFamilyHandle* col_family, const Slice& user_key, 24952: PinnableSlice* val, PinnableWideColumns* cols, std::string* ts, 24952: Status* stat) 24952: : key(&user_key), 24952: lkey(nullptr), 24952: column_family(col_family), 24952: s(stat), 24952: max_covering_tombstone_seq(0), 24952: key_exists(false), 24952: is_blob_index(false), 24952: cb_arg(nullptr), 24952: value(val), 24952: columns(cols), 24952: timestamp(ts), 24952: get_context(nullptr) {} 24952: }; 24952: # 97 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: class MultiGetContext { 24952: public: 24952: 24952: 24952: 24952: 24952: static const int MAX_BATCH_SIZE = 32; 24952: 24952: 24952: 24952: using Mask = uint64_t; 24952: static_assert(MAX_BATCH_SIZE < sizeof(Mask) * 8); 24952: 24952: MultiGetContext(autovector* sorted_keys, 24952: size_t begin, size_t num_keys, SequenceNumber snapshot, 24952: const ReadOptions& read_opts, FileSystem* fs, 24952: Statistics* stats) 24952: : num_keys_(num_keys), 24952: value_mask_(0), 24952: value_size_(0), 24952: lookup_key_ptr_(reinterpret_cast(lookup_key_stack_buf)) 24952: 24952: 24952: 24952: 24952: 24952: { 24952: (void)fs; 24952: (void)stats; 24952: 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: num_keys <= MAX_BATCH_SIZE 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "num_keys <= MAX_BATCH_SIZE" 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 126, __extension__ __PRETTY_FUNCTION__)) 24952: # 126 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: if (num_keys > MAX_LOOKUP_KEYS_ON_STACK) { 24952: lookup_key_heap_buf.reset(new char[sizeof(LookupKey) * num_keys]); 24952: lookup_key_ptr_ = reinterpret_cast(lookup_key_heap_buf.get()); 24952: } 24952: 24952: for (size_t iter = 0; iter != num_keys_; ++iter) { 24952: 24952: sorted_keys_[iter] = (*sorted_keys)[begin + iter]; 24952: sorted_keys_[iter]->lkey = new (&lookup_key_ptr_[iter]) 24952: LookupKey(*sorted_keys_[iter]->key, snapshot, read_opts.timestamp); 24952: sorted_keys_[iter]->ukey_with_ts = sorted_keys_[iter]->lkey->user_key(); 24952: sorted_keys_[iter]->ukey_without_ts = StripTimestampFromUserKey( 24952: sorted_keys_[iter]->lkey->user_key(), 24952: read_opts.timestamp == nullptr ? 0 : read_opts.timestamp->size()); 24952: sorted_keys_[iter]->ikey = sorted_keys_[iter]->lkey->internal_key(); 24952: sorted_keys_[iter]->timestamp = (*sorted_keys)[begin + iter]->timestamp; 24952: sorted_keys_[iter]->get_context = 24952: (*sorted_keys)[begin + iter]->get_context; 24952: } 24952: } 24952: 24952: ~MultiGetContext() { 24952: for (size_t i = 0; i < num_keys_; ++i) { 24952: lookup_key_ptr_[i].~LookupKey(); 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: private: 24952: static const int MAX_LOOKUP_KEYS_ON_STACK = 16; 24952: alignas( 24952: alignof(LookupKey)) char lookup_key_stack_buf[sizeof(LookupKey) * 24952: MAX_LOOKUP_KEYS_ON_STACK]; 24952: std::array sorted_keys_; 24952: size_t num_keys_; 24952: Mask value_mask_; 24952: uint64_t value_size_; 24952: std::unique_ptr lookup_key_heap_buf; 24952: LookupKey* lookup_key_ptr_; 24952: 24952: 24952: 24952: 24952: 24952: public: 24952: # 186 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: class Range { 24952: public: 24952: 24952: 24952: 24952: class Iterator { 24952: public: 24952: 24952: using self_type = Iterator; 24952: using value_type = KeyContext; 24952: using reference = KeyContext&; 24952: using pointer = KeyContext*; 24952: using difference_type = int; 24952: using iterator_category = std::forward_iterator_tag; 24952: 24952: Iterator(const Range* range, size_t idx) 24952: : range_(range), ctx_(range->ctx_), index_(idx) { 24952: while (index_ < range_->end_ && 24952: (Mask{1} << index_) & 24952: (range_->ctx_->value_mask_ | range_->skip_mask_ | 24952: range_->invalid_mask_)) 24952: index_++; 24952: } 24952: 24952: Iterator(const Iterator&) = default; 24952: 24952: Iterator(const Iterator& other, const Range* range) 24952: : range_(range), ctx_(other.ctx_), index_(other.index_) { 24952: 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: range->ctx_ == other.ctx_ 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "range->ctx_ == other.ctx_" 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 214, __extension__ __PRETTY_FUNCTION__)) 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: } 24952: Iterator& operator=(const Iterator&) = default; 24952: 24952: Iterator& operator++() { 24952: while (++index_ < range_->end_ && 24952: (Mask{1} << index_) & 24952: (range_->ctx_->value_mask_ | range_->skip_mask_ | 24952: range_->invalid_mask_)) 24952: ; 24952: return *this; 24952: } 24952: 24952: bool operator==(Iterator other) const { 24952: 24952: # 228 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 228 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: range_->ctx_ == other.range_->ctx_ 24952: # 228 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 228 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "range_->ctx_ == other.range_->ctx_" 24952: # 228 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 228, __extension__ __PRETTY_FUNCTION__)) 24952: # 228 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: return index_ == other.index_; 24952: } 24952: 24952: bool operator!=(Iterator other) const { 24952: 24952: # 233 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 233 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: range_->ctx_ == other.range_->ctx_ 24952: # 233 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 233 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "range_->ctx_ == other.range_->ctx_" 24952: # 233 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 233, __extension__ __PRETTY_FUNCTION__)) 24952: # 233 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: return index_ != other.index_; 24952: } 24952: 24952: KeyContext& operator*() { 24952: 24952: # 238 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 238 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: index_ < range_->end_ && index_ >= range_->start_ 24952: # 238 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 238 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "index_ < range_->end_ && index_ >= range_->start_" 24952: # 238 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 238, __extension__ __PRETTY_FUNCTION__)) 24952: # 238 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: return *(ctx_->sorted_keys_[index_]); 24952: } 24952: 24952: KeyContext* operator->() { 24952: 24952: # 243 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 243 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: index_ < range_->end_ && index_ >= range_->start_ 24952: # 243 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 243 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "index_ < range_->end_ && index_ >= range_->start_" 24952: # 243 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 243, __extension__ __PRETTY_FUNCTION__)) 24952: # 243 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: return ctx_->sorted_keys_[index_]; 24952: } 24952: 24952: size_t index() { return index_; } 24952: 24952: private: 24952: friend Range; 24952: const Range* range_; 24952: const MultiGetContext* ctx_; 24952: size_t index_; 24952: }; 24952: 24952: Range(const Range& mget_range, const Iterator& first, 24952: const Iterator& last) { 24952: ctx_ = mget_range.ctx_; 24952: if (first == last) { 24952: 24952: 24952: start_ = mget_range.start_; 24952: end_ = start_; 24952: } else { 24952: start_ = first.index_; 24952: end_ = last.index_; 24952: } 24952: skip_mask_ = mget_range.skip_mask_; 24952: invalid_mask_ = mget_range.invalid_mask_; 24952: 24952: # 270 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 270 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: start_ < 64 24952: # 270 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 270 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "start_ < 64" 24952: # 270 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 270, __extension__ __PRETTY_FUNCTION__)) 24952: # 270 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: 24952: # 271 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 271 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: end_ < 64 24952: # 271 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 271 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "end_ < 64" 24952: # 271 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 271, __extension__ __PRETTY_FUNCTION__)) 24952: # 271 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: } 24952: 24952: Range() = default; 24952: 24952: Iterator begin() const { return Iterator(this, start_); } 24952: 24952: Iterator end() const { return Iterator(this, end_); } 24952: 24952: bool empty() const { return RemainingMask() == 0; } 24952: 24952: void SkipIndex(size_t index) { skip_mask_ |= Mask{1} << index; } 24952: 24952: void SkipKey(const Iterator& iter) { SkipIndex(iter.index_); } 24952: 24952: bool IsKeySkipped(const Iterator& iter) const { 24952: return skip_mask_ & (Mask{1} << iter.index_); 24952: } 24952: 24952: 24952: 24952: void MarkKeyDone(Iterator& iter) { 24952: ctx_->value_mask_ |= (Mask{1} << iter.index_); 24952: } 24952: 24952: bool CheckKeyDone(Iterator& iter) const { 24952: return ctx_->value_mask_ & (Mask{1} << iter.index_); 24952: } 24952: 24952: uint64_t KeysLeft() const { return BitsSetToOne(RemainingMask()); } 24952: 24952: void AddSkipsFrom(const Range& other) { 24952: 24952: # 303 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 303 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ctx_ == other.ctx_ 24952: # 303 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 303 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "ctx_ == other.ctx_" 24952: # 303 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 303, __extension__ __PRETTY_FUNCTION__)) 24952: # 303 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: skip_mask_ |= other.skip_mask_; 24952: } 24952: 24952: uint64_t GetValueSize() { return ctx_->value_size_; } 24952: 24952: void AddValueSize(uint64_t value_size) { ctx_->value_size_ += value_size; } 24952: 24952: MultiGetContext* context() const { return ctx_; } 24952: 24952: Range Suffix(const Range& other) const { 24952: size_t other_last = other.FindLastRemaining(); 24952: size_t my_last = FindLastRemaining(); 24952: 24952: if (my_last > other_last) { 24952: return Range(*this, Iterator(this, other_last), 24952: Iterator(this, my_last)); 24952: } else { 24952: return Range(*this, begin(), begin()); 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: Range& operator+=(const Range& rhs) { 24952: 24952: # 330 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 330 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: rhs.start_ >= end_ 24952: # 330 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 330 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "rhs.start_ >= end_" 24952: # 330 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 330, __extension__ __PRETTY_FUNCTION__)) 24952: # 330 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: 24952: if (end_ < rhs.start_) { 24952: invalid_mask_ |= RangeMask(end_, rhs.start_); 24952: skip_mask_ |= RangeMask(end_, rhs.start_); 24952: } 24952: start_ = std::min(start_, rhs.start_); 24952: end_ = std::max(end_, rhs.end_); 24952: skip_mask_ |= rhs.skip_mask_ & RangeMask(rhs.start_, rhs.end_); 24952: invalid_mask_ |= (rhs.invalid_mask_ | rhs.skip_mask_) & 24952: RangeMask(rhs.start_, rhs.end_); 24952: 24952: # 341 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 341 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: start_ < 64 24952: # 341 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 341 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "start_ < 64" 24952: # 341 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 341, __extension__ __PRETTY_FUNCTION__)) 24952: # 341 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: 24952: # 342 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 342 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: end_ < 64 24952: # 342 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 342 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "end_ < 64" 24952: # 342 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 342, __extension__ __PRETTY_FUNCTION__)) 24952: # 342 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: return *this; 24952: } 24952: 24952: 24952: 24952: 24952: Range& operator-=(const Range& rhs) { 24952: 24952: # 350 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 350 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: start_ <= rhs.start_ && end_ >= rhs.end_ 24952: # 350 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 350 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "start_ <= rhs.start_ && end_ >= rhs.end_" 24952: # 350 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 350, __extension__ __PRETTY_FUNCTION__)) 24952: # 350 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: skip_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 24952: RangeMask(rhs.start_, rhs.end_); 24952: invalid_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 24952: RangeMask(rhs.start_, rhs.end_); 24952: return *this; 24952: } 24952: 24952: 24952: Range operator~() { 24952: Range res = *this; 24952: res.skip_mask_ = ~skip_mask_ & RangeMask(start_, end_); 24952: return res; 24952: } 24952: 24952: private: 24952: friend MultiGetContext; 24952: MultiGetContext* ctx_; 24952: size_t start_; 24952: size_t end_; 24952: Mask skip_mask_; 24952: Mask invalid_mask_; 24952: 24952: Range(MultiGetContext* ctx, size_t num_keys) 24952: : ctx_(ctx), 24952: start_(0), 24952: end_(num_keys), 24952: skip_mask_(0), 24952: invalid_mask_(0) { 24952: 24952: # 379 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: (static_cast ( 24952: # 379 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: num_keys < 64 24952: # 379 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 379 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: "num_keys < 64" 24952: # 379 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 3 4 24952: , "./table/multiget_context.h", 379, __extension__ __PRETTY_FUNCTION__)) 24952: # 379 "/build/reproducible-path/rocksdb-8.9.1/table/multiget_context.h" 24952: ; 24952: } 24952: 24952: static Mask RangeMask(size_t start, size_t end) { 24952: return (((Mask{1} << (end - start)) - 1) << start); 24952: } 24952: 24952: Mask RemainingMask() const { 24952: return (((Mask{1} << end_) - 1) & ~((Mask{1} << start_) - 1) & 24952: ~(ctx_->value_mask_ | skip_mask_)); 24952: } 24952: 24952: size_t FindLastRemaining() const { 24952: Mask mask = RemainingMask(); 24952: size_t index = (mask >>= start_) ? start_ : 0; 24952: while (mask >>= 1) { 24952: index++; 24952: } 24952: return index; 24952: } 24952: }; 24952: 24952: 24952: Range GetMultiGetRange() { return Range(this, num_keys_); } 24952: }; 24952: 24952: } 24952: # 23 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: class Iterator; 24952: struct ParsedInternalKey; 24952: class Slice; 24952: class Arena; 24952: struct ReadOptions; 24952: struct TableProperties; 24952: class GetContext; 24952: class MultiGetContext; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class TableReader { 24952: public: 24952: virtual ~TableReader() {} 24952: # 57 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 24952: virtual InternalIterator* NewIterator( 24952: const ReadOptions& read_options, const SliceTransform* prefix_extractor, 24952: Arena* arena, bool skip_filters, TableReaderCaller caller, 24952: size_t compaction_readahead_size = 0, 24952: bool allow_unprepared_value = false) = 0; 24952: 24952: 24952: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 24952: const ReadOptions& ) { 24952: return nullptr; 24952: } 24952: 24952: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 24952: SequenceNumber , const Slice* ) { 24952: return nullptr; 24952: } 24952: # 85 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 24952: virtual uint64_t ApproximateOffsetOf(const ReadOptions& read_options, 24952: const Slice& key, 24952: TableReaderCaller caller) = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual uint64_t ApproximateSize(const ReadOptions& read_options, 24952: const Slice& start, const Slice& end, 24952: TableReaderCaller caller) = 0; 24952: 24952: struct Anchor { 24952: Anchor(const Slice& _user_key, size_t _range_size) 24952: : user_key(_user_key.ToStringView()), range_size(_range_size) {} 24952: std::string user_key; 24952: size_t range_size; 24952: }; 24952: 24952: 24952: 24952: virtual Status ApproximateKeyAnchors(const ReadOptions& , 24952: std::vector& ) { 24952: return Status::NotSupported("ApproximateKeyAnchors() not supported."); 24952: } 24952: 24952: 24952: 24952: virtual void SetupForCompaction() = 0; 24952: 24952: virtual std::shared_ptr GetTableProperties() const = 0; 24952: 24952: 24952: virtual void Prepare(const Slice& ) {} 24952: 24952: 24952: virtual size_t ApproximateMemoryUsage() const = 0; 24952: # 135 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 24952: virtual Status Get(const ReadOptions& readOptions, const Slice& key, 24952: GetContext* get_context, 24952: const SliceTransform* prefix_extractor, 24952: bool skip_filters = false) = 0; 24952: 24952: 24952: 24952: 24952: virtual Status MultiGetFilter(const ReadOptions& , 24952: const SliceTransform* , 24952: MultiGetContext::Range* ) { 24952: return Status::NotSupported(); 24952: } 24952: 24952: virtual void MultiGet(const ReadOptions& readOptions, 24952: const MultiGetContext::Range* mget_range, 24952: const SliceTransform* prefix_extractor, 24952: bool skip_filters = false) { 24952: for (auto iter = mget_range->begin(); iter != mget_range->end(); ++iter) { 24952: *iter->s = Get(readOptions, iter->ikey, iter->get_context, 24952: prefix_extractor, skip_filters); 24952: } 24952: } 24952: # 171 "/build/reproducible-path/rocksdb-8.9.1/table/table_reader.h" 24952: virtual Status Prefetch(const ReadOptions& , 24952: const Slice* begin = nullptr, 24952: const Slice* end = nullptr) { 24952: (void)begin; 24952: (void)end; 24952: 24952: 24952: return Status::OK(); 24952: } 24952: 24952: 24952: virtual Status DumpTable(WritableFile* ) { 24952: return Status::NotSupported("DumpTable() not supported"); 24952: } 24952: 24952: 24952: virtual Status VerifyChecksum(const ReadOptions& , 24952: TableReaderCaller ) { 24952: return Status::NotSupported("VerifyChecksum() not supported"); 24952: } 24952: }; 24952: 24952: } 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/unique_id_impl.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/unique_id.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/unique_id.h" 24952: Status GetUniqueIdFromTableProperties(const TableProperties &props, 24952: std::string *out_id); 24952: # 47 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/unique_id.h" 24952: Status GetExtendedUniqueIdFromTableProperties(const TableProperties &props, 24952: std::string *out_id); 24952: 24952: 24952: 24952: 24952: std::string UniqueIdToHumanString(const std::string &id); 24952: 24952: } 24952: # 11 "/build/reproducible-path/rocksdb-8.9.1/table/unique_id_impl.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: 24952: using UniqueId64x2 = std::array; 24952: 24952: 24952: constexpr UniqueId64x2 kNullUniqueId64x2 = {}; 24952: 24952: 24952: 24952: using UniqueId64x3 = std::array; 24952: 24952: 24952: constexpr UniqueId64x3 kNullUniqueId64x3 = {}; 24952: 24952: 24952: struct UniqueIdPtr { 24952: uint64_t *ptr = nullptr; 24952: bool extended = false; 24952: 24952: UniqueIdPtr(UniqueId64x2 *id) { 24952: ptr = (*id).data(); 24952: extended = false; 24952: } 24952: UniqueIdPtr(UniqueId64x3 *id) { 24952: ptr = (*id).data(); 24952: extended = true; 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: Status GetSstInternalUniqueId(const std::string &db_id, 24952: const std::string &db_session_id, 24952: uint64_t file_number, UniqueIdPtr out, 24952: bool force = false); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: void InternalUniqueIdToExternal(UniqueIdPtr in_out); 24952: 24952: 24952: 24952: void ExternalUniqueIdToInternal(UniqueIdPtr in_out); 24952: 24952: 24952: std::string EncodeUniqueIdBytes(UniqueIdPtr in); 24952: 24952: 24952: Status DecodeUniqueIdBytes(const std::string &unique_id, UniqueIdPtr out); 24952: 24952: 24952: 24952: std::string InternalUniqueIdToHumanString(UniqueIdPtr in); 24952: # 85 "/build/reproducible-path/rocksdb-8.9.1/table/unique_id_impl.h" 24952: std::string EncodeSessionId(uint64_t upper, uint64_t lower); 24952: 24952: 24952: 24952: 24952: Status DecodeSessionId(const std::string &db_session_id, uint64_t *upper, 24952: uint64_t *lower); 24952: 24952: } 24952: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 2 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: enum Tag : uint32_t { 24952: kComparator = 1, 24952: kLogNumber = 2, 24952: kNextFileNumber = 3, 24952: kLastSequence = 4, 24952: kCompactCursor = 5, 24952: kDeletedFile = 6, 24952: kNewFile = 7, 24952: 24952: kPrevLogNumber = 9, 24952: kMinLogNumberToKeep = 10, 24952: 24952: 24952: kNewFile2 = 100, 24952: kNewFile3 = 102, 24952: kNewFile4 = 103, 24952: kColumnFamily = 200, 24952: kColumnFamilyAdd = 201, 24952: kColumnFamilyDrop = 202, 24952: kMaxColumnFamily = 203, 24952: 24952: kInAtomicGroup = 300, 24952: 24952: kBlobFileAddition = 400, 24952: kBlobFileGarbage, 24952: 24952: 24952: kTagSafeIgnoreMask = 1 << 13, 24952: 24952: 24952: kDbId, 24952: kBlobFileAddition_DEPRECATED, 24952: kBlobFileGarbage_DEPRECATED, 24952: kWalAddition, 24952: kWalDeletion, 24952: kFullHistoryTsLow, 24952: kWalAddition2, 24952: kWalDeletion2, 24952: kPersistUserDefinedTimestamps, 24952: }; 24952: 24952: enum NewFileCustomTag : uint32_t { 24952: kTerminate = 1, 24952: kNeedCompaction = 2, 24952: 24952: 24952: 24952: kMinLogNumberToKeepHack = 3, 24952: kOldestBlobFileNumber = 4, 24952: kOldestAncesterTime = 5, 24952: kFileCreationTime = 6, 24952: kFileChecksum = 7, 24952: kFileChecksumFuncName = 8, 24952: kTemperature = 9, 24952: kMinTimestamp = 10, 24952: kMaxTimestamp = 11, 24952: kUniqueId = 12, 24952: kEpochNumber = 13, 24952: kCompensatedRangeDeletionSize = 14, 24952: kTailSize = 15, 24952: kUserDefinedTimestampsPersisted = 16, 24952: 24952: 24952: 24952: kCustomTagNonSafeIgnoreMask = 1 << 6, 24952: 24952: 24952: kPathId, 24952: }; 24952: 24952: class VersionSet; 24952: 24952: constexpr uint64_t kFileNumberMask = 0x3FFFFFFFFFFFFFFF; 24952: constexpr uint64_t kUnknownOldestAncesterTime = 0; 24952: constexpr uint64_t kUnknownFileCreationTime = 0; 24952: constexpr uint64_t kUnknownEpochNumber = 0; 24952: 24952: 24952: constexpr uint64_t kReservedEpochNumberForFileIngestedBehind = 1; 24952: 24952: extern uint64_t PackFileNumberAndPathId(uint64_t number, uint64_t path_id); 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct FileDescriptor { 24952: 24952: TableReader* table_reader; 24952: uint64_t packed_number_and_path_id; 24952: uint64_t file_size; 24952: SequenceNumber smallest_seqno; 24952: SequenceNumber largest_seqno; 24952: 24952: FileDescriptor() : FileDescriptor(0, 0, 0) {} 24952: 24952: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size) 24952: : FileDescriptor(number, path_id, _file_size, kMaxSequenceNumber, 0) {} 24952: 24952: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size, 24952: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno) 24952: : table_reader(nullptr), 24952: packed_number_and_path_id(PackFileNumberAndPathId(number, path_id)), 24952: file_size(_file_size), 24952: smallest_seqno(_smallest_seqno), 24952: largest_seqno(_largest_seqno) {} 24952: 24952: FileDescriptor(const FileDescriptor& fd) { *this = fd; } 24952: 24952: FileDescriptor& operator=(const FileDescriptor& fd) { 24952: table_reader = fd.table_reader; 24952: packed_number_and_path_id = fd.packed_number_and_path_id; 24952: file_size = fd.file_size; 24952: smallest_seqno = fd.smallest_seqno; 24952: largest_seqno = fd.largest_seqno; 24952: return *this; 24952: } 24952: 24952: uint64_t GetNumber() const { 24952: return packed_number_and_path_id & kFileNumberMask; 24952: } 24952: uint32_t GetPathId() const { 24952: return static_cast(packed_number_and_path_id / 24952: (kFileNumberMask + 1)); 24952: } 24952: uint64_t GetFileSize() const { return file_size; } 24952: }; 24952: 24952: struct FileSampledStats { 24952: FileSampledStats() : num_reads_sampled(0) {} 24952: FileSampledStats(const FileSampledStats& other) { *this = other; } 24952: FileSampledStats& operator=(const FileSampledStats& other) { 24952: num_reads_sampled = other.num_reads_sampled.load(); 24952: return *this; 24952: } 24952: 24952: 24952: mutable std::atomic num_reads_sampled; 24952: }; 24952: 24952: struct FileMetaData { 24952: FileDescriptor fd; 24952: InternalKey smallest; 24952: InternalKey largest; 24952: 24952: 24952: Cache::Handle* table_reader_handle = nullptr; 24952: 24952: FileSampledStats stats; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint64_t compensated_file_size = 0; 24952: 24952: 24952: uint64_t num_entries = 24952: 0; 24952: 24952: uint64_t num_deletions = 0; 24952: uint64_t raw_key_size = 0; 24952: uint64_t raw_value_size = 0; 24952: uint64_t num_range_deletions = 0; 24952: 24952: 24952: 24952: uint64_t compensated_range_deletion_size = 0; 24952: 24952: int refs = 0; 24952: 24952: bool being_compacted = false; 24952: bool init_stats_from_file = false; 24952: 24952: 24952: bool marked_for_compaction = false; 24952: 24952: Temperature temperature = Temperature::kUnknown; 24952: 24952: 24952: 24952: uint64_t oldest_blob_file_number = kInvalidBlobFileNumber; 24952: # 232 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: uint64_t oldest_ancester_time = kUnknownOldestAncesterTime; 24952: 24952: 24952: uint64_t file_creation_time = kUnknownFileCreationTime; 24952: 24952: 24952: 24952: 24952: 24952: uint64_t epoch_number = kUnknownEpochNumber; 24952: 24952: 24952: std::string file_checksum = kUnknownFileChecksum; 24952: 24952: 24952: std::string file_checksum_func_name = kUnknownFileChecksumFuncName; 24952: 24952: 24952: UniqueId64x2 unique_id{}; 24952: 24952: 24952: 24952: uint64_t tail_size = 0; 24952: 24952: 24952: 24952: 24952: bool user_defined_timestamps_persisted = true; 24952: 24952: FileMetaData() = default; 24952: 24952: FileMetaData(uint64_t file, uint32_t file_path_id, uint64_t file_size, 24952: const InternalKey& smallest_key, const InternalKey& largest_key, 24952: const SequenceNumber& smallest_seq, 24952: const SequenceNumber& largest_seq, bool marked_for_compact, 24952: Temperature _temperature, uint64_t oldest_blob_file, 24952: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 24952: uint64_t _epoch_number, const std::string& _file_checksum, 24952: const std::string& _file_checksum_func_name, 24952: UniqueId64x2 _unique_id, 24952: const uint64_t _compensated_range_deletion_size, 24952: uint64_t _tail_size, bool _user_defined_timestamps_persisted) 24952: : fd(file, file_path_id, file_size, smallest_seq, largest_seq), 24952: smallest(smallest_key), 24952: largest(largest_key), 24952: compensated_range_deletion_size(_compensated_range_deletion_size), 24952: marked_for_compaction(marked_for_compact), 24952: temperature(_temperature), 24952: oldest_blob_file_number(oldest_blob_file), 24952: oldest_ancester_time(_oldest_ancester_time), 24952: file_creation_time(_file_creation_time), 24952: epoch_number(_epoch_number), 24952: file_checksum(_file_checksum), 24952: file_checksum_func_name(_file_checksum_func_name), 24952: unique_id(std::move(_unique_id)), 24952: tail_size(_tail_size), 24952: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) { 24952: rocksdb::SyncPoint::GetInstance()->Process("FileMetaData::FileMetaData", this); 24952: } 24952: 24952: 24952: 24952: Status UpdateBoundaries(const Slice& key, const Slice& value, 24952: SequenceNumber seqno, ValueType value_type); 24952: 24952: 24952: 24952: void UpdateBoundariesForRange(const InternalKey& start, 24952: const InternalKey& end, SequenceNumber seqno, 24952: const InternalKeyComparator& icmp) { 24952: if (smallest.size() == 0 || icmp.Compare(start, smallest) < 0) { 24952: smallest = start; 24952: } 24952: if (largest.size() == 0 || icmp.Compare(largest, end) < 0) { 24952: largest = end; 24952: } 24952: 24952: # 308 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 308 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: icmp.Compare(smallest, largest) <= 0 24952: # 308 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 308 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "icmp.Compare(smallest, largest) <= 0" 24952: # 308 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 308, __extension__ __PRETTY_FUNCTION__)) 24952: # 308 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: fd.smallest_seqno = std::min(fd.smallest_seqno, seqno); 24952: fd.largest_seqno = std::max(fd.largest_seqno, seqno); 24952: } 24952: 24952: 24952: 24952: 24952: uint64_t TryGetOldestAncesterTime() { 24952: if (oldest_ancester_time != kUnknownOldestAncesterTime) { 24952: return oldest_ancester_time; 24952: } else if (fd.table_reader != nullptr && 24952: fd.table_reader->GetTableProperties() != nullptr) { 24952: return fd.table_reader->GetTableProperties()->creation_time; 24952: } 24952: return kUnknownOldestAncesterTime; 24952: } 24952: 24952: uint64_t TryGetFileCreationTime() { 24952: if (file_creation_time != kUnknownFileCreationTime) { 24952: return file_creation_time; 24952: } else if (fd.table_reader != nullptr && 24952: fd.table_reader->GetTableProperties() != nullptr) { 24952: return fd.table_reader->GetTableProperties()->file_creation_time; 24952: } 24952: return kUnknownFileCreationTime; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t ApproximateMemoryUsage() const { 24952: size_t usage = 0; 24952: 24952: usage += malloc_usable_size(const_cast(this)); 24952: 24952: 24952: 24952: usage += smallest.size() + largest.size() + file_checksum.size() + 24952: file_checksum_func_name.size(); 24952: return usage; 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: struct FdWithKeyRange { 24952: FileDescriptor fd; 24952: FileMetaData* file_metadata; 24952: Slice smallest_key; 24952: Slice largest_key; 24952: 24952: FdWithKeyRange() 24952: : fd(), file_metadata(nullptr), smallest_key(), largest_key() {} 24952: 24952: FdWithKeyRange(FileDescriptor _fd, Slice _smallest_key, Slice _largest_key, 24952: FileMetaData* _file_metadata) 24952: : fd(_fd), 24952: file_metadata(_file_metadata), 24952: smallest_key(_smallest_key), 24952: largest_key(_largest_key) {} 24952: }; 24952: 24952: 24952: 24952: struct LevelFilesBrief { 24952: size_t num_files; 24952: FdWithKeyRange* files; 24952: LevelFilesBrief() { 24952: num_files = 0; 24952: files = nullptr; 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: class VersionEdit { 24952: public: 24952: void Clear(); 24952: 24952: void SetDBId(const std::string& db_id) { 24952: has_db_id_ = true; 24952: db_id_ = db_id; 24952: } 24952: bool HasDbId() const { return has_db_id_; } 24952: const std::string& GetDbId() const { return db_id_; } 24952: 24952: void SetComparatorName(const Slice& name) { 24952: has_comparator_ = true; 24952: comparator_ = name.ToString(); 24952: } 24952: bool HasComparatorName() const { return has_comparator_; } 24952: const std::string& GetComparatorName() const { return comparator_; } 24952: 24952: void SetPersistUserDefinedTimestamps(bool persist_user_defined_timestamps) { 24952: has_persist_user_defined_timestamps_ = true; 24952: persist_user_defined_timestamps_ = persist_user_defined_timestamps; 24952: } 24952: bool HasPersistUserDefinedTimestamps() const { 24952: return has_persist_user_defined_timestamps_; 24952: } 24952: bool GetPersistUserDefinedTimestamps() const { 24952: return persist_user_defined_timestamps_; 24952: } 24952: 24952: void SetLogNumber(uint64_t num) { 24952: has_log_number_ = true; 24952: log_number_ = num; 24952: } 24952: bool HasLogNumber() const { return has_log_number_; } 24952: uint64_t GetLogNumber() const { return log_number_; } 24952: 24952: void SetPrevLogNumber(uint64_t num) { 24952: has_prev_log_number_ = true; 24952: prev_log_number_ = num; 24952: } 24952: bool HasPrevLogNumber() const { return has_prev_log_number_; } 24952: uint64_t GetPrevLogNumber() const { return prev_log_number_; } 24952: 24952: void SetNextFile(uint64_t num) { 24952: has_next_file_number_ = true; 24952: next_file_number_ = num; 24952: } 24952: bool HasNextFile() const { return has_next_file_number_; } 24952: uint64_t GetNextFile() const { return next_file_number_; } 24952: 24952: void SetMaxColumnFamily(uint32_t max_column_family) { 24952: has_max_column_family_ = true; 24952: max_column_family_ = max_column_family; 24952: } 24952: bool HasMaxColumnFamily() const { return has_max_column_family_; } 24952: uint32_t GetMaxColumnFamily() const { return max_column_family_; } 24952: 24952: void SetMinLogNumberToKeep(uint64_t num) { 24952: has_min_log_number_to_keep_ = true; 24952: min_log_number_to_keep_ = num; 24952: } 24952: bool HasMinLogNumberToKeep() const { return has_min_log_number_to_keep_; } 24952: uint64_t GetMinLogNumberToKeep() const { return min_log_number_to_keep_; } 24952: 24952: void SetLastSequence(SequenceNumber seq) { 24952: has_last_sequence_ = true; 24952: last_sequence_ = seq; 24952: } 24952: bool HasLastSequence() const { return has_last_sequence_; } 24952: SequenceNumber GetLastSequence() const { return last_sequence_; } 24952: 24952: 24952: void DeleteFile(int level, uint64_t file) { 24952: deleted_files_.emplace(level, file); 24952: } 24952: 24952: 24952: using DeletedFiles = std::set>; 24952: const DeletedFiles& GetDeletedFiles() const { return deleted_files_; } 24952: 24952: 24952: 24952: 24952: 24952: void AddFile(int level, uint64_t file, uint32_t file_path_id, 24952: uint64_t file_size, const InternalKey& smallest, 24952: const InternalKey& largest, const SequenceNumber& smallest_seqno, 24952: const SequenceNumber& largest_seqno, bool marked_for_compaction, 24952: Temperature temperature, uint64_t oldest_blob_file_number, 24952: uint64_t oldest_ancester_time, uint64_t file_creation_time, 24952: uint64_t epoch_number, const std::string& file_checksum, 24952: const std::string& file_checksum_func_name, 24952: const UniqueId64x2& unique_id, 24952: const uint64_t compensated_range_deletion_size, 24952: uint64_t tail_size, bool user_defined_timestamps_persisted) { 24952: 24952: # 485 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 485 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: smallest_seqno <= largest_seqno 24952: # 485 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 485 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "smallest_seqno <= largest_seqno" 24952: # 485 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 485, __extension__ __PRETTY_FUNCTION__)) 24952: # 485 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: new_files_.emplace_back( 24952: level, 24952: FileMetaData(file, file_path_id, file_size, smallest, largest, 24952: smallest_seqno, largest_seqno, marked_for_compaction, 24952: temperature, oldest_blob_file_number, oldest_ancester_time, 24952: file_creation_time, epoch_number, file_checksum, 24952: file_checksum_func_name, unique_id, 24952: compensated_range_deletion_size, tail_size, 24952: user_defined_timestamps_persisted)); 24952: files_to_quarantine_.push_back(file); 24952: if (!HasLastSequence() || largest_seqno > GetLastSequence()) { 24952: SetLastSequence(largest_seqno); 24952: } 24952: } 24952: 24952: void AddFile(int level, const FileMetaData& f) { 24952: 24952: # 502 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 502 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: f.fd.smallest_seqno <= f.fd.largest_seqno 24952: # 502 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 502 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "f.fd.smallest_seqno <= f.fd.largest_seqno" 24952: # 502 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 502, __extension__ __PRETTY_FUNCTION__)) 24952: # 502 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: new_files_.emplace_back(level, f); 24952: files_to_quarantine_.push_back(f.fd.GetNumber()); 24952: if (!HasLastSequence() || f.fd.largest_seqno > GetLastSequence()) { 24952: SetLastSequence(f.fd.largest_seqno); 24952: } 24952: } 24952: 24952: 24952: using NewFiles = std::vector>; 24952: const NewFiles& GetNewFiles() const { return new_files_; } 24952: 24952: NewFiles& GetMutableNewFiles() { return new_files_; } 24952: 24952: 24952: using CompactCursors = std::vector>; 24952: const CompactCursors& GetCompactCursors() const { return compact_cursors_; } 24952: void AddCompactCursor(int level, const InternalKey& cursor) { 24952: compact_cursors_.push_back(std::make_pair(level, cursor)); 24952: } 24952: void SetCompactCursors( 24952: const std::vector& compact_cursors_by_level) { 24952: compact_cursors_.clear(); 24952: compact_cursors_.reserve(compact_cursors_by_level.size()); 24952: for (int i = 0; i < (int)compact_cursors_by_level.size(); i++) { 24952: if (compact_cursors_by_level[i].Valid()) { 24952: compact_cursors_.push_back( 24952: std::make_pair(i, compact_cursors_by_level[i])); 24952: } 24952: } 24952: } 24952: 24952: 24952: void AddBlobFile(uint64_t blob_file_number, uint64_t total_blob_count, 24952: uint64_t total_blob_bytes, std::string checksum_method, 24952: std::string checksum_value) { 24952: blob_file_additions_.emplace_back( 24952: blob_file_number, total_blob_count, total_blob_bytes, 24952: std::move(checksum_method), std::move(checksum_value)); 24952: files_to_quarantine_.push_back(blob_file_number); 24952: } 24952: 24952: void AddBlobFile(BlobFileAddition blob_file_addition) { 24952: blob_file_additions_.emplace_back(std::move(blob_file_addition)); 24952: files_to_quarantine_.push_back( 24952: blob_file_additions_.back().GetBlobFileNumber()); 24952: } 24952: 24952: 24952: using BlobFileAdditions = std::vector; 24952: const BlobFileAdditions& GetBlobFileAdditions() const { 24952: return blob_file_additions_; 24952: } 24952: 24952: void SetBlobFileAdditions(BlobFileAdditions blob_file_additions) { 24952: 24952: # 557 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 557 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: blob_file_additions_.empty() 24952: # 557 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 557 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "blob_file_additions_.empty()" 24952: # 557 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 557, __extension__ __PRETTY_FUNCTION__)) 24952: # 557 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: blob_file_additions_ = std::move(blob_file_additions); 24952: std::for_each( 24952: blob_file_additions_.begin(), blob_file_additions_.end(), 24952: [&](const BlobFileAddition& blob_file) { 24952: files_to_quarantine_.push_back(blob_file.GetBlobFileNumber()); 24952: }); 24952: } 24952: 24952: 24952: 24952: void AddBlobFileGarbage(uint64_t blob_file_number, 24952: uint64_t garbage_blob_count, 24952: uint64_t garbage_blob_bytes) { 24952: blob_file_garbages_.emplace_back(blob_file_number, garbage_blob_count, 24952: garbage_blob_bytes); 24952: } 24952: 24952: void AddBlobFileGarbage(BlobFileGarbage blob_file_garbage) { 24952: blob_file_garbages_.emplace_back(std::move(blob_file_garbage)); 24952: } 24952: 24952: 24952: using BlobFileGarbages = std::vector; 24952: const BlobFileGarbages& GetBlobFileGarbages() const { 24952: return blob_file_garbages_; 24952: } 24952: 24952: void SetBlobFileGarbages(BlobFileGarbages blob_file_garbages) { 24952: 24952: # 586 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 586 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: blob_file_garbages_.empty() 24952: # 586 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 586 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "blob_file_garbages_.empty()" 24952: # 586 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 586, __extension__ __PRETTY_FUNCTION__)) 24952: # 586 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: blob_file_garbages_ = std::move(blob_file_garbages); 24952: } 24952: 24952: 24952: 24952: void AddWal(WalNumber number, WalMetadata metadata = WalMetadata()) { 24952: 24952: # 593 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 593 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: NumEntries() == wal_additions_.size() 24952: # 593 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 593 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "NumEntries() == wal_additions_.size()" 24952: # 593 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 593, __extension__ __PRETTY_FUNCTION__)) 24952: # 593 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: wal_additions_.emplace_back(number, std::move(metadata)); 24952: } 24952: 24952: 24952: const WalAdditions& GetWalAdditions() const { return wal_additions_; } 24952: 24952: bool IsWalAddition() const { return !wal_additions_.empty(); } 24952: 24952: 24952: 24952: void DeleteWalsBefore(WalNumber number) { 24952: 24952: # 605 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 605 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: (NumEntries() == 1) == !wal_deletion_.IsEmpty() 24952: # 605 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 605 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "(NumEntries() == 1) == !wal_deletion_.IsEmpty()" 24952: # 605 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 605, __extension__ __PRETTY_FUNCTION__)) 24952: # 605 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: wal_deletion_ = WalDeletion(number); 24952: } 24952: 24952: const WalDeletion& GetWalDeletion() const { return wal_deletion_; } 24952: 24952: bool IsWalDeletion() const { return !wal_deletion_.IsEmpty(); } 24952: 24952: bool IsWalManipulation() const { 24952: size_t entries = NumEntries(); 24952: return (entries > 0) && ((entries == wal_additions_.size()) || 24952: (entries == !wal_deletion_.IsEmpty())); 24952: } 24952: 24952: 24952: size_t NumEntries() const { 24952: return new_files_.size() + deleted_files_.size() + 24952: blob_file_additions_.size() + blob_file_garbages_.size() + 24952: wal_additions_.size() + !wal_deletion_.IsEmpty(); 24952: } 24952: 24952: void SetColumnFamily(uint32_t column_family_id) { 24952: column_family_ = column_family_id; 24952: } 24952: uint32_t GetColumnFamily() const { return column_family_; } 24952: 24952: const std::string& GetColumnFamilyName() const { return column_family_name_; } 24952: 24952: 24952: void AddColumnFamily(const std::string& name) { 24952: 24952: # 635 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 635 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: !is_column_family_drop_ 24952: # 635 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 635 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "!is_column_family_drop_" 24952: # 635 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 635, __extension__ __PRETTY_FUNCTION__)) 24952: # 635 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: 24952: # 636 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 636 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: !is_column_family_add_ 24952: # 636 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 636 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "!is_column_family_add_" 24952: # 636 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 636, __extension__ __PRETTY_FUNCTION__)) 24952: # 636 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: 24952: # 637 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 637 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: NumEntries() == 0 24952: # 637 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 637 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "NumEntries() == 0" 24952: # 637 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 637, __extension__ __PRETTY_FUNCTION__)) 24952: # 637 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: is_column_family_add_ = true; 24952: column_family_name_ = name; 24952: } 24952: 24952: 24952: void DropColumnFamily() { 24952: 24952: # 644 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 644 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: !is_column_family_drop_ 24952: # 644 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 644 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "!is_column_family_drop_" 24952: # 644 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 644, __extension__ __PRETTY_FUNCTION__)) 24952: # 644 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: 24952: # 645 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 645 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: !is_column_family_add_ 24952: # 645 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 645 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "!is_column_family_add_" 24952: # 645 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 645, __extension__ __PRETTY_FUNCTION__)) 24952: # 645 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: 24952: # 646 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 646 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: NumEntries() == 0 24952: # 646 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 646 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "NumEntries() == 0" 24952: # 646 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 646, __extension__ __PRETTY_FUNCTION__)) 24952: # 646 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: is_column_family_drop_ = true; 24952: } 24952: 24952: bool IsColumnFamilyManipulation() const { 24952: return is_column_family_add_ || is_column_family_drop_; 24952: } 24952: 24952: bool IsColumnFamilyAdd() const { return is_column_family_add_; } 24952: 24952: bool IsColumnFamilyDrop() const { return is_column_family_drop_; } 24952: 24952: void MarkAtomicGroup(uint32_t remaining_entries) { 24952: is_in_atomic_group_ = true; 24952: remaining_entries_ = remaining_entries; 24952: } 24952: bool IsInAtomicGroup() const { return is_in_atomic_group_; } 24952: void SetRemainingEntries(uint32_t remaining_entries) { 24952: remaining_entries_ = remaining_entries; 24952: } 24952: uint32_t GetRemainingEntries() const { return remaining_entries_; } 24952: 24952: bool HasFullHistoryTsLow() const { return !full_history_ts_low_.empty(); } 24952: const std::string& GetFullHistoryTsLow() const { 24952: 24952: # 670 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 670 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: HasFullHistoryTsLow() 24952: # 670 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 670 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "HasFullHistoryTsLow()" 24952: # 670 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 670, __extension__ __PRETTY_FUNCTION__)) 24952: # 670 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: return full_history_ts_low_; 24952: } 24952: void SetFullHistoryTsLow(std::string full_history_ts_low) { 24952: 24952: # 674 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: (static_cast ( 24952: # 674 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: !full_history_ts_low.empty() 24952: # 674 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 674 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: "!full_history_ts_low.empty()" 24952: # 674 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 3 4 24952: , "./db/version_edit.h", 674, __extension__ __PRETTY_FUNCTION__)) 24952: # 674 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: ; 24952: full_history_ts_low_ = std::move(full_history_ts_low); 24952: } 24952: # 688 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: bool EncodeTo(std::string* dst, 24952: std::optional ts_sz = std::nullopt) const; 24952: Status DecodeFrom(const Slice& src); 24952: 24952: const autovector* GetFilesToQuarantineIfCommitFail() const { 24952: return &files_to_quarantine_; 24952: } 24952: 24952: std::string DebugString(bool hex_key = false) const; 24952: std::string DebugJSON(int edit_num, bool hex_key = false) const; 24952: 24952: private: 24952: bool GetLevel(Slice* input, int* level, const char** msg); 24952: 24952: const char* DecodeNewFile4From(Slice* input); 24952: 24952: 24952: 24952: 24952: void EncodeFileBoundaries(std::string* dst, const FileMetaData& meta, 24952: size_t ts_sz) const; 24952: 24952: int max_level_ = 0; 24952: std::string db_id_; 24952: std::string comparator_; 24952: uint64_t log_number_ = 0; 24952: uint64_t prev_log_number_ = 0; 24952: uint64_t next_file_number_ = 0; 24952: uint32_t max_column_family_ = 0; 24952: 24952: uint64_t min_log_number_to_keep_ = 0; 24952: SequenceNumber last_sequence_ = 0; 24952: bool has_db_id_ = false; 24952: bool has_comparator_ = false; 24952: bool has_log_number_ = false; 24952: bool has_prev_log_number_ = false; 24952: bool has_next_file_number_ = false; 24952: bool has_max_column_family_ = false; 24952: bool has_min_log_number_to_keep_ = false; 24952: bool has_last_sequence_ = false; 24952: bool has_persist_user_defined_timestamps_ = false; 24952: 24952: 24952: CompactCursors compact_cursors_; 24952: 24952: DeletedFiles deleted_files_; 24952: NewFiles new_files_; 24952: 24952: BlobFileAdditions blob_file_additions_; 24952: BlobFileGarbages blob_file_garbages_; 24952: 24952: WalAdditions wal_additions_; 24952: WalDeletion wal_deletion_; 24952: 24952: 24952: 24952: uint32_t column_family_ = 0; 24952: 24952: 24952: 24952: bool is_column_family_drop_ = false; 24952: bool is_column_family_add_ = false; 24952: std::string column_family_name_; 24952: 24952: bool is_in_atomic_group_ = false; 24952: uint32_t remaining_entries_ = 0; 24952: 24952: std::string full_history_ts_low_; 24952: bool persist_user_defined_timestamps_ = true; 24952: # 766 "/build/reproducible-path/rocksdb-8.9.1/db/version_edit.h" 24952: autovector files_to_quarantine_; 24952: }; 24952: 24952: } 24952: # 24 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 24952: 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/thread_local.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/util/thread_local.h" 24952: 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/util/thread_local.h" 24952: namespace rocksdb { 24952: # 34 "/build/reproducible-path/rocksdb-8.9.1/util/thread_local.h" 24952: using UnrefHandler = void (*)(void* ptr); 24952: # 44 "/build/reproducible-path/rocksdb-8.9.1/util/thread_local.h" 24952: class ThreadLocalPtr { 24952: public: 24952: explicit ThreadLocalPtr(UnrefHandler handler = nullptr); 24952: 24952: ThreadLocalPtr(const ThreadLocalPtr&) = delete; 24952: ThreadLocalPtr& operator=(const ThreadLocalPtr&) = delete; 24952: 24952: ~ThreadLocalPtr(); 24952: 24952: 24952: void* Get() const; 24952: 24952: 24952: void Reset(void* ptr); 24952: 24952: 24952: void* Swap(void* ptr); 24952: 24952: 24952: 24952: 24952: 24952: bool CompareAndSwap(void* ptr, void*& expected); 24952: 24952: 24952: 24952: void Scrape(autovector* ptrs, void* const replacement); 24952: 24952: using FoldFunc = std::function; 24952: 24952: 24952: 24952: 24952: void Fold(FoldFunc func, void* res); 24952: 24952: 24952: 24952: static uint32_t TEST_PeekId(); 24952: # 90 "/build/reproducible-path/rocksdb-8.9.1/util/thread_local.h" 24952: static void InitSingletons(); 24952: 24952: class StaticMeta; 24952: 24952: private: 24952: static StaticMeta* Instance(); 24952: 24952: const uint32_t id_; 24952: }; 24952: 24952: } 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 2 24952: # 31 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 24952: namespace rocksdb { 24952: 24952: class Logger; 24952: # 42 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 24952: class ConcurrentArena : public Allocator { 24952: public: 24952: 24952: 24952: 24952: 24952: explicit ConcurrentArena(size_t block_size = Arena::kMinBlockSize, 24952: AllocTracker* tracker = nullptr, 24952: size_t huge_page_size = 0); 24952: 24952: char* Allocate(size_t bytes) override { 24952: return AllocateImpl(bytes, false , 24952: [this, bytes]() { return arena_.Allocate(bytes); }); 24952: } 24952: 24952: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 24952: Logger* logger = nullptr) override { 24952: size_t rounded_up = ((bytes - 1) | (sizeof(void*) - 1)) + 1; 24952: 24952: # 60 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 3 4 24952: (static_cast ( 24952: # 60 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 24952: rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0 24952: # 60 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 60 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 24952: "rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0" 24952: # 60 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 3 4 24952: , "./memory/concurrent_arena.h", 60, __extension__ __PRETTY_FUNCTION__)) 24952: 24952: # 61 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 24952: ; 24952: 24952: return AllocateImpl(rounded_up, huge_page_size != 0 , 24952: [this, rounded_up, huge_page_size, logger]() { 24952: return arena_.AllocateAligned(rounded_up, 24952: huge_page_size, logger); 24952: }); 24952: } 24952: 24952: size_t ApproximateMemoryUsage() const { 24952: std::unique_lock lock(arena_mutex_, std::defer_lock); 24952: lock.lock(); 24952: return arena_.ApproximateMemoryUsage() - ShardAllocatedAndUnused(); 24952: } 24952: 24952: size_t MemoryAllocatedBytes() const { 24952: return memory_allocated_bytes_.load(std::memory_order_relaxed); 24952: } 24952: 24952: size_t AllocatedAndUnused() const { 24952: return arena_allocated_and_unused_.load(std::memory_order_relaxed) + 24952: ShardAllocatedAndUnused(); 24952: } 24952: 24952: size_t IrregularBlockNum() const { 24952: return irregular_block_num_.load(std::memory_order_relaxed); 24952: } 24952: 24952: size_t BlockSize() const override { return arena_.BlockSize(); } 24952: 24952: private: 24952: struct Shard { 24952: char padding[40] ; 24952: mutable SpinMutex mutex; 24952: char* free_begin_; 24952: std::atomic allocated_and_unused_; 24952: 24952: Shard() : free_begin_(nullptr), allocated_and_unused_(0) {} 24952: }; 24952: 24952: static thread_local size_t tls_cpuid; 24952: 24952: char padding0[56] ; 24952: 24952: size_t shard_block_size_; 24952: 24952: CoreLocalArray shards_; 24952: 24952: Arena arena_; 24952: mutable SpinMutex arena_mutex_; 24952: std::atomic arena_allocated_and_unused_; 24952: std::atomic memory_allocated_bytes_; 24952: std::atomic irregular_block_num_; 24952: 24952: char padding1[56] ; 24952: 24952: Shard* Repick(); 24952: 24952: size_t ShardAllocatedAndUnused() const { 24952: size_t total = 0; 24952: for (size_t i = 0; i < shards_.Size(); ++i) { 24952: total += shards_.AccessAtCore(i)->allocated_and_unused_.load( 24952: std::memory_order_relaxed); 24952: } 24952: return total; 24952: } 24952: 24952: template 24952: char* AllocateImpl(size_t bytes, bool force_arena, const Func& func) { 24952: size_t cpu; 24952: 24952: 24952: 24952: 24952: 24952: std::unique_lock arena_lock(arena_mutex_, std::defer_lock); 24952: if (bytes > shard_block_size_ / 4 || force_arena || 24952: ((cpu = tls_cpuid) == 0 && 24952: !shards_.AccessAtCore(0)->allocated_and_unused_.load( 24952: std::memory_order_relaxed) && 24952: arena_lock.try_lock())) { 24952: if (!arena_lock.owns_lock()) { 24952: arena_lock.lock(); 24952: } 24952: auto rv = func(); 24952: Fixup(); 24952: return rv; 24952: } 24952: 24952: 24952: Shard* s = shards_.AccessAtCore(cpu & (shards_.Size() - 1)); 24952: if (!s->mutex.try_lock()) { 24952: s = Repick(); 24952: s->mutex.lock(); 24952: } 24952: std::unique_lock lock(s->mutex, std::adopt_lock); 24952: 24952: size_t avail = s->allocated_and_unused_.load(std::memory_order_relaxed); 24952: if (avail < bytes) { 24952: 24952: std::lock_guard reload_lock(arena_mutex_); 24952: 24952: 24952: 24952: auto exact = arena_allocated_and_unused_.load(std::memory_order_relaxed); 24952: 24952: # 166 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 3 4 24952: (static_cast ( 24952: # 166 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 24952: exact == arena_.AllocatedAndUnused() 24952: # 166 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 166 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 24952: "exact == arena_.AllocatedAndUnused()" 24952: # 166 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 3 4 24952: , "./memory/concurrent_arena.h", 166, __extension__ __PRETTY_FUNCTION__)) 24952: # 166 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 24952: ; 24952: 24952: if (exact >= bytes && arena_.IsInInlineBlock()) { 24952: # 177 "/build/reproducible-path/rocksdb-8.9.1/memory/concurrent_arena.h" 24952: auto rv = func(); 24952: Fixup(); 24952: return rv; 24952: } 24952: 24952: avail = exact >= shard_block_size_ / 2 && exact < shard_block_size_ * 2 24952: ? exact 24952: : shard_block_size_; 24952: s->free_begin_ = arena_.AllocateAligned(avail); 24952: Fixup(); 24952: } 24952: s->allocated_and_unused_.store(avail - bytes, std::memory_order_relaxed); 24952: 24952: char* rv; 24952: if ((bytes % sizeof(void*)) == 0) { 24952: 24952: rv = s->free_begin_; 24952: s->free_begin_ += bytes; 24952: } else { 24952: 24952: rv = s->free_begin_ + avail - bytes; 24952: } 24952: return rv; 24952: } 24952: 24952: void Fixup() { 24952: arena_allocated_and_unused_.store(arena_.AllocatedAndUnused(), 24952: std::memory_order_relaxed); 24952: memory_allocated_bytes_.store(arena_.MemoryAllocatedBytes(), 24952: std::memory_order_relaxed); 24952: irregular_block_num_.store(arena_.IrregularBlockNum(), 24952: std::memory_order_relaxed); 24952: } 24952: 24952: ConcurrentArena(const ConcurrentArena&) = delete; 24952: ConcurrentArena& operator=(const ConcurrentArena&) = delete; 24952: }; 24952: 24952: } 24952: # 26 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/block_cache_trace_writer.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/trace_reader_writer.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/trace_reader_writer.h" 24952: class TraceWriter { 24952: public: 24952: virtual ~TraceWriter() = default; 24952: 24952: virtual Status Write(const Slice& data) = 0; 24952: virtual Status Close() = 0; 24952: virtual uint64_t GetFileSize() = 0; 24952: }; 24952: 24952: 24952: 24952: class TraceReader { 24952: public: 24952: virtual ~TraceReader() = default; 24952: 24952: virtual Status Read(std::string* data) = 0; 24952: virtual Status Close() = 0; 24952: 24952: 24952: 24952: virtual Status Reset() = 0; 24952: }; 24952: 24952: 24952: 24952: Status NewFileTraceWriter(Env* env, const EnvOptions& env_options, 24952: const std::string& trace_filename, 24952: std::unique_ptr* trace_writer); 24952: Status NewFileTraceReader(Env* env, const EnvOptions& env_options, 24952: const std::string& trace_filename, 24952: std::unique_ptr* trace_reader); 24952: 24952: } 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/block_cache_trace_writer.h" 2 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: struct BlockCacheTraceRecord { 24952: 24952: uint64_t access_timestamp = 0; 24952: 24952: 24952: 24952: 24952: std::string block_key; 24952: 24952: 24952: TraceType block_type = TraceType::kTraceMax; 24952: 24952: 24952: uint64_t block_size = 0; 24952: 24952: 24952: 24952: 24952: uint64_t cf_id = 0; 24952: 24952: 24952: std::string cf_name; 24952: 24952: 24952: uint32_t level = 0; 24952: 24952: 24952: uint64_t sst_fd_number = 0; 24952: 24952: 24952: 24952: 24952: TableReaderCaller caller = TableReaderCaller::kMaxBlockCacheLookupCaller; 24952: 24952: 24952: bool is_cache_hit = false; 24952: 24952: 24952: bool no_insert = false; 24952: 24952: 24952: 24952: 24952: uint64_t get_id = kReservedGetId; 24952: 24952: 24952: bool get_from_user_specified_snapshot = false; 24952: 24952: 24952: std::string referenced_key; 24952: 24952: 24952: 24952: 24952: uint64_t referenced_data_size = 0; 24952: 24952: 24952: uint64_t num_keys_in_block = 0; 24952: 24952: 24952: bool referenced_key_exist_in_block = false; 24952: 24952: static const uint64_t kReservedGetId; 24952: 24952: BlockCacheTraceRecord() {} 24952: 24952: BlockCacheTraceRecord(uint64_t _access_timestamp, std::string _block_key, 24952: TraceType _block_type, uint64_t _block_size, 24952: uint64_t _cf_id, std::string _cf_name, uint32_t _level, 24952: uint64_t _sst_fd_number, TableReaderCaller _caller, 24952: bool _is_cache_hit, bool _no_insert, uint64_t _get_id, 24952: bool _get_from_user_specified_snapshot = false, 24952: std::string _referenced_key = "", 24952: uint64_t _referenced_data_size = 0, 24952: uint64_t _num_keys_in_block = 0, 24952: bool _referenced_key_exist_in_block = false) 24952: : access_timestamp(_access_timestamp), 24952: block_key(_block_key), 24952: block_type(_block_type), 24952: block_size(_block_size), 24952: cf_id(_cf_id), 24952: cf_name(_cf_name), 24952: level(_level), 24952: sst_fd_number(_sst_fd_number), 24952: caller(_caller), 24952: is_cache_hit(_is_cache_hit), 24952: no_insert(_no_insert), 24952: get_id(_get_id), 24952: get_from_user_specified_snapshot(_get_from_user_specified_snapshot), 24952: referenced_key(_referenced_key), 24952: referenced_data_size(_referenced_data_size), 24952: num_keys_in_block(_num_keys_in_block), 24952: referenced_key_exist_in_block(_referenced_key_exist_in_block) {} 24952: }; 24952: 24952: 24952: struct BlockCacheTraceOptions { 24952: 24952: 24952: uint64_t sampling_frequency = 1; 24952: }; 24952: 24952: 24952: struct BlockCacheTraceWriterOptions { 24952: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 24952: }; 24952: 24952: 24952: 24952: 24952: class BlockCacheTraceWriter { 24952: public: 24952: virtual ~BlockCacheTraceWriter() {} 24952: 24952: 24952: virtual Status WriteBlockAccess(const BlockCacheTraceRecord& record, 24952: const Slice& block_key, const Slice& cf_name, 24952: const Slice& referenced_key) = 0; 24952: 24952: 24952: 24952: virtual Status WriteHeader() = 0; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: std::unique_ptr NewBlockCacheTraceWriter( 24952: SystemClock* clock, const BlockCacheTraceWriterOptions& trace_options, 24952: std::unique_ptr&& trace_writer); 24952: 24952: } 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 2 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct FileStorageInfo { 24952: 24952: std::string relative_filename; 24952: 24952: 24952: std::string directory; 24952: 24952: 24952: 24952: uint64_t file_number = 0; 24952: 24952: FileType file_type = kTempFile; 24952: 24952: 24952: uint64_t size = 0; 24952: 24952: 24952: Temperature temperature = Temperature::kUnknown; 24952: 24952: 24952: 24952: 24952: 24952: std::string file_checksum; 24952: 24952: 24952: 24952: 24952: 24952: std::string file_checksum_func_name; 24952: }; 24952: 24952: 24952: 24952: struct LiveFileStorageInfo : public FileStorageInfo { 24952: 24952: 24952: 24952: 24952: 24952: std::string replacement_contents; 24952: 24952: 24952: 24952: 24952: bool trim_to_size = false; 24952: }; 24952: 24952: 24952: 24952: struct SstFileMetaData : public FileStorageInfo { 24952: SstFileMetaData() { file_type = kTableFile; } 24952: 24952: SstFileMetaData(const std::string& _file_name, uint64_t _file_number, 24952: const std::string& _directory, uint64_t _size, 24952: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno, 24952: const std::string& _smallestkey, 24952: const std::string& _largestkey, uint64_t _num_reads_sampled, 24952: bool _being_compacted, Temperature _temperature, 24952: uint64_t _oldest_blob_file_number, 24952: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 24952: uint64_t _epoch_number, std::string& _file_checksum, 24952: std::string& _file_checksum_func_name) 24952: : smallest_seqno(_smallest_seqno), 24952: largest_seqno(_largest_seqno), 24952: smallestkey(_smallestkey), 24952: largestkey(_largestkey), 24952: num_reads_sampled(_num_reads_sampled), 24952: being_compacted(_being_compacted), 24952: num_entries(0), 24952: num_deletions(0), 24952: oldest_blob_file_number(_oldest_blob_file_number), 24952: oldest_ancester_time(_oldest_ancester_time), 24952: file_creation_time(_file_creation_time), 24952: epoch_number(_epoch_number) { 24952: if (!_file_name.empty()) { 24952: if (_file_name[0] == '/') { 24952: relative_filename = _file_name.substr(1); 24952: name = _file_name; 24952: } else { 24952: relative_filename = _file_name; 24952: name = std::string("/") + _file_name; 24952: } 24952: 24952: # 107 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 24952: (static_cast ( 24952: # 107 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 24952: relative_filename.size() + 1 == name.size() 24952: # 107 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 107 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 24952: "relative_filename.size() + 1 == name.size()" 24952: # 107 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 24952: , "./include/rocksdb/metadata.h", 107, __extension__ __PRETTY_FUNCTION__)) 24952: # 107 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 24952: ; 24952: 24952: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 24952: (static_cast ( 24952: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 24952: relative_filename[0] != '/' 24952: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 24952: "relative_filename[0] != '/'" 24952: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 24952: , "./include/rocksdb/metadata.h", 108, __extension__ __PRETTY_FUNCTION__)) 24952: # 108 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 24952: ; 24952: 24952: # 109 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 24952: (static_cast ( 24952: # 109 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 24952: name[0] == '/' 24952: # 109 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 109 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 24952: "name[0] == '/'" 24952: # 109 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 3 4 24952: , "./include/rocksdb/metadata.h", 109, __extension__ __PRETTY_FUNCTION__)) 24952: # 109 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 24952: ; 24952: } 24952: directory = _directory; 24952: db_path = _directory; 24952: file_number = _file_number; 24952: file_type = kTableFile; 24952: size = _size; 24952: temperature = _temperature; 24952: file_checksum = _file_checksum; 24952: file_checksum_func_name = _file_checksum_func_name; 24952: } 24952: 24952: SequenceNumber smallest_seqno = 0; 24952: SequenceNumber largest_seqno = 0; 24952: std::string smallestkey; 24952: std::string largestkey; 24952: uint64_t num_reads_sampled = 0; 24952: bool being_compacted = 24952: false; 24952: 24952: uint64_t num_entries = 0; 24952: uint64_t num_deletions = 0; 24952: 24952: uint64_t oldest_blob_file_number = 0; 24952: # 141 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/metadata.h" 24952: uint64_t oldest_ancester_time = 0; 24952: 24952: 24952: uint64_t file_creation_time = 0; 24952: 24952: 24952: 24952: 24952: 24952: uint64_t epoch_number = 0; 24952: 24952: 24952: 24952: 24952: std::string smallest{}; 24952: std::string largest{}; 24952: 24952: 24952: 24952: 24952: std::string name; 24952: 24952: 24952: std::string db_path; 24952: }; 24952: 24952: 24952: struct LiveFileMetaData : SstFileMetaData { 24952: std::string column_family_name; 24952: int level; 24952: LiveFileMetaData() : column_family_name(), level(0) {} 24952: }; 24952: 24952: 24952: struct BlobMetaData { 24952: BlobMetaData() 24952: : blob_file_number(0), 24952: blob_file_size(0), 24952: total_blob_count(0), 24952: total_blob_bytes(0), 24952: garbage_blob_count(0), 24952: garbage_blob_bytes(0) {} 24952: 24952: BlobMetaData(uint64_t _file_number, const std::string& _file_name, 24952: const std::string& _file_path, uint64_t _file_size, 24952: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 24952: uint64_t _garbage_blob_count, uint64_t _garbage_blob_bytes, 24952: const std::string& _file_checksum, 24952: const std::string& _file_checksum_func_name) 24952: : blob_file_number(_file_number), 24952: blob_file_name(_file_name), 24952: blob_file_path(_file_path), 24952: blob_file_size(_file_size), 24952: total_blob_count(_total_blob_count), 24952: total_blob_bytes(_total_blob_bytes), 24952: garbage_blob_count(_garbage_blob_count), 24952: garbage_blob_bytes(_garbage_blob_bytes), 24952: checksum_method(_file_checksum), 24952: checksum_value(_file_checksum_func_name) {} 24952: uint64_t blob_file_number; 24952: std::string blob_file_name; 24952: std::string blob_file_path; 24952: uint64_t blob_file_size; 24952: uint64_t total_blob_count; 24952: uint64_t total_blob_bytes; 24952: uint64_t garbage_blob_count; 24952: uint64_t garbage_blob_bytes; 24952: std::string checksum_method; 24952: std::string checksum_value; 24952: }; 24952: 24952: 24952: struct LevelMetaData { 24952: LevelMetaData(int _level, uint64_t _size, 24952: const std::vector&& _files) 24952: : level(_level), size(_size), files(_files) {} 24952: 24952: 24952: const int level; 24952: 24952: 24952: const uint64_t size; 24952: 24952: const std::vector files; 24952: }; 24952: 24952: 24952: struct ColumnFamilyMetaData { 24952: ColumnFamilyMetaData() : size(0), file_count(0), name("") {} 24952: ColumnFamilyMetaData(const std::string& _name, uint64_t _size, 24952: const std::vector&& _levels) 24952: : size(_size), name(_name), levels(_levels) {} 24952: 24952: 24952: 24952: uint64_t size; 24952: 24952: size_t file_count; 24952: 24952: std::string name; 24952: 24952: std::vector levels; 24952: 24952: 24952: uint64_t blob_file_size = 0; 24952: 24952: size_t blob_file_count = 0; 24952: 24952: std::vector blob_files; 24952: }; 24952: 24952: 24952: 24952: struct ExportImportFilesMetaData { 24952: std::string db_comparator_name; 24952: std::vector files; 24952: }; 24952: } 24952: # 24 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/snapshot.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class DB; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: class Snapshot { 24952: public: 24952: virtual SequenceNumber GetSequenceNumber() const = 0; 24952: 24952: 24952: 24952: virtual int64_t GetUnixTime() const = 0; 24952: 24952: virtual uint64_t GetTimestamp() const = 0; 24952: 24952: protected: 24952: virtual ~Snapshot(); 24952: }; 24952: 24952: 24952: 24952: 24952: class ManagedSnapshot { 24952: public: 24952: explicit ManagedSnapshot(DB* db); 24952: 24952: 24952: ManagedSnapshot(DB* db, const Snapshot* _snapshot); 24952: 24952: ~ManagedSnapshot(); 24952: 24952: const Snapshot* snapshot(); 24952: 24952: private: 24952: DB* db_; 24952: const Snapshot* snapshot_; 24952: }; 24952: 24952: } 24952: # 26 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_file_writer.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 24 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_file_writer.h" 24952: namespace rocksdb { 24952: 24952: class Comparator; 24952: 24952: 24952: 24952: struct ExternalSstFileInfo { 24952: ExternalSstFileInfo() 24952: : file_path(""), 24952: smallest_key(""), 24952: largest_key(""), 24952: smallest_range_del_key(""), 24952: largest_range_del_key(""), 24952: file_checksum(""), 24952: file_checksum_func_name(""), 24952: sequence_number(0), 24952: file_size(0), 24952: num_entries(0), 24952: num_range_del_entries(0), 24952: version(0) {} 24952: 24952: ExternalSstFileInfo(const std::string& _file_path, 24952: const std::string& _smallest_key, 24952: const std::string& _largest_key, 24952: SequenceNumber _sequence_number, uint64_t _file_size, 24952: uint64_t _num_entries, int32_t _version) 24952: : file_path(_file_path), 24952: smallest_key(_smallest_key), 24952: largest_key(_largest_key), 24952: smallest_range_del_key(""), 24952: largest_range_del_key(""), 24952: file_checksum(""), 24952: file_checksum_func_name(""), 24952: sequence_number(_sequence_number), 24952: file_size(_file_size), 24952: num_entries(_num_entries), 24952: num_range_del_entries(0), 24952: version(_version) {} 24952: 24952: std::string file_path; 24952: std::string smallest_key; 24952: std::string largest_key; 24952: std::string 24952: smallest_range_del_key; 24952: std::string largest_range_del_key; 24952: std::string file_checksum; 24952: std::string file_checksum_func_name; 24952: SequenceNumber sequence_number; 24952: uint64_t file_size; 24952: uint64_t num_entries; 24952: uint64_t num_range_del_entries; 24952: int32_t version; 24952: }; 24952: 24952: 24952: 24952: class SstFileWriter { 24952: public: 24952: # 92 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_file_writer.h" 24952: SstFileWriter(const EnvOptions& env_options, const Options& options, 24952: ColumnFamilyHandle* column_family = nullptr, 24952: bool invalidate_page_cache = true, 24952: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 24952: bool skip_filters = false) 24952: : SstFileWriter(env_options, options, options.comparator, column_family, 24952: invalidate_page_cache, io_priority, skip_filters) {} 24952: 24952: 24952: SstFileWriter(const EnvOptions& env_options, const Options& options, 24952: const Comparator* user_comparator, 24952: ColumnFamilyHandle* column_family = nullptr, 24952: bool invalidate_page_cache = true, 24952: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 24952: bool skip_filters = false); 24952: 24952: ~SstFileWriter(); 24952: 24952: 24952: Status Open(const std::string& file_path); 24952: 24952: 24952: 24952: 24952: 24952: __attribute__((__deprecated__)) Status Add(const Slice& user_key, const Slice& value); 24952: 24952: 24952: 24952: 24952: 24952: Status Put(const Slice& user_key, const Slice& value); 24952: 24952: 24952: 24952: 24952: 24952: Status Put(const Slice& user_key, const Slice& timestamp, const Slice& value); 24952: 24952: 24952: 24952: Status PutEntity(const Slice& user_key, const WideColumns& columns); 24952: 24952: 24952: 24952: 24952: 24952: Status Merge(const Slice& user_key, const Slice& value); 24952: 24952: 24952: 24952: 24952: 24952: Status Delete(const Slice& user_key); 24952: 24952: 24952: 24952: 24952: 24952: Status Delete(const Slice& user_key, const Slice& timestamp); 24952: # 163 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_file_writer.h" 24952: Status DeleteRange(const Slice& begin_key, const Slice& end_key); 24952: # 176 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/sst_file_writer.h" 24952: Status DeleteRange(const Slice& begin_key, const Slice& end_key, 24952: const Slice& timestamp); 24952: 24952: 24952: 24952: 24952: 24952: Status Finish(ExternalSstFileInfo* file_info = nullptr); 24952: 24952: 24952: uint64_t FileSize(); 24952: 24952: private: 24952: void InvalidatePageCache(bool closing); 24952: struct Rep; 24952: std::unique_ptr rep_; 24952: }; 24952: } 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/transaction_log.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 1 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 24952: 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch_base.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch_base.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class Slice; 24952: class Status; 24952: class ColumnFamilyHandle; 24952: class WriteBatch; 24952: struct SliceParts; 24952: 24952: 24952: 24952: 24952: class WriteBatchBase { 24952: public: 24952: virtual ~WriteBatchBase() {} 24952: 24952: 24952: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& value) = 0; 24952: virtual Status Put(const Slice& key, const Slice& value) = 0; 24952: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& ts, const Slice& value) = 0; 24952: 24952: 24952: 24952: 24952: virtual Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 24952: const SliceParts& value); 24952: virtual Status Put(const SliceParts& key, const SliceParts& value); 24952: # 58 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch_base.h" 24952: virtual Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& value, uint64_t write_unix_time) = 0; 24952: 24952: 24952: 24952: virtual Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 24952: const WideColumns& columns) = 0; 24952: 24952: 24952: 24952: virtual Status PutEntity(const Slice& key, 24952: const AttributeGroups& attribute_groups) = 0; 24952: 24952: 24952: 24952: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& value) = 0; 24952: virtual Status Merge(const Slice& key, const Slice& value) = 0; 24952: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& ts, const Slice& value) = 0; 24952: 24952: 24952: virtual Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 24952: const SliceParts& value); 24952: virtual Status Merge(const SliceParts& key, const SliceParts& value); 24952: 24952: 24952: virtual Status Delete(ColumnFamilyHandle* column_family, 24952: const Slice& key) = 0; 24952: virtual Status Delete(const Slice& key) = 0; 24952: virtual Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& ts) = 0; 24952: 24952: 24952: virtual Status Delete(ColumnFamilyHandle* column_family, 24952: const SliceParts& key); 24952: virtual Status Delete(const SliceParts& key); 24952: 24952: 24952: 24952: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 24952: const Slice& key) = 0; 24952: virtual Status SingleDelete(const Slice& key) = 0; 24952: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 24952: const Slice& key, const Slice& ts) = 0; 24952: 24952: 24952: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 24952: const SliceParts& key); 24952: virtual Status SingleDelete(const SliceParts& key); 24952: 24952: 24952: 24952: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 24952: const Slice& begin_key, const Slice& end_key) = 0; 24952: virtual Status DeleteRange(const Slice& begin_key, const Slice& end_key) = 0; 24952: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 24952: const Slice& begin_key, const Slice& end_key, 24952: const Slice& ts) = 0; 24952: 24952: 24952: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 24952: const SliceParts& begin_key, 24952: const SliceParts& end_key); 24952: virtual Status DeleteRange(const SliceParts& begin_key, 24952: const SliceParts& end_key); 24952: # 135 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch_base.h" 24952: virtual Status PutLogData(const Slice& blob) = 0; 24952: 24952: 24952: virtual void Clear() = 0; 24952: 24952: 24952: 24952: 24952: virtual WriteBatch* GetWriteBatch() = 0; 24952: 24952: 24952: 24952: virtual void SetSavePoint() = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual Status RollbackToSavePoint() = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual Status PopSavePoint() = 0; 24952: 24952: 24952: virtual void SetMaxBytes(size_t max_bytes) = 0; 24952: }; 24952: 24952: } 24952: # 37 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: class Slice; 24952: class ColumnFamilyHandle; 24952: struct SavePoints; 24952: struct SliceParts; 24952: 24952: struct SavePoint { 24952: size_t size; 24952: uint32_t count; 24952: uint32_t content_flags; 24952: 24952: SavePoint() : size(0), count(0), content_flags(0) {} 24952: 24952: SavePoint(size_t _size, uint32_t _count, uint32_t _flags) 24952: : size(_size), count(_count), content_flags(_flags) {} 24952: 24952: void clear() { 24952: size = 0; 24952: count = 0; 24952: content_flags = 0; 24952: } 24952: 24952: bool is_cleared() const { return (size | count | content_flags) == 0; } 24952: }; 24952: 24952: class WriteBatch : public WriteBatchBase { 24952: public: 24952: explicit WriteBatch(size_t reserved_bytes = 0, size_t max_bytes = 0) 24952: : WriteBatch(reserved_bytes, max_bytes, 0, 0) {} 24952: 24952: 24952: 24952: 24952: explicit WriteBatch(size_t reserved_bytes, size_t max_bytes, 24952: size_t protection_bytes_per_key, size_t default_cf_ts_sz); 24952: ~WriteBatch() override; 24952: 24952: using WriteBatchBase::Put; 24952: 24952: 24952: 24952: 24952: 24952: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& value) override; 24952: Status Put(const Slice& key, const Slice& value) override { 24952: return Put(nullptr, key, value); 24952: } 24952: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& ts, const Slice& value) override; 24952: # 97 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 24952: Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 24952: const SliceParts& value) override; 24952: Status Put(const SliceParts& key, const SliceParts& value) override { 24952: return Put(nullptr, key, value); 24952: } 24952: 24952: using WriteBatchBase::TimedPut; 24952: 24952: 24952: 24952: Status TimedPut(ColumnFamilyHandle* , 24952: const Slice& , const Slice& , 24952: uint64_t ) override { 24952: 24952: return Status::NotSupported("TimedPut is under construction"); 24952: } 24952: 24952: 24952: 24952: using WriteBatchBase::PutEntity; 24952: Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 24952: const WideColumns& columns) override; 24952: 24952: 24952: 24952: Status PutEntity(const Slice& key, 24952: const AttributeGroups& attribute_groups) override; 24952: 24952: using WriteBatchBase::Delete; 24952: 24952: 24952: 24952: 24952: 24952: Status Delete(ColumnFamilyHandle* column_family, const Slice& key) override; 24952: Status Delete(const Slice& key) override { return Delete(nullptr, key); } 24952: Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& ts) override; 24952: 24952: 24952: 24952: 24952: 24952: 24952: Status Delete(ColumnFamilyHandle* column_family, 24952: const SliceParts& key) override; 24952: Status Delete(const SliceParts& key) override { return Delete(nullptr, key); } 24952: 24952: using WriteBatchBase::SingleDelete; 24952: 24952: Status SingleDelete(ColumnFamilyHandle* column_family, 24952: const Slice& key) override; 24952: Status SingleDelete(const Slice& key) override { 24952: return SingleDelete(nullptr, key); 24952: } 24952: Status SingleDelete(ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& ts) override; 24952: 24952: 24952: Status SingleDelete(ColumnFamilyHandle* column_family, 24952: const SliceParts& key) override; 24952: Status SingleDelete(const SliceParts& key) override { 24952: return SingleDelete(nullptr, key); 24952: } 24952: 24952: using WriteBatchBase::DeleteRange; 24952: 24952: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 24952: const Slice& end_key) override; 24952: Status DeleteRange(const Slice& begin_key, const Slice& end_key) override { 24952: return DeleteRange(nullptr, begin_key, end_key); 24952: } 24952: 24952: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 24952: const Slice& end_key, const Slice& ts) override; 24952: 24952: 24952: Status DeleteRange(ColumnFamilyHandle* column_family, 24952: const SliceParts& begin_key, 24952: const SliceParts& end_key) override; 24952: Status DeleteRange(const SliceParts& begin_key, 24952: const SliceParts& end_key) override { 24952: return DeleteRange(nullptr, begin_key, end_key); 24952: } 24952: 24952: using WriteBatchBase::Merge; 24952: 24952: 24952: Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& value) override; 24952: Status Merge(const Slice& key, const Slice& value) override { 24952: return Merge(nullptr, key, value); 24952: } 24952: Status Merge(ColumnFamilyHandle* , const Slice& , 24952: const Slice& , const Slice& ) override; 24952: 24952: 24952: Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 24952: const SliceParts& value) override; 24952: Status Merge(const SliceParts& key, const SliceParts& value) override { 24952: return Merge(nullptr, key, value); 24952: } 24952: 24952: using WriteBatchBase::PutLogData; 24952: # 211 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 24952: Status PutLogData(const Slice& blob) override; 24952: 24952: using WriteBatchBase::Clear; 24952: 24952: void Clear() override; 24952: 24952: 24952: 24952: void SetSavePoint() override; 24952: 24952: 24952: 24952: 24952: 24952: 24952: Status RollbackToSavePoint() override; 24952: 24952: 24952: 24952: 24952: 24952: Status PopSavePoint() override; 24952: 24952: 24952: 24952: class Handler { 24952: public: 24952: virtual ~Handler(); 24952: # 247 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 24952: virtual Status PutCF(uint32_t column_family_id, const Slice& key, 24952: const Slice& value) { 24952: if (column_family_id == 0) { 24952: 24952: 24952: 24952: Put(key, value); 24952: return Status::OK(); 24952: } 24952: return Status::InvalidArgument( 24952: "non-default column family and PutCF not implemented"); 24952: } 24952: 24952: virtual void Put(const Slice& , const Slice& ) {} 24952: 24952: 24952: virtual Status PutEntityCF(uint32_t , 24952: const Slice& , 24952: const Slice& ) { 24952: return Status::NotSupported("PutEntityCF not implemented"); 24952: } 24952: 24952: 24952: virtual Status DeleteCF(uint32_t column_family_id, const Slice& key) { 24952: if (column_family_id == 0) { 24952: Delete(key); 24952: return Status::OK(); 24952: } 24952: return Status::InvalidArgument( 24952: "non-default column family and DeleteCF not implemented"); 24952: } 24952: 24952: virtual void Delete(const Slice& ) {} 24952: 24952: 24952: virtual Status SingleDeleteCF(uint32_t column_family_id, const Slice& key) { 24952: if (column_family_id == 0) { 24952: SingleDelete(key); 24952: return Status::OK(); 24952: } 24952: return Status::InvalidArgument( 24952: "non-default column family and SingleDeleteCF not implemented"); 24952: } 24952: 24952: virtual void SingleDelete(const Slice& ) {} 24952: 24952: 24952: 24952: virtual Status DeleteRangeCF(uint32_t , 24952: const Slice& , 24952: const Slice& ) { 24952: return Status::InvalidArgument("DeleteRangeCF not implemented"); 24952: } 24952: 24952: 24952: virtual Status MergeCF(uint32_t column_family_id, const Slice& key, 24952: const Slice& value) { 24952: if (column_family_id == 0) { 24952: Merge(key, value); 24952: return Status::OK(); 24952: } 24952: return Status::InvalidArgument( 24952: "non-default column family and MergeCF not implemented"); 24952: } 24952: 24952: virtual void Merge(const Slice& , const Slice& ) {} 24952: 24952: 24952: virtual Status PutBlobIndexCF(uint32_t , 24952: const Slice& , 24952: const Slice& ) { 24952: return Status::InvalidArgument("PutBlobIndexCF not implemented"); 24952: } 24952: 24952: 24952: virtual void LogData(const Slice& blob); 24952: 24952: virtual Status MarkBeginPrepare(bool = false) { 24952: return Status::InvalidArgument("MarkBeginPrepare() handler not defined."); 24952: } 24952: 24952: virtual Status MarkEndPrepare(const Slice& ) { 24952: return Status::InvalidArgument("MarkEndPrepare() handler not defined."); 24952: } 24952: 24952: virtual Status MarkNoop(bool ) { 24952: return Status::InvalidArgument("MarkNoop() handler not defined."); 24952: } 24952: 24952: virtual Status MarkRollback(const Slice& ) { 24952: return Status::InvalidArgument( 24952: "MarkRollbackPrepare() handler not defined."); 24952: } 24952: 24952: virtual Status MarkCommit(const Slice& ) { 24952: return Status::InvalidArgument("MarkCommit() handler not defined."); 24952: } 24952: 24952: virtual Status MarkCommitWithTimestamp(const Slice& , 24952: const Slice& ) { 24952: return Status::InvalidArgument( 24952: "MarkCommitWithTimestamp() handler not defined."); 24952: } 24952: 24952: 24952: 24952: 24952: virtual bool Continue(); 24952: 24952: protected: 24952: friend class WriteBatchInternal; 24952: enum class OptionState { 24952: kUnknown, 24952: kDisabled, 24952: kEnabled, 24952: }; 24952: virtual OptionState WriteAfterCommit() const { 24952: return OptionState::kUnknown; 24952: } 24952: virtual OptionState WriteBeforePrepare() const { 24952: return OptionState::kUnknown; 24952: } 24952: }; 24952: Status Iterate(Handler* handler) const; 24952: 24952: 24952: const std::string& Data() const { return rep_; } 24952: 24952: 24952: std::string Release(); 24952: 24952: 24952: size_t GetDataSize() const { return rep_.size(); } 24952: 24952: 24952: uint32_t Count() const; 24952: 24952: 24952: bool HasPut() const; 24952: 24952: 24952: bool HasPutEntity() const; 24952: 24952: 24952: bool HasDelete() const; 24952: 24952: 24952: bool HasSingleDelete() const; 24952: 24952: 24952: bool HasDeleteRange() const; 24952: 24952: 24952: bool HasMerge() const; 24952: 24952: 24952: bool HasBeginPrepare() const; 24952: 24952: 24952: bool HasEndPrepare() const; 24952: 24952: 24952: bool HasCommit() const; 24952: 24952: 24952: bool HasRollback() const; 24952: # 430 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 24952: Status UpdateTimestamps(const Slice& ts, 24952: std::function ts_sz_func); 24952: 24952: 24952: 24952: 24952: 24952: Status VerifyChecksum() const; 24952: 24952: using WriteBatchBase::GetWriteBatch; 24952: WriteBatch* GetWriteBatch() override { return this; } 24952: 24952: 24952: explicit WriteBatch(const std::string& rep); 24952: explicit WriteBatch(std::string&& rep); 24952: 24952: WriteBatch(const WriteBatch& src); 24952: WriteBatch(WriteBatch&& src) noexcept; 24952: WriteBatch& operator=(const WriteBatch& src); 24952: WriteBatch& operator=(WriteBatch&& src); 24952: 24952: 24952: 24952: void MarkWalTerminationPoint(); 24952: const SavePoint& GetWalTerminationPoint() const { return wal_term_point_; } 24952: 24952: void SetMaxBytes(size_t max_bytes) override { max_bytes_ = max_bytes; } 24952: 24952: struct ProtectionInfo; 24952: size_t GetProtectionBytesPerKey() const; 24952: 24952: private: 24952: friend class WriteBatchInternal; 24952: friend class LocalSavePoint; 24952: 24952: 24952: 24952: friend class WriteBatchWithIndex; 24952: std::unique_ptr save_points_; 24952: 24952: 24952: 24952: 24952: SavePoint wal_term_point_; 24952: 24952: 24952: 24952: 24952: 24952: bool is_latest_persistent_state_ = false; 24952: # 488 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/write_batch.h" 24952: bool needs_in_place_update_ts_ = false; 24952: 24952: 24952: 24952: bool has_key_with_ts_ = false; 24952: 24952: 24952: mutable std::atomic content_flags_; 24952: 24952: 24952: uint32_t ComputeContentFlags() const; 24952: 24952: 24952: size_t max_bytes_; 24952: 24952: std::unique_ptr prot_info_; 24952: 24952: size_t default_cf_ts_sz_ = 0; 24952: 24952: protected: 24952: std::string rep_; 24952: }; 24952: 24952: } 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/transaction_log.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: class LogFile; 24952: using VectorLogPtr = std::vector>; 24952: 24952: enum WalFileType { 24952: 24952: 24952: 24952: 24952: 24952: 24952: kArchivedLogFile = 0, 24952: 24952: 24952: kAliveLogFile = 1 24952: }; 24952: 24952: class LogFile { 24952: public: 24952: LogFile() {} 24952: virtual ~LogFile() {} 24952: 24952: 24952: 24952: 24952: virtual std::string PathName() const = 0; 24952: 24952: 24952: 24952: virtual uint64_t LogNumber() const = 0; 24952: 24952: 24952: virtual WalFileType Type() const = 0; 24952: 24952: 24952: virtual SequenceNumber StartSequence() const = 0; 24952: 24952: 24952: virtual uint64_t SizeFileBytes() const = 0; 24952: }; 24952: 24952: struct BatchResult { 24952: SequenceNumber sequence = 0; 24952: std::unique_ptr writeBatchPtr; 24952: 24952: 24952: 24952: 24952: BatchResult() {} 24952: 24952: ~BatchResult() {} 24952: 24952: BatchResult(const BatchResult&) = delete; 24952: 24952: BatchResult& operator=(const BatchResult&) = delete; 24952: 24952: BatchResult(BatchResult&& bResult) 24952: : sequence(std::move(bResult.sequence)), 24952: writeBatchPtr(std::move(bResult.writeBatchPtr)) {} 24952: 24952: BatchResult& operator=(BatchResult&& bResult) { 24952: sequence = std::move(bResult.sequence); 24952: writeBatchPtr = std::move(bResult.writeBatchPtr); 24952: return *this; 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: class TransactionLogIterator { 24952: public: 24952: TransactionLogIterator() {} 24952: virtual ~TransactionLogIterator() {} 24952: 24952: 24952: 24952: 24952: virtual bool Valid() = 0; 24952: 24952: 24952: 24952: virtual void Next() = 0; 24952: 24952: 24952: 24952: virtual Status status() = 0; 24952: 24952: 24952: 24952: 24952: virtual BatchResult GetBatch() = 0; 24952: 24952: 24952: struct ReadOptions { 24952: 24952: 24952: 24952: bool verify_checksums_; 24952: 24952: ReadOptions() : verify_checksums_(true) {} 24952: 24952: explicit ReadOptions(bool verify_checksums) 24952: : verify_checksums_(verify_checksums) {} 24952: }; 24952: }; 24952: } 24952: # 29 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 2 24952: # 44 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: namespace rocksdb { 24952: 24952: struct ColumnFamilyOptions; 24952: struct CompactionOptions; 24952: struct CompactRangeOptions; 24952: struct DBOptions; 24952: struct ExternalSstFileInfo; 24952: struct FlushOptions; 24952: struct Options; 24952: struct ReadOptions; 24952: struct TableProperties; 24952: struct WriteOptions; 24952: struct WaitForCompactOptions; 24952: class Env; 24952: class EventListener; 24952: class FileSystem; 24952: class Replayer; 24952: class StatsHistoryIterator; 24952: class TraceReader; 24952: class TraceWriter; 24952: class WriteBatch; 24952: 24952: extern const std::string kDefaultColumnFamilyName; 24952: extern const std::string kPersistentStatsColumnFamilyName; 24952: struct ColumnFamilyDescriptor { 24952: std::string name; 24952: ColumnFamilyOptions options; 24952: ColumnFamilyDescriptor() 24952: : name(kDefaultColumnFamilyName), options(ColumnFamilyOptions()) {} 24952: ColumnFamilyDescriptor(const std::string& _name, 24952: const ColumnFamilyOptions& _options) 24952: : name(_name), options(_options) {} 24952: }; 24952: 24952: class ColumnFamilyHandle { 24952: public: 24952: virtual ~ColumnFamilyHandle() {} 24952: 24952: virtual const std::string& GetName() const = 0; 24952: 24952: virtual uint32_t GetID() const = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status GetDescriptor(ColumnFamilyDescriptor* desc) = 0; 24952: 24952: 24952: virtual const Comparator* GetComparator() const = 0; 24952: }; 24952: 24952: static const int kMajorVersion = 8; 24952: static const int kMinorVersion = 9; 24952: 24952: 24952: struct Range { 24952: 24952: 24952: Slice start; 24952: Slice limit; 24952: 24952: Range() {} 24952: Range(const Slice& s, const Slice& l) : start(s), limit(l) {} 24952: }; 24952: 24952: struct RangePtr { 24952: 24952: 24952: const Slice* start; 24952: const Slice* limit; 24952: 24952: RangePtr() : start(nullptr), limit(nullptr) {} 24952: RangePtr(const Slice* s, const Slice* l) : start(s), limit(l) {} 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct IngestExternalFileArg { 24952: ColumnFamilyHandle* column_family = nullptr; 24952: std::vector external_files; 24952: IngestExternalFileOptions options; 24952: std::vector files_checksums; 24952: std::vector files_checksum_func_names; 24952: Temperature file_temperature = Temperature::kUnknown; 24952: }; 24952: 24952: struct GetMergeOperandsOptions { 24952: 24952: 24952: 24952: 24952: 24952: int expected_max_number_of_operands = 0; 24952: }; 24952: 24952: 24952: 24952: 24952: using TablePropertiesCollection = 24952: std::unordered_map>; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class DB { 24952: public: 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: static Status Open(const Options& options, const std::string& name, 24952: DB** dbptr); 24952: # 185 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: static Status Open(const DBOptions& db_options, const std::string& name, 24952: const std::vector& column_families, 24952: std::vector* handles, DB** dbptr); 24952: # 203 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: static Status OpenForReadOnly(const Options& options, const std::string& name, 24952: DB** dbptr, 24952: bool error_if_wal_file_exists = false); 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: static Status OpenForReadOnly( 24952: const DBOptions& db_options, const std::string& name, 24952: const std::vector& column_families, 24952: std::vector* handles, DB** dbptr, 24952: bool error_if_wal_file_exists = false); 24952: # 244 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: static Status OpenAsSecondary(const Options& options, const std::string& name, 24952: const std::string& secondary_path, DB** dbptr); 24952: # 279 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: static Status OpenAsSecondary( 24952: const DBOptions& db_options, const std::string& name, 24952: const std::string& secondary_path, 24952: const std::vector& column_families, 24952: std::vector* handles, DB** dbptr); 24952: 24952: 24952: 24952: 24952: 24952: 24952: static Status OpenAndCompact( 24952: const std::string& name, const std::string& output_directory, 24952: const std::string& input, std::string* output, 24952: const CompactionServiceOptionsOverride& override_options); 24952: 24952: static Status OpenAndCompact( 24952: const OpenAndCompactOptions& options, const std::string& name, 24952: const std::string& output_directory, const std::string& input, 24952: std::string* output, 24952: const CompactionServiceOptionsOverride& override_options); 24952: # 308 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: static Status OpenAndTrimHistory( 24952: const DBOptions& db_options, const std::string& dbname, 24952: const std::vector& column_families, 24952: std::vector* handles, DB** dbptr, 24952: std::string trim_ts); 24952: # 326 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status Resume() { return Status::NotSupported(); } 24952: # 345 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status Close() { return Status::NotSupported(); } 24952: 24952: 24952: 24952: 24952: 24952: static Status ListColumnFamilies(const DBOptions& db_options, 24952: const std::string& name, 24952: std::vector* column_families); 24952: 24952: 24952: DB() {} 24952: 24952: DB(const DB&) = delete; 24952: void operator=(const DB&) = delete; 24952: 24952: virtual ~DB(); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status CreateColumnFamily(const ColumnFamilyOptions& options, 24952: const std::string& column_family_name, 24952: ColumnFamilyHandle** handle); 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status CreateColumnFamilies( 24952: const ColumnFamilyOptions& options, 24952: const std::vector& column_family_names, 24952: std::vector* handles); 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status CreateColumnFamilies( 24952: const std::vector& column_families, 24952: std::vector* handles); 24952: 24952: 24952: 24952: 24952: virtual Status DropColumnFamily(ColumnFamilyHandle* column_family); 24952: 24952: 24952: 24952: 24952: 24952: virtual Status DropColumnFamilies( 24952: const std::vector& column_families); 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status DestroyColumnFamilyHandle(ColumnFamilyHandle* column_family); 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Put(const WriteOptions& options, 24952: ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& value) = 0; 24952: virtual Status Put(const WriteOptions& options, 24952: ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& ts, const Slice& value) = 0; 24952: virtual Status Put(const WriteOptions& options, const Slice& key, 24952: const Slice& value) { 24952: return Put(options, DefaultColumnFamily(), key, value); 24952: } 24952: virtual Status Put(const WriteOptions& options, const Slice& key, 24952: const Slice& ts, const Slice& value) { 24952: return Put(options, DefaultColumnFamily(), key, ts, value); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status PutEntity(const WriteOptions& options, 24952: ColumnFamilyHandle* column_family, const Slice& key, 24952: const WideColumns& columns); 24952: 24952: 24952: virtual Status PutEntity(const WriteOptions& options, const Slice& key, 24952: const AttributeGroups& attribute_groups); 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Delete(const WriteOptions& options, 24952: ColumnFamilyHandle* column_family, 24952: const Slice& key) = 0; 24952: virtual Status Delete(const WriteOptions& options, 24952: ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& ts) = 0; 24952: virtual Status Delete(const WriteOptions& options, const Slice& key) { 24952: return Delete(options, DefaultColumnFamily(), key); 24952: } 24952: virtual Status Delete(const WriteOptions& options, const Slice& key, 24952: const Slice& ts) { 24952: return Delete(options, DefaultColumnFamily(), key, ts); 24952: } 24952: # 477 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status SingleDelete(const WriteOptions& options, 24952: ColumnFamilyHandle* column_family, 24952: const Slice& key) = 0; 24952: virtual Status SingleDelete(const WriteOptions& options, 24952: ColumnFamilyHandle* column_family, 24952: const Slice& key, const Slice& ts) = 0; 24952: virtual Status SingleDelete(const WriteOptions& options, const Slice& key) { 24952: return SingleDelete(options, DefaultColumnFamily(), key); 24952: } 24952: virtual Status SingleDelete(const WriteOptions& options, const Slice& key, 24952: const Slice& ts) { 24952: return SingleDelete(options, DefaultColumnFamily(), key, ts); 24952: } 24952: # 505 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status DeleteRange(const WriteOptions& options, 24952: ColumnFamilyHandle* column_family, 24952: const Slice& begin_key, const Slice& end_key); 24952: virtual Status DeleteRange(const WriteOptions& options, 24952: ColumnFamilyHandle* column_family, 24952: const Slice& begin_key, const Slice& end_key, 24952: const Slice& ts); 24952: virtual Status DeleteRange(const WriteOptions& options, 24952: const Slice& begin_key, const Slice& end_key) { 24952: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key); 24952: } 24952: virtual Status DeleteRange(const WriteOptions& options, 24952: const Slice& begin_key, const Slice& end_key, 24952: const Slice& ts) { 24952: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key, ts); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Merge(const WriteOptions& options, 24952: ColumnFamilyHandle* column_family, const Slice& key, 24952: const Slice& value) = 0; 24952: virtual Status Merge(const WriteOptions& options, const Slice& key, 24952: const Slice& value) { 24952: return Merge(options, DefaultColumnFamily(), key, value); 24952: } 24952: virtual Status Merge(const WriteOptions& , 24952: ColumnFamilyHandle* , 24952: const Slice& , const Slice& , 24952: const Slice& ); 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status Write(const WriteOptions& options, WriteBatch* updates) = 0; 24952: # 556 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual inline Status Get(const ReadOptions& options, 24952: ColumnFamilyHandle* column_family, const Slice& key, 24952: std::string* value) { 24952: 24952: # 559 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 24952: (static_cast ( 24952: # 559 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: value != nullptr 24952: # 559 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 559 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: "value != nullptr" 24952: # 559 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 24952: , "./include/rocksdb/db.h", 559, __extension__ __PRETTY_FUNCTION__)) 24952: # 559 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: ; 24952: PinnableSlice pinnable_val(value); 24952: 24952: # 561 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 24952: (static_cast ( 24952: # 561 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: !pinnable_val.IsPinned() 24952: # 561 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 561 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: "!pinnable_val.IsPinned()" 24952: # 561 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 24952: , "./include/rocksdb/db.h", 561, __extension__ __PRETTY_FUNCTION__)) 24952: # 561 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: ; 24952: auto s = Get(options, column_family, key, &pinnable_val); 24952: if (s.ok() && pinnable_val.IsPinned()) { 24952: value->assign(pinnable_val.data(), pinnable_val.size()); 24952: } 24952: return s; 24952: } 24952: virtual Status Get(const ReadOptions& options, 24952: ColumnFamilyHandle* column_family, const Slice& key, 24952: PinnableSlice* value) = 0; 24952: virtual Status Get(const ReadOptions& options, const Slice& key, 24952: std::string* value) { 24952: return Get(options, DefaultColumnFamily(), key, value); 24952: } 24952: 24952: 24952: 24952: virtual inline Status Get(const ReadOptions& options, 24952: ColumnFamilyHandle* column_family, const Slice& key, 24952: std::string* value, std::string* timestamp) { 24952: 24952: # 581 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 24952: (static_cast ( 24952: # 581 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: value != nullptr 24952: # 581 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 581 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: "value != nullptr" 24952: # 581 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 24952: , "./include/rocksdb/db.h", 581, __extension__ __PRETTY_FUNCTION__)) 24952: # 581 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: ; 24952: PinnableSlice pinnable_val(value); 24952: 24952: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 24952: (static_cast ( 24952: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: !pinnable_val.IsPinned() 24952: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: "!pinnable_val.IsPinned()" 24952: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 3 4 24952: , "./include/rocksdb/db.h", 583, __extension__ __PRETTY_FUNCTION__)) 24952: # 583 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: ; 24952: auto s = Get(options, column_family, key, &pinnable_val, timestamp); 24952: if (s.ok() && pinnable_val.IsPinned()) { 24952: value->assign(pinnable_val.data(), pinnable_val.size()); 24952: } 24952: return s; 24952: } 24952: virtual Status Get(const ReadOptions& , 24952: ColumnFamilyHandle* , 24952: const Slice& , PinnableSlice* , 24952: std::string* ) { 24952: return Status::NotSupported( 24952: "Get() that returns timestamp is not implemented."); 24952: } 24952: virtual Status Get(const ReadOptions& options, const Slice& key, 24952: std::string* value, std::string* timestamp) { 24952: return Get(options, DefaultColumnFamily(), key, value, timestamp); 24952: } 24952: # 611 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status GetEntity(const ReadOptions& , 24952: ColumnFamilyHandle* , 24952: const Slice& , 24952: PinnableWideColumns* ) { 24952: return Status::NotSupported("GetEntity not supported"); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual Status GetEntity(const ReadOptions& , 24952: const Slice& , 24952: PinnableAttributeGroups* ) { 24952: return Status::NotSupported("GetEntity not supported"); 24952: } 24952: # 646 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status GetMergeOperands( 24952: const ReadOptions& options, ColumnFamilyHandle* column_family, 24952: const Slice& key, PinnableSlice* merge_operands, 24952: GetMergeOperandsOptions* get_merge_operands_options, 24952: int* number_of_operands) = 0; 24952: # 667 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual std::vector MultiGet( 24952: const ReadOptions& options, 24952: const std::vector& column_family, 24952: const std::vector& keys, std::vector* values) = 0; 24952: virtual std::vector MultiGet(const ReadOptions& options, 24952: const std::vector& keys, 24952: std::vector* values) { 24952: return MultiGet( 24952: options, 24952: std::vector(keys.size(), DefaultColumnFamily()), 24952: keys, values); 24952: } 24952: 24952: virtual std::vector MultiGet( 24952: const ReadOptions& , 24952: const std::vector& , 24952: const std::vector& keys, std::vector* , 24952: std::vector* ) { 24952: return std::vector( 24952: keys.size(), Status::NotSupported( 24952: "MultiGet() returning timestamps not implemented.")); 24952: } 24952: virtual std::vector MultiGet(const ReadOptions& options, 24952: const std::vector& keys, 24952: std::vector* values, 24952: std::vector* timestamps) { 24952: return MultiGet( 24952: options, 24952: std::vector(keys.size(), DefaultColumnFamily()), 24952: keys, values, timestamps); 24952: } 24952: # 718 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual void MultiGet(const ReadOptions& options, 24952: ColumnFamilyHandle* column_family, 24952: const size_t num_keys, const Slice* keys, 24952: PinnableSlice* values, Status* statuses, 24952: const bool = false) { 24952: std::vector cf; 24952: std::vector user_keys; 24952: std::vector status; 24952: std::vector vals; 24952: 24952: for (size_t i = 0; i < num_keys; ++i) { 24952: cf.emplace_back(column_family); 24952: user_keys.emplace_back(keys[i]); 24952: } 24952: status = MultiGet(options, cf, user_keys, &vals); 24952: std::copy(status.begin(), status.end(), statuses); 24952: for (auto& value : vals) { 24952: values->PinSelf(value); 24952: values++; 24952: } 24952: } 24952: 24952: virtual void MultiGet(const ReadOptions& options, 24952: ColumnFamilyHandle* column_family, 24952: const size_t num_keys, const Slice* keys, 24952: PinnableSlice* values, std::string* timestamps, 24952: Status* statuses, const bool = false) { 24952: std::vector cf; 24952: std::vector user_keys; 24952: std::vector status; 24952: std::vector vals; 24952: std::vector tss; 24952: 24952: for (size_t i = 0; i < num_keys; ++i) { 24952: cf.emplace_back(column_family); 24952: user_keys.emplace_back(keys[i]); 24952: } 24952: status = MultiGet(options, cf, user_keys, &vals, &tss); 24952: std::copy(status.begin(), status.end(), statuses); 24952: std::copy(tss.begin(), tss.end(), timestamps); 24952: for (auto& value : vals) { 24952: values->PinSelf(value); 24952: values++; 24952: } 24952: } 24952: # 783 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 24952: ColumnFamilyHandle** column_families, const Slice* keys, 24952: PinnableSlice* values, Status* statuses, 24952: const bool = false) { 24952: std::vector cf; 24952: std::vector user_keys; 24952: std::vector status; 24952: std::vector vals; 24952: 24952: for (size_t i = 0; i < num_keys; ++i) { 24952: cf.emplace_back(column_families[i]); 24952: user_keys.emplace_back(keys[i]); 24952: } 24952: status = MultiGet(options, cf, user_keys, &vals); 24952: std::copy(status.begin(), status.end(), statuses); 24952: for (auto& value : vals) { 24952: values->PinSelf(value); 24952: values++; 24952: } 24952: } 24952: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 24952: ColumnFamilyHandle** column_families, const Slice* keys, 24952: PinnableSlice* values, std::string* timestamps, 24952: Status* statuses, const bool = false) { 24952: std::vector cf; 24952: std::vector user_keys; 24952: std::vector status; 24952: std::vector vals; 24952: std::vector tss; 24952: 24952: for (size_t i = 0; i < num_keys; ++i) { 24952: cf.emplace_back(column_families[i]); 24952: user_keys.emplace_back(keys[i]); 24952: } 24952: status = MultiGet(options, cf, user_keys, &vals, &tss); 24952: std::copy(status.begin(), status.end(), statuses); 24952: std::copy(tss.begin(), tss.end(), timestamps); 24952: for (auto& value : vals) { 24952: values->PinSelf(value); 24952: values++; 24952: } 24952: } 24952: # 845 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual void MultiGetEntity(const ReadOptions& , 24952: ColumnFamilyHandle* , 24952: size_t num_keys, const Slice* , 24952: PinnableWideColumns* , 24952: Status* statuses, 24952: bool = false) { 24952: for (size_t i = 0; i < num_keys; ++i) { 24952: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 24952: } 24952: } 24952: # 877 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 24952: ColumnFamilyHandle** , 24952: const Slice* , 24952: PinnableWideColumns* , 24952: Status* statuses, 24952: bool = false) { 24952: for (size_t i = 0; i < num_keys; ++i) { 24952: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 24952: } 24952: } 24952: # 905 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 24952: const Slice* , 24952: PinnableAttributeGroups* results) { 24952: for (size_t i = 0; i < num_keys; ++i) { 24952: for (size_t j = 0; j < results[i].size(); ++j) { 24952: results[i][j].SetStatus( 24952: Status::NotSupported("MultiGetEntity not supported")); 24952: } 24952: } 24952: } 24952: # 923 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual bool KeyMayExist(const ReadOptions& , 24952: ColumnFamilyHandle* , 24952: const Slice& , std::string* , 24952: std::string* , 24952: bool* value_found = nullptr) { 24952: if (value_found != nullptr) { 24952: *value_found = false; 24952: } 24952: return true; 24952: } 24952: 24952: virtual bool KeyMayExist(const ReadOptions& options, 24952: ColumnFamilyHandle* column_family, const Slice& key, 24952: std::string* value, bool* value_found = nullptr) { 24952: return KeyMayExist(options, column_family, key, value, 24952: nullptr, value_found); 24952: } 24952: 24952: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 24952: std::string* value, bool* value_found = nullptr) { 24952: return KeyMayExist(options, DefaultColumnFamily(), key, value, value_found); 24952: } 24952: 24952: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 24952: std::string* value, std::string* timestamp, 24952: bool* value_found = nullptr) { 24952: return KeyMayExist(options, DefaultColumnFamily(), key, value, timestamp, 24952: value_found); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Iterator* NewIterator(const ReadOptions& options, 24952: ColumnFamilyHandle* column_family) = 0; 24952: virtual Iterator* NewIterator(const ReadOptions& options) { 24952: return NewIterator(options, DefaultColumnFamily()); 24952: } 24952: 24952: 24952: 24952: virtual Status NewIterators( 24952: const ReadOptions& options, 24952: const std::vector& column_families, 24952: std::vector* iterators) = 0; 24952: # 979 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual const Snapshot* GetSnapshot() = 0; 24952: 24952: 24952: 24952: virtual void ReleaseSnapshot(const Snapshot* snapshot) = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: struct Properties { 24952: 24952: 24952: 24952: static const std::string kNumFilesAtLevelPrefix; 24952: 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kCompressionRatioAtLevelPrefix; 24952: 24952: 24952: 24952: static const std::string kStats; 24952: 24952: 24952: 24952: static const std::string kSSTables; 24952: 24952: 24952: 24952: static const std::string kCFStats; 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kCFStatsNoFileHistogram; 24952: 24952: 24952: 24952: static const std::string kCFFileHistogram; 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kCFWriteStallStats; 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kDBWriteStallStats; 24952: 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kDBStats; 24952: 24952: 24952: 24952: static const std::string kLevelStats; 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kBlockCacheEntryStats; 24952: 24952: 24952: 24952: static const std::string kFastBlockCacheEntryStats; 24952: 24952: 24952: 24952: static const std::string kNumImmutableMemTable; 24952: 24952: 24952: 24952: static const std::string kNumImmutableMemTableFlushed; 24952: 24952: 24952: 24952: static const std::string kMemTableFlushPending; 24952: 24952: 24952: 24952: static const std::string kNumRunningFlushes; 24952: 24952: 24952: 24952: static const std::string kCompactionPending; 24952: 24952: 24952: 24952: static const std::string kNumRunningCompactions; 24952: 24952: 24952: 24952: static const std::string kBackgroundErrors; 24952: 24952: 24952: 24952: static const std::string kCurSizeActiveMemTable; 24952: 24952: 24952: 24952: static const std::string kCurSizeAllMemTables; 24952: 24952: 24952: 24952: static const std::string kSizeAllMemTables; 24952: 24952: 24952: 24952: static const std::string kNumEntriesActiveMemTable; 24952: 24952: 24952: 24952: static const std::string kNumEntriesImmMemTables; 24952: 24952: 24952: 24952: static const std::string kNumDeletesActiveMemTable; 24952: 24952: 24952: 24952: static const std::string kNumDeletesImmMemTables; 24952: 24952: 24952: 24952: static const std::string kEstimateNumKeys; 24952: 24952: 24952: 24952: 24952: static const std::string kEstimateTableReadersMem; 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kIsFileDeletionsEnabled; 24952: 24952: 24952: 24952: static const std::string kNumSnapshots; 24952: 24952: 24952: 24952: static const std::string kOldestSnapshotTime; 24952: 24952: 24952: 24952: static const std::string kOldestSnapshotSequence; 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kNumLiveVersions; 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kCurrentSuperVersionNumber; 24952: 24952: 24952: 24952: 24952: static const std::string kEstimateLiveDataSize; 24952: 24952: 24952: 24952: static const std::string kMinLogNumberToKeep; 24952: 24952: 24952: 24952: 24952: static const std::string kMinObsoleteSstNumberToKeep; 24952: 24952: 24952: 24952: 24952: static const std::string kTotalSstFilesSize; 24952: 24952: 24952: 24952: static const std::string kLiveSstFilesSize; 24952: # 1184 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: static const std::string kObsoleteSstFilesSize; 24952: 24952: 24952: 24952: static const std::string kLiveSstFilesSizeAtTemperature; 24952: 24952: 24952: 24952: static const std::string kBaseLevel; 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kEstimatePendingCompactionBytes; 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kAggregatedTableProperties; 24952: 24952: 24952: 24952: 24952: static const std::string kAggregatedTablePropertiesAtLevel; 24952: 24952: 24952: 24952: static const std::string kActualDelayedWriteRate; 24952: 24952: 24952: static const std::string kIsWriteStopped; 24952: 24952: 24952: 24952: 24952: 24952: static const std::string kEstimateOldestKeyTime; 24952: 24952: 24952: static const std::string kBlockCacheCapacity; 24952: 24952: 24952: 24952: static const std::string kBlockCacheUsage; 24952: 24952: 24952: 24952: static const std::string kBlockCachePinnedUsage; 24952: 24952: 24952: 24952: static const std::string kOptionsStatistics; 24952: 24952: 24952: 24952: static const std::string kNumBlobFiles; 24952: 24952: 24952: 24952: 24952: static const std::string kBlobStats; 24952: 24952: 24952: 24952: static const std::string kTotalBlobFileSize; 24952: 24952: 24952: 24952: static const std::string kLiveBlobFileSize; 24952: 24952: 24952: 24952: static const std::string kLiveBlobFileGarbageSize; 24952: 24952: 24952: static const std::string kBlobCacheCapacity; 24952: 24952: 24952: 24952: static const std::string kBlobCacheUsage; 24952: 24952: 24952: 24952: static const std::string kBlobCachePinnedUsage; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual bool GetProperty(ColumnFamilyHandle* column_family, 24952: const Slice& property, std::string* value) = 0; 24952: virtual bool GetProperty(const Slice& property, std::string* value) { 24952: return GetProperty(DefaultColumnFamily(), property, value); 24952: } 24952: 24952: 24952: 24952: virtual bool GetMapProperty(ColumnFamilyHandle* column_family, 24952: const Slice& property, 24952: std::map* value) = 0; 24952: virtual bool GetMapProperty(const Slice& property, 24952: std::map* value) { 24952: return GetMapProperty(DefaultColumnFamily(), property, value); 24952: } 24952: # 1338 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual bool GetIntProperty(ColumnFamilyHandle* column_family, 24952: const Slice& property, uint64_t* value) = 0; 24952: virtual bool GetIntProperty(const Slice& property, uint64_t* value) { 24952: return GetIntProperty(DefaultColumnFamily(), property, value); 24952: } 24952: 24952: 24952: 24952: 24952: virtual Status ResetStats() { 24952: return Status::NotSupported("Not implemented"); 24952: } 24952: 24952: 24952: 24952: virtual bool GetAggregatedIntProperty(const Slice& property, 24952: uint64_t* value) = 0; 24952: 24952: 24952: 24952: enum class SizeApproximationFlags : uint8_t { 24952: NONE = 0, 24952: INCLUDE_MEMTABLES = 1 << 0, 24952: INCLUDE_FILES = 1 << 1 24952: }; 24952: # 1371 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status GetApproximateSizes(const SizeApproximationOptions& options, 24952: ColumnFamilyHandle* column_family, 24952: const Range* ranges, int n, 24952: uint64_t* sizes) = 0; 24952: 24952: 24952: 24952: 24952: virtual Status GetApproximateSizes(ColumnFamilyHandle* column_family, 24952: const Range* ranges, int n, 24952: uint64_t* sizes, 24952: SizeApproximationFlags include_flags = 24952: SizeApproximationFlags::INCLUDE_FILES); 24952: 24952: virtual Status GetApproximateSizes( 24952: const Range* ranges, int n, uint64_t* sizes, 24952: SizeApproximationFlags include_flags = 24952: SizeApproximationFlags::INCLUDE_FILES) { 24952: return GetApproximateSizes(DefaultColumnFamily(), ranges, n, sizes, 24952: include_flags); 24952: } 24952: 24952: 24952: 24952: virtual void GetApproximateMemTableStats(ColumnFamilyHandle* column_family, 24952: const Range& range, 24952: uint64_t* const count, 24952: uint64_t* const size) = 0; 24952: virtual void GetApproximateMemTableStats(const Range& range, 24952: uint64_t* const count, 24952: uint64_t* const size) { 24952: GetApproximateMemTableStats(DefaultColumnFamily(), range, count, size); 24952: } 24952: # 1427 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status CompactRange(const CompactRangeOptions& options, 24952: ColumnFamilyHandle* column_family, 24952: const Slice* begin, const Slice* end) = 0; 24952: virtual Status CompactRange(const CompactRangeOptions& options, 24952: const Slice* begin, const Slice* end) { 24952: return CompactRange(options, DefaultColumnFamily(), begin, end); 24952: } 24952: # 1453 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status SetOptions( 24952: ColumnFamilyHandle* , 24952: const std::unordered_map& ) { 24952: return Status::NotSupported("Not implemented"); 24952: } 24952: 24952: virtual Status SetOptions( 24952: const std::unordered_map& new_options) { 24952: return SetOptions(DefaultColumnFamily(), new_options); 24952: } 24952: # 1473 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status SetDBOptions( 24952: const std::unordered_map& new_options) = 0; 24952: # 1483 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status CompactFiles( 24952: const CompactionOptions& compact_options, 24952: ColumnFamilyHandle* column_family, 24952: const std::vector& input_file_names, const int output_level, 24952: const int output_path_id = -1, 24952: std::vector* const output_file_names = nullptr, 24952: CompactionJobInfo* compaction_job_info = nullptr) = 0; 24952: 24952: virtual Status CompactFiles( 24952: const CompactionOptions& compact_options, 24952: const std::vector& input_file_names, const int output_level, 24952: const int output_path_id = -1, 24952: std::vector* const output_file_names = nullptr, 24952: CompactionJobInfo* compaction_job_info = nullptr) { 24952: return CompactFiles(compact_options, DefaultColumnFamily(), 24952: input_file_names, output_level, output_path_id, 24952: output_file_names, compaction_job_info); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: virtual Status PauseBackgroundWork() = 0; 24952: virtual Status ContinueBackgroundWork() = 0; 24952: # 1518 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status EnableAutoCompaction( 24952: const std::vector& column_family_handles) = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual void DisableManualCompaction() = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual void EnableManualCompaction() = 0; 24952: # 1542 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status WaitForCompact( 24952: const WaitForCompactOptions& ) = 0; 24952: 24952: 24952: virtual int NumberLevels(ColumnFamilyHandle* column_family) = 0; 24952: virtual int NumberLevels() { return NumberLevels(DefaultColumnFamily()); } 24952: 24952: 24952: 24952: virtual int MaxMemCompactionLevel(ColumnFamilyHandle* column_family) = 0; 24952: virtual int MaxMemCompactionLevel() { 24952: return MaxMemCompactionLevel(DefaultColumnFamily()); 24952: } 24952: 24952: 24952: virtual int Level0StopWriteTrigger(ColumnFamilyHandle* column_family) = 0; 24952: virtual int Level0StopWriteTrigger() { 24952: return Level0StopWriteTrigger(DefaultColumnFamily()); 24952: } 24952: 24952: 24952: 24952: virtual const std::string& GetName() const = 0; 24952: 24952: 24952: virtual Env* GetEnv() const = 0; 24952: 24952: 24952: 24952: virtual FileSystem* GetFileSystem() const; 24952: 24952: 24952: 24952: 24952: 24952: virtual Options GetOptions(ColumnFamilyHandle* column_family) const = 0; 24952: virtual Options GetOptions() const { 24952: return GetOptions(DefaultColumnFamily()); 24952: } 24952: 24952: virtual DBOptions GetDBOptions() const = 0; 24952: 24952: 24952: 24952: 24952: virtual Status Flush(const FlushOptions& options, 24952: ColumnFamilyHandle* column_family) = 0; 24952: virtual Status Flush(const FlushOptions& options) { 24952: return Flush(options, DefaultColumnFamily()); 24952: } 24952: # 1600 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status Flush( 24952: const FlushOptions& options, 24952: const std::vector& column_families) = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual Status FlushWAL(bool ) { 24952: return Status::NotSupported("FlushWAL not implemented"); 24952: } 24952: # 1621 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status SyncWAL() = 0; 24952: # 1632 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status LockWAL() { 24952: return Status::NotSupported("LockWAL not implemented"); 24952: } 24952: 24952: 24952: 24952: 24952: virtual Status UnlockWAL() { 24952: return Status::NotSupported("UnlockWAL not implemented"); 24952: } 24952: 24952: 24952: virtual SequenceNumber GetLatestSequenceNumber() const = 0; 24952: 24952: 24952: 24952: 24952: virtual Status DisableFileDeletions() = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual Status IncreaseFullHistoryTsLow(ColumnFamilyHandle* column_family, 24952: std::string ts_low) = 0; 24952: 24952: 24952: virtual Status GetFullHistoryTsLow(ColumnFamilyHandle* column_family, 24952: std::string* ts_low) = 0; 24952: # 1681 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status EnableFileDeletions(bool force) = 0; 24952: # 1693 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status GetCreationTimeOfOldestFile(uint64_t* creation_time) = 0; 24952: # 1707 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status GetUpdatesSince( 24952: SequenceNumber seq_number, std::unique_ptr* iter, 24952: const TransactionLogIterator::ReadOptions& read_options = 24952: TransactionLogIterator::ReadOptions()) = 0; 24952: # 1725 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status DeleteFile(std::string name) = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual void GetLiveFilesMetaData( 24952: std::vector* ) {} 24952: 24952: 24952: 24952: 24952: 24952: virtual Status GetLiveFilesChecksumInfo(FileChecksumList* checksum_list) = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status GetLiveFilesStorageInfo( 24952: const LiveFilesStorageInfoOptions& opts, 24952: std::vector* files) = 0; 24952: 24952: 24952: 24952: virtual void GetColumnFamilyMetaData(ColumnFamilyHandle* , 24952: ColumnFamilyMetaData* ) {} 24952: 24952: 24952: void GetColumnFamilyMetaData(ColumnFamilyMetaData* metadata) { 24952: GetColumnFamilyMetaData(DefaultColumnFamily(), metadata); 24952: } 24952: 24952: 24952: 24952: virtual void GetAllColumnFamilyMetaData( 24952: std::vector* ) {} 24952: # 1780 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status GetLiveFiles(std::vector&, 24952: uint64_t* manifest_file_size, 24952: bool flush_memtable = true) = 0; 24952: 24952: 24952: virtual Status GetSortedWalFiles(VectorLogPtr& files) = 0; 24952: # 1794 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status GetCurrentWalFile( 24952: std::unique_ptr* current_log_file) = 0; 24952: # 1819 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status IngestExternalFile( 24952: ColumnFamilyHandle* column_family, 24952: const std::vector& external_files, 24952: const IngestExternalFileOptions& options) = 0; 24952: 24952: virtual Status IngestExternalFile( 24952: const std::vector& external_files, 24952: const IngestExternalFileOptions& options) { 24952: return IngestExternalFile(DefaultColumnFamily(), external_files, options); 24952: } 24952: # 1845 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status IngestExternalFiles( 24952: const std::vector& args) = 0; 24952: # 1865 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status CreateColumnFamilyWithImport( 24952: const ColumnFamilyOptions& options, const std::string& column_family_name, 24952: const ImportColumnFamilyOptions& import_options, 24952: const ExportImportFilesMetaData& metadata, ColumnFamilyHandle** handle) { 24952: const std::vector& metadatas{&metadata}; 24952: return CreateColumnFamilyWithImport(options, column_family_name, 24952: import_options, metadatas, handle); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status CreateColumnFamilyWithImport( 24952: const ColumnFamilyOptions& options, const std::string& column_family_name, 24952: const ImportColumnFamilyOptions& import_options, 24952: const std::vector& metadatas, 24952: ColumnFamilyHandle** handle) = 0; 24952: # 1898 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status ClipColumnFamily(ColumnFamilyHandle* column_family, 24952: const Slice& begin_key, 24952: const Slice& end_key) = 0; 24952: 24952: 24952: 24952: virtual Status VerifyFileChecksums(const ReadOptions& ) { 24952: return Status::NotSupported("File verification not supported"); 24952: } 24952: 24952: 24952: 24952: virtual Status VerifyChecksum(const ReadOptions& read_options) = 0; 24952: 24952: virtual Status VerifyChecksum() { return VerifyChecksum(ReadOptions()); } 24952: 24952: 24952: 24952: 24952: virtual Status GetDbIdentity(std::string& identity) const = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual Status GetDbSessionId(std::string& session_id) const = 0; 24952: 24952: 24952: virtual ColumnFamilyHandle* DefaultColumnFamily() const = 0; 24952: 24952: virtual Status GetPropertiesOfAllTables(ColumnFamilyHandle* column_family, 24952: TablePropertiesCollection* props) = 0; 24952: virtual Status GetPropertiesOfAllTables(TablePropertiesCollection* props) { 24952: return GetPropertiesOfAllTables(DefaultColumnFamily(), props); 24952: } 24952: virtual Status GetPropertiesOfTablesInRange( 24952: ColumnFamilyHandle* column_family, const Range* range, std::size_t n, 24952: TablePropertiesCollection* props) = 0; 24952: 24952: virtual Status SuggestCompactRange(ColumnFamilyHandle* , 24952: const Slice* , 24952: const Slice* ) { 24952: return Status::NotSupported("SuggestCompactRange() is not implemented."); 24952: } 24952: 24952: virtual Status PromoteL0(ColumnFamilyHandle* , 24952: int ) { 24952: return Status::NotSupported("PromoteL0() is not implemented."); 24952: } 24952: 24952: 24952: virtual Status StartTrace(const TraceOptions& , 24952: std::unique_ptr&& ) { 24952: return Status::NotSupported("StartTrace() is not implemented."); 24952: } 24952: 24952: virtual Status EndTrace() { 24952: return Status::NotSupported("EndTrace() is not implemented."); 24952: } 24952: 24952: 24952: virtual Status StartIOTrace(const TraceOptions& , 24952: std::unique_ptr&& ) { 24952: return Status::NotSupported("StartIOTrace() is not implemented."); 24952: } 24952: 24952: virtual Status EndIOTrace() { 24952: return Status::NotSupported("EndIOTrace() is not implemented."); 24952: } 24952: 24952: 24952: virtual Status StartBlockCacheTrace( 24952: const TraceOptions& , 24952: std::unique_ptr&& ) { 24952: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 24952: } 24952: 24952: virtual Status StartBlockCacheTrace( 24952: const BlockCacheTraceOptions& , 24952: std::unique_ptr&& ) { 24952: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 24952: } 24952: 24952: virtual Status EndBlockCacheTrace() { 24952: return Status::NotSupported("EndBlockCacheTrace() is not implemented."); 24952: } 24952: 24952: 24952: virtual Status NewDefaultReplayer( 24952: const std::vector& , 24952: std::unique_ptr&& , 24952: std::unique_ptr* ) { 24952: return Status::NotSupported("NewDefaultReplayer() is not implemented."); 24952: } 24952: 24952: 24952: virtual DB* GetRootDB() { return this; } 24952: 24952: 24952: 24952: 24952: virtual Status GetStatsHistory( 24952: uint64_t , uint64_t , 24952: std::unique_ptr* ) { 24952: return Status::NotSupported("GetStatsHistory() is not implemented."); 24952: } 24952: # 2016 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: virtual Status TryCatchUpWithPrimary() { 24952: return Status::NotSupported("Supported only by secondary instance"); 24952: } 24952: }; 24952: 24952: struct WriteStallStatsMapKeys { 24952: static const std::string& TotalStops(); 24952: static const std::string& TotalDelays(); 24952: 24952: static const std::string& CFL0FileCountLimitDelaysWithOngoingCompaction(); 24952: static const std::string& CFL0FileCountLimitStopsWithOngoingCompaction(); 24952: # 2035 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: static std::string CauseConditionCount(WriteStallCause cause, 24952: WriteStallCondition condition); 24952: }; 24952: 24952: 24952: inline DB::SizeApproximationFlags operator&(DB::SizeApproximationFlags lhs, 24952: DB::SizeApproximationFlags rhs) { 24952: return static_cast(static_cast(lhs) & 24952: static_cast(rhs)); 24952: } 24952: inline DB::SizeApproximationFlags operator|(DB::SizeApproximationFlags lhs, 24952: DB::SizeApproximationFlags rhs) { 24952: return static_cast(static_cast(lhs) | 24952: static_cast(rhs)); 24952: } 24952: 24952: inline Status DB::GetApproximateSizes(ColumnFamilyHandle* column_family, 24952: const Range* ranges, int n, 24952: uint64_t* sizes, 24952: SizeApproximationFlags include_flags) { 24952: SizeApproximationOptions options; 24952: options.include_memtables = 24952: ((include_flags & SizeApproximationFlags::INCLUDE_MEMTABLES) != 24952: SizeApproximationFlags::NONE); 24952: options.include_files = 24952: ((include_flags & SizeApproximationFlags::INCLUDE_FILES) != 24952: SizeApproximationFlags::NONE); 24952: return GetApproximateSizes(options, column_family, ranges, n, sizes); 24952: } 24952: 24952: 24952: 24952: Status DestroyDB(const std::string& name, const Options& options, 24952: const std::vector& column_families = 24952: std::vector()); 24952: # 2080 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/db.h" 24952: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 24952: const std::vector& column_families); 24952: 24952: 24952: 24952: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 24952: const std::vector& column_families, 24952: const ColumnFamilyOptions& unknown_cf_opts); 24952: 24952: 24952: 24952: Status RepairDB(const std::string& dbname, const Options& options); 24952: 24952: } 24952: # 29 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/dynamic_bloom.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 18 "/build/reproducible-path/rocksdb-8.9.1/util/dynamic_bloom.h" 24952: namespace rocksdb { 24952: 24952: class Slice; 24952: class Allocator; 24952: class Logger; 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/util/dynamic_bloom.h" 24952: class DynamicBloom { 24952: public: 24952: # 47 "/build/reproducible-path/rocksdb-8.9.1/util/dynamic_bloom.h" 24952: explicit DynamicBloom(Allocator* allocator, uint32_t total_bits, 24952: uint32_t num_probes = 6, size_t huge_page_tlb_size = 0, 24952: Logger* logger = nullptr); 24952: 24952: ~DynamicBloom() {} 24952: 24952: 24952: void Add(const Slice& key); 24952: 24952: 24952: void AddConcurrently(const Slice& key); 24952: 24952: 24952: void AddHash(uint32_t hash); 24952: 24952: 24952: void AddHashConcurrently(uint32_t hash); 24952: 24952: 24952: bool MayContain(const Slice& key) const; 24952: 24952: void MayContain(int num_keys, Slice* keys, bool* may_match) const; 24952: 24952: 24952: bool MayContainHash(uint32_t hash) const; 24952: 24952: void Prefetch(uint32_t h); 24952: 24952: private: 24952: 24952: 24952: uint32_t kLen; 24952: 24952: 24952: const uint32_t kNumDoubleProbes; 24952: 24952: std::atomic* data_; 24952: 24952: 24952: 24952: template 24952: void AddHash(uint32_t hash, const OrFunc& or_func); 24952: 24952: bool DoubleProbe(uint32_t h32, size_t a) const; 24952: }; 24952: 24952: inline void DynamicBloom::Add(const Slice& key) { AddHash(BloomHash(key)); } 24952: 24952: inline void DynamicBloom::AddConcurrently(const Slice& key) { 24952: AddHashConcurrently(BloomHash(key)); 24952: } 24952: 24952: inline void DynamicBloom::AddHash(uint32_t hash) { 24952: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 24952: ptr->store(ptr->load(std::memory_order_relaxed) | mask, 24952: std::memory_order_relaxed); 24952: }); 24952: } 24952: 24952: inline void DynamicBloom::AddHashConcurrently(uint32_t hash) { 24952: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 24952: 24952: 24952: 24952: 24952: 24952: if ((mask & ptr->load(std::memory_order_relaxed)) != mask) { 24952: ptr->fetch_or(mask, std::memory_order_relaxed); 24952: } 24952: }); 24952: } 24952: 24952: inline bool DynamicBloom::MayContain(const Slice& key) const { 24952: return (MayContainHash(BloomHash(key))); 24952: } 24952: 24952: inline void DynamicBloom::MayContain(int num_keys, Slice* keys, 24952: bool* may_match) const { 24952: std::array hashes; 24952: std::array byte_offsets; 24952: for (int i = 0; i < num_keys; ++i) { 24952: hashes[i] = BloomHash(keys[i]); 24952: size_t a = FastRange32(hashes[i], kLen); 24952: __builtin_prefetch(data_ + a, 0, 3); 24952: byte_offsets[i] = a; 24952: } 24952: 24952: for (int i = 0; i < num_keys; i++) { 24952: may_match[i] = DoubleProbe(hashes[i], byte_offsets[i]); 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline void DynamicBloom::Prefetch(uint32_t h32) { 24952: size_t a = FastRange32(h32, kLen); 24952: __builtin_prefetch(data_ + a, 0, 3); 24952: } 24952: # 173 "/build/reproducible-path/rocksdb-8.9.1/util/dynamic_bloom.h" 24952: inline bool DynamicBloom::MayContainHash(uint32_t h32) const { 24952: size_t a = FastRange32(h32, kLen); 24952: __builtin_prefetch(data_ + a, 0, 3); 24952: return DoubleProbe(h32, a); 24952: } 24952: 24952: inline bool DynamicBloom::DoubleProbe(uint32_t h32, size_t byte_offset) const { 24952: 24952: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 24952: for (unsigned i = 0;; ++i) { 24952: 24952: uint64_t mask = 24952: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 24952: uint64_t val = data_[byte_offset ^ i].load(std::memory_order_relaxed); 24952: if (i + 1 >= kNumDoubleProbes) { 24952: return (val & mask) == mask; 24952: } else if ((val & mask) != mask) { 24952: return false; 24952: } 24952: h = (h >> 12) | (h << 52); 24952: } 24952: } 24952: 24952: template 24952: inline void DynamicBloom::AddHash(uint32_t h32, const OrFunc& or_func) { 24952: size_t a = FastRange32(h32, kLen); 24952: __builtin_prefetch(data_ + a, 0, 3); 24952: 24952: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 24952: for (unsigned i = 0;; ++i) { 24952: 24952: uint64_t mask = 24952: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 24952: or_func(&data_[a ^ i], mask); 24952: if (i + 1 >= kNumDoubleProbes) { 24952: return; 24952: } 24952: h = (h >> 12) | (h << 52); 24952: } 24952: } 24952: 24952: } 24952: # 32 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/hash_containers.h" 1 24952: # 11 "/build/reproducible-path/rocksdb-8.9.1/util/hash_containers.h" 24952: 24952: # 38 "/build/reproducible-path/rocksdb-8.9.1/util/hash_containers.h" 24952: namespace rocksdb { 24952: 24952: template 24952: using UnorderedMap = std::unordered_map; 24952: 24952: template 24952: using UnorderedMapH = std::unordered_map; 24952: 24952: template 24952: using UnorderedSet = std::unordered_set; 24952: 24952: } 24952: # 34 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: struct FlushJobInfo; 24952: class Mutex; 24952: class MemTableIterator; 24952: class MergeContext; 24952: class SystemClock; 24952: 24952: struct ImmutableMemTableOptions { 24952: explicit ImmutableMemTableOptions(const ImmutableOptions& ioptions, 24952: const MutableCFOptions& mutable_cf_options); 24952: size_t arena_block_size; 24952: uint32_t memtable_prefix_bloom_bits; 24952: size_t memtable_huge_page_size; 24952: bool memtable_whole_key_filtering; 24952: bool inplace_update_support; 24952: size_t inplace_update_num_locks; 24952: UpdateStatus (*inplace_callback)(char* existing_value, 24952: uint32_t* existing_value_size, 24952: Slice delta_value, 24952: std::string* merged_value); 24952: size_t max_successive_merges; 24952: Statistics* statistics; 24952: MergeOperator* merge_operator; 24952: Logger* info_log; 24952: bool allow_data_in_errors; 24952: uint32_t protection_bytes_per_key; 24952: }; 24952: 24952: 24952: 24952: 24952: struct MemTablePostProcessInfo { 24952: uint64_t data_size = 0; 24952: uint64_t num_entries = 0; 24952: uint64_t num_deletes = 0; 24952: uint64_t num_range_deletes = 0; 24952: }; 24952: 24952: using MultiGetRange = MultiGetContext::Range; 24952: # 88 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: class MemTable { 24952: public: 24952: struct KeyComparator : public MemTableRep::KeyComparator { 24952: const InternalKeyComparator comparator; 24952: explicit KeyComparator(const InternalKeyComparator& c) : comparator(c) {} 24952: virtual int operator()(const char* prefix_len_key1, 24952: const char* prefix_len_key2) const override; 24952: virtual int operator()(const char* prefix_len_key, 24952: const DecodedType& key) const override; 24952: }; 24952: # 108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: explicit MemTable(const InternalKeyComparator& comparator, 24952: const ImmutableOptions& ioptions, 24952: const MutableCFOptions& mutable_cf_options, 24952: WriteBufferManager* write_buffer_manager, 24952: SequenceNumber earliest_seq, uint32_t column_family_id); 24952: 24952: MemTable(const MemTable&) = delete; 24952: MemTable& operator=(const MemTable&) = delete; 24952: 24952: 24952: ~MemTable(); 24952: 24952: 24952: 24952: 24952: void Ref() { ++refs_; } 24952: 24952: 24952: 24952: 24952: 24952: MemTable* Unref() { 24952: --refs_; 24952: 24952: # 131 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 3 4 24952: (static_cast ( 24952: # 131 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: refs_ >= 0 24952: # 131 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 131 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: "refs_ >= 0" 24952: # 131 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 3 4 24952: , "./db/memtable.h", 131, __extension__ __PRETTY_FUNCTION__)) 24952: # 131 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: ; 24952: if (refs_ <= 0) { 24952: return this; 24952: } 24952: return nullptr; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: size_t ApproximateMemoryUsage(); 24952: 24952: 24952: 24952: size_t ApproximateMemoryUsageFast() const { 24952: return approximate_memory_usage_.load(std::memory_order_relaxed); 24952: } 24952: 24952: 24952: size_t MemoryAllocatedBytes() const { 24952: return table_->ApproximateMemoryUsage() + 24952: range_del_table_->ApproximateMemoryUsage() + 24952: arena_.MemoryAllocatedBytes(); 24952: } 24952: # 171 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: void UniqueRandomSample(const uint64_t& target_sample_size, 24952: std::unordered_set* entries) { 24952: 24952: 24952: table_->UniqueRandomSample(num_entries(), target_sample_size, entries); 24952: } 24952: 24952: 24952: 24952: bool ShouldScheduleFlush() const { 24952: return flush_state_.load(std::memory_order_relaxed) == FLUSH_REQUESTED; 24952: } 24952: 24952: 24952: 24952: bool MarkFlushScheduled() { 24952: auto before = FLUSH_REQUESTED; 24952: return flush_state_.compare_exchange_strong(before, FLUSH_SCHEDULED, 24952: std::memory_order_relaxed, 24952: std::memory_order_relaxed); 24952: } 24952: # 205 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: InternalIterator* NewIterator(const ReadOptions& read_options, Arena* arena); 24952: # 217 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 24952: const ReadOptions& read_options, SequenceNumber read_seq, 24952: bool immutable_memtable); 24952: 24952: Status VerifyEncodedEntry(Slice encoded, 24952: const ProtectionInfoKVOS64& kv_prot_info); 24952: # 234 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: Status Add(SequenceNumber seq, ValueType type, const Slice& key, 24952: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info, 24952: bool allow_concurrent = false, 24952: MemTablePostProcessInfo* post_process_info = nullptr, 24952: void** hint = nullptr); 24952: # 263 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: bool Get(const LookupKey& key, std::string* value, 24952: PinnableWideColumns* columns, std::string* timestamp, Status* s, 24952: MergeContext* merge_context, 24952: SequenceNumber* max_covering_tombstone_seq, SequenceNumber* seq, 24952: const ReadOptions& read_opts, bool immutable_memtable, 24952: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 24952: bool do_merge = true); 24952: 24952: bool Get(const LookupKey& key, std::string* value, 24952: PinnableWideColumns* columns, std::string* timestamp, Status* s, 24952: MergeContext* merge_context, 24952: SequenceNumber* max_covering_tombstone_seq, 24952: const ReadOptions& read_opts, bool immutable_memtable, 24952: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 24952: bool do_merge = true) { 24952: SequenceNumber seq; 24952: return Get(key, value, columns, timestamp, s, merge_context, 24952: max_covering_tombstone_seq, &seq, read_opts, immutable_memtable, 24952: callback, is_blob_index, do_merge); 24952: } 24952: 24952: 24952: 24952: 24952: void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 24952: ReadCallback* callback, bool immutable_memtable); 24952: # 300 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: Status Update(SequenceNumber seq, ValueType value_type, const Slice& key, 24952: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info); 24952: # 317 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: Status UpdateCallback(SequenceNumber seq, const Slice& key, 24952: const Slice& delta, 24952: const ProtectionInfoKVOS64* kv_prot_info); 24952: 24952: 24952: 24952: 24952: size_t CountSuccessiveMergeEntries(const LookupKey& key); 24952: 24952: 24952: 24952: void BatchPostProcess(const MemTablePostProcessInfo& update_counters) { 24952: num_entries_.fetch_add(update_counters.num_entries, 24952: std::memory_order_relaxed); 24952: data_size_.fetch_add(update_counters.data_size, std::memory_order_relaxed); 24952: if (update_counters.num_deletes != 0) { 24952: num_deletes_.fetch_add(update_counters.num_deletes, 24952: std::memory_order_relaxed); 24952: } 24952: if (update_counters.num_range_deletes > 0) { 24952: num_range_deletes_.fetch_add(update_counters.num_range_deletes, 24952: std::memory_order_relaxed); 24952: } 24952: UpdateFlushState(); 24952: } 24952: 24952: 24952: 24952: 24952: uint64_t num_entries() const { 24952: return num_entries_.load(std::memory_order_relaxed); 24952: } 24952: 24952: 24952: 24952: 24952: uint64_t num_deletes() const { 24952: return num_deletes_.load(std::memory_order_relaxed); 24952: } 24952: 24952: 24952: 24952: 24952: uint64_t num_range_deletes() const { 24952: return num_range_deletes_.load(std::memory_order_relaxed); 24952: } 24952: 24952: uint64_t get_data_size() const { 24952: return data_size_.load(std::memory_order_relaxed); 24952: } 24952: 24952: size_t write_buffer_size() const { 24952: return write_buffer_size_.load(std::memory_order_relaxed); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: void UpdateWriteBufferSize(size_t new_write_buffer_size) { 24952: if (bloom_filter_ == nullptr || 24952: new_write_buffer_size < write_buffer_size_) { 24952: write_buffer_size_.store(new_write_buffer_size, 24952: std::memory_order_relaxed); 24952: } 24952: } 24952: 24952: 24952: VersionEdit* GetEdits() { return &edit_; } 24952: 24952: 24952: 24952: 24952: bool IsEmpty() const { return first_seqno_ == 0; } 24952: 24952: 24952: 24952: 24952: 24952: SequenceNumber GetFirstSequenceNumber() { 24952: return first_seqno_.load(std::memory_order_relaxed); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: void SetFirstSequenceNumber(SequenceNumber first_seqno) { 24952: return first_seqno_.store(first_seqno, std::memory_order_relaxed); 24952: } 24952: # 415 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.h" 24952: SequenceNumber GetEarliestSequenceNumber() { 24952: return earliest_seqno_.load(std::memory_order_relaxed); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: void SetEarliestSequenceNumber(SequenceNumber earliest_seqno) { 24952: return earliest_seqno_.store(earliest_seqno, std::memory_order_relaxed); 24952: } 24952: 24952: 24952: 24952: SequenceNumber GetCreationSeq() const { return creation_seq_; } 24952: 24952: void SetCreationSeq(SequenceNumber sn) { creation_seq_ = sn; } 24952: 24952: 24952: 24952: 24952: 24952: uint64_t GetNextLogNumber() { return mem_next_logfile_number_; } 24952: 24952: 24952: 24952: 24952: 24952: void SetNextLogNumber(uint64_t num) { mem_next_logfile_number_ = num; } 24952: 24952: 24952: 24952: 24952: 24952: void RefLogContainingPrepSection(uint64_t log); 24952: uint64_t GetMinLogContainingPrepSection(); 24952: 24952: 24952: 24952: 24952: 24952: 24952: void MarkImmutable() { 24952: table_->MarkReadOnly(); 24952: mem_tracker_.DoneAllocating(); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: void MarkFlushed() { table_->MarkFlushed(); } 24952: 24952: 24952: bool IsMergeOperatorSupported() const { 24952: return table_->IsMergeOperatorSupported(); 24952: } 24952: 24952: 24952: 24952: bool IsSnapshotSupported() const { 24952: return table_->IsSnapshotSupported() && !moptions_.inplace_update_support; 24952: } 24952: 24952: struct MemTableStats { 24952: uint64_t size; 24952: uint64_t count; 24952: }; 24952: 24952: MemTableStats ApproximateStats(const Slice& start_ikey, 24952: const Slice& end_ikey); 24952: 24952: 24952: port::RWMutex* GetLock(const Slice& key); 24952: 24952: const InternalKeyComparator& GetInternalKeyComparator() const { 24952: return comparator_.comparator; 24952: } 24952: 24952: const ImmutableMemTableOptions* GetImmutableMemTableOptions() const { 24952: return &moptions_; 24952: } 24952: 24952: uint64_t ApproximateOldestKeyTime() const { 24952: return oldest_key_time_.load(std::memory_order_relaxed); 24952: } 24952: 24952: 24952: void SetID(uint64_t id) { id_ = id; } 24952: 24952: uint64_t GetID() const { return id_; } 24952: 24952: void SetFlushCompleted(bool completed) { flush_completed_ = completed; } 24952: 24952: uint64_t GetFileNumber() const { return file_number_; } 24952: 24952: void SetFileNumber(uint64_t file_num) { file_number_ = file_num; } 24952: 24952: void SetFlushInProgress(bool in_progress) { 24952: flush_in_progress_ = in_progress; 24952: } 24952: 24952: void SetFlushJobInfo(std::unique_ptr&& info) { 24952: flush_job_info_ = std::move(info); 24952: } 24952: 24952: std::unique_ptr ReleaseFlushJobInfo() { 24952: return std::move(flush_job_info_); 24952: } 24952: 24952: 24952: bool ShouldFlushNow(); 24952: 24952: void ConstructFragmentedRangeTombstones(); 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: bool IsFragmentedRangeTombstonesConstructed(bool allow_empty = true) const { 24952: if (allow_empty) { 24952: return fragmented_range_tombstone_list_.get() != nullptr || 24952: is_range_del_table_empty_; 24952: } else { 24952: return fragmented_range_tombstone_list_.get() != nullptr; 24952: } 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: const Slice& GetNewestUDT() const; 24952: 24952: 24952: static Status VerifyEntryChecksum(const char* entry, 24952: uint32_t protection_bytes_per_key, 24952: bool allow_data_in_errors = false); 24952: 24952: private: 24952: enum FlushStateEnum { FLUSH_NOT_REQUESTED, FLUSH_REQUESTED, FLUSH_SCHEDULED }; 24952: 24952: friend class MemTableIterator; 24952: friend class MemTableBackwardIterator; 24952: friend class MemTableList; 24952: 24952: KeyComparator comparator_; 24952: const ImmutableMemTableOptions moptions_; 24952: int refs_; 24952: const size_t kArenaBlockSize; 24952: AllocTracker mem_tracker_; 24952: ConcurrentArena arena_; 24952: std::unique_ptr table_; 24952: std::unique_ptr range_del_table_; 24952: std::atomic_bool is_range_del_table_empty_; 24952: 24952: 24952: std::atomic data_size_; 24952: std::atomic num_entries_; 24952: std::atomic num_deletes_; 24952: std::atomic num_range_deletes_; 24952: 24952: 24952: std::atomic write_buffer_size_; 24952: 24952: 24952: bool flush_in_progress_; 24952: bool flush_completed_; 24952: uint64_t file_number_; 24952: 24952: 24952: 24952: VersionEdit edit_; 24952: 24952: 24952: std::atomic first_seqno_; 24952: 24952: 24952: 24952: std::atomic earliest_seqno_; 24952: 24952: SequenceNumber creation_seq_; 24952: 24952: 24952: uint64_t mem_next_logfile_number_; 24952: 24952: 24952: 24952: std::atomic min_prep_log_referenced_; 24952: 24952: 24952: std::vector locks_; 24952: 24952: const SliceTransform* const prefix_extractor_; 24952: std::unique_ptr bloom_filter_; 24952: 24952: std::atomic flush_state_; 24952: 24952: SystemClock* clock_; 24952: 24952: 24952: const SliceTransform* insert_with_hint_prefix_extractor_; 24952: 24952: 24952: UnorderedMapH insert_hints_; 24952: 24952: 24952: std::atomic oldest_key_time_; 24952: 24952: 24952: uint64_t id_ = 0; 24952: 24952: 24952: 24952: 24952: 24952: SequenceNumber atomic_flush_seqno_; 24952: 24952: 24952: 24952: std::atomic approximate_memory_usage_; 24952: 24952: 24952: 24952: uint32_t memtable_max_range_deletions_ = 0; 24952: 24952: 24952: std::unique_ptr flush_job_info_; 24952: 24952: 24952: size_t ts_sz_; 24952: 24952: 24952: bool persist_user_defined_timestamps_; 24952: 24952: 24952: 24952: 24952: 24952: 24952: Slice newest_udt_; 24952: 24952: 24952: void UpdateFlushState(); 24952: 24952: void UpdateOldestKeyTime(); 24952: 24952: void GetFromTable(const LookupKey& key, 24952: SequenceNumber max_covering_tombstone_seq, bool do_merge, 24952: ReadCallback* callback, bool* is_blob_index, 24952: std::string* value, PinnableWideColumns* columns, 24952: std::string* timestamp, Status* s, 24952: MergeContext* merge_context, SequenceNumber* seq, 24952: bool* found_final_value, bool* merge_in_progress); 24952: 24952: 24952: 24952: 24952: 24952: 24952: FragmentedRangeTombstoneIterator* NewRangeTombstoneIteratorInternal( 24952: const ReadOptions& read_options, SequenceNumber read_seq, 24952: bool immutable_memtable); 24952: 24952: 24952: 24952: 24952: std::unique_ptr 24952: fragmented_range_tombstone_list_; 24952: 24952: 24952: std::mutex range_del_mutex_; 24952: CoreLocalArray> 24952: cached_range_tombstone_; 24952: 24952: void UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 24952: const Slice& key, const Slice& value, ValueType type, 24952: SequenceNumber s, char* checksum_ptr); 24952: 24952: void MaybeUpdateNewestUDT(const Slice& user_key); 24952: }; 24952: 24952: extern const char* EncodeKey(std::string* scratch, const Slice& target); 24952: 24952: } 24952: # 11 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 16 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/compaction/compaction_iteration_stats.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: struct CompactionIterationStats { 24952: 24952: 24952: 24952: 24952: int64_t num_record_drop_user = 0; 24952: 24952: int64_t num_record_drop_hidden = 0; 24952: int64_t num_record_drop_obsolete = 0; 24952: int64_t num_record_drop_range_del = 0; 24952: int64_t num_range_del_drop_obsolete = 0; 24952: 24952: int64_t num_optimized_del_drop_obsolete = 0; 24952: uint64_t total_filter_time = 0; 24952: 24952: 24952: 24952: 24952: uint64_t num_input_records = 0; 24952: uint64_t num_input_deletion_records = 0; 24952: uint64_t num_input_corrupt_records = 0; 24952: uint64_t total_input_raw_key_bytes = 0; 24952: uint64_t total_input_raw_value_bytes = 0; 24952: 24952: 24952: uint64_t num_single_del_fallthru = 0; 24952: uint64_t num_single_del_mismatch = 0; 24952: 24952: 24952: uint64_t num_blobs_read = 0; 24952: uint64_t total_blob_bytes_read = 0; 24952: uint64_t num_blobs_relocated = 0; 24952: uint64_t total_blob_bytes_relocated = 0; 24952: }; 24952: 24952: } 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 2 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: class ScopedArenaIterator { 24952: void reset(InternalIterator* iter) noexcept { 24952: if (iter_ != nullptr) { 24952: iter_->~InternalIterator(); 24952: } 24952: iter_ = iter; 24952: } 24952: 24952: public: 24952: explicit ScopedArenaIterator(InternalIterator* iter = nullptr) 24952: : iter_(iter) {} 24952: 24952: ScopedArenaIterator(const ScopedArenaIterator&) = delete; 24952: ScopedArenaIterator& operator=(const ScopedArenaIterator&) = delete; 24952: 24952: ScopedArenaIterator(ScopedArenaIterator&& o) noexcept { 24952: iter_ = o.iter_; 24952: o.iter_ = nullptr; 24952: } 24952: 24952: ScopedArenaIterator& operator=(ScopedArenaIterator&& o) noexcept { 24952: reset(o.iter_); 24952: o.iter_ = nullptr; 24952: return *this; 24952: } 24952: 24952: InternalIterator* operator->() { return iter_; } 24952: InternalIterator* get() { return iter_; } 24952: 24952: void set(InternalIterator* iter) { reset(iter); } 24952: 24952: InternalIterator* release() { 24952: 24952: # 46 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 3 4 24952: (static_cast ( 24952: # 46 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 24952: iter_ != nullptr 24952: # 46 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 46 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 24952: "iter_ != nullptr" 24952: # 46 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 3 4 24952: , "./table/scoped_arena_iterator.h", 46, __extension__ __PRETTY_FUNCTION__)) 24952: # 46 "/build/reproducible-path/rocksdb-8.9.1/table/scoped_arena_iterator.h" 24952: ; 24952: auto* res = iter_; 24952: iter_ = nullptr; 24952: return res; 24952: } 24952: 24952: ~ScopedArenaIterator() { reset(nullptr); } 24952: 24952: private: 24952: InternalIterator* iter_; 24952: }; 24952: } 24952: # 26 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 24952: 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/cinttypes" 1 3 24952: # 32 "/usr/include/c++/13/cinttypes" 3 24952: 24952: # 33 "/usr/include/c++/13/cinttypes" 3 24952: # 46 "/usr/include/c++/13/cinttypes" 3 24952: # 1 "/usr/include/inttypes.h" 1 3 4 24952: # 266 "/usr/include/inttypes.h" 3 4 24952: 24952: # 266 "/usr/include/inttypes.h" 3 4 24952: extern "C" { 24952: # 280 "/usr/include/inttypes.h" 3 4 24952: typedef struct 24952: { 24952: __extension__ long long int quot; 24952: __extension__ long long int rem; 24952: } imaxdiv_t; 24952: 24952: 24952: 24952: 24952: 24952: extern intmax_t imaxabs (intmax_t __n) noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) 24952: noexcept (true) __attribute__ ((__const__)); 24952: 24952: 24952: extern intmax_t strtoimax (const char *__restrict __nptr, 24952: char **__restrict __endptr, int __base) noexcept (true); 24952: 24952: 24952: extern uintmax_t strtoumax (const char *__restrict __nptr, 24952: char ** __restrict __endptr, int __base) noexcept (true); 24952: 24952: 24952: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, 24952: wchar_t **__restrict __endptr, int __base) 24952: noexcept (true); 24952: 24952: 24952: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, 24952: wchar_t ** __restrict __endptr, int __base) 24952: noexcept (true); 24952: 24952: } 24952: # 47 "/usr/include/c++/13/cinttypes" 2 3 24952: # 55 "/usr/include/c++/13/cinttypes" 3 24952: namespace std 24952: { 24952: 24952: using ::imaxdiv_t; 24952: 24952: 24952: using ::imaxabs; 24952: using ::imaxdiv; 24952: 24952: 24952: 24952: 24952: 24952: using ::strtoimax; 24952: using ::strtoumax; 24952: 24952: 24952: using ::wcstoimax; 24952: using ::wcstoumax; 24952: 24952: } 24952: # 11 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 2 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 24952: 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 24952: namespace rocksdb { 24952: 24952: constexpr uint64_t kUnknownTimeBeforeAll = 0; 24952: constexpr SequenceNumber kUnknownSeqnoBeforeAll = 0; 24952: # 47 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 24952: class SeqnoToTimeMapping { 24952: public: 24952: 24952: 24952: static constexpr uint64_t kMaxSeqnoTimePairsPerSST = 100; 24952: # 61 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 24952: static constexpr uint64_t kMaxSeqnoTimePairsPerCF = 100; 24952: 24952: 24952: struct SeqnoTimePair { 24952: SequenceNumber seqno = 0; 24952: uint64_t time = 0; 24952: 24952: SeqnoTimePair() = default; 24952: SeqnoTimePair(SequenceNumber _seqno, uint64_t _time) 24952: : seqno(_seqno), time(_time) {} 24952: 24952: 24952: void Encode(std::string& dest) const; 24952: 24952: 24952: Status Decode(Slice& input); 24952: 24952: 24952: SeqnoTimePair ComputeDelta(const SeqnoTimePair& base) const { 24952: return {seqno - base.seqno, time - base.time}; 24952: } 24952: 24952: 24952: void ApplyDelta(const SeqnoTimePair& delta_or_base) { 24952: seqno += delta_or_base.seqno; 24952: time += delta_or_base.time; 24952: } 24952: 24952: 24952: bool operator<(const SeqnoTimePair& other) const { 24952: return std::tie(seqno, time) < std::tie(other.seqno, other.time); 24952: } 24952: 24952: bool operator==(const SeqnoTimePair& other) const { 24952: return std::tie(seqno, time) == std::tie(other.seqno, other.time); 24952: } 24952: 24952: static bool SeqnoLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 24952: return a.seqno < b.seqno; 24952: } 24952: 24952: static bool TimeLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 24952: return a.time < b.time; 24952: } 24952: }; 24952: # 115 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 24952: explicit SeqnoToTimeMapping(uint64_t max_time_duration = 0, 24952: uint64_t max_capacity = 0) 24952: : max_time_duration_(max_time_duration), max_capacity_(max_capacity) {} 24952: 24952: 24952: 24952: bool PrePopulate(SequenceNumber from_seqno, SequenceNumber to_seqno, 24952: uint64_t from_time, uint64_t to_time); 24952: 24952: 24952: 24952: bool Append(SequenceNumber seqno, uint64_t time); 24952: # 136 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 24952: uint64_t GetProximalTimeBeforeSeqno(SequenceNumber seqno) const; 24952: 24952: 24952: 24952: void TruncateOldEntries(uint64_t now); 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 24952: SequenceNumber GetProximalSeqnoBeforeTime(uint64_t time); 24952: 24952: 24952: void Encode(std::string& des, SequenceNumber start, SequenceNumber end, 24952: uint64_t now, 24952: uint64_t output_size = kMaxSeqnoTimePairsPerSST) const; 24952: 24952: 24952: 24952: void Add(SequenceNumber seqno, uint64_t time); 24952: 24952: 24952: Status Add(const std::string& pairs_str); 24952: 24952: 24952: size_t Size() const { return pairs_.size(); } 24952: 24952: 24952: bool Resize(uint64_t min_time_duration, uint64_t max_time_duration); 24952: 24952: 24952: void SetMaxTimeDuration(uint64_t max_time_duration) { 24952: max_time_duration_ = max_time_duration; 24952: } 24952: 24952: uint64_t GetCapacity() const { return max_capacity_; } 24952: 24952: 24952: 24952: Status Sort(); 24952: 24952: 24952: SeqnoToTimeMapping Copy(SequenceNumber smallest_seqno) const; 24952: 24952: 24952: bool Empty() const { return pairs_.empty(); } 24952: 24952: 24952: void Clear() { pairs_.clear(); } 24952: 24952: 24952: 24952: std::string ToHumanString() const; 24952: 24952: 24952: const std::deque& TEST_GetInternalMapping() const { 24952: return pairs_; 24952: } 24952: 24952: 24952: private: 24952: static constexpr uint64_t kMaxSeqnoToTimeEntries = 24952: kMaxSeqnoTimePairsPerCF * 10; 24952: 24952: uint64_t max_time_duration_; 24952: uint64_t max_capacity_; 24952: 24952: std::deque pairs_; 24952: 24952: bool is_sorted_ = true; 24952: 24952: static uint64_t CalculateMaxCapacity(uint64_t min_time_duration, 24952: uint64_t max_time_duration); 24952: 24952: SeqnoTimePair& Last() { 24952: 24952: # 215 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 3 4 24952: (static_cast ( 24952: # 215 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 24952: !Empty() 24952: # 215 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 215 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 24952: "!Empty()" 24952: # 215 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 3 4 24952: , "./db/seqno_to_time_mapping.h", 215, __extension__ __PRETTY_FUNCTION__)) 24952: # 215 "/build/reproducible-path/rocksdb-8.9.1/db/seqno_to_time_mapping.h" 24952: ; 24952: return pairs_.back(); 24952: } 24952: 24952: using pair_const_iterator = 24952: std::deque::const_iterator; 24952: pair_const_iterator FindGreaterTime(uint64_t time) const; 24952: pair_const_iterator FindGreaterSeqno(SequenceNumber seqno) const; 24952: pair_const_iterator FindGreaterEqSeqno(SequenceNumber seqno) const; 24952: }; 24952: 24952: } 24952: # 20 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 17 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 24952: namespace rocksdb { 24952: 24952: 24952: class IntTblPropCollector { 24952: public: 24952: virtual ~IntTblPropCollector() {} 24952: virtual Status Finish(UserCollectedProperties* properties) = 0; 24952: 24952: virtual const char* Name() const = 0; 24952: 24952: 24952: 24952: virtual Status InternalAdd(const Slice& key, const Slice& value, 24952: uint64_t file_size) = 0; 24952: 24952: virtual void BlockAdd(uint64_t block_uncomp_bytes, 24952: uint64_t block_compressed_bytes_fast, 24952: uint64_t block_compressed_bytes_slow) = 0; 24952: 24952: virtual UserCollectedProperties GetReadableProperties() const = 0; 24952: 24952: virtual bool NeedCompact() const { return false; } 24952: }; 24952: 24952: 24952: class IntTblPropCollectorFactory { 24952: public: 24952: virtual ~IntTblPropCollectorFactory() {} 24952: 24952: virtual IntTblPropCollector* CreateIntTblPropCollector( 24952: uint32_t column_family_id, int level_at_creation) = 0; 24952: 24952: 24952: virtual const char* Name() const = 0; 24952: }; 24952: 24952: using IntTblPropCollectorFactories = 24952: std::vector>; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class UserKeyTablePropertiesCollector : public IntTblPropCollector { 24952: public: 24952: 24952: explicit UserKeyTablePropertiesCollector(TablePropertiesCollector* collector) 24952: : collector_(collector) {} 24952: 24952: virtual ~UserKeyTablePropertiesCollector() {} 24952: 24952: virtual Status InternalAdd(const Slice& key, const Slice& value, 24952: uint64_t file_size) override; 24952: 24952: virtual void BlockAdd(uint64_t block_uncomp_bytes, 24952: uint64_t block_compressed_bytes_fast, 24952: uint64_t block_compressed_bytes_slow) override; 24952: 24952: virtual Status Finish(UserCollectedProperties* properties) override; 24952: 24952: virtual const char* Name() const override { return collector_->Name(); } 24952: 24952: UserCollectedProperties GetReadableProperties() const override; 24952: 24952: virtual bool NeedCompact() const override { 24952: return collector_->NeedCompact(); 24952: } 24952: 24952: protected: 24952: std::unique_ptr collector_; 24952: }; 24952: 24952: class UserKeyTablePropertiesCollectorFactory 24952: : public IntTblPropCollectorFactory { 24952: public: 24952: explicit UserKeyTablePropertiesCollectorFactory( 24952: std::shared_ptr user_collector_factory) 24952: : user_collector_factory_(user_collector_factory) {} 24952: virtual IntTblPropCollector* CreateIntTblPropCollector( 24952: uint32_t column_family_id, int level_at_creation) override { 24952: TablePropertiesCollectorFactory::Context context; 24952: context.column_family_id = column_family_id; 24952: context.level_at_creation = level_at_creation; 24952: return new UserKeyTablePropertiesCollector( 24952: user_collector_factory_->CreateTablePropertiesCollector(context)); 24952: } 24952: 24952: virtual const char* Name() const override { 24952: return user_collector_factory_->Name(); 24952: } 24952: 24952: private: 24952: std::shared_ptr user_collector_factory_; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: class TimestampTablePropertiesCollector : public IntTblPropCollector { 24952: public: 24952: explicit TimestampTablePropertiesCollector(const Comparator* cmp) 24952: : cmp_(cmp), 24952: timestamp_min_(kDisableUserTimestamp), 24952: timestamp_max_(kDisableUserTimestamp) {} 24952: 24952: Status InternalAdd(const Slice& key, const Slice& , 24952: uint64_t ) override { 24952: auto user_key = ExtractUserKey(key); 24952: 24952: # 128 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 3 4 24952: (static_cast ( 24952: # 128 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 24952: cmp_ && cmp_->timestamp_size() > 0 24952: # 128 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 128 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 24952: "cmp_ && cmp_->timestamp_size() > 0" 24952: # 128 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 3 4 24952: , "./db/table_properties_collector.h", 128, __extension__ __PRETTY_FUNCTION__)) 24952: # 128 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 24952: ; 24952: if (user_key.size() < cmp_->timestamp_size()) { 24952: return Status::Corruption( 24952: "User key size mismatch when comparing to timestamp size."); 24952: } 24952: auto timestamp_in_key = 24952: ExtractTimestampFromUserKey(user_key, cmp_->timestamp_size()); 24952: if (timestamp_max_ == kDisableUserTimestamp || 24952: cmp_->CompareTimestamp(timestamp_in_key, timestamp_max_) > 0) { 24952: timestamp_max_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 24952: } 24952: if (timestamp_min_ == kDisableUserTimestamp || 24952: cmp_->CompareTimestamp(timestamp_min_, timestamp_in_key) > 0) { 24952: timestamp_min_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 24952: } 24952: return Status::OK(); 24952: } 24952: 24952: void BlockAdd(uint64_t , 24952: uint64_t , 24952: uint64_t ) override { 24952: return; 24952: } 24952: 24952: Status Finish(UserCollectedProperties* properties) override { 24952: 24952: 24952: # 154 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 3 4 24952: (static_cast ( 24952: # 154 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 24952: timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size()) 24952: # 154 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 154 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 24952: "timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size())" 24952: # 154 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 3 4 24952: , "./db/table_properties_collector.h", 154, __extension__ __PRETTY_FUNCTION__)) 24952: 24952: 24952: # 156 "/build/reproducible-path/rocksdb-8.9.1/db/table_properties_collector.h" 24952: ; 24952: properties->insert({"rocksdb.timestamp_min", timestamp_min_}); 24952: properties->insert({"rocksdb.timestamp_max", timestamp_max_}); 24952: return Status::OK(); 24952: } 24952: 24952: const char* Name() const override { 24952: return "TimestampTablePropertiesCollector"; 24952: } 24952: 24952: UserCollectedProperties GetReadableProperties() const override { 24952: return {{"rocksdb.timestamp_min", Slice(timestamp_min_).ToString(true)}, 24952: {"rocksdb.timestamp_max", Slice(timestamp_max_).ToString(true)}}; 24952: } 24952: 24952: protected: 24952: const Comparator* const cmp_; 24952: std::string timestamp_min_; 24952: std::string timestamp_max_; 24952: }; 24952: 24952: } 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 24952: 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 24952: namespace rocksdb { 24952: class Statistics; 24952: class SystemClock; 24952: # 36 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 24952: class WritableFileWriter { 24952: private: 24952: void NotifyOnFileWriteFinish( 24952: uint64_t offset, size_t length, 24952: const FileOperationInfo::StartTimePoint& start_ts, 24952: const FileOperationInfo::FinishTimePoint& finish_ts, 24952: const IOStatus& io_status) { 24952: FileOperationInfo info(FileOperationType::kWrite, file_name_, start_ts, 24952: finish_ts, io_status, temperature_); 24952: info.offset = offset; 24952: info.length = length; 24952: 24952: for (auto& listener : listeners_) { 24952: listener->OnFileWriteFinish(info); 24952: } 24952: info.status.PermitUncheckedError(); 24952: } 24952: void NotifyOnFileFlushFinish( 24952: const FileOperationInfo::StartTimePoint& start_ts, 24952: const FileOperationInfo::FinishTimePoint& finish_ts, 24952: const IOStatus& io_status) { 24952: FileOperationInfo info(FileOperationType::kFlush, file_name_, start_ts, 24952: finish_ts, io_status, temperature_); 24952: 24952: for (auto& listener : listeners_) { 24952: listener->OnFileFlushFinish(info); 24952: } 24952: info.status.PermitUncheckedError(); 24952: } 24952: void NotifyOnFileSyncFinish( 24952: const FileOperationInfo::StartTimePoint& start_ts, 24952: const FileOperationInfo::FinishTimePoint& finish_ts, 24952: const IOStatus& io_status, 24952: FileOperationType type = FileOperationType::kSync) { 24952: FileOperationInfo info(type, file_name_, start_ts, finish_ts, io_status, 24952: temperature_); 24952: 24952: for (auto& listener : listeners_) { 24952: listener->OnFileSyncFinish(info); 24952: } 24952: info.status.PermitUncheckedError(); 24952: } 24952: void NotifyOnFileRangeSyncFinish( 24952: uint64_t offset, size_t length, 24952: const FileOperationInfo::StartTimePoint& start_ts, 24952: const FileOperationInfo::FinishTimePoint& finish_ts, 24952: const IOStatus& io_status) { 24952: FileOperationInfo info(FileOperationType::kRangeSync, file_name_, start_ts, 24952: finish_ts, io_status, temperature_); 24952: info.offset = offset; 24952: info.length = length; 24952: 24952: for (auto& listener : listeners_) { 24952: listener->OnFileRangeSyncFinish(info); 24952: } 24952: info.status.PermitUncheckedError(); 24952: } 24952: void NotifyOnFileTruncateFinish( 24952: const FileOperationInfo::StartTimePoint& start_ts, 24952: const FileOperationInfo::FinishTimePoint& finish_ts, 24952: const IOStatus& io_status) { 24952: FileOperationInfo info(FileOperationType::kTruncate, file_name_, start_ts, 24952: finish_ts, io_status, temperature_); 24952: 24952: for (auto& listener : listeners_) { 24952: listener->OnFileTruncateFinish(info); 24952: } 24952: info.status.PermitUncheckedError(); 24952: } 24952: void NotifyOnFileCloseFinish( 24952: const FileOperationInfo::StartTimePoint& start_ts, 24952: const FileOperationInfo::FinishTimePoint& finish_ts, 24952: const IOStatus& io_status) { 24952: FileOperationInfo info(FileOperationType::kClose, file_name_, start_ts, 24952: finish_ts, io_status, temperature_); 24952: 24952: for (auto& listener : listeners_) { 24952: listener->OnFileCloseFinish(info); 24952: } 24952: info.status.PermitUncheckedError(); 24952: } 24952: 24952: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 24952: const std::string& file_path, size_t length = 0, 24952: uint64_t offset = 0) { 24952: if (listeners_.empty()) { 24952: return; 24952: } 24952: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 24952: for (auto& listener : listeners_) { 24952: listener->OnIOError(io_error_info); 24952: } 24952: io_error_info.io_status.PermitUncheckedError(); 24952: } 24952: 24952: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 24952: void UpdateFileChecksum(const Slice& data); 24952: void Crc32cHandoffChecksumCalculation(const char* data, size_t size, 24952: char* buf); 24952: 24952: std::string file_name_; 24952: FSWritableFilePtr writable_file_; 24952: SystemClock* clock_; 24952: AlignedBuffer buf_; 24952: size_t max_buffer_size_; 24952: 24952: 24952: std::atomic filesize_; 24952: std::atomic flushed_size_; 24952: 24952: 24952: 24952: uint64_t next_write_offset_; 24952: bool pending_sync_; 24952: std::atomic seen_error_; 24952: 24952: 24952: 24952: 24952: 24952: std::atomic sync_without_flush_called_ = false; 24952: 24952: uint64_t last_sync_size_; 24952: uint64_t bytes_per_sync_; 24952: RateLimiter* rate_limiter_; 24952: Statistics* stats_; 24952: std::vector> listeners_; 24952: std::unique_ptr checksum_generator_; 24952: bool checksum_finalized_; 24952: bool perform_data_verification_; 24952: uint32_t buffered_data_crc32c_checksum_; 24952: bool buffered_data_with_checksum_; 24952: Temperature temperature_; 24952: 24952: public: 24952: WritableFileWriter( 24952: std::unique_ptr&& file, const std::string& _file_name, 24952: const FileOptions& options, SystemClock* clock = nullptr, 24952: const std::shared_ptr& io_tracer = nullptr, 24952: Statistics* stats = nullptr, 24952: const std::vector>& listeners = {}, 24952: FileChecksumGenFactory* file_checksum_gen_factory = nullptr, 24952: bool perform_data_verification = false, 24952: bool buffered_data_with_checksum = false) 24952: : file_name_(_file_name), 24952: writable_file_(std::move(file), io_tracer, _file_name), 24952: clock_(clock), 24952: buf_(), 24952: max_buffer_size_(options.writable_file_max_buffer_size), 24952: filesize_(0), 24952: flushed_size_(0), 24952: next_write_offset_(0), 24952: pending_sync_(false), 24952: seen_error_(false), 24952: last_sync_size_(0), 24952: bytes_per_sync_(options.bytes_per_sync), 24952: rate_limiter_(options.rate_limiter), 24952: stats_(stats), 24952: listeners_(), 24952: checksum_generator_(nullptr), 24952: checksum_finalized_(false), 24952: perform_data_verification_(perform_data_verification), 24952: buffered_data_crc32c_checksum_(0), 24952: buffered_data_with_checksum_(buffered_data_with_checksum) { 24952: temperature_ = options.temperature; 24952: 24952: # 201 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 3 4 24952: (static_cast ( 24952: # 201 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 24952: !use_direct_io() || max_buffer_size_ > 0 24952: # 201 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 201 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 24952: "!use_direct_io() || max_buffer_size_ > 0" 24952: # 201 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 3 4 24952: , "./file/writable_file_writer.h", 201, __extension__ __PRETTY_FUNCTION__)) 24952: # 201 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 24952: ; 24952: rocksdb::SyncPoint::GetInstance()->Process("WritableFileWriter::WritableFileWriter:0", reinterpret_cast(max_buffer_size_)) 24952: ; 24952: buf_.Alignment(writable_file_->GetRequiredBufferAlignment()); 24952: buf_.AllocateNewBuffer(std::min((size_t)65536, max_buffer_size_)); 24952: std::for_each(listeners.begin(), listeners.end(), 24952: [this](const std::shared_ptr& e) { 24952: if (e->ShouldBeNotifiedOnFileIO()) { 24952: listeners_.emplace_back(e); 24952: } 24952: }); 24952: if (file_checksum_gen_factory != nullptr) { 24952: FileChecksumGenContext checksum_gen_context; 24952: checksum_gen_context.file_name = _file_name; 24952: checksum_generator_ = 24952: file_checksum_gen_factory->CreateFileChecksumGenerator( 24952: checksum_gen_context); 24952: } 24952: } 24952: 24952: static IOStatus Create(const std::shared_ptr& fs, 24952: const std::string& fname, const FileOptions& file_opts, 24952: std::unique_ptr* writer, 24952: IODebugContext* dbg); 24952: WritableFileWriter(const WritableFileWriter&) = delete; 24952: 24952: WritableFileWriter& operator=(const WritableFileWriter&) = delete; 24952: 24952: ~WritableFileWriter() { 24952: auto s = Close(); 24952: s.PermitUncheckedError(); 24952: } 24952: 24952: std::string file_name() const { return file_name_; } 24952: 24952: 24952: 24952: IOStatus Append(const Slice& data, uint32_t crc32c_checksum = 0, 24952: Env::IOPriority op_rate_limiter_priority = Env::IO_TOTAL); 24952: 24952: IOStatus Pad(const size_t pad_bytes, 24952: Env::IOPriority op_rate_limiter_priority = Env::IO_TOTAL); 24952: 24952: IOStatus Flush(Env::IOPriority op_rate_limiter_priority = Env::IO_TOTAL); 24952: 24952: IOStatus Close(); 24952: 24952: IOStatus Sync(bool use_fsync); 24952: 24952: 24952: 24952: 24952: IOStatus SyncWithoutFlush(bool use_fsync); 24952: 24952: uint64_t GetFileSize() const { 24952: return filesize_.load(std::memory_order_acquire); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: uint64_t GetFlushedSize() const { 24952: return flushed_size_.load(std::memory_order_acquire); 24952: } 24952: 24952: IOStatus InvalidateCache(size_t offset, size_t length) { 24952: return writable_file_->InvalidateCache(offset, length); 24952: } 24952: 24952: FSWritableFile* writable_file() const { return writable_file_.get(); } 24952: 24952: bool use_direct_io() { return writable_file_->use_direct_io(); } 24952: 24952: bool BufferIsEmpty() { return buf_.CurrentSize() == 0; } 24952: 24952: void TEST_SetFileChecksumGenerator( 24952: FileChecksumGenerator* checksum_generator) { 24952: checksum_generator_.reset(checksum_generator); 24952: } 24952: 24952: std::string GetFileChecksum(); 24952: 24952: const char* GetFileChecksumFuncName() const; 24952: 24952: bool seen_error() const { 24952: return seen_error_.load(std::memory_order_relaxed); 24952: } 24952: 24952: 24952: void reset_seen_error() { 24952: seen_error_.store(false, std::memory_order_relaxed); 24952: } 24952: void set_seen_error() { seen_error_.store(true, std::memory_order_relaxed); } 24952: 24952: IOStatus AssertFalseAndGetStatusForPrevError() { 24952: 24952: 24952: # 298 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 3 4 24952: (static_cast ( 24952: # 298 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 24952: sync_without_flush_called_ 24952: # 298 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 298 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 24952: "sync_without_flush_called_" 24952: # 298 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 3 4 24952: , "./file/writable_file_writer.h", 298, __extension__ __PRETTY_FUNCTION__)) 24952: # 298 "/build/reproducible-path/rocksdb-8.9.1/file/writable_file_writer.h" 24952: ; 24952: return IOStatus::IOError("Writer has previous error."); 24952: } 24952: 24952: private: 24952: 24952: static Env::IOPriority DecideRateLimiterPriority( 24952: Env::IOPriority writable_file_io_priority, 24952: Env::IOPriority op_rate_limiter_priority); 24952: 24952: 24952: 24952: IOStatus WriteDirect(Env::IOPriority op_rate_limiter_priority); 24952: IOStatus WriteDirectWithChecksum(Env::IOPriority op_rate_limiter_priority); 24952: 24952: IOStatus WriteBuffered(const char* data, size_t size, 24952: Env::IOPriority op_rate_limiter_priority); 24952: IOStatus WriteBufferedWithChecksum(const char* data, size_t size, 24952: Env::IOPriority op_rate_limiter_priority); 24952: IOStatus RangeSync(uint64_t offset, uint64_t nbytes); 24952: IOStatus SyncInternal(bool use_fsync); 24952: }; 24952: } 24952: # 22 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 2 24952: 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/block_cache_tracer.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 18 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/block_cache_tracer.h" 24952: namespace rocksdb { 24952: class Env; 24952: class SystemClock; 24952: 24952: extern const uint64_t kMicrosInSecond; 24952: extern const uint64_t kSecondInMinute; 24952: extern const uint64_t kSecondInHour; 24952: 24952: struct BlockCacheTraceRecord; 24952: 24952: class BlockCacheTraceHelper { 24952: public: 24952: static bool IsGetOrMultiGetOnDataBlock(TraceType block_type, 24952: TableReaderCaller caller); 24952: static bool IsGetOrMultiGet(TableReaderCaller caller); 24952: static bool IsUserAccess(TableReaderCaller caller); 24952: 24952: 24952: static std::string ComputeRowKey(const BlockCacheTraceRecord& access); 24952: 24952: 24952: static uint64_t GetTableId(const BlockCacheTraceRecord& access); 24952: 24952: 24952: static uint64_t GetSequenceNumber(const BlockCacheTraceRecord& access); 24952: 24952: static uint64_t GetBlockOffsetInFile(const BlockCacheTraceRecord& access); 24952: 24952: static const std::string kUnknownColumnFamilyName; 24952: static const uint64_t kReservedGetId; 24952: }; 24952: # 69 "/build/reproducible-path/rocksdb-8.9.1/trace_replay/block_cache_tracer.h" 24952: struct BlockCacheLookupContext { 24952: BlockCacheLookupContext(const TableReaderCaller& _caller) : caller(_caller) {} 24952: BlockCacheLookupContext(const TableReaderCaller& _caller, uint64_t _get_id, 24952: bool _get_from_user_specified_snapshot) 24952: : caller(_caller), 24952: get_id(_get_id), 24952: get_from_user_specified_snapshot(_get_from_user_specified_snapshot) {} 24952: const TableReaderCaller caller; 24952: 24952: 24952: 24952: bool is_cache_hit = false; 24952: bool no_insert = false; 24952: TraceType block_type = TraceType::kTraceMax; 24952: uint64_t block_size = 0; 24952: std::string block_key; 24952: uint64_t num_keys_in_block = 0; 24952: 24952: 24952: 24952: uint64_t get_id = 0; 24952: std::string referenced_key; 24952: bool get_from_user_specified_snapshot = false; 24952: 24952: void FillLookupContext(bool _is_cache_hit, bool _no_insert, 24952: TraceType _block_type, uint64_t _block_size, 24952: const std::string& _block_key, 24952: uint64_t _num_keys_in_block) { 24952: is_cache_hit = _is_cache_hit; 24952: no_insert = _no_insert; 24952: block_type = _block_type; 24952: block_size = _block_size; 24952: block_key = _block_key; 24952: num_keys_in_block = _num_keys_in_block; 24952: } 24952: }; 24952: 24952: struct BlockCacheTraceHeader { 24952: uint64_t start_time; 24952: uint32_t rocksdb_major_version; 24952: uint32_t rocksdb_minor_version; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: class BlockCacheTraceWriterImpl : public BlockCacheTraceWriter { 24952: public: 24952: BlockCacheTraceWriterImpl(SystemClock* clock, 24952: const BlockCacheTraceWriterOptions& trace_options, 24952: std::unique_ptr&& trace_writer); 24952: ~BlockCacheTraceWriterImpl() = default; 24952: 24952: BlockCacheTraceWriterImpl(const BlockCacheTraceWriterImpl&) = delete; 24952: BlockCacheTraceWriterImpl& operator=(const BlockCacheTraceWriterImpl&) = 24952: delete; 24952: BlockCacheTraceWriterImpl(BlockCacheTraceWriterImpl&&) = delete; 24952: BlockCacheTraceWriterImpl& operator=(BlockCacheTraceWriterImpl&&) = delete; 24952: 24952: 24952: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 24952: const Slice& block_key, const Slice& cf_name, 24952: const Slice& referenced_key) override; 24952: 24952: 24952: 24952: Status WriteHeader() override; 24952: 24952: private: 24952: SystemClock* clock_; 24952: BlockCacheTraceWriterOptions trace_options_; 24952: std::unique_ptr trace_writer_; 24952: }; 24952: 24952: 24952: 24952: 24952: class BlockCacheHumanReadableTraceWriter { 24952: public: 24952: ~BlockCacheHumanReadableTraceWriter(); 24952: 24952: Status NewWritableFile(const std::string& human_readable_trace_file_path, 24952: rocksdb::Env* env); 24952: 24952: Status WriteHumanReadableTraceRecord(const BlockCacheTraceRecord& access, 24952: uint64_t block_id, uint64_t get_key_id); 24952: 24952: private: 24952: char trace_record_buffer_[1024 * 1024]; 24952: std::unique_ptr 24952: human_readable_trace_file_writer_; 24952: }; 24952: 24952: 24952: 24952: class BlockCacheTraceReader { 24952: public: 24952: BlockCacheTraceReader(std::unique_ptr&& reader); 24952: virtual ~BlockCacheTraceReader() = default; 24952: 24952: BlockCacheTraceReader(const BlockCacheTraceReader&) = delete; 24952: BlockCacheTraceReader& operator=(const BlockCacheTraceReader&) = delete; 24952: BlockCacheTraceReader(BlockCacheTraceReader&&) = delete; 24952: BlockCacheTraceReader& operator=(BlockCacheTraceReader&&) = delete; 24952: 24952: Status ReadHeader(BlockCacheTraceHeader* header); 24952: 24952: Status ReadAccess(BlockCacheTraceRecord* record); 24952: 24952: private: 24952: std::unique_ptr trace_reader_; 24952: }; 24952: 24952: 24952: 24952: 24952: class BlockCacheHumanReadableTraceReader : public BlockCacheTraceReader { 24952: public: 24952: BlockCacheHumanReadableTraceReader(const std::string& trace_file_path); 24952: 24952: ~BlockCacheHumanReadableTraceReader(); 24952: 24952: Status ReadHeader(BlockCacheTraceHeader* header); 24952: 24952: Status ReadAccess(BlockCacheTraceRecord* record); 24952: 24952: private: 24952: std::ifstream human_readable_trace_reader_; 24952: }; 24952: 24952: 24952: 24952: 24952: class BlockCacheTracer { 24952: public: 24952: BlockCacheTracer(); 24952: ~BlockCacheTracer(); 24952: 24952: BlockCacheTracer(const BlockCacheTracer&) = delete; 24952: BlockCacheTracer& operator=(const BlockCacheTracer&) = delete; 24952: BlockCacheTracer(BlockCacheTracer&&) = delete; 24952: BlockCacheTracer& operator=(BlockCacheTracer&&) = delete; 24952: 24952: 24952: Status StartTrace(const BlockCacheTraceOptions& trace_options, 24952: std::unique_ptr&& trace_writer); 24952: 24952: 24952: void EndTrace(); 24952: 24952: bool is_tracing_enabled() const { 24952: return writer_.load(std::memory_order_relaxed); 24952: } 24952: 24952: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 24952: const Slice& block_key, const Slice& cf_name, 24952: const Slice& referenced_key); 24952: 24952: 24952: uint64_t NextGetId(); 24952: 24952: private: 24952: BlockCacheTraceOptions trace_options_; 24952: 24952: InstrumentedMutex trace_writer_mutex_; 24952: std::atomic writer_; 24952: std::atomic get_id_counter_; 24952: }; 24952: 24952: } 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: class Slice; 24952: class Status; 24952: 24952: struct TableReaderOptions { 24952: 24952: TableReaderOptions( 24952: const ImmutableOptions& _ioptions, 24952: const std::shared_ptr& _prefix_extractor, 24952: const EnvOptions& _env_options, 24952: const InternalKeyComparator& _internal_comparator, 24952: uint8_t _block_protection_bytes_per_key, bool _skip_filters = false, 24952: bool _immortal = false, bool _force_direct_prefetch = false, 24952: int _level = -1, BlockCacheTracer* const _block_cache_tracer = nullptr, 24952: size_t _max_file_size_for_l0_meta_pin = 0, 24952: const std::string& _cur_db_session_id = "", uint64_t _cur_file_num = 0, 24952: UniqueId64x2 _unique_id = {}, SequenceNumber _largest_seqno = 0, 24952: uint64_t _tail_size = 0, bool _user_defined_timestamps_persisted = true) 24952: : ioptions(_ioptions), 24952: prefix_extractor(_prefix_extractor), 24952: env_options(_env_options), 24952: internal_comparator(_internal_comparator), 24952: skip_filters(_skip_filters), 24952: immortal(_immortal), 24952: force_direct_prefetch(_force_direct_prefetch), 24952: level(_level), 24952: largest_seqno(_largest_seqno), 24952: block_cache_tracer(_block_cache_tracer), 24952: max_file_size_for_l0_meta_pin(_max_file_size_for_l0_meta_pin), 24952: cur_db_session_id(_cur_db_session_id), 24952: cur_file_num(_cur_file_num), 24952: unique_id(_unique_id), 24952: block_protection_bytes_per_key(_block_protection_bytes_per_key), 24952: tail_size(_tail_size), 24952: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) {} 24952: 24952: const ImmutableOptions& ioptions; 24952: const std::shared_ptr& prefix_extractor; 24952: const EnvOptions& env_options; 24952: const InternalKeyComparator& internal_comparator; 24952: 24952: bool skip_filters; 24952: 24952: bool immortal; 24952: 24952: 24952: 24952: bool force_direct_prefetch; 24952: 24952: 24952: int level; 24952: 24952: SequenceNumber largest_seqno; 24952: BlockCacheTracer* const block_cache_tracer; 24952: 24952: 24952: const size_t max_file_size_for_l0_meta_pin; 24952: 24952: std::string cur_db_session_id; 24952: 24952: uint64_t cur_file_num; 24952: 24952: 24952: UniqueId64x2 unique_id; 24952: 24952: uint8_t block_protection_bytes_per_key; 24952: 24952: uint64_t tail_size; 24952: 24952: 24952: bool user_defined_timestamps_persisted; 24952: }; 24952: 24952: struct TableBuilderOptions { 24952: TableBuilderOptions( 24952: const ImmutableOptions& _ioptions, const MutableCFOptions& _moptions, 24952: const InternalKeyComparator& _internal_comparator, 24952: const IntTblPropCollectorFactories* _int_tbl_prop_collector_factories, 24952: CompressionType _compression_type, 24952: const CompressionOptions& _compression_opts, uint32_t _column_family_id, 24952: const std::string& _column_family_name, int _level, 24952: bool _is_bottommost = false, 24952: TableFileCreationReason _reason = TableFileCreationReason::kMisc, 24952: const int64_t _oldest_key_time = 0, 24952: const uint64_t _file_creation_time = 0, const std::string& _db_id = "", 24952: const std::string& _db_session_id = "", 24952: const uint64_t _target_file_size = 0, const uint64_t _cur_file_num = 0) 24952: : ioptions(_ioptions), 24952: moptions(_moptions), 24952: internal_comparator(_internal_comparator), 24952: int_tbl_prop_collector_factories(_int_tbl_prop_collector_factories), 24952: compression_type(_compression_type), 24952: compression_opts(_compression_opts), 24952: column_family_id(_column_family_id), 24952: column_family_name(_column_family_name), 24952: oldest_key_time(_oldest_key_time), 24952: target_file_size(_target_file_size), 24952: file_creation_time(_file_creation_time), 24952: db_id(_db_id), 24952: db_session_id(_db_session_id), 24952: level_at_creation(_level), 24952: is_bottommost(_is_bottommost), 24952: reason(_reason), 24952: cur_file_num(_cur_file_num) {} 24952: 24952: const ImmutableOptions& ioptions; 24952: const MutableCFOptions& moptions; 24952: const InternalKeyComparator& internal_comparator; 24952: const IntTblPropCollectorFactories* int_tbl_prop_collector_factories; 24952: const CompressionType compression_type; 24952: const CompressionOptions& compression_opts; 24952: const uint32_t column_family_id; 24952: const std::string& column_family_name; 24952: const int64_t oldest_key_time; 24952: const uint64_t target_file_size; 24952: const uint64_t file_creation_time; 24952: const std::string db_id; 24952: const std::string db_session_id; 24952: 24952: const int level_at_creation; 24952: const bool is_bottommost; 24952: const TableFileCreationReason reason; 24952: 24952: 24952: 24952: 24952: 24952: bool skip_filters = false; 24952: const uint64_t cur_file_num; 24952: }; 24952: # 167 "/build/reproducible-path/rocksdb-8.9.1/table/table_builder.h" 24952: class TableBuilder { 24952: public: 24952: 24952: virtual ~TableBuilder() {} 24952: 24952: 24952: 24952: 24952: virtual void Add(const Slice& key, const Slice& value) = 0; 24952: 24952: 24952: virtual Status status() const = 0; 24952: 24952: 24952: virtual IOStatus io_status() const = 0; 24952: 24952: 24952: 24952: virtual Status Finish() = 0; 24952: 24952: 24952: 24952: 24952: 24952: virtual void Abandon() = 0; 24952: 24952: 24952: virtual uint64_t NumEntries() const = 0; 24952: 24952: 24952: 24952: virtual bool IsEmpty() const { 24952: return NumEntries() == 0 && GetTableProperties().num_range_deletions == 0; 24952: } 24952: 24952: 24952: 24952: virtual uint64_t FileSize() const = 0; 24952: 24952: 24952: 24952: 24952: virtual uint64_t EstimatedFileSize() const { return FileSize(); } 24952: 24952: virtual uint64_t GetTailSize() const { return 0; } 24952: 24952: 24952: 24952: virtual bool NeedCompact() const { return false; } 24952: 24952: 24952: virtual TableProperties GetTableProperties() const = 0; 24952: 24952: 24952: virtual std::string GetFileChecksum() const = 0; 24952: 24952: 24952: virtual const char* GetFileChecksumFuncName() const = 0; 24952: 24952: 24952: virtual void SetSeqnoTimeTableProperties( 24952: const std::string& , 24952: uint64_t ){}; 24952: }; 24952: 24952: } 24952: # 27 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: namespace rocksdb { 24952: # 41 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: template > 24952: class BinaryHeap { 24952: public: 24952: BinaryHeap() {} 24952: explicit BinaryHeap(Compare cmp) : cmp_(std::move(cmp)) {} 24952: 24952: void push(const T& value) { 24952: data_.push_back(value); 24952: upheap(data_.size() - 1); 24952: } 24952: 24952: void push(T&& value) { 24952: data_.push_back(std::move(value)); 24952: upheap(data_.size() - 1); 24952: } 24952: 24952: const T& top() const { 24952: 24952: # 58 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: (static_cast ( 24952: # 58 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: !empty() 24952: # 58 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 58 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: "!empty()" 24952: # 58 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: , "./util/heap.h", 58, __extension__ __PRETTY_FUNCTION__)) 24952: # 58 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: ; 24952: return data_.front(); 24952: } 24952: 24952: void replace_top(const T& value) { 24952: 24952: # 63 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: (static_cast ( 24952: # 63 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: !empty() 24952: # 63 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 63 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: "!empty()" 24952: # 63 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: , "./util/heap.h", 63, __extension__ __PRETTY_FUNCTION__)) 24952: # 63 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: ; 24952: data_.front() = value; 24952: downheap(get_root()); 24952: } 24952: 24952: void replace_top(T&& value) { 24952: 24952: # 69 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: (static_cast ( 24952: # 69 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: !empty() 24952: # 69 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 69 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: "!empty()" 24952: # 69 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: , "./util/heap.h", 69, __extension__ __PRETTY_FUNCTION__)) 24952: # 69 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: ; 24952: data_.front() = std::move(value); 24952: downheap(get_root()); 24952: } 24952: 24952: void pop() { 24952: 24952: # 75 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: (static_cast ( 24952: # 75 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: !empty() 24952: # 75 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 75 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: "!empty()" 24952: # 75 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: , "./util/heap.h", 75, __extension__ __PRETTY_FUNCTION__)) 24952: # 75 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: ; 24952: if (data_.size() > 1) { 24952: 24952: 24952: 24952: data_.front() = std::move(data_.back()); 24952: } 24952: data_.pop_back(); 24952: if (!empty()) { 24952: downheap(get_root()); 24952: } else { 24952: reset_root_cmp_cache(); 24952: } 24952: } 24952: 24952: void swap(BinaryHeap& other) { 24952: std::swap(cmp_, other.cmp_); 24952: data_.swap(other.data_); 24952: std::swap(root_cmp_cache_, other.root_cmp_cache_); 24952: } 24952: 24952: void clear() { 24952: data_.clear(); 24952: reset_root_cmp_cache(); 24952: } 24952: 24952: bool empty() const { return data_.empty(); } 24952: 24952: size_t size() const { return data_.size(); } 24952: 24952: void reset_root_cmp_cache() { 24952: root_cmp_cache_ = std::numeric_limits::max(); 24952: } 24952: 24952: private: 24952: static inline size_t get_root() { return 0; } 24952: static inline size_t get_parent(size_t index) { return (index - 1) / 2; } 24952: static inline size_t get_left(size_t index) { return 2 * index + 1; } 24952: static inline size_t get_right(size_t index) { return 2 * index + 2; } 24952: 24952: void upheap(size_t index) { 24952: T v = std::move(data_[index]); 24952: while (index > get_root()) { 24952: const size_t parent = get_parent(index); 24952: if (!cmp_(data_[parent], v)) { 24952: break; 24952: } 24952: data_[index] = std::move(data_[parent]); 24952: index = parent; 24952: } 24952: data_[index] = std::move(v); 24952: reset_root_cmp_cache(); 24952: } 24952: 24952: void downheap(size_t index) { 24952: T v = std::move(data_[index]); 24952: 24952: size_t picked_child = std::numeric_limits::max(); 24952: while (1) { 24952: const size_t left_child = get_left(index); 24952: if (get_left(index) >= data_.size()) { 24952: break; 24952: } 24952: const size_t right_child = left_child + 1; 24952: 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: (static_cast ( 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: right_child == get_right(index) 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: "right_child == get_right(index)" 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 3 4 24952: , "./util/heap.h", 139, __extension__ __PRETTY_FUNCTION__)) 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/util/heap.h" 24952: ; 24952: picked_child = left_child; 24952: if (index == 0 && root_cmp_cache_ < data_.size()) { 24952: picked_child = root_cmp_cache_; 24952: } else if (right_child < data_.size() && 24952: cmp_(data_[left_child], data_[right_child])) { 24952: picked_child = right_child; 24952: } 24952: if (!cmp_(v, data_[picked_child])) { 24952: break; 24952: } 24952: data_[index] = std::move(data_[picked_child]); 24952: index = picked_child; 24952: } 24952: 24952: if (index == 0) { 24952: 24952: 24952: 24952: 24952: root_cmp_cache_ = picked_child; 24952: } else { 24952: 24952: reset_root_cmp_cache(); 24952: } 24952: 24952: data_[index] = std::move(v); 24952: } 24952: 24952: Compare cmp_; 24952: autovector data_; 24952: 24952: size_t root_cmp_cache_ = std::numeric_limits::max(); 24952: }; 24952: 24952: } 24952: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/util/kv_map.h" 1 24952: 24952: 24952: 24952: 24952: 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/util/kv_map.h" 24952: namespace rocksdb { 24952: namespace stl_wrappers { 24952: 24952: struct LessOfComparator { 24952: explicit LessOfComparator(const Comparator* c = BytewiseComparator()) 24952: : cmp(c) {} 24952: 24952: bool operator()(const std::string& a, const std::string& b) const { 24952: return cmp->Compare(Slice(a), Slice(b)) < 0; 24952: } 24952: bool operator()(const Slice& a, const Slice& b) const { 24952: return cmp->Compare(a, b) < 0; 24952: } 24952: 24952: const Comparator* cmp; 24952: }; 24952: 24952: using KVMap = std::map; 24952: } 24952: } 24952: # 29 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 2 24952: 24952: namespace rocksdb { 24952: 24952: class TruncatedRangeDelIterator { 24952: public: 24952: TruncatedRangeDelIterator( 24952: std::unique_ptr iter, 24952: const InternalKeyComparator* icmp, const InternalKey* smallest, 24952: const InternalKey* largest); 24952: 24952: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 24952: iter_->SetRangeDelReadSeqno(read_seqno); 24952: } 24952: 24952: bool Valid() const; 24952: 24952: void Next() { iter_->TopNext(); } 24952: void Prev() { iter_->TopPrev(); } 24952: 24952: void InternalNext() { iter_->Next(); } 24952: 24952: 24952: 24952: 24952: 24952: void Seek(const Slice& target); 24952: 24952: 24952: void SeekInternalKey(const Slice& target); 24952: 24952: 24952: 24952: 24952: void SeekForPrev(const Slice& target); 24952: 24952: void SeekToFirst(); 24952: void SeekToLast(); 24952: 24952: ParsedInternalKey start_key() const { 24952: return (smallest_ == nullptr || 24952: icmp_->Compare(*smallest_, iter_->parsed_start_key()) <= 0) 24952: ? iter_->parsed_start_key() 24952: : *smallest_; 24952: } 24952: 24952: ParsedInternalKey end_key() const { 24952: return (largest_ == nullptr || 24952: icmp_->Compare(iter_->parsed_end_key(), *largest_) <= 0) 24952: ? iter_->parsed_end_key() 24952: : *largest_; 24952: } 24952: 24952: SequenceNumber seq() const { return iter_->seq(); } 24952: Slice timestamp() const { 24952: 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 24952: (static_cast ( 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: icmp_->user_comparator()->timestamp_size() 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: "icmp_->user_comparator()->timestamp_size()" 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 24952: , "./db/range_del_aggregator.h", 83, __extension__ __PRETTY_FUNCTION__)) 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: ; 24952: return iter_->timestamp(); 24952: } 24952: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 24952: iter_->SetTimestampUpperBound(ts_upper_bound); 24952: } 24952: 24952: std::map> 24952: SplitBySnapshot(const std::vector& snapshots); 24952: 24952: SequenceNumber upper_bound() const { return iter_->upper_bound(); } 24952: 24952: SequenceNumber lower_bound() const { return iter_->lower_bound(); } 24952: 24952: private: 24952: std::unique_ptr iter_; 24952: const InternalKeyComparator* icmp_; 24952: const ParsedInternalKey* smallest_ = nullptr; 24952: const ParsedInternalKey* largest_ = nullptr; 24952: std::list pinned_bounds_; 24952: 24952: const InternalKey* smallest_ikey_; 24952: const InternalKey* largest_ikey_; 24952: }; 24952: 24952: struct SeqMaxComparator { 24952: bool operator()(const TruncatedRangeDelIterator* a, 24952: const TruncatedRangeDelIterator* b) const { 24952: return a->seq() > b->seq(); 24952: } 24952: }; 24952: 24952: struct StartKeyMinComparator { 24952: explicit StartKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 24952: 24952: bool operator()(const TruncatedRangeDelIterator* a, 24952: const TruncatedRangeDelIterator* b) const { 24952: return icmp->Compare(a->start_key(), b->start_key()) > 0; 24952: } 24952: 24952: const InternalKeyComparator* icmp; 24952: }; 24952: 24952: class ForwardRangeDelIterator { 24952: public: 24952: explicit ForwardRangeDelIterator(const InternalKeyComparator* icmp); 24952: 24952: bool ShouldDelete(const ParsedInternalKey& parsed); 24952: void Invalidate(); 24952: 24952: void AddNewIter(TruncatedRangeDelIterator* iter, 24952: const ParsedInternalKey& parsed) { 24952: iter->Seek(parsed.user_key); 24952: PushIter(iter, parsed); 24952: 24952: # 137 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 24952: (static_cast ( 24952: # 137 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: active_iters_.size() == active_seqnums_.size() 24952: # 137 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 137 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: "active_iters_.size() == active_seqnums_.size()" 24952: # 137 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 24952: , "./db/range_del_aggregator.h", 137, __extension__ __PRETTY_FUNCTION__)) 24952: # 137 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: ; 24952: } 24952: 24952: size_t UnusedIdx() const { return unused_idx_; } 24952: void IncUnusedIdx() { unused_idx_++; } 24952: 24952: private: 24952: using ActiveSeqSet = 24952: std::multiset; 24952: 24952: struct EndKeyMinComparator { 24952: explicit EndKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 24952: 24952: bool operator()(const ActiveSeqSet::const_iterator& a, 24952: const ActiveSeqSet::const_iterator& b) const { 24952: return icmp->Compare((*a)->end_key(), (*b)->end_key()) > 0; 24952: } 24952: 24952: const InternalKeyComparator* icmp; 24952: }; 24952: 24952: void PushIter(TruncatedRangeDelIterator* iter, 24952: const ParsedInternalKey& parsed) { 24952: if (!iter->Valid()) { 24952: 24952: 24952: return; 24952: } 24952: int cmp = icmp_->Compare(parsed, iter->start_key()); 24952: if (cmp < 0) { 24952: PushInactiveIter(iter); 24952: } else { 24952: PushActiveIter(iter); 24952: } 24952: } 24952: 24952: void PushActiveIter(TruncatedRangeDelIterator* iter) { 24952: auto seq_pos = active_seqnums_.insert(iter); 24952: active_iters_.push(seq_pos); 24952: } 24952: 24952: TruncatedRangeDelIterator* PopActiveIter() { 24952: auto active_top = active_iters_.top(); 24952: auto iter = *active_top; 24952: active_iters_.pop(); 24952: active_seqnums_.erase(active_top); 24952: return iter; 24952: } 24952: 24952: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 24952: inactive_iters_.push(iter); 24952: } 24952: 24952: TruncatedRangeDelIterator* PopInactiveIter() { 24952: auto* iter = inactive_iters_.top(); 24952: inactive_iters_.pop(); 24952: return iter; 24952: } 24952: 24952: const InternalKeyComparator* icmp_; 24952: size_t unused_idx_; 24952: ActiveSeqSet active_seqnums_; 24952: BinaryHeap active_iters_; 24952: BinaryHeap inactive_iters_; 24952: }; 24952: 24952: class ReverseRangeDelIterator { 24952: public: 24952: explicit ReverseRangeDelIterator(const InternalKeyComparator* icmp); 24952: 24952: bool ShouldDelete(const ParsedInternalKey& parsed); 24952: void Invalidate(); 24952: 24952: void AddNewIter(TruncatedRangeDelIterator* iter, 24952: const ParsedInternalKey& parsed) { 24952: iter->SeekForPrev(parsed.user_key); 24952: PushIter(iter, parsed); 24952: 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 24952: (static_cast ( 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: active_iters_.size() == active_seqnums_.size() 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: "active_iters_.size() == active_seqnums_.size()" 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 24952: , "./db/range_del_aggregator.h", 214, __extension__ __PRETTY_FUNCTION__)) 24952: # 214 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: ; 24952: } 24952: 24952: size_t UnusedIdx() const { return unused_idx_; } 24952: void IncUnusedIdx() { unused_idx_++; } 24952: 24952: private: 24952: using ActiveSeqSet = 24952: std::multiset; 24952: 24952: struct EndKeyMaxComparator { 24952: explicit EndKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 24952: 24952: bool operator()(const TruncatedRangeDelIterator* a, 24952: const TruncatedRangeDelIterator* b) const { 24952: return icmp->Compare(a->end_key(), b->end_key()) < 0; 24952: } 24952: 24952: const InternalKeyComparator* icmp; 24952: }; 24952: struct StartKeyMaxComparator { 24952: explicit StartKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 24952: 24952: bool operator()(const ActiveSeqSet::const_iterator& a, 24952: const ActiveSeqSet::const_iterator& b) const { 24952: return icmp->Compare((*a)->start_key(), (*b)->start_key()) < 0; 24952: } 24952: 24952: const InternalKeyComparator* icmp; 24952: }; 24952: 24952: void PushIter(TruncatedRangeDelIterator* iter, 24952: const ParsedInternalKey& parsed) { 24952: if (!iter->Valid()) { 24952: 24952: 24952: } else if (icmp_->Compare(iter->end_key(), parsed) <= 0) { 24952: PushInactiveIter(iter); 24952: } else { 24952: PushActiveIter(iter); 24952: } 24952: } 24952: 24952: void PushActiveIter(TruncatedRangeDelIterator* iter) { 24952: auto seq_pos = active_seqnums_.insert(iter); 24952: active_iters_.push(seq_pos); 24952: } 24952: 24952: TruncatedRangeDelIterator* PopActiveIter() { 24952: auto active_top = active_iters_.top(); 24952: auto iter = *active_top; 24952: active_iters_.pop(); 24952: active_seqnums_.erase(active_top); 24952: return iter; 24952: } 24952: 24952: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 24952: inactive_iters_.push(iter); 24952: } 24952: 24952: TruncatedRangeDelIterator* PopInactiveIter() { 24952: auto* iter = inactive_iters_.top(); 24952: inactive_iters_.pop(); 24952: return iter; 24952: } 24952: 24952: const InternalKeyComparator* icmp_; 24952: size_t unused_idx_; 24952: ActiveSeqSet active_seqnums_; 24952: BinaryHeap active_iters_; 24952: BinaryHeap inactive_iters_; 24952: }; 24952: 24952: enum class RangeDelPositioningMode { kForwardTraversal, kBackwardTraversal }; 24952: class RangeDelAggregator { 24952: public: 24952: explicit RangeDelAggregator(const InternalKeyComparator* icmp) 24952: : icmp_(icmp) {} 24952: virtual ~RangeDelAggregator() {} 24952: 24952: virtual void AddTombstones( 24952: std::unique_ptr input_iter, 24952: const InternalKey* smallest = nullptr, 24952: const InternalKey* largest = nullptr) = 0; 24952: 24952: bool ShouldDelete(const Slice& ikey, RangeDelPositioningMode mode) { 24952: ParsedInternalKey parsed; 24952: 24952: Status pik_status = 24952: ParseInternalKey(ikey, &parsed, false ); 24952: 24952: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 24952: (static_cast ( 24952: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: pik_status.ok() 24952: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: "pik_status.ok()" 24952: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 3 4 24952: , "./db/range_del_aggregator.h", 304, __extension__ __PRETTY_FUNCTION__)) 24952: # 304 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: ; 24952: if (!pik_status.ok()) { 24952: return false; 24952: } 24952: 24952: return ShouldDelete(parsed, mode); 24952: } 24952: virtual bool ShouldDelete(const ParsedInternalKey& parsed, 24952: RangeDelPositioningMode mode) = 0; 24952: 24952: virtual void InvalidateRangeDelMapPositions() = 0; 24952: 24952: virtual bool IsEmpty() const = 0; 24952: 24952: bool AddFile(uint64_t file_number) { 24952: return files_seen_.insert(file_number).second; 24952: } 24952: 24952: protected: 24952: class StripeRep { 24952: public: 24952: StripeRep(const InternalKeyComparator* icmp, SequenceNumber upper_bound, 24952: SequenceNumber lower_bound) 24952: : icmp_(icmp), 24952: forward_iter_(icmp), 24952: reverse_iter_(icmp), 24952: upper_bound_(upper_bound), 24952: lower_bound_(lower_bound) {} 24952: 24952: void AddTombstones(std::unique_ptr input_iter) { 24952: iters_.push_back(std::move(input_iter)); 24952: } 24952: 24952: bool IsEmpty() const { return iters_.empty(); } 24952: 24952: bool ShouldDelete(const ParsedInternalKey& parsed, 24952: RangeDelPositioningMode mode); 24952: 24952: void Invalidate() { 24952: if (!IsEmpty()) { 24952: InvalidateForwardIter(); 24952: InvalidateReverseIter(); 24952: } 24952: } 24952: 24952: 24952: 24952: bool IsRangeOverlapped(const Slice& start, const Slice& end); 24952: 24952: private: 24952: bool InStripe(SequenceNumber seq) const { 24952: return lower_bound_ <= seq && seq <= upper_bound_; 24952: } 24952: 24952: void InvalidateForwardIter() { forward_iter_.Invalidate(); } 24952: 24952: void InvalidateReverseIter() { reverse_iter_.Invalidate(); } 24952: 24952: const InternalKeyComparator* icmp_; 24952: std::vector> iters_; 24952: ForwardRangeDelIterator forward_iter_; 24952: ReverseRangeDelIterator reverse_iter_; 24952: SequenceNumber upper_bound_; 24952: SequenceNumber lower_bound_; 24952: }; 24952: 24952: const InternalKeyComparator* icmp_; 24952: 24952: private: 24952: std::set files_seen_; 24952: }; 24952: 24952: class ReadRangeDelAggregator final : public RangeDelAggregator { 24952: public: 24952: ReadRangeDelAggregator(const InternalKeyComparator* icmp, 24952: SequenceNumber upper_bound) 24952: : RangeDelAggregator(icmp), 24952: rep_(icmp, upper_bound, 0 ) {} 24952: ~ReadRangeDelAggregator() override {} 24952: 24952: using RangeDelAggregator::ShouldDelete; 24952: void AddTombstones( 24952: std::unique_ptr input_iter, 24952: const InternalKey* smallest = nullptr, 24952: const InternalKey* largest = nullptr) override; 24952: 24952: bool ShouldDelete(const ParsedInternalKey& parsed, 24952: RangeDelPositioningMode mode) final override { 24952: if (rep_.IsEmpty()) { 24952: return false; 24952: } 24952: return ShouldDeleteImpl(parsed, mode); 24952: } 24952: 24952: bool IsRangeOverlapped(const Slice& start, const Slice& end); 24952: 24952: void InvalidateRangeDelMapPositions() override { rep_.Invalidate(); } 24952: 24952: bool IsEmpty() const override { return rep_.IsEmpty(); } 24952: 24952: private: 24952: StripeRep rep_; 24952: 24952: bool ShouldDeleteImpl(const ParsedInternalKey& parsed, 24952: RangeDelPositioningMode mode); 24952: }; 24952: 24952: class CompactionRangeDelAggregator : public RangeDelAggregator { 24952: public: 24952: CompactionRangeDelAggregator(const InternalKeyComparator* icmp, 24952: const std::vector& snapshots, 24952: const std::string* full_history_ts_low = nullptr, 24952: const std::string* trim_ts = nullptr) 24952: : RangeDelAggregator(icmp), snapshots_(&snapshots) { 24952: if (full_history_ts_low) { 24952: ts_upper_bound_ = *full_history_ts_low; 24952: } 24952: if (trim_ts) { 24952: trim_ts_ = *trim_ts; 24952: 24952: 24952: if (ts_upper_bound_.empty()) { 24952: ts_upper_bound_ = trim_ts_; 24952: } else if (!trim_ts_.empty() && icmp->user_comparator()->CompareTimestamp( 24952: trim_ts_, ts_upper_bound_) < 0) { 24952: ts_upper_bound_ = trim_ts_; 24952: } 24952: } 24952: } 24952: ~CompactionRangeDelAggregator() override {} 24952: 24952: void AddTombstones( 24952: std::unique_ptr input_iter, 24952: const InternalKey* smallest = nullptr, 24952: const InternalKey* largest = nullptr) override; 24952: 24952: using RangeDelAggregator::ShouldDelete; 24952: bool ShouldDelete(const ParsedInternalKey& parsed, 24952: RangeDelPositioningMode mode) override; 24952: 24952: bool IsRangeOverlapped(const Slice& start, const Slice& end); 24952: 24952: void InvalidateRangeDelMapPositions() override { 24952: for (auto& rep : reps_) { 24952: rep.second.Invalidate(); 24952: } 24952: } 24952: 24952: bool IsEmpty() const override { 24952: for (const auto& rep : reps_) { 24952: if (!rep.second.IsEmpty()) { 24952: return false; 24952: } 24952: } 24952: return true; 24952: } 24952: # 469 "/build/reproducible-path/rocksdb-8.9.1/db/range_del_aggregator.h" 24952: std::unique_ptr NewIterator( 24952: const Slice* lower_bound = nullptr, const Slice* upper_bound = nullptr); 24952: 24952: private: 24952: std::vector> parent_iters_; 24952: std::map reps_; 24952: 24952: const std::vector* snapshots_; 24952: 24952: Slice ts_upper_bound_{}; 24952: Slice trim_ts_{}; 24952: }; 24952: 24952: } 24952: # 14 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/snapshot_checker.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: enum class SnapshotCheckerResult : int { 24952: kInSnapshot = 0, 24952: kNotInSnapshot = 1, 24952: 24952: 24952: kSnapshotReleased = 2, 24952: }; 24952: 24952: 24952: class SnapshotChecker { 24952: public: 24952: virtual ~SnapshotChecker() {} 24952: virtual SnapshotCheckerResult CheckInSnapshot( 24952: SequenceNumber sequence, SequenceNumber snapshot_sequence) const = 0; 24952: }; 24952: 24952: class DisableGCSnapshotChecker : public SnapshotChecker { 24952: public: 24952: virtual ~DisableGCSnapshotChecker() {} 24952: virtual SnapshotCheckerResult CheckInSnapshot( 24952: SequenceNumber , 24952: SequenceNumber ) const override { 24952: 24952: return SnapshotCheckerResult::kNotInSnapshot; 24952: } 24952: static DisableGCSnapshotChecker* Instance(); 24952: 24952: protected: 24952: explicit DisableGCSnapshotChecker() {} 24952: }; 24952: 24952: class WritePreparedTxnDB; 24952: 24952: 24952: 24952: class WritePreparedSnapshotChecker : public SnapshotChecker { 24952: public: 24952: explicit WritePreparedSnapshotChecker(WritePreparedTxnDB* txn_db); 24952: virtual ~WritePreparedSnapshotChecker() {} 24952: 24952: virtual SnapshotCheckerResult CheckInSnapshot( 24952: SequenceNumber sequence, SequenceNumber snapshot_sequence) const override; 24952: 24952: private: 24952: const WritePreparedTxnDB* const txn_db_; 24952: }; 24952: 24952: } 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 1 24952: # 9 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: 24952: 24952: # 1 "/usr/include/c++/13/cassert" 1 3 24952: # 41 "/usr/include/c++/13/cassert" 3 24952: 24952: # 42 "/usr/include/c++/13/cassert" 3 24952: 24952: 24952: # 1 "/usr/include/assert.h" 1 3 4 24952: # 45 "/usr/include/c++/13/cassert" 2 3 24952: # 12 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 2 24952: # 23 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: namespace rocksdb { 24952: 24952: class Slice; 24952: class SliceTransform; 24952: # 54 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: class CompactionFilter : public Customizable { 24952: public: 24952: 24952: 24952: enum ValueType { 24952: 24952: kValue, 24952: 24952: kMergeOperand, 24952: 24952: 24952: 24952: 24952: kBlobIndex, 24952: 24952: kWideColumnEntity, 24952: }; 24952: 24952: 24952: 24952: 24952: enum class Decision { 24952: 24952: kKeep, 24952: # 89 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: kRemove, 24952: 24952: 24952: 24952: 24952: 24952: kChangeValue, 24952: # 119 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: kRemoveAndSkipUntil, 24952: 24952: 24952: 24952: kChangeBlobIndex, 24952: 24952: 24952: 24952: kIOError, 24952: 24952: 24952: 24952: 24952: 24952: kPurge, 24952: 24952: 24952: 24952: 24952: 24952: 24952: kChangeWideColumnEntity, 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: kUndetermined, 24952: }; 24952: 24952: 24952: enum class BlobDecision { kKeep, kChangeValue, kCorruption, kIOError }; 24952: 24952: 24952: struct Context { 24952: 24952: 24952: bool is_full_compaction; 24952: 24952: 24952: bool is_manual_compaction; 24952: 24952: 24952: int input_start_level = kUnknownStartLevel; 24952: 24952: uint32_t column_family_id; 24952: 24952: TableFileCreationReason reason; 24952: 24952: 24952: 24952: 24952: TablePropertiesCollection input_table_properties; 24952: 24952: static const int kUnknownStartLevel = -1; 24952: }; 24952: 24952: virtual ~CompactionFilter() {} 24952: static const char* Type() { return "CompactionFilter"; } 24952: static Status CreateFromString(const ConfigOptions& config_options, 24952: const std::string& name, 24952: const CompactionFilter** result); 24952: # 201 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: virtual bool Filter(int , const Slice& , 24952: const Slice& , 24952: std::string* , 24952: bool* ) const { 24952: return false; 24952: } 24952: # 217 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: virtual bool FilterMergeOperand(int , const Slice& , 24952: const Slice& ) const { 24952: return false; 24952: } 24952: # 234 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: virtual Decision FilterV2(int level, const Slice& key, ValueType value_type, 24952: const Slice& existing_value, std::string* new_value, 24952: std::string* ) const { 24952: switch (value_type) { 24952: case ValueType::kValue: { 24952: bool value_changed = false; 24952: bool rv = Filter(level, key, existing_value, new_value, &value_changed); 24952: if (rv) { 24952: return Decision::kRemove; 24952: } 24952: return value_changed ? Decision::kChangeValue : Decision::kKeep; 24952: } 24952: 24952: case ValueType::kMergeOperand: { 24952: bool rv = FilterMergeOperand(level, key, existing_value); 24952: return rv ? Decision::kRemove : Decision::kKeep; 24952: } 24952: 24952: case ValueType::kBlobIndex: 24952: return Decision::kKeep; 24952: 24952: default: 24952: 24952: # 256 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 24952: (static_cast ( 24952: # 256 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: false 24952: # 256 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 256 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: "false" 24952: # 256 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 24952: , "./include/rocksdb/compaction_filter.h", 256, __extension__ __PRETTY_FUNCTION__)) 24952: # 256 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: ; 24952: return Decision::kKeep; 24952: } 24952: } 24952: # 281 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: virtual Decision FilterV3( 24952: int level, const Slice& key, ValueType value_type, 24952: const Slice* existing_value, const WideColumns* existing_columns, 24952: std::string* new_value, 24952: std::vector>* , 24952: std::string* skip_until) const { 24952: 24952: 24952: 24952: 24952: 24952: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 24952: (static_cast ( 24952: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: !existing_value || !existing_columns 24952: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: "!existing_value || !existing_columns" 24952: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 24952: , "./include/rocksdb/compaction_filter.h", 291, __extension__ __PRETTY_FUNCTION__)) 24952: # 291 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: ; 24952: 24952: # 292 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 24952: (static_cast ( 24952: # 292 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: value_type == ValueType::kWideColumnEntity || existing_value 24952: # 292 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 292 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: "value_type == ValueType::kWideColumnEntity || existing_value" 24952: # 292 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 24952: , "./include/rocksdb/compaction_filter.h", 292, __extension__ __PRETTY_FUNCTION__)) 24952: # 292 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: ; 24952: 24952: # 293 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 24952: (static_cast ( 24952: # 293 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: value_type != ValueType::kWideColumnEntity || existing_columns 24952: # 293 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 293 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: "value_type != ValueType::kWideColumnEntity || existing_columns" 24952: # 293 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 3 4 24952: , "./include/rocksdb/compaction_filter.h", 293, __extension__ __PRETTY_FUNCTION__)) 24952: # 293 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: ; 24952: 24952: if (value_type == ValueType::kWideColumnEntity) { 24952: return Decision::kKeep; 24952: } 24952: 24952: return FilterV2(level, key, value_type, *existing_value, new_value, 24952: skip_until); 24952: } 24952: 24952: 24952: virtual BlobDecision PrepareBlobOutput(const Slice& , 24952: const Slice& , 24952: std::string* ) const { 24952: return BlobDecision::kKeep; 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual bool IgnoreSnapshots() const { return true; } 24952: 24952: 24952: 24952: const char* Name() const override = 0; 24952: 24952: 24952: virtual bool IsStackedBlobDbInternalCompactionFilter() const { return false; } 24952: # 334 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: virtual Decision FilterBlobByKey(int , const Slice& , 24952: std::string* , 24952: std::string* ) const { 24952: return Decision::kUndetermined; 24952: } 24952: }; 24952: # 349 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/compaction_filter.h" 24952: class CompactionFilterFactory : public Customizable { 24952: public: 24952: virtual ~CompactionFilterFactory() {} 24952: static const char* Type() { return "CompactionFilterFactory"; } 24952: static Status CreateFromString( 24952: const ConfigOptions& config_options, const std::string& name, 24952: std::shared_ptr* result); 24952: 24952: 24952: 24952: 24952: virtual bool ShouldFilterTableFileCreation( 24952: TableFileCreationReason reason) const { 24952: 24952: 24952: return reason == TableFileCreationReason::kCompaction; 24952: } 24952: 24952: virtual std::unique_ptr CreateCompactionFilter( 24952: const CompactionFilter::Context& context) = 0; 24952: 24952: 24952: virtual const char* Name() const override = 0; 24952: }; 24952: 24952: } 24952: # 16 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 1 "/usr/include/c++/13/variant" 1 3 24952: # 32 "/usr/include/c++/13/variant" 3 24952: 24952: # 33 "/usr/include/c++/13/variant" 3 24952: # 58 "/usr/include/c++/13/variant" 3 24952: 24952: # 58 "/usr/include/c++/13/variant" 3 24952: namespace std __attribute__ ((__visibility__ ("default"))) 24952: { 24952: 24952: 24952: template class tuple; 24952: template class variant; 24952: template struct hash; 24952: 24952: template 24952: struct variant_size; 24952: 24952: template 24952: struct variant_size : variant_size<_Variant> {}; 24952: 24952: template 24952: struct variant_size : variant_size<_Variant> {}; 24952: 24952: template 24952: struct variant_size : variant_size<_Variant> {}; 24952: 24952: template 24952: struct variant_size> 24952: : std::integral_constant {}; 24952: 24952: template 24952: inline constexpr size_t variant_size_v = variant_size<_Variant>::value; 24952: 24952: template 24952: inline constexpr size_t 24952: variant_size_v> = sizeof...(_Types); 24952: 24952: template 24952: inline constexpr size_t 24952: variant_size_v> = sizeof...(_Types); 24952: 24952: template 24952: struct variant_alternative; 24952: 24952: template 24952: struct variant_alternative<_Np, variant<_Types...>> 24952: { 24952: static_assert(_Np < sizeof...(_Types)); 24952: 24952: using type = typename _Nth_type<_Np, _Types...>::type; 24952: }; 24952: 24952: template 24952: using variant_alternative_t = 24952: typename variant_alternative<_Np, _Variant>::type; 24952: 24952: template 24952: struct variant_alternative<_Np, const _Variant> 24952: { using type = const variant_alternative_t<_Np, _Variant>; }; 24952: 24952: template 24952: struct variant_alternative<_Np, volatile _Variant> 24952: { using type = volatile variant_alternative_t<_Np, _Variant>; }; 24952: 24952: template 24952: struct variant_alternative<_Np, const volatile _Variant> 24952: { using type = const volatile variant_alternative_t<_Np, _Variant>; }; 24952: 24952: inline constexpr size_t variant_npos = -1; 24952: 24952: template 24952: constexpr variant_alternative_t<_Np, variant<_Types...>>& 24952: get(variant<_Types...>&); 24952: 24952: template 24952: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 24952: get(variant<_Types...>&&); 24952: 24952: template 24952: constexpr variant_alternative_t<_Np, variant<_Types...>> const& 24952: get(const variant<_Types...>&); 24952: 24952: template 24952: constexpr variant_alternative_t<_Np, variant<_Types...>> const&& 24952: get(const variant<_Types...>&&); 24952: 24952: template 24952: constexpr decltype(auto) 24952: __do_visit(_Visitor&& __visitor, _Variants&&... __variants); 24952: 24952: template 24952: 24952: decltype(auto) 24952: __variant_cast(_Tp&& __rhs) 24952: { 24952: if constexpr (is_lvalue_reference_v<_Tp>) 24952: { 24952: if constexpr (is_const_v>) 24952: return static_cast&>(__rhs); 24952: else 24952: return static_cast&>(__rhs); 24952: } 24952: else 24952: return static_cast&&>(__rhs); 24952: } 24952: 24952: namespace __detail 24952: { 24952: namespace __variant 24952: { 24952: 24952: struct __variant_cookie {}; 24952: 24952: struct __variant_idx_cookie { using type = __variant_idx_cookie; }; 24952: 24952: template struct __deduce_visit_result { using type = _Tp; }; 24952: 24952: 24952: template 24952: constexpr void 24952: __raw_visit(_Visitor&& __visitor, _Variants&&... __variants) 24952: { 24952: std::__do_visit<__variant_cookie>(std::forward<_Visitor>(__visitor), 24952: std::forward<_Variants>(__variants)...); 24952: } 24952: 24952: 24952: template 24952: constexpr void 24952: __raw_idx_visit(_Visitor&& __visitor, _Variants&&... __variants) 24952: { 24952: std::__do_visit<__variant_idx_cookie>(std::forward<_Visitor>(__visitor), 24952: std::forward<_Variants>(__variants)...); 24952: } 24952: 24952: 24952: 24952: template 24952: constexpr std::variant<_Types...>& 24952: __as(std::variant<_Types...>& __v) noexcept 24952: { return __v; } 24952: 24952: template 24952: constexpr const std::variant<_Types...>& 24952: __as(const std::variant<_Types...>& __v) noexcept 24952: { return __v; } 24952: 24952: template 24952: constexpr std::variant<_Types...>&& 24952: __as(std::variant<_Types...>&& __v) noexcept 24952: { return std::move(__v); } 24952: 24952: template 24952: constexpr const std::variant<_Types...>&& 24952: __as(const std::variant<_Types...>&& __v) noexcept 24952: { return std::move(__v); } 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template> 24952: struct _Uninitialized; 24952: 24952: template 24952: struct _Uninitialized<_Type, true> 24952: { 24952: template 24952: constexpr 24952: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 24952: : _M_storage(std::forward<_Args>(__args)...) 24952: { } 24952: 24952: constexpr const _Type& _M_get() const & noexcept 24952: { return _M_storage; } 24952: 24952: constexpr _Type& _M_get() & noexcept 24952: { return _M_storage; } 24952: 24952: constexpr const _Type&& _M_get() const && noexcept 24952: { return std::move(_M_storage); } 24952: 24952: constexpr _Type&& _M_get() && noexcept 24952: { return std::move(_M_storage); } 24952: 24952: _Type _M_storage; 24952: }; 24952: 24952: template 24952: struct _Uninitialized<_Type, false> 24952: { 24952: # 278 "/usr/include/c++/13/variant" 3 24952: template 24952: constexpr 24952: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 24952: { 24952: ::new ((void*)std::addressof(_M_storage)) 24952: _Type(std::forward<_Args>(__args)...); 24952: } 24952: 24952: const _Type& _M_get() const & noexcept 24952: { return *_M_storage._M_ptr(); } 24952: 24952: _Type& _M_get() & noexcept 24952: { return *_M_storage._M_ptr(); } 24952: 24952: const _Type&& _M_get() const && noexcept 24952: { return std::move(*_M_storage._M_ptr()); } 24952: 24952: _Type&& _M_get() && noexcept 24952: { return std::move(*_M_storage._M_ptr()); } 24952: 24952: __gnu_cxx::__aligned_membuf<_Type> _M_storage; 24952: 24952: }; 24952: 24952: template 24952: constexpr decltype(auto) 24952: __get_n(_Union&& __u) noexcept 24952: { 24952: if constexpr (_Np == 0) 24952: return std::forward<_Union>(__u)._M_first._M_get(); 24952: else if constexpr (_Np == 1) 24952: return std::forward<_Union>(__u)._M_rest._M_first._M_get(); 24952: else if constexpr (_Np == 2) 24952: return std::forward<_Union>(__u)._M_rest._M_rest._M_first._M_get(); 24952: else 24952: return __variant::__get_n<_Np - 3>( 24952: std::forward<_Union>(__u)._M_rest._M_rest._M_rest); 24952: } 24952: 24952: 24952: template 24952: constexpr decltype(auto) 24952: __get(_Variant&& __v) noexcept 24952: { return __variant::__get_n<_Np>(std::forward<_Variant>(__v)._M_u); } 24952: 24952: 24952: template 24952: constexpr decltype(auto) 24952: __construct_n(_Union& __u) noexcept 24952: { 24952: if constexpr (_Np == 0) 24952: return &__u._M_first; 24952: else if constexpr (_Np == 1) 24952: { 24952: std::_Construct(&__u._M_rest); 24952: return &__u._M_rest._M_first; 24952: } 24952: else if constexpr (_Np == 2) 24952: { 24952: std::_Construct(&__u._M_rest); 24952: std::_Construct(&__u._M_rest._M_rest); 24952: return &__u._M_rest._M_rest._M_first; 24952: } 24952: else 24952: { 24952: std::_Construct(&__u._M_rest); 24952: std::_Construct(&__u._M_rest._M_rest); 24952: std::_Construct(&__u._M_rest._M_rest._M_rest); 24952: return __variant::__construct_n<_Np - 3>(__u._M_rest._M_rest._M_rest); 24952: } 24952: } 24952: 24952: template 24952: struct _Traits 24952: { 24952: static constexpr bool _S_default_ctor = 24952: is_default_constructible_v::type>; 24952: static constexpr bool _S_copy_ctor = 24952: (is_copy_constructible_v<_Types> && ...); 24952: static constexpr bool _S_move_ctor = 24952: (is_move_constructible_v<_Types> && ...); 24952: static constexpr bool _S_copy_assign = 24952: _S_copy_ctor 24952: && (is_copy_assignable_v<_Types> && ...); 24952: static constexpr bool _S_move_assign = 24952: _S_move_ctor 24952: && (is_move_assignable_v<_Types> && ...); 24952: 24952: static constexpr bool _S_trivial_dtor = 24952: (is_trivially_destructible_v<_Types> && ...); 24952: static constexpr bool _S_trivial_copy_ctor = 24952: (is_trivially_copy_constructible_v<_Types> && ...); 24952: static constexpr bool _S_trivial_move_ctor = 24952: (is_trivially_move_constructible_v<_Types> && ...); 24952: static constexpr bool _S_trivial_copy_assign = 24952: _S_trivial_dtor && _S_trivial_copy_ctor 24952: && (is_trivially_copy_assignable_v<_Types> && ...); 24952: static constexpr bool _S_trivial_move_assign = 24952: _S_trivial_dtor && _S_trivial_move_ctor 24952: && (is_trivially_move_assignable_v<_Types> && ...); 24952: 24952: 24952: 24952: static constexpr bool _S_nothrow_default_ctor = 24952: is_nothrow_default_constructible_v< 24952: typename _Nth_type<0, _Types...>::type>; 24952: static constexpr bool _S_nothrow_copy_ctor = false; 24952: static constexpr bool _S_nothrow_move_ctor = 24952: (is_nothrow_move_constructible_v<_Types> && ...); 24952: static constexpr bool _S_nothrow_copy_assign = false; 24952: static constexpr bool _S_nothrow_move_assign = 24952: _S_nothrow_move_ctor 24952: && (is_nothrow_move_assignable_v<_Types> && ...); 24952: }; 24952: 24952: 24952: template 24952: union _Variadic_union 24952: { 24952: _Variadic_union() = default; 24952: 24952: template 24952: _Variadic_union(in_place_index_t<_Np>, _Args&&...) = delete; 24952: }; 24952: 24952: template 24952: union _Variadic_union<_First, _Rest...> 24952: { 24952: constexpr _Variadic_union() : _M_rest() { } 24952: 24952: template 24952: constexpr 24952: _Variadic_union(in_place_index_t<0>, _Args&&... __args) 24952: : _M_first(in_place_index<0>, std::forward<_Args>(__args)...) 24952: { } 24952: 24952: template 24952: constexpr 24952: _Variadic_union(in_place_index_t<_Np>, _Args&&... __args) 24952: : _M_rest(in_place_index<_Np-1>, std::forward<_Args>(__args)...) 24952: { } 24952: # 434 "/usr/include/c++/13/variant" 3 24952: _Uninitialized<_First> _M_first; 24952: _Variadic_union<_Rest...> _M_rest; 24952: }; 24952: 24952: 24952: 24952: 24952: 24952: 24952: template 24952: struct _Never_valueless_alt 24952: : __and_, is_trivially_copyable<_Tp>> 24952: { }; 24952: # 458 "/usr/include/c++/13/variant" 3 24952: template 24952: constexpr bool __never_valueless() 24952: { 24952: return _Traits<_Types...>::_S_move_assign 24952: && (_Never_valueless_alt<_Types>::value && ...); 24952: } 24952: 24952: 24952: template 24952: struct _Variant_storage; 24952: 24952: template 24952: using __select_index = 24952: typename __select_int::_Select_int_base::type::value_type; 24952: 24952: template 24952: struct _Variant_storage 24952: { 24952: constexpr 24952: _Variant_storage() 24952: : _M_index(static_cast<__index_type>(variant_npos)) 24952: { } 24952: 24952: template 24952: constexpr 24952: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 24952: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 24952: _M_index{_Np} 24952: { } 24952: 24952: constexpr void 24952: _M_reset() 24952: { 24952: if (!_M_valid()) [[unlikely]] 24952: return; 24952: 24952: std::__do_visit([](auto&& __this_mem) mutable 24952: { 24952: std::_Destroy(std::__addressof(__this_mem)); 24952: }, __variant_cast<_Types...>(*this)); 24952: 24952: _M_index = static_cast<__index_type>(variant_npos); 24952: } 24952: 24952: 24952: ~_Variant_storage() 24952: { _M_reset(); } 24952: 24952: constexpr bool 24952: _M_valid() const noexcept 24952: { 24952: if constexpr (__variant::__never_valueless<_Types...>()) 24952: return true; 24952: return this->_M_index != __index_type(variant_npos); 24952: } 24952: 24952: _Variadic_union<_Types...> _M_u; 24952: using __index_type = __select_index<_Types...>; 24952: __index_type _M_index; 24952: }; 24952: 24952: template 24952: struct _Variant_storage 24952: { 24952: constexpr 24952: _Variant_storage() 24952: : _M_index(static_cast<__index_type>(variant_npos)) 24952: { } 24952: 24952: template 24952: constexpr 24952: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 24952: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 24952: _M_index{_Np} 24952: { } 24952: 24952: constexpr void 24952: _M_reset() noexcept 24952: { _M_index = static_cast<__index_type>(variant_npos); } 24952: 24952: constexpr bool 24952: _M_valid() const noexcept 24952: { 24952: if constexpr (__variant::__never_valueless<_Types...>()) 24952: return true; 24952: 24952: 24952: 24952: 24952: 24952: 24952: return this->_M_index != static_cast<__index_type>(variant_npos); 24952: } 24952: 24952: _Variadic_union<_Types...> _M_u; 24952: using __index_type = __select_index<_Types...>; 24952: __index_type _M_index; 24952: }; 24952: 24952: 24952: template 24952: 24952: inline void 24952: __emplace(_Variant_storage<_Triv, _Types...>& __v, _Args&&... __args) 24952: { 24952: __v._M_reset(); 24952: auto* __addr = __variant::__construct_n<_Np>(__v._M_u); 24952: std::_Construct(__addr, in_place_index<0>, 24952: std::forward<_Args>(__args)...); 24952: 24952: __v._M_index = _Np; 24952: } 24952: 24952: template 24952: using _Variant_storage_alias = 24952: _Variant_storage<_Traits<_Types...>::_S_trivial_dtor, _Types...>; 24952: 24952: 24952: 24952: 24952: template 24952: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 24952: { 24952: using _Base = _Variant_storage_alias<_Types...>; 24952: using _Base::_Base; 24952: 24952: 24952: _Copy_ctor_base(const _Copy_ctor_base& __rhs) 24952: noexcept(_Traits<_Types...>::_S_nothrow_copy_ctor) 24952: { 24952: __variant::__raw_idx_visit( 24952: [this](auto&& __rhs_mem, auto __rhs_index) mutable 24952: { 24952: constexpr size_t __j = __rhs_index; 24952: if constexpr (__j != variant_npos) 24952: std::_Construct(std::__addressof(this->_M_u), 24952: in_place_index<__j>, __rhs_mem); 24952: }, __variant_cast<_Types...>(__rhs)); 24952: this->_M_index = __rhs._M_index; 24952: } 24952: 24952: _Copy_ctor_base(_Copy_ctor_base&&) = default; 24952: _Copy_ctor_base& operator=(const _Copy_ctor_base&) = default; 24952: _Copy_ctor_base& operator=(_Copy_ctor_base&&) = default; 24952: }; 24952: 24952: template 24952: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 24952: { 24952: using _Base = _Variant_storage_alias<_Types...>; 24952: using _Base::_Base; 24952: }; 24952: 24952: template 24952: using _Copy_ctor_alias = 24952: _Copy_ctor_base<_Traits<_Types...>::_S_trivial_copy_ctor, _Types...>; 24952: 24952: template 24952: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 24952: { 24952: using _Base = _Copy_ctor_alias<_Types...>; 24952: using _Base::_Base; 24952: 24952: 24952: _Move_ctor_base(_Move_ctor_base&& __rhs) 24952: noexcept(_Traits<_Types...>::_S_nothrow_move_ctor) 24952: { 24952: __variant::__raw_idx_visit( 24952: [this](auto&& __rhs_mem, auto __rhs_index) mutable 24952: { 24952: constexpr size_t __j = __rhs_index; 24952: if constexpr (__j != variant_npos) 24952: std::_Construct(std::__addressof(this->_M_u), 24952: in_place_index<__j>, 24952: std::forward(__rhs_mem)); 24952: }, __variant_cast<_Types...>(std::move(__rhs))); 24952: this->_M_index = __rhs._M_index; 24952: } 24952: 24952: _Move_ctor_base(const _Move_ctor_base&) = default; 24952: _Move_ctor_base& operator=(const _Move_ctor_base&) = default; 24952: _Move_ctor_base& operator=(_Move_ctor_base&&) = default; 24952: }; 24952: 24952: template 24952: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 24952: { 24952: using _Base = _Copy_ctor_alias<_Types...>; 24952: using _Base::_Base; 24952: }; 24952: 24952: template 24952: using _Move_ctor_alias = 24952: _Move_ctor_base<_Traits<_Types...>::_S_trivial_move_ctor, _Types...>; 24952: 24952: template 24952: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 24952: { 24952: using _Base = _Move_ctor_alias<_Types...>; 24952: using _Base::_Base; 24952: 24952: 24952: _Copy_assign_base& 24952: operator=(const _Copy_assign_base& __rhs) 24952: noexcept(_Traits<_Types...>::_S_nothrow_copy_assign) 24952: { 24952: __variant::__raw_idx_visit( 24952: [this](auto&& __rhs_mem, auto __rhs_index) mutable 24952: { 24952: constexpr size_t __j = __rhs_index; 24952: if constexpr (__j == variant_npos) 24952: this->_M_reset(); 24952: else if (this->_M_index == __j) 24952: __variant::__get<__j>(*this) = __rhs_mem; 24952: else 24952: { 24952: using _Tj = typename _Nth_type<__j, _Types...>::type; 24952: if constexpr (is_nothrow_copy_constructible_v<_Tj> 24952: || !is_nothrow_move_constructible_v<_Tj>) 24952: __variant::__emplace<__j>(*this, __rhs_mem); 24952: else 24952: { 24952: using _Variant = variant<_Types...>; 24952: _Variant& __self = __variant_cast<_Types...>(*this); 24952: __self = _Variant(in_place_index<__j>, __rhs_mem); 24952: } 24952: } 24952: }, __variant_cast<_Types...>(__rhs)); 24952: return *this; 24952: } 24952: 24952: _Copy_assign_base(const _Copy_assign_base&) = default; 24952: _Copy_assign_base(_Copy_assign_base&&) = default; 24952: _Copy_assign_base& operator=(_Copy_assign_base&&) = default; 24952: }; 24952: 24952: template 24952: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 24952: { 24952: using _Base = _Move_ctor_alias<_Types...>; 24952: using _Base::_Base; 24952: }; 24952: 24952: template 24952: using _Copy_assign_alias = 24952: _Copy_assign_base<_Traits<_Types...>::_S_trivial_copy_assign, _Types...>; 24952: 24952: template 24952: struct _Move_assign_base : _Copy_assign_alias<_Types...> 24952: { 24952: using _Base = _Copy_assign_alias<_Types...>; 24952: using _Base::_Base; 24952: 24952: 24952: _Move_assign_base& 24952: operator=(_Move_assign_base&& __rhs) 24952: noexcept(_Traits<_Types...>::_S_nothrow_move_assign) 24952: { 24952: __variant::__raw_idx_visit( 24952: [this](auto&& __rhs_mem, auto __rhs_index) mutable 24952: { 24952: constexpr size_t __j = __rhs_index; 24952: if constexpr (__j != variant_npos) 24952: { 24952: if (this->_M_index == __j) 24952: __variant::__get<__j>(*this) = std::move(__rhs_mem); 24952: else 24952: { 24952: using _Tj = typename _Nth_type<__j, _Types...>::type; 24952: if constexpr (is_nothrow_move_constructible_v<_Tj>) 24952: __variant::__emplace<__j>(*this, std::move(__rhs_mem)); 24952: else 24952: { 24952: using _Variant = variant<_Types...>; 24952: _Variant& __self = __variant_cast<_Types...>(*this); 24952: __self.template emplace<__j>(std::move(__rhs_mem)); 24952: } 24952: } 24952: } 24952: else 24952: this->_M_reset(); 24952: }, __variant_cast<_Types...>(__rhs)); 24952: return *this; 24952: } 24952: 24952: _Move_assign_base(const _Move_assign_base&) = default; 24952: _Move_assign_base(_Move_assign_base&&) = default; 24952: _Move_assign_base& operator=(const _Move_assign_base&) = default; 24952: }; 24952: 24952: template 24952: struct _Move_assign_base : _Copy_assign_alias<_Types...> 24952: { 24952: using _Base = _Copy_assign_alias<_Types...>; 24952: using _Base::_Base; 24952: }; 24952: 24952: template 24952: using _Move_assign_alias = 24952: _Move_assign_base<_Traits<_Types...>::_S_trivial_move_assign, _Types...>; 24952: 24952: template 24952: struct _Variant_base : _Move_assign_alias<_Types...> 24952: { 24952: using _Base = _Move_assign_alias<_Types...>; 24952: 24952: constexpr 24952: _Variant_base() noexcept(_Traits<_Types...>::_S_nothrow_default_ctor) 24952: : _Variant_base(in_place_index<0>) { } 24952: 24952: template 24952: constexpr explicit 24952: _Variant_base(in_place_index_t<_Np> __i, _Args&&... __args) 24952: : _Base(__i, std::forward<_Args>(__args)...) 24952: { } 24952: 24952: _Variant_base(const _Variant_base&) = default; 24952: _Variant_base(_Variant_base&&) = default; 24952: _Variant_base& operator=(const _Variant_base&) = default; 24952: _Variant_base& operator=(_Variant_base&&) = default; 24952: }; 24952: 24952: template 24952: inline constexpr bool __exactly_once 24952: = std::__find_uniq_type_in_pack<_Tp, _Types...>() < sizeof...(_Types); 24952: 24952: 24952: template struct _Arr { _Ti _M_x[1]; }; 24952: 24952: 24952: template 24952: struct _Build_FUN 24952: { 24952: 24952: 24952: void _S_fun() = delete; 24952: }; 24952: 24952: 24952: template 24952: struct _Build_FUN<_Ind, _Tp, _Ti, 24952: void_t{{std::declval<_Tp>()}})>> 24952: { 24952: 24952: static integral_constant _S_fun(_Ti); 24952: }; 24952: 24952: template>> 24952: struct _Build_FUNs; 24952: 24952: template 24952: struct _Build_FUNs<_Tp, variant<_Ti...>, index_sequence<_Ind...>> 24952: : _Build_FUN<_Ind, _Tp, _Ti>... 24952: { 24952: using _Build_FUN<_Ind, _Tp, _Ti>::_S_fun...; 24952: }; 24952: 24952: 24952: 24952: template 24952: using _FUN_type 24952: = decltype(_Build_FUNs<_Tp, _Variant>::_S_fun(std::declval<_Tp>())); 24952: 24952: 24952: template 24952: inline constexpr size_t 24952: __accepted_index = variant_npos; 24952: 24952: template 24952: inline constexpr size_t 24952: __accepted_index<_Tp, _Variant, void_t<_FUN_type<_Tp, _Variant>>> 24952: = _FUN_type<_Tp, _Variant>::value; 24952: 24952: template> 24952: inline constexpr bool 24952: __extra_visit_slot_needed = false; 24952: 24952: template 24952: inline constexpr bool 24952: __extra_visit_slot_needed<__variant_cookie, _Var, variant<_Types...>> 24952: = !__variant::__never_valueless<_Types...>(); 24952: 24952: template 24952: inline constexpr bool 24952: __extra_visit_slot_needed<__variant_idx_cookie, _Var, variant<_Types...>> 24952: = !__variant::__never_valueless<_Types...>(); 24952: 24952: 24952: template 24952: struct _Multi_array; 24952: 24952: 24952: template 24952: struct _Multi_array<_Tp> 24952: { 24952: template 24952: struct __untag_result 24952: : false_type 24952: { using element_type = _Tp; }; 24952: 24952: #pragma GCC diagnostic push 24952: #pragma GCC diagnostic ignored "-Wignored-qualifiers" 24952: template 24952: struct __untag_result 24952: : false_type 24952: { using element_type = void(*)(_Args...); }; 24952: #pragma GCC diagnostic pop 24952: 24952: template 24952: struct __untag_result<__variant_cookie(*)(_Args...)> 24952: : false_type 24952: { using element_type = void(*)(_Args...); }; 24952: 24952: template 24952: struct __untag_result<__variant_idx_cookie(*)(_Args...)> 24952: : false_type 24952: { using element_type = void(*)(_Args...); }; 24952: 24952: template 24952: struct __untag_result<__deduce_visit_result<_Res>(*)(_Args...)> 24952: : true_type 24952: { using element_type = _Res(*)(_Args...); }; 24952: 24952: using __result_is_deduced = __untag_result<_Tp>; 24952: 24952: constexpr const typename __untag_result<_Tp>::element_type& 24952: _M_access() const 24952: { return _M_data; } 24952: 24952: typename __untag_result<_Tp>::element_type _M_data; 24952: }; 24952: 24952: 24952: template 24952: struct _Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...> 24952: { 24952: static constexpr size_t __index = 24952: sizeof...(_Variants) - sizeof...(__rest) - 1; 24952: 24952: using _Variant = typename _Nth_type<__index, _Variants...>::type; 24952: 24952: static constexpr int __do_cookie = 24952: __extra_visit_slot_needed<_Ret, _Variant> ? 1 : 0; 24952: 24952: using _Tp = _Ret(*)(_Visitor, _Variants...); 24952: 24952: template 24952: constexpr decltype(auto) 24952: _M_access(size_t __first_index, _Args... __rest_indices) const 24952: { 24952: return _M_arr[__first_index + __do_cookie] 24952: ._M_access(__rest_indices...); 24952: } 24952: 24952: _Multi_array<_Tp, __rest...> _M_arr[__first + __do_cookie]; 24952: }; 24952: # 949 "/usr/include/c++/13/variant" 3 24952: template 24952: struct __gen_vtable_impl; 24952: # 959 "/usr/include/c++/13/variant" 3 24952: template 24952: struct __gen_vtable_impl< 24952: _Multi_array<_Result_type (*)(_Visitor, _Variants...), __dimensions...>, 24952: std::index_sequence<__indices...>> 24952: { 24952: using _Next = 24952: remove_reference_t::type>; 24952: using _Array_type = 24952: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 24952: __dimensions...>; 24952: 24952: static constexpr _Array_type 24952: _S_apply() 24952: { 24952: _Array_type __vtable{}; 24952: _S_apply_all_alts( 24952: __vtable, make_index_sequence>()); 24952: return __vtable; 24952: } 24952: 24952: template 24952: static constexpr void 24952: _S_apply_all_alts(_Array_type& __vtable, 24952: std::index_sequence<__var_indices...>) 24952: { 24952: if constexpr (__extra_visit_slot_needed<_Result_type, _Next>) 24952: (_S_apply_single_alt( 24952: __vtable._M_arr[__var_indices + 1], 24952: &(__vtable._M_arr[0])), ...); 24952: else 24952: (_S_apply_single_alt( 24952: __vtable._M_arr[__var_indices]), ...); 24952: } 24952: 24952: template 24952: static constexpr void 24952: _S_apply_single_alt(_Tp& __element, _Tp* __cookie_element = nullptr) 24952: { 24952: if constexpr (__do_cookie) 24952: { 24952: __element = __gen_vtable_impl< 24952: _Tp, 24952: std::index_sequence<__indices..., __index>>::_S_apply(); 24952: *__cookie_element = __gen_vtable_impl< 24952: _Tp, 24952: std::index_sequence<__indices..., variant_npos>>::_S_apply(); 24952: } 24952: else 24952: { 24952: auto __tmp_element = __gen_vtable_impl< 24952: remove_reference_t, 24952: std::index_sequence<__indices..., __index>>::_S_apply(); 24952: static_assert(is_same_v<_Tp, decltype(__tmp_element)>, 24952: "std::visit requires the visitor to have the same " 24952: "return type for all alternatives of a variant"); 24952: __element = __tmp_element; 24952: } 24952: } 24952: }; 24952: 24952: 24952: 24952: 24952: template 24952: struct __gen_vtable_impl< 24952: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>, 24952: std::index_sequence<__indices...>> 24952: { 24952: using _Array_type = 24952: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>; 24952: 24952: template 24952: static constexpr decltype(auto) 24952: __element_by_index_or_cookie(_Variant&& __var) noexcept 24952: { 24952: if constexpr (__index != variant_npos) 24952: return __variant::__get<__index>(std::forward<_Variant>(__var)); 24952: else 24952: return __variant_cookie{}; 24952: } 24952: 24952: static constexpr decltype(auto) 24952: __visit_invoke(_Visitor&& __visitor, _Variants... __vars) 24952: { 24952: if constexpr (is_same_v<_Result_type, __variant_idx_cookie>) 24952: 24952: 24952: std::__invoke(std::forward<_Visitor>(__visitor), 24952: __element_by_index_or_cookie<__indices>( 24952: std::forward<_Variants>(__vars))..., 24952: integral_constant()...); 24952: else if constexpr (is_same_v<_Result_type, __variant_cookie>) 24952: 24952: std::__invoke(std::forward<_Visitor>(__visitor), 24952: __element_by_index_or_cookie<__indices>( 24952: std::forward<_Variants>(__vars))...); 24952: else if constexpr (_Array_type::__result_is_deduced::value) 24952: 24952: return std::__invoke(std::forward<_Visitor>(__visitor), 24952: __element_by_index_or_cookie<__indices>( 24952: std::forward<_Variants>(__vars))...); 24952: else 24952: return std::__invoke_r<_Result_type>( 24952: std::forward<_Visitor>(__visitor), 24952: __variant::__get<__indices>(std::forward<_Variants>(__vars))...); 24952: } 24952: 24952: static constexpr auto 24952: _S_apply() 24952: { 24952: if constexpr (_Array_type::__result_is_deduced::value) 24952: { 24952: constexpr bool __visit_ret_type_mismatch = 24952: !is_same_v(), 24952: std::declval<_Variants>()...))>; 24952: if constexpr (__visit_ret_type_mismatch) 24952: { 24952: struct __cannot_match {}; 24952: return __cannot_match{}; 24952: } 24952: else 24952: return _Array_type{&__visit_invoke}; 24952: } 24952: else 24952: return _Array_type{&__visit_invoke}; 24952: } 24952: }; 24952: 24952: template 24952: struct __gen_vtable 24952: { 24952: using _Array_type = 24952: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 24952: variant_size_v>...>; 24952: 24952: static constexpr _Array_type _S_vtable 24952: = __gen_vtable_impl<_Array_type, std::index_sequence<>>::_S_apply(); 24952: }; 24952: 24952: template 24952: struct _Base_dedup : public _Tp { }; 24952: 24952: template 24952: struct _Variant_hash_base; 24952: 24952: template 24952: struct _Variant_hash_base, 24952: std::index_sequence<__indices...>> 24952: : _Base_dedup<__indices, __poison_hash>>... { }; 24952: 24952: 24952: template())), 24952: typename _Tp = variant_alternative_t<_Np, remove_reference_t<_AsV>>> 24952: using __get_t 24952: = __conditional_t, _Tp&, _Tp&&>; 24952: 24952: 24952: template 24952: using __visit_result_t 24952: = invoke_result_t<_Visitor, __get_t<0, _Variants>...>; 24952: 24952: template 24952: constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...); 24952: 24952: template 24952: constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>) 24952: { 24952: return __same_types< 24952: invoke_result_t<_Visitor, __get_t<_Idxs, _Variant>>... 24952: >; 24952: } 24952: 24952: } 24952: } 24952: 24952: template 24952: constexpr bool 24952: holds_alternative(const variant<_Types...>& __v) noexcept 24952: { 24952: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 24952: "T must occur exactly once in alternatives"); 24952: return __v.index() == std::__find_uniq_type_in_pack<_Tp, _Types...>(); 24952: } 24952: 24952: template 24952: constexpr _Tp& 24952: get(variant<_Types...>& __v) 24952: { 24952: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 24952: "T must occur exactly once in alternatives"); 24952: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 24952: return std::get<__n>(__v); 24952: } 24952: 24952: template 24952: constexpr _Tp&& 24952: get(variant<_Types...>&& __v) 24952: { 24952: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 24952: "T must occur exactly once in alternatives"); 24952: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 24952: return std::get<__n>(std::move(__v)); 24952: } 24952: 24952: template 24952: constexpr const _Tp& 24952: get(const variant<_Types...>& __v) 24952: { 24952: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 24952: "T must occur exactly once in alternatives"); 24952: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 24952: return std::get<__n>(__v); 24952: } 24952: 24952: template 24952: constexpr const _Tp&& 24952: get(const variant<_Types...>&& __v) 24952: { 24952: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 24952: "T must occur exactly once in alternatives"); 24952: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 24952: return std::get<__n>(std::move(__v)); 24952: } 24952: 24952: template 24952: constexpr add_pointer_t>> 24952: get_if(variant<_Types...>* __ptr) noexcept 24952: { 24952: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 24952: static_assert(_Np < sizeof...(_Types), 24952: "The index must be in [0, number of alternatives)"); 24952: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 24952: if (__ptr && __ptr->index() == _Np) 24952: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 24952: return nullptr; 24952: } 24952: 24952: template 24952: constexpr 24952: add_pointer_t>> 24952: get_if(const variant<_Types...>* __ptr) noexcept 24952: { 24952: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 24952: static_assert(_Np < sizeof...(_Types), 24952: "The index must be in [0, number of alternatives)"); 24952: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 24952: if (__ptr && __ptr->index() == _Np) 24952: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 24952: return nullptr; 24952: } 24952: 24952: template 24952: constexpr add_pointer_t<_Tp> 24952: get_if(variant<_Types...>* __ptr) noexcept 24952: { 24952: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 24952: "T must occur exactly once in alternatives"); 24952: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 24952: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 24952: return std::get_if<__n>(__ptr); 24952: } 24952: 24952: template 24952: constexpr add_pointer_t 24952: get_if(const variant<_Types...>* __ptr) noexcept 24952: { 24952: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 24952: "T must occur exactly once in alternatives"); 24952: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 24952: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 24952: return std::get_if<__n>(__ptr); 24952: } 24952: 24952: struct monostate { }; 24952: # 1264 "/usr/include/c++/13/variant" 3 24952: template constexpr bool operator <(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem < __rhs_mem; } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); }, __rhs); return __ret; } 24952: template constexpr bool operator <=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem <= __rhs_mem; } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); }, __rhs); return __ret; } 24952: template constexpr bool operator ==(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem == __rhs_mem; } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); }, __rhs); return __ret; } 24952: template constexpr bool operator !=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem != __rhs_mem; } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); }, __rhs); return __ret; } 24952: template constexpr bool operator >=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem >= __rhs_mem; } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); }, __rhs); return __ret; } 24952: template constexpr bool operator >(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem > __rhs_mem; } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); }, __rhs); return __ret; } 24952: 24952: 24952: 24952: constexpr bool operator==(monostate, monostate) noexcept { return true; } 24952: # 1305 "/usr/include/c++/13/variant" 3 24952: constexpr bool operator!=(monostate, monostate) noexcept { return false; } 24952: constexpr bool operator<(monostate, monostate) noexcept { return false; } 24952: constexpr bool operator>(monostate, monostate) noexcept { return false; } 24952: constexpr bool operator<=(monostate, monostate) noexcept { return true; } 24952: constexpr bool operator>=(monostate, monostate) noexcept { return true; } 24952: 24952: 24952: template 24952: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 24952: visit(_Visitor&&, _Variants&&...); 24952: 24952: template 24952: 24952: inline enable_if_t<(is_move_constructible_v<_Types> && ...) 24952: && (is_swappable_v<_Types> && ...)> 24952: swap(variant<_Types...>& __lhs, variant<_Types...>& __rhs) 24952: noexcept(noexcept(__lhs.swap(__rhs))) 24952: { __lhs.swap(__rhs); } 24952: 24952: template 24952: enable_if_t && ...) 24952: && (is_swappable_v<_Types> && ...))> 24952: swap(variant<_Types...>&, variant<_Types...>&) = delete; 24952: 24952: class bad_variant_access : public exception 24952: { 24952: public: 24952: bad_variant_access() noexcept { } 24952: 24952: const char* what() const noexcept override 24952: { return _M_reason; } 24952: 24952: private: 24952: bad_variant_access(const char* __reason) noexcept : _M_reason(__reason) { } 24952: 24952: 24952: const char* _M_reason = "bad variant access"; 24952: 24952: friend void __throw_bad_variant_access(const char* __what); 24952: }; 24952: 24952: 24952: inline void 24952: __throw_bad_variant_access(const char* __what) 24952: { (throw (bad_variant_access(__what))); } 24952: 24952: inline void 24952: __throw_bad_variant_access(bool __valueless) 24952: { 24952: if (__valueless) [[__unlikely__]] 24952: __throw_bad_variant_access("std::get: variant is valueless"); 24952: else 24952: __throw_bad_variant_access("std::get: wrong index for variant"); 24952: } 24952: 24952: template 24952: class variant 24952: : private __detail::__variant::_Variant_base<_Types...>, 24952: private _Enable_default_constructor< 24952: __detail::__variant::_Traits<_Types...>::_S_default_ctor, 24952: variant<_Types...>>, 24952: private _Enable_copy_move< 24952: __detail::__variant::_Traits<_Types...>::_S_copy_ctor, 24952: __detail::__variant::_Traits<_Types...>::_S_copy_assign, 24952: __detail::__variant::_Traits<_Types...>::_S_move_ctor, 24952: __detail::__variant::_Traits<_Types...>::_S_move_assign, 24952: variant<_Types...>> 24952: { 24952: private: 24952: template 24952: friend decltype(auto) 24952: __variant_cast(_Tp&&); 24952: 24952: static_assert(sizeof...(_Types) > 0, 24952: "variant must have at least one alternative"); 24952: static_assert(!(std::is_reference_v<_Types> || ...), 24952: "variant must have no reference alternative"); 24952: static_assert(!(std::is_void_v<_Types> || ...), 24952: "variant must have no void alternative"); 24952: 24952: using _Base = __detail::__variant::_Variant_base<_Types...>; 24952: using _Default_ctor_enabler = 24952: _Enable_default_constructor< 24952: __detail::__variant::_Traits<_Types...>::_S_default_ctor, 24952: variant<_Types...>>; 24952: 24952: template 24952: static constexpr bool __not_self 24952: = !is_same_v<__remove_cvref_t<_Tp>, variant>; 24952: 24952: template 24952: static constexpr bool 24952: __exactly_once = __detail::__variant::__exactly_once<_Tp, _Types...>; 24952: 24952: template 24952: static constexpr size_t __accepted_index 24952: = __detail::__variant::__accepted_index<_Tp, variant>; 24952: 24952: template> 24952: using __to_type = typename _Nth_type<_Np, _Types...>::type; 24952: 24952: template>> 24952: using __accepted_type = __to_type<__accepted_index<_Tp>>; 24952: 24952: template 24952: static constexpr size_t __index_of 24952: = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 24952: 24952: using _Traits = __detail::__variant::_Traits<_Types...>; 24952: 24952: template 24952: struct __is_in_place_tag : false_type { }; 24952: template 24952: struct __is_in_place_tag> : true_type { }; 24952: template 24952: struct __is_in_place_tag> : true_type { }; 24952: 24952: template 24952: static constexpr bool __not_in_place_tag 24952: = !__is_in_place_tag<__remove_cvref_t<_Tp>>::value; 24952: 24952: public: 24952: variant() = default; 24952: variant(const variant& __rhs) = default; 24952: variant(variant&&) = default; 24952: variant& operator=(const variant&) = default; 24952: variant& operator=(variant&&) = default; 24952: ~variant() = default; 24952: 24952: template, 24952: typename = enable_if_t<__not_in_place_tag<_Tp>>, 24952: typename _Tj = __accepted_type<_Tp&&>, 24952: typename = enable_if_t<__exactly_once<_Tj> 24952: && is_constructible_v<_Tj, _Tp>>> 24952: constexpr 24952: variant(_Tp&& __t) 24952: noexcept(is_nothrow_constructible_v<_Tj, _Tp>) 24952: : variant(in_place_index<__accepted_index<_Tp>>, 24952: std::forward<_Tp>(__t)) 24952: { } 24952: 24952: template 24952: && is_constructible_v<_Tp, _Args...>>> 24952: constexpr explicit 24952: variant(in_place_type_t<_Tp>, _Args&&... __args) 24952: : variant(in_place_index<__index_of<_Tp>>, 24952: std::forward<_Args>(__args)...) 24952: { } 24952: 24952: template 24952: && is_constructible_v<_Tp, 24952: initializer_list<_Up>&, _Args...>>> 24952: constexpr explicit 24952: variant(in_place_type_t<_Tp>, initializer_list<_Up> __il, 24952: _Args&&... __args) 24952: : variant(in_place_index<__index_of<_Tp>>, __il, 24952: std::forward<_Args>(__args)...) 24952: { } 24952: 24952: template, 24952: typename = enable_if_t>> 24952: constexpr explicit 24952: variant(in_place_index_t<_Np>, _Args&&... __args) 24952: : _Base(in_place_index<_Np>, std::forward<_Args>(__args)...), 24952: _Default_ctor_enabler(_Enable_default_constructor_tag{}) 24952: { } 24952: 24952: template, 24952: typename = enable_if_t&, 24952: _Args...>>> 24952: constexpr explicit 24952: variant(in_place_index_t<_Np>, initializer_list<_Up> __il, 24952: _Args&&... __args) 24952: : _Base(in_place_index<_Np>, __il, std::forward<_Args>(__args)...), 24952: _Default_ctor_enabler(_Enable_default_constructor_tag{}) 24952: { } 24952: 24952: template 24952: 24952: enable_if_t<__exactly_once<__accepted_type<_Tp&&>> 24952: && is_constructible_v<__accepted_type<_Tp&&>, _Tp> 24952: && is_assignable_v<__accepted_type<_Tp&&>&, _Tp>, 24952: variant&> 24952: operator=(_Tp&& __rhs) 24952: noexcept(is_nothrow_assignable_v<__accepted_type<_Tp&&>&, _Tp> 24952: && is_nothrow_constructible_v<__accepted_type<_Tp&&>, _Tp>) 24952: { 24952: constexpr auto __index = __accepted_index<_Tp>; 24952: if (index() == __index) 24952: std::get<__index>(*this) = std::forward<_Tp>(__rhs); 24952: else 24952: { 24952: using _Tj = __accepted_type<_Tp&&>; 24952: if constexpr (is_nothrow_constructible_v<_Tj, _Tp> 24952: || !is_nothrow_move_constructible_v<_Tj>) 24952: this->emplace<__index>(std::forward<_Tp>(__rhs)); 24952: else 24952: 24952: 24952: this->emplace<__index>(_Tj(std::forward<_Tp>(__rhs))); 24952: } 24952: return *this; 24952: } 24952: 24952: template 24952: 24952: enable_if_t && __exactly_once<_Tp>, 24952: _Tp&> 24952: emplace(_Args&&... __args) 24952: { 24952: constexpr size_t __index = __index_of<_Tp>; 24952: return this->emplace<__index>(std::forward<_Args>(__args)...); 24952: } 24952: 24952: template 24952: 24952: enable_if_t&, _Args...> 24952: && __exactly_once<_Tp>, 24952: _Tp&> 24952: emplace(initializer_list<_Up> __il, _Args&&... __args) 24952: { 24952: constexpr size_t __index = __index_of<_Tp>; 24952: return this->emplace<__index>(__il, std::forward<_Args>(__args)...); 24952: } 24952: 24952: template 24952: 24952: enable_if_t, _Args...>, 24952: __to_type<_Np>&> 24952: emplace(_Args&&... __args) 24952: { 24952: namespace __variant = std::__detail::__variant; 24952: using type = typename _Nth_type<_Np, _Types...>::type; 24952: 24952: 24952: if constexpr (is_nothrow_constructible_v) 24952: { 24952: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 24952: } 24952: else if constexpr (is_scalar_v) 24952: { 24952: 24952: const type __tmp(std::forward<_Args>(__args)...); 24952: 24952: __variant::__emplace<_Np>(*this, __tmp); 24952: } 24952: else if constexpr (__variant::_Never_valueless_alt() 24952: && _Traits::_S_move_assign) 24952: { 24952: 24952: variant __tmp(in_place_index<_Np>, 24952: std::forward<_Args>(__args)...); 24952: 24952: *this = std::move(__tmp); 24952: } 24952: else 24952: { 24952: 24952: 24952: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 24952: } 24952: return std::get<_Np>(*this); 24952: } 24952: 24952: template 24952: 24952: enable_if_t, 24952: initializer_list<_Up>&, _Args...>, 24952: __to_type<_Np>&> 24952: emplace(initializer_list<_Up> __il, _Args&&... __args) 24952: { 24952: namespace __variant = std::__detail::__variant; 24952: using type = typename _Nth_type<_Np, _Types...>::type; 24952: 24952: 24952: if constexpr (is_nothrow_constructible_v&, 24952: _Args...>) 24952: { 24952: __variant::__emplace<_Np>(*this, __il, 24952: std::forward<_Args>(__args)...); 24952: } 24952: else if constexpr (__variant::_Never_valueless_alt() 24952: && _Traits::_S_move_assign) 24952: { 24952: 24952: variant __tmp(in_place_index<_Np>, __il, 24952: std::forward<_Args>(__args)...); 24952: 24952: *this = std::move(__tmp); 24952: } 24952: else 24952: { 24952: 24952: 24952: __variant::__emplace<_Np>(*this, __il, 24952: std::forward<_Args>(__args)...); 24952: } 24952: return std::get<_Np>(*this); 24952: } 24952: 24952: template 24952: enable_if_t emplace(_Args&&...) = delete; 24952: 24952: template 24952: enable_if_t> emplace(_Args&&...) = delete; 24952: 24952: constexpr bool valueless_by_exception() const noexcept 24952: { return !this->_M_valid(); } 24952: 24952: constexpr size_t index() const noexcept 24952: { 24952: using __index_type = typename _Base::__index_type; 24952: if constexpr (__detail::__variant::__never_valueless<_Types...>()) 24952: return this->_M_index; 24952: else if constexpr (sizeof...(_Types) <= __index_type(-1) / 2) 24952: return make_signed_t<__index_type>(this->_M_index); 24952: else 24952: return size_t(__index_type(this->_M_index + 1)) - 1; 24952: } 24952: 24952: 24952: void 24952: swap(variant& __rhs) 24952: noexcept((__is_nothrow_swappable<_Types>::value && ...) 24952: && is_nothrow_move_constructible_v) 24952: { 24952: static_assert((is_move_constructible_v<_Types> && ...)); 24952: 24952: 24952: if (__rhs.valueless_by_exception()) [[__unlikely__]] 24952: { 24952: if (!this->valueless_by_exception()) [[__likely__]] 24952: __rhs.swap(*this); 24952: return; 24952: } 24952: 24952: namespace __variant = __detail::__variant; 24952: 24952: __variant::__raw_idx_visit( 24952: [this, &__rhs](auto&& __rhs_mem, auto __rhs_index) mutable 24952: { 24952: constexpr size_t __j = __rhs_index; 24952: if constexpr (__j != variant_npos) 24952: { 24952: if (this->index() == __j) 24952: { 24952: using std::swap; 24952: swap(std::get<__j>(*this), __rhs_mem); 24952: } 24952: else 24952: { 24952: auto __tmp(std::move(__rhs_mem)); 24952: 24952: if constexpr (_Traits::_S_trivial_move_assign) 24952: __rhs = std::move(*this); 24952: else 24952: __variant::__raw_idx_visit( 24952: [&__rhs](auto&& __this_mem, auto __this_index) mutable 24952: { 24952: constexpr size_t __k = __this_index; 24952: if constexpr (__k != variant_npos) 24952: __variant::__emplace<__k>(__rhs, 24952: std::move(__this_mem)); 24952: }, *this); 24952: 24952: __variant::__emplace<__j>(*this, std::move(__tmp)); 24952: } 24952: } 24952: }, __rhs); 24952: } 24952: 24952: 24952: 24952: 24952: 24952: 24952: private: 24952: template 24952: friend constexpr decltype(auto) 24952: __detail::__variant::__get(_Vp&& __v) noexcept; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: template friend constexpr bool operator <(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 24952: template friend constexpr bool operator <=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 24952: template friend constexpr bool operator ==(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 24952: template friend constexpr bool operator !=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 24952: template friend constexpr bool operator >=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 24952: template friend constexpr bool operator >(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 24952: 24952: 24952: }; 24952: 24952: template 24952: constexpr variant_alternative_t<_Np, variant<_Types...>>& 24952: get(variant<_Types...>& __v) 24952: { 24952: static_assert(_Np < sizeof...(_Types), 24952: "The index must be in [0, number of alternatives)"); 24952: if (__v.index() != _Np) 24952: __throw_bad_variant_access(__v.valueless_by_exception()); 24952: return __detail::__variant::__get<_Np>(__v); 24952: } 24952: 24952: template 24952: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 24952: get(variant<_Types...>&& __v) 24952: { 24952: static_assert(_Np < sizeof...(_Types), 24952: "The index must be in [0, number of alternatives)"); 24952: if (__v.index() != _Np) 24952: __throw_bad_variant_access(__v.valueless_by_exception()); 24952: return __detail::__variant::__get<_Np>(std::move(__v)); 24952: } 24952: 24952: template 24952: constexpr const variant_alternative_t<_Np, variant<_Types...>>& 24952: get(const variant<_Types...>& __v) 24952: { 24952: static_assert(_Np < sizeof...(_Types), 24952: "The index must be in [0, number of alternatives)"); 24952: if (__v.index() != _Np) 24952: __throw_bad_variant_access(__v.valueless_by_exception()); 24952: return __detail::__variant::__get<_Np>(__v); 24952: } 24952: 24952: template 24952: constexpr const variant_alternative_t<_Np, variant<_Types...>>&& 24952: get(const variant<_Types...>&& __v) 24952: { 24952: static_assert(_Np < sizeof...(_Types), 24952: "The index must be in [0, number of alternatives)"); 24952: if (__v.index() != _Np) 24952: __throw_bad_variant_access(__v.valueless_by_exception()); 24952: return __detail::__variant::__get<_Np>(std::move(__v)); 24952: } 24952: 24952: 24952: template 24952: constexpr decltype(auto) 24952: __do_visit(_Visitor&& __visitor, _Variants&&... __variants) 24952: { 24952: 24952: if constexpr (sizeof...(_Variants) == 0) 24952: { 24952: if constexpr (is_void_v<_Result_type>) 24952: return (void) std::forward<_Visitor>(__visitor)(); 24952: else 24952: return std::forward<_Visitor>(__visitor)(); 24952: } 24952: else 24952: { 24952: constexpr size_t __max = 11; 24952: 24952: 24952: using _V0 = typename _Nth_type<0, _Variants...>::type; 24952: 24952: constexpr auto __n = variant_size_v>; 24952: 24952: if constexpr (sizeof...(_Variants) > 1 || __n > __max) 24952: { 24952: 24952: constexpr auto& __vtable = __detail::__variant::__gen_vtable< 24952: _Result_type, _Visitor&&, _Variants&&...>::_S_vtable; 24952: 24952: auto __func_ptr = __vtable._M_access(__variants.index()...); 24952: return (*__func_ptr)(std::forward<_Visitor>(__visitor), 24952: std::forward<_Variants>(__variants)...); 24952: } 24952: else 24952: { 24952: 24952: _V0& __v0 24952: = [](_V0& __v, ...) -> _V0& { return __v; }(__variants...); 24952: 24952: using __detail::__variant::_Multi_array; 24952: using __detail::__variant::__gen_vtable_impl; 24952: using _Ma = _Multi_array<_Result_type (*)(_Visitor&&, _V0&&)>; 24952: # 1813 "/usr/include/c++/13/variant" 3 24952: switch (__v0.index()) 24952: { 24952: case 0: { if constexpr (0 < __n) { return __gen_vtable_impl<_Ma, index_sequence<0>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 24952: case 1: { if constexpr (1 < __n) { return __gen_vtable_impl<_Ma, index_sequence<1>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 24952: case 2: { if constexpr (2 < __n) { return __gen_vtable_impl<_Ma, index_sequence<2>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 24952: case 3: { if constexpr (3 < __n) { return __gen_vtable_impl<_Ma, index_sequence<3>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 24952: case 4: { if constexpr (4 < __n) { return __gen_vtable_impl<_Ma, index_sequence<4>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 24952: case 5: { if constexpr (5 < __n) { return __gen_vtable_impl<_Ma, index_sequence<5>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 24952: case 6: { if constexpr (6 < __n) { return __gen_vtable_impl<_Ma, index_sequence<6>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 24952: case 7: { if constexpr (7 < __n) { return __gen_vtable_impl<_Ma, index_sequence<7>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 24952: case 8: { if constexpr (8 < __n) { return __gen_vtable_impl<_Ma, index_sequence<8>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 24952: case 9: { if constexpr (9 < __n) { return __gen_vtable_impl<_Ma, index_sequence<9>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 24952: case 10: { if constexpr (10 < __n) { return __gen_vtable_impl<_Ma, index_sequence<10>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 24952: case variant_npos: 24952: using __detail::__variant::__variant_idx_cookie; 24952: using __detail::__variant::__variant_cookie; 24952: if constexpr (is_same_v<_Result_type, __variant_idx_cookie> 24952: || is_same_v<_Result_type, __variant_cookie>) 24952: { 24952: using _Npos = index_sequence; 24952: return __gen_vtable_impl<_Ma, _Npos>:: 24952: __visit_invoke(std::forward<_Visitor>(__visitor), 24952: std::forward<_V0>(__v0)); 24952: } 24952: else 24952: __builtin_unreachable(); 24952: default: 24952: __builtin_unreachable(); 24952: } 24952: 24952: 24952: } 24952: } 24952: } 24952: 24952: 24952: template 24952: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 24952: visit(_Visitor&& __visitor, _Variants&&... __variants) 24952: { 24952: namespace __variant = std::__detail::__variant; 24952: 24952: if ((__variant::__as(__variants).valueless_by_exception() || ...)) 24952: __throw_bad_variant_access("std::visit: variant is valueless"); 24952: 24952: using _Result_type 24952: = __detail::__variant::__visit_result_t<_Visitor, _Variants...>; 24952: 24952: using _Tag = __detail::__variant::__deduce_visit_result<_Result_type>; 24952: 24952: if constexpr (sizeof...(_Variants) == 1) 24952: { 24952: using _Vp = decltype(__variant::__as(std::declval<_Variants>()...)); 24952: 24952: constexpr bool __visit_rettypes_match = __detail::__variant:: 24952: __check_visitor_results<_Visitor, _Vp>( 24952: make_index_sequence>>()); 24952: if constexpr (!__visit_rettypes_match) 24952: { 24952: static_assert(__visit_rettypes_match, 24952: "std::visit requires the visitor to have the same " 24952: "return type for all alternatives of a variant"); 24952: return; 24952: } 24952: else 24952: return std::__do_visit<_Tag>( 24952: std::forward<_Visitor>(__visitor), 24952: static_cast<_Vp>(__variants)...); 24952: } 24952: else 24952: return std::__do_visit<_Tag>( 24952: std::forward<_Visitor>(__visitor), 24952: __variant::__as(std::forward<_Variants>(__variants))...); 24952: } 24952: # 1904 "/usr/include/c++/13/variant" 3 24952: template 24952: struct __variant_hash_call_base_impl 24952: { 24952: size_t 24952: operator()(const variant<_Types...>& __t) const 24952: noexcept((is_nothrow_invocable_v>, _Types> && ...)) 24952: { 24952: size_t __ret; 24952: __detail::__variant::__raw_visit( 24952: [&__t, &__ret](auto&& __t_mem) mutable 24952: { 24952: using _Type = __remove_cvref_t; 24952: if constexpr (!is_same_v<_Type, 24952: __detail::__variant::__variant_cookie>) 24952: __ret = std::hash{}(__t.index()) 24952: + std::hash<_Type>{}(__t_mem); 24952: else 24952: __ret = std::hash{}(__t.index()); 24952: }, __t); 24952: return __ret; 24952: } 24952: }; 24952: 24952: template 24952: struct __variant_hash_call_base_impl {}; 24952: 24952: template 24952: using __variant_hash_call_base = 24952: __variant_hash_call_base_impl<(__poison_hash>:: 24952: __enable_hash_call &&...), _Types...>; 24952: 24952: 24952: template 24952: struct hash> 24952: : private __detail::__variant::_Variant_hash_base< 24952: variant<_Types...>, std::index_sequence_for<_Types...>>, 24952: public __variant_hash_call_base<_Types...> 24952: { 24952: using result_type [[__deprecated__]] = size_t; 24952: using argument_type [[__deprecated__]] = variant<_Types...>; 24952: }; 24952: 24952: template<> 24952: struct hash 24952: { 24952: using result_type [[__deprecated__]] = size_t; 24952: using argument_type [[__deprecated__]] = monostate; 24952: 24952: size_t 24952: operator()(const monostate&) const noexcept 24952: { 24952: constexpr size_t __magic_monostate_hash = -7777; 24952: return __magic_monostate_hash; 24952: } 24952: }; 24952: 24952: template 24952: struct __is_fast_hash>> 24952: : bool_constant<(__is_fast_hash<_Types>::value && ...)> 24952: { }; 24952: 24952: 24952: } 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 2 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 19 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 24952: namespace rocksdb { 24952: 24952: class Slice; 24952: class Logger; 24952: # 53 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 24952: class MergeOperator : public Customizable { 24952: public: 24952: virtual ~MergeOperator() {} 24952: static const char* Type() { return "MergeOperator"; } 24952: static Status CreateFromString(const ConfigOptions& opts, 24952: const std::string& id, 24952: std::shared_ptr* result); 24952: # 79 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 24952: virtual bool FullMerge(const Slice& , const Slice* , 24952: const std::deque& , 24952: std::string* , Logger* ) const { 24952: 24952: 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 3 4 24952: (static_cast ( 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 24952: false 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 24952: "false" 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 3 4 24952: , "./include/rocksdb/merge_operator.h", 83, __extension__ __PRETTY_FUNCTION__)) 24952: # 83 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 24952: ; 24952: return false; 24952: } 24952: 24952: struct MergeOperationInput { 24952: 24952: explicit MergeOperationInput(const Slice& _key, 24952: const Slice* _existing_value, 24952: const std::vector& _operand_list, 24952: Logger* _logger) 24952: : key(_key), 24952: existing_value(_existing_value), 24952: operand_list(_operand_list), 24952: logger(_logger) {} 24952: 24952: 24952: const Slice& key; 24952: 24952: 24952: const Slice* existing_value; 24952: 24952: const std::vector& operand_list; 24952: 24952: 24952: Logger* logger; 24952: }; 24952: 24952: enum class OpFailureScope { 24952: kDefault, 24952: kTryMerge, 24952: kMustMerge, 24952: kOpFailureScopeMax, 24952: }; 24952: 24952: struct MergeOperationOutput { 24952: explicit MergeOperationOutput(std::string& _new_value, 24952: Slice& _existing_operand) 24952: : new_value(_new_value), existing_operand(_existing_operand) {} 24952: 24952: 24952: std::string& new_value; 24952: 24952: 24952: 24952: Slice& existing_operand; 24952: # 141 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 24952: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 24952: }; 24952: # 161 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 24952: virtual bool FullMergeV2(const MergeOperationInput& merge_in, 24952: MergeOperationOutput* merge_out) const; 24952: 24952: struct MergeOperationInputV3 { 24952: using ExistingValue = std::variant; 24952: using OperandList = std::vector; 24952: 24952: explicit MergeOperationInputV3(const Slice& _key, 24952: ExistingValue&& _existing_value, 24952: const OperandList& _operand_list, 24952: Logger* _logger) 24952: : key(_key), 24952: existing_value(std::move(_existing_value)), 24952: operand_list(_operand_list), 24952: logger(_logger) {} 24952: 24952: 24952: const Slice& key; 24952: 24952: 24952: 24952: ExistingValue existing_value; 24952: 24952: const OperandList& operand_list; 24952: 24952: Logger* logger; 24952: }; 24952: 24952: struct MergeOperationOutputV3 { 24952: using NewColumns = std::vector>; 24952: using NewValue = std::variant; 24952: 24952: 24952: 24952: 24952: NewValue new_value; 24952: 24952: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 24952: }; 24952: # 209 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 24952: virtual bool FullMergeV3(const MergeOperationInputV3& merge_in, 24952: MergeOperationOutputV3* merge_out) const; 24952: # 243 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 24952: virtual bool PartialMerge(const Slice& , const Slice& , 24952: const Slice& , 24952: std::string* , 24952: Logger* ) const { 24952: return false; 24952: } 24952: # 271 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 24952: virtual bool PartialMergeMulti(const Slice& key, 24952: const std::deque& operand_list, 24952: std::string* new_value, Logger* logger) const; 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual const char* Name() const override = 0; 24952: 24952: 24952: 24952: 24952: 24952: 24952: virtual bool AllowSingleOperand() const { return false; } 24952: # 300 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 24952: virtual bool ShouldMerge(const std::vector& ) const { 24952: return false; 24952: } 24952: }; 24952: 24952: 24952: class AssociativeMergeOperator : public MergeOperator { 24952: public: 24952: ~AssociativeMergeOperator() override {} 24952: # 323 "/build/reproducible-path/rocksdb-8.9.1/include/rocksdb/merge_operator.h" 24952: virtual bool Merge(const Slice& key, const Slice* existing_value, 24952: const Slice& value, std::string* new_value, 24952: Logger* logger) const = 0; 24952: 24952: private: 24952: 24952: bool FullMergeV2(const MergeOperationInput& merge_in, 24952: MergeOperationOutput* merge_out) const override; 24952: 24952: bool PartialMerge(const Slice& key, const Slice& left_operand, 24952: const Slice& right_operand, std::string* new_value, 24952: Logger* logger) const override; 24952: }; 24952: 24952: } 24952: # 18 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 2 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class Comparator; 24952: class Iterator; 24952: class Logger; 24952: class MergeOperator; 24952: class Statistics; 24952: class SystemClock; 24952: class BlobFetcher; 24952: class PrefetchBufferCollection; 24952: struct CompactionIterationStats; 24952: 24952: class MergeHelper { 24952: public: 24952: MergeHelper(Env* env, const Comparator* user_comparator, 24952: const MergeOperator* user_merge_operator, 24952: const CompactionFilter* compaction_filter, Logger* logger, 24952: bool assert_valid_internal_key, SequenceNumber latest_snapshot, 24952: const SnapshotChecker* snapshot_checker = nullptr, int level = 0, 24952: Statistics* stats = nullptr, 24952: const std::atomic* shutting_down = nullptr); 24952: # 54 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 24952: struct NoBaseValueTag {}; 24952: static constexpr NoBaseValueTag kNoBaseValue{}; 24952: 24952: struct PlainBaseValueTag {}; 24952: static constexpr PlainBaseValueTag kPlainBaseValue{}; 24952: 24952: struct WideBaseValueTag {}; 24952: static constexpr WideBaseValueTag kWideBaseValue{}; 24952: 24952: 24952: 24952: static Status TimedFullMerge(const MergeOperator* merge_operator, 24952: const Slice& key, NoBaseValueTag, 24952: const std::vector& operands, 24952: Logger* logger, Statistics* statistics, 24952: SystemClock* clock, bool update_num_ops_stats, 24952: std::string* result, Slice* result_operand, 24952: ValueType* result_type, 24952: MergeOperator::OpFailureScope* op_failure_scope); 24952: 24952: static Status TimedFullMerge( 24952: const MergeOperator* merge_operator, const Slice& key, PlainBaseValueTag, 24952: const Slice& value, const std::vector& operands, Logger* logger, 24952: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 24952: std::string* result, Slice* result_operand, ValueType* result_type, 24952: MergeOperator::OpFailureScope* op_failure_scope); 24952: 24952: static Status TimedFullMerge( 24952: const MergeOperator* merge_operator, const Slice& key, WideBaseValueTag, 24952: const Slice& entity, const std::vector& operands, Logger* logger, 24952: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 24952: std::string* result, Slice* result_operand, ValueType* result_type, 24952: MergeOperator::OpFailureScope* op_failure_scope); 24952: 24952: static Status TimedFullMerge( 24952: const MergeOperator* merge_operator, const Slice& key, WideBaseValueTag, 24952: const WideColumns& columns, const std::vector& operands, 24952: Logger* logger, Statistics* statistics, SystemClock* clock, 24952: bool update_num_ops_stats, std::string* result, Slice* result_operand, 24952: ValueType* result_type, MergeOperator::OpFailureScope* op_failure_scope); 24952: 24952: 24952: 24952: 24952: 24952: static Status TimedFullMerge(const MergeOperator* merge_operator, 24952: const Slice& key, NoBaseValueTag, 24952: const std::vector& operands, 24952: Logger* logger, Statistics* statistics, 24952: SystemClock* clock, bool update_num_ops_stats, 24952: std::string* result_value, 24952: PinnableWideColumns* result_entity, 24952: MergeOperator::OpFailureScope* op_failure_scope); 24952: 24952: static Status TimedFullMerge( 24952: const MergeOperator* merge_operator, const Slice& key, PlainBaseValueTag, 24952: const Slice& value, const std::vector& operands, Logger* logger, 24952: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 24952: std::string* result_value, PinnableWideColumns* result_entity, 24952: MergeOperator::OpFailureScope* op_failure_scope); 24952: 24952: static Status TimedFullMerge( 24952: const MergeOperator* merge_operator, const Slice& key, WideBaseValueTag, 24952: const Slice& entity, const std::vector& operands, Logger* logger, 24952: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 24952: std::string* result_value, PinnableWideColumns* result_entity, 24952: MergeOperator::OpFailureScope* op_failure_scope); 24952: 24952: static Status TimedFullMerge(const MergeOperator* merge_operator, 24952: const Slice& key, WideBaseValueTag, 24952: const WideColumns& columns, 24952: const std::vector& operands, 24952: Logger* logger, Statistics* statistics, 24952: SystemClock* clock, bool update_num_ops_stats, 24952: std::string* result_value, 24952: PinnableWideColumns* result_entity, 24952: MergeOperator::OpFailureScope* op_failure_scope); 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 24952: Status MergeUntil(InternalIterator* iter, 24952: CompactionRangeDelAggregator* range_del_agg, 24952: const SequenceNumber stop_before, const bool at_bottom, 24952: const bool allow_data_in_errors, 24952: const BlobFetcher* blob_fetcher, 24952: const std::string* const full_history_ts_low, 24952: PrefetchBufferCollection* prefetch_buffers, 24952: CompactionIterationStats* c_iter_stats); 24952: 24952: 24952: 24952: 24952: 24952: 24952: CompactionFilter::Decision FilterMerge(const Slice& user_key, 24952: const Slice& value_slice); 24952: # 210 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 24952: const std::deque& keys() const { return keys_; } 24952: const std::vector& values() const { 24952: return merge_context_.GetOperands(); 24952: } 24952: uint64_t TotalFilterTime() const { return total_filter_time_; } 24952: bool HasOperator() const { return user_merge_operator_ != nullptr; } 24952: 24952: 24952: 24952: 24952: bool FilteredUntil(Slice* skip_until) const { 24952: if (!has_compaction_filter_skip_until_) { 24952: return false; 24952: } 24952: 24952: # 224 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 24952: (static_cast ( 24952: # 224 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 24952: compaction_filter_ != nullptr 24952: # 224 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 224 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 24952: "compaction_filter_ != nullptr" 24952: # 224 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 24952: , "./db/merge_helper.h", 224, __extension__ __PRETTY_FUNCTION__)) 24952: # 224 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 24952: ; 24952: 24952: # 225 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 24952: (static_cast ( 24952: # 225 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 24952: skip_until != nullptr 24952: # 225 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 225 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 24952: "skip_until != nullptr" 24952: # 225 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 24952: , "./db/merge_helper.h", 225, __extension__ __PRETTY_FUNCTION__)) 24952: # 225 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 24952: ; 24952: 24952: # 226 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 24952: (static_cast ( 24952: # 226 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 24952: compaction_filter_skip_until_.Valid() 24952: # 226 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 226 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 24952: "compaction_filter_skip_until_.Valid()" 24952: # 226 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 3 4 24952: , "./db/merge_helper.h", 226, __extension__ __PRETTY_FUNCTION__)) 24952: # 226 "/build/reproducible-path/rocksdb-8.9.1/db/merge_helper.h" 24952: ; 24952: *skip_until = compaction_filter_skip_until_.Encode(); 24952: return true; 24952: } 24952: 24952: private: 24952: Env* env_; 24952: SystemClock* clock_; 24952: const Comparator* user_comparator_; 24952: const MergeOperator* user_merge_operator_; 24952: const CompactionFilter* compaction_filter_; 24952: const std::atomic* shutting_down_; 24952: Logger* logger_; 24952: bool assert_valid_internal_key_; 24952: bool allow_single_operand_; 24952: SequenceNumber latest_snapshot_; 24952: const SnapshotChecker* const snapshot_checker_; 24952: int level_; 24952: 24952: 24952: 24952: 24952: 24952: std::deque keys_; 24952: 24952: mutable MergeContext merge_context_; 24952: 24952: StopWatchNano filter_timer_; 24952: uint64_t total_filter_time_; 24952: Statistics* stats_; 24952: 24952: bool has_compaction_filter_skip_until_ = false; 24952: std::string compaction_filter_value_; 24952: InternalKey compaction_filter_skip_until_; 24952: 24952: bool IsShuttingDown() { 24952: 24952: return shutting_down_ && shutting_down_->load(std::memory_order_relaxed); 24952: } 24952: 24952: template 24952: static Status TimedFullMergeCommonImpl( 24952: const MergeOperator* merge_operator, const Slice& key, 24952: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 24952: const std::vector& operands, Logger* logger, 24952: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 24952: MergeOperator::OpFailureScope* op_failure_scope, Visitor&& visitor); 24952: 24952: static Status TimedFullMergeImpl( 24952: const MergeOperator* merge_operator, const Slice& key, 24952: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 24952: const std::vector& operands, Logger* logger, 24952: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 24952: std::string* result, Slice* result_operand, ValueType* result_type, 24952: MergeOperator::OpFailureScope* op_failure_scope); 24952: 24952: static Status TimedFullMergeImpl( 24952: const MergeOperator* merge_operator, const Slice& key, 24952: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 24952: const std::vector& operands, Logger* logger, 24952: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 24952: std::string* result_value, PinnableWideColumns* result_entity, 24952: MergeOperator::OpFailureScope* op_failure_scope); 24952: }; 24952: 24952: 24952: class MergeOutputIterator { 24952: public: 24952: 24952: explicit MergeOutputIterator(const MergeHelper* merge_helper); 24952: 24952: 24952: void SeekToFirst(); 24952: 24952: void Next(); 24952: 24952: Slice key() { return Slice(*it_keys_); } 24952: Slice value() { return Slice(*it_values_); } 24952: bool Valid() { return it_keys_ != merge_helper_->keys().rend(); } 24952: 24952: private: 24952: const MergeHelper* merge_helper_; 24952: std::deque::const_reverse_iterator it_keys_; 24952: std::vector::const_reverse_iterator it_values_; 24952: }; 24952: 24952: } 24952: # 21 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 24952: 24952: 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/db/wide/wide_column_serialization.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 15 "/build/reproducible-path/rocksdb-8.9.1/db/wide/wide_column_serialization.h" 24952: namespace rocksdb { 24952: 24952: class Slice; 24952: # 44 "/build/reproducible-path/rocksdb-8.9.1/db/wide/wide_column_serialization.h" 24952: class WideColumnSerialization { 24952: public: 24952: static Status Serialize(const WideColumns& columns, std::string& output); 24952: 24952: static Status Deserialize(Slice& input, WideColumns& columns); 24952: 24952: static WideColumns::const_iterator Find(const WideColumns& columns, 24952: const Slice& column_name); 24952: static Status GetValueOfDefaultColumn(Slice& input, Slice& value); 24952: 24952: static constexpr uint32_t kCurrentVersion = 1; 24952: }; 24952: 24952: } 24952: # 25 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/logging/logging.h" 1 24952: # 13 "/build/reproducible-path/rocksdb-8.9.1/logging/logging.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: inline const char* RocksLogShorterFileName(const char* file) { 24952: 24952: 24952: return file + (sizeof("./logging/logging.h") > 18 ? sizeof("./logging/logging.h") - 18 : 0); 24952: } 24952: # 26 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 24952: 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/memory/memory_usage.h" 1 24952: 24952: 24952: 24952: 24952: 24952: 24952: # 16 "/build/reproducible-path/rocksdb-8.9.1/memory/memory_usage.h" 24952: namespace rocksdb { 24952: 24952: 24952: 24952: template 24952: size_t ApproximateMemoryUsage( 24952: const std::unordered_map& umap) { 24952: using Map = std::unordered_map; 24952: return sizeof(umap) + 24952: 24952: (sizeof(typename Map::value_type) + sizeof(void*)) * umap.size() + 24952: 24952: umap.bucket_count() * sizeof(void*); 24952: } 24952: # 38 "/build/reproducible-path/rocksdb-8.9.1/memory/memory_usage.h" 24952: } 24952: # 28 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 24952: # 40 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: 24952: 24952: 24952: 24952: template 24952: class IteratorWrapperBase { 24952: public: 24952: IteratorWrapperBase() : iter_(nullptr), valid_(false) {} 24952: explicit IteratorWrapperBase(InternalIteratorBase* _iter) 24952: : iter_(nullptr) { 24952: Set(_iter); 24952: } 24952: ~IteratorWrapperBase() {} 24952: InternalIteratorBase* iter() const { return iter_; } 24952: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 24952: if (iter_) { 24952: iter_->SetRangeDelReadSeqno(read_seqno); 24952: } 24952: } 24952: 24952: 24952: 24952: InternalIteratorBase* Set(InternalIteratorBase* _iter) { 24952: InternalIteratorBase* old_iter = iter_; 24952: 24952: iter_ = _iter; 24952: if (iter_ == nullptr) { 24952: valid_ = false; 24952: } else { 24952: Update(); 24952: } 24952: return old_iter; 24952: } 24952: 24952: void DeleteIter(bool is_arena_mode) { 24952: if (iter_) { 24952: # 66 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: if (!is_arena_mode) { 24952: delete iter_; 24952: } else { 24952: iter_->~InternalIteratorBase(); 24952: } 24952: } 24952: } 24952: 24952: 24952: bool Valid() const { 24952: 24952: 24952: 24952: return valid_; 24952: } 24952: Slice key() const { 24952: 24952: # 82 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 82 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: Valid() 24952: # 82 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 82 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "Valid()" 24952: # 82 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 82, __extension__ __PRETTY_FUNCTION__)) 24952: # 82 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: return result_.key; 24952: } 24952: TValue value() const { 24952: 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: Valid() 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "Valid()" 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 86, __extension__ __PRETTY_FUNCTION__)) 24952: # 86 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: return iter_->value(); 24952: } 24952: 24952: Status status() const { 24952: 24952: 24952: 24952: 24952: # 94 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 94 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: iter_ 24952: # 94 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 94 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "iter_" 24952: # 94 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 94, __extension__ __PRETTY_FUNCTION__)) 24952: # 94 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: return iter_->status(); 24952: } 24952: bool PrepareValue() { 24952: 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: Valid() 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "Valid()" 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 98, __extension__ __PRETTY_FUNCTION__)) 24952: # 98 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: if (result_.value_prepared) { 24952: return true; 24952: } 24952: if (iter_->PrepareValue()) { 24952: result_.value_prepared = true; 24952: return true; 24952: } 24952: 24952: 24952: # 107 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 107 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: !iter_->Valid() 24952: # 107 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 107 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "!iter_->Valid()" 24952: # 107 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 107, __extension__ __PRETTY_FUNCTION__)) 24952: # 107 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: valid_ = false; 24952: return false; 24952: } 24952: void Next() { 24952: 24952: # 112 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 112 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: iter_ 24952: # 112 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 112 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "iter_" 24952: # 112 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 112, __extension__ __PRETTY_FUNCTION__)) 24952: # 112 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: valid_ = iter_->NextAndGetResult(&result_); 24952: 24952: # 114 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 114 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: !valid_ || iter_->status().ok() 24952: # 114 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 114 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "!valid_ || iter_->status().ok()" 24952: # 114 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 114, __extension__ __PRETTY_FUNCTION__)) 24952: # 114 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: } 24952: bool NextAndGetResult(IterateResult* result) { 24952: 24952: # 117 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 117 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: iter_ 24952: # 117 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 117 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "iter_" 24952: # 117 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 117, __extension__ __PRETTY_FUNCTION__)) 24952: # 117 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: valid_ = iter_->NextAndGetResult(&result_); 24952: *result = result_; 24952: 24952: # 120 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 120 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: !valid_ || iter_->status().ok() 24952: # 120 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 120 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "!valid_ || iter_->status().ok()" 24952: # 120 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 120, __extension__ __PRETTY_FUNCTION__)) 24952: # 120 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: return valid_; 24952: } 24952: void Prev() { 24952: 24952: # 124 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 124 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: iter_ 24952: # 124 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 124 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "iter_" 24952: # 124 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 124, __extension__ __PRETTY_FUNCTION__)) 24952: # 124 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: iter_->Prev(); 24952: Update(); 24952: } 24952: void Seek(const Slice& k) { 24952: 24952: # 129 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 129 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: iter_ 24952: # 129 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 129 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "iter_" 24952: # 129 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 129, __extension__ __PRETTY_FUNCTION__)) 24952: # 129 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: iter_->Seek(k); 24952: Update(); 24952: } 24952: void SeekForPrev(const Slice& k) { 24952: 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: iter_ 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "iter_" 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 134, __extension__ __PRETTY_FUNCTION__)) 24952: # 134 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: iter_->SeekForPrev(k); 24952: Update(); 24952: } 24952: void SeekToFirst() { 24952: 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: iter_ 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "iter_" 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 139, __extension__ __PRETTY_FUNCTION__)) 24952: # 139 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: iter_->SeekToFirst(); 24952: Update(); 24952: } 24952: void SeekToLast() { 24952: 24952: # 144 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 144 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: iter_ 24952: # 144 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 144 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "iter_" 24952: # 144 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 144, __extension__ __PRETTY_FUNCTION__)) 24952: # 144 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: iter_->SeekToLast(); 24952: Update(); 24952: } 24952: 24952: bool MayBeOutOfLowerBound() { 24952: 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: Valid() 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "Valid()" 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 150, __extension__ __PRETTY_FUNCTION__)) 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: return iter_->MayBeOutOfLowerBound(); 24952: } 24952: 24952: IterBoundCheck UpperBoundCheckResult() { 24952: 24952: # 155 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 155 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: Valid() 24952: # 155 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 155 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "Valid()" 24952: # 155 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 155, __extension__ __PRETTY_FUNCTION__)) 24952: # 155 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: return result_.bound_check_result; 24952: } 24952: 24952: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) { 24952: 24952: # 160 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 160 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: iter_ 24952: # 160 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 160 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "iter_" 24952: # 160 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 160, __extension__ __PRETTY_FUNCTION__)) 24952: # 160 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: iter_->SetPinnedItersMgr(pinned_iters_mgr); 24952: } 24952: bool IsKeyPinned() const { 24952: 24952: # 164 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 164 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: Valid() 24952: # 164 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 164 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "Valid()" 24952: # 164 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 164, __extension__ __PRETTY_FUNCTION__)) 24952: # 164 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: return iter_->IsKeyPinned(); 24952: } 24952: bool IsValuePinned() const { 24952: 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: Valid() 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "Valid()" 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 168, __extension__ __PRETTY_FUNCTION__)) 24952: # 168 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: return iter_->IsValuePinned(); 24952: } 24952: 24952: bool IsValuePrepared() const { return result_.value_prepared; } 24952: 24952: Slice user_key() const { 24952: 24952: # 175 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 175 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: Valid() 24952: # 175 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 175 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "Valid()" 24952: # 175 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 175, __extension__ __PRETTY_FUNCTION__)) 24952: # 175 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: return iter_->user_key(); 24952: } 24952: 24952: void UpdateReadaheadState(InternalIteratorBase* old_iter) { 24952: if (old_iter && iter_) { 24952: ReadaheadFileInfo readahead_file_info; 24952: old_iter->GetReadaheadState(&readahead_file_info); 24952: iter_->SetReadaheadState(&readahead_file_info); 24952: } 24952: } 24952: 24952: bool IsDeleteRangeSentinelKey() const { 24952: return iter_->IsDeleteRangeSentinelKey(); 24952: } 24952: 24952: private: 24952: void Update() { 24952: valid_ = iter_->Valid(); 24952: if (valid_) { 24952: 24952: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: (static_cast ( 24952: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: iter_->status().ok() 24952: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: "iter_->status().ok()" 24952: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 3 4 24952: , "./table/iterator_wrapper.h", 195, __extension__ __PRETTY_FUNCTION__)) 24952: # 195 "/build/reproducible-path/rocksdb-8.9.1/table/iterator_wrapper.h" 24952: ; 24952: result_.key = iter_->key(); 24952: result_.bound_check_result = IterBoundCheck::kUnknown; 24952: result_.value_prepared = false; 24952: } 24952: } 24952: 24952: InternalIteratorBase* iter_; 24952: IterateResult result_; 24952: bool valid_; 24952: 24952: 24952: 24952: 24952: }; 24952: 24952: using IteratorWrapper = IteratorWrapperBase; 24952: 24952: class Arena; 24952: 24952: template 24952: extern InternalIteratorBase* NewEmptyInternalIterator(Arena* arena); 24952: 24952: } 24952: # 41 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 24952: # 1 "/build/reproducible-path/rocksdb-8.9.1/table/merging_iterator.h" 1 24952: # 10 "/build/reproducible-path/rocksdb-8.9.1/table/merging_iterator.h" 24952: 24952: 24952: 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: class Arena; 24952: class ArenaWrappedDBIter; 24952: class InternalKeyComparator; 24952: 24952: template 24952: class InternalIteratorBase; 24952: using InternalIterator = InternalIteratorBase; 24952: # 35 "/build/reproducible-path/rocksdb-8.9.1/table/merging_iterator.h" 24952: extern InternalIterator* NewMergingIterator( 24952: const InternalKeyComparator* comparator, InternalIterator** children, int n, 24952: Arena* arena = nullptr, bool prefix_seek_mode = false); 24952: 24952: 24952: 24952: 24952: class MergingIterator; 24952: 24952: 24952: 24952: 24952: 24952: class MergeIteratorBuilder { 24952: public: 24952: 24952: 24952: explicit MergeIteratorBuilder(const InternalKeyComparator* comparator, 24952: Arena* arena, bool prefix_seek_mode = false, 24952: const Slice* iterate_upper_bound = nullptr); 24952: ~MergeIteratorBuilder(); 24952: 24952: 24952: void AddIterator(InternalIterator* iter); 24952: # 71 "/build/reproducible-path/rocksdb-8.9.1/table/merging_iterator.h" 24952: void AddPointAndTombstoneIterator( 24952: InternalIterator* point_iter, TruncatedRangeDelIterator* tombstone_iter, 24952: TruncatedRangeDelIterator*** tombstone_iter_ptr = nullptr); 24952: 24952: 24952: 24952: Arena* GetArena() { return arena; } 24952: 24952: 24952: 24952: 24952: 24952: 24952: InternalIterator* Finish(ArenaWrappedDBIter* db_iter = nullptr); 24952: 24952: private: 24952: MergingIterator* merge_iter; 24952: InternalIterator* first_iter; 24952: bool use_merging_iter; 24952: Arena* arena; 24952: 24952: 24952: std::vector> 24952: range_del_iter_ptrs_; 24952: }; 24952: 24952: } 24952: # 42 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 2 24952: 24952: 24952: 24952: 24952: namespace rocksdb { 24952: 24952: ImmutableMemTableOptions::ImmutableMemTableOptions( 24952: const ImmutableOptions& ioptions, 24952: const MutableCFOptions& mutable_cf_options) 24952: : arena_block_size(mutable_cf_options.arena_block_size), 24952: memtable_prefix_bloom_bits( 24952: static_cast( 24952: static_cast(mutable_cf_options.write_buffer_size) * 24952: mutable_cf_options.memtable_prefix_bloom_size_ratio) * 24952: 8u), 24952: memtable_huge_page_size(mutable_cf_options.memtable_huge_page_size), 24952: memtable_whole_key_filtering( 24952: mutable_cf_options.memtable_whole_key_filtering), 24952: inplace_update_support(ioptions.inplace_update_support), 24952: inplace_update_num_locks(mutable_cf_options.inplace_update_num_locks), 24952: inplace_callback(ioptions.inplace_callback), 24952: max_successive_merges(mutable_cf_options.max_successive_merges), 24952: statistics(ioptions.stats), 24952: merge_operator(ioptions.merge_operator.get()), 24952: info_log(ioptions.logger), 24952: allow_data_in_errors(ioptions.allow_data_in_errors), 24952: protection_bytes_per_key( 24952: mutable_cf_options.memtable_protection_bytes_per_key) {} 24952: 24952: MemTable::MemTable(const InternalKeyComparator& cmp, 24952: const ImmutableOptions& ioptions, 24952: const MutableCFOptions& mutable_cf_options, 24952: WriteBufferManager* write_buffer_manager, 24952: SequenceNumber latest_seq, uint32_t column_family_id) 24952: : comparator_(cmp), 24952: moptions_(ioptions, mutable_cf_options), 24952: refs_(0), 24952: kArenaBlockSize(Arena::OptimizeBlockSize(moptions_.arena_block_size)), 24952: mem_tracker_(write_buffer_manager), 24952: arena_(moptions_.arena_block_size, 24952: (write_buffer_manager != nullptr && 24952: (write_buffer_manager->enabled() || 24952: write_buffer_manager->cost_to_cache())) 24952: ? &mem_tracker_ 24952: : nullptr, 24952: mutable_cf_options.memtable_huge_page_size), 24952: table_(ioptions.memtable_factory->CreateMemTableRep( 24952: comparator_, &arena_, mutable_cf_options.prefix_extractor.get(), 24952: ioptions.logger, column_family_id)), 24952: range_del_table_(SkipListFactory().CreateMemTableRep( 24952: comparator_, &arena_, nullptr , ioptions.logger, 24952: column_family_id)), 24952: is_range_del_table_empty_(true), 24952: data_size_(0), 24952: num_entries_(0), 24952: num_deletes_(0), 24952: num_range_deletes_(0), 24952: write_buffer_size_(mutable_cf_options.write_buffer_size), 24952: flush_in_progress_(false), 24952: flush_completed_(false), 24952: file_number_(0), 24952: first_seqno_(0), 24952: earliest_seqno_(latest_seq), 24952: creation_seq_(latest_seq), 24952: mem_next_logfile_number_(0), 24952: min_prep_log_referenced_(0), 24952: locks_(moptions_.inplace_update_support 24952: ? moptions_.inplace_update_num_locks 24952: : 0), 24952: prefix_extractor_(mutable_cf_options.prefix_extractor.get()), 24952: flush_state_(FLUSH_NOT_REQUESTED), 24952: clock_(ioptions.clock), 24952: insert_with_hint_prefix_extractor_( 24952: ioptions.memtable_insert_with_hint_prefix_extractor.get()), 24952: oldest_key_time_(std::numeric_limits::max()), 24952: atomic_flush_seqno_(kMaxSequenceNumber), 24952: approximate_memory_usage_(0), 24952: memtable_max_range_deletions_( 24952: mutable_cf_options.memtable_max_range_deletions) { 24952: UpdateFlushState(); 24952: 24952: 24952: # 123 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 123 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: !ShouldScheduleFlush() 24952: # 123 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 123 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "!ShouldScheduleFlush()" 24952: # 123 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 123, __extension__ __PRETTY_FUNCTION__)) 24952: # 123 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: 24952: 24952: if ((prefix_extractor_ || moptions_.memtable_whole_key_filtering) && 24952: moptions_.memtable_prefix_bloom_bits > 0) { 24952: bloom_filter_.reset( 24952: new DynamicBloom(&arena_, moptions_.memtable_prefix_bloom_bits, 24952: 6 , 24952: moptions_.memtable_huge_page_size, ioptions.logger)); 24952: } 24952: 24952: 24952: 24952: auto new_cache = std::make_shared(); 24952: size_t size = cached_range_tombstone_.Size(); 24952: for (size_t i = 0; i < size; ++i) { 24952: std::shared_ptr* local_cache_ref_ptr = 24952: cached_range_tombstone_.AccessAtCore(i); 24952: auto new_local_cache_ref = std::make_shared< 24952: const std::shared_ptr>(new_cache); 24952: std::atomic_store_explicit( 24952: local_cache_ref_ptr, 24952: std::shared_ptr(new_local_cache_ref, 24952: new_cache.get()), 24952: std::memory_order_relaxed); 24952: } 24952: const Comparator* ucmp = cmp.user_comparator(); 24952: 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ucmp 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "ucmp" 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 150, __extension__ __PRETTY_FUNCTION__)) 24952: # 150 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: ts_sz_ = ucmp->timestamp_size(); 24952: persist_user_defined_timestamps_ = ioptions.persist_user_defined_timestamps; 24952: } 24952: 24952: MemTable::~MemTable() { 24952: mem_tracker_.FreeMem(); 24952: 24952: # 157 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 157 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: refs_ == 0 24952: # 157 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 157 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "refs_ == 0" 24952: # 157 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 157, __extension__ __PRETTY_FUNCTION__)) 24952: # 157 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: } 24952: 24952: size_t MemTable::ApproximateMemoryUsage() { 24952: autovector usages = { 24952: arena_.ApproximateMemoryUsage(), table_->ApproximateMemoryUsage(), 24952: range_del_table_->ApproximateMemoryUsage(), 24952: rocksdb::ApproximateMemoryUsage(insert_hints_)}; 24952: size_t total_usage = 0; 24952: for (size_t usage : usages) { 24952: 24952: 24952: if (usage >= std::numeric_limits::max() - total_usage) { 24952: return std::numeric_limits::max(); 24952: } 24952: total_usage += usage; 24952: } 24952: approximate_memory_usage_.store(total_usage, std::memory_order_relaxed); 24952: 24952: return total_usage; 24952: } 24952: 24952: bool MemTable::ShouldFlushNow() { 24952: 24952: 24952: if (memtable_max_range_deletions_ > 0 && 24952: num_range_deletes_.load(std::memory_order_relaxed) >= 24952: static_cast(memtable_max_range_deletions_)) { 24952: return true; 24952: } 24952: 24952: size_t write_buffer_size = write_buffer_size_.load(std::memory_order_relaxed); 24952: 24952: 24952: 24952: 24952: 24952: 24952: const double kAllowOverAllocationRatio = 0.6; 24952: 24952: 24952: 24952: auto allocated_memory = table_->ApproximateMemoryUsage() + 24952: range_del_table_->ApproximateMemoryUsage() + 24952: arena_.MemoryAllocatedBytes(); 24952: 24952: approximate_memory_usage_.store(allocated_memory, std::memory_order_relaxed); 24952: 24952: 24952: 24952: if (allocated_memory + kArenaBlockSize < 24952: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 24952: return false; 24952: } 24952: 24952: 24952: 24952: if (allocated_memory > 24952: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 24952: return true; 24952: } 24952: # 244 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: return arena_.AllocatedAndUnused() < kArenaBlockSize / 4; 24952: } 24952: 24952: void MemTable::UpdateFlushState() { 24952: auto state = flush_state_.load(std::memory_order_relaxed); 24952: if (state == FLUSH_NOT_REQUESTED && ShouldFlushNow()) { 24952: 24952: 24952: flush_state_.compare_exchange_strong(state, FLUSH_REQUESTED, 24952: std::memory_order_relaxed, 24952: std::memory_order_relaxed); 24952: } 24952: } 24952: 24952: void MemTable::UpdateOldestKeyTime() { 24952: uint64_t oldest_key_time = oldest_key_time_.load(std::memory_order_relaxed); 24952: if (oldest_key_time == std::numeric_limits::max()) { 24952: int64_t current_time = 0; 24952: auto s = clock_->GetCurrentTime(¤t_time); 24952: if (s.ok()) { 24952: 24952: # 264 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 264 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: current_time >= 0 24952: # 264 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 264 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "current_time >= 0" 24952: # 264 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 264, __extension__ __PRETTY_FUNCTION__)) 24952: # 264 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: 24952: oldest_key_time_.compare_exchange_strong( 24952: oldest_key_time, static_cast(current_time), 24952: std::memory_order_relaxed, std::memory_order_relaxed); 24952: } 24952: } 24952: } 24952: 24952: Status MemTable::VerifyEntryChecksum(const char* entry, 24952: uint32_t protection_bytes_per_key, 24952: bool allow_data_in_errors) { 24952: if (protection_bytes_per_key == 0) { 24952: return Status::OK(); 24952: } 24952: uint32_t key_length; 24952: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 24952: if (key_ptr == nullptr) { 24952: return Status::Corruption("Unable to parse internal key length"); 24952: } 24952: if (key_length < 8) { 24952: return Status::Corruption("Memtable entry internal key length too short."); 24952: } 24952: Slice user_key = Slice(key_ptr, key_length - 8); 24952: 24952: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 24952: ValueType type; 24952: SequenceNumber seq; 24952: UnPackSequenceAndType(tag, &seq, &type); 24952: 24952: uint32_t value_length = 0; 24952: const char* value_ptr = GetVarint32Ptr( 24952: key_ptr + key_length, key_ptr + key_length + 5, &value_length); 24952: if (value_ptr == nullptr) { 24952: return Status::Corruption("Unable to parse internal key value"); 24952: } 24952: Slice value = Slice(value_ptr, value_length); 24952: 24952: const char* checksum_ptr = value_ptr + value_length; 24952: bool match = 24952: ProtectionInfo64() 24952: .ProtectKVO(user_key, value, type) 24952: .ProtectS(seq) 24952: .Verify(static_cast(protection_bytes_per_key), checksum_ptr); 24952: if (!match) { 24952: std::string msg( 24952: "Corrupted memtable entry, per key-value checksum verification " 24952: "failed."); 24952: if (allow_data_in_errors) { 24952: msg.append("Unrecognized value type: " + 24952: std::to_string(static_cast(type)) + ". "); 24952: msg.append("User key: " + user_key.ToString( true) + ". "); 24952: msg.append("seq: " + std::to_string(seq) + "."); 24952: } 24952: return Status::Corruption(msg.c_str()); 24952: } 24952: return Status::OK(); 24952: } 24952: 24952: int MemTable::KeyComparator::operator()(const char* prefix_len_key1, 24952: const char* prefix_len_key2) const { 24952: 24952: Slice k1 = GetLengthPrefixedSlice(prefix_len_key1); 24952: Slice k2 = GetLengthPrefixedSlice(prefix_len_key2); 24952: return comparator.CompareKeySeq(k1, k2); 24952: } 24952: 24952: int MemTable::KeyComparator::operator()( 24952: const char* prefix_len_key, const KeyComparator::DecodedType& key) const { 24952: 24952: Slice a = GetLengthPrefixedSlice(prefix_len_key); 24952: return comparator.CompareKeySeq(a, key); 24952: } 24952: 24952: void MemTableRep::InsertConcurrently(KeyHandle ) { 24952: throw std::runtime_error("concurrent insert not supported"); 24952: } 24952: 24952: Slice MemTableRep::UserKey(const char* key) const { 24952: Slice slice = GetLengthPrefixedSlice(key); 24952: return Slice(slice.data(), slice.size() - 8); 24952: } 24952: 24952: KeyHandle MemTableRep::Allocate(const size_t len, char** buf) { 24952: *buf = allocator_->Allocate(len); 24952: return static_cast(*buf); 24952: } 24952: 24952: 24952: 24952: 24952: const char* EncodeKey(std::string* scratch, const Slice& target) { 24952: scratch->clear(); 24952: PutVarint32(scratch, static_cast(target.size())); 24952: scratch->append(target.data(), target.size()); 24952: return scratch->data(); 24952: } 24952: 24952: class MemTableIterator : public InternalIterator { 24952: public: 24952: MemTableIterator(const MemTable& mem, const ReadOptions& read_options, 24952: Arena* arena, bool use_range_del_table = false) 24952: : bloom_(nullptr), 24952: prefix_extractor_(mem.prefix_extractor_), 24952: comparator_(mem.comparator_), 24952: valid_(false), 24952: arena_mode_(arena != nullptr), 24952: value_pinned_( 24952: !mem.GetImmutableMemTableOptions()->inplace_update_support), 24952: protection_bytes_per_key_(mem.moptions_.protection_bytes_per_key), 24952: status_(Status::OK()), 24952: logger_(mem.moptions_.info_log), 24952: ts_sz_(mem.ts_sz_) { 24952: if (use_range_del_table) { 24952: iter_ = mem.range_del_table_->GetIterator(arena); 24952: } else if (prefix_extractor_ != nullptr && !read_options.total_order_seek && 24952: !read_options.auto_prefix_mode) { 24952: 24952: bloom_ = mem.bloom_filter_.get(); 24952: iter_ = mem.table_->GetDynamicPrefixIterator(arena); 24952: } else { 24952: iter_ = mem.table_->GetIterator(arena); 24952: } 24952: status_.PermitUncheckedError(); 24952: } 24952: 24952: MemTableIterator(const MemTableIterator&) = delete; 24952: void operator=(const MemTableIterator&) = delete; 24952: 24952: ~MemTableIterator() override { 24952: 24952: 24952: 24952: 24952: # 397 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 397 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: !pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled() 24952: # 397 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 397 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "!pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled()" 24952: # 397 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 397, __extension__ __PRETTY_FUNCTION__)) 24952: # 397 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: 24952: if (arena_mode_) { 24952: iter_->~Iterator(); 24952: } else { 24952: delete iter_; 24952: } 24952: } 24952: 24952: 24952: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 24952: pinned_iters_mgr_ = pinned_iters_mgr; 24952: } 24952: PinnedIteratorsManager* pinned_iters_mgr_ = nullptr; 24952: 24952: 24952: bool Valid() const override { return valid_ && status_.ok(); } 24952: void Seek(const Slice& k) override { 24952: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; }; 24952: if (bloom_) { 24952: 24952: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 24952: if (prefix_extractor_->InDomain(user_k_without_ts)) { 24952: if (!bloom_->MayContain( 24952: prefix_extractor_->Transform(user_k_without_ts))) { 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 24952: valid_ = false; 24952: return; 24952: } else { 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 24952: } 24952: } 24952: } 24952: iter_->Seek(k, nullptr); 24952: valid_ = iter_->Valid(); 24952: VerifyEntryChecksum(); 24952: } 24952: void SeekForPrev(const Slice& k) override { 24952: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; }; 24952: if (bloom_) { 24952: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 24952: if (prefix_extractor_->InDomain(user_k_without_ts)) { 24952: if (!bloom_->MayContain( 24952: prefix_extractor_->Transform(user_k_without_ts))) { 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 24952: valid_ = false; 24952: return; 24952: } else { 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 24952: } 24952: } 24952: } 24952: iter_->Seek(k, nullptr); 24952: valid_ = iter_->Valid(); 24952: VerifyEntryChecksum(); 24952: if (!Valid() && status().ok()) { 24952: SeekToLast(); 24952: } 24952: while (Valid() && comparator_.comparator.Compare(k, key()) < 0) { 24952: Prev(); 24952: } 24952: } 24952: void SeekToFirst() override { 24952: iter_->SeekToFirst(); 24952: valid_ = iter_->Valid(); 24952: VerifyEntryChecksum(); 24952: } 24952: void SeekToLast() override { 24952: iter_->SeekToLast(); 24952: valid_ = iter_->Valid(); 24952: VerifyEntryChecksum(); 24952: } 24952: void Next() override { 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.next_on_memtable_count += 1; }; 24952: 24952: # 473 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 473 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: Valid() 24952: # 473 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 473 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "Valid()" 24952: # 473 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 473, __extension__ __PRETTY_FUNCTION__)) 24952: # 473 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: iter_->Next(); 24952: rocksdb::SyncPoint::GetInstance()->Process("MemTableIterator::Next:0", iter_); 24952: valid_ = iter_->Valid(); 24952: VerifyEntryChecksum(); 24952: } 24952: bool NextAndGetResult(IterateResult* result) override { 24952: Next(); 24952: bool is_valid = Valid(); 24952: if (is_valid) { 24952: result->key = key(); 24952: result->bound_check_result = IterBoundCheck::kUnknown; 24952: result->value_prepared = true; 24952: } 24952: return is_valid; 24952: } 24952: void Prev() override { 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.prev_on_memtable_count += 1; }; 24952: 24952: # 491 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 491 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: Valid() 24952: # 491 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 491 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "Valid()" 24952: # 491 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 491, __extension__ __PRETTY_FUNCTION__)) 24952: # 491 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: iter_->Prev(); 24952: valid_ = iter_->Valid(); 24952: VerifyEntryChecksum(); 24952: } 24952: Slice key() const override { 24952: 24952: # 497 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 497 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: Valid() 24952: # 497 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 497 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "Valid()" 24952: # 497 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 497, __extension__ __PRETTY_FUNCTION__)) 24952: # 497 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: return GetLengthPrefixedSlice(iter_->key()); 24952: } 24952: Slice value() const override { 24952: 24952: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: Valid() 24952: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "Valid()" 24952: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 501, __extension__ __PRETTY_FUNCTION__)) 24952: # 501 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: Slice key_slice = GetLengthPrefixedSlice(iter_->key()); 24952: return GetLengthPrefixedSlice(key_slice.data() + key_slice.size()); 24952: } 24952: 24952: Status status() const override { return status_; } 24952: 24952: bool IsKeyPinned() const override { 24952: 24952: return true; 24952: } 24952: 24952: bool IsValuePinned() const override { 24952: 24952: return value_pinned_; 24952: } 24952: 24952: private: 24952: DynamicBloom* bloom_; 24952: const SliceTransform* const prefix_extractor_; 24952: const MemTable::KeyComparator comparator_; 24952: MemTableRep::Iterator* iter_; 24952: bool valid_; 24952: bool arena_mode_; 24952: bool value_pinned_; 24952: uint32_t protection_bytes_per_key_; 24952: Status status_; 24952: Logger* logger_; 24952: size_t ts_sz_; 24952: 24952: void VerifyEntryChecksum() { 24952: if (protection_bytes_per_key_ > 0 && Valid()) { 24952: status_ = MemTable::VerifyEntryChecksum(iter_->key(), 24952: protection_bytes_per_key_); 24952: if (!status_.ok()) { 24952: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((logger_)), ("[%s:" "536" "] " "In MemtableIterator: %s"), RocksLogShorterFileName("./db/memtable.cc"), status_.getState()); 24952: } 24952: } 24952: } 24952: }; 24952: 24952: InternalIterator* MemTable::NewIterator(const ReadOptions& read_options, 24952: Arena* arena) { 24952: 24952: # 544 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 544 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: arena != nullptr 24952: # 544 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 544 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "arena != nullptr" 24952: # 544 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 544, __extension__ __PRETTY_FUNCTION__)) 24952: # 544 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: auto mem = arena->AllocateAligned(sizeof(MemTableIterator)); 24952: return new (mem) MemTableIterator(*this, read_options, arena); 24952: } 24952: 24952: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIterator( 24952: const ReadOptions& read_options, SequenceNumber read_seq, 24952: bool immutable_memtable) { 24952: if (read_options.ignore_range_deletions || 24952: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 24952: return nullptr; 24952: } 24952: return NewRangeTombstoneIteratorInternal(read_options, read_seq, 24952: immutable_memtable); 24952: } 24952: 24952: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIteratorInternal( 24952: const ReadOptions& read_options, SequenceNumber read_seq, 24952: bool immutable_memtable) { 24952: if (immutable_memtable) { 24952: 24952: 24952: 24952: # 566 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 566 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: IsFragmentedRangeTombstonesConstructed() 24952: # 566 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 566 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "IsFragmentedRangeTombstonesConstructed()" 24952: # 566 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 566, __extension__ __PRETTY_FUNCTION__)) 24952: # 566 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: return new FragmentedRangeTombstoneIterator( 24952: fragmented_range_tombstone_list_.get(), comparator_.comparator, 24952: read_seq, read_options.timestamp); 24952: } 24952: 24952: 24952: std::shared_ptr cache = 24952: std::atomic_load_explicit(cached_range_tombstone_.Access(), 24952: std::memory_order_relaxed); 24952: 24952: if (!cache->initialized.load(std::memory_order_acquire)) { 24952: cache->reader_mutex.lock(); 24952: if (!cache->tombstones) { 24952: auto* unfragmented_iter = 24952: new MemTableIterator(*this, read_options, nullptr , 24952: true ); 24952: cache->tombstones.reset(new FragmentedRangeTombstoneList( 24952: std::unique_ptr(unfragmented_iter), 24952: comparator_.comparator)); 24952: cache->initialized.store(true, std::memory_order_release); 24952: } 24952: cache->reader_mutex.unlock(); 24952: } 24952: 24952: auto* fragmented_iter = new FragmentedRangeTombstoneIterator( 24952: cache, comparator_.comparator, read_seq, read_options.timestamp); 24952: return fragmented_iter; 24952: } 24952: 24952: void MemTable::ConstructFragmentedRangeTombstones() { 24952: 24952: # 597 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 597 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: !IsFragmentedRangeTombstonesConstructed(false) 24952: # 597 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 597 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "!IsFragmentedRangeTombstonesConstructed(false)" 24952: # 597 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 597, __extension__ __PRETTY_FUNCTION__)) 24952: # 597 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: 24952: if (!is_range_del_table_empty_.load(std::memory_order_relaxed)) { 24952: 24952: auto* unfragmented_iter = 24952: new MemTableIterator(*this, ReadOptions(), nullptr , 24952: true ); 24952: 24952: fragmented_range_tombstone_list_ = 24952: std::make_unique( 24952: std::unique_ptr(unfragmented_iter), 24952: comparator_.comparator); 24952: } 24952: } 24952: 24952: port::RWMutex* MemTable::GetLock(const Slice& key) { 24952: return &locks_[GetSliceRangedNPHash(key, locks_.size())]; 24952: } 24952: 24952: MemTable::MemTableStats MemTable::ApproximateStats(const Slice& start_ikey, 24952: const Slice& end_ikey) { 24952: uint64_t entry_count = table_->ApproximateNumEntries(start_ikey, end_ikey); 24952: entry_count += range_del_table_->ApproximateNumEntries(start_ikey, end_ikey); 24952: if (entry_count == 0) { 24952: return {0, 0}; 24952: } 24952: uint64_t n = num_entries_.load(std::memory_order_relaxed); 24952: if (n == 0) { 24952: return {0, 0}; 24952: } 24952: if (entry_count > n) { 24952: 24952: 24952: 24952: entry_count = n; 24952: } 24952: uint64_t data_size = data_size_.load(std::memory_order_relaxed); 24952: return {entry_count * (data_size / n), entry_count}; 24952: } 24952: 24952: Status MemTable::VerifyEncodedEntry(Slice encoded, 24952: const ProtectionInfoKVOS64& kv_prot_info) { 24952: uint32_t ikey_len = 0; 24952: if (!GetVarint32(&encoded, &ikey_len)) { 24952: return Status::Corruption("Unable to parse internal key length"); 24952: } 24952: if (ikey_len < 8 + ts_sz_) { 24952: return Status::Corruption("Internal key length too short"); 24952: } 24952: if (ikey_len > encoded.size()) { 24952: return Status::Corruption("Internal key length too long"); 24952: } 24952: uint32_t value_len = 0; 24952: const size_t user_key_len = ikey_len - 8; 24952: Slice key(encoded.data(), user_key_len); 24952: encoded.remove_prefix(user_key_len); 24952: 24952: uint64_t packed = DecodeFixed64(encoded.data()); 24952: ValueType value_type = kMaxValue; 24952: SequenceNumber sequence_number = kMaxSequenceNumber; 24952: UnPackSequenceAndType(packed, &sequence_number, &value_type); 24952: encoded.remove_prefix(8); 24952: 24952: if (!GetVarint32(&encoded, &value_len)) { 24952: return Status::Corruption("Unable to parse value length"); 24952: } 24952: if (value_len < encoded.size()) { 24952: return Status::Corruption("Value length too short"); 24952: } 24952: if (value_len > encoded.size()) { 24952: return Status::Corruption("Value length too long"); 24952: } 24952: Slice value(encoded.data(), value_len); 24952: 24952: return kv_prot_info.StripS(sequence_number) 24952: .StripKVO(key, value, value_type) 24952: .GetStatus(); 24952: } 24952: 24952: void MemTable::UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 24952: const Slice& key, const Slice& value, 24952: ValueType type, SequenceNumber s, 24952: char* checksum_ptr) { 24952: if (moptions_.protection_bytes_per_key == 0) { 24952: return; 24952: } 24952: 24952: if (kv_prot_info == nullptr) { 24952: ProtectionInfo64() 24952: .ProtectKVO(key, value, type) 24952: .ProtectS(s) 24952: .Encode(static_cast(moptions_.protection_bytes_per_key), 24952: checksum_ptr); 24952: } else { 24952: kv_prot_info->Encode( 24952: static_cast(moptions_.protection_bytes_per_key), checksum_ptr); 24952: } 24952: } 24952: 24952: Status MemTable::Add(SequenceNumber s, ValueType type, 24952: const Slice& key, 24952: const Slice& value, 24952: const ProtectionInfoKVOS64* kv_prot_info, 24952: bool allow_concurrent, 24952: MemTablePostProcessInfo* post_process_info, void** hint) { 24952: 24952: 24952: 24952: 24952: 24952: 24952: uint32_t key_size = static_cast(key.size()); 24952: uint32_t val_size = static_cast(value.size()); 24952: uint32_t internal_key_size = key_size + 8; 24952: const uint32_t encoded_len = VarintLength(internal_key_size) + 24952: internal_key_size + VarintLength(val_size) + 24952: val_size + moptions_.protection_bytes_per_key; 24952: char* buf = nullptr; 24952: std::unique_ptr& table = 24952: type == kTypeRangeDeletion ? range_del_table_ : table_; 24952: KeyHandle handle = table->Allocate(encoded_len, &buf); 24952: 24952: char* p = EncodeVarint32(buf, internal_key_size); 24952: memcpy(p, key.data(), key_size); 24952: Slice key_slice(p, key_size); 24952: p += key_size; 24952: uint64_t packed = PackSequenceAndType(s, type); 24952: EncodeFixed64(p, packed); 24952: p += 8; 24952: p = EncodeVarint32(p, val_size); 24952: memcpy(p, value.data(), val_size); 24952: 24952: # 728 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 728 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: (unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len 24952: # 728 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 728 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "(unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len" 24952: # 728 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 728, __extension__ __PRETTY_FUNCTION__)) 24952: 24952: # 729 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: 24952: UpdateEntryChecksum(kv_prot_info, key, value, type, s, 24952: buf + encoded_len - moptions_.protection_bytes_per_key); 24952: Slice encoded(buf, encoded_len - moptions_.protection_bytes_per_key); 24952: if (kv_prot_info != nullptr) { 24952: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:Encoded", &encoded); 24952: Status status = VerifyEncodedEntry(encoded, *kv_prot_info); 24952: if (!status.ok()) { 24952: return status; 24952: } 24952: } 24952: 24952: Slice key_without_ts = StripTimestampFromUserKey(key, ts_sz_); 24952: 24952: if (!allow_concurrent) { 24952: 24952: if (insert_with_hint_prefix_extractor_ != nullptr && 24952: insert_with_hint_prefix_extractor_->InDomain(key_slice)) { 24952: Slice prefix = insert_with_hint_prefix_extractor_->Transform(key_slice); 24952: bool res = table->InsertKeyWithHint(handle, &insert_hints_[prefix]); 24952: if ((__builtin_expect((!res), 0))) { 24952: return Status::TryAgain("key+seq exists"); 24952: } 24952: } else { 24952: bool res = table->InsertKey(handle); 24952: if ((__builtin_expect((!res), 0))) { 24952: return Status::TryAgain("key+seq exists"); 24952: } 24952: } 24952: 24952: 24952: 24952: num_entries_.store(num_entries_.load(std::memory_order_relaxed) + 1, 24952: std::memory_order_relaxed); 24952: data_size_.store(data_size_.load(std::memory_order_relaxed) + encoded_len, 24952: std::memory_order_relaxed); 24952: if (type == kTypeDeletion || type == kTypeSingleDeletion || 24952: type == kTypeDeletionWithTimestamp) { 24952: num_deletes_.store(num_deletes_.load(std::memory_order_relaxed) + 1, 24952: std::memory_order_relaxed); 24952: } else if (type == kTypeRangeDeletion) { 24952: uint64_t val = num_range_deletes_.load(std::memory_order_relaxed) + 1; 24952: num_range_deletes_.store(val, std::memory_order_relaxed); 24952: } 24952: 24952: if (bloom_filter_ && prefix_extractor_ && 24952: prefix_extractor_->InDomain(key_without_ts)) { 24952: bloom_filter_->Add(prefix_extractor_->Transform(key_without_ts)); 24952: } 24952: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 24952: bloom_filter_->Add(key_without_ts); 24952: } 24952: 24952: 24952: 24952: # 784 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 784 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: first_seqno_ == 0 || s >= first_seqno_ 24952: # 784 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 784 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "first_seqno_ == 0 || s >= first_seqno_" 24952: # 784 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 784, __extension__ __PRETTY_FUNCTION__)) 24952: # 784 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: if (first_seqno_ == 0) { 24952: first_seqno_.store(s, std::memory_order_relaxed); 24952: 24952: if (earliest_seqno_ == kMaxSequenceNumber) { 24952: earliest_seqno_.store(GetFirstSequenceNumber(), 24952: std::memory_order_relaxed); 24952: } 24952: 24952: # 792 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 792 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: first_seqno_.load() >= earliest_seqno_.load() 24952: # 792 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 792 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "first_seqno_.load() >= earliest_seqno_.load()" 24952: # 792 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 792, __extension__ __PRETTY_FUNCTION__)) 24952: # 792 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: } 24952: 24952: # 794 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 794 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: post_process_info == nullptr 24952: # 794 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 794 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "post_process_info == nullptr" 24952: # 794 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 794, __extension__ __PRETTY_FUNCTION__)) 24952: # 794 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: 24952: 24952: MaybeUpdateNewestUDT(key_slice); 24952: UpdateFlushState(); 24952: } else { 24952: bool res = (hint == nullptr) 24952: ? table->InsertKeyConcurrently(handle) 24952: : table->InsertKeyWithHintConcurrently(handle, hint); 24952: if ((__builtin_expect((!res), 0))) { 24952: return Status::TryAgain("key+seq exists"); 24952: } 24952: 24952: 24952: # 807 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 807 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: post_process_info != nullptr 24952: # 807 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 807 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "post_process_info != nullptr" 24952: # 807 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 807, __extension__ __PRETTY_FUNCTION__)) 24952: # 807 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: post_process_info->num_entries++; 24952: post_process_info->data_size += encoded_len; 24952: if (type == kTypeDeletion) { 24952: post_process_info->num_deletes++; 24952: } 24952: 24952: if (bloom_filter_ && prefix_extractor_ && 24952: prefix_extractor_->InDomain(key_without_ts)) { 24952: bloom_filter_->AddConcurrently( 24952: prefix_extractor_->Transform(key_without_ts)); 24952: } 24952: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 24952: bloom_filter_->AddConcurrently(key_without_ts); 24952: } 24952: 24952: 24952: uint64_t cur_seq_num = first_seqno_.load(std::memory_order_relaxed); 24952: while ((cur_seq_num == 0 || s < cur_seq_num) && 24952: !first_seqno_.compare_exchange_weak(cur_seq_num, s)) { 24952: } 24952: uint64_t cur_earliest_seqno = 24952: earliest_seqno_.load(std::memory_order_relaxed); 24952: while ( 24952: (cur_earliest_seqno == kMaxSequenceNumber || s < cur_earliest_seqno) && 24952: !earliest_seqno_.compare_exchange_weak(cur_earliest_seqno, s)) { 24952: } 24952: } 24952: if (type == kTypeRangeDeletion) { 24952: auto new_cache = std::make_shared(); 24952: size_t size = cached_range_tombstone_.Size(); 24952: if (allow_concurrent) { 24952: post_process_info->num_range_deletes++; 24952: range_del_mutex_.lock(); 24952: } 24952: for (size_t i = 0; i < size; ++i) { 24952: std::shared_ptr* local_cache_ref_ptr = 24952: cached_range_tombstone_.AccessAtCore(i); 24952: auto new_local_cache_ref = std::make_shared< 24952: const std::shared_ptr>(new_cache); 24952: 24952: 24952: 24952: 24952: 24952: std::atomic_store_explicit( 24952: local_cache_ref_ptr, 24952: std::shared_ptr( 24952: new_local_cache_ref, new_cache.get()), 24952: std::memory_order_relaxed); 24952: } 24952: 24952: if (allow_concurrent) { 24952: range_del_mutex_.unlock(); 24952: } 24952: is_range_del_table_empty_.store(false, std::memory_order_relaxed); 24952: } 24952: UpdateOldestKeyTime(); 24952: 24952: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:BeforeReturn:Encoded", &encoded); 24952: return Status::OK(); 24952: } 24952: 24952: 24952: namespace { 24952: 24952: struct Saver { 24952: Status* status; 24952: const LookupKey* key; 24952: bool* found_final_value; 24952: bool* merge_in_progress; 24952: std::string* value; 24952: PinnableWideColumns* columns; 24952: SequenceNumber seq; 24952: std::string* timestamp; 24952: const MergeOperator* merge_operator; 24952: 24952: MergeContext* merge_context; 24952: SequenceNumber max_covering_tombstone_seq; 24952: MemTable* mem; 24952: Logger* logger; 24952: Statistics* statistics; 24952: bool inplace_update_support; 24952: bool do_merge; 24952: SystemClock* clock; 24952: 24952: ReadCallback* callback_; 24952: bool* is_blob_index; 24952: bool allow_data_in_errors; 24952: uint32_t protection_bytes_per_key; 24952: bool CheckCallback(SequenceNumber _seq) { 24952: if (callback_) { 24952: return callback_->IsVisible(_seq); 24952: } 24952: return true; 24952: } 24952: }; 24952: } 24952: 24952: static bool SaveValue(void* arg, const char* entry) { 24952: rocksdb::SyncPoint::GetInstance()->Process("Memtable::SaveValue:Begin:entry", &entry); 24952: Saver* s = reinterpret_cast(arg); 24952: 24952: # 909 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 909 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: s != nullptr 24952: # 909 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 909 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "s != nullptr" 24952: # 909 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 909, __extension__ __PRETTY_FUNCTION__)) 24952: # 909 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: 24952: # 910 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 910 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: !s->value || !s->columns 24952: # 910 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 910 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "!s->value || !s->columns" 24952: # 910 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 910, __extension__ __PRETTY_FUNCTION__)) 24952: # 910 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: 24952: if (s->protection_bytes_per_key > 0) { 24952: *(s->status) = MemTable::VerifyEntryChecksum( 24952: entry, s->protection_bytes_per_key, s->allow_data_in_errors); 24952: if (!s->status->ok()) { 24952: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "916" "] " "In SaveValue: %s"), RocksLogShorterFileName("./db/memtable.cc"), s->status->getState()); 24952: 24952: return false; 24952: } 24952: } 24952: 24952: MergeContext* merge_context = s->merge_context; 24952: SequenceNumber max_covering_tombstone_seq = s->max_covering_tombstone_seq; 24952: const MergeOperator* merge_operator = s->merge_operator; 24952: 24952: 24952: # 926 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 926 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: merge_context != nullptr 24952: # 926 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 926 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "merge_context != nullptr" 24952: # 926 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 926, __extension__ __PRETTY_FUNCTION__)) 24952: # 926 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: 24952: 24952: 24952: uint32_t key_length = 0; 24952: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 24952: 24952: # 932 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 932 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: key_length >= 8 24952: # 932 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 932 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "key_length >= 8" 24952: # 932 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 932, __extension__ __PRETTY_FUNCTION__)) 24952: # 932 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: Slice user_key_slice = Slice(key_ptr, key_length - 8); 24952: const Comparator* user_comparator = 24952: s->mem->GetInternalKeyComparator().user_comparator(); 24952: size_t ts_sz = user_comparator->timestamp_size(); 24952: if (ts_sz && s->timestamp && max_covering_tombstone_seq > 0) { 24952: 24952: 24952: # 939 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 939 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: s->timestamp->size() == ts_sz 24952: # 939 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 939 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "s->timestamp->size() == ts_sz" 24952: # 939 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 939, __extension__ __PRETTY_FUNCTION__)) 24952: # 939 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: } 24952: if (user_comparator->EqualWithoutTimestamp(user_key_slice, 24952: s->key->user_key())) { 24952: 24952: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 24952: ValueType type; 24952: SequenceNumber seq; 24952: UnPackSequenceAndType(tag, &seq, &type); 24952: 24952: if (!s->CheckCallback(seq)) { 24952: return true; 24952: } 24952: 24952: if (s->seq == kMaxSequenceNumber) { 24952: s->seq = seq; 24952: if (s->seq > max_covering_tombstone_seq) { 24952: if (ts_sz && s->timestamp != nullptr) { 24952: 24952: 24952: 24952: 24952: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 24952: s->timestamp->assign(ts.data(), ts_sz); 24952: } 24952: } else { 24952: s->seq = max_covering_tombstone_seq; 24952: } 24952: } 24952: 24952: if (ts_sz > 0 && s->timestamp != nullptr) { 24952: if (!s->timestamp->empty()) { 24952: 24952: # 971 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 971 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ts_sz == s->timestamp->size() 24952: # 971 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 971 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "ts_sz == s->timestamp->size()" 24952: # 971 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 971, __extension__ __PRETTY_FUNCTION__)) 24952: # 971 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: } 24952: 24952: const std::string kMaxTs(ts_sz, '\xff'); 24952: if (s->timestamp->empty() || 24952: user_comparator->CompareTimestamp(*(s->timestamp), kMaxTs) == 0) { 24952: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 24952: s->timestamp->assign(ts.data(), ts_sz); 24952: } 24952: } 24952: 24952: if ((type == kTypeValue || type == kTypeMerge || type == kTypeBlobIndex || 24952: type == kTypeWideColumnEntity || type == kTypeDeletion || 24952: type == kTypeSingleDeletion || type == kTypeDeletionWithTimestamp) && 24952: max_covering_tombstone_seq > seq) { 24952: type = kTypeRangeDeletion; 24952: } 24952: switch (type) { 24952: case kTypeBlobIndex: { 24952: if (!s->do_merge) { 24952: *(s->status) = Status::NotSupported( 24952: "GetMergeOperands not supported by stacked BlobDB"); 24952: *(s->found_final_value) = true; 24952: return false; 24952: } 24952: 24952: if (*(s->merge_in_progress)) { 24952: *(s->status) = Status::NotSupported( 24952: "Merge operator not supported by stacked BlobDB"); 24952: *(s->found_final_value) = true; 24952: return false; 24952: } 24952: 24952: if (s->is_blob_index == nullptr) { 24952: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1005" "] " "Encountered unexpected blob index."), RocksLogShorterFileName("./db/memtable.cc")); 24952: *(s->status) = Status::NotSupported( 24952: "Encountered unexpected blob index. Please open DB with " 24952: "ROCKSDB_NAMESPACE::blob_db::BlobDB."); 24952: *(s->found_final_value) = true; 24952: return false; 24952: } 24952: 24952: if (s->inplace_update_support) { 24952: s->mem->GetLock(s->key->user_key())->ReadLock(); 24952: } 24952: 24952: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 24952: 24952: *(s->status) = Status::OK(); 24952: 24952: if (s->value) { 24952: s->value->assign(v.data(), v.size()); 24952: } else if (s->columns) { 24952: s->columns->SetPlainValue(v); 24952: } 24952: 24952: if (s->inplace_update_support) { 24952: s->mem->GetLock(s->key->user_key())->ReadUnlock(); 24952: } 24952: 24952: *(s->found_final_value) = true; 24952: *(s->is_blob_index) = true; 24952: 24952: return false; 24952: } 24952: case kTypeValue: { 24952: if (s->inplace_update_support) { 24952: s->mem->GetLock(s->key->user_key())->ReadLock(); 24952: } 24952: 24952: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 24952: 24952: *(s->status) = Status::OK(); 24952: 24952: if (!s->do_merge) { 24952: 24952: 24952: 24952: 24952: 24952: merge_context->PushOperand( 24952: v, s->inplace_update_support == false ); 24952: } else if (*(s->merge_in_progress)) { 24952: 24952: # 1054 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 1054 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: s->do_merge 24952: # 1054 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1054 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "s->do_merge" 24952: # 1054 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 1054, __extension__ __PRETTY_FUNCTION__)) 24952: # 1054 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: 24952: if (s->value || s->columns) { 24952: 24952: 24952: 24952: *(s->status) = MergeHelper::TimedFullMerge( 24952: merge_operator, s->key->user_key(), 24952: MergeHelper::kPlainBaseValue, v, merge_context->GetOperands(), 24952: s->logger, s->statistics, s->clock, 24952: true, s->value, s->columns, 24952: nullptr); 24952: } 24952: } else if (s->value) { 24952: s->value->assign(v.data(), v.size()); 24952: } else if (s->columns) { 24952: s->columns->SetPlainValue(v); 24952: } 24952: 24952: if (s->inplace_update_support) { 24952: s->mem->GetLock(s->key->user_key())->ReadUnlock(); 24952: } 24952: 24952: *(s->found_final_value) = true; 24952: 24952: if (s->is_blob_index != nullptr) { 24952: *(s->is_blob_index) = false; 24952: } 24952: 24952: return false; 24952: } 24952: case kTypeWideColumnEntity: { 24952: if (s->inplace_update_support) { 24952: s->mem->GetLock(s->key->user_key())->ReadLock(); 24952: } 24952: 24952: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 24952: 24952: *(s->status) = Status::OK(); 24952: 24952: if (!s->do_merge) { 24952: 24952: 24952: 24952: Slice value_of_default; 24952: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 24952: v, value_of_default); 24952: 24952: if (s->status->ok()) { 24952: merge_context->PushOperand( 24952: value_of_default, 24952: s->inplace_update_support == false ); 24952: } 24952: } else if (*(s->merge_in_progress)) { 24952: 24952: # 1108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 1108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: s->do_merge 24952: # 1108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "s->do_merge" 24952: # 1108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 1108, __extension__ __PRETTY_FUNCTION__)) 24952: # 1108 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: 24952: if (s->value || s->columns) { 24952: 24952: 24952: 24952: *(s->status) = MergeHelper::TimedFullMerge( 24952: merge_operator, s->key->user_key(), MergeHelper::kWideBaseValue, 24952: v, merge_context->GetOperands(), s->logger, s->statistics, 24952: s->clock, true, s->value, s->columns, 24952: nullptr); 24952: } 24952: } else if (s->value) { 24952: Slice value_of_default; 24952: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 24952: v, value_of_default); 24952: if (s->status->ok()) { 24952: s->value->assign(value_of_default.data(), value_of_default.size()); 24952: } 24952: } else if (s->columns) { 24952: *(s->status) = s->columns->SetWideColumnValue(v); 24952: } 24952: 24952: if (s->inplace_update_support) { 24952: s->mem->GetLock(s->key->user_key())->ReadUnlock(); 24952: } 24952: 24952: *(s->found_final_value) = true; 24952: 24952: if (s->is_blob_index != nullptr) { 24952: *(s->is_blob_index) = false; 24952: } 24952: 24952: return false; 24952: } 24952: case kTypeDeletion: 24952: case kTypeDeletionWithTimestamp: 24952: case kTypeSingleDeletion: 24952: case kTypeRangeDeletion: { 24952: if (*(s->merge_in_progress)) { 24952: if (s->value || s->columns) { 24952: 24952: 24952: 24952: *(s->status) = MergeHelper::TimedFullMerge( 24952: merge_operator, s->key->user_key(), MergeHelper::kNoBaseValue, 24952: merge_context->GetOperands(), s->logger, s->statistics, 24952: s->clock, true, s->value, s->columns, 24952: nullptr); 24952: } else { 24952: 24952: 24952: 24952: *(s->status) = Status::OK(); 24952: } 24952: } else { 24952: *(s->status) = Status::NotFound(); 24952: } 24952: *(s->found_final_value) = true; 24952: return false; 24952: } 24952: case kTypeMerge: { 24952: if (!merge_operator) { 24952: *(s->status) = Status::InvalidArgument( 24952: "merge_operator is not properly initialized."); 24952: 24952: 24952: 24952: 24952: *(s->found_final_value) = true; 24952: return false; 24952: } 24952: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 24952: *(s->merge_in_progress) = true; 24952: merge_context->PushOperand( 24952: v, s->inplace_update_support == false ); 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.internal_merge_point_lookup_count += 1; }; 24952: 24952: if (s->do_merge && merge_operator->ShouldMerge( 24952: merge_context->GetOperandsDirectionBackward())) { 24952: if (s->value || s->columns) { 24952: 24952: 24952: 24952: *(s->status) = MergeHelper::TimedFullMerge( 24952: merge_operator, s->key->user_key(), MergeHelper::kNoBaseValue, 24952: merge_context->GetOperands(), s->logger, s->statistics, 24952: s->clock, true, s->value, s->columns, 24952: nullptr); 24952: } 24952: 24952: *(s->found_final_value) = true; 24952: return false; 24952: } 24952: return true; 24952: } 24952: default: { 24952: std::string msg("Corrupted value not expected."); 24952: if (s->allow_data_in_errors) { 24952: msg.append("Unrecognized value type: " + 24952: std::to_string(static_cast(type)) + ". "); 24952: msg.append("User key: " + user_key_slice.ToString( true) + 24952: ". "); 24952: msg.append("seq: " + std::to_string(seq) + "."); 24952: } 24952: *(s->status) = Status::Corruption(msg.c_str()); 24952: return false; 24952: } 24952: } 24952: } 24952: 24952: 24952: return false; 24952: } 24952: 24952: bool MemTable::Get(const LookupKey& key, std::string* value, 24952: PinnableWideColumns* columns, std::string* timestamp, 24952: Status* s, MergeContext* merge_context, 24952: SequenceNumber* max_covering_tombstone_seq, 24952: SequenceNumber* seq, const ReadOptions& read_opts, 24952: bool immutable_memtable, ReadCallback* callback, 24952: bool* is_blob_index, bool do_merge) { 24952: 24952: if (IsEmpty()) { 24952: 24952: return false; 24952: } 24952: 24952: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 24952: 24952: std::unique_ptr range_del_iter( 24952: NewRangeTombstoneIterator(read_opts, 24952: GetInternalKeySeqno(key.internal_key()), 24952: immutable_memtable)); 24952: if (range_del_iter != nullptr) { 24952: SequenceNumber covering_seq = 24952: range_del_iter->MaxCoveringTombstoneSeqnum(key.user_key()); 24952: if (covering_seq > *max_covering_tombstone_seq) { 24952: *max_covering_tombstone_seq = covering_seq; 24952: if (timestamp) { 24952: 24952: 24952: timestamp->assign(range_del_iter->timestamp().data(), 24952: range_del_iter->timestamp().size()); 24952: } 24952: } 24952: } 24952: 24952: bool found_final_value = false; 24952: bool merge_in_progress = s->IsMergeInProgress(); 24952: bool may_contain = true; 24952: Slice user_key_without_ts = StripTimestampFromUserKey(key.user_key(), ts_sz_); 24952: bool bloom_checked = false; 24952: if (bloom_filter_) { 24952: 24952: 24952: if (moptions_.memtable_whole_key_filtering) { 24952: may_contain = bloom_filter_->MayContain(user_key_without_ts); 24952: bloom_checked = true; 24952: } else { 24952: 24952: # 1268 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 1268 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: prefix_extractor_ 24952: # 1268 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1268 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "prefix_extractor_" 24952: # 1268 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 1268, __extension__ __PRETTY_FUNCTION__)) 24952: # 1268 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: if (prefix_extractor_->InDomain(user_key_without_ts)) { 24952: may_contain = bloom_filter_->MayContain( 24952: prefix_extractor_->Transform(user_key_without_ts)); 24952: bloom_checked = true; 24952: } 24952: } 24952: } 24952: 24952: if (bloom_filter_ && !may_contain) { 24952: 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 24952: *seq = kMaxSequenceNumber; 24952: } else { 24952: if (bloom_checked) { 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 24952: } 24952: GetFromTable(key, *max_covering_tombstone_seq, do_merge, callback, 24952: is_blob_index, value, columns, timestamp, s, merge_context, 24952: seq, &found_final_value, &merge_in_progress); 24952: } 24952: 24952: 24952: 24952: if (!found_final_value && merge_in_progress && !s->IsCorruption()) { 24952: *s = Status::MergeInProgress(); 24952: } 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; }; 24952: return found_final_value; 24952: } 24952: 24952: void MemTable::GetFromTable(const LookupKey& key, 24952: SequenceNumber max_covering_tombstone_seq, 24952: bool do_merge, ReadCallback* callback, 24952: bool* is_blob_index, std::string* value, 24952: PinnableWideColumns* columns, 24952: std::string* timestamp, Status* s, 24952: MergeContext* merge_context, SequenceNumber* seq, 24952: bool* found_final_value, bool* merge_in_progress) { 24952: Saver saver; 24952: saver.status = s; 24952: saver.found_final_value = found_final_value; 24952: saver.merge_in_progress = merge_in_progress; 24952: saver.key = &key; 24952: saver.value = value; 24952: saver.columns = columns; 24952: saver.timestamp = timestamp; 24952: saver.seq = kMaxSequenceNumber; 24952: saver.mem = this; 24952: saver.merge_context = merge_context; 24952: saver.max_covering_tombstone_seq = max_covering_tombstone_seq; 24952: saver.merge_operator = moptions_.merge_operator; 24952: saver.logger = moptions_.info_log; 24952: saver.inplace_update_support = moptions_.inplace_update_support; 24952: saver.statistics = moptions_.statistics; 24952: saver.clock = clock_; 24952: saver.callback_ = callback; 24952: saver.is_blob_index = is_blob_index; 24952: saver.do_merge = do_merge; 24952: saver.allow_data_in_errors = moptions_.allow_data_in_errors; 24952: saver.protection_bytes_per_key = moptions_.protection_bytes_per_key; 24952: table_->Get(key, &saver, SaveValue); 24952: *seq = saver.seq; 24952: } 24952: 24952: void MemTable::MultiGet(const ReadOptions& read_options, MultiGetRange* range, 24952: ReadCallback* callback, bool immutable_memtable) { 24952: 24952: if (IsEmpty()) { 24952: 24952: return; 24952: } 24952: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 24952: 24952: 24952: 24952: 24952: bool no_range_del = read_options.ignore_range_deletions || 24952: is_range_del_table_empty_.load(std::memory_order_relaxed); 24952: MultiGetRange temp_range(*range, range->begin(), range->end()); 24952: if (bloom_filter_ && no_range_del) { 24952: bool whole_key = 24952: !prefix_extractor_ || moptions_.memtable_whole_key_filtering; 24952: std::array bloom_keys; 24952: std::array may_match; 24952: std::array range_indexes; 24952: int num_keys = 0; 24952: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 24952: if (whole_key) { 24952: bloom_keys[num_keys] = iter->ukey_without_ts; 24952: range_indexes[num_keys++] = iter.index(); 24952: } else if (prefix_extractor_->InDomain(iter->ukey_without_ts)) { 24952: bloom_keys[num_keys] = 24952: prefix_extractor_->Transform(iter->ukey_without_ts); 24952: range_indexes[num_keys++] = iter.index(); 24952: } 24952: } 24952: bloom_filter_->MayContain(num_keys, &bloom_keys[0], &may_match[0]); 24952: for (int i = 0; i < num_keys; ++i) { 24952: if (!may_match[i]) { 24952: temp_range.SkipIndex(range_indexes[i]); 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 24952: } else { 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 24952: } 24952: } 24952: } 24952: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 24952: bool found_final_value{false}; 24952: bool merge_in_progress = iter->s->IsMergeInProgress(); 24952: if (!no_range_del) { 24952: std::unique_ptr range_del_iter( 24952: NewRangeTombstoneIteratorInternal( 24952: read_options, GetInternalKeySeqno(iter->lkey->internal_key()), 24952: immutable_memtable)); 24952: SequenceNumber covering_seq = 24952: range_del_iter->MaxCoveringTombstoneSeqnum(iter->lkey->user_key()); 24952: if (covering_seq > iter->max_covering_tombstone_seq) { 24952: iter->max_covering_tombstone_seq = covering_seq; 24952: if (iter->timestamp) { 24952: 24952: 24952: iter->timestamp->assign(range_del_iter->timestamp().data(), 24952: range_del_iter->timestamp().size()); 24952: } 24952: } 24952: } 24952: SequenceNumber dummy_seq; 24952: GetFromTable(*(iter->lkey), iter->max_covering_tombstone_seq, true, 24952: callback, &iter->is_blob_index, 24952: iter->value ? iter->value->GetSelf() : nullptr, iter->columns, 24952: iter->timestamp, iter->s, &(iter->merge_context), &dummy_seq, 24952: &found_final_value, &merge_in_progress); 24952: 24952: if (!found_final_value && merge_in_progress) { 24952: *(iter->s) = Status::MergeInProgress(); 24952: } 24952: 24952: if (found_final_value) { 24952: if (iter->value) { 24952: iter->value->PinSelf(); 24952: range->AddValueSize(iter->value->size()); 24952: } else { 24952: 24952: # 1411 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 1411 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: iter->columns 24952: # 1411 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1411 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "iter->columns" 24952: # 1411 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 1411, __extension__ __PRETTY_FUNCTION__)) 24952: # 1411 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: range->AddValueSize(iter->columns->serialized_size()); 24952: } 24952: 24952: range->MarkKeyDone(iter); 24952: RecordTick(moptions_.statistics, MEMTABLE_HIT); 24952: if (range->GetValueSize() > read_options.value_size_soft_limit) { 24952: 24952: for (auto range_iter = range->begin(); range_iter != range->end(); 24952: ++range_iter) { 24952: range->MarkKeyDone(range_iter); 24952: *(range_iter->s) = Status::Aborted(); 24952: } 24952: break; 24952: } 24952: } 24952: } 24952: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; }; 24952: } 24952: 24952: Status MemTable::Update(SequenceNumber seq, ValueType value_type, 24952: const Slice& key, const Slice& value, 24952: const ProtectionInfoKVOS64* kv_prot_info) { 24952: LookupKey lkey(key, seq); 24952: Slice mem_key = lkey.memtable_key(); 24952: 24952: std::unique_ptr iter( 24952: table_->GetDynamicPrefixIterator()); 24952: iter->Seek(lkey.internal_key(), mem_key.data()); 24952: 24952: if (iter->Valid()) { 24952: 24952: 24952: 24952: 24952: const char* entry = iter->key(); 24952: uint32_t key_length = 0; 24952: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 24952: if (comparator_.comparator.user_comparator()->Equal( 24952: Slice(key_ptr, key_length - 8), lkey.user_key())) { 24952: 24952: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 24952: ValueType type; 24952: SequenceNumber existing_seq; 24952: UnPackSequenceAndType(tag, &existing_seq, &type); 24952: 24952: # 1456 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 1456 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: existing_seq != seq 24952: # 1456 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1456 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "existing_seq != seq" 24952: # 1456 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 1456, __extension__ __PRETTY_FUNCTION__)) 24952: # 1456 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: if (type == value_type) { 24952: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 24952: uint32_t prev_size = static_cast(prev_value.size()); 24952: uint32_t new_size = static_cast(value.size()); 24952: 24952: 24952: if (new_size <= prev_size) { 24952: char* p = 24952: EncodeVarint32(const_cast(key_ptr) + key_length, new_size); 24952: WriteLock wl(GetLock(lkey.user_key())); 24952: memcpy(p, value.data(), value.size()); 24952: 24952: # 1468 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 1468 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: (unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size()) 24952: # 1468 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1468 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "(unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size())" 24952: # 1468 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 1468, __extension__ __PRETTY_FUNCTION__)) 24952: 24952: 24952: # 1470 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 24952: if (kv_prot_info != nullptr) { 24952: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 24952: 24952: updated_kv_prot_info.UpdateS(seq, existing_seq); 24952: UpdateEntryChecksum(&updated_kv_prot_info, key, value, type, 24952: existing_seq, p + value.size()); 24952: Slice encoded(entry, p + value.size() - entry); 24952: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 24952: } else { 24952: UpdateEntryChecksum(nullptr, key, value, type, existing_seq, 24952: p + value.size()); 24952: } 24952: return Status::OK(); 24952: } 24952: } 24952: } 24952: } 24952: 24952: 24952: return Add(seq, value_type, key, value, kv_prot_info); 24952: } 24952: 24952: Status MemTable::UpdateCallback(SequenceNumber seq, const Slice& key, 24952: const Slice& delta, 24952: const ProtectionInfoKVOS64* kv_prot_info) { 24952: LookupKey lkey(key, seq); 24952: Slice memkey = lkey.memtable_key(); 24952: 24952: std::unique_ptr iter( 24952: table_->GetDynamicPrefixIterator()); 24952: iter->Seek(lkey.internal_key(), memkey.data()); 24952: 24952: if (iter->Valid()) { 24952: 24952: 24952: 24952: 24952: const char* entry = iter->key(); 24952: uint32_t key_length = 0; 24952: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 24952: if (comparator_.comparator.user_comparator()->Equal( 24952: Slice(key_ptr, key_length - 8), lkey.user_key())) { 24952: 24952: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 24952: ValueType type; 24952: uint64_t existing_seq; 24952: UnPackSequenceAndType(tag, &existing_seq, &type); 24952: if (type == kTypeValue) { 24952: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 24952: uint32_t prev_size = static_cast(prev_value.size()); 24952: 24952: char* prev_buffer = const_cast(prev_value.data()); 24952: uint32_t new_prev_size = prev_size; 24952: 24952: std::string str_value; 24952: WriteLock wl(GetLock(lkey.user_key())); 24952: auto status = moptions_.inplace_callback(prev_buffer, &new_prev_size, 24952: delta, &str_value); 24952: if (status == UpdateStatus::UPDATED_INPLACE) { 24952: 24952: 24952: # 1532 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 1532 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: new_prev_size <= prev_size 24952: # 1532 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1532 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "new_prev_size <= prev_size" 24952: # 1532 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 1532, __extension__ __PRETTY_FUNCTION__)) 24952: # 1532 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: if (new_prev_size < prev_size) { 24952: 24952: char* p = EncodeVarint32(const_cast(key_ptr) + key_length, 24952: new_prev_size); 24952: if (VarintLength(new_prev_size) < VarintLength(prev_size)) { 24952: 24952: memcpy(p, prev_buffer, new_prev_size); 24952: prev_buffer = p; 24952: } 24952: } 24952: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 24952: UpdateFlushState(); 24952: Slice new_value(prev_buffer, new_prev_size); 24952: if (kv_prot_info != nullptr) { 24952: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 24952: 24952: updated_kv_prot_info.UpdateS(seq, existing_seq); 24952: updated_kv_prot_info.UpdateV(delta, new_value); 24952: Slice encoded(entry, prev_buffer + new_prev_size - entry); 24952: UpdateEntryChecksum(&updated_kv_prot_info, key, new_value, type, 24952: existing_seq, prev_buffer + new_prev_size); 24952: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 24952: } else { 24952: UpdateEntryChecksum(nullptr, key, new_value, type, existing_seq, 24952: prev_buffer + new_prev_size); 24952: } 24952: return Status::OK(); 24952: } else if (status == UpdateStatus::UPDATED) { 24952: Status s; 24952: if (kv_prot_info != nullptr) { 24952: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 24952: updated_kv_prot_info.UpdateV(delta, str_value); 24952: s = Add(seq, kTypeValue, key, Slice(str_value), 24952: &updated_kv_prot_info); 24952: } else { 24952: s = Add(seq, kTypeValue, key, Slice(str_value), 24952: nullptr ); 24952: } 24952: RecordTick(moptions_.statistics, NUMBER_KEYS_WRITTEN); 24952: UpdateFlushState(); 24952: return s; 24952: } else if (status == UpdateStatus::UPDATE_FAILED) { 24952: 24952: 24952: UpdateFlushState(); 24952: return Status::OK(); 24952: } 24952: } 24952: } 24952: } 24952: 24952: return Status::NotFound(); 24952: } 24952: 24952: size_t MemTable::CountSuccessiveMergeEntries(const LookupKey& key) { 24952: Slice memkey = key.memtable_key(); 24952: 24952: 24952: 24952: 24952: std::unique_ptr iter( 24952: table_->GetDynamicPrefixIterator()); 24952: iter->Seek(key.internal_key(), memkey.data()); 24952: 24952: size_t num_successive_merges = 0; 24952: 24952: for (; iter->Valid(); iter->Next()) { 24952: const char* entry = iter->key(); 24952: uint32_t key_length = 0; 24952: const char* iter_key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 24952: if (!comparator_.comparator.user_comparator()->Equal( 24952: Slice(iter_key_ptr, key_length - 8), key.user_key())) { 24952: break; 24952: } 24952: 24952: const uint64_t tag = DecodeFixed64(iter_key_ptr + key_length - 8); 24952: ValueType type; 24952: uint64_t unused; 24952: UnPackSequenceAndType(tag, &unused, &type); 24952: if (type != kTypeMerge) { 24952: break; 24952: } 24952: 24952: ++num_successive_merges; 24952: } 24952: 24952: return num_successive_merges; 24952: } 24952: 24952: void MemTableRep::Get(const LookupKey& k, void* callback_args, 24952: bool (*callback_func)(void* arg, const char* entry)) { 24952: auto iter = GetDynamicPrefixIterator(); 24952: for (iter->Seek(k.internal_key(), k.memtable_key().data()); 24952: iter->Valid() && callback_func(callback_args, iter->key()); 24952: iter->Next()) { 24952: } 24952: } 24952: 24952: void MemTable::RefLogContainingPrepSection(uint64_t log) { 24952: 24952: # 1632 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 1632 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: log > 0 24952: # 1632 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1632 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "log > 0" 24952: # 1632 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 1632, __extension__ __PRETTY_FUNCTION__)) 24952: # 1632 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: auto cur = min_prep_log_referenced_.load(); 24952: while ((log < cur || cur == 0) && 24952: !min_prep_log_referenced_.compare_exchange_strong(cur, log)) { 24952: cur = min_prep_log_referenced_.load(); 24952: } 24952: } 24952: 24952: uint64_t MemTable::GetMinLogContainingPrepSection() { 24952: return min_prep_log_referenced_.load(); 24952: } 24952: 24952: void MemTable::MaybeUpdateNewestUDT(const Slice& user_key) { 24952: if (ts_sz_ == 0 || persist_user_defined_timestamps_) { 24952: return; 24952: } 24952: const Comparator* ucmp = GetInternalKeyComparator().user_comparator(); 24952: Slice udt = ExtractTimestampFromUserKey(user_key, ts_sz_); 24952: if (newest_udt_.empty() || ucmp->CompareTimestamp(udt, newest_udt_) > 0) { 24952: newest_udt_ = udt; 24952: } 24952: } 24952: 24952: const Slice& MemTable::GetNewestUDT() const { 24952: 24952: 24952: 24952: # 1658 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: (static_cast ( 24952: # 1658 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ts_sz_ > 0 && !persist_user_defined_timestamps_ 24952: # 1658 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: ) ? void (0) : __assert_fail ( 24952: # 1658 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: "ts_sz_ > 0 && !persist_user_defined_timestamps_" 24952: # 1658 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 3 4 24952: , "./db/memtable.cc", 1658, __extension__ __PRETTY_FUNCTION__)) 24952: # 1658 "/build/reproducible-path/rocksdb-8.9.1/db/memtable.cc" 24952: ; 24952: return newest_udt_; 24952: } 24952: 24952: } 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++/13/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++/13/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:603:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-8.9.1/include/rocksdb/options.h:66:8: /usr/include/c++/13/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ === END GCC DUMP === make[3]: *** [CMakeFiles/rocksdb.dir/build.make:1087: CMakeFiles/rocksdb.dir/db/memtable.cc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/13/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++/13/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from /usr/include/c++/13/vector:66: 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-8.9.1/db/repair.cc:492:31: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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-8.9.1/db/repair.cc:320:30, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:200:23: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _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-8.9.1/db/repair.cc:322:38, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:200:23: /usr/include/c++/13/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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:486:28, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::AddTables()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:704:27, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:229:25: /usr/include/c++/13/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 '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-8.9.1/util/autovector.h:283:22, 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, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&, uint64_t, uint64_t, bool)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:495:35, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::AddTables()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:704:27, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:229:25: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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-8.9.1/db/version_edit.h:503:28, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::AddTables()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:735:25, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:229:25: /usr/include/c++/13/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 '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(T&&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-8.9.1/util/autovector.h:274:22, inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-8.9.1/db/version_edit.h:504:35, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::AddTables()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:735:25, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-8.9.1/db/repair.cc:229:25: /usr/include/c++/13/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ make[3]: Leaving directory '/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf' make[2]: *** [CMakeFiles/Makefile2:176: CMakeFiles/rocksdb.dir/all] Error 2 make[2]: Leaving directory '/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf' make[1]: *** [Makefile:139: all] Error 2 make[1]: Leaving directory '/build/reproducible-path/rocksdb-8.9.1/obj-arm-linux-gnueabihf' dh_auto_build: error: cd obj-arm-linux-gnueabihf && make -j4 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2 make: *** [debian/rules:51: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 I: copying local configuration E: Failed autobuilding of package I: user script /srv/workspace/pbuilder/13100/tmp/hooks/C01_cleanup starting debug output: disk usage on i-capture-the-hostname at Thu Apr 18 13:48:58 UTC 2024 Filesystem Size Used Avail Use% Mounted on tmpfs 7.7G 0 7.7G 0% /dev/shm I: user script /srv/workspace/pbuilder/13100/tmp/hooks/C01_cleanup finished 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/13100 and its subdirectories